From 80e634d99751aa27e4baaaf7e6f208a851b2bb38 Mon Sep 17 00:00:00 2001 From: Piotr Date: Fri, 13 Dec 2024 22:14:49 +0100 Subject: [PATCH] v0.14.0 release --- README.md | 20 +- build_across | 2 +- ...ssMode-hamDldIn.js => cssMode-Sb1HsyF1.js} | 2 +- ...r2-hQuJctH-.js => freemarker2-rigGjrd5.js} | 2 +- ...ars-qpvmrikL.js => handlebars-36yn1XDC.js} | 2 +- .../{html-qKxh1SOy.js => html-3P5GNVWI.js} | 2 +- ...lMode-HIDsQ80x.js => htmlMode-_UTXnAs0.js} | 2 +- http/assets/assets/index--ia9tQRb.css | 1 - .../{index-rjYvFtqJ.js => index-hNNUgwiq.js} | 628 +++++++++--------- http/assets/assets/index-tv-8Ql_Z.css | 1 + ...ipt-fe17HaLW.js => javascript-o92ot6FM.js} | 2 +- ...nMode-M5IU_Wp8.js => jsonMode-6_NI7eQV.js} | 2 +- ...{liquid-pO05z-rS.js => liquid-3gVmrJ-p.js} | 2 +- ...{python-Fi0vy3sZ.js => python-bf1kIhlu.js} | 2 +- .../{razor-aBK5L8Fe.js => razor-1-mmjE1t.js} | 2 +- ...{tsMode-hDTwGyNR.js => tsMode-g7DmTDTu.js} | 2 +- ...ipt-QhXaIavo.js => typescript-eMqxaKI2.js} | 2 +- .../{xml-2Pm_fqYQ.js => xml-mSlUVMM6.js} | 2 +- .../{yaml-NRRZdLbS.js => yaml-4a9TfO3Q.js} | 2 +- http/assets/index.html | 31 +- http/assets/main.wasm | Bin 0 -> 3834998 bytes http/assets/wasm_exec.js | 561 ++++++++++++++++ release | 2 +- 23 files changed, 923 insertions(+), 351 deletions(-) rename http/assets/assets/{cssMode-hamDldIn.js => cssMode-Sb1HsyF1.js} (99%) rename http/assets/assets/{freemarker2-hQuJctH-.js => freemarker2-rigGjrd5.js} (99%) rename http/assets/assets/{handlebars-qpvmrikL.js => handlebars-36yn1XDC.js} (99%) rename http/assets/assets/{html-qKxh1SOy.js => html-3P5GNVWI.js} (98%) rename http/assets/assets/{htmlMode-HIDsQ80x.js => htmlMode-_UTXnAs0.js} (99%) delete mode 100644 http/assets/assets/index--ia9tQRb.css rename http/assets/assets/{index-rjYvFtqJ.js => index-hNNUgwiq.js} (75%) create mode 100644 http/assets/assets/index-tv-8Ql_Z.css rename http/assets/assets/{javascript-fe17HaLW.js => javascript-o92ot6FM.js} (89%) rename http/assets/assets/{jsonMode-M5IU_Wp8.js => jsonMode-6_NI7eQV.js} (99%) rename http/assets/assets/{liquid-pO05z-rS.js => liquid-3gVmrJ-p.js} (98%) rename http/assets/assets/{python-Fi0vy3sZ.js => python-bf1kIhlu.js} (98%) rename http/assets/assets/{razor-aBK5L8Fe.js => razor-1-mmjE1t.js} (99%) rename http/assets/assets/{tsMode-hDTwGyNR.js => tsMode-g7DmTDTu.js} (99%) rename http/assets/assets/{typescript-QhXaIavo.js => typescript-eMqxaKI2.js} (98%) rename http/assets/assets/{xml-2Pm_fqYQ.js => xml-mSlUVMM6.js} (97%) rename http/assets/assets/{yaml-NRRZdLbS.js => yaml-4a9TfO3Q.js} (98%) create mode 100755 http/assets/main.wasm create mode 100644 http/assets/wasm_exec.js diff --git a/README.md b/README.md index ec95089..9acff23 100644 --- a/README.md +++ b/README.md @@ -15,16 +15,21 @@

-### Latest version: 0.13.3 (10 December 2024) - [Read announcement](https://logdy.dev/blog/post/logdy-new-version-announcement-v013) +### Latest version: 0.14.0 (13 December 2024) - [Read announcement](https://logdy.dev/blog/post/logdy-new-version-announcement-v014) Logdy is a single-binary that you add to your PATH so it's available just like any other tool: grep, awk, sed, jq. **No installations, no deployments, no compilations**. It works locally, so it's also secure. [Read more](https://logdy.dev/docs/what-is-logdy). ### Standalone use ```bash -# use with any shell command +# Use with any shell command $ tail -f file.log | logdy INFO[2024-02...] WebUI started, visit http://localhost:8080 port=8080 + +# Read log files +$ logdy follow app-out.log --full-read +INFO[2024-02...] WebUI started, visit http://localhost:8080 port=8080 ``` +More use [modes in the docs.](https://logdy.dev/docs/explanation/command-modes) ### Use as a Go library ```go @@ -41,14 +46,15 @@ func main(){ <-context.Background().Done() } ``` +Check [docs](https://logdy.dev/docs/golang-logs-viewer) or [example app](https://github.com/logdyhq/logdy-core/blob/main/example-app/main.go). -## Demo +## Demo of the UI Visit [demo.logdy.dev](https://demo.logdy.dev) ![autogenerate](https://github.com/logdyhq/logdy-core/assets/1653294/bfe09fa8-bbba-46fa-b54d-503f796c7b57) -Visit [logdy.dev](http://logdy.dev) for more info. +Visit [logdy.dev](http://logdy.dev) for more info and detalied documentation. ##### Project status: Beta version, new features added actively. @@ -73,7 +79,7 @@ $ brew install logdy Naviage to [releases](https://github.com/logdyhq/logdy-core/releases) Github page and download the latest release for your architecture. ```bash -wget https://github.com/logdyhq/logdy-core/releases/download/v0.13.3/logdy_linux_amd64; +wget https://github.com/logdyhq/logdy-core/releases/download/v0.14.0/logdy_linux_amd64; mv logdy_linux_amd64 logdy; chmod +x logdy; ``` @@ -149,9 +155,9 @@ If you would like to develop with UI, check [readme for logdy-ui](https://github ## Building -This repository uses static asset embedding during compilation. This way, the UI is served from a single binary. Before you build make sure you copy a compiled [UI](https://github.com/logdyhq/logdy-ui) (follow the instructions about building) in `assets` directory. The UI is already commited to this repository, so you don't have to do anymore actions. +This repository uses static asset embedding during compilation. This way, the UI is served from a single binary. Before you build make sure you copy a compiled [UI](https://github.com/logdyhq/logdy-ui) (follow the instructions about building) in `http/assets` directory. The UI is already commited to this repository, so you don't have to do anymore actions. -Look at `embed.go` for more details on how UI is embedded into the binary. +Look at `http/embed.go` for more details on how UI is embedded into the binary. For a local architecture build: ```bash diff --git a/build_across b/build_across index a715fdf..f5d50eb 100755 --- a/build_across +++ b/build_across @@ -1 +1 @@ -gox -ldflags "-X 'main.Version=0.13.3'" -output="bin/logdy_{{.OS}}_{{.Arch}}" -osarch="linux/amd64 linux/arm64 windows/386 windows/amd64 darwin/amd64 darwin/arm64" +gox -ldflags "-X 'main.Version=0.14.0'" -output="bin/logdy_{{.OS}}_{{.Arch}}" -osarch="linux/amd64 linux/arm64 windows/386 windows/amd64 darwin/amd64 darwin/arm64" diff --git a/http/assets/assets/cssMode-hamDldIn.js b/http/assets/assets/cssMode-Sb1HsyF1.js similarity index 99% rename from http/assets/assets/cssMode-hamDldIn.js rename to http/assets/assets/cssMode-Sb1HsyF1.js index 9410e15..ed0deff 100644 --- a/http/assets/assets/cssMode-hamDldIn.js +++ b/http/assets/assets/cssMode-Sb1HsyF1.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index-rjYvFtqJ.js";/*!----------------------------------------------------------------------------- +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index-hNNUgwiq.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/freemarker2-hQuJctH-.js b/http/assets/assets/freemarker2-rigGjrd5.js similarity index 99% rename from http/assets/assets/freemarker2-hQuJctH-.js rename to http/assets/assets/freemarker2-rigGjrd5.js index 732483b..5351783 100644 --- a/http/assets/assets/freemarker2-hQuJctH-.js +++ b/http/assets/assets/freemarker2-rigGjrd5.js @@ -1,4 +1,4 @@ -import{m as F}from"./index-rjYvFtqJ.js";/*!----------------------------------------------------------------------------- +import{m as F}from"./index-hNNUgwiq.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/handlebars-qpvmrikL.js b/http/assets/assets/handlebars-36yn1XDC.js similarity index 99% rename from http/assets/assets/handlebars-qpvmrikL.js rename to http/assets/assets/handlebars-36yn1XDC.js index f28b742..f89c95b 100644 --- a/http/assets/assets/handlebars-qpvmrikL.js +++ b/http/assets/assets/handlebars-36yn1XDC.js @@ -1,4 +1,4 @@ -import{m as i}from"./index-rjYvFtqJ.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./index-hNNUgwiq.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/html-qKxh1SOy.js b/http/assets/assets/html-3P5GNVWI.js similarity index 98% rename from http/assets/assets/html-qKxh1SOy.js rename to http/assets/assets/html-3P5GNVWI.js index cb4c74e..f1092c2 100644 --- a/http/assets/assets/html-qKxh1SOy.js +++ b/http/assets/assets/html-3P5GNVWI.js @@ -1,4 +1,4 @@ -import{m as d}from"./index-rjYvFtqJ.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./index-hNNUgwiq.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/htmlMode-HIDsQ80x.js b/http/assets/assets/htmlMode-_UTXnAs0.js similarity index 99% rename from http/assets/assets/htmlMode-HIDsQ80x.js rename to http/assets/assets/htmlMode-_UTXnAs0.js index 1cec1a4..9e9a2c8 100644 --- a/http/assets/assets/htmlMode-HIDsQ80x.js +++ b/http/assets/assets/htmlMode-_UTXnAs0.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index-rjYvFtqJ.js";/*!----------------------------------------------------------------------------- +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index-hNNUgwiq.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/index--ia9tQRb.css b/http/assets/assets/index--ia9tQRb.css deleted file mode 100644 index a368f92..0000000 --- a/http/assets/assets/index--ia9tQRb.css +++ /dev/null @@ -1 +0,0 @@ -body{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--danger: #6c2727;color:var(--font);background-color:var(--bg)}body.dark{color-scheme:light dark;--font: #efefef;--bg: #242424;--hl-bg: #373737;--hl-bg2: #3f3f3f;--hl-bg3: #595959;--bg-btn: #1a1a1a;--info: rgb(76, 94, 154)}body.light{color:#213547;--font: #303030;--bg: #f8f8f8;--hl-bg: #e0e0e0;--hl-bg2: #9d9d9d;--hl-bg3: #8c8c8c;--bg-btn: #c5c5c5;--danger: #ff8282;--info: rgb(145, 155, 186)}@media (prefers-color-scheme: light){body.light{color-scheme:light;--font: #303030;--bg: #f8f8f8;--hl-bg: #e0e0e0;--hl-bg2: #9d9d9d;--hl-bg3: #8c8c8c;--bg-btn: #c5c5c5;--info: rgb(145, 155, 186)}body.dark{color-scheme:dark;--font: #efefef;--bg: #242424;--hl-bg: #373737;--hl-bg2: #3f3f3f;--hl-bg3: #595959;--bg-btn: #1a1a1a;--info: rgb(76, 94, 154)}a:hover{color:#747bff}button{background-color:#f9f9f9}}button[disabled]{opacity:.7}a,.link-style{font-weight:500;color:#646cff;text-decoration:inherit}a:hover,.link-style:hover{color:#535bf2}body{margin:0;padding:0;min-width:320px;min-height:100vh}#app.noselect *{-webkit-user-select:none;-ms-user-select:none;user-select:none}h1{font-size:3.2em;line-height:1.1}button,.btn{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;color:var(--color);background-color:var(--bg-btn);cursor:pointer;transition:border-color .25s}.btn-danger{background:var(--danger)!important}button:hover,.btn:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}.vjs-tree-brackets{cursor:pointer}.vjs-tree-brackets:hover{color:#1890ff}.vjs-check-controller{position:absolute;left:0}.vjs-check-controller.is-checked .vjs-check-controller-inner{background-color:#1890ff;border-color:#0076e4}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-checkbox:after{transform:rotate(45deg) scaleY(1)}.vjs-check-controller.is-checked .vjs-check-controller-inner.is-radio:after{transform:translate(-50%,-50%) scale(1)}.vjs-check-controller .vjs-check-controller-inner{display:inline-block;position:relative;border:1px solid #bfcbd9;border-radius:2px;vertical-align:middle;box-sizing:border-box;width:16px;height:16px;background-color:#fff;z-index:1;cursor:pointer;transition:border-color .25s cubic-bezier(.71,-.46,.29,1.46),background-color .25s cubic-bezier(.71,-.46,.29,1.46)}.vjs-check-controller .vjs-check-controller-inner:after{box-sizing:content-box;content:"";border:2px solid #fff;border-left:0;border-top:0;height:8px;left:4px;position:absolute;top:1px;transform:rotate(45deg) scaleY(0);width:4px;transition:transform .15s cubic-bezier(.71,-.46,.88,.6) .05s;transform-origin:center}.vjs-check-controller .vjs-check-controller-inner.is-radio{border-radius:100%}.vjs-check-controller .vjs-check-controller-inner.is-radio:after{border-radius:100%;height:4px;background-color:#fff;left:50%;top:50%}.vjs-check-controller .vjs-check-controller-original{opacity:0;outline:none;position:absolute;z-index:-1;top:0;left:0;right:0;bottom:0;margin:0}.vjs-carets{position:absolute;right:0;cursor:pointer}.vjs-carets svg{transition:transform .3s}.vjs-carets:hover{color:#1890ff}.vjs-carets-close{transform:rotate(-90deg)}.vjs-tree-node{display:flex;position:relative;line-height:20px}.vjs-tree-node.has-carets{padding-left:15px}.vjs-tree-node.has-carets.has-selector,.vjs-tree-node.has-selector{padding-left:30px}.vjs-tree-node.is-highlight,.vjs-tree-node:hover{background-color:#e6f7ff}.vjs-tree-node .vjs-indent{display:flex;position:relative}.vjs-tree-node .vjs-indent-unit{width:1em}.vjs-tree-node .vjs-indent-unit.has-line{border-left:1px dashed #bfcbd9}.vjs-tree-node.dark.is-highlight,.vjs-tree-node.dark:hover{background-color:#2e4558}.vjs-node-index{position:absolute;right:100%;margin-right:4px;-webkit-user-select:none;user-select:none}.vjs-colon{white-space:pre}.vjs-comment{color:#bfcbd9}.vjs-value{word-break:break-word}.vjs-value-null,.vjs-value-undefined{color:#d55fde}.vjs-value-boolean,.vjs-value-number{color:#1d8ce0}.vjs-value-string{color:#13ce66}.vjs-tree{font-family:Monaco,Menlo,Consolas,Bitstream Vera Sans Mono,monospace;font-size:14px;text-align:left}.vjs-tree.is-virtual{overflow:auto}.vjs-tree.is-virtual .vjs-tree-node{white-space:nowrap}.drawer[data-v-91210c39]{right:0;top:0;height:calc(100vh - 73px);background:var(--hl-bg);z-index:999;opacity:.97;padding:0 10px 10px 0}.drawer .resize-handle[data-v-91210c39]{background:#fff;width:3px;opacity:.2;cursor:ew-resize;height:100%;float:left;margin-right:10px}.drawer h4[data-v-91210c39],.drawer h3[data-v-91210c39]{margin:2px;cursor:pointer}.drawer h4 .clipboard[data-v-91210c39],.drawer h3 .clipboard[data-v-91210c39]{visibility:hidden}.drawer h4:hover .clipboard[data-v-91210c39],.drawer h3:hover .clipboard[data-v-91210c39]{visibility:visible!important}.drawer .inner-drawer[data-v-91210c39]{padding-top:20px;height:calc(100% - 15px);overflow-y:scroll}.drawer .inner-drawer .header[data-v-91210c39]{display:flex;align-items:center;float:right}.drawer pre[data-v-91210c39]{margin:6px 0;background:var(--bg);padding:10px;white-space:pre-wrap}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%)}.monaco-aria-container{position:absolute;left:-999em}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);background-color:var(--vscode-editor-background)}.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-rangeHighlightBorder)}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-symbolHighlightBorder)}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorError-background)}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorWarning-background)}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorInfo-background)}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground, inherit)}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:#0000;transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent;z-index:-10}.monaco-editor .inputarea.ime-input{z-index:10;caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground)}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box}.monaco-editor .lines-content .core-guide-indent{box-shadow:1px 0 0 0 var(--vscode-editorIndentGuide-background) inset}.monaco-editor .lines-content .core-guide-indent-active{box-shadow:1px 0 0 0 var(--vscode-editorIndentGuide-activeBackground, --vscode-editorIndentGuide-background) inset}.mtkcontrol{color:#fff!important;background:#960000!important}.mtkoverflow{background-color:var(--vscode-button-background, --vscode-editor-background);color:var(--vscode-button-foreground, --vscode-editor-foreground);border-width:1px;border-style:solid;border-color:var(--vscode-contrastBorder);border-radius:2px;padding:4px;cursor:pointer}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{user-select:initial;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkw{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .lines-decorations{position:absolute;top:0;background:#fff}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0;box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .blockDecorations-container{position:absolute;top:0;pointer-events:none}.monaco-editor .blockDecorations-block{position:absolute;box-sizing:border-box}.monaco-editor .mwh{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}:root{--vscode-sash-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--vscode-sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--vscode-sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--vscode-sash-size) * 2);width:calc(var(--vscode-sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size) * -.5);top:calc(var(--vscode-sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--vscode-sash-size) * -.5);bottom:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--vscode-sash-size) * -.5);left:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--vscode-sash-size) * -.5);right:calc(var(--vscode-sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;background:transparent}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.hover:before,.monaco-sash.active:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{width:var(--vscode-sash-hover-size);left:calc(50% - (var(--vscode-sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - (var(--vscode-sash-hover-size) / 2))}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:#0ff}.monaco-sash.debug.disabled{background:#0ff3}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:#00000008}.monaco-diff-editor.vs-dark .diffOverview{background:#ffffff03}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:#0000}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:#ababab66}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign,.monaco-editor.hc-light .insert-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-editor .char-insert,.monaco-diff-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-diff-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground, --vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-editor .char-insert{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-insertedTextBorder)}.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .line-insert,.monaco-editor.hc-black .char-insert,.monaco-editor.hc-light .char-insert{border-style:dashed}.monaco-editor .line-delete,.monaco-editor .char-delete{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-removedTextBorder)}.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .line-delete,.monaco-editor.hc-black .char-delete,.monaco-editor.hc-light .char-delete{border-style:dashed}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .gutter-insert,.monaco-diff-editor .gutter-insert{background-color:var(--vscode-diffEditorGutter-insertedLineBackground, --vscode-diffEditor-insertedLineBackground, --vscode-diffEditor-insertedTextBackground)}.monaco-editor .char-delete,.monaco-diff-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .line-delete,.monaco-diff-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground, --vscode-diffEditor-removedTextBackground)}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .gutter-delete,.monaco-diff-editor .gutter-delete{background-color:var(--vscode-diffEditorGutter-removedLineBackground, --vscode-diffEditor-removedLineBackground, --vscode-diffEditor-removedTextBackground)}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow);border-left:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block;color:var(--vscode-editorLineNumber-foreground)}.monaco-diff-editor .diff-review{position:absolute;user-select:none;-webkit-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute;box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-select-box-dropdown-padding{--dropdown-padding-top: 1px;--dropdown-padding-bottom: 1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top: 3px;--dropdown-padding-bottom: 4px}.monaco-select-box-dropdown-container{display:none;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{line-height:15px;font-family:var(--monaco-monospace-font)}.monaco-select-box-dropdown-container.visible{display:flex;flex-direction:column;text-align:left;width:1px;overflow:hidden;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{flex:0 0 auto;align-self:flex-start;padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;width:100%;overflow:hidden;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left;opacity:.7}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{text-overflow:ellipsis;overflow:hidden;padding-right:10px;white-space:nowrap;float:right}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{flex:1 1 auto;align-self:flex-start;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{overflow:hidden;max-height:0px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{width:100%;cursor:pointer;border-radius:2px}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{font-size:11px;border-radius:5px}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{display:flex;font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.6}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{display:flex;align-items:center;cursor:default}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.context-view{position:absolute}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;color:inherit}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px #0F4A85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap;overflow:hidden}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--vscode-sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-custom-toggle{margin-left:2px;float:left;cursor:pointer;overflow:hidden;width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:1px;box-sizing:border-box;user-select:none;-webkit-user-select:none}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-light .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;border-radius:2px;font-size:inherit}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls,.hc-light .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls,.hc-light .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:#fdff00cc}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:#fdff00cc}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:#ffffff70}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:#ffffff70}99%{background:transparent}}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{position:absolute;top:0;display:flex;padding:3px;max-width:200px;z-index:100;margin:0 6px;border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{display:flex!important;align-items:center;justify-content:center;cursor:grab;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;border-radius:2px;text-align:center;cursor:pointer;justify-content:center;align-items:center;border:1px solid var(--vscode-button-border, transparent);line-height:18px}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;padding:0 4px;overflow:hidden;height:28px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;width:0;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{display:flex;justify-content:center;align-items:center;font-weight:400;font-style:inherit;padding:4px 0}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus,.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{padding:4px 0;cursor:default}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border, transparent);border-left-width:0!important;border-radius:0 2px 2px 0}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{display:flex;flex-direction:column;align-items:center;margin:4px 5px}.monaco-description-button .monaco-button-description{font-style:italic;font-size:11px;padding:4px 20px}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{display:flex;justify-content:center;align-items:center}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;transform:translateZ(0);animation-timing-function:linear}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.quick-input-widget{position:absolute;width:600px;z-index:2550;left:50%;margin-left:-300px;-webkit-app-region:no-drag;border-radius:6px}.quick-input-titlebar{display:flex;align-items:center;border-top-left-radius:5px;border-top-right-radius:5px}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:8px 6px 6px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:25px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{overflow:hidden;max-height:440px;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px}.quick-input-list .quick-input-list-entry-action-bar{margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box;background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border)}@font-face{font-family:codicon;font-display:block;src:url(./codicon-9NdTC9YB.ttf) format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-value,.monaco-editor .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-enum{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px;color:var(--vscode-inputValidation-infoForeground);background-color:var(--vscode-inputValidation-infoBackground);border:1px solid var(--vscode-inputValidation-infoBorder)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.action-widget{font-size:13px;border-radius:0;min-width:160px;max-width:500px;z-index:40;display:block;width:100%;border:1px solid var(--vscode-editorWidget-border)!important;background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground)}.context-view-block{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:-1}.context-view-pointerBlock{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:2}.action-widget .monaco-list{user-select:none;-webkit-user-select:none;border:none!important;border-width:0!important}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{padding:0 10px;white-space:nowrap;cursor:pointer;touch-action:none;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-quickInputList-focusBackground)!important;color:var(--vscode-quickInputList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder, transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-pickerGroup-foreground)!important;font-weight:600}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{cursor:default!important;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;background-color:transparent!important;outline:0 solid!important}.action-widget .monaco-list-row.action{display:flex;gap:6px;align-items:center}.action-widget .monaco-list-row.action.option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action.option-disabled .codicon{opacity:.4}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1;overflow:hidden;text-overflow:ellipsis}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid var(--vscode-editorHoverWidget-border)}.action-widget .action-widget-action-bar:before{display:block;content:"";width:100%}.action-widget .action-widget-action-bar .actions-container{padding:0 8px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:transparent!important}.monaco-editor .lightBulbWidget{display:flex;align-items:center;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground, var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{position:absolute;top:0;left:0;content:"";display:block;width:100%;height:100%;opacity:.3;background-color:var(--vscode-editor-background);z-index:1}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault)}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{user-select:none;-webkit-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize)}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.colorpicker-widget{height:190px;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:solid .1em #000;box-sizing:border-box;margin:.1em .2em 0;width:.8em;height:.8em;line-height:.8em;display:inline-block;cursor:pointer}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:solid .1em #eee}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:216px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px;position:absolute;left:8px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,red,#ff0 17%,#0f0 33%,#0ff,#00f 67%,#f0f 83%,red)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;justify-content:space-between;flex-wrap:nowrap}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:baseline;font-size:13px;margin-left:20px;min-width:0;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px;align-self:center}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px;background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder, transparent);box-sizing:border-box}.monaco-hover{cursor:default;position:absolute;overflow:hidden;z-index:50;user-select:text;-webkit-user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:500px;word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);vertical-align:middle;padding:1px 3px}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;user-select:text;-webkit-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{color:var(--vscode-textLink-activeForeground)}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .zone-widget .codicon.codicon-error,.markers-panel .marker-icon.error,.markers-panel .marker-icon .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.extension-editor .codicon.codicon-error,.preferences-editor .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-warning,.markers-panel .marker-icon.warning,.markers-panel .marker-icon .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.extension-editor .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-info,.markers-panel .marker-icon.info,.markers-panel .marker-icon .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.extension-editor .codicon.codicon-info,.preferences-editor .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .inlineSuggestionsHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .custom-actions .action-item:nth-child(2) a{display:flex;min-width:19px;justify-content:center}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-editor.vs .dnd-target,.monaco-editor.hc-light .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines{cursor:copy}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px));border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:3px 0 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed{transition:initial}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"⋯";display:inline;line-height:1em;cursor:pointer}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder, transparent)}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent)}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background)}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-light .suggest-widget,.monaco-editor.hc-light .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid var(--vscode-editorSuggestWidget-border);overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default;color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);border-left-color:var(--vscode-editor-linkedEditingBackground)}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-selectionHighlightBorder)}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightBorder)}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightStrongBorder)}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightTextBorder)}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{z-index:39;display:flex;flex-direction:column;line-height:1.5em;cursor:default;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{content:"";display:block;height:100%;position:absolute;opacity:.5;border-left:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{content:"";display:block;position:absolute;left:0;width:100%;padding-top:4px;opacity:.5;border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs code{font-family:var(--monaco-monospace-font);border-radius:3px;padding:0 .4em;background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input{padding:3px;border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-line{color:var(--vscode-editorLineNumber-foreground);overflow:hidden;white-space:nowrap;display:inline-block}.monaco-editor .sticky-line-number{text-align:right;float:left}.monaco-editor .sticky-line-root{background-color:inherit;overflow:hidden;white-space:nowrap;width:100%}.monaco-editor.hc-black .sticky-widget,.monaco-editor.hc-light .sticky-widget{border-bottom:1px solid var(--vscode-contrastBorder)}.monaco-editor .sticky-line-root:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 3px 2px -2px;z-index:4;background-color:var(--vscode-editorStickyScroll-background)}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);background-color:var(--vscode-editorUnicodeHighlight-background);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;width:100%;font-size:12px;display:flex;overflow:visible;height:26px;background:var(--vscode-banner-background)}.editor-banner .icon-container{display:flex;flex-shrink:0;align-items:center;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-repeat:no-repeat;background-position:center center;background-size:16px;width:16px;padding:0;margin:0 6px 0 10px}.editor-banner .message-container{display:flex;align-items:center;line-height:26px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-banner .message-container p{margin-block-start:0;margin-block-end:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{padding:3px;margin-left:12px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .accessibilityHelpWidget{padding:10px;vertical-align:middle;overflow:scroll;color:var(--vscode-editorWidget-foreground);background-color:var(--vscode-editorWidget-background);box-shadow:0 2px 8px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526}.monaco-editor .tokens-inspect-widget{z-index:50;user-select:text;-webkit-user-select:text;padding:10px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{height:1px;border:0;background-color:var(--vscode-editorHoverWidget-border)}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}hr[data-v-bb5c0884]{opacity:.1}.drawer[data-v-bb5c0884]{position:fixed;right:0;top:0;width:900px;height:calc(100vh - 22px);background:var(--hl-bg);z-index:999;opacity:.97;padding:10px}.drawer h4[data-v-bb5c0884]{margin:2px}.drawer .settings .buttons[data-v-bb5c0884]{margin-top:10px}.drawer .settings .buttons button[data-v-bb5c0884],.drawer .column-edit button[data-v-bb5c0884]{margin-right:5px}.drawer .input[data-v-bb5c0884]{font-family:Roboto mono,sans-serif;font-size:12px;padding:5px;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.drawer .col-row[data-v-bb5c0884]{display:flex}.drawer .col-row .name[data-v-bb5c0884]{width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.drawer .inner-drawer[data-v-bb5c0884]{margin-top:10px;height:calc(100% - 15px);overflow-y:scroll}.drawer .inner-drawer .header[data-v-bb5c0884]{width:100%;text-align:right}.drawer pre[data-v-bb5c0884]{margin:6px 0;background:var(--hl-bg2);padding:10px;white-space:pre-wrap}.btn-sm[data-v-bb5c0884]{padding:4px 6px;margin-right:4px;border-radius:4px;font-size:12px}.btn-sm.active[data-v-bb5c0884]{color:#ffffff4d}.btn-sm.grey[data-v-bb5c0884]{color:#ffffff80}.overlay[data-v-1a4b7156]{position:fixed;top:0;left:0;width:100%;height:100%;background:#000;opacity:.5;z-index:9999}.modal[data-v-1a4b7156]{position:fixed;display:flex;flex-direction:column;top:40px;left:50%;transform:translate(-50%);border:3px solid rgba(255,255,255,.1);border-radius:4px;width:900px;max-height:calc(100% - 100px);overflow-y:scroll;background:var(--hl-bg);z-index:10000;padding:20px}.modal .close[data-v-1a4b7156]{text-align:right}.input{font-family:Roboto mono,sans-serif;font-size:12px;padding:5px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.err{padding:10px;margin:10px 0;background:#b53c3c}.demo .top-bar{padding-top:50px!important}.demo .layout{height:calc(100vh - 116px)!important}.demo-bar{position:fixed;display:flex;align-items:center;justify-content:center;top:0;width:100%;font-weight:600;height:40px;background:#402c6b;border-bottom:1px solid #583c93}.demo-bar span{margin-right:20px}.demo-bar button{padding:4px 8px;font-size:12px;border-radius:7px;margin-right:4px}.container{height:100%;display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center}.container button{margin-left:5px}button[data-v-752ca984]{margin-right:5px}.noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;right:0;height:100%;width:100%;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{top:-100%;width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;right:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;right:-6px;bottom:-17px}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background:#fafafa;border-radius:4px;border:1px solid #D3D3D3;box-shadow:inset 0 1px 1px #f0f0f0,0 3px 6px -5px #bbb}.noUi-connects{border-radius:3px}.noUi-connect{background:#3fb8af}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #D9D9D9;border-radius:3px;background:#fff;cursor:default;box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ebebeb,0 3px 6px -3px #bbb}.noUi-active{box-shadow:inset 0 0 1px #fff,inset 0 1px 7px #ddd,0 3px 6px -3px #bbb}.noUi-handle:before,.noUi-handle:after{content:"";display:block;position:absolute;height:14px;width:1px;background:#e8e7e6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:before,.noUi-vertical .noUi-handle:after{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background:#b8b8b8}[disabled].noUi-target,[disabled].noUi-handle,[disabled] .noUi-handle{cursor:not-allowed}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#ccc}.noUi-marker-sub,.noUi-marker-large{background:#aaa}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0,-50%);transform:translateY(-50%);padding-left:25px}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0,50%);transform:translateY(50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #D9D9D9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translateY(-50%);top:50%;right:120%}.noUi-horizontal .noUi-origin>.noUi-tooltip{-webkit-transform:translate(50%,0);transform:translate(50%);left:auto;bottom:10px}.noUi-vertical .noUi-origin>.noUi-tooltip{-webkit-transform:translate(0,-18px);transform:translateY(-18px);top:auto;right:28px}.v-popper__inner{max-width:360px!important}#slider-square{width:90%;margin:0 auto}pre{margin:6px 0;background:#1e1e1e;padding:10px;white-space:pre-wrap;word-wrap:break-word}.nofacets{text-align:center;box-sizing:border-box;overflow:hidden;padding:30px 40px 0;font-size:22px;border-top:1px solid var(--hl-bg)}.nofacets span{font-size:14px}.facet{border-top:1px solid var(--hl-bg);font-size:13px;line-height:16px;cursor:pointer;margin-top:10px}.facet .facet-toggle-vis{font-size:9px}.facet .facet-items{max-height:150px;overflow-y:scroll;border-bottom:1px solid rgba(255,255,255,.08)}.facet .facet-items:hover{max-height:200px}.facet .facet-items .facet-item{display:flex;flex-direction:row;justify-content:space-between;border-radius:2px;padding:4px}.facet .facet-items .facet-item.facet-selected{background:var(--hl-bg2);font-weight:600}.facet .facet-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%}.facet .facet-item:hover{background-color:var(--hl-bg)}.facet .facet-header{display:flex;flex-direction:row;justify-content:space-between}.facet .facet-header .facet-title{font-weight:700}.facet .facet-val{text-align:right;width:30px}.top-bar{height:50px;display:flex;align-items:center;flex-direction:row;padding:8px}.top-bardiv{flex:1 1 auto}.top-bar .left{display:flex;align-items:center;margin-left:20px;margin-right:20px}.top-bar .left .logo img{height:40px}.top-bar .left .docs{margin-left:10px;font-size:12px;border:1px solid var(--hl-bg);padding:4px 8px;border-radius:6px;display:flex;flex-direction:row;align-items:center}.top-bar .left .docs svg{margin-left:5px}.top-bar .right{flex-grow:1;display:flex;align-items:center}.top-bar .right .searchbar{font-family:Roboto mono,sans-serif;font-size:12px;padding:5px;width:100%;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.top-bar .right .search-error{font-family:Roboto mono,sans-serif;font-size:12px;padding:5px;background:var(--hl-bg);margin-left:10px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;-o-box-sizing:border-box;-ms-box-sizing:border-box;box-sizing:border-box}.top-bar .end{display:flex;align-items:center;margin:0 0 0 10px}.top-bar .end .ctrls{margin-right:5px}.top-bar .end .ctrls .ctrl-btn{padding:8px;border-radius:0}.top-bar .end .ctrls .ctrl-btn:first-child{border-top-left-radius:8px;border-bottom-left-radius:8px}.top-bar .end .ctrls .ctrl-btn:last-child{border-top-right-radius:8px;border-bottom-right-radius:8px}.layout{display:flex;height:calc(100vh - 66px);overflow:hidden}.layout .mid-col{background:#fff;width:4px;height:100%;opacity:.2;cursor:ew-resize}.layout .mid-col.freeze{width:2px!important;cursor:auto;opacity:.1}.layout .left-col{overflow:auto;overflow-x:hidden;min-width:180px;border-right:1px solid var(--hl-bg);padding-right:5px}.layout .left-col.empty{min-width:unset!important;width:20px!important}.layout .left-col .counter{text-align:center;padding-bottom:10px}.layout .right-col{padding-left:5px;overflow:scroll;width:100%;height:100%}.layout .right-col .trace-block{background:var(--info)}.layout .right-col .clickable{text-decoration:underline;font-weight:700;cursor:pointer}.layout .right-col .clickable:hover{text-decoration:none}.layout .right-col .stick{position:fixed;right:15px;bottom:10px;font-size:11px}.layout .right-col .stick.sticked{border:1px solid #646cff}.layout .right-col .table{font-family:Roboto mono,sans-serif;font-size:12px;border:none;border-collapse:separate;border-spacing:0}.layout .right-col .table .header-border{height:100%;display:inline;width:3px;cursor:ew-resize;background:#00000040;float:right}.layout .right-col .table td,.layout .right-col .table th{padding:1px 2px}.layout .right-col .table .column-name span{pointer-events:none;-webkit-user-select:none;user-select:none}.layout .right-col .table .column-name:hover .hide-icon{visibility:visible!important}.layout .right-col .table th{position:sticky;top:0;background-color:var(--hl-bg);padding:2px 0;z-index:99}.layout .right-col .table td div{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;word-wrap:break-word;word-break:break-all}.layout .right-col .table tr{cursor:pointer}.layout .right-col .table tr .mark{display:block;width:10px;font-size:7px;line-height:1px;opacity:.1}.layout .right-col .table tr .mark:hover{opacity:.7}.layout .right-col .table tr .mark.active{opacity:1}.layout .right-col .table tr.row.opened{background-color:var(--hl-bg);opacity:.8}.layout .right-col .table tr.row:hover{background-color:var(--hl-bg)!important;opacity:1}.layout .right-col .table tr.row.open{font-weight:800;background-color:var(--hl-bg3)!important}.btn-sm{padding:4px 6px;margin-right:4px;border-radius:4px;font-size:12px}.kdb,kbd{margin:0;border:1px solid white;opacity:.7;font-size:12px;padding:1px;border-radius:2px}.v-popper--theme-tooltip .v-popper__inner{background:#171717!important;padding:5px 8px!important;font-size:13px}.v-popper--theme-tooltip .v-popper__arrow-container{visibility:hidden}.alert{margin-top:10px;margin-bottom:10px;padding:10px;border:1px solid var(--hl-bg4);background:var(--hl-bg3);border-radius:7px}.alert.alert-info{border:1px solid rgb(95,118,194);background:var(--info)}.resize-observer[data-v-b329ee4c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}.resize-observer[data-v-b329ee4c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}.v-popper__popper{z-index:10000;top:0;left:0;outline:none}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;transition:opacity .15s,visibility .15s;pointer-events:none}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{transition:none!important}.v-popper__backdrop{position:absolute;top:0;left:0;width:100%;height:100%;display:none}.v-popper__inner{position:relative;box-sizing:border-box;overflow-y:auto}.v-popper__inner>div{position:relative;z-index:1;max-width:inherit;max-height:inherit}.v-popper__arrow-container{position:absolute;width:10px;height:10px}.v-popper__popper--arrow-overflow .v-popper__arrow-container,.v-popper__popper--no-positioning .v-popper__arrow-container{display:none}.v-popper__arrow-inner,.v-popper__arrow-outer{border-style:solid;position:absolute;top:0;left:0;width:0;height:0}.v-popper__arrow-inner{visibility:hidden;border-width:7px}.v-popper__arrow-outer{border-width:6px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{left:-2px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{left:-1px}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-outer{border-bottom-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{border-top-width:0;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-inner{top:-4px}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-outer{top:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{top:-2px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{top:-1px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{border-left-width:0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-inner{left:-4px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow-outer{left:-6px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-10px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner,.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-outer{border-right-width:0;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-inner{left:-2px}.v-popper--theme-tooltip .v-popper__inner{background:#000c;color:#fff;border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow-outer{border-color:#000c}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#000;border-radius:6px;border:1px solid #ddd;box-shadow:0 6px 30px #0000001a}.v-popper--theme-dropdown .v-popper__arrow-inner{visibility:visible;border-color:#fff}.v-popper--theme-dropdown .v-popper__arrow-outer{border-color:#ddd} diff --git a/http/assets/assets/index-rjYvFtqJ.js b/http/assets/assets/index-hNNUgwiq.js similarity index 75% rename from http/assets/assets/index-rjYvFtqJ.js rename to http/assets/assets/index-hNNUgwiq.js index 044830f..15b787b 100644 --- a/http/assets/assets/index-rjYvFtqJ.js +++ b/http/assets/assets/index-hNNUgwiq.js @@ -1,24 +1,24 @@ -var Eci=Object.defineProperty;var _ci=(r,e,i)=>e in r?Eci(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i;var Rc=(r,e,i)=>(_ci(r,typeof e!="symbol"?e+"":e,i),i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function i(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=i(a);fetch(a.href,o)}})();/** +var xci=Object.defineProperty;var vci=(r,e,i)=>e in r?xci(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i;var Oc=(r,e,i)=>(vci(r,typeof e!="symbol"?e+"":e,i),i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function i(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=i(a);fetch(a.href,o)}})();/** * @vue/shared v3.4.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function XWe(r,e){const i=new Set(r.split(","));return e?n=>i.has(n.toLowerCase()):n=>i.has(n)}const Xf={},$G=[],HC=()=>{},Dci=()=>!1,t6e=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),eGe=r=>r.startsWith("onUpdate:"),M_=Object.assign,tGe=(r,e)=>{const i=r.indexOf(e);i>-1&&r.splice(i,1)},xci=Object.prototype.hasOwnProperty,r1=(r,e)=>xci.call(r,e),R0=Array.isArray,UG=r=>uae(r)==="[object Map]",i6e=r=>uae(r)==="[object Set]",cpt=r=>uae(r)==="[object Date]",uc=r=>typeof r=="function",ng=r=>typeof r=="string",ML=r=>typeof r=="symbol",Tf=r=>r!==null&&typeof r=="object",Txt=r=>(Tf(r)||uc(r))&&uc(r.then)&&uc(r.catch),Lxt=Object.prototype.toString,uae=r=>Lxt.call(r),vci=r=>uae(r).slice(8,-1),Nxt=r=>uae(r)==="[object Object]",iGe=r=>ng(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,W3e=XWe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),n6e=r=>{const e=Object.create(null);return i=>e[i]||(e[i]=r(i))},Cci=/-(\w)/g,yA=n6e(r=>r.replace(Cci,(e,i)=>i?i.toUpperCase():"")),bci=/\B([A-Z])/g,VR=n6e(r=>r.replace(bci,"-$1").toLowerCase()),u6e=n6e(r=>r.charAt(0).toUpperCase()+r.slice(1)),eIe=n6e(r=>r?`on${u6e(r)}`:""),zL=(r,e)=>!Object.is(r,e),G3e=(r,e)=>{for(let i=0;i{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:i})},NOe=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let dpt;const Pxt=()=>dpt||(dpt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function P3(r){if(R0(r)){const e={};for(let i=0;i{if(i){const n=i.split(kci);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Uh(r){let e="";if(ng(r))e=r;else if(R0(r))for(let i=0;ikJ(i,e))}const Yc=r=>ng(r)?r:r==null?"":R0(r)||Tf(r)&&(r.toString===Lxt||!uc(r.toString))?JSON.stringify(r,Ixt,2):String(r),Ixt=(r,e)=>e&&e.__v_isRef?Ixt(r,e.value):UG(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[n,a],o)=>(i[tIe(n,o)+" =>"]=a,i),{})}:i6e(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>tIe(i))}:ML(e)?tIe(e):Tf(e)&&!R0(e)&&!Nxt(e)?String(e):e,tIe=(r,e="")=>{var i;return ML(r)?`Symbol(${(i=r.description)!=null?i:e})`:r};/** +**/function tGe(r,e){const i=new Set(r.split(","));return e?n=>i.has(n.toLowerCase()):n=>i.has(n)}const em={},qG=[],WC=()=>{},Cci=()=>!1,i6e=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),iGe=r=>r.startsWith("onUpdate:"),z_=Object.assign,nGe=(r,e)=>{const i=r.indexOf(e);i>-1&&r.splice(i,1)},bci=Object.prototype.hasOwnProperty,a1=(r,e)=>bci.call(r,e),H0=Array.isArray,ZG=r=>sae(r)==="[object Map]",n6e=r=>sae(r)==="[object Set]",fpt=r=>sae(r)==="[object Date]",rc=r=>typeof r=="function",og=r=>typeof r=="string",zL=r=>typeof r=="symbol",Lf=r=>r!==null&&typeof r=="object",Pxt=r=>(Lf(r)||rc(r))&&rc(r.then)&&rc(r.catch),Mxt=Object.prototype.toString,sae=r=>Mxt.call(r),yci=r=>sae(r).slice(8,-1),zxt=r=>sae(r)==="[object Object]",uGe=r=>og(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,G3e=tGe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),u6e=r=>{const e=Object.create(null);return i=>e[i]||(e[i]=r(i))},kci=/-(\w)/g,FA=u6e(r=>r.replace(kci,(e,i)=>i?i.toUpperCase():"")),Fci=/\B([A-Z])/g,HR=u6e(r=>r.replace(Fci,"-$1").toLowerCase()),r6e=u6e(r=>r.charAt(0).toUpperCase()+r.slice(1)),iIe=u6e(r=>r?`on${r6e(r)}`:""),IL=(r,e)=>!Object.is(r,e),J3e=(r,e)=>{for(let i=0;i{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:i})},MOe=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let mpt;const Ixt=()=>mpt||(mpt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function M3(r){if(H0(r)){const e={};for(let i=0;i{if(i){const n=i.split(Sci);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Zh(r){let e="";if(og(r))e=r;else if(H0(r))for(let i=0;iAJ(i,e))}const Qc=r=>og(r)?r:r==null?"":H0(r)||Lf(r)&&(r.toString===Mxt||!rc(r.toString))?JSON.stringify(r,jxt,2):String(r),jxt=(r,e)=>e&&e.__v_isRef?jxt(r,e.value):ZG(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[n,a],o)=>(i[nIe(n,o)+" =>"]=a,i),{})}:n6e(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>nIe(i))}:zL(e)?nIe(e):Lf(e)&&!H0(e)&&!zxt(e)?String(e):e,nIe=(r,e="")=>{var i;return zL(r)?`Symbol(${(i=r.description)!=null?i:e})`:r};/** * @vue/reactivity v3.4.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let z6;class Rxt{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=z6,!e&&z6&&(this.index=(z6.scopes||(z6.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const i=z6;try{return z6=this,e()}finally{z6=i}}}on(){z6=this}off(){z6=this.parent}stop(e){if(this._active){let i,n;for(i=0,n=this.effects.length;i=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),KR()}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=mL,i=HI;try{return mL=!0,HI=this,this._runnings++,hpt(this),this.fn()}finally{fpt(this),this._runnings--,HI=i,mL=e}}stop(){var e;this.active&&(hpt(this),fpt(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function Pci(r){return r.value}function hpt(r){r._trackId++,r._depsLength=0}function fpt(r){if(r.deps&&r.deps.length>r._depsLength){for(let e=r._depsLength;e{const i=new Map;return i.cleanup=r,i.computed=e,i},jDe=new WeakMap,KI=Symbol(""),zOe=Symbol("");function fx(r,e,i){if(mL&&HI){let n=jDe.get(r);n||jDe.set(r,n=new Map);let a=n.get(i);a||n.set(i,a=Gxt(()=>n.delete(i))),Kxt(HI,a)}}function KS(r,e,i,n,a,o){const c=jDe.get(r);if(!c)return;let h=[];if(e==="clear")h=[...c.values()];else if(i==="length"&&R0(r)){const g=Number(n);c.forEach((_,x)=>{(x==="length"||!ML(x)&&x>=g)&&h.push(_)})}else switch(i!==void 0&&h.push(c.get(i)),e){case"add":R0(r)?iGe(i)&&h.push(c.get("length")):(h.push(c.get(KI)),UG(r)&&h.push(c.get(zOe)));break;case"delete":R0(r)||(h.push(c.get(KI)),UG(r)&&h.push(c.get(zOe)));break;case"set":UG(r)&&h.push(c.get(KI));break}uGe();for(const g of h)g&&Wxt(g,2);rGe()}function Mci(r,e){var i;return(i=jDe.get(r))==null?void 0:i.get(e)}const zci=XWe("__proto__,__v_isRef,__isVue"),Jxt=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(ML)),mpt=Ici();function Ici(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...i){const n=o1(this);for(let o=0,c=this.length;o{r[e]=function(...i){HR(),uGe();const n=o1(this)[e].apply(this,i);return rGe(),KR(),n}}),r}function Rci(r){const e=o1(this);return fx(e,"has",r),e.hasOwnProperty(r)}class $xt{constructor(e=!1,i=!1){this._isReadonly=e,this._shallow=i}get(e,i,n){const a=this._isReadonly,o=this._shallow;if(i==="__v_isReactive")return!a;if(i==="__v_isReadonly")return a;if(i==="__v_isShallow")return o;if(i==="__v_raw")return n===(a?o?Yci:Yxt:o?Zxt:qxt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=R0(e);if(!a){if(c&&r1(mpt,i))return Reflect.get(mpt,i,n);if(i==="hasOwnProperty")return Rci}const h=Reflect.get(e,i,n);return(ML(i)?Jxt.has(i):zci(i))||(a||fx(e,"get",i),o)?h:bp(h)?c&&iGe(i)?h:h.value:Tf(h)?a?Qxt(h):rae(h):h}}class Uxt extends $xt{constructor(e=!1){super(!1,e)}set(e,i,n,a){let o=e[i];if(!this._shallow){const g=FJ(o);if(!VDe(n)&&!FJ(n)&&(o=o1(o),n=o1(n)),!R0(e)&&bp(o)&&!bp(n))return g?!1:(o.value=n,!0)}const c=R0(e)&&iGe(i)?Number(i)r,r6e=r=>Reflect.getPrototypeOf(r);function m_e(r,e,i=!1,n=!1){r=r.__v_raw;const a=o1(r),o=o1(e);i||(zL(e,o)&&fx(a,"get",e),fx(a,"get",o));const{has:c}=r6e(a),h=n?aGe:i?lGe:Due;if(c.call(a,e))return h(r.get(e));if(c.call(a,o))return h(r.get(o));r!==a&&r.get(e)}function p_e(r,e=!1){const i=this.__v_raw,n=o1(i),a=o1(r);return e||(zL(r,a)&&fx(n,"has",r),fx(n,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)}function g_e(r,e=!1){return r=r.__v_raw,!e&&fx(o1(r),"iterate",KI),Reflect.get(r,"size",r)}function ppt(r){r=o1(r);const e=o1(this);return r6e(e).has.call(e,r)||(e.add(r),KS(e,"add",r,r)),this}function gpt(r,e){e=o1(e);const i=o1(this),{has:n,get:a}=r6e(i);let o=n.call(i,r);o||(r=o1(r),o=n.call(i,r));const c=a.call(i,r);return i.set(r,e),o?zL(e,c)&&KS(i,"set",r,e):KS(i,"add",r,e),this}function Ept(r){const e=o1(this),{has:i,get:n}=r6e(e);let a=i.call(e,r);a||(r=o1(r),a=i.call(e,r)),n&&n.call(e,r);const o=e.delete(r);return a&&KS(e,"delete",r,void 0),o}function _pt(){const r=o1(this),e=r.size!==0,i=r.clear();return e&&KS(r,"clear",void 0,void 0),i}function E_e(r,e){return function(n,a){const o=this,c=o.__v_raw,h=o1(c),g=e?aGe:r?lGe:Due;return!r&&fx(h,"iterate",KI),c.forEach((_,x)=>n.call(a,g(_),g(x),o))}}function __e(r,e,i){return function(...n){const a=this.__v_raw,o=o1(a),c=UG(o),h=r==="entries"||r===Symbol.iterator&&c,g=r==="keys"&&c,_=a[r](...n),x=i?aGe:e?lGe:Due;return!e&&fx(o,"iterate",g?zOe:KI),{next(){const{value:y,done:S}=_.next();return S?{value:y,done:S}:{value:h?[x(y[0]),x(y[1])]:x(y),done:S}},[Symbol.iterator](){return this}}}}function DT(r){return function(...e){return r==="delete"?!1:r==="clear"?void 0:this}}function Kci(){const r={get(o){return m_e(this,o)},get size(){return g_e(this)},has:p_e,add:ppt,set:gpt,delete:Ept,clear:_pt,forEach:E_e(!1,!1)},e={get(o){return m_e(this,o,!1,!0)},get size(){return g_e(this)},has:p_e,add:ppt,set:gpt,delete:Ept,clear:_pt,forEach:E_e(!1,!0)},i={get(o){return m_e(this,o,!0)},get size(){return g_e(this,!0)},has(o){return p_e.call(this,o,!0)},add:DT("add"),set:DT("set"),delete:DT("delete"),clear:DT("clear"),forEach:E_e(!0,!1)},n={get(o){return m_e(this,o,!0,!0)},get size(){return g_e(this,!0)},has(o){return p_e.call(this,o,!0)},add:DT("add"),set:DT("set"),delete:DT("delete"),clear:DT("clear"),forEach:E_e(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=__e(o,!1,!1),i[o]=__e(o,!0,!1),e[o]=__e(o,!1,!0),n[o]=__e(o,!0,!0)}),[r,i,e,n]}const[Wci,Gci,Jci,$ci]=Kci();function oGe(r,e){const i=e?r?$ci:Jci:r?Gci:Wci;return(n,a,o)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(r1(i,a)&&a in n?i:n,a,o)}const Uci={get:oGe(!1,!1)},qci={get:oGe(!1,!0)},Zci={get:oGe(!0,!1)},qxt=new WeakMap,Zxt=new WeakMap,Yxt=new WeakMap,Yci=new WeakMap;function Qci(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Xci(r){return r.__v_skip||!Object.isExtensible(r)?0:Qci(vci(r))}function rae(r){return FJ(r)?r:sGe(r,!1,jci,Uci,qxt)}function edi(r){return sGe(r,!1,Hci,qci,Zxt)}function Qxt(r){return sGe(r,!0,Vci,Zci,Yxt)}function sGe(r,e,i,n,a){if(!Tf(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const o=a.get(r);if(o)return o;const c=Xci(r);if(c===0)return r;const h=new Proxy(r,c===2?n:i);return a.set(r,h),h}function pL(r){return FJ(r)?pL(r.__v_raw):!!(r&&r.__v_isReactive)}function FJ(r){return!!(r&&r.__v_isReadonly)}function VDe(r){return!!(r&&r.__v_isShallow)}function Xxt(r){return pL(r)||FJ(r)}function o1(r){const e=r&&r.__v_raw;return e?o1(e):r}function a6e(r){return ODe(r,"__v_skip",!0),r}const Due=r=>Tf(r)?rae(r):r,lGe=r=>Tf(r)?Qxt(r):r;class e6t{constructor(e,i,n,a){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new nGe(()=>e(this._value),()=>IOe(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const e=o1(this);return(!e._cacheable||e.effect.dirty)&&zL(e._value,e._value=e.effect.run())&&IOe(e,2),t6t(e),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function tdi(r,e,i=!1){let n,a;const o=uc(r);return o?(n=r,a=HC):(n=r.get,a=r.set),new e6t(n,a,o||!a,i)}function t6t(r){mL&&HI&&(r=o1(r),Kxt(HI,r.dep||(r.dep=Gxt(()=>r.dep=void 0,r instanceof e6t?r:void 0))))}function IOe(r,e=2,i){r=o1(r);const n=r.dep;n&&Wxt(n,e)}function bp(r){return!!(r&&r.__v_isRef===!0)}function Ws(r){return idi(r,!1)}function idi(r,e){return bp(r)?r:new ndi(r,e)}class ndi{constructor(e,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?e:o1(e),this._value=i?e:Due(e)}get value(){return t6t(this),this._value}set value(e){const i=this.__v_isShallow||VDe(e)||FJ(e);e=i?e:o1(e),zL(e,this._rawValue)&&(this._rawValue=e,this._value=i?e:Due(e),IOe(this,2))}}function Ju(r){return bp(r)?r.value:r}const udi={get:(r,e,i)=>Ju(Reflect.get(r,e,i)),set:(r,e,i,n)=>{const a=r[e];return bp(a)&&!bp(i)?(a.value=i,!0):Reflect.set(r,e,i,n)}};function i6t(r){return pL(r)?r:new Proxy(r,udi)}function rdi(r){const e=R0(r)?new Array(r.length):{};for(const i in r)e[i]=odi(r,i);return e}class adi{constructor(e,i,n){this._object=e,this._key=i,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Mci(o1(this._object),this._key)}}function odi(r,e,i){const n=r[e];return bp(n)?n:new adi(r,e,i)}/** +**/let I6;class Vxt{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=I6,!e&&I6&&(this.index=(I6.scopes||(I6.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const i=I6;try{return I6=this,e()}finally{I6=i}}}on(){I6=this}off(){I6=this.parent}stop(e){if(this._active){let i,n;for(i=0,n=this.effects.length;i=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),WR()}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=gL,i=KI;try{return gL=!0,KI=this,this._runnings++,ppt(this),this.fn()}finally{gpt(this),this._runnings--,KI=i,gL=e}}stop(){var e;this.active&&(ppt(this),gpt(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function Ici(r){return r.value}function ppt(r){r._trackId++,r._depsLength=0}function gpt(r){if(r.deps&&r.deps.length>r._depsLength){for(let e=r._depsLength;e{const i=new Map;return i.cleanup=r,i.computed=e,i},VDe=new WeakMap,WI=Symbol(""),ROe=Symbol("");function mx(r,e,i){if(gL&&KI){let n=VDe.get(r);n||VDe.set(r,n=new Map);let a=n.get(i);a||n.set(i,a=Uxt(()=>n.delete(i))),Jxt(KI,a)}}function GS(r,e,i,n,a,o){const c=VDe.get(r);if(!c)return;let h=[];if(e==="clear")h=[...c.values()];else if(i==="length"&&H0(r)){const g=Number(n);c.forEach((_,x)=>{(x==="length"||!zL(x)&&x>=g)&&h.push(_)})}else switch(i!==void 0&&h.push(c.get(i)),e){case"add":H0(r)?uGe(i)&&h.push(c.get("length")):(h.push(c.get(WI)),ZG(r)&&h.push(c.get(ROe)));break;case"delete":H0(r)||(h.push(c.get(WI)),ZG(r)&&h.push(c.get(ROe)));break;case"set":ZG(r)&&h.push(c.get(WI));break}aGe();for(const g of h)g&&$xt(g,2);oGe()}function Rci(r,e){var i;return(i=VDe.get(r))==null?void 0:i.get(e)}const Oci=tGe("__proto__,__v_isRef,__isVue"),qxt=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(zL)),Ept=jci();function jci(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...i){const n=s1(this);for(let o=0,c=this.length;o{r[e]=function(...i){KR(),aGe();const n=s1(this)[e].apply(this,i);return oGe(),WR(),n}}),r}function Vci(r){const e=s1(this);return mx(e,"has",r),e.hasOwnProperty(r)}class Zxt{constructor(e=!1,i=!1){this._isReadonly=e,this._shallow=i}get(e,i,n){const a=this._isReadonly,o=this._shallow;if(i==="__v_isReactive")return!a;if(i==="__v_isReadonly")return a;if(i==="__v_isShallow")return o;if(i==="__v_raw")return n===(a?o?edi:e6t:o?Xxt:Qxt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=H0(e);if(!a){if(c&&a1(Ept,i))return Reflect.get(Ept,i,n);if(i==="hasOwnProperty")return Vci}const h=Reflect.get(e,i,n);return(zL(i)?qxt.has(i):Oci(i))||(a||mx(e,"get",i),o)?h:kp(h)?c&&uGe(i)?h:h.value:Lf(h)?a?t6t(h):lae(h):h}}class Yxt extends Zxt{constructor(e=!1){super(!1,e)}set(e,i,n,a){let o=e[i];if(!this._shallow){const g=SJ(o);if(!HDe(n)&&!SJ(n)&&(o=s1(o),n=s1(n)),!H0(e)&&kp(o)&&!kp(n))return g?!1:(o.value=n,!0)}const c=H0(e)&&uGe(i)?Number(i)r,a6e=r=>Reflect.getPrototypeOf(r);function p_e(r,e,i=!1,n=!1){r=r.__v_raw;const a=s1(r),o=s1(e);i||(IL(e,o)&&mx(a,"get",e),mx(a,"get",o));const{has:c}=a6e(a),h=n?sGe:i?dGe:bue;if(c.call(a,e))return h(r.get(e));if(c.call(a,o))return h(r.get(o));r!==a&&r.get(e)}function g_e(r,e=!1){const i=this.__v_raw,n=s1(i),a=s1(r);return e||(IL(r,a)&&mx(n,"has",r),mx(n,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)}function E_e(r,e=!1){return r=r.__v_raw,!e&&mx(s1(r),"iterate",WI),Reflect.get(r,"size",r)}function _pt(r){r=s1(r);const e=s1(this);return a6e(e).has.call(e,r)||(e.add(r),GS(e,"add",r,r)),this}function Dpt(r,e){e=s1(e);const i=s1(this),{has:n,get:a}=a6e(i);let o=n.call(i,r);o||(r=s1(r),o=n.call(i,r));const c=a.call(i,r);return i.set(r,e),o?IL(e,c)&&GS(i,"set",r,e):GS(i,"add",r,e),this}function xpt(r){const e=s1(this),{has:i,get:n}=a6e(e);let a=i.call(e,r);a||(r=s1(r),a=i.call(e,r)),n&&n.call(e,r);const o=e.delete(r);return a&&GS(e,"delete",r,void 0),o}function vpt(){const r=s1(this),e=r.size!==0,i=r.clear();return e&&GS(r,"clear",void 0,void 0),i}function __e(r,e){return function(n,a){const o=this,c=o.__v_raw,h=s1(c),g=e?sGe:r?dGe:bue;return!r&&mx(h,"iterate",WI),c.forEach((_,x)=>n.call(a,g(_),g(x),o))}}function D_e(r,e,i){return function(...n){const a=this.__v_raw,o=s1(a),c=ZG(o),h=r==="entries"||r===Symbol.iterator&&c,g=r==="keys"&&c,_=a[r](...n),x=i?sGe:e?dGe:bue;return!e&&mx(o,"iterate",g?ROe:WI),{next(){const{value:y,done:S}=_.next();return S?{value:y,done:S}:{value:h?[x(y[0]),x(y[1])]:x(y),done:S}},[Symbol.iterator](){return this}}}}function vT(r){return function(...e){return r==="delete"?!1:r==="clear"?void 0:this}}function Jci(){const r={get(o){return p_e(this,o)},get size(){return E_e(this)},has:g_e,add:_pt,set:Dpt,delete:xpt,clear:vpt,forEach:__e(!1,!1)},e={get(o){return p_e(this,o,!1,!0)},get size(){return E_e(this)},has:g_e,add:_pt,set:Dpt,delete:xpt,clear:vpt,forEach:__e(!1,!0)},i={get(o){return p_e(this,o,!0)},get size(){return E_e(this,!0)},has(o){return g_e.call(this,o,!0)},add:vT("add"),set:vT("set"),delete:vT("delete"),clear:vT("clear"),forEach:__e(!0,!1)},n={get(o){return p_e(this,o,!0,!0)},get size(){return E_e(this,!0)},has(o){return g_e.call(this,o,!0)},add:vT("add"),set:vT("set"),delete:vT("delete"),clear:vT("clear"),forEach:__e(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=D_e(o,!1,!1),i[o]=D_e(o,!0,!1),e[o]=D_e(o,!1,!0),n[o]=D_e(o,!0,!0)}),[r,i,e,n]}const[$ci,Uci,qci,Zci]=Jci();function lGe(r,e){const i=e?r?Zci:qci:r?Uci:$ci;return(n,a,o)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(a1(i,a)&&a in n?i:n,a,o)}const Yci={get:lGe(!1,!1)},Qci={get:lGe(!1,!0)},Xci={get:lGe(!0,!1)},Qxt=new WeakMap,Xxt=new WeakMap,e6t=new WeakMap,edi=new WeakMap;function tdi(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function idi(r){return r.__v_skip||!Object.isExtensible(r)?0:tdi(yci(r))}function lae(r){return SJ(r)?r:cGe(r,!1,Kci,Yci,Qxt)}function ndi(r){return cGe(r,!1,Gci,Qci,Xxt)}function t6t(r){return cGe(r,!0,Wci,Xci,e6t)}function cGe(r,e,i,n,a){if(!Lf(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const o=a.get(r);if(o)return o;const c=idi(r);if(c===0)return r;const h=new Proxy(r,c===2?n:i);return a.set(r,h),h}function EL(r){return SJ(r)?EL(r.__v_raw):!!(r&&r.__v_isReactive)}function SJ(r){return!!(r&&r.__v_isReadonly)}function HDe(r){return!!(r&&r.__v_isShallow)}function i6t(r){return EL(r)||SJ(r)}function s1(r){const e=r&&r.__v_raw;return e?s1(e):r}function o6e(r){return jDe(r,"__v_skip",!0),r}const bue=r=>Lf(r)?lae(r):r,dGe=r=>Lf(r)?t6t(r):r;class n6t{constructor(e,i,n,a){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new rGe(()=>e(this._value),()=>OOe(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const e=s1(this);return(!e._cacheable||e.effect.dirty)&&IL(e._value,e._value=e.effect.run())&&OOe(e,2),u6t(e),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function udi(r,e,i=!1){let n,a;const o=rc(r);return o?(n=r,a=WC):(n=r.get,a=r.set),new n6t(n,a,o||!a,i)}function u6t(r){gL&&KI&&(r=s1(r),Jxt(KI,r.dep||(r.dep=Uxt(()=>r.dep=void 0,r instanceof n6t?r:void 0))))}function OOe(r,e=2,i){r=s1(r);const n=r.dep;n&&$xt(n,e)}function kp(r){return!!(r&&r.__v_isRef===!0)}function ds(r){return rdi(r,!1)}function rdi(r,e){return kp(r)?r:new adi(r,e)}class adi{constructor(e,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?e:s1(e),this._value=i?e:bue(e)}get value(){return u6t(this),this._value}set value(e){const i=this.__v_isShallow||HDe(e)||SJ(e);e=i?e:s1(e),IL(e,this._rawValue)&&(this._rawValue=e,this._value=i?e:bue(e),OOe(this,2))}}function wu(r){return kp(r)?r.value:r}const odi={get:(r,e,i)=>wu(Reflect.get(r,e,i)),set:(r,e,i,n)=>{const a=r[e];return kp(a)&&!kp(i)?(a.value=i,!0):Reflect.set(r,e,i,n)}};function r6t(r){return EL(r)?r:new Proxy(r,odi)}function sdi(r){const e=H0(r)?new Array(r.length):{};for(const i in r)e[i]=cdi(r,i);return e}class ldi{constructor(e,i,n){this._object=e,this._key=i,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Rci(s1(this._object),this._key)}}function cdi(r,e,i){const n=r[e];return kp(n)?n:new ldi(r,e,i)}/** * @vue/runtime-core v3.4.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function gL(r,e,i,n){let a;try{a=n?r(...n):r()}catch(o){o6e(o,e,i)}return a}function my(r,e,i,n){if(uc(r)){const o=gL(r,e,i,n);return o&&Txt(o)&&o.catch(c=>{o6e(c,e,i)}),o}const a=[];for(let o=0;o>>1,a=z3[n],o=vue(a);oYF&&z3.splice(e,1)}function ddi(r){R0(r)?qG.push(...r):(!jT||!jT.includes(r,r.allowRecurse?EI+1:EI))&&qG.push(r),u6t()}function Dpt(r,e,i=xue?YF+1:0){for(;ivue(i)-vue(n));if(qG.length=0,jT){jT.push(...e);return}for(jT=e,EI=0;EIr.id==null?1/0:r.id,hdi=(r,e)=>{const i=vue(r)-vue(e);if(i===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return i};function a6t(r){ROe=!1,xue=!0,z3.sort(hdi);try{for(YF=0;YFng(L)?L.trim():L)),y&&(a=i.map(NOe))}let h,g=n[h=eIe(e)]||n[h=eIe(yA(e))];!g&&o&&(g=n[h=eIe(VR(e))]),g&&my(g,r,6,a);const _=n[h+"Once"];if(_){if(!r.emitted)r.emitted={};else if(r.emitted[h])return;r.emitted[h]=!0,my(_,r,6,a)}}function o6t(r,e,i=!1){const n=e.emitsCache,a=n.get(r);if(a!==void 0)return a;const o=r.emits;let c={},h=!1;if(!uc(r)){const g=_=>{const x=o6t(_,e,!0);x&&(h=!0,M_(c,x))};!i&&e.mixins.length&&e.mixins.forEach(g),r.extends&&g(r.extends),r.mixins&&r.mixins.forEach(g)}return!o&&!h?(Tf(r)&&n.set(r,null),null):(R0(o)?o.forEach(g=>c[g]=null):M_(c,o),Tf(r)&&n.set(r,c),c)}function s6e(r,e){return!r||!t6e(e)?!1:(e=e.slice(2).replace(/Once$/,""),r1(r,e[0].toLowerCase()+e.slice(1))||r1(r,VR(e))||r1(r,e))}let Vg=null,l6e=null;function HDe(r){const e=Vg;return Vg=r,l6e=r&&r.type.__scopeId||null,e}function aae(r){l6e=r}function oae(){l6e=null}const mdi=r=>IL;function IL(r,e=Vg,i){if(!e||r._n)return r;const n=(...a)=>{n._d&&wpt(-1);const o=HDe(e);let c;try{c=r(...a)}finally{HDe(o),n._d&&wpt(1)}return c};return n._n=!0,n._c=!0,n._d=!0,n}function iIe(r){const{type:e,vnode:i,proxy:n,withProxy:a,props:o,propsOptions:[c],slots:h,attrs:g,emit:_,render:x,renderCache:y,data:S,setupState:L,ctx:R,inheritAttrs:G}=r;let ie,ue;const re=HDe(r);try{if(i.shapeFlag&4){const ye=a||n,Le=ye;ie=JF(x.call(Le,ye,y,o,L,S,R)),ue=g}else{const ye=e;ie=JF(ye.length>1?ye(o,{attrs:g,slots:h,emit:_}):ye(o,null)),ue=e.props?g:pdi(g)}}catch(ye){Lne.length=0,o6e(ye,r,1),ie=Y0(RL)}let _e=ie;if(ue&&G!==!1){const ye=Object.keys(ue),{shapeFlag:Le}=_e;ye.length&&Le&7&&(c&&ye.some(eGe)&&(ue=gdi(ue,c)),_e=AJ(_e,ue))}return i.dirs&&(_e=AJ(_e),_e.dirs=_e.dirs?_e.dirs.concat(i.dirs):i.dirs),i.transition&&(_e.transition=i.transition),ie=_e,HDe(re),ie}const pdi=r=>{let e;for(const i in r)(i==="class"||i==="style"||t6e(i))&&((e||(e={}))[i]=r[i]);return e},gdi=(r,e)=>{const i={};for(const n in r)(!eGe(n)||!(n.slice(9)in e))&&(i[n]=r[n]);return i};function Edi(r,e,i){const{props:n,children:a,component:o}=r,{props:c,children:h,patchFlag:g}=e,_=o.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&g>=0){if(g&1024)return!0;if(g&16)return n?xpt(n,c,_):!!c;if(g&8){const x=e.dynamicProps;for(let y=0;yr.__isSuspense;function Cdi(r,e){e&&e.pendingBranch?R0(r)?e.effects.push(...r):e.effects.push(r):ddi(r)}const bdi=Symbol.for("v-scx"),ydi=()=>Tne(bdi);function kdi(r,e){return fGe(r,null,e)}const D_e={};function EL(r,e,i){return fGe(r,e,i)}function fGe(r,e,{immediate:i,deep:n,flush:a,once:o,onTrack:c,onTrigger:h}=Xf){if(e&&o){const lt=e;e=(...$e)=>{lt(...$e),Le()}}const g=T_,_=lt=>n===!0?lt:wI(lt,n===!1?1:void 0);let x,y=!1,S=!1;if(bp(r)?(x=()=>r.value,y=VDe(r)):pL(r)?(x=()=>_(r),y=!0):R0(r)?(S=!0,y=r.some(lt=>pL(lt)||VDe(lt)),x=()=>r.map(lt=>{if(bp(lt))return lt.value;if(pL(lt))return _(lt);if(uc(lt))return gL(lt,g,2)})):uc(r)?e?x=()=>gL(r,g,2):x=()=>(L&&L(),my(r,g,3,[R])):x=HC,e&&n){const lt=x;x=()=>wI(lt())}let L,R=lt=>{L=_e.onStop=()=>{gL(lt,g,4),L=_e.onStop=void 0}},G;if(m6e)if(R=HC,e?i&&my(e,g,3,[x(),S?[]:void 0,R]):x(),a==="sync"){const lt=ydi();G=lt.__watcherHandles||(lt.__watcherHandles=[])}else return HC;let ie=S?new Array(r.length).fill(D_e):D_e;const ue=()=>{if(!(!_e.active||!_e.dirty))if(e){const lt=_e.run();(n||y||(S?lt.some(($e,Ye)=>zL($e,ie[Ye])):zL(lt,ie)))&&(L&&L(),my(e,g,3,[lt,ie===D_e?void 0:S&&ie[0]===D_e?[]:ie,R]),ie=lt)}else _e.run()};ue.allowRecurse=!!e;let re;a==="sync"?re=ue:a==="post"?re=()=>q5(ue,g&&g.suspense):(ue.pre=!0,g&&(ue.id=g.uid),re=()=>hGe(ue));const _e=new nGe(x,HC,re),ye=jxt(),Le=()=>{_e.stop(),ye&&tGe(ye.effects,_e)};return e?i?ue():ie=_e.run():a==="post"?q5(_e.run.bind(_e),g&&g.suspense):_e.run(),G&&G.push(Le),Le}function Fdi(r,e,i){const n=this.proxy,a=ng(r)?r.includes(".")?c6t(n,r):()=>n[r]:r.bind(n,n);let o;uc(e)?o=e:(o=e.handler,i=e);const c=sae(this),h=fGe(a,o.bind(n),i);return c(),h}function c6t(r,e){const i=e.split(".");return()=>{let n=r;for(let a=0;a0){if(i>=e)return r;i++}if(n=n||new Set,n.has(r))return r;if(n.add(r),bp(r))wI(r.value,e,i,n);else if(R0(r))for(let a=0;a{wI(a,e,i,n)});else if(Nxt(r))for(const a in r)wI(r[a],e,i,n);return r}function Wd(r,e){if(Vg===null)return r;const i=p6e(Vg)||Vg.proxy,n=r.dirs||(r.dirs=[]);for(let a=0;a!!r.type.__asyncLoader,d6t=r=>r.type.__isKeepAlive;function Adi(r,e){h6t(r,"a",e)}function Sdi(r,e){h6t(r,"da",e)}function h6t(r,e,i=T_){const n=r.__wdc||(r.__wdc=()=>{let a=i;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(d6e(e,n,i),i){let a=i.parent;for(;a&&a.parent;)d6t(a.parent.vnode)&&Bdi(n,e,i,a),a=a.parent}}function Bdi(r,e,i,n){const a=d6e(e,r,n,!0);mGe(()=>{tGe(n[e],a)},i)}function d6e(r,e,i=T_,n=!1){if(i){const a=i[r]||(i[r]=[]),o=e.__weh||(e.__weh=(...c)=>{if(i.isUnmounted)return;HR();const h=sae(i),g=my(e,i,r,c);return h(),KR(),g});return n?a.unshift(o):a.push(o),o}}const s8=r=>(e,i=T_)=>(!m6e||r==="sp")&&d6e(r,(...n)=>e(...n),i),wdi=s8("bm"),E$=s8("m"),Tdi=s8("bu"),Ldi=s8("u"),Ndi=s8("bum"),mGe=s8("um"),Pdi=s8("sp"),Mdi=s8("rtg"),zdi=s8("rtc");function Idi(r,e=T_){d6e("ec",r,e)}function py(r,e,i,n){let a;const o=i&&i[n];if(R0(r)||ng(r)){a=new Array(r.length);for(let c=0,h=r.length;ce(c,h,void 0,o&&o[h]));else{const c=Object.keys(r);a=new Array(c.length);for(let h=0,g=c.length;hWDe(e)?!(e.type===RL||e.type===gd&&!f6t(e.children)):!0)?r:null}const OOe=r=>r?F6t(r)?p6e(r)||r.proxy:OOe(r.parent):null,wne=M_(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>OOe(r.parent),$root:r=>OOe(r.root),$emit:r=>r.emit,$options:r=>pGe(r),$forceUpdate:r=>r.f||(r.f=()=>{r.effect.dirty=!0,hGe(r.update)}),$nextTick:r=>r.n||(r.n=dGe.bind(r.proxy)),$watch:r=>Fdi.bind(r)}),nIe=(r,e)=>r!==Xf&&!r.__isScriptSetup&&r1(r,e),Rdi={get({_:r},e){const{ctx:i,setupState:n,data:a,props:o,accessCache:c,type:h,appContext:g}=r;let _;if(e[0]!=="$"){const L=c[e];if(L!==void 0)switch(L){case 1:return n[e];case 2:return a[e];case 4:return i[e];case 3:return o[e]}else{if(nIe(n,e))return c[e]=1,n[e];if(a!==Xf&&r1(a,e))return c[e]=2,a[e];if((_=r.propsOptions[0])&&r1(_,e))return c[e]=3,o[e];if(i!==Xf&&r1(i,e))return c[e]=4,i[e];jOe&&(c[e]=0)}}const x=wne[e];let y,S;if(x)return e==="$attrs"&&fx(r,"get",e),x(r);if((y=h.__cssModules)&&(y=y[e]))return y;if(i!==Xf&&r1(i,e))return c[e]=4,i[e];if(S=g.config.globalProperties,r1(S,e))return S[e]},set({_:r},e,i){const{data:n,setupState:a,ctx:o}=r;return nIe(a,e)?(a[e]=i,!0):n!==Xf&&r1(n,e)?(n[e]=i,!0):r1(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(o[e]=i,!0)},has({_:{data:r,setupState:e,accessCache:i,ctx:n,appContext:a,propsOptions:o}},c){let h;return!!i[c]||r!==Xf&&r1(r,c)||nIe(e,c)||(h=o[0])&&r1(h,c)||r1(n,c)||r1(wne,c)||r1(a.config.globalProperties,c)},defineProperty(r,e,i){return i.get!=null?r._.accessCache[e]=0:r1(i,"value")&&this.set(r,e,i.value,null),Reflect.defineProperty(r,e,i)}};function Cpt(r){return R0(r)?r.reduce((e,i)=>(e[i]=null,e),{}):r}let jOe=!0;function Odi(r){const e=pGe(r),i=r.proxy,n=r.ctx;jOe=!1,e.beforeCreate&&bpt(e.beforeCreate,r,"bc");const{data:a,computed:o,methods:c,watch:h,provide:g,inject:_,created:x,beforeMount:y,mounted:S,beforeUpdate:L,updated:R,activated:G,deactivated:ie,beforeDestroy:ue,beforeUnmount:re,destroyed:_e,unmounted:ye,render:Le,renderTracked:lt,renderTriggered:$e,errorCaptured:Ye,serverPrefetch:rt,expose:Ft,inheritAttrs:Zt,components:Ot,directives:ui,filters:ei}=e;if(_&&jdi(_,n,null),c)for(const Kt in c){const zr=c[Kt];uc(zr)&&(n[Kt]=zr.bind(i))}if(a){const Kt=a.call(i,i);Tf(Kt)&&(r.data=rae(Kt))}if(jOe=!0,o)for(const Kt in o){const zr=o[Kt],Mu=uc(zr)?zr.bind(i,i):uc(zr.get)?zr.get.bind(i,i):HC,Va=!uc(zr)&&uc(zr.set)?zr.set.bind(i):HC,Ku=gy({get:Mu,set:Va});Object.defineProperty(n,Kt,{enumerable:!0,configurable:!0,get:()=>Ku.value,set:vn=>Ku.value=vn})}if(h)for(const Kt in h)m6t(h[Kt],n,i,Kt);if(g){const Kt=uc(g)?g.call(i):g;Reflect.ownKeys(Kt).forEach(zr=>{Jdi(zr,Kt[zr])})}x&&bpt(x,r,"c");function gu(Kt,zr){R0(zr)?zr.forEach(Mu=>Kt(Mu.bind(i))):zr&&Kt(zr.bind(i))}if(gu(wdi,y),gu(E$,S),gu(Tdi,L),gu(Ldi,R),gu(Adi,G),gu(Sdi,ie),gu(Idi,Ye),gu(zdi,lt),gu(Mdi,$e),gu(Ndi,re),gu(mGe,ye),gu(Pdi,rt),R0(Ft))if(Ft.length){const Kt=r.exposed||(r.exposed={});Ft.forEach(zr=>{Object.defineProperty(Kt,zr,{get:()=>i[zr],set:Mu=>i[zr]=Mu})})}else r.exposed||(r.exposed={});Le&&r.render===HC&&(r.render=Le),Zt!=null&&(r.inheritAttrs=Zt),Ot&&(r.components=Ot),ui&&(r.directives=ui)}function jdi(r,e,i=HC){R0(r)&&(r=VOe(r));for(const n in r){const a=r[n];let o;Tf(a)?"default"in a?o=Tne(a.from||n,a.default,!0):o=Tne(a.from||n):o=Tne(a),bp(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:c=>o.value=c}):e[n]=o}}function bpt(r,e,i){my(R0(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,i)}function m6t(r,e,i,n){const a=n.includes(".")?c6t(i,n):()=>i[n];if(ng(r)){const o=e[r];uc(o)&&EL(a,o)}else if(uc(r))EL(a,r.bind(i));else if(Tf(r))if(R0(r))r.forEach(o=>m6t(o,e,i,n));else{const o=uc(r.handler)?r.handler.bind(i):e[r.handler];uc(o)&&EL(a,o,r)}}function pGe(r){const e=r.type,{mixins:i,extends:n}=e,{mixins:a,optionsCache:o,config:{optionMergeStrategies:c}}=r.appContext,h=o.get(e);let g;return h?g=h:!a.length&&!i&&!n?g=e:(g={},a.length&&a.forEach(_=>KDe(g,_,c,!0)),KDe(g,e,c)),Tf(e)&&o.set(e,g),g}function KDe(r,e,i,n=!1){const{mixins:a,extends:o}=e;o&&KDe(r,o,i,!0),a&&a.forEach(c=>KDe(r,c,i,!0));for(const c in e)if(!(n&&c==="expose")){const h=Vdi[c]||i&&i[c];r[c]=h?h(r[c],e[c]):e[c]}return r}const Vdi={data:ypt,props:kpt,emits:kpt,methods:ine,computed:ine,beforeCreate:wD,created:wD,beforeMount:wD,mounted:wD,beforeUpdate:wD,updated:wD,beforeDestroy:wD,beforeUnmount:wD,destroyed:wD,unmounted:wD,activated:wD,deactivated:wD,errorCaptured:wD,serverPrefetch:wD,components:ine,directives:ine,watch:Kdi,provide:ypt,inject:Hdi};function ypt(r,e){return e?r?function(){return M_(uc(r)?r.call(this,this):r,uc(e)?e.call(this,this):e)}:e:r}function Hdi(r,e){return ine(VOe(r),VOe(e))}function VOe(r){if(R0(r)){const e={};for(let i=0;i1)return i&&uc(e)?e.call(n&&n.proxy):e}}function $di(){return!!(T_||Vg||yue)}function Udi(r,e,i,n=!1){const a={},o={};ODe(o,f6e,1),r.propsDefaults=Object.create(null),g6t(r,e,a,o);for(const c in r.propsOptions[0])c in a||(a[c]=void 0);i?r.props=n?a:edi(a):r.type.props?r.props=a:r.props=o,r.attrs=o}function qdi(r,e,i,n){const{props:a,attrs:o,vnode:{patchFlag:c}}=r,h=o1(a),[g]=r.propsOptions;let _=!1;if((n||c>0)&&!(c&16)){if(c&8){const x=r.vnode.dynamicProps;for(let y=0;y{g=!0;const[S,L]=E6t(y,e,!0);M_(c,S),L&&h.push(...L)};!i&&e.mixins.length&&e.mixins.forEach(x),r.extends&&x(r.extends),r.mixins&&r.mixins.forEach(x)}if(!o&&!g)return Tf(r)&&n.set(r,$G),$G;if(R0(o))for(let x=0;x-1,L[1]=G<0||R-1||r1(L,"default"))&&h.push(y)}}}const _=[c,h];return Tf(r)&&n.set(r,_),_}function Fpt(r){return r[0]!=="$"}function Apt(r){const e=r&&r.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:r===null?"null":""}function Spt(r,e){return Apt(r)===Apt(e)}function Bpt(r,e){return R0(e)?e.findIndex(i=>Spt(i,r)):uc(e)&&Spt(e,r)?0:-1}const _6t=r=>r[0]==="_"||r==="$stable",gGe=r=>R0(r)?r.map(JF):[JF(r)],Zdi=(r,e,i)=>{if(e._n)return e;const n=IL((...a)=>gGe(e(...a)),i);return n._c=!1,n},D6t=(r,e,i)=>{const n=r._ctx;for(const a in r){if(_6t(a))continue;const o=r[a];if(uc(o))e[a]=Zdi(a,o,n);else if(o!=null){const c=gGe(o);e[a]=()=>c}}},x6t=(r,e)=>{const i=gGe(e);r.slots.default=()=>i},Ydi=(r,e)=>{if(r.vnode.shapeFlag&32){const i=e._;i?(r.slots=o1(e),ODe(e,"_",i)):D6t(e,r.slots={})}else r.slots={},e&&x6t(r,e);ODe(r.slots,f6e,1)},Qdi=(r,e,i)=>{const{vnode:n,slots:a}=r;let o=!0,c=Xf;if(n.shapeFlag&32){const h=e._;h?i&&h===1?o=!1:(M_(a,e),!i&&h===1&&delete a._):(o=!e.$stable,D6t(e,a)),c=e}else e&&(x6t(r,e),c={default:1});if(o)for(const h in a)!_6t(h)&&c[h]==null&&delete a[h]};function KOe(r,e,i,n,a=!1){if(R0(r)){r.forEach((S,L)=>KOe(S,e&&(R0(e)?e[L]:e),i,n,a));return}if(Bne(n)&&!a)return;const o=n.shapeFlag&4?p6e(n.component)||n.component.proxy:n.el,c=a?null:o,{i:h,r:g}=r,_=e&&e.r,x=h.refs===Xf?h.refs={}:h.refs,y=h.setupState;if(_!=null&&_!==g&&(ng(_)?(x[_]=null,r1(y,_)&&(y[_]=null)):bp(_)&&(_.value=null)),uc(g))gL(g,h,12,[c,x]);else{const S=ng(g),L=bp(g);if(S||L){const R=()=>{if(r.f){const G=S?r1(y,g)?y[g]:x[g]:g.value;a?R0(G)&&tGe(G,o):R0(G)?G.includes(o)||G.push(o):S?(x[g]=[o],r1(y,g)&&(y[g]=x[g])):(g.value=[o],r.k&&(x[r.k]=g.value))}else S?(x[g]=c,r1(y,g)&&(y[g]=c)):L&&(g.value=c,r.k&&(x[r.k]=c))};c?(R.id=-1,q5(R,i)):R()}}}const q5=Cdi;function Xdi(r){return e1i(r)}function e1i(r,e){const i=Pxt();i.__VUE__=!0;const{insert:n,remove:a,patchProp:o,createElement:c,createText:h,createComment:g,setText:_,setElementText:x,parentNode:y,nextSibling:S,setScopeId:L=HC,insertStaticContent:R}=r,G=(ki,qe,Lu,an=null,Ir=null,Zr=null,io=void 0,Pi=null,li=!!qe.dynamicChildren)=>{if(ki===qe)return;ki&&!kie(ki,qe)&&(an=Uo(ki),vn(ki,Ir,Zr,!0),ki=null),qe.patchFlag===-2&&(li=!1,qe.dynamicChildren=null);const{type:di,ref:xt,shapeFlag:Nt}=qe;switch(di){case h6e:ie(ki,qe,Lu,an);break;case RL:ue(ki,qe,Lu,an);break;case J3e:ki==null&&re(qe,Lu,an,io);break;case gd:Ot(ki,qe,Lu,an,Ir,Zr,io,Pi,li);break;default:Nt&1?Le(ki,qe,Lu,an,Ir,Zr,io,Pi,li):Nt&6?ui(ki,qe,Lu,an,Ir,Zr,io,Pi,li):(Nt&64||Nt&128)&&di.process(ki,qe,Lu,an,Ir,Zr,io,Pi,li,Ll)}xt!=null&&Ir&&KOe(xt,ki&&ki.ref,Zr,qe||ki,!qe)},ie=(ki,qe,Lu,an)=>{if(ki==null)n(qe.el=h(qe.children),Lu,an);else{const Ir=qe.el=ki.el;qe.children!==ki.children&&_(Ir,qe.children)}},ue=(ki,qe,Lu,an)=>{ki==null?n(qe.el=g(qe.children||""),Lu,an):qe.el=ki.el},re=(ki,qe,Lu,an)=>{[ki.el,ki.anchor]=R(ki.children,qe,Lu,an,ki.el,ki.anchor)},_e=({el:ki,anchor:qe},Lu,an)=>{let Ir;for(;ki&&ki!==qe;)Ir=S(ki),n(ki,Lu,an),ki=Ir;n(qe,Lu,an)},ye=({el:ki,anchor:qe})=>{let Lu;for(;ki&&ki!==qe;)Lu=S(ki),a(ki),ki=Lu;a(qe)},Le=(ki,qe,Lu,an,Ir,Zr,io,Pi,li)=>{qe.type==="svg"?io="svg":qe.type==="math"&&(io="mathml"),ki==null?lt(qe,Lu,an,Ir,Zr,io,Pi,li):rt(ki,qe,Ir,Zr,io,Pi,li)},lt=(ki,qe,Lu,an,Ir,Zr,io,Pi)=>{let li,di;const{props:xt,shapeFlag:Nt,transition:mi,dirs:ci}=ki;if(li=ki.el=c(ki.type,Zr,xt&&xt.is,xt),Nt&8?x(li,ki.children):Nt&16&&Ye(ki.children,li,null,an,Ir,uIe(ki,Zr),io,Pi),ci&&$z(ki,null,an,"created"),$e(li,ki,ki.scopeId,io,an),xt){for(const Hn in xt)Hn!=="value"&&!W3e(Hn)&&o(li,Hn,null,xt[Hn],Zr,ki.children,an,Ir,Ui);"value"in xt&&o(li,"value",null,xt.value,Zr),(di=xt.onVnodeBeforeMount)&&LF(di,an,ki)}ci&&$z(ki,null,an,"beforeMount");const hn=t1i(Ir,mi);hn&&mi.beforeEnter(li),n(li,qe,Lu),((di=xt&&xt.onVnodeMounted)||hn||ci)&&q5(()=>{di&&LF(di,an,ki),hn&&mi.enter(li),ci&&$z(ki,null,an,"mounted")},Ir)},$e=(ki,qe,Lu,an,Ir)=>{if(Lu&&L(ki,Lu),an)for(let Zr=0;Zr{for(let di=li;di{const Pi=qe.el=ki.el;let{patchFlag:li,dynamicChildren:di,dirs:xt}=qe;li|=ki.patchFlag&16;const Nt=ki.props||Xf,mi=qe.props||Xf;let ci;if(Lu&&Uz(Lu,!1),(ci=mi.onVnodeBeforeUpdate)&&LF(ci,Lu,qe,ki),xt&&$z(qe,ki,Lu,"beforeUpdate"),Lu&&Uz(Lu,!0),di?Ft(ki.dynamicChildren,di,Pi,Lu,an,uIe(qe,Ir),Zr):io||zr(ki,qe,Pi,null,Lu,an,uIe(qe,Ir),Zr,!1),li>0){if(li&16)Zt(Pi,qe,Nt,mi,Lu,an,Ir);else if(li&2&&Nt.class!==mi.class&&o(Pi,"class",null,mi.class,Ir),li&4&&o(Pi,"style",Nt.style,mi.style,Ir),li&8){const hn=qe.dynamicProps;for(let Hn=0;Hn{ci&&LF(ci,Lu,qe,ki),xt&&$z(qe,ki,Lu,"updated")},an)},Ft=(ki,qe,Lu,an,Ir,Zr,io)=>{for(let Pi=0;Pi{if(Lu!==an){if(Lu!==Xf)for(const Pi in Lu)!W3e(Pi)&&!(Pi in an)&&o(ki,Pi,Lu[Pi],null,io,qe.children,Ir,Zr,Ui);for(const Pi in an){if(W3e(Pi))continue;const li=an[Pi],di=Lu[Pi];li!==di&&Pi!=="value"&&o(ki,Pi,di,li,io,qe.children,Ir,Zr,Ui)}"value"in an&&o(ki,"value",Lu.value,an.value,io)}},Ot=(ki,qe,Lu,an,Ir,Zr,io,Pi,li)=>{const di=qe.el=ki?ki.el:h(""),xt=qe.anchor=ki?ki.anchor:h("");let{patchFlag:Nt,dynamicChildren:mi,slotScopeIds:ci}=qe;ci&&(Pi=Pi?Pi.concat(ci):ci),ki==null?(n(di,Lu,an),n(xt,Lu,an),Ye(qe.children||[],Lu,xt,Ir,Zr,io,Pi,li)):Nt>0&&Nt&64&&mi&&ki.dynamicChildren?(Ft(ki.dynamicChildren,mi,Lu,Ir,Zr,io,Pi),(qe.key!=null||Ir&&qe===Ir.subTree)&&v6t(ki,qe,!0)):zr(ki,qe,Lu,xt,Ir,Zr,io,Pi,li)},ui=(ki,qe,Lu,an,Ir,Zr,io,Pi,li)=>{qe.slotScopeIds=Pi,ki==null?qe.shapeFlag&512?Ir.ctx.activate(qe,Lu,an,io,li):ei(qe,Lu,an,Ir,Zr,io,li):Uu(ki,qe,li)},ei=(ki,qe,Lu,an,Ir,Zr,io)=>{const Pi=ki.component=l1i(ki,an,Ir);if(d6t(ki)&&(Pi.ctx.renderer=Ll),c1i(Pi),Pi.asyncDep){if(Ir&&Ir.registerDep(Pi,gu),!ki.el){const li=Pi.subTree=Y0(RL);ue(null,li,qe,Lu)}}else gu(Pi,ki,qe,Lu,Ir,Zr,io)},Uu=(ki,qe,Lu)=>{const an=qe.component=ki.component;if(Edi(ki,qe,Lu))if(an.asyncDep&&!an.asyncResolved){Kt(an,qe,Lu);return}else an.next=qe,cdi(an.update),an.effect.dirty=!0,an.update();else qe.el=ki.el,an.vnode=qe},gu=(ki,qe,Lu,an,Ir,Zr,io)=>{const Pi=()=>{if(ki.isMounted){let{next:xt,bu:Nt,u:mi,parent:ci,vnode:hn}=ki;{const Do=C6t(ki);if(Do){xt&&(xt.el=hn.el,Kt(ki,xt,io)),Do.asyncDep.then(()=>{ki.isUnmounted||Pi()});return}}let Hn=xt,kr;Uz(ki,!1),xt?(xt.el=hn.el,Kt(ki,xt,io)):xt=hn,Nt&&G3e(Nt),(kr=xt.props&&xt.props.onVnodeBeforeUpdate)&&LF(kr,ci,xt,hn),Uz(ki,!0);const ia=iIe(ki),Ei=ki.subTree;ki.subTree=ia,G(Ei,ia,y(Ei.el),Uo(Ei),ki,Ir,Zr),xt.el=ia.el,Hn===null&&_di(ki,ia.el),mi&&q5(mi,Ir),(kr=xt.props&&xt.props.onVnodeUpdated)&&q5(()=>LF(kr,ci,xt,hn),Ir)}else{let xt;const{el:Nt,props:mi}=qe,{bm:ci,m:hn,parent:Hn}=ki,kr=Bne(qe);if(Uz(ki,!1),ci&&G3e(ci),!kr&&(xt=mi&&mi.onVnodeBeforeMount)&&LF(xt,Hn,qe),Uz(ki,!0),Nt&&Xs){const ia=()=>{ki.subTree=iIe(ki),Xs(Nt,ki.subTree,ki,Ir,null)};kr?qe.type.__asyncLoader().then(()=>!ki.isUnmounted&&ia()):ia()}else{const ia=ki.subTree=iIe(ki);G(null,ia,Lu,an,ki,Ir,Zr),qe.el=ia.el}if(hn&&q5(hn,Ir),!kr&&(xt=mi&&mi.onVnodeMounted)){const ia=qe;q5(()=>LF(xt,Hn,ia),Ir)}(qe.shapeFlag&256||Hn&&Bne(Hn.vnode)&&Hn.vnode.shapeFlag&256)&&ki.a&&q5(ki.a,Ir),ki.isMounted=!0,qe=Lu=an=null}},li=ki.effect=new nGe(Pi,HC,()=>hGe(di),ki.scope),di=ki.update=()=>{li.dirty&&li.run()};di.id=ki.uid,Uz(ki,!0),di()},Kt=(ki,qe,Lu)=>{qe.component=ki;const an=ki.vnode.props;ki.vnode=qe,ki.next=null,qdi(ki,qe.props,an,Lu),Qdi(ki,qe.children,Lu),HR(),Dpt(ki),KR()},zr=(ki,qe,Lu,an,Ir,Zr,io,Pi,li=!1)=>{const di=ki&&ki.children,xt=ki?ki.shapeFlag:0,Nt=qe.children,{patchFlag:mi,shapeFlag:ci}=qe;if(mi>0){if(mi&128){Va(di,Nt,Lu,an,Ir,Zr,io,Pi,li);return}else if(mi&256){Mu(di,Nt,Lu,an,Ir,Zr,io,Pi,li);return}}ci&8?(xt&16&&Ui(di,Ir,Zr),Nt!==di&&x(Lu,Nt)):xt&16?ci&16?Va(di,Nt,Lu,an,Ir,Zr,io,Pi,li):Ui(di,Ir,Zr,!0):(xt&8&&x(Lu,""),ci&16&&Ye(Nt,Lu,an,Ir,Zr,io,Pi,li))},Mu=(ki,qe,Lu,an,Ir,Zr,io,Pi,li)=>{ki=ki||$G,qe=qe||$G;const di=ki.length,xt=qe.length,Nt=Math.min(di,xt);let mi;for(mi=0;mixt?Ui(ki,Ir,Zr,!0,!1,Nt):Ye(qe,Lu,an,Ir,Zr,io,Pi,li,Nt)},Va=(ki,qe,Lu,an,Ir,Zr,io,Pi,li)=>{let di=0;const xt=qe.length;let Nt=ki.length-1,mi=xt-1;for(;di<=Nt&&di<=mi;){const ci=ki[di],hn=qe[di]=li?VT(qe[di]):JF(qe[di]);if(kie(ci,hn))G(ci,hn,Lu,null,Ir,Zr,io,Pi,li);else break;di++}for(;di<=Nt&&di<=mi;){const ci=ki[Nt],hn=qe[mi]=li?VT(qe[mi]):JF(qe[mi]);if(kie(ci,hn))G(ci,hn,Lu,null,Ir,Zr,io,Pi,li);else break;Nt--,mi--}if(di>Nt){if(di<=mi){const ci=mi+1,hn=cimi)for(;di<=Nt;)vn(ki[di],Ir,Zr,!0),di++;else{const ci=di,hn=di,Hn=new Map;for(di=hn;di<=mi;di++){const e0=qe[di]=li?VT(qe[di]):JF(qe[di]);e0.key!=null&&Hn.set(e0.key,di)}let kr,ia=0;const Ei=mi-hn+1;let Do=!1,Nl=0;const kn=new Array(Ei);for(di=0;di=Ei){vn(e0,Ir,Zr,!0);continue}let yl;if(e0.key!=null)yl=Hn.get(e0.key);else for(kr=hn;kr<=mi;kr++)if(kn[kr-hn]===0&&kie(e0,qe[kr])){yl=kr;break}yl===void 0?vn(e0,Ir,Zr,!0):(kn[yl-hn]=di+1,yl>=Nl?Nl=yl:Do=!0,G(e0,qe[yl],Lu,null,Ir,Zr,io,Pi,li),ia++)}const va=Do?i1i(kn):$G;for(kr=va.length-1,di=Ei-1;di>=0;di--){const e0=hn+di,yl=qe[e0],Lh=e0+1{const{el:Zr,type:io,transition:Pi,children:li,shapeFlag:di}=ki;if(di&6){Ku(ki.component.subTree,qe,Lu,an);return}if(di&128){ki.suspense.move(qe,Lu,an);return}if(di&64){io.move(ki,qe,Lu,Ll);return}if(io===gd){n(Zr,qe,Lu);for(let Nt=0;NtPi.enter(Zr),Ir);else{const{leave:Nt,delayLeave:mi,afterLeave:ci}=Pi,hn=()=>n(Zr,qe,Lu),Hn=()=>{Nt(Zr,()=>{hn(),ci&&ci()})};mi?mi(Zr,hn,Hn):Hn()}else n(Zr,qe,Lu)},vn=(ki,qe,Lu,an=!1,Ir=!1)=>{const{type:Zr,props:io,ref:Pi,children:li,dynamicChildren:di,shapeFlag:xt,patchFlag:Nt,dirs:mi}=ki;if(Pi!=null&&KOe(Pi,null,Lu,ki,!0),xt&256){qe.ctx.deactivate(ki);return}const ci=xt&1&&mi,hn=!Bne(ki);let Hn;if(hn&&(Hn=io&&io.onVnodeBeforeUnmount)&&LF(Hn,qe,ki),xt&6)la(ki.component,Lu,an);else{if(xt&128){ki.suspense.unmount(Lu,an);return}ci&&$z(ki,null,qe,"beforeUnmount"),xt&64?ki.type.remove(ki,qe,Lu,Ir,Ll,an):di&&(Zr!==gd||Nt>0&&Nt&64)?Ui(di,qe,Lu,!1,!0):(Zr===gd&&Nt&384||!Ir&&xt&16)&&Ui(li,qe,Lu),an&&Wn(ki)}(hn&&(Hn=io&&io.onVnodeUnmounted)||ci)&&q5(()=>{Hn&&LF(Hn,qe,ki),ci&&$z(ki,null,qe,"unmounted")},Lu)},Wn=ki=>{const{type:qe,el:Lu,anchor:an,transition:Ir}=ki;if(qe===gd){ha(Lu,an);return}if(qe===J3e){ye(ki);return}const Zr=()=>{a(Lu),Ir&&!Ir.persisted&&Ir.afterLeave&&Ir.afterLeave()};if(ki.shapeFlag&1&&Ir&&!Ir.persisted){const{leave:io,delayLeave:Pi}=Ir,li=()=>io(Lu,Zr);Pi?Pi(ki.el,Zr,li):li()}else Zr()},ha=(ki,qe)=>{let Lu;for(;ki!==qe;)Lu=S(ki),a(ki),ki=Lu;a(qe)},la=(ki,qe,Lu)=>{const{bum:an,scope:Ir,update:Zr,subTree:io,um:Pi}=ki;an&&G3e(an),Ir.stop(),Zr&&(Zr.active=!1,vn(io,ki,qe,Lu)),Pi&&q5(Pi,qe),q5(()=>{ki.isUnmounted=!0},qe),qe&&qe.pendingBranch&&!qe.isUnmounted&&ki.asyncDep&&!ki.asyncResolved&&ki.suspenseId===qe.pendingId&&(qe.deps--,qe.deps===0&&qe.resolve())},Ui=(ki,qe,Lu,an=!1,Ir=!1,Zr=0)=>{for(let io=Zr;ioki.shapeFlag&6?Uo(ki.component.subTree):ki.shapeFlag&128?ki.suspense.next():S(ki.anchor||ki.el);let j0=!1;const Vl=(ki,qe,Lu)=>{ki==null?qe._vnode&&vn(qe._vnode,null,null,!0):G(qe._vnode||null,ki,qe,null,null,null,Lu),j0||(j0=!0,Dpt(),r6t(),j0=!1),qe._vnode=ki},Ll={p:G,um:vn,m:Ku,r:Wn,mt:ei,mc:Ye,pc:zr,pbc:Ft,n:Uo,o:r};let Ra,Xs;return e&&([Ra,Xs]=e(Ll)),{render:Vl,hydrate:Ra,createApp:Gdi(Vl,Ra)}}function uIe({type:r,props:e},i){return i==="svg"&&r==="foreignObject"||i==="mathml"&&r==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:i}function Uz({effect:r,update:e},i){r.allowRecurse=e.allowRecurse=i}function t1i(r,e){return(!r||r&&!r.pendingBranch)&&e&&!e.persisted}function v6t(r,e,i=!1){const n=r.children,a=e.children;if(R0(n)&&R0(a))for(let o=0;o>1,r[i[h]]<_?o=h+1:c=h;_0&&(e[n]=i[o-1]),i[o]=n)}}for(o=i.length,c=i[o-1];o-- >0;)i[o]=c,c=e[c];return i}function C6t(r){const e=r.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:C6t(e)}const n1i=r=>r.__isTeleport,gd=Symbol.for("v-fgt"),h6e=Symbol.for("v-txt"),RL=Symbol.for("v-cmt"),J3e=Symbol.for("v-stc"),Lne=[];let oy=null;function ju(r=!1){Lne.push(oy=r?null:[])}function u1i(){Lne.pop(),oy=Lne[Lne.length-1]||null}let kue=1;function wpt(r){kue+=r}function b6t(r){return r.dynamicChildren=kue>0?oy||$G:null,u1i(),kue>0&&oy&&oy.push(r),r}function yr(r,e,i,n,a,o){return b6t(Di(r,e,i,n,a,o,!0))}function Pg(r,e,i,n,a){return b6t(Y0(r,e,i,n,a,!0))}function WDe(r){return r?r.__v_isVNode===!0:!1}function kie(r,e){return r.type===e.type&&r.key===e.key}const f6e="__vInternal",y6t=({key:r})=>r??null,$3e=({ref:r,ref_key:e,ref_for:i})=>(typeof r=="number"&&(r=""+r),r!=null?ng(r)||bp(r)||uc(r)?{i:Vg,r,k:e,f:!!i}:r:null);function Di(r,e=null,i=null,n=0,a=null,o=r===gd?0:1,c=!1,h=!1){const g={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&y6t(e),ref:e&&$3e(e),scopeId:l6e,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Vg};return h?(EGe(g,i),o&128&&r.normalize(g)):i&&(g.shapeFlag|=ng(i)?8:16),kue>0&&!c&&oy&&(g.patchFlag>0||o&6)&&g.patchFlag!==32&&oy.push(g),g}const Y0=r1i;function r1i(r,e=null,i=null,n=0,a=null,o=!1){if((!r||r===xdi)&&(r=RL),WDe(r)){const h=AJ(r,e,!0);return i&&EGe(h,i),kue>0&&!o&&oy&&(h.shapeFlag&6?oy[oy.indexOf(r)]=h:oy.push(h)),h.patchFlag|=-2,h}if(p1i(r)&&(r=r.__vccOpts),e){e=k6t(e);let{class:h,style:g}=e;h&&!ng(h)&&(e.class=Uh(h)),Tf(g)&&(Xxt(g)&&!R0(g)&&(g=M_({},g)),e.style=P3(g))}const c=ng(r)?1:vdi(r)?128:n1i(r)?64:Tf(r)?4:uc(r)?2:0;return Di(r,e,i,n,a,c,o,!0)}function k6t(r){return r?Xxt(r)||f6e in r?M_({},r):r:null}function AJ(r,e,i=!1){const{props:n,ref:a,patchFlag:o,children:c}=r,h=e?_Ge(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:h,key:h&&y6t(h),ref:e&&e.ref?i&&a?R0(a)?a.concat($3e(e)):[a,$3e(e)]:$3e(e):a,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:c,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==gd?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&AJ(r.ssContent),ssFallback:r.ssFallback&&AJ(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce}}function Q0(r=" ",e=0){return Y0(h6e,null,r,e)}function a1i(r,e){const i=Y0(J3e,null,r);return i.staticCount=e,i}function El(r="",e=!1){return e?(ju(),Pg(RL,null,r)):Y0(RL,null,r)}function JF(r){return r==null||typeof r=="boolean"?Y0(RL):R0(r)?Y0(gd,null,r.slice()):typeof r=="object"?VT(r):Y0(h6e,null,String(r))}function VT(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:AJ(r)}function EGe(r,e){let i=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(R0(e))i=16;else if(typeof e=="object")if(n&65){const a=e.default;a&&(a._c&&(a._d=!1),EGe(r,a()),a._c&&(a._d=!0));return}else{i=32;const a=e._;!a&&!(f6e in e)?e._ctx=Vg:a===3&&Vg&&(Vg.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else uc(e)?(e={default:e,_ctx:Vg},i=32):(e=String(e),n&64?(i=16,e=[Q0(e)]):i=8);r.children=e,r.shapeFlag|=i}function _Ge(...r){const e={};for(let i=0;i{let a;return(a=r[i])||(a=r[i]=[]),a.push(n),o=>{a.length>1?a.forEach(c=>c(o)):a[0](o)}};GDe=e("__VUE_INSTANCE_SETTERS__",i=>T_=i),WOe=e("__VUE_SSR_SETTERS__",i=>m6e=i)}const sae=r=>{const e=T_;return GDe(r),r.scope.on(),()=>{r.scope.off(),GDe(e)}},Tpt=()=>{T_&&T_.scope.off(),GDe(null)};function F6t(r){return r.vnode.shapeFlag&4}let m6e=!1;function c1i(r,e=!1){e&&WOe(e);const{props:i,children:n}=r.vnode,a=F6t(r);Udi(r,i,a,e),Ydi(r,n);const o=a?d1i(r,e):void 0;return e&&WOe(!1),o}function d1i(r,e){const i=r.type;r.accessCache=Object.create(null),r.proxy=a6e(new Proxy(r.ctx,Rdi));const{setup:n}=i;if(n){const a=r.setupContext=n.length>1?f1i(r):null,o=sae(r);HR();const c=gL(n,r,0,[r.props,a]);if(KR(),o(),Txt(c)){if(c.then(Tpt,Tpt),e)return c.then(h=>{Lpt(r,h,e)}).catch(h=>{o6e(h,r,0)});r.asyncDep=c}else Lpt(r,c,e)}else A6t(r,e)}function Lpt(r,e,i){uc(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:Tf(e)&&(r.setupState=i6t(e)),A6t(r,i)}let Npt;function A6t(r,e,i){const n=r.type;if(!r.render){if(!e&&Npt&&!n.render){const a=n.template||pGe(r).template;if(a){const{isCustomElement:o,compilerOptions:c}=r.appContext.config,{delimiters:h,compilerOptions:g}=n,_=M_(M_({isCustomElement:o,delimiters:h},c),g);n.render=Npt(a,_)}}r.render=n.render||HC}{const a=sae(r);HR();try{Odi(r)}finally{KR(),a()}}}function h1i(r){return r.attrsProxy||(r.attrsProxy=new Proxy(r.attrs,{get(e,i){return fx(r,"get","$attrs"),e[i]}}))}function f1i(r){const e=i=>{r.exposed=i||{}};return{get attrs(){return h1i(r)},slots:r.slots,emit:r.emit,expose:e}}function p6e(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(i6t(a6e(r.exposed)),{get(e,i){if(i in e)return e[i];if(i in wne)return wne[i](r)},has(e,i){return i in e||i in wne}}))}function m1i(r,e=!0){return uc(r)?r.displayName||r.name:r.name||e&&r.__name}function p1i(r){return uc(r)&&"__vccOpts"in r}const gy=(r,e)=>tdi(r,e,m6e);function g1i(r,e,i){const n=arguments.length;return n===2?Tf(e)&&!R0(e)?WDe(e)?Y0(r,null,[e]):Y0(r,e):Y0(r,null,e):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&WDe(i)&&(i=[i]),Y0(r,e,i))}const E1i="3.4.13";/** +**/function _L(r,e,i,n){let a;try{a=n?r(...n):r()}catch(o){s6e(o,e,i)}return a}function Ey(r,e,i,n){if(rc(r)){const o=_L(r,e,i,n);return o&&Pxt(o)&&o.catch(c=>{s6e(c,e,i)}),o}const a=[];for(let o=0;o>>1,a=I3[n],o=kue(a);oXF&&I3.splice(e,1)}function mdi(r){H0(r)?YG.push(...r):(!HT||!HT.includes(r,r.allowRecurse?_I+1:_I))&&YG.push(r),o6t()}function Cpt(r,e,i=yue?XF+1:0){for(;ikue(i)-kue(n));if(YG.length=0,HT){HT.push(...e);return}for(HT=e,_I=0;_Ir.id==null?1/0:r.id,pdi=(r,e)=>{const i=kue(r)-kue(e);if(i===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return i};function l6t(r){jOe=!1,yue=!0,I3.sort(pdi);try{for(XF=0;XFog(L)?L.trim():L)),y&&(a=i.map(MOe))}let h,g=n[h=iIe(e)]||n[h=iIe(FA(e))];!g&&o&&(g=n[h=iIe(HR(e))]),g&&Ey(g,r,6,a);const _=n[h+"Once"];if(_){if(!r.emitted)r.emitted={};else if(r.emitted[h])return;r.emitted[h]=!0,Ey(_,r,6,a)}}function c6t(r,e,i=!1){const n=e.emitsCache,a=n.get(r);if(a!==void 0)return a;const o=r.emits;let c={},h=!1;if(!rc(r)){const g=_=>{const x=c6t(_,e,!0);x&&(h=!0,z_(c,x))};!i&&e.mixins.length&&e.mixins.forEach(g),r.extends&&g(r.extends),r.mixins&&r.mixins.forEach(g)}return!o&&!h?(Lf(r)&&n.set(r,null),null):(H0(o)?o.forEach(g=>c[g]=null):z_(c,o),Lf(r)&&n.set(r,c),c)}function l6e(r,e){return!r||!i6e(e)?!1:(e=e.slice(2).replace(/Once$/,""),a1(r,e[0].toLowerCase()+e.slice(1))||a1(r,HR(e))||a1(r,e))}let Hg=null,c6e=null;function KDe(r){const e=Hg;return Hg=r,c6e=r&&r.type.__scopeId||null,e}function D$(r){c6e=r}function x$(){c6e=null}const Edi=r=>RL;function RL(r,e=Hg,i){if(!e||r._n)return r;const n=(...a)=>{n._d&&Npt(-1);const o=KDe(e);let c;try{c=r(...a)}finally{KDe(o),n._d&&Npt(1)}return c};return n._n=!0,n._c=!0,n._d=!0,n}function uIe(r){const{type:e,vnode:i,proxy:n,withProxy:a,props:o,propsOptions:[c],slots:h,attrs:g,emit:_,render:x,renderCache:y,data:S,setupState:L,ctx:O,inheritAttrs:G}=r;let ie,ue;const re=KDe(r);try{if(i.shapeFlag&4){const ye=a||n,Le=ye;ie=UF(x.call(Le,ye,y,o,L,S,O)),ue=g}else{const ye=e;ie=UF(ye.length>1?ye(o,{attrs:g,slots:h,emit:_}):ye(o,null)),ue=e.props?g:_di(g)}}catch(ye){zne.length=0,s6e(ye,r,1),ie=N0(OL)}let _e=ie;if(ue&&G!==!1){const ye=Object.keys(ue),{shapeFlag:Le}=_e;ye.length&&Le&7&&(c&&ye.some(iGe)&&(ue=Ddi(ue,c)),_e=BJ(_e,ue))}return i.dirs&&(_e=BJ(_e),_e.dirs=_e.dirs?_e.dirs.concat(i.dirs):i.dirs),i.transition&&(_e.transition=i.transition),ie=_e,KDe(re),ie}const _di=r=>{let e;for(const i in r)(i==="class"||i==="style"||i6e(i))&&((e||(e={}))[i]=r[i]);return e},Ddi=(r,e)=>{const i={};for(const n in r)(!iGe(n)||!(n.slice(9)in e))&&(i[n]=r[n]);return i};function xdi(r,e,i){const{props:n,children:a,component:o}=r,{props:c,children:h,patchFlag:g}=e,_=o.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&g>=0){if(g&1024)return!0;if(g&16)return n?bpt(n,c,_):!!c;if(g&8){const x=e.dynamicProps;for(let y=0;yr.__isSuspense;function kdi(r,e){e&&e.pendingBranch?H0(r)?e.effects.push(...r):e.effects.push(r):mdi(r)}const Fdi=Symbol.for("v-scx"),Adi=()=>Mne(Fdi);function Sdi(r,e){return pGe(r,null,e)}const x_e={};function _A(r,e,i){return pGe(r,e,i)}function pGe(r,e,{immediate:i,deep:n,flush:a,once:o,onTrack:c,onTrigger:h}=em){if(e&&o){const lt=e;e=(...Ue)=>{lt(...Ue),Le()}}const g=L_,_=lt=>n===!0?lt:TI(lt,n===!1?1:void 0);let x,y=!1,S=!1;if(kp(r)?(x=()=>r.value,y=HDe(r)):EL(r)?(x=()=>_(r),y=!0):H0(r)?(S=!0,y=r.some(lt=>EL(lt)||HDe(lt)),x=()=>r.map(lt=>{if(kp(lt))return lt.value;if(EL(lt))return _(lt);if(rc(lt))return _L(lt,g,2)})):rc(r)?e?x=()=>_L(r,g,2):x=()=>(L&&L(),Ey(r,g,3,[O])):x=WC,e&&n){const lt=x;x=()=>TI(lt())}let L,O=lt=>{L=_e.onStop=()=>{_L(lt,g,4),L=_e.onStop=void 0}},G;if(p6e)if(O=WC,e?i&&Ey(e,g,3,[x(),S?[]:void 0,O]):x(),a==="sync"){const lt=Adi();G=lt.__watcherHandles||(lt.__watcherHandles=[])}else return WC;let ie=S?new Array(r.length).fill(x_e):x_e;const ue=()=>{if(!(!_e.active||!_e.dirty))if(e){const lt=_e.run();(n||y||(S?lt.some((Ue,Ze)=>IL(Ue,ie[Ze])):IL(lt,ie)))&&(L&&L(),Ey(e,g,3,[lt,ie===x_e?void 0:S&&ie[0]===x_e?[]:ie,O]),ie=lt)}else _e.run()};ue.allowRecurse=!!e;let re;a==="sync"?re=ue:a==="post"?re=()=>Z5(ue,g&&g.suspense):(ue.pre=!0,g&&(ue.id=g.uid),re=()=>mGe(ue));const _e=new rGe(x,WC,re),ye=Kxt(),Le=()=>{_e.stop(),ye&&nGe(ye.effects,_e)};return e?i?ue():ie=_e.run():a==="post"?Z5(_e.run.bind(_e),g&&g.suspense):_e.run(),G&&G.push(Le),Le}function Bdi(r,e,i){const n=this.proxy,a=og(r)?r.includes(".")?f6t(n,r):()=>n[r]:r.bind(n,n);let o;rc(e)?o=e:(o=e.handler,i=e);const c=cae(this),h=pGe(a,o.bind(n),i);return c(),h}function f6t(r,e){const i=e.split(".");return()=>{let n=r;for(let a=0;a0){if(i>=e)return r;i++}if(n=n||new Set,n.has(r))return r;if(n.add(r),kp(r))TI(r.value,e,i,n);else if(H0(r))for(let a=0;a{TI(a,e,i,n)});else if(zxt(r))for(const a in r)TI(r[a],e,i,n);return r}function Nd(r,e){if(Hg===null)return r;const i=g6e(Hg)||Hg.proxy,n=r.dirs||(r.dirs=[]);for(let a=0;a!!r.type.__asyncLoader,m6t=r=>r.type.__isKeepAlive;function wdi(r,e){p6t(r,"a",e)}function Tdi(r,e){p6t(r,"da",e)}function p6t(r,e,i=L_){const n=r.__wdc||(r.__wdc=()=>{let a=i;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(h6e(e,n,i),i){let a=i.parent;for(;a&&a.parent;)m6t(a.parent.vnode)&&Ldi(n,e,i,a),a=a.parent}}function Ldi(r,e,i,n){const a=h6e(e,r,n,!0);gGe(()=>{nGe(n[e],a)},i)}function h6e(r,e,i=L_,n=!1){if(i){const a=i[r]||(i[r]=[]),o=e.__weh||(e.__weh=(...c)=>{if(i.isUnmounted)return;KR();const h=cae(i),g=Ey(e,i,r,c);return h(),WR(),g});return n?a.unshift(o):a.push(o),o}}const c8=r=>(e,i=L_)=>(!p6e||r==="sp")&&h6e(r,(...n)=>e(...n),i),Ndi=c8("bm"),GR=c8("m"),Pdi=c8("bu"),Mdi=c8("u"),zdi=c8("bum"),gGe=c8("um"),Idi=c8("sp"),Rdi=c8("rtg"),Odi=c8("rtc");function jdi(r,e=L_){h6e("ec",r,e)}function _y(r,e,i,n){let a;const o=i&&i[n];if(H0(r)||og(r)){a=new Array(r.length);for(let c=0,h=r.length;ce(c,h,void 0,o&&o[h]));else{const c=Object.keys(r);a=new Array(c.length);for(let h=0,g=c.length;hGDe(e)?!(e.type===OL||e.type===od&&!g6t(e.children)):!0)?r:null}const VOe=r=>r?B6t(r)?g6e(r)||r.proxy:VOe(r.parent):null,Pne=z_(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>VOe(r.parent),$root:r=>VOe(r.root),$emit:r=>r.emit,$options:r=>EGe(r),$forceUpdate:r=>r.f||(r.f=()=>{r.effect.dirty=!0,mGe(r.update)}),$nextTick:r=>r.n||(r.n=fGe.bind(r.proxy)),$watch:r=>Bdi.bind(r)}),rIe=(r,e)=>r!==em&&!r.__isScriptSetup&&a1(r,e),Vdi={get({_:r},e){const{ctx:i,setupState:n,data:a,props:o,accessCache:c,type:h,appContext:g}=r;let _;if(e[0]!=="$"){const L=c[e];if(L!==void 0)switch(L){case 1:return n[e];case 2:return a[e];case 4:return i[e];case 3:return o[e]}else{if(rIe(n,e))return c[e]=1,n[e];if(a!==em&&a1(a,e))return c[e]=2,a[e];if((_=r.propsOptions[0])&&a1(_,e))return c[e]=3,o[e];if(i!==em&&a1(i,e))return c[e]=4,i[e];HOe&&(c[e]=0)}}const x=Pne[e];let y,S;if(x)return e==="$attrs"&&mx(r,"get",e),x(r);if((y=h.__cssModules)&&(y=y[e]))return y;if(i!==em&&a1(i,e))return c[e]=4,i[e];if(S=g.config.globalProperties,a1(S,e))return S[e]},set({_:r},e,i){const{data:n,setupState:a,ctx:o}=r;return rIe(a,e)?(a[e]=i,!0):n!==em&&a1(n,e)?(n[e]=i,!0):a1(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(o[e]=i,!0)},has({_:{data:r,setupState:e,accessCache:i,ctx:n,appContext:a,propsOptions:o}},c){let h;return!!i[c]||r!==em&&a1(r,c)||rIe(e,c)||(h=o[0])&&a1(h,c)||a1(n,c)||a1(Pne,c)||a1(a.config.globalProperties,c)},defineProperty(r,e,i){return i.get!=null?r._.accessCache[e]=0:a1(i,"value")&&this.set(r,e,i.value,null),Reflect.defineProperty(r,e,i)}};function kpt(r){return H0(r)?r.reduce((e,i)=>(e[i]=null,e),{}):r}let HOe=!0;function Hdi(r){const e=EGe(r),i=r.proxy,n=r.ctx;HOe=!1,e.beforeCreate&&Fpt(e.beforeCreate,r,"bc");const{data:a,computed:o,methods:c,watch:h,provide:g,inject:_,created:x,beforeMount:y,mounted:S,beforeUpdate:L,updated:O,activated:G,deactivated:ie,beforeDestroy:ue,beforeUnmount:re,destroyed:_e,unmounted:ye,render:Le,renderTracked:lt,renderTriggered:Ue,errorCaptured:Ze,serverPrefetch:rt,expose:kt,inheritAttrs:Zt,components:jt,directives:ui,filters:ti}=e;if(_&&Kdi(_,n,null),c)for(const Vt in c){const zr=c[Vt];rc(zr)&&(n[Vt]=zr.bind(i))}if(a){const Vt=a.call(i,i);Lf(Vt)&&(r.data=lae(Vt))}if(HOe=!0,o)for(const Vt in o){const zr=o[Vt],Lu=rc(zr)?zr.bind(i,i):rc(zr.get)?zr.get.bind(i,i):WC,Va=!rc(zr)&&rc(zr.set)?zr.set.bind(i):WC,ju=j6({get:Lu,set:Va});Object.defineProperty(n,Vt,{enumerable:!0,configurable:!0,get:()=>ju.value,set:Tr=>ju.value=Tr})}if(h)for(const Vt in h)E6t(h[Vt],n,i,Vt);if(g){const Vt=rc(g)?g.call(i):g;Reflect.ownKeys(Vt).forEach(zr=>{qdi(zr,Vt[zr])})}x&&Fpt(x,r,"c");function pu(Vt,zr){H0(zr)?zr.forEach(Lu=>Vt(Lu.bind(i))):zr&&Vt(zr.bind(i))}if(pu(Ndi,y),pu(GR,S),pu(Pdi,L),pu(Mdi,O),pu(wdi,G),pu(Tdi,ie),pu(jdi,Ze),pu(Odi,lt),pu(Rdi,Ue),pu(zdi,re),pu(gGe,ye),pu(Idi,rt),H0(kt))if(kt.length){const Vt=r.exposed||(r.exposed={});kt.forEach(zr=>{Object.defineProperty(Vt,zr,{get:()=>i[zr],set:Lu=>i[zr]=Lu})})}else r.exposed||(r.exposed={});Le&&r.render===WC&&(r.render=Le),Zt!=null&&(r.inheritAttrs=Zt),jt&&(r.components=jt),ui&&(r.directives=ui)}function Kdi(r,e,i=WC){H0(r)&&(r=KOe(r));for(const n in r){const a=r[n];let o;Lf(a)?"default"in a?o=Mne(a.from||n,a.default,!0):o=Mne(a.from||n):o=Mne(a),kp(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:c=>o.value=c}):e[n]=o}}function Fpt(r,e,i){Ey(H0(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,i)}function E6t(r,e,i,n){const a=n.includes(".")?f6t(i,n):()=>i[n];if(og(r)){const o=e[r];rc(o)&&_A(a,o)}else if(rc(r))_A(a,r.bind(i));else if(Lf(r))if(H0(r))r.forEach(o=>E6t(o,e,i,n));else{const o=rc(r.handler)?r.handler.bind(i):e[r.handler];rc(o)&&_A(a,o,r)}}function EGe(r){const e=r.type,{mixins:i,extends:n}=e,{mixins:a,optionsCache:o,config:{optionMergeStrategies:c}}=r.appContext,h=o.get(e);let g;return h?g=h:!a.length&&!i&&!n?g=e:(g={},a.length&&a.forEach(_=>WDe(g,_,c,!0)),WDe(g,e,c)),Lf(e)&&o.set(e,g),g}function WDe(r,e,i,n=!1){const{mixins:a,extends:o}=e;o&&WDe(r,o,i,!0),a&&a.forEach(c=>WDe(r,c,i,!0));for(const c in e)if(!(n&&c==="expose")){const h=Wdi[c]||i&&i[c];r[c]=h?h(r[c],e[c]):e[c]}return r}const Wdi={data:Apt,props:Spt,emits:Spt,methods:ane,computed:ane,beforeCreate:TD,created:TD,beforeMount:TD,mounted:TD,beforeUpdate:TD,updated:TD,beforeDestroy:TD,beforeUnmount:TD,destroyed:TD,unmounted:TD,activated:TD,deactivated:TD,errorCaptured:TD,serverPrefetch:TD,components:ane,directives:ane,watch:Jdi,provide:Apt,inject:Gdi};function Apt(r,e){return e?r?function(){return z_(rc(r)?r.call(this,this):r,rc(e)?e.call(this,this):e)}:e:r}function Gdi(r,e){return ane(KOe(r),KOe(e))}function KOe(r){if(H0(r)){const e={};for(let i=0;i1)return i&&rc(e)?e.call(n&&n.proxy):e}}function Zdi(){return!!(L_||Hg||Sue)}function Ydi(r,e,i,n=!1){const a={},o={};jDe(o,m6e,1),r.propsDefaults=Object.create(null),D6t(r,e,a,o);for(const c in r.propsOptions[0])c in a||(a[c]=void 0);i?r.props=n?a:ndi(a):r.type.props?r.props=a:r.props=o,r.attrs=o}function Qdi(r,e,i,n){const{props:a,attrs:o,vnode:{patchFlag:c}}=r,h=s1(a),[g]=r.propsOptions;let _=!1;if((n||c>0)&&!(c&16)){if(c&8){const x=r.vnode.dynamicProps;for(let y=0;y{g=!0;const[S,L]=x6t(y,e,!0);z_(c,S),L&&h.push(...L)};!i&&e.mixins.length&&e.mixins.forEach(x),r.extends&&x(r.extends),r.mixins&&r.mixins.forEach(x)}if(!o&&!g)return Lf(r)&&n.set(r,qG),qG;if(H0(o))for(let x=0;x-1,L[1]=G<0||O-1||a1(L,"default"))&&h.push(y)}}}const _=[c,h];return Lf(r)&&n.set(r,_),_}function Bpt(r){return r[0]!=="$"}function wpt(r){const e=r&&r.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:r===null?"null":""}function Tpt(r,e){return wpt(r)===wpt(e)}function Lpt(r,e){return H0(e)?e.findIndex(i=>Tpt(i,r)):rc(e)&&Tpt(e,r)?0:-1}const v6t=r=>r[0]==="_"||r==="$stable",_Ge=r=>H0(r)?r.map(UF):[UF(r)],Xdi=(r,e,i)=>{if(e._n)return e;const n=RL((...a)=>_Ge(e(...a)),i);return n._c=!1,n},C6t=(r,e,i)=>{const n=r._ctx;for(const a in r){if(v6t(a))continue;const o=r[a];if(rc(o))e[a]=Xdi(a,o,n);else if(o!=null){const c=_Ge(o);e[a]=()=>c}}},b6t=(r,e)=>{const i=_Ge(e);r.slots.default=()=>i},e1i=(r,e)=>{if(r.vnode.shapeFlag&32){const i=e._;i?(r.slots=s1(e),jDe(e,"_",i)):C6t(e,r.slots={})}else r.slots={},e&&b6t(r,e);jDe(r.slots,m6e,1)},t1i=(r,e,i)=>{const{vnode:n,slots:a}=r;let o=!0,c=em;if(n.shapeFlag&32){const h=e._;h?i&&h===1?o=!1:(z_(a,e),!i&&h===1&&delete a._):(o=!e.$stable,C6t(e,a)),c=e}else e&&(b6t(r,e),c={default:1});if(o)for(const h in a)!v6t(h)&&c[h]==null&&delete a[h]};function GOe(r,e,i,n,a=!1){if(H0(r)){r.forEach((S,L)=>GOe(S,e&&(H0(e)?e[L]:e),i,n,a));return}if(Nne(n)&&!a)return;const o=n.shapeFlag&4?g6e(n.component)||n.component.proxy:n.el,c=a?null:o,{i:h,r:g}=r,_=e&&e.r,x=h.refs===em?h.refs={}:h.refs,y=h.setupState;if(_!=null&&_!==g&&(og(_)?(x[_]=null,a1(y,_)&&(y[_]=null)):kp(_)&&(_.value=null)),rc(g))_L(g,h,12,[c,x]);else{const S=og(g),L=kp(g);if(S||L){const O=()=>{if(r.f){const G=S?a1(y,g)?y[g]:x[g]:g.value;a?H0(G)&&nGe(G,o):H0(G)?G.includes(o)||G.push(o):S?(x[g]=[o],a1(y,g)&&(y[g]=x[g])):(g.value=[o],r.k&&(x[r.k]=g.value))}else S?(x[g]=c,a1(y,g)&&(y[g]=c)):L&&(g.value=c,r.k&&(x[r.k]=c))};c?(O.id=-1,Z5(O,i)):O()}}}const Z5=kdi;function i1i(r){return n1i(r)}function n1i(r,e){const i=Ixt();i.__VUE__=!0;const{insert:n,remove:a,patchProp:o,createElement:c,createText:h,createComment:g,setText:_,setElementText:x,parentNode:y,nextSibling:S,setScopeId:L=WC,insertStaticContent:O}=r,G=(ci,Oe,eu,Hi=null,Pr=null,$r=null,wa=void 0,_i=null,ri=!!Oe.dynamicChildren)=>{if(ci===Oe)return;ci&&!Bie(ci,Oe)&&(Hi=eo(ci),Tr(ci,Pr,$r,!0),ci=null),Oe.patchFlag===-2&&(ri=!1,Oe.dynamicChildren=null);const{type:fi,ref:xt,shapeFlag:Tt}=Oe;switch(fi){case f6e:ie(ci,Oe,eu,Hi);break;case OL:ue(ci,Oe,eu,Hi);break;case $3e:ci==null&&re(Oe,eu,Hi,wa);break;case od:jt(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri);break;default:Tt&1?Le(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri):Tt&6?ui(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri):(Tt&64||Tt&128)&&fi.process(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri,r0)}xt!=null&&Pr&&GOe(xt,ci&&ci.ref,$r,Oe||ci,!Oe)},ie=(ci,Oe,eu,Hi)=>{if(ci==null)n(Oe.el=h(Oe.children),eu,Hi);else{const Pr=Oe.el=ci.el;Oe.children!==ci.children&&_(Pr,Oe.children)}},ue=(ci,Oe,eu,Hi)=>{ci==null?n(Oe.el=g(Oe.children||""),eu,Hi):Oe.el=ci.el},re=(ci,Oe,eu,Hi)=>{[ci.el,ci.anchor]=O(ci.children,Oe,eu,Hi,ci.el,ci.anchor)},_e=({el:ci,anchor:Oe},eu,Hi)=>{let Pr;for(;ci&&ci!==Oe;)Pr=S(ci),n(ci,eu,Hi),ci=Pr;n(Oe,eu,Hi)},ye=({el:ci,anchor:Oe})=>{let eu;for(;ci&&ci!==Oe;)eu=S(ci),a(ci),ci=eu;a(Oe)},Le=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{Oe.type==="svg"?wa="svg":Oe.type==="math"&&(wa="mathml"),ci==null?lt(Oe,eu,Hi,Pr,$r,wa,_i,ri):rt(ci,Oe,Pr,$r,wa,_i,ri)},lt=(ci,Oe,eu,Hi,Pr,$r,wa,_i)=>{let ri,fi;const{props:xt,shapeFlag:Tt,transition:pi,dirs:hi}=ci;if(ri=ci.el=c(ci.type,$r,xt&&xt.is,xt),Tt&8?x(ri,ci.children):Tt&16&&Ze(ci.children,ri,null,Hi,Pr,aIe(ci,$r),wa,_i),hi&&Uz(ci,null,Hi,"created"),Ue(ri,ci,ci.scopeId,wa,Hi),xt){for(const On in xt)On!=="value"&&!G3e(On)&&o(ri,On,null,xt[On],$r,ci.children,Hi,Pr,qi);"value"in xt&&o(ri,"value",null,xt.value,$r),(fi=xt.onVnodeBeforeMount)&&PF(fi,Hi,ci)}hi&&Uz(ci,null,Hi,"beforeMount");const cn=u1i(Pr,pi);cn&&pi.beforeEnter(ri),n(ri,Oe,eu),((fi=xt&&xt.onVnodeMounted)||cn||hi)&&Z5(()=>{fi&&PF(fi,Hi,ci),cn&&pi.enter(ri),hi&&Uz(ci,null,Hi,"mounted")},Pr)},Ue=(ci,Oe,eu,Hi,Pr)=>{if(eu&&L(ci,eu),Hi)for(let $r=0;$r{for(let fi=ri;fi{const _i=Oe.el=ci.el;let{patchFlag:ri,dynamicChildren:fi,dirs:xt}=Oe;ri|=ci.patchFlag&16;const Tt=ci.props||em,pi=Oe.props||em;let hi;if(eu&&qz(eu,!1),(hi=pi.onVnodeBeforeUpdate)&&PF(hi,eu,Oe,ci),xt&&Uz(Oe,ci,eu,"beforeUpdate"),eu&&qz(eu,!0),fi?kt(ci.dynamicChildren,fi,_i,eu,Hi,aIe(Oe,Pr),$r):wa||zr(ci,Oe,_i,null,eu,Hi,aIe(Oe,Pr),$r,!1),ri>0){if(ri&16)Zt(_i,Oe,Tt,pi,eu,Hi,Pr);else if(ri&2&&Tt.class!==pi.class&&o(_i,"class",null,pi.class,Pr),ri&4&&o(_i,"style",Tt.style,pi.style,Pr),ri&8){const cn=Oe.dynamicProps;for(let On=0;On{hi&&PF(hi,eu,Oe,ci),xt&&Uz(Oe,ci,eu,"updated")},Hi)},kt=(ci,Oe,eu,Hi,Pr,$r,wa)=>{for(let _i=0;_i{if(eu!==Hi){if(eu!==em)for(const _i in eu)!G3e(_i)&&!(_i in Hi)&&o(ci,_i,eu[_i],null,wa,Oe.children,Pr,$r,qi);for(const _i in Hi){if(G3e(_i))continue;const ri=Hi[_i],fi=eu[_i];ri!==fi&&_i!=="value"&&o(ci,_i,fi,ri,wa,Oe.children,Pr,$r,qi)}"value"in Hi&&o(ci,"value",eu.value,Hi.value,wa)}},jt=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{const fi=Oe.el=ci?ci.el:h(""),xt=Oe.anchor=ci?ci.anchor:h("");let{patchFlag:Tt,dynamicChildren:pi,slotScopeIds:hi}=Oe;hi&&(_i=_i?_i.concat(hi):hi),ci==null?(n(fi,eu,Hi),n(xt,eu,Hi),Ze(Oe.children||[],eu,xt,Pr,$r,wa,_i,ri)):Tt>0&&Tt&64&&pi&&ci.dynamicChildren?(kt(ci.dynamicChildren,pi,eu,Pr,$r,wa,_i),(Oe.key!=null||Pr&&Oe===Pr.subTree)&&y6t(ci,Oe,!0)):zr(ci,Oe,eu,xt,Pr,$r,wa,_i,ri)},ui=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{Oe.slotScopeIds=_i,ci==null?Oe.shapeFlag&512?Pr.ctx.activate(Oe,eu,Hi,wa,ri):ti(Oe,eu,Hi,Pr,$r,wa,ri):Uu(ci,Oe,ri)},ti=(ci,Oe,eu,Hi,Pr,$r,wa)=>{const _i=ci.component=h1i(ci,Hi,Pr);if(m6t(ci)&&(_i.ctx.renderer=r0),f1i(_i),_i.asyncDep){if(Pr&&Pr.registerDep(_i,pu),!ci.el){const ri=_i.subTree=N0(OL);ue(null,ri,Oe,eu)}}else pu(_i,ci,Oe,eu,Pr,$r,wa)},Uu=(ci,Oe,eu)=>{const Hi=Oe.component=ci.component;if(xdi(ci,Oe,eu))if(Hi.asyncDep&&!Hi.asyncResolved){Vt(Hi,Oe,eu);return}else Hi.next=Oe,fdi(Hi.update),Hi.effect.dirty=!0,Hi.update();else Oe.el=ci.el,Hi.vnode=Oe},pu=(ci,Oe,eu,Hi,Pr,$r,wa)=>{const _i=()=>{if(ci.isMounted){let{next:xt,bu:Tt,u:pi,parent:hi,vnode:cn}=ci;{const vo=k6t(ci);if(vo){xt&&(xt.el=cn.el,Vt(ci,xt,wa)),vo.asyncDep.then(()=>{ci.isUnmounted||_i()});return}}let On=xt,Dr;qz(ci,!1),xt?(xt.el=cn.el,Vt(ci,xt,wa)):xt=cn,Tt&&J3e(Tt),(Dr=xt.props&&xt.props.onVnodeBeforeUpdate)&&PF(Dr,hi,xt,cn),qz(ci,!0);const Wr=uIe(ci),xi=ci.subTree;ci.subTree=Wr,G(xi,Wr,y(xi.el),eo(xi),ci,Pr,$r),xt.el=Wr.el,On===null&&vdi(ci,Wr.el),pi&&Z5(pi,Pr),(Dr=xt.props&&xt.props.onVnodeUpdated)&&Z5(()=>PF(Dr,hi,xt,cn),Pr)}else{let xt;const{el:Tt,props:pi}=Oe,{bm:hi,m:cn,parent:On}=ci,Dr=Nne(Oe);if(qz(ci,!1),hi&&J3e(hi),!Dr&&(xt=pi&&pi.onVnodeBeforeMount)&&PF(xt,On,Oe),qz(ci,!0),Tt&&Hl){const Wr=()=>{ci.subTree=uIe(ci),Hl(Tt,ci.subTree,ci,Pr,null)};Dr?Oe.type.__asyncLoader().then(()=>!ci.isUnmounted&&Wr()):Wr()}else{const Wr=ci.subTree=uIe(ci);G(null,Wr,eu,Hi,ci,Pr,$r),Oe.el=Wr.el}if(cn&&Z5(cn,Pr),!Dr&&(xt=pi&&pi.onVnodeMounted)){const Wr=Oe;Z5(()=>PF(xt,On,Wr),Pr)}(Oe.shapeFlag&256||On&&Nne(On.vnode)&&On.vnode.shapeFlag&256)&&ci.a&&Z5(ci.a,Pr),ci.isMounted=!0,Oe=eu=Hi=null}},ri=ci.effect=new rGe(_i,WC,()=>mGe(fi),ci.scope),fi=ci.update=()=>{ri.dirty&&ri.run()};fi.id=ci.uid,qz(ci,!0),fi()},Vt=(ci,Oe,eu)=>{Oe.component=ci;const Hi=ci.vnode.props;ci.vnode=Oe,ci.next=null,Qdi(ci,Oe.props,Hi,eu),t1i(ci,Oe.children,eu),KR(),Cpt(ci),WR()},zr=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri=!1)=>{const fi=ci&&ci.children,xt=ci?ci.shapeFlag:0,Tt=Oe.children,{patchFlag:pi,shapeFlag:hi}=Oe;if(pi>0){if(pi&128){Va(fi,Tt,eu,Hi,Pr,$r,wa,_i,ri);return}else if(pi&256){Lu(fi,Tt,eu,Hi,Pr,$r,wa,_i,ri);return}}hi&8?(xt&16&&qi(fi,Pr,$r),Tt!==fi&&x(eu,Tt)):xt&16?hi&16?Va(fi,Tt,eu,Hi,Pr,$r,wa,_i,ri):qi(fi,Pr,$r,!0):(xt&8&&x(eu,""),hi&16&&Ze(Tt,eu,Hi,Pr,$r,wa,_i,ri))},Lu=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{ci=ci||qG,Oe=Oe||qG;const fi=ci.length,xt=Oe.length,Tt=Math.min(fi,xt);let pi;for(pi=0;pixt?qi(ci,Pr,$r,!0,!1,Tt):Ze(Oe,eu,Hi,Pr,$r,wa,_i,ri,Tt)},Va=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{let fi=0;const xt=Oe.length;let Tt=ci.length-1,pi=xt-1;for(;fi<=Tt&&fi<=pi;){const hi=ci[fi],cn=Oe[fi]=ri?KT(Oe[fi]):UF(Oe[fi]);if(Bie(hi,cn))G(hi,cn,eu,null,Pr,$r,wa,_i,ri);else break;fi++}for(;fi<=Tt&&fi<=pi;){const hi=ci[Tt],cn=Oe[pi]=ri?KT(Oe[pi]):UF(Oe[pi]);if(Bie(hi,cn))G(hi,cn,eu,null,Pr,$r,wa,_i,ri);else break;Tt--,pi--}if(fi>Tt){if(fi<=pi){const hi=pi+1,cn=hipi)for(;fi<=Tt;)Tr(ci[fi],Pr,$r,!0),fi++;else{const hi=fi,cn=fi,On=new Map;for(fi=cn;fi<=pi;fi++){const e0=Oe[fi]=ri?KT(Oe[fi]):UF(Oe[fi]);e0.key!=null&&On.set(e0.key,fi)}let Dr,Wr=0;const xi=pi-cn+1;let vo=!1,Pl=0;const yn=new Array(xi);for(fi=0;fi=xi){Tr(e0,Pr,$r,!0);continue}let Fl;if(e0.key!=null)Fl=On.get(e0.key);else for(Dr=cn;Dr<=pi;Dr++)if(yn[Dr-cn]===0&&Bie(e0,Oe[Dr])){Fl=Dr;break}Fl===void 0?Tr(e0,Pr,$r,!0):(yn[Fl-cn]=fi+1,Fl>=Pl?Pl=Fl:vo=!0,G(e0,Oe[Fl],eu,null,Pr,$r,wa,_i,ri),Wr++)}const xa=vo?r1i(yn):qG;for(Dr=xa.length-1,fi=xi-1;fi>=0;fi--){const e0=cn+fi,Fl=Oe[e0],Ph=e0+1{const{el:$r,type:wa,transition:_i,children:ri,shapeFlag:fi}=ci;if(fi&6){ju(ci.component.subTree,Oe,eu,Hi);return}if(fi&128){ci.suspense.move(Oe,eu,Hi);return}if(fi&64){wa.move(ci,Oe,eu,r0);return}if(wa===od){n($r,Oe,eu);for(let Tt=0;Tt_i.enter($r),Pr);else{const{leave:Tt,delayLeave:pi,afterLeave:hi}=_i,cn=()=>n($r,Oe,eu),On=()=>{Tt($r,()=>{cn(),hi&&hi()})};pi?pi($r,cn,On):On()}else n($r,Oe,eu)},Tr=(ci,Oe,eu,Hi=!1,Pr=!1)=>{const{type:$r,props:wa,ref:_i,children:ri,dynamicChildren:fi,shapeFlag:xt,patchFlag:Tt,dirs:pi}=ci;if(_i!=null&&GOe(_i,null,eu,ci,!0),xt&256){Oe.ctx.deactivate(ci);return}const hi=xt&1&&pi,cn=!Nne(ci);let On;if(cn&&(On=wa&&wa.onVnodeBeforeUnmount)&&PF(On,Oe,ci),xt&6)ra(ci.component,eu,Hi);else{if(xt&128){ci.suspense.unmount(eu,Hi);return}hi&&Uz(ci,null,Oe,"beforeUnmount"),xt&64?ci.type.remove(ci,Oe,eu,Pr,r0,Hi):fi&&($r!==od||Tt>0&&Tt&64)?qi(fi,Oe,eu,!1,!0):($r===od&&Tt&384||!Pr&&xt&16)&&qi(ri,Oe,eu),Hi&&pa(ci)}(cn&&(On=wa&&wa.onVnodeUnmounted)||hi)&&Z5(()=>{On&&PF(On,Oe,ci),hi&&Uz(ci,null,Oe,"unmounted")},eu)},pa=ci=>{const{type:Oe,el:eu,anchor:Hi,transition:Pr}=ci;if(Oe===od){z0(eu,Hi);return}if(Oe===$3e){ye(ci);return}const $r=()=>{a(eu),Pr&&!Pr.persisted&&Pr.afterLeave&&Pr.afterLeave()};if(ci.shapeFlag&1&&Pr&&!Pr.persisted){const{leave:wa,delayLeave:_i}=Pr,ri=()=>wa(eu,$r);_i?_i(ci.el,$r,ri):ri()}else $r()},z0=(ci,Oe)=>{let eu;for(;ci!==Oe;)eu=S(ci),a(ci),ci=eu;a(Oe)},ra=(ci,Oe,eu)=>{const{bum:Hi,scope:Pr,update:$r,subTree:wa,um:_i}=ci;Hi&&J3e(Hi),Pr.stop(),$r&&($r.active=!1,Tr(wa,ci,Oe,eu)),_i&&Z5(_i,Oe),Z5(()=>{ci.isUnmounted=!0},Oe),Oe&&Oe.pendingBranch&&!Oe.isUnmounted&&ci.asyncDep&&!ci.asyncResolved&&ci.suspenseId===Oe.pendingId&&(Oe.deps--,Oe.deps===0&&Oe.resolve())},qi=(ci,Oe,eu,Hi=!1,Pr=!1,$r=0)=>{for(let wa=$r;waci.shapeFlag&6?eo(ci.component.subTree):ci.shapeFlag&128?ci.suspense.next():S(ci.anchor||ci.el);let Fa=!1;const W0=(ci,Oe,eu)=>{ci==null?Oe._vnode&&Tr(Oe._vnode,null,null,!0):G(Oe._vnode||null,ci,Oe,null,null,null,eu),Fa||(Fa=!0,Cpt(),s6t(),Fa=!1),Oe._vnode=ci},r0={p:G,um:Tr,m:ju,r:pa,mt:ti,mc:Ze,pc:zr,pbc:kt,n:eo,o:r};let qa,Hl;return e&&([qa,Hl]=e(r0)),{render:W0,hydrate:qa,createApp:Udi(W0,qa)}}function aIe({type:r,props:e},i){return i==="svg"&&r==="foreignObject"||i==="mathml"&&r==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:i}function qz({effect:r,update:e},i){r.allowRecurse=e.allowRecurse=i}function u1i(r,e){return(!r||r&&!r.pendingBranch)&&e&&!e.persisted}function y6t(r,e,i=!1){const n=r.children,a=e.children;if(H0(n)&&H0(a))for(let o=0;o>1,r[i[h]]<_?o=h+1:c=h;_0&&(e[n]=i[o-1]),i[o]=n)}}for(o=i.length,c=i[o-1];o-- >0;)i[o]=c,c=e[c];return i}function k6t(r){const e=r.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:k6t(e)}const a1i=r=>r.__isTeleport,od=Symbol.for("v-fgt"),f6e=Symbol.for("v-txt"),OL=Symbol.for("v-cmt"),$3e=Symbol.for("v-stc"),zne=[];let cy=null;function Mu(r=!1){zne.push(cy=r?null:[])}function o1i(){zne.pop(),cy=zne[zne.length-1]||null}let Bue=1;function Npt(r){Bue+=r}function F6t(r){return r.dynamicChildren=Bue>0?cy||qG:null,o1i(),Bue>0&&cy&&cy.push(r),r}function vr(r,e,i,n,a,o){return F6t(si(r,e,i,n,a,o,!0))}function eg(r,e,i,n,a){return F6t(N0(r,e,i,n,a,!0))}function GDe(r){return r?r.__v_isVNode===!0:!1}function Bie(r,e){return r.type===e.type&&r.key===e.key}const m6e="__vInternal",A6t=({key:r})=>r??null,U3e=({ref:r,ref_key:e,ref_for:i})=>(typeof r=="number"&&(r=""+r),r!=null?og(r)||kp(r)||rc(r)?{i:Hg,r,k:e,f:!!i}:r:null);function si(r,e=null,i=null,n=0,a=null,o=r===od?0:1,c=!1,h=!1){const g={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&A6t(e),ref:e&&U3e(e),scopeId:c6e,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Hg};return h?(DGe(g,i),o&128&&r.normalize(g)):i&&(g.shapeFlag|=og(i)?8:16),Bue>0&&!c&&cy&&(g.patchFlag>0||o&6)&&g.patchFlag!==32&&cy.push(g),g}const N0=s1i;function s1i(r,e=null,i=null,n=0,a=null,o=!1){if((!r||r===bdi)&&(r=OL),GDe(r)){const h=BJ(r,e,!0);return i&&DGe(h,i),Bue>0&&!o&&cy&&(h.shapeFlag&6?cy[cy.indexOf(r)]=h:cy.push(h)),h.patchFlag|=-2,h}if(_1i(r)&&(r=r.__vccOpts),e){e=S6t(e);let{class:h,style:g}=e;h&&!og(h)&&(e.class=Zh(h)),Lf(g)&&(i6t(g)&&!H0(g)&&(g=z_({},g)),e.style=M3(g))}const c=og(r)?1:ydi(r)?128:a1i(r)?64:Lf(r)?4:rc(r)?2:0;return si(r,e,i,n,a,c,o,!0)}function S6t(r){return r?i6t(r)||m6e in r?z_({},r):r:null}function BJ(r,e,i=!1){const{props:n,ref:a,patchFlag:o,children:c}=r,h=e?xGe(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:h,key:h&&A6t(h),ref:e&&e.ref?i&&a?H0(a)?a.concat(U3e(e)):[a,U3e(e)]:U3e(e):a,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:c,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==od?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&BJ(r.ssContent),ssFallback:r.ssFallback&&BJ(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce}}function P0(r=" ",e=0){return N0(f6e,null,r,e)}function l1i(r,e){const i=N0($3e,null,r);return i.staticCount=e,i}function gl(r="",e=!1){return e?(Mu(),eg(OL,null,r)):N0(OL,null,r)}function UF(r){return r==null||typeof r=="boolean"?N0(OL):H0(r)?N0(od,null,r.slice()):typeof r=="object"?KT(r):N0(f6e,null,String(r))}function KT(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:BJ(r)}function DGe(r,e){let i=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(H0(e))i=16;else if(typeof e=="object")if(n&65){const a=e.default;a&&(a._c&&(a._d=!1),DGe(r,a()),a._c&&(a._d=!0));return}else{i=32;const a=e._;!a&&!(m6e in e)?e._ctx=Hg:a===3&&Hg&&(Hg.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else rc(e)?(e={default:e,_ctx:Hg},i=32):(e=String(e),n&64?(i=16,e=[P0(e)]):i=8);r.children=e,r.shapeFlag|=i}function xGe(...r){const e={};for(let i=0;i{let a;return(a=r[i])||(a=r[i]=[]),a.push(n),o=>{a.length>1?a.forEach(c=>c(o)):a[0](o)}};JDe=e("__VUE_INSTANCE_SETTERS__",i=>L_=i),JOe=e("__VUE_SSR_SETTERS__",i=>p6e=i)}const cae=r=>{const e=L_;return JDe(r),r.scope.on(),()=>{r.scope.off(),JDe(e)}},Ppt=()=>{L_&&L_.scope.off(),JDe(null)};function B6t(r){return r.vnode.shapeFlag&4}let p6e=!1;function f1i(r,e=!1){e&&JOe(e);const{props:i,children:n}=r.vnode,a=B6t(r);Ydi(r,i,a,e),e1i(r,n);const o=a?m1i(r,e):void 0;return e&&JOe(!1),o}function m1i(r,e){const i=r.type;r.accessCache=Object.create(null),r.proxy=o6e(new Proxy(r.ctx,Vdi));const{setup:n}=i;if(n){const a=r.setupContext=n.length>1?g1i(r):null,o=cae(r);KR();const c=_L(n,r,0,[r.props,a]);if(WR(),o(),Pxt(c)){if(c.then(Ppt,Ppt),e)return c.then(h=>{Mpt(r,h,e)}).catch(h=>{s6e(h,r,0)});r.asyncDep=c}else Mpt(r,c,e)}else w6t(r,e)}function Mpt(r,e,i){rc(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:Lf(e)&&(r.setupState=r6t(e)),w6t(r,i)}let zpt;function w6t(r,e,i){const n=r.type;if(!r.render){if(!e&&zpt&&!n.render){const a=n.template||EGe(r).template;if(a){const{isCustomElement:o,compilerOptions:c}=r.appContext.config,{delimiters:h,compilerOptions:g}=n,_=z_(z_({isCustomElement:o,delimiters:h},c),g);n.render=zpt(a,_)}}r.render=n.render||WC}{const a=cae(r);KR();try{Hdi(r)}finally{WR(),a()}}}function p1i(r){return r.attrsProxy||(r.attrsProxy=new Proxy(r.attrs,{get(e,i){return mx(r,"get","$attrs"),e[i]}}))}function g1i(r){const e=i=>{r.exposed=i||{}};return{get attrs(){return p1i(r)},slots:r.slots,emit:r.emit,expose:e}}function g6e(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(r6t(o6e(r.exposed)),{get(e,i){if(i in e)return e[i];if(i in Pne)return Pne[i](r)},has(e,i){return i in e||i in Pne}}))}function E1i(r,e=!0){return rc(r)?r.displayName||r.name:r.name||e&&r.__name}function _1i(r){return rc(r)&&"__vccOpts"in r}const j6=(r,e)=>udi(r,e,p6e);function D1i(r,e,i){const n=arguments.length;return n===2?Lf(e)&&!H0(e)?GDe(e)?N0(r,null,[e]):N0(r,e):N0(r,null,e):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&GDe(i)&&(i=[i]),N0(r,e,i))}const x1i="3.4.13";/** * @vue/runtime-dom v3.4.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const _1i="http://www.w3.org/2000/svg",D1i="http://www.w3.org/1998/Math/MathML",HT=typeof document<"u"?document:null,Ppt=HT&&HT.createElement("template"),x1i={insert:(r,e,i)=>{e.insertBefore(r,i||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,i,n)=>{const a=e==="svg"?HT.createElementNS(_1i,r):e==="mathml"?HT.createElementNS(D1i,r):HT.createElement(r,i?{is:i}:void 0);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>HT.createTextNode(r),createComment:r=>HT.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>HT.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,i,n,a,o){const c=i?i.previousSibling:e.lastChild;if(a&&(a===o||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),i),!(a===o||!(a=a.nextSibling)););else{Ppt.innerHTML=n==="svg"?`${r}`:n==="mathml"?`${r}`:r;const h=Ppt.content;if(n==="svg"||n==="mathml"){const g=h.firstChild;for(;g.firstChild;)h.appendChild(g.firstChild);h.removeChild(g)}e.insertBefore(h,i)}return[c?c.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},v1i=Symbol("_vtc");function C1i(r,e,i){const n=r[v1i];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):i?r.setAttribute("class",e):r.className=e}const b1i=Symbol("_vod"),y1i=Symbol("");function k1i(r,e,i){const n=r.style,a=n.display,o=ng(i);if(i&&!o){if(e&&!ng(e))for(const c in e)i[c]==null&&GOe(n,c,"");for(const c in i)GOe(n,c,i[c])}else if(o){if(e!==i){const c=n[y1i];c&&(i+=";"+c),n.cssText=i}}else e&&r.removeAttribute("style");b1i in r&&(n.display=a)}const Mpt=/\s*!important$/;function GOe(r,e,i){if(R0(i))i.forEach(n=>GOe(r,e,n));else if(i==null&&(i=""),e.startsWith("--"))r.setProperty(e,i);else{const n=F1i(r,e);Mpt.test(i)?r.setProperty(VR(n),i.replace(Mpt,""),"important"):r[n]=i}}const zpt=["Webkit","Moz","ms"],rIe={};function F1i(r,e){const i=rIe[e];if(i)return i;let n=yA(e);if(n!=="filter"&&n in r)return rIe[e]=n;n=u6e(n);for(let a=0;aaIe||(L1i.then(()=>aIe=0),aIe=Date.now());function P1i(r,e){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;my(M1i(n,i.value),e,5,[n])};return i.value=r,i.attached=N1i(),i}function M1i(r,e){if(R0(e)){const i=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0},e.map(n=>a=>!a._stopped&&n&&n(a))}else return e}const jpt=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,z1i=(r,e,i,n,a,o,c,h,g)=>{const _=a==="svg";e==="class"?C1i(r,n,_):e==="style"?k1i(r,i,n):t6e(e)?eGe(e)||w1i(r,e,i,n,c):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):I1i(r,e,n,_))?S1i(r,e,n,o,c,h,g):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),A1i(r,e,n,_))};function I1i(r,e,i,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in r&&jpt(e)&&uc(i));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return jpt(e)&&ng(i)?!1:e in r}const SJ=r=>{const e=r.props["onUpdate:modelValue"]||!1;return R0(e)?i=>G3e(e,i):e};function R1i(r){r.target.composing=!0}function Vpt(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const WS=Symbol("_assign"),oA={created(r,{modifiers:{lazy:e,trim:i,number:n}},a){r[WS]=SJ(a);const o=n||a.props&&a.props.type==="number";$T(r,e?"change":"input",c=>{if(c.target.composing)return;let h=r.value;i&&(h=h.trim()),o&&(h=NOe(h)),r[WS](h)}),i&&$T(r,"change",()=>{r.value=r.value.trim()}),e||($T(r,"compositionstart",R1i),$T(r,"compositionend",Vpt),$T(r,"change",Vpt))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:i,trim:n,number:a}},o){if(r[WS]=SJ(o),r.composing)return;const c=a||r.type==="number"?NOe(r.value):r.value,h=e??"";c!==h&&(document.activeElement===r&&r.type!=="range"&&(i||n&&r.value.trim()===h)||(r.value=h))}},DGe={deep:!0,created(r,e,i){r[WS]=SJ(i),$T(r,"change",()=>{const n=r._modelValue,a=S6t(r),o=r.checked,c=r[WS];if(R0(n)){const h=zxt(n,a),g=h!==-1;if(o&&!g)c(n.concat(a));else if(!o&&g){const _=[...n];_.splice(h,1),c(_)}}else if(i6e(n)){const h=new Set(n);o?h.add(a):h.delete(a),c(h)}else c(B6t(r,o))})},mounted:Hpt,beforeUpdate(r,e,i){r[WS]=SJ(i),Hpt(r,e,i)}};function Hpt(r,{value:e,oldValue:i},n){r._modelValue=e,R0(e)?r.checked=zxt(e,n.props.value)>-1:i6e(e)?r.checked=e.has(n.props.value):e!==i&&(r.checked=kJ(e,B6t(r,!0)))}const x_e={created(r,{value:e},i){r.checked=kJ(e,i.props.value),r[WS]=SJ(i),$T(r,"change",()=>{r[WS](S6t(r))})},beforeUpdate(r,{value:e,oldValue:i},n){r[WS]=SJ(n),e!==i&&(r.checked=kJ(e,n.props.value))}};function S6t(r){return"_value"in r?r._value:r.value}function B6t(r,e){const i=e?"_trueValue":"_falseValue";return i in r?r[i]:e}const O1i=["ctrl","shift","alt","meta"],j1i={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>O1i.some(i=>r[`${i}Key`]&&!e.includes(i))},V1i=(r,e)=>{const i=r._withMods||(r._withMods={}),n=e.join(".");return i[n]||(i[n]=(a,...o)=>{for(let c=0;c{const i=r._withKeys||(r._withKeys={}),n=e.join(".");return i[n]||(i[n]=a=>{if(!("key"in a))return;const o=VR(a.key);if(e.some(c=>c===o||H1i[c]===o))return r(a)})},K1i=M_({patchProp:z1i},x1i);let Kpt;function W1i(){return Kpt||(Kpt=Xdi(K1i))}const T6t=(...r)=>{const e=W1i().createApp(...r),{mount:i}=e;return e.mount=n=>{const a=J1i(n);if(!a)return;const o=e._component;!uc(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const c=i(a,!1,G1i(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),c},e};function G1i(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function J1i(r){return ng(r)?document.querySelector(r):r}const $1i=""+new URL("../logdy-transparent.png",import.meta.url).href,Wpt="logdy";let xGe=class{constructor(e){Rc(this,"lastInsertAt","");Rc(this,"sameInserts",0);Rc(this,"keys",[]);this.prefix=e}clear(){this.lastInsertAt="",this.sameInserts=0,this.keys=[]}startClearingUnknowns(){setInterval(()=>{this.clearUnknown()},10*1e3)}clearUnknown(){for(let e in localStorage)this.doesBelong(e)&&!this.keys.includes(e)&&localStorage.removeItem(e)}doesBelong(e){return e.startsWith(Wpt+"_"+this.prefix+"_")}id(e){return Wpt+"_"+this.prefix+"_"+e}load(){this.clear();for(let e in localStorage)this.doesBelong(e)&&(this.lastInsertAt=e,this.keys.push(e));return this.keys.sort().map(e=>JSON.parse(localStorage.getItem(e)))}count(){let e=0;for(let i in localStorage)this.doesBelong(i)&&e++;return e}getOne(e){let i=localStorage.getItem(this.id(e));return i?JSON.parse(i):void 0}add(e,i){let n=new Date().getTime().toString();n===this.lastInsertAt&&(n=n+"."+(++this.sameInserts).toString());let a=this.id(i||n);return e.id=a,localStorage.setItem(a,JSON.stringify(e)),this.lastInsertAt=n,this.keys.push(a),{id:n.toString()}}update(e,i){localStorage.setItem(this.id(e),JSON.stringify(i))}remove(e){let i=this.id(e);localStorage.removeItem(i);let n=this.keys.indexOf(i);this.keys.splice(n,1)}removeAll(){for(let e in this.keys)localStorage.removeItem(this.keys[e]);this.keys=[]}removeFirst(){localStorage.removeItem(this.keys[0]),this.keys.splice(0,1)}};const Gpt=new xGe("app"),UT=new xGe("logs"),_I=new xGe("layout"),ag=(r,e)=>{const i=r.__vccOpts||r;for(const[n,a]of e)i[n]=a;return i},U1i={},q1i={class:"kdb",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Z1i=Di("path",{d:"M11.0001 3.67157L13.0001 3.67157L13.0001 16.4999L16.2426 13.2574L17.6568 14.6716L12 20.3284L6.34314 14.6716L7.75735 13.2574L11.0001 16.5001L11.0001 3.67157Z",fill:"currentColor"},null,-1),Y1i=[Z1i];function Q1i(r,e){return ju(),yr("svg",q1i,Y1i)}const X1i=ag(U1i,[["render",Q1i]]),ehi={},thi={class:"kdb",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ihi=Di("path",{d:"M17.6568 8.96219L16.2393 10.3731L12.9843 7.10285L12.9706 20.7079L10.9706 20.7059L10.9843 7.13806L7.75404 10.3532L6.34314 8.93572L12.0132 3.29211L17.6568 8.96219Z",fill:"currentColor"},null,-1),nhi=[ihi];function uhi(r,e){return ju(),yr("svg",thi,nhi)}const rhi=ag(ehi,[["render",uhi]]),ahi={},ohi={width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},shi=Di("path",{d:"M8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H15.9595C16.5118 13 16.9595 12.5523 16.9595 12C16.9595 11.4477 16.5118 11 15.9595 11H8Z",fill:"currentColor"},null,-1),lhi=Di("path",{d:"M8.04053 15.0665C7.48824 15.0665 7.04053 15.5142 7.04053 16.0665C7.04053 16.6188 7.48824 17.0665 8.04053 17.0665H16C16.5523 17.0665 17 16.6188 17 16.0665C17 15.5142 16.5523 15.0665 16 15.0665H8.04053Z",fill:"currentColor"},null,-1),chi=Di("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5ZM7 5H5L5 19H19V5H17V6C17 7.65685 15.6569 9 14 9H10C8.34315 9 7 7.65685 7 6V5ZM9 5V6C9 6.55228 9.44772 7 10 7H14C14.5523 7 15 6.55228 15 6V5H9Z",fill:"currentColor"},null,-1),dhi=[shi,lhi,chi];function hhi(r,e){return ju(),yr("svg",ohi,dhi)}const xT=ag(ahi,[["render",hhi]]);var fhi=!1;/*! +**/const v1i="http://www.w3.org/2000/svg",C1i="http://www.w3.org/1998/Math/MathML",WT=typeof document<"u"?document:null,Ipt=WT&&WT.createElement("template"),b1i={insert:(r,e,i)=>{e.insertBefore(r,i||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,i,n)=>{const a=e==="svg"?WT.createElementNS(v1i,r):e==="mathml"?WT.createElementNS(C1i,r):WT.createElement(r,i?{is:i}:void 0);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>WT.createTextNode(r),createComment:r=>WT.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>WT.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,i,n,a,o){const c=i?i.previousSibling:e.lastChild;if(a&&(a===o||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),i),!(a===o||!(a=a.nextSibling)););else{Ipt.innerHTML=n==="svg"?`${r}`:n==="mathml"?`${r}`:r;const h=Ipt.content;if(n==="svg"||n==="mathml"){const g=h.firstChild;for(;g.firstChild;)h.appendChild(g.firstChild);h.removeChild(g)}e.insertBefore(h,i)}return[c?c.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},y1i=Symbol("_vtc");function k1i(r,e,i){const n=r[y1i];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):i?r.setAttribute("class",e):r.className=e}const F1i=Symbol("_vod"),A1i=Symbol("");function S1i(r,e,i){const n=r.style,a=n.display,o=og(i);if(i&&!o){if(e&&!og(e))for(const c in e)i[c]==null&&$Oe(n,c,"");for(const c in i)$Oe(n,c,i[c])}else if(o){if(e!==i){const c=n[A1i];c&&(i+=";"+c),n.cssText=i}}else e&&r.removeAttribute("style");F1i in r&&(n.display=a)}const Rpt=/\s*!important$/;function $Oe(r,e,i){if(H0(i))i.forEach(n=>$Oe(r,e,n));else if(i==null&&(i=""),e.startsWith("--"))r.setProperty(e,i);else{const n=B1i(r,e);Rpt.test(i)?r.setProperty(HR(n),i.replace(Rpt,""),"important"):r[n]=i}}const Opt=["Webkit","Moz","ms"],oIe={};function B1i(r,e){const i=oIe[e];if(i)return i;let n=FA(e);if(n!=="filter"&&n in r)return oIe[e]=n;n=r6e(n);for(let a=0;asIe||(M1i.then(()=>sIe=0),sIe=Date.now());function I1i(r,e){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;Ey(R1i(n,i.value),e,5,[n])};return i.value=r,i.attached=z1i(),i}function R1i(r,e){if(H0(e)){const i=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0},e.map(n=>a=>!a._stopped&&n&&n(a))}else return e}const Kpt=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,O1i=(r,e,i,n,a,o,c,h,g)=>{const _=a==="svg";e==="class"?k1i(r,n,_):e==="style"?S1i(r,i,n):i6e(e)?iGe(e)||N1i(r,e,i,n,c):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):j1i(r,e,n,_))?T1i(r,e,n,o,c,h,g):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),w1i(r,e,n,_))};function j1i(r,e,i,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in r&&Kpt(e)&&rc(i));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Kpt(e)&&og(i)?!1:e in r}const wJ=r=>{const e=r.props["onUpdate:modelValue"]||!1;return H0(e)?i=>J3e(e,i):e};function V1i(r){r.target.composing=!0}function Wpt(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const JS=Symbol("_assign"),GC={created(r,{modifiers:{lazy:e,trim:i,number:n}},a){r[JS]=wJ(a);const o=n||a.props&&a.props.type==="number";qT(r,e?"change":"input",c=>{if(c.target.composing)return;let h=r.value;i&&(h=h.trim()),o&&(h=MOe(h)),r[JS](h)}),i&&qT(r,"change",()=>{r.value=r.value.trim()}),e||(qT(r,"compositionstart",V1i),qT(r,"compositionend",Wpt),qT(r,"change",Wpt))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:i,trim:n,number:a}},o){if(r[JS]=wJ(o),r.composing)return;const c=a||r.type==="number"?MOe(r.value):r.value,h=e??"";c!==h&&(document.activeElement===r&&r.type!=="range"&&(i||n&&r.value.trim()===h)||(r.value=h))}},vGe={deep:!0,created(r,e,i){r[JS]=wJ(i),qT(r,"change",()=>{const n=r._modelValue,a=T6t(r),o=r.checked,c=r[JS];if(H0(n)){const h=Oxt(n,a),g=h!==-1;if(o&&!g)c(n.concat(a));else if(!o&&g){const _=[...n];_.splice(h,1),c(_)}}else if(n6e(n)){const h=new Set(n);o?h.add(a):h.delete(a),c(h)}else c(L6t(r,o))})},mounted:Gpt,beforeUpdate(r,e,i){r[JS]=wJ(i),Gpt(r,e,i)}};function Gpt(r,{value:e,oldValue:i},n){r._modelValue=e,H0(e)?r.checked=Oxt(e,n.props.value)>-1:n6e(e)?r.checked=e.has(n.props.value):e!==i&&(r.checked=AJ(e,L6t(r,!0)))}const v_e={created(r,{value:e},i){r.checked=AJ(e,i.props.value),r[JS]=wJ(i),qT(r,"change",()=>{r[JS](T6t(r))})},beforeUpdate(r,{value:e,oldValue:i},n){r[JS]=wJ(n),e!==i&&(r.checked=AJ(e,n.props.value))}};function T6t(r){return"_value"in r?r._value:r.value}function L6t(r,e){const i=e?"_trueValue":"_falseValue";return i in r?r[i]:e}const H1i=["ctrl","shift","alt","meta"],K1i={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>H1i.some(i=>r[`${i}Key`]&&!e.includes(i))},W1i=(r,e)=>{const i=r._withMods||(r._withMods={}),n=e.join(".");return i[n]||(i[n]=(a,...o)=>{for(let c=0;c{const i=r._withKeys||(r._withKeys={}),n=e.join(".");return i[n]||(i[n]=a=>{if(!("key"in a))return;const o=HR(a.key);if(e.some(c=>c===o||G1i[c]===o))return r(a)})},J1i=z_({patchProp:O1i},b1i);let Jpt;function $1i(){return Jpt||(Jpt=i1i(J1i))}const N6t=(...r)=>{const e=$1i().createApp(...r),{mount:i}=e;return e.mount=n=>{const a=q1i(n);if(!a)return;const o=e._component;!rc(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const c=i(a,!1,U1i(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),c},e};function U1i(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function q1i(r){return og(r)?document.querySelector(r):r}const Z1i=""+new URL("../logdy-transparent.png",import.meta.url).href,$pt="logdy";let bGe=class{constructor(e){Oc(this,"lastInsertAt","");Oc(this,"sameInserts",0);Oc(this,"keys",[]);this.prefix=e}clear(){this.lastInsertAt="",this.sameInserts=0,this.keys=[]}startClearingUnknowns(){setInterval(()=>{this.clearUnknown()},10*1e3)}clearUnknown(){for(let e in localStorage)this.doesBelong(e)&&!this.keys.includes(e)&&localStorage.removeItem(e)}doesBelong(e){return e.startsWith($pt+"_"+this.prefix+"_")}id(e){return $pt+"_"+this.prefix+"_"+e}load(){this.clear();for(let e in localStorage)this.doesBelong(e)&&(this.lastInsertAt=e,this.keys.push(e));return this.keys.sort().map(e=>JSON.parse(localStorage.getItem(e)))}count(){let e=0;for(let i in localStorage)this.doesBelong(i)&&e++;return e}getOne(e){let i=localStorage.getItem(this.id(e));return i?JSON.parse(i):void 0}add(e,i){let n=new Date().getTime().toString();n===this.lastInsertAt&&(n=n+"."+(++this.sameInserts).toString());let a=this.id(i||n);return e.id=a,localStorage.setItem(a,JSON.stringify(e)),this.lastInsertAt=n,this.keys.push(a),{id:n.toString()}}update(e,i){localStorage.setItem(this.id(e),JSON.stringify(i))}remove(e){let i=this.id(e);localStorage.removeItem(i);let n=this.keys.indexOf(i);this.keys.splice(n,1)}removeAll(){for(let e in this.keys)localStorage.removeItem(this.keys[e]);this.keys=[]}removeFirst(){localStorage.removeItem(this.keys[0]),this.keys.splice(0,1)}};const Upt=new bGe("app"),ZT=new bGe("logs"),DI=new bGe("layout"),I4=(r,e)=>{const i=r.__vccOpts||r;for(const[n,a]of e)i[n]=a;return i},Y1i={},Q1i={class:"kdb",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X1i=si("path",{d:"M11.0001 3.67157L13.0001 3.67157L13.0001 16.4999L16.2426 13.2574L17.6568 14.6716L12 20.3284L6.34314 14.6716L7.75735 13.2574L11.0001 16.5001L11.0001 3.67157Z",fill:"currentColor"},null,-1),ehi=[X1i];function thi(r,e){return Mu(),vr("svg",Q1i,ehi)}const ihi=I4(Y1i,[["render",thi]]),nhi={},uhi={class:"kdb",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rhi=si("path",{d:"M17.6568 8.96219L16.2393 10.3731L12.9843 7.10285L12.9706 20.7079L10.9706 20.7059L10.9843 7.13806L7.75404 10.3532L6.34314 8.93572L12.0132 3.29211L17.6568 8.96219Z",fill:"currentColor"},null,-1),ahi=[rhi];function ohi(r,e){return Mu(),vr("svg",uhi,ahi)}const shi=I4(nhi,[["render",ohi]]),lhi={},chi={width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dhi=si("path",{d:"M8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H15.9595C16.5118 13 16.9595 12.5523 16.9595 12C16.9595 11.4477 16.5118 11 15.9595 11H8Z",fill:"currentColor"},null,-1),hhi=si("path",{d:"M8.04053 15.0665C7.48824 15.0665 7.04053 15.5142 7.04053 16.0665C7.04053 16.6188 7.48824 17.0665 8.04053 17.0665H16C16.5523 17.0665 17 16.6188 17 16.0665C17 15.5142 16.5523 15.0665 16 15.0665H8.04053Z",fill:"currentColor"},null,-1),fhi=si("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5ZM7 5H5L5 19H19V5H17V6C17 7.65685 15.6569 9 14 9H10C8.34315 9 7 7.65685 7 6V5ZM9 5V6C9 6.55228 9.44772 7 10 7H14C14.5523 7 15 6.55228 15 6V5H9Z",fill:"currentColor"},null,-1),mhi=[dhi,hhi,fhi];function phi(r,e){return Mu(),vr("svg",chi,mhi)}const CT=I4(lhi,[["render",phi]]);var ghi=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let L6t;const g6e=r=>L6t=r,N6t=Symbol();function JOe(r){return r&&typeof r=="object"&&Object.prototype.toString.call(r)==="[object Object]"&&typeof r.toJSON!="function"}var Nne;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(Nne||(Nne={}));function mhi(){const r=Oxt(!0),e=r.run(()=>Ws({}));let i=[],n=[];const a=a6e({install(o){g6e(a),a._a=o,o.provide(N6t,a),o.config.globalProperties.$pinia=a,n.forEach(c=>i.push(c)),n=[]},use(o){return!this._a&&!fhi?n.push(o):i.push(o),this},_p:i,_a:null,_e:r,_s:new Map,state:e});return a}const P6t=()=>{};function Jpt(r,e,i,n=P6t){r.push(e);const a=()=>{const o=r.indexOf(e);o>-1&&(r.splice(o,1),n())};return!i&&jxt()&&Nci(a),a}function VW(r,...e){r.slice().forEach(i=>{i(...e)})}const phi=r=>r();function $Oe(r,e){r instanceof Map&&e instanceof Map&&e.forEach((i,n)=>r.set(n,i)),r instanceof Set&&e instanceof Set&&e.forEach(r.add,r);for(const i in e){if(!e.hasOwnProperty(i))continue;const n=e[i],a=r[i];JOe(a)&&JOe(n)&&r.hasOwnProperty(i)&&!bp(n)&&!pL(n)?r[i]=$Oe(a,n):r[i]=n}return r}const ghi=Symbol();function Ehi(r){return!JOe(r)||!r.hasOwnProperty(ghi)}const{assign:BT}=Object;function _hi(r){return!!(bp(r)&&r.effect)}function Dhi(r,e,i,n){const{state:a,actions:o,getters:c}=e,h=i.state.value[r];let g;function _(){h||(i.state.value[r]=a?a():{});const x=rdi(i.state.value[r]);return BT(x,o,Object.keys(c||{}).reduce((y,S)=>(y[S]=a6e(gy(()=>{g6e(i);const L=i._s.get(r);return c[S].call(L,L)})),y),{}))}return g=M6t(r,_,e,i,n,!0),g}function M6t(r,e,i={},n,a,o){let c;const h=BT({actions:{}},i),g={deep:!0};let _,x,y=[],S=[],L;const R=n.state.value[r];!o&&!R&&(n.state.value[r]={}),Ws({});let G;function ie(Ye){let rt;_=x=!1,typeof Ye=="function"?(Ye(n.state.value[r]),rt={type:Nne.patchFunction,storeId:r,events:L}):($Oe(n.state.value[r],Ye),rt={type:Nne.patchObject,payload:Ye,storeId:r,events:L});const Ft=G=Symbol();dGe().then(()=>{G===Ft&&(_=!0)}),x=!0,VW(y,rt,n.state.value[r])}const ue=o?function(){const{state:rt}=i,Ft=rt?rt():{};this.$patch(Zt=>{BT(Zt,Ft)})}:P6t;function re(){c.stop(),y=[],S=[],n._s.delete(r)}function _e(Ye,rt){return function(){g6e(n);const Ft=Array.from(arguments),Zt=[],Ot=[];function ui(gu){Zt.push(gu)}function ei(gu){Ot.push(gu)}VW(S,{args:Ft,name:Ye,store:Le,after:ui,onError:ei});let Uu;try{Uu=rt.apply(this&&this.$id===r?this:Le,Ft)}catch(gu){throw VW(Ot,gu),gu}return Uu instanceof Promise?Uu.then(gu=>(VW(Zt,gu),gu)).catch(gu=>(VW(Ot,gu),Promise.reject(gu))):(VW(Zt,Uu),Uu)}}const ye={_p:n,$id:r,$onAction:Jpt.bind(null,S),$patch:ie,$reset:ue,$subscribe(Ye,rt={}){const Ft=Jpt(y,Ye,rt.detached,()=>Zt()),Zt=c.run(()=>EL(()=>n.state.value[r],Ot=>{(rt.flush==="sync"?x:_)&&Ye({storeId:r,type:Nne.direct,events:L},Ot)},BT({},g,rt)));return Ft},$dispose:re},Le=rae(ye);n._s.set(r,Le);const $e=(n._a&&n._a.runWithContext||phi)(()=>n._e.run(()=>(c=Oxt()).run(e)));for(const Ye in $e){const rt=$e[Ye];if(bp(rt)&&!_hi(rt)||pL(rt))o||(R&&Ehi(rt)&&(bp(rt)?rt.value=R[Ye]:$Oe(rt,R[Ye])),n.state.value[r][Ye]=rt);else if(typeof rt=="function"){const Ft=_e(Ye,rt);$e[Ye]=Ft,h.actions[Ye]=rt}}return BT(Le,$e),BT(o1(Le),$e),Object.defineProperty(Le,"$state",{get:()=>n.state.value[r],set:Ye=>{ie(rt=>{BT(rt,Ye)})}}),n._p.forEach(Ye=>{BT(Le,c.run(()=>Ye({store:Le,app:n._a,pinia:n,options:h})))}),R&&o&&i.hydrate&&i.hydrate(Le.$state,R),_=!0,x=!0,Le}function z6t(r,e,i){let n,a;const o=typeof e=="function";typeof r=="string"?(n=r,a=o?i:e):(a=r,n=r.id);function c(h,g){const _=$di();return h=h||(_?Tne(N6t,null):null),h&&g6e(h),h=L6t,h._s.has(n)||(o?M6t(n,e,a,h):Dhi(n,a,h)),h._s.get(n)}return c.$id=n,c}var $pt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xhi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function vhi(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var i=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(i,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),i}function Upt(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var I6t={exports:{}};const Chi={},bhi=Object.freeze(Object.defineProperty({__proto__:null,default:Chi},Symbol.toStringTag,{value:"Module"})),nS=vhi(bhi);(function(r){var e={};/*! ***************************************************************************** + */let P6t;const E6e=r=>P6t=r,M6t=Symbol();function UOe(r){return r&&typeof r=="object"&&Object.prototype.toString.call(r)==="[object Object]"&&typeof r.toJSON!="function"}var Ine;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(Ine||(Ine={}));function Ehi(){const r=Hxt(!0),e=r.run(()=>ds({}));let i=[],n=[];const a=o6e({install(o){E6e(a),a._a=o,o.provide(M6t,a),o.config.globalProperties.$pinia=a,n.forEach(c=>i.push(c)),n=[]},use(o){return!this._a&&!ghi?n.push(o):i.push(o),this},_p:i,_a:null,_e:r,_s:new Map,state:e});return a}const z6t=()=>{};function qpt(r,e,i,n=z6t){r.push(e);const a=()=>{const o=r.indexOf(e);o>-1&&(r.splice(o,1),n())};return!i&&Kxt()&&zci(a),a}function KW(r,...e){r.slice().forEach(i=>{i(...e)})}const _hi=r=>r();function qOe(r,e){r instanceof Map&&e instanceof Map&&e.forEach((i,n)=>r.set(n,i)),r instanceof Set&&e instanceof Set&&e.forEach(r.add,r);for(const i in e){if(!e.hasOwnProperty(i))continue;const n=e[i],a=r[i];UOe(a)&&UOe(n)&&r.hasOwnProperty(i)&&!kp(n)&&!EL(n)?r[i]=qOe(a,n):r[i]=n}return r}const Dhi=Symbol();function xhi(r){return!UOe(r)||!r.hasOwnProperty(Dhi)}const{assign:TT}=Object;function vhi(r){return!!(kp(r)&&r.effect)}function Chi(r,e,i,n){const{state:a,actions:o,getters:c}=e,h=i.state.value[r];let g;function _(){h||(i.state.value[r]=a?a():{});const x=sdi(i.state.value[r]);return TT(x,o,Object.keys(c||{}).reduce((y,S)=>(y[S]=o6e(j6(()=>{E6e(i);const L=i._s.get(r);return c[S].call(L,L)})),y),{}))}return g=I6t(r,_,e,i,n,!0),g}function I6t(r,e,i={},n,a,o){let c;const h=TT({actions:{}},i),g={deep:!0};let _,x,y=[],S=[],L;const O=n.state.value[r];!o&&!O&&(n.state.value[r]={}),ds({});let G;function ie(Ze){let rt;_=x=!1,typeof Ze=="function"?(Ze(n.state.value[r]),rt={type:Ine.patchFunction,storeId:r,events:L}):(qOe(n.state.value[r],Ze),rt={type:Ine.patchObject,payload:Ze,storeId:r,events:L});const kt=G=Symbol();fGe().then(()=>{G===kt&&(_=!0)}),x=!0,KW(y,rt,n.state.value[r])}const ue=o?function(){const{state:rt}=i,kt=rt?rt():{};this.$patch(Zt=>{TT(Zt,kt)})}:z6t;function re(){c.stop(),y=[],S=[],n._s.delete(r)}function _e(Ze,rt){return function(){E6e(n);const kt=Array.from(arguments),Zt=[],jt=[];function ui(pu){Zt.push(pu)}function ti(pu){jt.push(pu)}KW(S,{args:kt,name:Ze,store:Le,after:ui,onError:ti});let Uu;try{Uu=rt.apply(this&&this.$id===r?this:Le,kt)}catch(pu){throw KW(jt,pu),pu}return Uu instanceof Promise?Uu.then(pu=>(KW(Zt,pu),pu)).catch(pu=>(KW(jt,pu),Promise.reject(pu))):(KW(Zt,Uu),Uu)}}const ye={_p:n,$id:r,$onAction:qpt.bind(null,S),$patch:ie,$reset:ue,$subscribe(Ze,rt={}){const kt=qpt(y,Ze,rt.detached,()=>Zt()),Zt=c.run(()=>_A(()=>n.state.value[r],jt=>{(rt.flush==="sync"?x:_)&&Ze({storeId:r,type:Ine.direct,events:L},jt)},TT({},g,rt)));return kt},$dispose:re},Le=lae(ye);n._s.set(r,Le);const Ue=(n._a&&n._a.runWithContext||_hi)(()=>n._e.run(()=>(c=Hxt()).run(e)));for(const Ze in Ue){const rt=Ue[Ze];if(kp(rt)&&!vhi(rt)||EL(rt))o||(O&&xhi(rt)&&(kp(rt)?rt.value=O[Ze]:qOe(rt,O[Ze])),n.state.value[r][Ze]=rt);else if(typeof rt=="function"){const kt=_e(Ze,rt);Ue[Ze]=kt,h.actions[Ze]=rt}}return TT(Le,Ue),TT(s1(Le),Ue),Object.defineProperty(Le,"$state",{get:()=>n.state.value[r],set:Ze=>{ie(rt=>{TT(rt,Ze)})}}),n._p.forEach(Ze=>{TT(Le,c.run(()=>Ze({store:Le,app:n._a,pinia:n,options:h})))}),O&&o&&i.hydrate&&i.hydrate(Le.$state,O),_=!0,x=!0,Le}function R6t(r,e,i){let n,a;const o=typeof e=="function";typeof r=="string"?(n=r,a=o?i:e):(a=r,n=r.id);function c(h,g){const _=Zdi();return h=h||(_?Mne(M6t,null):null),h&&E6e(h),h=P6t,h._s.has(n)||(o?I6t(n,e,a,h):Chi(n,a,h)),h._s.get(n)}return c.$id=n,c}var Zpt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bhi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function yhi(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var i=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(i,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),i}function Ypt(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var O6t={exports:{}};const khi={},Fhi=Object.freeze(Object.defineProperty({__proto__:null,default:khi},Symbol.toStringTag,{value:"Module"})),rS=yhi(Fhi);(function(r){var e={};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31,43 +31,43 @@ var Eci=Object.defineProperty;var _ci=(r,e,i)=>e in r?Eci(r,e,{enumerable:!0,con See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. - ***************************************************************************** */var i=(()=>{var n=Object.defineProperty,a=Object.getOwnPropertyNames,o=(t,u)=>function(){return t&&(u=(0,t[a(t)[0]])(t=0)),u},c=(t,u)=>function(){return u||(0,t[a(t)[0]])((u={exports:{}}).exports,u),u.exports},h=(t,u)=>{for(var s in u)n(t,s,{get:u[s],enumerable:!0})},g,_,x,y=o({"src/compiler/corePublic.ts"(){g="5.3",_="5.3.3",x=(t=>(t[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",t))(x||{})}});function S(t){return t?t.length:0}function L(t,u){if(t)for(let s=0;s=0;s--){const d=u(t[s],s);if(d)return d}}function G(t,u){if(t!==void 0)for(let s=0;s=0;d--){const f=t[d];if(u(f,d))return f}}function $e(t,u,s){if(t===void 0)return-1;for(let d=s??0;d=0;d--)if(u(t[d],d))return d;return-1}function rt(t,u){for(let s=0;ss(d,u[f]))}function Ot(t,u,s){for(let d=s||0;d{const p=u(f,d);if(p!==void 0){const[E,v]=p;E!==void 0&&v!==void 0&&s.set(E,v)}}),s}function Vl(t,u,s){if(t.has(u))return t.get(u);const d=s();return t.set(u,d),d}function Ll(t,u){return t.has(u)?!1:(t.add(u),!0)}function*Ra(t){yield t}function Xs(t,u,s){let d;if(t){d=[];const f=t.length;let p,E,v=0,b=0;for(;v{const[p,E]=u(f,d);s.set(p,E)}),s}function qe(t,u){if(t)if(u){for(const s of t)if(u(s))return!0}else return t.length>0;return!1}function Lu(t,u,s){let d;for(let f=0;ft[E])}function Pi(t,u){const s=[];for(const d of t)va(s,d,u);return s}function li(t,u,s){return t.length===0?[]:t.length===1?t.slice():s?io(t,u,s):Pi(t,u)}function di(t,u){if(t.length===0)return _t;let s=t[0];const d=[s];for(let f=1;f0&&(f&=-2),f&2&&d(p,b)>0&&(f&=-3),p=b}return f}function Hn(t,u,s=vx){if(!t||!u)return t===u;if(t.length!==u.length)return!1;for(let d=0;d0&&H.assertGreaterThanOrEqual(s(u[p],u[p-1]),0);t:for(const E=f;fE&&H.assertGreaterThanOrEqual(s(t[f],t[f-1]),0),s(u[p],t[f])){case-1:d.push(u[p]);continue e;case 0:continue e;case 1:continue t}}return d}function Ei(t,u){return u===void 0?t:t===void 0?[u]:(t.push(u),t)}function Do(t,u){return t===void 0?u:u===void 0?t:Ha(t)?Ha(u)?an(t,u):Ei(t,u):Ha(u)?Ei(u,t):[t,u]}function Nl(t,u){return u<0?t.length+u:u}function kn(t,u,s,d){if(u===void 0||u.length===0)return t;if(t===void 0)return u.slice(s,d);s=s===void 0?0:Nl(u,s),d=d===void 0?u.length:Nl(u,d);for(let f=s;fs(t[d],t[f])||tl(d,f))}function Lh(t,u){return t.length===0?t:t.slice().sort(u)}function*vd(t){for(let u=t.length-1;u>=0;u--)yield t[u]}function ac(t,u){const s=Zr(t);return yl(t,s,u),s.map(d=>t[d])}function zi(t,u,s,d){for(;s>1),b=s(t[v],v);switch(d(b,u)){case-1:p=v+1;break;case 0:return v;case 1:E=v-1;break}}return~p}function tn(t,u,s,d,f){if(t&&t.length>0){const p=t.length;if(p>0){let E=d===void 0||d<0?0:d;const v=f===void 0||E+f>p-1?p-1:E+f;let b;for(arguments.length<=2?(b=t[E],E++):b=s;E<=v;)b=u(b,t[E],E),E++;return b}}return s}function Eu(t,u){return Cx.call(t,u)}function no(t,u){return Cx.call(t,u)?t[u]:void 0}function Ts(t){const u=[];for(const s in t)Cx.call(t,s)&&u.push(s);return u}function Sm(t){const u=[];do{const s=Object.getOwnPropertyNames(t);for(const d of s)va(u,d)}while(t=Object.getPrototypeOf(t));return u}function $1(t){const u=[];for(const s in t)Cx.call(t,s)&&u.push(t[s]);return u}function rm(t,u){const s=new Array(t);for(let d=0;d100&&s>u.length>>1){const v=u.length-s;u.copyWithin(0,s),u.length=v,s=0}return E}return{enqueue:f,dequeue:p,isEmpty:d}}function roe(t,u){const s=new Map;let d=0;function*f(){for(const E of s.values())Ha(E)?yield*E:yield E}const p={has(E){const v=t(E);if(!s.has(v))return!1;const b=s.get(v);if(!Ha(b))return u(b,E);for(const B of b)if(u(B,E))return!0;return!1},add(E){const v=t(E);if(s.has(v)){const b=s.get(v);if(Ha(b))Ft(b,E,u)||(b.push(E),d++);else{const B=b;u(B,E)||(s.set(v,[B,E]),d++)}}else s.set(v,E),d++;return this},delete(E){const v=t(E);if(!s.has(v))return!1;const b=s.get(v);if(Ha(b)){for(let B=0;Bf(),[Symbol.toStringTag]:s[Symbol.toStringTag]};return p}function Ha(t){return Array.isArray(t)}function qA(t){return Ha(t)?t:[t]}function Ja(t){return typeof t=="string"}function $D(t){return typeof t=="number"}function ar(t,u){return t!==void 0&&u(t)?t:void 0}function Lo(t,u){return t!==void 0&&u(t)?t:H.fail(`Invalid cast. The supplied value ${t} did not pass the test '${H.getFunctionName(u)}'.`)}function Ms(t){}function sg(){return!1}function G3(){return!0}function cv(){}function el(t){return t}function GCe(t){return t.toLowerCase()}function Jg(t){return n2e.test(t)?t.replace(n2e,GCe):t}function lo(){throw new Error("Not implemented")}function Nh(t){let u;return()=>(t&&(u=t(),t=void 0),u)}function VE(t){const u=new Map;return s=>{const d=`${typeof s}:${s}`;let f=u.get(d);return f===void 0&&!u.has(d)&&(f=t(s),u.set(d,f)),f}}function cqe(t){const u=new WeakMap;return s=>{let d=u.get(s);return d===void 0&&!u.has(s)&&(d=t(s),u.set(s,d)),d}}function JCe(t,u){return(...s)=>{let d=u.get(s);return d===void 0&&!u.has(s)&&(d=t(...s),u.set(s,d)),d}}function dqe(t,u,s,d,f){if(f){const p=[];for(let E=0;Etn(p,(v,b)=>b(v),E)}else return d?p=>d(s(u(t(p)))):s?p=>s(u(t(p))):u?p=>u(t(p)):t?p=>t(p):p=>p}function vx(t,u){return t===u}function ZA(t,u){return t===u||t!==void 0&&u!==void 0&&t.toUpperCase()===u.toUpperCase()}function YA(t,u){return vx(t,u)}function hqe(t,u){return t===u?0:t===void 0?-1:u===void 0?1:tu(s,d)===-1?s:d)}function J$(t,u){return t===u?0:t===void 0?-1:u===void 0?1:(t=t.toUpperCase(),u=u.toUpperCase(),tu?1:0)}function $Ce(t,u){return t===u?0:t===void 0?-1:u===void 0?1:(t=t.toLowerCase(),u=u.toLowerCase(),tu?1:0)}function ch(t,u){return hqe(t,u)}function vN(t){return t?J$:ch}function UCe(){return moe}function qCe(t){moe!==t&&(moe=t,u2e=void 0)}function fO(t,u){return(u2e||(u2e=pqe(moe)))(t,u)}function ZCe(t,u,s,d){return t===u?0:t===void 0?-1:u===void 0?1:d(t[s],u[s])}function s2(t,u){return tl(t?1:0,u?1:0)}function CN(t,u,s){const d=Math.max(2,Math.floor(t.length*.34));let f=Math.floor(t.length*.4)+1,p;for(const E of u){const v=s(E);if(v!==void 0&&Math.abs(v.length-t.length)<=d){if(v===t||v.length<3&&v.toLowerCase()!==t.toLowerCase())continue;const b=_wt(t,v,f-.1);if(b===void 0)continue;H.assert(bs?v-s:1),k=Math.floor(u.length>s+v?s+v:u.length);f[0]=v;let T=v;for(let z=1;zs)return;const M=d;d=f,f=M}const E=d[u.length];return E>s?void 0:E}function oc(t,u){const s=t.length-u.length;return s>=0&&t.indexOf(u,s)===s}function E8(t,u){return oc(t,u)?t.slice(0,t.length-u.length):t}function YCe(t,u){return oc(t,u)?t.slice(0,t.length-u.length):void 0}function ooe(t){let u=t.length;for(let s=u-1;s>0;s--){let d=t.charCodeAt(s);if(d>=48&&d<=57)do--s,d=t.charCodeAt(s);while(s>0&&d>=48&&d<=57);else if(s>4&&(d===110||d===78)){if(--s,d=t.charCodeAt(s),d!==105&&d!==73||(--s,d=t.charCodeAt(s),d!==109&&d!==77))break;--s,d=t.charCodeAt(s)}else break;if(d!==45&&d!==46)break;u=s}return u===t.length?t:t.slice(0,u)}function mO(t,u){for(let s=0;ss===u)}function Dwt(t,u){for(let s=0;sf&&(f=E.prefix.length,d=p)}return d}function Na(t,u){return t.lastIndexOf(u,0)===0}function bN(t,u){return Na(t,u)?t.substr(u.length):t}function coe(t,u,s=el){return Na(s(t),s(u))?t.substring(u.length):void 0}function $$({prefix:t,suffix:u},s){return s.length>=t.length+u.length&&Na(s,t)&&oc(s,u)}function U$(t,u){return s=>t(s)&&u(s)}function lg(...t){return(...u)=>{let s;for(const d of t)if(s=d(...u),s)return s;return s}}function q$(t){return(...u)=>!t(...u)}function fqe(t){}function jy(t){return t===void 0?void 0:[t]}function Z$(t,u,s,d,f,p){p=p||Ms;let E=0,v=0;const b=t.length,B=u.length;let k=!1;for(;E(t[t.None=0]="None",t[t.CaseSensitive=1]="CaseSensitive",t[t.CaseInsensitive=2]="CaseInsensitive",t[t.Both=3]="Both",t))(hoe||{}),UD=Array.prototype.at?(t,u)=>t==null?void 0:t.at(u):(t,u)=>{if(t&&(u=Nl(t,u),u(t[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",t))(foe||{}),pqe=(()=>{return u;function t(s,d,f){if(s===d)return 0;if(s===void 0)return-1;if(d===void 0)return 1;const p=f(s,d);return p<0?-1:p>0?1:0}function u(s){const d=new Intl.Collator(s,{usage:"sort",sensitivity:"variant"}).compare;return(f,p)=>t(f,p,d)}})()}}),poe,H,vwt=o({"src/compiler/debug.ts"(){Ao(),Ao(),poe=(t=>(t[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Verbose=4]="Verbose",t))(poe||{}),(t=>{let u=0;t.currentLogLevel=2,t.isDebugging=!1;function s(Ai){return t.currentLogLevel<=Ai}t.shouldLog=s;function d(Ai,Dn){t.loggingHost&&s(Ai)&&t.loggingHost.log(Ai,Dn)}function f(Ai){d(3,Ai)}t.log=f,(Ai=>{function Dn(xa){d(1,xa)}Ai.error=Dn;function bn(xa){d(2,xa)}Ai.warn=bn;function iu(xa){d(3,xa)}Ai.log=iu;function oa(xa){d(4,xa)}Ai.trace=oa})(f=t.log||(t.log={}));const p={};function E(){return u}t.getAssertionLevel=E;function v(Ai){const Dn=u;if(u=Ai,Ai>Dn)for(const bn of Ts(p)){const iu=p[bn];iu!==void 0&&t[bn]!==iu.assertion&&Ai>=iu.level&&(t[bn]=iu,p[bn]=void 0)}}t.setAssertionLevel=v;function b(Ai){return u>=Ai}t.shouldAssert=b;function B(Ai,Dn){return b(Ai)?!0:(p[Dn]={level:Ai,assertion:t[Dn]},t[Dn]=Ms,!1)}function k(Ai,Dn){debugger;const bn=new Error(Ai?`Debug Failure. ${Ai}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(bn,Dn||k),bn}t.fail=k;function T(Ai,Dn,bn){return k(`${Dn||"Unexpected node."}\r -Node ${He(Ai.kind)} was unexpected.`,bn||T)}t.failBadSyntaxKind=T;function M(Ai,Dn,bn,iu){Ai||(Dn=Dn?`False expression: ${Dn}`:"False expression.",bn&&(Dn+=`\r -Verbose Debug Information: `+(typeof bn=="string"?bn:bn())),k(Dn,iu||M))}t.assert=M;function z(Ai,Dn,bn,iu,oa){if(Ai!==Dn){const xa=bn?iu?`${bn} ${iu}`:bn:"";k(`Expected ${Ai} === ${Dn}. ${xa}`,oa||z)}}t.assertEqual=z;function j(Ai,Dn,bn,iu){Ai>=Dn&&k(`Expected ${Ai} < ${Dn}. ${bn||""}`,iu||j)}t.assertLessThan=j;function J(Ai,Dn,bn){Ai>Dn&&k(`Expected ${Ai} <= ${Dn}`,bn||J)}t.assertLessThanOrEqual=J;function K(Ai,Dn,bn){Ai= ${Dn}`,bn||K)}t.assertGreaterThanOrEqual=K;function Y(Ai,Dn,bn){Ai==null&&k(Dn,bn||Y)}t.assertIsDefined=Y;function oe(Ai,Dn,bn){return Y(Ai,Dn,bn||oe),Ai}t.checkDefined=oe;function se(Ai,Dn,bn){for(const iu of Ai)Y(iu,Dn,bn||se)}t.assertEachIsDefined=se;function ge(Ai,Dn,bn){return se(Ai,Dn,bn||ge),Ai}t.checkEachDefined=ge;function ae(Ai,Dn="Illegal value:",bn){const iu=typeof Ai=="object"&&Eu(Ai,"kind")&&Eu(Ai,"pos")?"SyntaxKind: "+He(Ai.kind):JSON.stringify(Ai);return k(`${Dn} ${iu}`,bn||ae)}t.assertNever=ae;function Ce(Ai,Dn,bn,iu){B(1,"assertEachNode")&&M(Dn===void 0||ye(Ai,Dn),bn||"Unexpected node.",()=>`Node array did not pass test '${xe(Dn)}'.`,iu||Ce)}t.assertEachNode=Ce;function ne(Ai,Dn,bn,iu){B(1,"assertNode")&&M(Ai!==void 0&&(Dn===void 0||Dn(Ai)),bn||"Unexpected node.",()=>`Node ${He(Ai==null?void 0:Ai.kind)} did not pass test '${xe(Dn)}'.`,iu||ne)}t.assertNode=ne;function ve(Ai,Dn,bn,iu){B(1,"assertNotNode")&&M(Ai===void 0||Dn===void 0||!Dn(Ai),bn||"Unexpected node.",()=>`Node ${He(Ai.kind)} should not have passed test '${xe(Dn)}'.`,iu||ve)}t.assertNotNode=ve;function Se(Ai,Dn,bn,iu){B(1,"assertOptionalNode")&&M(Dn===void 0||Ai===void 0||Dn(Ai),bn||"Unexpected node.",()=>`Node ${He(Ai==null?void 0:Ai.kind)} did not pass test '${xe(Dn)}'.`,iu||Se)}t.assertOptionalNode=Se;function Ne(Ai,Dn,bn,iu){B(1,"assertOptionalToken")&&M(Dn===void 0||Ai===void 0||Ai.kind===Dn,bn||"Unexpected node.",()=>`Node ${He(Ai==null?void 0:Ai.kind)} was not a '${He(Dn)}' token.`,iu||Ne)}t.assertOptionalToken=Ne;function pe(Ai,Dn,bn){B(1,"assertMissingNode")&&M(Ai===void 0,Dn||"Unexpected node.",()=>`Node ${He(Ai.kind)} was unexpected'.`,bn||pe)}t.assertMissingNode=pe;function fe(Ai){}t.type=fe;function xe(Ai){if(typeof Ai!="function")return"";if(Eu(Ai,"name"))return Ai.name;{const Dn=Function.prototype.toString.call(Ai),bn=/^function\s+([\w$]+)\s*\(/.exec(Dn);return bn?bn[1]:""}}t.getFunctionName=xe;function Be(Ai){return`{ name: ${Yr(Ai.escapedName)}; flags: ${Yt(Ai.flags)}; declarations: ${Kt(Ai.declarations,Dn=>He(Dn.kind))} }`}t.formatSymbol=Be;function We(Ai=0,Dn,bn){const iu=De(Dn);if(Ai===0)return iu.length>0&&iu[0][0]===0?iu[0][1]:"0";if(bn){const oa=[];let xa=Ai;for(const[ra,wa]of iu){if(ra>Ai)break;ra!==0&&ra&Ai&&(oa.push(wa),xa&=~ra)}if(xa===0)return oa.join("|")}else for(const[oa,xa]of iu)if(oa===Ai)return xa;return Ai.toString()}t.formatEnum=We;const Ae=new Map;function De(Ai){const Dn=Ae.get(Ai);if(Dn)return Dn;const bn=[];for(const oa in Ai){const xa=Ai[oa];typeof xa=="number"&&bn.push([xa,oa])}const iu=ac(bn,(oa,xa)=>tl(oa[0],xa[0]));return Ae.set(Ai,iu),iu}function He(Ai){return We(Ai,eU,!1)}t.formatSyntaxKind=He;function Ge(Ai){return We(Ai,fU,!1)}t.formatSnippetKind=Ge;function ft(Ai){return We(Ai,dU,!1)}t.formatScriptKind=ft;function Ze(Ai){return We(Ai,tU,!0)}t.formatNodeFlags=Ze;function je(Ai){return We(Ai,iU,!0)}t.formatModifierFlags=je;function Ke(Ai){return We(Ai,hU,!0)}t.formatTransformFlags=Ke;function Gt(Ai){return We(Ai,mU,!0)}t.formatEmitFlags=Gt;function Yt(Ai){return We(Ai,oU,!0)}t.formatSymbolFlags=Yt;function Ie(Ai){return We(Ai,sU,!0)}t.formatTypeFlags=Ie;function st(Ai){return We(Ai,cU,!0)}t.formatSignatureFlags=st;function St(Ai){return We(Ai,lU,!0)}t.formatObjectFlags=St;function It(Ai){return We(Ai,_O,!0)}t.formatFlowFlags=It;function ti(Ai){return We(Ai,nU,!0)}t.formatRelationComparisonResult=ti;function ht(Ai){return We(Ai,qY,!0)}t.formatCheckMode=ht;function Ut(Ai){return We(Ai,ZY,!0)}t.formatSignatureCheckMode=Ut;function Li(Ai){return We(Ai,UY,!0)}t.formatTypeFacts=Li;let ji=!1,xn;function Un(Ai){"__debugFlowFlags"in Ai||Object.defineProperties(Ai,{__tsDebuggerDisplay:{value(){const Dn=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",bn=this.flags&-2048;return`${Dn}${bn?` (${It(bn)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,_O,!0)}},__debugToString:{value(){return Nn(this)}}})}function rn(Ai){ji&&(typeof Object.setPrototypeOf=="function"?(xn||(xn=Object.create(Object.prototype),Un(xn)),Object.setPrototypeOf(Ai,xn)):Un(Ai))}t.attachFlowNodeDebugInfo=rn;let Ni;function Fi(Ai){"__tsDebuggerDisplay"in Ai||Object.defineProperties(Ai,{__tsDebuggerDisplay:{value(Dn){return Dn=String(Dn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Dn}`}}})}function Qu(Ai){ji&&(typeof Object.setPrototypeOf=="function"?(Ni||(Ni=Object.create(Array.prototype),Fi(Ni)),Object.setPrototypeOf(Ai,Ni)):Fi(Ai))}t.attachNodeArrayDebugInfo=Qu;function aa(){if(ji)return;const Ai=new WeakMap,Dn=new WeakMap;Object.defineProperties(Yd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const iu=this.flags&33554432?"TransientSymbol":"Symbol",oa=this.flags&-33554433;return`${iu} '${sc(this)}'${oa?` (${Yt(oa)})`:""}`}},__debugFlags:{get(){return Yt(this.flags)}}}),Object.defineProperties(Yd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const iu=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",oa=this.flags&524288?this.objectFlags&-1344:0;return`${iu}${this.symbol?` '${sc(this.symbol)}'`:""}${oa?` (${St(oa)})`:""}`}},__debugFlags:{get(){return Ie(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?St(this.objectFlags):""}},__debugTypeToString:{value(){let iu=Ai.get(this);return iu===void 0&&(iu=this.checker.typeToString(this),Ai.set(this,iu)),iu}}}),Object.defineProperties(Yd.getSignatureConstructor().prototype,{__debugFlags:{get(){return st(this.flags)}},__debugSignatureToString:{value(){var iu;return(iu=this.checker)==null?void 0:iu.signatureToString(this)}}});const bn=[Yd.getNodeConstructor(),Yd.getIdentifierConstructor(),Yd.getTokenConstructor(),Yd.getSourceFileConstructor()];for(const iu of bn)Eu(iu.prototype,"__debugKind")||Object.defineProperties(iu.prototype,{__tsDebuggerDisplay:{value(){return`${ul(this)?"GeneratedIdentifier":at(this)?`Identifier '${mu(this)}'`:Xr(this)?`PrivateIdentifier '${mu(this)}'`:ns(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Rf(this)?`NumericLiteral ${this.text}`:QZ(this)?`BigIntLiteral ${this.text}n`:Al(this)?"TypeParameterDeclaration":eo(this)?"ParameterDeclaration":dc(this)?"ConstructorDeclaration":Mm(this)?"GetAccessorDeclaration":Of(this)?"SetAccessorDeclaration":xB(this)?"CallSignatureDeclaration":yV(this)?"ConstructSignatureDeclaration":pk(this)?"IndexSignatureDeclaration":iY(this)?"TypePredicateNode":Y4(this)?"TypeReferenceNode":n3(this)?"FunctionTypeNode":KP(this)?"ConstructorTypeNode":vB(this)?"TypeQueryNode":hm(this)?"TypeLiteralNode":nY(this)?"ArrayTypeNode":CB(this)?"TupleTypeNode":_ce(this)?"OptionalTypeNode":Dce(this)?"RestTypeNode":Lv(this)?"UnionTypeNode":bB(this)?"IntersectionTypeNode":yB(this)?"ConditionalTypeNode":L7(this)?"InferTypeNode":N7(this)?"ParenthesizedTypeNode":uY(this)?"ThisTypeNode":P7(this)?"TypeOperatorNode":M7(this)?"IndexedAccessTypeNode":GP(this)?"MappedTypeNode":Nv(this)?"LiteralTypeNode":WP(this)?"NamedTupleMember":iD(this)?"ImportTypeNode":He(this.kind)}${this.flags?` (${Ze(this.flags)})`:""}`}},__debugKind:{get(){return He(this.kind)}},__debugNodeFlags:{get(){return Ze(this.flags)}},__debugModifierFlags:{get(){return je(Tye(this))}},__debugTransformFlags:{get(){return Ke(this.transformFlags)}},__debugIsParseTreeNode:{get(){return MN(this)}},__debugEmitFlags:{get(){return Gt(vs(this))}},__debugGetText:{value(oa){if(al(this))return"";let xa=Dn.get(this);if(xa===void 0){const ra=Ua(this),wa=ra&&In(ra);xa=wa?E2(wa,ra,oa):"",Dn.set(this,xa)}return xa}}});ji=!0}t.enableDebugInfo=aa;function Fr(Ai){const Dn=Ai&7;let bn=Dn===0?"in out":Dn===3?"[bivariant]":Dn===2?"in":Dn===1?"out":Dn===4?"[independent]":"";return Ai&8?bn+=" (unmeasurable)":Ai&16&&(bn+=" (unreliable)"),bn}t.formatVariance=Fr;class Ba{__debugToString(){var Dn;switch(this.kind){case 3:return((Dn=this.debugInfo)==null?void 0:Dn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return re(this.sources,this.targets||Kt(this.sources,()=>"any"),(bn,iu)=>`${bn.__debugTypeToString()} -> ${typeof iu=="string"?iu:iu.__debugTypeToString()}`).join(", ");case 2:return re(this.sources,this.targets,(bn,iu)=>`${bn.__debugTypeToString()} -> ${iu().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` + ***************************************************************************** */var i=(()=>{var n=Object.defineProperty,a=Object.getOwnPropertyNames,o=(t,u)=>function(){return t&&(u=(0,t[a(t)[0]])(t=0)),u},c=(t,u)=>function(){return u||(0,t[a(t)[0]])((u={exports:{}}).exports,u),u.exports},h=(t,u)=>{for(var s in u)n(t,s,{get:u[s],enumerable:!0})},g,_,x,y=o({"src/compiler/corePublic.ts"(){g="5.3",_="5.3.3",x=(t=>(t[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",t))(x||{})}});function S(t){return t?t.length:0}function L(t,u){if(t)for(let s=0;s=0;s--){const d=u(t[s],s);if(d)return d}}function G(t,u){if(t!==void 0)for(let s=0;s=0;d--){const f=t[d];if(u(f,d))return f}}function Ue(t,u,s){if(t===void 0)return-1;for(let d=s??0;d=0;d--)if(u(t[d],d))return d;return-1}function rt(t,u){for(let s=0;ss(d,u[f]))}function jt(t,u,s){for(let d=s||0;d{const p=u(f,d);if(p!==void 0){const[E,v]=p;E!==void 0&&v!==void 0&&s.set(E,v)}}),s}function W0(t,u,s){if(t.has(u))return t.get(u);const d=s();return t.set(u,d),d}function r0(t,u){return t.has(u)?!1:(t.add(u),!0)}function*qa(t){yield t}function Hl(t,u,s){let d;if(t){d=[];const f=t.length;let p,E,v=0,b=0;for(;v{const[p,E]=u(f,d);s.set(p,E)}),s}function Oe(t,u){if(t)if(u){for(const s of t)if(u(s))return!0}else return t.length>0;return!1}function eu(t,u,s){let d;for(let f=0;ft[E])}function _i(t,u){const s=[];for(const d of t)xa(s,d,u);return s}function ri(t,u,s){return t.length===0?[]:t.length===1?t.slice():s?wa(t,u,s):_i(t,u)}function fi(t,u){if(t.length===0)return _t;let s=t[0];const d=[s];for(let f=1;f0&&(f&=-2),f&2&&d(p,b)>0&&(f&=-3),p=b}return f}function On(t,u,s=Cx){if(!t||!u)return t===u;if(t.length!==u.length)return!1;for(let d=0;d0&&H.assertGreaterThanOrEqual(s(u[p],u[p-1]),0);t:for(const E=f;fE&&H.assertGreaterThanOrEqual(s(t[f],t[f-1]),0),s(u[p],t[f])){case-1:d.push(u[p]);continue e;case 0:continue e;case 1:continue t}}return d}function xi(t,u){return u===void 0?t:t===void 0?[u]:(t.push(u),t)}function vo(t,u){return t===void 0?u:u===void 0?t:Ha(t)?Ha(u)?Hi(t,u):xi(t,u):Ha(u)?xi(u,t):[t,u]}function Pl(t,u){return u<0?t.length+u:u}function yn(t,u,s,d){if(u===void 0||u.length===0)return t;if(t===void 0)return u.slice(s,d);s=s===void 0?0:Pl(u,s),d=d===void 0?u.length:Pl(u,d);for(let f=s;fs(t[d],t[f])||nl(d,f))}function Ph(t,u){return t.length===0?t:t.slice().sort(u)}function*Cd(t){for(let u=t.length-1;u>=0;u--)yield t[u]}function oc(t,u){const s=$r(t);return Fl(t,s,u),s.map(d=>t[d])}function zi(t,u,s,d){for(;s>1),b=s(t[v],v);switch(d(b,u)){case-1:p=v+1;break;case 0:return v;case 1:E=v-1;break}}return~p}function nn(t,u,s,d,f){if(t&&t.length>0){const p=t.length;if(p>0){let E=d===void 0||d<0?0:d;const v=f===void 0||E+f>p-1?p-1:E+f;let b;for(arguments.length<=2?(b=t[E],E++):b=s;E<=v;)b=u(b,t[E],E),E++;return b}}return s}function gu(t,u){return bx.call(t,u)}function uo(t,u){return bx.call(t,u)?t[u]:void 0}function Ns(t){const u=[];for(const s in t)bx.call(t,s)&&u.push(s);return u}function Bm(t){const u=[];do{const s=Object.getOwnPropertyNames(t);for(const d of s)xa(u,d)}while(t=Object.getPrototypeOf(t));return u}function U1(t){const u=[];for(const s in t)bx.call(t,s)&&u.push(t[s]);return u}function am(t,u){const s=new Array(t);for(let d=0;d100&&s>u.length>>1){const v=u.length-s;u.copyWithin(0,s),u.length=v,s=0}return E}return{enqueue:f,dequeue:p,isEmpty:d}}function aoe(t,u){const s=new Map;let d=0;function*f(){for(const E of s.values())Ha(E)?yield*E:yield E}const p={has(E){const v=t(E);if(!s.has(v))return!1;const b=s.get(v);if(!Ha(b))return u(b,E);for(const B of b)if(u(B,E))return!0;return!1},add(E){const v=t(E);if(s.has(v)){const b=s.get(v);if(Ha(b))kt(b,E,u)||(b.push(E),d++);else{const B=b;u(B,E)||(s.set(v,[B,E]),d++)}}else s.set(v,E),d++;return this},delete(E){const v=t(E);if(!s.has(v))return!1;const b=s.get(v);if(Ha(b)){for(let B=0;Bf(),[Symbol.toStringTag]:s[Symbol.toStringTag]};return p}function Ha(t){return Array.isArray(t)}function YA(t){return Ha(t)?t:[t]}function Ja(t){return typeof t=="string"}function UD(t){return typeof t=="number"}function ur(t,u){return t!==void 0&&u(t)?t:void 0}function Po(t,u){return t!==void 0&&u(t)?t:H.fail(`Invalid cast. The supplied value ${t} did not pass the test '${H.getFunctionName(u)}'.`)}function Is(t){}function cg(){return!1}function J3(){return!0}function hv(){}function il(t){return t}function $Ce(t){return t.toLowerCase()}function $g(t){return r2e.test(t)?t.replace(r2e,$Ce):t}function ho(){throw new Error("Not implemented")}function Mh(t){let u;return()=>(t&&(u=t(),t=void 0),u)}function HE(t){const u=new Map;return s=>{const d=`${typeof s}:${s}`;let f=u.get(d);return f===void 0&&!u.has(d)&&(f=t(s),u.set(d,f)),f}}function fqe(t){const u=new WeakMap;return s=>{let d=u.get(s);return d===void 0&&!u.has(s)&&(d=t(s),u.set(s,d)),d}}function UCe(t,u){return(...s)=>{let d=u.get(s);return d===void 0&&!u.has(s)&&(d=t(...s),u.set(s,d)),d}}function mqe(t,u,s,d,f){if(f){const p=[];for(let E=0;Enn(p,(v,b)=>b(v),E)}else return d?p=>d(s(u(t(p)))):s?p=>s(u(t(p))):u?p=>u(t(p)):t?p=>t(p):p=>p}function Cx(t,u){return t===u}function QA(t,u){return t===u||t!==void 0&&u!==void 0&&t.toUpperCase()===u.toUpperCase()}function XA(t,u){return Cx(t,u)}function pqe(t,u){return t===u?0:t===void 0?-1:u===void 0?1:tu(s,d)===-1?s:d)}function Z$(t,u){return t===u?0:t===void 0?-1:u===void 0?1:(t=t.toUpperCase(),u=u.toUpperCase(),tu?1:0)}function qCe(t,u){return t===u?0:t===void 0?-1:u===void 0?1:(t=t.toLowerCase(),u=u.toLowerCase(),tu?1:0)}function dh(t,u){return pqe(t,u)}function CN(t){return t?Z$:dh}function ZCe(){return poe}function YCe(t){poe!==t&&(poe=t,a2e=void 0)}function pO(t,u){return(a2e||(a2e=_qe(poe)))(t,u)}function QCe(t,u,s,d){return t===u?0:t===void 0?-1:u===void 0?1:d(t[s],u[s])}function d2(t,u){return nl(t?1:0,u?1:0)}function bN(t,u,s){const d=Math.max(2,Math.floor(t.length*.34));let f=Math.floor(t.length*.4)+1,p;for(const E of u){const v=s(E);if(v!==void 0&&Math.abs(v.length-t.length)<=d){if(v===t||v.length<3&&v.toLowerCase()!==t.toLowerCase())continue;const b=vwt(t,v,f-.1);if(b===void 0)continue;H.assert(bs?v-s:1),k=Math.floor(u.length>s+v?s+v:u.length);f[0]=v;let T=v;for(let z=1;zs)return;const M=d;d=f,f=M}const E=d[u.length];return E>s?void 0:E}function sc(t,u){const s=t.length-u.length;return s>=0&&t.indexOf(u,s)===s}function D8(t,u){return sc(t,u)?t.slice(0,t.length-u.length):t}function XCe(t,u){return sc(t,u)?t.slice(0,t.length-u.length):void 0}function soe(t){let u=t.length;for(let s=u-1;s>0;s--){let d=t.charCodeAt(s);if(d>=48&&d<=57)do--s,d=t.charCodeAt(s);while(s>0&&d>=48&&d<=57);else if(s>4&&(d===110||d===78)){if(--s,d=t.charCodeAt(s),d!==105&&d!==73||(--s,d=t.charCodeAt(s),d!==109&&d!==77))break;--s,d=t.charCodeAt(s)}else break;if(d!==45&&d!==46)break;u=s}return u===t.length?t:t.slice(0,u)}function gO(t,u){for(let s=0;ss===u)}function Cwt(t,u){for(let s=0;sf&&(f=E.prefix.length,d=p)}return d}function Pa(t,u){return t.lastIndexOf(u,0)===0}function yN(t,u){return Pa(t,u)?t.substr(u.length):t}function doe(t,u,s=il){return Pa(s(t),s(u))?t.substring(u.length):void 0}function Y$({prefix:t,suffix:u},s){return s.length>=t.length+u.length&&Pa(s,t)&&sc(s,u)}function Q$(t,u){return s=>t(s)&&u(s)}function dg(...t){return(...u)=>{let s;for(const d of t)if(s=d(...u),s)return s;return s}}function X$(t){return(...u)=>!t(...u)}function gqe(t){}function Hy(t){return t===void 0?void 0:[t]}function eU(t,u,s,d,f,p){p=p||Is;let E=0,v=0;const b=t.length,B=u.length;let k=!1;for(;E(t[t.None=0]="None",t[t.CaseSensitive=1]="CaseSensitive",t[t.CaseInsensitive=2]="CaseInsensitive",t[t.Both=3]="Both",t))(foe||{}),qD=Array.prototype.at?(t,u)=>t==null?void 0:t.at(u):(t,u)=>{if(t&&(u=Pl(t,u),u(t[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",t))(moe||{}),_qe=(()=>{return u;function t(s,d,f){if(s===d)return 0;if(s===void 0)return-1;if(d===void 0)return 1;const p=f(s,d);return p<0?-1:p>0?1:0}function u(s){const d=new Intl.Collator(s,{usage:"sort",sensitivity:"variant"}).compare;return(f,p)=>t(f,p,d)}})()}}),goe,H,ywt=o({"src/compiler/debug.ts"(){Bo(),Bo(),goe=(t=>(t[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Verbose=4]="Verbose",t))(goe||{}),(t=>{let u=0;t.currentLogLevel=2,t.isDebugging=!1;function s(Si){return t.currentLogLevel<=Si}t.shouldLog=s;function d(Si,Dn){t.loggingHost&&s(Si)&&t.loggingHost.log(Si,Dn)}function f(Si){d(3,Si)}t.log=f,(Si=>{function Dn(Da){d(1,Da)}Si.error=Dn;function Cn(Da){d(2,Da)}Si.warn=Cn;function tu(Da){d(3,Da)}Si.log=tu;function oa(Da){d(4,Da)}Si.trace=oa})(f=t.log||(t.log={}));const p={};function E(){return u}t.getAssertionLevel=E;function v(Si){const Dn=u;if(u=Si,Si>Dn)for(const Cn of Ns(p)){const tu=p[Cn];tu!==void 0&&t[Cn]!==tu.assertion&&Si>=tu.level&&(t[Cn]=tu,p[Cn]=void 0)}}t.setAssertionLevel=v;function b(Si){return u>=Si}t.shouldAssert=b;function B(Si,Dn){return b(Si)?!0:(p[Dn]={level:Si,assertion:t[Dn]},t[Dn]=Is,!1)}function k(Si,Dn){debugger;const Cn=new Error(Si?`Debug Failure. ${Si}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Cn,Dn||k),Cn}t.fail=k;function T(Si,Dn,Cn){return k(`${Dn||"Unexpected node."}\r +Node ${Ke(Si.kind)} was unexpected.`,Cn||T)}t.failBadSyntaxKind=T;function M(Si,Dn,Cn,tu){Si||(Dn=Dn?`False expression: ${Dn}`:"False expression.",Cn&&(Dn+=`\r +Verbose Debug Information: `+(typeof Cn=="string"?Cn:Cn())),k(Dn,tu||M))}t.assert=M;function z(Si,Dn,Cn,tu,oa){if(Si!==Dn){const Da=Cn?tu?`${Cn} ${tu}`:Cn:"";k(`Expected ${Si} === ${Dn}. ${Da}`,oa||z)}}t.assertEqual=z;function j(Si,Dn,Cn,tu){Si>=Dn&&k(`Expected ${Si} < ${Dn}. ${Cn||""}`,tu||j)}t.assertLessThan=j;function J(Si,Dn,Cn){Si>Dn&&k(`Expected ${Si} <= ${Dn}`,Cn||J)}t.assertLessThanOrEqual=J;function K(Si,Dn,Cn){Si= ${Dn}`,Cn||K)}t.assertGreaterThanOrEqual=K;function Y(Si,Dn,Cn){Si==null&&k(Dn,Cn||Y)}t.assertIsDefined=Y;function oe(Si,Dn,Cn){return Y(Si,Dn,Cn||oe),Si}t.checkDefined=oe;function se(Si,Dn,Cn){for(const tu of Si)Y(tu,Dn,Cn||se)}t.assertEachIsDefined=se;function ge(Si,Dn,Cn){return se(Si,Dn,Cn||ge),Si}t.checkEachDefined=ge;function ae(Si,Dn="Illegal value:",Cn){const tu=typeof Si=="object"&&gu(Si,"kind")&&gu(Si,"pos")?"SyntaxKind: "+Ke(Si.kind):JSON.stringify(Si);return k(`${Dn} ${tu}`,Cn||ae)}t.assertNever=ae;function Ce(Si,Dn,Cn,tu){B(1,"assertEachNode")&&M(Dn===void 0||ye(Si,Dn),Cn||"Unexpected node.",()=>`Node array did not pass test '${xe(Dn)}'.`,tu||Ce)}t.assertEachNode=Ce;function ne(Si,Dn,Cn,tu){B(1,"assertNode")&&M(Si!==void 0&&(Dn===void 0||Dn(Si)),Cn||"Unexpected node.",()=>`Node ${Ke(Si==null?void 0:Si.kind)} did not pass test '${xe(Dn)}'.`,tu||ne)}t.assertNode=ne;function ve(Si,Dn,Cn,tu){B(1,"assertNotNode")&&M(Si===void 0||Dn===void 0||!Dn(Si),Cn||"Unexpected node.",()=>`Node ${Ke(Si.kind)} should not have passed test '${xe(Dn)}'.`,tu||ve)}t.assertNotNode=ve;function Se(Si,Dn,Cn,tu){B(1,"assertOptionalNode")&&M(Dn===void 0||Si===void 0||Dn(Si),Cn||"Unexpected node.",()=>`Node ${Ke(Si==null?void 0:Si.kind)} did not pass test '${xe(Dn)}'.`,tu||Se)}t.assertOptionalNode=Se;function Ne(Si,Dn,Cn,tu){B(1,"assertOptionalToken")&&M(Dn===void 0||Si===void 0||Si.kind===Dn,Cn||"Unexpected node.",()=>`Node ${Ke(Si==null?void 0:Si.kind)} was not a '${Ke(Dn)}' token.`,tu||Ne)}t.assertOptionalToken=Ne;function pe(Si,Dn,Cn){B(1,"assertMissingNode")&&M(Si===void 0,Dn||"Unexpected node.",()=>`Node ${Ke(Si.kind)} was unexpected'.`,Cn||pe)}t.assertMissingNode=pe;function fe(Si){}t.type=fe;function xe(Si){if(typeof Si!="function")return"";if(gu(Si,"name"))return Si.name;{const Dn=Function.prototype.toString.call(Si),Cn=/^function\s+([\w$]+)\s*\(/.exec(Dn);return Cn?Cn[1]:""}}t.getFunctionName=xe;function Be(Si){return`{ name: ${Yr(Si.escapedName)}; flags: ${Yt(Si.flags)}; declarations: ${Vt(Si.declarations,Dn=>Ke(Dn.kind))} }`}t.formatSymbol=Be;function Ge(Si=0,Dn,Cn){const tu=De(Dn);if(Si===0)return tu.length>0&&tu[0][0]===0?tu[0][1]:"0";if(Cn){const oa=[];let Da=Si;for(const[ua,Ta]of tu){if(ua>Si)break;ua!==0&&ua&Si&&(oa.push(Ta),Da&=~ua)}if(Da===0)return oa.join("|")}else for(const[oa,Da]of tu)if(oa===Si)return Da;return Si.toString()}t.formatEnum=Ge;const Ae=new Map;function De(Si){const Dn=Ae.get(Si);if(Dn)return Dn;const Cn=[];for(const oa in Si){const Da=Si[oa];typeof Da=="number"&&Cn.push([Da,oa])}const tu=oc(Cn,(oa,Da)=>nl(oa[0],Da[0]));return Ae.set(Si,tu),tu}function Ke(Si){return Ge(Si,uU,!1)}t.formatSyntaxKind=Ke;function Je(Si){return Ge(Si,EU,!1)}t.formatSnippetKind=Je;function ft(Si){return Ge(Si,pU,!1)}t.formatScriptKind=ft;function Ye(Si){return Ge(Si,rU,!0)}t.formatNodeFlags=Ye;function Ve(Si){return Ge(Si,aU,!0)}t.formatModifierFlags=Ve;function We(Si){return Ge(Si,gU,!0)}t.formatTransformFlags=We;function Gt(Si){return Ge(Si,_U,!0)}t.formatEmitFlags=Gt;function Yt(Si){return Ge(Si,dU,!0)}t.formatSymbolFlags=Yt;function Ie(Si){return Ge(Si,hU,!0)}t.formatTypeFlags=Ie;function st(Si){return Ge(Si,mU,!0)}t.formatSignatureFlags=st;function St(Si){return Ge(Si,fU,!0)}t.formatObjectFlags=St;function It(Si){return Ge(Si,xO,!0)}t.formatFlowFlags=It;function ei(Si){return Ge(Si,oU,!0)}t.formatRelationComparisonResult=ei;function ht(Si){return Ge(Si,XY,!0)}t.formatCheckMode=ht;function Ut(Si){return Ge(Si,eQ,!0)}t.formatSignatureCheckMode=Ut;function Ni(Si){return Ge(Si,QY,!0)}t.formatTypeFacts=Ni;let ji=!1,xn;function Jn(Si){"__debugFlowFlags"in Si||Object.defineProperties(Si,{__tsDebuggerDisplay:{value(){const Dn=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Cn=this.flags&-2048;return`${Dn}${Cn?` (${It(Cn)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,xO,!0)}},__debugToString:{value(){return Ln(this)}}})}function an(Si){ji&&(typeof Object.setPrototypeOf=="function"?(xn||(xn=Object.create(Object.prototype),Jn(xn)),Object.setPrototypeOf(Si,xn)):Jn(Si))}t.attachFlowNodeDebugInfo=an;let Pi;function Ai(Si){"__tsDebuggerDisplay"in Si||Object.defineProperties(Si,{__tsDebuggerDisplay:{value(Dn){return Dn=String(Dn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Dn}`}}})}function Zu(Si){ji&&(typeof Object.setPrototypeOf=="function"?(Pi||(Pi=Object.create(Array.prototype),Ai(Pi)),Object.setPrototypeOf(Si,Pi)):Ai(Si))}t.attachNodeArrayDebugInfo=Zu;function aa(){if(ji)return;const Si=new WeakMap,Dn=new WeakMap;Object.defineProperties(Qd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const tu=this.flags&33554432?"TransientSymbol":"Symbol",oa=this.flags&-33554433;return`${tu} '${lc(this)}'${oa?` (${Yt(oa)})`:""}`}},__debugFlags:{get(){return Yt(this.flags)}}}),Object.defineProperties(Qd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const tu=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",oa=this.flags&524288?this.objectFlags&-1344:0;return`${tu}${this.symbol?` '${lc(this.symbol)}'`:""}${oa?` (${St(oa)})`:""}`}},__debugFlags:{get(){return Ie(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?St(this.objectFlags):""}},__debugTypeToString:{value(){let tu=Si.get(this);return tu===void 0&&(tu=this.checker.typeToString(this),Si.set(this,tu)),tu}}}),Object.defineProperties(Qd.getSignatureConstructor().prototype,{__debugFlags:{get(){return st(this.flags)}},__debugSignatureToString:{value(){var tu;return(tu=this.checker)==null?void 0:tu.signatureToString(this)}}});const Cn=[Qd.getNodeConstructor(),Qd.getIdentifierConstructor(),Qd.getTokenConstructor(),Qd.getSourceFileConstructor()];for(const tu of Cn)gu(tu.prototype,"__debugKind")||Object.defineProperties(tu.prototype,{__tsDebuggerDisplay:{value(){return`${al(this)?"GeneratedIdentifier":at(this)?`Identifier '${fu(this)}'`:Xr(this)?`PrivateIdentifier '${fu(this)}'`:us(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Of(this)?`NumericLiteral ${this.text}`:iY(this)?`BigIntLiteral ${this.text}n`:Bl(this)?"TypeParameterDeclaration":io(this)?"ParameterDeclaration":hc(this)?"ConstructorDeclaration":zm(this)?"GetAccessorDeclaration":jf(this)?"SetAccessorDeclaration":CB(this)?"CallSignatureDeclaration":FV(this)?"ConstructSignatureDeclaration":Ek(this)?"IndexSignatureDeclaration":aY(this)?"TypePredicateNode":X4(this)?"TypeReferenceNode":u3(this)?"FunctionTypeNode":WP(this)?"ConstructorTypeNode":bB(this)?"TypeQueryNode":fm(this)?"TypeLiteralNode":oY(this)?"ArrayTypeNode":yB(this)?"TupleTypeNode":Dce(this)?"OptionalTypeNode":xce(this)?"RestTypeNode":Pv(this)?"UnionTypeNode":kB(this)?"IntersectionTypeNode":FB(this)?"ConditionalTypeNode":P7(this)?"InferTypeNode":M7(this)?"ParenthesizedTypeNode":sY(this)?"ThisTypeNode":z7(this)?"TypeOperatorNode":I7(this)?"IndexedAccessTypeNode":JP(this)?"MappedTypeNode":Mv(this)?"LiteralTypeNode":GP(this)?"NamedTupleMember":nD(this)?"ImportTypeNode":Ke(this.kind)}${this.flags?` (${Ye(this.flags)})`:""}`}},__debugKind:{get(){return Ke(this.kind)}},__debugNodeFlags:{get(){return Ye(this.flags)}},__debugModifierFlags:{get(){return Ve(Nye(this))}},__debugTransformFlags:{get(){return We(this.transformFlags)}},__debugIsParseTreeNode:{get(){return zN(this)}},__debugEmitFlags:{get(){return Gt(bs(this))}},__debugGetText:{value(oa){if(sl(this))return"";let Da=Dn.get(this);if(Da===void 0){const ua=Ua(this),Ta=ua&&zn(ua);Da=Ta?x2(Ta,ua,oa):"",Dn.set(this,Da)}return Da}}});ji=!0}t.enableDebugInfo=aa;function yr(Si){const Dn=Si&7;let Cn=Dn===0?"in out":Dn===3?"[bivariant]":Dn===2?"in":Dn===1?"out":Dn===4?"[independent]":"";return Si&8?Cn+=" (unmeasurable)":Si&16&&(Cn+=" (unreliable)"),Cn}t.formatVariance=yr;class Ba{__debugToString(){var Dn;switch(this.kind){case 3:return((Dn=this.debugInfo)==null?void 0:Dn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return re(this.sources,this.targets||Vt(this.sources,()=>"any"),(Cn,tu)=>`${Cn.__debugTypeToString()} -> ${typeof tu=="string"?tu:tu.__debugTypeToString()}`).join(", ");case 2:return re(this.sources,this.targets,(Cn,tu)=>`${Cn.__debugTypeToString()} -> ${tu().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return ae(this)}}}t.DebugTypeMapper=Ba;function bt(Ai){return t.isDebugging?Object.setPrototypeOf(Ai,Ba.prototype):Ai}t.attachDebugPrototypeIfDebug=bt;function jn(Ai){return console.log(Nn(Ai))}t.printControlFlowGraph=jn;function Nn(Ai){let Dn=-1;function bn(de){return de.id||(de.id=Dn,Dn--),de.id}let iu;(de=>{de.lr="─",de.ud="│",de.dr="╭",de.dl="╮",de.ul="╯",de.ur="╰",de.udr="├",de.udl="┤",de.dlr="┬",de.ulr="┴",de.udlr="╫"})(iu||(iu={}));let oa;(de=>{de[de.None=0]="None",de[de.Up=1]="Up",de[de.Down=2]="Down",de[de.Left=4]="Left",de[de.Right=8]="Right",de[de.UpDown=3]="UpDown",de[de.LeftRight=12]="LeftRight",de[de.UpLeft=5]="UpLeft",de[de.UpRight=9]="UpRight",de[de.DownLeft=6]="DownLeft",de[de.DownRight=10]="DownRight",de[de.UpDownLeft=7]="UpDownLeft",de[de.UpDownRight=11]="UpDownRight",de[de.UpLeftRight=13]="UpLeftRight",de[de.DownLeftRight=14]="DownLeftRight",de[de.UpDownLeftRight=15]="UpDownLeftRight",de[de.NoChildren=16]="NoChildren"})(oa||(oa={}));const xa=2032,ra=882,wa=Object.create(null),Zo=[],vo=ii(Ai,new Set);for(const de of Zo)de.text=Yi(de.flowNode,de.circular),ni(de);const Qe=_i(vo),Et=mt(Qe);return jt(vo,0),on();function Mt(de){return!!(de.flags&128)}function qt(de){return!!(de.flags&12)&&!!de.antecedents}function Xt(de){return!!(de.flags&xa)}function Pe(de){return!!(de.flags&ra)}function et(de){const Oe=[];for(const X of de.edges)X.source===de&&Oe.push(X.target);return Oe}function gt(de){const Oe=[];for(const X of de.edges)X.target===de&&Oe.push(X.source);return Oe}function ii(de,Oe){const X=bn(de);let it=wa[X];if(it&&Oe.has(de))return it.circular=!0,it={id:-1,flowNode:de,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Zo.push(it),it;if(Oe.add(de),!it)if(wa[X]=it={id:X,flowNode:de,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Zo.push(it),qt(de))for(const Ct of de.antecedents)me(it,Ct,Oe);else Xt(de)&&me(it,de.antecedent,Oe);return Oe.delete(de),it}function me(de,Oe,X){const it=ii(Oe,X),Ct={source:de,target:it};de.edges.push(Ct),it.edges.push(Ct)}function ni(de){if(de.level!==-1)return de.level;let Oe=0;for(const X of gt(de))Oe=Math.max(Oe,ni(X)+1);return de.level=Oe}function _i(de){let Oe=0;for(const X of et(de))Oe=Math.max(Oe,_i(X));return Oe+1}function mt(de){const Oe=te(Array(de),0);for(const X of Zo)Oe[X.level]=Math.max(Oe[X.level],X.text.length);return Oe}function jt(de,Oe){if(de.lane===-1){de.lane=Oe,de.endLane=Oe;const X=et(de);for(let it=0;it0&&Oe++;const Ct=X[it];jt(Ct,Oe),Ct.endLane>de.endLane&&(Oe=Ct.endLane)}de.endLane=Oe}}function pi(de){if(de&2)return"Start";if(de&4)return"Branch";if(de&8)return"Loop";if(de&16)return"Assignment";if(de&32)return"True";if(de&64)return"False";if(de&128)return"SwitchClause";if(de&256)return"ArrayMutation";if(de&512)return"Call";if(de&1024)return"ReduceLabel";if(de&1)return"Unreachable";throw new Error}function Ji(de){const Oe=In(de);return E2(Oe,de,!1)}function Yi(de,Oe){let X=pi(de.flags);if(Oe&&(X=`${X}#${bn(de)}`),Pe(de))de.node&&(X+=` (${Ji(de.node)})`);else if(Mt(de)){const it=[];for(let Ct=de.clauseStart;CtMath.max(Qt,Ti.lane),0)+1,X=te(Array(Oe),""),it=Et.map(()=>Array(Oe)),Ct=Et.map(()=>te(Array(Oe),0));for(const Qt of Zo){it[Qt.level][Qt.lane]=Qt;const Ti=et(Qt);for(let Bn=0;Bn0&&(Ru|=1),Bn0&&(Ru|=1),Bn<$i.length-1&&(Ru|=2),Ct[Qt.level-1][hu.lane]|=Ru}}for(let Qt=0;Qt0?Ct[Qt-1][Ti]:0,Bn=Ti>0?Ct[Qt][Ti-1]:0;let hu=Ct[Qt][Ti];hu||($i&8&&(hu|=12),Bn&2&&(hu|=3),Ct[Qt][Ti]=hu)}for(let Qt=0;Qt{de.lr="─",de.ud="│",de.dr="╭",de.dl="╮",de.ul="╯",de.ur="╰",de.udr="├",de.udl="┤",de.dlr="┬",de.ulr="┴",de.udlr="╫"})(tu||(tu={}));let oa;(de=>{de[de.None=0]="None",de[de.Up=1]="Up",de[de.Down=2]="Down",de[de.Left=4]="Left",de[de.Right=8]="Right",de[de.UpDown=3]="UpDown",de[de.LeftRight=12]="LeftRight",de[de.UpLeft=5]="UpLeft",de[de.UpRight=9]="UpRight",de[de.DownLeft=6]="DownLeft",de[de.DownRight=10]="DownRight",de[de.UpDownLeft=7]="UpDownLeft",de[de.UpDownRight=11]="UpDownRight",de[de.UpLeftRight=13]="UpLeftRight",de[de.DownLeftRight=14]="DownLeftRight",de[de.UpDownLeftRight=15]="UpDownLeftRight",de[de.NoChildren=16]="NoChildren"})(oa||(oa={}));const Da=2032,ua=882,Ta=Object.create(null),Yo=[],bo=ii(Si,new Set);for(const de of Yo)de.text=Qi(de.flowNode,de.circular),ni(de);const Qe=vi(bo),Et=mt(Qe);return Ot(bo,0),on();function Mt(de){return!!(de.flags&128)}function qt(de){return!!(de.flags&12)&&!!de.antecedents}function Xt(de){return!!(de.flags&Da)}function Pe(de){return!!(de.flags&ua)}function et(de){const je=[];for(const X of de.edges)X.source===de&&je.push(X.target);return je}function gt(de){const je=[];for(const X of de.edges)X.target===de&&je.push(X.source);return je}function ii(de,je){const X=Cn(de);let it=Ta[X];if(it&&je.has(de))return it.circular=!0,it={id:-1,flowNode:de,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Yo.push(it),it;if(je.add(de),!it)if(Ta[X]=it={id:X,flowNode:de,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Yo.push(it),qt(de))for(const Ct of de.antecedents)me(it,Ct,je);else Xt(de)&&me(it,de.antecedent,je);return je.delete(de),it}function me(de,je,X){const it=ii(je,X),Ct={source:de,target:it};de.edges.push(Ct),it.edges.push(Ct)}function ni(de){if(de.level!==-1)return de.level;let je=0;for(const X of gt(de))je=Math.max(je,ni(X)+1);return de.level=je}function vi(de){let je=0;for(const X of et(de))je=Math.max(je,vi(X));return je+1}function mt(de){const je=te(Array(de),0);for(const X of Yo)je[X.level]=Math.max(je[X.level],X.text.length);return je}function Ot(de,je){if(de.lane===-1){de.lane=je,de.endLane=je;const X=et(de);for(let it=0;it0&&je++;const Ct=X[it];Ot(Ct,je),Ct.endLane>de.endLane&&(je=Ct.endLane)}de.endLane=je}}function Ei(de){if(de&2)return"Start";if(de&4)return"Branch";if(de&8)return"Loop";if(de&16)return"Assignment";if(de&32)return"True";if(de&64)return"False";if(de&128)return"SwitchClause";if(de&256)return"ArrayMutation";if(de&512)return"Call";if(de&1024)return"ReduceLabel";if(de&1)return"Unreachable";throw new Error}function $i(de){const je=zn(de);return x2(je,de,!1)}function Qi(de,je){let X=Ei(de.flags);if(je&&(X=`${X}#${Cn(de)}`),Pe(de))de.node&&(X+=` (${$i(de.node)})`);else if(Mt(de)){const it=[];for(let Ct=de.clauseStart;CtMath.max(Qt,Li.lane),0)+1,X=te(Array(je),""),it=Et.map(()=>Array(je)),Ct=Et.map(()=>te(Array(je),0));for(const Qt of Yo){it[Qt.level][Qt.lane]=Qt;const Li=et(Qt);for(let Sn=0;Sn0&&(Ru|=1),Sn0&&(Ru|=1),Sn0?Ct[Qt-1][Li]:0,Sn=Li>0?Ct[Qt][Li-1]:0;let du=Ct[Qt][Li];du||(Ui&8&&(du|=12),Sn&2&&(du|=3),Ct[Qt][Li]=du)}for(let Qt=0;Qt0?de.repeat(Oe):"";let X="";for(;X.length=",d.version)),R4(f.major)||s.push(R4(f.minor)?HE("<",f.version.increment("major")):R4(f.patch)?HE("<",f.version.increment("minor")):HE("<=",f.version)),!0):!1}function ywt(t,u,s){const d=r2e(u);if(!d)return!1;const{version:f,major:p,minor:E,patch:v}=d;if(R4(p))(t==="<"||t===">")&&s.push(HE("<",Bp.zero));else switch(t){case"~":s.push(HE(">=",f)),s.push(HE("<",f.increment(R4(E)?"major":"minor")));break;case"^":s.push(HE(">=",f)),s.push(HE("<",f.increment(f.major>0||R4(E)?"major":f.minor>0||R4(v)?"minor":"patch")));break;case"<":case">=":s.push(R4(E)||R4(v)?HE(t,f.with({prerelease:"0"})):HE(t,f));break;case"<=":case">":s.push(R4(E)?HE(t==="<="?"<":">=",f.increment("major").with({prerelease:"0"})):R4(v)?HE(t==="<="?"<":">=",f.increment("minor").with({prerelease:"0"})):HE(t,f));break;case"=":case void 0:R4(E)||R4(v)?(s.push(HE(">=",f.with({prerelease:"0"}))),s.push(HE("<",f.increment(R4(E)?"major":"minor").with({prerelease:"0"})))):s.push(HE("=",f));break;default:return!1}return!0}function R4(t){return t==="*"||t==="x"||t==="X"}function HE(t,u){return{operator:t,operand:u}}function kwt(t,u){if(u.length===0)return!0;for(const s of u)if(Fwt(t,s))return!0;return!1}function Fwt(t,u){for(const s of u)if(!Awt(t,s.operator,s.operand))return!1;return!0}function Awt(t,u,s){const d=t.compareTo(s);switch(u){case"<":return d<0;case"<=":return d<=0;case">":return d>0;case">=":return d>=0;case"=":return d===0;default:return H.assertNever(u)}}function Swt(t){return Kt(t,Bwt).join(" || ")||"*"}function Bwt(t){return Kt(t,wwt).join(" ")}function wwt(t){return`${t.operator}${t.operand}`}var _qe,Dqe,xqe,vqe,Cqe,a2e,goe,Bp,pO,bqe,yqe,kqe,Fqe,Aqe,Twt=o({"src/compiler/semver.ts"(){Ao(),_qe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Dqe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,xqe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,vqe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,Cqe=/^[a-z0-9-]+$/i,a2e=/^(0|[1-9]\d*)$/,goe=class dG{constructor(u,s=0,d=0,f="",p=""){typeof u=="string"&&({major:u,minor:s,patch:d,prerelease:f,build:p}=H.checkDefined(gqe(u),"Invalid version")),H.assert(u>=0,"Invalid argument: major"),H.assert(s>=0,"Invalid argument: minor"),H.assert(d>=0,"Invalid argument: patch");const E=f?Ha(f)?f:f.split("."):_t,v=p?Ha(p)?p:p.split("."):_t;H.assert(ye(E,b=>xqe.test(b)),"Invalid argument: prerelease"),H.assert(ye(v,b=>Cqe.test(b)),"Invalid argument: build"),this.major=u,this.minor=s,this.patch=d,this.prerelease=E,this.build=v}static tryParse(u){const s=gqe(u);if(!s)return;const{major:d,minor:f,patch:p,prerelease:E,build:v}=s;return new dG(d,f,p,E,v)}compareTo(u){return this===u?0:u===void 0?1:tl(this.major,u.major)||tl(this.minor,u.minor)||tl(this.patch,u.patch)||Cwt(this.prerelease,u.prerelease)}increment(u){switch(u){case"major":return new dG(this.major+1,0,0);case"minor":return new dG(this.major,this.minor+1,0);case"patch":return new dG(this.major,this.minor,this.patch+1);default:return H.assertNever(u)}}with(u){const{major:s=this.major,minor:d=this.minor,patch:f=this.patch,prerelease:p=this.prerelease,build:E=this.build}=u;return new dG(s,d,f,p,E)}toString(){let u=`${this.major}.${this.minor}.${this.patch}`;return qe(this.prerelease)&&(u+=`-${this.prerelease.join(".")}`),qe(this.build)&&(u+=`+${this.build.join(".")}`),u}},goe.zero=new goe(0,0,0,["0"]),Bp=goe,pO=class R6t{constructor(u){this._alternatives=u?H.checkDefined(Eqe(u),"Invalid range spec."):_t}static tryParse(u){const s=Eqe(u);if(s){const d=new R6t("");return d._alternatives=s,d}}test(u){return typeof u=="string"&&(u=new Bp(u)),kwt(u,this._alternatives)}toString(){return Swt(this._alternatives)}},bqe=/\|\|/g,yqe=/\s+/g,kqe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Fqe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Aqe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Sqe(t,u){return typeof t=="object"&&typeof t.timeOrigin=="number"&&typeof t.mark=="function"&&typeof t.measure=="function"&&typeof t.now=="function"&&typeof t.clearMarks=="function"&&typeof t.clearMeasures=="function"&&typeof u=="function"}function Lwt(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Sqe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function Nwt(){if(doe())try{const{performance:t,PerformanceObserver:u}=nS;if(Sqe(t,u))return{shouldWriteNativeEvents:!1,performance:t,PerformanceObserver:u}}catch{}}function o2e(){return Eoe}var Eoe,s2e,V0,Pwt=o({"src/compiler/performanceCore.ts"(){Ao(),Eoe=Lwt()||Nwt(),s2e=Eoe==null?void 0:Eoe.performance,V0=s2e?()=>s2e.now():Date.now?Date.now:()=>+new Date}}),X$,dh,Mwt=o({"src/compiler/perfLogger.ts"(){try{const t=e.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";X$=Upt(t)}catch{X$=void 0}dh=X$!=null&&X$.logEvent?X$:void 0}});function Bqe(t,u,s,d){return t?_oe(u,s,d):Doe}function _oe(t,u,s){let d=0;return{enter:f,exit:p};function f(){++d===1&&il(u)}function p(){--d===0?(il(s),wm(t,u,s)):d<0&&H.fail("enter/exit count does not match.")}}function il(t){if(_8){const u=yN.get(t)??0;yN.set(t,u+1),D8.set(t,V0()),Vy==null||Vy.mark(t),typeof onProfilerEvent=="function"&&onProfilerEvent(t)}}function wm(t,u,s){if(_8){const d=(s!==void 0?D8.get(s):void 0)??V0(),f=(u!==void 0?D8.get(u):void 0)??l2e,p=x8.get(t)||0;x8.set(t,p+(d-f)),Vy==null||Vy.measure(t,u,s)}}function zwt(t){return yN.get(t)||0}function Iwt(t){return x8.get(t)||0}function Rwt(t){x8.forEach((u,s)=>t(s,u))}function Owt(t){D8.forEach((u,s)=>t(s))}function jwt(t){t!==void 0?x8.delete(t):x8.clear(),Vy==null||Vy.clearMeasures(t)}function Vwt(t){t!==void 0?(yN.delete(t),D8.delete(t)):(yN.clear(),D8.clear()),Vy==null||Vy.clearMarks(t)}function Hwt(){return _8}function Kwt(t=l1){var u;return _8||(_8=!0,gO||(gO=o2e()),gO&&(l2e=gO.performance.timeOrigin,(gO.shouldWriteNativeEvents||(u=t==null?void 0:t.cpuProfilingEnabled)!=null&&u.call(t)||t!=null&&t.debugMode)&&(Vy=gO.performance))),!0}function Wwt(){_8&&(D8.clear(),yN.clear(),x8.clear(),Vy=void 0,_8=!1)}var gO,Vy,Doe,_8,l2e,D8,yN,x8,Gwt=o({"src/compiler/performance.ts"(){Ao(),Doe={enter:Ms,exit:Ms},_8=!1,l2e=V0(),D8=new Map,yN=new Map,x8=new Map}}),c2e={};h(c2e,{clearMarks:()=>Vwt,clearMeasures:()=>jwt,createTimer:()=>_oe,createTimerIf:()=>Bqe,disable:()=>Wwt,enable:()=>Kwt,forEachMark:()=>Owt,forEachMeasure:()=>Rwt,getCount:()=>zwt,getDuration:()=>Iwt,isEnabled:()=>Hwt,mark:()=>il,measure:()=>wm,nullTimer:()=>Doe});var Hy=o({"src/compiler/_namespaces/ts.performance.ts"(){Gwt()}}),$n,EO,d2e,h2e,Jwt=o({"src/compiler/tracing.ts"(){Ao(),Hy(),(t=>{let u,s=0,d=0,f;const p=[];let E;const v=[];function b(Ce,ne,ve){if(H.assert(!$n,"Tracing already started"),u===void 0)try{u=nS}catch(xe){throw new Error(`tracing requires having fs -(original error: ${xe.message||xe})`)}f=Ce,p.length=0,E===void 0&&(E=hr(ne,"legend.json")),u.existsSync(ne)||u.mkdirSync(ne,{recursive:!0});const Se=f==="build"?`.${process.pid}-${++s}`:f==="server"?`.${process.pid}`:"",Ne=hr(ne,`trace${Se}.json`),pe=hr(ne,`types${Se}.json`);v.push({configFilePath:ve,tracePath:Ne,typesPath:pe}),d=u.openSync(Ne,"w"),$n=t;const fe={cat:"__metadata",ph:"M",ts:1e3*V0(),pid:1,tid:1};u.writeSync(d,`[ +`;function ct(Qt,Li){X[Qt]+=Li}}function le(de){switch(de){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function te(de,je){if(de.fill)de.fill(je);else for(let X=0;X0?de.repeat(je):"";let X="";for(;X.length=",d.version)),j4(f.major)||s.push(j4(f.minor)?KE("<",f.version.increment("major")):j4(f.patch)?KE("<",f.version.increment("minor")):KE("<=",f.version)),!0):!1}function Awt(t,u,s){const d=o2e(u);if(!d)return!1;const{version:f,major:p,minor:E,patch:v}=d;if(j4(p))(t==="<"||t===">")&&s.push(KE("<",Lp.zero));else switch(t){case"~":s.push(KE(">=",f)),s.push(KE("<",f.increment(j4(E)?"major":"minor")));break;case"^":s.push(KE(">=",f)),s.push(KE("<",f.increment(f.major>0||j4(E)?"major":f.minor>0||j4(v)?"minor":"patch")));break;case"<":case">=":s.push(j4(E)||j4(v)?KE(t,f.with({prerelease:"0"})):KE(t,f));break;case"<=":case">":s.push(j4(E)?KE(t==="<="?"<":">=",f.increment("major").with({prerelease:"0"})):j4(v)?KE(t==="<="?"<":">=",f.increment("minor").with({prerelease:"0"})):KE(t,f));break;case"=":case void 0:j4(E)||j4(v)?(s.push(KE(">=",f.with({prerelease:"0"}))),s.push(KE("<",f.increment(j4(E)?"major":"minor").with({prerelease:"0"})))):s.push(KE("=",f));break;default:return!1}return!0}function j4(t){return t==="*"||t==="x"||t==="X"}function KE(t,u){return{operator:t,operand:u}}function Swt(t,u){if(u.length===0)return!0;for(const s of u)if(Bwt(t,s))return!0;return!1}function Bwt(t,u){for(const s of u)if(!wwt(t,s.operator,s.operand))return!1;return!0}function wwt(t,u,s){const d=t.compareTo(s);switch(u){case"<":return d<0;case"<=":return d<=0;case">":return d>0;case">=":return d>=0;case"=":return d===0;default:return H.assertNever(u)}}function Twt(t){return Vt(t,Lwt).join(" || ")||"*"}function Lwt(t){return Vt(t,Nwt).join(" ")}function Nwt(t){return`${t.operator}${t.operand}`}var vqe,Cqe,bqe,yqe,kqe,s2e,Eoe,Lp,EO,Fqe,Aqe,Sqe,Bqe,wqe,Pwt=o({"src/compiler/semver.ts"(){Bo(),vqe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Cqe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,bqe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,yqe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,kqe=/^[a-z0-9-]+$/i,s2e=/^(0|[1-9]\d*)$/,Eoe=class fG{constructor(u,s=0,d=0,f="",p=""){typeof u=="string"&&({major:u,minor:s,patch:d,prerelease:f,build:p}=H.checkDefined(Dqe(u),"Invalid version")),H.assert(u>=0,"Invalid argument: major"),H.assert(s>=0,"Invalid argument: minor"),H.assert(d>=0,"Invalid argument: patch");const E=f?Ha(f)?f:f.split("."):_t,v=p?Ha(p)?p:p.split("."):_t;H.assert(ye(E,b=>bqe.test(b)),"Invalid argument: prerelease"),H.assert(ye(v,b=>kqe.test(b)),"Invalid argument: build"),this.major=u,this.minor=s,this.patch=d,this.prerelease=E,this.build=v}static tryParse(u){const s=Dqe(u);if(!s)return;const{major:d,minor:f,patch:p,prerelease:E,build:v}=s;return new fG(d,f,p,E,v)}compareTo(u){return this===u?0:u===void 0?1:nl(this.major,u.major)||nl(this.minor,u.minor)||nl(this.patch,u.patch)||kwt(this.prerelease,u.prerelease)}increment(u){switch(u){case"major":return new fG(this.major+1,0,0);case"minor":return new fG(this.major,this.minor+1,0);case"patch":return new fG(this.major,this.minor,this.patch+1);default:return H.assertNever(u)}}with(u){const{major:s=this.major,minor:d=this.minor,patch:f=this.patch,prerelease:p=this.prerelease,build:E=this.build}=u;return new fG(s,d,f,p,E)}toString(){let u=`${this.major}.${this.minor}.${this.patch}`;return Oe(this.prerelease)&&(u+=`-${this.prerelease.join(".")}`),Oe(this.build)&&(u+=`+${this.build.join(".")}`),u}},Eoe.zero=new Eoe(0,0,0,["0"]),Lp=Eoe,EO=class j6t{constructor(u){this._alternatives=u?H.checkDefined(xqe(u),"Invalid range spec."):_t}static tryParse(u){const s=xqe(u);if(s){const d=new j6t("");return d._alternatives=s,d}}test(u){return typeof u=="string"&&(u=new Lp(u)),Swt(u,this._alternatives)}toString(){return Twt(this._alternatives)}},Fqe=/\|\|/g,Aqe=/\s+/g,Sqe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Bqe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,wqe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Tqe(t,u){return typeof t=="object"&&typeof t.timeOrigin=="number"&&typeof t.mark=="function"&&typeof t.measure=="function"&&typeof t.now=="function"&&typeof t.clearMarks=="function"&&typeof t.clearMeasures=="function"&&typeof u=="function"}function Mwt(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Tqe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function zwt(){if(hoe())try{const{performance:t,PerformanceObserver:u}=rS;if(Tqe(t,u))return{shouldWriteNativeEvents:!1,performance:t,PerformanceObserver:u}}catch{}}function l2e(){return _oe}var _oe,c2e,G0,Iwt=o({"src/compiler/performanceCore.ts"(){Bo(),_oe=Mwt()||zwt(),c2e=_oe==null?void 0:_oe.performance,G0=c2e?()=>c2e.now():Date.now?Date.now:()=>+new Date}}),nU,hh,Rwt=o({"src/compiler/perfLogger.ts"(){try{const t=e.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";nU=Ypt(t)}catch{nU=void 0}hh=nU!=null&&nU.logEvent?nU:void 0}});function Lqe(t,u,s,d){return t?Doe(u,s,d):xoe}function Doe(t,u,s){let d=0;return{enter:f,exit:p};function f(){++d===1&&ul(u)}function p(){--d===0?(ul(s),Tm(t,u,s)):d<0&&H.fail("enter/exit count does not match.")}}function ul(t){if(x8){const u=kN.get(t)??0;kN.set(t,u+1),v8.set(t,G0()),Ky==null||Ky.mark(t),typeof onProfilerEvent=="function"&&onProfilerEvent(t)}}function Tm(t,u,s){if(x8){const d=(s!==void 0?v8.get(s):void 0)??G0(),f=(u!==void 0?v8.get(u):void 0)??d2e,p=C8.get(t)||0;C8.set(t,p+(d-f)),Ky==null||Ky.measure(t,u,s)}}function Owt(t){return kN.get(t)||0}function jwt(t){return C8.get(t)||0}function Vwt(t){C8.forEach((u,s)=>t(s,u))}function Hwt(t){v8.forEach((u,s)=>t(s))}function Kwt(t){t!==void 0?C8.delete(t):C8.clear(),Ky==null||Ky.clearMeasures(t)}function Wwt(t){t!==void 0?(kN.delete(t),v8.delete(t)):(kN.clear(),v8.clear()),Ky==null||Ky.clearMarks(t)}function Gwt(){return x8}function Jwt(t=c1){var u;return x8||(x8=!0,_O||(_O=l2e()),_O&&(d2e=_O.performance.timeOrigin,(_O.shouldWriteNativeEvents||(u=t==null?void 0:t.cpuProfilingEnabled)!=null&&u.call(t)||t!=null&&t.debugMode)&&(Ky=_O.performance))),!0}function $wt(){x8&&(v8.clear(),kN.clear(),C8.clear(),Ky=void 0,x8=!1)}var _O,Ky,xoe,x8,d2e,v8,kN,C8,Uwt=o({"src/compiler/performance.ts"(){Bo(),xoe={enter:Is,exit:Is},x8=!1,d2e=G0(),v8=new Map,kN=new Map,C8=new Map}}),h2e={};h(h2e,{clearMarks:()=>Wwt,clearMeasures:()=>Kwt,createTimer:()=>Doe,createTimerIf:()=>Lqe,disable:()=>$wt,enable:()=>Jwt,forEachMark:()=>Hwt,forEachMeasure:()=>Vwt,getCount:()=>Owt,getDuration:()=>jwt,isEnabled:()=>Gwt,mark:()=>ul,measure:()=>Tm,nullTimer:()=>xoe});var Wy=o({"src/compiler/_namespaces/ts.performance.ts"(){Uwt()}}),Gn,DO,f2e,m2e,qwt=o({"src/compiler/tracing.ts"(){Bo(),Wy(),(t=>{let u,s=0,d=0,f;const p=[];let E;const v=[];function b(Ce,ne,ve){if(H.assert(!Gn,"Tracing already started"),u===void 0)try{u=rS}catch(xe){throw new Error(`tracing requires having fs +(original error: ${xe.message||xe})`)}f=Ce,p.length=0,E===void 0&&(E=cr(ne,"legend.json")),u.existsSync(ne)||u.mkdirSync(ne,{recursive:!0});const Se=f==="build"?`.${process.pid}-${++s}`:f==="server"?`.${process.pid}`:"",Ne=cr(ne,`trace${Se}.json`),pe=cr(ne,`types${Se}.json`);v.push({configFilePath:ve,tracePath:Ne,typesPath:pe}),d=u.openSync(Ne,"w"),Gn=t;const fe={cat:"__metadata",ph:"M",ts:1e3*G0(),pid:1,tid:1};u.writeSync(d,`[ `+[{name:"process_name",args:{name:"tsc"},...fe},{name:"thread_name",args:{name:"Main"},...fe},{name:"TracingStartedInBrowser",...fe,cat:"disabled-by-default-devtools.timeline"}].map(xe=>JSON.stringify(xe)).join(`, -`))}t.startTracing=b;function B(){H.assert($n,"Tracing is not in progress"),H.assert(!!p.length==(f!=="server")),u.writeSync(d,` +`))}t.startTracing=b;function B(){H.assert(Gn,"Tracing is not in progress"),H.assert(!!p.length==(f!=="server")),u.writeSync(d,` ] -`),u.closeSync(d),$n=void 0,p.length?ge(p):v[v.length-1].typesPath=void 0}t.stopTracing=B;function k(Ce){f!=="server"&&p.push(Ce)}t.recordType=k,(Ce=>{Ce.Parse="parse",Ce.Program="program",Ce.Bind="bind",Ce.Check="check",Ce.CheckTypes="checkTypes",Ce.Emit="emit",Ce.Session="session"})(t.Phase||(t.Phase={}));function T(Ce,ne,ve){oe("I",Ce,ne,ve,'"s":"g"')}t.instant=T;const M=[];function z(Ce,ne,ve,Se=!1){Se&&oe("B",Ce,ne,ve),M.push({phase:Ce,name:ne,args:ve,time:1e3*V0(),separateBeginAndEnd:Se})}t.push=z;function j(Ce){H.assert(M.length>0),Y(M.length-1,1e3*V0(),Ce),M.length--}t.pop=j;function J(){const Ce=1e3*V0();for(let ne=M.length-1;ne>=0;ne--)Y(ne,Ce);M.length=0}t.popAll=J;const K=1e3*10;function Y(Ce,ne,ve){const{phase:Se,name:Ne,args:pe,time:fe,separateBeginAndEnd:xe}=M[Ce];xe?(H.assert(!ve,"`results` are not supported for events with `separateBeginAndEnd`"),oe("E",Se,Ne,pe,void 0,ne)):K-fe%K<=ne-fe&&oe("X",Se,Ne,{...pe,results:ve},`"dur":${ne-fe}`,fe)}function oe(Ce,ne,ve,Se,Ne,pe=1e3*V0()){f==="server"&&ne==="checkTypes"||(il("beginTracing"),u.writeSync(d,`, -{"pid":1,"tid":1,"ph":"${Ce}","cat":"${ne}","ts":${pe},"name":"${ve}"`),Ne&&u.writeSync(d,`,${Ne}`),Se&&u.writeSync(d,`,"args":${JSON.stringify(Se)}`),u.writeSync(d,"}"),il("endTracing"),wm("Tracing","beginTracing","endTracing"))}function se(Ce){const ne=In(Ce);return ne?{path:ne.path,start:ve(o0(ne,Ce.pos)),end:ve(o0(ne,Ce.end))}:void 0;function ve(Se){return{line:Se.line+1,character:Se.character+1}}}function ge(Ce){var ne,ve,Se,Ne,pe,fe,xe,Be,We,Ae,De,He,Ge,ft,Ze,je,Ke,Gt,Yt;il("beginDumpTypes");const Ie=v[v.length-1].typesPath,st=u.openSync(Ie,"w"),St=new Map;u.writeSync(st,"[");const It=Ce.length;for(let ti=0;tijn.id),referenceLocation:se(bt.node)}}let rn={};if(ht.flags&16777216){const bt=ht;rn={conditionalCheckType:(fe=bt.checkType)==null?void 0:fe.id,conditionalExtendsType:(xe=bt.extendsType)==null?void 0:xe.id,conditionalTrueType:((Be=bt.resolvedTrueType)==null?void 0:Be.id)??-1,conditionalFalseType:((We=bt.resolvedFalseType)==null?void 0:We.id)??-1}}let Ni={};if(ht.flags&33554432){const bt=ht;Ni={substitutionBaseType:(Ae=bt.baseType)==null?void 0:Ae.id,constraintType:(De=bt.constraint)==null?void 0:De.id}}let Fi={};if(Ut&1024){const bt=ht;Fi={reverseMappedSourceType:(He=bt.source)==null?void 0:He.id,reverseMappedMappedType:(Ge=bt.mappedType)==null?void 0:Ge.id,reverseMappedConstraintType:(ft=bt.constraintType)==null?void 0:ft.id}}let Qu={};if(Ut&256){const bt=ht;Qu={evolvingArrayElementType:bt.elementType.id,evolvingArrayFinalType:(Ze=bt.finalArrayType)==null?void 0:Ze.id}}let aa;const Fr=ht.checker.getRecursionIdentity(ht);Fr&&(aa=St.get(Fr),aa||(aa=St.size,St.set(Fr,aa)));const Ba={id:ht.id,intrinsicName:ht.intrinsicName,symbolName:(Li==null?void 0:Li.escapedName)&&Yr(Li.escapedName),recursionId:aa,isTuple:Ut&8?!0:void 0,unionTypes:ht.flags&1048576?(je=ht.types)==null?void 0:je.map(bt=>bt.id):void 0,intersectionTypes:ht.flags&2097152?ht.types.map(bt=>bt.id):void 0,aliasTypeArguments:(Ke=ht.aliasTypeArguments)==null?void 0:Ke.map(bt=>bt.id),keyofType:ht.flags&4194304?(Gt=ht.type)==null?void 0:Gt.id:void 0,...xn,...Un,...rn,...Ni,...Fi,...Qu,destructuringPattern:se(ht.pattern),firstDeclaration:se((Yt=Li==null?void 0:Li.declarations)==null?void 0:Yt[0]),flags:H.formatTypeFlags(ht.flags).split("|"),display:ji};u.writeSync(st,JSON.stringify(Ba)),ti{Ce.Parse="parse",Ce.Program="program",Ce.Bind="bind",Ce.Check="check",Ce.CheckTypes="checkTypes",Ce.Emit="emit",Ce.Session="session"})(t.Phase||(t.Phase={}));function T(Ce,ne,ve){oe("I",Ce,ne,ve,'"s":"g"')}t.instant=T;const M=[];function z(Ce,ne,ve,Se=!1){Se&&oe("B",Ce,ne,ve),M.push({phase:Ce,name:ne,args:ve,time:1e3*G0(),separateBeginAndEnd:Se})}t.push=z;function j(Ce){H.assert(M.length>0),Y(M.length-1,1e3*G0(),Ce),M.length--}t.pop=j;function J(){const Ce=1e3*G0();for(let ne=M.length-1;ne>=0;ne--)Y(ne,Ce);M.length=0}t.popAll=J;const K=1e3*10;function Y(Ce,ne,ve){const{phase:Se,name:Ne,args:pe,time:fe,separateBeginAndEnd:xe}=M[Ce];xe?(H.assert(!ve,"`results` are not supported for events with `separateBeginAndEnd`"),oe("E",Se,Ne,pe,void 0,ne)):K-fe%K<=ne-fe&&oe("X",Se,Ne,{...pe,results:ve},`"dur":${ne-fe}`,fe)}function oe(Ce,ne,ve,Se,Ne,pe=1e3*G0()){f==="server"&&ne==="checkTypes"||(ul("beginTracing"),u.writeSync(d,`, +{"pid":1,"tid":1,"ph":"${Ce}","cat":"${ne}","ts":${pe},"name":"${ve}"`),Ne&&u.writeSync(d,`,${Ne}`),Se&&u.writeSync(d,`,"args":${JSON.stringify(Se)}`),u.writeSync(d,"}"),ul("endTracing"),Tm("Tracing","beginTracing","endTracing"))}function se(Ce){const ne=zn(Ce);return ne?{path:ne.path,start:ve(s0(ne,Ce.pos)),end:ve(s0(ne,Ce.end))}:void 0;function ve(Se){return{line:Se.line+1,character:Se.character+1}}}function ge(Ce){var ne,ve,Se,Ne,pe,fe,xe,Be,Ge,Ae,De,Ke,Je,ft,Ye,Ve,We,Gt,Yt;ul("beginDumpTypes");const Ie=v[v.length-1].typesPath,st=u.openSync(Ie,"w"),St=new Map;u.writeSync(st,"[");const It=Ce.length;for(let ei=0;eijn.id),referenceLocation:se(bt.node)}}let an={};if(ht.flags&16777216){const bt=ht;an={conditionalCheckType:(fe=bt.checkType)==null?void 0:fe.id,conditionalExtendsType:(xe=bt.extendsType)==null?void 0:xe.id,conditionalTrueType:((Be=bt.resolvedTrueType)==null?void 0:Be.id)??-1,conditionalFalseType:((Ge=bt.resolvedFalseType)==null?void 0:Ge.id)??-1}}let Pi={};if(ht.flags&33554432){const bt=ht;Pi={substitutionBaseType:(Ae=bt.baseType)==null?void 0:Ae.id,constraintType:(De=bt.constraint)==null?void 0:De.id}}let Ai={};if(Ut&1024){const bt=ht;Ai={reverseMappedSourceType:(Ke=bt.source)==null?void 0:Ke.id,reverseMappedMappedType:(Je=bt.mappedType)==null?void 0:Je.id,reverseMappedConstraintType:(ft=bt.constraintType)==null?void 0:ft.id}}let Zu={};if(Ut&256){const bt=ht;Zu={evolvingArrayElementType:bt.elementType.id,evolvingArrayFinalType:(Ye=bt.finalArrayType)==null?void 0:Ye.id}}let aa;const yr=ht.checker.getRecursionIdentity(ht);yr&&(aa=St.get(yr),aa||(aa=St.size,St.set(yr,aa)));const Ba={id:ht.id,intrinsicName:ht.intrinsicName,symbolName:(Ni==null?void 0:Ni.escapedName)&&Yr(Ni.escapedName),recursionId:aa,isTuple:Ut&8?!0:void 0,unionTypes:ht.flags&1048576?(Ve=ht.types)==null?void 0:Ve.map(bt=>bt.id):void 0,intersectionTypes:ht.flags&2097152?ht.types.map(bt=>bt.id):void 0,aliasTypeArguments:(We=ht.aliasTypeArguments)==null?void 0:We.map(bt=>bt.id),keyofType:ht.flags&4194304?(Gt=ht.type)==null?void 0:Gt.id:void 0,...xn,...Jn,...an,...Pi,...Ai,...Zu,destructuringPattern:se(ht.pattern),firstDeclaration:se((Yt=Ni==null?void 0:Ni.declarations)==null?void 0:Yt[0]),flags:H.formatTypeFlags(ht.flags).split("|"),display:ji};u.writeSync(st,JSON.stringify(Ba)),ei(t[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",t[t.NumericLiteral=9]="NumericLiteral",t[t.BigIntLiteral=10]="BigIntLiteral",t[t.StringLiteral=11]="StringLiteral",t[t.JsxText=12]="JsxText",t[t.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=14]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=16]="TemplateHead",t[t.TemplateMiddle=17]="TemplateMiddle",t[t.TemplateTail=18]="TemplateTail",t[t.OpenBraceToken=19]="OpenBraceToken",t[t.CloseBraceToken=20]="CloseBraceToken",t[t.OpenParenToken=21]="OpenParenToken",t[t.CloseParenToken=22]="CloseParenToken",t[t.OpenBracketToken=23]="OpenBracketToken",t[t.CloseBracketToken=24]="CloseBracketToken",t[t.DotToken=25]="DotToken",t[t.DotDotDotToken=26]="DotDotDotToken",t[t.SemicolonToken=27]="SemicolonToken",t[t.CommaToken=28]="CommaToken",t[t.QuestionDotToken=29]="QuestionDotToken",t[t.LessThanToken=30]="LessThanToken",t[t.LessThanSlashToken=31]="LessThanSlashToken",t[t.GreaterThanToken=32]="GreaterThanToken",t[t.LessThanEqualsToken=33]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=35]="EqualsEqualsToken",t[t.ExclamationEqualsToken=36]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",t[t.PlusToken=40]="PlusToken",t[t.MinusToken=41]="MinusToken",t[t.AsteriskToken=42]="AsteriskToken",t[t.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",t[t.SlashToken=44]="SlashToken",t[t.PercentToken=45]="PercentToken",t[t.PlusPlusToken=46]="PlusPlusToken",t[t.MinusMinusToken=47]="MinusMinusToken",t[t.LessThanLessThanToken=48]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=51]="AmpersandToken",t[t.BarToken=52]="BarToken",t[t.CaretToken=53]="CaretToken",t[t.ExclamationToken=54]="ExclamationToken",t[t.TildeToken=55]="TildeToken",t[t.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",t[t.BarBarToken=57]="BarBarToken",t[t.QuestionToken=58]="QuestionToken",t[t.ColonToken=59]="ColonToken",t[t.AtToken=60]="AtToken",t[t.QuestionQuestionToken=61]="QuestionQuestionToken",t[t.BacktickToken=62]="BacktickToken",t[t.HashToken=63]="HashToken",t[t.EqualsToken=64]="EqualsToken",t[t.PlusEqualsToken=65]="PlusEqualsToken",t[t.MinusEqualsToken=66]="MinusEqualsToken",t[t.AsteriskEqualsToken=67]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=69]="SlashEqualsToken",t[t.PercentEqualsToken=70]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=74]="AmpersandEqualsToken",t[t.BarEqualsToken=75]="BarEqualsToken",t[t.BarBarEqualsToken=76]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=79]="CaretEqualsToken",t[t.Identifier=80]="Identifier",t[t.PrivateIdentifier=81]="PrivateIdentifier",t[t.JSDocCommentTextToken=82]="JSDocCommentTextToken",t[t.BreakKeyword=83]="BreakKeyword",t[t.CaseKeyword=84]="CaseKeyword",t[t.CatchKeyword=85]="CatchKeyword",t[t.ClassKeyword=86]="ClassKeyword",t[t.ConstKeyword=87]="ConstKeyword",t[t.ContinueKeyword=88]="ContinueKeyword",t[t.DebuggerKeyword=89]="DebuggerKeyword",t[t.DefaultKeyword=90]="DefaultKeyword",t[t.DeleteKeyword=91]="DeleteKeyword",t[t.DoKeyword=92]="DoKeyword",t[t.ElseKeyword=93]="ElseKeyword",t[t.EnumKeyword=94]="EnumKeyword",t[t.ExportKeyword=95]="ExportKeyword",t[t.ExtendsKeyword=96]="ExtendsKeyword",t[t.FalseKeyword=97]="FalseKeyword",t[t.FinallyKeyword=98]="FinallyKeyword",t[t.ForKeyword=99]="ForKeyword",t[t.FunctionKeyword=100]="FunctionKeyword",t[t.IfKeyword=101]="IfKeyword",t[t.ImportKeyword=102]="ImportKeyword",t[t.InKeyword=103]="InKeyword",t[t.InstanceOfKeyword=104]="InstanceOfKeyword",t[t.NewKeyword=105]="NewKeyword",t[t.NullKeyword=106]="NullKeyword",t[t.ReturnKeyword=107]="ReturnKeyword",t[t.SuperKeyword=108]="SuperKeyword",t[t.SwitchKeyword=109]="SwitchKeyword",t[t.ThisKeyword=110]="ThisKeyword",t[t.ThrowKeyword=111]="ThrowKeyword",t[t.TrueKeyword=112]="TrueKeyword",t[t.TryKeyword=113]="TryKeyword",t[t.TypeOfKeyword=114]="TypeOfKeyword",t[t.VarKeyword=115]="VarKeyword",t[t.VoidKeyword=116]="VoidKeyword",t[t.WhileKeyword=117]="WhileKeyword",t[t.WithKeyword=118]="WithKeyword",t[t.ImplementsKeyword=119]="ImplementsKeyword",t[t.InterfaceKeyword=120]="InterfaceKeyword",t[t.LetKeyword=121]="LetKeyword",t[t.PackageKeyword=122]="PackageKeyword",t[t.PrivateKeyword=123]="PrivateKeyword",t[t.ProtectedKeyword=124]="ProtectedKeyword",t[t.PublicKeyword=125]="PublicKeyword",t[t.StaticKeyword=126]="StaticKeyword",t[t.YieldKeyword=127]="YieldKeyword",t[t.AbstractKeyword=128]="AbstractKeyword",t[t.AccessorKeyword=129]="AccessorKeyword",t[t.AsKeyword=130]="AsKeyword",t[t.AssertsKeyword=131]="AssertsKeyword",t[t.AssertKeyword=132]="AssertKeyword",t[t.AnyKeyword=133]="AnyKeyword",t[t.AsyncKeyword=134]="AsyncKeyword",t[t.AwaitKeyword=135]="AwaitKeyword",t[t.BooleanKeyword=136]="BooleanKeyword",t[t.ConstructorKeyword=137]="ConstructorKeyword",t[t.DeclareKeyword=138]="DeclareKeyword",t[t.GetKeyword=139]="GetKeyword",t[t.InferKeyword=140]="InferKeyword",t[t.IntrinsicKeyword=141]="IntrinsicKeyword",t[t.IsKeyword=142]="IsKeyword",t[t.KeyOfKeyword=143]="KeyOfKeyword",t[t.ModuleKeyword=144]="ModuleKeyword",t[t.NamespaceKeyword=145]="NamespaceKeyword",t[t.NeverKeyword=146]="NeverKeyword",t[t.OutKeyword=147]="OutKeyword",t[t.ReadonlyKeyword=148]="ReadonlyKeyword",t[t.RequireKeyword=149]="RequireKeyword",t[t.NumberKeyword=150]="NumberKeyword",t[t.ObjectKeyword=151]="ObjectKeyword",t[t.SatisfiesKeyword=152]="SatisfiesKeyword",t[t.SetKeyword=153]="SetKeyword",t[t.StringKeyword=154]="StringKeyword",t[t.SymbolKeyword=155]="SymbolKeyword",t[t.TypeKeyword=156]="TypeKeyword",t[t.UndefinedKeyword=157]="UndefinedKeyword",t[t.UniqueKeyword=158]="UniqueKeyword",t[t.UnknownKeyword=159]="UnknownKeyword",t[t.UsingKeyword=160]="UsingKeyword",t[t.FromKeyword=161]="FromKeyword",t[t.GlobalKeyword=162]="GlobalKeyword",t[t.BigIntKeyword=163]="BigIntKeyword",t[t.OverrideKeyword=164]="OverrideKeyword",t[t.OfKeyword=165]="OfKeyword",t[t.QualifiedName=166]="QualifiedName",t[t.ComputedPropertyName=167]="ComputedPropertyName",t[t.TypeParameter=168]="TypeParameter",t[t.Parameter=169]="Parameter",t[t.Decorator=170]="Decorator",t[t.PropertySignature=171]="PropertySignature",t[t.PropertyDeclaration=172]="PropertyDeclaration",t[t.MethodSignature=173]="MethodSignature",t[t.MethodDeclaration=174]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",t[t.Constructor=176]="Constructor",t[t.GetAccessor=177]="GetAccessor",t[t.SetAccessor=178]="SetAccessor",t[t.CallSignature=179]="CallSignature",t[t.ConstructSignature=180]="ConstructSignature",t[t.IndexSignature=181]="IndexSignature",t[t.TypePredicate=182]="TypePredicate",t[t.TypeReference=183]="TypeReference",t[t.FunctionType=184]="FunctionType",t[t.ConstructorType=185]="ConstructorType",t[t.TypeQuery=186]="TypeQuery",t[t.TypeLiteral=187]="TypeLiteral",t[t.ArrayType=188]="ArrayType",t[t.TupleType=189]="TupleType",t[t.OptionalType=190]="OptionalType",t[t.RestType=191]="RestType",t[t.UnionType=192]="UnionType",t[t.IntersectionType=193]="IntersectionType",t[t.ConditionalType=194]="ConditionalType",t[t.InferType=195]="InferType",t[t.ParenthesizedType=196]="ParenthesizedType",t[t.ThisType=197]="ThisType",t[t.TypeOperator=198]="TypeOperator",t[t.IndexedAccessType=199]="IndexedAccessType",t[t.MappedType=200]="MappedType",t[t.LiteralType=201]="LiteralType",t[t.NamedTupleMember=202]="NamedTupleMember",t[t.TemplateLiteralType=203]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",t[t.ImportType=205]="ImportType",t[t.ObjectBindingPattern=206]="ObjectBindingPattern",t[t.ArrayBindingPattern=207]="ArrayBindingPattern",t[t.BindingElement=208]="BindingElement",t[t.ArrayLiteralExpression=209]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=210]="ObjectLiteralExpression",t[t.PropertyAccessExpression=211]="PropertyAccessExpression",t[t.ElementAccessExpression=212]="ElementAccessExpression",t[t.CallExpression=213]="CallExpression",t[t.NewExpression=214]="NewExpression",t[t.TaggedTemplateExpression=215]="TaggedTemplateExpression",t[t.TypeAssertionExpression=216]="TypeAssertionExpression",t[t.ParenthesizedExpression=217]="ParenthesizedExpression",t[t.FunctionExpression=218]="FunctionExpression",t[t.ArrowFunction=219]="ArrowFunction",t[t.DeleteExpression=220]="DeleteExpression",t[t.TypeOfExpression=221]="TypeOfExpression",t[t.VoidExpression=222]="VoidExpression",t[t.AwaitExpression=223]="AwaitExpression",t[t.PrefixUnaryExpression=224]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=225]="PostfixUnaryExpression",t[t.BinaryExpression=226]="BinaryExpression",t[t.ConditionalExpression=227]="ConditionalExpression",t[t.TemplateExpression=228]="TemplateExpression",t[t.YieldExpression=229]="YieldExpression",t[t.SpreadElement=230]="SpreadElement",t[t.ClassExpression=231]="ClassExpression",t[t.OmittedExpression=232]="OmittedExpression",t[t.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",t[t.AsExpression=234]="AsExpression",t[t.NonNullExpression=235]="NonNullExpression",t[t.MetaProperty=236]="MetaProperty",t[t.SyntheticExpression=237]="SyntheticExpression",t[t.SatisfiesExpression=238]="SatisfiesExpression",t[t.TemplateSpan=239]="TemplateSpan",t[t.SemicolonClassElement=240]="SemicolonClassElement",t[t.Block=241]="Block",t[t.EmptyStatement=242]="EmptyStatement",t[t.VariableStatement=243]="VariableStatement",t[t.ExpressionStatement=244]="ExpressionStatement",t[t.IfStatement=245]="IfStatement",t[t.DoStatement=246]="DoStatement",t[t.WhileStatement=247]="WhileStatement",t[t.ForStatement=248]="ForStatement",t[t.ForInStatement=249]="ForInStatement",t[t.ForOfStatement=250]="ForOfStatement",t[t.ContinueStatement=251]="ContinueStatement",t[t.BreakStatement=252]="BreakStatement",t[t.ReturnStatement=253]="ReturnStatement",t[t.WithStatement=254]="WithStatement",t[t.SwitchStatement=255]="SwitchStatement",t[t.LabeledStatement=256]="LabeledStatement",t[t.ThrowStatement=257]="ThrowStatement",t[t.TryStatement=258]="TryStatement",t[t.DebuggerStatement=259]="DebuggerStatement",t[t.VariableDeclaration=260]="VariableDeclaration",t[t.VariableDeclarationList=261]="VariableDeclarationList",t[t.FunctionDeclaration=262]="FunctionDeclaration",t[t.ClassDeclaration=263]="ClassDeclaration",t[t.InterfaceDeclaration=264]="InterfaceDeclaration",t[t.TypeAliasDeclaration=265]="TypeAliasDeclaration",t[t.EnumDeclaration=266]="EnumDeclaration",t[t.ModuleDeclaration=267]="ModuleDeclaration",t[t.ModuleBlock=268]="ModuleBlock",t[t.CaseBlock=269]="CaseBlock",t[t.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",t[t.ImportDeclaration=272]="ImportDeclaration",t[t.ImportClause=273]="ImportClause",t[t.NamespaceImport=274]="NamespaceImport",t[t.NamedImports=275]="NamedImports",t[t.ImportSpecifier=276]="ImportSpecifier",t[t.ExportAssignment=277]="ExportAssignment",t[t.ExportDeclaration=278]="ExportDeclaration",t[t.NamedExports=279]="NamedExports",t[t.NamespaceExport=280]="NamespaceExport",t[t.ExportSpecifier=281]="ExportSpecifier",t[t.MissingDeclaration=282]="MissingDeclaration",t[t.ExternalModuleReference=283]="ExternalModuleReference",t[t.JsxElement=284]="JsxElement",t[t.JsxSelfClosingElement=285]="JsxSelfClosingElement",t[t.JsxOpeningElement=286]="JsxOpeningElement",t[t.JsxClosingElement=287]="JsxClosingElement",t[t.JsxFragment=288]="JsxFragment",t[t.JsxOpeningFragment=289]="JsxOpeningFragment",t[t.JsxClosingFragment=290]="JsxClosingFragment",t[t.JsxAttribute=291]="JsxAttribute",t[t.JsxAttributes=292]="JsxAttributes",t[t.JsxSpreadAttribute=293]="JsxSpreadAttribute",t[t.JsxExpression=294]="JsxExpression",t[t.JsxNamespacedName=295]="JsxNamespacedName",t[t.CaseClause=296]="CaseClause",t[t.DefaultClause=297]="DefaultClause",t[t.HeritageClause=298]="HeritageClause",t[t.CatchClause=299]="CatchClause",t[t.ImportAttributes=300]="ImportAttributes",t[t.ImportAttribute=301]="ImportAttribute",t[t.AssertClause=300]="AssertClause",t[t.AssertEntry=301]="AssertEntry",t[t.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",t[t.PropertyAssignment=303]="PropertyAssignment",t[t.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",t[t.SpreadAssignment=305]="SpreadAssignment",t[t.EnumMember=306]="EnumMember",t[t.UnparsedPrologue=307]="UnparsedPrologue",t[t.UnparsedPrepend=308]="UnparsedPrepend",t[t.UnparsedText=309]="UnparsedText",t[t.UnparsedInternalText=310]="UnparsedInternalText",t[t.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",t[t.SourceFile=312]="SourceFile",t[t.Bundle=313]="Bundle",t[t.UnparsedSource=314]="UnparsedSource",t[t.InputFiles=315]="InputFiles",t[t.JSDocTypeExpression=316]="JSDocTypeExpression",t[t.JSDocNameReference=317]="JSDocNameReference",t[t.JSDocMemberName=318]="JSDocMemberName",t[t.JSDocAllType=319]="JSDocAllType",t[t.JSDocUnknownType=320]="JSDocUnknownType",t[t.JSDocNullableType=321]="JSDocNullableType",t[t.JSDocNonNullableType=322]="JSDocNonNullableType",t[t.JSDocOptionalType=323]="JSDocOptionalType",t[t.JSDocFunctionType=324]="JSDocFunctionType",t[t.JSDocVariadicType=325]="JSDocVariadicType",t[t.JSDocNamepathType=326]="JSDocNamepathType",t[t.JSDoc=327]="JSDoc",t[t.JSDocComment=327]="JSDocComment",t[t.JSDocText=328]="JSDocText",t[t.JSDocTypeLiteral=329]="JSDocTypeLiteral",t[t.JSDocSignature=330]="JSDocSignature",t[t.JSDocLink=331]="JSDocLink",t[t.JSDocLinkCode=332]="JSDocLinkCode",t[t.JSDocLinkPlain=333]="JSDocLinkPlain",t[t.JSDocTag=334]="JSDocTag",t[t.JSDocAugmentsTag=335]="JSDocAugmentsTag",t[t.JSDocImplementsTag=336]="JSDocImplementsTag",t[t.JSDocAuthorTag=337]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",t[t.JSDocClassTag=339]="JSDocClassTag",t[t.JSDocPublicTag=340]="JSDocPublicTag",t[t.JSDocPrivateTag=341]="JSDocPrivateTag",t[t.JSDocProtectedTag=342]="JSDocProtectedTag",t[t.JSDocReadonlyTag=343]="JSDocReadonlyTag",t[t.JSDocOverrideTag=344]="JSDocOverrideTag",t[t.JSDocCallbackTag=345]="JSDocCallbackTag",t[t.JSDocOverloadTag=346]="JSDocOverloadTag",t[t.JSDocEnumTag=347]="JSDocEnumTag",t[t.JSDocParameterTag=348]="JSDocParameterTag",t[t.JSDocReturnTag=349]="JSDocReturnTag",t[t.JSDocThisTag=350]="JSDocThisTag",t[t.JSDocTypeTag=351]="JSDocTypeTag",t[t.JSDocTemplateTag=352]="JSDocTemplateTag",t[t.JSDocTypedefTag=353]="JSDocTypedefTag",t[t.JSDocSeeTag=354]="JSDocSeeTag",t[t.JSDocPropertyTag=355]="JSDocPropertyTag",t[t.JSDocThrowsTag=356]="JSDocThrowsTag",t[t.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",t[t.SyntaxList=358]="SyntaxList",t[t.NotEmittedStatement=359]="NotEmittedStatement",t[t.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",t[t.CommaListExpression=361]="CommaListExpression",t[t.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",t[t.Count=363]="Count",t[t.FirstAssignment=64]="FirstAssignment",t[t.LastAssignment=79]="LastAssignment",t[t.FirstCompoundAssignment=65]="FirstCompoundAssignment",t[t.LastCompoundAssignment=79]="LastCompoundAssignment",t[t.FirstReservedWord=83]="FirstReservedWord",t[t.LastReservedWord=118]="LastReservedWord",t[t.FirstKeyword=83]="FirstKeyword",t[t.LastKeyword=165]="LastKeyword",t[t.FirstFutureReservedWord=119]="FirstFutureReservedWord",t[t.LastFutureReservedWord=127]="LastFutureReservedWord",t[t.FirstTypeNode=182]="FirstTypeNode",t[t.LastTypeNode=205]="LastTypeNode",t[t.FirstPunctuation=19]="FirstPunctuation",t[t.LastPunctuation=79]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=165]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=9]="FirstLiteralToken",t[t.LastLiteralToken=15]="LastLiteralToken",t[t.FirstTemplateToken=15]="FirstTemplateToken",t[t.LastTemplateToken=18]="LastTemplateToken",t[t.FirstBinaryOperator=30]="FirstBinaryOperator",t[t.LastBinaryOperator=79]="LastBinaryOperator",t[t.FirstStatement=243]="FirstStatement",t[t.LastStatement=259]="LastStatement",t[t.FirstNode=166]="FirstNode",t[t.FirstJSDocNode=316]="FirstJSDocNode",t[t.LastJSDocNode=357]="LastJSDocNode",t[t.FirstJSDocTagNode=334]="FirstJSDocTagNode",t[t.LastJSDocTagNode=357]="LastJSDocTagNode",t[t.FirstContextualKeyword=128]="FirstContextualKeyword",t[t.LastContextualKeyword=165]="LastContextualKeyword",t))(eU||{}),tU=(t=>(t[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.Using=4]="Using",t[t.AwaitUsing=6]="AwaitUsing",t[t.NestedNamespace=8]="NestedNamespace",t[t.Synthesized=16]="Synthesized",t[t.Namespace=32]="Namespace",t[t.OptionalChain=64]="OptionalChain",t[t.ExportContext=128]="ExportContext",t[t.ContainsThis=256]="ContainsThis",t[t.HasImplicitReturn=512]="HasImplicitReturn",t[t.HasExplicitReturn=1024]="HasExplicitReturn",t[t.GlobalAugmentation=2048]="GlobalAugmentation",t[t.HasAsyncFunctions=4096]="HasAsyncFunctions",t[t.DisallowInContext=8192]="DisallowInContext",t[t.YieldContext=16384]="YieldContext",t[t.DecoratorContext=32768]="DecoratorContext",t[t.AwaitContext=65536]="AwaitContext",t[t.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",t[t.ThisNodeHasError=262144]="ThisNodeHasError",t[t.JavaScriptFile=524288]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=2097152]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",t[t.JSDoc=16777216]="JSDoc",t[t.Ambient=33554432]="Ambient",t[t.InWithStatement=67108864]="InWithStatement",t[t.JsonFile=134217728]="JsonFile",t[t.TypeCached=268435456]="TypeCached",t[t.Deprecated=536870912]="Deprecated",t[t.BlockScoped=7]="BlockScoped",t[t.Constant=6]="Constant",t[t.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",t[t.ContextFlags=101441536]="ContextFlags",t[t.TypeExcludesFlags=81920]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",t[t.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",t[t.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",t))(tU||{}),iU=(t=>(t[t.None=0]="None",t[t.Public=1]="Public",t[t.Private=2]="Private",t[t.Protected=4]="Protected",t[t.Readonly=8]="Readonly",t[t.Override=16]="Override",t[t.Export=32]="Export",t[t.Abstract=64]="Abstract",t[t.Ambient=128]="Ambient",t[t.Static=256]="Static",t[t.Accessor=512]="Accessor",t[t.Async=1024]="Async",t[t.Default=2048]="Default",t[t.Const=4096]="Const",t[t.In=8192]="In",t[t.Out=16384]="Out",t[t.Decorator=32768]="Decorator",t[t.Deprecated=65536]="Deprecated",t[t.JSDocPublic=8388608]="JSDocPublic",t[t.JSDocPrivate=16777216]="JSDocPrivate",t[t.JSDocProtected=33554432]="JSDocProtected",t[t.JSDocReadonly=67108864]="JSDocReadonly",t[t.JSDocOverride=134217728]="JSDocOverride",t[t.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",t[t.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",t[t.SyntacticModifiers=65535]="SyntacticModifiers",t[t.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",t[t.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",t[t.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",t[t.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=7]="AccessibilityModifier",t[t.ParameterPropertyModifier=31]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=28895]="TypeScriptModifier",t[t.ExportDefault=2080]="ExportDefault",t[t.All=131071]="All",t[t.Modifier=98303]="Modifier",t))(iU||{}),xoe=(t=>(t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",t))(xoe||{}),nU=(t=>(t[t.Succeeded=1]="Succeeded",t[t.Failed=2]="Failed",t[t.Reported=4]="Reported",t[t.ReportsUnmeasurable=8]="ReportsUnmeasurable",t[t.ReportsUnreliable=16]="ReportsUnreliable",t[t.ReportsMask=24]="ReportsMask",t))(nU||{}),uU=(t=>(t[t.None=0]="None",t[t.Auto=1]="Auto",t[t.Loop=2]="Loop",t[t.Unique=3]="Unique",t[t.Node=4]="Node",t[t.KindMask=7]="KindMask",t[t.ReservedInNestedScopes=8]="ReservedInNestedScopes",t[t.Optimistic=16]="Optimistic",t[t.FileLevel=32]="FileLevel",t[t.AllowNameSubstitution=64]="AllowNameSubstitution",t))(uU||{}),voe=(t=>(t[t.None=0]="None",t[t.PrecedingLineBreak=1]="PrecedingLineBreak",t[t.PrecedingJSDocComment=2]="PrecedingJSDocComment",t[t.Unterminated=4]="Unterminated",t[t.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",t[t.Scientific=16]="Scientific",t[t.Octal=32]="Octal",t[t.HexSpecifier=64]="HexSpecifier",t[t.BinarySpecifier=128]="BinarySpecifier",t[t.OctalSpecifier=256]="OctalSpecifier",t[t.ContainsSeparator=512]="ContainsSeparator",t[t.UnicodeEscape=1024]="UnicodeEscape",t[t.ContainsInvalidEscape=2048]="ContainsInvalidEscape",t[t.HexEscape=4096]="HexEscape",t[t.ContainsLeadingZero=8192]="ContainsLeadingZero",t[t.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",t[t.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",t[t.WithSpecifier=448]="WithSpecifier",t[t.StringLiteralFlags=7176]="StringLiteralFlags",t[t.NumericLiteralFlags=25584]="NumericLiteralFlags",t[t.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",t[t.IsInvalid=26656]="IsInvalid",t))(voe||{}),_O=(t=>(t[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",t))(_O||{}),Coe=(t=>(t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",t))(Coe||{}),v8=class{},rU=(t=>(t[t.RootFile=0]="RootFile",t[t.SourceFromProjectReference=1]="SourceFromProjectReference",t[t.OutputFromProjectReference=2]="OutputFromProjectReference",t[t.Import=3]="Import",t[t.ReferenceFile=4]="ReferenceFile",t[t.TypeReferenceDirective=5]="TypeReferenceDirective",t[t.LibFile=6]="LibFile",t[t.LibReferenceDirective=7]="LibReferenceDirective",t[t.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",t))(rU||{}),boe=(t=>(t[t.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",t[t.ResolutionDiagnostics=2]="ResolutionDiagnostics",t))(boe||{}),yoe=(t=>(t[t.Js=0]="Js",t[t.Dts=1]="Dts",t))(yoe||{}),aU=(t=>(t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",t))(aU||{}),koe=(t=>(t[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t))(koe||{}),Foe=(t=>(t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",t))(Foe||{}),Aoe=(t=>(t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",t))(Aoe||{}),Soe=(t=>(t[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",t[t.SkipBindingPatterns=8]="SkipBindingPatterns",t))(Soe||{}),Boe=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.WriteComputedProps=1073741824]="WriteComputedProps",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName",t))(Boe||{}),woe=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",t))(woe||{}),Toe=(t=>(t[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.WriteComputedProps=16]="WriteComputedProps",t[t.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",t))(Toe||{}),Loe=(t=>(t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",t))(Loe||{}),Noe=(t=>(t[t.UnionOrIntersection=0]="UnionOrIntersection",t[t.Spread=1]="Spread",t))(Noe||{}),Poe=(t=>(t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",t))(Poe||{}),Moe=(t=>(t[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType",t))(Moe||{}),oU=(t=>(t[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=67108863]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.AccessorExcludes=13247]="AccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer",t))(oU||{}),zoe=(t=>(t[t.Numeric=0]="Numeric",t[t.Literal=1]="Literal",t))(zoe||{}),Ioe=(t=>(t[t.None=0]="None",t[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Unresolved=1048576]="Unresolved",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial",t))(Ioe||{}),Roe=(t=>(t.Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this",t))(Roe||{}),Ooe=(t=>(t[t.None=0]="None",t[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=16]="SuperInstance",t[t.SuperStatic=32]="SuperStatic",t[t.ContextChecked=64]="ContextChecked",t[t.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",t[t.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",t[t.CaptureArguments=512]="CaptureArguments",t[t.EnumValuesComputed=1024]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",t[t.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",t[t.AssignmentsMarked=131072]="AssignmentsMarked",t[t.ContainsConstructorReference=262144]="ContainsConstructorReference",t[t.ConstructorReference=536870912]="ConstructorReference",t[t.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",t[t.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",t[t.InCheckIdentifier=4194304]="InCheckIdentifier",t))(Ooe||{}),sU=(t=>(t[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.TemplateLiteral=134217728]="TemplateLiteral",t[t.StringMapping=268435456]="StringMapping",t[t.AnyOrUnknown=3]="AnyOrUnknown",t[t.Nullable=98304]="Nullable",t[t.Literal=2944]="Literal",t[t.Unit=109472]="Unit",t[t.Freshable=2976]="Freshable",t[t.StringOrNumberLiteral=384]="StringOrNumberLiteral",t[t.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",t[t.DefinitelyFalsy=117632]="DefinitelyFalsy",t[t.PossiblyFalsy=117724]="PossiblyFalsy",t[t.Intrinsic=67359327]="Intrinsic",t[t.StringLike=402653316]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.Primitive=402784252]="Primitive",t[t.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",t[t.DisjointDomains=469892092]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=406847488]="InstantiablePrimitive",t[t.Instantiable=465829888]="Instantiable",t[t.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Singleton=67358815]="Singleton",t[t.Narrowable=536624127]="Narrowable",t[t.IncludesMask=473694207]="IncludesMask",t[t.IncludesMissingType=262144]="IncludesMissingType",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",t[t.IncludesInstantiable=33554432]="IncludesInstantiable",t[t.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",t))(sU||{}),lU=(t=>(t[t.None=0]="None",t[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ReverseMapped=1024]="ReverseMapped",t[t.JsxAttributes=2048]="JsxAttributes",t[t.JSLiteral=4096]="JSLiteral",t[t.FreshLiteral=8192]="FreshLiteral",t[t.ArrayLiteral=16384]="ArrayLiteral",t[t.PrimitiveUnion=32768]="PrimitiveUnion",t[t.ContainsWideningType=65536]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=262144]="NonInferrableType",t[t.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=196608]="RequiresWidening",t[t.PropagatingFlags=458752]="PropagatingFlags",t[t.InstantiatedMapped=96]="InstantiatedMapped",t[t.ObjectTypeKindMask=1343]="ObjectTypeKindMask",t[t.ContainsSpread=2097152]="ContainsSpread",t[t.ObjectRestType=4194304]="ObjectRestType",t[t.InstantiationExpressionType=8388608]="InstantiationExpressionType",t[t.IsClassInstanceClone=16777216]="IsClassInstanceClone",t[t.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",t[t.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",t[t.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",t[t.IsGenericObjectType=4194304]="IsGenericObjectType",t[t.IsGenericIndexType=8388608]="IsGenericIndexType",t[t.IsGenericType=12582912]="IsGenericType",t[t.ContainsIntersections=16777216]="ContainsIntersections",t[t.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",t[t.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",t[t.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=33554432]="IsNeverIntersection",t))(lU||{}),joe=(t=>(t[t.Invariant=0]="Invariant",t[t.Covariant=1]="Covariant",t[t.Contravariant=2]="Contravariant",t[t.Bivariant=3]="Bivariant",t[t.Independent=4]="Independent",t[t.VarianceMask=7]="VarianceMask",t[t.Unmeasurable=8]="Unmeasurable",t[t.Unreliable=16]="Unreliable",t[t.AllowsStructuralFallback=24]="AllowsStructuralFallback",t))(joe||{}),Voe=(t=>(t[t.Required=1]="Required",t[t.Optional=2]="Optional",t[t.Rest=4]="Rest",t[t.Variadic=8]="Variadic",t[t.Fixed=3]="Fixed",t[t.Variable=12]="Variable",t[t.NonRequired=14]="NonRequired",t[t.NonRest=11]="NonRest",t))(Voe||{}),Hoe=(t=>(t[t.None=0]="None",t[t.IncludeUndefined=1]="IncludeUndefined",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.Writing=4]="Writing",t[t.CacheSymbol=8]="CacheSymbol",t[t.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",t[t.ExpressionPosition=32]="ExpressionPosition",t[t.ReportDeprecated=64]="ReportDeprecated",t[t.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",t[t.Contextual=256]="Contextual",t[t.Persistent=1]="Persistent",t))(Hoe||{}),Koe=(t=>(t[t.None=0]="None",t[t.StringsOnly=1]="StringsOnly",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.NoReducibleCheck=4]="NoReducibleCheck",t))(Koe||{}),Woe=(t=>(t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",t))(Woe||{}),Goe=(t=>(t[t.Call=0]="Call",t[t.Construct=1]="Construct",t))(Goe||{}),cU=(t=>(t[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.Abstract=4]="Abstract",t[t.IsInnerCallChain=8]="IsInnerCallChain",t[t.IsOuterCallChain=16]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",t[t.IsNonInferrable=64]="IsNonInferrable",t[t.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",t[t.PropagatingFlags=167]="PropagatingFlags",t[t.CallChainFlags=24]="CallChainFlags",t))(cU||{}),Joe=(t=>(t[t.String=0]="String",t[t.Number=1]="Number",t))(Joe||{}),$oe=(t=>(t[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Deferred=2]="Deferred",t[t.Function=3]="Function",t[t.Composite=4]="Composite",t[t.Merged=5]="Merged",t))($oe||{}),Uoe=(t=>(t[t.None=0]="None",t[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.SpeculativeTuple=2]="SpeculativeTuple",t[t.SubstituteSource=4]="SubstituteSource",t[t.HomomorphicMappedType=8]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=32]="MappedTypeConstraint",t[t.ContravariantConditional=64]="ContravariantConditional",t[t.ReturnType=128]="ReturnType",t[t.LiteralKeyof=256]="LiteralKeyof",t[t.NoConstraints=512]="NoConstraints",t[t.AlwaysStrict=1024]="AlwaysStrict",t[t.MaxValue=2048]="MaxValue",t[t.PriorityImpliesCombination=416]="PriorityImpliesCombination",t[t.Circularity=-1]="Circularity",t))(Uoe||{}),qoe=(t=>(t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",t))(qoe||{}),Zoe=(t=>(t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",t))(Zoe||{}),Yoe=(t=>(t[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",t))(Yoe||{}),DO=(t=>(t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",t))(DO||{}),C8=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t[t.Node10=2]="Node10",t[t.Node16=3]="Node16",t[t.NodeNext=99]="NodeNext",t[t.Bundler=100]="Bundler",t))(C8||{}),Qoe=(t=>(t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",t))(Qoe||{}),Xoe=(t=>(t[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t[t.UseFsEvents=4]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",t))(Xoe||{}),ese=(t=>(t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t))(ese||{}),tse=(t=>(t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",t))(tse||{}),kN=(t=>(t[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ES2022=7]="ES2022",t[t.ESNext=99]="ESNext",t[t.Node16=100]="Node16",t[t.NodeNext=199]="NodeNext",t))(kN||{}),ise=(t=>(t[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",t))(ise||{}),nse=(t=>(t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",t))(nse||{}),use=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(use||{}),dU=(t=>(t[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred",t))(dU||{}),rse=(t=>(t[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ES2021=8]="ES2021",t[t.ES2022=9]="ES2022",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",t))(rse||{}),ase=(t=>(t[t.Standard=0]="Standard",t[t.JSX=1]="JSX",t))(ase||{}),ose=(t=>(t[t.None=0]="None",t[t.Recursive=1]="Recursive",t))(ose||{}),sse=(t=>(t[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t.replacementCharacter=65533]="replacementCharacter",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab",t))(sse||{}),lse=(t=>(t.Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",t.Mjs=".mjs",t.Mts=".mts",t.Dmts=".d.mts",t.Cjs=".cjs",t.Cts=".cts",t.Dcts=".d.cts",t))(lse||{}),hU=(t=>(t[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2022=8]="ContainsES2022",t[t.ContainsES2021=16]="ContainsES2021",t[t.ContainsES2020=32]="ContainsES2020",t[t.ContainsES2019=64]="ContainsES2019",t[t.ContainsES2018=128]="ContainsES2018",t[t.ContainsES2017=256]="ContainsES2017",t[t.ContainsES2016=512]="ContainsES2016",t[t.ContainsES2015=1024]="ContainsES2015",t[t.ContainsGenerator=2048]="ContainsGenerator",t[t.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=16384]="ContainsLexicalThis",t[t.ContainsRestOrSpread=32768]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=524288]="ContainsBindingPattern",t[t.ContainsYield=1048576]="ContainsYield",t[t.ContainsAwait=2097152]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=8388608]="ContainsDynamicImport",t[t.ContainsClassFields=16777216]="ContainsClassFields",t[t.ContainsDecorators=33554432]="ContainsDecorators",t[t.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",t[t.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",t[t.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",t[t.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",t[t.HasComputedFlags=-2147483648]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2022=8]="AssertES2022",t[t.AssertES2021=16]="AssertES2021",t[t.AssertES2020=32]="AssertES2020",t[t.AssertES2019=64]="AssertES2019",t[t.AssertES2018=128]="AssertES2018",t[t.AssertES2017=256]="AssertES2017",t[t.AssertES2016=512]="AssertES2016",t[t.AssertES2015=1024]="AssertES2015",t[t.AssertGenerator=2048]="AssertGenerator",t[t.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",t[t.NodeExcludes=-2147483648]="NodeExcludes",t[t.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",t[t.FunctionExcludes=-1937940480]="FunctionExcludes",t[t.ConstructorExcludes=-1937948672]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",t[t.PropertyExcludes=-2013249536]="PropertyExcludes",t[t.ClassExcludes=-2147344384]="ClassExcludes",t[t.ModuleExcludes=-1941676032]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",t[t.ParameterExcludes=-2147483648]="ParameterExcludes",t[t.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",t[t.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",t[t.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",t[t.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",t))(hU||{}),fU=(t=>(t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",t))(fU||{}),mU=(t=>(t[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.MultiLine=2]="MultiLine",t[t.AdviseOnEmitNode=4]="AdviseOnEmitNode",t[t.NoSubstitution=8]="NoSubstitution",t[t.CapturesThis=16]="CapturesThis",t[t.NoLeadingSourceMap=32]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=64]="NoTrailingSourceMap",t[t.NoSourceMap=96]="NoSourceMap",t[t.NoNestedSourceMaps=128]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=768]="NoTokenSourceMaps",t[t.NoLeadingComments=1024]="NoLeadingComments",t[t.NoTrailingComments=2048]="NoTrailingComments",t[t.NoComments=3072]="NoComments",t[t.NoNestedComments=4096]="NoNestedComments",t[t.HelperName=8192]="HelperName",t[t.ExportName=16384]="ExportName",t[t.LocalName=32768]="LocalName",t[t.InternalName=65536]="InternalName",t[t.Indented=131072]="Indented",t[t.NoIndentation=262144]="NoIndentation",t[t.AsyncFunctionBody=524288]="AsyncFunctionBody",t[t.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",t[t.CustomPrologue=2097152]="CustomPrologue",t[t.NoHoisting=4194304]="NoHoisting",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t))(mU||{}),cse=(t=>(t[t.None=0]="None",t[t.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=2]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",t[t.Immutable=8]="Immutable",t[t.IndirectCall=16]="IndirectCall",t[t.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",t))(cse||{}),dse=(t=>(t[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.SpreadArray=1024]="SpreadArray",t[t.Await=2048]="Await",t[t.AsyncGenerator=4096]="AsyncGenerator",t[t.AsyncDelegator=8192]="AsyncDelegator",t[t.AsyncValues=16384]="AsyncValues",t[t.ExportStar=32768]="ExportStar",t[t.ImportStar=65536]="ImportStar",t[t.ImportDefault=131072]="ImportDefault",t[t.MakeTemplateObject=262144]="MakeTemplateObject",t[t.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",t[t.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",t[t.CreateBinding=4194304]="CreateBinding",t[t.SetFunctionName=8388608]="SetFunctionName",t[t.PropKey=16777216]="PropKey",t[t.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=33554432]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes",t))(dse||{}),hse=(t=>(t[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue",t))(hse||{}),fse=(t=>(t[t.Parentheses=1]="Parentheses",t[t.TypeAssertions=2]="TypeAssertions",t[t.NonNullAssertions=4]="NonNullAssertions",t[t.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",t[t.Assertions=6]="Assertions",t[t.All=15]="All",t[t.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",t))(fse||{}),mse=(t=>(t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",t))(mse||{}),pse=(t=>(t.Prologue="prologue",t.EmitHelpers="emitHelpers",t.NoDefaultLib="no-default-lib",t.Reference="reference",t.Type="type",t.TypeResolutionModeRequire="type-require",t.TypeResolutionModeImport="type-import",t.Lib="lib",t.Prepend="prepend",t.Text="text",t.Internal="internal",t))(pse||{}),gse=(t=>(t[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=2359808]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",t[t.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ImportAttributes=526226]="ImportAttributes",t[t.ImportClauseEntries=526226]="ImportClauseEntries",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment",t))(gse||{}),Ese=(t=>(t[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default",t))(Ese||{}),xO={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},_se=(t=>(t[t.ParseAll=0]="ParseAll",t[t.ParseNone=1]="ParseNone",t[t.ParseForTypeErrors=2]="ParseForTypeErrors",t[t.ParseForTypeInfo=3]="ParseForTypeInfo",t))(_se||{})}});function FN(t){let u=5381;for(let s=0;s{se.isClosed=!0,Oy(u,se)}}}function v(K){const Y=[];return Y.pollingInterval=K,Y.pollIndex=0,Y.pollScheduled=!1,Y}function b(K,Y){Y.pollIndex=k(Y,Y.pollingInterval,Y.pollIndex,EU[Y.pollingInterval]),Y.length?J(Y.pollingInterval):(H.assert(Y.pollIndex===0),Y.pollScheduled=!1)}function B(K,Y){k(s,250,0,s.length),b(K,Y),!Y.pollScheduled&&s.length&&J(250)}function k(K,Y,oe,se){return Lqe(t,K,oe,se,ge);function ge(ae,Ce,ne){ne?(ae.unchangedPolls=0,K!==s&&(K[Ce]=void 0,z(ae))):ae.unchangedPolls!==CO[Y]?ae.unchangedPolls++:K===s?(ae.unchangedPolls=1,K[Ce]=void 0,M(ae,250)):Y!==2e3&&(ae.unchangedPolls++,K[Ce]=void 0,M(ae,Y===250?500:2e3))}}function T(K){switch(K){case 250:return d;case 500:return f;case 2e3:return p}}function M(K,Y){T(Y).push(K),j(Y)}function z(K){s.push(K),j(250)}function j(K){T(K).pollScheduled||J(K)}function J(K){T(K).pollScheduled=t.setTimeout(K===250?B:b,K,K===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",T(K))}}function qwt(t,u){const s=Bm(),d=new Map,f=T1(u);return p;function p(v,b,B,k){const T=f(v);s.add(T,b);const M=dr(T)||".",z=d.get(M)||E(dr(v)||".",M,k);return z.referenceCount++,{close:()=>{z.referenceCount===1?(z.close(),d.delete(M)):z.referenceCount--,s.remove(T,b)}}}function E(v,b,B){const k=t(v,1,(T,M,z)=>{if(!Ja(M))return;const j=$a(M,v),J=j&&s.get(f(j));if(J)for(const K of J)K(j,1,z)},!1,500,B);return k.referenceCount=0,d.set(b,k),k}}function Zwt(t){const u=[];let s=0,d;return f;function f(v,b){const B={fileName:v,callback:b,mtime:QA(t,v)};return u.push(B),E(),{close:()=>{B.isClosed=!0,Oy(u,B)}}}function p(){d=void 0,s=Lqe(t,u,s,EU[250]),E()}function E(){!u.length||d||(d=t.setTimeout(p,2e3,"pollQueue"))}}function Nqe(t,u,s,d,f){const E=T1(u)(s),v=t.get(E);return v?v.callbacks.push(d):t.set(E,{watcher:f((b,B,k)=>{var T;return(T=t.get(E))==null?void 0:T.callbacks.slice().forEach(M=>M(b,B,k))}),callbacks:[d]}),{close:()=>{const b=t.get(E);b&&(!mO(b.callbacks,d)||b.callbacks.length||(t.delete(E),Om(b)))}}}function Ywt(t,u){const s=t.mtime.getTime(),d=u.getTime();return s!==d?(t.mtime=u,t.callback(t.fileName,Dse(s,d),u),!0):!1}function Dse(t,u){return t===0?0:u===0?2:1}function vO(t){return E2e(t)}function m2e(t){E2e=t}function Qwt({watchDirectory:t,useCaseSensitiveFileNames:u,getCurrentDirectory:s,getAccessibleSortedChildDirectories:d,fileSystemEntryExists:f,realpath:p,setTimeout:E,clearTimeout:v}){const b=new Map,B=Bm(),k=new Map;let T;const M=vN(!u),z=T1(u);return(ne,ve,Se,Ne)=>Se?j(ne,Ne,ve):t(ne,ve,Se,Ne);function j(ne,ve,Se){const Ne=z(ne);let pe=b.get(Ne);pe?pe.refCount++:(pe={watcher:t(ne,xe=>{ae(xe,ve)||(ve!=null&&ve.synchronousWatchDirectory?(J(Ne,xe),ge(ne,Ne,ve)):K(ne,Ne,xe,ve))},!1,ve),refCount:1,childWatches:_t},b.set(Ne,pe),ge(ne,Ne,ve));const fe=Se&&{dirName:ne,callback:Se};return fe&&B.add(Ne,fe),{dirName:ne,close:()=>{const xe=H.checkDefined(b.get(Ne));fe&&B.remove(Ne,fe),xe.refCount--,!xe.refCount&&(b.delete(Ne),Om(xe),xe.childWatches.forEach(dg))}}}function J(ne,ve,Se){let Ne,pe;Ja(ve)?Ne=ve:pe=ve,B.forEach((fe,xe)=>{if(!(pe&&pe.get(xe)===!0)&&(xe===ne||Na(ne,xe)&&ne[xe.length]===nl))if(pe)if(Se){const Be=pe.get(xe);Be?Be.push(...Se):pe.set(xe,Se.slice())}else pe.set(xe,!0);else fe.forEach(({callback:Be})=>Be(Ne))})}function K(ne,ve,Se,Ne){const pe=b.get(ve);if(pe&&f(ne,1)){Y(ne,ve,Se,Ne);return}J(ve,Se),se(pe)}function Y(ne,ve,Se,Ne){const pe=k.get(ve);pe?pe.fileNames.push(Se):k.set(ve,{dirName:ne,options:Ne,fileNames:[Se]}),T&&(v(T),T=void 0),T=E(oe,1e3,"timerToUpdateChildWatches")}function oe(){T=void 0,vO(`sysLog:: onTimerToUpdateChildWatches:: ${k.size}`);const ne=V0(),ve=new Map;for(;!T&&k.size;){const Ne=k.entries().next();H.assert(!Ne.done);const{value:[pe,{dirName:fe,options:xe,fileNames:Be}]}=Ne;k.delete(pe);const We=ge(fe,pe,xe);J(pe,ve,We?void 0:Be)}vO(`sysLog:: invokingWatchers:: Elapsed:: ${V0()-ne}ms:: ${k.size}`),B.forEach((Ne,pe)=>{const fe=ve.get(pe);fe&&Ne.forEach(({callback:xe,dirName:Be})=>{Ha(fe)?fe.forEach(xe):xe(Be)})});const Se=V0()-ne;vO(`sysLog:: Elapsed:: ${Se}ms:: onTimerToUpdateChildWatches:: ${k.size} ${T}`)}function se(ne){if(!ne)return;const ve=ne.childWatches;ne.childWatches=_t;for(const Se of ve)Se.close(),se(b.get(z(Se.dirName)))}function ge(ne,ve,Se){const Ne=b.get(ve);if(!Ne)return!1;let pe;const fe=Z$(f(ne,1)?Ui(d(ne),We=>{const Ae=$a(We,ne);return!ae(Ae,Se)&&M(Ae,Go(p(Ae)))===0?Ae:void 0}):_t,Ne.childWatches,(We,Ae)=>M(We,Ae.dirName),xe,dg,Be);return Ne.childWatches=pe||_t,fe;function xe(We){const Ae=j(We,Se);Be(Ae)}function Be(We){(pe||(pe=[])).push(We)}}function ae(ne,ve){return qe(bO,Se=>Ce(ne,Se))||Pqe(ne,ve,u,s)}function Ce(ne,ve){return ne.includes(ve)?!0:u?!1:z(ne).includes(ve)}}function Xwt(t){return(u,s,d)=>t(s===1?"change":"rename","",d)}function eTt(t,u,s){return(d,f,p)=>{d==="rename"?(p||(p=s(t)||H_),u(t,p!==H_?0:2,p)):u(t,1,p)}}function Pqe(t,u,s,d){return((u==null?void 0:u.excludeDirectories)||(u==null?void 0:u.excludeFiles))&&(AY(t,u==null?void 0:u.excludeFiles,s,d())||AY(t,u==null?void 0:u.excludeDirectories,s,d()))}function Mqe(t,u,s,d,f){return(p,E)=>{if(p==="rename"){const v=E?Go(hr(t,E)):t;(!E||!Pqe(v,s,d,f))&&u(v)}}}function p2e({pollingWatchFileWorker:t,getModifiedTime:u,setTimeout:s,clearTimeout:d,fsWatchWorker:f,fileSystemEntryExists:p,useCaseSensitiveFileNames:E,getCurrentDirectory:v,fsSupportsRecursiveFsWatch:b,getAccessibleSortedChildDirectories:B,realpath:k,tscWatchFile:T,useNonPollingWatchers:M,tscWatchDirectory:z,inodeWatching:j,sysLog:J}){const K=new Map,Y=new Map,oe=new Map;let se,ge,ae,Ce,ne=!1;return{watchFile:ve,watchDirectory:xe};function ve(Ge,ft,Ze,je){je=pe(je,M);const Ke=H.checkDefined(je.watchFile);switch(Ke){case 0:return Ae(Ge,ft,250,void 0);case 1:return Ae(Ge,ft,Ze,void 0);case 2:return Se()(Ge,ft,Ze,void 0);case 3:return Ne()(Ge,ft,void 0,void 0);case 4:return De(Ge,0,eTt(Ge,ft,u),!1,Ze,_H(je));case 5:return ae||(ae=qwt(De,E)),ae(Ge,ft,Ze,_H(je));default:H.assertNever(Ke)}}function Se(){return se||(se=Uwt({getModifiedTime:u,setTimeout:s}))}function Ne(){return ge||(ge=Zwt({getModifiedTime:u,setTimeout:s}))}function pe(Ge,ft){if(Ge&&Ge.watchFile!==void 0)return Ge;switch(T){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return fe(4,1,Ge);case"UseFsEventsWithFallbackDynamicPolling":return fe(4,2,Ge);case"UseFsEventsOnParentDirectory":ft=!0;default:return ft?fe(5,1,Ge):{watchFile:4}}}function fe(Ge,ft,Ze){const je=Ze==null?void 0:Ze.fallbackPolling;return{watchFile:Ge,fallbackPolling:je===void 0?ft:je}}function xe(Ge,ft,Ze,je){return b?De(Ge,1,Mqe(Ge,ft,je,E,v),Ze,500,_H(je)):(Ce||(Ce=Qwt({useCaseSensitiveFileNames:E,getCurrentDirectory:v,fileSystemEntryExists:p,getAccessibleSortedChildDirectories:B,watchDirectory:Be,realpath:k,setTimeout:s,clearTimeout:d})),Ce(Ge,ft,Ze,je))}function Be(Ge,ft,Ze,je){H.assert(!Ze);const Ke=We(je),Gt=H.checkDefined(Ke.watchDirectory);switch(Gt){case 1:return Ae(Ge,()=>ft(Ge),500,void 0);case 2:return Se()(Ge,()=>ft(Ge),500,void 0);case 3:return Ne()(Ge,()=>ft(Ge),void 0,void 0);case 0:return De(Ge,1,Mqe(Ge,ft,je,E,v),Ze,500,_H(Ke));default:H.assertNever(Gt)}}function We(Ge){if(Ge&&Ge.watchDirectory!==void 0)return Ge;switch(z){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const ft=Ge==null?void 0:Ge.fallbackPolling;return{watchDirectory:0,fallbackPolling:ft!==void 0?ft:void 0}}}function Ae(Ge,ft,Ze,je){return Nqe(K,E,Ge,ft,Ke=>t(Ge,Ke,Ze,je))}function De(Ge,ft,Ze,je,Ke,Gt){return Nqe(je?oe:Y,E,Ge,Ze,Yt=>He(Ge,ft,Yt,je,Ke,Gt))}function He(Ge,ft,Ze,je,Ke,Gt){let Yt,Ie;j&&(Yt=Ge.substring(Ge.lastIndexOf(nl)),Ie=Yt.slice(nl.length));let st=p(Ge,ft)?It():Ut();return{close:()=>{st&&(st.close(),st=void 0)}};function St(Li){st&&(J(`sysLog:: ${Ge}:: Changing watcher to ${Li===It?"Present":"Missing"}FileSystemEntryWatcher`),st.close(),st=Li())}function It(){if(ne)return J(`sysLog:: ${Ge}:: Defaulting to watchFile`),ht();try{const Li=f(Ge,je,j?ti:Ze);return Li.on("error",()=>{Ze("rename",""),St(Ut)}),Li}catch(Li){return ne||(ne=Li.code==="ENOSPC"),J(`sysLog:: ${Ge}:: Changing to watchFile`),ht()}}function ti(Li,ji){let xn;if(ji&&oc(ji,"~")&&(xn=ji,ji=ji.slice(0,ji.length-1)),Li==="rename"&&(!ji||ji===Ie||oc(ji,Yt))){const Un=u(Ge)||H_;xn&&Ze(Li,xn,Un),Ze(Li,ji,Un),j?St(Un===H_?Ut:It):Un===H_&&St(Ut)}else xn&&Ze(Li,xn),Ze(Li,ji)}function ht(){return ve(Ge,Xwt(Ze),Ke,Gt)}function Ut(){return ve(Ge,(Li,ji,xn)=>{ji===0&&(xn||(xn=u(Ge)||H_),xn!==H_&&(Ze("rename","",xn),St(It)))},Ke,Gt)}}}function g2e(t){const u=t.writeFile;t.writeFile=(s,d,f)=>ile(s,d,!!f,(p,E,v)=>u.call(t,p,E,v),p=>t.createDirectory(p),p=>t.directoryExists(p))}function zqe(t){l1=t}var xse,pU,H_,gU,EU,CO,bO,E2e,vse,l1,tTt=o({"src/compiler/sys.ts"(){Ao(),xse=(t=>(t[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",t))(xse||{}),pU=(t=>(t[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",t))(pU||{}),H_=new Date(0),gU={Low:32,Medium:64,High:256},EU=f2e(gU),CO=f2e(gU),bO=["/node_modules/.","/.git","/.#"],E2e=Ms,vse=(t=>(t[t.File=0]="File",t[t.Directory=1]="Directory",t))(vse||{}),l1=(()=>{const t="\uFEFF";function u(){const d=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,f=nS,p=nS,E=nS;let v;try{v=nS}catch{v=void 0}let b,B="./profile.cpuprofile";const k=nS.Buffer,T=process.platform==="linux"||process.platform==="darwin",M=E.platform(),z=Ne(),j=f.realpathSync.native?process.platform==="win32"?Ke:f.realpathSync.native:f.realpathSync,J=__filename.endsWith("sys.js")?p.join(p.dirname(__dirname),"__fake__.js"):__filename,K=process.platform==="win32"||process.platform==="darwin",Y=Nh(()=>process.cwd()),{watchFile:oe,watchDirectory:se}=p2e({pollingWatchFileWorker:fe,getModifiedTime:Yt,setTimeout,clearTimeout,fsWatchWorker:xe,useCaseSensitiveFileNames:z,getCurrentDirectory:Y,fileSystemEntryExists:Ge,fsSupportsRecursiveFsWatch:K,getAccessibleSortedChildDirectories:It=>De(It).directories,realpath:Gt,tscWatchFile:e.TSC_WATCHFILE,useNonPollingWatchers:!!e.TSC_NONPOLLING_WATCHER,tscWatchDirectory:e.TSC_WATCHDIRECTORY,inodeWatching:T,sysLog:vO}),ge={args:process.argv.slice(2),newLine:E.EOL,useCaseSensitiveFileNames:z,write(It){process.stdout.write(It)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:We,writeFile:Ae,watchFile:oe,watchDirectory:se,resolvePath:It=>p.resolve(It),fileExists:ft,directoryExists:Ze,createDirectory(It){if(!ge.directoryExists(It))try{f.mkdirSync(It)}catch(ti){if(ti.code!=="EEXIST")throw ti}},getExecutingFilePath(){return J},getCurrentDirectory:Y,getDirectories:je,getEnvironmentVariable(It){return e[It]||""},readDirectory:He,getModifiedTime:Yt,setModifiedTime:Ie,deleteFile:st,createHash:v?St:FN,createSHA256Hash:v?St:void 0,getMemoryUsage(){return $pt.gc&&$pt.gc(),process.memoryUsage().heapUsed},getFileSize(It){try{const ti=ae(It);if(ti!=null&&ti.isFile())return ti.size}catch{}return 0},exit(It){ve(()=>process.exit(It))},enableCPUProfiler:Ce,disableCPUProfiler:ve,cpuProfilingEnabled:()=>!!b||Ft(process.execArgv,"--cpu-prof")||Ft(process.execArgv,"--prof"),realpath:Gt,debugMode:!!e.NODE_INSPECTOR_IPC||!!e.VSCODE_INSPECTOR_OPTIONS||qe(process.execArgv,It=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(It))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{nS.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var It;const ti=(It=process.stdout)==null?void 0:It._handle;ti&&ti.setBlocking&&ti.setBlocking(!0)},bufferFrom:Se,base64decode:It=>Se(It,"base64").toString("utf8"),base64encode:It=>Se(It).toString("base64"),require:(It,ti)=>{try{const ht=fAe(ti,It,ge);return{module:Upt(ht),modulePath:ht,error:void 0}}catch(ht){return{module:void 0,modulePath:void 0,error:ht}}}};return ge;function ae(It){return f.statSync(It,{throwIfNoEntry:!1})}function Ce(It,ti){if(b)return ti(),!1;const ht=nS;if(!ht||!ht.Session)return ti(),!1;const Ut=new ht.Session;return Ut.connect(),Ut.post("Profiler.enable",()=>{Ut.post("Profiler.start",()=>{b=Ut,B=It,ti()})}),!0}function ne(It){let ti=0;const ht=new Map,Ut=U1(p.dirname(J)),Li=`file://${KE(Ut)===1?"":"/"}${Ut}`;for(const ji of It.nodes)if(ji.callFrame.url){const xn=U1(ji.callFrame.url);WE(Li,xn,z)?ji.callFrame.url=e7(Li,xn,Li,T1(z),!0):d.test(xn)||(ji.callFrame.url=(ht.has(xn)?ht:ht.set(xn,`external${ti}.js`)).get(xn),ti++)}return It}function ve(It){if(b&&b!=="stopping"){const ti=b;return b.post("Profiler.stop",(ht,{profile:Ut})=>{var Li;if(!ht){try{(Li=ae(B))!=null&&Li.isDirectory()&&(B=p.join(B,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{f.mkdirSync(p.dirname(B),{recursive:!0})}catch{}f.writeFileSync(B,JSON.stringify(ne(Ut)))}b=void 0,ti.disconnect(),It()}),b="stopping",!0}else return It(),!1}function Se(It,ti){return k.from&&k.from!==Int8Array.from?k.from(It,ti):new k(It,ti)}function Ne(){return M==="win32"||M==="win64"?!1:!ft(pe(__filename))}function pe(It){return It.replace(/\w/g,ti=>{const ht=ti.toUpperCase();return ti===ht?ti.toLowerCase():ht})}function fe(It,ti,ht){f.watchFile(It,{persistent:!0,interval:ht},Li);let Ut;return{close:()=>f.unwatchFile(It,Li)};function Li(ji,xn){const Un=+xn.mtime==0||Ut===2;if(+ji.mtime==0){if(Un)return;Ut=2}else if(Un)Ut=0;else{if(+ji.mtime==+xn.mtime)return;Ut=1}ti(It,Ut,ji.mtime)}}function xe(It,ti,ht){return f.watch(It,K?{persistent:!0,recursive:!!ti}:{persistent:!0},ht)}function Be(It,ti){let ht;try{ht=f.readFileSync(It)}catch{return}let Ut=ht.length;if(Ut>=2&&ht[0]===254&&ht[1]===255){Ut&=-2;for(let Li=0;Li=2&&ht[0]===255&&ht[1]===254?ht.toString("utf16le",2):Ut>=3&&ht[0]===239&&ht[1]===187&&ht[2]===191?ht.toString("utf8",3):ht.toString("utf8")}function We(It,ti){var ht,Ut;(ht=dh)==null||ht.logStartReadFile(It);const Li=Be(It);return(Ut=dh)==null||Ut.logStopReadFile(),Li}function Ae(It,ti,ht){var Ut;(Ut=dh)==null||Ut.logEvent("WriteFile: "+It),ht&&(ti=t+ti);let Li;try{Li=f.openSync(It,"w"),f.writeSync(Li,ti,void 0,"utf8")}finally{Li!==void 0&&f.closeSync(Li)}}function De(It){var ti;(ti=dh)==null||ti.logEvent("ReadDir: "+(It||"."));try{const ht=f.readdirSync(It||".",{withFileTypes:!0}),Ut=[],Li=[];for(const ji of ht){const xn=typeof ji=="string"?ji:ji.name;if(xn==="."||xn==="..")continue;let Un;if(typeof ji=="string"||ji.isSymbolicLink()){const rn=hr(It,xn);try{if(Un=ae(rn),!Un)continue}catch{continue}}else Un=ji;Un.isFile()?Ut.push(xn):Un.isDirectory()&&Li.push(xn)}return Ut.sort(),Li.sort(),{files:Ut,directories:Li}}catch{return DZ}}function He(It,ti,ht,Ut,Li){return Fle(It,ti,ht,Ut,z,process.cwd(),Li,De,Gt)}function Ge(It,ti){const ht=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const Ut=ae(It);if(!Ut)return!1;switch(ti){case 0:return Ut.isFile();case 1:return Ut.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=ht}}function ft(It){return Ge(It,0)}function Ze(It){return Ge(It,1)}function je(It){return De(It).directories.slice()}function Ke(It){return It.length<260?f.realpathSync.native(It):f.realpathSync(It)}function Gt(It){try{return j(It)}catch{return It}}function Yt(It){var ti;const ht=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(ti=ae(It))==null?void 0:ti.mtime}catch{return}finally{Error.stackTraceLimit=ht}}function Ie(It,ti){try{f.utimesSync(It,ti,ti)}catch{return}}function st(It){try{return f.unlinkSync(It)}catch{return}}function St(It){const ti=v.createHash("sha256");return ti.update(It),ti.digest("hex")}}let s;return doe()&&(s=u()),s&&g2e(s),s})(),l1&&l1.getEnvironmentVariable&&($wt(l1),H.setAssertionLevel(/^development$/i.test(l1.getEnvironmentVariable("NODE_ENV"))?1:0)),l1&&l1.debugMode&&(H.isDebugging=!0)}});function Cse(t){return t===47||t===92}function _2e(t){return _U(t)<0}function Nf(t){return _U(t)>0}function bse(t){const u=_U(t);return u>0&&u===t.length}function AN(t){return _U(t)!==0}function am(t){return/^\.\.?($|[\\/])/.test(t)}function yse(t){return!AN(t)&&!am(t)}function XA(t){return Fc(t).includes(".")}function Pl(t,u){return t.length>u.length&&oc(t,u)}function Oc(t,u){for(const s of u)if(Pl(t,s))return!0;return!1}function qD(t){return t.length>0&&Cse(t.charCodeAt(t.length-1))}function Iqe(t){return t>=97&&t<=122||t>=65&&t<=90}function iTt(t,u){const s=t.charCodeAt(u);if(s===58)return u+1;if(s===37&&t.charCodeAt(u+1)===51){const d=t.charCodeAt(u+2);if(d===97||d===65)return u+3}return-1}function _U(t){if(!t)return 0;const u=t.charCodeAt(0);if(u===47||u===92){if(t.charCodeAt(1)!==u)return 1;const d=t.indexOf(u===47?nl:AO,2);return d<0?t.length:d+1}if(Iqe(u)&&t.charCodeAt(1)===58){const d=t.charCodeAt(2);if(d===47||d===92)return 3;if(t.length===2)return 2}const s=t.indexOf(x2e);if(s!==-1){const d=s+x2e.length,f=t.indexOf(nl,d);if(f!==-1){const p=t.slice(0,s),E=t.slice(d,f);if(p==="file"&&(E===""||E==="localhost")&&Iqe(t.charCodeAt(f+1))){const v=iTt(t,f+2);if(v!==-1){if(t.charCodeAt(v)===47)return~(v+1);if(v===t.length)return~v}}return~(f+1)}return~t.length}return 0}function KE(t){const u=_U(t);return u<0?~u:u}function dr(t){t=U1(t);const u=KE(t);return u===t.length?t:(t=hv(t),t.slice(0,Math.max(u,t.lastIndexOf(nl))))}function Fc(t,u,s){if(t=U1(t),KE(t)===t.length)return"";t=hv(t);const f=t.slice(Math.max(KE(t),t.lastIndexOf(nl)+1)),p=u!==void 0&&s!==void 0?SN(f,u,s):void 0;return p?f.slice(0,f.length-p.length):f}function Rqe(t,u,s){if(Na(u,".")||(u="."+u),t.length>=u.length&&t.charCodeAt(t.length-u.length)===46){const d=t.slice(t.length-u.length);if(s(d,u))return d}}function nTt(t,u,s){if(typeof u=="string")return Rqe(t,u,s)||"";for(const d of u){const f=Rqe(t,d,s);if(f)return f}return""}function SN(t,u,s){if(u)return nTt(hv(t),u,s?ZA:YA);const d=Fc(t),f=d.lastIndexOf(".");return f>=0?d.substring(f):""}function uTt(t,u){const s=t.substring(0,u),d=t.substring(u).split(nl);return d.length&&!Yu(d)&&d.pop(),[s,...d]}function bd(t,u=""){return t=hr(u,t),uTt(t,KE(t))}function bx(t,u){return t.length===0?"":(t[0]&&Pd(t[0]))+t.slice(1,u).join(nl)}function U1(t){return t.includes("\\")?t.replace(Vqe,nl):t}function Wy(t){if(!qe(t))return[];const u=[t[0]];for(let s=1;s1){if(u[u.length-1]!==".."){u.pop();continue}}else if(u[0])continue}u.push(d)}}return u}function hr(t,...u){t&&(t=U1(t));for(let s of u)s&&(s=U1(s),!t||KE(s)!==0?t=s:t=Pd(t)+s);return t}function yx(t,...u){return Go(qe(u)?hr(t,...u):U1(t))}function yO(t,u){return Wy(bd(t,u))}function $a(t,u){return bx(yO(t,u))}function Go(t){if(t=U1(t),!xU.test(t))return t;const u=t.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(u!==t&&(t=u,!xU.test(t)))return t;const s=bx(Wy(bd(t)));return s&&qD(t)?Pd(s):s}function rTt(t){return t.length===0?"":t.slice(1).join(nl)}function kse(t,u){return rTt(yO(t,u))}function H0(t,u,s){const d=Nf(t)?Go(t):$a(t,u);return s(d)}function hv(t){return qD(t)?t.substr(0,t.length-1):t}function Pd(t){return qD(t)?t:t+nl}function l2(t){return!AN(t)&&!am(t)?"./"+t:t}function kO(t,u,s,d){const f=s!==void 0&&d!==void 0?SN(t,s,d):SN(t);return f?t.slice(0,t.length-f.length)+(Na(u,".")?u:"."+u):t}function D2e(t,u,s){if(t===u)return 0;if(t===void 0)return-1;if(u===void 0)return 1;const d=t.substring(0,KE(t)),f=u.substring(0,KE(u)),p=J$(d,f);if(p!==0)return p;const E=t.substring(d.length),v=u.substring(f.length);if(!xU.test(E)&&!xU.test(v))return s(E,v);const b=Wy(bd(t)),B=Wy(bd(u)),k=Math.min(b.length,B.length);for(let T=1;T0==KE(u)>0,"Paths must either both be absolute or both be relative");const p=Ase(t,u,(typeof s=="boolean"?s:!1)?ZA:YA,typeof s=="function"?s:el);return bx(p)}function BN(t,u,s){return Nf(t)?e7(u,t,u,s,!1):t}function FO(t,u,s){return l2(GE(dr(t),u,s))}function e7(t,u,s,d,f){const p=Ase(yx(s,t),yx(s,u),YA,d),E=p[0];if(f&&Nf(E)){const v=E.charAt(0)===nl?"file://":"file:///";p[0]=v+E}return bx(p)}function $g(t,u){for(;;){const s=u(t);if(s!==void 0)return s;const d=dr(t);if(d===t)return;t=d}}function DU(t){return oc(t,"/node_modules")}var nl,AO,x2e,Vqe,xU,aTt=o({"src/compiler/path.ts"(){Ao(),nl="/",AO="\\",x2e="://",Vqe=/\\/g,xU=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function P(t,u,s,d,f,p,E){return{code:t,category:u,key:s,message:d,reportsUnnecessary:f,elidedInCompatabilityPyramid:p,reportsDeprecated:E}}var F,oTt=o({"src/compiler/diagnosticInformationMap.generated.ts"(){wqe(),F={Unterminated_string_literal:P(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:P(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:P(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:P(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:P(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:P(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:P(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:P(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:P(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:P(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:P(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:P(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:P(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:P(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:P(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:P(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:P(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:P(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:P(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:P(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:P(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:P(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:P(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:P(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:P(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:P(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:P(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:P(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:P(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:P(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:P(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:P(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:P(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:P(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:P(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:P(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:P(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:P(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:P(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:P(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:P(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:P(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:P(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:P(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:P(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:P(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:P(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:P(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:P(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:P(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:P(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:P(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:P(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:P(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:P(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:P(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:P(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:P(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:P(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:P(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:P(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:P(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:P(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:P(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:P(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:P(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:P(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:P(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:P(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:P(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:P(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:P(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:P(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:P(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:P(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:P(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:P(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:P(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:P(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:P(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:P(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:P(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:P(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:P(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:P(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:P(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:P(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:P(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:P(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:P(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:P(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:P(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:P(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:P(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:P(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:P(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:P(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:P(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:P(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:P(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:P(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:P(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:P(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:P(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:P(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:P(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:P(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:P(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:P(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:P(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:P(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:P(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:P(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:P(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:P(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:P(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:P(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:P(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:P(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:P(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:P(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:P(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:P(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:P(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:P(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:P(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:P(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:P(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:P(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:P(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:P(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:P(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:P(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:P(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:P(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:P(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:P(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:P(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:P(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:P(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:P(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:P(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:P(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:P(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:P(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:P(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:P(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:P(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:P(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:P(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:P(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:P(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:P(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:P(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:P(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:P(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:P(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:P(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:P(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:P(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:P(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:P(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:P(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:P(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:P(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:P(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:P(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:P(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:P(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:P(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:P(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:P(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:P(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:P(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:P(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:P(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:P(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:P(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:P(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:P(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:P(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:P(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:P(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:P(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:P(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:P(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:P(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:P(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:P(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:P(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:P(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:P(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:P(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:P(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:P(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:P(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:P(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:P(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:P(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:P(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:P(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:P(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:P(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:P(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:P(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:P(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:P(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:P(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:P(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:P(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:P(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:P(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:P(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:P(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:P(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:P(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:P(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:P(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:P(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:P(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:P(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:P(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:P(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:P(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:P(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:P(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:P(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:P(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:P(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:P(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:P(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:P(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:P(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:P(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:P(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:P(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:P(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:P(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:P(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:P(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:P(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:P(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:P(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:P(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:P(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:P(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:P(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:P(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:P(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:P(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:P(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:P(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:P(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:P(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:P(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:P(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:P(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:P(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:P(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:P(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:P(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:P(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:P(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:P(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:P(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:P(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:P(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:P(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:P(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:P(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:P(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:P(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:P(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:P(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:P(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:P(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:P(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:P(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:P(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:P(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:P(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:P(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:P(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:P(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:P(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:P(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:P(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:P(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:P(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:P(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:P(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:P(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:P(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:P(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:P(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:P(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:P(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:P(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:P(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:P(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:P(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:P(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:P(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:P(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:P(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:P(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:P(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:P(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:P(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:P(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:P(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:P(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:P(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:P(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:P(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:P(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:P(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:P(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:P(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:P(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:P(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:P(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:P(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:P(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:P(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:P(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:P(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:P(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:P(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:P(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:P(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:P(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:P(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:P(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:P(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:P(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:P(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:P(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:P(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:P(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:P(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:P(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:P(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:P(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:P(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:P(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:P(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:P(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:P(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:P(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:P(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:P(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:P(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:P(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:P(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:P(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:P(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:P(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:P(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:P(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:P(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:P(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:P(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:P(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:P(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:P(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:P(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:P(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:P(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:P(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:P(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:P(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:P(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:P(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:P(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:P(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:P(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:P(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:P(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:P(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:P(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:P(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:P(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:P(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:P(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:P(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:P(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:P(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:P(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:P(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:P(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:P(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:P(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:P(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:P(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:P(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:P(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:P(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:P(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:P(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:P(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:P(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:P(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:P(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:P(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:P(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:P(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:P(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:P(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:P(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:P(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:P(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:P(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:P(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:P(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:P(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:P(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:P(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:P(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:P(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:P(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:P(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:P(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:P(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:P(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:P(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:P(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:P(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:P(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:P(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:P(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:P(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:P(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:P(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:P(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:P(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:P(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:P(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:P(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:P(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:P(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:P(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:P(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:P(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:P(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:P(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:P(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:P(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:P(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:P(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:P(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:P(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:P(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:P(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:P(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:P(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:P(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:P(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:P(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:P(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:P(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:P(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:P(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:P(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:P(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:P(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:P(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:P(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:P(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:P(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:P(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:P(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:P(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:P(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:P(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:P(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:P(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:P(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:P(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:P(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:P(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:P(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:P(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:P(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:P(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:P(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:P(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:P(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:P(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:P(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:P(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:P(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:P(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:P(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:P(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:P(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:P(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:P(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:P(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:P(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:P(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:P(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:P(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:P(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:P(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:P(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:P(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:P(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:P(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:P(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:P(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:P(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:P(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:P(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:P(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:P(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:P(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:P(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:P(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:P(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:P(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:P(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:P(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:P(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:P(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:P(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:P(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:P(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:P(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:P(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:P(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:P(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:P(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:P(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:P(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:P(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:P(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:P(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:P(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:P(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:P(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:P(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:P(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:P(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:P(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:P(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:P(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:P(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:P(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:P(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:P(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:P(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:P(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:P(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:P(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:P(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:P(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:P(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:P(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:P(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:P(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:P(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:P(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:P(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:P(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:P(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:P(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:P(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:P(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:P(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:P(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:P(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:P(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:P(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:P(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:P(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:P(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:P(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:P(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:P(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:P(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:P(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:P(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:P(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:P(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:P(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:P(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:P(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:P(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:P(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:P(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:P(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:P(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:P(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:P(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:P(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:P(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:P(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:P(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:P(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:P(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:P(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:P(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:P(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:P(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:P(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:P(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:P(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:P(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:P(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:P(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:P(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:P(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:P(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:P(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:P(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:P(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:P(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:P(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:P(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:P(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:P(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:P(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:P(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:P(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:P(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:P(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:P(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:P(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:P(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:P(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:P(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:P(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:P(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:P(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:P(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:P(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:P(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:P(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:P(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:P(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:P(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:P(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:P(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:P(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:P(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:P(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:P(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:P(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:P(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:P(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:P(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:P(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:P(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:P(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:P(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:P(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:P(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:P(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:P(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:P(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:P(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:P(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:P(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:P(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:P(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:P(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:P(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:P(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:P(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:P(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:P(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:P(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:P(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:P(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:P(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:P(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:P(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:P(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:P(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:P(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:P(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:P(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:P(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:P(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:P(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:P(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:P(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:P(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:P(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:P(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:P(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:P(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:P(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:P(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:P(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:P(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:P(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:P(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:P(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:P(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:P(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:P(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:P(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:P(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:P(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:P(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:P(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:P(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:P(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:P(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:P(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:P(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:P(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:P(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:P(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:P(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:P(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:P(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:P(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:P(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:P(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:P(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:P(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:P(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:P(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:P(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:P(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:P(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:P(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:P(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:P(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:P(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:P(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:P(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:P(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:P(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:P(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:P(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:P(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:P(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:P(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:P(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:P(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:P(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:P(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:P(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:P(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:P(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:P(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:P(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:P(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:P(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:P(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:P(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:P(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:P(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:P(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:P(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:P(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:P(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:P(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:P(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:P(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:P(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:P(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:P(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:P(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:P(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:P(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:P(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:P(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:P(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:P(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:P(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:P(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:P(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:P(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:P(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:P(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:P(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:P(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:P(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:P(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:P(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:P(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:P(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:P(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:P(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:P(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:P(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:P(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:P(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:P(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:P(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:P(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:P(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:P(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:P(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:P(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:P(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:P(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:P(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:P(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:P(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:P(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:P(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:P(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:P(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:P(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:P(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:P(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:P(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:P(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:P(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:P(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:P(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:P(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:P(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:P(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:P(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:P(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:P(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:P(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:P(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:P(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:P(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:P(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:P(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:P(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:P(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:P(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:P(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:P(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:P(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:P(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:P(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:P(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:P(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:P(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:P(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:P(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:P(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:P(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:P(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:P(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:P(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:P(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:P(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:P(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:P(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:P(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:P(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:P(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:P(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:P(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:P(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:P(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:P(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:P(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:P(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:P(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:P(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:P(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:P(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:P(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:P(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:P(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:P(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:P(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:P(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:P(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:P(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:P(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:P(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:P(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:P(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:P(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:P(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:P(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:P(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:P(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:P(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:P(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:P(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:P(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:P(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:P(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:P(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2823","Import attributes are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Cannot_find_namespace_0_Did_you_mean_1:P(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:P(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:P(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:P(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:P(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:P(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:P(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:P(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:P(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:P(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:P(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:P(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:P(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:P(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:P(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:P(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:P(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:P(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:P(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:P(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:P(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:P(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:P(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:P(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:P(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:P(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:P(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:P(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:P(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_declaration_0_is_using_private_name_1:P(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:P(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:P(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:P(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:P(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:P(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:P(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:P(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:P(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:P(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:P(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:P(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:P(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:P(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:P(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:P(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:P(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:P(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:P(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:P(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:P(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:P(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:P(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:P(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:P(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:P(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:P(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:P(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:P(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:P(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:P(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:P(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:P(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:P(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:P(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:P(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:P(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:P(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:P(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:P(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:P(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:P(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:P(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:P(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:P(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:P(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:P(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:P(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:P(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:P(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:P(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:P(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:P(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:P(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:P(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:P(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:P(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:P(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:P(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:P(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:P(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:P(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:P(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:P(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:P(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:P(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:P(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:P(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:P(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:P(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:P(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:P(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:P(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:P(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:P(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:P(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:P(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:P(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:P(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:P(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:P(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:P(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:P(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:P(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:P(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:P(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:P(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:P(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:P(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:P(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:P(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:P(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:P(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:P(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:P(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:P(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:P(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:P(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:P(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:P(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:P(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:P(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:P(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:P(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:P(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:P(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:P(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:P(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:P(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:P(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:P(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:P(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:P(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:P(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:P(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:P(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:P(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:P(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:P(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:P(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:P(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:P(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:P(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:P(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:P(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:P(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:P(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:P(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:P(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:P(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:P(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:P(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:P(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:P(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:P(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:P(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:P(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:P(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:P(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:P(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:P(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:P(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:P(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:P(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:P(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:P(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:P(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:P(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:P(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:P(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:P(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:P(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:P(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:P(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:P(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:P(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:P(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:P(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:P(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:P(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:P(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:P(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:P(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:P(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:P(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:P(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:P(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:P(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:P(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:P(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:P(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:P(6024,3,"options_6024","options"),file:P(6025,3,"file_6025","file"),Examples_Colon_0:P(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:P(6027,3,"Options_Colon_6027","Options:"),Version_0:P(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:P(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:P(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:P(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:P(6034,3,"KIND_6034","KIND"),FILE:P(6035,3,"FILE_6035","FILE"),VERSION:P(6036,3,"VERSION_6036","VERSION"),LOCATION:P(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:P(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:P(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:P(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:P(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:P(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:P(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:P(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:P(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:P(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:P(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:P(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:P(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:P(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:P(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:P(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:P(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:P(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:P(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:P(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:P(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:P(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:P(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:P(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:P(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:P(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:P(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:P(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:P(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:P(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:P(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:P(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:P(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:P(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:P(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:P(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:P(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:P(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:P(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:P(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:P(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:P(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:P(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:P(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:P(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:P(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:P(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:P(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:P(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:P(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:P(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:P(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:P(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:P(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:P(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:P(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:P(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:P(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:P(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:P(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:P(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:P(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:P(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:P(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:P(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:P(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:P(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:P(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:P(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:P(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:P(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:P(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:P(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:P(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:P(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:P(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:P(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:P(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:P(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:P(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:P(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:P(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:P(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:P(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:P(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:P(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:P(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:P(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:P(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:P(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:P(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:P(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:P(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:P(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:P(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:P(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:P(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:P(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:P(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:P(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:P(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:P(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:P(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:P(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:P(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:P(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:P(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:P(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:P(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:P(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:P(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:P(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:P(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:P(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:P(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:P(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:P(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:P(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:P(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:P(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:P(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:P(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:P(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:P(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:P(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:P(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:P(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:P(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:P(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:P(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:P(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:P(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:P(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:P(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:P(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:P(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:P(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:P(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:P(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:P(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:P(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:P(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:P(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:P(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:P(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:P(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:P(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:P(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:P(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:P(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:P(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:P(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:P(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:P(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:P(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:P(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:P(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:P(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:P(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:P(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:P(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:P(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:P(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:P(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:P(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:P(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:P(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:P(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:P(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:P(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:P(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:P(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:P(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:P(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:P(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:P(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:P(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:P(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:P(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:P(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:P(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:P(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:P(6244,3,"Modules_6244","Modules"),File_Management:P(6245,3,"File_Management_6245","File Management"),Emit:P(6246,3,"Emit_6246","Emit"),JavaScript_Support:P(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:P(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:P(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:P(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:P(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:P(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:P(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:P(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:P(6255,3,"Projects_6255","Projects"),Output_Formatting:P(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:P(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:P(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:P(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:P(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:P(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:P(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:P(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:P(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:P(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:P(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:P(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:P(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:P(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:P(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:P(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:P(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:P(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:P(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:P(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:P(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:P(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:P(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:P(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:P(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:P(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:P(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:P(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:P(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:P(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:P(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:P(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:P(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:P(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:P(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:P(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:P(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:P(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:P(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:P(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:P(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:P(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:P(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:P(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:P(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:P(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:P(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:P(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:P(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:P(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:P(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:P(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:P(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:P(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:P(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:P(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:P(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:P(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:P(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:P(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:P(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:P(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:P(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:P(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:P(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:P(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:P(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:P(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:P(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:P(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:P(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:P(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:P(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:P(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:P(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:P(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:P(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:P(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:P(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:P(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:P(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:P(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:P(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:P(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:P(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:P(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:P(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:P(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:P(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:P(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:P(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:P(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:P(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:P(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:P(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:P(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:P(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:P(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:P(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:P(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:P(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:P(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:P(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:P(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:P(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:P(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:P(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:P(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:P(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:P(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:P(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:P(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:P(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:P(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:P(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:P(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:P(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:P(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:P(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:P(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:P(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:P(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:P(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:P(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:P(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:P(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:P(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:P(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:P(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:P(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:P(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:P(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:P(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:P(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:P(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:P(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:P(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:P(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:P(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:P(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:P(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:P(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:P(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:P(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:P(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:P(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:P(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:P(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:P(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:P(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:P(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:P(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:P(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:P(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:P(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:P(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:P(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:P(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:P(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:P(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:P(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:P(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:P(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:P(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:P(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:P(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:P(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:P(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:P(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:P(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:P(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:P(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:P(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:P(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:P(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:P(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:P(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:P(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:P(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:P(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:P(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:P(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:P(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:P(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:P(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:P(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:P(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:P(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:P(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:P(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:P(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:P(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:P(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:P(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:P(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:P(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:P(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:P(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:P(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:P(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:P(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:P(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:P(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:P(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:P(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:P(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:P(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:P(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:P(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:P(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:P(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:P(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:P(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:P(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:P(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:P(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:P(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:P(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:P(6902,3,"type_Colon_6902","type:"),default_Colon:P(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:P(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:P(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:P(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:P(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:P(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:P(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:P(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:P(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:P(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:P(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:P(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:P(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:P(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:P(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:P(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:P(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:P(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:P(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:P(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:P(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:P(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:P(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:P(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:P(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:P(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:P(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:P(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:P(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:P(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:P(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:P(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:P(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:P(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:P(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:P(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:P(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:P(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:P(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:P(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:P(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:P(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:P(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:P(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:P(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:P(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:P(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:P(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:P(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:P(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:P(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:P(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:P(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:P(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:P(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:P(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:P(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:P(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:P(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:P(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:P(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:P(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:P(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:P(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:P(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:P(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:P(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:P(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:P(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:P(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:P(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:P(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:P(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:P(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:P(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:P(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:P(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:P(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:P(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:P(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:P(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:P(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:P(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:P(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:P(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:P(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:P(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:P(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:P(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:P(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:P(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:P(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:P(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:P(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:P(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:P(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:P(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:P(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:P(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:P(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:P(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:P(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:P(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:P(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:P(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:P(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:P(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:P(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:P(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:P(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:P(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:P(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:P(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:P(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:P(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:P(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:P(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:P(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:P(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:P(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:P(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:P(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:P(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:P(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:P(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:P(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:P(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:P(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:P(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:P(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:P(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:P(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:P(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:P(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:P(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:P(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:P(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:P(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:P(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:P(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:P(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:P(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:P(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:P(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:P(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:P(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:P(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:P(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:P(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:P(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:P(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:P(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:P(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:P(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:P(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:P(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:P(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:P(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:P(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:P(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:P(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:P(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:P(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:P(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:P(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:P(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:P(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:P(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:P(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:P(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:P(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:P(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:P(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:P(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:P(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:P(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:P(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:P(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:P(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:P(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:P(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:P(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:P(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:P(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:P(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:P(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:P(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:P(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:P(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:P(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:P(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:P(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:P(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:P(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:P(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:P(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:P(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:P(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:P(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:P(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:P(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:P(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:P(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:P(95005,3,"Extract_function_95005","Extract function"),Extract_constant:P(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:P(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:P(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:P(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:P(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:P(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:P(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:P(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:P(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:P(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:P(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:P(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:P(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:P(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:P(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:P(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:P(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:P(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:P(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:P(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:P(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:P(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:P(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:P(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:P(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:P(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:P(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:P(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:P(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:P(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:P(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:P(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:P(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:P(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:P(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:P(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:P(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:P(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:P(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:P(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:P(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:P(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:P(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:P(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:P(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:P(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:P(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:P(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:P(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:P(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:P(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:P(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:P(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:P(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:P(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:P(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:P(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:P(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:P(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:P(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:P(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:P(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:P(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:P(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:P(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:P(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:P(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:P(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:P(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:P(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:P(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:P(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:P(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:P(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:P(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:P(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:P(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:P(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:P(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:P(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:P(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:P(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:P(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:P(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:P(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:P(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:P(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:P(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:P(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:P(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:P(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:P(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:P(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:P(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:P(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:P(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:P(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:P(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:P(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:P(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:P(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:P(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:P(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:P(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:P(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:P(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:P(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:P(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:P(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:P(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:P(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:P(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:P(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:P(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:P(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:P(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:P(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:P(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:P(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:P(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:P(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:P(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:P(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:P(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:P(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:P(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:P(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:P(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:P(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:P(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:P(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:P(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:P(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:P(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:P(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:P(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:P(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:P(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:P(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:P(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:P(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:P(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:P(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:P(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:P(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:P(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:P(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:P(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:P(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:P(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:P(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:P(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:P(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:P(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:P(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:P(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:P(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:P(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:P(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:P(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:P(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:P(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:P(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:P(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:P(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:P(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:P(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:P(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:P(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:P(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:P(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:P(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:P(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:P(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:P(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:P(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:P(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:P(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:P(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:P(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:P(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:P(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:P(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:P(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:P(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:P(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:P(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:P(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:P(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:P(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:P(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:P(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:P(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:P(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:P(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:P(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:P(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:P(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:P(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:P(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:P(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:P(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:P(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:P(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:P(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:P(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:P(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:P(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:P(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:P(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:P(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:P(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:P(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:P(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:P(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:P(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:P(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:P(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:P(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:P(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:P(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function hh(t){return t>=80}function v2e(t){return t===32||hh(t)}function SO(t,u){if(t=2?SO(t,qqe):u===1?SO(t,$qe):SO(t,Gqe)}function sTt(t,u){return u>=2?SO(t,Zqe):u===1?SO(t,Uqe):SO(t,Jqe)}function lTt(t){const u=[];return t.forEach((s,d)=>{u[s]=d}),u}function Jo(t){return eZe[t]}function c2(t){return k2e.get(t)}function t7(t){const u=[];let s=0,d=0;for(;s127&&q1(f)&&(u.push(d),d=s);break}}return u.push(d),u}function BO(t,u,s,d){return t.getPositionOfLineAndCharacter?t.getPositionOfLineAndCharacter(u,s,d):CU(J3(t),u,s,t.text,d)}function CU(t,u,s,d,f){(u<0||u>=t.length)&&(f?u=u<0?0:u>=t.length?t.length-1:u:H.fail(`Bad line number. Line: ${u}, lineStarts.length: ${t.length} , line map is correct? ${d!==void 0?Zt(t,t7(d)):"unknown"}`));const p=t[u]+s;return f?p>t[u+1]?t[u+1]:typeof d=="string"&&p>d.length?d.length:p:(u=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function q1(t){return t===10||t===13||t===8232||t===8233}function LN(t){return t>=48&&t<=57}function Hqe(t){return LN(t)||t>=65&&t<=70||t>=97&&t<=102}function cTt(t){return t<=1114111}function bU(t){return t>=48&&t<=55}function C2e(t,u){const s=t.charCodeAt(u);switch(s){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return u===0;default:return s>127}}function ms(t,u,s,d,f){if(fg(u))return u;let p=!1;for(;;){const E=t.charCodeAt(u);switch(E){case 13:t.charCodeAt(u+1)===10&&u++;case 10:if(u++,s)return u;p=!!f;continue;case 9:case 11:case 12:case 32:u++;continue;case 47:if(d)break;if(t.charCodeAt(u+1)===47){for(u+=2;u127&&$3(E)){u++;continue}break}return u}}function NN(t,u){if(H.assert(u>=0),u===0||q1(t.charCodeAt(u-1))){const s=t.charCodeAt(u);if(u+kU=0&&s127&&$3(j)){T&&q1(j)&&(k=!0),s++;continue}break e}}return T&&(z=f(v,b,B,k,p,z)),z}function TO(t,u,s,d){return wse(!1,t,u,!1,s,d)}function LO(t,u,s,d){return wse(!1,t,u,!0,s,d)}function b2e(t,u,s,d,f){return wse(!0,t,u,!1,s,d,f)}function y2e(t,u,s,d,f){return wse(!0,t,u,!0,s,d,f)}function Kqe(t,u,s,d,f,p=[]){return p.push({kind:s,pos:t,end:u,hasTrailingNewLine:d}),p}function K_(t,u){return b2e(t,u,Kqe,void 0,void 0)}function mv(t,u){return y2e(t,u,Kqe,void 0,void 0)}function yU(t){const u=Tse.exec(t);if(u)return u[0]}function W_(t,u){return t>=65&&t<=90||t>=97&&t<=122||t===36||t===95||t>127&&vU(t,u)}function pv(t,u,s){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===36||t===95||(s===1?t===45||t===58:!1)||t>127&&sTt(t,u)}function Tm(t,u,s){let d=kx(t,0);if(!W_(d,u))return!1;for(let f=gv(d);fk,getStartPos:()=>k,getTokenEnd:()=>b,getTextPos:()=>b,getToken:()=>M,getTokenStart:()=>T,getTokenPos:()=>T,getTokenText:()=>v.substring(T,b),getTokenValue:()=>z,hasUnicodeEscape:()=>(j&1024)!==0,hasExtendedUnicodeEscape:()=>(j&8)!==0,hasPrecedingLineBreak:()=>(j&1)!==0,hasPrecedingJSDocComment:()=>(j&2)!==0,isIdentifier:()=>M===80||M>118,isReservedWord:()=>M>=83&&M<=118,isUnterminated:()=>(j&4)!==0,getCommentDirectives:()=>J,getNumericLiteralFlags:()=>j&25584,getTokenFlags:()=>j,reScanGreaterToken:Ie,reScanAsteriskEqualsToken:st,reScanSlashToken:St,reScanTemplateToken:ht,reScanTemplateHeadOrNoSubstitutionTemplate:Ut,scanJsxIdentifier:Ni,scanJsxAttributeValue:Fi,reScanJsxAttributeValue:Qu,reScanJsxToken:Li,reScanLessThanToken:ji,reScanHashToken:xn,reScanQuestionToken:Un,reScanInvalidIdentifier:Gt,scanJsxToken:rn,scanJsDocToken:Fr,scanJSDocCommentTextToken:aa,scan:je,getText:Ai,clearCommentDirectives:Dn,setText:bn,setScriptTarget:oa,setLanguageVariant:xa,setScriptKind:ra,setJSDocParsingMode:wa,setOnError:iu,resetTokenState:Zo,setTextPos:Zo,setInJSDocType:vo,tryScan:Nn,lookAhead:jn,scanRange:bt};return H.isDebugging&&Object.defineProperty(se,"__debugShowCurrentPositionInText",{get:()=>{const Qe=se.getText();return Qe.slice(0,se.getTokenFullStart())+"║"+Qe.slice(se.getTokenFullStart())}}),se;function ge(Qe,Et=b,Mt,qt){if(f){const Xt=b;b=Et,f(Qe,Mt||0,qt),b=Xt}}function ae(){let Qe=b,Et=!1,Mt=!1,qt="";for(;;){const Xt=v.charCodeAt(b);if(Xt===95){j|=512,Et?(Et=!1,Mt=!0,qt+=v.substring(Qe,b)):(j|=16384,ge(Mt?F.Multiple_consecutive_numeric_separators_are_not_permitted:F.Numeric_separators_are_not_allowed_here,b,1)),b++,Qe=b;continue}if(LN(Xt)){Et=!0,Mt=!1,b++;continue}break}return v.charCodeAt(b-1)===95&&(j|=16384,ge(F.Numeric_separators_are_not_allowed_here,b-1,1)),qt+v.substring(Qe,b)}function Ce(){let Qe=b,Et;if(v.charCodeAt(b)===48)if(b++,v.charCodeAt(b)===95)j|=16896,ge(F.Numeric_separators_are_not_allowed_here,b,1),b--,Et=ae();else if(!ve())j|=8192,Et=""+ +z;else if(!z)Et="0";else{z=""+parseInt(z,8),j|=32;const et=M===41,gt=(et?"-":"")+"0o"+(+z).toString(8);return et&&Qe--,ge(F.Octal_literals_are_not_allowed_Use_the_syntax_0,Qe,b-Qe,gt),9}else Et=ae();let Mt,qt;v.charCodeAt(b)===46&&(b++,Mt=ae());let Xt=b;if(v.charCodeAt(b)===69||v.charCodeAt(b)===101){b++,j|=16,(v.charCodeAt(b)===43||v.charCodeAt(b)===45)&&b++;const et=b,gt=ae();gt?(qt=v.substring(Xt,et)+gt,Xt=b):ge(F.Digit_expected)}let Pe;if(j&512?(Pe=Et,Mt&&(Pe+="."+Mt),qt&&(Pe+=qt)):Pe=v.substring(Qe,Xt),j&8192)return ge(F.Decimals_with_leading_zeros_are_not_allowed,Qe,Xt-Qe),z=""+ +Pe,9;if(Mt!==void 0||j&16)return ne(Qe,Mt===void 0&&!!(j&16)),z=""+ +Pe,9;{z=Pe;const et=Ze();return ne(Qe),et}}function ne(Qe,Et){if(!W_(kx(v,b),t))return;const Mt=b,{length:qt}=He();qt===1&&v[Mt]==="n"?ge(Et?F.A_bigint_literal_cannot_use_exponential_notation:F.A_bigint_literal_must_be_an_integer,Qe,Mt-Qe+1):(ge(F.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Mt,qt),b=Mt)}function ve(){const Qe=b;let Et=!0;for(;LN(v.charCodeAt(b));)bU(v.charCodeAt(b))||(Et=!1),b++;return z=v.substring(Qe,b),Et}function Se(Qe,Et){const Mt=pe(Qe,!1,Et);return Mt?parseInt(Mt,16):-1}function Ne(Qe,Et){return pe(Qe,!0,Et)}function pe(Qe,Et,Mt){let qt=[],Xt=!1,Pe=!1;for(;qt.length=65&&et<=70)et+=32;else if(!(et>=48&&et<=57||et>=97&&et<=102))break;qt.push(et),b++,Pe=!1}return qt.length=B){Mt+=v.substring(qt,b),j|=4,ge(F.Unterminated_string_literal);break}const Xt=v.charCodeAt(b);if(Xt===Et){Mt+=v.substring(qt,b),b++;break}if(Xt===92&&!Qe){Mt+=v.substring(qt,b),Mt+=Be(!0),qt=b;continue}if((Xt===10||Xt===13)&&!Qe){Mt+=v.substring(qt,b),j|=4,ge(F.Unterminated_string_literal);break}b++}return Mt}function xe(Qe){const Et=v.charCodeAt(b)===96;b++;let Mt=b,qt="",Xt;for(;;){if(b>=B){qt+=v.substring(Mt,b),j|=4,ge(F.Unterminated_template_literal),Xt=Et?15:18;break}const Pe=v.charCodeAt(b);if(Pe===96){qt+=v.substring(Mt,b),b++,Xt=Et?15:18;break}if(Pe===36&&b+1=B)return ge(F.Unexpected_end_of_text),"";const Mt=v.charCodeAt(b);switch(b++,Mt){case 48:if(b>=B||!LN(v.charCodeAt(b)))return"\0";case 49:case 50:case 51:b=B?(j|=2048,Qe&&ge(F.Unexpected_end_of_text),v.substring(Et,b)):v.charCodeAt(b)!==125?(j|=2048,Qe&&ge(F.Unterminated_Unicode_escape_sequence),v.substring(Et,b)):(b++,j|=8,y8(Xt)):(j|=2048,Qe&&ge(F.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),v.substring(Et,b))}for(;b1114111&&(ge(F.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Mt=!0),b>=B?(ge(F.Unexpected_end_of_text),Mt=!0):v.charCodeAt(b)===125?b++:(ge(F.Unterminated_Unicode_escape_sequence),Mt=!0),Mt?"":y8(Et)}function Ae(){if(b+5=0&&pv(Mt,t)){b+=3,j|=8,Qe+=We(),Et=b;continue}if(Mt=Ae(),!(Mt>=0&&pv(Mt,t)))break;j|=1024,Qe+=v.substring(Et,b),Qe+=y8(Mt),b+=6,Et=b}else break}return Qe+=v.substring(Et,b),Qe}function Ge(){const Qe=z.length;if(Qe>=2&&Qe<=12){const Et=z.charCodeAt(0);if(Et>=97&&Et<=122){const Mt=Wqe.get(z);if(Mt!==void 0)return M=Mt}}return M=80}function ft(Qe){let Et="",Mt=!1,qt=!1;for(;;){const Xt=v.charCodeAt(b);if(Xt===95){j|=512,Mt?(Mt=!1,qt=!0):ge(qt?F.Multiple_consecutive_numeric_separators_are_not_permitted:F.Numeric_separators_are_not_allowed_here,b,1),b++;continue}if(Mt=!0,!LN(Xt)||Xt-48>=Qe)break;Et+=v[b],b++,qt=!1}return v.charCodeAt(b-1)===95&&ge(F.Numeric_separators_are_not_allowed_here,b-1,1),Et}function Ze(){return v.charCodeAt(b)===110?(z+="n",j&384&&(z=AP(z)+"n"),b++,10):(z=""+(j&128?parseInt(z.slice(2),2):j&256?parseInt(z.slice(2),8):+z),9)}function je(){k=b,j=0;let Qe=!1;for(;;){if(T=b,b>=B)return M=1;const Et=kx(v,b);if(b===0){if(Et===65533)return ge(F.File_appears_to_be_binary),b=B,M=8;if(Et===35&&Sse(v,b)){if(b=Bse(v,b),u)continue;return M=6}}switch(Et){case 10:case 13:if(j|=1,u){b++;continue}else return Et===13&&b+1=0&&W_(Mt,t))return b+=3,j|=8,z=We()+He(),M=Ge();const qt=Ae();return qt>=0&&W_(qt,t)?(b+=6,j|=1024,z=String.fromCharCode(qt)+He(),M=Ge()):(ge(F.Invalid_character),b++,M=0);case 35:if(b!==0&&v[b+1]==="!")return ge(F.can_only_be_used_at_the_start_of_a_file),b++,M=0;const Xt=kx(v,b+1);if(Xt===92){b++;const gt=De();if(gt>=0&&W_(gt,t))return b+=3,j|=8,z="#"+We()+He(),M=81;const ii=Ae();if(ii>=0&&W_(ii,t))return b+=6,j|=1024,z="#"+String.fromCharCode(ii)+He(),M=81;b--}return W_(Xt,t)?(b++,Yt(Xt,t)):(z="#",ge(F.Invalid_character,b++,gv(Et))),M=81;default:const Pe=Yt(Et,t);if(Pe)return M=Pe;if(Ug(Et)){b+=gv(Et);continue}else if(q1(Et)){j|=1,b+=gv(Et);continue}const et=gv(Et);return ge(F.Invalid_character,b,et),b+=et,M=0}}}function Ke(){switch(oe){case 0:return!0;case 1:return!1}return Y!==3&&Y!==4?!0:oe===3?!1:Xqe.test(v.slice(k,b))}function Gt(){H.assert(M===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),b=T=k,j=0;const Qe=kx(v,b),Et=Yt(Qe,99);return Et?M=Et:(b+=gv(Qe),M)}function Yt(Qe,Et){let Mt=Qe;if(W_(Mt,Et)){for(b+=gv(Mt);b=B)return M=1;let Et=v.charCodeAt(b);if(Et===60)return v.charCodeAt(b+1)===47?(b+=2,M=31):(b++,M=30);if(Et===123)return b++,M=19;let Mt=0;for(;b0)break;$3(Et)||(Mt=b)}b++}return z=v.substring(k,b),Mt===-1?13:12}function Ni(){if(hh(M)){for(;b=B)return M=1;for(let Et=v.charCodeAt(b);b=0&&Ug(v.charCodeAt(b-1))&&!(b+1=B)return M=1;const Qe=kx(v,b);switch(b+=gv(Qe),Qe){case 9:case 11:case 12:case 32:for(;b=0&&W_(Et,t))return b+=3,j|=8,z=We()+He(),M=Ge();const Mt=Ae();return Mt>=0&&W_(Mt,t)?(b+=6,j|=1024,z=String.fromCharCode(Mt)+He(),M=Ge()):(b++,M=0)}if(W_(Qe,t)){let Et=Qe;for(;b=0),b=Qe,k=Qe,T=Qe,M=0,z=void 0,j=0}function vo(Qe){K+=Qe?1:-1}}function kx(t,u){return t.codePointAt(u)}function gv(t){return t>=65536?2:1}function dTt(t){if(H.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);const u=Math.floor((t-65536)/1024)+55296,s=(t-65536)%1024+56320;return String.fromCharCode(u,s)}function y8(t){return tZe(t)}var NO,Wqe,k2e,Gqe,Jqe,$qe,Uqe,qqe,Zqe,Yqe,Qqe,Xqe,eZe,kU,Tse,tZe,hTt=o({"src/compiler/scanner.ts"(){Ao(),NO={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},Wqe=new Map(Object.entries(NO)),k2e=new Map(Object.entries({...NO,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),Gqe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Jqe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],$qe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Uqe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],qqe=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],Zqe=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],Yqe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,Qqe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,Xqe=/@(?:see|link)/i,eZe=lTt(k2e),kU=7,Tse=/^#!.*/,tZe=String.fromCodePoint?t=>String.fromCodePoint(t):dTt}});function Md(t){return am(t)||Nf(t)}function k8(t){return mi(t,CP)}function PO(t){switch(Is(t)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function gc(t){return t.start+t.length}function F2e(t){return t.length===0}function Lse(t,u){return u>=t.start&&u=t.pos&&u<=t.end}function A2e(t,u){return u.start>=t.start&&gc(u)<=gc(t)}function iZe(t,u){return S2e(t,u)!==void 0}function S2e(t,u){const s=w2e(t,u);return s&&s.length===0?void 0:s}function nZe(t,u){return zO(t.start,t.length,u.start,u.length)}function FU(t,u,s){return zO(t.start,t.length,u,s)}function zO(t,u,s,d){const f=t+u,p=s+d;return s<=f&&p>=t}function B2e(t,u){return u<=gc(t)&&u>=t.start}function w2e(t,u){const s=Math.max(t.start,u.start),d=Math.min(gc(t),gc(u));return s<=d?jc(s,d):void 0}function c1(t,u){if(t<0)throw new Error("start < 0");if(u<0)throw new Error("length < 0");return{start:t,length:u}}function jc(t,u){return c1(t,u-t)}function PN(t){return c1(t.span.start,t.newLength)}function T2e(t){return F2e(t.span)&&t.newLength===0}function IO(t,u){if(u<0)throw new Error("newLength < 0");return{span:t,newLength:u}}function L2e(t){if(t.length===0)return XO;if(t.length===1)return t[0];const u=t[0];let s=u.span.start,d=gc(u.span),f=s+u.newLength;for(let p=1;p=2&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95?"_"+t:t}function Yr(t){const u=t;return u.length>=3&&u.charCodeAt(0)===95&&u.charCodeAt(1)===95&&u.charCodeAt(2)===95?u.substr(1):u}function mu(t){return Yr(t.escapedText)}function Ev(t){const u=c2(t.escapedText);return u?ar(u,nf):void 0}function sc(t){return t.valueDeclaration&&mh(t.valueDeclaration)?mu(t.valueDeclaration.name):Yr(t.escapedName)}function aZe(t){const u=t.parent.parent;if(u){if(Y1(u))return Pse(u);switch(u.kind){case 243:if(u.declarationList&&u.declarationList.declarations[0])return Pse(u.declarationList.declarations[0]);break;case 244:let s=u.expression;switch(s.kind===226&&s.operatorToken.kind===64&&(s=s.left),s.kind){case 211:return s.name;case 212:const d=s.argumentExpression;if(at(d))return d}break;case 217:return Pse(u.expression);case 256:{if(Y1(u.statement)||Wt(u.statement))return Pse(u.statement);break}}}}function Pse(t){const u=qa(t);return u&&at(u)?u:void 0}function RO(t,u){return!!(fh(t)&&at(t.name)&&mu(t.name)===mu(u)||Gl(t)&&qe(t.declarationList.declarations,s=>RO(s,u)))}function z2e(t){return t.name||aZe(t)}function fh(t){return!!t.name}function AU(t){switch(t.kind){case 80:return t;case 355:case 348:{const{name:s}=t;if(s.kind===166)return s.right;break}case 213:case 226:{const s=t;switch(Ql(s)){case 1:case 4:case 5:case 3:return vq(s.left);case 7:case 8:case 9:return s.arguments[1];default:return}}case 353:return z2e(t);case 347:return aZe(t);case 277:{const{expression:s}=t;return at(s)?s:void 0}case 212:const u=t;if(xq(u))return u.argumentExpression}return t.name}function qa(t){if(t!==void 0)return AU(t)||(F0(t)||G0(t)||Qd(t)?Mse(t):void 0)}function Mse(t){if(t.parent){if(Gc(t.parent)||Rs(t.parent))return t.parent.name;if(tu(t.parent)&&t===t.parent.right){if(at(t.parent.left))return t.parent.left;if(N0(t.parent.left))return vq(t.parent.left)}else if(ua(t.parent)&&at(t.parent.name))return t.parent.name}else return}function Fx(t){if(a4(t))return ei(t.modifiers,p1)}function h2(t){if(Xu(t,98303))return ei(t.modifiers,Yo)}function oZe(t,u){if(t.name)if(at(t.name)){const s=t.name.escapedText;return jO(t.parent,u).filter(d=>pg(d)&&at(d.name)&&d.name.escapedText===s)}else{const s=t.parent.parameters.indexOf(t);H.assert(s>-1,"Parameters should always be in their parents' parameter list");const d=jO(t.parent,u).filter(pg);if(sgg(d)&&d.typeParameters.some(f=>f.name.escapedText===s))}function R2e(t){return sZe(t,!1)}function O2e(t){return sZe(t,!0)}function j2e(t){return!!O4(t,pg)}function V2e(t){return O4(t,wB)}function H2e(t){return jse(t,Lce)}function zse(t){return O4(t,EFe)}function lZe(t){return O4(t,Ace)}function K2e(t){return O4(t,Ace,!0)}function cZe(t){return O4(t,Sce)}function W2e(t){return O4(t,Sce,!0)}function dZe(t){return O4(t,Bce)}function G2e(t){return O4(t,Bce,!0)}function hZe(t){return O4(t,wce)}function J2e(t){return O4(t,wce,!0)}function $2e(t){return O4(t,hY,!0)}function Ise(t){return O4(t,Tce)}function U2e(t){return O4(t,Tce,!0)}function Rse(t){return O4(t,wV)}function SU(t){return O4(t,_Fe)}function q2e(t){return O4(t,fY)}function fZe(t){return O4(t,gg)}function Ose(t){return O4(t,mY)}function _v(t){const u=O4(t,QP);if(u&&u.typeExpression&&u.typeExpression.type)return u}function Dv(t){let u=O4(t,QP);return!u&&eo(t)&&(u=Le(A8(t),s=>!!s.typeExpression)),u&&u.typeExpression&&u.typeExpression.type}function OO(t){const u=q2e(t);if(u&&u.typeExpression)return u.typeExpression.type;const s=_v(t);if(s&&s.typeExpression){const d=s.typeExpression.type;if(hm(d)){const f=Le(d.members,xB);return f&&f.type}if(n3(d)||BB(d))return d.type}}function jO(t,u){var s;if(!Sj(t))return _t;let d=(s=t.jsDoc)==null?void 0:s.jsDocCache;if(d===void 0||u){const f=z0e(t,u);H.assert(f.length<2||f[0]!==f[1]),d=Ku(f,p=>Rp(p)?p.tags:p),u||(t.jsDoc??(t.jsDoc=[]),t.jsDoc.jsDocCache=d)}return d}function xv(t){return jO(t,!1)}function mZe(t){return jO(t,!0)}function O4(t,u,s){return Le(jO(t,s),u)}function jse(t,u){return xv(t).filter(u)}function pZe(t,u){return xv(t).filter(s=>s.kind===u)}function VO(t){return typeof t=="string"?t:t==null?void 0:t.map(u=>u.kind===328?u.text:mTt(u)).join("")}function mTt(t){const u=t.kind===331?"link":t.kind===332?"linkcode":"linkplain",s=t.name?Mf(t.name):"",d=t.name&&t.text.startsWith("://")?"":" ";return`{@${u} ${s}${d}${t.text}}`}function Ax(t){if(Iv(t)){if(TB(t.parent)){const u=tP(t.parent);if(u&&S(u.tags))return Ku(u.tags,s=>gg(s)?s.typeParameters:void 0)}return _t}if(K4(t))return H.assert(t.parent.kind===327),Ku(t.parent.tags,u=>gg(u)?u.typeParameters:void 0);if(t.typeParameters||BFe(t)&&t.typeParameters)return t.typeParameters;if(eu(t)){const u=Mq(t);if(u.length)return u;const s=Dv(t);if(s&&n3(s)&&s.typeParameters)return s.typeParameters}return _t}function S8(t){return t.constraint?t.constraint:gg(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}function G_(t){return t.kind===80||t.kind===81}function BU(t){return t.kind===178||t.kind===177}function wU(t){return Iu(t)&&!!(t.flags&64)}function Vse(t){return W0(t)&&!!(t.flags&64)}function Gy(t){return No(t)&&!!(t.flags&64)}function Z1(t){const u=t.kind;return!!(t.flags&64)&&(u===211||u===212||u===213||u===235)}function zN(t){return Z1(t)&&!I7(t)&&!!t.questionDotToken}function TU(t){return zN(t.parent)&&t.parent.expression===t}function IN(t){return!Z1(t.parent)||zN(t.parent)||t!==t.parent.expression}function Hse(t){return t.kind===226&&t.operatorToken.kind===61}function U3(t){return Y4(t)&&at(t.typeName)&&t.typeName.escapedText==="const"&&!t.typeArguments}function wp(t){return _c(t,8)}function LU(t){return I7(t)&&!!(t.flags&64)}function RN(t){return t.kind===252||t.kind===251}function Kse(t){return t.kind===280||t.kind===279}function Z2e(t){switch(t.kind){case 309:case 310:return!0;default:return!1}}function Wse(t){return Z2e(t)||t.kind===307||t.kind===311}function HO(t){return t.kind===355||t.kind===348}function gZe(t){return KO(t.kind)}function KO(t){return t>=166}function Gse(t){return t>=0&&t<=165}function i7(t){return Gse(t.kind)}function f2(t){return Eu(t,"pos")&&Eu(t,"end")}function ON(t){return 9<=t&&t<=15}function m2(t){return ON(t.kind)}function Jse(t){switch(t.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Sx(t){return 15<=t&&t<=18}function Y2e(t){return Sx(t.kind)}function NU(t){const u=t.kind;return u===17||u===18}function n7(t){return Cf(t)||X1(t)}function PU(t){switch(t.kind){case 276:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 274:return t.parent.isTypeOnly;case 273:case 271:return t.isTypeOnly}return!1}function Q2e(t){switch(t.kind){case 281:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 278:return t.isTypeOnly&&!!t.moduleSpecifier&&!t.exportClause;case 280:return t.parent.isTypeOnly}return!1}function p2(t){return PU(t)||Q2e(t)}function $se(t){return t.kind===11||Sx(t.kind)}function X2e(t){return ns(t)||at(t)}function ul(t){var u;return at(t)&&((u=t.emitNode)==null?void 0:u.autoGenerate)!==void 0}function Jy(t){var u;return Xr(t)&&((u=t.emitNode)==null?void 0:u.autoGenerate)!==void 0}function WO(t){const u=t.emitNode.autoGenerate.flags;return!!(u&32)&&!!(u&16)&&!!(u&8)}function mh(t){return(bo(t)||T8(t))&&Xr(t.name)}function B8(t){return Iu(t)&&Xr(t.name)}function QD(t){switch(t){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function jN(t){return!!(g7(t)&31)}function Use(t){return jN(t)||t===126||t===164||t===129}function Yo(t){return QD(t.kind)}function om(t){const u=t.kind;return u===166||u===80}function Ac(t){const u=t.kind;return u===80||u===81||u===11||u===9||u===167}function $y(t){const u=t.kind;return u===80||u===206||u===207}function xo(t){return!!t&&u7(t.kind)}function w8(t){return!!t&&(u7(t.kind)||Ml(t))}function K0(t){return t&&EZe(t.kind)}function VN(t){return t.kind===112||t.kind===97}function EZe(t){switch(t){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function u7(t){switch(t){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return EZe(t)}}function qse(t){return ca(t)||uE(t)||fo(t)&&xo(t.parent)}function qd(t){const u=t.kind;return u===176||u===172||u===174||u===177||u===178||u===181||u===175||u===240}function gr(t){return t&&(t.kind===263||t.kind===231)}function Bx(t){return t&&(t.kind===177||t.kind===178)}function Xh(t){return bo(t)&&Xg(t)}function ebe(t){return eu(t)&&fZ(t)?(!y2(t)||!Rx(t.expression))&&!uk(t,!0):t.parent&&gr(t.parent)&&bo(t)&&!Xg(t)}function T8(t){switch(t.kind){case 174:case 177:case 178:return!0;default:return!1}}function tbe(t){switch(t.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function rl(t){return Yo(t)||p1(t)}function Uy(t){const u=t.kind;return u===180||u===179||u===171||u===173||u===181||u===177||u===178}function MU(t){return Uy(t)||qd(t)}function q3(t){const u=t.kind;return u===303||u===304||u===305||u===174||u===177||u===178}function Qr(t){return Ele(t.kind)}function ibe(t){switch(t.kind){case 184:case 185:return!0}return!1}function Fo(t){if(t){const u=t.kind;return u===207||u===206}return!1}function HN(t){const u=t.kind;return u===209||u===210}function zU(t){const u=t.kind;return u===208||u===232}function GO(t){switch(t.kind){case 260:case 169:case 208:return!0}return!1}function nbe(t){return ua(t)||eo(t)||$O(t)||UO(t)}function JO(t){return Zse(t)||Yse(t)}function Zse(t){switch(t.kind){case 206:case 210:return!0}return!1}function $O(t){switch(t.kind){case 208:case 303:case 304:case 305:return!0}return!1}function Yse(t){switch(t.kind){case 207:case 209:return!0}return!1}function UO(t){switch(t.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return od(t,!0)}function ube(t){const u=t.kind;return u===211||u===166||u===205}function rbe(t){const u=t.kind;return u===211||u===166}function Qse(t){return g2(t)||M2(t)}function g2(t){switch(t.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function JE(t){return t.kind===213||t.kind===214}function L8(t){const u=t.kind;return u===228||u===15}function _f(t){return _Ze(wp(t).kind)}function _Ze(t){switch(t){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function Xse(t){return DZe(wp(t).kind)}function DZe(t){switch(t){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return _Ze(t)}}function abe(t){switch(t.kind){case 225:return!0;case 224:return t.operator===46||t.operator===47;default:return!1}}function obe(t){switch(t.kind){case 106:case 112:case 97:case 224:return!0;default:return m2(t)}}function Wt(t){return pTt(wp(t).kind)}function pTt(t){switch(t){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return DZe(t)}}function qy(t){const u=t.kind;return u===216||u===234}function xZe(t){return bce(t)||oY(t)}function wx(t,u){switch(t.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return u&&wx(t.statement,u)}return!1}function sbe(t){return ec(t)||Wc(t)}function lbe(t){return qe(t,sbe)}function IU(t){return!uj(t)&&!ec(t)&&!Xu(t,32)&&!L1(t)}function qO(t){return uj(t)||ec(t)||Xu(t,32)}function N8(t){return t.kind===249||t.kind===250}function RU(t){return fo(t)||Wt(t)}function e0e(t){return fo(t)}function r4(t){return Fd(t)||Wt(t)}function cbe(t){const u=t.kind;return u===268||u===267||u===80}function vZe(t){const u=t.kind;return u===268||u===267}function CZe(t){const u=t.kind;return u===80||u===267}function t0e(t){const u=t.kind;return u===275||u===274}function ZO(t){return t.kind===267||t.kind===266}function qg(t){switch(t.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function $E(t){switch(t.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function gTt(t){return t===219||t===208||t===263||t===231||t===175||t===176||t===266||t===306||t===281||t===262||t===218||t===177||t===273||t===271||t===276||t===264||t===291||t===174||t===173||t===267||t===270||t===274||t===280||t===169||t===303||t===172||t===171||t===178||t===304||t===265||t===168||t===260||t===353||t===345||t===355}function dbe(t){return t===262||t===282||t===263||t===264||t===265||t===266||t===267||t===272||t===271||t===278||t===277||t===270}function hbe(t){return t===252||t===251||t===259||t===246||t===244||t===242||t===249||t===250||t===248||t===245||t===256||t===253||t===255||t===257||t===258||t===243||t===247||t===254||t===359}function Y1(t){return t.kind===168?t.parent&&t.parent.kind!==352||eu(t):gTt(t.kind)}function fbe(t){return dbe(t.kind)}function YO(t){return hbe(t.kind)}function na(t){const u=t.kind;return hbe(u)||dbe(u)||ETt(t)}function ETt(t){return t.kind!==241||t.parent!==void 0&&(t.parent.kind===258||t.parent.kind===299)?!1:!C2(t)}function mbe(t){const u=t.kind;return hbe(u)||dbe(u)||u===241}function pbe(t){const u=t.kind;return u===283||u===166||u===80}function KN(t){const u=t.kind;return u===110||u===80||u===211||u===295}function QO(t){const u=t.kind;return u===284||u===294||u===285||u===12||u===288}function OU(t){const u=t.kind;return u===291||u===293}function gbe(t){const u=t.kind;return u===11||u===294}function Ph(t){const u=t.kind;return u===286||u===285}function jU(t){const u=t.kind;return u===296||u===297}function P8(t){return t.kind>=316&&t.kind<=357}function VU(t){return t.kind===327||t.kind===326||t.kind===328||r7(t)||M8(t)||V7(t)||Iv(t)}function M8(t){return t.kind>=334&&t.kind<=357}function XD(t){return t.kind===178}function Tx(t){return t.kind===177}function sm(t){if(!Sj(t))return!1;const{jsDoc:u}=t;return!!u&&u.length>0}function HU(t){return!!t.type}function Lx(t){return!!t.initializer}function Zy(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function i0e(t){return t.kind===291||t.kind===293||q3(t)}function KU(t){return t.kind===183||t.kind===233}function Ebe(t){let u=_be;for(const s of t){if(!s.length)continue;let d=0;for(;ds.kind===u)}function jo(t){const u=new Map;if(t)for(const s of t)u.set(s.escapedName,s);return u}function UE(t){return(t.flags&33554432)!==0}function DTt(){var t="";const u=s=>t+=s;return{getText:()=>t,write:u,rawWrite:u,writeKeyword:u,writeOperator:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeLiteral:u,writeParameter:u,writeProperty:u,writeSymbol:(s,d)=>u(s),writeTrailingSemicolon:u,writeComment:u,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&$3(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:Ms,decreaseIndent:Ms,clear:()=>t=""}}function WU(t,u){return t.configFilePath!==u.configFilePath||xbe(t,u)}function xbe(t,u){return z8(t,u,BY)}function vbe(t,u){return z8(t,u,mde)}function z8(t,u,s){return t!==u&&s.some(d=>!oZ(Yq(t,d),Yq(u,d)))}function Cbe(t,u){for(;;){const s=u(t);if(s==="quit")return;if(s!==void 0)return s;if(ca(t))return;t=t.parent}}function d1(t,u){const s=t.entries();for(const[d,f]of s){const p=u(f,d);if(p)return p}}function $_(t,u){const s=t.keys();for(const d of s){const f=u(d);if(f)return f}}function GU(t,u){t.forEach((s,d)=>{u.set(d,s)})}function WN(t){const u=sV.getText();try{return t(sV),sV.getText()}finally{sV.clear(),sV.writeKeyword(u)}}function ej(t){return t.end-t.pos}function r0e(t,u){return t.path===u.path&&!t.prepend==!u.prepend&&!t.circular==!u.circular}function bbe(t,u){return t===u||t.resolvedModule===u.resolvedModule||!!t.resolvedModule&&!!u.resolvedModule&&t.resolvedModule.isExternalLibraryImport===u.resolvedModule.isExternalLibraryImport&&t.resolvedModule.extension===u.resolvedModule.extension&&t.resolvedModule.resolvedFileName===u.resolvedModule.resolvedFileName&&t.resolvedModule.originalPath===u.resolvedModule.originalPath&&xTt(t.resolvedModule.packageId,u.resolvedModule.packageId)&&t.node10Result===u.node10Result}function a0e(t,u,s,d,f){var p;const E=(p=u.getResolvedModule(t,s,d))==null?void 0:p.node10Result,v=E?uo(void 0,F.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,E,E.includes(a_+"@types/")?`@types/${WB(f)}`:f):u.typesPackageExists(f)?uo(void 0,F.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,f,WB(f)):u.packageBundlesTypes(f)?uo(void 0,F.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,f,s):uo(void 0,F.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,s,WB(f));return v&&(v.repopulateInfo=()=>({moduleReference:s,mode:d,packageName:f===s?void 0:f})),v}function xTt(t,u){return t===u||!!t&&!!u&&t.name===u.name&&t.subModuleName===u.subModuleName&&t.version===u.version}function JU({name:t,subModuleName:u}){return u?`${t}/${u}`:t}function Nx(t){return`${JU(t)}@${t.version}`}function ybe(t,u){return t===u||t.resolvedTypeReferenceDirective===u.resolvedTypeReferenceDirective||!!t.resolvedTypeReferenceDirective&&!!u.resolvedTypeReferenceDirective&&t.resolvedTypeReferenceDirective.resolvedFileName===u.resolvedTypeReferenceDirective.resolvedFileName&&!!t.resolvedTypeReferenceDirective.primary==!!u.resolvedTypeReferenceDirective.primary&&t.resolvedTypeReferenceDirective.originalPath===u.resolvedTypeReferenceDirective.originalPath}function o0e(t,u,s,d,f,p){H.assert(t.length===s.length);for(let E=0;E=0),J3(u)[t]}function bZe(t){const u=In(t),s=o0(u,t.pos);return`${u.fileName}(${s.line+1},${s.character+1})`}function ij(t,u){H.assert(t>=0);const s=J3(u),d=t,f=u.text;if(d+1===s.length)return f.length-1;{const p=s[d];let E=s[d+1]-1;for(H.assert(q1(f.charCodeAt(E)));p<=E&&q1(f.charCodeAt(E));)E--;return E}}function UU(t,u,s){return!(s&&s(u))&&!t.identifiers.has(u)}function Yl(t){return t===void 0?!0:t.pos===t.end&&t.pos>=0&&t.kind!==1}function j4(t){return!Yl(t)}function Fbe(t,u){return Al(t)?u===t.expression:Ml(t)?u===t.modifiers:Pm(t)?u===t.initializer:bo(t)?u===t.questionToken&&Xh(t):Gc(t)?u===t.modifiers||u===t.questionToken||u===t.exclamationToken||nj(t.modifiers,u,rl):mm(t)?u===t.equalsToken||u===t.modifiers||u===t.questionToken||u===t.exclamationToken||nj(t.modifiers,u,rl):cc(t)?u===t.exclamationToken:dc(t)?u===t.typeParameters||u===t.type||nj(t.typeParameters,u,Al):Mm(t)?u===t.typeParameters||nj(t.typeParameters,u,Al):Of(t)?u===t.typeParameters||u===t.type||nj(t.typeParameters,u,Al):SV(t)?u===t.modifiers||nj(t.modifiers,u,rl):!1}function nj(t,u,s){return!t||Ha(u)||!s(u)?!1:Ft(t,u)}function yZe(t,u,s){if(u===void 0||u.length===0)return t;let d=0;for(;d[`${o0(t,E.range.end).line}`,E])),d=new Map;return{getUnusedExpectations:f,markUsed:p};function f(){return Ea(s.entries()).filter(([E,v])=>v.type===0&&!d.get(E)).map(([E,v])=>v)}function p(E){return s.has(`${E}`)?(d.set(`${E}`,!0),!0):!1}}function Qy(t,u,s){return Yl(t)?t.pos:P8(t)||t.kind===12?ms((u||In(t)).text,t.pos,!1,!0):s&&sm(t)?Qy(t.jsDoc[0],u):t.kind===358&&t._children.length>0?Qy(t._children[0],u,s):ms((u||In(t)).text,t.pos,!1,!1,pj(t))}function c0e(t,u){const s=!Yl(t)&&Op(t)?lt(t.modifiers,p1):void 0;return s?ms((u||In(t)).text,s.end):Qy(t,u)}function E2(t,u,s=!1){return GN(t.text,u,s)}function CTt(t){return!!Ln(t,bk)}function ZU(t){return!!(Wc(t)&&t.exportClause&&n_(t.exportClause)&&t.exportClause.name.escapedText==="default")}function GN(t,u,s=!1){if(Yl(u))return"";let d=t.substring(s?u.pos:ms(t,u.pos),u.end);return CTt(u)&&(d=d.split(/\r\n|\n|\r/).map(f=>f.replace(/^\s*\*/,"").trimStart()).join(` -`)),d}function Vc(t,u=!1){return E2(In(t),t,u)}function bTt(t){return t.pos}function R8(t,u){return Hl(t,u,bTt,tl)}function vs(t){const u=t.emitNode;return u&&u.flags||0}function Tp(t){const u=t.emitNode;return u&&u.internalFlags||0}function Sbe(t,u,s){if(u&&yTt(t,s))return E2(u,t);switch(t.kind){case 11:{const d=s&2?Q0e:s&1||vs(t)&16777216?kv:Rj;return t.singleQuote?"'"+d(t.text,39)+"'":'"'+d(t.text,34)+'"'}case 15:case 16:case 17:case 18:{const d=s&1||vs(t)&16777216?kv:Rj,f=t.rawText??MTt(d(t.text,96));switch(t.kind){case 15:return"`"+f+"`";case 16:return"`"+f+"${";case 17:return"}"+f+"${";case 18:return"}"+f+"`"}break}case 9:case 10:return t.text;case 14:return s&4&&t.isUnterminated?t.text+(t.text.charCodeAt(t.text.length-1)===92?" /":"/"):t.text}return H.fail(`Literal kind '${t.kind}' not accounted for.`)}function yTt(t,u){if(al(t)||!t.parent||u&4&&t.isUnterminated)return!1;if(Rf(t)){if(t.numericLiteralFlags&26656)return!1;if(t.numericLiteralFlags&512)return!!(u&8)}return!QZ(t)}function Bbe(t){return Ja(t)?'"'+Rj(t)+'"':""+t}function wbe(t){return Fc(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function d0e(t){return(YD(t)&7)!==0||h0e(t)}function h0e(t){const u=QE(t);return u.kind===260&&u.parent.kind===299}function L1(t){return Ec(t)&&(t.name.kind===11||Zg(t))}function YU(t){return Ec(t)&&t.name.kind===11}function f0e(t){return Ec(t)&&ns(t.name)}function Tbe(t){return Ec(t)||at(t)}function JN(t){return kTt(t.valueDeclaration)}function kTt(t){return!!t&&t.kind===267&&!t.body}function Lbe(t){return t.kind===312||t.kind===267||w8(t)}function Zg(t){return!!(t.flags&2048)}function _2(t){return L1(t)&&m0e(t)}function m0e(t){switch(t.parent.kind){case 312:return Bc(t.parent);case 268:return L1(t.parent.parent)&&ca(t.parent.parent.parent)&&!Bc(t.parent.parent.parent)}return!1}function p0e(t){var u;return(u=t.declarations)==null?void 0:u.find(s=>!_2(s)&&!(Ec(s)&&Zg(s)))}function FTt(t){return t===1||t===100||t===199}function a7(t,u){return Bc(t)||FTt(f1(u))&&!!t.commonJsModuleIndicator}function g0e(t,u){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return t.isDeclarationFile?!1:U4(u,"alwaysStrict")||kFe(t.statements)?!0:Bc(t)||hg(u)?f1(u)>=5?!0:!u.noImplicitUseStrict:!1}function E0e(t){return!!(t.flags&33554432)||Xu(t,128)}function _0e(t,u){switch(t.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!w8(u)}return!1}function D0e(t){switch(H.type(t),t.kind){case 345:case 353:case 330:return!0;default:return x0e(t)}}function x0e(t){switch(H.type(t),t.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function Xy(t){switch(t.kind){case 272:case 271:return!0;default:return!1}}function Nbe(t){return Xy(t)||b2(t)}function QU(t){switch(t.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function Pbe(t){return uj(t)||Ec(t)||iD(t)||cm(t)}function uj(t){return Xy(t)||Wc(t)}function v0e(t){return Ln(t.parent,u=>!!(Tde(u)&1))}function ZE(t){return Ln(t.parent,u=>_0e(u,u.parent))}function Mbe(t,u){let s=ZE(t);for(;s;)u(s),s=ZE(s)}function C0(t){return!t||ej(t)===0?"(Missing)":Vc(t)}function zbe(t){return t.declaration?C0(t.declaration.parameters[0].name):void 0}function rj(t){return t.kind===167&&!Nm(t.expression)}function $N(t){var u;switch(t.kind){case 80:case 81:return(u=t.emitNode)!=null&&u.autoGenerate?void 0:t.escapedText;case 11:case 9:case 15:return kl(t.text);case 167:return Nm(t.expression)?kl(t.expression.text):void 0;case 295:return b7(t);default:return H.assertNever(t)}}function O8(t){return H.checkDefined($N(t))}function Mf(t){switch(t.kind){case 110:return"this";case 81:case 80:return ej(t)===0?mu(t):Vc(t);case 166:return Mf(t.left)+"."+Mf(t.right);case 211:return at(t.name)||Xr(t.name)?Mf(t.expression)+"."+Mf(t.name):H.assertNever(t.name);case 318:return Mf(t.left)+Mf(t.right);case 295:return Mf(t.namespace)+":"+Mf(t.name);default:return H.assertNever(t)}}function Bu(t,u,...s){const d=In(t);return V4(d,t,u,...s)}function j8(t,u,s,...d){const f=ms(t.text,u.pos);return zd(t,f,u.end-f,s,...d)}function V4(t,u,s,...d){const f=D2(t,u);return zd(t,f.start,f.length,s,...d)}function Z3(t,u,s,d){const f=D2(t,u);return XU(t,f.start,f.length,s,d)}function aj(t,u,s,d){const f=ms(t.text,u.pos);return XU(t,f,u.end-f,s,d)}function Ibe(t,u,s){H.assertGreaterThanOrEqual(u,0),H.assertGreaterThanOrEqual(s,0),H.assertLessThanOrEqual(u,t.length),H.assertLessThanOrEqual(u+s,t.length)}function XU(t,u,s,d,f){return Ibe(t.text,u,s),{file:t,start:u,length:s,code:d.code,category:d.category,messageText:d.next?d:d.messageText,relatedInformation:f}}function C0e(t,u,s){return{file:t,start:0,length:0,code:u.code,category:u.category,messageText:u.next?u:u.messageText,relatedInformation:s}}function Rbe(t){return typeof t.messageText=="string"?{code:t.code,category:t.category,messageText:t.messageText,next:t.next}:t.messageText}function Obe(t,u,s){return{file:t,start:u.pos,length:u.end-u.pos,code:s.code,category:s.category,messageText:s.message}}function YE(t,u){const s=ZD(t.languageVersion,!0,t.languageVariant,t.text,void 0,u);s.scan();const d=s.getTokenStart();return jc(d,s.getTokenEnd())}function jbe(t,u){const s=ZD(t.languageVersion,!0,t.languageVariant,t.text,void 0,u);return s.scan(),s.getToken()}function ATt(t,u){const s=ms(t.text,u.pos);if(u.body&&u.body.kind===241){const{line:d}=o0(t,u.body.pos),{line:f}=o0(t,u.body.end);if(d0?u.statements[0].pos:u.end;return jc(p,E)}case 253:case 229:{const p=ms(t.text,u.pos);return YE(t,p)}case 238:{const p=ms(t.text,u.expression.end);return YE(t,p)}case 357:{const p=ms(t.text,u.tagName.pos);return YE(t,p)}}if(s===void 0)return YE(t,u.pos);H.assert(!Rp(s));const d=Yl(s),f=d||S7(u)?s.pos:ms(t.text,s.pos);return d?(H.assert(f===s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),H.assert(f===s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(H.assert(f>=s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),H.assert(f<=s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),jc(f,s.end)}function lm(t){return(t.externalModuleIndicator||t.commonJsModuleIndicator)!==void 0}function H4(t){return t.scriptKind===6}function x2(t){return!!(d2(t)&4096)}function eq(t){return!!(d2(t)&8&&!Pf(t,t.parent))}function oj(t){return(YD(t)&7)===6}function sj(t){return(YD(t)&7)===4}function V8(t){return(YD(t)&7)===2}function tq(t){return(YD(t)&7)===1}function ek(t){return t.kind===213&&t.expression.kind===108}function cm(t){return t.kind===213&&t.expression.kind===102}function H8(t){return JP(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function Mx(t){return iD(t)&&Nv(t.argument)&&ns(t.argument.literal)}function Lp(t){return t.kind===244&&t.expression.kind===11}function lj(t){return!!(vs(t)&2097152)}function iq(t){return lj(t)&&Xc(t)}function STt(t){return at(t.name)&&!t.initializer}function nq(t){return lj(t)&&Gl(t)&&ye(t.declarationList.declarations,STt)}function b0e(t,u){return t.kind!==12?K_(u.text,t.pos):void 0}function y0e(t,u){const s=t.kind===169||t.kind===168||t.kind===218||t.kind===219||t.kind===217||t.kind===260||t.kind===281?an(mv(u,t.pos),K_(u,t.pos)):K_(u,t.pos);return ei(s,d=>u.charCodeAt(d.pos+1)===42&&u.charCodeAt(d.pos+2)===42&&u.charCodeAt(d.pos+3)!==47)}function U_(t){if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return t.parent.kind!==222;case 233:return fm(t.parent)&&!Wj(t);case 168:return t.parent.kind===200||t.parent.kind===195;case 80:(t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t)&&(t=t.parent),H.assert(t.kind===80||t.kind===166||t.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:u}=t;if(u.kind===186)return!1;if(u.kind===205)return!u.isTypeOf;if(182<=u.kind&&u.kind<=205)return!0;switch(u.kind){case 233:return fm(u.parent)&&!Wj(u);case 168:return t===u.constraint;case 352:return t===u.constraint;case 172:case 171:case 169:case 260:return t===u.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return t===u.type;case 179:case 180:case 181:return t===u.type;case 216:return t===u.type;case 213:case 214:case 215:return Ft(u.typeArguments,t)}}}return!1}function SZe(t,u){for(;t;){if(t.kind===u)return!0;t=t.parent}return!1}function v2(t,u){return s(t);function s(d){switch(d.kind){case 253:return u(d);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return ro(d,s)}}}function Vbe(t,u){return s(t);function s(d){switch(d.kind){case 229:u(d);const f=d.expression;f&&s(f);return;case 266:case 264:case 267:case 265:return;default:if(xo(d)){if(d.name&&d.name.kind===167){s(d.name.expression);return}}else U_(d)||ro(d,s)}}}function k0e(t){return t&&t.kind===188?t.elementType:t&&t.kind===183?Aa(t.typeArguments):void 0}function Hbe(t){switch(t.kind){case 264:case 263:case 231:case 187:return t.members;case 210:return t.properties}}function K8(t){if(t)switch(t.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Kbe(t){return K8(t)||Bx(t)}function UN(t){return t.parent.kind===261&&t.parent.parent.kind===243}function Wbe(t){return eu(t)?Cs(t.parent)&&tu(t.parent.parent)&&Ql(t.parent.parent)===2||uq(t.parent):!1}function uq(t){return eu(t)?tu(t)&&Ql(t)===1:!1}function Gbe(t){return(ua(t)?V8(t)&&at(t.name)&&UN(t):bo(t)?hP(t)&&Hc(t):Pm(t)&&hP(t))||uq(t)}function Jbe(t){switch(t.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function F0e(t,u){for(;;){if(u&&u(t),t.statement.kind!==256)return t.statement;t=t.statement}}function C2(t){return t&&t.kind===241&&xo(t.parent)}function Np(t){return t&&t.kind===174&&t.parent.kind===210}function rq(t){return(t.kind===174||t.kind===177||t.kind===178)&&(t.parent.kind===210||t.parent.kind===231)}function $be(t){return t&&t.kind===1}function BZe(t){return t&&t.kind===0}function W8(t,u,s,d){return L(t==null?void 0:t.properties,f=>{if(!Gc(f))return;const p=$N(f.name);return u===p||d&&d===p?s(f):void 0})}function Ube(t,u,s){return W8(t,u,d=>_h(d.initializer)?Le(d.initializer.elements,f=>ns(f)&&f.text===s):void 0)}function qN(t){if(t&&t.statements.length){const u=t.statements[0].expression;return ar(u,Cs)}}function aq(t,u,s){return cj(t,u,d=>_h(d.initializer)?Le(d.initializer.elements,f=>ns(f)&&f.text===s):void 0)}function cj(t,u,s){return W8(qN(t),u,s)}function Lm(t){return Ln(t.parent,xo)}function qbe(t){return Ln(t.parent,K0)}function Zd(t){return Ln(t.parent,gr)}function Zbe(t){return Ln(t.parent,u=>gr(u)||xo(u)?"quit":Ml(u))}function oq(t){return Ln(t.parent,w8)}function sq(t){const u=Ln(t.parent,s=>gr(s)?"quit":p1(s));return u&&gr(u.parent)?Zd(u.parent):Zd(u??t)}function ef(t,u,s){for(H.assert(t.kind!==312);;){if(t=t.parent,!t)return H.fail();switch(t.kind){case 167:if(s&&gr(t.parent.parent))return t;t=t.parent.parent;break;case 170:t.parent.kind===169&&qd(t.parent.parent)?t=t.parent.parent:qd(t.parent)&&(t=t.parent);break;case 219:if(!u)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return t}}}function Ybe(t){switch(t.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(t.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function lq(t){at(t)&&(Kc(t.parent)||Xc(t.parent))&&t.parent.name===t&&(t=t.parent);const u=ef(t,!0,!1);return ca(u)}function Qbe(t){const u=ef(t,!1,!1);if(u)switch(u.kind){case 176:case 262:case 218:return u}}function dj(t,u){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 167:t=t.parent;break;case 262:case 218:case 219:if(!u)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return t;case 170:t.parent.kind===169&&qd(t.parent.parent)?t=t.parent.parent:qd(t.parent)&&(t=t.parent);break}}}function tk(t){if(t.kind===218||t.kind===219){let u=t,s=t.parent;for(;s.kind===217;)u=s,s=s.parent;if(s.kind===213&&s.expression===u)return s}}function wZe(t){return t.kind===108||tf(t)}function tf(t){const u=t.kind;return(u===211||u===212)&&t.expression.kind===108}function hj(t){const u=t.kind;return(u===211||u===212)&&t.expression.kind===110}function cq(t){var u;return!!t&&ua(t)&&((u=t.initializer)==null?void 0:u.kind)===110}function Xbe(t){return!!t&&(mm(t)||Gc(t))&&tu(t.parent.parent)&&t.parent.parent.operatorToken.kind===64&&t.parent.parent.right.kind===110}function fj(t){switch(t.kind){case 183:return t.typeName;case 233:return Xl(t.expression)?t.expression:void 0;case 80:case 166:return t}}function dq(t){switch(t.kind){case 215:return t.tag;case 286:case 285:return t.tagName;case 226:return t.right;default:return t.expression}}function hq(t,u,s,d){if(t&&fh(u)&&Xr(u.name))return!1;switch(u.kind){case 263:return!0;case 231:return!t;case 172:return s!==void 0&&(t?Kc(s):gr(s)&&!T2(u)&&!ule(u));case 177:case 178:case 174:return u.body!==void 0&&s!==void 0&&(t?Kc(s):gr(s));case 169:return t?s!==void 0&&s.body!==void 0&&(s.kind===176||s.kind===174||s.kind===178)&&S2(s)!==u&&d!==void 0&&d.kind===263:!1}return!1}function ZN(t,u,s,d){return a4(u)&&hq(t,u,s,d)}function mj(t,u,s,d){return ZN(t,u,s,d)||YN(t,u,s)}function YN(t,u,s){switch(u.kind){case 263:return qe(u.members,d=>mj(t,d,u,s));case 231:return!t&&qe(u.members,d=>mj(t,d,u,s));case 174:case 178:case 176:return qe(u.parameters,d=>ZN(t,d,u,s));default:return!1}}function e5(t,u){if(ZN(t,u))return!0;const s=Q_(u);return!!s&&YN(t,s,u)}function A0e(t,u,s){let d;if(Bx(u)){const{firstAccessor:f,secondAccessor:p,setAccessor:E}=lk(s.members,u),v=a4(f)?f:p&&a4(p)?p:void 0;if(!v||u!==v)return!1;d=E==null?void 0:E.parameters}else cc(u)&&(d=u.parameters);if(ZN(t,u,s))return!0;if(d){for(const f of d)if(!B2(f)&&ZN(t,f,u,s))return!0}return!1}function S0e(t){if(t.textSourceNode){switch(t.textSourceNode.kind){case 11:return S0e(t.textSourceNode);case 15:return t.text===""}return!1}return t.text===""}function G8(t){const{parent:u}=t;return u.kind===286||u.kind===285||u.kind===287?u.tagName===t:!1}function q_(t){switch(t.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!fm(t.parent)&&!wB(t.parent);case 166:for(;t.parent.kind===166;)t=t.parent;return t.parent.kind===186||r7(t.parent)||YP(t.parent)||zv(t.parent)||G8(t);case 318:for(;zv(t.parent);)t=t.parent;return t.parent.kind===186||r7(t.parent)||YP(t.parent)||zv(t.parent)||G8(t);case 81:return tu(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===103;case 80:if(t.parent.kind===186||r7(t.parent)||YP(t.parent)||zv(t.parent)||G8(t))return!0;case 9:case 10:case 11:case 15:case 110:return fq(t);default:return!1}}function fq(t){const{parent:u}=t;switch(u.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return u.initializer===t;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return u.expression===t;case 248:const s=u;return s.initializer===t&&s.initializer.kind!==261||s.condition===t||s.incrementor===t;case 249:case 250:const d=u;return d.initializer===t&&d.initializer.kind!==261||d.expression===t;case 216:case 234:return t===u.expression;case 239:return t===u.expression;case 167:return t===u.expression;case 170:case 294:case 293:case 305:return!0;case 233:return u.expression===t&&!U_(u);case 304:return u.objectAssignmentInitializer===t;case 238:return t===u.expression;default:return q_(u)}}function mq(t){for(;t.kind===166||t.kind===80;)t=t.parent;return t.kind===186}function eye(t){return n_(t)&&!!t.parent.moduleSpecifier}function vv(t){return t.kind===271&&t.moduleReference.kind===283}function QN(t){return H.assert(vv(t)),t.moduleReference.expression}function B0e(t){return b2(t)&&vP(t.initializer).arguments[0]}function J8(t){return t.kind===271&&t.moduleReference.kind!==283}function ph(t){return eu(t)}function TZe(t){return!eu(t)}function eu(t){return!!t&&!!(t.flags&524288)}function pq(t){return!!t&&!!(t.flags&134217728)}function w0e(t){return!H4(t)}function pj(t){return!!t&&!!(t.flags&16777216)}function gq(t){return Y4(t)&&at(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===154||t.typeArguments[0].kind===150)}function Df(t,u){if(t.kind!==213)return!1;const{expression:s,arguments:d}=t;if(s.kind!==80||s.escapedText!=="require"||d.length!==1)return!1;const f=d[0];return!u||t0(f)}function Eq(t){return LZe(t,!1)}function b2(t){return LZe(t,!0)}function tye(t){return Rs(t)&&b2(t.parent.parent)}function LZe(t,u){return ua(t)&&!!t.initializer&&Df(u?vP(t.initializer):t.initializer,!0)}function T0e(t){return Gl(t)&&t.declarationList.declarations.length>0&&ye(t.declarationList.declarations,u=>Eq(u))}function gj(t){return t===39||t===34}function _q(t,u){return E2(u,t).charCodeAt(0)===34}function XN(t){return tu(t)||N0(t)||at(t)||No(t)}function Ej(t){return eu(t)&&t.initializer&&tu(t.initializer)&&(t.initializer.operatorToken.kind===57||t.initializer.operatorToken.kind===61)&&t.name&&Xl(t.name)&&$8(t.name,t.initializer.left)?t.initializer.right:t.initializer}function _j(t){const u=Ej(t);return u&&Cv(u,Rx(t.name))}function BTt(t,u){return L(t.properties,s=>Gc(s)&&at(s.name)&&s.name.escapedText==="value"&&s.initializer&&Cv(s.initializer,u))}function o7(t){if(t&&t.parent&&tu(t.parent)&&t.parent.operatorToken.kind===64){const u=Rx(t.parent.left);return Cv(t.parent.right,u)||wTt(t.parent.left,t.parent.right,u)}if(t&&No(t)&&nk(t)){const u=BTt(t.arguments[2],t.arguments[1].text==="prototype");if(u)return u}}function Cv(t,u){if(No(t)){const s=s0(t.expression);return s.kind===218||s.kind===219?t:void 0}if(t.kind===218||t.kind===231||t.kind===219||Cs(t)&&(t.properties.length===0||u))return t}function wTt(t,u,s){const d=tu(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===61)&&Cv(u.right,s);if(d&&$8(t,u.left))return d}function iye(t){const u=ua(t.parent)?t.parent.name:tu(t.parent)&&t.parent.operatorToken.kind===64?t.parent.left:void 0;return u&&Cv(t.right,Rx(u))&&Xl(u)&&$8(u,t.left)}function L0e(t){if(tu(t.parent)){const u=(t.parent.operatorToken.kind===57||t.parent.operatorToken.kind===61)&&tu(t.parent.parent)?t.parent.parent:t.parent;if(u.operatorToken.kind===64&&at(u.left))return u.left}else if(ua(t.parent))return t.parent.name}function $8(t,u){return Qg(t)&&Qg(u)?W4(t)===W4(u):G_(t)&&Dq(u)&&(u.expression.kind===110||at(u.expression)&&(u.expression.escapedText==="window"||u.expression.escapedText==="self"||u.expression.escapedText==="global"))?$8(t,vj(u)):Dq(t)&&Dq(u)?Y3(t)===Y3(u)&&$8(t.expression,u.expression):!1}function Dj(t){for(;od(t,!0);)t=t.right;return t}function ik(t){return at(t)&&t.escapedText==="exports"}function N0e(t){return at(t)&&t.escapedText==="module"}function Z_(t){return(Iu(t)||xj(t))&&N0e(t.expression)&&Y3(t)==="exports"}function Ql(t){const u=TTt(t);return u===5||eu(t)?u:0}function nk(t){return S(t.arguments)===3&&Iu(t.expression)&&at(t.expression.expression)&&mu(t.expression.expression)==="Object"&&mu(t.expression.name)==="defineProperty"&&Nm(t.arguments[1])&&uk(t.arguments[0],!0)}function Dq(t){return Iu(t)||xj(t)}function xj(t){return W0(t)&&Nm(t.argumentExpression)}function y2(t,u){return Iu(t)&&(!u&&t.expression.kind===110||at(t.name)&&uk(t.expression,!0))||xq(t,u)}function xq(t,u){return xj(t)&&(!u&&t.expression.kind===110||Xl(t.expression)||y2(t.expression,!0))}function uk(t,u){return Xl(t)||y2(t,u)}function vj(t){return Iu(t)?t.name:t.argumentExpression}function TTt(t){if(No(t)){if(!nk(t))return 0;const u=t.arguments[0];return ik(u)||Z_(u)?8:y2(u)&&Y3(u)==="prototype"?9:7}return t.operatorToken.kind!==64||!N0(t.left)||LTt(Dj(t))?0:uk(t.left.expression,!0)&&Y3(t.left)==="prototype"&&Cs(P0e(t))?6:Cj(t.left)}function LTt(t){return z7(t)&&Rf(t.expression)&&t.expression.text==="0"}function vq(t){if(Iu(t))return t.name;const u=s0(t.argumentExpression);return Rf(u)||t0(u)?u:t}function Y3(t){const u=vq(t);if(u){if(at(u))return u.escapedText;if(t0(u)||Rf(u))return kl(u.text)}}function Cj(t){if(t.expression.kind===110)return 4;if(Z_(t))return 2;if(uk(t.expression,!0)){if(Rx(t.expression))return 3;let u=t;for(;!at(u.expression);)u=u.expression;const s=u.expression;if((s.escapedText==="exports"||s.escapedText==="module"&&Y3(u)==="exports")&&y2(t))return 1;if(uk(t,!0)||W0(t)&&Sq(t))return 5}return 0}function P0e(t){for(;tu(t.right);)t=t.right;return t.right}function bj(t){return tu(t)&&Ql(t)===3}function nye(t){return eu(t)&&t.parent&&t.parent.kind===244&&(!W0(t)||xj(t))&&!!_v(t.parent)}function yj(t,u){const{valueDeclaration:s}=t;(!s||!(u.flags&33554432&&!eu(u)&&!(s.flags&33554432))&&XN(s)&&!XN(u)||s.kind!==u.kind&&Tbe(s))&&(t.valueDeclaration=u)}function uye(t){if(!t||!t.valueDeclaration)return!1;const u=t.valueDeclaration;return u.kind===262||ua(u)&&u.initializer&&xo(u.initializer)}function U8(t){var u,s;switch(t.kind){case 260:case 208:return(u=Ln(t.initializer,d=>Df(d,!0)))==null?void 0:u.arguments[0];case 272:case 278:return ar(t.moduleSpecifier,t0);case 271:return ar((s=ar(t.moduleReference,u_))==null?void 0:s.expression,t0);case 273:case 280:return ar(t.parent.moduleSpecifier,t0);case 274:case 281:return ar(t.parent.parent.moduleSpecifier,t0);case 276:return ar(t.parent.parent.parent.moduleSpecifier,t0);case 205:return Mx(t)?t.argument.literal:void 0;default:H.assertNever(t)}}function eP(t){return kj(t)||H.failBadSyntaxKind(t.parent)}function kj(t){switch(t.parent.kind){case 272:case 278:return t.parent;case 283:return t.parent.parent;case 213:return cm(t.parent)||Df(t.parent,!1)?t.parent:void 0;case 201:return H.assert(ns(t)),ar(t.parent.parent,iD);default:return}}function q8(t){switch(t.kind){case 272:case 278:return t.moduleSpecifier;case 271:return t.moduleReference.kind===283?t.moduleReference.expression:void 0;case 205:return Mx(t)?t.argument.literal:void 0;case 213:return t.arguments[0];case 267:return t.name.kind===11?t.name:void 0;default:return H.assertNever(t)}}function Z8(t){switch(t.kind){case 272:return t.importClause&&ar(t.importClause.namedBindings,Gx);case 271:return t;case 278:return t.exportClause&&ar(t.exportClause,n_);default:return H.assertNever(t)}}function s7(t){return t.kind===272&&!!t.importClause&&!!t.importClause.name}function Cq(t,u){if(t.name){const s=u(t);if(s)return s}if(t.namedBindings){const s=Gx(t.namedBindings)?u(t.namedBindings):L(t.namedBindings.elements,u);if(s)return s}}function l7(t){if(t)switch(t.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return t.questionToken!==void 0}return!1}function Y8(t){const u=BB(t)?Hi(t.parameters):void 0,s=ar(u&&u.name,at);return!!s&&s.escapedText==="new"}function K4(t){return t.kind===353||t.kind===345||t.kind===347}function Fj(t){return K4(t)||Ip(t)}function NTt(t){return Id(t)&&tu(t.expression)&&t.expression.operatorToken.kind===64?Dj(t.expression):void 0}function NZe(t){return Id(t)&&tu(t.expression)&&Ql(t.expression)!==0&&tu(t.expression.right)&&(t.expression.right.operatorToken.kind===57||t.expression.right.operatorToken.kind===61)?t.expression.right.right:void 0}function M0e(t){switch(t.kind){case 243:const u=Q8(t);return u&&u.initializer;case 172:return t.initializer;case 303:return t.initializer}}function Q8(t){return Gl(t)?Hi(t.declarationList.declarations):void 0}function PZe(t){return Ec(t)&&t.body&&t.body.kind===267?t.body:void 0}function Aj(t){if(t.kind>=243&&t.kind<=259)return!0;switch(t.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function Sj(t){switch(t.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function z0e(t,u){let s;K8(t)&&Lx(t)&&sm(t.initializer)&&(s=kn(s,MZe(t,Cr(t.initializer.jsDoc))));let d=t;for(;d&&d.parent;){if(sm(d)&&(s=kn(s,MZe(t,Cr(d.jsDoc)))),d.kind===169){s=kn(s,(u?I2e:A8)(d));break}if(d.kind===168){s=kn(s,(u?O2e:R2e)(d));break}d=I0e(d)}return s||_t}function MZe(t,u){if(Rp(u)){const s=ei(u.tags,d=>zZe(t,d));return u.tags===s?[u]:s}return zZe(t,u)?[u]:void 0}function zZe(t,u){return!(QP(u)||mY(u))||!u.parent||!Rp(u.parent)||!vf(u.parent.parent)||u.parent.parent===t}function I0e(t){const u=t.parent;if(u.kind===303||u.kind===277||u.kind===172||u.kind===244&&t.kind===211||u.kind===253||PZe(u)||od(t))return u;if(u.parent&&(Q8(u.parent)===t||od(u)))return u.parent;if(u.parent&&u.parent.parent&&(Q8(u.parent.parent)||M0e(u.parent.parent)===t||NZe(u.parent.parent)))return u.parent.parent}function Bj(t){if(t.symbol)return t.symbol;if(!at(t.name))return;const u=t.name.escapedText,s=bv(t);if(!s)return;const d=Le(s.parameters,f=>f.name.kind===80&&f.name.escapedText===u);return d&&d.symbol}function bq(t){if(Rp(t.parent)&&t.parent.tags){const u=Le(t.parent.tags,K4);if(u)return u}return bv(t)}function bv(t){const u=rk(t);if(u)return Pm(u)&&u.type&&xo(u.type)?u.type:xo(u)?u:void 0}function rk(t){const u=c7(t);if(u)return NZe(u)||NTt(u)||M0e(u)||Q8(u)||PZe(u)||u}function c7(t){const u=tP(t);if(!u)return;const s=u.parent;if(s&&s.jsDoc&&u===Yu(s.jsDoc))return s}function tP(t){return Ln(t.parent,Rp)}function rye(t){const u=t.name.escapedText,{typeParameters:s}=t.parent.parent.parent;return s&&Le(s,d=>d.name.escapedText===u)}function IZe(t){return!!t.typeArguments}function aye(t){let u=t.parent;for(;;){switch(u.kind){case 226:const s=u,d=s.operatorToken.kind;return n5(d)&&s.left===t?s:void 0;case 224:case 225:const f=u,p=f.operator;return p===46||p===47?f:void 0;case 249:case 250:const E=u;return E.initializer===t?E:void 0;case 217:case 209:case 230:case 235:t=u;break;case 305:t=u.parent;break;case 304:if(u.name!==t)return;t=u.parent;break;case 303:if(u.name===t)return;t=u.parent;break;default:return}u=t.parent}}function d7(t){const u=aye(t);if(!u)return 0;switch(u.kind){case 226:const s=u.operatorToken.kind;return s===64||fP(s)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Y_(t){return!!aye(t)}function PTt(t){const u=s0(t.right);return u.kind===226&&Hce(u.operatorToken.kind)}function R0e(t){const u=aye(t);return!!u&&od(u,!0)&&PTt(u)}function oye(t){switch(t.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function sye(t){return F0(t)||G0(t)||T8(t)||Xc(t)||dc(t)}function RZe(t,u){for(;t&&t.kind===u;)t=t.parent;return t}function wj(t){return RZe(t,196)}function t5(t){return RZe(t,217)}function lye(t){let u;for(;t&&t.kind===196;)u=t,t=t.parent;return[u,t]}function O0e(t){for(;N7(t);)t=t.type;return t}function s0(t,u){return _c(t,u?17:1)}function j0e(t){return t.kind!==211&&t.kind!==212?!1:(t=t5(t.parent),t&&t.kind===220)}function k2(t,u){for(;t;){if(t===u)return!0;t=t.parent}return!1}function Q3(t){return!ca(t)&&!Fo(t)&&Y1(t.parent)&&t.parent.name===t}function iP(t){const u=t.parent;switch(t.kind){case 11:case 15:case 9:if(Ls(u))return u.parent;case 80:if(Y1(u))return u.name===t?u:void 0;if(xf(u)){const s=u.parent;return pg(s)&&s.name===u?s:void 0}else{const s=u.parent;return tu(s)&&Ql(s)!==0&&(s.left.symbol||s.symbol)&&qa(s)===t?s:void 0}case 81:return Y1(u)&&u.name===t?u:void 0;default:return}}function Tj(t){return Nm(t)&&t.parent.kind===167&&Y1(t.parent.parent)}function cye(t){const u=t.parent;switch(u.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return u.name===t;case 166:return u.right===t;case 208:case 276:return u.propertyName===t;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function OZe(t){return t.kind===271||t.kind===270||t.kind===273&&t.name||t.kind===274||t.kind===280||t.kind===276||t.kind===281||t.kind===277&&X8(t)?!0:eu(t)&&(tu(t)&&Ql(t)===2&&X8(t)||Iu(t)&&tu(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===64&&Lj(t.parent.right))}function V0e(t){switch(t.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return t.parent;case 166:do t=t.parent;while(t.parent.kind===166);return V0e(t)}}function Lj(t){return Xl(t)||Qd(t)}function X8(t){const u=H0e(t);return Lj(u)}function H0e(t){return ec(t)?t.expression:t.right}function dye(t){return t.kind===304?t.name:t.kind===303?t.initializer:t.parent.right}function Yg(t){const u=F2(t);if(u&&eu(t)){const s=V2e(t);if(s)return s.class}return u}function F2(t){const u=Nj(t.heritageClauses,96);return u&&u.types.length>0?u.types[0]:void 0}function eB(t){if(eu(t))return H2e(t).map(u=>u.class);{const u=Nj(t.heritageClauses,119);return u==null?void 0:u.types}}function nP(t){return Dh(t)?uP(t)||_t:gr(t)&&an(jy(Yg(t)),eB(t))||_t}function uP(t){const u=Nj(t.heritageClauses,96);return u?u.types:void 0}function Nj(t,u){if(t){for(const s of t)if(s.token===u)return s}}function yv(t,u){for(;t;){if(t.kind===u)return t;t=t.parent}}function nf(t){return 83<=t&&t<=165}function K0e(t){return 19<=t&&t<=79}function yq(t){return nf(t)||K0e(t)}function kq(t){return 128<=t&&t<=165}function W0e(t){return nf(t)&&!kq(t)}function jZe(t){return 119<=t&&t<=127}function h7(t){const u=c2(t);return u!==void 0&&W0e(u)}function VZe(t){const u=c2(t);return u!==void 0&&nf(u)}function Fq(t){const u=Ev(t);return!!u&&!kq(u)}function tB(t){return 2<=t&&t<=7}function yd(t){if(!t)return 4;let u=0;switch(t.kind){case 262:case 218:case 174:t.asteriskToken&&(u|=1);case 219:Xu(t,1024)&&(u|=2);break}return t.body||(u|=4),u}function rP(t){switch(t.kind){case 262:case 218:case 219:case 174:return t.body!==void 0&&t.asteriskToken===void 0&&Xu(t,1024)}return!1}function Nm(t){return t0(t)||Rf(t)}function Aq(t){return Pv(t)&&(t.operator===40||t.operator===41)&&Rf(t.operand)}function zx(t){const u=qa(t);return!!u&&Sq(u)}function Sq(t){if(!(t.kind===167||t.kind===212))return!1;const u=W0(t)?s0(t.argumentExpression):t.expression;return!Nm(u)&&!Aq(u)}function ak(t){switch(t.kind){case 80:case 81:return t.escapedText;case 11:case 15:case 9:return kl(t.text);case 167:const u=t.expression;return Nm(u)?kl(u.text):Aq(u)?u.operator===41?Jo(u.operator)+u.operand.text:u.operand.text:void 0;case 295:return b7(t);default:return H.assertNever(t)}}function Qg(t){switch(t.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function W4(t){return G_(t)?mu(t):mg(t)?MP(t):t.text}function aP(t){return G_(t)?t.escapedText:mg(t)?b7(t):kl(t.text)}function HZe(t){return`__@${qo(t)}@${t.escapedName}`}function Pj(t,u){return`__#${qo(t)}@${u}`}function Mj(t){return Na(t.escapedName,"__@")}function hye(t){return Na(t.escapedName,"__#")}function KZe(t){return t.kind===80&&t.escapedText==="Symbol"}function fye(t){return at(t)?mu(t)==="__proto__":ns(t)&&t.text==="__proto__"}function oP(t,u){switch(t=_c(t),t.kind){case 231:if(e1e(t))return!1;break;case 218:if(t.name)return!1;break;case 219:break;default:return!1}return typeof u=="function"?u(t):!0}function G0e(t){switch(t.kind){case 303:return!fye(t.name);case 304:return!!t.objectAssignmentInitializer;case 260:return at(t.name)&&!!t.initializer;case 169:return at(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 208:return at(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 172:return!!t.initializer;case 226:switch(t.operatorToken.kind){case 64:case 77:case 76:case 78:return at(t.left)}break;case 277:return!0}return!1}function zf(t,u){if(!G0e(t))return!1;switch(t.kind){case 303:return oP(t.initializer,u);case 304:return oP(t.objectAssignmentInitializer,u);case 260:case 169:case 208:case 172:return oP(t.initializer,u);case 226:return oP(t.right,u);case 277:return oP(t.expression,u)}}function J0e(t){return t.escapedText==="push"||t.escapedText==="unshift"}function A2(t){return QE(t).kind===169}function QE(t){for(;t.kind===208;)t=t.parent.parent;return t}function $0e(t){const u=t.kind;return u===176||u===218||u===262||u===219||u===174||u===177||u===178||u===267||u===312}function al(t){return fg(t.pos)||fg(t.end)}function WZe(t){return Ua(t,ca)||t}function U0e(t){const u=Z0e(t),s=t.kind===214&&t.arguments!==void 0;return q0e(t.kind,u,s)}function q0e(t,u,s){switch(t){case 214:return s?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(u){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function sP(t){const u=Z0e(t),s=t.kind===214&&t.arguments!==void 0;return zj(t.kind,u,s)}function Z0e(t){return t.kind===226?t.operatorToken.kind:t.kind===224||t.kind===225?t.operator:t.kind}function zj(t,u,s){switch(t){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(u){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Ij(u)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return s?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function Ij(t){switch(t){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function iB(t){return ei(t,u=>{switch(u.kind){case 294:return!!u.expression;case 12:return!u.containsOnlyTriviaWhiteSpaces;default:return!0}})}function nB(){let t=[];const u=[],s=new Map;let d=!1;return{add:p,lookup:f,getGlobalDiagnostics:E,getDiagnostics:v};function f(b){let B;if(b.file?B=s.get(b.file.fileName):B=t,!B)return;const k=Hl(B,b,el,Jq);if(k>=0)return B[k]}function p(b){let B;b.file?(B=s.get(b.file.fileName),B||(B=[],s.set(b.file.fileName,B),Nt(u,b.file.fileName,ch))):(d&&(d=!1,t=t.slice()),B=t),Nt(B,b,Jq)}function E(){return d=!0,t}function v(b){if(b)return s.get(b)||[];const B=vn(u,k=>s.get(k));return t.length&&B.unshift(...t),B}}function MTt(t){return t.replace(_Ye,"\\${")}function mye(t){return!!((t.templateFlags||0)&2048)}function Y0e(t){return t&&!!(B7(t)?mye(t):mye(t.head)||qe(t.templateSpans,u=>mye(u.literal)))}function GZe(t){return"\\u"+("0000"+t.toString(16).toUpperCase()).slice(-4)}function zTt(t,u,s){if(t.charCodeAt(0)===0){const d=s.charCodeAt(u+t.length);return d>=48&&d<=57?"\\x00":"\\0"}return CYe.get(t)||GZe(t.charCodeAt(0))}function kv(t,u){const s=u===96?vYe:u===39?xYe:DYe;return t.replace(s,zTt)}function Rj(t,u){return t=kv(t,u),yke.test(t)?t.replace(yke,s=>GZe(s.charCodeAt(0))):t}function ITt(t){return"&#x"+t.toString(16).toUpperCase()+";"}function RTt(t){return t.charCodeAt(0)===0?"�":kYe.get(t)||ITt(t.charCodeAt(0))}function Q0e(t,u){const s=u===39?yYe:bYe;return t.replace(s,RTt)}function G4(t){const u=t.length;return u>=2&&t.charCodeAt(0)===t.charCodeAt(u-1)&&OTt(t.charCodeAt(0))?t.substring(1,u-1):t}function OTt(t){return t===39||t===34||t===96}function uB(t){const u=t.charCodeAt(0);return u>=97&&u<=122||t.includes("-")}function Bq(t){const u=zP[1];for(let s=zP.length;s<=t;s++)zP.push(zP[s-1]+u);return zP[t]}function rB(){return zP[1].length}function Oj(t){var u,s,d,f,p,E=!1;function v(K){const Y=t7(K);Y.length>1?(f=f+Y.length-1,p=u.length-K.length+Cr(Y),d=p-u.length===0):d=!1}function b(K){K&&K.length&&(d&&(K=Bq(s)+K,d=!1),u+=K,v(K))}function B(K){K&&(E=!1),b(K)}function k(K){K&&(E=!0),b(K)}function T(){u="",s=0,d=!0,f=0,p=0,E=!1}function M(K){K!==void 0&&(u+=K,v(K),E=!1)}function z(K){K&&K.length&&B(K)}function j(K){(!d||K)&&(u+=t,f++,p=u.length,d=!0,E=!1)}function J(){return d?u.length:u.length+t.length}return T(),{write:B,rawWrite:M,writeLiteral:z,writeLine:j,increaseIndent:()=>{s++},decreaseIndent:()=>{s--},getIndent:()=>s,getTextPos:()=>u.length,getLine:()=>f,getColumn:()=>d?s*rB():u.length-p,getText:()=>u,isAtStartOfLine:()=>d,hasTrailingComment:()=>E,hasTrailingWhitespace:()=>!!u.length&&$3(u.charCodeAt(u.length-1)),clear:T,writeKeyword:B,writeOperator:B,writeParameter:B,writeProperty:B,writePunctuation:B,writeSpace:B,writeStringLiteral:B,writeSymbol:(K,Y)=>B(K),writeTrailingSemicolon:B,writeComment:k,getTextPosWithWriteLine:J}}function X0e(t){let u=!1;function s(){u&&(t.writeTrailingSemicolon(";"),u=!1)}return{...t,writeTrailingSemicolon(){u=!0},writeLiteral(d){s(),t.writeLiteral(d)},writeStringLiteral(d){s(),t.writeStringLiteral(d)},writeSymbol(d,f){s(),t.writeSymbol(d,f)},writePunctuation(d){s(),t.writePunctuation(d)},writeKeyword(d){s(),t.writeKeyword(d)},writeOperator(d){s(),t.writeOperator(d)},writeParameter(d){s(),t.writeParameter(d)},writeSpace(d){s(),t.writeSpace(d)},writeProperty(d){s(),t.writeProperty(d)},writeComment(d){s(),t.writeComment(d)},writeLine(){s(),t.writeLine()},increaseIndent(){s(),t.increaseIndent()},decreaseIndent(){s(),t.decreaseIndent()}}}function jj(t){return t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!1}function i5(t){return T1(jj(t))}function wq(t,u,s){return u.moduleName||ele(t,u.fileName,s&&s.fileName)}function JZe(t,u){return t.getCanonicalFileName($a(u,t.getCurrentDirectory()))}function pye(t,u,s){const d=u.getExternalModuleFileFromDeclaration(s);if(!d||d.isDeclarationFile)return;const f=q8(s);if(!(f&&t0(f)&&!am(f.text)&&!JZe(t,d.path).includes(JZe(t,Pd(t.getCommonSourceDirectory())))))return wq(t,d)}function ele(t,u,s){const d=b=>t.getCanonicalFileName(b),f=H0(s?dr(s):t.getCommonSourceDirectory(),t.getCurrentDirectory(),d),p=$a(u,t.getCurrentDirectory()),E=e7(f,p,f,d,!1),v=Eh(E);return s?l2(v):v}function gye(t,u,s){const d=u.getCompilerOptions();let f;return d.outDir?f=Eh(Nq(t,u,d.outDir)):f=Eh(t),f+s}function Eye(t,u){return Tq(t,u.getCompilerOptions(),u.getCurrentDirectory(),u.getCommonSourceDirectory(),s=>u.getCanonicalFileName(s))}function Tq(t,u,s,d,f){const p=u.declarationDir||u.outDir,E=p?Pq(t,p,s,d,f):t,v=Vj(E);return Eh(E)+v}function Vj(t){return Oc(t,[".mjs",".mts"])?".d.mts":Oc(t,[".cjs",".cts"])?".d.cts":Oc(t,[".json"])?".d.json.ts":".d.ts"}function _ye(t){return Oc(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Oc(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Oc(t,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function b0(t){return t.outFile||t.out}function Lq(t,u){var s;if(t.paths)return t.baseUrl??H.checkDefined(t.pathsBasePath||((s=u.getCurrentDirectory)==null?void 0:s.call(u)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function tle(t,u,s){const d=t.getCompilerOptions();if(b0(d)){const f=f1(d),p=d.emitDeclarationOnly||f===2||f===4;return ei(t.getSourceFiles(),E=>(p||!Bc(E))&&f7(E,t,s))}else{const f=u===void 0?t.getSourceFiles():[u];return ei(f,p=>f7(p,t,s))}}function f7(t,u,s){const d=u.getCompilerOptions();if(d.noEmitForJsFiles&&ph(t)||t.isDeclarationFile||u.isSourceFileFromExternalLibrary(t))return!1;if(s)return!0;if(u.isSourceOfProjectReferenceRedirect(t.fileName))return!1;if(!H4(t))return!0;if(u.getResolvedProjectReferenceToRedirect(t.fileName))return!1;if(b0(d))return!0;if(!d.outDir)return!1;if(d.rootDir||d.composite&&d.configFilePath){const f=$a(bM(d,()=>[],u.getCurrentDirectory(),u.getCanonicalFileName),u.getCurrentDirectory()),p=Pq(t.fileName,d.outDir,u.getCurrentDirectory(),f,u.getCanonicalFileName);if(fv(t.fileName,p,u.getCurrentDirectory(),!u.useCaseSensitiveFileNames())===0)return!1}return!0}function Nq(t,u,s){return Pq(t,s,u.getCurrentDirectory(),u.getCommonSourceDirectory(),d=>u.getCanonicalFileName(d))}function Pq(t,u,s,d,f){let p=$a(t,s);return p=f(p).indexOf(f(d))===0?p.substring(d.length):p,hr(u,p)}function lP(t,u,s,d,f,p,E){t.writeFile(s,d,f,v=>{u.add(lc(F.Could_not_write_file_0_Colon_1,s,v))},p,E)}function $Ze(t,u,s){if(t.length>KE(t)&&!s(t)){const d=dr(t);$Ze(d,u,s),u(t)}}function ile(t,u,s,d,f,p){try{d(t,u,s)}catch{$Ze(dr(Go(t)),f,p),d(t,u,s)}}function cP(t,u){const s=J3(t);return wN(s,u)}function ok(t,u){return wN(t,u)}function Q_(t){return Le(t.members,u=>dc(u)&&j4(u.body))}function dP(t){if(t&&t.parameters.length>0){const u=t.parameters.length===2&&B2(t.parameters[0]);return t.parameters[u?1:0]}}function Dye(t){const u=dP(t);return u&&u.type}function S2(t){if(t.parameters.length&&!Iv(t)){const u=t.parameters[0];if(B2(u))return u}}function B2(t){return w2(t.name)}function w2(t){return!!t&&t.kind===80&&nle(t)}function sk(t){return!!Ln(t,u=>u.kind===186?!0:u.kind===80||u.kind===166?!1:"quit")}function m7(t){if(!w2(t))return!1;for(;xf(t.parent)&&t.parent.left===t;)t=t.parent;return t.parent.kind===186}function nle(t){return t.escapedText==="this"}function lk(t,u){let s,d,f,p;return zx(u)?(s=u,u.kind===177?f=u:u.kind===178?p=u:H.fail("Accessor has wrong kind")):L(t,E=>{if(Bx(E)&&To(E)===To(u)){const v=ak(E.name),b=ak(u.name);v===b&&(s?d||(d=E):s=E,E.kind===177&&!f&&(f=E),E.kind===178&&!p&&(p=E))}}),{firstAccessor:s,secondAccessor:d,getAccessor:f,setAccessor:p}}function h1(t){if(!eu(t)&&Xc(t))return;const u=t.type;return u||!eu(t)?u:HO(t)?t.typeExpression&&t.typeExpression.type:Dv(t)}function xye(t){return t.type}function J4(t){return Iv(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(eu(t)?OO(t):void 0)}function Mq(t){return Ku(xv(t),u=>jTt(u)?u.typeParameters:void 0)}function jTt(t){return gg(t)&&!(t.parent.kind===327&&(t.parent.tags.some(K4)||t.parent.tags.some(TB)))}function vye(t){const u=dP(t);return u&&h1(u)}function Cye(t,u,s,d){bye(t,u,s.pos,d)}function bye(t,u,s,d){d&&d.length&&s!==d[0].pos&&ok(t,s)!==ok(t,d[0].pos)&&u.writeLine()}function yye(t,u,s,d){s!==d&&ok(t,s)!==ok(t,d)&&u.writeLine()}function kye(t,u,s,d,f,p,E,v){if(d&&d.length>0){f&&s.writeSpace(" ");let b=!1;for(const B of d)b&&(s.writeSpace(" "),b=!1),v(t,u,s,B.pos,B.end,E),B.hasTrailingNewLine?s.writeLine():b=!0;b&&p&&s.writeSpace(" ")}}function Fye(t,u,s,d,f,p,E){let v,b;if(E?f.pos===0&&(v=ei(K_(t,f.pos),B)):v=K_(t,f.pos),v){const k=[];let T;for(const M of v){if(T){const z=ok(u,T.end);if(ok(u,M.pos)>=z+2)break}k.push(M),T=M}if(k.length){const M=ok(u,Cr(k).end);ok(u,ms(t,f.pos))>=M+2&&(Cye(u,s,f,v),kye(t,u,s,k,!1,!0,p,d),b={nodePos:f.pos,detachedCommentEndPos:Cr(k).end})}}return b;function B(k){return qU(t,k.pos)}}function aB(t,u,s,d,f,p){if(t.charCodeAt(d+1)===42){const E=b8(u,d),v=u.length;let b;for(let B=d,k=E.line;B0){let j=z%rB();const J=Bq((z-j)/rB());for(s.rawWrite(J);j;)s.rawWrite(" "),j--}else s.rawWrite("")}VTt(t,f,s,p,B,T),B=T}}else s.writeComment(t.substring(d,f))}function VTt(t,u,s,d,f,p){const E=Math.min(u,p-1),v=t.substring(f,E).trim();v?(s.writeComment(v),E!==u&&s.writeLine()):s.rawWrite(d)}function UZe(t,u,s){let d=0;for(;u=0&&t.kind<=165?0:(t.modifierFlagsCache&536870912||(t.modifierFlagsCache=rle(t)|536870912),s||u&&eu(t)?(!(t.modifierFlagsCache&268435456)&&t.parent&&(t.modifierFlagsCache|=qZe(t)|268435456),ZZe(t.modifierFlagsCache)):HTt(t.modifierFlagsCache))}function gh(t){return Bye(t,!0)}function wye(t){return Bye(t,!0,!0)}function Ix(t){return Bye(t,!1)}function qZe(t){let u=0;return t.parent&&!eo(t)&&(eu(t)&&(K2e(t)&&(u|=8388608),W2e(t)&&(u|=16777216),G2e(t)&&(u|=33554432),J2e(t)&&(u|=67108864),$2e(t)&&(u|=134217728)),U2e(t)&&(u|=65536)),u}function HTt(t){return t&65535}function ZZe(t){return t&131071|(t&260046848)>>>23}function KTt(t){return ZZe(qZe(t))}function Tye(t){return rle(t)|KTt(t)}function rle(t){let u=Op(t)?eE(t.modifiers):0;return(t.flags&8||t.kind===80&&t.flags&4096)&&(u|=32),u}function eE(t){let u=0;if(t)for(const s of t)u|=g7(s.kind);return u}function g7(t){switch(t){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function YZe(t){return t===57||t===56}function Lye(t){return YZe(t)||t===54}function fP(t){return t===76||t===77||t===78}function ale(t){return tu(t)&&fP(t.operatorToken.kind)}function Hj(t){return YZe(t)||t===61}function Kj(t){return tu(t)&&Hj(t.operatorToken.kind)}function n5(t){return t>=64&&t<=79}function ole(t){const u=sle(t);return u&&!u.isImplements?u.class:void 0}function sle(t){if(l5(t)){if(fm(t.parent)&&gr(t.parent.parent))return{class:t.parent.parent,isImplements:t.parent.token===119};if(wB(t.parent)){const u=rk(t.parent);if(u&&gr(u))return{class:u,isImplements:!1}}}}function od(t,u){return tu(t)&&(u?t.operatorToken.kind===64:n5(t.operatorToken.kind))&&_f(t.left)}function QZe(t){return od(t.parent)&&t.parent.left===t}function u5(t){if(od(t,!0)){const u=t.left.kind;return u===210||u===209}return!1}function Wj(t){return ole(t)!==void 0}function Xl(t){return t.kind===80||Gj(t)}function dm(t){switch(t.kind){case 80:return t;case 166:do t=t.left;while(t.kind!==80);return t;case 211:do t=t.expression;while(t.kind!==80);return t}}function mP(t){return t.kind===80||t.kind===110||t.kind===108||t.kind===236||t.kind===211&&mP(t.expression)||t.kind===217&&mP(t.expression)}function Gj(t){return Iu(t)&&at(t.name)&&Xl(t.expression)}function Jj(t){if(Iu(t)){const u=Jj(t.expression);if(u!==void 0)return u+"."+Mf(t.name)}else if(W0(t)){const u=Jj(t.expression);if(u!==void 0&&Ac(t.argumentExpression))return u+"."+ak(t.argumentExpression)}else{if(at(t))return Yr(t.escapedText);if(mg(t))return MP(t)}}function Rx(t){return y2(t)&&Y3(t)==="prototype"}function pP(t){return t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t||t.parent.kind===236&&t.parent.name===t}function lle(t){return!!t.parent&&(Iu(t.parent)&&t.parent.name===t||W0(t.parent)&&t.parent.argumentExpression===t)}function Nye(t){return xf(t.parent)&&t.parent.right===t||Iu(t.parent)&&t.parent.name===t||zv(t.parent)&&t.parent.right===t}function Rq(t){return tu(t)&&t.operatorToken.kind===104}function Pye(t){return Rq(t.parent)&&t===t.parent.right}function cle(t){return t.kind===210&&t.properties.length===0}function Mye(t){return t.kind===209&&t.elements.length===0}function oB(t){if(!(!WTt(t)||!t.declarations)){for(const u of t.declarations)if(u.localSymbol)return u.localSymbol}}function WTt(t){return t&&S(t.declarations)>0&&Xu(t.declarations[0],2048)}function Oq(t){return Le(wYe,u=>Pl(t,u))}function GTt(t){const u=[],s=t.length;for(let d=0;d>6|192),u.push(f&63|128)):f<65536?(u.push(f>>12|224),u.push(f>>6&63|128),u.push(f&63|128)):f<131072?(u.push(f>>18|240),u.push(f>>12&63|128),u.push(f>>6&63|128),u.push(f&63|128)):H.assert(!1,"Unexpected code point")}return u}function zye(t){let u="";const s=GTt(t);let d=0;const f=s.length;let p,E,v,b;for(;d>2,E=(s[d]&3)<<4|s[d+1]>>4,v=(s[d+1]&15)<<2|s[d+2]>>6,b=s[d+2]&63,d+1>=f?v=b=64:d+2>=f&&(b=64),u+=fk.charAt(p)+fk.charAt(E)+fk.charAt(v)+fk.charAt(b),d+=3;return u}function JTt(t){let u="",s=0;const d=t.length;for(;s>4&3,k=(E&15)<<4|v>>2&15,T=(v&3)<<6|b&63;k===0&&v!==0?d.push(B):T===0&&b!==0?d.push(B,k):d.push(B,k,T),f+=4}return JTt(d)}function dle(t,u){const s=Ja(u)?u:u.readFile(t);if(!s)return;const d=ede(t,s);return d.error?void 0:d.config}function gP(t,u){return dle(t,u)||{}}function cg(t,u){return!u.directoryExists||u.directoryExists(t)}function r5(t){switch(t.newLine){case 0:return FYe;case 1:case void 0:return AYe}}function o4(t,u=t){return H.assert(u>=t||u===-1),{pos:t,end:u}}function jq(t,u){return o4(t.pos,u)}function Fv(t,u){return o4(u,t.end)}function a5(t){const u=Op(t)?lt(t.modifiers,p1):void 0;return u&&!fg(u.end)?Fv(t,u.end):t}function tE(t){if(bo(t)||cc(t))return Fv(t,t.name.pos);const u=Op(t)?Yu(t.modifiers):void 0;return u&&!fg(u.end)?Fv(t,u.end):a5(t)}function XZe(t){return t.pos===t.end}function hle(t,u){return o4(t,t+Jo(u).length)}function ck(t,u){return jye(t,t,u)}function Vq(t,u,s){return $4(EP(t,s,!1),EP(u,s,!1),s)}function Oye(t,u,s){return $4(t.end,u.end,s)}function jye(t,u,s){return $4(EP(t,s,!1),u.end,s)}function $j(t,u,s){return $4(t.end,EP(u,s,!1),s)}function fle(t,u,s,d){const f=EP(u,s,d);return TN(s,t.end,f)}function eYe(t,u,s){return TN(s,t.end,u.end)}function Vye(t,u){return!$4(t.pos,t.end,u)}function $4(t,u,s){return TN(s,t,u)===0}function EP(t,u,s){return fg(t.pos)?-1:ms(u.text,t.pos,!1,s)}function Hye(t,u,s,d){const f=ms(s.text,t,!1,d),p=$Tt(f,u,s);return TN(s,p??u,f)}function Kye(t,u,s,d){const f=ms(s.text,t,!1,d);return TN(s,t,Math.min(u,f))}function $Tt(t,u=0,s){for(;t-- >u;)if(!$3(s.text.charCodeAt(t)))return t}function mle(t){const u=Ua(t);if(u)switch(u.parent.kind){case 266:case 267:return u===u.parent.name}return!1}function _P(t){return ei(t.declarations,Uj)}function Uj(t){return ua(t)&&t.initializer!==void 0}function tYe(t){return t.watch&&Eu(t,"watch")}function dg(t){t.close()}function Wl(t){return t.flags&33554432?t.links.checkFlags:0}function s4(t,u=!1){if(t.valueDeclaration){const s=u&&t.declarations&&Le(t.declarations,Of)||t.flags&32768&&Le(t.declarations,Mm)||t.valueDeclaration,d=d2(s);return t.parent&&t.parent.flags&32?d:d&-8}if(Wl(t)&6){const s=t.links.checkFlags,d=s&1024?2:s&256?1:4,f=s&2048?256:0;return d|f}return t.flags&4194304?257:0}function Q1(t,u){return t.flags&2097152?u.getAliasedSymbol(t):t}function DP(t){return t.exportSymbol?t.exportSymbol.flags|t.flags:t.flags}function Hq(t){return xP(t)===1}function E7(t){return xP(t)!==0}function xP(t){const{parent:u}=t;switch(u==null?void 0:u.kind){case 217:return xP(u);case 225:case 224:const{operator:s}=u;return s===46||s===47?2:0;case 226:const{left:d,operatorToken:f}=u;return d===t&&n5(f.kind)?f.kind===64?1:2:0;case 211:return u.name!==t?0:xP(u);case 303:{const p=xP(u.parent);return t===u.name?UTt(p):p}case 304:return t===u.objectAssignmentInitializer?0:xP(u.parent);case 209:return xP(u);default:return 0}}function UTt(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return H.assertNever(t)}}function ple(t,u){if(!t||!u||Object.keys(t).length!==Object.keys(u).length)return!1;for(const s in t)if(typeof t[s]=="object"){if(!ple(t[s],u[s]))return!1}else if(typeof t[s]!="function"&&t[s]!==u[s])return!1;return!0}function uf(t,u){t.forEach(u),t.clear()}function X3(t,u,s){const{onDeleteValue:d,onExistingValue:f}=s;t.forEach((p,E)=>{const v=u.get(E);v===void 0?(t.delete(E),d(p,E)):f&&f(p,v,E)})}function sB(t,u,s){X3(t,u,s);const{createNewValue:d}=s;u.forEach((f,p)=>{t.has(p)||t.set(p,d(p,f))})}function Wye(t){if(t.flags&32){const u=eD(t);return!!u&&Xu(u,64)}return!1}function eD(t){var u;return(u=t.declarations)==null?void 0:u.find(gr)}function $u(t){return t.flags&3899393?t.objectFlags:0}function iYe(t,u){return!!$g(t,s=>u(s)?!0:void 0)}function Kq(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&SV(t.declarations[0])}function Gye({moduleSpecifier:t}){return ns(t)?t.text:Vc(t)}function gle(t){let u;return ro(t,s=>{j4(s)&&(u=s)},s=>{for(let d=s.length-1;d>=0;d--)if(j4(s[d])){u=s[d];break}}),u}function Pp(t,u,s=!0){return t.has(u)?!1:(t.set(u,s),!0)}function _7(t){return gr(t)||Dh(t)||hm(t)}function Ele(t){return t>=182&&t<=205||t===133||t===159||t===150||t===163||t===151||t===136||t===154||t===155||t===116||t===157||t===146||t===141||t===233||t===319||t===320||t===321||t===322||t===323||t===324||t===325}function N0(t){return t.kind===211||t.kind===212}function Jye(t){return t.kind===211?t.name:(H.assert(t.kind===212),t.argumentExpression)}function $ye(t){switch(t.kind){case"text":case"internal":return!0;default:return!1}}function Wq(t){return t.kind===275||t.kind===279}function vP(t){for(;N0(t);)t=t.expression;return t}function Uye(t,u){if(N0(t.parent)&&lle(t))return s(t.parent);function s(d){if(d.kind===211){const f=u(d.name);if(f!==void 0)return f}else if(d.kind===212)if(at(d.argumentExpression)||t0(d.argumentExpression)){const f=u(d.argumentExpression);if(f!==void 0)return f}else return;if(N0(d.expression))return s(d.expression);if(at(d.expression))return u(d.expression)}}function lB(t,u){for(;;){switch(t.kind){case 225:t=t.operand;continue;case 226:t=t.left;continue;case 227:t=t.condition;continue;case 215:t=t.tag;continue;case 213:if(u)return t;case 234:case 212:case 211:case 235:case 360:case 238:t=t.expression;continue}return t}}function qTt(t,u){this.flags=t,this.escapedName=u,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function ZTt(t,u){this.flags=u,(H.isDebugging||$n)&&(this.checker=t)}function YTt(t,u){this.flags=u,H.isDebugging&&(this.checker=t)}function qye(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function QTt(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function XTt(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function eLt(t,u,s){this.fileName=t,this.text=u,this.skipTrivia=s||(d=>d)}function Zye(t){kke.push(t),t(Yd)}function Yye(t){Object.assign(Yd,t),L(kke,u=>u(Yd))}function X_(t,u){return t.replace(/{(\d+)}/g,(s,d)=>""+H.checkDefined(u[+d]))}function Qye(t){EZ=t}function Xye(t){!EZ&&t&&(EZ=t())}function Xa(t){return EZ&&EZ[t.key]||t.message}function cB(t,u,s,d,f,...p){s+d>u.length&&(d=u.length-s),Ibe(u,s,d);let E=Xa(f);return qe(p)&&(E=X_(E,p)),{file:void 0,start:s,length:d,messageText:E,category:f.category,code:f.code,reportsUnnecessary:f.reportsUnnecessary,fileName:t}}function tLt(t){return t.file===void 0&&t.start!==void 0&&t.length!==void 0&&typeof t.fileName=="string"}function nYe(t,u){const s=u.fileName||"",d=u.text.length;H.assertEqual(t.fileName,s),H.assertLessThanOrEqual(t.start,d),H.assertLessThanOrEqual(t.start+t.length,d);const f={file:u,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){f.relatedInformation=[];for(const p of t.relatedInformation)tLt(p)&&p.fileName===s?(H.assertLessThanOrEqual(p.start,d),H.assertLessThanOrEqual(p.start+p.length,d),f.relatedInformation.push(nYe(p,u))):f.relatedInformation.push(p)}return f}function D7(t,u){const s=[];for(const d of t)s.push(nYe(d,u));return s}function zd(t,u,s,d,...f){Ibe(t.text,u,s);let p=Xa(d);return qe(f)&&(p=X_(p,f)),{file:t,start:u,length:s,messageText:p,category:d.category,code:d.code,reportsUnnecessary:d.reportsUnnecessary,reportsDeprecated:d.reportsDeprecated}}function _le(t,...u){let s=Xa(t);return qe(u)&&(s=X_(s,u)),s}function lc(t,...u){let s=Xa(t);return qe(u)&&(s=X_(s,u)),{file:void 0,start:void 0,length:void 0,messageText:s,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function Gq(t,u){return{file:void 0,start:void 0,length:void 0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:u}}function uo(t,u,...s){let d=Xa(u);return qe(s)&&(d=X_(d,s)),{messageText:d,category:u.category,code:u.code,next:t===void 0||Array.isArray(t)?t:[t]}}function eke(t,u){let s=t;for(;s.next;)s=s.next[0];s.next=[u]}function uYe(t){return t.file?t.file.path:void 0}function CP(t,u){return Jq(t,u)||iLt(t,u)||0}function Jq(t,u){return ch(uYe(t),uYe(u))||tl(t.start,u.start)||tl(t.length,u.length)||tl(t.code,u.code)||rYe(t.messageText,u.messageText)||0}function iLt(t,u){return!t.relatedInformation&&!u.relatedInformation?0:t.relatedInformation&&u.relatedInformation?tl(t.relatedInformation.length,u.relatedInformation.length)||L(t.relatedInformation,(s,d)=>{const f=u.relatedInformation[d];return CP(s,f)})||0:t.relatedInformation?-1:1}function rYe(t,u){if(typeof t=="string"&&typeof u=="string")return ch(t,u);if(typeof t=="string")return-1;if(typeof u=="string")return 1;let s=ch(t.messageText,u.messageText);if(s)return s;if(!t.next&&!u.next)return 0;if(!t.next)return-1;if(!u.next)return 1;const d=Math.min(t.next.length,u.next.length);for(let f=0;fu.next.length?1:0}function qj(t){return t===4||t===2||t===1||t===6?1:0}function aYe(t){if(t.transformFlags&2)return Ph(t)||j2(t)?t:ro(t,aYe)}function nLt(t){return t.isDeclarationFile?void 0:aYe(t)}function uLt(t){return(t.impliedNodeFormat===99||Oc(t.fileName,[".cjs",".cts",".mjs",".mts"]))&&!t.isDeclarationFile?!0:void 0}function Zj(t){switch(tke(t)){case 3:return f=>{f.externalModuleIndicator=jV(f)||!f.isDeclarationFile||void 0};case 1:return f=>{f.externalModuleIndicator=jV(f)};case 2:const u=[jV];(t.jsx===4||t.jsx===5)&&u.push(nLt),u.push(uLt);const s=lg(...u);return f=>void(f.externalModuleIndicator=s(f))}}function Is(t){return t.target??(t.module===100&&9||t.module===199&&99||1)}function f1(t){return typeof t.module=="number"?t.module:Is(t)>=2?5:1}function $q(t){return t>=5&&t<=99}function m1(t){let u=t.moduleResolution;if(u===void 0)switch(f1(t)){case 1:u=2;break;case 100:u=3;break;case 199:u=99;break;default:u=1;break}return u}function tke(t){return t.moduleDetection||(f1(t)===100||f1(t)===199?3:2)}function Uq(t){switch(f1(t)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function hg(t){return!!(t.isolatedModules||t.verbatimModuleSyntax)}function Dle(t){return t.verbatimModuleSyntax||t.isolatedModules&&t.preserveValueImports}function ike(t){return t.allowUnreachableCode===!1}function nke(t){return t.allowUnusedLabels===!1}function qq(t){return!!(l4(t)&&t.declarationMap)}function XE(t){if(t.esModuleInterop!==void 0)return t.esModuleInterop;switch(f1(t)){case 100:case 199:return!0}}function x7(t){return t.allowSyntheticDefaultImports!==void 0?t.allowSyntheticDefaultImports:XE(t)||f1(t)===4||m1(t)===100}function v7(t){return t>=3&&t<=99||t===100}function Zq(t){return!!t.noDtsResolution||m1(t)!==100}function xle(t){const u=m1(t);if(!v7(u))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(u){case 3:case 99:case 100:return!0}return!1}function oYe(t){const u=m1(t);if(!v7(u))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(u){case 3:case 99:case 100:return!0}return!1}function L2(t){return t.resolveJsonModule!==void 0?t.resolveJsonModule:m1(t)===100}function l4(t){return!!(t.declaration||t.composite)}function dk(t){return!!(t.preserveConstEnums||hg(t))}function Yj(t){return!!(t.incremental||t.composite)}function U4(t,u){return t[u]===void 0?!!t.strict:!!t[u]}function Av(t){return t.allowJs===void 0?!!t.checkJs:t.allowJs}function Qj(t){return t.useDefineForClassFields===void 0?Is(t)>=9:t.useDefineForClassFields}function uke(t){return t.useDefineForClassFields!==!1&&Is(t)>=9}function rke(t,u){return z8(u,t,dde)}function ake(t,u){return z8(u,t,hde)}function oke(t,u){return z8(u,t,fde)}function Yq(t,u){return u.strictFlag?U4(t,u.name):u.allowJsFlag?Av(t):t[u.name]}function Qq(t){const u=t.jsx;return u===2||u===4||u===5}function Xq(t,u){const s=u==null?void 0:u.pragmas.get("jsximportsource"),d=Ha(s)?s[s.length-1]:s;return t.jsx===4||t.jsx===5||t.jsxImportSource||d?(d==null?void 0:d.arguments.factory)||t.jsxImportSource||"react":void 0}function eZ(t,u){return t?`${t}/${u.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function vle(t){let u=!1;for(let s=0;sf,getSymlinkedDirectories:()=>s,getSymlinkedDirectoriesByRealpath:()=>d,setSymlinkedFile:(v,b)=>(f||(f=new Map)).set(v,b),setSymlinkedDirectory:(v,b)=>{let B=H0(v,t,u);wP(B)||(B=Pd(B),b!==!1&&!(s!=null&&s.has(B))&&(d||(d=Bm())).add(b.realPath,v),(s||(s=new Map)).set(B,b))},setSymlinksFromResolutions(v,b,B){H.assert(!p),p=!0,v(k=>E(this,k.resolvedModule)),b(k=>E(this,k.resolvedTypeReferenceDirective)),B.forEach(k=>E(this,k.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>p};function E(v,b){if(!b||!b.originalPath||!b.resolvedFileName)return;const{resolvedFileName:B,originalPath:k}=b;v.setSymlinkedFile(H0(k,t,u),B);const[T,M]=rLt(B,k,t,u)||_t;T&&M&&v.setSymlinkedDirectory(M,{real:Pd(T),realPath:Pd(H0(T,t,u))})}}function rLt(t,u,s,d){const f=bd($a(t,s)),p=bd($a(u,s));let E=!1;for(;f.length>=2&&p.length>=2&&!sYe(f[f.length-2],d)&&!sYe(p[p.length-2],d)&&d(f[f.length-1])===d(p[p.length-1]);)f.pop(),p.pop(),E=!0;return E?[bx(f),bx(p)]:void 0}function sYe(t,u){return t!==void 0&&(u(t)==="node_modules"||Na(t,"@"))}function aLt(t){return Cse(t.charCodeAt(0))?t.slice(1):void 0}function ble(t,u,s){const d=coe(t,u,s);return d===void 0?void 0:aLt(d)}function lYe(t){return t.replace(Jle,oLt)}function oLt(t){return"\\"+t}function bP(t,u,s){const d=tZ(t,u,s);return!d||!d.length?void 0:`^(${d.map(E=>`(${E})`).join("|")})${s==="exclude"?"($|/)":"$"}`}function tZ(t,u,s){if(!(t===void 0||t.length===0))return Ku(t,d=>d&&cYe(d,u,s,Bke[s]))}function yle(t){return!/[.*?]/.test(t)}function kle(t,u,s){const d=t&&cYe(t,u,s,Bke[s]);return d&&`^(${d})${s==="exclude"?"($|/)":"$"}`}function cYe(t,u,s,{singleAsteriskRegexFragment:d,doubleAsteriskRegexFragment:f,replaceWildcardCharacter:p}){let E="",v=!1;const b=yO(t,u),B=Cr(b);if(s!=="exclude"&&B==="**")return;b[0]=hv(b[0]),yle(B)&&b.push("**","*");let k=0;for(let T of b){if(T==="**")E+=f;else if(s==="directories"&&(E+="(",k++),v&&(E+=nl),s!=="exclude"){let M="";T.charCodeAt(0)===42?(M+="([^./]"+d+")?",T=T.substr(1)):T.charCodeAt(0)===63&&(M+="[^./]",T=T.substr(1)),M+=T.replace(Jle,p),M!==T&&(E+=Ule),E+=M}else E+=T.replace(Jle,p);v=!0}for(;k>0;)E+=")?",k--;return E}function ske(t,u){return t==="*"?u:t==="?"?"[^/]":"\\"+t}function iZ(t,u,s,d,f){t=Go(t),f=Go(f);const p=hr(f,t);return{includeFilePatterns:Kt(tZ(s,p,"files"),E=>`^${E}$`),includeFilePattern:bP(s,p,"files"),includeDirectoryPattern:bP(s,p,"directories"),excludePattern:bP(u,p,"exclude"),basePaths:sLt(t,s,d)}}function Ox(t,u){return new RegExp(t,u?"":"i")}function Fle(t,u,s,d,f,p,E,v,b){t=Go(t),p=Go(p);const B=iZ(t,s,d,f,p),k=B.includeFilePatterns&&B.includeFilePatterns.map(Y=>Ox(Y,f)),T=B.includeDirectoryPattern&&Ox(B.includeDirectoryPattern,f),M=B.excludePattern&&Ox(B.excludePattern,f),z=k?k.map(()=>[]):[[]],j=new Map,J=T1(f);for(const Y of B.basePaths)K(Y,hr(p,Y),E);return Va(z);function K(Y,oe,se){const ge=J(b(oe));if(j.has(ge))return;j.set(ge,!0);const{files:ae,directories:Ce}=v(Y);for(const ne of Lh(ae,ch)){const ve=hr(Y,ne),Se=hr(oe,ne);if(!(u&&!Oc(ve,u))&&!(M&&M.test(Se)))if(!k)z[0].push(ve);else{const Ne=$e(k,pe=>pe.test(Se));Ne!==-1&&z[Ne].push(ve)}}if(!(se!==void 0&&(se--,se===0)))for(const ne of Lh(Ce,ch)){const ve=hr(Y,ne),Se=hr(oe,ne);(!T||T.test(Se))&&(!M||!M.test(Se))&&K(ve,Se,se)}}}function sLt(t,u,s){const d=[t];if(u){const f=[];for(const p of u){const E=Nf(p)?p:Go(hr(t,p));f.push(lLt(E))}f.sort(vN(!s));for(const p of f)ye(d,E=>!WE(E,p,t,!s))&&d.push(p)}return d}function lLt(t){const u=Ot(t,SYe);return u<0?XA(t)?hv(dr(t)):t:t.substring(0,t.lastIndexOf(nl,u))}function nZ(t,u){return u||uZ(t)||3}function uZ(t){switch(t.substr(t.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function yP(t,u){const s=t&&Av(t);if(!u||u.length===0)return s?_Z:pB;const d=s?_Z:pB,f=Va(d);return[...d,...Ui(u,E=>E.scriptKind===7||s&&cLt(E.scriptKind)&&!f.includes(E.extension)?[E.extension]:void 0)]}function Xj(t,u){return!t||!L2(t)?u:u===_Z?TYe:u===pB?BYe:[...u,[".json"]]}function cLt(t){return t===1||t===2}function N2(t){return qe(gB,u=>Pl(t,u))}function hk(t){return qe(qle,u=>Pl(t,u))}function lke({imports:t},u=lg(N2,hk)){return G(t,({text:s})=>am(s)&&!Oc(s,dV)?u(s):void 0)||!1}function Ale(t,u,s,d){if(t==="js"||u===99)return GB(s)&&f()!==2?3:2;if(t==="minimal")return 0;if(t==="index")return 1;if(!GB(s))return lke(d)?2:0;return f();function f(){let p=!1;const E=d.imports.length?d.imports.map(v=>v.text):ph(d)?dLt(d).map(v=>v.arguments[0].text):_t;for(const v of E)if(am(v)){if(Oc(v,dV))continue;if(hk(v))return 3;N2(v)&&(p=!0)}return p?2:0}}function dLt(t){let u=0,s;for(const d of t.statements){if(u>3)break;T0e(d)?s=an(s,d.declarationList.declarations.map(f=>f.initializer)):Id(d)&&Df(d.expression,!0)?s=Ei(s,d.expression):u++}return s||_t}function cke(t,u,s){if(!t)return!1;const d=yP(u,s);for(const f of Va(Xj(u,d)))if(Pl(t,f))return!0;return!1}function dYe(t){const u=t.match(/\//g);return u?u.length:0}function eV(t,u){return tl(dYe(t),dYe(u))}function Eh(t){for(const u of Qle){const s=dke(t,u);if(s!==void 0)return s}return t}function dke(t,u){return Pl(t,u)?tV(t,u):void 0}function tV(t,u){return t.substring(0,t.length-u.length)}function Sv(t,u){return kO(t,u,Qle,!1)}function dB(t){const u=t.indexOf("*");return u===-1?t:t.indexOf("*",u+1)!==-1?void 0:{prefix:t.substr(0,u),suffix:t.substr(u+1)}}function rZ(t){return Ui(Ts(t),u=>dB(u))}function fg(t){return!(t>=0)}function aZ(t){return t===".ts"||t===".tsx"||t===".d.ts"||t===".cts"||t===".mts"||t===".d.mts"||t===".d.cts"||Na(t,".d.")&&oc(t,".ts")}function kP(t){return aZ(t)||t===".json"}function C7(t){const u=e3(t);return u!==void 0?u:H.fail(`File ${t} has unknown extension.`)}function hYe(t){return e3(t)!==void 0}function e3(t){return Le(Qle,u=>Pl(t,u))}function iV(t,u){return t.checkJsDirective?t.checkJsDirective.enabled:u.checkJs}function Sle(t,u){const s=[];for(const d of t){if(d===u)return u;Ja(d)||s.push(d)}return loe(s,d=>d,u)}function Ble(t,u){const s=t.indexOf(u);return H.assert(s!==-1),t.slice(s)}function ps(t,...u){return u.length&&(t.relatedInformation||(t.relatedInformation=[]),H.assert(t.relatedInformation!==_t,"Diagnostic had empty array singleton for related info, but is still being constructed!"),t.relatedInformation.push(...u)),t}function hke(t,u){H.assert(t.length!==0);let s=u(t[0]),d=s;for(let f=1;fd&&(d=p)}return{min:s,max:d}}function wle(t){return{pos:Qy(t),end:t.end}}function Tle(t,u){const s=u.pos-1,d=Math.min(t.text.length,ms(t.text,u.end)+1);return{pos:s,end:d}}function FP(t,u,s){return u.skipLibCheck&&t.isDeclarationFile||u.skipDefaultLibCheck&&t.hasNoDefaultLib||s.isSourceOfProjectReferenceRedirect(t.fileName)}function oZ(t,u){return t===u||typeof t=="object"&&t!==null&&typeof u=="object"&&u!==null&&UA(t,u,oZ)}function AP(t){let u;switch(t.charCodeAt(1)){case 98:case 66:u=1;break;case 111:case 79:u=3;break;case 120:case 88:u=4;break;default:const B=t.length-1;let k=0;for(;t.charCodeAt(k)===48;)k++;return t.slice(k,B)||"0"}const s=2,d=t.length-1,f=(d-s)*u,p=new Uint16Array((f>>>4)+(f&15?1:0));for(let B=d-1,k=0;B>=s;B--,k+=u){const T=k>>>4,M=t.charCodeAt(B),j=(M<=57?M-48:10+M-(M<=70?65:97))<<(k&15);p[T]|=j;const J=j>>>16;J&&(p[T+1]|=J)}let E="",v=p.length-1,b=!0;for(;b;){let B=0;b=!1;for(let k=v;k>=0;k--){const T=B<<16|p[k],M=T/10|0;p[k]=M,B=T-M*10,M&&!b&&(v=k,b=!0)}E=B+E}return E}function P2({negative:t,base10Value:u}){return(t&&u!=="0"?"-":"")+u}function fke(t){if(sZ(t,!1))return Lle(t)}function Lle(t){const u=t.startsWith("-"),s=AP(`${u?t.slice(1):t}n`);return{negative:u,base10Value:s}}function sZ(t,u){if(t==="")return!1;const s=ZD(99,!1);let d=!0;s.setOnError(()=>d=!1),s.setText(t+"n");let f=s.scan();const p=f===41;p&&(f=s.scan());const E=s.getTokenFlags();return d&&f===10&&s.getTokenEnd()===t.length+1&&!(E&512)&&(!u||t===P2({negative:p,base10Value:AP(s.getTokenValue())}))}function Bv(t){return!!(t.flags&33554432)||mq(t)||mLt(t)||fLt(t)||!(q_(t)||hLt(t))}function hLt(t){return at(t)&&mm(t.parent)&&t.parent.name===t}function fLt(t){for(;t.kind===80||t.kind===211;)t=t.parent;if(t.kind!==167)return!1;if(Xu(t.parent,64))return!0;const u=t.parent.parent.kind;return u===264||u===187}function mLt(t){if(t.kind!==80)return!1;const u=Ln(t.parent,s=>{switch(s.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(u==null?void 0:u.token)===119||(u==null?void 0:u.parent.kind)===264}function mke(t){return Y4(t)&&at(t.typeName)}function pke(t,u=vx){if(t.length<2)return!0;const s=t[0];for(let d=1,f=t.length;dt.includes(u))}function _ke(t){if(!t.parent)return;switch(t.kind){case 168:const{parent:s}=t;return s.kind===195?void 0:s.typeParameters;case 169:return t.parent.parameters;case 204:return t.parent.templateSpans;case 239:return t.parent.templateSpans;case 170:{const{parent:d}=t;return kk(d)?d.modifiers:void 0}case 298:return t.parent.heritageClauses}const{parent:u}=t;if(M8(t))return V7(t.parent)?void 0:t.parent.tags;switch(u.kind){case 187:case 264:return Uy(t)?u.members:void 0;case 192:case 193:return u.types;case 189:case 209:case 361:case 275:case 279:return u.elements;case 210:case 292:return u.properties;case 213:case 214:return Qr(t)?u.typeArguments:u.expression===t?void 0:u.arguments;case 284:case 288:return QO(t)?u.children:void 0;case 286:case 285:return Qr(t)?u.typeArguments:void 0;case 241:case 296:case 297:case 268:return u.statements;case 269:return u.clauses;case 263:case 231:return qd(t)?u.members:void 0;case 266:return K2(t)?u.members:void 0;case 312:return u.statements}}function lZ(t){if(!t.typeParameters){if(qe(t.parameters,u=>!h1(u)))return!0;if(t.kind!==219){const u=Hi(t.parameters);if(!(u&&B2(u)))return!0}}return!1}function TP(t){return t==="Infinity"||t==="-Infinity"||t==="NaN"}function Dke(t){return t.kind===260&&t.parent.kind===299}function Ple(t){const u=t.valueDeclaration&&QE(t.valueDeclaration);return!!u&&(eo(u)||Dke(u))}function M2(t){return t.kind===218||t.kind===219}function z2(t){return t.replace(/\$/gm,()=>"\\$")}function t3(t){return(+t).toString()===t}function cZ(t,u,s,d,f){const p=f&&t==="new";return!p&&Tm(t,u)?q.createIdentifier(t):!d&&!p&&t3(t)&&+t>=0?q.createNumericLiteral(+t):q.createStringLiteral(t,!!s)}function LP(t){return!!(t.flags&262144&&t.isThisType)}function dZ(t){let u=0,s=0,d=0,f=0,p;(B=>{B[B.BeforeNodeModules=0]="BeforeNodeModules",B[B.NodeModules=1]="NodeModules",B[B.Scope=2]="Scope",B[B.PackageContent=3]="PackageContent"})(p||(p={}));let E=0,v=0,b=0;for(;v>=0;)switch(E=v,v=t.indexOf("/",E+1),b){case 0:t.indexOf(a_,E)===E&&(u=E,s=v,b=1);break;case 1:case 2:b===1&&t.charAt(E+1)==="@"?b=2:(d=v,b=3);break;case 3:t.indexOf(a_,E)===E?b=1:b=3;break}return f=E,b>1?{topLevelNodeModulesIndex:u,topLevelPackageNameIndex:s,packageRootIndex:d,fileNameIndex:f}:void 0}function fYe(t){var u;return t.kind===348?(u=t.typeExpression)==null?void 0:u.type:t.type}function mB(t){switch(t.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return t.isTypeOnly;case 276:case 281:return t.parent.parent.isTypeOnly;default:return!1}}function nV(t){return Mv(t)||Gl(t)||Xc(t)||Kc(t)||Dh(t)||mB(t)||Ec(t)&&!_2(t)&&!Zg(t)}function uV(t){if(!HO(t))return!1;const{isBracketed:u,typeExpression:s}=t;return u||!!s&&s.type.kind===323}function Mle(t,u){if(t.length===0)return!1;const s=t.charCodeAt(0);return s===35?t.length>1&&W_(t.charCodeAt(1),u):W_(s,u)}function xke(t){var u;return((u=oce(t))==null?void 0:u.kind)===0}function rV(t){return eu(t)&&(t.type&&t.type.kind===323||A8(t).some(({isBracketed:u,typeExpression:s})=>u||!!s&&s.type.kind===323))}function NP(t){switch(t.kind){case 172:case 171:return!!t.questionToken;case 169:return!!t.questionToken||rV(t);case 355:case 348:return uV(t);default:return!1}}function vke(t){const u=t.kind;return(u===211||u===212)&&I7(t.expression)}function zle(t){return eu(t)&&vf(t)&&sm(t)&&!!Ose(t)}function Ile(t){return H.checkDefined(hZ(t))}function hZ(t){const u=Ose(t);return u&&u.typeExpression&&u.typeExpression.type}function PP(t){return at(t)?t.escapedText:b7(t)}function aV(t){return at(t)?mu(t):MP(t)}function Cke(t){const u=t.kind;return u===80||u===295}function b7(t){return`${t.namespace.escapedText}:${mu(t.name)}`}function MP(t){return`${mu(t.namespace)}:${mu(t.name)}`}function Rle(t){return at(t)?mu(t):MP(t)}function q4(t){return!!(t.flags&8576)}function Z4(t){return t.flags&8192?t.escapedName:t.flags&384?kl(""+t.value):H.fail()}function fZ(t){return!!t&&(Iu(t)||W0(t)||tu(t))}function bke(t){return t===void 0?!1:!!$B(t.attributes)}var mZ,Vx,oV,pZ,sV,gZ,Ole,jle,mYe,pYe,Vle,gYe,EYe,Hle,Kle,Wle,Gle,_Ye,DYe,xYe,vYe,CYe,yke,bYe,yYe,kYe,zP,fk,FYe,AYe,Yd,kke,EZ,Jle,SYe,$le,Ule,Fke,Ake,Ske,Bke,pB,qle,BYe,wYe,Zle,gB,_Z,TYe,lV,cV,dV,Yle,Qle,DZ,gLt=o({"src/compiler/utilities.ts"(){Ao(),mZ=[],Vx="tslib",oV=160,pZ=1e6,sV=DTt(),gZ=Nh(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:_t})),AsyncIterator:new Map(Object.entries({es2015:_t})),Atomics:new Map(Object.entries({es2017:_t})),SharedArrayBuffer:new Map(Object.entries({es2017:_t})),AsyncIterable:new Map(Object.entries({es2018:_t})),AsyncIterableIterator:new Map(Object.entries({es2018:_t})),AsyncGenerator:new Map(Object.entries({es2018:_t})),AsyncGeneratorFunction:new Map(Object.entries({es2018:_t})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:_t,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:_t})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:_t,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:_t,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),Ole=(t=>(t[t.None=0]="None",t[t.NeverAsciiEscape=1]="NeverAsciiEscape",t[t.JsxAttributeEscape=2]="JsxAttributeEscape",t[t.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",t[t.AllowNumericSeparator=8]="AllowNumericSeparator",t))(Ole||{}),jle=/^(\/\/\/\s*/,mYe=/^(\/\/\/\s*/,pYe=/^(\/\/\/\s*/,Vle=/^(\/\/\/\s*/,gYe=/^\/\/\/\s*/,EYe=/^(\/\/\/\s*/,Hle=(t=>(t[t.None=0]="None",t[t.Definite=1]="Definite",t[t.Compound=2]="Compound",t))(Hle||{}),Kle=(t=>(t[t.Normal=0]="Normal",t[t.Generator=1]="Generator",t[t.Async=2]="Async",t[t.Invalid=4]="Invalid",t[t.AsyncGenerator=3]="AsyncGenerator",t))(Kle||{}),Wle=(t=>(t[t.Left=0]="Left",t[t.Right=1]="Right",t))(Wle||{}),Gle=(t=>(t[t.Comma=0]="Comma",t[t.Spread=1]="Spread",t[t.Yield=2]="Yield",t[t.Assignment=3]="Assignment",t[t.Conditional=4]="Conditional",t[t.Coalesce=4]="Coalesce",t[t.LogicalOR=5]="LogicalOR",t[t.LogicalAND=6]="LogicalAND",t[t.BitwiseOR=7]="BitwiseOR",t[t.BitwiseXOR=8]="BitwiseXOR",t[t.BitwiseAND=9]="BitwiseAND",t[t.Equality=10]="Equality",t[t.Relational=11]="Relational",t[t.Shift=12]="Shift",t[t.Additive=13]="Additive",t[t.Multiplicative=14]="Multiplicative",t[t.Exponentiation=15]="Exponentiation",t[t.Unary=16]="Unary",t[t.Update=17]="Update",t[t.LeftHandSide=18]="LeftHandSide",t[t.Member=19]="Member",t[t.Primary=20]="Primary",t[t.Highest=20]="Highest",t[t.Lowest=0]="Lowest",t[t.Invalid=-1]="Invalid",t))(Gle||{}),_Ye=/\$\{/g,DYe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,xYe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,vYe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,CYe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),yke=/[^\u0000-\u007F]/g,bYe=/["\u0000-\u001f\u2028\u2029\u0085]/g,yYe=/['\u0000-\u001f\u2028\u2029\u0085]/g,kYe=new Map(Object.entries({'"':""","'":"'"})),zP=[""," "],fk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",FYe=`\r -`,AYe=` -`,Yd={getNodeConstructor:()=>qye,getTokenConstructor:()=>QTt,getIdentifierConstructor:()=>XTt,getPrivateIdentifierConstructor:()=>qye,getSourceFileConstructor:()=>qye,getSymbolConstructor:()=>qTt,getTypeConstructor:()=>ZTt,getSignatureConstructor:()=>YTt,getSourceMapSourceConstructor:()=>eLt},kke=[],Jle=/[^\w\s/]/g,SYe=[42,63],$le=["node_modules","bower_components","jspm_packages"],Ule=`(?!(${$le.join("|")})(/|$))`,Fke={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Ule}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>ske(t,Fke.singleAsteriskRegexFragment)},Ake={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Ule}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>ske(t,Ake.singleAsteriskRegexFragment)},Ske={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:t=>ske(t,Ske.singleAsteriskRegexFragment)},Bke={files:Fke,directories:Ake,exclude:Ske},pB=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],qle=Va(pB),BYe=[...pB,[".json"]],wYe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Zle=[[".js",".jsx"],[".mjs"],[".cjs"]],gB=Va(Zle),_Z=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],TYe=[..._Z,[".json"]],lV=[".d.ts",".d.cts",".d.mts"],cV=[".ts",".cts",".mts",".tsx"],dV=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],Yle=(t=>(t[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",t[t.TsExtension=3]="TsExtension",t))(Yle||{}),Qle=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],DZ={files:_t,directories:_t}}});function wke(){let t,u,s,d,f;return{createBaseSourceFileNode:p,createBaseIdentifierNode:E,createBasePrivateIdentifierNode:v,createBaseTokenNode:b,createBaseNode:B};function p(k){return new(f||(f=Yd.getSourceFileConstructor()))(k,-1,-1)}function E(k){return new(s||(s=Yd.getIdentifierConstructor()))(k,-1,-1)}function v(k){return new(d||(d=Yd.getPrivateIdentifierConstructor()))(k,-1,-1)}function b(k){return new(u||(u=Yd.getTokenConstructor()))(k,-1,-1)}function B(k){return new(t||(t=Yd.getNodeConstructor()))(k,-1,-1)}}var ELt=o({"src/compiler/factory/baseNodeFactory.ts"(){Ao()}});function Tke(t){let u,s;return{getParenthesizeLeftSideOfBinaryForOperator:d,getParenthesizeRightSideOfBinaryForOperator:f,parenthesizeLeftSideOfBinary:B,parenthesizeRightSideOfBinary:k,parenthesizeExpressionOfComputedPropertyName:T,parenthesizeConditionOfConditionalExpression:M,parenthesizeBranchOfConditionalExpression:z,parenthesizeExpressionOfExportDefault:j,parenthesizeExpressionOfNew:J,parenthesizeLeftSideOfAccess:K,parenthesizeOperandOfPostfixUnary:Y,parenthesizeOperandOfPrefixUnary:oe,parenthesizeExpressionsOfCommaDelimitedList:se,parenthesizeExpressionForDisallowedComma:ge,parenthesizeExpressionOfExpressionStatement:ae,parenthesizeConciseBodyOfArrowFunction:Ce,parenthesizeCheckTypeOfConditionalType:ne,parenthesizeExtendsTypeOfConditionalType:ve,parenthesizeConstituentTypesOfUnionType:Ne,parenthesizeConstituentTypeOfUnionType:Se,parenthesizeConstituentTypesOfIntersectionType:fe,parenthesizeConstituentTypeOfIntersectionType:pe,parenthesizeOperandOfTypeOperator:xe,parenthesizeOperandOfReadonlyTypeOperator:Be,parenthesizeNonArrayTypeOfPostfixType:We,parenthesizeElementTypesOfTupleType:Ae,parenthesizeElementTypeOfTupleType:De,parenthesizeTypeOfOptionalType:Ge,parenthesizeTypeArguments:je,parenthesizeLeadingTypeArgument:ft};function d(Ke){u||(u=new Map);let Gt=u.get(Ke);return Gt||(Gt=Yt=>B(Ke,Yt),u.set(Ke,Gt)),Gt}function f(Ke){s||(s=new Map);let Gt=s.get(Ke);return Gt||(Gt=Yt=>k(Ke,void 0,Yt),s.set(Ke,Gt)),Gt}function p(Ke,Gt,Yt,Ie){const st=zj(226,Ke),St=q0e(226,Ke),It=wp(Gt);if(!Yt&&Gt.kind===219&&st>3)return!0;const ti=sP(It);switch(tl(ti,st)){case-1:return!(!Yt&&St===1&&Gt.kind===229);case 1:return!1;case 0:if(Yt)return St===1;if(tu(It)&&It.operatorToken.kind===Ke){if(E(Ke))return!1;if(Ke===40){const Ut=Ie?v(Ie):0;if(ON(Ut)&&Ut===v(It))return!1}}return U0e(It)===0}}function E(Ke){return Ke===42||Ke===52||Ke===51||Ke===53||Ke===28}function v(Ke){if(Ke=wp(Ke),ON(Ke.kind))return Ke.kind;if(Ke.kind===226&&Ke.operatorToken.kind===40){if(Ke.cachedLiteralKind!==void 0)return Ke.cachedLiteralKind;const Gt=v(Ke.left),Yt=ON(Gt)&&Gt===v(Ke.right)?Gt:0;return Ke.cachedLiteralKind=Yt,Yt}return 0}function b(Ke,Gt,Yt,Ie){return wp(Gt).kind===217?Gt:p(Ke,Gt,Yt,Ie)?t.createParenthesizedExpression(Gt):Gt}function B(Ke,Gt){return b(Ke,Gt,!0)}function k(Ke,Gt,Yt){return b(Ke,Yt,!1,Gt)}function T(Ke){return XP(Ke)?t.createParenthesizedExpression(Ke):Ke}function M(Ke){const Gt=zj(227,58),Yt=wp(Ke),Ie=sP(Yt);return tl(Ie,Gt)!==1?t.createParenthesizedExpression(Ke):Ke}function z(Ke){const Gt=wp(Ke);return XP(Gt)?t.createParenthesizedExpression(Ke):Ke}function j(Ke){const Gt=wp(Ke);let Yt=XP(Gt);if(!Yt)switch(lB(Gt,!1).kind){case 231:case 218:Yt=!0}return Yt?t.createParenthesizedExpression(Ke):Ke}function J(Ke){const Gt=lB(Ke,!0);switch(Gt.kind){case 213:return t.createParenthesizedExpression(Ke);case 214:return Gt.arguments?Ke:t.createParenthesizedExpression(Ke)}return K(Ke)}function K(Ke,Gt){const Yt=wp(Ke);return _f(Yt)&&(Yt.kind!==214||Yt.arguments)&&(Gt||!Z1(Yt))?Ke:Pt(t.createParenthesizedExpression(Ke),Ke)}function Y(Ke){return _f(Ke)?Ke:Pt(t.createParenthesizedExpression(Ke),Ke)}function oe(Ke){return Xse(Ke)?Ke:Pt(t.createParenthesizedExpression(Ke),Ke)}function se(Ke){const Gt=Mu(Ke,ge);return Pt(t.createNodeArray(Gt,Ke.hasTrailingComma),Ke)}function ge(Ke){const Gt=wp(Ke),Yt=sP(Gt),Ie=zj(226,28);return Yt>Ie?Ke:Pt(t.createParenthesizedExpression(Ke),Ke)}function ae(Ke){const Gt=wp(Ke);if(No(Gt)){const Ie=Gt.expression,st=wp(Ie).kind;if(st===218||st===219){const St=t.updateCallExpression(Gt,Pt(t.createParenthesizedExpression(Ie),Ie),Gt.typeArguments,Gt.arguments);return t.restoreOuterExpressions(Ke,St,8)}}const Yt=lB(Gt,!1).kind;return Yt===210||Yt===218?Pt(t.createParenthesizedExpression(Ke),Ke):Ke}function Ce(Ke){return!fo(Ke)&&(XP(Ke)||lB(Ke,!1).kind===210)?Pt(t.createParenthesizedExpression(Ke),Ke):Ke}function ne(Ke){switch(Ke.kind){case 184:case 185:case 194:return t.createParenthesizedType(Ke)}return Ke}function ve(Ke){switch(Ke.kind){case 194:return t.createParenthesizedType(Ke)}return Ke}function Se(Ke){switch(Ke.kind){case 192:case 193:return t.createParenthesizedType(Ke)}return ne(Ke)}function Ne(Ke){return t.createNodeArray(Mu(Ke,Se))}function pe(Ke){switch(Ke.kind){case 192:case 193:return t.createParenthesizedType(Ke)}return Se(Ke)}function fe(Ke){return t.createNodeArray(Mu(Ke,pe))}function xe(Ke){switch(Ke.kind){case 193:return t.createParenthesizedType(Ke)}return pe(Ke)}function Be(Ke){switch(Ke.kind){case 198:return t.createParenthesizedType(Ke)}return xe(Ke)}function We(Ke){switch(Ke.kind){case 195:case 198:case 186:return t.createParenthesizedType(Ke)}return xe(Ke)}function Ae(Ke){return t.createNodeArray(Mu(Ke,De))}function De(Ke){return He(Ke)?t.createParenthesizedType(Ke):Ke}function He(Ke){return SB(Ke)?Ke.postfix:WP(Ke)||n3(Ke)||KP(Ke)||P7(Ke)?He(Ke.type):yB(Ke)?He(Ke.falseType):Lv(Ke)||bB(Ke)?He(Cr(Ke.types)):L7(Ke)?!!Ke.typeParameter.constraint&&He(Ke.typeParameter.constraint):!1}function Ge(Ke){return He(Ke)?t.createParenthesizedType(Ke):We(Ke)}function ft(Ke){return ibe(Ke)&&Ke.typeParameters?t.createParenthesizedType(Ke):Ke}function Ze(Ke,Gt){return Gt===0?ft(Ke):Ke}function je(Ke){if(qe(Ke))return t.createNodeArray(Mu(Ke,Ze))}}var Xle,_Lt=o({"src/compiler/factory/parenthesizerRules.ts"(){Ao(),Xle={getParenthesizeLeftSideOfBinaryForOperator:t=>el,getParenthesizeRightSideOfBinaryForOperator:t=>el,parenthesizeLeftSideOfBinary:(t,u)=>u,parenthesizeRightSideOfBinary:(t,u,s)=>s,parenthesizeExpressionOfComputedPropertyName:el,parenthesizeConditionOfConditionalExpression:el,parenthesizeBranchOfConditionalExpression:el,parenthesizeExpressionOfExportDefault:el,parenthesizeExpressionOfNew:t=>Lo(t,_f),parenthesizeLeftSideOfAccess:t=>Lo(t,_f),parenthesizeOperandOfPostfixUnary:t=>Lo(t,_f),parenthesizeOperandOfPrefixUnary:t=>Lo(t,Xse),parenthesizeExpressionsOfCommaDelimitedList:t=>Lo(t,f2),parenthesizeExpressionForDisallowedComma:el,parenthesizeExpressionOfExpressionStatement:el,parenthesizeConciseBodyOfArrowFunction:el,parenthesizeCheckTypeOfConditionalType:el,parenthesizeExtendsTypeOfConditionalType:el,parenthesizeConstituentTypesOfUnionType:t=>Lo(t,f2),parenthesizeConstituentTypeOfUnionType:el,parenthesizeConstituentTypesOfIntersectionType:t=>Lo(t,f2),parenthesizeConstituentTypeOfIntersectionType:el,parenthesizeOperandOfTypeOperator:el,parenthesizeOperandOfReadonlyTypeOperator:el,parenthesizeNonArrayTypeOfPostfixType:el,parenthesizeElementTypesOfTupleType:t=>Lo(t,f2),parenthesizeElementTypeOfTupleType:el,parenthesizeTypeOfOptionalType:el,parenthesizeTypeArguments:t=>t&&Lo(t,f2),parenthesizeLeadingTypeArgument:el}}});function Lke(t){return{convertToFunctionBlock:u,convertToFunctionExpression:s,convertToClassExpression:d,convertToArrayAssignmentElement:f,convertToObjectAssignmentElement:p,convertToAssignmentPattern:E,convertToObjectAssignmentPattern:v,convertToArrayAssignmentPattern:b,convertToAssignmentElementTarget:B};function u(k,T){if(fo(k))return k;const M=t.createReturnStatement(k);Pt(M,k);const z=t.createBlock([M],T);return Pt(z,k),z}function s(k){var T;if(!k.body)return H.fail("Cannot convert a FunctionDeclaration without a body");const M=t.createFunctionExpression((T=h2(k))==null?void 0:T.filter(z=>!w7(z)&&!tY(z)),k.asteriskToken,k.name,k.typeParameters,k.parameters,k.type,k.body);return lu(M,k),Pt(M,k),IP(k)&&CZ(M,!0),M}function d(k){var T;const M=t.createClassExpression((T=k.modifiers)==null?void 0:T.filter(z=>!w7(z)&&!tY(z)),k.name,k.typeParameters,k.heritageClauses,k.members);return lu(M,k),Pt(M,k),IP(k)&&CZ(M,!0),M}function f(k){if(Rs(k)){if(k.dotDotDotToken)return H.assertNode(k.name,at),lu(Pt(t.createSpreadElement(k.name),k),k);const T=B(k.name);return k.initializer?lu(Pt(t.createAssignment(T,k.initializer),k),k):T}return Lo(k,Wt)}function p(k){if(Rs(k)){if(k.dotDotDotToken)return H.assertNode(k.name,at),lu(Pt(t.createSpreadAssignment(k.name),k),k);if(k.propertyName){const T=B(k.name);return lu(Pt(t.createPropertyAssignment(k.propertyName,k.initializer?t.createAssignment(T,k.initializer):T),k),k)}return H.assertNode(k.name,at),lu(Pt(t.createShorthandPropertyAssignment(k.name,k.initializer),k),k)}return Lo(k,q3)}function E(k){switch(k.kind){case 207:case 209:return b(k);case 206:case 210:return v(k)}}function v(k){return Mp(k)?lu(Pt(t.createObjectLiteralExpression(Kt(k.elements,p)),k),k):Lo(k,Cs)}function b(k){return gk(k)?lu(Pt(t.createArrayLiteralExpression(Kt(k.elements,f)),k),k):Lo(k,_h)}function B(k){return Fo(k)?E(k):Lo(k,Wt)}}var ece,DLt=o({"src/compiler/factory/nodeConverters.ts"(){Ao(),ece={convertToFunctionBlock:lo,convertToFunctionExpression:lo,convertToClassExpression:lo,convertToArrayAssignmentElement:lo,convertToObjectAssignmentElement:lo,convertToAssignmentPattern:lo,convertToObjectAssignmentPattern:lo,convertToArrayAssignmentPattern:lo,convertToAssignmentElementTarget:lo}}});function LYe(t){Pke.push(t)}function hV(t,u){const s=t&8?xLt:vLt,d=Nh(()=>t&1?Xle:Tke(Y)),f=Nh(()=>t&2?ece:Lke(Y)),p=VE(N=>(W,ee)=>Me(W,N,ee)),E=VE(N=>W=>Bt(N,W)),v=VE(N=>W=>xi(W,N)),b=VE(N=>()=>oz(N)),B=VE(N=>W=>S0(N,W)),k=VE(N=>(W,ee)=>k9(N,W,ee)),T=VE(N=>(W,ee)=>y9(N,W,ee)),M=VE(N=>(W,ee)=>mb(N,W,ee)),z=VE(N=>(W,ee)=>E4(N,W,ee)),j=VE(N=>(W,ee,ke)=>dC(N,W,ee,ke)),J=VE(N=>(W,ee,ke)=>w5(N,W,ee,ke)),K=VE(N=>(W,ee,ke,dt)=>i1(N,W,ee,ke,dt)),Y={get parenthesizer(){return d()},get converters(){return f()},baseFactory:u,flags:t,createNodeArray:oe,createNumericLiteral:Ce,createBigIntLiteral:ne,createStringLiteral:Se,createStringLiteralFromNode:Ne,createRegularExpressionLiteral:pe,createLiteralLikeNode:fe,createIdentifier:We,createTempVariable:Ae,createLoopVariable:De,createUniqueName:He,getGeneratedNameForNode:Ge,createPrivateIdentifier:Ze,createUniquePrivateName:Ke,getGeneratedPrivateNameForNode:Gt,createToken:Ie,createSuper:st,createThis:St,createNull:It,createTrue:ti,createFalse:ht,createModifier:Ut,createModifiersFromModifierFlags:Li,createQualifiedName:ji,updateQualifiedName:xn,createComputedPropertyName:Un,updateComputedPropertyName:rn,createTypeParameterDeclaration:Ni,updateTypeParameterDeclaration:Fi,createParameterDeclaration:Qu,updateParameterDeclaration:aa,createDecorator:Fr,updateDecorator:Ba,createPropertySignature:bt,updatePropertySignature:jn,createPropertyDeclaration:Ai,updatePropertyDeclaration:Dn,createMethodSignature:bn,updateMethodSignature:iu,createMethodDeclaration:oa,updateMethodDeclaration:xa,createConstructorDeclaration:Qe,updateConstructorDeclaration:Et,createGetAccessorDeclaration:qt,updateGetAccessorDeclaration:Xt,createSetAccessorDeclaration:et,updateSetAccessorDeclaration:gt,createCallSignature:me,updateCallSignature:ni,createConstructSignature:_i,updateConstructSignature:mt,createIndexSignature:jt,updateIndexSignature:pi,createClassStaticBlockDeclaration:wa,updateClassStaticBlockDeclaration:Zo,createTemplateLiteralTypeSpan:Ji,updateTemplateLiteralTypeSpan:Yi,createKeywordTypeNode:on,createTypePredicateNode:le,updateTypePredicateNode:te,createTypeReferenceNode:we,updateTypeReferenceNode:de,createFunctionTypeNode:Oe,updateFunctionTypeNode:X,createConstructorTypeNode:Ct,updateConstructorTypeNode:Ti,createTypeQueryNode:hu,updateTypeQueryNode:Ru,createTypeLiteralNode:Er,updateTypeLiteralNode:tr,createArrayTypeNode:da,updateArrayTypeNode:Wu,createTupleTypeNode:ja,updateTupleTypeNode:Tn,createNamedTupleMember:Rr,updateNamedTupleMember:rs,createOptionalTypeNode:So,updateOptionalTypeNode:An,createRestTypeNode:xc,updateRestTypeNode:Za,createUnionTypeNode:Sl,updateUnionTypeNode:cd,createIntersectionTypeNode:Dl,updateIntersectionTypeNode:so,createConditionalTypeNode:Vo,updateConditionalTypeNode:td,createInferTypeNode:$0,updateInferTypeNode:Ho,createImportTypeNode:Tc,updateImportTypeNode:zl,createParenthesizedType:sl,updateParenthesizedType:Ka,createThisTypeNode:Ri,createTypeOperatorNode:ll,updateTypeOperatorNode:$c,createIndexedAccessTypeNode:vh,updateIndexedAccessTypeNode:of,createMappedTypeNode:U0,updateMappedTypeNode:vc,createLiteralTypeNode:$,updateLiteralTypeNode:tt,createTemplateLiteralType:wc,updateTemplateLiteralType:Kp,createObjectBindingPattern:vt,updateObjectBindingPattern:hi,createArrayBindingPattern:fn,updateArrayBindingPattern:Gu,createBindingElement:ru,updateBindingElement:Tu,createArrayLiteralExpression:Pr,updateArrayLiteralExpression:Vu,createObjectLiteralExpression:Fs,updateObjectLiteralExpression:tc,createPropertyAccessExpression:t&4?(N,W)=>Qn(A0(N,W),262144):A0,updatePropertyAccessExpression:nd,createPropertyAccessChain:t&4?(N,W,ee)=>Qn(f0(N,W,ee),262144):f0,updatePropertyAccessChain:Sd,createElementAccessExpression:nh,updateElementAccessExpression:d4,createElementAccessChain:_1,updateElementAccessChain:Ve,createCallExpression:zn,updateCallExpression:ya,createCallChain:yo,updateCallChain:Bo,createNewExpression:ic,updateNewExpression:hc,createTaggedTemplateExpression:xl,updateTaggedTemplateExpression:Bl,createTypeAssertion:Cc,updateTypeAssertion:Ul,createParenthesizedExpression:Lc,updateParenthesizedExpression:ep,createFunctionExpression:Gm,updateFunctionExpression:Rh,createArrowFunction:h4,updateArrowFunction:l3,createDeleteExpression:l_,updateDeleteExpression:v5,createTypeOfExpression:I1,updateTypeOfExpression:c3,createVoidExpression:Kf,updateVoidExpression:f4,createAwaitExpression:Oh,updateAwaitExpression:Ee,createPrefixUnaryExpression:Bt,updatePrefixUnaryExpression:gi,createPostfixUnaryExpression:xi,updatePostfixUnaryExpression:Q,createBinaryExpression:Me,updateBinaryExpression:bi,createConditionalExpression:Rn,updateConditionalExpression:nr,createTemplateExpression:ur,updateTemplateExpression:ma,createTemplateHead:Jm,createTemplateMiddle:gs,createTemplateTail:tp,createNoSubstitutionTemplateLiteral:$m,createTemplateLiteralLikeNode:dd,createYieldExpression:d3,updateYieldExpression:c_,createSpreadElement:ta,updateSpreadElement:Qx,createClassExpression:Xx,updateClassExpression:vg,createOmittedExpression:rb,createExpressionWithTypeArguments:C5,updateExpressionWithTypeArguments:Xe,createAsExpression:Dt,updateAsExpression:ai,createNonNullExpression:wi,updateNonNullExpression:Qi,createSatisfiesExpression:On,updateSatisfiesExpression:en,createNonNullChain:yn,updateNonNullChain:Ar,createMetaProperty:bu,updateMetaProperty:yu,createTemplateSpan:_u,updateTemplateSpan:sa,createSemicolonClassElement:m0,createBlock:a0,updateBlock:Wf,createVariableStatement:Qv,updateVariableStatement:e6,createEmptyStatement:lD,createExpressionStatement:t6,updateExpressionStatement:Kk,createIfStatement:ab,updateIfStatement:Wk,createDoStatement:Gk,updateDoStatement:rz,createWhileStatement:E9,updateWhileStatement:Sw,createForStatement:Xv,updateForStatement:_9,createForInStatement:D9,updateForInStatement:Bw,createForOfStatement:Jk,updateForOfStatement:ww,createContinueStatement:x9,updateContinueStatement:v9,createBreakStatement:$k,updateBreakStatement:ob,createReturnStatement:sb,updateReturnStatement:eC,createWithStatement:b5,updateWithStatement:lb,createSwitchStatement:hE,updateSwitchStatement:Os,createLabeledStatement:Uk,updateLabeledStatement:Tw,createThrowStatement:i6,updateThrowStatement:y5,createTryStatement:d_,updateTryStatement:m4,createDebuggerStatement:Gf,createVariableDeclaration:jh,updateVariableDeclaration:gm,createVariableDeclarationList:tC,updateVariableDeclarationList:Lw,createFunctionDeclaration:C9,updateFunctionDeclaration:qk,createClassDeclaration:iC,updateClassDeclaration:Zk,createInterfaceDeclaration:nC,updateInterfaceDeclaration:Rd,createTypeAliasDeclaration:k5,updateTypeAliasDeclaration:F5,createEnumDeclaration:h3,updateEnumDeclaration:pt,createModuleDeclaration:t1,updateModuleDeclaration:p4,createModuleBlock:Ch,updateModuleBlock:Nw,createCaseBlock:A5,updateCaseBlock:uC,createNamespaceExportDeclaration:f3,updateNamespaceExportDeclaration:az,createImportEqualsDeclaration:Cg,updateImportEqualsDeclaration:Yk,createImportDeclaration:Qk,updateImportDeclaration:db,createImportClause:hb,updateImportClause:ip,createAssertClause:bg,updateAssertClause:m3,createAssertEntry:Xk,updateAssertEntry:fE,createImportTypeAssertionContainer:eF,updateImportTypeAssertionContainer:Pw,createImportAttributes:$r,updateImportAttributes:sr,createImportAttribute:mE,updateImportAttribute:yf,createNamespaceImport:Mw,updateNamespaceImport:S5,createNamespaceExport:zw,updateNamespaceExport:fb,createNamedImports:nc,updateNamedImports:bh,createImportSpecifier:cD,updateImportSpecifier:h_,createExportAssignment:p3,updateExportAssignment:Wp,createExportDeclaration:rC,updateExportDeclaration:g3,createNamedExports:f_,updateNamedExports:Rw,createExportSpecifier:pE,updateExportSpecifier:m_,createMissingDeclaration:B5,createExternalModuleReference:Ow,updateExternalModuleReference:b9,get createJSDocAllType(){return b(319)},get createJSDocUnknownType(){return b(320)},get createJSDocNonNullableType(){return T(322)},get updateJSDocNonNullableType(){return M(322)},get createJSDocNullableType(){return T(321)},get updateJSDocNullableType(){return M(321)},get createJSDocOptionalType(){return B(323)},get updateJSDocOptionalType(){return k(323)},get createJSDocVariadicType(){return B(325)},get updateJSDocVariadicType(){return k(325)},get createJSDocNamepathType(){return B(326)},get updateJSDocNamepathType(){return k(326)},createJSDocFunctionType:np,updateJSDocFunctionType:aC,createJSDocTypeLiteral:F9,updateJSDocTypeLiteral:sz,createJSDocTypeExpression:tF,updateJSDocTypeExpression:au,createJSDocSignature:x1,updateJSDocSignature:Pa,createJSDocTemplateTag:Zn,updateJSDocTemplateTag:pb,createJSDocTypedefTag:oC,updateJSDocTypedefTag:Bd,createJSDocParameterTag:EE,updateJSDocParameterTag:_E,createJSDocPropertyTag:n6,updateJSDocPropertyTag:A9,createJSDocCallbackTag:dD,updateJSDocCallbackTag:sC,createJSDocOverloadTag:lC,updateJSDocOverloadTag:E3,createJSDocAugmentsTag:p_,updateJSDocAugmentsTag:iF,createJSDocImplementsTag:hD,updateJSDocImplementsTag:_b,createJSDocSeeTag:u6,updateJSDocSeeTag:gb,createJSDocNameReference:S9,updateJSDocNameReference:nF,createJSDocMemberName:Eb,updateJSDocMemberName:g4,createJSDocLink:cC,updateJSDocLink:bc,createJSDocLinkCode:hd,updateJSDocLinkCode:B9,createJSDocLinkPlain:R1,updateJSDocLinkPlain:kf,get createJSDocTypeTag(){return J(351)},get updateJSDocTypeTag(){return K(351)},get createJSDocReturnTag(){return J(349)},get updateJSDocReturnTag(){return K(349)},get createJSDocThisTag(){return J(350)},get updateJSDocThisTag(){return K(350)},get createJSDocAuthorTag(){return z(337)},get updateJSDocAuthorTag(){return j(337)},get createJSDocClassTag(){return z(339)},get updateJSDocClassTag(){return j(339)},get createJSDocPublicTag(){return z(340)},get updateJSDocPublicTag(){return j(340)},get createJSDocPrivateTag(){return z(341)},get updateJSDocPrivateTag(){return j(341)},get createJSDocProtectedTag(){return z(342)},get updateJSDocProtectedTag(){return j(342)},get createJSDocReadonlyTag(){return z(343)},get updateJSDocReadonlyTag(){return j(343)},get createJSDocOverrideTag(){return z(344)},get updateJSDocOverrideTag(){return j(344)},get createJSDocDeprecatedTag(){return z(338)},get updateJSDocDeprecatedTag(){return j(338)},get createJSDocThrowsTag(){return J(356)},get updateJSDocThrowsTag(){return K(356)},get createJSDocSatisfiesTag(){return J(357)},get updateJSDocSatisfiesTag(){return K(357)},createJSDocEnumTag:r6,updateJSDocEnumTag:jw,createJSDocUnknownTag:uF,updateJSDocUnknownTag:rp,createJSDocText:P0,updateJSDocText:Vw,createJSDocComment:rF,updateJSDocComment:hC,createJsxElement:w9,updateJsxElement:Vh,createJsxSelfClosingElement:_3,updateJsxSelfClosingElement:fD,createJsxOpeningElement:Db,updateJsxOpeningElement:Em,createJsxClosingElement:T9,updateJsxClosingElement:a6,createJsxFragment:Um,createJsxText:T5,updateJsxText:lz,createJsxOpeningFragment:L9,createJsxJsxClosingFragment:N9,updateJsxFragment:xb,createJsxAttribute:P9,updateJsxAttribute:fC,createJsxAttributes:Jf,updateJsxAttributes:D3,createJsxSpreadAttribute:M9,updateJsxSpreadAttribute:z9,createJsxExpression:Vs,updateJsxExpression:Du,createJsxNamespacedName:_m,updateJsxNamespacedName:lf,createCaseClause:vb,updateCaseClause:Hw,createDefaultClause:mC,updateDefaultClause:Cb,createHeritageClause:o6,updateHeritageClause:qm,createCatchClause:ap,updateCatchClause:s6,createPropertyAssignment:Gp,updatePropertyAssignment:op,createShorthandPropertyAssignment:bb,updateShorthandPropertyAssignment:Nc,createSpreadAssignment:_4,updateSpreadAssignment:Kw,createEnumMember:O1,updateEnumMember:pC,createSourceFile:yb,updateSourceFile:l6,createRedirectedSourceFile:aF,createBundle:x3,updateBundle:gC,createUnparsedSource:Gw,createUnparsedPrologue:O,createUnparsedPrepend:be,createUnparsedTextLike:Vt,createUnparsedSyntheticReference:Oi,createInputFiles:ku,createSyntheticExpression:Jr,createSyntaxList:br,createNotEmittedStatement:_a,createPartiallyEmittedExpression:ko,updatePartiallyEmittedExpression:Ff,createCommaListExpression:Sr,updateCommaListExpression:xE,createSyntheticReferenceExpression:gn,updateSyntheticReferenceExpression:d6,cloneNode:sF,get createComma(){return p(28)},get createAssignment(){return p(64)},get createLogicalOr(){return p(57)},get createLogicalAnd(){return p(56)},get createBitwiseOr(){return p(52)},get createBitwiseXor(){return p(53)},get createBitwiseAnd(){return p(51)},get createStrictEquality(){return p(37)},get createStrictInequality(){return p(38)},get createEquality(){return p(35)},get createInequality(){return p(36)},get createLessThan(){return p(30)},get createLessThanEquals(){return p(33)},get createGreaterThan(){return p(32)},get createGreaterThanEquals(){return p(34)},get createLeftShift(){return p(48)},get createRightShift(){return p(49)},get createUnsignedRightShift(){return p(50)},get createAdd(){return p(40)},get createSubtract(){return p(41)},get createMultiply(){return p(42)},get createDivide(){return p(44)},get createModulo(){return p(45)},get createExponent(){return p(43)},get createPrefixPlus(){return E(40)},get createPrefixMinus(){return E(41)},get createPrefixIncrement(){return E(46)},get createPrefixDecrement(){return E(47)},get createBitwiseNot(){return E(55)},get createLogicalNot(){return E(54)},get createPostfixIncrement(){return v(46)},get createPostfixDecrement(){return v(47)},createImmediatelyInvokedFunctionExpression:g_,createImmediatelyInvokedArrowFunction:P5,createVoidZero:v3,createExportDefault:Jw,createExternalModuleExport:R9,createTypeCheck:UK,createIsNotTypeCheck:dz,createMethodCall:E_,createGlobalMethodCall:_C,createFunctionBindCall:mD,createFunctionCallCall:$w,createFunctionApplyCall:__,createArraySliceCall:cte,createArrayConcatCall:vE,createObjectDefinePropertyCall:lF,createObjectGetOwnPropertyDescriptorCall:qK,createReflectGetCall:he,createReflectSetCall:Re,createPropertyDescriptor:Lt,createCallBinding:_r,createAssignmentTargetWrapper:pa,inlineExpressions:E0,getInternalName:Hs,getLocalName:x4,getExportName:Jp,getDeclarationName:h6,getNamespaceMemberName:C3,getExternalModuleOrNamespaceExportName:Od,restoreOuterExpressions:zu,restoreEnclosingLabel:Kr,createUseStrictPrologue:Uw,copyPrologue:pD,copyStandardPrologue:qw,copyCustomPrologue:fz,ensureUseStrict:dte,liftToBlock:mz,mergeLexicalEnvironment:gD,replaceModifiers:pz,replaceDecoratorsAndModifiers:v4,replacePropertyName:Zw};return L(Pke,N=>N(Y)),Y;function oe(N,W){if(N===void 0||N===_t)N=[];else if(f2(N)){if(W===void 0||N.hasTrailingComma===W)return N.transformFlags===void 0&&NYe(N),H.attachNodeArrayDebugInfo(N),N;const dt=N.slice();return dt.pos=N.pos,dt.end=N.end,dt.hasTrailingComma=W,dt.transformFlags=N.transformFlags,H.attachNodeArrayDebugInfo(dt),dt}const ee=N.length,ke=ee>=1&&ee<=4?N.slice():N;return ke.pos=-1,ke.end=-1,ke.hasTrailingComma=!!W,ke.transformFlags=0,NYe(ke),H.attachNodeArrayDebugInfo(ke),ke}function se(N){return u.createBaseNode(N)}function ge(N){const W=se(N);return W.symbol=void 0,W.localSymbol=void 0,W}function ae(N,W){return N!==W&&(N.typeArguments=W.typeArguments),s(N,W)}function Ce(N,W=0){const ee=ge(9);return ee.text=typeof N=="number"?N+"":N,ee.numericLiteralFlags=W,W&384&&(ee.transformFlags|=1024),ee}function ne(N){const W=Yt(10);return W.text=typeof N=="string"?N:P2(N)+"n",W.transformFlags|=32,W}function ve(N,W){const ee=ge(11);return ee.text=N,ee.singleQuote=W,ee}function Se(N,W,ee){const ke=ve(N,W);return ke.hasExtendedUnicodeEscape=ee,ee&&(ke.transformFlags|=1024),ke}function Ne(N){const W=ve(W4(N),void 0);return W.textSourceNode=N,W}function pe(N){const W=Yt(14);return W.text=N,W}function fe(N,W){switch(N){case 9:return Ce(W,0);case 10:return ne(W);case 11:return Se(W,void 0);case 12:return T5(W,!1);case 13:return T5(W,!0);case 14:return pe(W);case 15:return dd(N,W,void 0,0)}}function xe(N){const W=u.createBaseIdentifierNode(80);return W.escapedText=N,W.jsDoc=void 0,W.flowNode=void 0,W.symbol=void 0,W}function Be(N,W,ee,ke){const dt=xe(kl(N));return _V(dt,{flags:W,id:vZ,prefix:ee,suffix:ke}),vZ++,dt}function We(N,W,ee){W===void 0&&N&&(W=c2(N)),W===80&&(W=void 0);const ke=xe(kl(N));return ee&&(ke.flags|=256),ke.escapedText==="await"&&(ke.transformFlags|=67108864),ke.flags&256&&(ke.transformFlags|=1024),ke}function Ae(N,W,ee,ke){let dt=1;W&&(dt|=8);const Si=Be("",dt,ee,ke);return N&&N(Si),Si}function De(N){let W=2;return N&&(W|=8),Be("",W,void 0,void 0)}function He(N,W=0,ee,ke){return H.assert(!(W&7),"Argument out of range: flags"),H.assert((W&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Be(N,3|W,ee,ke)}function Ge(N,W=0,ee,ke){H.assert(!(W&7),"Argument out of range: flags");const dt=N?G_(N)?Rv(!1,ee,N,ke,mu):`generated@${Js(N)}`:"";(ee||ke)&&(W|=16);const Si=Be(dt,4|W,ee,ke);return Si.original=N,Si}function ft(N){const W=u.createBasePrivateIdentifierNode(81);return W.escapedText=N,W.transformFlags|=16777216,W}function Ze(N){return Na(N,"#")||H.fail("First character of private identifier must be #: "+N),ft(kl(N))}function je(N,W,ee,ke){const dt=ft(kl(N));return _V(dt,{flags:W,id:vZ,prefix:ee,suffix:ke}),vZ++,dt}function Ke(N,W,ee){N&&!Na(N,"#")&&H.fail("First character of private identifier must be #: "+N);const ke=8|(N?3:1);return je(N??"",ke,W,ee)}function Gt(N,W,ee){const ke=G_(N)?Rv(!0,W,N,ee,mu):`#generated@${Js(N)}`,Si=je(ke,4|(W||ee?16:0),W,ee);return Si.original=N,Si}function Yt(N){return u.createBaseTokenNode(N)}function Ie(N){H.assert(N>=0&&N<=165,"Invalid token"),H.assert(N<=15||N>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),H.assert(N<=9||N>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),H.assert(N!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const W=Yt(N);let ee=0;switch(N){case 134:ee=384;break;case 160:ee=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:ee=1;break;case 108:ee=134218752,W.flowNode=void 0;break;case 126:ee=1024;break;case 129:ee=16777216;break;case 110:ee=16384,W.flowNode=void 0;break}return ee&&(W.transformFlags|=ee),W}function st(){return Ie(108)}function St(){return Ie(110)}function It(){return Ie(106)}function ti(){return Ie(112)}function ht(){return Ie(97)}function Ut(N){return Ie(N)}function Li(N){const W=[];return N&32&&W.push(Ut(95)),N&128&&W.push(Ut(138)),N&2048&&W.push(Ut(90)),N&4096&&W.push(Ut(87)),N&1&&W.push(Ut(125)),N&2&&W.push(Ut(123)),N&4&&W.push(Ut(124)),N&64&&W.push(Ut(128)),N&256&&W.push(Ut(126)),N&16&&W.push(Ut(164)),N&8&&W.push(Ut(148)),N&512&&W.push(Ut(129)),N&1024&&W.push(Ut(134)),N&8192&&W.push(Ut(103)),N&16384&&W.push(Ut(147)),W.length?W:void 0}function ji(N,W){const ee=se(166);return ee.left=N,ee.right=Pc(W),ee.transformFlags|=su(ee.left)|fV(ee.right),ee.flowNode=void 0,ee}function xn(N,W,ee){return N.left!==W||N.right!==ee?s(ji(W,ee),N):N}function Un(N){const W=se(167);return W.expression=d().parenthesizeExpressionOfComputedPropertyName(N),W.transformFlags|=su(W.expression)|1024|131072,W}function rn(N,W){return N.expression!==W?s(Un(W),N):N}function Ni(N,W,ee,ke){const dt=ge(168);return dt.modifiers=Ns(N),dt.name=Pc(W),dt.constraint=ee,dt.default=ke,dt.transformFlags=1,dt.expression=void 0,dt.jsDoc=void 0,dt}function Fi(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.constraint!==ke||N.default!==dt?s(Ni(W,ee,ke,dt),N):N}function Qu(N,W,ee,ke,dt,Si){const ou=ge(169);return ou.modifiers=Ns(N),ou.dotDotDotToken=W,ou.name=Pc(ee),ou.questionToken=ke,ou.type=dt,ou.initializer=cF(Si),w2(ou.name)?ou.transformFlags=1:ou.transformFlags=ys(ou.modifiers)|su(ou.dotDotDotToken)|Hx(ou.name)|su(ou.questionToken)|su(ou.initializer)|(ou.questionToken??ou.type?1:0)|(ou.dotDotDotToken??ou.initializer?1024:0)|(eE(ou.modifiers)&31?8192:0),ou.jsDoc=void 0,ou}function aa(N,W,ee,ke,dt,Si,ou){return N.modifiers!==W||N.dotDotDotToken!==ee||N.name!==ke||N.questionToken!==dt||N.type!==Si||N.initializer!==ou?s(Qu(W,ee,ke,dt,Si,ou),N):N}function Fr(N){const W=se(170);return W.expression=d().parenthesizeLeftSideOfAccess(N,!1),W.transformFlags|=su(W.expression)|1|8192|33554432,W}function Ba(N,W){return N.expression!==W?s(Fr(W),N):N}function bt(N,W,ee,ke){const dt=ge(171);return dt.modifiers=Ns(N),dt.name=Pc(W),dt.type=ke,dt.questionToken=ee,dt.transformFlags=1,dt.initializer=void 0,dt.jsDoc=void 0,dt}function jn(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.questionToken!==ke||N.type!==dt?Nn(bt(W,ee,ke,dt),N):N}function Nn(N,W){return N!==W&&(N.initializer=W.initializer),s(N,W)}function Ai(N,W,ee,ke,dt){const Si=ge(172);Si.modifiers=Ns(N),Si.name=Pc(W),Si.questionToken=ee&&Kx(ee)?ee:void 0,Si.exclamationToken=ee&&bV(ee)?ee:void 0,Si.type=ke,Si.initializer=cF(dt);const ou=Si.flags&33554432||eE(Si.modifiers)&128;return Si.transformFlags=ys(Si.modifiers)|Hx(Si.name)|su(Si.initializer)|(ou||Si.questionToken||Si.exclamationToken||Si.type?1:0)|(Ls(Si.name)||eE(Si.modifiers)&256&&Si.initializer?8192:0)|16777216,Si.jsDoc=void 0,Si}function Dn(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.questionToken!==(ke!==void 0&&Kx(ke)?ke:void 0)||N.exclamationToken!==(ke!==void 0&&bV(ke)?ke:void 0)||N.type!==dt||N.initializer!==Si?s(Ai(W,ee,ke,dt,Si),N):N}function bn(N,W,ee,ke,dt,Si){const ou=ge(173);return ou.modifiers=Ns(N),ou.name=Pc(W),ou.questionToken=ee,ou.typeParameters=Ns(ke),ou.parameters=Ns(dt),ou.type=Si,ou.transformFlags=1,ou.jsDoc=void 0,ou.locals=void 0,ou.nextContainer=void 0,ou.typeArguments=void 0,ou}function iu(N,W,ee,ke,dt,Si,ou){return N.modifiers!==W||N.name!==ee||N.questionToken!==ke||N.typeParameters!==dt||N.parameters!==Si||N.type!==ou?ae(bn(W,ee,ke,dt,Si,ou),N):N}function oa(N,W,ee,ke,dt,Si,ou,Ma){const i0=ge(174);if(i0.modifiers=Ns(N),i0.asteriskToken=W,i0.name=Pc(ee),i0.questionToken=ke,i0.exclamationToken=void 0,i0.typeParameters=Ns(dt),i0.parameters=oe(Si),i0.type=ou,i0.body=Ma,!i0.body)i0.transformFlags=1;else{const Ym=eE(i0.modifiers)&1024,m6=!!i0.asteriskToken,p6=Ym&&m6;i0.transformFlags=ys(i0.modifiers)|su(i0.asteriskToken)|Hx(i0.name)|su(i0.questionToken)|ys(i0.typeParameters)|ys(i0.parameters)|su(i0.type)|su(i0.body)&-67108865|(p6?128:Ym?256:m6?2048:0)|(i0.questionToken||i0.typeParameters||i0.type?1:0)|1024}return i0.typeArguments=void 0,i0.jsDoc=void 0,i0.locals=void 0,i0.nextContainer=void 0,i0.flowNode=void 0,i0.endFlowNode=void 0,i0.returnFlowNode=void 0,i0}function xa(N,W,ee,ke,dt,Si,ou,Ma,i0){return N.modifiers!==W||N.asteriskToken!==ee||N.name!==ke||N.questionToken!==dt||N.typeParameters!==Si||N.parameters!==ou||N.type!==Ma||N.body!==i0?ra(oa(W,ee,ke,dt,Si,ou,Ma,i0),N):N}function ra(N,W){return N!==W&&(N.exclamationToken=W.exclamationToken),s(N,W)}function wa(N){const W=ge(175);return W.body=N,W.transformFlags=su(N)|16777216,W.modifiers=void 0,W.jsDoc=void 0,W.locals=void 0,W.nextContainer=void 0,W.endFlowNode=void 0,W.returnFlowNode=void 0,W}function Zo(N,W){return N.body!==W?vo(wa(W),N):N}function vo(N,W){return N!==W&&(N.modifiers=W.modifiers),s(N,W)}function Qe(N,W,ee){const ke=ge(176);return ke.modifiers=Ns(N),ke.parameters=oe(W),ke.body=ee,ke.transformFlags=ys(ke.modifiers)|ys(ke.parameters)|su(ke.body)&-67108865|1024,ke.typeParameters=void 0,ke.type=void 0,ke.typeArguments=void 0,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.endFlowNode=void 0,ke.returnFlowNode=void 0,ke}function Et(N,W,ee,ke){return N.modifiers!==W||N.parameters!==ee||N.body!==ke?Mt(Qe(W,ee,ke),N):N}function Mt(N,W){return N!==W&&(N.typeParameters=W.typeParameters,N.type=W.type),ae(N,W)}function qt(N,W,ee,ke,dt){const Si=ge(177);return Si.modifiers=Ns(N),Si.name=Pc(W),Si.parameters=oe(ee),Si.type=ke,Si.body=dt,Si.body?Si.transformFlags=ys(Si.modifiers)|Hx(Si.name)|ys(Si.parameters)|su(Si.type)|su(Si.body)&-67108865|(Si.type?1:0):Si.transformFlags=1,Si.typeArguments=void 0,Si.typeParameters=void 0,Si.jsDoc=void 0,Si.locals=void 0,Si.nextContainer=void 0,Si.flowNode=void 0,Si.endFlowNode=void 0,Si.returnFlowNode=void 0,Si}function Xt(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.parameters!==ke||N.type!==dt||N.body!==Si?Pe(qt(W,ee,ke,dt,Si),N):N}function Pe(N,W){return N!==W&&(N.typeParameters=W.typeParameters),ae(N,W)}function et(N,W,ee,ke){const dt=ge(178);return dt.modifiers=Ns(N),dt.name=Pc(W),dt.parameters=oe(ee),dt.body=ke,dt.body?dt.transformFlags=ys(dt.modifiers)|Hx(dt.name)|ys(dt.parameters)|su(dt.body)&-67108865|(dt.type?1:0):dt.transformFlags=1,dt.typeArguments=void 0,dt.typeParameters=void 0,dt.type=void 0,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt.endFlowNode=void 0,dt.returnFlowNode=void 0,dt}function gt(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.parameters!==ke||N.body!==dt?ii(et(W,ee,ke,dt),N):N}function ii(N,W){return N!==W&&(N.typeParameters=W.typeParameters,N.type=W.type),ae(N,W)}function me(N,W,ee){const ke=ge(179);return ke.typeParameters=Ns(N),ke.parameters=Ns(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function ni(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?ae(me(W,ee,ke),N):N}function _i(N,W,ee){const ke=ge(180);return ke.typeParameters=Ns(N),ke.parameters=Ns(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function mt(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?ae(_i(W,ee,ke),N):N}function jt(N,W,ee){const ke=ge(181);return ke.modifiers=Ns(N),ke.parameters=Ns(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function pi(N,W,ee,ke){return N.parameters!==ee||N.type!==ke||N.modifiers!==W?ae(jt(W,ee,ke),N):N}function Ji(N,W){const ee=se(204);return ee.type=N,ee.literal=W,ee.transformFlags=1,ee}function Yi(N,W,ee){return N.type!==W||N.literal!==ee?s(Ji(W,ee),N):N}function on(N){return Ie(N)}function le(N,W,ee){const ke=se(182);return ke.assertsModifier=N,ke.parameterName=Pc(W),ke.type=ee,ke.transformFlags=1,ke}function te(N,W,ee,ke){return N.assertsModifier!==W||N.parameterName!==ee||N.type!==ke?s(le(W,ee,ke),N):N}function we(N,W){const ee=se(183);return ee.typeName=Pc(N),ee.typeArguments=W&&d().parenthesizeTypeArguments(oe(W)),ee.transformFlags=1,ee}function de(N,W,ee){return N.typeName!==W||N.typeArguments!==ee?s(we(W,ee),N):N}function Oe(N,W,ee){const ke=ge(184);return ke.typeParameters=Ns(N),ke.parameters=Ns(W),ke.type=ee,ke.transformFlags=1,ke.modifiers=void 0,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function X(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?it(Oe(W,ee,ke),N):N}function it(N,W){return N!==W&&(N.modifiers=W.modifiers),ae(N,W)}function Ct(...N){return N.length===4?ct(...N):N.length===3?Qt(...N):H.fail("Incorrect number of arguments specified.")}function ct(N,W,ee,ke){const dt=ge(185);return dt.modifiers=Ns(N),dt.typeParameters=Ns(W),dt.parameters=Ns(ee),dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.typeArguments=void 0,dt}function Qt(N,W,ee){return ct(void 0,N,W,ee)}function Ti(...N){return N.length===5?$i(...N):N.length===4?Bn(...N):H.fail("Incorrect number of arguments specified.")}function $i(N,W,ee,ke,dt){return N.modifiers!==W||N.typeParameters!==ee||N.parameters!==ke||N.type!==dt?ae(Ct(W,ee,ke,dt),N):N}function Bn(N,W,ee,ke){return $i(N,N.modifiers,W,ee,ke)}function hu(N,W){const ee=se(186);return ee.exprName=N,ee.typeArguments=W&&d().parenthesizeTypeArguments(W),ee.transformFlags=1,ee}function Ru(N,W,ee){return N.exprName!==W||N.typeArguments!==ee?s(hu(W,ee),N):N}function Er(N){const W=ge(187);return W.members=oe(N),W.transformFlags=1,W}function tr(N,W){return N.members!==W?s(Er(W),N):N}function da(N){const W=se(188);return W.elementType=d().parenthesizeNonArrayTypeOfPostfixType(N),W.transformFlags=1,W}function Wu(N,W){return N.elementType!==W?s(da(W),N):N}function ja(N){const W=se(189);return W.elements=oe(d().parenthesizeElementTypesOfTupleType(N)),W.transformFlags=1,W}function Tn(N,W){return N.elements!==W?s(ja(W),N):N}function Rr(N,W,ee,ke){const dt=ge(202);return dt.dotDotDotToken=N,dt.name=W,dt.questionToken=ee,dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt}function rs(N,W,ee,ke,dt){return N.dotDotDotToken!==W||N.name!==ee||N.questionToken!==ke||N.type!==dt?s(Rr(W,ee,ke,dt),N):N}function So(N){const W=se(190);return W.type=d().parenthesizeTypeOfOptionalType(N),W.transformFlags=1,W}function An(N,W){return N.type!==W?s(So(W),N):N}function xc(N){const W=se(191);return W.type=N,W.transformFlags=1,W}function Za(N,W){return N.type!==W?s(xc(W),N):N}function l0(N,W,ee){const ke=se(N);return ke.types=Y.createNodeArray(ee(W)),ke.transformFlags=1,ke}function $l(N,W,ee){return N.types!==W?s(l0(N.kind,W,ee),N):N}function Sl(N){return l0(192,N,d().parenthesizeConstituentTypesOfUnionType)}function cd(N,W){return $l(N,W,d().parenthesizeConstituentTypesOfUnionType)}function Dl(N){return l0(193,N,d().parenthesizeConstituentTypesOfIntersectionType)}function so(N,W){return $l(N,W,d().parenthesizeConstituentTypesOfIntersectionType)}function Vo(N,W,ee,ke){const dt=se(194);return dt.checkType=d().parenthesizeCheckTypeOfConditionalType(N),dt.extendsType=d().parenthesizeExtendsTypeOfConditionalType(W),dt.trueType=ee,dt.falseType=ke,dt.transformFlags=1,dt.locals=void 0,dt.nextContainer=void 0,dt}function td(N,W,ee,ke,dt){return N.checkType!==W||N.extendsType!==ee||N.trueType!==ke||N.falseType!==dt?s(Vo(W,ee,ke,dt),N):N}function $0(N){const W=se(195);return W.typeParameter=N,W.transformFlags=1,W}function Ho(N,W){return N.typeParameter!==W?s($0(W),N):N}function wc(N,W){const ee=se(203);return ee.head=N,ee.templateSpans=oe(W),ee.transformFlags=1,ee}function Kp(N,W,ee){return N.head!==W||N.templateSpans!==ee?s(wc(W,ee),N):N}function Tc(N,W,ee,ke,dt=!1){const Si=se(205);return Si.argument=N,Si.attributes=W,Si.assertions&&Si.assertions.assertClause&&Si.attributes&&(Si.assertions.assertClause=Si.attributes),Si.qualifier=ee,Si.typeArguments=ke&&d().parenthesizeTypeArguments(ke),Si.isTypeOf=dt,Si.transformFlags=1,Si}function zl(N,W,ee,ke,dt,Si=N.isTypeOf){return N.argument!==W||N.attributes!==ee||N.qualifier!==ke||N.typeArguments!==dt||N.isTypeOf!==Si?s(Tc(W,ee,ke,dt,Si),N):N}function sl(N){const W=se(196);return W.type=N,W.transformFlags=1,W}function Ka(N,W){return N.type!==W?s(sl(W),N):N}function Ri(){const N=se(197);return N.transformFlags=1,N}function ll(N,W){const ee=se(198);return ee.operator=N,ee.type=N===148?d().parenthesizeOperandOfReadonlyTypeOperator(W):d().parenthesizeOperandOfTypeOperator(W),ee.transformFlags=1,ee}function $c(N,W){return N.type!==W?s(ll(N.operator,W),N):N}function vh(N,W){const ee=se(199);return ee.objectType=d().parenthesizeNonArrayTypeOfPostfixType(N),ee.indexType=W,ee.transformFlags=1,ee}function of(N,W,ee){return N.objectType!==W||N.indexType!==ee?s(vh(W,ee),N):N}function U0(N,W,ee,ke,dt,Si){const ou=ge(200);return ou.readonlyToken=N,ou.typeParameter=W,ou.nameType=ee,ou.questionToken=ke,ou.type=dt,ou.members=Si&&oe(Si),ou.transformFlags=1,ou.locals=void 0,ou.nextContainer=void 0,ou}function vc(N,W,ee,ke,dt,Si,ou){return N.readonlyToken!==W||N.typeParameter!==ee||N.nameType!==ke||N.questionToken!==dt||N.type!==Si||N.members!==ou?s(U0(W,ee,ke,dt,Si,ou),N):N}function $(N){const W=se(201);return W.literal=N,W.transformFlags=1,W}function tt(N,W){return N.literal!==W?s($(W),N):N}function vt(N){const W=se(206);return W.elements=oe(N),W.transformFlags|=ys(W.elements)|1024|524288,W.transformFlags&32768&&(W.transformFlags|=65664),W}function hi(N,W){return N.elements!==W?s(vt(W),N):N}function fn(N){const W=se(207);return W.elements=oe(N),W.transformFlags|=ys(W.elements)|1024|524288,W}function Gu(N,W){return N.elements!==W?s(fn(W),N):N}function ru(N,W,ee,ke){const dt=ge(208);return dt.dotDotDotToken=N,dt.propertyName=Pc(W),dt.name=Pc(ee),dt.initializer=cF(ke),dt.transformFlags|=su(dt.dotDotDotToken)|Hx(dt.propertyName)|Hx(dt.name)|su(dt.initializer)|(dt.dotDotDotToken?32768:0)|1024,dt.flowNode=void 0,dt}function Tu(N,W,ee,ke,dt){return N.propertyName!==ee||N.dotDotDotToken!==W||N.name!==ke||N.initializer!==dt?s(ru(W,ee,ke,dt),N):N}function Pr(N,W){const ee=se(209),ke=N&&Yu(N),dt=oe(N,ke&&kd(ke)?!0:void 0);return ee.elements=d().parenthesizeExpressionsOfCommaDelimitedList(dt),ee.multiLine=W,ee.transformFlags|=ys(ee.elements),ee}function Vu(N,W){return N.elements!==W?s(Pr(W,N.multiLine),N):N}function Fs(N,W){const ee=ge(210);return ee.properties=oe(N),ee.multiLine=W,ee.transformFlags|=ys(ee.properties),ee.jsDoc=void 0,ee}function tc(N,W){return N.properties!==W?s(Fs(W,N.multiLine),N):N}function id(N,W,ee){const ke=ge(211);return ke.expression=N,ke.questionDotToken=W,ke.name=ee,ke.transformFlags=su(ke.expression)|su(ke.questionDotToken)|(at(ke.name)?fV(ke.name):su(ke.name)|536870912),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function A0(N,W){const ee=id(d().parenthesizeLeftSideOfAccess(N,!1),void 0,Pc(W));return VP(N)&&(ee.transformFlags|=384),ee}function nd(N,W,ee){return wU(N)?Sd(N,W,N.questionDotToken,Lo(ee,at)):N.expression!==W||N.name!==ee?s(A0(W,ee),N):N}function f0(N,W,ee){const ke=id(d().parenthesizeLeftSideOfAccess(N,!0),W,Pc(ee));return ke.flags|=64,ke.transformFlags|=32,ke}function Sd(N,W,ee,ke){return H.assert(!!(N.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),N.expression!==W||N.questionDotToken!==ee||N.name!==ke?s(f0(W,ee,ke),N):N}function Ih(N,W,ee){const ke=ge(212);return ke.expression=N,ke.questionDotToken=W,ke.argumentExpression=ee,ke.transformFlags|=su(ke.expression)|su(ke.questionDotToken)|su(ke.argumentExpression),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function nh(N,W){const ee=Ih(d().parenthesizeLeftSideOfAccess(N,!1),void 0,f6(W));return VP(N)&&(ee.transformFlags|=384),ee}function d4(N,W,ee){return Vse(N)?Ve(N,W,N.questionDotToken,ee):N.expression!==W||N.argumentExpression!==ee?s(nh(W,ee),N):N}function _1(N,W,ee){const ke=Ih(d().parenthesizeLeftSideOfAccess(N,!0),W,f6(ee));return ke.flags|=64,ke.transformFlags|=32,ke}function Ve(N,W,ee,ke){return H.assert(!!(N.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),N.expression!==W||N.questionDotToken!==ee||N.argumentExpression!==ke?s(_1(W,ee,ke),N):N}function si(N,W,ee,ke){const dt=ge(213);return dt.expression=N,dt.questionDotToken=W,dt.typeArguments=ee,dt.arguments=ke,dt.transformFlags|=su(dt.expression)|su(dt.questionDotToken)|ys(dt.typeArguments)|ys(dt.arguments),dt.typeArguments&&(dt.transformFlags|=1),tf(dt.expression)&&(dt.transformFlags|=16384),dt}function zn(N,W,ee){const ke=si(d().parenthesizeLeftSideOfAccess(N,!1),void 0,Ns(W),d().parenthesizeExpressionsOfCommaDelimitedList(oe(ee)));return HP(ke.expression)&&(ke.transformFlags|=8388608),ke}function ya(N,W,ee,ke){return Gy(N)?Bo(N,W,N.questionDotToken,ee,ke):N.expression!==W||N.typeArguments!==ee||N.arguments!==ke?s(zn(W,ee,ke),N):N}function yo(N,W,ee,ke){const dt=si(d().parenthesizeLeftSideOfAccess(N,!0),W,Ns(ee),d().parenthesizeExpressionsOfCommaDelimitedList(oe(ke)));return dt.flags|=64,dt.transformFlags|=32,dt}function Bo(N,W,ee,ke,dt){return H.assert(!!(N.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),N.expression!==W||N.questionDotToken!==ee||N.typeArguments!==ke||N.arguments!==dt?s(yo(W,ee,ke,dt),N):N}function ic(N,W,ee){const ke=ge(214);return ke.expression=d().parenthesizeExpressionOfNew(N),ke.typeArguments=Ns(W),ke.arguments=ee?d().parenthesizeExpressionsOfCommaDelimitedList(ee):void 0,ke.transformFlags|=su(ke.expression)|ys(ke.typeArguments)|ys(ke.arguments)|32,ke.typeArguments&&(ke.transformFlags|=1),ke}function hc(N,W,ee,ke){return N.expression!==W||N.typeArguments!==ee||N.arguments!==ke?s(ic(W,ee,ke),N):N}function xl(N,W,ee){const ke=se(215);return ke.tag=d().parenthesizeLeftSideOfAccess(N,!1),ke.typeArguments=Ns(W),ke.template=ee,ke.transformFlags|=su(ke.tag)|ys(ke.typeArguments)|su(ke.template)|1024,ke.typeArguments&&(ke.transformFlags|=1),Y0e(ke.template)&&(ke.transformFlags|=128),ke}function Bl(N,W,ee,ke){return N.tag!==W||N.typeArguments!==ee||N.template!==ke?s(xl(W,ee,ke),N):N}function Cc(N,W){const ee=se(216);return ee.expression=d().parenthesizeOperandOfPrefixUnary(W),ee.type=N,ee.transformFlags|=su(ee.expression)|su(ee.type)|1,ee}function Ul(N,W,ee){return N.type!==W||N.expression!==ee?s(Cc(W,ee),N):N}function Lc(N){const W=se(217);return W.expression=N,W.transformFlags=su(W.expression),W.jsDoc=void 0,W}function ep(N,W){return N.expression!==W?s(Lc(W),N):N}function Gm(N,W,ee,ke,dt,Si,ou){const Ma=ge(218);Ma.modifiers=Ns(N),Ma.asteriskToken=W,Ma.name=Pc(ee),Ma.typeParameters=Ns(ke),Ma.parameters=oe(dt),Ma.type=Si,Ma.body=ou;const i0=eE(Ma.modifiers)&1024,Ym=!!Ma.asteriskToken,m6=i0&&Ym;return Ma.transformFlags=ys(Ma.modifiers)|su(Ma.asteriskToken)|Hx(Ma.name)|ys(Ma.typeParameters)|ys(Ma.parameters)|su(Ma.type)|su(Ma.body)&-67108865|(m6?128:i0?256:Ym?2048:0)|(Ma.typeParameters||Ma.type?1:0)|4194304,Ma.typeArguments=void 0,Ma.jsDoc=void 0,Ma.locals=void 0,Ma.nextContainer=void 0,Ma.flowNode=void 0,Ma.endFlowNode=void 0,Ma.returnFlowNode=void 0,Ma}function Rh(N,W,ee,ke,dt,Si,ou,Ma){return N.name!==ke||N.modifiers!==W||N.asteriskToken!==ee||N.typeParameters!==dt||N.parameters!==Si||N.type!==ou||N.body!==Ma?ae(Gm(W,ee,ke,dt,Si,ou,Ma),N):N}function h4(N,W,ee,ke,dt,Si){const ou=ge(219);ou.modifiers=Ns(N),ou.typeParameters=Ns(W),ou.parameters=oe(ee),ou.type=ke,ou.equalsGreaterThanToken=dt??Ie(39),ou.body=d().parenthesizeConciseBodyOfArrowFunction(Si);const Ma=eE(ou.modifiers)&1024;return ou.transformFlags=ys(ou.modifiers)|ys(ou.typeParameters)|ys(ou.parameters)|su(ou.type)|su(ou.equalsGreaterThanToken)|su(ou.body)&-67108865|(ou.typeParameters||ou.type?1:0)|(Ma?16640:0)|1024,ou.typeArguments=void 0,ou.jsDoc=void 0,ou.locals=void 0,ou.nextContainer=void 0,ou.flowNode=void 0,ou.endFlowNode=void 0,ou.returnFlowNode=void 0,ou}function l3(N,W,ee,ke,dt,Si,ou){return N.modifiers!==W||N.typeParameters!==ee||N.parameters!==ke||N.type!==dt||N.equalsGreaterThanToken!==Si||N.body!==ou?ae(h4(W,ee,ke,dt,Si,ou),N):N}function l_(N){const W=se(220);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=su(W.expression),W}function v5(N,W){return N.expression!==W?s(l_(W),N):N}function I1(N){const W=se(221);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=su(W.expression),W}function c3(N,W){return N.expression!==W?s(I1(W),N):N}function Kf(N){const W=se(222);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=su(W.expression),W}function f4(N,W){return N.expression!==W?s(Kf(W),N):N}function Oh(N){const W=se(223);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=su(W.expression)|256|128|2097152,W}function Ee(N,W){return N.expression!==W?s(Oh(W),N):N}function Bt(N,W){const ee=se(224);return ee.operator=N,ee.operand=d().parenthesizeOperandOfPrefixUnary(W),ee.transformFlags|=su(ee.operand),(N===46||N===47)&&at(ee.operand)&&!ul(ee.operand)&&!uD(ee.operand)&&(ee.transformFlags|=268435456),ee}function gi(N,W){return N.operand!==W?s(Bt(N.operator,W),N):N}function xi(N,W){const ee=se(225);return ee.operator=W,ee.operand=d().parenthesizeOperandOfPostfixUnary(N),ee.transformFlags|=su(ee.operand),at(ee.operand)&&!ul(ee.operand)&&!uD(ee.operand)&&(ee.transformFlags|=268435456),ee}function Q(N,W){return N.operand!==W?s(xi(W,N.operator),N):N}function Me(N,W,ee){const ke=ge(226),dt=hte(W),Si=dt.kind;return ke.left=d().parenthesizeLeftSideOfBinary(Si,N),ke.operatorToken=dt,ke.right=d().parenthesizeRightSideOfBinary(Si,ke.left,ee),ke.transformFlags|=su(ke.left)|su(ke.operatorToken)|su(ke.right),Si===61?ke.transformFlags|=32:Si===64?Cs(ke.left)?ke.transformFlags|=5248|wt(ke.left):_h(ke.left)&&(ke.transformFlags|=5120|wt(ke.left)):Si===43||Si===68?ke.transformFlags|=512:fP(Si)&&(ke.transformFlags|=16),Si===103&&Xr(ke.left)&&(ke.transformFlags|=536870912),ke.jsDoc=void 0,ke}function wt(N){return OV(N)?65536:0}function bi(N,W,ee,ke){return N.left!==W||N.operatorToken!==ee||N.right!==ke?s(Me(W,ee,ke),N):N}function Rn(N,W,ee,ke,dt){const Si=se(227);return Si.condition=d().parenthesizeConditionOfConditionalExpression(N),Si.questionToken=W??Ie(58),Si.whenTrue=d().parenthesizeBranchOfConditionalExpression(ee),Si.colonToken=ke??Ie(59),Si.whenFalse=d().parenthesizeBranchOfConditionalExpression(dt),Si.transformFlags|=su(Si.condition)|su(Si.questionToken)|su(Si.whenTrue)|su(Si.colonToken)|su(Si.whenFalse),Si}function nr(N,W,ee,ke,dt,Si){return N.condition!==W||N.questionToken!==ee||N.whenTrue!==ke||N.colonToken!==dt||N.whenFalse!==Si?s(Rn(W,ee,ke,dt,Si),N):N}function ur(N,W){const ee=se(228);return ee.head=N,ee.templateSpans=oe(W),ee.transformFlags|=su(ee.head)|ys(ee.templateSpans)|1024,ee}function ma(N,W,ee){return N.head!==W||N.templateSpans!==ee?s(ur(W,ee),N):N}function as(N,W,ee,ke=0){H.assert(!(ke&-7177),"Unsupported template flags.");let dt;if(ee!==void 0&&ee!==W&&(dt=CLt(N,ee),typeof dt=="object"))return H.fail("Invalid raw text");if(W===void 0){if(dt===void 0)return H.fail("Arguments 'text' and 'rawText' may not both be undefined.");W=dt}else dt!==void 0&&H.assert(W===dt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return W}function os(N){let W=1024;return N&&(W|=128),W}function Il(N,W,ee,ke){const dt=Yt(N);return dt.text=W,dt.rawText=ee,dt.templateFlags=ke&7176,dt.transformFlags=os(dt.templateFlags),dt}function D1(N,W,ee,ke){const dt=ge(N);return dt.text=W,dt.rawText=ee,dt.templateFlags=ke&7176,dt.transformFlags=os(dt.templateFlags),dt}function dd(N,W,ee,ke){return N===15?D1(N,W,ee,ke):Il(N,W,ee,ke)}function Jm(N,W,ee){return N=as(16,N,W,ee),dd(16,N,W,ee)}function gs(N,W,ee){return N=as(16,N,W,ee),dd(17,N,W,ee)}function tp(N,W,ee){return N=as(16,N,W,ee),dd(18,N,W,ee)}function $m(N,W,ee){return N=as(16,N,W,ee),D1(15,N,W,ee)}function d3(N,W){H.assert(!N||!!W,"A `YieldExpression` with an asteriskToken must have an expression.");const ee=se(229);return ee.expression=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.asteriskToken=N,ee.transformFlags|=su(ee.expression)|su(ee.asteriskToken)|1024|128|1048576,ee}function c_(N,W,ee){return N.expression!==ee||N.asteriskToken!==W?s(d3(W,ee),N):N}function ta(N){const W=se(230);return W.expression=d().parenthesizeExpressionForDisallowedComma(N),W.transformFlags|=su(W.expression)|1024|32768,W}function Qx(N,W){return N.expression!==W?s(ta(W),N):N}function Xx(N,W,ee,ke,dt){const Si=ge(231);return Si.modifiers=Ns(N),Si.name=Pc(W),Si.typeParameters=Ns(ee),Si.heritageClauses=Ns(ke),Si.members=oe(dt),Si.transformFlags|=ys(Si.modifiers)|Hx(Si.name)|ys(Si.typeParameters)|ys(Si.heritageClauses)|ys(Si.members)|(Si.typeParameters?1:0)|1024,Si.jsDoc=void 0,Si}function vg(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Si?s(Xx(W,ee,ke,dt,Si),N):N}function rb(){return se(232)}function C5(N,W){const ee=se(233);return ee.expression=d().parenthesizeLeftSideOfAccess(N,!1),ee.typeArguments=W&&d().parenthesizeTypeArguments(W),ee.transformFlags|=su(ee.expression)|ys(ee.typeArguments)|1024,ee}function Xe(N,W,ee){return N.expression!==W||N.typeArguments!==ee?s(C5(W,ee),N):N}function Dt(N,W){const ee=se(234);return ee.expression=N,ee.type=W,ee.transformFlags|=su(ee.expression)|su(ee.type)|1,ee}function ai(N,W,ee){return N.expression!==W||N.type!==ee?s(Dt(W,ee),N):N}function wi(N){const W=se(235);return W.expression=d().parenthesizeLeftSideOfAccess(N,!1),W.transformFlags|=su(W.expression)|1,W}function Qi(N,W){return LU(N)?Ar(N,W):N.expression!==W?s(wi(W),N):N}function On(N,W){const ee=se(238);return ee.expression=N,ee.type=W,ee.transformFlags|=su(ee.expression)|su(ee.type)|1,ee}function en(N,W,ee){return N.expression!==W||N.type!==ee?s(On(W,ee),N):N}function yn(N){const W=se(235);return W.flags|=64,W.expression=d().parenthesizeLeftSideOfAccess(N,!0),W.transformFlags|=su(W.expression)|1,W}function Ar(N,W){return H.assert(!!(N.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),N.expression!==W?s(yn(W),N):N}function bu(N,W){const ee=se(236);switch(ee.keywordToken=N,ee.name=W,ee.transformFlags|=su(ee.name),N){case 105:ee.transformFlags|=1024;break;case 102:ee.transformFlags|=32;break;default:return H.assertNever(N)}return ee.flowNode=void 0,ee}function yu(N,W){return N.name!==W?s(bu(N.keywordToken,W),N):N}function _u(N,W){const ee=se(239);return ee.expression=N,ee.literal=W,ee.transformFlags|=su(ee.expression)|su(ee.literal)|1024,ee}function sa(N,W,ee){return N.expression!==W||N.literal!==ee?s(_u(W,ee),N):N}function m0(){const N=se(240);return N.transformFlags|=1024,N}function a0(N,W){const ee=se(241);return ee.statements=oe(N),ee.multiLine=W,ee.transformFlags|=ys(ee.statements),ee.jsDoc=void 0,ee.locals=void 0,ee.nextContainer=void 0,ee}function Wf(N,W){return N.statements!==W?s(a0(W,N.multiLine),N):N}function Qv(N,W){const ee=se(243);return ee.modifiers=Ns(N),ee.declarationList=Ha(W)?tC(W):W,ee.transformFlags|=ys(ee.modifiers)|su(ee.declarationList),eE(ee.modifiers)&128&&(ee.transformFlags=1),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function e6(N,W,ee){return N.modifiers!==W||N.declarationList!==ee?s(Qv(W,ee),N):N}function lD(){const N=se(242);return N.jsDoc=void 0,N}function t6(N){const W=se(244);return W.expression=d().parenthesizeExpressionOfExpressionStatement(N),W.transformFlags|=su(W.expression),W.jsDoc=void 0,W.flowNode=void 0,W}function Kk(N,W){return N.expression!==W?s(t6(W),N):N}function ab(N,W,ee){const ke=se(245);return ke.expression=N,ke.thenStatement=D_(W),ke.elseStatement=D_(ee),ke.transformFlags|=su(ke.expression)|su(ke.thenStatement)|su(ke.elseStatement),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function Wk(N,W,ee,ke){return N.expression!==W||N.thenStatement!==ee||N.elseStatement!==ke?s(ab(W,ee,ke),N):N}function Gk(N,W){const ee=se(246);return ee.statement=D_(N),ee.expression=W,ee.transformFlags|=su(ee.statement)|su(ee.expression),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function rz(N,W,ee){return N.statement!==W||N.expression!==ee?s(Gk(W,ee),N):N}function E9(N,W){const ee=se(247);return ee.expression=N,ee.statement=D_(W),ee.transformFlags|=su(ee.expression)|su(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function Sw(N,W,ee){return N.expression!==W||N.statement!==ee?s(E9(W,ee),N):N}function Xv(N,W,ee,ke){const dt=se(248);return dt.initializer=N,dt.condition=W,dt.incrementor=ee,dt.statement=D_(ke),dt.transformFlags|=su(dt.initializer)|su(dt.condition)|su(dt.incrementor)|su(dt.statement),dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt}function _9(N,W,ee,ke,dt){return N.initializer!==W||N.condition!==ee||N.incrementor!==ke||N.statement!==dt?s(Xv(W,ee,ke,dt),N):N}function D9(N,W,ee){const ke=se(249);return ke.initializer=N,ke.expression=W,ke.statement=D_(ee),ke.transformFlags|=su(ke.initializer)|su(ke.expression)|su(ke.statement),ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.flowNode=void 0,ke}function Bw(N,W,ee,ke){return N.initializer!==W||N.expression!==ee||N.statement!==ke?s(D9(W,ee,ke),N):N}function Jk(N,W,ee,ke){const dt=se(250);return dt.awaitModifier=N,dt.initializer=W,dt.expression=d().parenthesizeExpressionForDisallowedComma(ee),dt.statement=D_(ke),dt.transformFlags|=su(dt.awaitModifier)|su(dt.initializer)|su(dt.expression)|su(dt.statement)|1024,N&&(dt.transformFlags|=128),dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt}function ww(N,W,ee,ke,dt){return N.awaitModifier!==W||N.initializer!==ee||N.expression!==ke||N.statement!==dt?s(Jk(W,ee,ke,dt),N):N}function x9(N){const W=se(251);return W.label=Pc(N),W.transformFlags|=su(W.label)|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function v9(N,W){return N.label!==W?s(x9(W),N):N}function $k(N){const W=se(252);return W.label=Pc(N),W.transformFlags|=su(W.label)|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function ob(N,W){return N.label!==W?s($k(W),N):N}function sb(N){const W=se(253);return W.expression=N,W.transformFlags|=su(W.expression)|128|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function eC(N,W){return N.expression!==W?s(sb(W),N):N}function b5(N,W){const ee=se(254);return ee.expression=N,ee.statement=D_(W),ee.transformFlags|=su(ee.expression)|su(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function lb(N,W,ee){return N.expression!==W||N.statement!==ee?s(b5(W,ee),N):N}function hE(N,W){const ee=se(255);return ee.expression=d().parenthesizeExpressionForDisallowedComma(N),ee.caseBlock=W,ee.transformFlags|=su(ee.expression)|su(ee.caseBlock),ee.jsDoc=void 0,ee.flowNode=void 0,ee.possiblyExhaustive=!1,ee}function Os(N,W,ee){return N.expression!==W||N.caseBlock!==ee?s(hE(W,ee),N):N}function Uk(N,W){const ee=se(256);return ee.label=Pc(N),ee.statement=D_(W),ee.transformFlags|=su(ee.label)|su(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function Tw(N,W,ee){return N.label!==W||N.statement!==ee?s(Uk(W,ee),N):N}function i6(N){const W=se(257);return W.expression=N,W.transformFlags|=su(W.expression),W.jsDoc=void 0,W.flowNode=void 0,W}function y5(N,W){return N.expression!==W?s(i6(W),N):N}function d_(N,W,ee){const ke=se(258);return ke.tryBlock=N,ke.catchClause=W,ke.finallyBlock=ee,ke.transformFlags|=su(ke.tryBlock)|su(ke.catchClause)|su(ke.finallyBlock),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function m4(N,W,ee,ke){return N.tryBlock!==W||N.catchClause!==ee||N.finallyBlock!==ke?s(d_(W,ee,ke),N):N}function Gf(){const N=se(259);return N.jsDoc=void 0,N.flowNode=void 0,N}function jh(N,W,ee,ke){const dt=ge(260);return dt.name=Pc(N),dt.exclamationToken=W,dt.type=ee,dt.initializer=cF(ke),dt.transformFlags|=Hx(dt.name)|su(dt.initializer)|(dt.exclamationToken??dt.type?1:0),dt.jsDoc=void 0,dt}function gm(N,W,ee,ke,dt){return N.name!==W||N.type!==ke||N.exclamationToken!==ee||N.initializer!==dt?s(jh(W,ee,ke,dt),N):N}function tC(N,W=0){const ee=se(261);return ee.flags|=W&7,ee.declarations=oe(N),ee.transformFlags|=ys(ee.declarations)|4194304,W&7&&(ee.transformFlags|=263168),W&4&&(ee.transformFlags|=4),ee}function Lw(N,W){return N.declarations!==W?s(tC(W,N.flags),N):N}function C9(N,W,ee,ke,dt,Si,ou){const Ma=ge(262);if(Ma.modifiers=Ns(N),Ma.asteriskToken=W,Ma.name=Pc(ee),Ma.typeParameters=Ns(ke),Ma.parameters=oe(dt),Ma.type=Si,Ma.body=ou,!Ma.body||eE(Ma.modifiers)&128)Ma.transformFlags=1;else{const i0=eE(Ma.modifiers)&1024,Ym=!!Ma.asteriskToken,m6=i0&&Ym;Ma.transformFlags=ys(Ma.modifiers)|su(Ma.asteriskToken)|Hx(Ma.name)|ys(Ma.typeParameters)|ys(Ma.parameters)|su(Ma.type)|su(Ma.body)&-67108865|(m6?128:i0?256:Ym?2048:0)|(Ma.typeParameters||Ma.type?1:0)|4194304}return Ma.typeArguments=void 0,Ma.jsDoc=void 0,Ma.locals=void 0,Ma.nextContainer=void 0,Ma.endFlowNode=void 0,Ma.returnFlowNode=void 0,Ma}function qk(N,W,ee,ke,dt,Si,ou,Ma){return N.modifiers!==W||N.asteriskToken!==ee||N.name!==ke||N.typeParameters!==dt||N.parameters!==Si||N.type!==ou||N.body!==Ma?cb(C9(W,ee,ke,dt,Si,ou,Ma),N):N}function cb(N,W){return N!==W&&N.modifiers===W.modifiers&&(N.modifiers=W.modifiers),ae(N,W)}function iC(N,W,ee,ke,dt){const Si=ge(263);return Si.modifiers=Ns(N),Si.name=Pc(W),Si.typeParameters=Ns(ee),Si.heritageClauses=Ns(ke),Si.members=oe(dt),eE(Si.modifiers)&128?Si.transformFlags=1:(Si.transformFlags|=ys(Si.modifiers)|Hx(Si.name)|ys(Si.typeParameters)|ys(Si.heritageClauses)|ys(Si.members)|(Si.typeParameters?1:0)|1024,Si.transformFlags&8192&&(Si.transformFlags|=1)),Si.jsDoc=void 0,Si}function Zk(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Si?s(iC(W,ee,ke,dt,Si),N):N}function nC(N,W,ee,ke,dt){const Si=ge(264);return Si.modifiers=Ns(N),Si.name=Pc(W),Si.typeParameters=Ns(ee),Si.heritageClauses=Ns(ke),Si.members=oe(dt),Si.transformFlags=1,Si.jsDoc=void 0,Si}function Rd(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Si?s(nC(W,ee,ke,dt,Si),N):N}function k5(N,W,ee,ke){const dt=ge(265);return dt.modifiers=Ns(N),dt.name=Pc(W),dt.typeParameters=Ns(ee),dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt}function F5(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.type!==dt?s(k5(W,ee,ke,dt),N):N}function h3(N,W,ee){const ke=ge(266);return ke.modifiers=Ns(N),ke.name=Pc(W),ke.members=oe(ee),ke.transformFlags|=ys(ke.modifiers)|su(ke.name)|ys(ke.members)|1,ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function pt(N,W,ee,ke){return N.modifiers!==W||N.name!==ee||N.members!==ke?s(h3(W,ee,ke),N):N}function t1(N,W,ee,ke=0){const dt=ge(267);return dt.modifiers=Ns(N),dt.flags|=ke&2088,dt.name=W,dt.body=ee,eE(dt.modifiers)&128?dt.transformFlags=1:dt.transformFlags|=ys(dt.modifiers)|su(dt.name)|su(dt.body)|1,dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt}function p4(N,W,ee,ke){return N.modifiers!==W||N.name!==ee||N.body!==ke?s(t1(W,ee,ke,N.flags),N):N}function Ch(N){const W=se(268);return W.statements=oe(N),W.transformFlags|=ys(W.statements),W.jsDoc=void 0,W}function Nw(N,W){return N.statements!==W?s(Ch(W),N):N}function A5(N){const W=se(269);return W.clauses=oe(N),W.transformFlags|=ys(W.clauses),W.locals=void 0,W.nextContainer=void 0,W}function uC(N,W){return N.clauses!==W?s(A5(W),N):N}function f3(N){const W=ge(270);return W.name=Pc(N),W.transformFlags|=fV(W.name)|1,W.modifiers=void 0,W.jsDoc=void 0,W}function az(N,W){return N.name!==W?js(f3(W),N):N}function js(N,W){return N!==W&&(N.modifiers=W.modifiers),s(N,W)}function Cg(N,W,ee,ke){const dt=ge(271);return dt.modifiers=Ns(N),dt.name=Pc(ee),dt.isTypeOnly=W,dt.moduleReference=ke,dt.transformFlags|=ys(dt.modifiers)|fV(dt.name)|su(dt.moduleReference),u_(dt.moduleReference)||(dt.transformFlags|=1),dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt}function Yk(N,W,ee,ke,dt){return N.modifiers!==W||N.isTypeOnly!==ee||N.name!==ke||N.moduleReference!==dt?s(Cg(W,ee,ke,dt),N):N}function Qk(N,W,ee,ke){const dt=se(272);return dt.modifiers=Ns(N),dt.importClause=W,dt.moduleSpecifier=ee,dt.attributes=dt.assertClause=ke,dt.transformFlags|=su(dt.importClause)|su(dt.moduleSpecifier),dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt}function db(N,W,ee,ke,dt){return N.modifiers!==W||N.importClause!==ee||N.moduleSpecifier!==ke||N.attributes!==dt?s(Qk(W,ee,ke,dt),N):N}function hb(N,W,ee){const ke=ge(273);return ke.isTypeOnly=N,ke.name=W,ke.namedBindings=ee,ke.transformFlags|=su(ke.name)|su(ke.namedBindings),N&&(ke.transformFlags|=1),ke.transformFlags&=-67108865,ke}function ip(N,W,ee,ke){return N.isTypeOnly!==W||N.name!==ee||N.namedBindings!==ke?s(hb(W,ee,ke),N):N}function bg(N,W){const ee=se(300);return ee.elements=oe(N),ee.multiLine=W,ee.token=132,ee.transformFlags|=4,ee}function m3(N,W,ee){return N.elements!==W||N.multiLine!==ee?s(bg(W,ee),N):N}function Xk(N,W){const ee=se(301);return ee.name=N,ee.value=W,ee.transformFlags|=4,ee}function fE(N,W,ee){return N.name!==W||N.value!==ee?s(Xk(W,ee),N):N}function eF(N,W){const ee=se(302);return ee.assertClause=N,ee.multiLine=W,ee}function Pw(N,W,ee){return N.assertClause!==W||N.multiLine!==ee?s(eF(W,ee),N):N}function $r(N,W,ee){const ke=se(300);return ke.token=ee??118,ke.elements=oe(N),ke.multiLine=W,ke.transformFlags|=4,ke}function sr(N,W,ee){return N.elements!==W||N.multiLine!==ee?s($r(W,ee,N.token),N):N}function mE(N,W){const ee=se(301);return ee.name=N,ee.value=W,ee.transformFlags|=4,ee}function yf(N,W,ee){return N.name!==W||N.value!==ee?s(mE(W,ee),N):N}function Mw(N){const W=ge(274);return W.name=N,W.transformFlags|=su(W.name),W.transformFlags&=-67108865,W}function S5(N,W){return N.name!==W?s(Mw(W),N):N}function zw(N){const W=ge(280);return W.name=N,W.transformFlags|=su(W.name)|32,W.transformFlags&=-67108865,W}function fb(N,W){return N.name!==W?s(zw(W),N):N}function nc(N){const W=se(275);return W.elements=oe(N),W.transformFlags|=ys(W.elements),W.transformFlags&=-67108865,W}function bh(N,W){return N.elements!==W?s(nc(W),N):N}function cD(N,W,ee){const ke=ge(276);return ke.isTypeOnly=N,ke.propertyName=W,ke.name=ee,ke.transformFlags|=su(ke.propertyName)|su(ke.name),ke.transformFlags&=-67108865,ke}function h_(N,W,ee,ke){return N.isTypeOnly!==W||N.propertyName!==ee||N.name!==ke?s(cD(W,ee,ke),N):N}function p3(N,W,ee){const ke=ge(277);return ke.modifiers=Ns(N),ke.isExportEquals=W,ke.expression=W?d().parenthesizeRightSideOfBinary(64,void 0,ee):d().parenthesizeExpressionOfExportDefault(ee),ke.transformFlags|=ys(ke.modifiers)|su(ke.expression),ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function Wp(N,W,ee){return N.modifiers!==W||N.expression!==ee?s(p3(W,N.isExportEquals,ee),N):N}function rC(N,W,ee,ke,dt){const Si=ge(278);return Si.modifiers=Ns(N),Si.isTypeOnly=W,Si.exportClause=ee,Si.moduleSpecifier=ke,Si.attributes=Si.assertClause=dt,Si.transformFlags|=ys(Si.modifiers)|su(Si.exportClause)|su(Si.moduleSpecifier),Si.transformFlags&=-67108865,Si.jsDoc=void 0,Si}function g3(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.isTypeOnly!==ee||N.exportClause!==ke||N.moduleSpecifier!==dt||N.attributes!==Si?Iw(rC(W,ee,ke,dt,Si),N):N}function Iw(N,W){return N!==W&&N.modifiers===W.modifiers&&(N.modifiers=W.modifiers),s(N,W)}function f_(N){const W=se(279);return W.elements=oe(N),W.transformFlags|=ys(W.elements),W.transformFlags&=-67108865,W}function Rw(N,W){return N.elements!==W?s(f_(W),N):N}function pE(N,W,ee){const ke=se(281);return ke.isTypeOnly=N,ke.propertyName=Pc(W),ke.name=Pc(ee),ke.transformFlags|=su(ke.propertyName)|su(ke.name),ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function m_(N,W,ee,ke){return N.isTypeOnly!==W||N.propertyName!==ee||N.name!==ke?s(pE(W,ee,ke),N):N}function B5(){const N=ge(282);return N.jsDoc=void 0,N}function Ow(N){const W=se(283);return W.expression=N,W.transformFlags|=su(W.expression),W.transformFlags&=-67108865,W}function b9(N,W){return N.expression!==W?s(Ow(W),N):N}function oz(N){return se(N)}function y9(N,W,ee=!1){const ke=S0(N,ee?W&&d().parenthesizeNonArrayTypeOfPostfixType(W):W);return ke.postfix=ee,ke}function S0(N,W){const ee=se(N);return ee.type=W,ee}function mb(N,W,ee){return W.type!==ee?s(y9(N,ee,W.postfix),W):W}function k9(N,W,ee){return W.type!==ee?s(S0(N,ee),W):W}function np(N,W){const ee=ge(324);return ee.parameters=Ns(N),ee.type=W,ee.transformFlags=ys(ee.parameters)|(ee.type?1:0),ee.jsDoc=void 0,ee.locals=void 0,ee.nextContainer=void 0,ee.typeArguments=void 0,ee}function aC(N,W,ee){return N.parameters!==W||N.type!==ee?s(np(W,ee),N):N}function F9(N,W=!1){const ee=ge(329);return ee.jsDocPropertyTags=Ns(N),ee.isArrayType=W,ee}function sz(N,W,ee){return N.jsDocPropertyTags!==W||N.isArrayType!==ee?s(F9(W,ee),N):N}function tF(N){const W=se(316);return W.type=N,W}function au(N,W){return N.type!==W?s(tF(W),N):N}function x1(N,W,ee){const ke=ge(330);return ke.typeParameters=Ns(N),ke.parameters=oe(W),ke.type=ee,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke}function Pa(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?s(x1(W,ee,ke),N):N}function sf(N){const W=tce(N.kind);return N.tagName.escapedText===kl(W)?N.tagName:We(W)}function gE(N,W,ee){const ke=se(N);return ke.tagName=W,ke.comment=ee,ke}function up(N,W,ee){const ke=ge(N);return ke.tagName=W,ke.comment=ee,ke}function Zn(N,W,ee,ke){const dt=gE(352,N??We("template"),ke);return dt.constraint=W,dt.typeParameters=oe(ee),dt}function pb(N,W=sf(N),ee,ke,dt){return N.tagName!==W||N.constraint!==ee||N.typeParameters!==ke||N.comment!==dt?s(Zn(W,ee,ke,dt),N):N}function oC(N,W,ee,ke){const dt=up(353,N??We("typedef"),ke);return dt.typeExpression=W,dt.fullName=ee,dt.name=jce(ee),dt.locals=void 0,dt.nextContainer=void 0,dt}function Bd(N,W=sf(N),ee,ke,dt){return N.tagName!==W||N.typeExpression!==ee||N.fullName!==ke||N.comment!==dt?s(oC(W,ee,ke,dt),N):N}function EE(N,W,ee,ke,dt,Si){const ou=up(348,N??We("param"),Si);return ou.typeExpression=ke,ou.name=W,ou.isNameFirst=!!dt,ou.isBracketed=ee,ou}function _E(N,W=sf(N),ee,ke,dt,Si,ou){return N.tagName!==W||N.name!==ee||N.isBracketed!==ke||N.typeExpression!==dt||N.isNameFirst!==Si||N.comment!==ou?s(EE(W,ee,ke,dt,Si,ou),N):N}function n6(N,W,ee,ke,dt,Si){const ou=up(355,N??We("prop"),Si);return ou.typeExpression=ke,ou.name=W,ou.isNameFirst=!!dt,ou.isBracketed=ee,ou}function A9(N,W=sf(N),ee,ke,dt,Si,ou){return N.tagName!==W||N.name!==ee||N.isBracketed!==ke||N.typeExpression!==dt||N.isNameFirst!==Si||N.comment!==ou?s(n6(W,ee,ke,dt,Si,ou),N):N}function dD(N,W,ee,ke){const dt=up(345,N??We("callback"),ke);return dt.typeExpression=W,dt.fullName=ee,dt.name=jce(ee),dt.locals=void 0,dt.nextContainer=void 0,dt}function sC(N,W=sf(N),ee,ke,dt){return N.tagName!==W||N.typeExpression!==ee||N.fullName!==ke||N.comment!==dt?s(dD(W,ee,ke,dt),N):N}function lC(N,W,ee){const ke=gE(346,N??We("overload"),ee);return ke.typeExpression=W,ke}function E3(N,W=sf(N),ee,ke){return N.tagName!==W||N.typeExpression!==ee||N.comment!==ke?s(lC(W,ee,ke),N):N}function p_(N,W,ee){const ke=gE(335,N??We("augments"),ee);return ke.class=W,ke}function iF(N,W=sf(N),ee,ke){return N.tagName!==W||N.class!==ee||N.comment!==ke?s(p_(W,ee,ke),N):N}function hD(N,W,ee){const ke=gE(336,N??We("implements"),ee);return ke.class=W,ke}function u6(N,W,ee){const ke=gE(354,N??We("see"),ee);return ke.name=W,ke}function gb(N,W,ee,ke){return N.tagName!==W||N.name!==ee||N.comment!==ke?s(u6(W,ee,ke),N):N}function S9(N){const W=se(317);return W.name=N,W}function nF(N,W){return N.name!==W?s(S9(W),N):N}function Eb(N,W){const ee=se(318);return ee.left=N,ee.right=W,ee.transformFlags|=su(ee.left)|su(ee.right),ee}function g4(N,W,ee){return N.left!==W||N.right!==ee?s(Eb(W,ee),N):N}function cC(N,W){const ee=se(331);return ee.name=N,ee.text=W,ee}function bc(N,W,ee){return N.name!==W?s(cC(W,ee),N):N}function hd(N,W){const ee=se(332);return ee.name=N,ee.text=W,ee}function B9(N,W,ee){return N.name!==W?s(hd(W,ee),N):N}function R1(N,W){const ee=se(333);return ee.name=N,ee.text=W,ee}function kf(N,W,ee){return N.name!==W?s(R1(W,ee),N):N}function _b(N,W=sf(N),ee,ke){return N.tagName!==W||N.class!==ee||N.comment!==ke?s(hD(W,ee,ke),N):N}function E4(N,W,ee){return gE(N,W??We(tce(N)),ee)}function dC(N,W,ee=sf(W),ke){return W.tagName!==ee||W.comment!==ke?s(E4(N,ee,ke),W):W}function w5(N,W,ee,ke){const dt=gE(N,W??We(tce(N)),ke);return dt.typeExpression=ee,dt}function i1(N,W,ee=sf(W),ke,dt){return W.tagName!==ee||W.typeExpression!==ke||W.comment!==dt?s(w5(N,ee,ke,dt),W):W}function uF(N,W){return gE(334,N,W)}function rp(N,W,ee){return N.tagName!==W||N.comment!==ee?s(uF(W,ee),N):N}function r6(N,W,ee){const ke=up(347,N??We(tce(347)),ee);return ke.typeExpression=W,ke.locals=void 0,ke.nextContainer=void 0,ke}function jw(N,W=sf(N),ee,ke){return N.tagName!==W||N.typeExpression!==ee||N.comment!==ke?s(r6(W,ee,ke),N):N}function P0(N){const W=se(328);return W.text=N,W}function Vw(N,W){return N.text!==W?s(P0(W),N):N}function rF(N,W){const ee=se(327);return ee.comment=N,ee.tags=Ns(W),ee}function hC(N,W,ee){return N.comment!==W||N.tags!==ee?s(rF(W,ee),N):N}function w9(N,W,ee){const ke=se(284);return ke.openingElement=N,ke.children=oe(W),ke.closingElement=ee,ke.transformFlags|=su(ke.openingElement)|ys(ke.children)|su(ke.closingElement)|2,ke}function Vh(N,W,ee,ke){return N.openingElement!==W||N.children!==ee||N.closingElement!==ke?s(w9(W,ee,ke),N):N}function _3(N,W,ee){const ke=se(285);return ke.tagName=N,ke.typeArguments=Ns(W),ke.attributes=ee,ke.transformFlags|=su(ke.tagName)|ys(ke.typeArguments)|su(ke.attributes)|2,ke.typeArguments&&(ke.transformFlags|=1),ke}function fD(N,W,ee,ke){return N.tagName!==W||N.typeArguments!==ee||N.attributes!==ke?s(_3(W,ee,ke),N):N}function Db(N,W,ee){const ke=se(286);return ke.tagName=N,ke.typeArguments=Ns(W),ke.attributes=ee,ke.transformFlags|=su(ke.tagName)|ys(ke.typeArguments)|su(ke.attributes)|2,W&&(ke.transformFlags|=1),ke}function Em(N,W,ee,ke){return N.tagName!==W||N.typeArguments!==ee||N.attributes!==ke?s(Db(W,ee,ke),N):N}function T9(N){const W=se(287);return W.tagName=N,W.transformFlags|=su(W.tagName)|2,W}function a6(N,W){return N.tagName!==W?s(T9(W),N):N}function Um(N,W,ee){const ke=se(288);return ke.openingFragment=N,ke.children=oe(W),ke.closingFragment=ee,ke.transformFlags|=su(ke.openingFragment)|ys(ke.children)|su(ke.closingFragment)|2,ke}function xb(N,W,ee,ke){return N.openingFragment!==W||N.children!==ee||N.closingFragment!==ke?s(Um(W,ee,ke),N):N}function T5(N,W){const ee=se(12);return ee.text=N,ee.containsOnlyTriviaWhiteSpaces=!!W,ee.transformFlags|=2,ee}function lz(N,W,ee){return N.text!==W||N.containsOnlyTriviaWhiteSpaces!==ee?s(T5(W,ee),N):N}function L9(){const N=se(289);return N.transformFlags|=2,N}function N9(){const N=se(290);return N.transformFlags|=2,N}function P9(N,W){const ee=ge(291);return ee.name=N,ee.initializer=W,ee.transformFlags|=su(ee.name)|su(ee.initializer)|2,ee}function fC(N,W,ee){return N.name!==W||N.initializer!==ee?s(P9(W,ee),N):N}function Jf(N){const W=ge(292);return W.properties=oe(N),W.transformFlags|=ys(W.properties)|2,W}function D3(N,W){return N.properties!==W?s(Jf(W),N):N}function M9(N){const W=se(293);return W.expression=N,W.transformFlags|=su(W.expression)|2,W}function z9(N,W){return N.expression!==W?s(M9(W),N):N}function Vs(N,W){const ee=se(294);return ee.dotDotDotToken=N,ee.expression=W,ee.transformFlags|=su(ee.dotDotDotToken)|su(ee.expression)|2,ee}function Du(N,W){return N.expression!==W?s(Vs(N.dotDotDotToken,W),N):N}function _m(N,W){const ee=se(295);return ee.namespace=N,ee.name=W,ee.transformFlags|=su(ee.namespace)|su(ee.name)|2,ee}function lf(N,W,ee){return N.namespace!==W||N.name!==ee?s(_m(W,ee),N):N}function vb(N,W){const ee=se(296);return ee.expression=d().parenthesizeExpressionForDisallowedComma(N),ee.statements=oe(W),ee.transformFlags|=su(ee.expression)|ys(ee.statements),ee.jsDoc=void 0,ee}function Hw(N,W,ee){return N.expression!==W||N.statements!==ee?s(vb(W,ee),N):N}function mC(N){const W=se(297);return W.statements=oe(N),W.transformFlags=ys(W.statements),W}function Cb(N,W){return N.statements!==W?s(mC(W),N):N}function o6(N,W){const ee=se(298);switch(ee.token=N,ee.types=oe(W),ee.transformFlags|=ys(ee.types),N){case 96:ee.transformFlags|=1024;break;case 119:ee.transformFlags|=1;break;default:return H.assertNever(N)}return ee}function qm(N,W){return N.types!==W?s(o6(N.token,W),N):N}function ap(N,W){const ee=se(299);return ee.variableDeclaration=O9(N),ee.block=W,ee.transformFlags|=su(ee.variableDeclaration)|su(ee.block)|(N?0:64),ee.locals=void 0,ee.nextContainer=void 0,ee}function s6(N,W,ee){return N.variableDeclaration!==W||N.block!==ee?s(ap(W,ee),N):N}function Gp(N,W){const ee=ge(303);return ee.name=Pc(N),ee.initializer=d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=Hx(ee.name)|su(ee.initializer),ee.modifiers=void 0,ee.questionToken=void 0,ee.exclamationToken=void 0,ee.jsDoc=void 0,ee}function op(N,W,ee){return N.name!==W||N.initializer!==ee?L5(Gp(W,ee),N):N}function L5(N,W){return N!==W&&(N.modifiers=W.modifiers,N.questionToken=W.questionToken,N.exclamationToken=W.exclamationToken),s(N,W)}function bb(N,W){const ee=ge(304);return ee.name=Pc(N),ee.objectAssignmentInitializer=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=fV(ee.name)|su(ee.objectAssignmentInitializer)|1024,ee.equalsToken=void 0,ee.modifiers=void 0,ee.questionToken=void 0,ee.exclamationToken=void 0,ee.jsDoc=void 0,ee}function Nc(N,W,ee){return N.name!==W||N.objectAssignmentInitializer!==ee?cz(bb(W,ee),N):N}function cz(N,W){return N!==W&&(N.modifiers=W.modifiers,N.questionToken=W.questionToken,N.exclamationToken=W.exclamationToken,N.equalsToken=W.equalsToken),s(N,W)}function _4(N){const W=ge(305);return W.expression=d().parenthesizeExpressionForDisallowedComma(N),W.transformFlags|=su(W.expression)|128|65536,W.jsDoc=void 0,W}function Kw(N,W){return N.expression!==W?s(_4(W),N):N}function O1(N,W){const ee=ge(306);return ee.name=Pc(N),ee.initializer=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=su(ee.name)|su(ee.initializer)|1,ee.jsDoc=void 0,ee}function pC(N,W,ee){return N.name!==W||N.initializer!==ee?s(O1(W,ee),N):N}function yb(N,W,ee){const ke=u.createBaseSourceFileNode(312);return ke.statements=oe(N),ke.endOfFileToken=W,ke.flags|=ee,ke.text="",ke.fileName="",ke.path="",ke.resolvedPath="",ke.originalFileName="",ke.languageVersion=0,ke.languageVariant=0,ke.scriptKind=0,ke.isDeclarationFile=!1,ke.hasNoDefaultLib=!1,ke.transformFlags|=ys(ke.statements)|su(ke.endOfFileToken),ke.locals=void 0,ke.nextContainer=void 0,ke.endFlowNode=void 0,ke.nodeCount=0,ke.identifierCount=0,ke.symbolCount=0,ke.parseDiagnostics=void 0,ke.bindDiagnostics=void 0,ke.bindSuggestionDiagnostics=void 0,ke.lineMap=void 0,ke.externalModuleIndicator=void 0,ke.setExternalModuleIndicator=void 0,ke.pragmas=void 0,ke.checkJsDirective=void 0,ke.referencedFiles=void 0,ke.typeReferenceDirectives=void 0,ke.libReferenceDirectives=void 0,ke.amdDependencies=void 0,ke.commentDirectives=void 0,ke.identifiers=void 0,ke.packageJsonLocations=void 0,ke.packageJsonScope=void 0,ke.imports=void 0,ke.moduleAugmentations=void 0,ke.ambientModuleNames=void 0,ke.classifiableNames=void 0,ke.impliedNodeFormat=void 0,ke}function aF(N){const W=Object.create(N.redirectTarget);return Object.defineProperties(W,{id:{get(){return this.redirectInfo.redirectTarget.id},set(ee){this.redirectInfo.redirectTarget.id=ee}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(ee){this.redirectInfo.redirectTarget.symbol=ee}}}),W.redirectInfo=N,W}function Ww(N){const W=aF(N.redirectInfo);return W.flags|=N.flags&-17,W.fileName=N.fileName,W.path=N.path,W.resolvedPath=N.resolvedPath,W.originalFileName=N.originalFileName,W.packageJsonLocations=N.packageJsonLocations,W.packageJsonScope=N.packageJsonScope,W.emitNode=void 0,W}function D4(N){const W=u.createBaseSourceFileNode(312);W.flags|=N.flags&-17;for(const ee in N)if(!(Eu(W,ee)||!Eu(N,ee))){if(ee==="emitNode"){W.emitNode=void 0;continue}W[ee]=N[ee]}return W}function Rl(N){const W=N.redirectInfo?Ww(N):D4(N);return lu(W,N),W}function DE(N,W,ee,ke,dt,Si,ou){const Ma=Rl(N);return Ma.statements=oe(W),Ma.isDeclarationFile=ee,Ma.referencedFiles=ke,Ma.typeReferenceDirectives=dt,Ma.hasNoDefaultLib=Si,Ma.libReferenceDirectives=ou,Ma.transformFlags=ys(Ma.statements)|su(Ma.endOfFileToken),Ma}function l6(N,W,ee=N.isDeclarationFile,ke=N.referencedFiles,dt=N.typeReferenceDirectives,Si=N.hasNoDefaultLib,ou=N.libReferenceDirectives){return N.statements!==W||N.isDeclarationFile!==ee||N.referencedFiles!==ke||N.typeReferenceDirectives!==dt||N.hasNoDefaultLib!==Si||N.libReferenceDirectives!==ou?s(DE(N,W,ee,ke,dt,Si,ou),N):N}function x3(N,W=_t){const ee=se(313);return ee.prepends=W,ee.sourceFiles=N,ee.syntheticFileReferences=void 0,ee.syntheticTypeReferences=void 0,ee.syntheticLibReferences=void 0,ee.hasNoDefaultLib=void 0,ee}function gC(N,W,ee=_t){return N.sourceFiles!==W||N.prepends!==ee?s(x3(W,ee),N):N}function Gw(N,W,ee){const ke=se(314);return ke.prologues=N,ke.syntheticReferences=W,ke.texts=ee,ke.fileName="",ke.text="",ke.referencedFiles=_t,ke.libReferenceDirectives=_t,ke.getLineAndCharacterOfPosition=dt=>o0(ke,dt),ke}function c6(N,W){const ee=se(N);return ee.data=W,ee}function O(N){return c6(307,N)}function be(N,W){const ee=c6(308,N);return ee.texts=W,ee}function Vt(N,W){return c6(W?310:309,N)}function Oi(N){const W=se(311);return W.data=N.data,W.section=N,W}function ku(){const N=se(315);return N.javascriptText="",N.declarationText="",N}function Jr(N,W=!1,ee){const ke=se(237);return ke.type=N,ke.isSpread=W,ke.tupleNameSource=ee,ke}function br(N){const W=se(358);return W._children=N,W}function _a(N){const W=se(359);return W.original=N,Pt(W,N),W}function ko(N,W){const ee=se(360);return ee.expression=N,ee.original=W,ee.transformFlags|=su(ee.expression)|1,Pt(ee,W),ee}function Ff(N,W){return N.expression!==W?s(ko(W,N.original),N):N}function $f(N){if(al(N)&&!MN(N)&&!N.original&&!N.emitNode&&!N.id){if($P(N))return N.elements;if(tu(N)&&Uke(N.operatorToken))return[N.left,N.right]}return N}function Sr(N){const W=se(361);return W.elements=oe(ha(N,$f)),W.transformFlags|=ys(W.elements),W}function xE(N,W){return N.elements!==W?s(Sr(W),N):N}function gn(N,W){const ee=se(362);return ee.expression=N,ee.thisArg=W,ee.transformFlags|=su(ee.expression)|su(ee.thisArg),ee}function d6(N,W,ee){return N.expression!==W||N.thisArg!==ee?s(gn(W,ee),N):N}function N5(N){const W=xe(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,lu(W,N),_V(W,{...N.emitNode.autoGenerate}),W}function oF(N){const W=xe(N.escapedText);W.flags|=N.flags&-17,W.jsDoc=N.jsDoc,W.flowNode=N.flowNode,W.symbol=N.symbol,W.transformFlags=N.transformFlags,lu(W,N);const ee=mk(N);return ee&&s5(W,ee),W}function EC(N){const W=ft(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,lu(W,N),_V(W,{...N.emitNode.autoGenerate}),W}function I9(N){const W=ft(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,lu(W,N),W}function sF(N){if(N===void 0)return N;if(ca(N))return Rl(N);if(ul(N))return N5(N);if(at(N))return oF(N);if(Jy(N))return EC(N);if(Xr(N))return I9(N);const W=KO(N.kind)?u.createBaseNode(N.kind):u.createBaseTokenNode(N.kind);W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,lu(W,N);for(const ee in N)Eu(W,ee)||!Eu(N,ee)||(W[ee]=N[ee]);return W}function g_(N,W,ee){return zn(Gm(void 0,void 0,void 0,void 0,W?[W]:[],void 0,a0(N,!0)),void 0,ee?[ee]:[])}function P5(N,W,ee){return zn(h4(void 0,void 0,W?[W]:[],void 0,void 0,a0(N,!0)),void 0,ee?[ee]:[])}function v3(){return Kf(Ce("0"))}function Jw(N){return p3(void 0,!1,N)}function R9(N){return rC(void 0,!1,f_([pE(!1,void 0,N)]))}function UK(N,W){return W==="null"?Y.createStrictEquality(N,It()):W==="undefined"?Y.createStrictEquality(N,v3()):Y.createStrictEquality(I1(N),Se(W))}function dz(N,W){return W==="null"?Y.createStrictInequality(N,It()):W==="undefined"?Y.createStrictInequality(N,v3()):Y.createStrictInequality(I1(N),Se(W))}function E_(N,W,ee){return Gy(N)?yo(f0(N,void 0,W),void 0,void 0,ee):zn(A0(N,W),void 0,ee)}function mD(N,W,ee){return E_(N,"bind",[W,...ee])}function $w(N,W,ee){return E_(N,"call",[W,...ee])}function __(N,W,ee){return E_(N,"apply",[W,ee])}function _C(N,W,ee){return E_(We(N),W,ee)}function cte(N,W){return E_(N,"slice",W===void 0?[]:[f6(W)])}function vE(N,W){return E_(N,"concat",W)}function lF(N,W,ee){return _C("Object","defineProperty",[N,f6(W),ee])}function qK(N,W){return _C("Object","getOwnPropertyDescriptor",[N,f6(W)])}function he(N,W,ee){return _C("Reflect","get",ee?[N,W,ee]:[N,W])}function Re(N,W,ee,ke){return _C("Reflect","set",ke?[N,W,ee,ke]:[N,W,ee])}function nt(N,W,ee){return ee?(N.push(Gp(W,ee)),!0):!1}function Lt(N,W){const ee=[];nt(ee,"enumerable",f6(N.enumerable)),nt(ee,"configurable",f6(N.configurable));let ke=nt(ee,"writable",f6(N.writable));ke=nt(ee,"value",N.value)||ke;let dt=nt(ee,"get",N.get);return dt=nt(ee,"set",N.set)||dt,H.assert(!(ke&&dt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Fs(ee,!W)}function vi(N,W){switch(N.kind){case 217:return ep(N,W);case 216:return Ul(N,N.type,W);case 234:return ai(N,W,N.type);case 238:return en(N,W,N.type);case 235:return Qi(N,W);case 360:return Ff(N,W)}}function Xi(N){return vf(N)&&al(N)&&al(wv(N))&&al(iE(N))&&!qe(EB(N))&&!qe(EV(N))}function zu(N,W,ee=15){return N&&_Y(N,ee)&&!Xi(N)?vi(N,zu(N.expression,W)):W}function Kr(N,W,ee){if(!W)return N;const ke=Tw(W,W.label,R2(W.statement)?Kr(N,W.statement):N);return ee&&ee(W),ke}function Nr(N,W){const ee=s0(N);switch(ee.kind){case 80:return W;case 110:case 9:case 10:case 11:return!1;case 209:return ee.elements.length!==0;case 210:return ee.properties.length>0;default:return!0}}function _r(N,W,ee,ke=!1){const dt=_c(N,15);let Si,ou;return tf(dt)?(Si=St(),ou=dt):VP(dt)?(Si=St(),ou=ee!==void 0&&ee<2?Pt(We("_super"),dt):dt):vs(dt)&8192?(Si=v3(),ou=d().parenthesizeLeftSideOfAccess(dt,!1)):Iu(dt)?Nr(dt.expression,ke)?(Si=Ae(W),ou=A0(Pt(Y.createAssignment(Si,dt.expression),dt.expression),dt.name),Pt(ou,dt)):(Si=dt.expression,ou=dt):W0(dt)?Nr(dt.expression,ke)?(Si=Ae(W),ou=nh(Pt(Y.createAssignment(Si,dt.expression),dt.expression),dt.argumentExpression),Pt(ou,dt)):(Si=dt.expression,ou=dt):(Si=v3(),ou=d().parenthesizeLeftSideOfAccess(N,!1)),{target:ou,thisArg:Si}}function pa(N,W){return A0(Lc(Fs([et(void 0,"value",[Qu(void 0,void 0,N,void 0,void 0,void 0)],a0([t6(W)]))])),"value")}function E0(N){return N.length>10?Sr(N):tn(N,Y.createComma)}function Us(N,W,ee,ke=0,dt){const Si=dt?N&&AU(N):qa(N);if(Si&&at(Si)&&!ul(Si)){const ou=bs(Pt(sF(Si),Si),Si.parent);return ke|=vs(Si),ee||(ke|=96),W||(ke|=3072),ke&&Qn(ou,ke),ou}return Ge(N)}function Hs(N,W,ee){return Us(N,W,ee,98304)}function x4(N,W,ee,ke){return Us(N,W,ee,32768,ke)}function Jp(N,W,ee){return Us(N,W,ee,16384)}function h6(N,W,ee){return Us(N,W,ee)}function C3(N,W,ee,ke){const dt=A0(N,al(W)?W:sF(W));Pt(dt,W);let Si=0;return ke||(Si|=96),ee||(Si|=3072),Si&&Qn(dt,Si),dt}function Od(N,W,ee,ke){return N&&Xu(W,32)?C3(N,Us(W),ee,ke):Jp(W,ee,ke)}function pD(N,W,ee,ke){const dt=qw(N,W,0,ee);return fz(N,W,dt,ke)}function hz(N){return ns(N.expression)&&N.expression.text==="use strict"}function Uw(){return xh(t6(Se("use strict")))}function qw(N,W,ee=0,ke){H.assert(W.length===0,"Prologue directives should be at the first statement in the target statements array");let dt=!1;const Si=N.length;for(;eeMa&&Ym.splice(dt,0,...W.slice(Ma,i0)),Ma>ou&&Ym.splice(ke,0,...W.slice(ou,Ma)),ou>Si&&Ym.splice(ee,0,...W.slice(Si,ou)),Si>0)if(ee===0)Ym.splice(0,0,...W.slice(0,Si));else{const m6=new Map;for(let p6=0;p6=0;p6--){const DC=W[p6];m6.has(DC.expression.text)||Ym.unshift(DC)}}return f2(N)?Pt(oe(Ym,N.hasTrailingComma),N):N}function pz(N,W){let ee;return typeof W=="number"?ee=Li(W):ee=W,Al(N)?Fi(N,ee,N.name,N.constraint,N.default):eo(N)?aa(N,ee,N.dotDotDotToken,N.name,N.questionToken,N.type,N.initializer):KP(N)?$i(N,ee,N.typeParameters,N.parameters,N.type):Pm(N)?jn(N,ee,N.name,N.questionToken,N.type):bo(N)?Dn(N,ee,N.name,N.questionToken??N.exclamationToken,N.type,N.initializer):i3(N)?iu(N,ee,N.name,N.questionToken,N.typeParameters,N.parameters,N.type):cc(N)?xa(N,ee,N.asteriskToken,N.name,N.questionToken,N.typeParameters,N.parameters,N.type,N.body):dc(N)?Et(N,ee,N.parameters,N.body):Mm(N)?Xt(N,ee,N.name,N.parameters,N.type,N.body):Of(N)?gt(N,ee,N.name,N.parameters,N.body):pk(N)?pi(N,ee,N.parameters,N.type):F0(N)?Rh(N,ee,N.asteriskToken,N.name,N.typeParameters,N.parameters,N.type,N.body):G0(N)?l3(N,ee,N.typeParameters,N.parameters,N.type,N.equalsGreaterThanToken,N.body):Qd(N)?vg(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):Gl(N)?e6(N,ee,N.declarationList):Xc(N)?qk(N,ee,N.asteriskToken,N.name,N.typeParameters,N.parameters,N.type,N.body):Kc(N)?Zk(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):Dh(N)?Rd(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):Ip(N)?F5(N,ee,N.name,N.typeParameters,N.type):Mv(N)?pt(N,ee,N.name,N.members):Ec(N)?p4(N,ee,N.name,N.body):g1(N)?Yk(N,ee,N.isTypeOnly,N.name,N.moduleReference):Ad(N)?db(N,ee,N.importClause,N.moduleSpecifier,N.attributes):ec(N)?Wp(N,ee,N.expression):Wc(N)?g3(N,ee,N.isTypeOnly,N.exportClause,N.moduleSpecifier,N.attributes):H.assertNever(N)}function v4(N,W){return eo(N)?aa(N,W,N.dotDotDotToken,N.name,N.questionToken,N.type,N.initializer):bo(N)?Dn(N,W,N.name,N.questionToken??N.exclamationToken,N.type,N.initializer):cc(N)?xa(N,W,N.asteriskToken,N.name,N.questionToken,N.typeParameters,N.parameters,N.type,N.body):Mm(N)?Xt(N,W,N.name,N.parameters,N.type,N.body):Of(N)?gt(N,W,N.name,N.parameters,N.body):Qd(N)?vg(N,W,N.name,N.typeParameters,N.heritageClauses,N.members):Kc(N)?Zk(N,W,N.name,N.typeParameters,N.heritageClauses,N.members):H.assertNever(N)}function Zw(N,W){switch(N.kind){case 177:return Xt(N,N.modifiers,W,N.parameters,N.type,N.body);case 178:return gt(N,N.modifiers,W,N.parameters,N.body);case 174:return xa(N,N.modifiers,N.asteriskToken,W,N.questionToken,N.typeParameters,N.parameters,N.type,N.body);case 173:return iu(N,N.modifiers,W,N.questionToken,N.typeParameters,N.parameters,N.type);case 172:return Dn(N,N.modifiers,W,N.questionToken??N.exclamationToken,N.type,N.initializer);case 171:return jn(N,N.modifiers,W,N.questionToken,N.type);case 303:return op(N,W,N.initializer)}}function Ns(N){return N?oe(N):void 0}function Pc(N){return typeof N=="string"?We(N):N}function f6(N){return typeof N=="string"?Se(N):typeof N=="number"?Ce(N):typeof N=="boolean"?N?ti():ht():N}function cF(N){return N&&d().parenthesizeExpressionForDisallowedComma(N)}function hte(N){return typeof N=="number"?Ie(N):N}function D_(N){return N&&bce(N)?Pt(lu(lD(),N),N):N}function O9(N){return typeof N=="string"||N&&!ua(N)?jh(N,void 0,void 0,void 0):N}}function xLt(t,u){return t!==u&&Pt(t,u),t}function vLt(t,u){return t!==u&&(lu(t,u),Pt(t,u)),t}function tce(t){switch(t){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return H.fail(`Unsupported kind: ${H.formatSyntaxKind(t)}`)}}function CLt(t,u){switch(o5||(o5=ZD(99,!1,0)),t){case 15:o5.setText("`"+u+"`");break;case 16:o5.setText("`"+u+"${");break;case 17:o5.setText("}"+u+"${");break;case 18:o5.setText("}"+u+"`");break}let s=o5.scan();if(s===20&&(s=o5.reScanTemplateToken(!1)),o5.isUnterminated())return o5.setText(void 0),Mke;let d;switch(s){case 15:case 16:case 17:case 18:d=o5.getTokenValue();break}return d===void 0||o5.scan()!==1?(o5.setText(void 0),Mke):(o5.setText(void 0),d)}function Hx(t){return t&&at(t)?fV(t):su(t)}function fV(t){return su(t)&-67108865}function bLt(t,u){return u|t.transformFlags&134234112}function su(t){if(!t)return 0;const u=t.transformFlags&~Nke(t.kind);return fh(t)&&Ac(t.name)?bLt(t.name,u):u}function ys(t){return t?t.transformFlags:0}function NYe(t){let u=0;for(const s of t)u|=su(s);t.transformFlags=u}function Nke(t){if(t>=182&&t<=205)return-2;switch(t){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function xZ(t){return t.flags|=16,t}function ice(t,u,s){let d,f,p,E,v,b,B,k,T,M;Ja(t)?(p="",E=t,v=t.length,b=u,B=s):(H.assert(u==="js"||u==="dts"),p=(u==="js"?t.javascriptPath:t.declarationPath)||"",b=u==="js"?t.javascriptMapPath:t.declarationMapPath,k=()=>u==="js"?t.javascriptText:t.declarationText,T=()=>u==="js"?t.javascriptMapText:t.declarationMapText,v=()=>k().length,t.buildInfo&&t.buildInfo.bundle&&(H.assert(s===void 0||typeof s=="boolean"),d=s,f=u==="js"?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,M=t.oldFileOfCurrentEmit));const z=M?kLt(H.checkDefined(f)):yLt(f,d,v);return z.fileName=p,z.sourceMapPath=b,z.oldFileOfCurrentEmit=M,k&&T?(Object.defineProperty(z,"text",{get:k}),Object.defineProperty(z,"sourceMapText",{get:T})):(H.assert(!M),z.text=E??"",z.sourceMapText=B),z}function yLt(t,u,s){let d,f,p,E,v,b,B,k;for(const M of t?t.sections:_t)switch(M.kind){case"prologue":d=Ei(d,Pt(q.createUnparsedPrologue(M.data),M));break;case"emitHelpers":f=Ei(f,dce().get(M.data));break;case"no-default-lib":k=!0;break;case"reference":p=Ei(p,{pos:-1,end:-1,fileName:M.data});break;case"type":E=Ei(E,{pos:-1,end:-1,fileName:M.data});break;case"type-import":E=Ei(E,{pos:-1,end:-1,fileName:M.data,resolutionMode:99});break;case"type-require":E=Ei(E,{pos:-1,end:-1,fileName:M.data,resolutionMode:1});break;case"lib":v=Ei(v,{pos:-1,end:-1,fileName:M.data});break;case"prepend":let z;for(const j of M.texts)(!u||j.kind!=="internal")&&(z=Ei(z,Pt(q.createUnparsedTextLike(j.data,j.kind==="internal"),j)));b=kn(b,z),B=Ei(B,q.createUnparsedPrepend(M.data,z??_t));break;case"internal":if(u){B||(B=[]);break}case"text":B=Ei(B,Pt(q.createUnparsedTextLike(M.data,M.kind==="internal"),M));break;default:H.assertNever(M)}if(!B){const M=q.createUnparsedTextLike(void 0,!1);BP(M,0,typeof s=="function"?s():s),B=[M]}const T=r_.createUnparsedSource(d??_t,void 0,B);return fB(d,T),fB(B,T),fB(b,T),T.hasNoDefaultLib=k,T.helpers=f,T.referencedFiles=p||_t,T.typeReferenceDirectives=E,T.libReferenceDirectives=v||_t,T}function kLt(t){let u,s;for(const f of t.sections)switch(f.kind){case"internal":case"text":u=Ei(u,Pt(q.createUnparsedTextLike(f.data,f.kind==="internal"),f));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":s=Ei(s,Pt(q.createUnparsedSyntheticReference(f),f));break;case"prologue":case"emitHelpers":case"prepend":break;default:H.assertNever(f)}const d=q.createUnparsedSource(_t,s,u??_t);return fB(s,d),fB(u,d),d.helpers=Kt(t.sources&&t.sources.helpers,f=>dce().get(f)),d}function PYe(t,u,s,d,f,p){return Ja(t)?uce(void 0,t,s,d,void 0,u,f,p):nce(t,u,s,d,f,p)}function nce(t,u,s,d,f,p,E,v){const b=r_.createInputFiles();b.javascriptPath=u,b.javascriptMapPath=s,b.declarationPath=d,b.declarationMapPath=f,b.buildInfoPath=p;const B=new Map,k=j=>{if(j===void 0)return;let J=B.get(j);return J===void 0&&(J=t(j),B.set(j,J!==void 0?J:!1)),J!==!1?J:void 0},T=j=>{const J=k(j);return J!==void 0?J:`/* Input file ${j} was missing */\r -`};let M;return Object.defineProperties(b,{javascriptText:{get:()=>T(u)},javascriptMapText:{get:()=>k(s)},declarationText:{get:()=>T(H.checkDefined(d))},declarationMapText:{get:()=>k(f)},buildInfo:{get:()=>{if(M===void 0&&p)if(E!=null&&E.getBuildInfo)M=E.getBuildInfo(p,v.configFilePath)??!1;else{const j=k(p);M=j!==void 0?mQ(p,j)??!1:!1}return M||void 0}}}),b}function uce(t,u,s,d,f,p,E,v,b,B,k){const T=r_.createInputFiles();return T.javascriptPath=t,T.javascriptText=u,T.javascriptMapPath=s,T.javascriptMapText=d,T.declarationPath=f,T.declarationText=p,T.declarationMapPath=E,T.declarationMapText=v,T.buildInfoPath=b,T.buildInfo=B,T.oldFileOfCurrentEmit=k,T}function MYe(t,u,s){return new(IYe||(IYe=Yd.getSourceMapSourceConstructor()))(t,u,s)}function lu(t,u){if(t.original!==u&&(t.original=u,u)){const s=u.emitNode;s&&(t.emitNode=FLt(s,t.emitNode))}return t}function FLt(t,u){const{flags:s,internalFlags:d,leadingComments:f,trailingComments:p,commentRange:E,sourceMapRange:v,tokenSourceMapRanges:b,constantValue:B,helpers:k,startsOnNewLine:T,snippetElement:M,classThis:z,assignedName:j}=t;if(u||(u={}),s&&(u.flags=s),d&&(u.internalFlags=d&-9),f&&(u.leadingComments=kn(f.slice(),u.leadingComments)),p&&(u.trailingComments=kn(p.slice(),u.trailingComments)),E&&(u.commentRange=E),v&&(u.sourceMapRange=v),b&&(u.tokenSourceMapRanges=ALt(b,u.tokenSourceMapRanges)),B!==void 0&&(u.constantValue=B),k)for(const J of k)u.helpers=e0(u.helpers,J);return T!==void 0&&(u.startsOnNewLine=T),M!==void 0&&(u.snippetElement=M),z&&(u.classThis=z),j&&(u.assignedName=j),u}function ALt(t,u){u||(u=[]);for(const s in t)u[s]=t[s];return u}var vZ,rce,Pke,o5,Mke,mV,zYe,q,IYe,SLt=o({"src/compiler/factory/nodeFactory.ts"(){Ao(),vZ=0,rce=(t=>(t[t.None=0]="None",t[t.NoParenthesizerRules=1]="NoParenthesizerRules",t[t.NoNodeConverters=2]="NoNodeConverters",t[t.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",t[t.NoOriginalNode=8]="NoOriginalNode",t))(rce||{}),Pke=[],Mke={},mV=wke(),zYe={createBaseSourceFileNode:t=>xZ(mV.createBaseSourceFileNode(t)),createBaseIdentifierNode:t=>xZ(mV.createBaseIdentifierNode(t)),createBasePrivateIdentifierNode:t=>xZ(mV.createBasePrivateIdentifierNode(t)),createBaseTokenNode:t=>xZ(mV.createBaseTokenNode(t)),createBaseNode:t=>xZ(mV.createBaseNode(t))},q=hV(4,zYe)}});function N1(t){if(t.emitNode)H.assert(!(t.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(MN(t)){if(t.kind===312)return t.emitNode={annotatedNodes:[t]};const u=In(Ua(In(t)))??H.fail("Could not determine parsed source file.");N1(u).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function ace(t){var u,s;const d=(s=(u=In(Ua(t)))==null?void 0:u.emitNode)==null?void 0:s.annotatedNodes;if(d)for(const f of d)f.emitNode=void 0}function pV(t){const u=N1(t);return u.flags|=3072,u.leadingComments=void 0,u.trailingComments=void 0,t}function Qn(t,u){return N1(t).flags=u,t}function t_(t,u){const s=N1(t);return s.flags=s.flags|u,t}function gV(t,u){return N1(t).internalFlags=u,t}function y7(t,u){const s=N1(t);return s.internalFlags=s.internalFlags|u,t}function wv(t){var u;return((u=t.emitNode)==null?void 0:u.sourceMapRange)??t}function ks(t,u){return N1(t).sourceMapRange=u,t}function RYe(t,u){var s,d;return(d=(s=t.emitNode)==null?void 0:s.tokenSourceMapRanges)==null?void 0:d[u]}function zke(t,u,s){const d=N1(t),f=d.tokenSourceMapRanges??(d.tokenSourceMapRanges=[]);return f[u]=s,t}function IP(t){var u;return(u=t.emitNode)==null?void 0:u.startsOnNewLine}function CZ(t,u){return N1(t).startsOnNewLine=u,t}function iE(t){var u;return((u=t.emitNode)==null?void 0:u.commentRange)??t}function Sc(t,u){return N1(t).commentRange=u,t}function EB(t){var u;return(u=t.emitNode)==null?void 0:u.leadingComments}function Tv(t,u){return N1(t).leadingComments=u,t}function RP(t,u,s,d){return Tv(t,Ei(EB(t),{kind:u,pos:-1,end:-1,hasTrailingNewLine:d,text:s}))}function EV(t){var u;return(u=t.emitNode)==null?void 0:u.trailingComments}function k7(t,u){return N1(t).trailingComments=u,t}function bZ(t,u,s,d){return k7(t,Ei(EV(t),{kind:u,pos:-1,end:-1,hasTrailingNewLine:d,text:s}))}function Ike(t,u){Tv(t,EB(u)),k7(t,EV(u));const s=N1(u);return s.leadingComments=void 0,s.trailingComments=void 0,t}function Rke(t){var u;return(u=t.emitNode)==null?void 0:u.constantValue}function Oke(t,u){const s=N1(t);return s.constantValue=u,t}function F7(t,u){const s=N1(t);return s.helpers=Ei(s.helpers,u),t}function tD(t,u){if(qe(u)){const s=N1(t);for(const d of u)s.helpers=e0(s.helpers,d)}return t}function OYe(t,u){var s;const d=(s=t.emitNode)==null?void 0:s.helpers;return d?mO(d,u):!1}function yZ(t){var u;return(u=t.emitNode)==null?void 0:u.helpers}function jke(t,u,s){const d=t.emitNode,f=d&&d.helpers;if(!qe(f))return;const p=N1(u);let E=0;for(let v=0;v0&&(f[v-E]=b)}E>0&&(f.length-=E)}function oce(t){var u;return(u=t.emitNode)==null?void 0:u.snippetElement}function sce(t,u){const s=N1(t);return s.snippetElement=u,t}function lce(t){return N1(t).internalFlags|=4,t}function Vke(t,u){const s=N1(t);return s.typeNode=u,t}function Hke(t){var u;return(u=t.emitNode)==null?void 0:u.typeNode}function s5(t,u){return N1(t).identifierTypeArguments=u,t}function mk(t){var u;return(u=t.emitNode)==null?void 0:u.identifierTypeArguments}function _V(t,u){return N1(t).autoGenerate=u,t}function jYe(t){var u;return(u=t.emitNode)==null?void 0:u.autoGenerate}function Kke(t,u){return N1(t).generatedImportReference=u,t}function Wke(t){var u;return(u=t.emitNode)==null?void 0:u.generatedImportReference}var BLt=o({"src/compiler/factory/emitNode.ts"(){Ao()}});function Gke(t){const u=t.factory,s=Nh(()=>gV(u.createTrue(),8)),d=Nh(()=>gV(u.createFalse(),8));return{getUnscopedHelperName:f,createDecorateHelper:p,createMetadataHelper:E,createParamHelper:v,createESDecorateHelper:J,createRunInitializersHelper:K,createAssignHelper:Y,createAwaitHelper:oe,createAsyncGeneratorHelper:se,createAsyncDelegatorHelper:ge,createAsyncValuesHelper:ae,createRestHelper:Ce,createAwaiterHelper:ne,createExtendsHelper:ve,createTemplateObjectHelper:Se,createSpreadArrayHelper:Ne,createPropKeyHelper:pe,createSetFunctionNameHelper:fe,createValuesHelper:xe,createReadHelper:Be,createGeneratorHelper:We,createCreateBindingHelper:Ae,createImportStarHelper:De,createImportStarCallbackHelper:He,createImportDefaultHelper:Ge,createExportStarHelper:ft,createClassPrivateFieldGetHelper:Ze,createClassPrivateFieldSetHelper:je,createClassPrivateFieldInHelper:Ke,createAddDisposableResourceHelper:Gt,createDisposeResourcesHelper:Yt};function f(Ie){return Qn(u.createIdentifier(Ie),8196)}function p(Ie,st,St,It){t.requestEmitHelper(kZ);const ti=[];return ti.push(u.createArrayLiteralExpression(Ie,!0)),ti.push(st),St&&(ti.push(St),It&&ti.push(It)),u.createCallExpression(f("__decorate"),void 0,ti)}function E(Ie,st){return t.requestEmitHelper(FZ),u.createCallExpression(f("__metadata"),void 0,[u.createStringLiteral(Ie),st])}function v(Ie,st,St){return t.requestEmitHelper(AZ),Pt(u.createCallExpression(f("__param"),void 0,[u.createNumericLiteral(st+""),Ie]),St)}function b(Ie){const st=[u.createPropertyAssignment(u.createIdentifier("kind"),u.createStringLiteral("class")),u.createPropertyAssignment(u.createIdentifier("name"),Ie.name),u.createPropertyAssignment(u.createIdentifier("metadata"),Ie.metadata)];return u.createObjectLiteralExpression(st)}function B(Ie){const st=Ie.computed?u.createElementAccessExpression(u.createIdentifier("obj"),Ie.name):u.createPropertyAccessExpression(u.createIdentifier("obj"),Ie.name);return u.createPropertyAssignment("get",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj"))],void 0,void 0,st))}function k(Ie){const st=Ie.computed?u.createElementAccessExpression(u.createIdentifier("obj"),Ie.name):u.createPropertyAccessExpression(u.createIdentifier("obj"),Ie.name);return u.createPropertyAssignment("set",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj")),u.createParameterDeclaration(void 0,void 0,u.createIdentifier("value"))],void 0,void 0,u.createBlock([u.createExpressionStatement(u.createAssignment(st,u.createIdentifier("value")))])))}function T(Ie){const st=Ie.computed?Ie.name:at(Ie.name)?u.createStringLiteralFromNode(Ie.name):Ie.name;return u.createPropertyAssignment("has",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj"))],void 0,void 0,u.createBinaryExpression(st,103,u.createIdentifier("obj"))))}function M(Ie,st){const St=[];return St.push(T(Ie)),st.get&&St.push(B(Ie)),st.set&&St.push(k(Ie)),u.createObjectLiteralExpression(St)}function z(Ie){const st=[u.createPropertyAssignment(u.createIdentifier("kind"),u.createStringLiteral(Ie.kind)),u.createPropertyAssignment(u.createIdentifier("name"),Ie.name.computed?Ie.name.name:u.createStringLiteralFromNode(Ie.name.name)),u.createPropertyAssignment(u.createIdentifier("static"),Ie.static?u.createTrue():u.createFalse()),u.createPropertyAssignment(u.createIdentifier("private"),Ie.private?u.createTrue():u.createFalse()),u.createPropertyAssignment(u.createIdentifier("access"),M(Ie.name,Ie.access)),u.createPropertyAssignment(u.createIdentifier("metadata"),Ie.metadata)];return u.createObjectLiteralExpression(st)}function j(Ie){return Ie.kind==="class"?b(Ie):z(Ie)}function J(Ie,st,St,It,ti,ht){return t.requestEmitHelper(SZ),u.createCallExpression(f("__esDecorate"),void 0,[Ie??u.createNull(),st??u.createNull(),St,j(It),ti,ht])}function K(Ie,st,St){return t.requestEmitHelper(BZ),u.createCallExpression(f("__runInitializers"),void 0,St?[Ie,st,St]:[Ie,st])}function Y(Ie){return Is(t.getCompilerOptions())>=2?u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"assign"),void 0,Ie):(t.requestEmitHelper(wZ),u.createCallExpression(f("__assign"),void 0,Ie))}function oe(Ie){return t.requestEmitHelper(A7),u.createCallExpression(f("__await"),void 0,[Ie])}function se(Ie,st){return t.requestEmitHelper(A7),t.requestEmitHelper(TZ),(Ie.emitNode||(Ie.emitNode={})).flags|=1572864,u.createCallExpression(f("__asyncGenerator"),void 0,[st?u.createThis():u.createVoidZero(),u.createIdentifier("arguments"),Ie])}function ge(Ie){return t.requestEmitHelper(A7),t.requestEmitHelper(LZ),u.createCallExpression(f("__asyncDelegator"),void 0,[Ie])}function ae(Ie){return t.requestEmitHelper(NZ),u.createCallExpression(f("__asyncValues"),void 0,[Ie])}function Ce(Ie,st,St,It){t.requestEmitHelper(PZ);const ti=[];let ht=0;for(let Ut=0;Ut{let d="";for(let f=0;ft.name))}function OP(t,u){return No(t)&&at(t.expression)&&(vs(t.expression)&8192)!==0&&t.expression.escapedText===u}var hce,kZ,FZ,AZ,SZ,BZ,wZ,A7,TZ,LZ,NZ,PZ,MZ,zZ,IZ,RZ,OZ,jZ,VZ,HZ,KZ,_B,WZ,DV,GZ,JZ,$Z,UZ,qZ,ZZ,YZ,VYe,xV,vV,wLt=o({"src/compiler/factory/emitHelpers.ts"(){Ao(),hce=(t=>(t.Field="f",t.Method="m",t.Accessor="a",t))(hce||{}),kZ={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` +`),u.closeSync(st),ul("endDumpTypes"),Tm("Dump types","beginDumpTypes","endDumpTypes")}function ae(){E&&u.writeFileSync(E,JSON.stringify(v))}t.dumpLegend=ae})(DO||(DO={})),f2e=DO.startTracing,m2e=DO.dumpLegend}});function Gy(t,u=!0){const s=vO[t.category];return u?s.toLowerCase():s}var uU,rU,aU,voe,oU,sU,Coe,xO,boe,b8,lU,yoe,koe,cU,Foe,Aoe,Soe,Boe,woe,Toe,Loe,Noe,Poe,Moe,zoe,dU,Ioe,Roe,Ooe,joe,hU,fU,Voe,Hoe,Koe,Woe,Goe,Joe,mU,$oe,Uoe,qoe,Zoe,Yoe,Qoe,vO,y8,Xoe,ese,tse,ise,FN,nse,use,rse,pU,ase,ose,sse,lse,cse,gU,EU,_U,dse,hse,fse,mse,pse,gse,Ese,_se,CO,Dse,Nqe=o({"src/compiler/types.ts"(){uU=(t=>(t[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",t[t.NumericLiteral=9]="NumericLiteral",t[t.BigIntLiteral=10]="BigIntLiteral",t[t.StringLiteral=11]="StringLiteral",t[t.JsxText=12]="JsxText",t[t.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=14]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=16]="TemplateHead",t[t.TemplateMiddle=17]="TemplateMiddle",t[t.TemplateTail=18]="TemplateTail",t[t.OpenBraceToken=19]="OpenBraceToken",t[t.CloseBraceToken=20]="CloseBraceToken",t[t.OpenParenToken=21]="OpenParenToken",t[t.CloseParenToken=22]="CloseParenToken",t[t.OpenBracketToken=23]="OpenBracketToken",t[t.CloseBracketToken=24]="CloseBracketToken",t[t.DotToken=25]="DotToken",t[t.DotDotDotToken=26]="DotDotDotToken",t[t.SemicolonToken=27]="SemicolonToken",t[t.CommaToken=28]="CommaToken",t[t.QuestionDotToken=29]="QuestionDotToken",t[t.LessThanToken=30]="LessThanToken",t[t.LessThanSlashToken=31]="LessThanSlashToken",t[t.GreaterThanToken=32]="GreaterThanToken",t[t.LessThanEqualsToken=33]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=35]="EqualsEqualsToken",t[t.ExclamationEqualsToken=36]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",t[t.PlusToken=40]="PlusToken",t[t.MinusToken=41]="MinusToken",t[t.AsteriskToken=42]="AsteriskToken",t[t.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",t[t.SlashToken=44]="SlashToken",t[t.PercentToken=45]="PercentToken",t[t.PlusPlusToken=46]="PlusPlusToken",t[t.MinusMinusToken=47]="MinusMinusToken",t[t.LessThanLessThanToken=48]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=51]="AmpersandToken",t[t.BarToken=52]="BarToken",t[t.CaretToken=53]="CaretToken",t[t.ExclamationToken=54]="ExclamationToken",t[t.TildeToken=55]="TildeToken",t[t.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",t[t.BarBarToken=57]="BarBarToken",t[t.QuestionToken=58]="QuestionToken",t[t.ColonToken=59]="ColonToken",t[t.AtToken=60]="AtToken",t[t.QuestionQuestionToken=61]="QuestionQuestionToken",t[t.BacktickToken=62]="BacktickToken",t[t.HashToken=63]="HashToken",t[t.EqualsToken=64]="EqualsToken",t[t.PlusEqualsToken=65]="PlusEqualsToken",t[t.MinusEqualsToken=66]="MinusEqualsToken",t[t.AsteriskEqualsToken=67]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=69]="SlashEqualsToken",t[t.PercentEqualsToken=70]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=74]="AmpersandEqualsToken",t[t.BarEqualsToken=75]="BarEqualsToken",t[t.BarBarEqualsToken=76]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=79]="CaretEqualsToken",t[t.Identifier=80]="Identifier",t[t.PrivateIdentifier=81]="PrivateIdentifier",t[t.JSDocCommentTextToken=82]="JSDocCommentTextToken",t[t.BreakKeyword=83]="BreakKeyword",t[t.CaseKeyword=84]="CaseKeyword",t[t.CatchKeyword=85]="CatchKeyword",t[t.ClassKeyword=86]="ClassKeyword",t[t.ConstKeyword=87]="ConstKeyword",t[t.ContinueKeyword=88]="ContinueKeyword",t[t.DebuggerKeyword=89]="DebuggerKeyword",t[t.DefaultKeyword=90]="DefaultKeyword",t[t.DeleteKeyword=91]="DeleteKeyword",t[t.DoKeyword=92]="DoKeyword",t[t.ElseKeyword=93]="ElseKeyword",t[t.EnumKeyword=94]="EnumKeyword",t[t.ExportKeyword=95]="ExportKeyword",t[t.ExtendsKeyword=96]="ExtendsKeyword",t[t.FalseKeyword=97]="FalseKeyword",t[t.FinallyKeyword=98]="FinallyKeyword",t[t.ForKeyword=99]="ForKeyword",t[t.FunctionKeyword=100]="FunctionKeyword",t[t.IfKeyword=101]="IfKeyword",t[t.ImportKeyword=102]="ImportKeyword",t[t.InKeyword=103]="InKeyword",t[t.InstanceOfKeyword=104]="InstanceOfKeyword",t[t.NewKeyword=105]="NewKeyword",t[t.NullKeyword=106]="NullKeyword",t[t.ReturnKeyword=107]="ReturnKeyword",t[t.SuperKeyword=108]="SuperKeyword",t[t.SwitchKeyword=109]="SwitchKeyword",t[t.ThisKeyword=110]="ThisKeyword",t[t.ThrowKeyword=111]="ThrowKeyword",t[t.TrueKeyword=112]="TrueKeyword",t[t.TryKeyword=113]="TryKeyword",t[t.TypeOfKeyword=114]="TypeOfKeyword",t[t.VarKeyword=115]="VarKeyword",t[t.VoidKeyword=116]="VoidKeyword",t[t.WhileKeyword=117]="WhileKeyword",t[t.WithKeyword=118]="WithKeyword",t[t.ImplementsKeyword=119]="ImplementsKeyword",t[t.InterfaceKeyword=120]="InterfaceKeyword",t[t.LetKeyword=121]="LetKeyword",t[t.PackageKeyword=122]="PackageKeyword",t[t.PrivateKeyword=123]="PrivateKeyword",t[t.ProtectedKeyword=124]="ProtectedKeyword",t[t.PublicKeyword=125]="PublicKeyword",t[t.StaticKeyword=126]="StaticKeyword",t[t.YieldKeyword=127]="YieldKeyword",t[t.AbstractKeyword=128]="AbstractKeyword",t[t.AccessorKeyword=129]="AccessorKeyword",t[t.AsKeyword=130]="AsKeyword",t[t.AssertsKeyword=131]="AssertsKeyword",t[t.AssertKeyword=132]="AssertKeyword",t[t.AnyKeyword=133]="AnyKeyword",t[t.AsyncKeyword=134]="AsyncKeyword",t[t.AwaitKeyword=135]="AwaitKeyword",t[t.BooleanKeyword=136]="BooleanKeyword",t[t.ConstructorKeyword=137]="ConstructorKeyword",t[t.DeclareKeyword=138]="DeclareKeyword",t[t.GetKeyword=139]="GetKeyword",t[t.InferKeyword=140]="InferKeyword",t[t.IntrinsicKeyword=141]="IntrinsicKeyword",t[t.IsKeyword=142]="IsKeyword",t[t.KeyOfKeyword=143]="KeyOfKeyword",t[t.ModuleKeyword=144]="ModuleKeyword",t[t.NamespaceKeyword=145]="NamespaceKeyword",t[t.NeverKeyword=146]="NeverKeyword",t[t.OutKeyword=147]="OutKeyword",t[t.ReadonlyKeyword=148]="ReadonlyKeyword",t[t.RequireKeyword=149]="RequireKeyword",t[t.NumberKeyword=150]="NumberKeyword",t[t.ObjectKeyword=151]="ObjectKeyword",t[t.SatisfiesKeyword=152]="SatisfiesKeyword",t[t.SetKeyword=153]="SetKeyword",t[t.StringKeyword=154]="StringKeyword",t[t.SymbolKeyword=155]="SymbolKeyword",t[t.TypeKeyword=156]="TypeKeyword",t[t.UndefinedKeyword=157]="UndefinedKeyword",t[t.UniqueKeyword=158]="UniqueKeyword",t[t.UnknownKeyword=159]="UnknownKeyword",t[t.UsingKeyword=160]="UsingKeyword",t[t.FromKeyword=161]="FromKeyword",t[t.GlobalKeyword=162]="GlobalKeyword",t[t.BigIntKeyword=163]="BigIntKeyword",t[t.OverrideKeyword=164]="OverrideKeyword",t[t.OfKeyword=165]="OfKeyword",t[t.QualifiedName=166]="QualifiedName",t[t.ComputedPropertyName=167]="ComputedPropertyName",t[t.TypeParameter=168]="TypeParameter",t[t.Parameter=169]="Parameter",t[t.Decorator=170]="Decorator",t[t.PropertySignature=171]="PropertySignature",t[t.PropertyDeclaration=172]="PropertyDeclaration",t[t.MethodSignature=173]="MethodSignature",t[t.MethodDeclaration=174]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",t[t.Constructor=176]="Constructor",t[t.GetAccessor=177]="GetAccessor",t[t.SetAccessor=178]="SetAccessor",t[t.CallSignature=179]="CallSignature",t[t.ConstructSignature=180]="ConstructSignature",t[t.IndexSignature=181]="IndexSignature",t[t.TypePredicate=182]="TypePredicate",t[t.TypeReference=183]="TypeReference",t[t.FunctionType=184]="FunctionType",t[t.ConstructorType=185]="ConstructorType",t[t.TypeQuery=186]="TypeQuery",t[t.TypeLiteral=187]="TypeLiteral",t[t.ArrayType=188]="ArrayType",t[t.TupleType=189]="TupleType",t[t.OptionalType=190]="OptionalType",t[t.RestType=191]="RestType",t[t.UnionType=192]="UnionType",t[t.IntersectionType=193]="IntersectionType",t[t.ConditionalType=194]="ConditionalType",t[t.InferType=195]="InferType",t[t.ParenthesizedType=196]="ParenthesizedType",t[t.ThisType=197]="ThisType",t[t.TypeOperator=198]="TypeOperator",t[t.IndexedAccessType=199]="IndexedAccessType",t[t.MappedType=200]="MappedType",t[t.LiteralType=201]="LiteralType",t[t.NamedTupleMember=202]="NamedTupleMember",t[t.TemplateLiteralType=203]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",t[t.ImportType=205]="ImportType",t[t.ObjectBindingPattern=206]="ObjectBindingPattern",t[t.ArrayBindingPattern=207]="ArrayBindingPattern",t[t.BindingElement=208]="BindingElement",t[t.ArrayLiteralExpression=209]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=210]="ObjectLiteralExpression",t[t.PropertyAccessExpression=211]="PropertyAccessExpression",t[t.ElementAccessExpression=212]="ElementAccessExpression",t[t.CallExpression=213]="CallExpression",t[t.NewExpression=214]="NewExpression",t[t.TaggedTemplateExpression=215]="TaggedTemplateExpression",t[t.TypeAssertionExpression=216]="TypeAssertionExpression",t[t.ParenthesizedExpression=217]="ParenthesizedExpression",t[t.FunctionExpression=218]="FunctionExpression",t[t.ArrowFunction=219]="ArrowFunction",t[t.DeleteExpression=220]="DeleteExpression",t[t.TypeOfExpression=221]="TypeOfExpression",t[t.VoidExpression=222]="VoidExpression",t[t.AwaitExpression=223]="AwaitExpression",t[t.PrefixUnaryExpression=224]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=225]="PostfixUnaryExpression",t[t.BinaryExpression=226]="BinaryExpression",t[t.ConditionalExpression=227]="ConditionalExpression",t[t.TemplateExpression=228]="TemplateExpression",t[t.YieldExpression=229]="YieldExpression",t[t.SpreadElement=230]="SpreadElement",t[t.ClassExpression=231]="ClassExpression",t[t.OmittedExpression=232]="OmittedExpression",t[t.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",t[t.AsExpression=234]="AsExpression",t[t.NonNullExpression=235]="NonNullExpression",t[t.MetaProperty=236]="MetaProperty",t[t.SyntheticExpression=237]="SyntheticExpression",t[t.SatisfiesExpression=238]="SatisfiesExpression",t[t.TemplateSpan=239]="TemplateSpan",t[t.SemicolonClassElement=240]="SemicolonClassElement",t[t.Block=241]="Block",t[t.EmptyStatement=242]="EmptyStatement",t[t.VariableStatement=243]="VariableStatement",t[t.ExpressionStatement=244]="ExpressionStatement",t[t.IfStatement=245]="IfStatement",t[t.DoStatement=246]="DoStatement",t[t.WhileStatement=247]="WhileStatement",t[t.ForStatement=248]="ForStatement",t[t.ForInStatement=249]="ForInStatement",t[t.ForOfStatement=250]="ForOfStatement",t[t.ContinueStatement=251]="ContinueStatement",t[t.BreakStatement=252]="BreakStatement",t[t.ReturnStatement=253]="ReturnStatement",t[t.WithStatement=254]="WithStatement",t[t.SwitchStatement=255]="SwitchStatement",t[t.LabeledStatement=256]="LabeledStatement",t[t.ThrowStatement=257]="ThrowStatement",t[t.TryStatement=258]="TryStatement",t[t.DebuggerStatement=259]="DebuggerStatement",t[t.VariableDeclaration=260]="VariableDeclaration",t[t.VariableDeclarationList=261]="VariableDeclarationList",t[t.FunctionDeclaration=262]="FunctionDeclaration",t[t.ClassDeclaration=263]="ClassDeclaration",t[t.InterfaceDeclaration=264]="InterfaceDeclaration",t[t.TypeAliasDeclaration=265]="TypeAliasDeclaration",t[t.EnumDeclaration=266]="EnumDeclaration",t[t.ModuleDeclaration=267]="ModuleDeclaration",t[t.ModuleBlock=268]="ModuleBlock",t[t.CaseBlock=269]="CaseBlock",t[t.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",t[t.ImportDeclaration=272]="ImportDeclaration",t[t.ImportClause=273]="ImportClause",t[t.NamespaceImport=274]="NamespaceImport",t[t.NamedImports=275]="NamedImports",t[t.ImportSpecifier=276]="ImportSpecifier",t[t.ExportAssignment=277]="ExportAssignment",t[t.ExportDeclaration=278]="ExportDeclaration",t[t.NamedExports=279]="NamedExports",t[t.NamespaceExport=280]="NamespaceExport",t[t.ExportSpecifier=281]="ExportSpecifier",t[t.MissingDeclaration=282]="MissingDeclaration",t[t.ExternalModuleReference=283]="ExternalModuleReference",t[t.JsxElement=284]="JsxElement",t[t.JsxSelfClosingElement=285]="JsxSelfClosingElement",t[t.JsxOpeningElement=286]="JsxOpeningElement",t[t.JsxClosingElement=287]="JsxClosingElement",t[t.JsxFragment=288]="JsxFragment",t[t.JsxOpeningFragment=289]="JsxOpeningFragment",t[t.JsxClosingFragment=290]="JsxClosingFragment",t[t.JsxAttribute=291]="JsxAttribute",t[t.JsxAttributes=292]="JsxAttributes",t[t.JsxSpreadAttribute=293]="JsxSpreadAttribute",t[t.JsxExpression=294]="JsxExpression",t[t.JsxNamespacedName=295]="JsxNamespacedName",t[t.CaseClause=296]="CaseClause",t[t.DefaultClause=297]="DefaultClause",t[t.HeritageClause=298]="HeritageClause",t[t.CatchClause=299]="CatchClause",t[t.ImportAttributes=300]="ImportAttributes",t[t.ImportAttribute=301]="ImportAttribute",t[t.AssertClause=300]="AssertClause",t[t.AssertEntry=301]="AssertEntry",t[t.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",t[t.PropertyAssignment=303]="PropertyAssignment",t[t.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",t[t.SpreadAssignment=305]="SpreadAssignment",t[t.EnumMember=306]="EnumMember",t[t.UnparsedPrologue=307]="UnparsedPrologue",t[t.UnparsedPrepend=308]="UnparsedPrepend",t[t.UnparsedText=309]="UnparsedText",t[t.UnparsedInternalText=310]="UnparsedInternalText",t[t.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",t[t.SourceFile=312]="SourceFile",t[t.Bundle=313]="Bundle",t[t.UnparsedSource=314]="UnparsedSource",t[t.InputFiles=315]="InputFiles",t[t.JSDocTypeExpression=316]="JSDocTypeExpression",t[t.JSDocNameReference=317]="JSDocNameReference",t[t.JSDocMemberName=318]="JSDocMemberName",t[t.JSDocAllType=319]="JSDocAllType",t[t.JSDocUnknownType=320]="JSDocUnknownType",t[t.JSDocNullableType=321]="JSDocNullableType",t[t.JSDocNonNullableType=322]="JSDocNonNullableType",t[t.JSDocOptionalType=323]="JSDocOptionalType",t[t.JSDocFunctionType=324]="JSDocFunctionType",t[t.JSDocVariadicType=325]="JSDocVariadicType",t[t.JSDocNamepathType=326]="JSDocNamepathType",t[t.JSDoc=327]="JSDoc",t[t.JSDocComment=327]="JSDocComment",t[t.JSDocText=328]="JSDocText",t[t.JSDocTypeLiteral=329]="JSDocTypeLiteral",t[t.JSDocSignature=330]="JSDocSignature",t[t.JSDocLink=331]="JSDocLink",t[t.JSDocLinkCode=332]="JSDocLinkCode",t[t.JSDocLinkPlain=333]="JSDocLinkPlain",t[t.JSDocTag=334]="JSDocTag",t[t.JSDocAugmentsTag=335]="JSDocAugmentsTag",t[t.JSDocImplementsTag=336]="JSDocImplementsTag",t[t.JSDocAuthorTag=337]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",t[t.JSDocClassTag=339]="JSDocClassTag",t[t.JSDocPublicTag=340]="JSDocPublicTag",t[t.JSDocPrivateTag=341]="JSDocPrivateTag",t[t.JSDocProtectedTag=342]="JSDocProtectedTag",t[t.JSDocReadonlyTag=343]="JSDocReadonlyTag",t[t.JSDocOverrideTag=344]="JSDocOverrideTag",t[t.JSDocCallbackTag=345]="JSDocCallbackTag",t[t.JSDocOverloadTag=346]="JSDocOverloadTag",t[t.JSDocEnumTag=347]="JSDocEnumTag",t[t.JSDocParameterTag=348]="JSDocParameterTag",t[t.JSDocReturnTag=349]="JSDocReturnTag",t[t.JSDocThisTag=350]="JSDocThisTag",t[t.JSDocTypeTag=351]="JSDocTypeTag",t[t.JSDocTemplateTag=352]="JSDocTemplateTag",t[t.JSDocTypedefTag=353]="JSDocTypedefTag",t[t.JSDocSeeTag=354]="JSDocSeeTag",t[t.JSDocPropertyTag=355]="JSDocPropertyTag",t[t.JSDocThrowsTag=356]="JSDocThrowsTag",t[t.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",t[t.SyntaxList=358]="SyntaxList",t[t.NotEmittedStatement=359]="NotEmittedStatement",t[t.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",t[t.CommaListExpression=361]="CommaListExpression",t[t.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",t[t.Count=363]="Count",t[t.FirstAssignment=64]="FirstAssignment",t[t.LastAssignment=79]="LastAssignment",t[t.FirstCompoundAssignment=65]="FirstCompoundAssignment",t[t.LastCompoundAssignment=79]="LastCompoundAssignment",t[t.FirstReservedWord=83]="FirstReservedWord",t[t.LastReservedWord=118]="LastReservedWord",t[t.FirstKeyword=83]="FirstKeyword",t[t.LastKeyword=165]="LastKeyword",t[t.FirstFutureReservedWord=119]="FirstFutureReservedWord",t[t.LastFutureReservedWord=127]="LastFutureReservedWord",t[t.FirstTypeNode=182]="FirstTypeNode",t[t.LastTypeNode=205]="LastTypeNode",t[t.FirstPunctuation=19]="FirstPunctuation",t[t.LastPunctuation=79]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=165]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=9]="FirstLiteralToken",t[t.LastLiteralToken=15]="LastLiteralToken",t[t.FirstTemplateToken=15]="FirstTemplateToken",t[t.LastTemplateToken=18]="LastTemplateToken",t[t.FirstBinaryOperator=30]="FirstBinaryOperator",t[t.LastBinaryOperator=79]="LastBinaryOperator",t[t.FirstStatement=243]="FirstStatement",t[t.LastStatement=259]="LastStatement",t[t.FirstNode=166]="FirstNode",t[t.FirstJSDocNode=316]="FirstJSDocNode",t[t.LastJSDocNode=357]="LastJSDocNode",t[t.FirstJSDocTagNode=334]="FirstJSDocTagNode",t[t.LastJSDocTagNode=357]="LastJSDocTagNode",t[t.FirstContextualKeyword=128]="FirstContextualKeyword",t[t.LastContextualKeyword=165]="LastContextualKeyword",t))(uU||{}),rU=(t=>(t[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.Using=4]="Using",t[t.AwaitUsing=6]="AwaitUsing",t[t.NestedNamespace=8]="NestedNamespace",t[t.Synthesized=16]="Synthesized",t[t.Namespace=32]="Namespace",t[t.OptionalChain=64]="OptionalChain",t[t.ExportContext=128]="ExportContext",t[t.ContainsThis=256]="ContainsThis",t[t.HasImplicitReturn=512]="HasImplicitReturn",t[t.HasExplicitReturn=1024]="HasExplicitReturn",t[t.GlobalAugmentation=2048]="GlobalAugmentation",t[t.HasAsyncFunctions=4096]="HasAsyncFunctions",t[t.DisallowInContext=8192]="DisallowInContext",t[t.YieldContext=16384]="YieldContext",t[t.DecoratorContext=32768]="DecoratorContext",t[t.AwaitContext=65536]="AwaitContext",t[t.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",t[t.ThisNodeHasError=262144]="ThisNodeHasError",t[t.JavaScriptFile=524288]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=2097152]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",t[t.JSDoc=16777216]="JSDoc",t[t.Ambient=33554432]="Ambient",t[t.InWithStatement=67108864]="InWithStatement",t[t.JsonFile=134217728]="JsonFile",t[t.TypeCached=268435456]="TypeCached",t[t.Deprecated=536870912]="Deprecated",t[t.BlockScoped=7]="BlockScoped",t[t.Constant=6]="Constant",t[t.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",t[t.ContextFlags=101441536]="ContextFlags",t[t.TypeExcludesFlags=81920]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",t[t.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",t[t.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",t))(rU||{}),aU=(t=>(t[t.None=0]="None",t[t.Public=1]="Public",t[t.Private=2]="Private",t[t.Protected=4]="Protected",t[t.Readonly=8]="Readonly",t[t.Override=16]="Override",t[t.Export=32]="Export",t[t.Abstract=64]="Abstract",t[t.Ambient=128]="Ambient",t[t.Static=256]="Static",t[t.Accessor=512]="Accessor",t[t.Async=1024]="Async",t[t.Default=2048]="Default",t[t.Const=4096]="Const",t[t.In=8192]="In",t[t.Out=16384]="Out",t[t.Decorator=32768]="Decorator",t[t.Deprecated=65536]="Deprecated",t[t.JSDocPublic=8388608]="JSDocPublic",t[t.JSDocPrivate=16777216]="JSDocPrivate",t[t.JSDocProtected=33554432]="JSDocProtected",t[t.JSDocReadonly=67108864]="JSDocReadonly",t[t.JSDocOverride=134217728]="JSDocOverride",t[t.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",t[t.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",t[t.SyntacticModifiers=65535]="SyntacticModifiers",t[t.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",t[t.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",t[t.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",t[t.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=7]="AccessibilityModifier",t[t.ParameterPropertyModifier=31]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=28895]="TypeScriptModifier",t[t.ExportDefault=2080]="ExportDefault",t[t.All=131071]="All",t[t.Modifier=98303]="Modifier",t))(aU||{}),voe=(t=>(t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",t))(voe||{}),oU=(t=>(t[t.Succeeded=1]="Succeeded",t[t.Failed=2]="Failed",t[t.Reported=4]="Reported",t[t.ReportsUnmeasurable=8]="ReportsUnmeasurable",t[t.ReportsUnreliable=16]="ReportsUnreliable",t[t.ReportsMask=24]="ReportsMask",t))(oU||{}),sU=(t=>(t[t.None=0]="None",t[t.Auto=1]="Auto",t[t.Loop=2]="Loop",t[t.Unique=3]="Unique",t[t.Node=4]="Node",t[t.KindMask=7]="KindMask",t[t.ReservedInNestedScopes=8]="ReservedInNestedScopes",t[t.Optimistic=16]="Optimistic",t[t.FileLevel=32]="FileLevel",t[t.AllowNameSubstitution=64]="AllowNameSubstitution",t))(sU||{}),Coe=(t=>(t[t.None=0]="None",t[t.PrecedingLineBreak=1]="PrecedingLineBreak",t[t.PrecedingJSDocComment=2]="PrecedingJSDocComment",t[t.Unterminated=4]="Unterminated",t[t.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",t[t.Scientific=16]="Scientific",t[t.Octal=32]="Octal",t[t.HexSpecifier=64]="HexSpecifier",t[t.BinarySpecifier=128]="BinarySpecifier",t[t.OctalSpecifier=256]="OctalSpecifier",t[t.ContainsSeparator=512]="ContainsSeparator",t[t.UnicodeEscape=1024]="UnicodeEscape",t[t.ContainsInvalidEscape=2048]="ContainsInvalidEscape",t[t.HexEscape=4096]="HexEscape",t[t.ContainsLeadingZero=8192]="ContainsLeadingZero",t[t.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",t[t.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",t[t.WithSpecifier=448]="WithSpecifier",t[t.StringLiteralFlags=7176]="StringLiteralFlags",t[t.NumericLiteralFlags=25584]="NumericLiteralFlags",t[t.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",t[t.IsInvalid=26656]="IsInvalid",t))(Coe||{}),xO=(t=>(t[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",t))(xO||{}),boe=(t=>(t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",t))(boe||{}),b8=class{},lU=(t=>(t[t.RootFile=0]="RootFile",t[t.SourceFromProjectReference=1]="SourceFromProjectReference",t[t.OutputFromProjectReference=2]="OutputFromProjectReference",t[t.Import=3]="Import",t[t.ReferenceFile=4]="ReferenceFile",t[t.TypeReferenceDirective=5]="TypeReferenceDirective",t[t.LibFile=6]="LibFile",t[t.LibReferenceDirective=7]="LibReferenceDirective",t[t.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",t))(lU||{}),yoe=(t=>(t[t.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",t[t.ResolutionDiagnostics=2]="ResolutionDiagnostics",t))(yoe||{}),koe=(t=>(t[t.Js=0]="Js",t[t.Dts=1]="Dts",t))(koe||{}),cU=(t=>(t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",t))(cU||{}),Foe=(t=>(t[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t))(Foe||{}),Aoe=(t=>(t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",t))(Aoe||{}),Soe=(t=>(t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",t))(Soe||{}),Boe=(t=>(t[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",t[t.SkipBindingPatterns=8]="SkipBindingPatterns",t))(Boe||{}),woe=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.WriteComputedProps=1073741824]="WriteComputedProps",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName",t))(woe||{}),Toe=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",t))(Toe||{}),Loe=(t=>(t[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.WriteComputedProps=16]="WriteComputedProps",t[t.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",t))(Loe||{}),Noe=(t=>(t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",t))(Noe||{}),Poe=(t=>(t[t.UnionOrIntersection=0]="UnionOrIntersection",t[t.Spread=1]="Spread",t))(Poe||{}),Moe=(t=>(t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",t))(Moe||{}),zoe=(t=>(t[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType",t))(zoe||{}),dU=(t=>(t[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=67108863]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.AccessorExcludes=13247]="AccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer",t))(dU||{}),Ioe=(t=>(t[t.Numeric=0]="Numeric",t[t.Literal=1]="Literal",t))(Ioe||{}),Roe=(t=>(t[t.None=0]="None",t[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Unresolved=1048576]="Unresolved",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial",t))(Roe||{}),Ooe=(t=>(t.Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this",t))(Ooe||{}),joe=(t=>(t[t.None=0]="None",t[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=16]="SuperInstance",t[t.SuperStatic=32]="SuperStatic",t[t.ContextChecked=64]="ContextChecked",t[t.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",t[t.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",t[t.CaptureArguments=512]="CaptureArguments",t[t.EnumValuesComputed=1024]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",t[t.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",t[t.AssignmentsMarked=131072]="AssignmentsMarked",t[t.ContainsConstructorReference=262144]="ContainsConstructorReference",t[t.ConstructorReference=536870912]="ConstructorReference",t[t.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",t[t.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",t[t.InCheckIdentifier=4194304]="InCheckIdentifier",t))(joe||{}),hU=(t=>(t[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.TemplateLiteral=134217728]="TemplateLiteral",t[t.StringMapping=268435456]="StringMapping",t[t.AnyOrUnknown=3]="AnyOrUnknown",t[t.Nullable=98304]="Nullable",t[t.Literal=2944]="Literal",t[t.Unit=109472]="Unit",t[t.Freshable=2976]="Freshable",t[t.StringOrNumberLiteral=384]="StringOrNumberLiteral",t[t.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",t[t.DefinitelyFalsy=117632]="DefinitelyFalsy",t[t.PossiblyFalsy=117724]="PossiblyFalsy",t[t.Intrinsic=67359327]="Intrinsic",t[t.StringLike=402653316]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.Primitive=402784252]="Primitive",t[t.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",t[t.DisjointDomains=469892092]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=406847488]="InstantiablePrimitive",t[t.Instantiable=465829888]="Instantiable",t[t.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Singleton=67358815]="Singleton",t[t.Narrowable=536624127]="Narrowable",t[t.IncludesMask=473694207]="IncludesMask",t[t.IncludesMissingType=262144]="IncludesMissingType",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",t[t.IncludesInstantiable=33554432]="IncludesInstantiable",t[t.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",t))(hU||{}),fU=(t=>(t[t.None=0]="None",t[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ReverseMapped=1024]="ReverseMapped",t[t.JsxAttributes=2048]="JsxAttributes",t[t.JSLiteral=4096]="JSLiteral",t[t.FreshLiteral=8192]="FreshLiteral",t[t.ArrayLiteral=16384]="ArrayLiteral",t[t.PrimitiveUnion=32768]="PrimitiveUnion",t[t.ContainsWideningType=65536]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=262144]="NonInferrableType",t[t.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=196608]="RequiresWidening",t[t.PropagatingFlags=458752]="PropagatingFlags",t[t.InstantiatedMapped=96]="InstantiatedMapped",t[t.ObjectTypeKindMask=1343]="ObjectTypeKindMask",t[t.ContainsSpread=2097152]="ContainsSpread",t[t.ObjectRestType=4194304]="ObjectRestType",t[t.InstantiationExpressionType=8388608]="InstantiationExpressionType",t[t.IsClassInstanceClone=16777216]="IsClassInstanceClone",t[t.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",t[t.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",t[t.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",t[t.IsGenericObjectType=4194304]="IsGenericObjectType",t[t.IsGenericIndexType=8388608]="IsGenericIndexType",t[t.IsGenericType=12582912]="IsGenericType",t[t.ContainsIntersections=16777216]="ContainsIntersections",t[t.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",t[t.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",t[t.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=33554432]="IsNeverIntersection",t))(fU||{}),Voe=(t=>(t[t.Invariant=0]="Invariant",t[t.Covariant=1]="Covariant",t[t.Contravariant=2]="Contravariant",t[t.Bivariant=3]="Bivariant",t[t.Independent=4]="Independent",t[t.VarianceMask=7]="VarianceMask",t[t.Unmeasurable=8]="Unmeasurable",t[t.Unreliable=16]="Unreliable",t[t.AllowsStructuralFallback=24]="AllowsStructuralFallback",t))(Voe||{}),Hoe=(t=>(t[t.Required=1]="Required",t[t.Optional=2]="Optional",t[t.Rest=4]="Rest",t[t.Variadic=8]="Variadic",t[t.Fixed=3]="Fixed",t[t.Variable=12]="Variable",t[t.NonRequired=14]="NonRequired",t[t.NonRest=11]="NonRest",t))(Hoe||{}),Koe=(t=>(t[t.None=0]="None",t[t.IncludeUndefined=1]="IncludeUndefined",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.Writing=4]="Writing",t[t.CacheSymbol=8]="CacheSymbol",t[t.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",t[t.ExpressionPosition=32]="ExpressionPosition",t[t.ReportDeprecated=64]="ReportDeprecated",t[t.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",t[t.Contextual=256]="Contextual",t[t.Persistent=1]="Persistent",t))(Koe||{}),Woe=(t=>(t[t.None=0]="None",t[t.StringsOnly=1]="StringsOnly",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.NoReducibleCheck=4]="NoReducibleCheck",t))(Woe||{}),Goe=(t=>(t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",t))(Goe||{}),Joe=(t=>(t[t.Call=0]="Call",t[t.Construct=1]="Construct",t))(Joe||{}),mU=(t=>(t[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.Abstract=4]="Abstract",t[t.IsInnerCallChain=8]="IsInnerCallChain",t[t.IsOuterCallChain=16]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",t[t.IsNonInferrable=64]="IsNonInferrable",t[t.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",t[t.PropagatingFlags=167]="PropagatingFlags",t[t.CallChainFlags=24]="CallChainFlags",t))(mU||{}),$oe=(t=>(t[t.String=0]="String",t[t.Number=1]="Number",t))($oe||{}),Uoe=(t=>(t[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Deferred=2]="Deferred",t[t.Function=3]="Function",t[t.Composite=4]="Composite",t[t.Merged=5]="Merged",t))(Uoe||{}),qoe=(t=>(t[t.None=0]="None",t[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.SpeculativeTuple=2]="SpeculativeTuple",t[t.SubstituteSource=4]="SubstituteSource",t[t.HomomorphicMappedType=8]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=32]="MappedTypeConstraint",t[t.ContravariantConditional=64]="ContravariantConditional",t[t.ReturnType=128]="ReturnType",t[t.LiteralKeyof=256]="LiteralKeyof",t[t.NoConstraints=512]="NoConstraints",t[t.AlwaysStrict=1024]="AlwaysStrict",t[t.MaxValue=2048]="MaxValue",t[t.PriorityImpliesCombination=416]="PriorityImpliesCombination",t[t.Circularity=-1]="Circularity",t))(qoe||{}),Zoe=(t=>(t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",t))(Zoe||{}),Yoe=(t=>(t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",t))(Yoe||{}),Qoe=(t=>(t[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",t))(Qoe||{}),vO=(t=>(t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",t))(vO||{}),y8=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t[t.Node10=2]="Node10",t[t.Node16=3]="Node16",t[t.NodeNext=99]="NodeNext",t[t.Bundler=100]="Bundler",t))(y8||{}),Xoe=(t=>(t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",t))(Xoe||{}),ese=(t=>(t[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t[t.UseFsEvents=4]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",t))(ese||{}),tse=(t=>(t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t))(tse||{}),ise=(t=>(t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",t))(ise||{}),FN=(t=>(t[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ES2022=7]="ES2022",t[t.ESNext=99]="ESNext",t[t.Node16=100]="Node16",t[t.NodeNext=199]="NodeNext",t))(FN||{}),nse=(t=>(t[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",t))(nse||{}),use=(t=>(t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",t))(use||{}),rse=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(rse||{}),pU=(t=>(t[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred",t))(pU||{}),ase=(t=>(t[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ES2021=8]="ES2021",t[t.ES2022=9]="ES2022",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",t))(ase||{}),ose=(t=>(t[t.Standard=0]="Standard",t[t.JSX=1]="JSX",t))(ose||{}),sse=(t=>(t[t.None=0]="None",t[t.Recursive=1]="Recursive",t))(sse||{}),lse=(t=>(t[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t.replacementCharacter=65533]="replacementCharacter",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab",t))(lse||{}),cse=(t=>(t.Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",t.Mjs=".mjs",t.Mts=".mts",t.Dmts=".d.mts",t.Cjs=".cjs",t.Cts=".cts",t.Dcts=".d.cts",t))(cse||{}),gU=(t=>(t[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2022=8]="ContainsES2022",t[t.ContainsES2021=16]="ContainsES2021",t[t.ContainsES2020=32]="ContainsES2020",t[t.ContainsES2019=64]="ContainsES2019",t[t.ContainsES2018=128]="ContainsES2018",t[t.ContainsES2017=256]="ContainsES2017",t[t.ContainsES2016=512]="ContainsES2016",t[t.ContainsES2015=1024]="ContainsES2015",t[t.ContainsGenerator=2048]="ContainsGenerator",t[t.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=16384]="ContainsLexicalThis",t[t.ContainsRestOrSpread=32768]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=524288]="ContainsBindingPattern",t[t.ContainsYield=1048576]="ContainsYield",t[t.ContainsAwait=2097152]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=8388608]="ContainsDynamicImport",t[t.ContainsClassFields=16777216]="ContainsClassFields",t[t.ContainsDecorators=33554432]="ContainsDecorators",t[t.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",t[t.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",t[t.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",t[t.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",t[t.HasComputedFlags=-2147483648]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2022=8]="AssertES2022",t[t.AssertES2021=16]="AssertES2021",t[t.AssertES2020=32]="AssertES2020",t[t.AssertES2019=64]="AssertES2019",t[t.AssertES2018=128]="AssertES2018",t[t.AssertES2017=256]="AssertES2017",t[t.AssertES2016=512]="AssertES2016",t[t.AssertES2015=1024]="AssertES2015",t[t.AssertGenerator=2048]="AssertGenerator",t[t.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",t[t.NodeExcludes=-2147483648]="NodeExcludes",t[t.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",t[t.FunctionExcludes=-1937940480]="FunctionExcludes",t[t.ConstructorExcludes=-1937948672]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",t[t.PropertyExcludes=-2013249536]="PropertyExcludes",t[t.ClassExcludes=-2147344384]="ClassExcludes",t[t.ModuleExcludes=-1941676032]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",t[t.ParameterExcludes=-2147483648]="ParameterExcludes",t[t.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",t[t.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",t[t.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",t[t.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",t))(gU||{}),EU=(t=>(t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",t))(EU||{}),_U=(t=>(t[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.MultiLine=2]="MultiLine",t[t.AdviseOnEmitNode=4]="AdviseOnEmitNode",t[t.NoSubstitution=8]="NoSubstitution",t[t.CapturesThis=16]="CapturesThis",t[t.NoLeadingSourceMap=32]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=64]="NoTrailingSourceMap",t[t.NoSourceMap=96]="NoSourceMap",t[t.NoNestedSourceMaps=128]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=768]="NoTokenSourceMaps",t[t.NoLeadingComments=1024]="NoLeadingComments",t[t.NoTrailingComments=2048]="NoTrailingComments",t[t.NoComments=3072]="NoComments",t[t.NoNestedComments=4096]="NoNestedComments",t[t.HelperName=8192]="HelperName",t[t.ExportName=16384]="ExportName",t[t.LocalName=32768]="LocalName",t[t.InternalName=65536]="InternalName",t[t.Indented=131072]="Indented",t[t.NoIndentation=262144]="NoIndentation",t[t.AsyncFunctionBody=524288]="AsyncFunctionBody",t[t.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",t[t.CustomPrologue=2097152]="CustomPrologue",t[t.NoHoisting=4194304]="NoHoisting",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t))(_U||{}),dse=(t=>(t[t.None=0]="None",t[t.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=2]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",t[t.Immutable=8]="Immutable",t[t.IndirectCall=16]="IndirectCall",t[t.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",t))(dse||{}),hse=(t=>(t[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.SpreadArray=1024]="SpreadArray",t[t.Await=2048]="Await",t[t.AsyncGenerator=4096]="AsyncGenerator",t[t.AsyncDelegator=8192]="AsyncDelegator",t[t.AsyncValues=16384]="AsyncValues",t[t.ExportStar=32768]="ExportStar",t[t.ImportStar=65536]="ImportStar",t[t.ImportDefault=131072]="ImportDefault",t[t.MakeTemplateObject=262144]="MakeTemplateObject",t[t.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",t[t.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",t[t.CreateBinding=4194304]="CreateBinding",t[t.SetFunctionName=8388608]="SetFunctionName",t[t.PropKey=16777216]="PropKey",t[t.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=33554432]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes",t))(hse||{}),fse=(t=>(t[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue",t))(fse||{}),mse=(t=>(t[t.Parentheses=1]="Parentheses",t[t.TypeAssertions=2]="TypeAssertions",t[t.NonNullAssertions=4]="NonNullAssertions",t[t.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",t[t.Assertions=6]="Assertions",t[t.All=15]="All",t[t.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",t))(mse||{}),pse=(t=>(t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",t))(pse||{}),gse=(t=>(t.Prologue="prologue",t.EmitHelpers="emitHelpers",t.NoDefaultLib="no-default-lib",t.Reference="reference",t.Type="type",t.TypeResolutionModeRequire="type-require",t.TypeResolutionModeImport="type-import",t.Lib="lib",t.Prepend="prepend",t.Text="text",t.Internal="internal",t))(gse||{}),Ese=(t=>(t[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=2359808]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",t[t.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ImportAttributes=526226]="ImportAttributes",t[t.ImportClauseEntries=526226]="ImportClauseEntries",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment",t))(Ese||{}),_se=(t=>(t[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default",t))(_se||{}),CO={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},Dse=(t=>(t[t.ParseAll=0]="ParseAll",t[t.ParseNone=1]="ParseNone",t[t.ParseForTypeErrors=2]="ParseForTypeErrors",t[t.ParseForTypeInfo=3]="ParseForTypeInfo",t))(Dse||{})}});function AN(t){let u=5381;for(let s=0;s{se.isClosed=!0,Vy(u,se)}}}function v(K){const Y=[];return Y.pollingInterval=K,Y.pollIndex=0,Y.pollScheduled=!1,Y}function b(K,Y){Y.pollIndex=k(Y,Y.pollingInterval,Y.pollIndex,vU[Y.pollingInterval]),Y.length?J(Y.pollingInterval):(H.assert(Y.pollIndex===0),Y.pollScheduled=!1)}function B(K,Y){k(s,250,0,s.length),b(K,Y),!Y.pollScheduled&&s.length&&J(250)}function k(K,Y,oe,se){return Mqe(t,K,oe,se,ge);function ge(ae,Ce,ne){ne?(ae.unchangedPolls=0,K!==s&&(K[Ce]=void 0,z(ae))):ae.unchangedPolls!==yO[Y]?ae.unchangedPolls++:K===s?(ae.unchangedPolls=1,K[Ce]=void 0,M(ae,250)):Y!==2e3&&(ae.unchangedPolls++,K[Ce]=void 0,M(ae,Y===250?500:2e3))}}function T(K){switch(K){case 250:return d;case 500:return f;case 2e3:return p}}function M(K,Y){T(Y).push(K),j(Y)}function z(K){s.push(K),j(250)}function j(K){T(K).pollScheduled||J(K)}function J(K){T(K).pollScheduled=t.setTimeout(K===250?B:b,K,K===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",T(K))}}function Qwt(t,u){const s=wm(),d=new Map,f=L1(u);return p;function p(v,b,B,k){const T=f(v);s.add(T,b);const M=lr(T)||".",z=d.get(M)||E(lr(v)||".",M,k);return z.referenceCount++,{close:()=>{z.referenceCount===1?(z.close(),d.delete(M)):z.referenceCount--,s.remove(T,b)}}}function E(v,b,B){const k=t(v,1,(T,M,z)=>{if(!Ja(M))return;const j=$a(M,v),J=j&&s.get(f(j));if(J)for(const K of J)K(j,1,z)},!1,500,B);return k.referenceCount=0,d.set(b,k),k}}function Xwt(t){const u=[];let s=0,d;return f;function f(v,b){const B={fileName:v,callback:b,mtime:e7(t,v)};return u.push(B),E(),{close:()=>{B.isClosed=!0,Vy(u,B)}}}function p(){d=void 0,s=Mqe(t,u,s,vU[250]),E()}function E(){!u.length||d||(d=t.setTimeout(p,2e3,"pollQueue"))}}function zqe(t,u,s,d,f){const E=L1(u)(s),v=t.get(E);return v?v.callbacks.push(d):t.set(E,{watcher:f((b,B,k)=>{var T;return(T=t.get(E))==null?void 0:T.callbacks.slice().forEach(M=>M(b,B,k))}),callbacks:[d]}),{close:()=>{const b=t.get(E);b&&(!gO(b.callbacks,d)||b.callbacks.length||(t.delete(E),jm(b)))}}}function eTt(t,u){const s=t.mtime.getTime(),d=u.getTime();return s!==d?(t.mtime=u,t.callback(t.fileName,xse(s,d),u),!0):!1}function xse(t,u){return t===0?0:u===0?2:1}function bO(t){return D2e(t)}function g2e(t){D2e=t}function tTt({watchDirectory:t,useCaseSensitiveFileNames:u,getCurrentDirectory:s,getAccessibleSortedChildDirectories:d,fileSystemEntryExists:f,realpath:p,setTimeout:E,clearTimeout:v}){const b=new Map,B=wm(),k=new Map;let T;const M=CN(!u),z=L1(u);return(ne,ve,Se,Ne)=>Se?j(ne,Ne,ve):t(ne,ve,Se,Ne);function j(ne,ve,Se){const Ne=z(ne);let pe=b.get(Ne);pe?pe.refCount++:(pe={watcher:t(ne,xe=>{ae(xe,ve)||(ve!=null&&ve.synchronousWatchDirectory?(J(Ne,xe),ge(ne,Ne,ve)):K(ne,Ne,xe,ve))},!1,ve),refCount:1,childWatches:_t},b.set(Ne,pe),ge(ne,Ne,ve));const fe=Se&&{dirName:ne,callback:Se};return fe&&B.add(Ne,fe),{dirName:ne,close:()=>{const xe=H.checkDefined(b.get(Ne));fe&&B.remove(Ne,fe),xe.refCount--,!xe.refCount&&(b.delete(Ne),jm(xe),xe.childWatches.forEach(fg))}}}function J(ne,ve,Se){let Ne,pe;Ja(ve)?Ne=ve:pe=ve,B.forEach((fe,xe)=>{if(!(pe&&pe.get(xe)===!0)&&(xe===ne||Pa(ne,xe)&&ne[xe.length]===rl))if(pe)if(Se){const Be=pe.get(xe);Be?Be.push(...Se):pe.set(xe,Se.slice())}else pe.set(xe,!0);else fe.forEach(({callback:Be})=>Be(Ne))})}function K(ne,ve,Se,Ne){const pe=b.get(ve);if(pe&&f(ne,1)){Y(ne,ve,Se,Ne);return}J(ve,Se),se(pe)}function Y(ne,ve,Se,Ne){const pe=k.get(ve);pe?pe.fileNames.push(Se):k.set(ve,{dirName:ne,options:Ne,fileNames:[Se]}),T&&(v(T),T=void 0),T=E(oe,1e3,"timerToUpdateChildWatches")}function oe(){T=void 0,bO(`sysLog:: onTimerToUpdateChildWatches:: ${k.size}`);const ne=G0(),ve=new Map;for(;!T&&k.size;){const Ne=k.entries().next();H.assert(!Ne.done);const{value:[pe,{dirName:fe,options:xe,fileNames:Be}]}=Ne;k.delete(pe);const Ge=ge(fe,pe,xe);J(pe,ve,Ge?void 0:Be)}bO(`sysLog:: invokingWatchers:: Elapsed:: ${G0()-ne}ms:: ${k.size}`),B.forEach((Ne,pe)=>{const fe=ve.get(pe);fe&&Ne.forEach(({callback:xe,dirName:Be})=>{Ha(fe)?fe.forEach(xe):xe(Be)})});const Se=G0()-ne;bO(`sysLog:: Elapsed:: ${Se}ms:: onTimerToUpdateChildWatches:: ${k.size} ${T}`)}function se(ne){if(!ne)return;const ve=ne.childWatches;ne.childWatches=_t;for(const Se of ve)Se.close(),se(b.get(z(Se.dirName)))}function ge(ne,ve,Se){const Ne=b.get(ve);if(!Ne)return!1;let pe;const fe=eU(f(ne,1)?qi(d(ne),Ge=>{const Ae=$a(Ge,ne);return!ae(Ae,Se)&&M(Ae,$o(p(Ae)))===0?Ae:void 0}):_t,Ne.childWatches,(Ge,Ae)=>M(Ge,Ae.dirName),xe,fg,Be);return Ne.childWatches=pe||_t,fe;function xe(Ge){const Ae=j(Ge,Se);Be(Ae)}function Be(Ge){(pe||(pe=[])).push(Ge)}}function ae(ne,ve){return Oe(kO,Se=>Ce(ne,Se))||Iqe(ne,ve,u,s)}function Ce(ne,ve){return ne.includes(ve)?!0:u?!1:z(ne).includes(ve)}}function iTt(t){return(u,s,d)=>t(s===1?"change":"rename","",d)}function nTt(t,u,s){return(d,f,p)=>{d==="rename"?(p||(p=s(t)||K_),u(t,p!==K_?0:2,p)):u(t,1,p)}}function Iqe(t,u,s,d){return((u==null?void 0:u.excludeDirectories)||(u==null?void 0:u.excludeFiles))&&(TY(t,u==null?void 0:u.excludeFiles,s,d())||TY(t,u==null?void 0:u.excludeDirectories,s,d()))}function Rqe(t,u,s,d,f){return(p,E)=>{if(p==="rename"){const v=E?$o(cr(t,E)):t;(!E||!Iqe(v,s,d,f))&&u(v)}}}function E2e({pollingWatchFileWorker:t,getModifiedTime:u,setTimeout:s,clearTimeout:d,fsWatchWorker:f,fileSystemEntryExists:p,useCaseSensitiveFileNames:E,getCurrentDirectory:v,fsSupportsRecursiveFsWatch:b,getAccessibleSortedChildDirectories:B,realpath:k,tscWatchFile:T,useNonPollingWatchers:M,tscWatchDirectory:z,inodeWatching:j,sysLog:J}){const K=new Map,Y=new Map,oe=new Map;let se,ge,ae,Ce,ne=!1;return{watchFile:ve,watchDirectory:xe};function ve(Je,ft,Ye,Ve){Ve=pe(Ve,M);const We=H.checkDefined(Ve.watchFile);switch(We){case 0:return Ae(Je,ft,250,void 0);case 1:return Ae(Je,ft,Ye,void 0);case 2:return Se()(Je,ft,Ye,void 0);case 3:return Ne()(Je,ft,void 0,void 0);case 4:return De(Je,0,nTt(Je,ft,u),!1,Ye,xH(Ve));case 5:return ae||(ae=Qwt(De,E)),ae(Je,ft,Ye,xH(Ve));default:H.assertNever(We)}}function Se(){return se||(se=Ywt({getModifiedTime:u,setTimeout:s}))}function Ne(){return ge||(ge=Xwt({getModifiedTime:u,setTimeout:s}))}function pe(Je,ft){if(Je&&Je.watchFile!==void 0)return Je;switch(T){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return fe(4,1,Je);case"UseFsEventsWithFallbackDynamicPolling":return fe(4,2,Je);case"UseFsEventsOnParentDirectory":ft=!0;default:return ft?fe(5,1,Je):{watchFile:4}}}function fe(Je,ft,Ye){const Ve=Ye==null?void 0:Ye.fallbackPolling;return{watchFile:Je,fallbackPolling:Ve===void 0?ft:Ve}}function xe(Je,ft,Ye,Ve){return b?De(Je,1,Rqe(Je,ft,Ve,E,v),Ye,500,xH(Ve)):(Ce||(Ce=tTt({useCaseSensitiveFileNames:E,getCurrentDirectory:v,fileSystemEntryExists:p,getAccessibleSortedChildDirectories:B,watchDirectory:Be,realpath:k,setTimeout:s,clearTimeout:d})),Ce(Je,ft,Ye,Ve))}function Be(Je,ft,Ye,Ve){H.assert(!Ye);const We=Ge(Ve),Gt=H.checkDefined(We.watchDirectory);switch(Gt){case 1:return Ae(Je,()=>ft(Je),500,void 0);case 2:return Se()(Je,()=>ft(Je),500,void 0);case 3:return Ne()(Je,()=>ft(Je),void 0,void 0);case 0:return De(Je,1,Rqe(Je,ft,Ve,E,v),Ye,500,xH(We));default:H.assertNever(Gt)}}function Ge(Je){if(Je&&Je.watchDirectory!==void 0)return Je;switch(z){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const ft=Je==null?void 0:Je.fallbackPolling;return{watchDirectory:0,fallbackPolling:ft!==void 0?ft:void 0}}}function Ae(Je,ft,Ye,Ve){return zqe(K,E,Je,ft,We=>t(Je,We,Ye,Ve))}function De(Je,ft,Ye,Ve,We,Gt){return zqe(Ve?oe:Y,E,Je,Ye,Yt=>Ke(Je,ft,Yt,Ve,We,Gt))}function Ke(Je,ft,Ye,Ve,We,Gt){let Yt,Ie;j&&(Yt=Je.substring(Je.lastIndexOf(rl)),Ie=Yt.slice(rl.length));let st=p(Je,ft)?It():Ut();return{close:()=>{st&&(st.close(),st=void 0)}};function St(Ni){st&&(J(`sysLog:: ${Je}:: Changing watcher to ${Ni===It?"Present":"Missing"}FileSystemEntryWatcher`),st.close(),st=Ni())}function It(){if(ne)return J(`sysLog:: ${Je}:: Defaulting to watchFile`),ht();try{const Ni=f(Je,Ve,j?ei:Ye);return Ni.on("error",()=>{Ye("rename",""),St(Ut)}),Ni}catch(Ni){return ne||(ne=Ni.code==="ENOSPC"),J(`sysLog:: ${Je}:: Changing to watchFile`),ht()}}function ei(Ni,ji){let xn;if(ji&&sc(ji,"~")&&(xn=ji,ji=ji.slice(0,ji.length-1)),Ni==="rename"&&(!ji||ji===Ie||sc(ji,Yt))){const Jn=u(Je)||K_;xn&&Ye(Ni,xn,Jn),Ye(Ni,ji,Jn),j?St(Jn===K_?Ut:It):Jn===K_&&St(Ut)}else xn&&Ye(Ni,xn),Ye(Ni,ji)}function ht(){return ve(Je,iTt(Ye),We,Gt)}function Ut(){return ve(Je,(Ni,ji,xn)=>{ji===0&&(xn||(xn=u(Je)||K_),xn!==K_&&(Ye("rename","",xn),St(It)))},We,Gt)}}}function _2e(t){const u=t.writeFile;t.writeFile=(s,d,f)=>nle(s,d,!!f,(p,E,v)=>u.call(t,p,E,v),p=>t.createDirectory(p),p=>t.directoryExists(p))}function Oqe(t){c1=t}var vse,DU,K_,xU,vU,yO,kO,D2e,Cse,c1,uTt=o({"src/compiler/sys.ts"(){Bo(),vse=(t=>(t[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",t))(vse||{}),DU=(t=>(t[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",t))(DU||{}),K_=new Date(0),xU={Low:32,Medium:64,High:256},vU=p2e(xU),yO=p2e(xU),kO=["/node_modules/.","/.git","/.#"],D2e=Is,Cse=(t=>(t[t.File=0]="File",t[t.Directory=1]="Directory",t))(Cse||{}),c1=(()=>{const t="\uFEFF";function u(){const d=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,f=rS,p=rS,E=rS;let v;try{v=rS}catch{v=void 0}let b,B="./profile.cpuprofile";const k=rS.Buffer,T=process.platform==="linux"||process.platform==="darwin",M=E.platform(),z=Ne(),j=f.realpathSync.native?process.platform==="win32"?We:f.realpathSync.native:f.realpathSync,J=__filename.endsWith("sys.js")?p.join(p.dirname(__dirname),"__fake__.js"):__filename,K=process.platform==="win32"||process.platform==="darwin",Y=Mh(()=>process.cwd()),{watchFile:oe,watchDirectory:se}=E2e({pollingWatchFileWorker:fe,getModifiedTime:Yt,setTimeout,clearTimeout,fsWatchWorker:xe,useCaseSensitiveFileNames:z,getCurrentDirectory:Y,fileSystemEntryExists:Je,fsSupportsRecursiveFsWatch:K,getAccessibleSortedChildDirectories:It=>De(It).directories,realpath:Gt,tscWatchFile:e.TSC_WATCHFILE,useNonPollingWatchers:!!e.TSC_NONPOLLING_WATCHER,tscWatchDirectory:e.TSC_WATCHDIRECTORY,inodeWatching:T,sysLog:bO}),ge={args:process.argv.slice(2),newLine:E.EOL,useCaseSensitiveFileNames:z,write(It){process.stdout.write(It)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Ge,writeFile:Ae,watchFile:oe,watchDirectory:se,resolvePath:It=>p.resolve(It),fileExists:ft,directoryExists:Ye,createDirectory(It){if(!ge.directoryExists(It))try{f.mkdirSync(It)}catch(ei){if(ei.code!=="EEXIST")throw ei}},getExecutingFilePath(){return J},getCurrentDirectory:Y,getDirectories:Ve,getEnvironmentVariable(It){return e[It]||""},readDirectory:Ke,getModifiedTime:Yt,setModifiedTime:Ie,deleteFile:st,createHash:v?St:AN,createSHA256Hash:v?St:void 0,getMemoryUsage(){return Zpt.gc&&Zpt.gc(),process.memoryUsage().heapUsed},getFileSize(It){try{const ei=ae(It);if(ei!=null&&ei.isFile())return ei.size}catch{}return 0},exit(It){ve(()=>process.exit(It))},enableCPUProfiler:Ce,disableCPUProfiler:ve,cpuProfilingEnabled:()=>!!b||kt(process.execArgv,"--cpu-prof")||kt(process.execArgv,"--prof"),realpath:Gt,debugMode:!!e.NODE_INSPECTOR_IPC||!!e.VSCODE_INSPECTOR_OPTIONS||Oe(process.execArgv,It=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(It))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{rS.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var It;const ei=(It=process.stdout)==null?void 0:It._handle;ei&&ei.setBlocking&&ei.setBlocking(!0)},bufferFrom:Se,base64decode:It=>Se(It,"base64").toString("utf8"),base64encode:It=>Se(It).toString("base64"),require:(It,ei)=>{try{const ht=pAe(ei,It,ge);return{module:Ypt(ht),modulePath:ht,error:void 0}}catch(ht){return{module:void 0,modulePath:void 0,error:ht}}}};return ge;function ae(It){return f.statSync(It,{throwIfNoEntry:!1})}function Ce(It,ei){if(b)return ei(),!1;const ht=rS;if(!ht||!ht.Session)return ei(),!1;const Ut=new ht.Session;return Ut.connect(),Ut.post("Profiler.enable",()=>{Ut.post("Profiler.start",()=>{b=Ut,B=It,ei()})}),!0}function ne(It){let ei=0;const ht=new Map,Ut=q1(p.dirname(J)),Ni=`file://${WE(Ut)===1?"":"/"}${Ut}`;for(const ji of It.nodes)if(ji.callFrame.url){const xn=q1(ji.callFrame.url);GE(Ni,xn,z)?ji.callFrame.url=i7(Ni,xn,Ni,L1(z),!0):d.test(xn)||(ji.callFrame.url=(ht.has(xn)?ht:ht.set(xn,`external${ei}.js`)).get(xn),ei++)}return It}function ve(It){if(b&&b!=="stopping"){const ei=b;return b.post("Profiler.stop",(ht,{profile:Ut})=>{var Ni;if(!ht){try{(Ni=ae(B))!=null&&Ni.isDirectory()&&(B=p.join(B,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{f.mkdirSync(p.dirname(B),{recursive:!0})}catch{}f.writeFileSync(B,JSON.stringify(ne(Ut)))}b=void 0,ei.disconnect(),It()}),b="stopping",!0}else return It(),!1}function Se(It,ei){return k.from&&k.from!==Int8Array.from?k.from(It,ei):new k(It,ei)}function Ne(){return M==="win32"||M==="win64"?!1:!ft(pe(__filename))}function pe(It){return It.replace(/\w/g,ei=>{const ht=ei.toUpperCase();return ei===ht?ei.toLowerCase():ht})}function fe(It,ei,ht){f.watchFile(It,{persistent:!0,interval:ht},Ni);let Ut;return{close:()=>f.unwatchFile(It,Ni)};function Ni(ji,xn){const Jn=+xn.mtime==0||Ut===2;if(+ji.mtime==0){if(Jn)return;Ut=2}else if(Jn)Ut=0;else{if(+ji.mtime==+xn.mtime)return;Ut=1}ei(It,Ut,ji.mtime)}}function xe(It,ei,ht){return f.watch(It,K?{persistent:!0,recursive:!!ei}:{persistent:!0},ht)}function Be(It,ei){let ht;try{ht=f.readFileSync(It)}catch{return}let Ut=ht.length;if(Ut>=2&&ht[0]===254&&ht[1]===255){Ut&=-2;for(let Ni=0;Ni=2&&ht[0]===255&&ht[1]===254?ht.toString("utf16le",2):Ut>=3&&ht[0]===239&&ht[1]===187&&ht[2]===191?ht.toString("utf8",3):ht.toString("utf8")}function Ge(It,ei){var ht,Ut;(ht=hh)==null||ht.logStartReadFile(It);const Ni=Be(It);return(Ut=hh)==null||Ut.logStopReadFile(),Ni}function Ae(It,ei,ht){var Ut;(Ut=hh)==null||Ut.logEvent("WriteFile: "+It),ht&&(ei=t+ei);let Ni;try{Ni=f.openSync(It,"w"),f.writeSync(Ni,ei,void 0,"utf8")}finally{Ni!==void 0&&f.closeSync(Ni)}}function De(It){var ei;(ei=hh)==null||ei.logEvent("ReadDir: "+(It||"."));try{const ht=f.readdirSync(It||".",{withFileTypes:!0}),Ut=[],Ni=[];for(const ji of ht){const xn=typeof ji=="string"?ji:ji.name;if(xn==="."||xn==="..")continue;let Jn;if(typeof ji=="string"||ji.isSymbolicLink()){const an=cr(It,xn);try{if(Jn=ae(an),!Jn)continue}catch{continue}}else Jn=ji;Jn.isFile()?Ut.push(xn):Jn.isDirectory()&&Ni.push(xn)}return Ut.sort(),Ni.sort(),{files:Ut,directories:Ni}}catch{return bZ}}function Ke(It,ei,ht,Ut,Ni){return Ale(It,ei,ht,Ut,z,process.cwd(),Ni,De,Gt)}function Je(It,ei){const ht=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const Ut=ae(It);if(!Ut)return!1;switch(ei){case 0:return Ut.isFile();case 1:return Ut.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=ht}}function ft(It){return Je(It,0)}function Ye(It){return Je(It,1)}function Ve(It){return De(It).directories.slice()}function We(It){return It.length<260?f.realpathSync.native(It):f.realpathSync(It)}function Gt(It){try{return j(It)}catch{return It}}function Yt(It){var ei;const ht=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(ei=ae(It))==null?void 0:ei.mtime}catch{return}finally{Error.stackTraceLimit=ht}}function Ie(It,ei){try{f.utimesSync(It,ei,ei)}catch{return}}function st(It){try{return f.unlinkSync(It)}catch{return}}function St(It){const ei=v.createHash("sha256");return ei.update(It),ei.digest("hex")}}let s;return hoe()&&(s=u()),s&&_2e(s),s})(),c1&&c1.getEnvironmentVariable&&(Zwt(c1),H.setAssertionLevel(/^development$/i.test(c1.getEnvironmentVariable("NODE_ENV"))?1:0)),c1&&c1.debugMode&&(H.isDebugging=!0)}});function bse(t){return t===47||t===92}function x2e(t){return CU(t)<0}function Pf(t){return CU(t)>0}function yse(t){const u=CU(t);return u>0&&u===t.length}function SN(t){return CU(t)!==0}function om(t){return/^\.\.?($|[\\/])/.test(t)}function kse(t){return!SN(t)&&!om(t)}function t7(t){return Ac(t).includes(".")}function Ml(t,u){return t.length>u.length&&sc(t,u)}function jc(t,u){for(const s of u)if(Ml(t,s))return!0;return!1}function ZD(t){return t.length>0&&bse(t.charCodeAt(t.length-1))}function jqe(t){return t>=97&&t<=122||t>=65&&t<=90}function rTt(t,u){const s=t.charCodeAt(u);if(s===58)return u+1;if(s===37&&t.charCodeAt(u+1)===51){const d=t.charCodeAt(u+2);if(d===97||d===65)return u+3}return-1}function CU(t){if(!t)return 0;const u=t.charCodeAt(0);if(u===47||u===92){if(t.charCodeAt(1)!==u)return 1;const d=t.indexOf(u===47?rl:BO,2);return d<0?t.length:d+1}if(jqe(u)&&t.charCodeAt(1)===58){const d=t.charCodeAt(2);if(d===47||d===92)return 3;if(t.length===2)return 2}const s=t.indexOf(C2e);if(s!==-1){const d=s+C2e.length,f=t.indexOf(rl,d);if(f!==-1){const p=t.slice(0,s),E=t.slice(d,f);if(p==="file"&&(E===""||E==="localhost")&&jqe(t.charCodeAt(f+1))){const v=rTt(t,f+2);if(v!==-1){if(t.charCodeAt(v)===47)return~(v+1);if(v===t.length)return~v}}return~(f+1)}return~t.length}return 0}function WE(t){const u=CU(t);return u<0?~u:u}function lr(t){t=q1(t);const u=WE(t);return u===t.length?t:(t=mv(t),t.slice(0,Math.max(u,t.lastIndexOf(rl))))}function Ac(t,u,s){if(t=q1(t),WE(t)===t.length)return"";t=mv(t);const f=t.slice(Math.max(WE(t),t.lastIndexOf(rl)+1)),p=u!==void 0&&s!==void 0?BN(f,u,s):void 0;return p?f.slice(0,f.length-p.length):f}function Vqe(t,u,s){if(Pa(u,".")||(u="."+u),t.length>=u.length&&t.charCodeAt(t.length-u.length)===46){const d=t.slice(t.length-u.length);if(s(d,u))return d}}function aTt(t,u,s){if(typeof u=="string")return Vqe(t,u,s)||"";for(const d of u){const f=Vqe(t,d,s);if(f)return f}return""}function BN(t,u,s){if(u)return aTt(mv(t),u,s?QA:XA);const d=Ac(t),f=d.lastIndexOf(".");return f>=0?d.substring(f):""}function oTt(t,u){const s=t.substring(0,u),d=t.substring(u).split(rl);return d.length&&!qu(d)&&d.pop(),[s,...d]}function yd(t,u=""){return t=cr(u,t),oTt(t,WE(t))}function yx(t,u){return t.length===0?"":(t[0]&&zd(t[0]))+t.slice(1,u).join(rl)}function q1(t){return t.includes("\\")?t.replace(Wqe,rl):t}function Jy(t){if(!Oe(t))return[];const u=[t[0]];for(let s=1;s1){if(u[u.length-1]!==".."){u.pop();continue}}else if(u[0])continue}u.push(d)}}return u}function cr(t,...u){t&&(t=q1(t));for(let s of u)s&&(s=q1(s),!t||WE(s)!==0?t=s:t=zd(t)+s);return t}function kx(t,...u){return $o(Oe(u)?cr(t,...u):q1(t))}function FO(t,u){return Jy(yd(t,u))}function $a(t,u){return yx(FO(t,u))}function $o(t){if(t=q1(t),!yU.test(t))return t;const u=t.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(u!==t&&(t=u,!yU.test(t)))return t;const s=yx(Jy(yd(t)));return s&&ZD(t)?zd(s):s}function sTt(t){return t.length===0?"":t.slice(1).join(rl)}function Fse(t,u){return sTt(FO(t,u))}function J0(t,u,s){const d=Pf(t)?$o(t):$a(t,u);return s(d)}function mv(t){return ZD(t)?t.substr(0,t.length-1):t}function zd(t){return ZD(t)?t:t+rl}function h2(t){return!SN(t)&&!om(t)?"./"+t:t}function AO(t,u,s,d){const f=s!==void 0&&d!==void 0?BN(t,s,d):BN(t);return f?t.slice(0,t.length-f.length)+(Pa(u,".")?u:"."+u):t}function v2e(t,u,s){if(t===u)return 0;if(t===void 0)return-1;if(u===void 0)return 1;const d=t.substring(0,WE(t)),f=u.substring(0,WE(u)),p=Z$(d,f);if(p!==0)return p;const E=t.substring(d.length),v=u.substring(f.length);if(!yU.test(E)&&!yU.test(v))return s(E,v);const b=Jy(yd(t)),B=Jy(yd(u)),k=Math.min(b.length,B.length);for(let T=1;T0==WE(u)>0,"Paths must either both be absolute or both be relative");const p=Sse(t,u,(typeof s=="boolean"?s:!1)?QA:XA,typeof s=="function"?s:il);return yx(p)}function wN(t,u,s){return Pf(t)?i7(u,t,u,s,!1):t}function SO(t,u,s){return h2(JE(lr(t),u,s))}function i7(t,u,s,d,f){const p=Sse(kx(s,t),kx(s,u),XA,d),E=p[0];if(f&&Pf(E)){const v=E.charAt(0)===rl?"file://":"file:///";p[0]=v+E}return yx(p)}function Ug(t,u){for(;;){const s=u(t);if(s!==void 0)return s;const d=lr(t);if(d===t)return;t=d}}function bU(t){return sc(t,"/node_modules")}var rl,BO,C2e,Wqe,yU,lTt=o({"src/compiler/path.ts"(){Bo(),rl="/",BO="\\",C2e="://",Wqe=/\\/g,yU=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function P(t,u,s,d,f,p,E){return{code:t,category:u,key:s,message:d,reportsUnnecessary:f,elidedInCompatabilityPyramid:p,reportsDeprecated:E}}var F,cTt=o({"src/compiler/diagnosticInformationMap.generated.ts"(){Nqe(),F={Unterminated_string_literal:P(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:P(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:P(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:P(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:P(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:P(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:P(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:P(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:P(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:P(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:P(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:P(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:P(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:P(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:P(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:P(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:P(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:P(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:P(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:P(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:P(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:P(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:P(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:P(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:P(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:P(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:P(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:P(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:P(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:P(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:P(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:P(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:P(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:P(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:P(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:P(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:P(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:P(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:P(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:P(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:P(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:P(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:P(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:P(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:P(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:P(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:P(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:P(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:P(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:P(1065,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_1065","The return type of an async function or method must be the global Promise type."),In_ambient_enum_declarations_member_initializer_must_be_constant_expression:P(1066,1,"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066","In ambient enum declarations member initializer must be constant expression."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:P(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:P(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),_0_modifier_cannot_appear_on_a_type_member:P(1070,1,"_0_modifier_cannot_appear_on_a_type_member_1070","'{0}' modifier cannot appear on a type member."),_0_modifier_cannot_appear_on_an_index_signature:P(1071,1,"_0_modifier_cannot_appear_on_an_index_signature_1071","'{0}' modifier cannot appear on an index signature."),A_0_modifier_cannot_be_used_with_an_import_declaration:P(1079,1,"A_0_modifier_cannot_be_used_with_an_import_declaration_1079","A '{0}' modifier cannot be used with an import declaration."),Invalid_reference_directive_syntax:P(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:P(1089,1,"_0_modifier_cannot_appear_on_a_constructor_declaration_1089","'{0}' modifier cannot appear on a constructor declaration."),_0_modifier_cannot_appear_on_a_parameter:P(1090,1,"_0_modifier_cannot_appear_on_a_parameter_1090","'{0}' modifier cannot appear on a parameter."),Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:P(1091,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091","Only a single variable declaration is allowed in a 'for...in' statement."),Type_parameters_cannot_appear_on_a_constructor_declaration:P(1092,1,"Type_parameters_cannot_appear_on_a_constructor_declaration_1092","Type parameters cannot appear on a constructor declaration."),Type_annotation_cannot_appear_on_a_constructor_declaration:P(1093,1,"Type_annotation_cannot_appear_on_a_constructor_declaration_1093","Type annotation cannot appear on a constructor declaration."),An_accessor_cannot_have_type_parameters:P(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:P(1095,1,"A_set_accessor_cannot_have_a_return_type_annotation_1095","A 'set' accessor cannot have a return type annotation."),An_index_signature_must_have_exactly_one_parameter:P(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:P(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:P(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:P(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:P(1100,1,"Invalid_use_of_0_in_strict_mode_1100","Invalid use of '{0}' in strict mode."),with_statements_are_not_allowed_in_strict_mode:P(1101,1,"with_statements_are_not_allowed_in_strict_mode_1101","'with' statements are not allowed in strict mode."),delete_cannot_be_called_on_an_identifier_in_strict_mode:P(1102,1,"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102","'delete' cannot be called on an identifier in strict mode."),for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:P(1103,1,"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103","'for await' loops are only allowed within async functions and at the top levels of modules."),A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement:P(1104,1,"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104","A 'continue' statement can only be used within an enclosing iteration statement."),A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:P(1105,1,"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105","A 'break' statement can only be used within an enclosing iteration or switch statement."),The_left_hand_side_of_a_for_of_statement_may_not_be_async:P(1106,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106","The left-hand side of a 'for...of' statement may not be 'async'."),Jump_target_cannot_cross_function_boundary:P(1107,1,"Jump_target_cannot_cross_function_boundary_1107","Jump target cannot cross function boundary."),A_return_statement_can_only_be_used_within_a_function_body:P(1108,1,"A_return_statement_can_only_be_used_within_a_function_body_1108","A 'return' statement can only be used within a function body."),Expression_expected:P(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:P(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:P(1111,1,"Private_field_0_must_be_declared_in_an_enclosing_class_1111","Private field '{0}' must be declared in an enclosing class."),A_default_clause_cannot_appear_more_than_once_in_a_switch_statement:P(1113,1,"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113","A 'default' clause cannot appear more than once in a 'switch' statement."),Duplicate_label_0:P(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:P(1115,1,"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115","A 'continue' statement can only jump to a label of an enclosing iteration statement."),A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:P(1116,1,"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116","A 'break' statement can only jump to a label of an enclosing statement."),An_object_literal_cannot_have_multiple_properties_with_the_same_name:P(1117,1,"An_object_literal_cannot_have_multiple_properties_with_the_same_name_1117","An object literal cannot have multiple properties with the same name."),An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name:P(1118,1,"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118","An object literal cannot have multiple get/set accessors with the same name."),An_object_literal_cannot_have_property_and_accessor_with_the_same_name:P(1119,1,"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119","An object literal cannot have property and accessor with the same name."),An_export_assignment_cannot_have_modifiers:P(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:P(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Variable_declaration_list_cannot_be_empty:P(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:P(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:P(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:P(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:P(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:P(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:P(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:P(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:P(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:P(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:P(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:P(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:P(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:P(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:P(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:P(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:P(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:P(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:P(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:P(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:P(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:P(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:P(1147,1,"Import_declarations_in_a_namespace_cannot_reference_a_module_1147","Import declarations in a namespace cannot reference a module."),Cannot_use_imports_exports_or_module_augmentations_when_module_is_none:P(1148,1,"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148","Cannot use imports, exports, or module augmentations when '--module' is 'none'."),File_name_0_differs_from_already_included_file_name_1_only_in_casing:P(1149,1,"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149","File name '{0}' differs from already included file name '{1}' only in casing."),_0_declarations_must_be_initialized:P(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:P(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:P(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:P(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:P(1162,1,"An_object_member_cannot_be_declared_optional_1162","An object member cannot be declared optional."),A_yield_expression_is_only_allowed_in_a_generator_body:P(1163,1,"A_yield_expression_is_only_allowed_in_a_generator_body_1163","A 'yield' expression is only allowed in a generator body."),Computed_property_names_are_not_allowed_in_enums:P(1164,1,"Computed_property_names_are_not_allowed_in_enums_1164","Computed property names are not allowed in enums."),A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:P(1165,1,"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165","A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type:P(1166,1,"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166","A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type."),A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:P(1168,1,"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168","A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:P(1169,1,"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169","A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type:P(1170,1,"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170","A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type."),A_comma_expression_is_not_allowed_in_a_computed_property_name:P(1171,1,"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171","A comma expression is not allowed in a computed property name."),extends_clause_already_seen:P(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:P(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:P(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:P(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:P(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:P(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:P(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:P(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:P(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:P(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:P(1182,1,"A_destructuring_declaration_must_have_an_initializer_1182","A destructuring declaration must have an initializer."),An_implementation_cannot_be_declared_in_ambient_contexts:P(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:P(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:P(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:P(1186,1,"A_rest_element_cannot_have_an_initializer_1186","A rest element cannot have an initializer."),A_parameter_property_may_not_be_declared_using_a_binding_pattern:P(1187,1,"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187","A parameter property may not be declared using a binding pattern."),Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement:P(1188,1,"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188","Only a single variable declaration is allowed in a 'for...of' statement."),The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:P(1189,1,"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189","The variable declaration of a 'for...in' statement cannot have an initializer."),The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer:P(1190,1,"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190","The variable declaration of a 'for...of' statement cannot have an initializer."),An_import_declaration_cannot_have_modifiers:P(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:P(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:P(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:P(1194,1,"Export_declarations_are_not_permitted_in_a_namespace_1194","Export declarations are not permitted in a namespace."),export_Asterisk_does_not_re_export_a_default:P(1195,1,"export_Asterisk_does_not_re_export_a_default_1195","'export *' does not re-export a default."),Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified:P(1196,1,"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196","Catch clause variable type annotation must be 'any' or 'unknown' if specified."),Catch_clause_variable_cannot_have_an_initializer:P(1197,1,"Catch_clause_variable_cannot_have_an_initializer_1197","Catch clause variable cannot have an initializer."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:P(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:P(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:P(1200,1,"Line_terminator_not_permitted_before_arrow_1200","Line terminator not permitted before arrow."),Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead:P(1202,1,"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202",`Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.`),Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead:P(1203,1,"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203","Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead."),Re_exporting_a_type_when_0_is_enabled_requires_using_export_type:P(1205,1,"Re_exporting_a_type_when_0_is_enabled_requires_using_export_type_1205","Re-exporting a type when '{0}' is enabled requires using 'export type'."),Decorators_are_not_valid_here:P(1206,1,"Decorators_are_not_valid_here_1206","Decorators are not valid here."),Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name:P(1207,1,"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207","Decorators cannot be applied to multiple get/set accessors of the same name."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:P(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:P(1210,1,"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210","Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode."),A_class_declaration_without_the_default_modifier_must_have_a_name:P(1211,1,"A_class_declaration_without_the_default_modifier_must_have_a_name_1211","A class declaration without the 'default' modifier must have a name."),Identifier_expected_0_is_a_reserved_word_in_strict_mode:P(1212,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212","Identifier expected. '{0}' is a reserved word in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:P(1213,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213","Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."),Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:P(1214,1,"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214","Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode."),Invalid_use_of_0_Modules_are_automatically_in_strict_mode:P(1215,1,"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215","Invalid use of '{0}'. Modules are automatically in strict mode."),Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules:P(1216,1,"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216","Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules."),Export_assignment_is_not_supported_when_module_flag_is_system:P(1218,1,"Export_assignment_is_not_supported_when_module_flag_is_system_1218","Export assignment is not supported when '--module' flag is 'system'."),Generators_are_not_allowed_in_an_ambient_context:P(1221,1,"Generators_are_not_allowed_in_an_ambient_context_1221","Generators are not allowed in an ambient context."),An_overload_signature_cannot_be_declared_as_a_generator:P(1222,1,"An_overload_signature_cannot_be_declared_as_a_generator_1222","An overload signature cannot be declared as a generator."),_0_tag_already_specified:P(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:P(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:P(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:P(1226,1,"Type_predicate_0_is_not_assignable_to_1_1226","Type predicate '{0}' is not assignable to '{1}'."),Parameter_0_is_not_in_the_same_position_as_parameter_1:P(1227,1,"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227","Parameter '{0}' is not in the same position as parameter '{1}'."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:P(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),A_type_predicate_cannot_reference_a_rest_parameter:P(1229,1,"A_type_predicate_cannot_reference_a_rest_parameter_1229","A type predicate cannot reference a rest parameter."),A_type_predicate_cannot_reference_element_0_in_a_binding_pattern:P(1230,1,"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230","A type predicate cannot reference element '{0}' in a binding pattern."),An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:P(1231,1,"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231","An export assignment must be at the top level of a file or module declaration."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:P(1232,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1232","An import declaration can only be used at the top level of a namespace or module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module:P(1233,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module_1233","An export declaration can only be used at the top level of a namespace or module."),An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:P(1234,1,"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234","An ambient module declaration is only allowed at the top level in a file."),A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module:P(1235,1,"A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module_1235","A namespace declaration is only allowed at the top level of a namespace or module."),The_return_type_of_a_property_decorator_function_must_be_either_void_or_any:P(1236,1,"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236","The return type of a property decorator function must be either 'void' or 'any'."),The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any:P(1237,1,"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237","The return type of a parameter decorator function must be either 'void' or 'any'."),Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression:P(1238,1,"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238","Unable to resolve signature of class decorator when called as an expression."),Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression:P(1239,1,"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239","Unable to resolve signature of parameter decorator when called as an expression."),Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression:P(1240,1,"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240","Unable to resolve signature of property decorator when called as an expression."),Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression:P(1241,1,"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241","Unable to resolve signature of method decorator when called as an expression."),abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration:P(1242,1,"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242","'abstract' modifier can only appear on a class, method, or property declaration."),_0_modifier_cannot_be_used_with_1_modifier:P(1243,1,"_0_modifier_cannot_be_used_with_1_modifier_1243","'{0}' modifier cannot be used with '{1}' modifier."),Abstract_methods_can_only_appear_within_an_abstract_class:P(1244,1,"Abstract_methods_can_only_appear_within_an_abstract_class_1244","Abstract methods can only appear within an abstract class."),Method_0_cannot_have_an_implementation_because_it_is_marked_abstract:P(1245,1,"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245","Method '{0}' cannot have an implementation because it is marked abstract."),An_interface_property_cannot_have_an_initializer:P(1246,1,"An_interface_property_cannot_have_an_initializer_1246","An interface property cannot have an initializer."),A_type_literal_property_cannot_have_an_initializer:P(1247,1,"A_type_literal_property_cannot_have_an_initializer_1247","A type literal property cannot have an initializer."),A_class_member_cannot_have_the_0_keyword:P(1248,1,"A_class_member_cannot_have_the_0_keyword_1248","A class member cannot have the '{0}' keyword."),A_decorator_can_only_decorate_a_method_implementation_not_an_overload:P(1249,1,"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249","A decorator can only decorate a method implementation, not an overload."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5:P(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:P(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:P(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:P(1253,1,"Abstract_properties_can_only_appear_within_an_abstract_class_1253","Abstract properties can only appear within an abstract class."),A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference:P(1254,1,"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254","A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference."),A_definite_assignment_assertion_is_not_permitted_in_this_context:P(1255,1,"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255","A definite assignment assertion '!' is not permitted in this context."),A_required_element_cannot_follow_an_optional_element:P(1257,1,"A_required_element_cannot_follow_an_optional_element_1257","A required element cannot follow an optional element."),A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration:P(1258,1,"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258","A default export must be at the top level of a file or module declaration."),Module_0_can_only_be_default_imported_using_the_1_flag:P(1259,1,"Module_0_can_only_be_default_imported_using_the_1_flag_1259","Module '{0}' can only be default-imported using the '{1}' flag"),Keywords_cannot_contain_escape_characters:P(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),Already_included_file_name_0_differs_from_file_name_1_only_in_casing:P(1261,1,"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261","Already included file name '{0}' differs from file name '{1}' only in casing."),Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module:P(1262,1,"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262","Identifier expected. '{0}' is a reserved word at the top-level of a module."),Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:P(1263,1,"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263","Declarations with initializers cannot also have definite assignment assertions."),Declarations_with_definite_assignment_assertions_must_also_have_type_annotations:P(1264,1,"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264","Declarations with definite assignment assertions must also have type annotations."),A_rest_element_cannot_follow_another_rest_element:P(1265,1,"A_rest_element_cannot_follow_another_rest_element_1265","A rest element cannot follow another rest element."),An_optional_element_cannot_follow_a_rest_element:P(1266,1,"An_optional_element_cannot_follow_a_rest_element_1266","An optional element cannot follow a rest element."),Property_0_cannot_have_an_initializer_because_it_is_marked_abstract:P(1267,1,"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267","Property '{0}' cannot have an initializer because it is marked abstract."),An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type:P(1268,1,"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268","An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type."),Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled:P(1269,1,"Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled_1269","Cannot use 'export import' on a type or type-only namespace when '{0}' is enabled."),Decorator_function_return_type_0_is_not_assignable_to_type_1:P(1270,1,"Decorator_function_return_type_0_is_not_assignable_to_type_1_1270","Decorator function return type '{0}' is not assignable to type '{1}'."),Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any:P(1271,1,"Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any_1271","Decorator function return type is '{0}' but is expected to be 'void' or 'any'."),A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled:P(1272,1,"A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_w_1272","A type referenced in a decorated signature must be imported with 'import type' or a namespace import when 'isolatedModules' and 'emitDecoratorMetadata' are enabled."),_0_modifier_cannot_appear_on_a_type_parameter:P(1273,1,"_0_modifier_cannot_appear_on_a_type_parameter_1273","'{0}' modifier cannot appear on a type parameter"),_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias:P(1274,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias_1274","'{0}' modifier can only appear on a type parameter of a class, interface or type alias"),accessor_modifier_can_only_appear_on_a_property_declaration:P(1275,1,"accessor_modifier_can_only_appear_on_a_property_declaration_1275","'accessor' modifier can only appear on a property declaration."),An_accessor_property_cannot_be_declared_optional:P(1276,1,"An_accessor_property_cannot_be_declared_optional_1276","An 'accessor' property cannot be declared optional."),_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class:P(1277,1,"_0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class_1277","'{0}' modifier can only appear on a type parameter of a function, method or class"),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0:P(1278,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_0_1278","The runtime will invoke the decorator with {1} arguments, but the decorator expects {0}."),The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0:P(1279,1,"The_runtime_will_invoke_the_decorator_with_1_arguments_but_the_decorator_expects_at_least_0_1279","The runtime will invoke the decorator with {1} arguments, but the decorator expects at least {0}."),Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement:P(1280,1,"Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to__1280","Namespaces are not allowed in global script files when '{0}' is enabled. If this file is not intended to be a global script, set 'moduleDetection' to 'force' or add an empty 'export {}' statement."),Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead:P(1281,1,"Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead_1281","Cannot access '{0}' from another file without qualification when '{1}' is enabled. Use '{2}' instead."),An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:P(1282,1,"An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers__1282","An 'export =' declaration must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:P(1283,1,"An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolve_1283","An 'export =' declaration must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:P(1284,1,"An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_1284","An 'export default' must reference a value when 'verbatimModuleSyntax' is enabled, but '{0}' only refers to a type."),An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:P(1285,1,"An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_1285","An 'export default' must reference a real value when 'verbatimModuleSyntax' is enabled, but '{0}' resolves to a type-only declaration."),ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:P(1286,1,"ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled_1286","ESM syntax is not allowed in a CommonJS module when 'verbatimModuleSyntax' is enabled."),A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled:P(1287,1,"A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimM_1287","A top-level 'export' modifier cannot be used on value declarations in a CommonJS module when 'verbatimModuleSyntax' is enabled."),An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:P(1288,1,"An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabl_1288","An import alias cannot resolve to a type or type-only declaration when 'verbatimModuleSyntax' is enabled."),with_statements_are_not_allowed_in_an_async_function_block:P(1300,1,"with_statements_are_not_allowed_in_an_async_function_block_1300","'with' statements are not allowed in an async function block."),await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:P(1308,1,"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308","'await' expressions are only allowed within async functions and at the top levels of modules."),The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level:P(1309,1,"The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level_1309","The current file is a CommonJS module and cannot use 'await' at the top level."),Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern:P(1312,1,"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312","Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern."),The_body_of_an_if_statement_cannot_be_the_empty_statement:P(1313,1,"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313","The body of an 'if' statement cannot be the empty statement."),Global_module_exports_may_only_appear_in_module_files:P(1314,1,"Global_module_exports_may_only_appear_in_module_files_1314","Global module exports may only appear in module files."),Global_module_exports_may_only_appear_in_declaration_files:P(1315,1,"Global_module_exports_may_only_appear_in_declaration_files_1315","Global module exports may only appear in declaration files."),Global_module_exports_may_only_appear_at_top_level:P(1316,1,"Global_module_exports_may_only_appear_at_top_level_1316","Global module exports may only appear at top level."),A_parameter_property_cannot_be_declared_using_a_rest_parameter:P(1317,1,"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317","A parameter property cannot be declared using a rest parameter."),An_abstract_accessor_cannot_have_an_implementation:P(1318,1,"An_abstract_accessor_cannot_have_an_implementation_1318","An abstract accessor cannot have an implementation."),A_default_export_can_only_be_used_in_an_ECMAScript_style_module:P(1319,1,"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319","A default export can only be used in an ECMAScript-style module."),Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1320,1,"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320","Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member."),Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1321,1,"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321","Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member."),Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1322,1,"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322","Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member."),Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext:P(1323,1,"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd__1323","Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'."),Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext:P(1324,1,"Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nod_1324","Dynamic imports only support a second argument when the '--module' option is set to 'esnext', 'node16', or 'nodenext'."),Argument_of_dynamic_import_cannot_be_spread_element:P(1325,1,"Argument_of_dynamic_import_cannot_be_spread_element_1325","Argument of dynamic import cannot be spread element."),This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments:P(1326,1,"This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot__1326","This use of 'import' is invalid. 'import()' calls can be written, but they must have parentheses and cannot have type arguments."),String_literal_with_double_quotes_expected:P(1327,1,"String_literal_with_double_quotes_expected_1327","String literal with double quotes expected."),Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal:P(1328,1,"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328","Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal."),_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0:P(1329,1,"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329","'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?"),A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly:P(1330,1,"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330","A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'."),A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly:P(1331,1,"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331","A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'."),A_variable_whose_type_is_a_unique_symbol_type_must_be_const:P(1332,1,"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332","A variable whose type is a 'unique symbol' type must be 'const'."),unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name:P(1333,1,"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333","'unique symbol' types may not be used on a variable declaration with a binding name."),unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement:P(1334,1,"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334","'unique symbol' types are only allowed on variables in a variable statement."),unique_symbol_types_are_not_allowed_here:P(1335,1,"unique_symbol_types_are_not_allowed_here_1335","'unique symbol' types are not allowed here."),An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead:P(1337,1,"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337","An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead."),infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type:P(1338,1,"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338","'infer' declarations are only permitted in the 'extends' clause of a conditional type."),Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:P(1339,1,"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339","Module '{0}' does not refer to a value, but is used as a value here."),Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0:P(1340,1,"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340","Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?"),Class_constructor_may_not_be_an_accessor:P(1341,1,"Class_constructor_may_not_be_an_accessor_1341","Class constructor may not be an accessor."),The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext:P(1343,1,"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system__1343","The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node16', or 'nodenext'."),A_label_is_not_allowed_here:P(1344,1,"A_label_is_not_allowed_here_1344","'A label is not allowed here."),An_expression_of_type_void_cannot_be_tested_for_truthiness:P(1345,1,"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345","An expression of type 'void' cannot be tested for truthiness."),This_parameter_is_not_allowed_with_use_strict_directive:P(1346,1,"This_parameter_is_not_allowed_with_use_strict_directive_1346","This parameter is not allowed with 'use strict' directive."),use_strict_directive_cannot_be_used_with_non_simple_parameter_list:P(1347,1,"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347","'use strict' directive cannot be used with non-simple parameter list."),Non_simple_parameter_declared_here:P(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:P(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:P(1350,3,"Print_the_final_configuration_instead_of_building_1350","Print the final configuration instead of building."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:P(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:P(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:P(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types:P(1354,1,"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354","'readonly' type modifier is only permitted on array and tuple literal types."),A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals:P(1355,1,"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355","A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals."),Did_you_mean_to_mark_this_function_as_async:P(1356,1,"Did_you_mean_to_mark_this_function_as_async_1356","Did you mean to mark this function as 'async'?"),An_enum_member_name_must_be_followed_by_a_or:P(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Tagged_template_expressions_are_not_permitted_in_an_optional_chain:P(1358,1,"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358","Tagged template expressions are not permitted in an optional chain."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:P(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Type_0_does_not_satisfy_the_expected_type_1:P(1360,1,"Type_0_does_not_satisfy_the_expected_type_1_1360","Type '{0}' does not satisfy the expected type '{1}'."),_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type:P(1361,1,"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361","'{0}' cannot be used as a value because it was imported using 'import type'."),_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:P(1362,1,"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362","'{0}' cannot be used as a value because it was exported using 'export type'."),A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both:P(1363,1,"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363","A type-only import can specify a default import or named bindings, but not both."),Convert_to_type_only_export:P(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:P(1365,3,"Convert_all_re_exported_types_to_type_only_exports_1365","Convert all re-exported types to type-only exports"),Split_into_two_separate_import_declarations:P(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:P(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:P(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:P(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:P(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:P(1375,1,"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375","'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),_0_was_imported_here:P(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:P(1377,3,"_0_was_exported_here_1377","'{0}' was exported here."),Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(1378,1,"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_n_1378","Top-level 'await' expressions are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:P(1379,1,"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379","An import alias cannot reference a declaration that was exported using 'export type'."),An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type:P(1380,1,"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380","An import alias cannot reference a declaration that was imported using 'import type'."),Unexpected_token_Did_you_mean_or_rbrace:P(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:P(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:P(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:P(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:P(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:P(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:P(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:P(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),An_import_alias_cannot_use_import_type:P(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:P(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:P(1394,3,"Imported_via_0_from_file_1_with_packageId_2_1394","Imported via {0} from file '{1}' with packageId '{2}'"),Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:P(1395,3,"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395","Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:P(1396,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396","Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions"),Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions:P(1397,3,"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397","Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions"),Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:P(1398,3,"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398","Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions"),File_is_included_via_import_here:P(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:P(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:P(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:P(1402,3,"Type_library_referenced_via_0_from_file_1_1402","Type library referenced via '{0}' from file '{1}'"),Type_library_referenced_via_0_from_file_1_with_packageId_2:P(1403,3,"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403","Type library referenced via '{0}' from file '{1}' with packageId '{2}'"),File_is_included_via_type_library_reference_here:P(1404,3,"File_is_included_via_type_library_reference_here_1404","File is included via type library reference here."),Library_referenced_via_0_from_file_1:P(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:P(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:P(1407,3,"Matched_by_include_pattern_0_in_1_1407","Matched by include pattern '{0}' in '{1}'"),File_is_matched_by_include_pattern_specified_here:P(1408,3,"File_is_matched_by_include_pattern_specified_here_1408","File is matched by include pattern specified here."),Part_of_files_list_in_tsconfig_json:P(1409,3,"Part_of_files_list_in_tsconfig_json_1409","Part of 'files' list in tsconfig.json"),File_is_matched_by_files_list_specified_here:P(1410,3,"File_is_matched_by_files_list_specified_here_1410","File is matched by 'files' list specified here."),Output_from_referenced_project_0_included_because_1_specified:P(1411,3,"Output_from_referenced_project_0_included_because_1_specified_1411","Output from referenced project '{0}' included because '{1}' specified"),Output_from_referenced_project_0_included_because_module_is_specified_as_none:P(1412,3,"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412","Output from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_output_from_referenced_project_specified_here:P(1413,3,"File_is_output_from_referenced_project_specified_here_1413","File is output from referenced project specified here."),Source_from_referenced_project_0_included_because_1_specified:P(1414,3,"Source_from_referenced_project_0_included_because_1_specified_1414","Source from referenced project '{0}' included because '{1}' specified"),Source_from_referenced_project_0_included_because_module_is_specified_as_none:P(1415,3,"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415","Source from referenced project '{0}' included because '--module' is specified as 'none'"),File_is_source_from_referenced_project_specified_here:P(1416,3,"File_is_source_from_referenced_project_specified_here_1416","File is source from referenced project specified here."),Entry_point_of_type_library_0_specified_in_compilerOptions:P(1417,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_1417","Entry point of type library '{0}' specified in compilerOptions"),Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1:P(1418,3,"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418","Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'"),File_is_entry_point_of_type_library_specified_here:P(1419,3,"File_is_entry_point_of_type_library_specified_here_1419","File is entry point of type library specified here."),Entry_point_for_implicit_type_library_0:P(1420,3,"Entry_point_for_implicit_type_library_0_1420","Entry point for implicit type library '{0}'"),Entry_point_for_implicit_type_library_0_with_packageId_1:P(1421,3,"Entry_point_for_implicit_type_library_0_with_packageId_1_1421","Entry point for implicit type library '{0}' with packageId '{1}'"),Library_0_specified_in_compilerOptions:P(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:P(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:P(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:P(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:P(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:P(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:P(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:P(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:P(1430,3,"The_file_is_in_the_program_because_Colon_1430","The file is in the program because:"),for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:P(1431,1,"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431","'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(1432,1,"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_nod_1432","Top-level 'for await' loops are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:P(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:P(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:P(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:P(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:P(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:P(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:P(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:P(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:P(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:P(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:P(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:P(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:P(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:P(1448,1,"_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_1448","'{0}' resolves to a type-only declaration and must be re-exported using a type-only re-export when '{1}' is enabled."),Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed:P(1449,3,"Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed_1449","Preserve unused imported values in the JavaScript output that would otherwise be removed."),Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments:P(1450,3,"Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments_1450","Dynamic imports can only accept a module specifier and an optional set of attributes as arguments"),Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression:P(1451,1,"Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member__1451","Private identifiers are only allowed in class bodies and may only be used as part of a class member declaration, property access, or on the left-hand-side of an 'in' expression"),resolution_mode_should_be_either_require_or_import:P(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),resolution_mode_can_only_be_set_for_type_only_imports:P(1454,1,"resolution_mode_can_only_be_set_for_type_only_imports_1454","`resolution-mode` can only be set for type-only imports."),resolution_mode_is_the_only_valid_key_for_type_import_assertions:P(1455,1,"resolution_mode_is_the_only_valid_key_for_type_import_assertions_1455","`resolution-mode` is the only valid key for type import assertions."),Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:P(1456,1,"Type_import_assertions_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1456","Type import assertions should have exactly one key - `resolution-mode` - with value `import` or `require`."),Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:P(1457,3,"Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk_1457","Matched by default include pattern '**/*'"),File_is_ECMAScript_module_because_0_has_field_type_with_value_module:P(1458,3,"File_is_ECMAScript_module_because_0_has_field_type_with_value_module_1458",`File is ECMAScript module because '{0}' has field "type" with value "module"`),File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:P(1459,3,"File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module_1459",`File is CommonJS module because '{0}' has field "type" whose value is not "module"`),File_is_CommonJS_module_because_0_does_not_have_field_type:P(1460,3,"File_is_CommonJS_module_because_0_does_not_have_field_type_1460",`File is CommonJS module because '{0}' does not have field "type"`),File_is_CommonJS_module_because_package_json_was_not_found:P(1461,3,"File_is_CommonJS_module_because_package_json_was_not_found_1461","File is CommonJS module because 'package.json' was not found"),resolution_mode_is_the_only_valid_key_for_type_import_attributes:P(1463,1,"resolution_mode_is_the_only_valid_key_for_type_import_attributes_1463","'resolution-mode' is the only valid key for type import attributes."),Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require:P(1464,1,"Type_import_attributes_should_have_exactly_one_key_resolution_mode_with_value_import_or_require_1464","Type import attributes should have exactly one key - 'resolution-mode' - with value 'import' or 'require'."),The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output:P(1470,1,"The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output_1470","The 'import.meta' meta-property is not allowed in files which will build into CommonJS output."),Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead:P(1471,1,"Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_c_1471","Module '{0}' cannot be imported using this construct. The specifier only resolves to an ES module, which cannot be imported with 'require'. Use an ECMAScript import instead."),catch_or_finally_expected:P(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:P(1473,1,"An_import_declaration_can_only_be_used_at_the_top_level_of_a_module_1473","An import declaration can only be used at the top level of a module."),An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:P(1474,1,"An_export_declaration_can_only_be_used_at_the_top_level_of_a_module_1474","An export declaration can only be used at the top level of a module."),Control_what_method_is_used_to_detect_module_format_JS_files:P(1475,3,"Control_what_method_is_used_to_detect_module_format_JS_files_1475","Control what method is used to detect module-format JS files."),auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules:P(1476,3,"auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_w_1476",'"auto": Treat files with imports, exports, import.meta, jsx (with jsx: react-jsx), or esm format (with module: node16+) as modules.'),An_instantiation_expression_cannot_be_followed_by_a_property_access:P(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:P(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead:P(1479,1,"The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_reference_1479",`The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("{0}")' call instead.`),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module:P(1480,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_packag_1480",'To convert this file to an ECMAScript module, change its file extension to \'{0}\' or create a local package.json file with `{ "type": "module" }`.'),To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1:P(1481,3,"To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Co_1481",`To convert this file to an ECMAScript module, change its file extension to '{0}', or add the field \`"type": "module"\` to '{1}'.`),To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0:P(1482,3,"To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0_1482",'To convert this file to an ECMAScript module, add the field `"type": "module"` to \'{0}\'.'),To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module:P(1483,3,"To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module_1483",'To convert this file to an ECMAScript module, create a local package.json file with `{ "type": "module" }`.'),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:P(1484,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled_1484","'{0}' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:P(1485,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimMo_1485","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled."),Decorator_used_before_export_here:P(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:P(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:P(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:P(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:P(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:P(1491,1,"_0_modifier_cannot_appear_on_a_using_declaration_1491","'{0}' modifier cannot appear on a 'using' declaration."),_0_declarations_may_not_have_binding_patterns:P(1492,1,"_0_declarations_may_not_have_binding_patterns_1492","'{0}' declarations may not have binding patterns."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:P(1493,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration_1493","The left-hand side of a 'for...in' statement cannot be a 'using' declaration."),The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration:P(1494,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration_1494","The left-hand side of a 'for...in' statement cannot be an 'await using' declaration."),_0_modifier_cannot_appear_on_an_await_using_declaration:P(1495,1,"_0_modifier_cannot_appear_on_an_await_using_declaration_1495","'{0}' modifier cannot appear on an 'await using' declaration."),Identifier_string_literal_or_number_literal_expected:P(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:P(2200,1,"The_types_of_0_are_incompatible_between_these_types_2200","The types of '{0}' are incompatible between these types."),The_types_returned_by_0_are_incompatible_between_these_types:P(2201,1,"The_types_returned_by_0_are_incompatible_between_these_types_2201","The types returned by '{0}' are incompatible between these types."),Call_signature_return_types_0_and_1_are_incompatible:P(2202,1,"Call_signature_return_types_0_and_1_are_incompatible_2202","Call signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Construct_signature_return_types_0_and_1_are_incompatible:P(2203,1,"Construct_signature_return_types_0_and_1_are_incompatible_2203","Construct signature return types '{0}' and '{1}' are incompatible.",void 0,!0),Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:P(2204,1,"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204","Call signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1:P(2205,1,"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205","Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.",void 0,!0),The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:P(2206,1,"The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement_2206","The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement."),The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement:P(2207,1,"The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement_2207","The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement."),This_type_parameter_might_need_an_extends_0_constraint:P(2208,1,"This_type_parameter_might_need_an_extends_0_constraint_2208","This type parameter might need an `extends {0}` constraint."),The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:P(2209,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_roo_2209","The project root is ambiguous, but is required to resolve export map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:P(2210,1,"The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_roo_2210","The project root is ambiguous, but is required to resolve import map entry '{0}' in file '{1}'. Supply the `rootDir` compiler option to disambiguate."),Add_extends_constraint:P(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:P(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:P(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:P(2301,1,"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301","Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),Static_members_cannot_reference_class_type_parameters:P(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:P(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:P(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:P(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:P(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:P(2307,1,"Cannot_find_module_0_or_its_corresponding_type_declarations_2307","Cannot find module '{0}' or its corresponding type declarations."),Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity:P(2308,1,"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308","Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity."),An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements:P(2309,1,"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309","An export assignment cannot be used in a module with other exported elements."),Type_0_recursively_references_itself_as_a_base_type:P(2310,1,"Type_0_recursively_references_itself_as_a_base_type_2310","Type '{0}' recursively references itself as a base type."),Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function:P(2311,1,"Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function_2311","Cannot find name '{0}'. Did you mean to write this in an async function?"),An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members:P(2312,1,"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312","An interface can only extend an object type or intersection of object types with statically known members."),Type_parameter_0_has_a_circular_constraint:P(2313,1,"Type_parameter_0_has_a_circular_constraint_2313","Type parameter '{0}' has a circular constraint."),Generic_type_0_requires_1_type_argument_s:P(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:P(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:P(2316,1,"Global_type_0_must_be_a_class_or_interface_type_2316","Global type '{0}' must be a class or interface type."),Global_type_0_must_have_1_type_parameter_s:P(2317,1,"Global_type_0_must_have_1_type_parameter_s_2317","Global type '{0}' must have {1} type parameter(s)."),Cannot_find_global_type_0:P(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:P(2319,1,"Named_property_0_of_types_1_and_2_are_not_identical_2319","Named property '{0}' of types '{1}' and '{2}' are not identical."),Interface_0_cannot_simultaneously_extend_types_1_and_2:P(2320,1,"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320","Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'."),Excessive_stack_depth_comparing_types_0_and_1:P(2321,1,"Excessive_stack_depth_comparing_types_0_and_1_2321","Excessive stack depth comparing types '{0}' and '{1}'."),Type_0_is_not_assignable_to_type_1:P(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:P(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:P(2324,1,"Property_0_is_missing_in_type_1_2324","Property '{0}' is missing in type '{1}'."),Property_0_is_private_in_type_1_but_not_in_type_2:P(2325,1,"Property_0_is_private_in_type_1_but_not_in_type_2_2325","Property '{0}' is private in type '{1}' but not in type '{2}'."),Types_of_property_0_are_incompatible:P(2326,1,"Types_of_property_0_are_incompatible_2326","Types of property '{0}' are incompatible."),Property_0_is_optional_in_type_1_but_required_in_type_2:P(2327,1,"Property_0_is_optional_in_type_1_but_required_in_type_2_2327","Property '{0}' is optional in type '{1}' but required in type '{2}'."),Types_of_parameters_0_and_1_are_incompatible:P(2328,1,"Types_of_parameters_0_and_1_are_incompatible_2328","Types of parameters '{0}' and '{1}' are incompatible."),Index_signature_for_type_0_is_missing_in_type_1:P(2329,1,"Index_signature_for_type_0_is_missing_in_type_1_2329","Index signature for type '{0}' is missing in type '{1}'."),_0_and_1_index_signatures_are_incompatible:P(2330,1,"_0_and_1_index_signatures_are_incompatible_2330","'{0}' and '{1}' index signatures are incompatible."),this_cannot_be_referenced_in_a_module_or_namespace_body:P(2331,1,"this_cannot_be_referenced_in_a_module_or_namespace_body_2331","'this' cannot be referenced in a module or namespace body."),this_cannot_be_referenced_in_current_location:P(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:P(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:P(2334,1,"this_cannot_be_referenced_in_a_static_property_initializer_2334","'this' cannot be referenced in a static property initializer."),super_can_only_be_referenced_in_a_derived_class:P(2335,1,"super_can_only_be_referenced_in_a_derived_class_2335","'super' can only be referenced in a derived class."),super_cannot_be_referenced_in_constructor_arguments:P(2336,1,"super_cannot_be_referenced_in_constructor_arguments_2336","'super' cannot be referenced in constructor arguments."),Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors:P(2337,1,"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337","Super calls are not permitted outside constructors or in nested functions inside constructors."),super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class:P(2338,1,"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338","'super' property access is permitted only in a constructor, member function, or member accessor of a derived class."),Property_0_does_not_exist_on_type_1:P(2339,1,"Property_0_does_not_exist_on_type_1_2339","Property '{0}' does not exist on type '{1}'."),Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword:P(2340,1,"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340","Only public and protected methods of the base class are accessible via the 'super' keyword."),Property_0_is_private_and_only_accessible_within_class_1:P(2341,1,"Property_0_is_private_and_only_accessible_within_class_1_2341","Property '{0}' is private and only accessible within class '{1}'."),This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0:P(2343,1,"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343","This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'."),Type_0_does_not_satisfy_the_constraint_1:P(2344,1,"Type_0_does_not_satisfy_the_constraint_1_2344","Type '{0}' does not satisfy the constraint '{1}'."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1:P(2345,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345","Argument of type '{0}' is not assignable to parameter of type '{1}'."),Untyped_function_calls_may_not_accept_type_arguments:P(2347,1,"Untyped_function_calls_may_not_accept_type_arguments_2347","Untyped function calls may not accept type arguments."),Value_of_type_0_is_not_callable_Did_you_mean_to_include_new:P(2348,1,"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348","Value of type '{0}' is not callable. Did you mean to include 'new'?"),This_expression_is_not_callable:P(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:P(2350,1,"Only_a_void_function_can_be_called_with_the_new_keyword_2350","Only a void function can be called with the 'new' keyword."),This_expression_is_not_constructable:P(2351,1,"This_expression_is_not_constructable_2351","This expression is not constructable."),Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first:P(2352,1,"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352","Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first."),Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1:P(2353,1,"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353","Object literal may only specify known properties, and '{0}' does not exist in type '{1}'."),This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found:P(2354,1,"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354","This syntax requires an imported helper but module '{0}' cannot be found."),A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value:P(2355,1,"A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value_2355","A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value."),An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type:P(2356,1,"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356","An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type."),The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access:P(2357,1,"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357","The operand of an increment or decrement operator must be a variable or a property access."),The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter:P(2358,1,"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358","The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."),The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method:P(2359,1,"The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_2359","The right-hand side of an 'instanceof' expression must be either of type 'any', a class, function, or other type assignable to the 'Function' interface type, or an object type with a 'Symbol.hasInstance' method."),The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:P(2362,1,"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362","The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type:P(2363,1,"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363","The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type."),The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access:P(2364,1,"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364","The left-hand side of an assignment expression must be a variable or a property access."),Operator_0_cannot_be_applied_to_types_1_and_2:P(2365,1,"Operator_0_cannot_be_applied_to_types_1_and_2_2365","Operator '{0}' cannot be applied to types '{1}' and '{2}'."),Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined:P(2366,1,"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366","Function lacks ending return statement and return type does not include 'undefined'."),This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap:P(2367,1,"This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap_2367","This comparison appears to be unintentional because the types '{0}' and '{1}' have no overlap."),Type_parameter_name_cannot_be_0:P(2368,1,"Type_parameter_name_cannot_be_0_2368","Type parameter name cannot be '{0}'."),A_parameter_property_is_only_allowed_in_a_constructor_implementation:P(2369,1,"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369","A parameter property is only allowed in a constructor implementation."),A_rest_parameter_must_be_of_an_array_type:P(2370,1,"A_rest_parameter_must_be_of_an_array_type_2370","A rest parameter must be of an array type."),A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation:P(2371,1,"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371","A parameter initializer is only allowed in a function or constructor implementation."),Parameter_0_cannot_reference_itself:P(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:P(2373,1,"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373","Parameter '{0}' cannot reference identifier '{1}' declared after it."),Duplicate_index_signature_for_type_0:P(2374,1,"Duplicate_index_signature_for_type_0_2374","Duplicate index signature for type '{0}'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:P(2375,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2375","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers:P(2376,1,"A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_2376","A 'super' call must be the first statement in the constructor to refer to 'super' or 'this' when a derived class contains initialized properties, parameter properties, or private identifiers."),Constructors_for_derived_classes_must_contain_a_super_call:P(2377,1,"Constructors_for_derived_classes_must_contain_a_super_call_2377","Constructors for derived classes must contain a 'super' call."),A_get_accessor_must_return_a_value:P(2378,1,"A_get_accessor_must_return_a_value_2378","A 'get' accessor must return a value."),Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties:P(2379,1,"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_tr_2379","Argument of type '{0}' is not assignable to parameter of type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the types of the target's properties."),Overload_signatures_must_all_be_exported_or_non_exported:P(2383,1,"Overload_signatures_must_all_be_exported_or_non_exported_2383","Overload signatures must all be exported or non-exported."),Overload_signatures_must_all_be_ambient_or_non_ambient:P(2384,1,"Overload_signatures_must_all_be_ambient_or_non_ambient_2384","Overload signatures must all be ambient or non-ambient."),Overload_signatures_must_all_be_public_private_or_protected:P(2385,1,"Overload_signatures_must_all_be_public_private_or_protected_2385","Overload signatures must all be public, private or protected."),Overload_signatures_must_all_be_optional_or_required:P(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:P(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:P(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:P(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:P(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:P(2391,1,"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391","Function implementation is missing or not immediately following the declaration."),Multiple_constructor_implementations_are_not_allowed:P(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:P(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:P(2394,1,"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394","This overload signature is not compatible with its implementation signature."),Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local:P(2395,1,"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395","Individual declarations in merged declaration '{0}' must be all exported or all local."),Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters:P(2396,1,"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396","Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters."),Declaration_name_conflicts_with_built_in_global_identifier_0:P(2397,1,"Declaration_name_conflicts_with_built_in_global_identifier_0_2397","Declaration name conflicts with built-in global identifier '{0}'."),constructor_cannot_be_used_as_a_parameter_property_name:P(2398,1,"constructor_cannot_be_used_as_a_parameter_property_name_2398","'constructor' cannot be used as a parameter property name."),Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference:P(2399,1,"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399","Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference."),Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference:P(2400,1,"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400","Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference."),A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers:P(2401,1,"A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_in_2401","A 'super' call must be a root-level statement within a constructor of a derived class that contains initialized properties, parameter properties, or private identifiers."),Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference:P(2402,1,"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402","Expression resolves to '_super' that compiler uses to capture base class reference."),Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2:P(2403,1,"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403","Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'."),The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:P(2404,1,"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404","The left-hand side of a 'for...in' statement cannot use a type annotation."),The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any:P(2405,1,"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405","The left-hand side of a 'for...in' statement must be of type 'string' or 'any'."),The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access:P(2406,1,"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406","The left-hand side of a 'for...in' statement must be a variable or a property access."),The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0:P(2407,1,"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407","The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'."),Setters_cannot_return_a_value:P(2408,1,"Setters_cannot_return_a_value_2408","Setters cannot return a value."),Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class:P(2409,1,"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409","Return type of constructor signature must be assignable to the instance type of the class."),The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any:P(2410,1,"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410","The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'."),Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target:P(2412,1,"Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefi_2412","Type '{0}' is not assignable to type '{1}' with 'exactOptionalPropertyTypes: true'. Consider adding 'undefined' to the type of the target."),Property_0_of_type_1_is_not_assignable_to_2_index_type_3:P(2411,1,"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411","Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'."),_0_index_type_1_is_not_assignable_to_2_index_type_3:P(2413,1,"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413","'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'."),Class_name_cannot_be_0:P(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:P(2415,1,"Class_0_incorrectly_extends_base_class_1_2415","Class '{0}' incorrectly extends base class '{1}'."),Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2:P(2416,1,"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416","Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'."),Class_static_side_0_incorrectly_extends_base_class_static_side_1:P(2417,1,"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417","Class static side '{0}' incorrectly extends base class static side '{1}'."),Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1:P(2418,1,"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418","Type of computed property's value is '{0}', which is not assignable to type '{1}'."),Types_of_construct_signatures_are_incompatible:P(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:P(2420,1,"Class_0_incorrectly_implements_interface_1_2420","Class '{0}' incorrectly implements interface '{1}'."),A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members:P(2422,1,"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422","A class can only implement an object type or intersection of object types with statically known members."),Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor:P(2423,1,"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423","Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor."),Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function:P(2425,1,"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425","Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function."),Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:P(2426,1,"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426","Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function."),Interface_name_cannot_be_0:P(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:P(2428,1,"All_declarations_of_0_must_have_identical_type_parameters_2428","All declarations of '{0}' must have identical type parameters."),Interface_0_incorrectly_extends_interface_1:P(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:P(2431,1,"Enum_name_cannot_be_0_2431","Enum name cannot be '{0}'."),In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element:P(2432,1,"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432","In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element."),A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged:P(2433,1,"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433","A namespace declaration cannot be in a different file from a class or function with which it is merged."),A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged:P(2434,1,"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434","A namespace declaration cannot be located prior to a class or function with which it is merged."),Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces:P(2435,1,"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435","Ambient modules cannot be nested in other modules or namespaces."),Ambient_module_declaration_cannot_specify_relative_module_name:P(2436,1,"Ambient_module_declaration_cannot_specify_relative_module_name_2436","Ambient module declaration cannot specify relative module name."),Module_0_is_hidden_by_a_local_declaration_with_the_same_name:P(2437,1,"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437","Module '{0}' is hidden by a local declaration with the same name."),Import_name_cannot_be_0:P(2438,1,"Import_name_cannot_be_0_2438","Import name cannot be '{0}'."),Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name:P(2439,1,"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439","Import or export declaration in an ambient module declaration cannot reference module through relative module name."),Import_declaration_conflicts_with_local_declaration_of_0:P(2440,1,"Import_declaration_conflicts_with_local_declaration_of_0_2440","Import declaration conflicts with local declaration of '{0}'."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module:P(2441,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module."),Types_have_separate_declarations_of_a_private_property_0:P(2442,1,"Types_have_separate_declarations_of_a_private_property_0_2442","Types have separate declarations of a private property '{0}'."),Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2:P(2443,1,"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443","Property '{0}' is protected but type '{1}' is not a class derived from '{2}'."),Property_0_is_protected_in_type_1_but_public_in_type_2:P(2444,1,"Property_0_is_protected_in_type_1_but_public_in_type_2_2444","Property '{0}' is protected in type '{1}' but public in type '{2}'."),Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses:P(2445,1,"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445","Property '{0}' is protected and only accessible within class '{1}' and its subclasses."),Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2:P(2446,1,"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446","Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'."),The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead:P(2447,1,"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447","The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead."),Block_scoped_variable_0_used_before_its_declaration:P(2448,1,"Block_scoped_variable_0_used_before_its_declaration_2448","Block-scoped variable '{0}' used before its declaration."),Class_0_used_before_its_declaration:P(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:P(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:P(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:P(2452,1,"An_enum_member_cannot_have_a_numeric_name_2452","An enum member cannot have a numeric name."),Variable_0_is_used_before_being_assigned:P(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:P(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:P(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:P(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),Module_0_declares_1_locally_but_it_is_not_exported:P(2459,1,"Module_0_declares_1_locally_but_it_is_not_exported_2459","Module '{0}' declares '{1}' locally, but it is not exported."),Module_0_declares_1_locally_but_it_is_exported_as_2:P(2460,1,"Module_0_declares_1_locally_but_it_is_exported_as_2_2460","Module '{0}' declares '{1}' locally, but it is exported as '{2}'."),Type_0_is_not_an_array_type:P(2461,1,"Type_0_is_not_an_array_type_2461","Type '{0}' is not an array type."),A_rest_element_must_be_last_in_a_destructuring_pattern:P(2462,1,"A_rest_element_must_be_last_in_a_destructuring_pattern_2462","A rest element must be last in a destructuring pattern."),A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature:P(2463,1,"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463","A binding pattern parameter cannot be optional in an implementation signature."),A_computed_property_name_must_be_of_type_string_number_symbol_or_any:P(2464,1,"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464","A computed property name must be of type 'string', 'number', 'symbol', or 'any'."),this_cannot_be_referenced_in_a_computed_property_name:P(2465,1,"this_cannot_be_referenced_in_a_computed_property_name_2465","'this' cannot be referenced in a computed property name."),super_cannot_be_referenced_in_a_computed_property_name:P(2466,1,"super_cannot_be_referenced_in_a_computed_property_name_2466","'super' cannot be referenced in a computed property name."),A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type:P(2467,1,"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467","A computed property name cannot reference a type parameter from its containing type."),Cannot_find_global_value_0:P(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:P(2469,1,"The_0_operator_cannot_be_applied_to_type_symbol_2469","The '{0}' operator cannot be applied to type 'symbol'."),Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher:P(2472,1,"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472","Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher."),Enum_declarations_must_all_be_const_or_non_const:P(2473,1,"Enum_declarations_must_all_be_const_or_non_const_2473","Enum declarations must all be const or non-const."),const_enum_member_initializers_must_be_constant_expressions:P(2474,1,"const_enum_member_initializers_must_be_constant_expressions_2474","const enum member initializers must be constant expressions."),const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query:P(2475,1,"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475","'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query."),A_const_enum_member_can_only_be_accessed_using_a_string_literal:P(2476,1,"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476","A const enum member can only be accessed using a string literal."),const_enum_member_initializer_was_evaluated_to_a_non_finite_value:P(2477,1,"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477","'const' enum member initializer was evaluated to a non-finite value."),const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:P(2478,1,"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478","'const' enum member initializer was evaluated to disallowed value 'NaN'."),let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations:P(2480,1,"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480","'let' is not allowed to be used as a name in 'let' or 'const' declarations."),Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1:P(2481,1,"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481","Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."),The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation:P(2483,1,"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483","The left-hand side of a 'for...of' statement cannot use a type annotation."),Export_declaration_conflicts_with_exported_declaration_of_0:P(2484,1,"Export_declaration_conflicts_with_exported_declaration_of_0_2484","Export declaration conflicts with exported declaration of '{0}'."),The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access:P(2487,1,"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487","The left-hand side of a 'for...of' statement must be a variable or a property access."),Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator:P(2488,1,"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488","Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator."),An_iterator_must_have_a_next_method:P(2489,1,"An_iterator_must_have_a_next_method_2489","An iterator must have a 'next()' method."),The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property:P(2490,1,"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490","The type returned by the '{0}()' method of an iterator must have a 'value' property."),The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern:P(2491,1,"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491","The left-hand side of a 'for...in' statement cannot be a destructuring pattern."),Cannot_redeclare_identifier_0_in_catch_clause:P(2492,1,"Cannot_redeclare_identifier_0_in_catch_clause_2492","Cannot redeclare identifier '{0}' in catch clause."),Tuple_type_0_of_length_1_has_no_element_at_index_2:P(2493,1,"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493","Tuple type '{0}' of length '{1}' has no element at index '{2}'."),Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher:P(2494,1,"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494","Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."),Type_0_is_not_an_array_type_or_a_string_type:P(2495,1,"Type_0_is_not_an_array_type_or_a_string_type_2495","Type '{0}' is not an array type or a string type."),The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression:P(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression."),This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export:P(2497,1,"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497","This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export."),Module_0_uses_export_and_cannot_be_used_with_export_Asterisk:P(2498,1,"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498","Module '{0}' uses 'export =' and cannot be used with 'export *'."),An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments:P(2499,1,"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499","An interface can only extend an identifier/qualified-name with optional type arguments."),A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments:P(2500,1,"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500","A class can only implement an identifier/qualified-name with optional type arguments."),A_rest_element_cannot_contain_a_binding_pattern:P(2501,1,"A_rest_element_cannot_contain_a_binding_pattern_2501","A rest element cannot contain a binding pattern."),_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation:P(2502,1,"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502","'{0}' is referenced directly or indirectly in its own type annotation."),Cannot_find_namespace_0:P(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:P(2504,1,"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504","Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator."),A_generator_cannot_have_a_void_type_annotation:P(2505,1,"A_generator_cannot_have_a_void_type_annotation_2505","A generator cannot have a 'void' type annotation."),_0_is_referenced_directly_or_indirectly_in_its_own_base_expression:P(2506,1,"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506","'{0}' is referenced directly or indirectly in its own base expression."),Type_0_is_not_a_constructor_function_type:P(2507,1,"Type_0_is_not_a_constructor_function_type_2507","Type '{0}' is not a constructor function type."),No_base_constructor_has_the_specified_number_of_type_arguments:P(2508,1,"No_base_constructor_has_the_specified_number_of_type_arguments_2508","No base constructor has the specified number of type arguments."),Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members:P(2509,1,"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509","Base constructor return type '{0}' is not an object type or intersection of object types with statically known members."),Base_constructors_must_all_have_the_same_return_type:P(2510,1,"Base_constructors_must_all_have_the_same_return_type_2510","Base constructors must all have the same return type."),Cannot_create_an_instance_of_an_abstract_class:P(2511,1,"Cannot_create_an_instance_of_an_abstract_class_2511","Cannot create an instance of an abstract class."),Overload_signatures_must_all_be_abstract_or_non_abstract:P(2512,1,"Overload_signatures_must_all_be_abstract_or_non_abstract_2512","Overload signatures must all be abstract or non-abstract."),Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression:P(2513,1,"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513","Abstract method '{0}' in class '{1}' cannot be accessed via super expression."),A_tuple_type_cannot_be_indexed_with_a_negative_value:P(2514,1,"A_tuple_type_cannot_be_indexed_with_a_negative_value_2514","A tuple type cannot be indexed with a negative value."),Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2:P(2515,1,"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515","Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'."),All_declarations_of_an_abstract_method_must_be_consecutive:P(2516,1,"All_declarations_of_an_abstract_method_must_be_consecutive_2516","All declarations of an abstract method must be consecutive."),Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type:P(2517,1,"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517","Cannot assign an abstract constructor type to a non-abstract constructor type."),A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard:P(2518,1,"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518","A 'this'-based type guard is not compatible with a parameter-based type guard."),An_async_iterator_must_have_a_next_method:P(2519,1,"An_async_iterator_must_have_a_next_method_2519","An async iterator must have a 'next()' method."),Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions:P(2520,1,"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520","Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions."),The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method:P(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:P(2523,1,"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523","'yield' expressions cannot be used in a parameter initializer."),await_expressions_cannot_be_used_in_a_parameter_initializer:P(2524,1,"await_expressions_cannot_be_used_in_a_parameter_initializer_2524","'await' expressions cannot be used in a parameter initializer."),Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value:P(2525,1,"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525","Initializer provides no value for this binding element and the binding element has no default value."),A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface:P(2526,1,"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526","A 'this' type is available only in a non-static member of a class or interface."),The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary:P(2527,1,"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527","The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary."),A_module_cannot_have_multiple_default_exports:P(2528,1,"A_module_cannot_have_multiple_default_exports_2528","A module cannot have multiple default exports."),Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions:P(2529,1,"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529","Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions."),Property_0_is_incompatible_with_index_signature:P(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:P(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:P(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:P(2533,1,"Object_is_possibly_null_or_undefined_2533","Object is possibly 'null' or 'undefined'."),A_function_returning_never_cannot_have_a_reachable_end_point:P(2534,1,"A_function_returning_never_cannot_have_a_reachable_end_point_2534","A function returning 'never' cannot have a reachable end point."),Type_0_cannot_be_used_to_index_type_1:P(2536,1,"Type_0_cannot_be_used_to_index_type_1_2536","Type '{0}' cannot be used to index type '{1}'."),Type_0_has_no_matching_index_signature_for_type_1:P(2537,1,"Type_0_has_no_matching_index_signature_for_type_1_2537","Type '{0}' has no matching index signature for type '{1}'."),Type_0_cannot_be_used_as_an_index_type:P(2538,1,"Type_0_cannot_be_used_as_an_index_type_2538","Type '{0}' cannot be used as an index type."),Cannot_assign_to_0_because_it_is_not_a_variable:P(2539,1,"Cannot_assign_to_0_because_it_is_not_a_variable_2539","Cannot assign to '{0}' because it is not a variable."),Cannot_assign_to_0_because_it_is_a_read_only_property:P(2540,1,"Cannot_assign_to_0_because_it_is_a_read_only_property_2540","Cannot assign to '{0}' because it is a read-only property."),Index_signature_in_type_0_only_permits_reading:P(2542,1,"Index_signature_in_type_0_only_permits_reading_2542","Index signature in type '{0}' only permits reading."),Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference:P(2543,1,"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543","Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference."),Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference:P(2544,1,"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544","Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference."),A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any:P(2545,1,"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545","A mixin class must have a constructor with a single rest parameter of type 'any[]'."),The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property:P(2547,1,"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547","The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property."),Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:P(2548,1,"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548","Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator:P(2549,1,"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549","Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator."),Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later:P(2550,1,"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550","Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later."),Property_0_does_not_exist_on_type_1_Did_you_mean_2:P(2551,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551","Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?"),Cannot_find_name_0_Did_you_mean_1:P(2552,1,"Cannot_find_name_0_Did_you_mean_1_2552","Cannot find name '{0}'. Did you mean '{1}'?"),Computed_values_are_not_permitted_in_an_enum_with_string_valued_members:P(2553,1,"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553","Computed values are not permitted in an enum with string valued members."),Expected_0_arguments_but_got_1:P(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:P(2555,1,"Expected_at_least_0_arguments_but_got_1_2555","Expected at least {0} arguments, but got {1}."),A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter:P(2556,1,"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556","A spread argument must either have a tuple type or be passed to a rest parameter."),Expected_0_type_arguments_but_got_1:P(2558,1,"Expected_0_type_arguments_but_got_1_2558","Expected {0} type arguments, but got {1}."),Type_0_has_no_properties_in_common_with_type_1:P(2559,1,"Type_0_has_no_properties_in_common_with_type_1_2559","Type '{0}' has no properties in common with type '{1}'."),Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it:P(2560,1,"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560","Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?"),Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2:P(2561,1,"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561","Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?"),Base_class_expressions_cannot_reference_class_type_parameters:P(2562,1,"Base_class_expressions_cannot_reference_class_type_parameters_2562","Base class expressions cannot reference class type parameters."),The_containing_function_or_module_body_is_too_large_for_control_flow_analysis:P(2563,1,"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563","The containing function or module body is too large for control flow analysis."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor:P(2564,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564","Property '{0}' has no initializer and is not definitely assigned in the constructor."),Property_0_is_used_before_being_assigned:P(2565,1,"Property_0_is_used_before_being_assigned_2565","Property '{0}' is used before being assigned."),A_rest_element_cannot_have_a_property_name:P(2566,1,"A_rest_element_cannot_have_a_property_name_2566","A rest element cannot have a property name."),Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:P(2567,1,"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567","Enum declarations can only merge with namespace or other enum declarations."),Property_0_may_not_exist_on_type_1_Did_you_mean_2:P(2568,1,"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568","Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?"),Could_not_find_name_0_Did_you_mean_1:P(2570,1,"Could_not_find_name_0_Did_you_mean_1_2570","Could not find name '{0}'. Did you mean '{1}'?"),Object_is_of_type_unknown:P(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:P(2574,1,"A_rest_element_type_must_be_an_array_type_2574","A rest element type must be an array type."),No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments:P(2575,1,"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575","No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments."),Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead:P(2576,1,"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576","Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?"),Return_type_annotation_circularly_references_itself:P(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:P(2578,1,"Unused_ts_expect_error_directive_2578","Unused '@ts-expect-error' directive."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode:P(2580,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery:P(2581,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha:P(2582,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later:P(2583,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later."),Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom:P(2584,1,"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584","Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later:P(2585,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585","'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later."),Cannot_assign_to_0_because_it_is_a_constant:P(2588,1,"Cannot_assign_to_0_because_it_is_a_constant_2588","Cannot assign to '{0}' because it is a constant."),Type_instantiation_is_excessively_deep_and_possibly_infinite:P(2589,1,"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589","Type instantiation is excessively deep and possibly infinite."),Expression_produces_a_union_type_that_is_too_complex_to_represent:P(2590,1,"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590","Expression produces a union type that is too complex to represent."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig:P(2591,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591","Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig:P(2592,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592","Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig."),Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig:P(2593,1,"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593","Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig."),This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag:P(2594,1,"This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag_2594","This module is declared with 'export =', and can only be used with a default import when using the '{0}' flag."),_0_can_only_be_imported_by_using_a_default_import:P(2595,1,"_0_can_only_be_imported_by_using_a_default_import_2595","'{0}' can only be imported by using a default import."),_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:P(2596,1,"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596","'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:P(2597,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597","'{0}' can only be imported by using a 'require' call or by using a default import."),_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:P(2598,1,"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598","'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import."),JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist:P(2602,1,"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602","JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist."),Property_0_in_type_1_is_not_assignable_to_type_2:P(2603,1,"Property_0_in_type_1_is_not_assignable_to_type_2_2603","Property '{0}' in type '{1}' is not assignable to type '{2}'."),JSX_element_type_0_does_not_have_any_construct_or_call_signatures:P(2604,1,"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604","JSX element type '{0}' does not have any construct or call signatures."),Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property:P(2606,1,"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606","Property '{0}' of JSX spread attribute is not assignable to target property."),JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property:P(2607,1,"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607","JSX element class does not support attributes because it does not have a '{0}' property."),The_global_type_JSX_0_may_not_have_more_than_one_property:P(2608,1,"The_global_type_JSX_0_may_not_have_more_than_one_property_2608","The global type 'JSX.{0}' may not have more than one property."),JSX_spread_child_must_be_an_array_type:P(2609,1,"JSX_spread_child_must_be_an_array_type_2609","JSX spread child must be an array type."),_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:P(2610,1,"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610","'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property."),_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor:P(2611,1,"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611","'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor."),Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration:P(2612,1,"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612","Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration."),Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead:P(2613,1,"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613","Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?"),Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead:P(2614,1,"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614","Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?"),Type_of_property_0_circularly_references_itself_in_mapped_type_1:P(2615,1,"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615","Type of property '{0}' circularly references itself in mapped type '{1}'."),_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:P(2616,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616","'{0}' can only be imported by using 'import {1} = require({2})' or a default import."),_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import:P(2617,1,"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617","'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import."),Source_has_0_element_s_but_target_requires_1:P(2618,1,"Source_has_0_element_s_but_target_requires_1_2618","Source has {0} element(s) but target requires {1}."),Source_has_0_element_s_but_target_allows_only_1:P(2619,1,"Source_has_0_element_s_but_target_allows_only_1_2619","Source has {0} element(s) but target allows only {1}."),Target_requires_0_element_s_but_source_may_have_fewer:P(2620,1,"Target_requires_0_element_s_but_source_may_have_fewer_2620","Target requires {0} element(s) but source may have fewer."),Target_allows_only_0_element_s_but_source_may_have_more:P(2621,1,"Target_allows_only_0_element_s_but_source_may_have_more_2621","Target allows only {0} element(s) but source may have more."),Source_provides_no_match_for_required_element_at_position_0_in_target:P(2623,1,"Source_provides_no_match_for_required_element_at_position_0_in_target_2623","Source provides no match for required element at position {0} in target."),Source_provides_no_match_for_variadic_element_at_position_0_in_target:P(2624,1,"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624","Source provides no match for variadic element at position {0} in target."),Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target:P(2625,1,"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625","Variadic element at position {0} in source does not match element at position {1} in target."),Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target:P(2626,1,"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626","Type at position {0} in source is not compatible with type at position {1} in target."),Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target:P(2627,1,"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627","Type at positions {0} through {1} in source is not compatible with type at position {2} in target."),Cannot_assign_to_0_because_it_is_an_enum:P(2628,1,"Cannot_assign_to_0_because_it_is_an_enum_2628","Cannot assign to '{0}' because it is an enum."),Cannot_assign_to_0_because_it_is_a_class:P(2629,1,"Cannot_assign_to_0_because_it_is_a_class_2629","Cannot assign to '{0}' because it is a class."),Cannot_assign_to_0_because_it_is_a_function:P(2630,1,"Cannot_assign_to_0_because_it_is_a_function_2630","Cannot assign to '{0}' because it is a function."),Cannot_assign_to_0_because_it_is_a_namespace:P(2631,1,"Cannot_assign_to_0_because_it_is_a_namespace_2631","Cannot assign to '{0}' because it is a namespace."),Cannot_assign_to_0_because_it_is_an_import:P(2632,1,"Cannot_assign_to_0_because_it_is_an_import_2632","Cannot assign to '{0}' because it is an import."),JSX_property_access_expressions_cannot_include_JSX_namespace_names:P(2633,1,"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633","JSX property access expressions cannot include JSX namespace names"),_0_index_signatures_are_incompatible:P(2634,1,"_0_index_signatures_are_incompatible_2634","'{0}' index signatures are incompatible."),Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable:P(2635,1,"Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable_2635","Type '{0}' has no signatures for which the type argument list is applicable."),Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation:P(2636,1,"Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation_2636","Type '{0}' is not assignable to type '{1}' as implied by variance annotation."),Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types:P(2637,1,"Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_t_2637","Variance annotations are only supported in type aliases for object, function, constructor, and mapped types."),Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator:P(2638,1,"Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operato_2638","Type '{0}' may represent a primitive value, which is not permitted as the right operand of the 'in' operator."),React_components_cannot_include_JSX_namespace_names:P(2639,1,"React_components_cannot_include_JSX_namespace_names_2639","React components cannot include JSX namespace names"),Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity:P(2649,1,"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649","Cannot augment module '{0}' with value exports because it resolves to a non-module entity."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:P(2651,1,"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651","A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums."),Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead:P(2652,1,"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652","Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead."),Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1:P(2653,1,"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653","Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'."),JSX_expressions_must_have_one_parent_element:P(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),Type_0_provides_no_match_for_the_signature_1:P(2658,1,"Type_0_provides_no_match_for_the_signature_1_2658","Type '{0}' provides no match for the signature '{1}'."),super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher:P(2659,1,"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659","'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher."),super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions:P(2660,1,"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660","'super' can only be referenced in members of derived classes or object literal expressions."),Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module:P(2661,1,"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661","Cannot export '{0}'. Only local declarations can be exported from a module."),Cannot_find_name_0_Did_you_mean_the_static_member_1_0:P(2662,1,"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662","Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?"),Cannot_find_name_0_Did_you_mean_the_instance_member_this_0:P(2663,1,"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663","Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?"),Invalid_module_name_in_augmentation_module_0_cannot_be_found:P(2664,1,"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664","Invalid module name in augmentation, module '{0}' cannot be found."),Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented:P(2665,1,"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665","Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented."),Exports_and_export_assignments_are_not_permitted_in_module_augmentations:P(2666,1,"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666","Exports and export assignments are not permitted in module augmentations."),Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module:P(2667,1,"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667","Imports are not permitted in module augmentations. Consider moving them to the enclosing external module."),export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible:P(2668,1,"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668","'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible."),Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations:P(2669,1,"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669","Augmentations for the global scope can only be directly nested in external modules or ambient module declarations."),Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context:P(2670,1,"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670","Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context."),Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity:P(2671,1,"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671","Cannot augment module '{0}' because it resolves to a non-module entity."),Cannot_assign_a_0_constructor_type_to_a_1_constructor_type:P(2672,1,"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672","Cannot assign a '{0}' constructor type to a '{1}' constructor type."),Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration:P(2673,1,"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673","Constructor of class '{0}' is private and only accessible within the class declaration."),Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration:P(2674,1,"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674","Constructor of class '{0}' is protected and only accessible within the class declaration."),Cannot_extend_a_class_0_Class_constructor_is_marked_as_private:P(2675,1,"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675","Cannot extend a class '{0}'. Class constructor is marked as private."),Accessors_must_both_be_abstract_or_non_abstract:P(2676,1,"Accessors_must_both_be_abstract_or_non_abstract_2676","Accessors must both be abstract or non-abstract."),A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type:P(2677,1,"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677","A type predicate's type must be assignable to its parameter's type."),Type_0_is_not_comparable_to_type_1:P(2678,1,"Type_0_is_not_comparable_to_type_1_2678","Type '{0}' is not comparable to type '{1}'."),A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void:P(2679,1,"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679","A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'."),A_0_parameter_must_be_the_first_parameter:P(2680,1,"A_0_parameter_must_be_the_first_parameter_2680","A '{0}' parameter must be the first parameter."),A_constructor_cannot_have_a_this_parameter:P(2681,1,"A_constructor_cannot_have_a_this_parameter_2681","A constructor cannot have a 'this' parameter."),this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation:P(2683,1,"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683","'this' implicitly has type 'any' because it does not have a type annotation."),The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1:P(2684,1,"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684","The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'."),The_this_types_of_each_signature_are_incompatible:P(2685,1,"The_this_types_of_each_signature_are_incompatible_2685","The 'this' types of each signature are incompatible."),_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead:P(2686,1,"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686","'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead."),All_declarations_of_0_must_have_identical_modifiers:P(2687,1,"All_declarations_of_0_must_have_identical_modifiers_2687","All declarations of '{0}' must have identical modifiers."),Cannot_find_type_definition_file_for_0:P(2688,1,"Cannot_find_type_definition_file_for_0_2688","Cannot find type definition file for '{0}'."),Cannot_extend_an_interface_0_Did_you_mean_implements:P(2689,1,"Cannot_extend_an_interface_0_Did_you_mean_implements_2689","Cannot extend an interface '{0}'. Did you mean 'implements'?"),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0:P(2690,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690","'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?"),_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible:P(2692,1,"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692","'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible."),_0_only_refers_to_a_type_but_is_being_used_as_a_value_here:P(2693,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693","'{0}' only refers to a type, but is being used as a value here."),Namespace_0_has_no_exported_member_1:P(2694,1,"Namespace_0_has_no_exported_member_1_2694","Namespace '{0}' has no exported member '{1}'."),Left_side_of_comma_operator_is_unused_and_has_no_side_effects:P(2695,1,"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695","Left side of comma operator is unused and has no side effects.",!0),The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead:P(2696,1,"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696","The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?"),An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:P(2697,1,"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697","An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),Spread_types_may_only_be_created_from_object_types:P(2698,1,"Spread_types_may_only_be_created_from_object_types_2698","Spread types may only be created from object types."),Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1:P(2699,1,"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699","Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'."),Rest_types_may_only_be_created_from_object_types:P(2700,1,"Rest_types_may_only_be_created_from_object_types_2700","Rest types may only be created from object types."),The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:P(2701,1,"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701","The target of an object rest assignment must be a variable or a property access."),_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here:P(2702,1,"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702","'{0}' only refers to a type, but is being used as a namespace here."),The_operand_of_a_delete_operator_must_be_a_property_reference:P(2703,1,"The_operand_of_a_delete_operator_must_be_a_property_reference_2703","The operand of a 'delete' operator must be a property reference."),The_operand_of_a_delete_operator_cannot_be_a_read_only_property:P(2704,1,"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704","The operand of a 'delete' operator cannot be a read-only property."),An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:P(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Required_type_parameters_may_not_follow_optional_type_parameters:P(2706,1,"Required_type_parameters_may_not_follow_optional_type_parameters_2706","Required type parameters may not follow optional type parameters."),Generic_type_0_requires_between_1_and_2_type_arguments:P(2707,1,"Generic_type_0_requires_between_1_and_2_type_arguments_2707","Generic type '{0}' requires between {1} and {2} type arguments."),Cannot_use_namespace_0_as_a_value:P(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:P(2709,1,"Cannot_use_namespace_0_as_a_type_2709","Cannot use namespace '{0}' as a type."),_0_are_specified_twice_The_attribute_named_0_will_be_overwritten:P(2710,1,"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710","'{0}' are specified twice. The attribute named '{0}' will be overwritten."),A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:P(2711,1,"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711","A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option."),A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:P(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option."),Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1:P(2713,1,"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713",`Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}["{1}"]'?`),The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context:P(2714,1,"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714","The expression of an export assignment must be an identifier or qualified name in an ambient context."),Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor:P(2715,1,"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715","Abstract property '{0}' in class '{1}' cannot be accessed in the constructor."),Type_parameter_0_has_a_circular_default:P(2716,1,"Type_parameter_0_has_a_circular_default_2716","Type parameter '{0}' has a circular default."),Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:P(2717,1,"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717","Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'."),Duplicate_property_0:P(2718,1,"Duplicate_property_0_2718","Duplicate property '{0}'."),Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated:P(2719,1,"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719","Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated."),Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:P(2720,1,"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720","Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?"),Cannot_invoke_an_object_which_is_possibly_null:P(2721,1,"Cannot_invoke_an_object_which_is_possibly_null_2721","Cannot invoke an object which is possibly 'null'."),Cannot_invoke_an_object_which_is_possibly_undefined:P(2722,1,"Cannot_invoke_an_object_which_is_possibly_undefined_2722","Cannot invoke an object which is possibly 'undefined'."),Cannot_invoke_an_object_which_is_possibly_null_or_undefined:P(2723,1,"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723","Cannot invoke an object which is possibly 'null' or 'undefined'."),_0_has_no_exported_member_named_1_Did_you_mean_2:P(2724,1,"_0_has_no_exported_member_named_1_Did_you_mean_2_2724","'{0}' has no exported member named '{1}'. Did you mean '{2}'?"),Class_name_cannot_be_Object_when_targeting_ES5_with_module_0:P(2725,1,"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725","Class name cannot be 'Object' when targeting ES5 with module {0}."),Cannot_find_lib_definition_for_0:P(2726,1,"Cannot_find_lib_definition_for_0_2726","Cannot find lib definition for '{0}'."),Cannot_find_lib_definition_for_0_Did_you_mean_1:P(2727,1,"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727","Cannot find lib definition for '{0}'. Did you mean '{1}'?"),_0_is_declared_here:P(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:P(2729,1,"Property_0_is_used_before_its_initialization_2729","Property '{0}' is used before its initialization."),An_arrow_function_cannot_have_a_this_parameter:P(2730,1,"An_arrow_function_cannot_have_a_this_parameter_2730","An arrow function cannot have a 'this' parameter."),Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String:P(2731,1,"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731","Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'."),Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension:P(2732,1,"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732","Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension."),Property_0_was_also_declared_here:P(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:P(2734,1,"Are_you_missing_a_semicolon_2734","Are you missing a semicolon?"),Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1:P(2735,1,"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735","Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?"),Operator_0_cannot_be_applied_to_type_1:P(2736,1,"Operator_0_cannot_be_applied_to_type_1_2736","Operator '{0}' cannot be applied to type '{1}'."),BigInt_literals_are_not_available_when_targeting_lower_than_ES2020:P(2737,1,"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737","BigInt literals are not available when targeting lower than ES2020."),An_outer_value_of_this_is_shadowed_by_this_container:P(2738,3,"An_outer_value_of_this_is_shadowed_by_this_container_2738","An outer value of 'this' is shadowed by this container."),Type_0_is_missing_the_following_properties_from_type_1_Colon_2:P(2739,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739","Type '{0}' is missing the following properties from type '{1}': {2}"),Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more:P(2740,1,"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740","Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more."),Property_0_is_missing_in_type_1_but_required_in_type_2:P(2741,1,"Property_0_is_missing_in_type_1_but_required_in_type_2_2741","Property '{0}' is missing in type '{1}' but required in type '{2}'."),The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary:P(2742,1,"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742","The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary."),No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments:P(2743,1,"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743","No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments."),Type_parameter_defaults_can_only_reference_previously_declared_type_parameters:P(2744,1,"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744","Type parameter defaults can only reference previously declared type parameters."),This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided:P(2745,1,"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745","This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided."),This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided:P(2746,1,"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746","This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided."),_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2:P(2747,1,"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747","'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'."),Cannot_access_ambient_const_enums_when_0_is_enabled:P(2748,1,"Cannot_access_ambient_const_enums_when_0_is_enabled_2748","Cannot access ambient const enums when '{0}' is enabled."),_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0:P(2749,1,"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749","'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?"),The_implementation_signature_is_declared_here:P(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:P(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:P(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:P(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:P(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:P(2755,1,"No_constituent_of_type_0_is_callable_2755","No constituent of type '{0}' is callable."),Not_all_constituents_of_type_0_are_callable:P(2756,1,"Not_all_constituents_of_type_0_are_callable_2756","Not all constituents of type '{0}' are callable."),Type_0_has_no_call_signatures:P(2757,1,"Type_0_has_no_call_signatures_2757","Type '{0}' has no call signatures."),Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:P(2758,1,"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758","Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other."),No_constituent_of_type_0_is_constructable:P(2759,1,"No_constituent_of_type_0_is_constructable_2759","No constituent of type '{0}' is constructable."),Not_all_constituents_of_type_0_are_constructable:P(2760,1,"Not_all_constituents_of_type_0_are_constructable_2760","Not all constituents of type '{0}' are constructable."),Type_0_has_no_construct_signatures:P(2761,1,"Type_0_has_no_construct_signatures_2761","Type '{0}' has no construct signatures."),Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other:P(2762,1,"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762","Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:P(2763,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:P(2764,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'."),Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:P(2765,1,"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765","Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'."),Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:P(2766,1,"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766","Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'."),The_0_property_of_an_iterator_must_be_a_method:P(2767,1,"The_0_property_of_an_iterator_must_be_a_method_2767","The '{0}' property of an iterator must be a method."),The_0_property_of_an_async_iterator_must_be_a_method:P(2768,1,"The_0_property_of_an_async_iterator_must_be_a_method_2768","The '{0}' property of an async iterator must be a method."),No_overload_matches_this_call:P(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:P(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:P(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:P(2772,1,"Overload_0_of_1_2_gave_the_following_error_2772","Overload {0} of {1}, '{2}', gave the following error."),Did_you_forget_to_use_await:P(2773,1,"Did_you_forget_to_use_await_2773","Did you forget to use 'await'?"),This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead:P(2774,1,"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774","This condition will always return true since this function is always defined. Did you mean to call it instead?"),Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation:P(2775,1,"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775","Assertions require every name in the call target to be declared with an explicit type annotation."),Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name:P(2776,1,"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776","Assertions require the call target to be an identifier or qualified name."),The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access:P(2777,1,"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777","The operand of an increment or decrement operator may not be an optional property access."),The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:P(2778,1,"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778","The target of an object rest assignment may not be an optional property access."),The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access:P(2779,1,"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779","The left-hand side of an assignment expression may not be an optional property access."),The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access:P(2780,1,"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780","The left-hand side of a 'for...in' statement may not be an optional property access."),The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access:P(2781,1,"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781","The left-hand side of a 'for...of' statement may not be an optional property access."),_0_needs_an_explicit_type_annotation:P(2782,3,"_0_needs_an_explicit_type_annotation_2782","'{0}' needs an explicit type annotation."),_0_is_specified_more_than_once_so_this_usage_will_be_overwritten:P(2783,1,"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783","'{0}' is specified more than once, so this usage will be overwritten."),get_and_set_accessors_cannot_declare_this_parameters:P(2784,1,"get_and_set_accessors_cannot_declare_this_parameters_2784","'get' and 'set' accessors cannot declare 'this' parameters."),This_spread_always_overwrites_this_property:P(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:P(2786,1,"_0_cannot_be_used_as_a_JSX_component_2786","'{0}' cannot be used as a JSX component."),Its_return_type_0_is_not_a_valid_JSX_element:P(2787,1,"Its_return_type_0_is_not_a_valid_JSX_element_2787","Its return type '{0}' is not a valid JSX element."),Its_instance_type_0_is_not_a_valid_JSX_element:P(2788,1,"Its_instance_type_0_is_not_a_valid_JSX_element_2788","Its instance type '{0}' is not a valid JSX element."),Its_element_type_0_is_not_a_valid_JSX_element:P(2789,1,"Its_element_type_0_is_not_a_valid_JSX_element_2789","Its element type '{0}' is not a valid JSX element."),The_operand_of_a_delete_operator_must_be_optional:P(2790,1,"The_operand_of_a_delete_operator_must_be_optional_2790","The operand of a 'delete' operator must be optional."),Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later:P(2791,1,"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791","Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later."),Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:P(2792,1,"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_t_2792","Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?"),The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible:P(2793,1,"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793","The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible."),Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise:P(2794,1,"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794","Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?"),The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types:P(2795,1,"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795","The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types."),It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked:P(2796,1,"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796","It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked."),A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract:P(2797,1,"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797","A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'."),The_declaration_was_marked_as_deprecated_here:P(2798,1,"The_declaration_was_marked_as_deprecated_here_2798","The declaration was marked as deprecated here."),Type_produces_a_tuple_type_that_is_too_large_to_represent:P(2799,1,"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799","Type produces a tuple type that is too large to represent."),Expression_produces_a_tuple_type_that_is_too_large_to_represent:P(2800,1,"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800","Expression produces a tuple type that is too large to represent."),This_condition_will_always_return_true_since_this_0_is_always_defined:P(2801,1,"This_condition_will_always_return_true_since_this_0_is_always_defined_2801","This condition will always return true since this '{0}' is always defined."),Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher:P(2802,1,"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802","Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher."),Cannot_assign_to_private_method_0_Private_methods_are_not_writable:P(2803,1,"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803","Cannot assign to private method '{0}'. Private methods are not writable."),Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name:P(2804,1,"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804","Duplicate identifier '{0}'. Static and instance elements cannot share the same private name."),Private_accessor_was_defined_without_a_getter:P(2806,1,"Private_accessor_was_defined_without_a_getter_2806","Private accessor was defined without a getter."),This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0:P(2807,1,"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807","This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'."),A_get_accessor_must_be_at_least_as_accessible_as_the_setter:P(2808,1,"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808","A get accessor must be at least as accessible as the setter"),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:P(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments:P(2810,1,"Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_2810","Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments."),Initializer_for_property_0:P(2811,1,"Initializer_for_property_0_2811","Initializer for property '{0}'"),Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:P(2812,1,"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812","Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'."),Class_declaration_cannot_implement_overload_list_for_0:P(2813,1,"Class_declaration_cannot_implement_overload_list_for_0_2813","Class declaration cannot implement overload list for '{0}'."),Function_with_bodies_can_only_merge_with_classes_that_are_ambient:P(2814,1,"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814","Function with bodies can only merge with classes that are ambient."),arguments_cannot_be_referenced_in_property_initializers:P(2815,1,"arguments_cannot_be_referenced_in_property_initializers_2815","'arguments' cannot be referenced in property initializers."),Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class:P(2816,1,"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816","Cannot use 'this' in a static property initializer of a decorated class."),Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block:P(2817,1,"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817","Property '{0}' has no initializer and is not definitely assigned in a class static block."),Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers:P(2818,1,"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818","Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers."),Namespace_name_cannot_be_0:P(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Type_0_is_not_assignable_to_type_1_Did_you_mean_2:P(2820,1,"Type_0_is_not_assignable_to_type_1_Did_you_mean_2_2820","Type '{0}' is not assignable to type '{1}'. Did you mean '{2}'?"),Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:P(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:P(2822,1,"Import_assertions_cannot_be_used_with_type_only_imports_or_exports_2822","Import assertions cannot be used with type-only imports or exports."),Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:P(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2823","Import attributes are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Cannot_find_namespace_0_Did_you_mean_1:P(2833,1,"Cannot_find_namespace_0_Did_you_mean_1_2833","Cannot find namespace '{0}'. Did you mean '{1}'?"),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path:P(2834,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2834","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Consider adding an extension to the import path."),Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0:P(2835,1,"Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_n_2835","Relative import paths need explicit file extensions in ECMAScript imports when '--moduleResolution' is 'node16' or 'nodenext'. Did you mean '{0}'?"),Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:P(2836,1,"Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2836","Import assertions are not allowed on statements that compile to CommonJS 'require' calls."),Import_assertion_values_must_be_string_literal_expressions:P(2837,1,"Import_assertion_values_must_be_string_literal_expressions_2837","Import assertion values must be string literal expressions."),All_declarations_of_0_must_have_identical_constraints:P(2838,1,"All_declarations_of_0_must_have_identical_constraints_2838","All declarations of '{0}' must have identical constraints."),This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value:P(2839,1,"This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value_2839","This condition will always return '{0}' since JavaScript compares objects by reference, not value."),An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types:P(2840,1,"An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types_2840","An interface cannot extend a primitive type like '{0}'. It can only extend other named object types."),_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation:P(2842,1,"_0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation_2842","'{0}' is an unused renaming of '{1}'. Did you intend to use it as a type annotation?"),We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here:P(2843,1,"We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here_2843","We can only write a type for '{0}' by adding a type for the entire parameter here."),Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:P(2844,1,"Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2844","Type of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."),This_condition_will_always_return_0:P(2845,1,"This_condition_will_always_return_0_2845","This condition will always return '{0}'."),A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead:P(2846,1,"A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_f_2846","A declaration file cannot be imported without 'import type'. Did you mean to import an implementation file '{0}' instead?"),The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression:P(2848,1,"The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression_2848","The right-hand side of an 'instanceof' expression must not be an instantiation expression."),Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1:P(2849,1,"Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1_2849","Target signature provides too few arguments. Expected {0} or more, but got {1}."),The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined:P(2850,1,"The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_n_2850","The initializer of a 'using' declaration must be either an object with a '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined:P(2851,1,"The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_2851","The initializer of an 'await using' declaration must be either an object with a '[Symbol.asyncDispose]()' or '[Symbol.dispose]()' method, or be 'null' or 'undefined'."),await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:P(2852,1,"await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_2852","'await using' statements are only allowed within async functions and at the top levels of modules."),await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:P(2853,1,"await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_th_2853","'await using' statements are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module."),Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(2854,1,"Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_sys_2854","Top-level 'await using' statements are only allowed when the 'module' option is set to 'es2022', 'esnext', 'system', 'node16', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super:P(2855,1,"Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super_2855","Class field '{0}' defined by the parent class is not accessible in the child class via super."),Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:P(2856,1,"Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls_2856","Import attributes are not allowed on statements that compile to CommonJS 'require' calls."),Import_attributes_cannot_be_used_with_type_only_imports_or_exports:P(2857,1,"Import_attributes_cannot_be_used_with_type_only_imports_or_exports_2857","Import attributes cannot be used with type-only imports or exports."),Import_attribute_values_must_be_string_literal_expressions:P(2858,1,"Import_attribute_values_must_be_string_literal_expressions_2858","Import attribute values must be string literal expressions."),Excessive_complexity_comparing_types_0_and_1:P(2859,1,"Excessive_complexity_comparing_types_0_and_1_2859","Excessive complexity comparing types '{0}' and '{1}'."),The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method:P(2860,1,"The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_2860","The left-hand side of an 'instanceof' expression must be assignable to the first argument of the right-hand side's '[Symbol.hasInstance]' method."),An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression:P(2861,1,"An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_han_2861","An object's '[Symbol.hasInstance]' method must return a boolean value for it to be used on the right-hand side of an 'instanceof' expression."),Type_0_is_generic_and_can_only_be_indexed_for_reading:P(2862,1,"Type_0_is_generic_and_can_only_be_indexed_for_reading_2862","Type '{0}' is generic and can only be indexed for reading."),A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values:P(2863,1,"A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values_2863","A class cannot extend a primitive type like '{0}'. Classes can only extend constructable values."),A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types:P(2864,1,"A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types_2864","A class cannot implement a primitive type like '{0}'. It can only implement other named object types."),Import_declaration_0_is_using_private_name_1:P(4e3,1,"Import_declaration_0_is_using_private_name_1_4000","Import declaration '{0}' is using private name '{1}'."),Type_parameter_0_of_exported_class_has_or_is_using_private_name_1:P(4002,1,"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002","Type parameter '{0}' of exported class has or is using private name '{1}'."),Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1:P(4004,1,"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004","Type parameter '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:P(4006,1,"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006","Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:P(4008,1,"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008","Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:P(4010,1,"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010","Type parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:P(4012,1,"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012","Type parameter '{0}' of public method from exported class has or is using private name '{1}'."),Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:P(4014,1,"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014","Type parameter '{0}' of method from exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_function_has_or_is_using_private_name_1:P(4016,1,"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016","Type parameter '{0}' of exported function has or is using private name '{1}'."),Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:P(4019,1,"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019","Implements clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_0_has_or_is_using_private_name_1:P(4020,1,"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020","'extends' clause of exported class '{0}' has or is using private name '{1}'."),extends_clause_of_exported_class_has_or_is_using_private_name_0:P(4021,1,"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021","'extends' clause of exported class has or is using private name '{0}'."),extends_clause_of_exported_interface_0_has_or_is_using_private_name_1:P(4022,1,"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022","'extends' clause of exported interface '{0}' has or is using private name '{1}'."),Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4023,1,"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023","Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named."),Exported_variable_0_has_or_is_using_name_1_from_private_module_2:P(4024,1,"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024","Exported variable '{0}' has or is using name '{1}' from private module '{2}'."),Exported_variable_0_has_or_is_using_private_name_1:P(4025,1,"Exported_variable_0_has_or_is_using_private_name_1_4025","Exported variable '{0}' has or is using private name '{1}'."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4026,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026","Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:P(4027,1,"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027","Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:P(4028,1,"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028","Public static property '{0}' of exported class has or is using private name '{1}'."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4029,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029","Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:P(4030,1,"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030","Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_property_0_of_exported_class_has_or_is_using_private_name_1:P(4031,1,"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031","Public property '{0}' of exported class has or is using private name '{1}'."),Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4032,1,"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032","Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Property_0_of_exported_interface_has_or_is_using_private_name_1:P(4033,1,"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033","Property '{0}' of exported interface has or is using private name '{1}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4034,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034","Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:P(4035,1,"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035","Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4036,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036","Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:P(4037,1,"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037","Parameter type of public setter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4038,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038","Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4039,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039","Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:P(4040,1,"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040","Return type of public static getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4041,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041","Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4042,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042","Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'."),Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1:P(4043,1,"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043","Return type of public getter '{0}' from exported class has or is using private name '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:P(4044,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044","Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0:P(4045,1,"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045","Return type of constructor signature from exported interface has or is using private name '{0}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:P(4046,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046","Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0:P(4047,1,"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047","Return type of call signature from exported interface has or is using private name '{0}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:P(4048,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048","Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0:P(4049,1,"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049","Return type of index signature from exported interface has or is using private name '{0}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:P(4050,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050","Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:P(4051,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051","Return type of public static method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:P(4052,1,"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052","Return type of public static method from exported class has or is using private name '{0}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:P(4053,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053","Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:P(4054,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054","Return type of public method from exported class has or is using name '{0}' from private module '{1}'."),Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:P(4055,1,"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055","Return type of public method from exported class has or is using private name '{0}'."),Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:P(4056,1,"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056","Return type of method from exported interface has or is using name '{0}' from private module '{1}'."),Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0:P(4057,1,"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057","Return type of method from exported interface has or is using private name '{0}'."),Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:P(4058,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058","Return type of exported function has or is using name '{0}' from external module {1} but cannot be named."),Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:P(4059,1,"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059","Return type of exported function has or is using name '{0}' from private module '{1}'."),Return_type_of_exported_function_has_or_is_using_private_name_0:P(4060,1,"Return_type_of_exported_function_has_or_is_using_private_name_0_4060","Return type of exported function has or is using private name '{0}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4061,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061","Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4062,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062","Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1:P(4063,1,"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063","Parameter '{0}' of constructor from exported class has or is using private name '{1}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4064,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064","Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1:P(4065,1,"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065","Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4066,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066","Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1:P(4067,1,"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067","Parameter '{0}' of call signature from exported interface has or is using private name '{1}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4068,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068","Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4069,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069","Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:P(4070,1,"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070","Parameter '{0}' of public static method from exported class has or is using private name '{1}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4071,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071","Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:P(4072,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072","Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'."),Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:P(4073,1,"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073","Parameter '{0}' of public method from exported class has or is using private name '{1}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4074,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074","Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1:P(4075,1,"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075","Parameter '{0}' of method from exported interface has or is using private name '{1}'."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4076,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076","Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named."),Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:P(4077,1,"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077","Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'."),Parameter_0_of_exported_function_has_or_is_using_private_name_1:P(4078,1,"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078","Parameter '{0}' of exported function has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1:P(4081,1,"Exported_type_alias_0_has_or_is_using_private_name_1_4081","Exported type alias '{0}' has or is using private name '{1}'."),Default_export_of_the_module_has_or_is_using_private_name_0:P(4082,1,"Default_export_of_the_module_has_or_is_using_private_name_0_4082","Default export of the module has or is using private name '{0}'."),Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1:P(4083,1,"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083","Type parameter '{0}' of exported type alias has or is using private name '{1}'."),Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:P(4084,1,"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084","Exported type alias '{0}' has or is using private name '{1}' from module {2}."),Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1:P(4085,1,"Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1_4085","Extends clause for inferred type '{0}' has or is using private name '{1}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:P(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4091,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091","Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1:P(4092,1,"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092","Parameter '{0}' of index signature from exported interface has or is using private name '{1}'."),Property_0_of_exported_class_expression_may_not_be_private_or_protected:P(4094,1,"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094","Property '{0}' of exported class expression may not be private or protected."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4095,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095","Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:P(4096,1,"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096","Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:P(4097,1,"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097","Public static method '{0}' of exported class has or is using private name '{1}'."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4098,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098","Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named."),Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:P(4099,1,"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099","Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'."),Public_method_0_of_exported_class_has_or_is_using_private_name_1:P(4100,1,"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100","Public method '{0}' of exported class has or is using private name '{1}'."),Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:P(4101,1,"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101","Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'."),Method_0_of_exported_interface_has_or_is_using_private_name_1:P(4102,1,"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102","Method '{0}' of exported interface has or is using private name '{1}'."),Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1:P(4103,1,"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103","Type parameter '{0}' of exported mapped object type is using private name '{1}'."),The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1:P(4104,1,"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104","The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'."),Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter:P(4105,1,"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105","Private or protected member '{0}' cannot be accessed on a type parameter."),Parameter_0_of_accessor_has_or_is_using_private_name_1:P(4106,1,"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106","Parameter '{0}' of accessor has or is using private name '{1}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:P(4107,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107","Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'."),Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:P(4108,1,"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108","Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named."),Type_arguments_for_0_circularly_reference_themselves:P(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:P(4110,1,"Tuple_type_arguments_circularly_reference_themselves_4110","Tuple type arguments circularly reference themselves."),Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0:P(4111,1,"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111","Property '{0}' comes from an index signature, so it must be accessed with ['{0}']."),This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class:P(4112,1,"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112","This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0:P(4113,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0:P(4114,1,"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114","This member must have an 'override' modifier because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:P(4115,1,"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115","This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'."),This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0:P(4116,1,"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116","This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'."),This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:P(4117,1,"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117","This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?"),The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized:P(4118,1,"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118","The type of this node cannot be serialized because its property '{0}' cannot be serialized."),This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:P(4119,1,"This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_4119","This member must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:P(4120,1,"This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_4120","This parameter property must have a JSDoc comment with an '@override' tag because it overrides a member in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:P(4121,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_4121","This member cannot have a JSDoc comment with an '@override' tag because its containing class '{0}' does not extend another class."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:P(4122,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4122","This member cannot have a JSDoc comment with an '@override' tag because it is not declared in the base class '{0}'."),This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:P(4123,1,"This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base__4123","This member cannot have a JSDoc comment with an 'override' tag because it is not declared in the base class '{0}'. Did you mean '{1}'?"),Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next:P(4124,1,"Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_w_4124","Compiler option '{0}' of value '{1}' is unstable. Use nightly TypeScript to silence this error. Try updating with 'npm install -D typescript@next'."),The_current_host_does_not_support_the_0_option:P(5001,1,"The_current_host_does_not_support_the_0_option_5001","The current host does not support the '{0}' option."),Cannot_find_the_common_subdirectory_path_for_the_input_files:P(5009,1,"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009","Cannot find the common subdirectory path for the input files."),File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:P(5010,1,"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010","File specification cannot end in a recursive directory wildcard ('**'): '{0}'."),Cannot_read_file_0_Colon_1:P(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:P(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:P(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:P(5024,1,"Compiler_option_0_requires_a_value_of_type_1_5024","Compiler option '{0}' requires a value of type {1}."),Unknown_compiler_option_0_Did_you_mean_1:P(5025,1,"Unknown_compiler_option_0_Did_you_mean_1_5025","Unknown compiler option '{0}'. Did you mean '{1}'?"),Could_not_write_file_0_Colon_1:P(5033,1,"Could_not_write_file_0_Colon_1_5033","Could not write file '{0}': {1}."),Option_project_cannot_be_mixed_with_source_files_on_a_command_line:P(5042,1,"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042","Option 'project' cannot be mixed with source files on a command line."),Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher:P(5047,1,"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047","Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher."),Option_0_cannot_be_specified_when_option_target_is_ES3:P(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:P(5051,1,"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051","Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided."),Option_0_cannot_be_specified_without_specifying_option_1:P(5052,1,"Option_0_cannot_be_specified_without_specifying_option_1_5052","Option '{0}' cannot be specified without specifying option '{1}'."),Option_0_cannot_be_specified_with_option_1:P(5053,1,"Option_0_cannot_be_specified_with_option_1_5053","Option '{0}' cannot be specified with option '{1}'."),A_tsconfig_json_file_is_already_defined_at_Colon_0:P(5054,1,"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054","A 'tsconfig.json' file is already defined at: '{0}'."),Cannot_write_file_0_because_it_would_overwrite_input_file:P(5055,1,"Cannot_write_file_0_because_it_would_overwrite_input_file_5055","Cannot write file '{0}' because it would overwrite input file."),Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files:P(5056,1,"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056","Cannot write file '{0}' because it would be overwritten by multiple input files."),Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0:P(5057,1,"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057","Cannot find a tsconfig.json file at the specified directory: '{0}'."),The_specified_path_does_not_exist_Colon_0:P(5058,1,"The_specified_path_does_not_exist_Colon_0_5058","The specified path does not exist: '{0}'."),Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier:P(5059,1,"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059","Invalid value for '--reactNamespace'. '{0}' is not a valid identifier."),Pattern_0_can_have_at_most_one_Asterisk_character:P(5061,1,"Pattern_0_can_have_at_most_one_Asterisk_character_5061","Pattern '{0}' can have at most one '*' character."),Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character:P(5062,1,"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062","Substitution '{0}' in pattern '{1}' can have at most one '*' character."),Substitutions_for_pattern_0_should_be_an_array:P(5063,1,"Substitutions_for_pattern_0_should_be_an_array_5063","Substitutions for pattern '{0}' should be an array."),Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2:P(5064,1,"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064","Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'."),File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0:P(5065,1,"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065","File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'."),Substitutions_for_pattern_0_shouldn_t_be_an_empty_array:P(5066,1,"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066","Substitutions for pattern '{0}' shouldn't be an empty array."),Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name:P(5067,1,"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067","Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name."),Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig:P(5068,1,"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068","Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig."),Option_0_cannot_be_specified_without_specifying_option_1_or_option_2:P(5069,1,"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069","Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'."),Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic:P(5070,1,"Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic_5070","Option '--resolveJsonModule' cannot be specified when 'moduleResolution' is set to 'classic'."),Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:P(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:P(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:P(5073,1,"Build_option_0_requires_a_value_of_type_1_5073","Build option '{0}' requires a value of type {1}."),Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified:P(5074,1,"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074","Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified."),_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2:P(5075,1,"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075","'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'."),_0_and_1_operations_cannot_be_mixed_without_parentheses:P(5076,1,"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076","'{0}' and '{1}' operations cannot be mixed without parentheses."),Unknown_build_option_0_Did_you_mean_1:P(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:P(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:P(5079,1,"Unknown_watch_option_0_Did_you_mean_1_5079","Unknown watch option '{0}'. Did you mean '{1}'?"),Watch_option_0_requires_a_value_of_type_1:P(5080,1,"Watch_option_0_requires_a_value_of_type_1_5080","Watch option '{0}' requires a value of type {1}."),Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0:P(5081,1,"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081","Cannot find a tsconfig.json file at the current directory: {0}."),_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1:P(5082,1,"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082","'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'."),Cannot_read_file_0:P(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:P(5085,1,"A_tuple_member_cannot_be_both_optional_and_rest_5085","A tuple member cannot be both optional and rest."),A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type:P(5086,1,"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086","A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type."),A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type:P(5087,1,"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087","A labeled tuple element is declared as rest with a '...' before the name, rather than before the type."),The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary:P(5088,1,"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088","The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary."),Option_0_cannot_be_specified_when_option_jsx_is_1:P(5089,1,"Option_0_cannot_be_specified_when_option_jsx_is_1_5089","Option '{0}' cannot be specified when option 'jsx' is '{1}'."),Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash:P(5090,1,"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090","Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?"),Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled:P(5091,1,"Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled_5091","Option 'preserveConstEnums' cannot be disabled when '{0}' is enabled."),The_root_value_of_a_0_file_must_be_an_object:P(5092,1,"The_root_value_of_a_0_file_must_be_an_object_5092","The root value of a '{0}' file must be an object."),Compiler_option_0_may_only_be_used_with_build:P(5093,1,"Compiler_option_0_may_only_be_used_with_build_5093","Compiler option '--{0}' may only be used with '--build'."),Compiler_option_0_may_not_be_used_with_build:P(5094,1,"Compiler_option_0_may_not_be_used_with_build_5094","Compiler option '--{0}' may not be used with '--build'."),Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later:P(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:P(5096,1,"Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set_5096","Option 'allowImportingTsExtensions' can only be used when either 'noEmit' or 'emitDeclarationOnly' is set."),An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled:P(5097,1,"An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled_5097","An import path can only end with a '{0}' extension when 'allowImportingTsExtensions' is enabled."),Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler:P(5098,1,"Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler_5098","Option '{0}' can only be used when 'moduleResolution' is set to 'node16', 'nodenext', or 'bundler'."),Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error:P(5101,1,"Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprec_5101",`Option '{0}' is deprecated and will stop functioning in TypeScript {1}. Specify compilerOption '"ignoreDeprecations": "{2}"' to silence this error.`),Option_0_has_been_removed_Please_remove_it_from_your_configuration:P(5102,1,"Option_0_has_been_removed_Please_remove_it_from_your_configuration_5102","Option '{0}' has been removed. Please remove it from your configuration."),Invalid_value_for_ignoreDeprecations:P(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:P(5104,1,"Option_0_is_redundant_and_cannot_be_specified_with_option_1_5104","Option '{0}' is redundant and cannot be specified with option '{1}'."),Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System:P(5105,1,"Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System_5105","Option 'verbatimModuleSyntax' cannot be used when 'module' is set to 'UMD', 'AMD', or 'System'."),Use_0_instead:P(5106,3,"Use_0_instead_5106","Use '{0}' instead."),Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error:P(5107,1,"Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDepr_5107",`Option '{0}={1}' is deprecated and will stop functioning in TypeScript {2}. Specify compilerOption '"ignoreDeprecations": "{3}"' to silence this error.`),Option_0_1_has_been_removed_Please_remove_it_from_your_configuration:P(5108,1,"Option_0_1_has_been_removed_Please_remove_it_from_your_configuration_5108","Option '{0}={1}' has been removed. Please remove it from your configuration."),Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1:P(5109,1,"Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1_5109","Option 'moduleResolution' must be set to '{0}' (or left unspecified) when option 'module' is set to '{1}'."),Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1:P(5110,1,"Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1_5110","Option 'module' must be set to '{0}' when option 'moduleResolution' is set to '{1}'."),Generates_a_sourcemap_for_each_corresponding_d_ts_file:P(6e3,3,"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000","Generates a sourcemap for each corresponding '.d.ts' file."),Concatenate_and_emit_output_to_single_file:P(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:P(6002,3,"Generates_corresponding_d_ts_file_6002","Generates corresponding '.d.ts' file."),Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations:P(6004,3,"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004","Specify the location where debugger should locate TypeScript files instead of source locations."),Watch_input_files:P(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:P(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:P(6007,3,"Do_not_erase_const_enum_declarations_in_generated_code_6007","Do not erase const enum declarations in generated code."),Do_not_emit_outputs_if_any_errors_were_reported:P(6008,3,"Do_not_emit_outputs_if_any_errors_were_reported_6008","Do not emit outputs if any errors were reported."),Do_not_emit_comments_to_output:P(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:P(6010,3,"Do_not_emit_outputs_6010","Do not emit outputs."),Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking:P(6011,3,"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."),Skip_type_checking_of_declaration_files:P(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:P(6013,3,"Do_not_resolve_the_real_path_of_symlinks_6013","Do not resolve the real path of symlinks."),Only_emit_d_ts_declaration_files:P(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:P(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:P(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:P(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:P(6019,3,"Print_the_compiler_s_version_6019","Print the compiler's version."),Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json:P(6020,3,"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020","Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'."),Syntax_Colon_0:P(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:P(6024,3,"options_6024","options"),file:P(6025,3,"file_6025","file"),Examples_Colon_0:P(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:P(6027,3,"Options_Colon_6027","Options:"),Version_0:P(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:P(6030,3,"Insert_command_line_options_and_files_from_a_file_6030","Insert command line options and files from a file."),Starting_compilation_in_watch_mode:P(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:P(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:P(6034,3,"KIND_6034","KIND"),FILE:P(6035,3,"FILE_6035","FILE"),VERSION:P(6036,3,"VERSION_6036","VERSION"),LOCATION:P(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:P(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:P(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:P(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:P(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:P(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:P(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:P(6045,1,"Unterminated_quoted_string_in_response_file_0_6045","Unterminated quoted string in response file '{0}'."),Argument_for_0_option_must_be_Colon_1:P(6046,1,"Argument_for_0_option_must_be_Colon_1_6046","Argument for '{0}' option must be: {1}."),Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1:P(6048,1,"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048","Locale must be of the form or -. For example '{0}' or '{1}'."),Unable_to_open_file_0:P(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:P(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:P(6052,3,"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052","Raise error on expressions and declarations with an implied 'any' type."),File_0_not_found:P(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:P(6054,1,"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054","File '{0}' has an unsupported extension. The only supported extensions are {1}."),Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures:P(6055,3,"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055","Suppress noImplicitAny errors for indexing objects lacking index signatures."),Do_not_emit_declarations_for_code_that_has_an_internal_annotation:P(6056,3,"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056","Do not emit declarations for code that has an '@internal' annotation."),Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir:P(6058,3,"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058","Specify the root directory of input files. Use to control the output directory structure with --outDir."),File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files:P(6059,1,"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059","File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files."),Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix:P(6060,3,"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060","Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix)."),NEWLINE:P(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:P(6064,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line."),Enables_experimental_support_for_ES7_decorators:P(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:P(6066,3,"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066","Enables experimental support for emitting type metadata for decorators."),Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file:P(6070,3,"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070","Initializes a TypeScript project and creates a tsconfig.json file."),Successfully_created_a_tsconfig_json_file:P(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:P(6072,3,"Suppress_excess_property_checks_for_object_literals_6072","Suppress excess property checks for object literals."),Stylize_errors_and_messages_using_color_and_context_experimental:P(6073,3,"Stylize_errors_and_messages_using_color_and_context_experimental_6073","Stylize errors and messages using color and context (experimental)."),Do_not_report_errors_on_unused_labels:P(6074,3,"Do_not_report_errors_on_unused_labels_6074","Do not report errors on unused labels."),Report_error_when_not_all_code_paths_in_function_return_a_value:P(6075,3,"Report_error_when_not_all_code_paths_in_function_return_a_value_6075","Report error when not all code paths in function return a value."),Report_errors_for_fallthrough_cases_in_switch_statement:P(6076,3,"Report_errors_for_fallthrough_cases_in_switch_statement_6076","Report errors for fallthrough cases in switch statement."),Do_not_report_errors_on_unreachable_code:P(6077,3,"Do_not_report_errors_on_unreachable_code_6077","Do not report errors on unreachable code."),Disallow_inconsistently_cased_references_to_the_same_file:P(6078,3,"Disallow_inconsistently_cased_references_to_the_same_file_6078","Disallow inconsistently-cased references to the same file."),Specify_library_files_to_be_included_in_the_compilation:P(6079,3,"Specify_library_files_to_be_included_in_the_compilation_6079","Specify library files to be included in the compilation."),Specify_JSX_code_generation:P(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:P(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:P(6082,1,"Only_amd_and_system_modules_are_supported_alongside_0_6082","Only 'amd' and 'system' modules are supported alongside --{0}."),Base_directory_to_resolve_non_absolute_module_names:P(6083,3,"Base_directory_to_resolve_non_absolute_module_names_6083","Base directory to resolve non-absolute module names."),Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit:P(6084,3,"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084","[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit"),Enable_tracing_of_the_name_resolution_process:P(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:P(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:P(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:P(6088,3,"Module_resolution_kind_is_not_specified_using_0_6088","Module resolution kind is not specified, using '{0}'."),Module_name_0_was_successfully_resolved_to_1:P(6089,3,"Module_name_0_was_successfully_resolved_to_1_6089","======== Module name '{0}' was successfully resolved to '{1}'. ========"),Module_name_0_was_not_resolved:P(6090,3,"Module_name_0_was_not_resolved_6090","======== Module name '{0}' was not resolved. ========"),paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0:P(6091,3,"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091","'paths' option is specified, looking for a pattern to match module name '{0}'."),Module_name_0_matched_pattern_1:P(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:P(6093,3,"Trying_substitution_0_candidate_module_location_Colon_1_6093","Trying substitution '{0}', candidate module location: '{1}'."),Resolving_module_name_0_relative_to_base_url_1_2:P(6094,3,"Resolving_module_name_0_relative_to_base_url_1_2_6094","Resolving module name '{0}' relative to base url '{1}' - '{2}'."),Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1:P(6095,3,"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1_6095","Loading module as file / folder, candidate module location '{0}', target file types: {1}."),File_0_does_not_exist:P(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:P(6097,3,"File_0_exists_use_it_as_a_name_resolution_result_6097","File '{0}' exists - use it as a name resolution result."),Loading_module_0_from_node_modules_folder_target_file_types_Colon_1:P(6098,3,"Loading_module_0_from_node_modules_folder_target_file_types_Colon_1_6098","Loading module '{0}' from 'node_modules' folder, target file types: {1}."),Found_package_json_at_0:P(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:P(6100,3,"package_json_does_not_have_a_0_field_6100","'package.json' does not have a '{0}' field."),package_json_has_0_field_1_that_references_2:P(6101,3,"package_json_has_0_field_1_that_references_2_6101","'package.json' has '{0}' field '{1}' that references '{2}'."),Allow_javascript_files_to_be_compiled:P(6102,3,"Allow_javascript_files_to_be_compiled_6102","Allow javascript files to be compiled."),Checking_if_0_is_the_longest_matching_prefix_for_1_2:P(6104,3,"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104","Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'."),Expected_type_of_0_field_in_package_json_to_be_1_got_2:P(6105,3,"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105","Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'."),baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1:P(6106,3,"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106","'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'."),rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0:P(6107,3,"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107","'rootDirs' option is set, using it to resolve relative module name '{0}'."),Longest_matching_prefix_for_0_is_1:P(6108,3,"Longest_matching_prefix_for_0_is_1_6108","Longest matching prefix for '{0}' is '{1}'."),Loading_0_from_the_root_dir_1_candidate_location_2:P(6109,3,"Loading_0_from_the_root_dir_1_candidate_location_2_6109","Loading '{0}' from the root dir '{1}', candidate location '{2}'."),Trying_other_entries_in_rootDirs:P(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:P(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:P(6112,3,"Do_not_emit_use_strict_directives_in_module_output_6112","Do not emit 'use strict' directives in module output."),Enable_strict_null_checks:P(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:P(6114,1,"Unknown_option_excludes_Did_you_mean_exclude_6114","Unknown option 'excludes'. Did you mean 'exclude'?"),Raise_error_on_this_expressions_with_an_implied_any_type:P(6115,3,"Raise_error_on_this_expressions_with_an_implied_any_type_6115","Raise error on 'this' expressions with an implied 'any' type."),Resolving_type_reference_directive_0_containing_file_1_root_directory_2:P(6116,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116","======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2:P(6119,3,"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119","======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========"),Type_reference_directive_0_was_not_resolved:P(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:P(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:P(6122,3,"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122","Root directory cannot be determined, skipping primary search paths."),Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set:P(6123,3,"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123","======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========"),Type_declaration_files_to_be_included_in_compilation:P(6124,3,"Type_declaration_files_to_be_included_in_compilation_6124","Type declaration files to be included in compilation."),Looking_up_in_node_modules_folder_initial_location_0:P(6125,3,"Looking_up_in_node_modules_folder_initial_location_0_6125","Looking up in 'node_modules' folder, initial location '{0}'."),Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder:P(6126,3,"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126","Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder."),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1:P(6127,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127","======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========"),Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set:P(6128,3,"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128","======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========"),Resolving_real_path_for_0_result_1:P(6130,3,"Resolving_real_path_for_0_result_1_6130","Resolving real path for '{0}', result '{1}'."),Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system:P(6131,1,"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131","Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'."),File_name_0_has_a_1_extension_stripping_it:P(6132,3,"File_name_0_has_a_1_extension_stripping_it_6132","File name '{0}' has a '{1}' extension - stripping it."),_0_is_declared_but_its_value_is_never_read:P(6133,1,"_0_is_declared_but_its_value_is_never_read_6133","'{0}' is declared but its value is never read.",!0),Report_errors_on_unused_locals:P(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:P(6135,3,"Report_errors_on_unused_parameters_6135","Report errors on unused parameters."),The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files:P(6136,3,"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136","The maximum dependency depth to search under node_modules and load JavaScript files."),Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1:P(6137,1,"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137","Cannot import type declaration files. Consider importing '{0}' instead of '{1}'."),Property_0_is_declared_but_its_value_is_never_read:P(6138,1,"Property_0_is_declared_but_its_value_is_never_read_6138","Property '{0}' is declared but its value is never read.",!0),Import_emit_helpers_from_tslib:P(6139,3,"Import_emit_helpers_from_tslib_6139","Import emit helpers from 'tslib'."),Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2:P(6140,1,"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140","Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'."),Parse_in_strict_mode_and_emit_use_strict_for_each_source_file:P(6141,3,"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141",'Parse in strict mode and emit "use strict" for each source file.'),Module_0_was_resolved_to_1_but_jsx_is_not_set:P(6142,1,"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142","Module '{0}' was resolved to '{1}', but '--jsx' is not set."),Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1:P(6144,3,"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144","Module '{0}' was resolved as locally declared ambient module in file '{1}'."),Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified:P(6145,3,"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145","Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified."),Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h:P(6146,3,"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146","Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'."),Resolution_for_module_0_was_found_in_cache_from_location_1:P(6147,3,"Resolution_for_module_0_was_found_in_cache_from_location_1_6147","Resolution for module '{0}' was found in cache from location '{1}'."),Directory_0_does_not_exist_skipping_all_lookups_in_it:P(6148,3,"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148","Directory '{0}' does not exist, skipping all lookups in it."),Show_diagnostic_information:P(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:P(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:P(6151,3,"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151","Emit a single file with source maps instead of having a separate file."),Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set:P(6152,3,"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152","Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set."),Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule:P(6153,3,"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153","Transpile each file as a separate module (similar to 'ts.transpileModule')."),Print_names_of_generated_files_part_of_the_compilation:P(6154,3,"Print_names_of_generated_files_part_of_the_compilation_6154","Print names of generated files part of the compilation."),Print_names_of_files_part_of_the_compilation:P(6155,3,"Print_names_of_files_part_of_the_compilation_6155","Print names of files part of the compilation."),The_locale_used_when_displaying_messages_to_the_user_e_g_en_us:P(6156,3,"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156","The locale used when displaying messages to the user (e.g. 'en-us')"),Do_not_generate_custom_helper_functions_like_extends_in_compiled_output:P(6157,3,"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157","Do not generate custom helper functions like '__extends' in compiled output."),Do_not_include_the_default_library_file_lib_d_ts:P(6158,3,"Do_not_include_the_default_library_file_lib_d_ts_6158","Do not include the default library file (lib.d.ts)."),Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files:P(6159,3,"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159","Do not add triple-slash references or imported modules to the list of compiled files."),Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files:P(6160,3,"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160","[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files."),List_of_folders_to_include_type_definitions_from:P(6161,3,"List_of_folders_to_include_type_definitions_from_6161","List of folders to include type definitions from."),Disable_size_limitations_on_JavaScript_projects:P(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:P(6163,3,"The_character_set_of_the_input_files_6163","The character set of the input files."),Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1:P(6164,3,"Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1_6164","Skipping module '{0}' that looks like an absolute URI, target file types: {1}."),Do_not_truncate_error_messages:P(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:P(6166,3,"Output_directory_for_generated_declaration_files_6166","Output directory for generated declaration files."),A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl:P(6167,3,"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167","A series of entries which re-map imports to lookup locations relative to the 'baseUrl'."),List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime:P(6168,3,"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168","List of root folders whose combined content represents the structure of the project at runtime."),Show_all_compiler_options:P(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:P(6170,3,"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170","[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file"),Command_line_Options:P(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:P(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:P(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:P(6182,3,"Scoped_package_detected_looking_in_0_6182","Scoped package detected, looking in '{0}'"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:P(6183,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:P(6184,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184","Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Enable_strict_checking_of_function_types:P(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:P(6187,3,"Enable_strict_checking_of_property_initialization_in_classes_6187","Enable strict checking of property initialization in classes."),Numeric_separators_are_not_allowed_here:P(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:P(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen:P(6191,3,"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191","Whether to keep outdated console output in watch mode instead of clearing the screen."),All_imports_in_import_declaration_are_unused:P(6192,1,"All_imports_in_import_declaration_are_unused_6192","All imports in import declaration are unused.",!0),Found_1_error_Watching_for_file_changes:P(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:P(6194,3,"Found_0_errors_Watching_for_file_changes_6194","Found {0} errors. Watching for file changes."),Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols:P(6195,3,"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195","Resolve 'keyof' to string valued property names only (no numbers or symbols)."),_0_is_declared_but_never_used:P(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:P(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:P(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:P(6199,1,"All_variables_are_unused_6199","All variables are unused.",!0),Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0:P(6200,1,"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200","Definitions of the following identifiers conflict with those in another file: {0}"),Conflicts_are_in_this_file:P(6201,3,"Conflicts_are_in_this_file_6201","Conflicts are in this file."),Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0:P(6202,1,"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202","Project references may not form a circular graph. Cycle detected: {0}"),_0_was_also_declared_here:P(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:P(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:P(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:P(6206,3,"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206","'package.json' has a 'typesVersions' field with version-specific path mappings."),package_json_does_not_have_a_typesVersions_entry_that_matches_version_0:P(6207,3,"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207","'package.json' does not have a 'typesVersions' entry that matches version '{0}'."),package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2:P(6208,3,"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208","'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'."),package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range:P(6209,3,"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209","'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range."),An_argument_for_0_was_not_provided:P(6210,3,"An_argument_for_0_was_not_provided_6210","An argument for '{0}' was not provided."),An_argument_matching_this_binding_pattern_was_not_provided:P(6211,3,"An_argument_matching_this_binding_pattern_was_not_provided_6211","An argument matching this binding pattern was not provided."),Did_you_mean_to_call_this_expression:P(6212,3,"Did_you_mean_to_call_this_expression_6212","Did you mean to call this expression?"),Did_you_mean_to_use_new_with_this_expression:P(6213,3,"Did_you_mean_to_use_new_with_this_expression_6213","Did you mean to use 'new' with this expression?"),Enable_strict_bind_call_and_apply_methods_on_functions:P(6214,3,"Enable_strict_bind_call_and_apply_methods_on_functions_6214","Enable strict 'bind', 'call', and 'apply' methods on functions."),Using_compiler_options_of_project_reference_redirect_0:P(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:P(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:P(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:P(6218,3,"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218","======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========"),Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3:P(6219,3,"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219","======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========"),package_json_had_a_falsy_0_field:P(6220,3,"package_json_had_a_falsy_0_field_6220","'package.json' had a falsy '{0}' field."),Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects:P(6221,3,"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221","Disable use of source files instead of declaration files from referenced projects."),Emit_class_fields_with_Define_instead_of_Set:P(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:P(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:P(6224,3,"Disable_solution_searching_for_this_project_6224","Disable solution searching for this project."),Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory:P(6225,3,"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225","Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'."),Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling:P(6226,3,"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226","Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'."),Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize:P(6227,3,"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227","Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'."),Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3:P(6229,1,"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229","Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'."),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line:P(6230,1,"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230","Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line."),Could_not_resolve_the_path_0_with_the_extensions_Colon_1:P(6231,1,"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231","Could not resolve the path '{0}' with the extensions: {1}."),Declaration_augments_declaration_in_another_file_This_cannot_be_serialized:P(6232,1,"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232","Declaration augments declaration in another file. This cannot be serialized."),This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file:P(6233,1,"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233","This is the declaration being augmented. Consider moving the augmenting declaration into the same file."),This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without:P(6234,1,"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234","This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?"),Disable_loading_referenced_projects:P(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:P(6236,1,"Arguments_for_the_rest_parameter_0_were_not_provided_6236","Arguments for the rest parameter '{0}' were not provided."),Generates_an_event_trace_and_a_list_of_types:P(6237,3,"Generates_an_event_trace_and_a_list_of_types_6237","Generates an event trace and a list of types."),Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react:P(6238,1,"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238","Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react"),File_0_exists_according_to_earlier_cached_lookups:P(6239,3,"File_0_exists_according_to_earlier_cached_lookups_6239","File '{0}' exists according to earlier cached lookups."),File_0_does_not_exist_according_to_earlier_cached_lookups:P(6240,3,"File_0_does_not_exist_according_to_earlier_cached_lookups_6240","File '{0}' does not exist according to earlier cached lookups."),Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1:P(6241,3,"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241","Resolution for type reference directive '{0}' was found in cache from location '{1}'."),Resolving_type_reference_directive_0_containing_file_1:P(6242,3,"Resolving_type_reference_directive_0_containing_file_1_6242","======== Resolving type reference directive '{0}', containing file '{1}'. ========"),Interpret_optional_property_types_as_written_rather_than_adding_undefined:P(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:P(6244,3,"Modules_6244","Modules"),File_Management:P(6245,3,"File_Management_6245","File Management"),Emit:P(6246,3,"Emit_6246","Emit"),JavaScript_Support:P(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:P(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:P(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:P(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:P(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:P(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:P(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:P(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:P(6255,3,"Projects_6255","Projects"),Output_Formatting:P(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:P(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:P(6258,1,"_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file_6258","'{0}' should be set inside the 'compilerOptions' object of the config json file"),Found_1_error_in_0:P(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:P(6260,3,"Found_0_errors_in_the_same_file_starting_at_Colon_1_6260","Found {0} errors in the same file, starting at: {1}"),Found_0_errors_in_1_files:P(6261,3,"Found_0_errors_in_1_files_6261","Found {0} errors in {1} files."),File_name_0_has_a_1_extension_looking_up_2_instead:P(6262,3,"File_name_0_has_a_1_extension_looking_up_2_instead_6262","File name '{0}' has a '{1}' extension - looking up '{2}' instead."),Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set:P(6263,1,"Module_0_was_resolved_to_1_but_allowArbitraryExtensions_is_not_set_6263","Module '{0}' was resolved to '{1}', but '--allowArbitraryExtensions' is not set."),Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present:P(6264,3,"Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present_6264","Enable importing files with any extension, provided a declaration file is present."),Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder:P(6265,3,"Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_no_6265","Resolving type reference directive for program that specifies custom typeRoots, skipping lookup in 'node_modules' folder."),Option_0_can_only_be_specified_on_command_line:P(6266,1,"Option_0_can_only_be_specified_on_command_line_6266","Option '{0}' can only be specified on command line."),Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve:P(6270,3,"Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve_6270","Directory '{0}' has no containing package.json scope. Imports will not resolve."),Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1:P(6271,3,"Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6271","Import specifier '{0}' does not exist in package.json scope at path '{1}'."),Invalid_import_specifier_0_has_no_possible_resolutions:P(6272,3,"Invalid_import_specifier_0_has_no_possible_resolutions_6272","Invalid import specifier '{0}' has no possible resolutions."),package_json_scope_0_has_no_imports_defined:P(6273,3,"package_json_scope_0_has_no_imports_defined_6273","package.json scope '{0}' has no imports defined."),package_json_scope_0_explicitly_maps_specifier_1_to_null:P(6274,3,"package_json_scope_0_explicitly_maps_specifier_1_to_null_6274","package.json scope '{0}' explicitly maps specifier '{1}' to null."),package_json_scope_0_has_invalid_type_for_target_of_specifier_1:P(6275,3,"package_json_scope_0_has_invalid_type_for_target_of_specifier_1_6275","package.json scope '{0}' has invalid type for target of specifier '{1}'"),Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1:P(6276,3,"Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1_6276","Export specifier '{0}' does not exist in package.json scope at path '{1}'."),Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update:P(6277,3,"Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_i_6277","Resolution of non-relative name failed; trying with modern Node resolution features disabled to see if npm library needs configuration update."),There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings:P(6278,3,"There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The__6278",`There are types at '{0}', but this result could not be resolved when respecting package.json "exports". The '{1}' library may need to update its package.json or typings.`),Enable_project_compilation:P(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:P(6304,1,"Composite_projects_may_not_disable_declaration_emit_6304","Composite projects may not disable declaration emit."),Output_file_0_has_not_been_built_from_source_file_1:P(6305,1,"Output_file_0_has_not_been_built_from_source_file_1_6305","Output file '{0}' has not been built from source file '{1}'."),Referenced_project_0_must_have_setting_composite_Colon_true:P(6306,1,"Referenced_project_0_must_have_setting_composite_Colon_true_6306",`Referenced project '{0}' must have setting "composite": true.`),File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern:P(6307,1,"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307","File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:P(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:P(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:P(6310,1,"Referenced_project_0_may_not_disable_emit_6310","Referenced project '{0}' may not disable emit."),Project_0_is_out_of_date_because_output_1_is_older_than_input_2:P(6350,3,"Project_0_is_out_of_date_because_output_1_is_older_than_input_2_6350","Project '{0}' is out of date because output '{1}' is older than input '{2}'"),Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2:P(6351,3,"Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2_6351","Project '{0}' is up to date because newest input '{1}' is older than output '{2}'"),Project_0_is_out_of_date_because_output_file_1_does_not_exist:P(6352,3,"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352","Project '{0}' is out of date because output file '{1}' does not exist"),Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date:P(6353,3,"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353","Project '{0}' is out of date because its dependency '{1}' is out of date"),Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies:P(6354,3,"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354","Project '{0}' is up to date with .d.ts files from its dependencies"),Projects_in_this_build_Colon_0:P(6355,3,"Projects_in_this_build_Colon_0_6355","Projects in this build: {0}"),A_non_dry_build_would_delete_the_following_files_Colon_0:P(6356,3,"A_non_dry_build_would_delete_the_following_files_Colon_0_6356","A non-dry build would delete the following files: {0}"),A_non_dry_build_would_build_project_0:P(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:P(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:P(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:P(6361,3,"Project_0_is_up_to_date_6361","Project '{0}' is up to date"),Skipping_build_of_project_0_because_its_dependency_1_has_errors:P(6362,3,"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362","Skipping build of project '{0}' because its dependency '{1}' has errors"),Project_0_can_t_be_built_because_its_dependency_1_has_errors:P(6363,3,"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363","Project '{0}' can't be built because its dependency '{1}' has errors"),Build_one_or_more_projects_and_their_dependencies_if_out_of_date:P(6364,3,"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364","Build one or more projects and their dependencies, if out of date"),Delete_the_outputs_of_all_projects:P(6365,3,"Delete_the_outputs_of_all_projects_6365","Delete the outputs of all projects."),Show_what_would_be_built_or_deleted_if_specified_with_clean:P(6367,3,"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367","Show what would be built (or deleted, if specified with '--clean')"),Option_build_must_be_the_first_command_line_argument:P(6369,1,"Option_build_must_be_the_first_command_line_argument_6369","Option '--build' must be the first command line argument."),Options_0_and_1_cannot_be_combined:P(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:P(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:P(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:P(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:P(6374,3,"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374","A non-dry build would update timestamps for output of project '{0}'"),A_non_dry_build_would_update_output_of_project_0:P(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:P(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:P(6377,1,"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377","Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'"),Composite_projects_may_not_disable_incremental_compilation:P(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:P(6380,3,"Specify_file_to_store_incremental_compilation_information_6380","Specify file to store incremental compilation information"),Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2:P(6381,3,"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381","Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'"),Skipping_build_of_project_0_because_its_dependency_1_was_not_built:P(6382,3,"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382","Skipping build of project '{0}' because its dependency '{1}' was not built"),Project_0_can_t_be_built_because_its_dependency_1_was_not_built:P(6383,3,"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383","Project '{0}' can't be built because its dependency '{1}' was not built"),Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:P(6384,3,"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384","Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it."),_0_is_deprecated:P(6385,2,"_0_is_deprecated_6385","'{0}' is deprecated.",void 0,void 0,!0),Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found:P(6386,3,"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386","Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found."),The_signature_0_of_1_is_deprecated:P(6387,2,"The_signature_0_of_1_is_deprecated_6387","The signature '{0}' of '{1}' is deprecated.",void 0,void 0,!0),Project_0_is_being_forcibly_rebuilt:P(6388,3,"Project_0_is_being_forcibly_rebuilt_6388","Project '{0}' is being forcibly rebuilt"),Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:P(6389,3,"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389","Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:P(6390,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:P(6391,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved:P(6392,3,"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392","Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:P(6393,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:P(6394,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:P(6395,3,"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395","Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3:P(6396,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4:P(6397,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'."),Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved:P(6398,3,"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398","Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted:P(6399,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitte_6399","Project '{0}' is out of date because buildinfo file '{1}' indicates that some of the changes were not emitted"),Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files:P(6400,3,"Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_fil_6400","Project '{0}' is up to date but needs to update timestamps of output files that are older than input files"),Project_0_is_out_of_date_because_there_was_error_reading_file_1:P(6401,3,"Project_0_is_out_of_date_because_there_was_error_reading_file_1_6401","Project '{0}' is out of date because there was error reading file '{1}'"),Resolving_in_0_mode_with_conditions_1:P(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:P(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:P(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:P(6405,3,"Saw_non_matching_condition_0_6405","Saw non-matching condition '{0}'."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions:P(6406,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions_6406","Project '{0}' is out of date because buildinfo file '{1}' indicates there is change in compilerOptions"),Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set:P(6407,3,"Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noE_6407","Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set."),Use_the_package_json_exports_field_when_resolving_package_imports:P(6408,3,"Use_the_package_json_exports_field_when_resolving_package_imports_6408","Use the package.json 'exports' field when resolving package imports."),Use_the_package_json_imports_field_when_resolving_imports:P(6409,3,"Use_the_package_json_imports_field_when_resolving_imports_6409","Use the package.json 'imports' field when resolving imports."),Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports:P(6410,3,"Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports_6410","Conditions to set in addition to the resolver-specific defaults when resolving imports."),true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false:P(6411,3,"true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false_6411","`true` when 'moduleResolution' is 'node16', 'nodenext', or 'bundler'; otherwise `false`."),Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more:P(6412,3,"Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_6412","Project '{0}' is out of date because buildinfo file '{1}' indicates that file '{2}' was root file of compilation but not any more."),Entering_conditional_exports:P(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:P(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:P(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:P(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:P(6417,3,"Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0_6417","Searching all ancestor node_modules directories for preferred extensions: {0}."),Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0:P(6418,3,"Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0_6418","Searching all ancestor node_modules directories for fallback extensions: {0}."),The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1:P(6500,3,"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500","The expected type comes from property '{0}' which is declared here on type '{1}'"),The_expected_type_comes_from_this_index_signature:P(6501,3,"The_expected_type_comes_from_this_index_signature_6501","The expected type comes from this index signature."),The_expected_type_comes_from_the_return_type_of_this_signature:P(6502,3,"The_expected_type_comes_from_the_return_type_of_this_signature_6502","The expected type comes from the return type of this signature."),Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing:P(6503,3,"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503","Print names of files that are part of the compilation and then stop processing."),File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option:P(6504,1,"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504","File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?"),Print_names_of_files_and_the_reason_they_are_part_of_the_compilation:P(6505,3,"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505","Print names of files and the reason they are part of the compilation."),Consider_adding_a_declare_modifier_to_this_class:P(6506,3,"Consider_adding_a_declare_modifier_to_this_class_6506","Consider adding a 'declare' modifier to this class."),Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files:P(6600,3,"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600","Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files."),Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export:P(6601,3,"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601","Allow 'import x from y' when a module doesn't have a default export."),Allow_accessing_UMD_globals_from_modules:P(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:P(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:P(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:P(6605,3,"Ensure_use_strict_is_always_emitted_6605","Ensure 'use strict' is always emitted."),Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it:P(6606,3,"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606","Have recompiles in projects that use 'incremental' and 'watch' mode assume that changes within a file will only affect files directly depending on it."),Specify_the_base_directory_to_resolve_non_relative_module_names:P(6607,3,"Specify_the_base_directory_to_resolve_non_relative_module_names_6607","Specify the base directory to resolve non-relative module names."),No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files:P(6608,3,"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608","No longer supported. In early versions, manually set the text encoding for reading files."),Enable_error_reporting_in_type_checked_JavaScript_files:P(6609,3,"Enable_error_reporting_in_type_checked_JavaScript_files_6609","Enable error reporting in type-checked JavaScript files."),Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references:P(6611,3,"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611","Enable constraints that allow a TypeScript project to be used with project references."),Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project:P(6612,3,"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612","Generate .d.ts files from TypeScript and JavaScript files in your project."),Specify_the_output_directory_for_generated_declaration_files:P(6613,3,"Specify_the_output_directory_for_generated_declaration_files_6613","Specify the output directory for generated declaration files."),Create_sourcemaps_for_d_ts_files:P(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:P(6615,3,"Output_compiler_performance_information_after_building_6615","Output compiler performance information after building."),Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project:P(6616,3,"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616","Disables inference for type acquisition by looking at filenames in a project."),Reduce_the_number_of_projects_loaded_automatically_by_TypeScript:P(6617,3,"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617","Reduce the number of projects loaded automatically by TypeScript."),Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server:P(6618,3,"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618","Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server."),Opt_a_project_out_of_multi_project_reference_checking_when_editing:P(6619,3,"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619","Opt a project out of multi-project reference checking when editing."),Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects:P(6620,3,"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620","Disable preferring source files instead of declaration files when referencing composite projects."),Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration:P(6621,3,"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621","Emit more compliant, but verbose and less performant JavaScript for iteration."),Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files:P(6622,3,"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622","Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files."),Only_output_d_ts_files_and_not_JavaScript_files:P(6623,3,"Only_output_d_ts_files_and_not_JavaScript_files_6623","Only output d.ts files and not JavaScript files."),Emit_design_type_metadata_for_decorated_declarations_in_source_files:P(6624,3,"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624","Emit design-type metadata for decorated declarations in source files."),Disable_the_type_acquisition_for_JavaScript_projects:P(6625,3,"Disable_the_type_acquisition_for_JavaScript_projects_6625","Disable the type acquisition for JavaScript projects"),Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility:P(6626,3,"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626","Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility."),Filters_results_from_the_include_option:P(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:P(6628,3,"Remove_a_list_of_directories_from_the_watch_process_6628","Remove a list of directories from the watch process."),Remove_a_list_of_files_from_the_watch_mode_s_processing:P(6629,3,"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629","Remove a list of files from the watch mode's processing."),Enable_experimental_support_for_legacy_experimental_decorators:P(6630,3,"Enable_experimental_support_for_legacy_experimental_decorators_6630","Enable experimental support for legacy experimental decorators."),Print_files_read_during_the_compilation_including_why_it_was_included:P(6631,3,"Print_files_read_during_the_compilation_including_why_it_was_included_6631","Print files read during the compilation including why it was included."),Output_more_detailed_compiler_performance_information_after_building:P(6632,3,"Output_more_detailed_compiler_performance_information_after_building_6632","Output more detailed compiler performance information after building."),Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited:P(6633,3,"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633","Specify one or more path or node module references to base configuration files from which settings are inherited."),Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers:P(6634,3,"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634","Specify what approach the watcher should use if the system runs out of native file watchers."),Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include:P(6635,3,"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635","Include a list of files. This does not support glob patterns, as opposed to `include`."),Build_all_projects_including_those_that_appear_to_be_up_to_date:P(6636,3,"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636","Build all projects, including those that appear to be up to date."),Ensure_that_casing_is_correct_in_imports:P(6637,3,"Ensure_that_casing_is_correct_in_imports_6637","Ensure that casing is correct in imports."),Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging:P(6638,3,"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638","Emit a v8 CPU profile of the compiler run for debugging."),Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file:P(6639,3,"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639","Allow importing helper functions from tslib once per project, instead of including them per-file."),Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation:P(6641,3,"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641","Specify a list of glob patterns that match files to be included in compilation."),Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects:P(6642,3,"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642","Save .tsbuildinfo files to allow for incremental compilation of projects."),Include_sourcemap_files_inside_the_emitted_JavaScript:P(6643,3,"Include_sourcemap_files_inside_the_emitted_JavaScript_6643","Include sourcemap files inside the emitted JavaScript."),Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript:P(6644,3,"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644","Include source code in the sourcemaps inside the emitted JavaScript."),Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports:P(6645,3,"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645","Ensure that each file can be safely transpiled without relying on other imports."),Specify_what_JSX_code_is_generated:P(6646,3,"Specify_what_JSX_code_is_generated_6646","Specify what JSX code is generated."),Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h:P(6647,3,"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647","Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'."),Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment:P(6648,3,"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648","Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'."),Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk:P(6649,3,"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649","Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'."),Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option:P(6650,3,"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650","Make keyof only return strings instead of string, numbers or symbols. Legacy option."),Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment:P(6651,3,"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651","Specify a set of bundled library declaration files that describe the target runtime environment."),Print_the_names_of_emitted_files_after_a_compilation:P(6652,3,"Print_the_names_of_emitted_files_after_a_compilation_6652","Print the names of emitted files after a compilation."),Print_all_of_the_files_read_during_the_compilation:P(6653,3,"Print_all_of_the_files_read_during_the_compilation_6653","Print all of the files read during the compilation."),Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit:P(6654,3,"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654","Set the language of the messaging from TypeScript. This does not affect emit."),Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations:P(6655,3,"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655","Specify the location where debugger should locate map files instead of generated locations."),Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs:P(6656,3,"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656","Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'."),Specify_what_module_code_is_generated:P(6657,3,"Specify_what_module_code_is_generated_6657","Specify what module code is generated."),Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier:P(6658,3,"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658","Specify how TypeScript looks up a file from a given module specifier."),Set_the_newline_character_for_emitting_files:P(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:P(6660,3,"Disable_emitting_files_from_a_compilation_6660","Disable emitting files from a compilation."),Disable_generating_custom_helper_functions_like_extends_in_compiled_output:P(6661,3,"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661","Disable generating custom helper functions like '__extends' in compiled output."),Disable_emitting_files_if_any_type_checking_errors_are_reported:P(6662,3,"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662","Disable emitting files if any type checking errors are reported."),Disable_truncating_types_in_error_messages:P(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:P(6664,3,"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664","Enable error reporting for fallthrough cases in switch statements."),Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type:P(6665,3,"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665","Enable error reporting for expressions and declarations with an implied 'any' type."),Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier:P(6666,3,"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666","Ensure overriding members in derived classes are marked with an override modifier."),Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function:P(6667,3,"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667","Enable error reporting for codepaths that do not explicitly return in a function."),Enable_error_reporting_when_this_is_given_the_type_any:P(6668,3,"Enable_error_reporting_when_this_is_given_the_type_any_6668","Enable error reporting when 'this' is given the type 'any'."),Disable_adding_use_strict_directives_in_emitted_JavaScript_files:P(6669,3,"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669","Disable adding 'use strict' directives in emitted JavaScript files."),Disable_including_any_library_files_including_the_default_lib_d_ts:P(6670,3,"Disable_including_any_library_files_including_the_default_lib_d_ts_6670","Disable including any library files, including the default lib.d.ts."),Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type:P(6671,3,"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671","Enforces using indexed accessors for keys declared using an indexed type."),Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project:P(6672,3,"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672","Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project."),Disable_strict_checking_of_generic_signatures_in_function_types:P(6673,3,"Disable_strict_checking_of_generic_signatures_in_function_types_6673","Disable strict checking of generic signatures in function types."),Add_undefined_to_a_type_when_accessed_using_an_index:P(6674,3,"Add_undefined_to_a_type_when_accessed_using_an_index_6674","Add 'undefined' to a type when accessed using an index."),Enable_error_reporting_when_local_variables_aren_t_read:P(6675,3,"Enable_error_reporting_when_local_variables_aren_t_read_6675","Enable error reporting when local variables aren't read."),Raise_an_error_when_a_function_parameter_isn_t_read:P(6676,3,"Raise_an_error_when_a_function_parameter_isn_t_read_6676","Raise an error when a function parameter isn't read."),Deprecated_setting_Use_outFile_instead:P(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:P(6678,3,"Specify_an_output_folder_for_all_emitted_files_6678","Specify an output folder for all emitted files."),Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output:P(6679,3,"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679","Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output."),Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations:P(6680,3,"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680","Specify a set of entries that re-map imports to additional lookup locations."),Specify_a_list_of_language_service_plugins_to_include:P(6681,3,"Specify_a_list_of_language_service_plugins_to_include_6681","Specify a list of language service plugins to include."),Disable_erasing_const_enum_declarations_in_generated_code:P(6682,3,"Disable_erasing_const_enum_declarations_in_generated_code_6682","Disable erasing 'const enum' declarations in generated code."),Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node:P(6683,3,"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683","Disable resolving symlinks to their realpath. This correlates to the same flag in node."),Disable_wiping_the_console_in_watch_mode:P(6684,3,"Disable_wiping_the_console_in_watch_mode_6684","Disable wiping the console in watch mode."),Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read:P(6685,3,"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685","Enable color and formatting in TypeScript's output to make compiler errors easier to read."),Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit:P(6686,3,"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686","Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit."),Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references:P(6687,3,"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687","Specify an array of objects that specify paths for projects. Used in project references."),Disable_emitting_comments:P(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:P(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:P(6690,3,"Specify_the_root_folder_within_your_source_files_6690","Specify the root folder within your source files."),Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules:P(6691,3,"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691","Allow multiple folders to be treated as one when resolving modules."),Skip_type_checking_d_ts_files_that_are_included_with_TypeScript:P(6692,3,"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692","Skip type checking .d.ts files that are included with TypeScript."),Skip_type_checking_all_d_ts_files:P(6693,3,"Skip_type_checking_all_d_ts_files_6693","Skip type checking all .d.ts files."),Create_source_map_files_for_emitted_JavaScript_files:P(6694,3,"Create_source_map_files_for_emitted_JavaScript_files_6694","Create source map files for emitted JavaScript files."),Specify_the_root_path_for_debuggers_to_find_the_reference_source_code:P(6695,3,"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695","Specify the root path for debuggers to find the reference source code."),Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function:P(6697,3,"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697","Check that the arguments for 'bind', 'call', and 'apply' methods match the original function."),When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible:P(6698,3,"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698","When assigning functions, check to ensure parameters and the return values are subtype-compatible."),When_type_checking_take_into_account_null_and_undefined:P(6699,3,"When_type_checking_take_into_account_null_and_undefined_6699","When type checking, take into account 'null' and 'undefined'."),Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor:P(6700,3,"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700","Check for class properties that are declared but not set in the constructor."),Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments:P(6701,3,"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701","Disable emitting declarations that have '@internal' in their JSDoc comments."),Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals:P(6702,3,"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702","Disable reporting of excess property errors during the creation of object literals."),Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures:P(6703,3,"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703","Suppress 'noImplicitAny' errors when indexing objects that lack index signatures."),Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively:P(6704,3,"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704","Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively."),Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations:P(6705,3,"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705","Set the JavaScript language version for emitted JavaScript and include compatible library declarations."),Log_paths_used_during_the_moduleResolution_process:P(6706,3,"Log_paths_used_during_the_moduleResolution_process_6706","Log paths used during the 'moduleResolution' process."),Specify_the_path_to_tsbuildinfo_incremental_compilation_file:P(6707,3,"Specify_the_path_to_tsbuildinfo_incremental_compilation_file_6707","Specify the path to .tsbuildinfo incremental compilation file."),Specify_options_for_automatic_acquisition_of_declaration_files:P(6709,3,"Specify_options_for_automatic_acquisition_of_declaration_files_6709","Specify options for automatic acquisition of declaration files."),Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types:P(6710,3,"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710","Specify multiple folders that act like './node_modules/@types'."),Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file:P(6711,3,"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711","Specify type package names to be included without being referenced in a source file."),Emit_ECMAScript_standard_compliant_class_fields:P(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:P(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:P(6714,3,"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714","Specify how directories are watched on systems that lack recursive file-watching functionality."),Specify_how_the_TypeScript_watch_mode_works:P(6715,3,"Specify_how_the_TypeScript_watch_mode_works_6715","Specify how the TypeScript watch mode works."),Require_undeclared_properties_from_index_signatures_to_use_element_accesses:P(6717,3,"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717","Require undeclared properties from index signatures to use element accesses."),Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types:P(6718,3,"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718","Specify emit/checking behavior for imports that are only used for types."),Default_catch_clause_variables_as_unknown_instead_of_any:P(6803,3,"Default_catch_clause_variables_as_unknown_instead_of_any_6803","Default catch clause variables as 'unknown' instead of 'any'."),Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting:P(6804,3,"Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_i_6804","Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting."),one_of_Colon:P(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:P(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:P(6902,3,"type_Colon_6902","type:"),default_Colon:P(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:P(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:P(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:P(6906,3,"false_unless_composite_is_set_6906","`false`, unless `composite` is set"),node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified:P(6907,3,"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907",'`["node_modules", "bower_components", "jspm_packages"]`, plus the value of `outDir` if one is specified.'),if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk:P(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:P(6909,3,"true_if_composite_false_otherwise_6909","`true` if `composite`, `false` otherwise"),module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node:P(69010,3,"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010","module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`"),Computed_from_the_list_of_input_files:P(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:P(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:P(6913,3,"You_can_learn_about_all_of_the_compiler_options_at_0_6913","You can learn about all of the compiler options at {0}"),Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon:P(6914,3,"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914","Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:"),Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0:P(6915,3,"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915","Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}"),COMMON_COMMANDS:P(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:P(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:P(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:P(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:P(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:P(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:P(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:P(6923,3,"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923","Compiles the current project (tsconfig.json in the working directory.)"),Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options:P(6924,3,"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924","Ignoring tsconfig.json, compiles the specified files with default compiler options."),Build_a_composite_project_in_the_working_directory:P(6925,3,"Build_a_composite_project_in_the_working_directory_6925","Build a composite project in the working directory."),Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory:P(6926,3,"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926","Creates a tsconfig.json with the recommended settings in the working directory."),Compiles_the_TypeScript_project_located_at_the_specified_path:P(6927,3,"Compiles_the_TypeScript_project_located_at_the_specified_path_6927","Compiles the TypeScript project located at the specified path."),An_expanded_version_of_this_information_showing_all_possible_compiler_options:P(6928,3,"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928","An expanded version of this information, showing all possible compiler options"),Compiles_the_current_project_with_additional_settings:P(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:P(6930,3,"true_for_ES2022_and_above_including_ESNext_6930","`true` for ES2022 and above, including ESNext."),List_of_file_name_suffixes_to_search_when_resolving_a_module:P(6931,1,"List_of_file_name_suffixes_to_search_when_resolving_a_module_6931","List of file name suffixes to search when resolving a module."),Variable_0_implicitly_has_an_1_type:P(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:P(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:P(7008,1,"Member_0_implicitly_has_an_1_type_7008","Member '{0}' implicitly has an '{1}' type."),new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type:P(7009,1,"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009","'new' expression, whose target lacks a construct signature, implicitly has an 'any' type."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:P(7010,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010","'{0}', which lacks return-type annotation, implicitly has an '{1}' return type."),Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:P(7011,1,"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011","Function expression, which lacks return-type annotation, implicitly has an '{0}' return type."),This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation:P(7012,1,"This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation_7012","This overload implicitly returns the type '{0}' because it lacks a return type annotation."),Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:P(7013,1,"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013","Construct signature, which lacks return-type annotation, implicitly has an 'any' return type."),Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type:P(7014,1,"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014","Function type, which lacks return-type annotation, implicitly has an '{0}' return type."),Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number:P(7015,1,"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015","Element implicitly has an 'any' type because index expression is not of type 'number'."),Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type:P(7016,1,"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016","Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type."),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature:P(7017,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017","Element implicitly has an 'any' type because type '{0}' has no index signature."),Object_literal_s_property_0_implicitly_has_an_1_type:P(7018,1,"Object_literal_s_property_0_implicitly_has_an_1_type_7018","Object literal's property '{0}' implicitly has an '{1}' type."),Rest_parameter_0_implicitly_has_an_any_type:P(7019,1,"Rest_parameter_0_implicitly_has_an_any_type_7019","Rest parameter '{0}' implicitly has an 'any[]' type."),Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type:P(7020,1,"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020","Call signature, which lacks return-type annotation, implicitly has an 'any' return type."),_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer:P(7022,1,"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022","'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer."),_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:P(7023,1,"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023","'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions:P(7024,1,"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024","Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions."),Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation:P(7025,1,"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025","Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation."),JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists:P(7026,1,"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026","JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists."),Unreachable_code_detected:P(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:P(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:P(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:P(7030,1,"Not_all_code_paths_return_a_value_7030","Not all code paths return a value."),Binding_element_0_implicitly_has_an_1_type:P(7031,1,"Binding_element_0_implicitly_has_an_1_type_7031","Binding element '{0}' implicitly has an '{1}' type."),Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation:P(7032,1,"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032","Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation."),Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation:P(7033,1,"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033","Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation."),Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined:P(7034,1,"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034","Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined."),Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0:P(7035,1,"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035","Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`"),Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0:P(7036,1,"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036","Dynamic import's specifier must be of type 'string', but here has type '{0}'."),Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports:P(7037,3,"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037","Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'."),Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead:P(7038,3,"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038","Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead."),Mapped_object_type_implicitly_has_an_any_template_type:P(7039,1,"Mapped_object_type_implicitly_has_an_any_template_type_7039","Mapped object type implicitly has an 'any' template type."),If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1:P(7040,1,"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040","If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'"),The_containing_arrow_function_captures_the_global_value_of_this:P(7041,1,"The_containing_arrow_function_captures_the_global_value_of_this_7041","The containing arrow function captures the global value of 'this'."),Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used:P(7042,1,"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042","Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used."),Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:P(7043,2,"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043","Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:P(7044,2,"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044","Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage:P(7045,2,"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045","Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage."),Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage:P(7046,2,"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046","Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage."),Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:P(7047,2,"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047","Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage:P(7048,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048","Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage."),Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage:P(7049,2,"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049","Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage."),_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage:P(7050,2,"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050","'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage."),Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1:P(7051,1,"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051","Parameter has a name but no type. Did you mean '{0}: {1}'?"),Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1:P(7052,1,"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052","Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?"),Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1:P(7053,1,"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053","Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'."),No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1:P(7054,1,"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054","No index signature with a parameter of type '{0}' was found on type '{1}'."),_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:P(7055,1,"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055","'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type."),The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed:P(7056,1,"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056","The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed."),yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation:P(7057,1,"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057","'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation."),If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1:P(7058,1,"If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_decl_7058","If the '{0}' package actually exposes this module, try adding a new declaration (.d.ts) file containing `declare module '{1}';`"),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead:P(7059,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Use_an_as_expression_instead_7059","This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead."),This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint:P(7060,1,"This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_cons_7060","This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma or explicit constraint."),A_mapped_type_may_not_declare_properties_or_methods:P(7061,1,"A_mapped_type_may_not_declare_properties_or_methods_7061","A mapped type may not declare properties or methods."),You_cannot_rename_this_element:P(8e3,1,"You_cannot_rename_this_element_8000","You cannot rename this element."),You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library:P(8001,1,"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001","You cannot rename elements that are defined in the standard TypeScript library."),import_can_only_be_used_in_TypeScript_files:P(8002,1,"import_can_only_be_used_in_TypeScript_files_8002","'import ... =' can only be used in TypeScript files."),export_can_only_be_used_in_TypeScript_files:P(8003,1,"export_can_only_be_used_in_TypeScript_files_8003","'export =' can only be used in TypeScript files."),Type_parameter_declarations_can_only_be_used_in_TypeScript_files:P(8004,1,"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004","Type parameter declarations can only be used in TypeScript files."),implements_clauses_can_only_be_used_in_TypeScript_files:P(8005,1,"implements_clauses_can_only_be_used_in_TypeScript_files_8005","'implements' clauses can only be used in TypeScript files."),_0_declarations_can_only_be_used_in_TypeScript_files:P(8006,1,"_0_declarations_can_only_be_used_in_TypeScript_files_8006","'{0}' declarations can only be used in TypeScript files."),Type_aliases_can_only_be_used_in_TypeScript_files:P(8008,1,"Type_aliases_can_only_be_used_in_TypeScript_files_8008","Type aliases can only be used in TypeScript files."),The_0_modifier_can_only_be_used_in_TypeScript_files:P(8009,1,"The_0_modifier_can_only_be_used_in_TypeScript_files_8009","The '{0}' modifier can only be used in TypeScript files."),Type_annotations_can_only_be_used_in_TypeScript_files:P(8010,1,"Type_annotations_can_only_be_used_in_TypeScript_files_8010","Type annotations can only be used in TypeScript files."),Type_arguments_can_only_be_used_in_TypeScript_files:P(8011,1,"Type_arguments_can_only_be_used_in_TypeScript_files_8011","Type arguments can only be used in TypeScript files."),Parameter_modifiers_can_only_be_used_in_TypeScript_files:P(8012,1,"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012","Parameter modifiers can only be used in TypeScript files."),Non_null_assertions_can_only_be_used_in_TypeScript_files:P(8013,1,"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013","Non-null assertions can only be used in TypeScript files."),Type_assertion_expressions_can_only_be_used_in_TypeScript_files:P(8016,1,"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016","Type assertion expressions can only be used in TypeScript files."),Signature_declarations_can_only_be_used_in_TypeScript_files:P(8017,1,"Signature_declarations_can_only_be_used_in_TypeScript_files_8017","Signature declarations can only be used in TypeScript files."),Report_errors_in_js_files:P(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:P(8020,1,"JSDoc_types_can_only_be_used_inside_documentation_comments_8020","JSDoc types can only be used inside documentation comments."),JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags:P(8021,1,"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021","JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags."),JSDoc_0_is_not_attached_to_a_class:P(8022,1,"JSDoc_0_is_not_attached_to_a_class_8022","JSDoc '@{0}' is not attached to a class."),JSDoc_0_1_does_not_match_the_extends_2_clause:P(8023,1,"JSDoc_0_1_does_not_match_the_extends_2_clause_8023","JSDoc '@{0} {1}' does not match the 'extends {2}' clause."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name:P(8024,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024","JSDoc '@param' tag has name '{0}', but there is no parameter with that name."),Class_declarations_cannot_have_more_than_one_augments_or_extends_tag:P(8025,1,"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025","Class declarations cannot have more than one '@augments' or '@extends' tag."),Expected_0_type_arguments_provide_these_with_an_extends_tag:P(8026,1,"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026","Expected {0} type arguments; provide these with an '@extends' tag."),Expected_0_1_type_arguments_provide_these_with_an_extends_tag:P(8027,1,"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027","Expected {0}-{1} type arguments; provide these with an '@extends' tag."),JSDoc_may_only_appear_in_the_last_parameter_of_a_signature:P(8028,1,"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028","JSDoc '...' may only appear in the last parameter of a signature."),JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type:P(8029,1,"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029","JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type."),The_type_of_a_function_declaration_must_match_the_function_s_signature:P(8030,1,"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030","The type of a function declaration must match the function's signature."),You_cannot_rename_a_module_via_a_global_import:P(8031,1,"You_cannot_rename_a_module_via_a_global_import_8031","You cannot rename a module via a global import."),Qualified_name_0_is_not_allowed_without_a_leading_param_object_1:P(8032,1,"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032","Qualified name '{0}' is not allowed without a leading '@param {object} {1}'."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:P(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:P(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:P(8035,1,"You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder_8035","You cannot rename elements that are defined in a 'node_modules' folder."),You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder:P(8036,1,"You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder_8036","You cannot rename elements that are defined in another 'node_modules' folder."),Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files:P(8037,1,"Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files_8037","Type satisfaction expressions can only be used in TypeScript files."),Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export:P(8038,1,"Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export_8038","Decorators may not appear after 'export' or 'export default' if they also appear before 'export'."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:P(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit:P(9005,1,"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005","Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit."),Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:P(9006,1,"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006","Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:P(17e3,1,"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000","JSX attributes must only be assigned a non-empty 'expression'."),JSX_elements_cannot_have_multiple_attributes_with_the_same_name:P(17001,1,"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001","JSX elements cannot have multiple attributes with the same name."),Expected_corresponding_JSX_closing_tag_for_0:P(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),Cannot_use_JSX_unless_the_jsx_flag_is_provided:P(17004,1,"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004","Cannot use JSX unless the '--jsx' flag is provided."),A_constructor_cannot_contain_a_super_call_when_its_class_extends_null:P(17005,1,"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005","A constructor cannot contain a 'super' call when its class extends 'null'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:P(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:P(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:P(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class:P(17009,1,"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009","'super' must be called before accessing 'this' in the constructor of a derived class."),Unknown_type_acquisition_option_0:P(17010,1,"Unknown_type_acquisition_option_0_17010","Unknown type acquisition option '{0}'."),super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class:P(17011,1,"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011","'super' must be called before accessing a property of 'super' in the constructor of a derived class."),_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2:P(17012,1,"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012","'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?"),Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor:P(17013,1,"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013","Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor."),JSX_fragment_has_no_corresponding_closing_tag:P(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:P(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:P(17016,1,"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016","The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option."),An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments:P(17017,1,"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017","An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments."),Unknown_type_acquisition_option_0_Did_you_mean_1:P(17018,1,"Unknown_type_acquisition_option_0_Did_you_mean_1_17018","Unknown type acquisition option '{0}'. Did you mean '{1}'?"),_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:P(17019,1,"_0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17019","'{0}' at the end of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:P(17020,1,"_0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1_17020","'{0}' at the start of a type is not valid TypeScript syntax. Did you mean to write '{1}'?"),Unicode_escape_sequence_cannot_appear_here:P(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:P(18e3,1,"Circularity_detected_while_resolving_configuration_Colon_0_18000","Circularity detected while resolving configuration: {0}"),The_files_list_in_config_file_0_is_empty:P(18002,1,"The_files_list_in_config_file_0_is_empty_18002","The 'files' list in config file '{0}' is empty."),No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2:P(18003,1,"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003","No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'."),File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module:P(80001,2,"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module_80001","File is a CommonJS module; it may be converted to an ES module."),This_constructor_function_may_be_converted_to_a_class_declaration:P(80002,2,"This_constructor_function_may_be_converted_to_a_class_declaration_80002","This constructor function may be converted to a class declaration."),Import_may_be_converted_to_a_default_import:P(80003,2,"Import_may_be_converted_to_a_default_import_80003","Import may be converted to a default import."),JSDoc_types_may_be_moved_to_TypeScript_types:P(80004,2,"JSDoc_types_may_be_moved_to_TypeScript_types_80004","JSDoc types may be moved to TypeScript types."),require_call_may_be_converted_to_an_import:P(80005,2,"require_call_may_be_converted_to_an_import_80005","'require' call may be converted to an import."),This_may_be_converted_to_an_async_function:P(80006,2,"This_may_be_converted_to_an_async_function_80006","This may be converted to an async function."),await_has_no_effect_on_the_type_of_this_expression:P(80007,2,"await_has_no_effect_on_the_type_of_this_expression_80007","'await' has no effect on the type of this expression."),Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers:P(80008,2,"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008","Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers."),JSDoc_typedef_may_be_converted_to_TypeScript_type:P(80009,2,"JSDoc_typedef_may_be_converted_to_TypeScript_type_80009","JSDoc typedef may be converted to TypeScript type."),JSDoc_typedefs_may_be_converted_to_TypeScript_types:P(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:P(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:P(90002,3,"Make_super_call_the_first_statement_in_the_constructor_90002","Make 'super()' call the first statement in the constructor"),Change_extends_to_implements:P(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:P(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:P(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:P(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:P(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:P(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:P(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:P(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:P(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:P(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:P(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:P(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:P(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:P(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:P(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:P(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:P(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:P(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:P(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:P(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:P(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:P(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:P(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:P(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:P(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:P(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:P(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:P(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:P(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:P(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:P(90037,3,"Fix_all_incorrect_return_type_of_an_async_functions_90037","Fix all incorrect return type of an async functions"),Declare_private_method_0:P(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:P(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:P(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:P(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:P(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:P(90055,3,"Remove_type_from_import_declaration_from_0_90055",`Remove 'type' from import declaration from "{0}"`),Remove_type_from_import_of_0_from_1:P(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:P(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:P(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:P(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:P(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:P(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:P(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:P(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:P(95005,3,"Extract_function_95005","Extract function"),Extract_constant:P(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:P(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:P(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:P(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:P(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:P(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:P(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:P(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:P(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:P(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:P(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:P(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:P(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:P(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:P(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:P(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:P(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:P(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:P(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:P(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:P(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:P(95028,3,"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028","Add definite assignment assertions to all uninitialized properties"),Add_undefined_type_to_all_uninitialized_properties:P(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:P(95030,3,"Change_all_jsdoc_style_types_to_TypeScript_95030","Change all jsdoc-style types to TypeScript"),Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types:P(95031,3,"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031","Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)"),Implement_all_unimplemented_interfaces:P(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:P(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:P(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:P(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:P(95036,3,"Make_all_super_calls_the_first_statement_in_their_constructor_95036","Make all 'super()' calls the first statement in their constructor"),Add_qualifier_to_all_unresolved_variables_matching_a_member_name:P(95037,3,"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037","Add qualifier to all unresolved variables matching a member name"),Change_all_extended_interfaces_to_implements:P(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:P(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:P(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:P(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:P(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:P(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:P(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:P(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:P(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:P(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:P(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:P(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:P(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:P(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:P(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:P(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:P(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:P(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:P(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:P(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:P(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:P(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:P(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:P(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:P(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:P(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:P(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:P(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:P(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:P(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:P(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:P(95069,3,"Add_unknown_conversion_for_non_overlapping_types_95069","Add 'unknown' conversion for non-overlapping types"),Add_unknown_to_all_conversions_of_non_overlapping_types:P(95070,3,"Add_unknown_to_all_conversions_of_non_overlapping_types_95070","Add 'unknown' to all conversions of non-overlapping types"),Add_missing_new_operator_to_call:P(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:P(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:P(95073,3,"Add_names_to_all_parameters_without_names_95073","Add names to all parameters without names"),Enable_the_experimentalDecorators_option_in_your_configuration_file:P(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:P(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:P(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:P(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:P(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:P(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:P(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:P(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:P(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:P(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:P(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:P(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:P(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:P(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:P(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:P(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:P(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:P(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:P(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:P(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:P(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:P(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:P(95097,3,"Add_export_to_make_this_file_into_a_module_95097","Add 'export {}' to make this file into a module"),Set_the_target_option_in_your_configuration_file_to_0:P(95098,3,"Set_the_target_option_in_your_configuration_file_to_0_95098","Set the 'target' option in your configuration file to '{0}'"),Set_the_module_option_in_your_configuration_file_to_0:P(95099,3,"Set_the_module_option_in_your_configuration_file_to_0_95099","Set the 'module' option in your configuration file to '{0}'"),Convert_invalid_character_to_its_html_entity_code:P(95100,3,"Convert_invalid_character_to_its_html_entity_code_95100","Convert invalid character to its html entity code"),Convert_all_invalid_characters_to_HTML_entity_code:P(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:P(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:P(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:P(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:P(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:P(95108,3,"Wrap_invalid_character_in_an_expression_container_95108","Wrap invalid character in an expression container"),Wrap_all_invalid_characters_in_an_expression_container:P(95109,3,"Wrap_all_invalid_characters_in_an_expression_container_95109","Wrap all invalid characters in an expression container"),Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file:P(95110,3,"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file_95110","Visit https://aka.ms/tsconfig to read more about this file"),Add_a_return_statement:P(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:P(95112,3,"Remove_braces_from_arrow_function_body_95112","Remove braces from arrow function body"),Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal:P(95113,3,"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113","Wrap the following body with parentheses which should be an object literal"),Add_all_missing_return_statement:P(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:P(95115,3,"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115","Remove braces from all arrow function bodies with relevant issues"),Wrap_all_object_literal_with_parentheses:P(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:P(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:P(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:P(95119,3,"Generate_get_and_set_accessors_for_all_overriding_properties_95119","Generate 'get' and 'set' accessors for all overriding properties"),Wrap_in_JSX_fragment:P(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:P(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:P(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:P(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:P(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:P(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:P(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:P(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:P(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:P(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:P(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:P(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:P(95132,3,"Could_not_find_namespace_import_or_named_imports_95132","Could not find namespace import or named imports"),Selection_is_not_a_valid_type_node:P(95133,3,"Selection_is_not_a_valid_type_node_95133","Selection is not a valid type node"),No_type_could_be_extracted_from_this_type_node:P(95134,3,"No_type_could_be_extracted_from_this_type_node_95134","No type could be extracted from this type node"),Could_not_find_property_for_which_to_generate_accessor:P(95135,3,"Could_not_find_property_for_which_to_generate_accessor_95135","Could not find property for which to generate accessor"),Name_is_not_valid:P(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:P(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:P(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:P(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:P(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:P(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:P(95142,3,"Can_only_convert_logical_AND_access_chains_95142","Can only convert logical AND access chains"),Add_void_to_Promise_resolved_without_a_value:P(95143,3,"Add_void_to_Promise_resolved_without_a_value_95143","Add 'void' to Promise resolved without a value"),Add_void_to_all_Promises_resolved_without_a_value:P(95144,3,"Add_void_to_all_Promises_resolved_without_a_value_95144","Add 'void' to all Promises resolved without a value"),Use_element_access_for_0:P(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:P(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:P(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:P(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:P(95149,3,"Return_type_must_be_inferred_from_a_function_95149","Return type must be inferred from a function"),Could_not_determine_function_return_type:P(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:P(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:P(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:P(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:P(95154,3,"Can_only_convert_string_concatenations_and_string_literals_95154","Can only convert string concatenations and string literals"),Selection_is_not_a_valid_statement_or_statements:P(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:P(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:P(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:P(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:P(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:P(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:P(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:P(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:P(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:P(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:P(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:P(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:P(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:P(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:P(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:P(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:P(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:P(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:P(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:P(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:P(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:P(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:P(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:P(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:P(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:P(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:P(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:P(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:P(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:P(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:P(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:P(95186,3,"Variables_with_multiple_declarations_cannot_be_inlined_95186","Variables with multiple declarations cannot be inlined."),Add_missing_comma_for_object_member_completion_0:P(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:P(18004,1,"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004","No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer."),Classes_may_not_have_a_field_named_constructor:P(18006,1,"Classes_may_not_have_a_field_named_constructor_18006","Classes may not have a field named 'constructor'."),JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array:P(18007,1,"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007","JSX expressions may not use the comma operator. Did you mean to write an array?"),Private_identifiers_cannot_be_used_as_parameters:P(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),An_accessibility_modifier_cannot_be_used_with_a_private_identifier:P(18010,1,"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010","An accessibility modifier cannot be used with a private identifier."),The_operand_of_a_delete_operator_cannot_be_a_private_identifier:P(18011,1,"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011","The operand of a 'delete' operator cannot be a private identifier."),constructor_is_a_reserved_word:P(18012,1,"constructor_is_a_reserved_word_18012","'#constructor' is a reserved word."),Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier:P(18013,1,"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013","Property '{0}' is not accessible outside class '{1}' because it has a private identifier."),The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling:P(18014,1,"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014","The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling."),Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2:P(18015,1,"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015","Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'."),Private_identifiers_are_not_allowed_outside_class_bodies:P(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),The_shadowing_declaration_of_0_is_defined_here:P(18017,1,"The_shadowing_declaration_of_0_is_defined_here_18017","The shadowing declaration of '{0}' is defined here"),The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here:P(18018,1,"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018","The declaration of '{0}' that you probably intended to use is defined here"),_0_modifier_cannot_be_used_with_a_private_identifier:P(18019,1,"_0_modifier_cannot_be_used_with_a_private_identifier_18019","'{0}' modifier cannot be used with a private identifier."),An_enum_member_cannot_be_named_with_a_private_identifier:P(18024,1,"An_enum_member_cannot_be_named_with_a_private_identifier_18024","An enum member cannot be named with a private identifier."),can_only_be_used_at_the_start_of_a_file:P(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Compiler_reserves_name_0_when_emitting_private_identifier_downlevel:P(18027,1,"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027","Compiler reserves name '{0}' when emitting private identifier downlevel."),Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher:P(18028,1,"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028","Private identifiers are only available when targeting ECMAScript 2015 and higher."),Private_identifiers_are_not_allowed_in_variable_declarations:P(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:P(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers."),The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents:P(18031,1,"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031","The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents."),The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some:P(18032,1,"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032","The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some."),Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values:P(18033,1,"Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values_18033","Type '{0}' is not assignable to type '{1}' as required for computed enum member values."),Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment:P(18034,3,"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034","Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'."),Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name:P(18035,1,"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035","Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name."),Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator:P(18036,1,"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036","Class decorators can't be used with static private identifier. Consider removing the experimental decorator."),await_expression_cannot_be_used_inside_a_class_static_block:P(18037,1,"await_expression_cannot_be_used_inside_a_class_static_block_18037","'await' expression cannot be used inside a class static block."),for_await_loops_cannot_be_used_inside_a_class_static_block:P(18038,1,"for_await_loops_cannot_be_used_inside_a_class_static_block_18038","'for await' loops cannot be used inside a class static block."),Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block:P(18039,1,"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039","Invalid use of '{0}'. It cannot be used inside a class static block."),A_return_statement_cannot_be_used_inside_a_class_static_block:P(18041,1,"A_return_statement_cannot_be_used_inside_a_class_static_block_18041","A 'return' statement cannot be used inside a class static block."),_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation:P(18042,1,"_0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation_18042","'{0}' is a type and cannot be imported in JavaScript files. Use '{1}' in a JSDoc type annotation."),Types_cannot_appear_in_export_declarations_in_JavaScript_files:P(18043,1,"Types_cannot_appear_in_export_declarations_in_JavaScript_files_18043","Types cannot appear in export declarations in JavaScript files."),_0_is_automatically_exported_here:P(18044,3,"_0_is_automatically_exported_here_18044","'{0}' is automatically exported here."),Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher:P(18045,1,"Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher_18045","Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher."),_0_is_of_type_unknown:P(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:P(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:P(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:P(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:P(18050,1,"The_value_0_cannot_be_used_here_18050","The value '{0}' cannot be used here."),Compiler_option_0_cannot_be_given_an_empty_string:P(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:P(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:P(18053,1,"Its_type_0_is_not_a_valid_JSX_element_type_18053","Its type '{0}' is not a valid JSX element type."),await_using_statements_cannot_be_used_inside_a_class_static_block:P(18054,1,"await_using_statements_cannot_be_used_inside_a_class_static_block_18054","'await using' statements cannot be used inside a class static block.")}}});function fh(t){return t>=80}function b2e(t){return t===32||fh(t)}function wO(t,u){if(t=2?wO(t,Qqe):u===1?wO(t,Zqe):wO(t,Uqe)}function dTt(t,u){return u>=2?wO(t,Xqe):u===1?wO(t,Yqe):wO(t,qqe)}function hTt(t){const u=[];return t.forEach((s,d)=>{u[s]=d}),u}function Uo(t){return nZe[t]}function f2(t){return A2e.get(t)}function n7(t){const u=[];let s=0,d=0;for(;s127&&Z1(f)&&(u.push(d),d=s);break}}return u.push(d),u}function TO(t,u,s,d){return t.getPositionOfLineAndCharacter?t.getPositionOfLineAndCharacter(u,s,d):FU($3(t),u,s,t.text,d)}function FU(t,u,s,d,f){(u<0||u>=t.length)&&(f?u=u<0?0:u>=t.length?t.length-1:u:H.fail(`Bad line number. Line: ${u}, lineStarts.length: ${t.length} , line map is correct? ${d!==void 0?Zt(t,n7(d)):"unknown"}`));const p=t[u]+s;return f?p>t[u+1]?t[u+1]:typeof d=="string"&&p>d.length?d.length:p:(u=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Z1(t){return t===10||t===13||t===8232||t===8233}function NN(t){return t>=48&&t<=57}function Gqe(t){return NN(t)||t>=65&&t<=70||t>=97&&t<=102}function fTt(t){return t<=1114111}function AU(t){return t>=48&&t<=55}function y2e(t,u){const s=t.charCodeAt(u);switch(s){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return u===0;default:return s>127}}function gs(t,u,s,d,f){if(pg(u))return u;let p=!1;for(;;){const E=t.charCodeAt(u);switch(E){case 13:t.charCodeAt(u+1)===10&&u++;case 10:if(u++,s)return u;p=!!f;continue;case 9:case 11:case 12:case 32:u++;continue;case 47:if(d)break;if(t.charCodeAt(u+1)===47){for(u+=2;u127&&U3(E)){u++;continue}break}return u}}function PN(t,u){if(H.assert(u>=0),u===0||Z1(t.charCodeAt(u-1))){const s=t.charCodeAt(u);if(u+BU=0&&s127&&U3(j)){T&&Z1(j)&&(k=!0),s++;continue}break e}}return T&&(z=f(v,b,B,k,p,z)),z}function NO(t,u,s,d){return Tse(!1,t,u,!1,s,d)}function PO(t,u,s,d){return Tse(!1,t,u,!0,s,d)}function k2e(t,u,s,d,f){return Tse(!0,t,u,!1,s,d,f)}function F2e(t,u,s,d,f){return Tse(!0,t,u,!0,s,d,f)}function Jqe(t,u,s,d,f,p=[]){return p.push({kind:s,pos:t,end:u,hasTrailingNewLine:d}),p}function W_(t,u){return k2e(t,u,Jqe,void 0,void 0)}function gv(t,u){return F2e(t,u,Jqe,void 0,void 0)}function SU(t){const u=Lse.exec(t);if(u)return u[0]}function G_(t,u){return t>=65&&t<=90||t>=97&&t<=122||t===36||t===95||t>127&&kU(t,u)}function Ev(t,u,s){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===36||t===95||(s===1?t===45||t===58:!1)||t>127&&dTt(t,u)}function Lm(t,u,s){let d=Fx(t,0);if(!G_(d,u))return!1;for(let f=_v(d);fk,getStartPos:()=>k,getTokenEnd:()=>b,getTextPos:()=>b,getToken:()=>M,getTokenStart:()=>T,getTokenPos:()=>T,getTokenText:()=>v.substring(T,b),getTokenValue:()=>z,hasUnicodeEscape:()=>(j&1024)!==0,hasExtendedUnicodeEscape:()=>(j&8)!==0,hasPrecedingLineBreak:()=>(j&1)!==0,hasPrecedingJSDocComment:()=>(j&2)!==0,isIdentifier:()=>M===80||M>118,isReservedWord:()=>M>=83&&M<=118,isUnterminated:()=>(j&4)!==0,getCommentDirectives:()=>J,getNumericLiteralFlags:()=>j&25584,getTokenFlags:()=>j,reScanGreaterToken:Ie,reScanAsteriskEqualsToken:st,reScanSlashToken:St,reScanTemplateToken:ht,reScanTemplateHeadOrNoSubstitutionTemplate:Ut,scanJsxIdentifier:Pi,scanJsxAttributeValue:Ai,reScanJsxAttributeValue:Zu,reScanJsxToken:Ni,reScanLessThanToken:ji,reScanHashToken:xn,reScanQuestionToken:Jn,reScanInvalidIdentifier:Gt,scanJsxToken:an,scanJsDocToken:yr,scanJSDocCommentTextToken:aa,scan:Ve,getText:Si,clearCommentDirectives:Dn,setText:Cn,setScriptTarget:oa,setLanguageVariant:Da,setScriptKind:ua,setJSDocParsingMode:Ta,setOnError:tu,resetTokenState:Yo,setTextPos:Yo,setInJSDocType:bo,tryScan:Ln,lookAhead:jn,scanRange:bt};return H.isDebugging&&Object.defineProperty(se,"__debugShowCurrentPositionInText",{get:()=>{const Qe=se.getText();return Qe.slice(0,se.getTokenFullStart())+"║"+Qe.slice(se.getTokenFullStart())}}),se;function ge(Qe,Et=b,Mt,qt){if(f){const Xt=b;b=Et,f(Qe,Mt||0,qt),b=Xt}}function ae(){let Qe=b,Et=!1,Mt=!1,qt="";for(;;){const Xt=v.charCodeAt(b);if(Xt===95){j|=512,Et?(Et=!1,Mt=!0,qt+=v.substring(Qe,b)):(j|=16384,ge(Mt?F.Multiple_consecutive_numeric_separators_are_not_permitted:F.Numeric_separators_are_not_allowed_here,b,1)),b++,Qe=b;continue}if(NN(Xt)){Et=!0,Mt=!1,b++;continue}break}return v.charCodeAt(b-1)===95&&(j|=16384,ge(F.Numeric_separators_are_not_allowed_here,b-1,1)),qt+v.substring(Qe,b)}function Ce(){let Qe=b,Et;if(v.charCodeAt(b)===48)if(b++,v.charCodeAt(b)===95)j|=16896,ge(F.Numeric_separators_are_not_allowed_here,b,1),b--,Et=ae();else if(!ve())j|=8192,Et=""+ +z;else if(!z)Et="0";else{z=""+parseInt(z,8),j|=32;const et=M===41,gt=(et?"-":"")+"0o"+(+z).toString(8);return et&&Qe--,ge(F.Octal_literals_are_not_allowed_Use_the_syntax_0,Qe,b-Qe,gt),9}else Et=ae();let Mt,qt;v.charCodeAt(b)===46&&(b++,Mt=ae());let Xt=b;if(v.charCodeAt(b)===69||v.charCodeAt(b)===101){b++,j|=16,(v.charCodeAt(b)===43||v.charCodeAt(b)===45)&&b++;const et=b,gt=ae();gt?(qt=v.substring(Xt,et)+gt,Xt=b):ge(F.Digit_expected)}let Pe;if(j&512?(Pe=Et,Mt&&(Pe+="."+Mt),qt&&(Pe+=qt)):Pe=v.substring(Qe,Xt),j&8192)return ge(F.Decimals_with_leading_zeros_are_not_allowed,Qe,Xt-Qe),z=""+ +Pe,9;if(Mt!==void 0||j&16)return ne(Qe,Mt===void 0&&!!(j&16)),z=""+ +Pe,9;{z=Pe;const et=Ye();return ne(Qe),et}}function ne(Qe,Et){if(!G_(Fx(v,b),t))return;const Mt=b,{length:qt}=Ke();qt===1&&v[Mt]==="n"?ge(Et?F.A_bigint_literal_cannot_use_exponential_notation:F.A_bigint_literal_must_be_an_integer,Qe,Mt-Qe+1):(ge(F.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Mt,qt),b=Mt)}function ve(){const Qe=b;let Et=!0;for(;NN(v.charCodeAt(b));)AU(v.charCodeAt(b))||(Et=!1),b++;return z=v.substring(Qe,b),Et}function Se(Qe,Et){const Mt=pe(Qe,!1,Et);return Mt?parseInt(Mt,16):-1}function Ne(Qe,Et){return pe(Qe,!0,Et)}function pe(Qe,Et,Mt){let qt=[],Xt=!1,Pe=!1;for(;qt.length=65&&et<=70)et+=32;else if(!(et>=48&&et<=57||et>=97&&et<=102))break;qt.push(et),b++,Pe=!1}return qt.length=B){Mt+=v.substring(qt,b),j|=4,ge(F.Unterminated_string_literal);break}const Xt=v.charCodeAt(b);if(Xt===Et){Mt+=v.substring(qt,b),b++;break}if(Xt===92&&!Qe){Mt+=v.substring(qt,b),Mt+=Be(!0),qt=b;continue}if((Xt===10||Xt===13)&&!Qe){Mt+=v.substring(qt,b),j|=4,ge(F.Unterminated_string_literal);break}b++}return Mt}function xe(Qe){const Et=v.charCodeAt(b)===96;b++;let Mt=b,qt="",Xt;for(;;){if(b>=B){qt+=v.substring(Mt,b),j|=4,ge(F.Unterminated_template_literal),Xt=Et?15:18;break}const Pe=v.charCodeAt(b);if(Pe===96){qt+=v.substring(Mt,b),b++,Xt=Et?15:18;break}if(Pe===36&&b+1=B)return ge(F.Unexpected_end_of_text),"";const Mt=v.charCodeAt(b);switch(b++,Mt){case 48:if(b>=B||!NN(v.charCodeAt(b)))return"\0";case 49:case 50:case 51:b=B?(j|=2048,Qe&&ge(F.Unexpected_end_of_text),v.substring(Et,b)):v.charCodeAt(b)!==125?(j|=2048,Qe&&ge(F.Unterminated_Unicode_escape_sequence),v.substring(Et,b)):(b++,j|=8,F8(Xt)):(j|=2048,Qe&&ge(F.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),v.substring(Et,b))}for(;b1114111&&(ge(F.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Mt=!0),b>=B?(ge(F.Unexpected_end_of_text),Mt=!0):v.charCodeAt(b)===125?b++:(ge(F.Unterminated_Unicode_escape_sequence),Mt=!0),Mt?"":F8(Et)}function Ae(){if(b+5=0&&Ev(Mt,t)){b+=3,j|=8,Qe+=Ge(),Et=b;continue}if(Mt=Ae(),!(Mt>=0&&Ev(Mt,t)))break;j|=1024,Qe+=v.substring(Et,b),Qe+=F8(Mt),b+=6,Et=b}else break}return Qe+=v.substring(Et,b),Qe}function Je(){const Qe=z.length;if(Qe>=2&&Qe<=12){const Et=z.charCodeAt(0);if(Et>=97&&Et<=122){const Mt=$qe.get(z);if(Mt!==void 0)return M=Mt}}return M=80}function ft(Qe){let Et="",Mt=!1,qt=!1;for(;;){const Xt=v.charCodeAt(b);if(Xt===95){j|=512,Mt?(Mt=!1,qt=!0):ge(qt?F.Multiple_consecutive_numeric_separators_are_not_permitted:F.Numeric_separators_are_not_allowed_here,b,1),b++;continue}if(Mt=!0,!NN(Xt)||Xt-48>=Qe)break;Et+=v[b],b++,qt=!1}return v.charCodeAt(b-1)===95&&ge(F.Numeric_separators_are_not_allowed_here,b-1,1),Et}function Ye(){return v.charCodeAt(b)===110?(z+="n",j&384&&(z=SP(z)+"n"),b++,10):(z=""+(j&128?parseInt(z.slice(2),2):j&256?parseInt(z.slice(2),8):+z),9)}function Ve(){k=b,j=0;let Qe=!1;for(;;){if(T=b,b>=B)return M=1;const Et=Fx(v,b);if(b===0){if(Et===65533)return ge(F.File_appears_to_be_binary),b=B,M=8;if(Et===35&&Bse(v,b)){if(b=wse(v,b),u)continue;return M=6}}switch(Et){case 10:case 13:if(j|=1,u){b++;continue}else return Et===13&&b+1=0&&G_(Mt,t))return b+=3,j|=8,z=Ge()+Ke(),M=Je();const qt=Ae();return qt>=0&&G_(qt,t)?(b+=6,j|=1024,z=String.fromCharCode(qt)+Ke(),M=Je()):(ge(F.Invalid_character),b++,M=0);case 35:if(b!==0&&v[b+1]==="!")return ge(F.can_only_be_used_at_the_start_of_a_file),b++,M=0;const Xt=Fx(v,b+1);if(Xt===92){b++;const gt=De();if(gt>=0&&G_(gt,t))return b+=3,j|=8,z="#"+Ge()+Ke(),M=81;const ii=Ae();if(ii>=0&&G_(ii,t))return b+=6,j|=1024,z="#"+String.fromCharCode(ii)+Ke(),M=81;b--}return G_(Xt,t)?(b++,Yt(Xt,t)):(z="#",ge(F.Invalid_character,b++,_v(Et))),M=81;default:const Pe=Yt(Et,t);if(Pe)return M=Pe;if(qg(Et)){b+=_v(Et);continue}else if(Z1(Et)){j|=1,b+=_v(Et);continue}const et=_v(Et);return ge(F.Invalid_character,b,et),b+=et,M=0}}}function We(){switch(oe){case 0:return!0;case 1:return!1}return Y!==3&&Y!==4?!0:oe===3?!1:iZe.test(v.slice(k,b))}function Gt(){H.assert(M===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),b=T=k,j=0;const Qe=Fx(v,b),Et=Yt(Qe,99);return Et?M=Et:(b+=_v(Qe),M)}function Yt(Qe,Et){let Mt=Qe;if(G_(Mt,Et)){for(b+=_v(Mt);b=B)return M=1;let Et=v.charCodeAt(b);if(Et===60)return v.charCodeAt(b+1)===47?(b+=2,M=31):(b++,M=30);if(Et===123)return b++,M=19;let Mt=0;for(;b0)break;U3(Et)||(Mt=b)}b++}return z=v.substring(k,b),Mt===-1?13:12}function Pi(){if(fh(M)){for(;b=B)return M=1;for(let Et=v.charCodeAt(b);b=0&&qg(v.charCodeAt(b-1))&&!(b+1=B)return M=1;const Qe=Fx(v,b);switch(b+=_v(Qe),Qe){case 9:case 11:case 12:case 32:for(;b=0&&G_(Et,t))return b+=3,j|=8,z=Ge()+Ke(),M=Je();const Mt=Ae();return Mt>=0&&G_(Mt,t)?(b+=6,j|=1024,z=String.fromCharCode(Mt)+Ke(),M=Je()):(b++,M=0)}if(G_(Qe,t)){let Et=Qe;for(;b=0),b=Qe,k=Qe,T=Qe,M=0,z=void 0,j=0}function bo(Qe){K+=Qe?1:-1}}function Fx(t,u){return t.codePointAt(u)}function _v(t){return t>=65536?2:1}function mTt(t){if(H.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);const u=Math.floor((t-65536)/1024)+55296,s=(t-65536)%1024+56320;return String.fromCharCode(u,s)}function F8(t){return uZe(t)}var MO,$qe,A2e,Uqe,qqe,Zqe,Yqe,Qqe,Xqe,eZe,tZe,iZe,nZe,BU,Lse,uZe,pTt=o({"src/compiler/scanner.ts"(){Bo(),MO={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},$qe=new Map(Object.entries(MO)),A2e=new Map(Object.entries({...MO,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,">":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),Uqe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],qqe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Zqe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Yqe=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],Qqe=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2208,2228,2230,2237,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,123136,123180,123191,123197,123214,123214,123584,123627,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],Xqe=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2208,2228,2230,2237,2259,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43879,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,67072,67382,67392,67413,67424,67431,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70751,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],eZe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,tZe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,iZe=/@(?:see|link)/i,nZe=hTt(A2e),BU=7,Lse=/^#!.*/,uZe=String.fromCodePoint?t=>String.fromCodePoint(t):mTt}});function Id(t){return om(t)||Pf(t)}function A8(t){return pi(t,bP)}function zO(t){switch(Os(t)){case 99:return"lib.esnext.full.d.ts";case 9:return"lib.es2022.full.d.ts";case 8:return"lib.es2021.full.d.ts";case 7:return"lib.es2020.full.d.ts";case 6:return"lib.es2019.full.d.ts";case 5:return"lib.es2018.full.d.ts";case 4:return"lib.es2017.full.d.ts";case 3:return"lib.es2016.full.d.ts";case 2:return"lib.es6.d.ts";default:return"lib.d.ts"}}function Ec(t){return t.start+t.length}function S2e(t){return t.length===0}function Nse(t,u){return u>=t.start&&u=t.pos&&u<=t.end}function B2e(t,u){return u.start>=t.start&&Ec(u)<=Ec(t)}function rZe(t,u){return w2e(t,u)!==void 0}function w2e(t,u){const s=L2e(t,u);return s&&s.length===0?void 0:s}function aZe(t,u){return RO(t.start,t.length,u.start,u.length)}function wU(t,u,s){return RO(t.start,t.length,u,s)}function RO(t,u,s,d){const f=t+u,p=s+d;return s<=f&&p>=t}function T2e(t,u){return u<=Ec(t)&&u>=t.start}function L2e(t,u){const s=Math.max(t.start,u.start),d=Math.min(Ec(t),Ec(u));return s<=d?Vc(s,d):void 0}function d1(t,u){if(t<0)throw new Error("start < 0");if(u<0)throw new Error("length < 0");return{start:t,length:u}}function Vc(t,u){return d1(t,u-t)}function MN(t){return d1(t.span.start,t.newLength)}function N2e(t){return S2e(t.span)&&t.newLength===0}function OO(t,u){if(u<0)throw new Error("newLength < 0");return{span:t,newLength:u}}function P2e(t){if(t.length===0)return tj;if(t.length===1)return t[0];const u=t[0];let s=u.span.start,d=Ec(u.span),f=s+u.newLength;for(let p=1;p=2&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95?"_"+t:t}function Yr(t){const u=t;return u.length>=3&&u.charCodeAt(0)===95&&u.charCodeAt(1)===95&&u.charCodeAt(2)===95?u.substr(1):u}function fu(t){return Yr(t.escapedText)}function Dv(t){const u=f2(t.escapedText);return u?ur(u,uf):void 0}function lc(t){return t.valueDeclaration&&ph(t.valueDeclaration)?fu(t.valueDeclaration.name):Yr(t.escapedName)}function lZe(t){const u=t.parent.parent;if(u){if(Q1(u))return Mse(u);switch(u.kind){case 243:if(u.declarationList&&u.declarationList.declarations[0])return Mse(u.declarationList.declarations[0]);break;case 244:let s=u.expression;switch(s.kind===226&&s.operatorToken.kind===64&&(s=s.left),s.kind){case 211:return s.name;case 212:const d=s.argumentExpression;if(at(d))return d}break;case 217:return Mse(u.expression);case 256:{if(Q1(u.statement)||Wt(u.statement))return Mse(u.statement);break}}}}function Mse(t){const u=Za(t);return u&&at(u)?u:void 0}function jO(t,u){return!!(mh(t)&&at(t.name)&&fu(t.name)===fu(u)||Jl(t)&&Oe(t.declarationList.declarations,s=>jO(s,u)))}function R2e(t){return t.name||lZe(t)}function mh(t){return!!t.name}function TU(t){switch(t.kind){case 80:return t;case 355:case 348:{const{name:s}=t;if(s.kind===166)return s.right;break}case 213:case 226:{const s=t;switch(Xl(s)){case 1:case 4:case 5:case 3:return kq(s.left);case 7:case 8:case 9:return s.arguments[1];default:return}}case 353:return R2e(t);case 347:return lZe(t);case 277:{const{expression:s}=t;return at(s)?s:void 0}case 212:const u=t;if(yq(u))return u.argumentExpression}return t.name}function Za(t){if(t!==void 0)return TU(t)||(A0(t)||q0(t)||Xd(t)?zse(t):void 0)}function zse(t){if(t.parent){if(Jc(t.parent)||js(t.parent))return t.parent.name;if(Xn(t.parent)&&t===t.parent.right){if(at(t.parent.left))return t.parent.left;if(I0(t.parent.left))return kq(t.parent.left)}else if(na(t.parent)&&at(t.parent.name))return t.parent.name}else return}function Ax(t){if(o4(t))return ti(t.modifiers,g1)}function p2(t){if(Yu(t,98303))return ti(t.modifiers,Qo)}function cZe(t,u){if(t.name)if(at(t.name)){const s=t.name.escapedText;return HO(t.parent,u).filter(d=>Eg(d)&&at(d.name)&&d.name.escapedText===s)}else{const s=t.parent.parameters.indexOf(t);H.assert(s>-1,"Parameters should always be in their parents' parameter list");const d=HO(t.parent,u).filter(Eg);if(s_g(d)&&d.typeParameters.some(f=>f.name.escapedText===s))}function j2e(t){return dZe(t,!1)}function V2e(t){return dZe(t,!0)}function H2e(t){return!!V4(t,Eg)}function K2e(t){return V4(t,LB)}function W2e(t){return Vse(t,Nce)}function Ise(t){return V4(t,DFe)}function hZe(t){return V4(t,Sce)}function G2e(t){return V4(t,Sce,!0)}function fZe(t){return V4(t,Bce)}function J2e(t){return V4(t,Bce,!0)}function mZe(t){return V4(t,wce)}function $2e(t){return V4(t,wce,!0)}function pZe(t){return V4(t,Tce)}function U2e(t){return V4(t,Tce,!0)}function q2e(t){return V4(t,gY,!0)}function Rse(t){return V4(t,Lce)}function Z2e(t){return V4(t,Lce,!0)}function Ose(t){return V4(t,LV)}function LU(t){return V4(t,xFe)}function Y2e(t){return V4(t,EY)}function gZe(t){return V4(t,_g)}function jse(t){return V4(t,_Y)}function xv(t){const u=V4(t,XP);if(u&&u.typeExpression&&u.typeExpression.type)return u}function vv(t){let u=V4(t,XP);return!u&&io(t)&&(u=Le(B8(t),s=>!!s.typeExpression)),u&&u.typeExpression&&u.typeExpression.type}function VO(t){const u=Y2e(t);if(u&&u.typeExpression)return u.typeExpression.type;const s=xv(t);if(s&&s.typeExpression){const d=s.typeExpression.type;if(fm(d)){const f=Le(d.members,CB);return f&&f.type}if(u3(d)||TB(d))return d.type}}function HO(t,u){var s;if(!wj(t))return _t;let d=(s=t.jsDoc)==null?void 0:s.jsDocCache;if(d===void 0||u){const f=I0e(t,u);H.assert(f.length<2||f[0]!==f[1]),d=ju(f,p=>Vp(p)?p.tags:p),u||(t.jsDoc??(t.jsDoc=[]),t.jsDoc.jsDocCache=d)}return d}function Cv(t){return HO(t,!1)}function EZe(t){return HO(t,!0)}function V4(t,u,s){return Le(HO(t,s),u)}function Vse(t,u){return Cv(t).filter(u)}function _Ze(t,u){return Cv(t).filter(s=>s.kind===u)}function KO(t){return typeof t=="string"?t:t==null?void 0:t.map(u=>u.kind===328?u.text:ETt(u)).join("")}function ETt(t){const u=t.kind===331?"link":t.kind===332?"linkcode":"linkplain",s=t.name?zf(t.name):"",d=t.name&&t.text.startsWith("://")?"":" ";return`{@${u} ${s}${d}${t.text}}`}function Sx(t){if(Ov(t)){if(NB(t.parent)){const u=iP(t.parent);if(u&&S(u.tags))return ju(u.tags,s=>_g(s)?s.typeParameters:void 0)}return _t}if(G4(t))return H.assert(t.parent.kind===327),ju(t.parent.tags,u=>_g(u)?u.typeParameters:void 0);if(t.typeParameters||TFe(t)&&t.typeParameters)return t.typeParameters;if(Qn(t)){const u=Oq(t);if(u.length)return u;const s=vv(t);if(s&&u3(s)&&s.typeParameters)return s.typeParameters}return _t}function w8(t){return t.constraint?t.constraint:_g(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}function J_(t){return t.kind===80||t.kind===81}function NU(t){return t.kind===178||t.kind===177}function PU(t){return Iu(t)&&!!(t.flags&64)}function Hse(t){return U0(t)&&!!(t.flags&64)}function $y(t){return Mo(t)&&!!(t.flags&64)}function Y1(t){const u=t.kind;return!!(t.flags&64)&&(u===211||u===212||u===213||u===235)}function IN(t){return Y1(t)&&!O7(t)&&!!t.questionDotToken}function MU(t){return IN(t.parent)&&t.parent.expression===t}function RN(t){return!Y1(t.parent)||IN(t.parent)||t!==t.parent.expression}function Kse(t){return t.kind===226&&t.operatorToken.kind===61}function q3(t){return X4(t)&&at(t.typeName)&&t.typeName.escapedText==="const"&&!t.typeArguments}function Np(t){return Dc(t,8)}function zU(t){return O7(t)&&!!(t.flags&64)}function ON(t){return t.kind===252||t.kind===251}function Wse(t){return t.kind===280||t.kind===279}function Q2e(t){switch(t.kind){case 309:case 310:return!0;default:return!1}}function Gse(t){return Q2e(t)||t.kind===307||t.kind===311}function WO(t){return t.kind===355||t.kind===348}function DZe(t){return GO(t.kind)}function GO(t){return t>=166}function Jse(t){return t>=0&&t<=165}function u7(t){return Jse(t.kind)}function g2(t){return gu(t,"pos")&&gu(t,"end")}function jN(t){return 9<=t&&t<=15}function E2(t){return jN(t.kind)}function $se(t){switch(t.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Bx(t){return 15<=t&&t<=18}function X2e(t){return Bx(t.kind)}function IU(t){const u=t.kind;return u===17||u===18}function r7(t){return bf(t)||eh(t)}function RU(t){switch(t.kind){case 276:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 274:return t.parent.isTypeOnly;case 273:case 271:return t.isTypeOnly}return!1}function ebe(t){switch(t.kind){case 281:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 278:return t.isTypeOnly&&!!t.moduleSpecifier&&!t.exportClause;case 280:return t.parent.isTypeOnly}return!1}function _2(t){return RU(t)||ebe(t)}function Use(t){return t.kind===11||Bx(t.kind)}function tbe(t){return us(t)||at(t)}function al(t){var u;return at(t)&&((u=t.emitNode)==null?void 0:u.autoGenerate)!==void 0}function Uy(t){var u;return Xr(t)&&((u=t.emitNode)==null?void 0:u.autoGenerate)!==void 0}function JO(t){const u=t.emitNode.autoGenerate.flags;return!!(u&32)&&!!(u&16)&&!!(u&8)}function ph(t){return(ko(t)||N8(t))&&Xr(t.name)}function T8(t){return Iu(t)&&Xr(t.name)}function XD(t){switch(t){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function VN(t){return!!(_7(t)&31)}function qse(t){return VN(t)||t===126||t===164||t===129}function Qo(t){return XD(t.kind)}function sm(t){const u=t.kind;return u===166||u===80}function Sc(t){const u=t.kind;return u===80||u===81||u===11||u===9||u===167}function qy(t){const u=t.kind;return u===80||u===206||u===207}function Co(t){return!!t&&a7(t.kind)}function L8(t){return!!t&&(a7(t.kind)||zl(t))}function $0(t){return t&&xZe(t.kind)}function HN(t){return t.kind===112||t.kind===97}function xZe(t){switch(t){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function a7(t){switch(t){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return xZe(t)}}function Zse(t){return la(t)||rE(t)||po(t)&&Co(t.parent)}function Zd(t){const u=t.kind;return u===176||u===172||u===174||u===177||u===178||u===181||u===175||u===240}function mr(t){return t&&(t.kind===263||t.kind===231)}function wx(t){return t&&(t.kind===177||t.kind===178)}function ef(t){return ko(t)&&eE(t)}function ibe(t){return Qn(t)&&EZ(t)?(!A2(t)||!Ox(t.expression))&&!ak(t,!0):t.parent&&mr(t.parent)&&ko(t)&&!eE(t)}function N8(t){switch(t.kind){case 174:case 177:case 178:return!0;default:return!1}}function nbe(t){switch(t.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function ol(t){return Qo(t)||g1(t)}function Zy(t){const u=t.kind;return u===180||u===179||u===171||u===173||u===181||u===177||u===178}function OU(t){return Zy(t)||Zd(t)}function Z3(t){const u=t.kind;return u===303||u===304||u===305||u===174||u===177||u===178}function Qr(t){return _le(t.kind)}function ube(t){switch(t.kind){case 184:case 185:return!0}return!1}function So(t){if(t){const u=t.kind;return u===207||u===206}return!1}function KN(t){const u=t.kind;return u===209||u===210}function jU(t){const u=t.kind;return u===208||u===232}function $O(t){switch(t.kind){case 260:case 169:case 208:return!0}return!1}function rbe(t){return na(t)||io(t)||qO(t)||ZO(t)}function UO(t){return Yse(t)||Qse(t)}function Yse(t){switch(t.kind){case 206:case 210:return!0}return!1}function qO(t){switch(t.kind){case 208:case 303:case 304:case 305:return!0}return!1}function Qse(t){switch(t.kind){case 207:case 209:return!0}return!1}function ZO(t){switch(t.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return ld(t,!0)}function abe(t){const u=t.kind;return u===211||u===166||u===205}function obe(t){const u=t.kind;return u===211||u===166}function Xse(t){return D2(t)||R2(t)}function D2(t){switch(t.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function $E(t){return t.kind===213||t.kind===214}function P8(t){const u=t.kind;return u===228||u===15}function Df(t){return vZe(Np(t).kind)}function vZe(t){switch(t){case 211:case 212:case 214:case 213:case 284:case 285:case 288:case 215:case 209:case 217:case 210:case 231:case 218:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 228:case 97:case 106:case 110:case 112:case 108:case 235:case 233:case 236:case 102:case 282:return!0;default:return!1}}function e0e(t){return CZe(Np(t).kind)}function CZe(t){switch(t){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return vZe(t)}}function sbe(t){switch(t.kind){case 225:return!0;case 224:return t.operator===46||t.operator===47;default:return!1}}function lbe(t){switch(t.kind){case 106:case 112:case 97:case 224:return!0;default:return E2(t)}}function Wt(t){return _Tt(Np(t).kind)}function _Tt(t){switch(t){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return CZe(t)}}function Yy(t){const u=t.kind;return u===216||u===234}function bZe(t){return yce(t)||dY(t)}function Tx(t,u){switch(t.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return u&&Tx(t.statement,u)}return!1}function cbe(t){return tc(t)||Gc(t)}function dbe(t){return Oe(t,cbe)}function VU(t){return!aj(t)&&!tc(t)&&!Yu(t,32)&&!N1(t)}function YO(t){return aj(t)||tc(t)||Yu(t,32)}function M8(t){return t.kind===249||t.kind===250}function HU(t){return po(t)||Wt(t)}function t0e(t){return po(t)}function a4(t){return Ad(t)||Wt(t)}function hbe(t){const u=t.kind;return u===268||u===267||u===80}function yZe(t){const u=t.kind;return u===268||u===267}function kZe(t){const u=t.kind;return u===80||u===267}function i0e(t){const u=t.kind;return u===275||u===274}function QO(t){return t.kind===267||t.kind===266}function Zg(t){switch(t.kind){case 219:case 226:case 208:case 213:case 179:case 263:case 231:case 175:case 176:case 185:case 180:case 212:case 266:case 306:case 277:case 278:case 281:case 262:case 218:case 184:case 177:case 80:case 273:case 271:case 276:case 181:case 264:case 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329:case 291:case 292:case 293:case 200:case 174:case 173:case 267:case 202:case 280:case 270:case 274:case 214:case 15:case 9:case 210:case 169:case 211:case 303:case 172:case 171:case 178:case 304:case 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function UE(t){switch(t.kind){case 219:case 241:case 179:case 269:case 299:case 175:case 194:case 176:case 185:case 180:case 248:case 249:case 250:case 262:case 218:case 184:case 177:case 181:case 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function DTt(t){return t===219||t===208||t===263||t===231||t===175||t===176||t===266||t===306||t===281||t===262||t===218||t===177||t===273||t===271||t===276||t===264||t===291||t===174||t===173||t===267||t===270||t===274||t===280||t===169||t===303||t===172||t===171||t===178||t===304||t===265||t===168||t===260||t===353||t===345||t===355}function fbe(t){return t===262||t===282||t===263||t===264||t===265||t===266||t===267||t===272||t===271||t===278||t===277||t===270}function mbe(t){return t===252||t===251||t===259||t===246||t===244||t===242||t===249||t===250||t===248||t===245||t===256||t===253||t===255||t===257||t===258||t===243||t===247||t===254||t===359}function Q1(t){return t.kind===168?t.parent&&t.parent.kind!==352||Qn(t):DTt(t.kind)}function pbe(t){return fbe(t.kind)}function XO(t){return mbe(t.kind)}function ia(t){const u=t.kind;return mbe(u)||fbe(u)||xTt(t)}function xTt(t){return t.kind!==241||t.parent!==void 0&&(t.parent.kind===258||t.parent.kind===299)?!1:!k2(t)}function gbe(t){const u=t.kind;return mbe(u)||fbe(u)||u===241}function Ebe(t){const u=t.kind;return u===283||u===166||u===80}function WN(t){const u=t.kind;return u===110||u===80||u===211||u===295}function ej(t){const u=t.kind;return u===284||u===294||u===285||u===12||u===288}function KU(t){const u=t.kind;return u===291||u===293}function _be(t){const u=t.kind;return u===11||u===294}function zh(t){const u=t.kind;return u===286||u===285}function WU(t){const u=t.kind;return u===296||u===297}function z8(t){return t.kind>=316&&t.kind<=357}function GU(t){return t.kind===327||t.kind===326||t.kind===328||o7(t)||I8(t)||K7(t)||Ov(t)}function I8(t){return t.kind>=334&&t.kind<=357}function e5(t){return t.kind===178}function Lx(t){return t.kind===177}function lm(t){if(!wj(t))return!1;const{jsDoc:u}=t;return!!u&&u.length>0}function JU(t){return!!t.type}function Nx(t){return!!t.initializer}function Qy(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function n0e(t){return t.kind===291||t.kind===293||Z3(t)}function $U(t){return t.kind===183||t.kind===233}function Dbe(t){let u=xbe;for(const s of t){if(!s.length)continue;let d=0;for(;ds.kind===u)}function Vo(t){const u=new Map;if(t)for(const s of t)u.set(s.escapedName,s);return u}function qE(t){return(t.flags&33554432)!==0}function CTt(){var t="";const u=s=>t+=s;return{getText:()=>t,write:u,rawWrite:u,writeKeyword:u,writeOperator:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeLiteral:u,writeParameter:u,writeProperty:u,writeSymbol:(s,d)=>u(s),writeTrailingSemicolon:u,writeComment:u,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&U3(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:Is,decreaseIndent:Is,clear:()=>t=""}}function UU(t,u){return t.configFilePath!==u.configFilePath||Cbe(t,u)}function Cbe(t,u){return R8(t,u,NY)}function bbe(t,u){return R8(t,u,pde)}function R8(t,u,s){return t!==u&&s.some(d=>!dZ(tZ(t,d),tZ(u,d)))}function ybe(t,u){for(;;){const s=u(t);if(s==="quit")return;if(s!==void 0)return s;if(la(t))return;t=t.parent}}function h1(t,u){const s=t.entries();for(const[d,f]of s){const p=u(f,d);if(p)return p}}function U_(t,u){const s=t.keys();for(const d of s){const f=u(d);if(f)return f}}function qU(t,u){t.forEach((s,d)=>{u.set(d,s)})}function GN(t){const u=cV.getText();try{return t(cV),cV.getText()}finally{cV.clear(),cV.writeKeyword(u)}}function ij(t){return t.end-t.pos}function a0e(t,u){return t.path===u.path&&!t.prepend==!u.prepend&&!t.circular==!u.circular}function kbe(t,u){return t===u||t.resolvedModule===u.resolvedModule||!!t.resolvedModule&&!!u.resolvedModule&&t.resolvedModule.isExternalLibraryImport===u.resolvedModule.isExternalLibraryImport&&t.resolvedModule.extension===u.resolvedModule.extension&&t.resolvedModule.resolvedFileName===u.resolvedModule.resolvedFileName&&t.resolvedModule.originalPath===u.resolvedModule.originalPath&&bTt(t.resolvedModule.packageId,u.resolvedModule.packageId)&&t.node10Result===u.node10Result}function o0e(t,u,s,d,f){var p;const E=(p=u.getResolvedModule(t,s,d))==null?void 0:p.node10Result,v=E?ro(void 0,F.There_are_types_at_0_but_this_result_could_not_be_resolved_when_respecting_package_json_exports_The_1_library_may_need_to_update_its_package_json_or_typings,E,E.includes(o_+"@types/")?`@types/${JB(f)}`:f):u.typesPackageExists(f)?ro(void 0,F.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1,f,JB(f)):u.packageBundlesTypes(f)?ro(void 0,F.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,f,s):ro(void 0,F.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,s,JB(f));return v&&(v.repopulateInfo=()=>({moduleReference:s,mode:d,packageName:f===s?void 0:f})),v}function bTt(t,u){return t===u||!!t&&!!u&&t.name===u.name&&t.subModuleName===u.subModuleName&&t.version===u.version}function ZU({name:t,subModuleName:u}){return u?`${t}/${u}`:t}function Px(t){return`${ZU(t)}@${t.version}`}function Fbe(t,u){return t===u||t.resolvedTypeReferenceDirective===u.resolvedTypeReferenceDirective||!!t.resolvedTypeReferenceDirective&&!!u.resolvedTypeReferenceDirective&&t.resolvedTypeReferenceDirective.resolvedFileName===u.resolvedTypeReferenceDirective.resolvedFileName&&!!t.resolvedTypeReferenceDirective.primary==!!u.resolvedTypeReferenceDirective.primary&&t.resolvedTypeReferenceDirective.originalPath===u.resolvedTypeReferenceDirective.originalPath}function s0e(t,u,s,d,f,p){H.assert(t.length===s.length);for(let E=0;E=0),$3(u)[t]}function FZe(t){const u=zn(t),s=s0(u,t.pos);return`${u.fileName}(${s.line+1},${s.character+1})`}function uj(t,u){H.assert(t>=0);const s=$3(u),d=t,f=u.text;if(d+1===s.length)return f.length-1;{const p=s[d];let E=s[d+1]-1;for(H.assert(Z1(f.charCodeAt(E)));p<=E&&Z1(f.charCodeAt(E));)E--;return E}}function QU(t,u,s){return!(s&&s(u))&&!t.identifiers.has(u)}function Ql(t){return t===void 0?!0:t.pos===t.end&&t.pos>=0&&t.kind!==1}function H4(t){return!Ql(t)}function Sbe(t,u){return Bl(t)?u===t.expression:zl(t)?u===t.modifiers:Mm(t)?u===t.initializer:ko(t)?u===t.questionToken&&ef(t):Jc(t)?u===t.modifiers||u===t.questionToken||u===t.exclamationToken||rj(t.modifiers,u,ol):pm(t)?u===t.equalsToken||u===t.modifiers||u===t.questionToken||u===t.exclamationToken||rj(t.modifiers,u,ol):dc(t)?u===t.exclamationToken:hc(t)?u===t.typeParameters||u===t.type||rj(t.typeParameters,u,Bl):zm(t)?u===t.typeParameters||rj(t.typeParameters,u,Bl):jf(t)?u===t.typeParameters||u===t.type||rj(t.typeParameters,u,Bl):wV(t)?u===t.modifiers||rj(t.modifiers,u,ol):!1}function rj(t,u,s){return!t||Ha(u)||!s(u)?!1:kt(t,u)}function AZe(t,u,s){if(u===void 0||u.length===0)return t;let d=0;for(;d[`${s0(t,E.range.end).line}`,E])),d=new Map;return{getUnusedExpectations:f,markUsed:p};function f(){return ga(s.entries()).filter(([E,v])=>v.type===0&&!d.get(E)).map(([E,v])=>v)}function p(E){return s.has(`${E}`)?(d.set(`${E}`,!0),!0):!1}}function ek(t,u,s){return Ql(t)?t.pos:z8(t)||t.kind===12?gs((u||zn(t)).text,t.pos,!1,!0):s&&lm(t)?ek(t.jsDoc[0],u):t.kind===358&&t._children.length>0?ek(t._children[0],u,s):gs((u||zn(t)).text,t.pos,!1,!1,Ej(t))}function d0e(t,u){const s=!Ql(t)&&Hp(t)?lt(t.modifiers,g1):void 0;return s?gs((u||zn(t)).text,s.end):ek(t,u)}function x2(t,u,s=!1){return JN(t.text,u,s)}function kTt(t){return!!Tn(t,kk)}function eq(t){return!!(Gc(t)&&t.exportClause&&u_(t.exportClause)&&t.exportClause.name.escapedText==="default")}function JN(t,u,s=!1){if(Ql(u))return"";let d=t.substring(s?u.pos:gs(t,u.pos),u.end);return kTt(u)&&(d=d.split(/\r\n|\n|\r/).map(f=>f.replace(/^\s*\*/,"").trimStart()).join(` +`)),d}function Hc(t,u=!1){return x2(zn(t),t,u)}function FTt(t){return t.pos}function j8(t,u){return Kl(t,u,FTt,nl)}function bs(t){const u=t.emitNode;return u&&u.flags||0}function Pp(t){const u=t.emitNode;return u&&u.internalFlags||0}function wbe(t,u,s){if(u&&ATt(t,s))return x2(u,t);switch(t.kind){case 11:{const d=s&2?X0e:s&1||bs(t)&16777216?Av:jj;return t.singleQuote?"'"+d(t.text,39)+"'":'"'+d(t.text,34)+'"'}case 15:case 16:case 17:case 18:{const d=s&1||bs(t)&16777216?Av:jj,f=t.rawText??RTt(d(t.text,96));switch(t.kind){case 15:return"`"+f+"`";case 16:return"`"+f+"${";case 17:return"}"+f+"${";case 18:return"}"+f+"`"}break}case 9:case 10:return t.text;case 14:return s&4&&t.isUnterminated?t.text+(t.text.charCodeAt(t.text.length-1)===92?" /":"/"):t.text}return H.fail(`Literal kind '${t.kind}' not accounted for.`)}function ATt(t,u){if(sl(t)||!t.parent||u&4&&t.isUnterminated)return!1;if(Of(t)){if(t.numericLiteralFlags&26656)return!1;if(t.numericLiteralFlags&512)return!!(u&8)}return!iY(t)}function Tbe(t){return Ja(t)?'"'+jj(t)+'"':""+t}function Lbe(t){return Ac(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function h0e(t){return(QD(t)&7)!==0||f0e(t)}function f0e(t){const u=XE(t);return u.kind===260&&u.parent.kind===299}function N1(t){return _c(t)&&(t.name.kind===11||Yg(t))}function tq(t){return _c(t)&&t.name.kind===11}function m0e(t){return _c(t)&&us(t.name)}function Nbe(t){return _c(t)||at(t)}function $N(t){return STt(t.valueDeclaration)}function STt(t){return!!t&&t.kind===267&&!t.body}function Pbe(t){return t.kind===312||t.kind===267||L8(t)}function Yg(t){return!!(t.flags&2048)}function v2(t){return N1(t)&&p0e(t)}function p0e(t){switch(t.parent.kind){case 312:return wc(t.parent);case 268:return N1(t.parent.parent)&&la(t.parent.parent.parent)&&!wc(t.parent.parent.parent)}return!1}function g0e(t){var u;return(u=t.declarations)==null?void 0:u.find(s=>!v2(s)&&!(_c(s)&&Yg(s)))}function BTt(t){return t===1||t===100||t===199}function s7(t,u){return wc(t)||BTt(m1(u))&&!!t.commonJsModuleIndicator}function E0e(t,u){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return t.isDeclarationFile?!1:Z4(u,"alwaysStrict")||AFe(t.statements)?!0:wc(t)||mg(u)?m1(u)>=5?!0:!u.noImplicitUseStrict:!1}function _0e(t){return!!(t.flags&33554432)||Yu(t,128)}function D0e(t,u){switch(t.kind){case 312:case 269:case 299:case 267:case 248:case 249:case 250:case 176:case 174:case 177:case 178:case 262:case 218:case 219:case 172:case 175:return!0;case 241:return!L8(u)}return!1}function x0e(t){switch(H.type(t),t.kind){case 345:case 353:case 330:return!0;default:return v0e(t)}}function v0e(t){switch(H.type(t),t.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function tk(t){switch(t.kind){case 272:case 271:return!0;default:return!1}}function Mbe(t){return tk(t)||F2(t)}function iq(t){switch(t.kind){case 272:case 271:case 243:case 263:case 262:case 267:case 265:case 264:case 266:return!0;default:return!1}}function zbe(t){return aj(t)||_c(t)||nD(t)||dm(t)}function aj(t){return tk(t)||Gc(t)}function C0e(t){return Tn(t.parent,u=>!!(Lde(u)&1))}function YE(t){return Tn(t.parent,u=>D0e(u,u.parent))}function Ibe(t,u){let s=YE(t);for(;s;)u(s),s=YE(s)}function b0(t){return!t||ij(t)===0?"(Missing)":Hc(t)}function Rbe(t){return t.declaration?b0(t.declaration.parameters[0].name):void 0}function oj(t){return t.kind===167&&!Pm(t.expression)}function UN(t){var u;switch(t.kind){case 80:case 81:return(u=t.emitNode)!=null&&u.autoGenerate?void 0:t.escapedText;case 11:case 9:case 15:return Al(t.text);case 167:return Pm(t.expression)?Al(t.expression.text):void 0;case 295:return k7(t);default:return H.assertNever(t)}}function V8(t){return H.checkDefined(UN(t))}function zf(t){switch(t.kind){case 110:return"this";case 81:case 80:return ij(t)===0?fu(t):Hc(t);case 166:return zf(t.left)+"."+zf(t.right);case 211:return at(t.name)||Xr(t.name)?zf(t.expression)+"."+zf(t.name):H.assertNever(t.name);case 318:return zf(t.left)+zf(t.right);case 295:return zf(t.namespace)+":"+zf(t.name);default:return H.assertNever(t)}}function Su(t,u,...s){const d=zn(t);return K4(d,t,u,...s)}function H8(t,u,s,...d){const f=gs(t.text,u.pos);return Rd(t,f,u.end-f,s,...d)}function K4(t,u,s,...d){const f=C2(t,u);return Rd(t,f.start,f.length,s,...d)}function Y3(t,u,s,d){const f=C2(t,u);return nq(t,f.start,f.length,s,d)}function sj(t,u,s,d){const f=gs(t.text,u.pos);return nq(t,f,u.end-f,s,d)}function Obe(t,u,s){H.assertGreaterThanOrEqual(u,0),H.assertGreaterThanOrEqual(s,0),H.assertLessThanOrEqual(u,t.length),H.assertLessThanOrEqual(u+s,t.length)}function nq(t,u,s,d,f){return Obe(t.text,u,s),{file:t,start:u,length:s,code:d.code,category:d.category,messageText:d.next?d:d.messageText,relatedInformation:f}}function b0e(t,u,s){return{file:t,start:0,length:0,code:u.code,category:u.category,messageText:u.next?u:u.messageText,relatedInformation:s}}function jbe(t){return typeof t.messageText=="string"?{code:t.code,category:t.category,messageText:t.messageText,next:t.next}:t.messageText}function Vbe(t,u,s){return{file:t,start:u.pos,length:u.end-u.pos,code:s.code,category:s.category,messageText:s.message}}function QE(t,u){const s=YD(t.languageVersion,!0,t.languageVariant,t.text,void 0,u);s.scan();const d=s.getTokenStart();return Vc(d,s.getTokenEnd())}function Hbe(t,u){const s=YD(t.languageVersion,!0,t.languageVariant,t.text,void 0,u);return s.scan(),s.getToken()}function wTt(t,u){const s=gs(t.text,u.pos);if(u.body&&u.body.kind===241){const{line:d}=s0(t,u.body.pos),{line:f}=s0(t,u.body.end);if(d0?u.statements[0].pos:u.end;return Vc(p,E)}case 253:case 229:{const p=gs(t.text,u.pos);return QE(t,p)}case 238:{const p=gs(t.text,u.expression.end);return QE(t,p)}case 357:{const p=gs(t.text,u.tagName.pos);return QE(t,p)}}if(s===void 0)return QE(t,u.pos);H.assert(!Vp(s));const d=Ql(s),f=d||w7(u)?s.pos:gs(t.text,s.pos);return d?(H.assert(f===s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),H.assert(f===s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(H.assert(f>=s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),H.assert(f<=s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Vc(f,s.end)}function cm(t){return(t.externalModuleIndicator||t.commonJsModuleIndicator)!==void 0}function W4(t){return t.scriptKind===6}function b2(t){return!!(m2(t)&4096)}function uq(t){return!!(m2(t)&8&&!Mf(t,t.parent))}function lj(t){return(QD(t)&7)===6}function cj(t){return(QD(t)&7)===4}function K8(t){return(QD(t)&7)===2}function rq(t){return(QD(t)&7)===1}function ik(t){return t.kind===213&&t.expression.kind===108}function dm(t){return t.kind===213&&t.expression.kind===102}function W8(t){return $P(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function zx(t){return nD(t)&&Mv(t.argument)&&us(t.argument.literal)}function Mp(t){return t.kind===244&&t.expression.kind===11}function dj(t){return!!(bs(t)&2097152)}function aq(t){return dj(t)&&ed(t)}function TTt(t){return at(t.name)&&!t.initializer}function oq(t){return dj(t)&&Jl(t)&&ye(t.declarationList.declarations,TTt)}function y0e(t,u){return t.kind!==12?W_(u.text,t.pos):void 0}function k0e(t,u){const s=t.kind===169||t.kind===168||t.kind===218||t.kind===219||t.kind===217||t.kind===260||t.kind===281?Hi(gv(u,t.pos),W_(u,t.pos)):W_(u,t.pos);return ti(s,d=>u.charCodeAt(d.pos+1)===42&&u.charCodeAt(d.pos+2)===42&&u.charCodeAt(d.pos+3)!==47)}function q_(t){if(182<=t.kind&&t.kind<=205)return!0;switch(t.kind){case 133:case 159:case 150:case 163:case 154:case 136:case 155:case 151:case 157:case 106:case 146:return!0;case 116:return t.parent.kind!==222;case 233:return mm(t.parent)&&!Jj(t);case 168:return t.parent.kind===200||t.parent.kind===195;case 80:(t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t)&&(t=t.parent),H.assert(t.kind===80||t.kind===166||t.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:u}=t;if(u.kind===186)return!1;if(u.kind===205)return!u.isTypeOf;if(182<=u.kind&&u.kind<=205)return!0;switch(u.kind){case 233:return mm(u.parent)&&!Jj(u);case 168:return t===u.constraint;case 352:return t===u.constraint;case 172:case 171:case 169:case 260:return t===u.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return t===u.type;case 179:case 180:case 181:return t===u.type;case 216:return t===u.type;case 213:case 214:case 215:return kt(u.typeArguments,t)}}}return!1}function TZe(t,u){for(;t;){if(t.kind===u)return!0;t=t.parent}return!1}function y2(t,u){return s(t);function s(d){switch(d.kind){case 253:return u(d);case 269:case 241:case 245:case 246:case 247:case 248:case 249:case 250:case 254:case 255:case 296:case 297:case 256:case 258:case 299:return ao(d,s)}}}function Kbe(t,u){return s(t);function s(d){switch(d.kind){case 229:u(d);const f=d.expression;f&&s(f);return;case 266:case 264:case 267:case 265:return;default:if(Co(d)){if(d.name&&d.name.kind===167){s(d.name.expression);return}}else q_(d)||ao(d,s)}}}function F0e(t){return t&&t.kind===188?t.elementType:t&&t.kind===183?Aa(t.typeArguments):void 0}function Wbe(t){switch(t.kind){case 264:case 263:case 231:case 187:return t.members;case 210:return t.properties}}function G8(t){if(t)switch(t.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Gbe(t){return G8(t)||wx(t)}function qN(t){return t.parent.kind===261&&t.parent.parent.kind===243}function Jbe(t){return Qn(t)?ys(t.parent)&&Xn(t.parent.parent)&&Xl(t.parent.parent)===2||sq(t.parent):!1}function sq(t){return Qn(t)?Xn(t)&&Xl(t)===1:!1}function $be(t){return(na(t)?K8(t)&&at(t.name)&&qN(t):ko(t)?fP(t)&&Kc(t):Mm(t)&&fP(t))||sq(t)}function Ube(t){switch(t.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function A0e(t,u){for(;;){if(u&&u(t),t.statement.kind!==256)return t.statement;t=t.statement}}function k2(t){return t&&t.kind===241&&Co(t.parent)}function zp(t){return t&&t.kind===174&&t.parent.kind===210}function lq(t){return(t.kind===174||t.kind===177||t.kind===178)&&(t.parent.kind===210||t.parent.kind===231)}function qbe(t){return t&&t.kind===1}function LZe(t){return t&&t.kind===0}function J8(t,u,s,d){return L(t==null?void 0:t.properties,f=>{if(!Jc(f))return;const p=UN(f.name);return u===p||d&&d===p?s(f):void 0})}function Zbe(t,u,s){return J8(t,u,d=>Dh(d.initializer)?Le(d.initializer.elements,f=>us(f)&&f.text===s):void 0)}function ZN(t){if(t&&t.statements.length){const u=t.statements[0].expression;return ur(u,ys)}}function cq(t,u,s){return hj(t,u,d=>Dh(d.initializer)?Le(d.initializer.elements,f=>us(f)&&f.text===s):void 0)}function hj(t,u,s){return J8(ZN(t),u,s)}function Nm(t){return Tn(t.parent,Co)}function Ybe(t){return Tn(t.parent,$0)}function Yd(t){return Tn(t.parent,mr)}function Qbe(t){return Tn(t.parent,u=>mr(u)||Co(u)?"quit":zl(u))}function dq(t){return Tn(t.parent,L8)}function hq(t){const u=Tn(t.parent,s=>mr(s)?"quit":g1(s));return u&&mr(u.parent)?Yd(u.parent):Yd(u??t)}function tf(t,u,s){for(H.assert(t.kind!==312);;){if(t=t.parent,!t)return H.fail();switch(t.kind){case 167:if(s&&mr(t.parent.parent))return t;t=t.parent.parent;break;case 170:t.parent.kind===169&&Zd(t.parent.parent)?t=t.parent.parent:Zd(t.parent)&&(t=t.parent);break;case 219:if(!u)continue;case 262:case 218:case 267:case 175:case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 179:case 180:case 181:case 266:case 312:return t}}}function Xbe(t){switch(t.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(t.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function fq(t){at(t)&&(Wc(t.parent)||ed(t.parent))&&t.parent.name===t&&(t=t.parent);const u=tf(t,!0,!1);return la(u)}function eye(t){const u=tf(t,!1,!1);if(u)switch(u.kind){case 176:case 262:case 218:return u}}function fj(t,u){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 167:t=t.parent;break;case 262:case 218:case 219:if(!u)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return t;case 170:t.parent.kind===169&&Zd(t.parent.parent)?t=t.parent.parent:Zd(t.parent)&&(t=t.parent);break}}}function nk(t){if(t.kind===218||t.kind===219){let u=t,s=t.parent;for(;s.kind===217;)u=s,s=s.parent;if(s.kind===213&&s.expression===u)return s}}function NZe(t){return t.kind===108||nf(t)}function nf(t){const u=t.kind;return(u===211||u===212)&&t.expression.kind===108}function mj(t){const u=t.kind;return(u===211||u===212)&&t.expression.kind===110}function mq(t){var u;return!!t&&na(t)&&((u=t.initializer)==null?void 0:u.kind)===110}function tye(t){return!!t&&(pm(t)||Jc(t))&&Xn(t.parent.parent)&&t.parent.parent.operatorToken.kind===64&&t.parent.parent.right.kind===110}function pj(t){switch(t.kind){case 183:return t.typeName;case 233:return ec(t.expression)?t.expression:void 0;case 80:case 166:return t}}function pq(t){switch(t.kind){case 215:return t.tag;case 286:case 285:return t.tagName;case 226:return t.right;default:return t.expression}}function gq(t,u,s,d){if(t&&mh(u)&&Xr(u.name))return!1;switch(u.kind){case 263:return!0;case 231:return!t;case 172:return s!==void 0&&(t?Wc(s):mr(s)&&!P2(u)&&!rle(u));case 177:case 178:case 174:return u.body!==void 0&&s!==void 0&&(t?Wc(s):mr(s));case 169:return t?s!==void 0&&s.body!==void 0&&(s.kind===176||s.kind===174||s.kind===178)&&T2(s)!==u&&d!==void 0&&d.kind===263:!1}return!1}function YN(t,u,s,d){return o4(u)&&gq(t,u,s,d)}function gj(t,u,s,d){return YN(t,u,s,d)||QN(t,u,s)}function QN(t,u,s){switch(u.kind){case 263:return Oe(u.members,d=>gj(t,d,u,s));case 231:return!t&&Oe(u.members,d=>gj(t,d,u,s));case 174:case 178:case 176:return Oe(u.parameters,d=>YN(t,d,u,s));default:return!1}}function t5(t,u){if(YN(t,u))return!0;const s=X_(u);return!!s&&QN(t,s,u)}function S0e(t,u,s){let d;if(wx(u)){const{firstAccessor:f,secondAccessor:p,setAccessor:E}=dk(s.members,u),v=o4(f)?f:p&&o4(p)?p:void 0;if(!v||u!==v)return!1;d=E==null?void 0:E.parameters}else dc(u)&&(d=u.parameters);if(YN(t,u,s))return!0;if(d){for(const f of d)if(!L2(f)&&YN(t,f,u,s))return!0}return!1}function B0e(t){if(t.textSourceNode){switch(t.textSourceNode.kind){case 11:return B0e(t.textSourceNode);case 15:return t.text===""}return!1}return t.text===""}function $8(t){const{parent:u}=t;return u.kind===286||u.kind===285||u.kind===287?u.tagName===t:!1}function Z_(t){switch(t.kind){case 108:case 106:case 112:case 97:case 14:case 209:case 210:case 211:case 212:case 213:case 214:case 215:case 234:case 216:case 238:case 235:case 217:case 218:case 231:case 219:case 222:case 220:case 221:case 224:case 225:case 226:case 227:case 230:case 228:case 232:case 284:case 285:case 288:case 229:case 223:case 236:return!0;case 233:return!mm(t.parent)&&!LB(t.parent);case 166:for(;t.parent.kind===166;)t=t.parent;return t.parent.kind===186||o7(t.parent)||QP(t.parent)||Rv(t.parent)||$8(t);case 318:for(;Rv(t.parent);)t=t.parent;return t.parent.kind===186||o7(t.parent)||QP(t.parent)||Rv(t.parent)||$8(t);case 81:return Xn(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===103;case 80:if(t.parent.kind===186||o7(t.parent)||QP(t.parent)||Rv(t.parent)||$8(t))return!0;case 9:case 10:case 11:case 15:case 110:return Eq(t);default:return!1}}function Eq(t){const{parent:u}=t;switch(u.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return u.initializer===t;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return u.expression===t;case 248:const s=u;return s.initializer===t&&s.initializer.kind!==261||s.condition===t||s.incrementor===t;case 249:case 250:const d=u;return d.initializer===t&&d.initializer.kind!==261||d.expression===t;case 216:case 234:return t===u.expression;case 239:return t===u.expression;case 167:return t===u.expression;case 170:case 294:case 293:case 305:return!0;case 233:return u.expression===t&&!q_(u);case 304:return u.objectAssignmentInitializer===t;case 238:return t===u.expression;default:return Z_(u)}}function _q(t){for(;t.kind===166||t.kind===80;)t=t.parent;return t.kind===186}function iye(t){return u_(t)&&!!t.parent.moduleSpecifier}function bv(t){return t.kind===271&&t.moduleReference.kind===283}function XN(t){return H.assert(bv(t)),t.moduleReference.expression}function w0e(t){return F2(t)&&CP(t.initializer).arguments[0]}function U8(t){return t.kind===271&&t.moduleReference.kind!==283}function gh(t){return Qn(t)}function PZe(t){return!Qn(t)}function Qn(t){return!!t&&!!(t.flags&524288)}function Dq(t){return!!t&&!!(t.flags&134217728)}function T0e(t){return!W4(t)}function Ej(t){return!!t&&!!(t.flags&16777216)}function xq(t){return X4(t)&&at(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===154||t.typeArguments[0].kind===150)}function xf(t,u){if(t.kind!==213)return!1;const{expression:s,arguments:d}=t;if(s.kind!==80||s.escapedText!=="require"||d.length!==1)return!1;const f=d[0];return!u||t0(f)}function vq(t){return MZe(t,!1)}function F2(t){return MZe(t,!0)}function nye(t){return js(t)&&F2(t.parent.parent)}function MZe(t,u){return na(t)&&!!t.initializer&&xf(u?CP(t.initializer):t.initializer,!0)}function L0e(t){return Jl(t)&&t.declarationList.declarations.length>0&&ye(t.declarationList.declarations,u=>vq(u))}function _j(t){return t===39||t===34}function Cq(t,u){return x2(u,t).charCodeAt(0)===34}function eP(t){return Xn(t)||I0(t)||at(t)||Mo(t)}function Dj(t){return Qn(t)&&t.initializer&&Xn(t.initializer)&&(t.initializer.operatorToken.kind===57||t.initializer.operatorToken.kind===61)&&t.name&&ec(t.name)&&q8(t.name,t.initializer.left)?t.initializer.right:t.initializer}function xj(t){const u=Dj(t);return u&&yv(u,Ox(t.name))}function LTt(t,u){return L(t.properties,s=>Jc(s)&&at(s.name)&&s.name.escapedText==="value"&&s.initializer&&yv(s.initializer,u))}function l7(t){if(t&&t.parent&&Xn(t.parent)&&t.parent.operatorToken.kind===64){const u=Ox(t.parent.left);return yv(t.parent.right,u)||NTt(t.parent.left,t.parent.right,u)}if(t&&Mo(t)&&rk(t)){const u=LTt(t.arguments[2],t.arguments[1].text==="prototype");if(u)return u}}function yv(t,u){if(Mo(t)){const s=l0(t.expression);return s.kind===218||s.kind===219?t:void 0}if(t.kind===218||t.kind===231||t.kind===219||ys(t)&&(t.properties.length===0||u))return t}function NTt(t,u,s){const d=Xn(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===61)&&yv(u.right,s);if(d&&q8(t,u.left))return d}function uye(t){const u=na(t.parent)?t.parent.name:Xn(t.parent)&&t.parent.operatorToken.kind===64?t.parent.left:void 0;return u&&yv(t.right,Ox(u))&&ec(u)&&q8(u,t.left)}function N0e(t){if(Xn(t.parent)){const u=(t.parent.operatorToken.kind===57||t.parent.operatorToken.kind===61)&&Xn(t.parent.parent)?t.parent.parent:t.parent;if(u.operatorToken.kind===64&&at(u.left))return u.left}else if(na(t.parent))return t.parent.name}function q8(t,u){return Xg(t)&&Xg(u)?J4(t)===J4(u):J_(t)&&bq(u)&&(u.expression.kind===110||at(u.expression)&&(u.expression.escapedText==="window"||u.expression.escapedText==="self"||u.expression.escapedText==="global"))?q8(t,bj(u)):bq(t)&&bq(u)?Q3(t)===Q3(u)&&q8(t.expression,u.expression):!1}function vj(t){for(;ld(t,!0);)t=t.right;return t}function uk(t){return at(t)&&t.escapedText==="exports"}function P0e(t){return at(t)&&t.escapedText==="module"}function Y_(t){return(Iu(t)||Cj(t))&&P0e(t.expression)&&Q3(t)==="exports"}function Xl(t){const u=PTt(t);return u===5||Qn(t)?u:0}function rk(t){return S(t.arguments)===3&&Iu(t.expression)&&at(t.expression.expression)&&fu(t.expression.expression)==="Object"&&fu(t.expression.name)==="defineProperty"&&Pm(t.arguments[1])&&ak(t.arguments[0],!0)}function bq(t){return Iu(t)||Cj(t)}function Cj(t){return U0(t)&&Pm(t.argumentExpression)}function A2(t,u){return Iu(t)&&(!u&&t.expression.kind===110||at(t.name)&&ak(t.expression,!0))||yq(t,u)}function yq(t,u){return Cj(t)&&(!u&&t.expression.kind===110||ec(t.expression)||A2(t.expression,!0))}function ak(t,u){return ec(t)||A2(t,u)}function bj(t){return Iu(t)?t.name:t.argumentExpression}function PTt(t){if(Mo(t)){if(!rk(t))return 0;const u=t.arguments[0];return uk(u)||Y_(u)?8:A2(u)&&Q3(u)==="prototype"?9:7}return t.operatorToken.kind!==64||!I0(t.left)||MTt(vj(t))?0:ak(t.left.expression,!0)&&Q3(t.left)==="prototype"&&ys(M0e(t))?6:yj(t.left)}function MTt(t){return R7(t)&&Of(t.expression)&&t.expression.text==="0"}function kq(t){if(Iu(t))return t.name;const u=l0(t.argumentExpression);return Of(u)||t0(u)?u:t}function Q3(t){const u=kq(t);if(u){if(at(u))return u.escapedText;if(t0(u)||Of(u))return Al(u.text)}}function yj(t){if(t.expression.kind===110)return 4;if(Y_(t))return 2;if(ak(t.expression,!0)){if(Ox(t.expression))return 3;let u=t;for(;!at(u.expression);)u=u.expression;const s=u.expression;if((s.escapedText==="exports"||s.escapedText==="module"&&Q3(u)==="exports")&&A2(t))return 1;if(ak(t,!0)||U0(t)&&Lq(t))return 5}return 0}function M0e(t){for(;Xn(t.right);)t=t.right;return t.right}function kj(t){return Xn(t)&&Xl(t)===3}function rye(t){return Qn(t)&&t.parent&&t.parent.kind===244&&(!U0(t)||Cj(t))&&!!xv(t.parent)}function Fj(t,u){const{valueDeclaration:s}=t;(!s||!(u.flags&33554432&&!Qn(u)&&!(s.flags&33554432))&&eP(s)&&!eP(u)||s.kind!==u.kind&&Nbe(s))&&(t.valueDeclaration=u)}function aye(t){if(!t||!t.valueDeclaration)return!1;const u=t.valueDeclaration;return u.kind===262||na(u)&&u.initializer&&Co(u.initializer)}function Z8(t){var u,s;switch(t.kind){case 260:case 208:return(u=Tn(t.initializer,d=>xf(d,!0)))==null?void 0:u.arguments[0];case 272:case 278:return ur(t.moduleSpecifier,t0);case 271:return ur((s=ur(t.moduleReference,r_))==null?void 0:s.expression,t0);case 273:case 280:return ur(t.parent.moduleSpecifier,t0);case 274:case 281:return ur(t.parent.parent.moduleSpecifier,t0);case 276:return ur(t.parent.parent.parent.moduleSpecifier,t0);case 205:return zx(t)?t.argument.literal:void 0;default:H.assertNever(t)}}function tP(t){return Aj(t)||H.failBadSyntaxKind(t.parent)}function Aj(t){switch(t.parent.kind){case 272:case 278:return t.parent;case 283:return t.parent.parent;case 213:return dm(t.parent)||xf(t.parent,!1)?t.parent:void 0;case 201:return H.assert(us(t)),ur(t.parent.parent,nD);default:return}}function Y8(t){switch(t.kind){case 272:case 278:return t.moduleSpecifier;case 271:return t.moduleReference.kind===283?t.moduleReference.expression:void 0;case 205:return zx(t)?t.argument.literal:void 0;case 213:return t.arguments[0];case 267:return t.name.kind===11?t.name:void 0;default:return H.assertNever(t)}}function Q8(t){switch(t.kind){case 272:return t.importClause&&ur(t.importClause.namedBindings,Jx);case 271:return t;case 278:return t.exportClause&&ur(t.exportClause,u_);default:return H.assertNever(t)}}function c7(t){return t.kind===272&&!!t.importClause&&!!t.importClause.name}function Fq(t,u){if(t.name){const s=u(t);if(s)return s}if(t.namedBindings){const s=Jx(t.namedBindings)?u(t.namedBindings):L(t.namedBindings.elements,u);if(s)return s}}function d7(t){if(t)switch(t.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return t.questionToken!==void 0}return!1}function X8(t){const u=TB(t)?Ki(t.parameters):void 0,s=ur(u&&u.name,at);return!!s&&s.escapedText==="new"}function G4(t){return t.kind===353||t.kind===345||t.kind===347}function Sj(t){return G4(t)||jp(t)}function zTt(t){return Od(t)&&Xn(t.expression)&&t.expression.operatorToken.kind===64?vj(t.expression):void 0}function zZe(t){return Od(t)&&Xn(t.expression)&&Xl(t.expression)!==0&&Xn(t.expression.right)&&(t.expression.right.operatorToken.kind===57||t.expression.right.operatorToken.kind===61)?t.expression.right.right:void 0}function z0e(t){switch(t.kind){case 243:const u=eB(t);return u&&u.initializer;case 172:return t.initializer;case 303:return t.initializer}}function eB(t){return Jl(t)?Ki(t.declarationList.declarations):void 0}function IZe(t){return _c(t)&&t.body&&t.body.kind===267?t.body:void 0}function Bj(t){if(t.kind>=243&&t.kind<=259)return!0;switch(t.kind){case 80:case 110:case 108:case 166:case 236:case 212:case 211:case 208:case 218:case 219:case 174:case 177:case 178:return!0;default:return!1}}function wj(t){switch(t.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 324:case 330:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function I0e(t,u){let s;G8(t)&&Nx(t)&&lm(t.initializer)&&(s=yn(s,RZe(t,Cr(t.initializer.jsDoc))));let d=t;for(;d&&d.parent;){if(lm(d)&&(s=yn(s,RZe(t,Cr(d.jsDoc)))),d.kind===169){s=yn(s,(u?O2e:B8)(d));break}if(d.kind===168){s=yn(s,(u?V2e:j2e)(d));break}d=R0e(d)}return s||_t}function RZe(t,u){if(Vp(u)){const s=ti(u.tags,d=>OZe(t,d));return u.tags===s?[u]:s}return OZe(t,u)?[u]:void 0}function OZe(t,u){return!(XP(u)||_Y(u))||!u.parent||!Vp(u.parent)||!Cf(u.parent.parent)||u.parent.parent===t}function R0e(t){const u=t.parent;if(u.kind===303||u.kind===277||u.kind===172||u.kind===244&&t.kind===211||u.kind===253||IZe(u)||ld(t))return u;if(u.parent&&(eB(u.parent)===t||ld(u)))return u.parent;if(u.parent&&u.parent.parent&&(eB(u.parent.parent)||z0e(u.parent.parent)===t||zZe(u.parent.parent)))return u.parent.parent}function Tj(t){if(t.symbol)return t.symbol;if(!at(t.name))return;const u=t.name.escapedText,s=kv(t);if(!s)return;const d=Le(s.parameters,f=>f.name.kind===80&&f.name.escapedText===u);return d&&d.symbol}function Aq(t){if(Vp(t.parent)&&t.parent.tags){const u=Le(t.parent.tags,G4);if(u)return u}return kv(t)}function kv(t){const u=ok(t);if(u)return Mm(u)&&u.type&&Co(u.type)?u.type:Co(u)?u:void 0}function ok(t){const u=h7(t);if(u)return zZe(u)||zTt(u)||z0e(u)||eB(u)||IZe(u)||u}function h7(t){const u=iP(t);if(!u)return;const s=u.parent;if(s&&s.jsDoc&&u===qu(s.jsDoc))return s}function iP(t){return Tn(t.parent,Vp)}function oye(t){const u=t.name.escapedText,{typeParameters:s}=t.parent.parent.parent;return s&&Le(s,d=>d.name.escapedText===u)}function jZe(t){return!!t.typeArguments}function sye(t){let u=t.parent;for(;;){switch(u.kind){case 226:const s=u,d=s.operatorToken.kind;return u5(d)&&s.left===t?s:void 0;case 224:case 225:const f=u,p=f.operator;return p===46||p===47?f:void 0;case 249:case 250:const E=u;return E.initializer===t?E:void 0;case 217:case 209:case 230:case 235:t=u;break;case 305:t=u.parent;break;case 304:if(u.name!==t)return;t=u.parent;break;case 303:if(u.name===t)return;t=u.parent;break;default:return}u=t.parent}}function f7(t){const u=sye(t);if(!u)return 0;switch(u.kind){case 226:const s=u.operatorToken.kind;return s===64||mP(s)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Q_(t){return!!sye(t)}function ITt(t){const u=l0(t.right);return u.kind===226&&Kce(u.operatorToken.kind)}function O0e(t){const u=sye(t);return!!u&&ld(u,!0)&&ITt(u)}function lye(t){switch(t.kind){case 241:case 243:case 254:case 245:case 255:case 269:case 296:case 297:case 256:case 248:case 249:case 250:case 246:case 247:case 258:case 299:return!0}return!1}function cye(t){return A0(t)||q0(t)||N8(t)||ed(t)||hc(t)}function VZe(t,u){for(;t&&t.kind===u;)t=t.parent;return t}function Lj(t){return VZe(t,196)}function i5(t){return VZe(t,217)}function dye(t){let u;for(;t&&t.kind===196;)u=t,t=t.parent;return[u,t]}function j0e(t){for(;M7(t);)t=t.type;return t}function l0(t,u){return Dc(t,u?17:1)}function V0e(t){return t.kind!==211&&t.kind!==212?!1:(t=i5(t.parent),t&&t.kind===220)}function S2(t,u){for(;t;){if(t===u)return!0;t=t.parent}return!1}function X3(t){return!la(t)&&!So(t)&&Q1(t.parent)&&t.parent.name===t}function nP(t){const u=t.parent;switch(t.kind){case 11:case 15:case 9:if(Ps(u))return u.parent;case 80:if(Q1(u))return u.name===t?u:void 0;if(vf(u)){const s=u.parent;return Eg(s)&&s.name===u?s:void 0}else{const s=u.parent;return Xn(s)&&Xl(s)!==0&&(s.left.symbol||s.symbol)&&Za(s)===t?s:void 0}case 81:return Q1(u)&&u.name===t?u:void 0;default:return}}function Nj(t){return Pm(t)&&t.parent.kind===167&&Q1(t.parent.parent)}function hye(t){const u=t.parent;switch(u.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return u.name===t;case 166:return u.right===t;case 208:case 276:return u.propertyName===t;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function HZe(t){return t.kind===271||t.kind===270||t.kind===273&&t.name||t.kind===274||t.kind===280||t.kind===276||t.kind===281||t.kind===277&&tB(t)?!0:Qn(t)&&(Xn(t)&&Xl(t)===2&&tB(t)||Iu(t)&&Xn(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===64&&Pj(t.parent.right))}function H0e(t){switch(t.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return t.parent;case 166:do t=t.parent;while(t.parent.kind===166);return H0e(t)}}function Pj(t){return ec(t)||Xd(t)}function tB(t){const u=K0e(t);return Pj(u)}function K0e(t){return tc(t)?t.expression:t.right}function fye(t){return t.kind===304?t.name:t.kind===303?t.initializer:t.parent.right}function Qg(t){const u=B2(t);if(u&&Qn(t)){const s=K2e(t);if(s)return s.class}return u}function B2(t){const u=Mj(t.heritageClauses,96);return u&&u.types.length>0?u.types[0]:void 0}function iB(t){if(Qn(t))return W2e(t).map(u=>u.class);{const u=Mj(t.heritageClauses,119);return u==null?void 0:u.types}}function uP(t){return xh(t)?rP(t)||_t:mr(t)&&Hi(Hy(Qg(t)),iB(t))||_t}function rP(t){const u=Mj(t.heritageClauses,96);return u?u.types:void 0}function Mj(t,u){if(t){for(const s of t)if(s.token===u)return s}}function Fv(t,u){for(;t;){if(t.kind===u)return t;t=t.parent}}function uf(t){return 83<=t&&t<=165}function W0e(t){return 19<=t&&t<=79}function Sq(t){return uf(t)||W0e(t)}function Bq(t){return 128<=t&&t<=165}function G0e(t){return uf(t)&&!Bq(t)}function KZe(t){return 119<=t&&t<=127}function m7(t){const u=f2(t);return u!==void 0&&G0e(u)}function WZe(t){const u=f2(t);return u!==void 0&&uf(u)}function wq(t){const u=Dv(t);return!!u&&!Bq(u)}function nB(t){return 2<=t&&t<=7}function kd(t){if(!t)return 4;let u=0;switch(t.kind){case 262:case 218:case 174:t.asteriskToken&&(u|=1);case 219:Yu(t,1024)&&(u|=2);break}return t.body||(u|=4),u}function aP(t){switch(t.kind){case 262:case 218:case 219:case 174:return t.body!==void 0&&t.asteriskToken===void 0&&Yu(t,1024)}return!1}function Pm(t){return t0(t)||Of(t)}function Tq(t){return zv(t)&&(t.operator===40||t.operator===41)&&Of(t.operand)}function Ix(t){const u=Za(t);return!!u&&Lq(u)}function Lq(t){if(!(t.kind===167||t.kind===212))return!1;const u=U0(t)?l0(t.argumentExpression):t.expression;return!Pm(u)&&!Tq(u)}function sk(t){switch(t.kind){case 80:case 81:return t.escapedText;case 11:case 15:case 9:return Al(t.text);case 167:const u=t.expression;return Pm(u)?Al(u.text):Tq(u)?u.operator===41?Uo(u.operator)+u.operand.text:u.operand.text:void 0;case 295:return k7(t);default:return H.assertNever(t)}}function Xg(t){switch(t.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function J4(t){return J_(t)?fu(t):gg(t)?zP(t):t.text}function oP(t){return J_(t)?t.escapedText:gg(t)?k7(t):Al(t.text)}function GZe(t){return`__@${Zo(t)}@${t.escapedName}`}function zj(t,u){return`__#${Zo(t)}@${u}`}function Ij(t){return Pa(t.escapedName,"__@")}function mye(t){return Pa(t.escapedName,"__#")}function JZe(t){return t.kind===80&&t.escapedText==="Symbol"}function pye(t){return at(t)?fu(t)==="__proto__":us(t)&&t.text==="__proto__"}function sP(t,u){switch(t=Dc(t),t.kind){case 231:if(t1e(t))return!1;break;case 218:if(t.name)return!1;break;case 219:break;default:return!1}return typeof u=="function"?u(t):!0}function J0e(t){switch(t.kind){case 303:return!pye(t.name);case 304:return!!t.objectAssignmentInitializer;case 260:return at(t.name)&&!!t.initializer;case 169:return at(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 208:return at(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 172:return!!t.initializer;case 226:switch(t.operatorToken.kind){case 64:case 77:case 76:case 78:return at(t.left)}break;case 277:return!0}return!1}function If(t,u){if(!J0e(t))return!1;switch(t.kind){case 303:return sP(t.initializer,u);case 304:return sP(t.objectAssignmentInitializer,u);case 260:case 169:case 208:case 172:return sP(t.initializer,u);case 226:return sP(t.right,u);case 277:return sP(t.expression,u)}}function $0e(t){return t.escapedText==="push"||t.escapedText==="unshift"}function w2(t){return XE(t).kind===169}function XE(t){for(;t.kind===208;)t=t.parent.parent;return t}function U0e(t){const u=t.kind;return u===176||u===218||u===262||u===219||u===174||u===177||u===178||u===267||u===312}function sl(t){return pg(t.pos)||pg(t.end)}function $Ze(t){return Ua(t,la)||t}function q0e(t){const u=Y0e(t),s=t.kind===214&&t.arguments!==void 0;return Z0e(t.kind,u,s)}function Z0e(t,u,s){switch(t){case 214:return s?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(u){case 43:case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 1}}return 0}function lP(t){const u=Y0e(t),s=t.kind===214&&t.arguments!==void 0;return Rj(t.kind,u,s)}function Y0e(t){return t.kind===226?t.operatorToken.kind:t.kind===224||t.kind===225?t.operator:t.kind}function Rj(t,u,s){switch(t){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(u){case 28:return 0;case 64:case 65:case 66:case 68:case 67:case 69:case 70:case 71:case 72:case 73:case 74:case 79:case 75:case 76:case 77:case 78:return 3;default:return Oj(u)}case 216:case 235:case 224:case 221:case 222:case 220:case 223:return 16;case 225:return 17;case 213:return 18;case 214:return s?19:18;case 215:case 211:case 212:case 236:return 19;case 234:case 238:return 11;case 110:case 108:case 80:case 81:case 106:case 112:case 97:case 9:case 10:case 11:case 209:case 210:case 218:case 219:case 231:case 14:case 15:case 228:case 217:case 232:case 284:case 285:case 288:return 20;default:return-1}}function Oj(t){switch(t){case 61:return 4;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function uB(t){return ti(t,u=>{switch(u.kind){case 294:return!!u.expression;case 12:return!u.containsOnlyTriviaWhiteSpaces;default:return!0}})}function rB(){let t=[];const u=[],s=new Map;let d=!1;return{add:p,lookup:f,getGlobalDiagnostics:E,getDiagnostics:v};function f(b){let B;if(b.file?B=s.get(b.file.fileName):B=t,!B)return;const k=Kl(B,b,il,Zq);if(k>=0)return B[k]}function p(b){let B;b.file?(B=s.get(b.file.fileName),B||(B=[],s.set(b.file.fileName,B),Tt(u,b.file.fileName,dh))):(d&&(d=!1,t=t.slice()),B=t),Tt(B,b,Zq)}function E(){return d=!0,t}function v(b){if(b)return s.get(b)||[];const B=Tr(u,k=>s.get(k));return t.length&&B.unshift(...t),B}}function RTt(t){return t.replace(vYe,"\\${")}function gye(t){return!!((t.templateFlags||0)&2048)}function Q0e(t){return t&&!!(T7(t)?gye(t):gye(t.head)||Oe(t.templateSpans,u=>gye(u.literal)))}function UZe(t){return"\\u"+("0000"+t.toString(16).toUpperCase()).slice(-4)}function OTt(t,u,s){if(t.charCodeAt(0)===0){const d=s.charCodeAt(u+t.length);return d>=48&&d<=57?"\\x00":"\\0"}return kYe.get(t)||UZe(t.charCodeAt(0))}function Av(t,u){const s=u===96?yYe:u===39?bYe:CYe;return t.replace(s,OTt)}function jj(t,u){return t=Av(t,u),Fke.test(t)?t.replace(Fke,s=>UZe(s.charCodeAt(0))):t}function jTt(t){return"&#x"+t.toString(16).toUpperCase()+";"}function VTt(t){return t.charCodeAt(0)===0?"�":SYe.get(t)||jTt(t.charCodeAt(0))}function X0e(t,u){const s=u===39?AYe:FYe;return t.replace(s,VTt)}function $4(t){const u=t.length;return u>=2&&t.charCodeAt(0)===t.charCodeAt(u-1)&&HTt(t.charCodeAt(0))?t.substring(1,u-1):t}function HTt(t){return t===39||t===34||t===96}function aB(t){const u=t.charCodeAt(0);return u>=97&&u<=122||t.includes("-")}function Nq(t){const u=IP[1];for(let s=IP.length;s<=t;s++)IP.push(IP[s-1]+u);return IP[t]}function oB(){return IP[1].length}function Vj(t){var u,s,d,f,p,E=!1;function v(K){const Y=n7(K);Y.length>1?(f=f+Y.length-1,p=u.length-K.length+Cr(Y),d=p-u.length===0):d=!1}function b(K){K&&K.length&&(d&&(K=Nq(s)+K,d=!1),u+=K,v(K))}function B(K){K&&(E=!1),b(K)}function k(K){K&&(E=!0),b(K)}function T(){u="",s=0,d=!0,f=0,p=0,E=!1}function M(K){K!==void 0&&(u+=K,v(K),E=!1)}function z(K){K&&K.length&&B(K)}function j(K){(!d||K)&&(u+=t,f++,p=u.length,d=!0,E=!1)}function J(){return d?u.length:u.length+t.length}return T(),{write:B,rawWrite:M,writeLiteral:z,writeLine:j,increaseIndent:()=>{s++},decreaseIndent:()=>{s--},getIndent:()=>s,getTextPos:()=>u.length,getLine:()=>f,getColumn:()=>d?s*oB():u.length-p,getText:()=>u,isAtStartOfLine:()=>d,hasTrailingComment:()=>E,hasTrailingWhitespace:()=>!!u.length&&U3(u.charCodeAt(u.length-1)),clear:T,writeKeyword:B,writeOperator:B,writeParameter:B,writeProperty:B,writePunctuation:B,writeSpace:B,writeStringLiteral:B,writeSymbol:(K,Y)=>B(K),writeTrailingSemicolon:B,writeComment:k,getTextPosWithWriteLine:J}}function ele(t){let u=!1;function s(){u&&(t.writeTrailingSemicolon(";"),u=!1)}return{...t,writeTrailingSemicolon(){u=!0},writeLiteral(d){s(),t.writeLiteral(d)},writeStringLiteral(d){s(),t.writeStringLiteral(d)},writeSymbol(d,f){s(),t.writeSymbol(d,f)},writePunctuation(d){s(),t.writePunctuation(d)},writeKeyword(d){s(),t.writeKeyword(d)},writeOperator(d){s(),t.writeOperator(d)},writeParameter(d){s(),t.writeParameter(d)},writeSpace(d){s(),t.writeSpace(d)},writeProperty(d){s(),t.writeProperty(d)},writeComment(d){s(),t.writeComment(d)},writeLine(){s(),t.writeLine()},increaseIndent(){s(),t.increaseIndent()},decreaseIndent(){s(),t.decreaseIndent()}}}function Hj(t){return t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!1}function n5(t){return L1(Hj(t))}function Pq(t,u,s){return u.moduleName||tle(t,u.fileName,s&&s.fileName)}function qZe(t,u){return t.getCanonicalFileName($a(u,t.getCurrentDirectory()))}function Eye(t,u,s){const d=u.getExternalModuleFileFromDeclaration(s);if(!d||d.isDeclarationFile)return;const f=Y8(s);if(!(f&&t0(f)&&!om(f.text)&&!qZe(t,d.path).includes(qZe(t,zd(t.getCommonSourceDirectory())))))return Pq(t,d)}function tle(t,u,s){const d=b=>t.getCanonicalFileName(b),f=J0(s?lr(s):t.getCommonSourceDirectory(),t.getCurrentDirectory(),d),p=$a(u,t.getCurrentDirectory()),E=i7(f,p,f,d,!1),v=_h(E);return s?h2(v):v}function _ye(t,u,s){const d=u.getCompilerOptions();let f;return d.outDir?f=_h(Iq(t,u,d.outDir)):f=_h(t),f+s}function Dye(t,u){return Mq(t,u.getCompilerOptions(),u.getCurrentDirectory(),u.getCommonSourceDirectory(),s=>u.getCanonicalFileName(s))}function Mq(t,u,s,d,f){const p=u.declarationDir||u.outDir,E=p?Rq(t,p,s,d,f):t,v=Kj(E);return _h(E)+v}function Kj(t){return jc(t,[".mjs",".mts"])?".d.mts":jc(t,[".cjs",".cts"])?".d.cts":jc(t,[".json"])?".d.json.ts":".d.ts"}function xye(t){return jc(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:jc(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:jc(t,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function y0(t){return t.outFile||t.out}function zq(t,u){var s;if(t.paths)return t.baseUrl??H.checkDefined(t.pathsBasePath||((s=u.getCurrentDirectory)==null?void 0:s.call(u)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function ile(t,u,s){const d=t.getCompilerOptions();if(y0(d)){const f=m1(d),p=d.emitDeclarationOnly||f===2||f===4;return ti(t.getSourceFiles(),E=>(p||!wc(E))&&p7(E,t,s))}else{const f=u===void 0?t.getSourceFiles():[u];return ti(f,p=>p7(p,t,s))}}function p7(t,u,s){const d=u.getCompilerOptions();if(d.noEmitForJsFiles&&gh(t)||t.isDeclarationFile||u.isSourceFileFromExternalLibrary(t))return!1;if(s)return!0;if(u.isSourceOfProjectReferenceRedirect(t.fileName))return!1;if(!W4(t))return!0;if(u.getResolvedProjectReferenceToRedirect(t.fileName))return!1;if(y0(d))return!0;if(!d.outDir)return!1;if(d.rootDir||d.composite&&d.configFilePath){const f=$a(yM(d,()=>[],u.getCurrentDirectory(),u.getCanonicalFileName),u.getCurrentDirectory()),p=Rq(t.fileName,d.outDir,u.getCurrentDirectory(),f,u.getCanonicalFileName);if(pv(t.fileName,p,u.getCurrentDirectory(),!u.useCaseSensitiveFileNames())===0)return!1}return!0}function Iq(t,u,s){return Rq(t,s,u.getCurrentDirectory(),u.getCommonSourceDirectory(),d=>u.getCanonicalFileName(d))}function Rq(t,u,s,d,f){let p=$a(t,s);return p=f(p).indexOf(f(d))===0?p.substring(d.length):p,cr(u,p)}function cP(t,u,s,d,f,p,E){t.writeFile(s,d,f,v=>{u.add(cc(F.Could_not_write_file_0_Colon_1,s,v))},p,E)}function ZZe(t,u,s){if(t.length>WE(t)&&!s(t)){const d=lr(t);ZZe(d,u,s),u(t)}}function nle(t,u,s,d,f,p){try{d(t,u,s)}catch{ZZe(lr($o(t)),f,p),d(t,u,s)}}function dP(t,u){const s=$3(t);return TN(s,u)}function lk(t,u){return TN(t,u)}function X_(t){return Le(t.members,u=>hc(u)&&H4(u.body))}function hP(t){if(t&&t.parameters.length>0){const u=t.parameters.length===2&&L2(t.parameters[0]);return t.parameters[u?1:0]}}function vye(t){const u=hP(t);return u&&u.type}function T2(t){if(t.parameters.length&&!Ov(t)){const u=t.parameters[0];if(L2(u))return u}}function L2(t){return N2(t.name)}function N2(t){return!!t&&t.kind===80&&ule(t)}function ck(t){return!!Tn(t,u=>u.kind===186?!0:u.kind===80||u.kind===166?!1:"quit")}function g7(t){if(!N2(t))return!1;for(;vf(t.parent)&&t.parent.left===t;)t=t.parent;return t.parent.kind===186}function ule(t){return t.escapedText==="this"}function dk(t,u){let s,d,f,p;return Ix(u)?(s=u,u.kind===177?f=u:u.kind===178?p=u:H.fail("Accessor has wrong kind")):L(t,E=>{if(wx(E)&&No(E)===No(u)){const v=sk(E.name),b=sk(u.name);v===b&&(s?d||(d=E):s=E,E.kind===177&&!f&&(f=E),E.kind===178&&!p&&(p=E))}}),{firstAccessor:s,secondAccessor:d,getAccessor:f,setAccessor:p}}function f1(t){if(!Qn(t)&&ed(t))return;const u=t.type;return u||!Qn(t)?u:WO(t)?t.typeExpression&&t.typeExpression.type:vv(t)}function Cye(t){return t.type}function U4(t){return Ov(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Qn(t)?VO(t):void 0)}function Oq(t){return ju(Cv(t),u=>KTt(u)?u.typeParameters:void 0)}function KTt(t){return _g(t)&&!(t.parent.kind===327&&(t.parent.tags.some(G4)||t.parent.tags.some(NB)))}function bye(t){const u=hP(t);return u&&f1(u)}function yye(t,u,s,d){kye(t,u,s.pos,d)}function kye(t,u,s,d){d&&d.length&&s!==d[0].pos&&lk(t,s)!==lk(t,d[0].pos)&&u.writeLine()}function Fye(t,u,s,d){s!==d&&lk(t,s)!==lk(t,d)&&u.writeLine()}function Aye(t,u,s,d,f,p,E,v){if(d&&d.length>0){f&&s.writeSpace(" ");let b=!1;for(const B of d)b&&(s.writeSpace(" "),b=!1),v(t,u,s,B.pos,B.end,E),B.hasTrailingNewLine?s.writeLine():b=!0;b&&p&&s.writeSpace(" ")}}function Sye(t,u,s,d,f,p,E){let v,b;if(E?f.pos===0&&(v=ti(W_(t,f.pos),B)):v=W_(t,f.pos),v){const k=[];let T;for(const M of v){if(T){const z=lk(u,T.end);if(lk(u,M.pos)>=z+2)break}k.push(M),T=M}if(k.length){const M=lk(u,Cr(k).end);lk(u,gs(t,f.pos))>=M+2&&(yye(u,s,f,v),Aye(t,u,s,k,!1,!0,p,d),b={nodePos:f.pos,detachedCommentEndPos:Cr(k).end})}}return b;function B(k){return XU(t,k.pos)}}function sB(t,u,s,d,f,p){if(t.charCodeAt(d+1)===42){const E=k8(u,d),v=u.length;let b;for(let B=d,k=E.line;B0){let j=z%oB();const J=Nq((z-j)/oB());for(s.rawWrite(J);j;)s.rawWrite(" "),j--}else s.rawWrite("")}WTt(t,f,s,p,B,T),B=T}}else s.writeComment(t.substring(d,f))}function WTt(t,u,s,d,f,p){const E=Math.min(u,p-1),v=t.substring(f,E).trim();v?(s.writeComment(v),E!==u&&s.writeLine()):s.rawWrite(d)}function YZe(t,u,s){let d=0;for(;u=0&&t.kind<=165?0:(t.modifierFlagsCache&536870912||(t.modifierFlagsCache=ale(t)|536870912),s||u&&Qn(t)?(!(t.modifierFlagsCache&268435456)&&t.parent&&(t.modifierFlagsCache|=QZe(t)|268435456),XZe(t.modifierFlagsCache)):GTt(t.modifierFlagsCache))}function Eh(t){return Tye(t,!0)}function Lye(t){return Tye(t,!0,!0)}function Rx(t){return Tye(t,!1)}function QZe(t){let u=0;return t.parent&&!io(t)&&(Qn(t)&&(G2e(t)&&(u|=8388608),J2e(t)&&(u|=16777216),$2e(t)&&(u|=33554432),U2e(t)&&(u|=67108864),q2e(t)&&(u|=134217728)),Z2e(t)&&(u|=65536)),u}function GTt(t){return t&65535}function XZe(t){return t&131071|(t&260046848)>>>23}function JTt(t){return XZe(QZe(t))}function Nye(t){return ale(t)|JTt(t)}function ale(t){let u=Hp(t)?tE(t.modifiers):0;return(t.flags&8||t.kind===80&&t.flags&4096)&&(u|=32),u}function tE(t){let u=0;if(t)for(const s of t)u|=_7(s.kind);return u}function _7(t){switch(t){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 170:return 32768}return 0}function eYe(t){return t===57||t===56}function Pye(t){return eYe(t)||t===54}function mP(t){return t===76||t===77||t===78}function ole(t){return Xn(t)&&mP(t.operatorToken.kind)}function Wj(t){return eYe(t)||t===61}function Gj(t){return Xn(t)&&Wj(t.operatorToken.kind)}function u5(t){return t>=64&&t<=79}function sle(t){const u=lle(t);return u&&!u.isImplements?u.class:void 0}function lle(t){if(c5(t)){if(mm(t.parent)&&mr(t.parent.parent))return{class:t.parent.parent,isImplements:t.parent.token===119};if(LB(t.parent)){const u=ok(t.parent);if(u&&mr(u))return{class:u,isImplements:!1}}}}function ld(t,u){return Xn(t)&&(u?t.operatorToken.kind===64:u5(t.operatorToken.kind))&&Df(t.left)}function tYe(t){return ld(t.parent)&&t.parent.left===t}function r5(t){if(ld(t,!0)){const u=t.left.kind;return u===210||u===209}return!1}function Jj(t){return sle(t)!==void 0}function ec(t){return t.kind===80||$j(t)}function hm(t){switch(t.kind){case 80:return t;case 166:do t=t.left;while(t.kind!==80);return t;case 211:do t=t.expression;while(t.kind!==80);return t}}function pP(t){return t.kind===80||t.kind===110||t.kind===108||t.kind===236||t.kind===211&&pP(t.expression)||t.kind===217&&pP(t.expression)}function $j(t){return Iu(t)&&at(t.name)&&ec(t.expression)}function Uj(t){if(Iu(t)){const u=Uj(t.expression);if(u!==void 0)return u+"."+zf(t.name)}else if(U0(t)){const u=Uj(t.expression);if(u!==void 0&&Sc(t.argumentExpression))return u+"."+sk(t.argumentExpression)}else{if(at(t))return Yr(t.escapedText);if(gg(t))return zP(t)}}function Ox(t){return A2(t)&&Q3(t)==="prototype"}function gP(t){return t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t||t.parent.kind===236&&t.parent.name===t}function cle(t){return!!t.parent&&(Iu(t.parent)&&t.parent.name===t||U0(t.parent)&&t.parent.argumentExpression===t)}function Mye(t){return vf(t.parent)&&t.parent.right===t||Iu(t.parent)&&t.parent.name===t||Rv(t.parent)&&t.parent.right===t}function Hq(t){return Xn(t)&&t.operatorToken.kind===104}function zye(t){return Hq(t.parent)&&t===t.parent.right}function dle(t){return t.kind===210&&t.properties.length===0}function Iye(t){return t.kind===209&&t.elements.length===0}function lB(t){if(!(!$Tt(t)||!t.declarations)){for(const u of t.declarations)if(u.localSymbol)return u.localSymbol}}function $Tt(t){return t&&S(t.declarations)>0&&Yu(t.declarations[0],2048)}function Kq(t){return Le(NYe,u=>Ml(t,u))}function UTt(t){const u=[],s=t.length;for(let d=0;d>6|192),u.push(f&63|128)):f<65536?(u.push(f>>12|224),u.push(f>>6&63|128),u.push(f&63|128)):f<131072?(u.push(f>>18|240),u.push(f>>12&63|128),u.push(f>>6&63|128),u.push(f&63|128)):H.assert(!1,"Unexpected code point")}return u}function Rye(t){let u="";const s=UTt(t);let d=0;const f=s.length;let p,E,v,b;for(;d>2,E=(s[d]&3)<<4|s[d+1]>>4,v=(s[d+1]&15)<<2|s[d+2]>>6,b=s[d+2]&63,d+1>=f?v=b=64:d+2>=f&&(b=64),u+=pk.charAt(p)+pk.charAt(E)+pk.charAt(v)+pk.charAt(b),d+=3;return u}function qTt(t){let u="",s=0;const d=t.length;for(;s>4&3,k=(E&15)<<4|v>>2&15,T=(v&3)<<6|b&63;k===0&&v!==0?d.push(B):T===0&&b!==0?d.push(B,k):d.push(B,k,T),f+=4}return qTt(d)}function hle(t,u){const s=Ja(u)?u:u.readFile(t);if(!s)return;const d=tde(t,s);return d.error?void 0:d.config}function EP(t,u){return hle(t,u)||{}}function hg(t,u){return!u.directoryExists||u.directoryExists(t)}function a5(t){switch(t.newLine){case 0:return BYe;case 1:case void 0:return wYe}}function s4(t,u=t){return H.assert(u>=t||u===-1),{pos:t,end:u}}function Wq(t,u){return s4(t.pos,u)}function Sv(t,u){return s4(u,t.end)}function o5(t){const u=Hp(t)?lt(t.modifiers,g1):void 0;return u&&!pg(u.end)?Sv(t,u.end):t}function iE(t){if(ko(t)||dc(t))return Sv(t,t.name.pos);const u=Hp(t)?qu(t.modifiers):void 0;return u&&!pg(u.end)?Sv(t,u.end):o5(t)}function iYe(t){return t.pos===t.end}function fle(t,u){return s4(t,t+Uo(u).length)}function hk(t,u){return Hye(t,t,u)}function Gq(t,u,s){return q4(_P(t,s,!1),_P(u,s,!1),s)}function Vye(t,u,s){return q4(t.end,u.end,s)}function Hye(t,u,s){return q4(_P(t,s,!1),u.end,s)}function qj(t,u,s){return q4(t.end,_P(u,s,!1),s)}function mle(t,u,s,d){const f=_P(u,s,d);return LN(s,t.end,f)}function nYe(t,u,s){return LN(s,t.end,u.end)}function Kye(t,u){return!q4(t.pos,t.end,u)}function q4(t,u,s){return LN(s,t,u)===0}function _P(t,u,s){return pg(t.pos)?-1:gs(u.text,t.pos,!1,s)}function Wye(t,u,s,d){const f=gs(s.text,t,!1,d),p=ZTt(f,u,s);return LN(s,p??u,f)}function Gye(t,u,s,d){const f=gs(s.text,t,!1,d);return LN(s,t,Math.min(u,f))}function ZTt(t,u=0,s){for(;t-- >u;)if(!U3(s.text.charCodeAt(t)))return t}function ple(t){const u=Ua(t);if(u)switch(u.parent.kind){case 266:case 267:return u===u.parent.name}return!1}function DP(t){return ti(t.declarations,Zj)}function Zj(t){return na(t)&&t.initializer!==void 0}function uYe(t){return t.watch&&gu(t,"watch")}function fg(t){t.close()}function Gl(t){return t.flags&33554432?t.links.checkFlags:0}function l4(t,u=!1){if(t.valueDeclaration){const s=u&&t.declarations&&Le(t.declarations,jf)||t.flags&32768&&Le(t.declarations,zm)||t.valueDeclaration,d=m2(s);return t.parent&&t.parent.flags&32?d:d&-8}if(Gl(t)&6){const s=t.links.checkFlags,d=s&1024?2:s&256?1:4,f=s&2048?256:0;return d|f}return t.flags&4194304?257:0}function X1(t,u){return t.flags&2097152?u.getAliasedSymbol(t):t}function xP(t){return t.exportSymbol?t.exportSymbol.flags|t.flags:t.flags}function Jq(t){return vP(t)===1}function D7(t){return vP(t)!==0}function vP(t){const{parent:u}=t;switch(u==null?void 0:u.kind){case 217:return vP(u);case 225:case 224:const{operator:s}=u;return s===46||s===47?2:0;case 226:const{left:d,operatorToken:f}=u;return d===t&&u5(f.kind)?f.kind===64?1:2:0;case 211:return u.name!==t?0:vP(u);case 303:{const p=vP(u.parent);return t===u.name?YTt(p):p}case 304:return t===u.objectAssignmentInitializer?0:vP(u.parent);case 209:return vP(u);default:return 0}}function YTt(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return H.assertNever(t)}}function gle(t,u){if(!t||!u||Object.keys(t).length!==Object.keys(u).length)return!1;for(const s in t)if(typeof t[s]=="object"){if(!gle(t[s],u[s]))return!1}else if(typeof t[s]!="function"&&t[s]!==u[s])return!1;return!0}function rf(t,u){t.forEach(u),t.clear()}function eD(t,u,s){const{onDeleteValue:d,onExistingValue:f}=s;t.forEach((p,E)=>{const v=u.get(E);v===void 0?(t.delete(E),d(p,E)):f&&f(p,v,E)})}function cB(t,u,s){eD(t,u,s);const{createNewValue:d}=s;u.forEach((f,p)=>{t.has(p)||t.set(p,d(p,f))})}function Jye(t){if(t.flags&32){const u=tD(t);return!!u&&Yu(u,64)}return!1}function tD(t){var u;return(u=t.declarations)==null?void 0:u.find(mr)}function Gu(t){return t.flags&3899393?t.objectFlags:0}function rYe(t,u){return!!Ug(t,s=>u(s)?!0:void 0)}function $q(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&wV(t.declarations[0])}function $ye({moduleSpecifier:t}){return us(t)?t.text:Hc(t)}function Ele(t){let u;return ao(t,s=>{H4(s)&&(u=s)},s=>{for(let d=s.length-1;d>=0;d--)if(H4(s[d])){u=s[d];break}}),u}function Ip(t,u,s=!0){return t.has(u)?!1:(t.set(u,s),!0)}function x7(t){return mr(t)||xh(t)||fm(t)}function _le(t){return t>=182&&t<=205||t===133||t===159||t===150||t===163||t===151||t===136||t===154||t===155||t===116||t===157||t===146||t===141||t===233||t===319||t===320||t===321||t===322||t===323||t===324||t===325}function I0(t){return t.kind===211||t.kind===212}function Uye(t){return t.kind===211?t.name:(H.assert(t.kind===212),t.argumentExpression)}function qye(t){switch(t.kind){case"text":case"internal":return!0;default:return!1}}function Uq(t){return t.kind===275||t.kind===279}function CP(t){for(;I0(t);)t=t.expression;return t}function Zye(t,u){if(I0(t.parent)&&cle(t))return s(t.parent);function s(d){if(d.kind===211){const f=u(d.name);if(f!==void 0)return f}else if(d.kind===212)if(at(d.argumentExpression)||t0(d.argumentExpression)){const f=u(d.argumentExpression);if(f!==void 0)return f}else return;if(I0(d.expression))return s(d.expression);if(at(d.expression))return u(d.expression)}}function dB(t,u){for(;;){switch(t.kind){case 225:t=t.operand;continue;case 226:t=t.left;continue;case 227:t=t.condition;continue;case 215:t=t.tag;continue;case 213:if(u)return t;case 234:case 212:case 211:case 235:case 360:case 238:t=t.expression;continue}return t}}function QTt(t,u){this.flags=t,this.escapedName=u,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.isAssigned=void 0,this.links=void 0}function XTt(t,u){this.flags=u,(H.isDebugging||Gn)&&(this.checker=t)}function eLt(t,u){this.flags=u,H.isDebugging&&(this.checker=t)}function Yye(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function tLt(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function iLt(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function nLt(t,u,s){this.fileName=t,this.text=u,this.skipTrivia=s||(d=>d)}function Qye(t){Ake.push(t),t(Qd)}function Xye(t){Object.assign(Qd,t),L(Ake,u=>u(Qd))}function e3(t,u){return t.replace(/{(\d+)}/g,(s,d)=>""+H.checkDefined(u[+d]))}function eke(t){vZ=t}function tke(t){!vZ&&t&&(vZ=t())}function to(t){return vZ&&vZ[t.key]||t.message}function hB(t,u,s,d,f,...p){s+d>u.length&&(d=u.length-s),Obe(u,s,d);let E=to(f);return Oe(p)&&(E=e3(E,p)),{file:void 0,start:s,length:d,messageText:E,category:f.category,code:f.code,reportsUnnecessary:f.reportsUnnecessary,fileName:t}}function uLt(t){return t.file===void 0&&t.start!==void 0&&t.length!==void 0&&typeof t.fileName=="string"}function aYe(t,u){const s=u.fileName||"",d=u.text.length;H.assertEqual(t.fileName,s),H.assertLessThanOrEqual(t.start,d),H.assertLessThanOrEqual(t.start+t.length,d);const f={file:u,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){f.relatedInformation=[];for(const p of t.relatedInformation)uLt(p)&&p.fileName===s?(H.assertLessThanOrEqual(p.start,d),H.assertLessThanOrEqual(p.start+p.length,d),f.relatedInformation.push(aYe(p,u))):f.relatedInformation.push(p)}return f}function v7(t,u){const s=[];for(const d of t)s.push(aYe(d,u));return s}function Rd(t,u,s,d,...f){Obe(t.text,u,s);let p=to(d);return Oe(f)&&(p=e3(p,f)),{file:t,start:u,length:s,messageText:p,category:d.category,code:d.code,reportsUnnecessary:d.reportsUnnecessary,reportsDeprecated:d.reportsDeprecated}}function Dle(t,...u){let s=to(t);return Oe(u)&&(s=e3(s,u)),s}function cc(t,...u){let s=to(t);return Oe(u)&&(s=e3(s,u)),{file:void 0,start:void 0,length:void 0,messageText:s,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function qq(t,u){return{file:void 0,start:void 0,length:void 0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:u}}function ro(t,u,...s){let d=to(u);return Oe(s)&&(d=e3(d,s)),{messageText:d,category:u.category,code:u.code,next:t===void 0||Array.isArray(t)?t:[t]}}function ike(t,u){let s=t;for(;s.next;)s=s.next[0];s.next=[u]}function oYe(t){return t.file?t.file.path:void 0}function bP(t,u){return Zq(t,u)||rLt(t,u)||0}function Zq(t,u){return dh(oYe(t),oYe(u))||nl(t.start,u.start)||nl(t.length,u.length)||nl(t.code,u.code)||sYe(t.messageText,u.messageText)||0}function rLt(t,u){return!t.relatedInformation&&!u.relatedInformation?0:t.relatedInformation&&u.relatedInformation?nl(t.relatedInformation.length,u.relatedInformation.length)||L(t.relatedInformation,(s,d)=>{const f=u.relatedInformation[d];return bP(s,f)})||0:t.relatedInformation?-1:1}function sYe(t,u){if(typeof t=="string"&&typeof u=="string")return dh(t,u);if(typeof t=="string")return-1;if(typeof u=="string")return 1;let s=dh(t.messageText,u.messageText);if(s)return s;if(!t.next&&!u.next)return 0;if(!t.next)return-1;if(!u.next)return 1;const d=Math.min(t.next.length,u.next.length);for(let f=0;fu.next.length?1:0}function Yj(t){return t===4||t===2||t===1||t===6?1:0}function lYe(t){if(t.transformFlags&2)return zh(t)||K2(t)?t:ao(t,lYe)}function aLt(t){return t.isDeclarationFile?void 0:lYe(t)}function oLt(t){return(t.impliedNodeFormat===99||jc(t.fileName,[".cjs",".cts",".mjs",".mts"]))&&!t.isDeclarationFile?!0:void 0}function Qj(t){switch(nke(t)){case 3:return f=>{f.externalModuleIndicator=HV(f)||!f.isDeclarationFile||void 0};case 1:return f=>{f.externalModuleIndicator=HV(f)};case 2:const u=[HV];(t.jsx===4||t.jsx===5)&&u.push(aLt),u.push(oLt);const s=dg(...u);return f=>void(f.externalModuleIndicator=s(f))}}function Os(t){return t.target??(t.module===100&&9||t.module===199&&99||1)}function m1(t){return typeof t.module=="number"?t.module:Os(t)>=2?5:1}function Yq(t){return t>=5&&t<=99}function p1(t){let u=t.moduleResolution;if(u===void 0)switch(m1(t)){case 1:u=2;break;case 100:u=3;break;case 199:u=99;break;default:u=1;break}return u}function nke(t){return t.moduleDetection||(m1(t)===100||m1(t)===199?3:2)}function Qq(t){switch(m1(t)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function mg(t){return!!(t.isolatedModules||t.verbatimModuleSyntax)}function xle(t){return t.verbatimModuleSyntax||t.isolatedModules&&t.preserveValueImports}function uke(t){return t.allowUnreachableCode===!1}function rke(t){return t.allowUnusedLabels===!1}function Xq(t){return!!(c4(t)&&t.declarationMap)}function e_(t){if(t.esModuleInterop!==void 0)return t.esModuleInterop;switch(m1(t)){case 100:case 199:return!0}}function C7(t){return t.allowSyntheticDefaultImports!==void 0?t.allowSyntheticDefaultImports:e_(t)||m1(t)===4||p1(t)===100}function b7(t){return t>=3&&t<=99||t===100}function eZ(t){return!!t.noDtsResolution||p1(t)!==100}function vle(t){const u=p1(t);if(!b7(u))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(u){case 3:case 99:case 100:return!0}return!1}function cYe(t){const u=p1(t);if(!b7(u))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(u){case 3:case 99:case 100:return!0}return!1}function M2(t){return t.resolveJsonModule!==void 0?t.resolveJsonModule:p1(t)===100}function c4(t){return!!(t.declaration||t.composite)}function fk(t){return!!(t.preserveConstEnums||mg(t))}function Xj(t){return!!(t.incremental||t.composite)}function Z4(t,u){return t[u]===void 0?!!t.strict:!!t[u]}function Bv(t){return t.allowJs===void 0?!!t.checkJs:t.allowJs}function eV(t){return t.useDefineForClassFields===void 0?Os(t)>=9:t.useDefineForClassFields}function ake(t){return t.useDefineForClassFields!==!1&&Os(t)>=9}function oke(t,u){return R8(u,t,hde)}function ske(t,u){return R8(u,t,fde)}function lke(t,u){return R8(u,t,mde)}function tZ(t,u){return u.strictFlag?Z4(t,u.name):u.allowJsFlag?Bv(t):t[u.name]}function iZ(t){const u=t.jsx;return u===2||u===4||u===5}function nZ(t,u){const s=u==null?void 0:u.pragmas.get("jsximportsource"),d=Ha(s)?s[s.length-1]:s;return t.jsx===4||t.jsx===5||t.jsxImportSource||d?(d==null?void 0:d.arguments.factory)||t.jsxImportSource||"react":void 0}function uZ(t,u){return t?`${t}/${u.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Cle(t){let u=!1;for(let s=0;sf,getSymlinkedDirectories:()=>s,getSymlinkedDirectoriesByRealpath:()=>d,setSymlinkedFile:(v,b)=>(f||(f=new Map)).set(v,b),setSymlinkedDirectory:(v,b)=>{let B=J0(v,t,u);TP(B)||(B=zd(B),b!==!1&&!(s!=null&&s.has(B))&&(d||(d=wm())).add(b.realPath,v),(s||(s=new Map)).set(B,b))},setSymlinksFromResolutions(v,b,B){H.assert(!p),p=!0,v(k=>E(this,k.resolvedModule)),b(k=>E(this,k.resolvedTypeReferenceDirective)),B.forEach(k=>E(this,k.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>p};function E(v,b){if(!b||!b.originalPath||!b.resolvedFileName)return;const{resolvedFileName:B,originalPath:k}=b;v.setSymlinkedFile(J0(k,t,u),B);const[T,M]=sLt(B,k,t,u)||_t;T&&M&&v.setSymlinkedDirectory(M,{real:zd(T),realPath:zd(J0(T,t,u))})}}function sLt(t,u,s,d){const f=yd($a(t,s)),p=yd($a(u,s));let E=!1;for(;f.length>=2&&p.length>=2&&!dYe(f[f.length-2],d)&&!dYe(p[p.length-2],d)&&d(f[f.length-1])===d(p[p.length-1]);)f.pop(),p.pop(),E=!0;return E?[yx(f),yx(p)]:void 0}function dYe(t,u){return t!==void 0&&(u(t)==="node_modules"||Pa(t,"@"))}function lLt(t){return bse(t.charCodeAt(0))?t.slice(1):void 0}function yle(t,u,s){const d=doe(t,u,s);return d===void 0?void 0:lLt(d)}function hYe(t){return t.replace($le,cLt)}function cLt(t){return"\\"+t}function yP(t,u,s){const d=rZ(t,u,s);return!d||!d.length?void 0:`^(${d.map(E=>`(${E})`).join("|")})${s==="exclude"?"($|/)":"$"}`}function rZ(t,u,s){if(!(t===void 0||t.length===0))return ju(t,d=>d&&fYe(d,u,s,Tke[s]))}function kle(t){return!/[.*?]/.test(t)}function Fle(t,u,s){const d=t&&fYe(t,u,s,Tke[s]);return d&&`^(${d})${s==="exclude"?"($|/)":"$"}`}function fYe(t,u,s,{singleAsteriskRegexFragment:d,doubleAsteriskRegexFragment:f,replaceWildcardCharacter:p}){let E="",v=!1;const b=FO(t,u),B=Cr(b);if(s!=="exclude"&&B==="**")return;b[0]=mv(b[0]),kle(B)&&b.push("**","*");let k=0;for(let T of b){if(T==="**")E+=f;else if(s==="directories"&&(E+="(",k++),v&&(E+=rl),s!=="exclude"){let M="";T.charCodeAt(0)===42?(M+="([^./]"+d+")?",T=T.substr(1)):T.charCodeAt(0)===63&&(M+="[^./]",T=T.substr(1)),M+=T.replace($le,p),M!==T&&(E+=qle),E+=M}else E+=T.replace($le,p);v=!0}for(;k>0;)E+=")?",k--;return E}function cke(t,u){return t==="*"?u:t==="?"?"[^/]":"\\"+t}function aZ(t,u,s,d,f){t=$o(t),f=$o(f);const p=cr(f,t);return{includeFilePatterns:Vt(rZ(s,p,"files"),E=>`^${E}$`),includeFilePattern:yP(s,p,"files"),includeDirectoryPattern:yP(s,p,"directories"),excludePattern:yP(u,p,"exclude"),basePaths:dLt(t,s,d)}}function jx(t,u){return new RegExp(t,u?"":"i")}function Ale(t,u,s,d,f,p,E,v,b){t=$o(t),p=$o(p);const B=aZ(t,s,d,f,p),k=B.includeFilePatterns&&B.includeFilePatterns.map(Y=>jx(Y,f)),T=B.includeDirectoryPattern&&jx(B.includeDirectoryPattern,f),M=B.excludePattern&&jx(B.excludePattern,f),z=k?k.map(()=>[]):[[]],j=new Map,J=L1(f);for(const Y of B.basePaths)K(Y,cr(p,Y),E);return Va(z);function K(Y,oe,se){const ge=J(b(oe));if(j.has(ge))return;j.set(ge,!0);const{files:ae,directories:Ce}=v(Y);for(const ne of Ph(ae,dh)){const ve=cr(Y,ne),Se=cr(oe,ne);if(!(u&&!jc(ve,u))&&!(M&&M.test(Se)))if(!k)z[0].push(ve);else{const Ne=Ue(k,pe=>pe.test(Se));Ne!==-1&&z[Ne].push(ve)}}if(!(se!==void 0&&(se--,se===0)))for(const ne of Ph(Ce,dh)){const ve=cr(Y,ne),Se=cr(oe,ne);(!T||T.test(Se))&&(!M||!M.test(Se))&&K(ve,Se,se)}}}function dLt(t,u,s){const d=[t];if(u){const f=[];for(const p of u){const E=Pf(p)?p:$o(cr(t,p));f.push(hLt(E))}f.sort(CN(!s));for(const p of f)ye(d,E=>!GE(E,p,t,!s))&&d.push(p)}return d}function hLt(t){const u=jt(t,TYe);return u<0?t7(t)?mv(lr(t)):t:t.substring(0,t.lastIndexOf(rl,u))}function oZ(t,u){return u||sZ(t)||3}function sZ(t){switch(t.substr(t.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}function kP(t,u){const s=t&&Bv(t);if(!u||u.length===0)return s?CZ:EB;const d=s?CZ:EB,f=Va(d);return[...d,...qi(u,E=>E.scriptKind===7||s&&fLt(E.scriptKind)&&!f.includes(E.extension)?[E.extension]:void 0)]}function tV(t,u){return!t||!M2(t)?u:u===CZ?PYe:u===EB?LYe:[...u,[".json"]]}function fLt(t){return t===1||t===2}function z2(t){return Oe(_B,u=>Ml(t,u))}function mk(t){return Oe(Zle,u=>Ml(t,u))}function dke({imports:t},u=dg(z2,mk)){return G(t,({text:s})=>om(s)&&!jc(s,fV)?u(s):void 0)||!1}function Sle(t,u,s,d){if(t==="js"||u===99)return $B(s)&&f()!==2?3:2;if(t==="minimal")return 0;if(t==="index")return 1;if(!$B(s))return dke(d)?2:0;return f();function f(){let p=!1;const E=d.imports.length?d.imports.map(v=>v.text):gh(d)?mLt(d).map(v=>v.arguments[0].text):_t;for(const v of E)if(om(v)){if(jc(v,fV))continue;if(mk(v))return 3;z2(v)&&(p=!0)}return p?2:0}}function mLt(t){let u=0,s;for(const d of t.statements){if(u>3)break;L0e(d)?s=Hi(s,d.declarationList.declarations.map(f=>f.initializer)):Od(d)&&xf(d.expression,!0)?s=xi(s,d.expression):u++}return s||_t}function hke(t,u,s){if(!t)return!1;const d=kP(u,s);for(const f of Va(tV(u,d)))if(Ml(t,f))return!0;return!1}function mYe(t){const u=t.match(/\//g);return u?u.length:0}function iV(t,u){return nl(mYe(t),mYe(u))}function _h(t){for(const u of Xle){const s=fke(t,u);if(s!==void 0)return s}return t}function fke(t,u){return Ml(t,u)?nV(t,u):void 0}function nV(t,u){return t.substring(0,t.length-u.length)}function wv(t,u){return AO(t,u,Xle,!1)}function fB(t){const u=t.indexOf("*");return u===-1?t:t.indexOf("*",u+1)!==-1?void 0:{prefix:t.substr(0,u),suffix:t.substr(u+1)}}function lZ(t){return qi(Ns(t),u=>fB(u))}function pg(t){return!(t>=0)}function cZ(t){return t===".ts"||t===".tsx"||t===".d.ts"||t===".cts"||t===".mts"||t===".d.mts"||t===".d.cts"||Pa(t,".d.")&&sc(t,".ts")}function FP(t){return cZ(t)||t===".json"}function y7(t){const u=t3(t);return u!==void 0?u:H.fail(`File ${t} has unknown extension.`)}function pYe(t){return t3(t)!==void 0}function t3(t){return Le(Xle,u=>Ml(t,u))}function uV(t,u){return t.checkJsDirective?t.checkJsDirective.enabled:u.checkJs}function Ble(t,u){const s=[];for(const d of t){if(d===u)return u;Ja(d)||s.push(d)}return coe(s,d=>d,u)}function wle(t,u){const s=t.indexOf(u);return H.assert(s!==-1),t.slice(s)}function Es(t,...u){return u.length&&(t.relatedInformation||(t.relatedInformation=[]),H.assert(t.relatedInformation!==_t,"Diagnostic had empty array singleton for related info, but is still being constructed!"),t.relatedInformation.push(...u)),t}function mke(t,u){H.assert(t.length!==0);let s=u(t[0]),d=s;for(let f=1;fd&&(d=p)}return{min:s,max:d}}function Tle(t){return{pos:ek(t),end:t.end}}function Lle(t,u){const s=u.pos-1,d=Math.min(t.text.length,gs(t.text,u.end)+1);return{pos:s,end:d}}function AP(t,u,s){return u.skipLibCheck&&t.isDeclarationFile||u.skipDefaultLibCheck&&t.hasNoDefaultLib||s.isSourceOfProjectReferenceRedirect(t.fileName)}function dZ(t,u){return t===u||typeof t=="object"&&t!==null&&typeof u=="object"&&u!==null&&ZA(t,u,dZ)}function SP(t){let u;switch(t.charCodeAt(1)){case 98:case 66:u=1;break;case 111:case 79:u=3;break;case 120:case 88:u=4;break;default:const B=t.length-1;let k=0;for(;t.charCodeAt(k)===48;)k++;return t.slice(k,B)||"0"}const s=2,d=t.length-1,f=(d-s)*u,p=new Uint16Array((f>>>4)+(f&15?1:0));for(let B=d-1,k=0;B>=s;B--,k+=u){const T=k>>>4,M=t.charCodeAt(B),j=(M<=57?M-48:10+M-(M<=70?65:97))<<(k&15);p[T]|=j;const J=j>>>16;J&&(p[T+1]|=J)}let E="",v=p.length-1,b=!0;for(;b;){let B=0;b=!1;for(let k=v;k>=0;k--){const T=B<<16|p[k],M=T/10|0;p[k]=M,B=T-M*10,M&&!b&&(v=k,b=!0)}E=B+E}return E}function I2({negative:t,base10Value:u}){return(t&&u!=="0"?"-":"")+u}function pke(t){if(hZ(t,!1))return Nle(t)}function Nle(t){const u=t.startsWith("-"),s=SP(`${u?t.slice(1):t}n`);return{negative:u,base10Value:s}}function hZ(t,u){if(t==="")return!1;const s=YD(99,!1);let d=!0;s.setOnError(()=>d=!1),s.setText(t+"n");let f=s.scan();const p=f===41;p&&(f=s.scan());const E=s.getTokenFlags();return d&&f===10&&s.getTokenEnd()===t.length+1&&!(E&512)&&(!u||t===I2({negative:p,base10Value:SP(s.getTokenValue())}))}function Tv(t){return!!(t.flags&33554432)||_q(t)||ELt(t)||gLt(t)||!(Z_(t)||pLt(t))}function pLt(t){return at(t)&&pm(t.parent)&&t.parent.name===t}function gLt(t){for(;t.kind===80||t.kind===211;)t=t.parent;if(t.kind!==167)return!1;if(Yu(t.parent,64))return!0;const u=t.parent.parent.kind;return u===264||u===187}function ELt(t){if(t.kind!==80)return!1;const u=Tn(t.parent,s=>{switch(s.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(u==null?void 0:u.token)===119||(u==null?void 0:u.parent.kind)===264}function gke(t){return X4(t)&&at(t.typeName)}function Eke(t,u=Cx){if(t.length<2)return!0;const s=t[0];for(let d=1,f=t.length;dt.includes(u))}function xke(t){if(!t.parent)return;switch(t.kind){case 168:const{parent:s}=t;return s.kind===195?void 0:s.typeParameters;case 169:return t.parent.parameters;case 204:return t.parent.templateSpans;case 239:return t.parent.templateSpans;case 170:{const{parent:d}=t;return Ak(d)?d.modifiers:void 0}case 298:return t.parent.heritageClauses}const{parent:u}=t;if(I8(t))return K7(t.parent)?void 0:t.parent.tags;switch(u.kind){case 187:case 264:return Zy(t)?u.members:void 0;case 192:case 193:return u.types;case 189:case 209:case 361:case 275:case 279:return u.elements;case 210:case 292:return u.properties;case 213:case 214:return Qr(t)?u.typeArguments:u.expression===t?void 0:u.arguments;case 284:case 288:return ej(t)?u.children:void 0;case 286:case 285:return Qr(t)?u.typeArguments:void 0;case 241:case 296:case 297:case 268:return u.statements;case 269:return u.clauses;case 263:case 231:return Zd(t)?u.members:void 0;case 266:return J2(t)?u.members:void 0;case 312:return u.statements}}function fZ(t){if(!t.typeParameters){if(Oe(t.parameters,u=>!f1(u)))return!0;if(t.kind!==219){const u=Ki(t.parameters);if(!(u&&L2(u)))return!0}}return!1}function LP(t){return t==="Infinity"||t==="-Infinity"||t==="NaN"}function vke(t){return t.kind===260&&t.parent.kind===299}function Mle(t){const u=t.valueDeclaration&&XE(t.valueDeclaration);return!!u&&(io(u)||vke(u))}function R2(t){return t.kind===218||t.kind===219}function O2(t){return t.replace(/\$/gm,()=>"\\$")}function i3(t){return(+t).toString()===t}function mZ(t,u,s,d,f){const p=f&&t==="new";return!p&&Lm(t,u)?q.createIdentifier(t):!d&&!p&&i3(t)&&+t>=0?q.createNumericLiteral(+t):q.createStringLiteral(t,!!s)}function NP(t){return!!(t.flags&262144&&t.isThisType)}function pZ(t){let u=0,s=0,d=0,f=0,p;(B=>{B[B.BeforeNodeModules=0]="BeforeNodeModules",B[B.NodeModules=1]="NodeModules",B[B.Scope=2]="Scope",B[B.PackageContent=3]="PackageContent"})(p||(p={}));let E=0,v=0,b=0;for(;v>=0;)switch(E=v,v=t.indexOf("/",E+1),b){case 0:t.indexOf(o_,E)===E&&(u=E,s=v,b=1);break;case 1:case 2:b===1&&t.charAt(E+1)==="@"?b=2:(d=v,b=3);break;case 3:t.indexOf(o_,E)===E?b=1:b=3;break}return f=E,b>1?{topLevelNodeModulesIndex:u,topLevelPackageNameIndex:s,packageRootIndex:d,fileNameIndex:f}:void 0}function gYe(t){var u;return t.kind===348?(u=t.typeExpression)==null?void 0:u.type:t.type}function gB(t){switch(t.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return t.isTypeOnly;case 276:case 281:return t.parent.parent.isTypeOnly;default:return!1}}function rV(t){return Iv(t)||Jl(t)||ed(t)||Wc(t)||xh(t)||gB(t)||_c(t)&&!v2(t)&&!Yg(t)}function aV(t){if(!WO(t))return!1;const{isBracketed:u,typeExpression:s}=t;return u||!!s&&s.type.kind===323}function zle(t,u){if(t.length===0)return!1;const s=t.charCodeAt(0);return s===35?t.length>1&&G_(t.charCodeAt(1),u):G_(s,u)}function Cke(t){var u;return((u=sce(t))==null?void 0:u.kind)===0}function oV(t){return Qn(t)&&(t.type&&t.type.kind===323||B8(t).some(({isBracketed:u,typeExpression:s})=>u||!!s&&s.type.kind===323))}function PP(t){switch(t.kind){case 172:case 171:return!!t.questionToken;case 169:return!!t.questionToken||oV(t);case 355:case 348:return aV(t);default:return!1}}function bke(t){const u=t.kind;return(u===211||u===212)&&O7(t.expression)}function Ile(t){return Qn(t)&&Cf(t)&&lm(t)&&!!jse(t)}function Rle(t){return H.checkDefined(gZ(t))}function gZ(t){const u=jse(t);return u&&u.typeExpression&&u.typeExpression.type}function MP(t){return at(t)?t.escapedText:k7(t)}function sV(t){return at(t)?fu(t):zP(t)}function yke(t){const u=t.kind;return u===80||u===295}function k7(t){return`${t.namespace.escapedText}:${fu(t.name)}`}function zP(t){return`${fu(t.namespace)}:${fu(t.name)}`}function Ole(t){return at(t)?fu(t):zP(t)}function Y4(t){return!!(t.flags&8576)}function Q4(t){return t.flags&8192?t.escapedName:t.flags&384?Al(""+t.value):H.fail()}function EZ(t){return!!t&&(Iu(t)||U0(t)||Xn(t))}function kke(t){return t===void 0?!1:!!qB(t.attributes)}var _Z,Hx,lV,DZ,cV,xZ,jle,Vle,EYe,_Ye,Hle,DYe,xYe,Kle,Wle,Gle,Jle,vYe,CYe,bYe,yYe,kYe,Fke,FYe,AYe,SYe,IP,pk,BYe,wYe,Qd,Ake,vZ,$le,TYe,Ule,qle,Ske,Bke,wke,Tke,EB,Zle,LYe,NYe,Yle,_B,CZ,PYe,dV,hV,fV,Qle,Xle,bZ,DLt=o({"src/compiler/utilities.ts"(){Bo(),_Z=[],Hx="tslib",lV=160,DZ=1e6,cV=CTt(),xZ=Mh(()=>new Map(Object.entries({Array:new Map(Object.entries({es2015:["find","findIndex","fill","copyWithin","entries","keys","values"],es2016:["includes"],es2019:["flat","flatMap"],es2022:["at"],es2023:["findLastIndex","findLast"]})),Iterator:new Map(Object.entries({es2015:_t})),AsyncIterator:new Map(Object.entries({es2015:_t})),Atomics:new Map(Object.entries({es2017:_t})),SharedArrayBuffer:new Map(Object.entries({es2017:_t})),AsyncIterable:new Map(Object.entries({es2018:_t})),AsyncIterableIterator:new Map(Object.entries({es2018:_t})),AsyncGenerator:new Map(Object.entries({es2018:_t})),AsyncGeneratorFunction:new Map(Object.entries({es2018:_t})),RegExp:new Map(Object.entries({es2015:["flags","sticky","unicode"],es2018:["dotAll"]})),Reflect:new Map(Object.entries({es2015:["apply","construct","defineProperty","deleteProperty","get","getOwnPropertyDescriptor","getPrototypeOf","has","isExtensible","ownKeys","preventExtensions","set","setPrototypeOf"]})),ArrayConstructor:new Map(Object.entries({es2015:["from","of"]})),ObjectConstructor:new Map(Object.entries({es2015:["assign","getOwnPropertySymbols","keys","is","setPrototypeOf"],es2017:["values","entries","getOwnPropertyDescriptors"],es2019:["fromEntries"],es2022:["hasOwn"]})),NumberConstructor:new Map(Object.entries({es2015:["isFinite","isInteger","isNaN","isSafeInteger","parseFloat","parseInt"]})),Math:new Map(Object.entries({es2015:["clz32","imul","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","hypot","trunc","fround","cbrt"]})),Map:new Map(Object.entries({es2015:["entries","keys","values"]})),Set:new Map(Object.entries({es2015:["entries","keys","values"]})),PromiseConstructor:new Map(Object.entries({es2015:["all","race","reject","resolve"],es2020:["allSettled"],es2021:["any"]})),Symbol:new Map(Object.entries({es2015:["for","keyFor"],es2019:["description"]})),WeakMap:new Map(Object.entries({es2015:["entries","keys","values"]})),WeakSet:new Map(Object.entries({es2015:["entries","keys","values"]})),String:new Map(Object.entries({es2015:["codePointAt","includes","endsWith","normalize","repeat","startsWith","anchor","big","blink","bold","fixed","fontcolor","fontsize","italics","link","small","strike","sub","sup"],es2017:["padStart","padEnd"],es2019:["trimStart","trimEnd","trimLeft","trimRight"],es2020:["matchAll"],es2021:["replaceAll"],es2022:["at"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:_t,es2018:["finally"]})),RegExpMatchArray:new Map(Object.entries({es2018:["groups"]})),RegExpExecArray:new Map(Object.entries({es2018:["groups"]})),Intl:new Map(Object.entries({es2018:["PluralRules"]})),NumberFormat:new Map(Object.entries({es2018:["formatToParts"]})),SymbolConstructor:new Map(Object.entries({es2020:["matchAll"]})),DataView:new Map(Object.entries({es2020:["setBigInt64","setBigUint64","getBigInt64","getBigUint64"]})),BigInt:new Map(Object.entries({es2020:_t})),RelativeTimeFormat:new Map(Object.entries({es2020:["format","formatToParts","resolvedOptions"]})),Int8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint8ClampedArray:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint16Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Int32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Uint32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float32Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),Float64Array:new Map(Object.entries({es2022:["at"],es2023:["findLastIndex","findLast"]})),BigInt64Array:new Map(Object.entries({es2020:_t,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:_t,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),jle=(t=>(t[t.None=0]="None",t[t.NeverAsciiEscape=1]="NeverAsciiEscape",t[t.JsxAttributeEscape=2]="JsxAttributeEscape",t[t.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",t[t.AllowNumericSeparator=8]="AllowNumericSeparator",t))(jle||{}),Vle=/^(\/\/\/\s*/,EYe=/^(\/\/\/\s*/,_Ye=/^(\/\/\/\s*/,Hle=/^(\/\/\/\s*/,DYe=/^\/\/\/\s*/,xYe=/^(\/\/\/\s*/,Kle=(t=>(t[t.None=0]="None",t[t.Definite=1]="Definite",t[t.Compound=2]="Compound",t))(Kle||{}),Wle=(t=>(t[t.Normal=0]="Normal",t[t.Generator=1]="Generator",t[t.Async=2]="Async",t[t.Invalid=4]="Invalid",t[t.AsyncGenerator=3]="AsyncGenerator",t))(Wle||{}),Gle=(t=>(t[t.Left=0]="Left",t[t.Right=1]="Right",t))(Gle||{}),Jle=(t=>(t[t.Comma=0]="Comma",t[t.Spread=1]="Spread",t[t.Yield=2]="Yield",t[t.Assignment=3]="Assignment",t[t.Conditional=4]="Conditional",t[t.Coalesce=4]="Coalesce",t[t.LogicalOR=5]="LogicalOR",t[t.LogicalAND=6]="LogicalAND",t[t.BitwiseOR=7]="BitwiseOR",t[t.BitwiseXOR=8]="BitwiseXOR",t[t.BitwiseAND=9]="BitwiseAND",t[t.Equality=10]="Equality",t[t.Relational=11]="Relational",t[t.Shift=12]="Shift",t[t.Additive=13]="Additive",t[t.Multiplicative=14]="Multiplicative",t[t.Exponentiation=15]="Exponentiation",t[t.Unary=16]="Unary",t[t.Update=17]="Update",t[t.LeftHandSide=18]="LeftHandSide",t[t.Member=19]="Member",t[t.Primary=20]="Primary",t[t.Highest=20]="Highest",t[t.Lowest=0]="Lowest",t[t.Invalid=-1]="Invalid",t))(Jle||{}),vYe=/\$\{/g,CYe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,bYe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,yYe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,kYe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),Fke=/[^\u0000-\u007F]/g,FYe=/["\u0000-\u001f\u2028\u2029\u0085]/g,AYe=/['\u0000-\u001f\u2028\u2029\u0085]/g,SYe=new Map(Object.entries({'"':""","'":"'"})),IP=[""," "],pk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",BYe=`\r +`,wYe=` +`,Qd={getNodeConstructor:()=>Yye,getTokenConstructor:()=>tLt,getIdentifierConstructor:()=>iLt,getPrivateIdentifierConstructor:()=>Yye,getSourceFileConstructor:()=>Yye,getSymbolConstructor:()=>QTt,getTypeConstructor:()=>XTt,getSignatureConstructor:()=>eLt,getSourceMapSourceConstructor:()=>nLt},Ake=[],$le=/[^\w\s/]/g,TYe=[42,63],Ule=["node_modules","bower_components","jspm_packages"],qle=`(?!(${Ule.join("|")})(/|$))`,Ske={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${qle}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>cke(t,Ske.singleAsteriskRegexFragment)},Bke={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${qle}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>cke(t,Bke.singleAsteriskRegexFragment)},wke={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:t=>cke(t,wke.singleAsteriskRegexFragment)},Tke={files:Ske,directories:Bke,exclude:wke},EB=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],Zle=Va(EB),LYe=[...EB,[".json"]],NYe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Yle=[[".js",".jsx"],[".mjs"],[".cjs"]],_B=Va(Yle),CZ=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],PYe=[...CZ,[".json"]],dV=[".d.ts",".d.cts",".d.mts"],hV=[".ts",".cts",".mts",".tsx"],fV=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],Qle=(t=>(t[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",t[t.TsExtension=3]="TsExtension",t))(Qle||{}),Xle=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],bZ={files:_t,directories:_t}}});function Lke(){let t,u,s,d,f;return{createBaseSourceFileNode:p,createBaseIdentifierNode:E,createBasePrivateIdentifierNode:v,createBaseTokenNode:b,createBaseNode:B};function p(k){return new(f||(f=Qd.getSourceFileConstructor()))(k,-1,-1)}function E(k){return new(s||(s=Qd.getIdentifierConstructor()))(k,-1,-1)}function v(k){return new(d||(d=Qd.getPrivateIdentifierConstructor()))(k,-1,-1)}function b(k){return new(u||(u=Qd.getTokenConstructor()))(k,-1,-1)}function B(k){return new(t||(t=Qd.getNodeConstructor()))(k,-1,-1)}}var xLt=o({"src/compiler/factory/baseNodeFactory.ts"(){Bo()}});function Nke(t){let u,s;return{getParenthesizeLeftSideOfBinaryForOperator:d,getParenthesizeRightSideOfBinaryForOperator:f,parenthesizeLeftSideOfBinary:B,parenthesizeRightSideOfBinary:k,parenthesizeExpressionOfComputedPropertyName:T,parenthesizeConditionOfConditionalExpression:M,parenthesizeBranchOfConditionalExpression:z,parenthesizeExpressionOfExportDefault:j,parenthesizeExpressionOfNew:J,parenthesizeLeftSideOfAccess:K,parenthesizeOperandOfPostfixUnary:Y,parenthesizeOperandOfPrefixUnary:oe,parenthesizeExpressionsOfCommaDelimitedList:se,parenthesizeExpressionForDisallowedComma:ge,parenthesizeExpressionOfExpressionStatement:ae,parenthesizeConciseBodyOfArrowFunction:Ce,parenthesizeCheckTypeOfConditionalType:ne,parenthesizeExtendsTypeOfConditionalType:ve,parenthesizeConstituentTypesOfUnionType:Ne,parenthesizeConstituentTypeOfUnionType:Se,parenthesizeConstituentTypesOfIntersectionType:fe,parenthesizeConstituentTypeOfIntersectionType:pe,parenthesizeOperandOfTypeOperator:xe,parenthesizeOperandOfReadonlyTypeOperator:Be,parenthesizeNonArrayTypeOfPostfixType:Ge,parenthesizeElementTypesOfTupleType:Ae,parenthesizeElementTypeOfTupleType:De,parenthesizeTypeOfOptionalType:Je,parenthesizeTypeArguments:Ve,parenthesizeLeadingTypeArgument:ft};function d(We){u||(u=new Map);let Gt=u.get(We);return Gt||(Gt=Yt=>B(We,Yt),u.set(We,Gt)),Gt}function f(We){s||(s=new Map);let Gt=s.get(We);return Gt||(Gt=Yt=>k(We,void 0,Yt),s.set(We,Gt)),Gt}function p(We,Gt,Yt,Ie){const st=Rj(226,We),St=Z0e(226,We),It=Np(Gt);if(!Yt&&Gt.kind===219&&st>3)return!0;const ei=lP(It);switch(nl(ei,st)){case-1:return!(!Yt&&St===1&&Gt.kind===229);case 1:return!1;case 0:if(Yt)return St===1;if(Xn(It)&&It.operatorToken.kind===We){if(E(We))return!1;if(We===40){const Ut=Ie?v(Ie):0;if(jN(Ut)&&Ut===v(It))return!1}}return q0e(It)===0}}function E(We){return We===42||We===52||We===51||We===53||We===28}function v(We){if(We=Np(We),jN(We.kind))return We.kind;if(We.kind===226&&We.operatorToken.kind===40){if(We.cachedLiteralKind!==void 0)return We.cachedLiteralKind;const Gt=v(We.left),Yt=jN(Gt)&&Gt===v(We.right)?Gt:0;return We.cachedLiteralKind=Yt,Yt}return 0}function b(We,Gt,Yt,Ie){return Np(Gt).kind===217?Gt:p(We,Gt,Yt,Ie)?t.createParenthesizedExpression(Gt):Gt}function B(We,Gt){return b(We,Gt,!0)}function k(We,Gt,Yt){return b(We,Yt,!1,Gt)}function T(We){return eM(We)?t.createParenthesizedExpression(We):We}function M(We){const Gt=Rj(227,58),Yt=Np(We),Ie=lP(Yt);return nl(Ie,Gt)!==1?t.createParenthesizedExpression(We):We}function z(We){const Gt=Np(We);return eM(Gt)?t.createParenthesizedExpression(We):We}function j(We){const Gt=Np(We);let Yt=eM(Gt);if(!Yt)switch(dB(Gt,!1).kind){case 231:case 218:Yt=!0}return Yt?t.createParenthesizedExpression(We):We}function J(We){const Gt=dB(We,!0);switch(Gt.kind){case 213:return t.createParenthesizedExpression(We);case 214:return Gt.arguments?We:t.createParenthesizedExpression(We)}return K(We)}function K(We,Gt){const Yt=Np(We);return Df(Yt)&&(Yt.kind!==214||Yt.arguments)&&(Gt||!Y1(Yt))?We:Pt(t.createParenthesizedExpression(We),We)}function Y(We){return Df(We)?We:Pt(t.createParenthesizedExpression(We),We)}function oe(We){return e0e(We)?We:Pt(t.createParenthesizedExpression(We),We)}function se(We){const Gt=Lu(We,ge);return Pt(t.createNodeArray(Gt,We.hasTrailingComma),We)}function ge(We){const Gt=Np(We),Yt=lP(Gt),Ie=Rj(226,28);return Yt>Ie?We:Pt(t.createParenthesizedExpression(We),We)}function ae(We){const Gt=Np(We);if(Mo(Gt)){const Ie=Gt.expression,st=Np(Ie).kind;if(st===218||st===219){const St=t.updateCallExpression(Gt,Pt(t.createParenthesizedExpression(Ie),Ie),Gt.typeArguments,Gt.arguments);return t.restoreOuterExpressions(We,St,8)}}const Yt=dB(Gt,!1).kind;return Yt===210||Yt===218?Pt(t.createParenthesizedExpression(We),We):We}function Ce(We){return!po(We)&&(eM(We)||dB(We,!1).kind===210)?Pt(t.createParenthesizedExpression(We),We):We}function ne(We){switch(We.kind){case 184:case 185:case 194:return t.createParenthesizedType(We)}return We}function ve(We){switch(We.kind){case 194:return t.createParenthesizedType(We)}return We}function Se(We){switch(We.kind){case 192:case 193:return t.createParenthesizedType(We)}return ne(We)}function Ne(We){return t.createNodeArray(Lu(We,Se))}function pe(We){switch(We.kind){case 192:case 193:return t.createParenthesizedType(We)}return Se(We)}function fe(We){return t.createNodeArray(Lu(We,pe))}function xe(We){switch(We.kind){case 193:return t.createParenthesizedType(We)}return pe(We)}function Be(We){switch(We.kind){case 198:return t.createParenthesizedType(We)}return xe(We)}function Ge(We){switch(We.kind){case 195:case 198:case 186:return t.createParenthesizedType(We)}return xe(We)}function Ae(We){return t.createNodeArray(Lu(We,De))}function De(We){return Ke(We)?t.createParenthesizedType(We):We}function Ke(We){return wB(We)?We.postfix:GP(We)||u3(We)||WP(We)||z7(We)?Ke(We.type):FB(We)?Ke(We.falseType):Pv(We)||kB(We)?Ke(Cr(We.types)):P7(We)?!!We.typeParameter.constraint&&Ke(We.typeParameter.constraint):!1}function Je(We){return Ke(We)?t.createParenthesizedType(We):Ge(We)}function ft(We){return ube(We)&&We.typeParameters?t.createParenthesizedType(We):We}function Ye(We,Gt){return Gt===0?ft(We):We}function Ve(We){if(Oe(We))return t.createNodeArray(Lu(We,Ye))}}var ece,vLt=o({"src/compiler/factory/parenthesizerRules.ts"(){Bo(),ece={getParenthesizeLeftSideOfBinaryForOperator:t=>il,getParenthesizeRightSideOfBinaryForOperator:t=>il,parenthesizeLeftSideOfBinary:(t,u)=>u,parenthesizeRightSideOfBinary:(t,u,s)=>s,parenthesizeExpressionOfComputedPropertyName:il,parenthesizeConditionOfConditionalExpression:il,parenthesizeBranchOfConditionalExpression:il,parenthesizeExpressionOfExportDefault:il,parenthesizeExpressionOfNew:t=>Po(t,Df),parenthesizeLeftSideOfAccess:t=>Po(t,Df),parenthesizeOperandOfPostfixUnary:t=>Po(t,Df),parenthesizeOperandOfPrefixUnary:t=>Po(t,e0e),parenthesizeExpressionsOfCommaDelimitedList:t=>Po(t,g2),parenthesizeExpressionForDisallowedComma:il,parenthesizeExpressionOfExpressionStatement:il,parenthesizeConciseBodyOfArrowFunction:il,parenthesizeCheckTypeOfConditionalType:il,parenthesizeExtendsTypeOfConditionalType:il,parenthesizeConstituentTypesOfUnionType:t=>Po(t,g2),parenthesizeConstituentTypeOfUnionType:il,parenthesizeConstituentTypesOfIntersectionType:t=>Po(t,g2),parenthesizeConstituentTypeOfIntersectionType:il,parenthesizeOperandOfTypeOperator:il,parenthesizeOperandOfReadonlyTypeOperator:il,parenthesizeNonArrayTypeOfPostfixType:il,parenthesizeElementTypesOfTupleType:t=>Po(t,g2),parenthesizeElementTypeOfTupleType:il,parenthesizeTypeOfOptionalType:il,parenthesizeTypeArguments:t=>t&&Po(t,g2),parenthesizeLeadingTypeArgument:il}}});function Pke(t){return{convertToFunctionBlock:u,convertToFunctionExpression:s,convertToClassExpression:d,convertToArrayAssignmentElement:f,convertToObjectAssignmentElement:p,convertToAssignmentPattern:E,convertToObjectAssignmentPattern:v,convertToArrayAssignmentPattern:b,convertToAssignmentElementTarget:B};function u(k,T){if(po(k))return k;const M=t.createReturnStatement(k);Pt(M,k);const z=t.createBlock([M],T);return Pt(z,k),z}function s(k){var T;if(!k.body)return H.fail("Cannot convert a FunctionDeclaration without a body");const M=t.createFunctionExpression((T=p2(k))==null?void 0:T.filter(z=>!L7(z)&&!rY(z)),k.asteriskToken,k.name,k.typeParameters,k.parameters,k.type,k.body);return su(M,k),Pt(M,k),RP(k)&&FZ(M,!0),M}function d(k){var T;const M=t.createClassExpression((T=k.modifiers)==null?void 0:T.filter(z=>!L7(z)&&!rY(z)),k.name,k.typeParameters,k.heritageClauses,k.members);return su(M,k),Pt(M,k),RP(k)&&FZ(M,!0),M}function f(k){if(js(k)){if(k.dotDotDotToken)return H.assertNode(k.name,at),su(Pt(t.createSpreadElement(k.name),k),k);const T=B(k.name);return k.initializer?su(Pt(t.createAssignment(T,k.initializer),k),k):T}return Po(k,Wt)}function p(k){if(js(k)){if(k.dotDotDotToken)return H.assertNode(k.name,at),su(Pt(t.createSpreadAssignment(k.name),k),k);if(k.propertyName){const T=B(k.name);return su(Pt(t.createPropertyAssignment(k.propertyName,k.initializer?t.createAssignment(T,k.initializer):T),k),k)}return H.assertNode(k.name,at),su(Pt(t.createShorthandPropertyAssignment(k.name,k.initializer),k),k)}return Po(k,Z3)}function E(k){switch(k.kind){case 207:case 209:return b(k);case 206:case 210:return v(k)}}function v(k){return Rp(k)?su(Pt(t.createObjectLiteralExpression(Vt(k.elements,p)),k),k):Po(k,ys)}function b(k){return _k(k)?su(Pt(t.createArrayLiteralExpression(Vt(k.elements,f)),k),k):Po(k,Dh)}function B(k){return So(k)?E(k):Po(k,Wt)}}var tce,CLt=o({"src/compiler/factory/nodeConverters.ts"(){Bo(),tce={convertToFunctionBlock:ho,convertToFunctionExpression:ho,convertToClassExpression:ho,convertToArrayAssignmentElement:ho,convertToObjectAssignmentElement:ho,convertToAssignmentPattern:ho,convertToObjectAssignmentPattern:ho,convertToArrayAssignmentPattern:ho,convertToAssignmentElementTarget:ho}}});function MYe(t){zke.push(t)}function mV(t,u){const s=t&8?bLt:yLt,d=Mh(()=>t&1?ece:Nke(Y)),f=Mh(()=>t&2?tce:Pke(Y)),p=HE(N=>(W,ee)=>Me(W,N,ee)),E=HE(N=>W=>Bt(N,W)),v=HE(N=>W=>Ci(W,N)),b=HE(N=>()=>sz(N)),B=HE(N=>W=>B0(N,W)),k=HE(N=>(W,ee)=>A9(N,W,ee)),T=HE(N=>(W,ee)=>F9(N,W,ee)),M=HE(N=>(W,ee)=>Eb(N,W,ee)),z=HE(N=>(W,ee)=>_4(N,W,ee)),j=HE(N=>(W,ee,ke)=>fC(N,W,ee,ke)),J=HE(N=>(W,ee,ke)=>T5(N,W,ee,ke)),K=HE(N=>(W,ee,ke,dt)=>n1(N,W,ee,ke,dt)),Y={get parenthesizer(){return d()},get converters(){return f()},baseFactory:u,flags:t,createNodeArray:oe,createNumericLiteral:Ce,createBigIntLiteral:ne,createStringLiteral:Se,createStringLiteralFromNode:Ne,createRegularExpressionLiteral:pe,createLiteralLikeNode:fe,createIdentifier:Ge,createTempVariable:Ae,createLoopVariable:De,createUniqueName:Ke,getGeneratedNameForNode:Je,createPrivateIdentifier:Ye,createUniquePrivateName:We,getGeneratedPrivateNameForNode:Gt,createToken:Ie,createSuper:st,createThis:St,createNull:It,createTrue:ei,createFalse:ht,createModifier:Ut,createModifiersFromModifierFlags:Ni,createQualifiedName:ji,updateQualifiedName:xn,createComputedPropertyName:Jn,updateComputedPropertyName:an,createTypeParameterDeclaration:Pi,updateTypeParameterDeclaration:Ai,createParameterDeclaration:Zu,updateParameterDeclaration:aa,createDecorator:yr,updateDecorator:Ba,createPropertySignature:bt,updatePropertySignature:jn,createPropertyDeclaration:Si,updatePropertyDeclaration:Dn,createMethodSignature:Cn,updateMethodSignature:tu,createMethodDeclaration:oa,updateMethodDeclaration:Da,createConstructorDeclaration:Qe,updateConstructorDeclaration:Et,createGetAccessorDeclaration:qt,updateGetAccessorDeclaration:Xt,createSetAccessorDeclaration:et,updateSetAccessorDeclaration:gt,createCallSignature:me,updateCallSignature:ni,createConstructSignature:vi,updateConstructSignature:mt,createIndexSignature:Ot,updateIndexSignature:Ei,createClassStaticBlockDeclaration:Ta,updateClassStaticBlockDeclaration:Yo,createTemplateLiteralTypeSpan:$i,updateTemplateLiteralTypeSpan:Qi,createKeywordTypeNode:on,createTypePredicateNode:le,updateTypePredicateNode:te,createTypeReferenceNode:we,updateTypeReferenceNode:de,createFunctionTypeNode:je,updateFunctionTypeNode:X,createConstructorTypeNode:Ct,updateConstructorTypeNode:Li,createTypeQueryNode:du,updateTypeQueryNode:Ru,createTypeLiteralNode:pr,updateTypeLiteralNode:Xu,createArrayTypeNode:ca,updateArrayTypeNode:Ku,createTupleTypeNode:ja,updateTupleTypeNode:wn,createNamedTupleMember:Ir,updateNamedTupleMember:as,createOptionalTypeNode:wo,updateOptionalTypeNode:Fn,createRestTypeNode:vc,updateRestTypeNode:Ya,createUnionTypeNode:wl,updateUnionTypeNode:hd,createIntersectionTypeNode:vl,updateIntersectionTypeNode:co,createConditionalTypeNode:Ho,updateConditionalTypeNode:id,createInferTypeNode:Y0,updateInferTypeNode:Ko,createImportTypeNode:Lc,updateImportTypeNode:Il,createParenthesizedType:cl,updateParenthesizedType:Ka,createThisTypeNode:Ri,createTypeOperatorNode:dl,updateTypeOperatorNode:Uc,createIndexedAccessTypeNode:Ch,updateIndexedAccessTypeNode:sf,createMappedTypeNode:Q0,updateMappedTypeNode:Cc,createLiteralTypeNode:$,updateLiteralTypeNode:tt,createTemplateLiteralType:Tc,updateTemplateLiteralType:Jp,createObjectBindingPattern:vt,updateObjectBindingPattern:mi,createArrayBindingPattern:fn,updateArrayBindingPattern:Wu,createBindingElement:uu,updateBindingElement:Tu,createArrayLiteralExpression:Nr,updateArrayLiteralExpression:Vu,createObjectLiteralExpression:Ss,updateObjectLiteralExpression:ic,createPropertyAccessExpression:t&4?(N,W)=>Zn(S0(N,W),262144):S0,updatePropertyAccessExpression:ud,createPropertyAccessChain:t&4?(N,W,ee)=>Zn(m0(N,W,ee),262144):m0,updatePropertyAccessChain:Bd,createElementAccessExpression:uh,updateElementAccessExpression:h4,createElementAccessChain:D1,updateElementAccessChain:He,createCallExpression:Mn,updateCallExpression:ba,createCallChain:Fo,updateCallChain:To,createNewExpression:nc,updateNewExpression:fc,createTaggedTemplateExpression:Cl,updateTaggedTemplateExpression:Tl,createTypeAssertion:bc,updateTypeAssertion:ql,createParenthesizedExpression:Nc,updateParenthesizedExpression:ip,createFunctionExpression:Jm,updateFunctionExpression:jh,createArrowFunction:f4,updateArrowFunction:c3,createDeleteExpression:c_,updateDeleteExpression:C5,createTypeOfExpression:R1,updateTypeOfExpression:d3,createVoidExpression:Wf,updateVoidExpression:m4,createAwaitExpression:Vh,updateAwaitExpression:Ee,createPrefixUnaryExpression:Bt,updatePrefixUnaryExpression:Di,createPostfixUnaryExpression:Ci,updatePostfixUnaryExpression:Q,createBinaryExpression:Me,updateBinaryExpression:ki,createConditionalExpression:In,updateConditionalExpression:tr,createTemplateExpression:ir,updateTemplateExpression:ha,createTemplateHead:$m,createTemplateMiddle:_s,createTemplateTail:np,createNoSubstitutionTemplateLiteral:Um,createTemplateLiteralLikeNode:fd,createYieldExpression:h3,updateYieldExpression:d_,createSpreadElement:ta,updateSpreadElement:Xx,createClassExpression:e6,updateClassExpression:bg,createOmittedExpression:sb,createExpressionWithTypeArguments:b5,updateExpressionWithTypeArguments:Xe,createAsExpression:Dt,updateAsExpression:oi,createNonNullExpression:Ti,updateNonNullExpression:Xi,createSatisfiesExpression:Rn,updateSatisfiesExpression:tn,createNonNullChain:bn,updateNonNullChain:kr,createMetaProperty:Cu,updateMetaProperty:bu,createTemplateSpan:Eu,updateTemplateSpan:sa,createSemicolonClassElement:p0,createBlock:o0,updateBlock:Gf,createVariableStatement:eC,updateVariableStatement:t6,createEmptyStatement:cD,createExpressionStatement:i6,updateExpressionStatement:Gk,createIfStatement:lb,updateIfStatement:Jk,createDoStatement:$k,updateDoStatement:az,createWhileStatement:D9,updateWhileStatement:ww,createForStatement:tC,updateForStatement:x9,createForInStatement:v9,updateForInStatement:Tw,createForOfStatement:Uk,updateForOfStatement:Lw,createContinueStatement:C9,updateContinueStatement:b9,createBreakStatement:qk,updateBreakStatement:cb,createReturnStatement:db,updateReturnStatement:iC,createWithStatement:y5,updateWithStatement:hb,createSwitchStatement:fE,updateSwitchStatement:Vs,createLabeledStatement:Zk,updateLabeledStatement:Nw,createThrowStatement:n6,updateThrowStatement:k5,createTryStatement:h_,updateTryStatement:p4,createDebuggerStatement:Jf,createVariableDeclaration:Hh,updateVariableDeclaration:Em,createVariableDeclarationList:nC,updateVariableDeclarationList:Pw,createFunctionDeclaration:y9,updateFunctionDeclaration:Yk,createClassDeclaration:uC,updateClassDeclaration:Qk,createInterfaceDeclaration:rC,updateInterfaceDeclaration:jd,createTypeAliasDeclaration:F5,updateTypeAliasDeclaration:A5,createEnumDeclaration:f3,updateEnumDeclaration:pt,createModuleDeclaration:i1,updateModuleDeclaration:g4,createModuleBlock:bh,updateModuleBlock:Mw,createCaseBlock:S5,updateCaseBlock:aC,createNamespaceExportDeclaration:m3,updateNamespaceExportDeclaration:oz,createImportEqualsDeclaration:yg,updateImportEqualsDeclaration:Xk,createImportDeclaration:eF,updateImportDeclaration:mb,createImportClause:pb,updateImportClause:up,createAssertClause:kg,updateAssertClause:p3,createAssertEntry:tF,updateAssertEntry:mE,createImportTypeAssertionContainer:iF,updateImportTypeAssertionContainer:zw,createImportAttributes:Ur,updateImportAttributes:ar,createImportAttribute:pE,updateImportAttribute:kf,createNamespaceImport:Iw,updateNamespaceImport:B5,createNamespaceExport:Rw,updateNamespaceExport:gb,createNamedImports:uc,updateNamedImports:yh,createImportSpecifier:dD,updateImportSpecifier:f_,createExportAssignment:g3,updateExportAssignment:$p,createExportDeclaration:oC,updateExportDeclaration:E3,createNamedExports:m_,updateNamedExports:jw,createExportSpecifier:gE,updateExportSpecifier:p_,createMissingDeclaration:w5,createExternalModuleReference:Vw,updateExternalModuleReference:k9,get createJSDocAllType(){return b(319)},get createJSDocUnknownType(){return b(320)},get createJSDocNonNullableType(){return T(322)},get updateJSDocNonNullableType(){return M(322)},get createJSDocNullableType(){return T(321)},get updateJSDocNullableType(){return M(321)},get createJSDocOptionalType(){return B(323)},get updateJSDocOptionalType(){return k(323)},get createJSDocVariadicType(){return B(325)},get updateJSDocVariadicType(){return k(325)},get createJSDocNamepathType(){return B(326)},get updateJSDocNamepathType(){return k(326)},createJSDocFunctionType:rp,updateJSDocFunctionType:sC,createJSDocTypeLiteral:S9,updateJSDocTypeLiteral:lz,createJSDocTypeExpression:nF,updateJSDocTypeExpression:ru,createJSDocSignature:v1,updateJSDocSignature:Ma,createJSDocTemplateTag:Un,updateJSDocTemplateTag:_b,createJSDocTypedefTag:lC,updateJSDocTypedefTag:wd,createJSDocParameterTag:_E,updateJSDocParameterTag:DE,createJSDocPropertyTag:u6,updateJSDocPropertyTag:B9,createJSDocCallbackTag:hD,updateJSDocCallbackTag:cC,createJSDocOverloadTag:dC,updateJSDocOverloadTag:_3,createJSDocAugmentsTag:g_,updateJSDocAugmentsTag:uF,createJSDocImplementsTag:fD,updateJSDocImplementsTag:vb,createJSDocSeeTag:r6,updateJSDocSeeTag:Db,createJSDocNameReference:w9,updateJSDocNameReference:rF,createJSDocMemberName:xb,updateJSDocMemberName:E4,createJSDocLink:hC,updateJSDocLink:yc,createJSDocLinkCode:md,updateJSDocLinkCode:T9,createJSDocLinkPlain:O1,updateJSDocLinkPlain:Ff,get createJSDocTypeTag(){return J(351)},get updateJSDocTypeTag(){return K(351)},get createJSDocReturnTag(){return J(349)},get updateJSDocReturnTag(){return K(349)},get createJSDocThisTag(){return J(350)},get updateJSDocThisTag(){return K(350)},get createJSDocAuthorTag(){return z(337)},get updateJSDocAuthorTag(){return j(337)},get createJSDocClassTag(){return z(339)},get updateJSDocClassTag(){return j(339)},get createJSDocPublicTag(){return z(340)},get updateJSDocPublicTag(){return j(340)},get createJSDocPrivateTag(){return z(341)},get updateJSDocPrivateTag(){return j(341)},get createJSDocProtectedTag(){return z(342)},get updateJSDocProtectedTag(){return j(342)},get createJSDocReadonlyTag(){return z(343)},get updateJSDocReadonlyTag(){return j(343)},get createJSDocOverrideTag(){return z(344)},get updateJSDocOverrideTag(){return j(344)},get createJSDocDeprecatedTag(){return z(338)},get updateJSDocDeprecatedTag(){return j(338)},get createJSDocThrowsTag(){return J(356)},get updateJSDocThrowsTag(){return K(356)},get createJSDocSatisfiesTag(){return J(357)},get updateJSDocSatisfiesTag(){return K(357)},createJSDocEnumTag:a6,updateJSDocEnumTag:Hw,createJSDocUnknownTag:aF,updateJSDocUnknownTag:op,createJSDocText:R0,updateJSDocText:Kw,createJSDocComment:oF,updateJSDocComment:mC,createJsxElement:L9,updateJsxElement:Kh,createJsxSelfClosingElement:D3,updateJsxSelfClosingElement:mD,createJsxOpeningElement:Cb,updateJsxOpeningElement:_m,createJsxClosingElement:N9,updateJsxClosingElement:o6,createJsxFragment:qm,createJsxText:L5,updateJsxText:cz,createJsxOpeningFragment:P9,createJsxJsxClosingFragment:M9,updateJsxFragment:bb,createJsxAttribute:z9,updateJsxAttribute:pC,createJsxAttributes:$f,updateJsxAttributes:x3,createJsxSpreadAttribute:I9,updateJsxSpreadAttribute:R9,createJsxExpression:Ks,updateJsxExpression:_u,createJsxNamespacedName:Dm,updateJsxNamespacedName:cf,createCaseClause:yb,updateCaseClause:Ww,createDefaultClause:gC,updateDefaultClause:kb,createHeritageClause:s6,updateHeritageClause:Zm,createCatchClause:sp,updateCatchClause:l6,createPropertyAssignment:Up,updatePropertyAssignment:lp,createShorthandPropertyAssignment:Fb,updateShorthandPropertyAssignment:Pc,createSpreadAssignment:D4,updateSpreadAssignment:Gw,createEnumMember:j1,updateEnumMember:EC,createSourceFile:Ab,updateSourceFile:c6,createRedirectedSourceFile:sF,createBundle:v3,updateBundle:_C,createUnparsedSource:$w,createUnparsedPrologue:R,createUnparsedPrepend:be,createUnparsedTextLike:Ht,createUnparsedSyntheticReference:Oi,createInputFiles:yu,createSyntheticExpression:Jr,createSyntaxList:br,createNotEmittedStatement:Ea,createPartiallyEmittedExpression:Ao,updatePartiallyEmittedExpression:Af,createCommaListExpression:Fr,updateCommaListExpression:vE,createSyntheticReferenceExpression:gn,updateSyntheticReferenceExpression:h6,cloneNode:cF,get createComma(){return p(28)},get createAssignment(){return p(64)},get createLogicalOr(){return p(57)},get createLogicalAnd(){return p(56)},get createBitwiseOr(){return p(52)},get createBitwiseXor(){return p(53)},get createBitwiseAnd(){return p(51)},get createStrictEquality(){return p(37)},get createStrictInequality(){return p(38)},get createEquality(){return p(35)},get createInequality(){return p(36)},get createLessThan(){return p(30)},get createLessThanEquals(){return p(33)},get createGreaterThan(){return p(32)},get createGreaterThanEquals(){return p(34)},get createLeftShift(){return p(48)},get createRightShift(){return p(49)},get createUnsignedRightShift(){return p(50)},get createAdd(){return p(40)},get createSubtract(){return p(41)},get createMultiply(){return p(42)},get createDivide(){return p(44)},get createModulo(){return p(45)},get createExponent(){return p(43)},get createPrefixPlus(){return E(40)},get createPrefixMinus(){return E(41)},get createPrefixIncrement(){return E(46)},get createPrefixDecrement(){return E(47)},get createBitwiseNot(){return E(55)},get createLogicalNot(){return E(54)},get createPostfixIncrement(){return v(46)},get createPostfixDecrement(){return v(47)},createImmediatelyInvokedFunctionExpression:E_,createImmediatelyInvokedArrowFunction:M5,createVoidZero:C3,createExportDefault:Uw,createExternalModuleExport:j9,createTypeCheck:ZK,createIsNotTypeCheck:hz,createMethodCall:__,createGlobalMethodCall:xC,createFunctionBindCall:pD,createFunctionCallCall:qw,createFunctionApplyCall:D_,createArraySliceCall:mte,createArrayConcatCall:CE,createObjectDefinePropertyCall:dF,createObjectGetOwnPropertyDescriptorCall:YK,createReflectGetCall:he,createReflectSetCall:Re,createPropertyDescriptor:Nt,createCallBinding:gr,createAssignmentTargetWrapper:fa,inlineExpressions:_0,getInternalName:Ws,getLocalName:v4,getExportName:qp,getDeclarationName:f6,getNamespaceMemberName:b3,getExternalModuleOrNamespaceExportName:Vd,restoreOuterExpressions:zu,restoreEnclosingLabel:Hr,createUseStrictPrologue:Zw,copyPrologue:gD,copyStandardPrologue:Yw,copyCustomPrologue:mz,ensureUseStrict:pte,liftToBlock:pz,mergeLexicalEnvironment:ED,replaceModifiers:gz,replaceDecoratorsAndModifiers:C4,replacePropertyName:Qw};return L(zke,N=>N(Y)),Y;function oe(N,W){if(N===void 0||N===_t)N=[];else if(g2(N)){if(W===void 0||N.hasTrailingComma===W)return N.transformFlags===void 0&&zYe(N),H.attachNodeArrayDebugInfo(N),N;const dt=N.slice();return dt.pos=N.pos,dt.end=N.end,dt.hasTrailingComma=W,dt.transformFlags=N.transformFlags,H.attachNodeArrayDebugInfo(dt),dt}const ee=N.length,ke=ee>=1&&ee<=4?N.slice():N;return ke.pos=-1,ke.end=-1,ke.hasTrailingComma=!!W,ke.transformFlags=0,zYe(ke),H.attachNodeArrayDebugInfo(ke),ke}function se(N){return u.createBaseNode(N)}function ge(N){const W=se(N);return W.symbol=void 0,W.localSymbol=void 0,W}function ae(N,W){return N!==W&&(N.typeArguments=W.typeArguments),s(N,W)}function Ce(N,W=0){const ee=ge(9);return ee.text=typeof N=="number"?N+"":N,ee.numericLiteralFlags=W,W&384&&(ee.transformFlags|=1024),ee}function ne(N){const W=Yt(10);return W.text=typeof N=="string"?N:I2(N)+"n",W.transformFlags|=32,W}function ve(N,W){const ee=ge(11);return ee.text=N,ee.singleQuote=W,ee}function Se(N,W,ee){const ke=ve(N,W);return ke.hasExtendedUnicodeEscape=ee,ee&&(ke.transformFlags|=1024),ke}function Ne(N){const W=ve(J4(N),void 0);return W.textSourceNode=N,W}function pe(N){const W=Yt(14);return W.text=N,W}function fe(N,W){switch(N){case 9:return Ce(W,0);case 10:return ne(W);case 11:return Se(W,void 0);case 12:return L5(W,!1);case 13:return L5(W,!0);case 14:return pe(W);case 15:return fd(N,W,void 0,0)}}function xe(N){const W=u.createBaseIdentifierNode(80);return W.escapedText=N,W.jsDoc=void 0,W.flowNode=void 0,W.symbol=void 0,W}function Be(N,W,ee,ke){const dt=xe(Al(N));return xV(dt,{flags:W,id:kZ,prefix:ee,suffix:ke}),kZ++,dt}function Ge(N,W,ee){W===void 0&&N&&(W=f2(N)),W===80&&(W=void 0);const ke=xe(Al(N));return ee&&(ke.flags|=256),ke.escapedText==="await"&&(ke.transformFlags|=67108864),ke.flags&256&&(ke.transformFlags|=1024),ke}function Ae(N,W,ee,ke){let dt=1;W&&(dt|=8);const Bi=Be("",dt,ee,ke);return N&&N(Bi),Bi}function De(N){let W=2;return N&&(W|=8),Be("",W,void 0,void 0)}function Ke(N,W=0,ee,ke){return H.assert(!(W&7),"Argument out of range: flags"),H.assert((W&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Be(N,3|W,ee,ke)}function Je(N,W=0,ee,ke){H.assert(!(W&7),"Argument out of range: flags");const dt=N?J_(N)?jv(!1,ee,N,ke,fu):`generated@${$s(N)}`:"";(ee||ke)&&(W|=16);const Bi=Be(dt,4|W,ee,ke);return Bi.original=N,Bi}function ft(N){const W=u.createBasePrivateIdentifierNode(81);return W.escapedText=N,W.transformFlags|=16777216,W}function Ye(N){return Pa(N,"#")||H.fail("First character of private identifier must be #: "+N),ft(Al(N))}function Ve(N,W,ee,ke){const dt=ft(Al(N));return xV(dt,{flags:W,id:kZ,prefix:ee,suffix:ke}),kZ++,dt}function We(N,W,ee){N&&!Pa(N,"#")&&H.fail("First character of private identifier must be #: "+N);const ke=8|(N?3:1);return Ve(N??"",ke,W,ee)}function Gt(N,W,ee){const ke=J_(N)?jv(!0,W,N,ee,fu):`#generated@${$s(N)}`,Bi=Ve(ke,4|(W||ee?16:0),W,ee);return Bi.original=N,Bi}function Yt(N){return u.createBaseTokenNode(N)}function Ie(N){H.assert(N>=0&&N<=165,"Invalid token"),H.assert(N<=15||N>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),H.assert(N<=9||N>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),H.assert(N!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const W=Yt(N);let ee=0;switch(N){case 134:ee=384;break;case 160:ee=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:ee=1;break;case 108:ee=134218752,W.flowNode=void 0;break;case 126:ee=1024;break;case 129:ee=16777216;break;case 110:ee=16384,W.flowNode=void 0;break}return ee&&(W.transformFlags|=ee),W}function st(){return Ie(108)}function St(){return Ie(110)}function It(){return Ie(106)}function ei(){return Ie(112)}function ht(){return Ie(97)}function Ut(N){return Ie(N)}function Ni(N){const W=[];return N&32&&W.push(Ut(95)),N&128&&W.push(Ut(138)),N&2048&&W.push(Ut(90)),N&4096&&W.push(Ut(87)),N&1&&W.push(Ut(125)),N&2&&W.push(Ut(123)),N&4&&W.push(Ut(124)),N&64&&W.push(Ut(128)),N&256&&W.push(Ut(126)),N&16&&W.push(Ut(164)),N&8&&W.push(Ut(148)),N&512&&W.push(Ut(129)),N&1024&&W.push(Ut(134)),N&8192&&W.push(Ut(103)),N&16384&&W.push(Ut(147)),W.length?W:void 0}function ji(N,W){const ee=se(166);return ee.left=N,ee.right=Mc(W),ee.transformFlags|=ou(ee.left)|pV(ee.right),ee.flowNode=void 0,ee}function xn(N,W,ee){return N.left!==W||N.right!==ee?s(ji(W,ee),N):N}function Jn(N){const W=se(167);return W.expression=d().parenthesizeExpressionOfComputedPropertyName(N),W.transformFlags|=ou(W.expression)|1024|131072,W}function an(N,W){return N.expression!==W?s(Jn(W),N):N}function Pi(N,W,ee,ke){const dt=ge(168);return dt.modifiers=Ms(N),dt.name=Mc(W),dt.constraint=ee,dt.default=ke,dt.transformFlags=1,dt.expression=void 0,dt.jsDoc=void 0,dt}function Ai(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.constraint!==ke||N.default!==dt?s(Pi(W,ee,ke,dt),N):N}function Zu(N,W,ee,ke,dt,Bi){const au=ge(169);return au.modifiers=Ms(N),au.dotDotDotToken=W,au.name=Mc(ee),au.questionToken=ke,au.type=dt,au.initializer=hF(Bi),N2(au.name)?au.transformFlags=1:au.transformFlags=Fs(au.modifiers)|ou(au.dotDotDotToken)|Kx(au.name)|ou(au.questionToken)|ou(au.initializer)|(au.questionToken??au.type?1:0)|(au.dotDotDotToken??au.initializer?1024:0)|(tE(au.modifiers)&31?8192:0),au.jsDoc=void 0,au}function aa(N,W,ee,ke,dt,Bi,au){return N.modifiers!==W||N.dotDotDotToken!==ee||N.name!==ke||N.questionToken!==dt||N.type!==Bi||N.initializer!==au?s(Zu(W,ee,ke,dt,Bi,au),N):N}function yr(N){const W=se(170);return W.expression=d().parenthesizeLeftSideOfAccess(N,!1),W.transformFlags|=ou(W.expression)|1|8192|33554432,W}function Ba(N,W){return N.expression!==W?s(yr(W),N):N}function bt(N,W,ee,ke){const dt=ge(171);return dt.modifiers=Ms(N),dt.name=Mc(W),dt.type=ke,dt.questionToken=ee,dt.transformFlags=1,dt.initializer=void 0,dt.jsDoc=void 0,dt}function jn(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.questionToken!==ke||N.type!==dt?Ln(bt(W,ee,ke,dt),N):N}function Ln(N,W){return N!==W&&(N.initializer=W.initializer),s(N,W)}function Si(N,W,ee,ke,dt){const Bi=ge(172);Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.questionToken=ee&&Wx(ee)?ee:void 0,Bi.exclamationToken=ee&&kV(ee)?ee:void 0,Bi.type=ke,Bi.initializer=hF(dt);const au=Bi.flags&33554432||tE(Bi.modifiers)&128;return Bi.transformFlags=Fs(Bi.modifiers)|Kx(Bi.name)|ou(Bi.initializer)|(au||Bi.questionToken||Bi.exclamationToken||Bi.type?1:0)|(Ps(Bi.name)||tE(Bi.modifiers)&256&&Bi.initializer?8192:0)|16777216,Bi.jsDoc=void 0,Bi}function Dn(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.questionToken!==(ke!==void 0&&Wx(ke)?ke:void 0)||N.exclamationToken!==(ke!==void 0&&kV(ke)?ke:void 0)||N.type!==dt||N.initializer!==Bi?s(Si(W,ee,ke,dt,Bi),N):N}function Cn(N,W,ee,ke,dt,Bi){const au=ge(173);return au.modifiers=Ms(N),au.name=Mc(W),au.questionToken=ee,au.typeParameters=Ms(ke),au.parameters=Ms(dt),au.type=Bi,au.transformFlags=1,au.jsDoc=void 0,au.locals=void 0,au.nextContainer=void 0,au.typeArguments=void 0,au}function tu(N,W,ee,ke,dt,Bi,au){return N.modifiers!==W||N.name!==ee||N.questionToken!==ke||N.typeParameters!==dt||N.parameters!==Bi||N.type!==au?ae(Cn(W,ee,ke,dt,Bi,au),N):N}function oa(N,W,ee,ke,dt,Bi,au,za){const i0=ge(174);if(i0.modifiers=Ms(N),i0.asteriskToken=W,i0.name=Mc(ee),i0.questionToken=ke,i0.exclamationToken=void 0,i0.typeParameters=Ms(dt),i0.parameters=oe(Bi),i0.type=au,i0.body=za,!i0.body)i0.transformFlags=1;else{const Qm=tE(i0.modifiers)&1024,p6=!!i0.asteriskToken,g6=Qm&&p6;i0.transformFlags=Fs(i0.modifiers)|ou(i0.asteriskToken)|Kx(i0.name)|ou(i0.questionToken)|Fs(i0.typeParameters)|Fs(i0.parameters)|ou(i0.type)|ou(i0.body)&-67108865|(g6?128:Qm?256:p6?2048:0)|(i0.questionToken||i0.typeParameters||i0.type?1:0)|1024}return i0.typeArguments=void 0,i0.jsDoc=void 0,i0.locals=void 0,i0.nextContainer=void 0,i0.flowNode=void 0,i0.endFlowNode=void 0,i0.returnFlowNode=void 0,i0}function Da(N,W,ee,ke,dt,Bi,au,za,i0){return N.modifiers!==W||N.asteriskToken!==ee||N.name!==ke||N.questionToken!==dt||N.typeParameters!==Bi||N.parameters!==au||N.type!==za||N.body!==i0?ua(oa(W,ee,ke,dt,Bi,au,za,i0),N):N}function ua(N,W){return N!==W&&(N.exclamationToken=W.exclamationToken),s(N,W)}function Ta(N){const W=ge(175);return W.body=N,W.transformFlags=ou(N)|16777216,W.modifiers=void 0,W.jsDoc=void 0,W.locals=void 0,W.nextContainer=void 0,W.endFlowNode=void 0,W.returnFlowNode=void 0,W}function Yo(N,W){return N.body!==W?bo(Ta(W),N):N}function bo(N,W){return N!==W&&(N.modifiers=W.modifiers),s(N,W)}function Qe(N,W,ee){const ke=ge(176);return ke.modifiers=Ms(N),ke.parameters=oe(W),ke.body=ee,ke.transformFlags=Fs(ke.modifiers)|Fs(ke.parameters)|ou(ke.body)&-67108865|1024,ke.typeParameters=void 0,ke.type=void 0,ke.typeArguments=void 0,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.endFlowNode=void 0,ke.returnFlowNode=void 0,ke}function Et(N,W,ee,ke){return N.modifiers!==W||N.parameters!==ee||N.body!==ke?Mt(Qe(W,ee,ke),N):N}function Mt(N,W){return N!==W&&(N.typeParameters=W.typeParameters,N.type=W.type),ae(N,W)}function qt(N,W,ee,ke,dt){const Bi=ge(177);return Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.parameters=oe(ee),Bi.type=ke,Bi.body=dt,Bi.body?Bi.transformFlags=Fs(Bi.modifiers)|Kx(Bi.name)|Fs(Bi.parameters)|ou(Bi.type)|ou(Bi.body)&-67108865|(Bi.type?1:0):Bi.transformFlags=1,Bi.typeArguments=void 0,Bi.typeParameters=void 0,Bi.jsDoc=void 0,Bi.locals=void 0,Bi.nextContainer=void 0,Bi.flowNode=void 0,Bi.endFlowNode=void 0,Bi.returnFlowNode=void 0,Bi}function Xt(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.parameters!==ke||N.type!==dt||N.body!==Bi?Pe(qt(W,ee,ke,dt,Bi),N):N}function Pe(N,W){return N!==W&&(N.typeParameters=W.typeParameters),ae(N,W)}function et(N,W,ee,ke){const dt=ge(178);return dt.modifiers=Ms(N),dt.name=Mc(W),dt.parameters=oe(ee),dt.body=ke,dt.body?dt.transformFlags=Fs(dt.modifiers)|Kx(dt.name)|Fs(dt.parameters)|ou(dt.body)&-67108865|(dt.type?1:0):dt.transformFlags=1,dt.typeArguments=void 0,dt.typeParameters=void 0,dt.type=void 0,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt.endFlowNode=void 0,dt.returnFlowNode=void 0,dt}function gt(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.parameters!==ke||N.body!==dt?ii(et(W,ee,ke,dt),N):N}function ii(N,W){return N!==W&&(N.typeParameters=W.typeParameters,N.type=W.type),ae(N,W)}function me(N,W,ee){const ke=ge(179);return ke.typeParameters=Ms(N),ke.parameters=Ms(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function ni(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?ae(me(W,ee,ke),N):N}function vi(N,W,ee){const ke=ge(180);return ke.typeParameters=Ms(N),ke.parameters=Ms(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function mt(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?ae(vi(W,ee,ke),N):N}function Ot(N,W,ee){const ke=ge(181);return ke.modifiers=Ms(N),ke.parameters=Ms(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function Ei(N,W,ee,ke){return N.parameters!==ee||N.type!==ke||N.modifiers!==W?ae(Ot(W,ee,ke),N):N}function $i(N,W){const ee=se(204);return ee.type=N,ee.literal=W,ee.transformFlags=1,ee}function Qi(N,W,ee){return N.type!==W||N.literal!==ee?s($i(W,ee),N):N}function on(N){return Ie(N)}function le(N,W,ee){const ke=se(182);return ke.assertsModifier=N,ke.parameterName=Mc(W),ke.type=ee,ke.transformFlags=1,ke}function te(N,W,ee,ke){return N.assertsModifier!==W||N.parameterName!==ee||N.type!==ke?s(le(W,ee,ke),N):N}function we(N,W){const ee=se(183);return ee.typeName=Mc(N),ee.typeArguments=W&&d().parenthesizeTypeArguments(oe(W)),ee.transformFlags=1,ee}function de(N,W,ee){return N.typeName!==W||N.typeArguments!==ee?s(we(W,ee),N):N}function je(N,W,ee){const ke=ge(184);return ke.typeParameters=Ms(N),ke.parameters=Ms(W),ke.type=ee,ke.transformFlags=1,ke.modifiers=void 0,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function X(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?it(je(W,ee,ke),N):N}function it(N,W){return N!==W&&(N.modifiers=W.modifiers),ae(N,W)}function Ct(...N){return N.length===4?ct(...N):N.length===3?Qt(...N):H.fail("Incorrect number of arguments specified.")}function ct(N,W,ee,ke){const dt=ge(185);return dt.modifiers=Ms(N),dt.typeParameters=Ms(W),dt.parameters=Ms(ee),dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.typeArguments=void 0,dt}function Qt(N,W,ee){return ct(void 0,N,W,ee)}function Li(...N){return N.length===5?Ui(...N):N.length===4?Sn(...N):H.fail("Incorrect number of arguments specified.")}function Ui(N,W,ee,ke,dt){return N.modifiers!==W||N.typeParameters!==ee||N.parameters!==ke||N.type!==dt?ae(Ct(W,ee,ke,dt),N):N}function Sn(N,W,ee,ke){return Ui(N,N.modifiers,W,ee,ke)}function du(N,W){const ee=se(186);return ee.exprName=N,ee.typeArguments=W&&d().parenthesizeTypeArguments(W),ee.transformFlags=1,ee}function Ru(N,W,ee){return N.exprName!==W||N.typeArguments!==ee?s(du(W,ee),N):N}function pr(N){const W=ge(187);return W.members=oe(N),W.transformFlags=1,W}function Xu(N,W){return N.members!==W?s(pr(W),N):N}function ca(N){const W=se(188);return W.elementType=d().parenthesizeNonArrayTypeOfPostfixType(N),W.transformFlags=1,W}function Ku(N,W){return N.elementType!==W?s(ca(W),N):N}function ja(N){const W=se(189);return W.elements=oe(d().parenthesizeElementTypesOfTupleType(N)),W.transformFlags=1,W}function wn(N,W){return N.elements!==W?s(ja(W),N):N}function Ir(N,W,ee,ke){const dt=ge(202);return dt.dotDotDotToken=N,dt.name=W,dt.questionToken=ee,dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt}function as(N,W,ee,ke,dt){return N.dotDotDotToken!==W||N.name!==ee||N.questionToken!==ke||N.type!==dt?s(Ir(W,ee,ke,dt),N):N}function wo(N){const W=se(190);return W.type=d().parenthesizeTypeOfOptionalType(N),W.transformFlags=1,W}function Fn(N,W){return N.type!==W?s(wo(W),N):N}function vc(N){const W=se(191);return W.type=N,W.transformFlags=1,W}function Ya(N,W){return N.type!==W?s(vc(W),N):N}function c0(N,W,ee){const ke=se(N);return ke.types=Y.createNodeArray(ee(W)),ke.transformFlags=1,ke}function Ul(N,W,ee){return N.types!==W?s(c0(N.kind,W,ee),N):N}function wl(N){return c0(192,N,d().parenthesizeConstituentTypesOfUnionType)}function hd(N,W){return Ul(N,W,d().parenthesizeConstituentTypesOfUnionType)}function vl(N){return c0(193,N,d().parenthesizeConstituentTypesOfIntersectionType)}function co(N,W){return Ul(N,W,d().parenthesizeConstituentTypesOfIntersectionType)}function Ho(N,W,ee,ke){const dt=se(194);return dt.checkType=d().parenthesizeCheckTypeOfConditionalType(N),dt.extendsType=d().parenthesizeExtendsTypeOfConditionalType(W),dt.trueType=ee,dt.falseType=ke,dt.transformFlags=1,dt.locals=void 0,dt.nextContainer=void 0,dt}function id(N,W,ee,ke,dt){return N.checkType!==W||N.extendsType!==ee||N.trueType!==ke||N.falseType!==dt?s(Ho(W,ee,ke,dt),N):N}function Y0(N){const W=se(195);return W.typeParameter=N,W.transformFlags=1,W}function Ko(N,W){return N.typeParameter!==W?s(Y0(W),N):N}function Tc(N,W){const ee=se(203);return ee.head=N,ee.templateSpans=oe(W),ee.transformFlags=1,ee}function Jp(N,W,ee){return N.head!==W||N.templateSpans!==ee?s(Tc(W,ee),N):N}function Lc(N,W,ee,ke,dt=!1){const Bi=se(205);return Bi.argument=N,Bi.attributes=W,Bi.assertions&&Bi.assertions.assertClause&&Bi.attributes&&(Bi.assertions.assertClause=Bi.attributes),Bi.qualifier=ee,Bi.typeArguments=ke&&d().parenthesizeTypeArguments(ke),Bi.isTypeOf=dt,Bi.transformFlags=1,Bi}function Il(N,W,ee,ke,dt,Bi=N.isTypeOf){return N.argument!==W||N.attributes!==ee||N.qualifier!==ke||N.typeArguments!==dt||N.isTypeOf!==Bi?s(Lc(W,ee,ke,dt,Bi),N):N}function cl(N){const W=se(196);return W.type=N,W.transformFlags=1,W}function Ka(N,W){return N.type!==W?s(cl(W),N):N}function Ri(){const N=se(197);return N.transformFlags=1,N}function dl(N,W){const ee=se(198);return ee.operator=N,ee.type=N===148?d().parenthesizeOperandOfReadonlyTypeOperator(W):d().parenthesizeOperandOfTypeOperator(W),ee.transformFlags=1,ee}function Uc(N,W){return N.type!==W?s(dl(N.operator,W),N):N}function Ch(N,W){const ee=se(199);return ee.objectType=d().parenthesizeNonArrayTypeOfPostfixType(N),ee.indexType=W,ee.transformFlags=1,ee}function sf(N,W,ee){return N.objectType!==W||N.indexType!==ee?s(Ch(W,ee),N):N}function Q0(N,W,ee,ke,dt,Bi){const au=ge(200);return au.readonlyToken=N,au.typeParameter=W,au.nameType=ee,au.questionToken=ke,au.type=dt,au.members=Bi&&oe(Bi),au.transformFlags=1,au.locals=void 0,au.nextContainer=void 0,au}function Cc(N,W,ee,ke,dt,Bi,au){return N.readonlyToken!==W||N.typeParameter!==ee||N.nameType!==ke||N.questionToken!==dt||N.type!==Bi||N.members!==au?s(Q0(W,ee,ke,dt,Bi,au),N):N}function $(N){const W=se(201);return W.literal=N,W.transformFlags=1,W}function tt(N,W){return N.literal!==W?s($(W),N):N}function vt(N){const W=se(206);return W.elements=oe(N),W.transformFlags|=Fs(W.elements)|1024|524288,W.transformFlags&32768&&(W.transformFlags|=65664),W}function mi(N,W){return N.elements!==W?s(vt(W),N):N}function fn(N){const W=se(207);return W.elements=oe(N),W.transformFlags|=Fs(W.elements)|1024|524288,W}function Wu(N,W){return N.elements!==W?s(fn(W),N):N}function uu(N,W,ee,ke){const dt=ge(208);return dt.dotDotDotToken=N,dt.propertyName=Mc(W),dt.name=Mc(ee),dt.initializer=hF(ke),dt.transformFlags|=ou(dt.dotDotDotToken)|Kx(dt.propertyName)|Kx(dt.name)|ou(dt.initializer)|(dt.dotDotDotToken?32768:0)|1024,dt.flowNode=void 0,dt}function Tu(N,W,ee,ke,dt){return N.propertyName!==ee||N.dotDotDotToken!==W||N.name!==ke||N.initializer!==dt?s(uu(W,ee,ke,dt),N):N}function Nr(N,W){const ee=se(209),ke=N&&qu(N),dt=oe(N,ke&&Fd(ke)?!0:void 0);return ee.elements=d().parenthesizeExpressionsOfCommaDelimitedList(dt),ee.multiLine=W,ee.transformFlags|=Fs(ee.elements),ee}function Vu(N,W){return N.elements!==W?s(Nr(W,N.multiLine),N):N}function Ss(N,W){const ee=ge(210);return ee.properties=oe(N),ee.multiLine=W,ee.transformFlags|=Fs(ee.properties),ee.jsDoc=void 0,ee}function ic(N,W){return N.properties!==W?s(Ss(W,N.multiLine),N):N}function nd(N,W,ee){const ke=ge(211);return ke.expression=N,ke.questionDotToken=W,ke.name=ee,ke.transformFlags=ou(ke.expression)|ou(ke.questionDotToken)|(at(ke.name)?pV(ke.name):ou(ke.name)|536870912),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function S0(N,W){const ee=nd(d().parenthesizeLeftSideOfAccess(N,!1),void 0,Mc(W));return HP(N)&&(ee.transformFlags|=384),ee}function ud(N,W,ee){return PU(N)?Bd(N,W,N.questionDotToken,Po(ee,at)):N.expression!==W||N.name!==ee?s(S0(W,ee),N):N}function m0(N,W,ee){const ke=nd(d().parenthesizeLeftSideOfAccess(N,!0),W,Mc(ee));return ke.flags|=64,ke.transformFlags|=32,ke}function Bd(N,W,ee,ke){return H.assert(!!(N.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),N.expression!==W||N.questionDotToken!==ee||N.name!==ke?s(m0(W,ee,ke),N):N}function Oh(N,W,ee){const ke=ge(212);return ke.expression=N,ke.questionDotToken=W,ke.argumentExpression=ee,ke.transformFlags|=ou(ke.expression)|ou(ke.questionDotToken)|ou(ke.argumentExpression),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function uh(N,W){const ee=Oh(d().parenthesizeLeftSideOfAccess(N,!1),void 0,m6(W));return HP(N)&&(ee.transformFlags|=384),ee}function h4(N,W,ee){return Hse(N)?He(N,W,N.questionDotToken,ee):N.expression!==W||N.argumentExpression!==ee?s(uh(W,ee),N):N}function D1(N,W,ee){const ke=Oh(d().parenthesizeLeftSideOfAccess(N,!0),W,m6(ee));return ke.flags|=64,ke.transformFlags|=32,ke}function He(N,W,ee,ke){return H.assert(!!(N.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),N.expression!==W||N.questionDotToken!==ee||N.argumentExpression!==ke?s(D1(W,ee,ke),N):N}function di(N,W,ee,ke){const dt=ge(213);return dt.expression=N,dt.questionDotToken=W,dt.typeArguments=ee,dt.arguments=ke,dt.transformFlags|=ou(dt.expression)|ou(dt.questionDotToken)|Fs(dt.typeArguments)|Fs(dt.arguments),dt.typeArguments&&(dt.transformFlags|=1),nf(dt.expression)&&(dt.transformFlags|=16384),dt}function Mn(N,W,ee){const ke=di(d().parenthesizeLeftSideOfAccess(N,!1),void 0,Ms(W),d().parenthesizeExpressionsOfCommaDelimitedList(oe(ee)));return KP(ke.expression)&&(ke.transformFlags|=8388608),ke}function ba(N,W,ee,ke){return $y(N)?To(N,W,N.questionDotToken,ee,ke):N.expression!==W||N.typeArguments!==ee||N.arguments!==ke?s(Mn(W,ee,ke),N):N}function Fo(N,W,ee,ke){const dt=di(d().parenthesizeLeftSideOfAccess(N,!0),W,Ms(ee),d().parenthesizeExpressionsOfCommaDelimitedList(oe(ke)));return dt.flags|=64,dt.transformFlags|=32,dt}function To(N,W,ee,ke,dt){return H.assert(!!(N.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),N.expression!==W||N.questionDotToken!==ee||N.typeArguments!==ke||N.arguments!==dt?s(Fo(W,ee,ke,dt),N):N}function nc(N,W,ee){const ke=ge(214);return ke.expression=d().parenthesizeExpressionOfNew(N),ke.typeArguments=Ms(W),ke.arguments=ee?d().parenthesizeExpressionsOfCommaDelimitedList(ee):void 0,ke.transformFlags|=ou(ke.expression)|Fs(ke.typeArguments)|Fs(ke.arguments)|32,ke.typeArguments&&(ke.transformFlags|=1),ke}function fc(N,W,ee,ke){return N.expression!==W||N.typeArguments!==ee||N.arguments!==ke?s(nc(W,ee,ke),N):N}function Cl(N,W,ee){const ke=se(215);return ke.tag=d().parenthesizeLeftSideOfAccess(N,!1),ke.typeArguments=Ms(W),ke.template=ee,ke.transformFlags|=ou(ke.tag)|Fs(ke.typeArguments)|ou(ke.template)|1024,ke.typeArguments&&(ke.transformFlags|=1),Q0e(ke.template)&&(ke.transformFlags|=128),ke}function Tl(N,W,ee,ke){return N.tag!==W||N.typeArguments!==ee||N.template!==ke?s(Cl(W,ee,ke),N):N}function bc(N,W){const ee=se(216);return ee.expression=d().parenthesizeOperandOfPrefixUnary(W),ee.type=N,ee.transformFlags|=ou(ee.expression)|ou(ee.type)|1,ee}function ql(N,W,ee){return N.type!==W||N.expression!==ee?s(bc(W,ee),N):N}function Nc(N){const W=se(217);return W.expression=N,W.transformFlags=ou(W.expression),W.jsDoc=void 0,W}function ip(N,W){return N.expression!==W?s(Nc(W),N):N}function Jm(N,W,ee,ke,dt,Bi,au){const za=ge(218);za.modifiers=Ms(N),za.asteriskToken=W,za.name=Mc(ee),za.typeParameters=Ms(ke),za.parameters=oe(dt),za.type=Bi,za.body=au;const i0=tE(za.modifiers)&1024,Qm=!!za.asteriskToken,p6=i0&&Qm;return za.transformFlags=Fs(za.modifiers)|ou(za.asteriskToken)|Kx(za.name)|Fs(za.typeParameters)|Fs(za.parameters)|ou(za.type)|ou(za.body)&-67108865|(p6?128:i0?256:Qm?2048:0)|(za.typeParameters||za.type?1:0)|4194304,za.typeArguments=void 0,za.jsDoc=void 0,za.locals=void 0,za.nextContainer=void 0,za.flowNode=void 0,za.endFlowNode=void 0,za.returnFlowNode=void 0,za}function jh(N,W,ee,ke,dt,Bi,au,za){return N.name!==ke||N.modifiers!==W||N.asteriskToken!==ee||N.typeParameters!==dt||N.parameters!==Bi||N.type!==au||N.body!==za?ae(Jm(W,ee,ke,dt,Bi,au,za),N):N}function f4(N,W,ee,ke,dt,Bi){const au=ge(219);au.modifiers=Ms(N),au.typeParameters=Ms(W),au.parameters=oe(ee),au.type=ke,au.equalsGreaterThanToken=dt??Ie(39),au.body=d().parenthesizeConciseBodyOfArrowFunction(Bi);const za=tE(au.modifiers)&1024;return au.transformFlags=Fs(au.modifiers)|Fs(au.typeParameters)|Fs(au.parameters)|ou(au.type)|ou(au.equalsGreaterThanToken)|ou(au.body)&-67108865|(au.typeParameters||au.type?1:0)|(za?16640:0)|1024,au.typeArguments=void 0,au.jsDoc=void 0,au.locals=void 0,au.nextContainer=void 0,au.flowNode=void 0,au.endFlowNode=void 0,au.returnFlowNode=void 0,au}function c3(N,W,ee,ke,dt,Bi,au){return N.modifiers!==W||N.typeParameters!==ee||N.parameters!==ke||N.type!==dt||N.equalsGreaterThanToken!==Bi||N.body!==au?ae(f4(W,ee,ke,dt,Bi,au),N):N}function c_(N){const W=se(220);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression),W}function C5(N,W){return N.expression!==W?s(c_(W),N):N}function R1(N){const W=se(221);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression),W}function d3(N,W){return N.expression!==W?s(R1(W),N):N}function Wf(N){const W=se(222);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression),W}function m4(N,W){return N.expression!==W?s(Wf(W),N):N}function Vh(N){const W=se(223);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression)|256|128|2097152,W}function Ee(N,W){return N.expression!==W?s(Vh(W),N):N}function Bt(N,W){const ee=se(224);return ee.operator=N,ee.operand=d().parenthesizeOperandOfPrefixUnary(W),ee.transformFlags|=ou(ee.operand),(N===46||N===47)&&at(ee.operand)&&!al(ee.operand)&&!rD(ee.operand)&&(ee.transformFlags|=268435456),ee}function Di(N,W){return N.operand!==W?s(Bt(N.operator,W),N):N}function Ci(N,W){const ee=se(225);return ee.operator=W,ee.operand=d().parenthesizeOperandOfPostfixUnary(N),ee.transformFlags|=ou(ee.operand),at(ee.operand)&&!al(ee.operand)&&!rD(ee.operand)&&(ee.transformFlags|=268435456),ee}function Q(N,W){return N.operand!==W?s(Ci(W,N.operator),N):N}function Me(N,W,ee){const ke=ge(226),dt=gte(W),Bi=dt.kind;return ke.left=d().parenthesizeLeftSideOfBinary(Bi,N),ke.operatorToken=dt,ke.right=d().parenthesizeRightSideOfBinary(Bi,ke.left,ee),ke.transformFlags|=ou(ke.left)|ou(ke.operatorToken)|ou(ke.right),Bi===61?ke.transformFlags|=32:Bi===64?ys(ke.left)?ke.transformFlags|=5248|wt(ke.left):Dh(ke.left)&&(ke.transformFlags|=5120|wt(ke.left)):Bi===43||Bi===68?ke.transformFlags|=512:mP(Bi)&&(ke.transformFlags|=16),Bi===103&&Xr(ke.left)&&(ke.transformFlags|=536870912),ke.jsDoc=void 0,ke}function wt(N){return VV(N)?65536:0}function ki(N,W,ee,ke){return N.left!==W||N.operatorToken!==ee||N.right!==ke?s(Me(W,ee,ke),N):N}function In(N,W,ee,ke,dt){const Bi=se(227);return Bi.condition=d().parenthesizeConditionOfConditionalExpression(N),Bi.questionToken=W??Ie(58),Bi.whenTrue=d().parenthesizeBranchOfConditionalExpression(ee),Bi.colonToken=ke??Ie(59),Bi.whenFalse=d().parenthesizeBranchOfConditionalExpression(dt),Bi.transformFlags|=ou(Bi.condition)|ou(Bi.questionToken)|ou(Bi.whenTrue)|ou(Bi.colonToken)|ou(Bi.whenFalse),Bi}function tr(N,W,ee,ke,dt,Bi){return N.condition!==W||N.questionToken!==ee||N.whenTrue!==ke||N.colonToken!==dt||N.whenFalse!==Bi?s(In(W,ee,ke,dt,Bi),N):N}function ir(N,W){const ee=se(228);return ee.head=N,ee.templateSpans=oe(W),ee.transformFlags|=ou(ee.head)|Fs(ee.templateSpans)|1024,ee}function ha(N,W,ee){return N.head!==W||N.templateSpans!==ee?s(ir(W,ee),N):N}function os(N,W,ee,ke=0){H.assert(!(ke&-7177),"Unsupported template flags.");let dt;if(ee!==void 0&&ee!==W&&(dt=kLt(N,ee),typeof dt=="object"))return H.fail("Invalid raw text");if(W===void 0){if(dt===void 0)return H.fail("Arguments 'text' and 'rawText' may not both be undefined.");W=dt}else dt!==void 0&&H.assert(W===dt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return W}function ss(N){let W=1024;return N&&(W|=128),W}function Rl(N,W,ee,ke){const dt=Yt(N);return dt.text=W,dt.rawText=ee,dt.templateFlags=ke&7176,dt.transformFlags=ss(dt.templateFlags),dt}function x1(N,W,ee,ke){const dt=ge(N);return dt.text=W,dt.rawText=ee,dt.templateFlags=ke&7176,dt.transformFlags=ss(dt.templateFlags),dt}function fd(N,W,ee,ke){return N===15?x1(N,W,ee,ke):Rl(N,W,ee,ke)}function $m(N,W,ee){return N=os(16,N,W,ee),fd(16,N,W,ee)}function _s(N,W,ee){return N=os(16,N,W,ee),fd(17,N,W,ee)}function np(N,W,ee){return N=os(16,N,W,ee),fd(18,N,W,ee)}function Um(N,W,ee){return N=os(16,N,W,ee),x1(15,N,W,ee)}function h3(N,W){H.assert(!N||!!W,"A `YieldExpression` with an asteriskToken must have an expression.");const ee=se(229);return ee.expression=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.asteriskToken=N,ee.transformFlags|=ou(ee.expression)|ou(ee.asteriskToken)|1024|128|1048576,ee}function d_(N,W,ee){return N.expression!==ee||N.asteriskToken!==W?s(h3(W,ee),N):N}function ta(N){const W=se(230);return W.expression=d().parenthesizeExpressionForDisallowedComma(N),W.transformFlags|=ou(W.expression)|1024|32768,W}function Xx(N,W){return N.expression!==W?s(ta(W),N):N}function e6(N,W,ee,ke,dt){const Bi=ge(231);return Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.typeParameters=Ms(ee),Bi.heritageClauses=Ms(ke),Bi.members=oe(dt),Bi.transformFlags|=Fs(Bi.modifiers)|Kx(Bi.name)|Fs(Bi.typeParameters)|Fs(Bi.heritageClauses)|Fs(Bi.members)|(Bi.typeParameters?1:0)|1024,Bi.jsDoc=void 0,Bi}function bg(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Bi?s(e6(W,ee,ke,dt,Bi),N):N}function sb(){return se(232)}function b5(N,W){const ee=se(233);return ee.expression=d().parenthesizeLeftSideOfAccess(N,!1),ee.typeArguments=W&&d().parenthesizeTypeArguments(W),ee.transformFlags|=ou(ee.expression)|Fs(ee.typeArguments)|1024,ee}function Xe(N,W,ee){return N.expression!==W||N.typeArguments!==ee?s(b5(W,ee),N):N}function Dt(N,W){const ee=se(234);return ee.expression=N,ee.type=W,ee.transformFlags|=ou(ee.expression)|ou(ee.type)|1,ee}function oi(N,W,ee){return N.expression!==W||N.type!==ee?s(Dt(W,ee),N):N}function Ti(N){const W=se(235);return W.expression=d().parenthesizeLeftSideOfAccess(N,!1),W.transformFlags|=ou(W.expression)|1,W}function Xi(N,W){return zU(N)?kr(N,W):N.expression!==W?s(Ti(W),N):N}function Rn(N,W){const ee=se(238);return ee.expression=N,ee.type=W,ee.transformFlags|=ou(ee.expression)|ou(ee.type)|1,ee}function tn(N,W,ee){return N.expression!==W||N.type!==ee?s(Rn(W,ee),N):N}function bn(N){const W=se(235);return W.flags|=64,W.expression=d().parenthesizeLeftSideOfAccess(N,!0),W.transformFlags|=ou(W.expression)|1,W}function kr(N,W){return H.assert(!!(N.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),N.expression!==W?s(bn(W),N):N}function Cu(N,W){const ee=se(236);switch(ee.keywordToken=N,ee.name=W,ee.transformFlags|=ou(ee.name),N){case 105:ee.transformFlags|=1024;break;case 102:ee.transformFlags|=32;break;default:return H.assertNever(N)}return ee.flowNode=void 0,ee}function bu(N,W){return N.name!==W?s(Cu(N.keywordToken,W),N):N}function Eu(N,W){const ee=se(239);return ee.expression=N,ee.literal=W,ee.transformFlags|=ou(ee.expression)|ou(ee.literal)|1024,ee}function sa(N,W,ee){return N.expression!==W||N.literal!==ee?s(Eu(W,ee),N):N}function p0(){const N=se(240);return N.transformFlags|=1024,N}function o0(N,W){const ee=se(241);return ee.statements=oe(N),ee.multiLine=W,ee.transformFlags|=Fs(ee.statements),ee.jsDoc=void 0,ee.locals=void 0,ee.nextContainer=void 0,ee}function Gf(N,W){return N.statements!==W?s(o0(W,N.multiLine),N):N}function eC(N,W){const ee=se(243);return ee.modifiers=Ms(N),ee.declarationList=Ha(W)?nC(W):W,ee.transformFlags|=Fs(ee.modifiers)|ou(ee.declarationList),tE(ee.modifiers)&128&&(ee.transformFlags=1),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function t6(N,W,ee){return N.modifiers!==W||N.declarationList!==ee?s(eC(W,ee),N):N}function cD(){const N=se(242);return N.jsDoc=void 0,N}function i6(N){const W=se(244);return W.expression=d().parenthesizeExpressionOfExpressionStatement(N),W.transformFlags|=ou(W.expression),W.jsDoc=void 0,W.flowNode=void 0,W}function Gk(N,W){return N.expression!==W?s(i6(W),N):N}function lb(N,W,ee){const ke=se(245);return ke.expression=N,ke.thenStatement=x_(W),ke.elseStatement=x_(ee),ke.transformFlags|=ou(ke.expression)|ou(ke.thenStatement)|ou(ke.elseStatement),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function Jk(N,W,ee,ke){return N.expression!==W||N.thenStatement!==ee||N.elseStatement!==ke?s(lb(W,ee,ke),N):N}function $k(N,W){const ee=se(246);return ee.statement=x_(N),ee.expression=W,ee.transformFlags|=ou(ee.statement)|ou(ee.expression),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function az(N,W,ee){return N.statement!==W||N.expression!==ee?s($k(W,ee),N):N}function D9(N,W){const ee=se(247);return ee.expression=N,ee.statement=x_(W),ee.transformFlags|=ou(ee.expression)|ou(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function ww(N,W,ee){return N.expression!==W||N.statement!==ee?s(D9(W,ee),N):N}function tC(N,W,ee,ke){const dt=se(248);return dt.initializer=N,dt.condition=W,dt.incrementor=ee,dt.statement=x_(ke),dt.transformFlags|=ou(dt.initializer)|ou(dt.condition)|ou(dt.incrementor)|ou(dt.statement),dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt}function x9(N,W,ee,ke,dt){return N.initializer!==W||N.condition!==ee||N.incrementor!==ke||N.statement!==dt?s(tC(W,ee,ke,dt),N):N}function v9(N,W,ee){const ke=se(249);return ke.initializer=N,ke.expression=W,ke.statement=x_(ee),ke.transformFlags|=ou(ke.initializer)|ou(ke.expression)|ou(ke.statement),ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.flowNode=void 0,ke}function Tw(N,W,ee,ke){return N.initializer!==W||N.expression!==ee||N.statement!==ke?s(v9(W,ee,ke),N):N}function Uk(N,W,ee,ke){const dt=se(250);return dt.awaitModifier=N,dt.initializer=W,dt.expression=d().parenthesizeExpressionForDisallowedComma(ee),dt.statement=x_(ke),dt.transformFlags|=ou(dt.awaitModifier)|ou(dt.initializer)|ou(dt.expression)|ou(dt.statement)|1024,N&&(dt.transformFlags|=128),dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt}function Lw(N,W,ee,ke,dt){return N.awaitModifier!==W||N.initializer!==ee||N.expression!==ke||N.statement!==dt?s(Uk(W,ee,ke,dt),N):N}function C9(N){const W=se(251);return W.label=Mc(N),W.transformFlags|=ou(W.label)|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function b9(N,W){return N.label!==W?s(C9(W),N):N}function qk(N){const W=se(252);return W.label=Mc(N),W.transformFlags|=ou(W.label)|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function cb(N,W){return N.label!==W?s(qk(W),N):N}function db(N){const W=se(253);return W.expression=N,W.transformFlags|=ou(W.expression)|128|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function iC(N,W){return N.expression!==W?s(db(W),N):N}function y5(N,W){const ee=se(254);return ee.expression=N,ee.statement=x_(W),ee.transformFlags|=ou(ee.expression)|ou(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function hb(N,W,ee){return N.expression!==W||N.statement!==ee?s(y5(W,ee),N):N}function fE(N,W){const ee=se(255);return ee.expression=d().parenthesizeExpressionForDisallowedComma(N),ee.caseBlock=W,ee.transformFlags|=ou(ee.expression)|ou(ee.caseBlock),ee.jsDoc=void 0,ee.flowNode=void 0,ee.possiblyExhaustive=!1,ee}function Vs(N,W,ee){return N.expression!==W||N.caseBlock!==ee?s(fE(W,ee),N):N}function Zk(N,W){const ee=se(256);return ee.label=Mc(N),ee.statement=x_(W),ee.transformFlags|=ou(ee.label)|ou(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function Nw(N,W,ee){return N.label!==W||N.statement!==ee?s(Zk(W,ee),N):N}function n6(N){const W=se(257);return W.expression=N,W.transformFlags|=ou(W.expression),W.jsDoc=void 0,W.flowNode=void 0,W}function k5(N,W){return N.expression!==W?s(n6(W),N):N}function h_(N,W,ee){const ke=se(258);return ke.tryBlock=N,ke.catchClause=W,ke.finallyBlock=ee,ke.transformFlags|=ou(ke.tryBlock)|ou(ke.catchClause)|ou(ke.finallyBlock),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function p4(N,W,ee,ke){return N.tryBlock!==W||N.catchClause!==ee||N.finallyBlock!==ke?s(h_(W,ee,ke),N):N}function Jf(){const N=se(259);return N.jsDoc=void 0,N.flowNode=void 0,N}function Hh(N,W,ee,ke){const dt=ge(260);return dt.name=Mc(N),dt.exclamationToken=W,dt.type=ee,dt.initializer=hF(ke),dt.transformFlags|=Kx(dt.name)|ou(dt.initializer)|(dt.exclamationToken??dt.type?1:0),dt.jsDoc=void 0,dt}function Em(N,W,ee,ke,dt){return N.name!==W||N.type!==ke||N.exclamationToken!==ee||N.initializer!==dt?s(Hh(W,ee,ke,dt),N):N}function nC(N,W=0){const ee=se(261);return ee.flags|=W&7,ee.declarations=oe(N),ee.transformFlags|=Fs(ee.declarations)|4194304,W&7&&(ee.transformFlags|=263168),W&4&&(ee.transformFlags|=4),ee}function Pw(N,W){return N.declarations!==W?s(nC(W,N.flags),N):N}function y9(N,W,ee,ke,dt,Bi,au){const za=ge(262);if(za.modifiers=Ms(N),za.asteriskToken=W,za.name=Mc(ee),za.typeParameters=Ms(ke),za.parameters=oe(dt),za.type=Bi,za.body=au,!za.body||tE(za.modifiers)&128)za.transformFlags=1;else{const i0=tE(za.modifiers)&1024,Qm=!!za.asteriskToken,p6=i0&&Qm;za.transformFlags=Fs(za.modifiers)|ou(za.asteriskToken)|Kx(za.name)|Fs(za.typeParameters)|Fs(za.parameters)|ou(za.type)|ou(za.body)&-67108865|(p6?128:i0?256:Qm?2048:0)|(za.typeParameters||za.type?1:0)|4194304}return za.typeArguments=void 0,za.jsDoc=void 0,za.locals=void 0,za.nextContainer=void 0,za.endFlowNode=void 0,za.returnFlowNode=void 0,za}function Yk(N,W,ee,ke,dt,Bi,au,za){return N.modifiers!==W||N.asteriskToken!==ee||N.name!==ke||N.typeParameters!==dt||N.parameters!==Bi||N.type!==au||N.body!==za?fb(y9(W,ee,ke,dt,Bi,au,za),N):N}function fb(N,W){return N!==W&&N.modifiers===W.modifiers&&(N.modifiers=W.modifiers),ae(N,W)}function uC(N,W,ee,ke,dt){const Bi=ge(263);return Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.typeParameters=Ms(ee),Bi.heritageClauses=Ms(ke),Bi.members=oe(dt),tE(Bi.modifiers)&128?Bi.transformFlags=1:(Bi.transformFlags|=Fs(Bi.modifiers)|Kx(Bi.name)|Fs(Bi.typeParameters)|Fs(Bi.heritageClauses)|Fs(Bi.members)|(Bi.typeParameters?1:0)|1024,Bi.transformFlags&8192&&(Bi.transformFlags|=1)),Bi.jsDoc=void 0,Bi}function Qk(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Bi?s(uC(W,ee,ke,dt,Bi),N):N}function rC(N,W,ee,ke,dt){const Bi=ge(264);return Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.typeParameters=Ms(ee),Bi.heritageClauses=Ms(ke),Bi.members=oe(dt),Bi.transformFlags=1,Bi.jsDoc=void 0,Bi}function jd(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Bi?s(rC(W,ee,ke,dt,Bi),N):N}function F5(N,W,ee,ke){const dt=ge(265);return dt.modifiers=Ms(N),dt.name=Mc(W),dt.typeParameters=Ms(ee),dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt}function A5(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.type!==dt?s(F5(W,ee,ke,dt),N):N}function f3(N,W,ee){const ke=ge(266);return ke.modifiers=Ms(N),ke.name=Mc(W),ke.members=oe(ee),ke.transformFlags|=Fs(ke.modifiers)|ou(ke.name)|Fs(ke.members)|1,ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function pt(N,W,ee,ke){return N.modifiers!==W||N.name!==ee||N.members!==ke?s(f3(W,ee,ke),N):N}function i1(N,W,ee,ke=0){const dt=ge(267);return dt.modifiers=Ms(N),dt.flags|=ke&2088,dt.name=W,dt.body=ee,tE(dt.modifiers)&128?dt.transformFlags=1:dt.transformFlags|=Fs(dt.modifiers)|ou(dt.name)|ou(dt.body)|1,dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt}function g4(N,W,ee,ke){return N.modifiers!==W||N.name!==ee||N.body!==ke?s(i1(W,ee,ke,N.flags),N):N}function bh(N){const W=se(268);return W.statements=oe(N),W.transformFlags|=Fs(W.statements),W.jsDoc=void 0,W}function Mw(N,W){return N.statements!==W?s(bh(W),N):N}function S5(N){const W=se(269);return W.clauses=oe(N),W.transformFlags|=Fs(W.clauses),W.locals=void 0,W.nextContainer=void 0,W}function aC(N,W){return N.clauses!==W?s(S5(W),N):N}function m3(N){const W=ge(270);return W.name=Mc(N),W.transformFlags|=pV(W.name)|1,W.modifiers=void 0,W.jsDoc=void 0,W}function oz(N,W){return N.name!==W?Hs(m3(W),N):N}function Hs(N,W){return N!==W&&(N.modifiers=W.modifiers),s(N,W)}function yg(N,W,ee,ke){const dt=ge(271);return dt.modifiers=Ms(N),dt.name=Mc(ee),dt.isTypeOnly=W,dt.moduleReference=ke,dt.transformFlags|=Fs(dt.modifiers)|pV(dt.name)|ou(dt.moduleReference),r_(dt.moduleReference)||(dt.transformFlags|=1),dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt}function Xk(N,W,ee,ke,dt){return N.modifiers!==W||N.isTypeOnly!==ee||N.name!==ke||N.moduleReference!==dt?s(yg(W,ee,ke,dt),N):N}function eF(N,W,ee,ke){const dt=se(272);return dt.modifiers=Ms(N),dt.importClause=W,dt.moduleSpecifier=ee,dt.attributes=dt.assertClause=ke,dt.transformFlags|=ou(dt.importClause)|ou(dt.moduleSpecifier),dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt}function mb(N,W,ee,ke,dt){return N.modifiers!==W||N.importClause!==ee||N.moduleSpecifier!==ke||N.attributes!==dt?s(eF(W,ee,ke,dt),N):N}function pb(N,W,ee){const ke=ge(273);return ke.isTypeOnly=N,ke.name=W,ke.namedBindings=ee,ke.transformFlags|=ou(ke.name)|ou(ke.namedBindings),N&&(ke.transformFlags|=1),ke.transformFlags&=-67108865,ke}function up(N,W,ee,ke){return N.isTypeOnly!==W||N.name!==ee||N.namedBindings!==ke?s(pb(W,ee,ke),N):N}function kg(N,W){const ee=se(300);return ee.elements=oe(N),ee.multiLine=W,ee.token=132,ee.transformFlags|=4,ee}function p3(N,W,ee){return N.elements!==W||N.multiLine!==ee?s(kg(W,ee),N):N}function tF(N,W){const ee=se(301);return ee.name=N,ee.value=W,ee.transformFlags|=4,ee}function mE(N,W,ee){return N.name!==W||N.value!==ee?s(tF(W,ee),N):N}function iF(N,W){const ee=se(302);return ee.assertClause=N,ee.multiLine=W,ee}function zw(N,W,ee){return N.assertClause!==W||N.multiLine!==ee?s(iF(W,ee),N):N}function Ur(N,W,ee){const ke=se(300);return ke.token=ee??118,ke.elements=oe(N),ke.multiLine=W,ke.transformFlags|=4,ke}function ar(N,W,ee){return N.elements!==W||N.multiLine!==ee?s(Ur(W,ee,N.token),N):N}function pE(N,W){const ee=se(301);return ee.name=N,ee.value=W,ee.transformFlags|=4,ee}function kf(N,W,ee){return N.name!==W||N.value!==ee?s(pE(W,ee),N):N}function Iw(N){const W=ge(274);return W.name=N,W.transformFlags|=ou(W.name),W.transformFlags&=-67108865,W}function B5(N,W){return N.name!==W?s(Iw(W),N):N}function Rw(N){const W=ge(280);return W.name=N,W.transformFlags|=ou(W.name)|32,W.transformFlags&=-67108865,W}function gb(N,W){return N.name!==W?s(Rw(W),N):N}function uc(N){const W=se(275);return W.elements=oe(N),W.transformFlags|=Fs(W.elements),W.transformFlags&=-67108865,W}function yh(N,W){return N.elements!==W?s(uc(W),N):N}function dD(N,W,ee){const ke=ge(276);return ke.isTypeOnly=N,ke.propertyName=W,ke.name=ee,ke.transformFlags|=ou(ke.propertyName)|ou(ke.name),ke.transformFlags&=-67108865,ke}function f_(N,W,ee,ke){return N.isTypeOnly!==W||N.propertyName!==ee||N.name!==ke?s(dD(W,ee,ke),N):N}function g3(N,W,ee){const ke=ge(277);return ke.modifiers=Ms(N),ke.isExportEquals=W,ke.expression=W?d().parenthesizeRightSideOfBinary(64,void 0,ee):d().parenthesizeExpressionOfExportDefault(ee),ke.transformFlags|=Fs(ke.modifiers)|ou(ke.expression),ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function $p(N,W,ee){return N.modifiers!==W||N.expression!==ee?s(g3(W,N.isExportEquals,ee),N):N}function oC(N,W,ee,ke,dt){const Bi=ge(278);return Bi.modifiers=Ms(N),Bi.isTypeOnly=W,Bi.exportClause=ee,Bi.moduleSpecifier=ke,Bi.attributes=Bi.assertClause=dt,Bi.transformFlags|=Fs(Bi.modifiers)|ou(Bi.exportClause)|ou(Bi.moduleSpecifier),Bi.transformFlags&=-67108865,Bi.jsDoc=void 0,Bi}function E3(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.isTypeOnly!==ee||N.exportClause!==ke||N.moduleSpecifier!==dt||N.attributes!==Bi?Ow(oC(W,ee,ke,dt,Bi),N):N}function Ow(N,W){return N!==W&&N.modifiers===W.modifiers&&(N.modifiers=W.modifiers),s(N,W)}function m_(N){const W=se(279);return W.elements=oe(N),W.transformFlags|=Fs(W.elements),W.transformFlags&=-67108865,W}function jw(N,W){return N.elements!==W?s(m_(W),N):N}function gE(N,W,ee){const ke=se(281);return ke.isTypeOnly=N,ke.propertyName=Mc(W),ke.name=Mc(ee),ke.transformFlags|=ou(ke.propertyName)|ou(ke.name),ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function p_(N,W,ee,ke){return N.isTypeOnly!==W||N.propertyName!==ee||N.name!==ke?s(gE(W,ee,ke),N):N}function w5(){const N=ge(282);return N.jsDoc=void 0,N}function Vw(N){const W=se(283);return W.expression=N,W.transformFlags|=ou(W.expression),W.transformFlags&=-67108865,W}function k9(N,W){return N.expression!==W?s(Vw(W),N):N}function sz(N){return se(N)}function F9(N,W,ee=!1){const ke=B0(N,ee?W&&d().parenthesizeNonArrayTypeOfPostfixType(W):W);return ke.postfix=ee,ke}function B0(N,W){const ee=se(N);return ee.type=W,ee}function Eb(N,W,ee){return W.type!==ee?s(F9(N,ee,W.postfix),W):W}function A9(N,W,ee){return W.type!==ee?s(B0(N,ee),W):W}function rp(N,W){const ee=ge(324);return ee.parameters=Ms(N),ee.type=W,ee.transformFlags=Fs(ee.parameters)|(ee.type?1:0),ee.jsDoc=void 0,ee.locals=void 0,ee.nextContainer=void 0,ee.typeArguments=void 0,ee}function sC(N,W,ee){return N.parameters!==W||N.type!==ee?s(rp(W,ee),N):N}function S9(N,W=!1){const ee=ge(329);return ee.jsDocPropertyTags=Ms(N),ee.isArrayType=W,ee}function lz(N,W,ee){return N.jsDocPropertyTags!==W||N.isArrayType!==ee?s(S9(W,ee),N):N}function nF(N){const W=se(316);return W.type=N,W}function ru(N,W){return N.type!==W?s(nF(W),N):N}function v1(N,W,ee){const ke=ge(330);return ke.typeParameters=Ms(N),ke.parameters=oe(W),ke.type=ee,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke}function Ma(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?s(v1(W,ee,ke),N):N}function lf(N){const W=ice(N.kind);return N.tagName.escapedText===Al(W)?N.tagName:Ge(W)}function EE(N,W,ee){const ke=se(N);return ke.tagName=W,ke.comment=ee,ke}function ap(N,W,ee){const ke=ge(N);return ke.tagName=W,ke.comment=ee,ke}function Un(N,W,ee,ke){const dt=EE(352,N??Ge("template"),ke);return dt.constraint=W,dt.typeParameters=oe(ee),dt}function _b(N,W=lf(N),ee,ke,dt){return N.tagName!==W||N.constraint!==ee||N.typeParameters!==ke||N.comment!==dt?s(Un(W,ee,ke,dt),N):N}function lC(N,W,ee,ke){const dt=ap(353,N??Ge("typedef"),ke);return dt.typeExpression=W,dt.fullName=ee,dt.name=Vce(ee),dt.locals=void 0,dt.nextContainer=void 0,dt}function wd(N,W=lf(N),ee,ke,dt){return N.tagName!==W||N.typeExpression!==ee||N.fullName!==ke||N.comment!==dt?s(lC(W,ee,ke,dt),N):N}function _E(N,W,ee,ke,dt,Bi){const au=ap(348,N??Ge("param"),Bi);return au.typeExpression=ke,au.name=W,au.isNameFirst=!!dt,au.isBracketed=ee,au}function DE(N,W=lf(N),ee,ke,dt,Bi,au){return N.tagName!==W||N.name!==ee||N.isBracketed!==ke||N.typeExpression!==dt||N.isNameFirst!==Bi||N.comment!==au?s(_E(W,ee,ke,dt,Bi,au),N):N}function u6(N,W,ee,ke,dt,Bi){const au=ap(355,N??Ge("prop"),Bi);return au.typeExpression=ke,au.name=W,au.isNameFirst=!!dt,au.isBracketed=ee,au}function B9(N,W=lf(N),ee,ke,dt,Bi,au){return N.tagName!==W||N.name!==ee||N.isBracketed!==ke||N.typeExpression!==dt||N.isNameFirst!==Bi||N.comment!==au?s(u6(W,ee,ke,dt,Bi,au),N):N}function hD(N,W,ee,ke){const dt=ap(345,N??Ge("callback"),ke);return dt.typeExpression=W,dt.fullName=ee,dt.name=Vce(ee),dt.locals=void 0,dt.nextContainer=void 0,dt}function cC(N,W=lf(N),ee,ke,dt){return N.tagName!==W||N.typeExpression!==ee||N.fullName!==ke||N.comment!==dt?s(hD(W,ee,ke,dt),N):N}function dC(N,W,ee){const ke=EE(346,N??Ge("overload"),ee);return ke.typeExpression=W,ke}function _3(N,W=lf(N),ee,ke){return N.tagName!==W||N.typeExpression!==ee||N.comment!==ke?s(dC(W,ee,ke),N):N}function g_(N,W,ee){const ke=EE(335,N??Ge("augments"),ee);return ke.class=W,ke}function uF(N,W=lf(N),ee,ke){return N.tagName!==W||N.class!==ee||N.comment!==ke?s(g_(W,ee,ke),N):N}function fD(N,W,ee){const ke=EE(336,N??Ge("implements"),ee);return ke.class=W,ke}function r6(N,W,ee){const ke=EE(354,N??Ge("see"),ee);return ke.name=W,ke}function Db(N,W,ee,ke){return N.tagName!==W||N.name!==ee||N.comment!==ke?s(r6(W,ee,ke),N):N}function w9(N){const W=se(317);return W.name=N,W}function rF(N,W){return N.name!==W?s(w9(W),N):N}function xb(N,W){const ee=se(318);return ee.left=N,ee.right=W,ee.transformFlags|=ou(ee.left)|ou(ee.right),ee}function E4(N,W,ee){return N.left!==W||N.right!==ee?s(xb(W,ee),N):N}function hC(N,W){const ee=se(331);return ee.name=N,ee.text=W,ee}function yc(N,W,ee){return N.name!==W?s(hC(W,ee),N):N}function md(N,W){const ee=se(332);return ee.name=N,ee.text=W,ee}function T9(N,W,ee){return N.name!==W?s(md(W,ee),N):N}function O1(N,W){const ee=se(333);return ee.name=N,ee.text=W,ee}function Ff(N,W,ee){return N.name!==W?s(O1(W,ee),N):N}function vb(N,W=lf(N),ee,ke){return N.tagName!==W||N.class!==ee||N.comment!==ke?s(fD(W,ee,ke),N):N}function _4(N,W,ee){return EE(N,W??Ge(ice(N)),ee)}function fC(N,W,ee=lf(W),ke){return W.tagName!==ee||W.comment!==ke?s(_4(N,ee,ke),W):W}function T5(N,W,ee,ke){const dt=EE(N,W??Ge(ice(N)),ke);return dt.typeExpression=ee,dt}function n1(N,W,ee=lf(W),ke,dt){return W.tagName!==ee||W.typeExpression!==ke||W.comment!==dt?s(T5(N,ee,ke,dt),W):W}function aF(N,W){return EE(334,N,W)}function op(N,W,ee){return N.tagName!==W||N.comment!==ee?s(aF(W,ee),N):N}function a6(N,W,ee){const ke=ap(347,N??Ge(ice(347)),ee);return ke.typeExpression=W,ke.locals=void 0,ke.nextContainer=void 0,ke}function Hw(N,W=lf(N),ee,ke){return N.tagName!==W||N.typeExpression!==ee||N.comment!==ke?s(a6(W,ee,ke),N):N}function R0(N){const W=se(328);return W.text=N,W}function Kw(N,W){return N.text!==W?s(R0(W),N):N}function oF(N,W){const ee=se(327);return ee.comment=N,ee.tags=Ms(W),ee}function mC(N,W,ee){return N.comment!==W||N.tags!==ee?s(oF(W,ee),N):N}function L9(N,W,ee){const ke=se(284);return ke.openingElement=N,ke.children=oe(W),ke.closingElement=ee,ke.transformFlags|=ou(ke.openingElement)|Fs(ke.children)|ou(ke.closingElement)|2,ke}function Kh(N,W,ee,ke){return N.openingElement!==W||N.children!==ee||N.closingElement!==ke?s(L9(W,ee,ke),N):N}function D3(N,W,ee){const ke=se(285);return ke.tagName=N,ke.typeArguments=Ms(W),ke.attributes=ee,ke.transformFlags|=ou(ke.tagName)|Fs(ke.typeArguments)|ou(ke.attributes)|2,ke.typeArguments&&(ke.transformFlags|=1),ke}function mD(N,W,ee,ke){return N.tagName!==W||N.typeArguments!==ee||N.attributes!==ke?s(D3(W,ee,ke),N):N}function Cb(N,W,ee){const ke=se(286);return ke.tagName=N,ke.typeArguments=Ms(W),ke.attributes=ee,ke.transformFlags|=ou(ke.tagName)|Fs(ke.typeArguments)|ou(ke.attributes)|2,W&&(ke.transformFlags|=1),ke}function _m(N,W,ee,ke){return N.tagName!==W||N.typeArguments!==ee||N.attributes!==ke?s(Cb(W,ee,ke),N):N}function N9(N){const W=se(287);return W.tagName=N,W.transformFlags|=ou(W.tagName)|2,W}function o6(N,W){return N.tagName!==W?s(N9(W),N):N}function qm(N,W,ee){const ke=se(288);return ke.openingFragment=N,ke.children=oe(W),ke.closingFragment=ee,ke.transformFlags|=ou(ke.openingFragment)|Fs(ke.children)|ou(ke.closingFragment)|2,ke}function bb(N,W,ee,ke){return N.openingFragment!==W||N.children!==ee||N.closingFragment!==ke?s(qm(W,ee,ke),N):N}function L5(N,W){const ee=se(12);return ee.text=N,ee.containsOnlyTriviaWhiteSpaces=!!W,ee.transformFlags|=2,ee}function cz(N,W,ee){return N.text!==W||N.containsOnlyTriviaWhiteSpaces!==ee?s(L5(W,ee),N):N}function P9(){const N=se(289);return N.transformFlags|=2,N}function M9(){const N=se(290);return N.transformFlags|=2,N}function z9(N,W){const ee=ge(291);return ee.name=N,ee.initializer=W,ee.transformFlags|=ou(ee.name)|ou(ee.initializer)|2,ee}function pC(N,W,ee){return N.name!==W||N.initializer!==ee?s(z9(W,ee),N):N}function $f(N){const W=ge(292);return W.properties=oe(N),W.transformFlags|=Fs(W.properties)|2,W}function x3(N,W){return N.properties!==W?s($f(W),N):N}function I9(N){const W=se(293);return W.expression=N,W.transformFlags|=ou(W.expression)|2,W}function R9(N,W){return N.expression!==W?s(I9(W),N):N}function Ks(N,W){const ee=se(294);return ee.dotDotDotToken=N,ee.expression=W,ee.transformFlags|=ou(ee.dotDotDotToken)|ou(ee.expression)|2,ee}function _u(N,W){return N.expression!==W?s(Ks(N.dotDotDotToken,W),N):N}function Dm(N,W){const ee=se(295);return ee.namespace=N,ee.name=W,ee.transformFlags|=ou(ee.namespace)|ou(ee.name)|2,ee}function cf(N,W,ee){return N.namespace!==W||N.name!==ee?s(Dm(W,ee),N):N}function yb(N,W){const ee=se(296);return ee.expression=d().parenthesizeExpressionForDisallowedComma(N),ee.statements=oe(W),ee.transformFlags|=ou(ee.expression)|Fs(ee.statements),ee.jsDoc=void 0,ee}function Ww(N,W,ee){return N.expression!==W||N.statements!==ee?s(yb(W,ee),N):N}function gC(N){const W=se(297);return W.statements=oe(N),W.transformFlags=Fs(W.statements),W}function kb(N,W){return N.statements!==W?s(gC(W),N):N}function s6(N,W){const ee=se(298);switch(ee.token=N,ee.types=oe(W),ee.transformFlags|=Fs(ee.types),N){case 96:ee.transformFlags|=1024;break;case 119:ee.transformFlags|=1;break;default:return H.assertNever(N)}return ee}function Zm(N,W){return N.types!==W?s(s6(N.token,W),N):N}function sp(N,W){const ee=se(299);return ee.variableDeclaration=V9(N),ee.block=W,ee.transformFlags|=ou(ee.variableDeclaration)|ou(ee.block)|(N?0:64),ee.locals=void 0,ee.nextContainer=void 0,ee}function l6(N,W,ee){return N.variableDeclaration!==W||N.block!==ee?s(sp(W,ee),N):N}function Up(N,W){const ee=ge(303);return ee.name=Mc(N),ee.initializer=d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=Kx(ee.name)|ou(ee.initializer),ee.modifiers=void 0,ee.questionToken=void 0,ee.exclamationToken=void 0,ee.jsDoc=void 0,ee}function lp(N,W,ee){return N.name!==W||N.initializer!==ee?N5(Up(W,ee),N):N}function N5(N,W){return N!==W&&(N.modifiers=W.modifiers,N.questionToken=W.questionToken,N.exclamationToken=W.exclamationToken),s(N,W)}function Fb(N,W){const ee=ge(304);return ee.name=Mc(N),ee.objectAssignmentInitializer=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=pV(ee.name)|ou(ee.objectAssignmentInitializer)|1024,ee.equalsToken=void 0,ee.modifiers=void 0,ee.questionToken=void 0,ee.exclamationToken=void 0,ee.jsDoc=void 0,ee}function Pc(N,W,ee){return N.name!==W||N.objectAssignmentInitializer!==ee?dz(Fb(W,ee),N):N}function dz(N,W){return N!==W&&(N.modifiers=W.modifiers,N.questionToken=W.questionToken,N.exclamationToken=W.exclamationToken,N.equalsToken=W.equalsToken),s(N,W)}function D4(N){const W=ge(305);return W.expression=d().parenthesizeExpressionForDisallowedComma(N),W.transformFlags|=ou(W.expression)|128|65536,W.jsDoc=void 0,W}function Gw(N,W){return N.expression!==W?s(D4(W),N):N}function j1(N,W){const ee=ge(306);return ee.name=Mc(N),ee.initializer=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=ou(ee.name)|ou(ee.initializer)|1,ee.jsDoc=void 0,ee}function EC(N,W,ee){return N.name!==W||N.initializer!==ee?s(j1(W,ee),N):N}function Ab(N,W,ee){const ke=u.createBaseSourceFileNode(312);return ke.statements=oe(N),ke.endOfFileToken=W,ke.flags|=ee,ke.text="",ke.fileName="",ke.path="",ke.resolvedPath="",ke.originalFileName="",ke.languageVersion=0,ke.languageVariant=0,ke.scriptKind=0,ke.isDeclarationFile=!1,ke.hasNoDefaultLib=!1,ke.transformFlags|=Fs(ke.statements)|ou(ke.endOfFileToken),ke.locals=void 0,ke.nextContainer=void 0,ke.endFlowNode=void 0,ke.nodeCount=0,ke.identifierCount=0,ke.symbolCount=0,ke.parseDiagnostics=void 0,ke.bindDiagnostics=void 0,ke.bindSuggestionDiagnostics=void 0,ke.lineMap=void 0,ke.externalModuleIndicator=void 0,ke.setExternalModuleIndicator=void 0,ke.pragmas=void 0,ke.checkJsDirective=void 0,ke.referencedFiles=void 0,ke.typeReferenceDirectives=void 0,ke.libReferenceDirectives=void 0,ke.amdDependencies=void 0,ke.commentDirectives=void 0,ke.identifiers=void 0,ke.packageJsonLocations=void 0,ke.packageJsonScope=void 0,ke.imports=void 0,ke.moduleAugmentations=void 0,ke.ambientModuleNames=void 0,ke.classifiableNames=void 0,ke.impliedNodeFormat=void 0,ke}function sF(N){const W=Object.create(N.redirectTarget);return Object.defineProperties(W,{id:{get(){return this.redirectInfo.redirectTarget.id},set(ee){this.redirectInfo.redirectTarget.id=ee}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(ee){this.redirectInfo.redirectTarget.symbol=ee}}}),W.redirectInfo=N,W}function Jw(N){const W=sF(N.redirectInfo);return W.flags|=N.flags&-17,W.fileName=N.fileName,W.path=N.path,W.resolvedPath=N.resolvedPath,W.originalFileName=N.originalFileName,W.packageJsonLocations=N.packageJsonLocations,W.packageJsonScope=N.packageJsonScope,W.emitNode=void 0,W}function x4(N){const W=u.createBaseSourceFileNode(312);W.flags|=N.flags&-17;for(const ee in N)if(!(gu(W,ee)||!gu(N,ee))){if(ee==="emitNode"){W.emitNode=void 0;continue}W[ee]=N[ee]}return W}function Ol(N){const W=N.redirectInfo?Jw(N):x4(N);return su(W,N),W}function xE(N,W,ee,ke,dt,Bi,au){const za=Ol(N);return za.statements=oe(W),za.isDeclarationFile=ee,za.referencedFiles=ke,za.typeReferenceDirectives=dt,za.hasNoDefaultLib=Bi,za.libReferenceDirectives=au,za.transformFlags=Fs(za.statements)|ou(za.endOfFileToken),za}function c6(N,W,ee=N.isDeclarationFile,ke=N.referencedFiles,dt=N.typeReferenceDirectives,Bi=N.hasNoDefaultLib,au=N.libReferenceDirectives){return N.statements!==W||N.isDeclarationFile!==ee||N.referencedFiles!==ke||N.typeReferenceDirectives!==dt||N.hasNoDefaultLib!==Bi||N.libReferenceDirectives!==au?s(xE(N,W,ee,ke,dt,Bi,au),N):N}function v3(N,W=_t){const ee=se(313);return ee.prepends=W,ee.sourceFiles=N,ee.syntheticFileReferences=void 0,ee.syntheticTypeReferences=void 0,ee.syntheticLibReferences=void 0,ee.hasNoDefaultLib=void 0,ee}function _C(N,W,ee=_t){return N.sourceFiles!==W||N.prepends!==ee?s(v3(W,ee),N):N}function $w(N,W,ee){const ke=se(314);return ke.prologues=N,ke.syntheticReferences=W,ke.texts=ee,ke.fileName="",ke.text="",ke.referencedFiles=_t,ke.libReferenceDirectives=_t,ke.getLineAndCharacterOfPosition=dt=>s0(ke,dt),ke}function d6(N,W){const ee=se(N);return ee.data=W,ee}function R(N){return d6(307,N)}function be(N,W){const ee=d6(308,N);return ee.texts=W,ee}function Ht(N,W){return d6(W?310:309,N)}function Oi(N){const W=se(311);return W.data=N.data,W.section=N,W}function yu(){const N=se(315);return N.javascriptText="",N.declarationText="",N}function Jr(N,W=!1,ee){const ke=se(237);return ke.type=N,ke.isSpread=W,ke.tupleNameSource=ee,ke}function br(N){const W=se(358);return W._children=N,W}function Ea(N){const W=se(359);return W.original=N,Pt(W,N),W}function Ao(N,W){const ee=se(360);return ee.expression=N,ee.original=W,ee.transformFlags|=ou(ee.expression)|1,Pt(ee,W),ee}function Af(N,W){return N.expression!==W?s(Ao(W,N.original),N):N}function Uf(N){if(sl(N)&&!zN(N)&&!N.original&&!N.emitNode&&!N.id){if(UP(N))return N.elements;if(Xn(N)&&Zke(N.operatorToken))return[N.left,N.right]}return N}function Fr(N){const W=se(361);return W.elements=oe(z0(N,Uf)),W.transformFlags|=Fs(W.elements),W}function vE(N,W){return N.elements!==W?s(Fr(W),N):N}function gn(N,W){const ee=se(362);return ee.expression=N,ee.thisArg=W,ee.transformFlags|=ou(ee.expression)|ou(ee.thisArg),ee}function h6(N,W,ee){return N.expression!==W||N.thisArg!==ee?s(gn(W,ee),N):N}function P5(N){const W=xe(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N),xV(W,{...N.emitNode.autoGenerate}),W}function lF(N){const W=xe(N.escapedText);W.flags|=N.flags&-17,W.jsDoc=N.jsDoc,W.flowNode=N.flowNode,W.symbol=N.symbol,W.transformFlags=N.transformFlags,su(W,N);const ee=gk(N);return ee&&l5(W,ee),W}function DC(N){const W=ft(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N),xV(W,{...N.emitNode.autoGenerate}),W}function O9(N){const W=ft(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N),W}function cF(N){if(N===void 0)return N;if(la(N))return Ol(N);if(al(N))return P5(N);if(at(N))return lF(N);if(Uy(N))return DC(N);if(Xr(N))return O9(N);const W=GO(N.kind)?u.createBaseNode(N.kind):u.createBaseTokenNode(N.kind);W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N);for(const ee in N)gu(W,ee)||!gu(N,ee)||(W[ee]=N[ee]);return W}function E_(N,W,ee){return Mn(Jm(void 0,void 0,void 0,void 0,W?[W]:[],void 0,o0(N,!0)),void 0,ee?[ee]:[])}function M5(N,W,ee){return Mn(f4(void 0,void 0,W?[W]:[],void 0,void 0,o0(N,!0)),void 0,ee?[ee]:[])}function C3(){return Wf(Ce("0"))}function Uw(N){return g3(void 0,!1,N)}function j9(N){return oC(void 0,!1,m_([gE(!1,void 0,N)]))}function ZK(N,W){return W==="null"?Y.createStrictEquality(N,It()):W==="undefined"?Y.createStrictEquality(N,C3()):Y.createStrictEquality(R1(N),Se(W))}function hz(N,W){return W==="null"?Y.createStrictInequality(N,It()):W==="undefined"?Y.createStrictInequality(N,C3()):Y.createStrictInequality(R1(N),Se(W))}function __(N,W,ee){return $y(N)?Fo(m0(N,void 0,W),void 0,void 0,ee):Mn(S0(N,W),void 0,ee)}function pD(N,W,ee){return __(N,"bind",[W,...ee])}function qw(N,W,ee){return __(N,"call",[W,...ee])}function D_(N,W,ee){return __(N,"apply",[W,ee])}function xC(N,W,ee){return __(Ge(N),W,ee)}function mte(N,W){return __(N,"slice",W===void 0?[]:[m6(W)])}function CE(N,W){return __(N,"concat",W)}function dF(N,W,ee){return xC("Object","defineProperty",[N,m6(W),ee])}function YK(N,W){return xC("Object","getOwnPropertyDescriptor",[N,m6(W)])}function he(N,W,ee){return xC("Reflect","get",ee?[N,W,ee]:[N,W])}function Re(N,W,ee,ke){return xC("Reflect","set",ke?[N,W,ee,ke]:[N,W,ee])}function nt(N,W,ee){return ee?(N.push(Up(W,ee)),!0):!1}function Nt(N,W){const ee=[];nt(ee,"enumerable",m6(N.enumerable)),nt(ee,"configurable",m6(N.configurable));let ke=nt(ee,"writable",m6(N.writable));ke=nt(ee,"value",N.value)||ke;let dt=nt(ee,"get",N.get);return dt=nt(ee,"set",N.set)||dt,H.assert(!(ke&&dt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ss(ee,!W)}function bi(N,W){switch(N.kind){case 217:return ip(N,W);case 216:return ql(N,N.type,W);case 234:return oi(N,W,N.type);case 238:return tn(N,W,N.type);case 235:return Xi(N,W);case 360:return Af(N,W)}}function en(N){return Cf(N)&&sl(N)&&sl(Lv(N))&&sl(nE(N))&&!Oe(DB(N))&&!Oe(DV(N))}function zu(N,W,ee=15){return N&&CY(N,ee)&&!en(N)?bi(N,zu(N.expression,W)):W}function Hr(N,W,ee){if(!W)return N;const ke=Nw(W,W.label,V2(W.statement)?Hr(N,W.statement):N);return ee&&ee(W),ke}function Lr(N,W){const ee=l0(N);switch(ee.kind){case 80:return W;case 110:case 9:case 10:case 11:return!1;case 209:return ee.elements.length!==0;case 210:return ee.properties.length>0;default:return!0}}function gr(N,W,ee,ke=!1){const dt=Dc(N,15);let Bi,au;return nf(dt)?(Bi=St(),au=dt):HP(dt)?(Bi=St(),au=ee!==void 0&&ee<2?Pt(Ge("_super"),dt):dt):bs(dt)&8192?(Bi=C3(),au=d().parenthesizeLeftSideOfAccess(dt,!1)):Iu(dt)?Lr(dt.expression,ke)?(Bi=Ae(W),au=S0(Pt(Y.createAssignment(Bi,dt.expression),dt.expression),dt.name),Pt(au,dt)):(Bi=dt.expression,au=dt):U0(dt)?Lr(dt.expression,ke)?(Bi=Ae(W),au=uh(Pt(Y.createAssignment(Bi,dt.expression),dt.expression),dt.argumentExpression),Pt(au,dt)):(Bi=dt.expression,au=dt):(Bi=C3(),au=d().parenthesizeLeftSideOfAccess(N,!1)),{target:au,thisArg:Bi}}function fa(N,W){return S0(Nc(Ss([et(void 0,"value",[Zu(void 0,void 0,N,void 0,void 0,void 0)],o0([i6(W)]))])),"value")}function _0(N){return N.length>10?Fr(N):nn(N,Y.createComma)}function qs(N,W,ee,ke=0,dt){const Bi=dt?N&&TU(N):Za(N);if(Bi&&at(Bi)&&!al(Bi)){const au=ks(Pt(cF(Bi),Bi),Bi.parent);return ke|=bs(Bi),ee||(ke|=96),W||(ke|=3072),ke&&Zn(au,ke),au}return Je(N)}function Ws(N,W,ee){return qs(N,W,ee,98304)}function v4(N,W,ee,ke){return qs(N,W,ee,32768,ke)}function qp(N,W,ee){return qs(N,W,ee,16384)}function f6(N,W,ee){return qs(N,W,ee)}function b3(N,W,ee,ke){const dt=S0(N,sl(W)?W:cF(W));Pt(dt,W);let Bi=0;return ke||(Bi|=96),ee||(Bi|=3072),Bi&&Zn(dt,Bi),dt}function Vd(N,W,ee,ke){return N&&Yu(W,32)?b3(N,qs(W),ee,ke):qp(W,ee,ke)}function gD(N,W,ee,ke){const dt=Yw(N,W,0,ee);return mz(N,W,dt,ke)}function fz(N){return us(N.expression)&&N.expression.text==="use strict"}function Zw(){return vh(i6(Se("use strict")))}function Yw(N,W,ee=0,ke){H.assert(W.length===0,"Prologue directives should be at the first statement in the target statements array");let dt=!1;const Bi=N.length;for(;eeza&&Qm.splice(dt,0,...W.slice(za,i0)),za>au&&Qm.splice(ke,0,...W.slice(au,za)),au>Bi&&Qm.splice(ee,0,...W.slice(Bi,au)),Bi>0)if(ee===0)Qm.splice(0,0,...W.slice(0,Bi));else{const p6=new Map;for(let g6=0;g6=0;g6--){const vC=W[g6];p6.has(vC.expression.text)||Qm.unshift(vC)}}return g2(N)?Pt(oe(Qm,N.hasTrailingComma),N):N}function gz(N,W){let ee;return typeof W=="number"?ee=Ni(W):ee=W,Bl(N)?Ai(N,ee,N.name,N.constraint,N.default):io(N)?aa(N,ee,N.dotDotDotToken,N.name,N.questionToken,N.type,N.initializer):WP(N)?Ui(N,ee,N.typeParameters,N.parameters,N.type):Mm(N)?jn(N,ee,N.name,N.questionToken,N.type):ko(N)?Dn(N,ee,N.name,N.questionToken??N.exclamationToken,N.type,N.initializer):n3(N)?tu(N,ee,N.name,N.questionToken,N.typeParameters,N.parameters,N.type):dc(N)?Da(N,ee,N.asteriskToken,N.name,N.questionToken,N.typeParameters,N.parameters,N.type,N.body):hc(N)?Et(N,ee,N.parameters,N.body):zm(N)?Xt(N,ee,N.name,N.parameters,N.type,N.body):jf(N)?gt(N,ee,N.name,N.parameters,N.body):Ek(N)?Ei(N,ee,N.parameters,N.type):A0(N)?jh(N,ee,N.asteriskToken,N.name,N.typeParameters,N.parameters,N.type,N.body):q0(N)?c3(N,ee,N.typeParameters,N.parameters,N.type,N.equalsGreaterThanToken,N.body):Xd(N)?bg(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):Jl(N)?t6(N,ee,N.declarationList):ed(N)?Yk(N,ee,N.asteriskToken,N.name,N.typeParameters,N.parameters,N.type,N.body):Wc(N)?Qk(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):xh(N)?jd(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):jp(N)?A5(N,ee,N.name,N.typeParameters,N.type):Iv(N)?pt(N,ee,N.name,N.members):_c(N)?g4(N,ee,N.name,N.body):E1(N)?Xk(N,ee,N.isTypeOnly,N.name,N.moduleReference):Sd(N)?mb(N,ee,N.importClause,N.moduleSpecifier,N.attributes):tc(N)?$p(N,ee,N.expression):Gc(N)?E3(N,ee,N.isTypeOnly,N.exportClause,N.moduleSpecifier,N.attributes):H.assertNever(N)}function C4(N,W){return io(N)?aa(N,W,N.dotDotDotToken,N.name,N.questionToken,N.type,N.initializer):ko(N)?Dn(N,W,N.name,N.questionToken??N.exclamationToken,N.type,N.initializer):dc(N)?Da(N,W,N.asteriskToken,N.name,N.questionToken,N.typeParameters,N.parameters,N.type,N.body):zm(N)?Xt(N,W,N.name,N.parameters,N.type,N.body):jf(N)?gt(N,W,N.name,N.parameters,N.body):Xd(N)?bg(N,W,N.name,N.typeParameters,N.heritageClauses,N.members):Wc(N)?Qk(N,W,N.name,N.typeParameters,N.heritageClauses,N.members):H.assertNever(N)}function Qw(N,W){switch(N.kind){case 177:return Xt(N,N.modifiers,W,N.parameters,N.type,N.body);case 178:return gt(N,N.modifiers,W,N.parameters,N.body);case 174:return Da(N,N.modifiers,N.asteriskToken,W,N.questionToken,N.typeParameters,N.parameters,N.type,N.body);case 173:return tu(N,N.modifiers,W,N.questionToken,N.typeParameters,N.parameters,N.type);case 172:return Dn(N,N.modifiers,W,N.questionToken??N.exclamationToken,N.type,N.initializer);case 171:return jn(N,N.modifiers,W,N.questionToken,N.type);case 303:return lp(N,W,N.initializer)}}function Ms(N){return N?oe(N):void 0}function Mc(N){return typeof N=="string"?Ge(N):N}function m6(N){return typeof N=="string"?Se(N):typeof N=="number"?Ce(N):typeof N=="boolean"?N?ei():ht():N}function hF(N){return N&&d().parenthesizeExpressionForDisallowedComma(N)}function gte(N){return typeof N=="number"?Ie(N):N}function x_(N){return N&&yce(N)?Pt(su(cD(),N),N):N}function V9(N){return typeof N=="string"||N&&!na(N)?Hh(N,void 0,void 0,void 0):N}}function bLt(t,u){return t!==u&&Pt(t,u),t}function yLt(t,u){return t!==u&&(su(t,u),Pt(t,u)),t}function ice(t){switch(t){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return H.fail(`Unsupported kind: ${H.formatSyntaxKind(t)}`)}}function kLt(t,u){switch(s5||(s5=YD(99,!1,0)),t){case 15:s5.setText("`"+u+"`");break;case 16:s5.setText("`"+u+"${");break;case 17:s5.setText("}"+u+"${");break;case 18:s5.setText("}"+u+"`");break}let s=s5.scan();if(s===20&&(s=s5.reScanTemplateToken(!1)),s5.isUnterminated())return s5.setText(void 0),Ike;let d;switch(s){case 15:case 16:case 17:case 18:d=s5.getTokenValue();break}return d===void 0||s5.scan()!==1?(s5.setText(void 0),Ike):(s5.setText(void 0),d)}function Kx(t){return t&&at(t)?pV(t):ou(t)}function pV(t){return ou(t)&-67108865}function FLt(t,u){return u|t.transformFlags&134234112}function ou(t){if(!t)return 0;const u=t.transformFlags&~Mke(t.kind);return mh(t)&&Sc(t.name)?FLt(t.name,u):u}function Fs(t){return t?t.transformFlags:0}function zYe(t){let u=0;for(const s of t)u|=ou(s);t.transformFlags=u}function Mke(t){if(t>=182&&t<=205)return-2;switch(t){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function yZ(t){return t.flags|=16,t}function nce(t,u,s){let d,f,p,E,v,b,B,k,T,M;Ja(t)?(p="",E=t,v=t.length,b=u,B=s):(H.assert(u==="js"||u==="dts"),p=(u==="js"?t.javascriptPath:t.declarationPath)||"",b=u==="js"?t.javascriptMapPath:t.declarationMapPath,k=()=>u==="js"?t.javascriptText:t.declarationText,T=()=>u==="js"?t.javascriptMapText:t.declarationMapText,v=()=>k().length,t.buildInfo&&t.buildInfo.bundle&&(H.assert(s===void 0||typeof s=="boolean"),d=s,f=u==="js"?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,M=t.oldFileOfCurrentEmit));const z=M?SLt(H.checkDefined(f)):ALt(f,d,v);return z.fileName=p,z.sourceMapPath=b,z.oldFileOfCurrentEmit=M,k&&T?(Object.defineProperty(z,"text",{get:k}),Object.defineProperty(z,"sourceMapText",{get:T})):(H.assert(!M),z.text=E??"",z.sourceMapText=B),z}function ALt(t,u,s){let d,f,p,E,v,b,B,k;for(const M of t?t.sections:_t)switch(M.kind){case"prologue":d=xi(d,Pt(q.createUnparsedPrologue(M.data),M));break;case"emitHelpers":f=xi(f,hce().get(M.data));break;case"no-default-lib":k=!0;break;case"reference":p=xi(p,{pos:-1,end:-1,fileName:M.data});break;case"type":E=xi(E,{pos:-1,end:-1,fileName:M.data});break;case"type-import":E=xi(E,{pos:-1,end:-1,fileName:M.data,resolutionMode:99});break;case"type-require":E=xi(E,{pos:-1,end:-1,fileName:M.data,resolutionMode:1});break;case"lib":v=xi(v,{pos:-1,end:-1,fileName:M.data});break;case"prepend":let z;for(const j of M.texts)(!u||j.kind!=="internal")&&(z=xi(z,Pt(q.createUnparsedTextLike(j.data,j.kind==="internal"),j)));b=yn(b,z),B=xi(B,q.createUnparsedPrepend(M.data,z??_t));break;case"internal":if(u){B||(B=[]);break}case"text":B=xi(B,Pt(q.createUnparsedTextLike(M.data,M.kind==="internal"),M));break;default:H.assertNever(M)}if(!B){const M=q.createUnparsedTextLike(void 0,!1);wP(M,0,typeof s=="function"?s():s),B=[M]}const T=a_.createUnparsedSource(d??_t,void 0,B);return pB(d,T),pB(B,T),pB(b,T),T.hasNoDefaultLib=k,T.helpers=f,T.referencedFiles=p||_t,T.typeReferenceDirectives=E,T.libReferenceDirectives=v||_t,T}function SLt(t){let u,s;for(const f of t.sections)switch(f.kind){case"internal":case"text":u=xi(u,Pt(q.createUnparsedTextLike(f.data,f.kind==="internal"),f));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":s=xi(s,Pt(q.createUnparsedSyntheticReference(f),f));break;case"prologue":case"emitHelpers":case"prepend":break;default:H.assertNever(f)}const d=q.createUnparsedSource(_t,s,u??_t);return pB(s,d),pB(u,d),d.helpers=Vt(t.sources&&t.sources.helpers,f=>hce().get(f)),d}function IYe(t,u,s,d,f,p){return Ja(t)?rce(void 0,t,s,d,void 0,u,f,p):uce(t,u,s,d,f,p)}function uce(t,u,s,d,f,p,E,v){const b=a_.createInputFiles();b.javascriptPath=u,b.javascriptMapPath=s,b.declarationPath=d,b.declarationMapPath=f,b.buildInfoPath=p;const B=new Map,k=j=>{if(j===void 0)return;let J=B.get(j);return J===void 0&&(J=t(j),B.set(j,J!==void 0?J:!1)),J!==!1?J:void 0},T=j=>{const J=k(j);return J!==void 0?J:`/* Input file ${j} was missing */\r +`};let M;return Object.defineProperties(b,{javascriptText:{get:()=>T(u)},javascriptMapText:{get:()=>k(s)},declarationText:{get:()=>T(H.checkDefined(d))},declarationMapText:{get:()=>k(f)},buildInfo:{get:()=>{if(M===void 0&&p)if(E!=null&&E.getBuildInfo)M=E.getBuildInfo(p,v.configFilePath)??!1;else{const j=k(p);M=j!==void 0?_Q(p,j)??!1:!1}return M||void 0}}}),b}function rce(t,u,s,d,f,p,E,v,b,B,k){const T=a_.createInputFiles();return T.javascriptPath=t,T.javascriptText=u,T.javascriptMapPath=s,T.javascriptMapText=d,T.declarationPath=f,T.declarationText=p,T.declarationMapPath=E,T.declarationMapText=v,T.buildInfoPath=b,T.buildInfo=B,T.oldFileOfCurrentEmit=k,T}function RYe(t,u,s){return new(jYe||(jYe=Qd.getSourceMapSourceConstructor()))(t,u,s)}function su(t,u){if(t.original!==u&&(t.original=u,u)){const s=u.emitNode;s&&(t.emitNode=BLt(s,t.emitNode))}return t}function BLt(t,u){const{flags:s,internalFlags:d,leadingComments:f,trailingComments:p,commentRange:E,sourceMapRange:v,tokenSourceMapRanges:b,constantValue:B,helpers:k,startsOnNewLine:T,snippetElement:M,classThis:z,assignedName:j}=t;if(u||(u={}),s&&(u.flags=s),d&&(u.internalFlags=d&-9),f&&(u.leadingComments=yn(f.slice(),u.leadingComments)),p&&(u.trailingComments=yn(p.slice(),u.trailingComments)),E&&(u.commentRange=E),v&&(u.sourceMapRange=v),b&&(u.tokenSourceMapRanges=wLt(b,u.tokenSourceMapRanges)),B!==void 0&&(u.constantValue=B),k)for(const J of k)u.helpers=e0(u.helpers,J);return T!==void 0&&(u.startsOnNewLine=T),M!==void 0&&(u.snippetElement=M),z&&(u.classThis=z),j&&(u.assignedName=j),u}function wLt(t,u){u||(u=[]);for(const s in t)u[s]=t[s];return u}var kZ,ace,zke,s5,Ike,gV,OYe,q,jYe,TLt=o({"src/compiler/factory/nodeFactory.ts"(){Bo(),kZ=0,ace=(t=>(t[t.None=0]="None",t[t.NoParenthesizerRules=1]="NoParenthesizerRules",t[t.NoNodeConverters=2]="NoNodeConverters",t[t.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",t[t.NoOriginalNode=8]="NoOriginalNode",t))(ace||{}),zke=[],Ike={},gV=Lke(),OYe={createBaseSourceFileNode:t=>yZ(gV.createBaseSourceFileNode(t)),createBaseIdentifierNode:t=>yZ(gV.createBaseIdentifierNode(t)),createBasePrivateIdentifierNode:t=>yZ(gV.createBasePrivateIdentifierNode(t)),createBaseTokenNode:t=>yZ(gV.createBaseTokenNode(t)),createBaseNode:t=>yZ(gV.createBaseNode(t))},q=mV(4,OYe)}});function P1(t){if(t.emitNode)H.assert(!(t.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(zN(t)){if(t.kind===312)return t.emitNode={annotatedNodes:[t]};const u=zn(Ua(zn(t)))??H.fail("Could not determine parsed source file.");P1(u).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function oce(t){var u,s;const d=(s=(u=zn(Ua(t)))==null?void 0:u.emitNode)==null?void 0:s.annotatedNodes;if(d)for(const f of d)f.emitNode=void 0}function EV(t){const u=P1(t);return u.flags|=3072,u.leadingComments=void 0,u.trailingComments=void 0,t}function Zn(t,u){return P1(t).flags=u,t}function i_(t,u){const s=P1(t);return s.flags=s.flags|u,t}function _V(t,u){return P1(t).internalFlags=u,t}function F7(t,u){const s=P1(t);return s.internalFlags=s.internalFlags|u,t}function Lv(t){var u;return((u=t.emitNode)==null?void 0:u.sourceMapRange)??t}function As(t,u){return P1(t).sourceMapRange=u,t}function VYe(t,u){var s,d;return(d=(s=t.emitNode)==null?void 0:s.tokenSourceMapRanges)==null?void 0:d[u]}function Rke(t,u,s){const d=P1(t),f=d.tokenSourceMapRanges??(d.tokenSourceMapRanges=[]);return f[u]=s,t}function RP(t){var u;return(u=t.emitNode)==null?void 0:u.startsOnNewLine}function FZ(t,u){return P1(t).startsOnNewLine=u,t}function nE(t){var u;return((u=t.emitNode)==null?void 0:u.commentRange)??t}function Bc(t,u){return P1(t).commentRange=u,t}function DB(t){var u;return(u=t.emitNode)==null?void 0:u.leadingComments}function Nv(t,u){return P1(t).leadingComments=u,t}function OP(t,u,s,d){return Nv(t,xi(DB(t),{kind:u,pos:-1,end:-1,hasTrailingNewLine:d,text:s}))}function DV(t){var u;return(u=t.emitNode)==null?void 0:u.trailingComments}function A7(t,u){return P1(t).trailingComments=u,t}function AZ(t,u,s,d){return A7(t,xi(DV(t),{kind:u,pos:-1,end:-1,hasTrailingNewLine:d,text:s}))}function Oke(t,u){Nv(t,DB(u)),A7(t,DV(u));const s=P1(u);return s.leadingComments=void 0,s.trailingComments=void 0,t}function jke(t){var u;return(u=t.emitNode)==null?void 0:u.constantValue}function Vke(t,u){const s=P1(t);return s.constantValue=u,t}function S7(t,u){const s=P1(t);return s.helpers=xi(s.helpers,u),t}function iD(t,u){if(Oe(u)){const s=P1(t);for(const d of u)s.helpers=e0(s.helpers,d)}return t}function HYe(t,u){var s;const d=(s=t.emitNode)==null?void 0:s.helpers;return d?gO(d,u):!1}function SZ(t){var u;return(u=t.emitNode)==null?void 0:u.helpers}function Hke(t,u,s){const d=t.emitNode,f=d&&d.helpers;if(!Oe(f))return;const p=P1(u);let E=0;for(let v=0;v0&&(f[v-E]=b)}E>0&&(f.length-=E)}function sce(t){var u;return(u=t.emitNode)==null?void 0:u.snippetElement}function lce(t,u){const s=P1(t);return s.snippetElement=u,t}function cce(t){return P1(t).internalFlags|=4,t}function Kke(t,u){const s=P1(t);return s.typeNode=u,t}function Wke(t){var u;return(u=t.emitNode)==null?void 0:u.typeNode}function l5(t,u){return P1(t).identifierTypeArguments=u,t}function gk(t){var u;return(u=t.emitNode)==null?void 0:u.identifierTypeArguments}function xV(t,u){return P1(t).autoGenerate=u,t}function KYe(t){var u;return(u=t.emitNode)==null?void 0:u.autoGenerate}function Gke(t,u){return P1(t).generatedImportReference=u,t}function Jke(t){var u;return(u=t.emitNode)==null?void 0:u.generatedImportReference}var LLt=o({"src/compiler/factory/emitNode.ts"(){Bo()}});function $ke(t){const u=t.factory,s=Mh(()=>_V(u.createTrue(),8)),d=Mh(()=>_V(u.createFalse(),8));return{getUnscopedHelperName:f,createDecorateHelper:p,createMetadataHelper:E,createParamHelper:v,createESDecorateHelper:J,createRunInitializersHelper:K,createAssignHelper:Y,createAwaitHelper:oe,createAsyncGeneratorHelper:se,createAsyncDelegatorHelper:ge,createAsyncValuesHelper:ae,createRestHelper:Ce,createAwaiterHelper:ne,createExtendsHelper:ve,createTemplateObjectHelper:Se,createSpreadArrayHelper:Ne,createPropKeyHelper:pe,createSetFunctionNameHelper:fe,createValuesHelper:xe,createReadHelper:Be,createGeneratorHelper:Ge,createCreateBindingHelper:Ae,createImportStarHelper:De,createImportStarCallbackHelper:Ke,createImportDefaultHelper:Je,createExportStarHelper:ft,createClassPrivateFieldGetHelper:Ye,createClassPrivateFieldSetHelper:Ve,createClassPrivateFieldInHelper:We,createAddDisposableResourceHelper:Gt,createDisposeResourcesHelper:Yt};function f(Ie){return Zn(u.createIdentifier(Ie),8196)}function p(Ie,st,St,It){t.requestEmitHelper(BZ);const ei=[];return ei.push(u.createArrayLiteralExpression(Ie,!0)),ei.push(st),St&&(ei.push(St),It&&ei.push(It)),u.createCallExpression(f("__decorate"),void 0,ei)}function E(Ie,st){return t.requestEmitHelper(wZ),u.createCallExpression(f("__metadata"),void 0,[u.createStringLiteral(Ie),st])}function v(Ie,st,St){return t.requestEmitHelper(TZ),Pt(u.createCallExpression(f("__param"),void 0,[u.createNumericLiteral(st+""),Ie]),St)}function b(Ie){const st=[u.createPropertyAssignment(u.createIdentifier("kind"),u.createStringLiteral("class")),u.createPropertyAssignment(u.createIdentifier("name"),Ie.name),u.createPropertyAssignment(u.createIdentifier("metadata"),Ie.metadata)];return u.createObjectLiteralExpression(st)}function B(Ie){const st=Ie.computed?u.createElementAccessExpression(u.createIdentifier("obj"),Ie.name):u.createPropertyAccessExpression(u.createIdentifier("obj"),Ie.name);return u.createPropertyAssignment("get",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj"))],void 0,void 0,st))}function k(Ie){const st=Ie.computed?u.createElementAccessExpression(u.createIdentifier("obj"),Ie.name):u.createPropertyAccessExpression(u.createIdentifier("obj"),Ie.name);return u.createPropertyAssignment("set",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj")),u.createParameterDeclaration(void 0,void 0,u.createIdentifier("value"))],void 0,void 0,u.createBlock([u.createExpressionStatement(u.createAssignment(st,u.createIdentifier("value")))])))}function T(Ie){const st=Ie.computed?Ie.name:at(Ie.name)?u.createStringLiteralFromNode(Ie.name):Ie.name;return u.createPropertyAssignment("has",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj"))],void 0,void 0,u.createBinaryExpression(st,103,u.createIdentifier("obj"))))}function M(Ie,st){const St=[];return St.push(T(Ie)),st.get&&St.push(B(Ie)),st.set&&St.push(k(Ie)),u.createObjectLiteralExpression(St)}function z(Ie){const st=[u.createPropertyAssignment(u.createIdentifier("kind"),u.createStringLiteral(Ie.kind)),u.createPropertyAssignment(u.createIdentifier("name"),Ie.name.computed?Ie.name.name:u.createStringLiteralFromNode(Ie.name.name)),u.createPropertyAssignment(u.createIdentifier("static"),Ie.static?u.createTrue():u.createFalse()),u.createPropertyAssignment(u.createIdentifier("private"),Ie.private?u.createTrue():u.createFalse()),u.createPropertyAssignment(u.createIdentifier("access"),M(Ie.name,Ie.access)),u.createPropertyAssignment(u.createIdentifier("metadata"),Ie.metadata)];return u.createObjectLiteralExpression(st)}function j(Ie){return Ie.kind==="class"?b(Ie):z(Ie)}function J(Ie,st,St,It,ei,ht){return t.requestEmitHelper(LZ),u.createCallExpression(f("__esDecorate"),void 0,[Ie??u.createNull(),st??u.createNull(),St,j(It),ei,ht])}function K(Ie,st,St){return t.requestEmitHelper(NZ),u.createCallExpression(f("__runInitializers"),void 0,St?[Ie,st,St]:[Ie,st])}function Y(Ie){return Os(t.getCompilerOptions())>=2?u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"assign"),void 0,Ie):(t.requestEmitHelper(PZ),u.createCallExpression(f("__assign"),void 0,Ie))}function oe(Ie){return t.requestEmitHelper(B7),u.createCallExpression(f("__await"),void 0,[Ie])}function se(Ie,st){return t.requestEmitHelper(B7),t.requestEmitHelper(MZ),(Ie.emitNode||(Ie.emitNode={})).flags|=1572864,u.createCallExpression(f("__asyncGenerator"),void 0,[st?u.createThis():u.createVoidZero(),u.createIdentifier("arguments"),Ie])}function ge(Ie){return t.requestEmitHelper(B7),t.requestEmitHelper(zZ),u.createCallExpression(f("__asyncDelegator"),void 0,[Ie])}function ae(Ie){return t.requestEmitHelper(IZ),u.createCallExpression(f("__asyncValues"),void 0,[Ie])}function Ce(Ie,st,St,It){t.requestEmitHelper(RZ);const ei=[];let ht=0;for(let Ut=0;Ut{let d="";for(let f=0;ft.name))}function jP(t,u){return Mo(t)&&at(t.expression)&&(bs(t.expression)&8192)!==0&&t.expression.escapedText===u}var fce,BZ,wZ,TZ,LZ,NZ,PZ,B7,MZ,zZ,IZ,RZ,OZ,jZ,VZ,HZ,KZ,WZ,GZ,JZ,$Z,xB,UZ,vV,qZ,ZZ,YZ,QZ,XZ,eY,tY,WYe,CV,bV,NLt=o({"src/compiler/factory/emitHelpers.ts"(){Bo(),fce=(t=>(t.Field="f",t.Method="m",t.Accessor="a",t))(fce||{}),BZ={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; - };`},FZ={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + };`},wZ={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); - };`},AZ={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + };`},TZ={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` var __param = (this && this.__param) || function (paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } - };`},SZ={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + };`},LZ={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) { function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; } var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value"; @@ -94,14 +94,14 @@ ${X.join(` } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; - };`},BZ={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + };`},NZ={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) { var useValue = arguments.length > 2; for (var i = 0; i < initializers.length; i++) { value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg); } return useValue ? value : void 0; - };`},wZ={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + };`},PZ={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { @@ -112,8 +112,8 @@ ${X.join(` return t; }; return __assign.apply(this, arguments); - };`},A7={name:"typescript:await",importName:"__await",scoped:!1,text:` - var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},TZ={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[A7],text:` + };`},B7={name:"typescript:await",importName:"__await",scoped:!1,text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},MZ={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[B7],text:` var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; @@ -125,19 +125,19 @@ ${X.join(` function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - };`},LZ={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[A7],text:` + };`},zZ={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[B7],text:` var __asyncDelegator = (this && this.__asyncDelegator) || function (o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; } - };`},NZ={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + };`},IZ={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` var __asyncValues = (this && this.__asyncValues) || function (o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - };`},PZ={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + };`},RZ={name:"typescript:rest",importName:"__rest",scoped:!1,text:` var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) @@ -148,7 +148,7 @@ ${X.join(` t[p[i]] = s[p[i]]; } return t; - };`},MZ={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + };`},OZ={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { @@ -157,7 +157,7 @@ ${X.join(` function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); - };`},zZ={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + };`},jZ={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || @@ -173,11 +173,11 @@ ${X.join(` function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - })();`},IZ={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + })();`},VZ={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; - };`},RZ={name:"typescript:read",importName:"__read",scoped:!1,text:` + };`},HZ={name:"typescript:read",importName:"__read",scoped:!1,text:` var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -193,7 +193,7 @@ ${X.join(` finally { if (e) throw e.error; } } return ar; - };`},OZ={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + };`},KZ={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { if (ar || !(i in from)) { @@ -202,14 +202,14 @@ ${X.join(` } } return to.concat(ar || Array.prototype.slice.call(from)); - };`},jZ={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + };`},WZ={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); - };`},VZ={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + };`},GZ={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` var __setFunctionName = (this && this.__setFunctionName) || function (f, name, prefix) { if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : ""; return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name }); - };`},HZ={name:"typescript:values",importName:"__values",scoped:!1,text:` + };`},JZ={name:"typescript:values",importName:"__values",scoped:!1,text:` var __values = (this && this.__values) || function(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); @@ -220,7 +220,7 @@ ${X.join(` } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - };`},KZ={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + };`},$Z={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` var __generator = (this && this.__generator) || function (thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; @@ -247,7 +247,7 @@ ${X.join(` } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } - };`},_B={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` + };`},xB={name:"typescript:commonjscreatebinding",importName:"__createBinding",scoped:!1,priority:1,text:` var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); @@ -258,40 +258,40 @@ ${X.join(` }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; - }));`},WZ={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + }));`},UZ={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; - });`},DV={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[_B,WZ],priority:2,text:` + });`},vV={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[xB,UZ],priority:2,text:` var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; - };`},GZ={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + };`},qZ={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; - };`},JZ={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[_B],priority:2,text:` + };`},ZZ={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[xB],priority:2,text:` var __exportStar = (this && this.__exportStar) || function(m, exports) { for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); - };`},$Z={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + };`},YZ={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it"); return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver); - };`},UZ={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + };`},QZ={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; - };`},qZ={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + };`},XZ={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) { if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object"); return typeof state === "function" ? receiver === state : state.has(receiver); - };`},ZZ={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + };`},eY={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) { if (value !== null && value !== void 0) { if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected."); @@ -311,7 +311,7 @@ ${X.join(` env.stack.push({ async: true }); } return value; - };`},YZ={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + };`},tY={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { @@ -336,73 +336,73 @@ ${X.join(` })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - });`},xV={name:"typescript:async-super",scoped:!0,text:cce` - const ${"_superIndex"} = name => super[name];`},vV={name:"typescript:advanced-async-super",scoped:!0,text:cce` + });`},CV={name:"typescript:async-super",scoped:!0,text:dce` + const ${"_superIndex"} = name => super[name];`},bV={name:"typescript:advanced-async-super",scoped:!0,text:dce` const ${"_superIndex"} = (function (geti, seti) { const cache = Object.create(null); return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } }); - })(name => super[name], (name, value) => super[name] = value);`}}});function Rf(t){return t.kind===9}function QZ(t){return t.kind===10}function ns(t){return t.kind===11}function S7(t){return t.kind===12}function fce(t){return t.kind===14}function B7(t){return t.kind===15}function DB(t){return t.kind===16}function $ke(t){return t.kind===17}function mce(t){return t.kind===18}function XZ(t){return t.kind===26}function Uke(t){return t.kind===28}function pce(t){return t.kind===40}function gce(t){return t.kind===41}function CV(t){return t.kind===42}function bV(t){return t.kind===54}function Kx(t){return t.kind===58}function qke(t){return t.kind===59}function eY(t){return t.kind===29}function Zke(t){return t.kind===39}function at(t){return t.kind===80}function Xr(t){return t.kind===81}function w7(t){return t.kind===95}function tY(t){return t.kind===90}function jP(t){return t.kind===134}function Yke(t){return t.kind===131}function Ece(t){return t.kind===135}function Qke(t){return t.kind===148}function T7(t){return t.kind===126}function Xke(t){return t.kind===128}function eFe(t){return t.kind===164}function tFe(t){return t.kind===129}function VP(t){return t.kind===108}function HP(t){return t.kind===102}function iFe(t){return t.kind===84}function xf(t){return t.kind===166}function Ls(t){return t.kind===167}function Al(t){return t.kind===168}function eo(t){return t.kind===169}function p1(t){return t.kind===170}function Pm(t){return t.kind===171}function bo(t){return t.kind===172}function i3(t){return t.kind===173}function cc(t){return t.kind===174}function Ml(t){return t.kind===175}function dc(t){return t.kind===176}function Mm(t){return t.kind===177}function Of(t){return t.kind===178}function xB(t){return t.kind===179}function yV(t){return t.kind===180}function pk(t){return t.kind===181}function iY(t){return t.kind===182}function Y4(t){return t.kind===183}function n3(t){return t.kind===184}function KP(t){return t.kind===185}function vB(t){return t.kind===186}function hm(t){return t.kind===187}function nY(t){return t.kind===188}function CB(t){return t.kind===189}function WP(t){return t.kind===202}function _ce(t){return t.kind===190}function Dce(t){return t.kind===191}function Lv(t){return t.kind===192}function bB(t){return t.kind===193}function yB(t){return t.kind===194}function L7(t){return t.kind===195}function N7(t){return t.kind===196}function uY(t){return t.kind===197}function P7(t){return t.kind===198}function M7(t){return t.kind===199}function GP(t){return t.kind===200}function Nv(t){return t.kind===201}function iD(t){return t.kind===205}function nFe(t){return t.kind===204}function HYe(t){return t.kind===203}function Mp(t){return t.kind===206}function gk(t){return t.kind===207}function Rs(t){return t.kind===208}function _h(t){return t.kind===209}function Cs(t){return t.kind===210}function Iu(t){return t.kind===211}function W0(t){return t.kind===212}function No(t){return t.kind===213}function I2(t){return t.kind===214}function Ek(t){return t.kind===215}function uFe(t){return t.kind===216}function vf(t){return t.kind===217}function F0(t){return t.kind===218}function G0(t){return t.kind===219}function rFe(t){return t.kind===220}function kB(t){return t.kind===221}function z7(t){return t.kind===222}function Wx(t){return t.kind===223}function Pv(t){return t.kind===224}function xce(t){return t.kind===225}function tu(t){return t.kind===226}function FB(t){return t.kind===227}function rY(t){return t.kind===228}function aY(t){return t.kind===229}function nE(t){return t.kind===230}function Qd(t){return t.kind===231}function kd(t){return t.kind===232}function l5(t){return t.kind===233}function kV(t){return t.kind===234}function aFe(t){return t.kind===238}function I7(t){return t.kind===235}function JP(t){return t.kind===236}function KYe(t){return t.kind===237}function oY(t){return t.kind===360}function $P(t){return t.kind===361}function UP(t){return t.kind===239}function oFe(t){return t.kind===240}function fo(t){return t.kind===241}function Gl(t){return t.kind===243}function vce(t){return t.kind===242}function Id(t){return t.kind===244}function _k(t){return t.kind===245}function WYe(t){return t.kind===246}function GYe(t){return t.kind===247}function Dk(t){return t.kind===248}function sY(t){return t.kind===249}function FV(t){return t.kind===250}function JYe(t){return t.kind===251}function $Ye(t){return t.kind===252}function zp(t){return t.kind===253}function sFe(t){return t.kind===254}function AV(t){return t.kind===255}function R2(t){return t.kind===256}function Cce(t){return t.kind===257}function xk(t){return t.kind===258}function UYe(t){return t.kind===259}function ua(t){return t.kind===260}function Fd(t){return t.kind===261}function Xc(t){return t.kind===262}function Kc(t){return t.kind===263}function Dh(t){return t.kind===264}function Ip(t){return t.kind===265}function Mv(t){return t.kind===266}function Ec(t){return t.kind===267}function uE(t){return t.kind===268}function qP(t){return t.kind===269}function SV(t){return t.kind===270}function g1(t){return t.kind===271}function Ad(t){return t.kind===272}function i_(t){return t.kind===273}function qYe(t){return t.kind===302}function lFe(t){return t.kind===300}function ZYe(t){return t.kind===301}function lY(t){return t.kind===300}function cFe(t){return t.kind===301}function Gx(t){return t.kind===274}function n_(t){return t.kind===280}function nD(t){return t.kind===275}function Cf(t){return t.kind===276}function ec(t){return t.kind===277}function Wc(t){return t.kind===278}function Q4(t){return t.kind===279}function X1(t){return t.kind===281}function YYe(t){return t.kind===282}function bce(t){return t.kind===359}function R7(t){return t.kind===362}function u_(t){return t.kind===283}function u3(t){return t.kind===284}function vk(t){return t.kind===285}function rE(t){return t.kind===286}function O2(t){return t.kind===287}function j2(t){return t.kind===288}function O7(t){return t.kind===289}function dFe(t){return t.kind===290}function aE(t){return t.kind===291}function V2(t){return t.kind===292}function j7(t){return t.kind===293}function ZP(t){return t.kind===294}function mg(t){return t.kind===295}function AB(t){return t.kind===296}function BV(t){return t.kind===297}function fm(t){return t.kind===298}function H2(t){return t.kind===299}function Gc(t){return t.kind===303}function mm(t){return t.kind===304}function c5(t){return t.kind===305}function K2(t){return t.kind===306}function hFe(t){return t.kind===308}function ca(t){return t.kind===312}function yce(t){return t.kind===313}function Ck(t){return t.kind===314}function bk(t){return t.kind===316}function YP(t){return t.kind===317}function zv(t){return t.kind===318}function fFe(t){return t.kind===331}function mFe(t){return t.kind===332}function QYe(t){return t.kind===333}function pFe(t){return t.kind===319}function gFe(t){return t.kind===320}function SB(t){return t.kind===321}function cY(t){return t.kind===322}function kce(t){return t.kind===323}function BB(t){return t.kind===324}function dY(t){return t.kind===325}function XYe(t){return t.kind===326}function Rp(t){return t.kind===327}function V7(t){return t.kind===329}function Iv(t){return t.kind===330}function wB(t){return t.kind===335}function eQe(t){return t.kind===337}function EFe(t){return t.kind===339}function Fce(t){return t.kind===345}function Ace(t){return t.kind===340}function Sce(t){return t.kind===341}function Bce(t){return t.kind===342}function wce(t){return t.kind===343}function hY(t){return t.kind===344}function TB(t){return t.kind===346}function Tce(t){return t.kind===338}function tQe(t){return t.kind===354}function wV(t){return t.kind===347}function pg(t){return t.kind===348}function fY(t){return t.kind===349}function _Fe(t){return t.kind===350}function QP(t){return t.kind===351}function gg(t){return t.kind===352}function LB(t){return t.kind===353}function iQe(t){return t.kind===334}function DFe(t){return t.kind===355}function Lce(t){return t.kind===336}function mY(t){return t.kind===357}function nQe(t){return t.kind===356}function NB(t){return t.kind===358}var TLt=o({"src/compiler/factory/nodeTests.ts"(){Ao()}});function TV(t){return t.createExportDeclaration(void 0,!1,t.createNamedExports([]),void 0)}function yk(t,u,s,d){if(Ls(s))return Pt(t.createElementAccessExpression(u,s.expression),d);{const f=Pt(G_(s)?t.createPropertyAccessExpression(u,s):t.createElementAccessExpression(u,s),s);return t_(f,128),f}}function xFe(t,u){const s=r_.createIdentifier(t||"React");return bs(s,Ua(u)),s}function vFe(t,u,s){if(xf(u)){const d=vFe(t,u.left,s),f=t.createIdentifier(mu(u.right));return f.escapedText=u.right.escapedText,t.createPropertyAccessExpression(d,f)}else return xFe(mu(u),s)}function Nce(t,u,s,d){return u?vFe(t,u,d):t.createPropertyAccessExpression(xFe(s,d),"createElement")}function LLt(t,u,s,d){return u?vFe(t,u,d):t.createPropertyAccessExpression(xFe(s,d),"Fragment")}function CFe(t,u,s,d,f,p){const E=[s];if(d&&E.push(d),f&&f.length>0)if(d||E.push(t.createNull()),f.length>1)for(const v of f)xh(v),E.push(v);else E.push(f[0]);return Pt(t.createCallExpression(u,void 0,E),p)}function bFe(t,u,s,d,f,p,E){const b=[LLt(t,s,d,p),t.createNull()];if(f&&f.length>0)if(f.length>1)for(const B of f)xh(B),b.push(B);else b.push(f[0]);return Pt(t.createCallExpression(Nce(t,u,d,p),void 0,b),E)}function Pce(t,u,s){if(Fd(u)){const d=Mn(u.declarations),f=t.updateVariableDeclaration(d,d.name,void 0,void 0,s);return Pt(t.createVariableStatement(void 0,t.updateVariableDeclarationList(u,[f])),u)}else{const d=Pt(t.createAssignment(u,s),u);return Pt(t.createExpressionStatement(d),u)}}function uQe(t,u,s){return fo(u)?t.updateBlock(u,Pt(t.createNodeArray([s,...u.statements]),u.statements)):t.createBlock(t.createNodeArray([u,s]),!0)}function LV(t,u){if(xf(u)){const s=LV(t,u.left),d=bs(Pt(t.cloneNode(u.right),u.right),u.right.parent);return Pt(t.createPropertyAccessExpression(s,d),u)}else return bs(Pt(t.cloneNode(u),u),u.parent)}function Mce(t,u){return at(u)?t.createStringLiteralFromNode(u):Ls(u)?bs(Pt(t.cloneNode(u.expression),u.expression),u.expression.parent):bs(Pt(t.cloneNode(u),u),u.parent)}function NLt(t,u,s,d,f){const{firstAccessor:p,getAccessor:E,setAccessor:v}=lk(u,s);if(s===p)return Pt(t.createObjectDefinePropertyCall(d,Mce(t,s.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:E&&Pt(lu(t.createFunctionExpression(h2(E),void 0,void 0,void 0,E.parameters,void 0,E.body),E),E),set:v&&Pt(lu(t.createFunctionExpression(h2(v),void 0,void 0,void 0,v.parameters,void 0,v.body),v),v)},!f)),p)}function PLt(t,u,s){return lu(Pt(t.createAssignment(yk(t,s,u.name,u.name),u.initializer),u),u)}function MLt(t,u,s){return lu(Pt(t.createAssignment(yk(t,s,u.name,u.name),t.cloneNode(u.name)),u),u)}function zLt(t,u,s){return lu(Pt(t.createAssignment(yk(t,s,u.name,u.name),lu(Pt(t.createFunctionExpression(h2(u),u.asteriskToken,void 0,void 0,u.parameters,void 0,u.body),u),u)),u),u)}function yFe(t,u,s,d){switch(s.name&&Xr(s.name)&&H.failBadSyntaxKind(s.name,"Private identifiers are not allowed in object literals."),s.kind){case 177:case 178:return NLt(t,u.properties,s,d,!!u.multiLine);case 303:return PLt(t,s,d);case 304:return MLt(t,s,d);case 174:return zLt(t,s,d)}}function pY(t,u,s,d,f){const p=u.operator;H.assert(p===46||p===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const E=t.createTempVariable(d);s=t.createAssignment(E,s),Pt(s,u.operand);let v=Pv(u)?t.createPrefixUnaryExpression(p,E):t.createPostfixUnaryExpression(E,p);return Pt(v,u),f&&(v=t.createAssignment(f,v),Pt(v,u)),s=t.createComma(s,v),Pt(s,u),xce(u)&&(s=t.createComma(s,E),Pt(s,u)),s}function zce(t){return(vs(t)&65536)!==0}function uD(t){return(vs(t)&32768)!==0}function gY(t){return(vs(t)&16384)!==0}function rQe(t){return ns(t.expression)&&t.expression.text==="use strict"}function Ice(t){for(const u of t)if(Lp(u)){if(rQe(u))return u}else break}function kFe(t){const u=Hi(t);return u!==void 0&&Lp(u)&&rQe(u)}function NV(t){return t.kind===226&&t.operatorToken.kind===28}function XP(t){return NV(t)||$P(t)}function eM(t){return vf(t)&&eu(t)&&!!_v(t)}function EY(t){const u=Dv(t);return H.assertIsDefined(u),u}function _Y(t,u=15){switch(t.kind){case 217:return u&16&&eM(t)?!1:(u&1)!==0;case 216:case 234:case 233:case 238:return(u&2)!==0;case 235:return(u&4)!==0;case 360:return(u&8)!==0}return!1}function _c(t,u=15){for(;_Y(t,u);)t=t.expression;return t}function FFe(t,u=15){let s=t.parent;for(;_Y(s,u);)s=s.parent,H.assert(s);return s}function aQe(t){return _c(t,6)}function xh(t){return CZ(t,!0)}function PV(t){const u=Kl(t,ca),s=u&&u.emitNode;return s&&s.externalHelpersModuleName}function AFe(t){const u=Kl(t,ca),s=u&&u.emitNode;return!!s&&(!!s.externalHelpersModuleName||!!s.externalHelpers)}function Rce(t,u,s,d,f,p,E){if(d.importHelpers&&a7(s,d)){let v;const b=f1(d);if(b>=5&&b<=99||s.impliedNodeFormat===99){const B=yZ(s);if(B){const k=[];for(const T of B)if(!T.scoped){const M=T.importName;M&&va(k,M)}if(qe(k)){k.sort(ch),v=t.createNamedImports(Kt(k,z=>UU(s,z)?t.createImportSpecifier(!1,void 0,t.createIdentifier(z)):t.createImportSpecifier(!1,t.createIdentifier(z),u.getUnscopedHelperName(z))));const T=Kl(s,ca),M=N1(T);M.externalHelpers=!0}}}else{const B=SFe(t,s,d,f,p||E);B&&(v=t.createNamespaceImport(B))}if(v){const B=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,v),t.createStringLiteral(Vx),void 0);return y7(B,2),B}}}function SFe(t,u,s,d,f){if(s.importHelpers&&a7(u,s)){const p=PV(u);if(p)return p;const E=f1(s);let v=(d||XE(s)&&f)&&E!==4&&(E<5||u.impliedNodeFormat===1);if(!v){const b=yZ(u);if(b){for(const B of b)if(!B.scoped){v=!0;break}}}if(v){const b=Kl(u,ca),B=N1(b);return B.externalHelpersModuleName||(B.externalHelpersModuleName=t.createUniqueName(Vx))}}}function PB(t,u,s){const d=Z8(u);if(d&&!s7(u)&&!ZU(u)){const f=d.name;return ul(f)?f:t.createIdentifier(E2(s,f)||mu(f))}if(u.kind===272&&u.importClause||u.kind===278&&u.moduleSpecifier)return t.getGeneratedNameForNode(u)}function H7(t,u,s,d,f,p){const E=q8(u);if(E&&ns(E))return RLt(u,d,t,f,p)||ILt(t,E,s)||t.cloneNode(E)}function ILt(t,u,s){const d=s.renamedDependencies&&s.renamedDependencies.get(u.text);return d?t.createStringLiteral(d):void 0}function MV(t,u,s,d){if(u){if(u.moduleName)return t.createStringLiteral(u.moduleName);if(!u.isDeclarationFile&&b0(d))return t.createStringLiteral(ele(s,u.fileName))}}function RLt(t,u,s,d,f){return MV(s,d.getExternalModuleFileFromDeclaration(t),u,f)}function zV(t){if(GO(t))return t.initializer;if(Gc(t)){const u=t.initializer;return od(u,!0)?u.right:void 0}if(mm(t))return t.objectAssignmentInitializer;if(od(t,!0))return t.right;if(nE(t))return zV(t.expression)}function Jx(t){if(GO(t))return t.name;if(q3(t)){switch(t.kind){case 303:return Jx(t.initializer);case 304:return t.name;case 305:return Jx(t.expression)}return}return od(t,!0)?Jx(t.left):nE(t)?Jx(t.expression):t}function DY(t){switch(t.kind){case 169:case 208:return t.dotDotDotToken;case 230:case 305:return t}}function Oce(t){const u=xY(t);return H.assert(!!u||c5(t),"Invalid property name for binding element."),u}function xY(t){switch(t.kind){case 208:if(t.propertyName){const s=t.propertyName;return Xr(s)?H.failBadSyntaxKind(s):Ls(s)&&oQe(s.expression)?s.expression:s}break;case 303:if(t.name){const s=t.name;return Xr(s)?H.failBadSyntaxKind(s):Ls(s)&&oQe(s.expression)?s.expression:s}break;case 305:return t.name&&Xr(t.name)?H.failBadSyntaxKind(t.name):t.name}const u=Jx(t);if(u&&Ac(u))return u}function oQe(t){const u=t.kind;return u===11||u===9}function MB(t){switch(t.kind){case 206:case 207:case 209:return t.elements;case 210:return t.properties}}function jce(t){if(t){let u=t;for(;;){if(at(u)||!u.body)return at(u)?u:u.name;u=u.body}}}function sQe(t){const u=t.kind;return u===176||u===178}function BFe(t){const u=t.kind;return u===176||u===177||u===178}function Vce(t){const u=t.kind;return u===303||u===304||u===262||u===176||u===181||u===175||u===282||u===243||u===264||u===265||u===266||u===267||u===271||u===272||u===270||u===278||u===277}function wFe(t){const u=t.kind;return u===175||u===303||u===304||u===282||u===270}function TFe(t){return Kx(t)||bV(t)}function LFe(t){return at(t)||uY(t)}function NFe(t){return Qke(t)||pce(t)||gce(t)}function PFe(t){return Kx(t)||pce(t)||gce(t)}function MFe(t){return at(t)||ns(t)}function lQe(t){const u=t.kind;return u===106||u===112||u===97||m2(t)||Pv(t)}function OLt(t){return t===43}function jLt(t){return t===42||t===44||t===45}function VLt(t){return OLt(t)||jLt(t)}function HLt(t){return t===40||t===41}function KLt(t){return HLt(t)||VLt(t)}function WLt(t){return t===48||t===49||t===50}function Hce(t){return WLt(t)||KLt(t)}function GLt(t){return t===30||t===33||t===32||t===34||t===104||t===103}function JLt(t){return GLt(t)||Hce(t)}function $Lt(t){return t===35||t===37||t===36||t===38}function ULt(t){return $Lt(t)||JLt(t)}function qLt(t){return t===51||t===52||t===53}function ZLt(t){return qLt(t)||ULt(t)}function YLt(t){return t===56||t===57}function QLt(t){return YLt(t)||ZLt(t)}function XLt(t){return t===61||QLt(t)||n5(t)}function eNt(t){return XLt(t)||t===28}function zFe(t){return eNt(t.kind)}function vY(t,u,s,d,f,p){const E=new hQe(t,u,s,d,f,p);return v;function v(b,B){const k={value:void 0},T=[Wce.enter],M=[b],z=[void 0];let j=0;for(;T[j]!==Wce.done;)j=T[j](E,j,T,M,z,k,B);return H.assertEqual(j,0),k.value}}function cQe(t){return t===95||t===90}function IV(t){const u=t.kind;return cQe(u)}function dQe(t){const u=t.kind;return QD(u)&&!cQe(u)}function IFe(t,u){if(u!==void 0)return u.length===0?u:Pt(t.createNodeArray([],u.hasTrailingComma),u)}function RV(t){var u;const s=t.emitNode.autoGenerate;if(s.flags&4){const d=s.id;let f=t,p=f.original;for(;p;){f=p;const E=(u=f.emitNode)==null?void 0:u.autoGenerate;if(G_(f)&&(E===void 0||E.flags&4&&E.id!==d))break;p=f.original}return f}return t}function zB(t,u){return typeof t=="object"?Rv(!1,t.prefix,t.node,t.suffix,u):typeof t=="string"?t.length>0&&t.charCodeAt(0)===35?t.slice(1):t:""}function tNt(t,u){return typeof t=="string"?t:iNt(t,H.checkDefined(u))}function iNt(t,u){return Jy(t)?u(t).slice(1):ul(t)?u(t):Xr(t)?t.escapedText.slice(1):mu(t)}function Rv(t,u,s,d,f){return u=zB(u,f),d=zB(d,f),s=tNt(s,f),`${t?"#":""}${u}${s}${d}`}function Kce(t,u,s,d){return t.updatePropertyDeclaration(u,s,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage"),void 0,void 0,d)}function RFe(t,u,s,d,f=t.createThis()){return t.createGetAccessorDeclaration(s,d,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(f,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage")))]))}function OFe(t,u,s,d,f=t.createThis()){return t.createSetAccessorDeclaration(s,d,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(f,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage")),t.createIdentifier("value")))]))}function CY(t){let u=t.expression;for(;;){if(u=_c(u),$P(u)){u=Cr(u.elements);continue}if(NV(u)){u=u.right;continue}if(od(u,!0)&&ul(u.left))return u;break}}function nNt(t){return vf(t)&&al(t)&&!t.emitNode}function bY(t,u){if(nNt(t))bY(t.expression,u);else if(NV(t))bY(t.left,u),bY(t.right,u);else if($P(t))for(const s of t.elements)bY(s,u);else u.push(t)}function jFe(t){const u=[];return bY(t,u),u}function OV(t){if(t.transformFlags&65536)return!0;if(t.transformFlags&128)for(const u of MB(t)){const s=Jx(u);if(s&&HN(s)&&(s.transformFlags&65536||s.transformFlags&128&&OV(s)))return!0}return!1}var Wce,hQe,uNt=o({"src/compiler/factory/utilities.ts"(){Ao(),(t=>{function u(k,T,M,z,j,J,K){const Y=T>0?j[T-1]:void 0;return H.assertEqual(M[T],u),j[T]=k.onEnter(z[T],Y,K),M[T]=v(k,u),T}t.enter=u;function s(k,T,M,z,j,J,K){H.assertEqual(M[T],s),H.assertIsDefined(k.onLeft),M[T]=v(k,s);const Y=k.onLeft(z[T].left,j[T],z[T]);return Y?(B(T,z,Y),b(T,M,z,j,Y)):T}t.left=s;function d(k,T,M,z,j,J,K){return H.assertEqual(M[T],d),H.assertIsDefined(k.onOperator),M[T]=v(k,d),k.onOperator(z[T].operatorToken,j[T],z[T]),T}t.operator=d;function f(k,T,M,z,j,J,K){H.assertEqual(M[T],f),H.assertIsDefined(k.onRight),M[T]=v(k,f);const Y=k.onRight(z[T].right,j[T],z[T]);return Y?(B(T,z,Y),b(T,M,z,j,Y)):T}t.right=f;function p(k,T,M,z,j,J,K){H.assertEqual(M[T],p),M[T]=v(k,p);const Y=k.onExit(z[T],j[T]);if(T>0){if(T--,k.foldState){const oe=M[T]===p?"right":"left";j[T]=k.foldState(j[T],Y,oe)}}else J.value=Y;return T}t.exit=p;function E(k,T,M,z,j,J,K){return H.assertEqual(M[T],E),T}t.done=E;function v(k,T){switch(T){case u:if(k.onLeft)return s;case s:if(k.onOperator)return d;case d:if(k.onRight)return f;case f:return p;case p:return E;case E:return E;default:H.fail("Invalid state")}}t.nextState=v;function b(k,T,M,z,j){return k++,T[k]=u,M[k]=j,z[k]=void 0,k}function B(k,T,M){if(H.shouldAssert(2))for(;k>=0;)H.assert(T[k]!==M,"Circular traversal detected."),k--}})(Wce||(Wce={})),hQe=class{constructor(t,u,s,d,f,p){this.onEnter=t,this.onLeft=u,this.onOperator=s,this.onRight=d,this.onExit=f,this.foldState=p}}}});function Pt(t,u){return u?e_(t,u.pos,u.end):t}function Op(t){const u=t.kind;return u===168||u===169||u===171||u===172||u===173||u===174||u===176||u===177||u===178||u===181||u===185||u===218||u===219||u===231||u===243||u===262||u===263||u===264||u===265||u===266||u===267||u===271||u===272||u===277||u===278}function kk(t){const u=t.kind;return u===169||u===172||u===174||u===177||u===178||u===231||u===263}var rNt=o({"src/compiler/factory/utilitiesPublic.ts"(){Ao()}});function Bi(t,u){return u&&t(u)}function Gr(t,u,s){if(s){if(u)return u(s);for(const d of s){const f=t(d);if(f)return f}}}function Gce(t,u){return t.charCodeAt(u+1)===42&&t.charCodeAt(u+2)===42&&t.charCodeAt(u+3)!==47}function jV(t){return L(t.statements,aNt)||oNt(t)}function aNt(t){return Op(t)&&sNt(t,95)||g1(t)&&u_(t.moduleReference)||Ad(t)||ec(t)||Wc(t)?t:void 0}function oNt(t){return t.flags&8388608?fQe(t):void 0}function fQe(t){return lNt(t)?t:ro(t,fQe)}function sNt(t,u){return qe(t.modifiers,s=>s.kind===u)}function lNt(t){return JP(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function mQe(t,u,s){return Gr(u,s,t.typeParameters)||Gr(u,s,t.parameters)||Bi(u,t.type)}function pQe(t,u,s){return Gr(u,s,t.types)}function gQe(t,u,s){return Bi(u,t.type)}function EQe(t,u,s){return Gr(u,s,t.elements)}function _Qe(t,u,s){return Bi(u,t.expression)||Bi(u,t.questionDotToken)||Gr(u,s,t.typeArguments)||Gr(u,s,t.arguments)}function DQe(t,u,s){return Gr(u,s,t.statements)}function xQe(t,u,s){return Bi(u,t.label)}function vQe(t,u,s){return Gr(u,s,t.modifiers)||Bi(u,t.name)||Gr(u,s,t.typeParameters)||Gr(u,s,t.heritageClauses)||Gr(u,s,t.members)}function CQe(t,u,s){return Gr(u,s,t.elements)}function bQe(t,u,s){return Bi(u,t.propertyName)||Bi(u,t.name)}function yQe(t,u,s){return Bi(u,t.tagName)||Gr(u,s,t.typeArguments)||Bi(u,t.attributes)}function tM(t,u,s){return Bi(u,t.type)}function kQe(t,u,s){return Bi(u,t.tagName)||(t.isNameFirst?Bi(u,t.name)||Bi(u,t.typeExpression):Bi(u,t.typeExpression)||Bi(u,t.name))||(typeof t.comment=="string"?void 0:Gr(u,s,t.comment))}function iM(t,u,s){return Bi(u,t.tagName)||Bi(u,t.typeExpression)||(typeof t.comment=="string"?void 0:Gr(u,s,t.comment))}function VFe(t,u,s){return Bi(u,t.name)}function IB(t,u,s){return Bi(u,t.tagName)||(typeof t.comment=="string"?void 0:Gr(u,s,t.comment))}function cNt(t,u,s){return Bi(u,t.expression)}function ro(t,u,s){if(t===void 0||t.kind<=165)return;const d=MQe[t.kind];return d===void 0?void 0:d(t,u,s)}function nM(t,u,s){const d=FQe(t),f=[];for(;f.length=0;--v)d.push(p[v]),f.push(E)}else{const v=u(p,E);if(v){if(v==="skip")continue;return v}if(p.kind>=166)for(const b of FQe(p))d.push(b),f.push(p)}}}function FQe(t){const u=[];return ro(t,s,s),u;function s(d){u.unshift(d)}}function AQe(t){t.externalModuleIndicator=jV(t)}function VV(t,u,s,d=!1,f){var p,E,v,b;(p=$n)==null||p.push($n.Phase.Parse,"createSourceFile",{path:t},!0),il("beforeParse");let B;(E=dh)==null||E.logStartParseSourceFile(t);const{languageVersion:k,setExternalModuleIndicator:T,impliedNodeFormat:M,jsDocParsingMode:z}=typeof s=="object"?s:{languageVersion:s};if(k===100)B=jv.parseSourceFile(t,u,k,void 0,d,6,Ms,z);else{const j=M===void 0?T:J=>(J.impliedNodeFormat=M,(T||AQe)(J));B=jv.parseSourceFile(t,u,k,void 0,d,f,j,z)}return(v=dh)==null||v.logStopParseSourceFile(),il("afterParse"),wm("Parse","beforeParse","afterParse"),(b=$n)==null||b.pop(),B}function K7(t,u){return jv.parseIsolatedEntityName(t,u)}function HV(t,u){return jv.parseJsonText(t,u)}function Bc(t){return t.externalModuleIndicator!==void 0}function Jce(t,u,s,d=!1){const f=Zce.updateSourceFile(t,u,s,d);return f.flags|=t.flags&12582912,f}function HFe(t,u,s){const d=jv.JSDocParser.parseIsolatedJSDocComment(t,u,s);return d&&d.jsDoc&&jv.fixupParentReferences(d.jsDoc),d}function SQe(t,u,s){return jv.JSDocParser.parseJSDocTypeExpressionForTests(t,u,s)}function Xd(t){return Oc(t,lV)||Pl(t,".ts")&&Fc(t).includes(".d.")}function dNt(t,u,s,d){if(t){if(t==="import")return 99;if(t==="require")return 1;d(u,s-u,F.resolution_mode_should_be_either_require_or_import)}}function $ce(t,u){const s=[];for(const d of K_(u,0)||_t){const f=u.substring(d.pos,d.end);fNt(s,d,f)}t.pragmas=new Map;for(const d of s){if(t.pragmas.has(d.name)){const f=t.pragmas.get(d.name);f instanceof Array?f.push(d.args):t.pragmas.set(d.name,[f,d.args]);continue}t.pragmas.set(d.name,d.args)}}function Uce(t,u){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((s,d)=>{switch(d){case"reference":{const f=t.referencedFiles,p=t.typeReferenceDirectives,E=t.libReferenceDirectives;L(qA(s),v=>{const{types:b,lib:B,path:k,["resolution-mode"]:T}=v.arguments;if(v.arguments["no-default-lib"])t.hasNoDefaultLib=!0;else if(b){const M=dNt(T,b.pos,b.end,u);p.push({pos:b.pos,end:b.end,fileName:b.value,...M?{resolutionMode:M}:{}})}else B?E.push({pos:B.pos,end:B.end,fileName:B.value}):k?f.push({pos:k.pos,end:k.end,fileName:k.value}):u(v.range.pos,v.range.end-v.range.pos,F.Invalid_reference_directive_syntax)});break}case"amd-dependency":{t.amdDependencies=Kt(qA(s),f=>({name:f.arguments.name,path:f.arguments.path}));break}case"amd-module":{if(s instanceof Array)for(const f of s)t.moduleName&&u(f.range.pos,f.range.end-f.range.pos,F.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=f.arguments.name;else t.moduleName=s.arguments.name;break}case"ts-nocheck":case"ts-check":{L(qA(s),f=>{(!t.checkJsDirective||f.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:d==="ts-check",end:f.range.end,pos:f.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:H.fail("Unhandled pragma kind")}})}function hNt(t){if(Yce.has(t))return Yce.get(t);const u=new RegExp(`(\\s${t}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Yce.set(t,u),u}function fNt(t,u,s){const d=u.kind===2&&zQe.exec(s);if(d){const p=d[1].toLowerCase(),E=xO[p];if(!E||!(E.kind&1))return;if(E.args){const v={};for(const b of E.args){const k=hNt(b.name).exec(s);if(!k&&!b.optional)return;if(k){const T=k[2]||k[3];if(b.captureSpan){const M=u.pos+k.index+k[1].length+1;v[b.name]={value:T,pos:M,end:M+T.length}}else v[b.name]=T}}t.push({name:p,args:{arguments:v,range:u}})}else t.push({name:p,args:{arguments:{},range:u}});return}const f=u.kind===2&&IQe.exec(s);if(f)return BQe(t,u,2,f);if(u.kind===3){const p=/@(\S+)(\s+.*)?$/gim;let E;for(;E=p.exec(s);)BQe(t,u,4,E)}}function BQe(t,u,s,d){if(!d)return;const f=d[1].toLowerCase(),p=xO[f];if(!p||!(p.kind&s))return;const E=d[2],v=mNt(p,E);v!=="fail"&&t.push({name:f,args:{arguments:v,range:u}})}function mNt(t,u){if(!u)return{};if(!t.args)return{};const s=u.trim().split(/\s+/),d={};for(let f=0;fnew(PQe||(PQe=Yd.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(LQe||(LQe=Yd.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(NQe||(NQe=Yd.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(TQe||(TQe=Yd.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(wQe||(wQe=Yd.getNodeConstructor()))(t,-1,-1)},r_=hV(1,qce),MQe={166:function(u,s,d){return Bi(s,u.left)||Bi(s,u.right)},168:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.constraint)||Bi(s,u.default)||Bi(s,u.expression)},304:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.exclamationToken)||Bi(s,u.equalsToken)||Bi(s,u.objectAssignmentInitializer)},305:function(u,s,d){return Bi(s,u.expression)},169:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.dotDotDotToken)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.type)||Bi(s,u.initializer)},172:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.exclamationToken)||Bi(s,u.type)||Bi(s,u.initializer)},171:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.type)||Bi(s,u.initializer)},303:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.exclamationToken)||Bi(s,u.initializer)},260:function(u,s,d){return Bi(s,u.name)||Bi(s,u.exclamationToken)||Bi(s,u.type)||Bi(s,u.initializer)},208:function(u,s,d){return Bi(s,u.dotDotDotToken)||Bi(s,u.propertyName)||Bi(s,u.name)||Bi(s,u.initializer)},181:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)},185:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)},184:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)},179:mQe,180:mQe,174:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.asteriskToken)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.exclamationToken)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},173:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)},176:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},177:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},178:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},262:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.asteriskToken)||Bi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},218:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.asteriskToken)||Bi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},219:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.equalsGreaterThanToken)||Bi(s,u.body)},175:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.body)},183:function(u,s,d){return Bi(s,u.typeName)||Gr(s,d,u.typeArguments)},182:function(u,s,d){return Bi(s,u.assertsModifier)||Bi(s,u.parameterName)||Bi(s,u.type)},186:function(u,s,d){return Bi(s,u.exprName)||Gr(s,d,u.typeArguments)},187:function(u,s,d){return Gr(s,d,u.members)},188:function(u,s,d){return Bi(s,u.elementType)},189:function(u,s,d){return Gr(s,d,u.elements)},192:pQe,193:pQe,194:function(u,s,d){return Bi(s,u.checkType)||Bi(s,u.extendsType)||Bi(s,u.trueType)||Bi(s,u.falseType)},195:function(u,s,d){return Bi(s,u.typeParameter)},205:function(u,s,d){return Bi(s,u.argument)||Bi(s,u.attributes)||Bi(s,u.qualifier)||Gr(s,d,u.typeArguments)},302:function(u,s,d){return Bi(s,u.assertClause)},196:gQe,198:gQe,199:function(u,s,d){return Bi(s,u.objectType)||Bi(s,u.indexType)},200:function(u,s,d){return Bi(s,u.readonlyToken)||Bi(s,u.typeParameter)||Bi(s,u.nameType)||Bi(s,u.questionToken)||Bi(s,u.type)||Gr(s,d,u.members)},201:function(u,s,d){return Bi(s,u.literal)},202:function(u,s,d){return Bi(s,u.dotDotDotToken)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.type)},206:EQe,207:EQe,209:function(u,s,d){return Gr(s,d,u.elements)},210:function(u,s,d){return Gr(s,d,u.properties)},211:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.questionDotToken)||Bi(s,u.name)},212:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.questionDotToken)||Bi(s,u.argumentExpression)},213:_Qe,214:_Qe,215:function(u,s,d){return Bi(s,u.tag)||Bi(s,u.questionDotToken)||Gr(s,d,u.typeArguments)||Bi(s,u.template)},216:function(u,s,d){return Bi(s,u.type)||Bi(s,u.expression)},217:function(u,s,d){return Bi(s,u.expression)},220:function(u,s,d){return Bi(s,u.expression)},221:function(u,s,d){return Bi(s,u.expression)},222:function(u,s,d){return Bi(s,u.expression)},224:function(u,s,d){return Bi(s,u.operand)},229:function(u,s,d){return Bi(s,u.asteriskToken)||Bi(s,u.expression)},223:function(u,s,d){return Bi(s,u.expression)},225:function(u,s,d){return Bi(s,u.operand)},226:function(u,s,d){return Bi(s,u.left)||Bi(s,u.operatorToken)||Bi(s,u.right)},234:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.type)},235:function(u,s,d){return Bi(s,u.expression)},238:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.type)},236:function(u,s,d){return Bi(s,u.name)},227:function(u,s,d){return Bi(s,u.condition)||Bi(s,u.questionToken)||Bi(s,u.whenTrue)||Bi(s,u.colonToken)||Bi(s,u.whenFalse)},230:function(u,s,d){return Bi(s,u.expression)},241:DQe,268:DQe,312:function(u,s,d){return Gr(s,d,u.statements)||Bi(s,u.endOfFileToken)},243:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.declarationList)},261:function(u,s,d){return Gr(s,d,u.declarations)},244:function(u,s,d){return Bi(s,u.expression)},245:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.thenStatement)||Bi(s,u.elseStatement)},246:function(u,s,d){return Bi(s,u.statement)||Bi(s,u.expression)},247:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.statement)},248:function(u,s,d){return Bi(s,u.initializer)||Bi(s,u.condition)||Bi(s,u.incrementor)||Bi(s,u.statement)},249:function(u,s,d){return Bi(s,u.initializer)||Bi(s,u.expression)||Bi(s,u.statement)},250:function(u,s,d){return Bi(s,u.awaitModifier)||Bi(s,u.initializer)||Bi(s,u.expression)||Bi(s,u.statement)},251:xQe,252:xQe,253:function(u,s,d){return Bi(s,u.expression)},254:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.statement)},255:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.caseBlock)},269:function(u,s,d){return Gr(s,d,u.clauses)},296:function(u,s,d){return Bi(s,u.expression)||Gr(s,d,u.statements)},297:function(u,s,d){return Gr(s,d,u.statements)},256:function(u,s,d){return Bi(s,u.label)||Bi(s,u.statement)},257:function(u,s,d){return Bi(s,u.expression)},258:function(u,s,d){return Bi(s,u.tryBlock)||Bi(s,u.catchClause)||Bi(s,u.finallyBlock)},299:function(u,s,d){return Bi(s,u.variableDeclaration)||Bi(s,u.block)},170:function(u,s,d){return Bi(s,u.expression)},263:vQe,231:vQe,264:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.heritageClauses)||Gr(s,d,u.members)},265:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Gr(s,d,u.typeParameters)||Bi(s,u.type)},266:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Gr(s,d,u.members)},306:function(u,s,d){return Bi(s,u.name)||Bi(s,u.initializer)},267:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.body)},271:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.moduleReference)},272:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.importClause)||Bi(s,u.moduleSpecifier)||Bi(s,u.attributes)},273:function(u,s,d){return Bi(s,u.name)||Bi(s,u.namedBindings)},300:function(u,s,d){return Gr(s,d,u.elements)},301:function(u,s,d){return Bi(s,u.name)||Bi(s,u.value)},270:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.name)},274:function(u,s,d){return Bi(s,u.name)},280:function(u,s,d){return Bi(s,u.name)},275:CQe,279:CQe,278:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.exportClause)||Bi(s,u.moduleSpecifier)||Bi(s,u.attributes)},276:bQe,281:bQe,277:function(u,s,d){return Gr(s,d,u.modifiers)||Bi(s,u.expression)},228:function(u,s,d){return Bi(s,u.head)||Gr(s,d,u.templateSpans)},239:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.literal)},203:function(u,s,d){return Bi(s,u.head)||Gr(s,d,u.templateSpans)},204:function(u,s,d){return Bi(s,u.type)||Bi(s,u.literal)},167:function(u,s,d){return Bi(s,u.expression)},298:function(u,s,d){return Gr(s,d,u.types)},233:function(u,s,d){return Bi(s,u.expression)||Gr(s,d,u.typeArguments)},283:function(u,s,d){return Bi(s,u.expression)},282:function(u,s,d){return Gr(s,d,u.modifiers)},361:function(u,s,d){return Gr(s,d,u.elements)},284:function(u,s,d){return Bi(s,u.openingElement)||Gr(s,d,u.children)||Bi(s,u.closingElement)},288:function(u,s,d){return Bi(s,u.openingFragment)||Gr(s,d,u.children)||Bi(s,u.closingFragment)},285:yQe,286:yQe,292:function(u,s,d){return Gr(s,d,u.properties)},291:function(u,s,d){return Bi(s,u.name)||Bi(s,u.initializer)},293:function(u,s,d){return Bi(s,u.expression)},294:function(u,s,d){return Bi(s,u.dotDotDotToken)||Bi(s,u.expression)},287:function(u,s,d){return Bi(s,u.tagName)},295:function(u,s,d){return Bi(s,u.namespace)||Bi(s,u.name)},190:tM,191:tM,316:tM,322:tM,321:tM,323:tM,325:tM,324:function(u,s,d){return Gr(s,d,u.parameters)||Bi(s,u.type)},327:function(u,s,d){return(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))||Gr(s,d,u.tags)},354:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.name)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},317:function(u,s,d){return Bi(s,u.name)},318:function(u,s,d){return Bi(s,u.left)||Bi(s,u.right)},348:kQe,355:kQe,337:function(u,s,d){return Bi(s,u.tagName)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},336:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.class)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},335:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.class)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},352:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.constraint)||Gr(s,d,u.typeParameters)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},353:function(u,s,d){return Bi(s,u.tagName)||(u.typeExpression&&u.typeExpression.kind===316?Bi(s,u.typeExpression)||Bi(s,u.fullName)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment)):Bi(s,u.fullName)||Bi(s,u.typeExpression)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment)))},345:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.fullName)||Bi(s,u.typeExpression)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},349:iM,351:iM,350:iM,347:iM,357:iM,356:iM,346:iM,330:function(u,s,d){return L(u.typeParameters,s)||L(u.parameters,s)||Bi(s,u.type)},331:VFe,332:VFe,333:VFe,329:function(u,s,d){return L(u.jsDocPropertyTags,s)},334:IB,339:IB,340:IB,341:IB,342:IB,343:IB,338:IB,344:IB,360:cNt},(t=>{var u=ZD(99,!0),s=40960,d,f,p,E,v;function b(he){return ht++,he}var B={createBaseSourceFileNode:he=>b(new v(he,0,0)),createBaseIdentifierNode:he=>b(new p(he,0,0)),createBasePrivateIdentifierNode:he=>b(new E(he,0,0)),createBaseTokenNode:he=>b(new f(he,0,0)),createBaseNode:he=>b(new d(he,0,0))},k=hV(11,B),{createNodeArray:T,createNumericLiteral:M,createStringLiteral:z,createLiteralLikeNode:j,createIdentifier:J,createPrivateIdentifier:K,createToken:Y,createArrayLiteralExpression:oe,createObjectLiteralExpression:se,createPropertyAccessExpression:ge,createPropertyAccessChain:ae,createElementAccessExpression:Ce,createElementAccessChain:ne,createCallExpression:ve,createCallChain:Se,createNewExpression:Ne,createParenthesizedExpression:pe,createBlock:fe,createVariableStatement:xe,createExpressionStatement:Be,createIfStatement:We,createWhileStatement:Ae,createForStatement:De,createForOfStatement:He,createVariableDeclaration:Ge,createVariableDeclarationList:ft}=k,Ze,je,Ke,Gt,Yt,Ie,st,St,It,ti,ht,Ut,Li,ji,xn,Un,rn=!0,Ni=!1;function Fi(he,Re,nt,Lt,vi=!1,Xi,zu,Kr=0){var Nr;if(Xi=nZ(he,Xi),Xi===6){const pa=aa(he,Re,nt,Lt,vi);return GV(pa,(Nr=pa.statements[0])==null?void 0:Nr.expression,pa.parseDiagnostics,!1,void 0),pa.referencedFiles=_t,pa.typeReferenceDirectives=_t,pa.libReferenceDirectives=_t,pa.amdDependencies=_t,pa.hasNoDefaultLib=!1,pa.pragmas=Q$,pa}Fr(he,Re,nt,Lt,Xi,Kr);const _r=bt(nt,vi,Xi,zu||AQe,Kr);return Ba(),_r}t.parseSourceFile=Fi;function Qu(he,Re){Fr("",he,Re,void 0,1,0),ct();const nt=Ee(!0),Lt=X()===1&&!st.length;return Ba(),Lt?nt:void 0}t.parseIsolatedEntityName=Qu;function aa(he,Re,nt=2,Lt,vi=!1){Fr(he,Re,nt,Lt,6,0),je=Un,ct();const Xi=de();let zu,Kr;if(X()===1)zu=Ka([],Xi,Xi),Kr=wc();else{let pa;for(;X()!==1;){let Hs;switch(X()){case 23:Hs=dD();break;case 112:case 97:case 106:Hs=wc();break;case 41:Tn(()=>ct()===9&&ct()!==59)?Hs=mE():Hs=lC();break;case 9:case 11:if(Tn(()=>ct()!==59)){Hs=ur();break}default:Hs=lC();break}pa&&Ha(pa)?pa.push(Hs):pa?pa=[pa,Hs]:(pa=Hs,X()!==1&&Yi(F.Unexpected_token))}const E0=Ha(pa)?Ri(oe(pa),Xi):H.checkDefined(pa),Us=Be(E0);Ri(Us,Xi),zu=Ka([Us],Xi),Kr=$0(1,F.Unexpected_token)}const Nr=bn(he,2,6,!1,zu,Kr,je,Ms);vi&&Dn(Nr),Nr.nodeCount=ht,Nr.identifierCount=Li,Nr.identifiers=Ut,Nr.parseDiagnostics=D7(st,Nr),St&&(Nr.jsDocDiagnostics=D7(St,Nr));const _r=Nr;return Ba(),_r}t.parseJsonText=aa;function Fr(he,Re,nt,Lt,vi,Xi){switch(d=Yd.getNodeConstructor(),f=Yd.getTokenConstructor(),p=Yd.getIdentifierConstructor(),E=Yd.getPrivateIdentifierConstructor(),v=Yd.getSourceFileConstructor(),Ze=Go(he),Ke=Re,Gt=nt,It=Lt,Yt=vi,Ie=qj(vi),st=[],ji=0,Ut=new Map,Li=0,ht=0,je=0,rn=!0,Yt){case 1:case 2:Un=524288;break;case 6:Un=134742016;break;default:Un=0;break}Ni=!1,u.setText(Ke),u.setOnError(we),u.setScriptTarget(Gt),u.setLanguageVariant(Ie),u.setScriptKind(Yt),u.setJSDocParsingMode(Xi)}function Ba(){u.clearCommentDirectives(),u.setText(""),u.setOnError(void 0),u.setScriptKind(0),u.setJSDocParsingMode(0),Ke=void 0,Gt=void 0,It=void 0,Yt=void 0,Ie=void 0,je=0,st=void 0,St=void 0,ji=0,Ut=void 0,xn=void 0,rn=!0}function bt(he,Re,nt,Lt,vi){const Xi=Xd(Ze);Xi&&(Un|=33554432),je=Un,ct();const zu=Bo(0,Um);H.assert(X()===1);const Kr=Oe(),Nr=Nn(wc(),Kr),_r=bn(Ze,he,nt,Xi,zu,Nr,je,Lt);return $ce(_r,Ke),Uce(_r,pa),_r.commentDirectives=u.getCommentDirectives(),_r.nodeCount=ht,_r.identifierCount=Li,_r.identifiers=Ut,_r.parseDiagnostics=D7(st,_r),_r.jsDocParsingMode=vi,St&&(_r.jsDocDiagnostics=D7(St,_r)),Re&&Dn(_r),_r;function pa(E0,Us,Hs){st.push(cB(Ze,Ke,E0,Us,Hs))}}let jn=!1;function Nn(he,Re){if(!Re)return he;H.assert(!he.jsDoc);const nt=Ui(y0e(he,Ke),Lt=>qK.parseJSDocComment(he,Lt.pos,Lt.end-Lt.pos));return nt.length&&(he.jsDoc=nt),jn&&(jn=!1,he.flags|=536870912),he}function Ai(he){const Re=It,nt=Zce.createSyntaxCursor(he);It={currentNode:pa};const Lt=[],vi=st;st=[];let Xi=0,zu=Nr(he.statements,0);for(;zu!==-1;){const E0=he.statements[Xi],Us=he.statements[zu];kn(Lt,he.statements,Xi,zu),Xi=_r(he.statements,zu);const Hs=$e(vi,Jp=>Jp.start>=E0.pos),x4=Hs>=0?$e(vi,Jp=>Jp.start>=Us.pos,Hs):-1;Hs>=0&&kn(st,vi,Hs,x4>=0?x4:void 0),ja(()=>{const Jp=Un;for(Un|=65536,u.resetTokenState(Us.pos),ct();X()!==1;){const h6=u.getTokenFullStart(),C3=ic(0,Um);if(Lt.push(C3),h6===u.getTokenFullStart()&&ct(),Xi>=0){const Od=he.statements[Xi];if(C3.end===Od.pos)break;C3.end>Od.pos&&(Xi=_r(he.statements,Xi+1))}}Un=Jp},2),zu=Xi>=0?Nr(he.statements,Xi):-1}if(Xi>=0){const E0=he.statements[Xi];kn(Lt,he.statements,Xi);const Us=$e(vi,Hs=>Hs.start>=E0.pos);Us>=0&&kn(st,vi,Us)}return It=Re,k.updateSourceFile(he,Pt(T(Lt),he.statements));function Kr(E0){return!(E0.flags&65536)&&!!(E0.transformFlags&67108864)}function Nr(E0,Us){for(let Hs=Us;Hs118}function So(){return X()===80?!0:X()===127&&_i()||X()===135&&Ji()?!1:X()>118}function An(he,Re,nt=!0){return X()===he?(nt&&ct(),!0):(Re?Yi(Re):Yi(F._0_expected,Jo(he)),!1)}const xc=Object.keys(NO).filter(he=>he.length>2);function Za(he){if(Ek(he)){le(ms(Ke,he.template.pos),he.template.end,F.Module_declaration_names_may_only_use_or_quoted_strings);return}const Re=at(he)?mu(he):void 0;if(!Re||!Tm(Re,Gt)){Yi(F._0_expected,Jo(27));return}const nt=ms(Ke,he.pos);switch(Re){case"const":case"let":case"var":le(nt,he.end,F.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":l0(F.Interface_name_cannot_be_0,F.Interface_must_be_given_a_name,19);return;case"is":le(nt,u.getTokenStart(),F.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":l0(F.Namespace_name_cannot_be_0,F.Namespace_must_be_given_a_name,19);return;case"type":l0(F.Type_alias_name_cannot_be_0,F.Type_alias_must_be_given_a_name,64);return}const Lt=CN(Re,xc,vi=>vi)??$l(Re);if(Lt){le(nt,he.end,F.Unknown_keyword_or_identifier_Did_you_mean_0,Lt);return}X()!==0&&le(nt,he.end,F.Unexpected_keyword_or_identifier)}function l0(he,Re,nt){X()===nt?Yi(Re):Yi(he,u.getTokenValue())}function $l(he){for(const Re of xc)if(he.length>Re.length+2&&Na(he,Re))return`${Re} ${he.slice(Re.length)}`}function Sl(he,Re,nt){if(X()===60&&!u.hasPrecedingLineBreak()){Yi(F.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(X()===21){Yi(F.Cannot_start_a_function_call_in_a_type_annotation),ct();return}if(Re&&!Tc()){nt?Yi(F._0_expected,Jo(27)):Yi(F.Expected_for_property_initializer);return}if(!zl()){if(nt){Yi(F._0_expected,Jo(27));return}Za(he)}}function cd(he){return X()===he?(Qt(),!0):(H.assert(yq(he)),Yi(F._0_expected,Jo(he)),!1)}function Dl(he,Re,nt,Lt){if(X()===Re){ct();return}const vi=Yi(F._0_expected,Jo(Re));nt&&vi&&ps(vi,cB(Ze,Ke,Lt,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Jo(he),Jo(Re)))}function so(he){return X()===he?(ct(),!0):!1}function Vo(he){if(X()===he)return wc()}function td(he){if(X()===he)return Kp()}function $0(he,Re,nt){return Vo(he)||ll(he,!1,Re||F._0_expected,nt||Jo(he))}function Ho(he){const Re=td(he);return Re||(H.assert(yq(he)),ll(he,!1,F._0_expected,Jo(he)))}function wc(){const he=de(),Re=X();return ct(),Ri(Y(Re),he)}function Kp(){const he=de(),Re=X();return Qt(),Ri(Y(Re),he)}function Tc(){return X()===27?!0:X()===20||X()===1||u.hasPrecedingLineBreak()}function zl(){return Tc()?(X()===27&&ct(),!0):!1}function sl(){return zl()||An(27)}function Ka(he,Re,nt,Lt){const vi=T(he,Lt);return e_(vi,Re,nt??u.getTokenFullStart()),vi}function Ri(he,Re,nt){return e_(he,Re,nt??u.getTokenFullStart()),Un&&(he.flags|=Un),Ni&&(Ni=!1,he.flags|=262144),he}function ll(he,Re,nt,...Lt){Re?on(u.getTokenFullStart(),0,nt,...Lt):nt&&Yi(nt,...Lt);const vi=de(),Xi=he===80?J("",void 0):Sx(he)?k.createTemplateLiteralLikeNode(he,"","",void 0):he===9?M("",void 0):he===11?z("",void 0):he===282?k.createMissingDeclaration():Y(he);return Ri(Xi,vi)}function $c(he){let Re=Ut.get(he);return Re===void 0&&Ut.set(he,Re=he),Re}function vh(he,Re,nt){if(he){Li++;const Kr=de(),Nr=X(),_r=$c(u.getTokenValue()),pa=u.hasExtendedUnicodeEscape();return it(),Ri(J(_r,Nr,pa),Kr)}if(X()===81)return Yi(nt||F.Private_identifiers_are_not_allowed_outside_class_bodies),vh(!0);if(X()===0&&u.tryScan(()=>u.reScanInvalidIdentifier()===80))return vh(!0);Li++;const Lt=X()===1,vi=u.isReservedWord(),Xi=u.getTokenText(),zu=vi?F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:F.Identifier_expected;return ll(80,Lt,Re||zu,Xi)}function of(he){return vh(rs(),void 0,he)}function U0(he,Re){return vh(So(),he,Re)}function vc(he){return vh(hh(X()),he)}function $(){return(u.hasUnicodeEscape()||u.hasExtendedUnicodeEscape())&&Yi(F.Unicode_escape_sequence_cannot_appear_here),vh(hh(X()))}function tt(){return hh(X())||X()===11||X()===9}function vt(){return hh(X())||X()===11}function hi(he){if(X()===11||X()===9){const Re=ur();return Re.text=$c(Re.text),Re}return he&&X()===23?Gu():X()===81?ru():vc()}function fn(){return hi(!0)}function Gu(){const he=de();An(23);const Re=Qe(t1);return An(24),Ri(k.createComputedPropertyName(Re),he)}function ru(){const he=de(),Re=K($c(u.getTokenValue()));return ct(),Ri(Re,he)}function Tu(he){return X()===he&&Rr(Vu)}function Pr(){return ct(),u.hasPrecedingLineBreak()?!1:A0()}function Vu(){switch(X()){case 87:return ct()===94;case 95:return ct(),X()===90?Tn(nd):X()===156?Tn(tc):Fs();case 90:return nd();case 126:case 139:case 153:return ct(),A0();default:return Pr()}}function Fs(){return X()===60||X()!==42&&X()!==130&&X()!==19&&A0()}function tc(){return ct(),Fs()}function id(){return QD(X())&&Rr(Vu)}function A0(){return X()===23||X()===19||X()===42||X()===26||tt()}function nd(){return ct(),X()===86||X()===100||X()===120||X()===60||X()===128&&Tn(jw)||X()===134&&Tn(P0)}function f0(he,Re){if(hc(he))return!0;switch(he){case 0:case 1:case 3:return!(X()===27&&Re)&&w9();case 2:return X()===84||X()===90;case 4:return Tn(e6);case 5:return Tn(L5)||X()===27&&!Re;case 6:return X()===23||tt();case 12:switch(X()){case 23:case 42:case 26:case 25:return!0;default:return tt()}case 18:return tt();case 9:return X()===23||X()===26||tt();case 24:return vt();case 7:return X()===19?Tn(Sd):Re?So()&&!_1():F5()&&!_1();case 8:return Vs();case 10:return X()===28||X()===26||Vs();case 19:return X()===103||X()===87||So();case 15:switch(X()){case 28:case 25:return!0}case 11:return X()===26||h3();case 16:return Dt(!1);case 17:return Dt(!0);case 20:case 21:return X()===28||hE();case 22:return O();case 23:return X()===161&&Tn(N9)?!1:hh(X());case 13:return hh(X())||X()===19;case 14:return!0;case 25:return!0;case 26:return H.fail("ParsingContext.Count used as a context");default:H.assertNever(he,"Non-exhaustive case in 'isListElement'.")}}function Sd(){if(H.assert(X()===19),ct()===20){const he=ct();return he===28||he===19||he===96||he===119}return!0}function Ih(){return ct(),So()}function nh(){return ct(),hh(X())}function d4(){return ct(),v2e(X())}function _1(){return X()===119||X()===96?Tn(Ve):!1}function Ve(){return ct(),h3()}function si(){return ct(),hE()}function zn(he){if(X()===1)return!0;switch(he){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return X()===20;case 3:return X()===20||X()===84||X()===90;case 7:return X()===19||X()===96||X()===119;case 8:return ya();case 19:return X()===32||X()===21||X()===19||X()===96||X()===119;case 11:return X()===22||X()===27;case 15:case 21:case 10:return X()===24;case 17:case 16:case 18:return X()===22||X()===24;case 20:return X()!==28;case 22:return X()===19||X()===20;case 13:return X()===32||X()===44;case 14:return X()===30&&Tn(gn);default:return!1}}function ya(){return!!(Tc()||Xk(X())||X()===39)}function yo(){H.assert(ji,"Missing parsing context");for(let he=0;he<26;he++)if(ji&1<=0)}function c3(he){return he===6?F.An_enum_member_name_must_be_followed_by_a_or:void 0}function Kf(){const he=Ka([],de());return he.isMissingList=!0,he}function f4(he){return!!he.isMissingList}function Oh(he,Re,nt,Lt){if(An(nt)){const vi=I1(he,Re);return An(Lt),vi}return Kf()}function Ee(he,Re){const nt=de();let Lt=he?vc(Re):U0(Re);for(;so(25)&&X()!==30;)Lt=Ri(k.createQualifiedName(Lt,gi(he,!1,!0)),nt);return Lt}function Bt(he,Re){return Ri(k.createQualifiedName(he,Re),he.pos)}function gi(he,Re,nt){if(u.hasPrecedingLineBreak()&&hh(X())&&Tn(r6))return ll(80,!0,F.Identifier_expected);if(X()===81){const Lt=ru();return Re?Lt:ll(80,!0,F.Identifier_expected)}return he?nt?vc():$():U0()}function xi(he){const Re=de(),nt=[];let Lt;do Lt=nr(he),nt.push(Lt);while(Lt.literal.kind===17);return Ka(nt,Re)}function Q(he){const Re=de();return Ri(k.createTemplateExpression(ma(he),xi(he)),Re)}function Me(){const he=de();return Ri(k.createTemplateLiteralType(ma(!1),wt()),he)}function wt(){const he=de(),Re=[];let nt;do nt=bi(),Re.push(nt);while(nt.literal.kind===17);return Ka(Re,he)}function bi(){const he=de();return Ri(k.createTemplateLiteralTypeSpan(Rd(),Rn(!1)),he)}function Rn(he){return X()===20?(hu(he),as()):$0(18,F._0_expected,Jo(20))}function nr(he){const Re=de();return Ri(k.createTemplateSpan(Qe(t1),Rn(he)),Re)}function ur(){return Il(X())}function ma(he){!he&&u.getTokenFlags()&26656&&hu(!1);const Re=Il(X());return H.assert(Re.kind===16,"Template head has wrong token kind"),Re}function as(){const he=Il(X());return H.assert(he.kind===17||he.kind===18,"Template fragment has wrong token kind"),he}function os(he){const Re=he===15||he===18,nt=u.getTokenText();return nt.substring(1,nt.length-(u.isUnterminated()?0:Re?1:2))}function Il(he){const Re=de(),nt=Sx(he)?k.createTemplateLiteralLikeNode(he,u.getTokenValue(),os(he),u.getTokenFlags()&7176):he===9?M(u.getTokenValue(),u.getNumericLiteralFlags()):he===11?z(u.getTokenValue(),void 0,u.hasExtendedUnicodeEscape()):ON(he)?j(he,u.getTokenValue()):H.fail();return u.hasExtendedUnicodeEscape()&&(nt.hasExtendedUnicodeEscape=!0),u.isUnterminated()&&(nt.isUnterminated=!0),ct(),Ri(nt,Re)}function D1(){return Ee(!0,F.Type_expected)}function dd(){if(!u.hasPrecedingLineBreak()&&Ru()===30)return Oh(20,Rd,30,32)}function Jm(){const he=de();return Ri(k.createTypeReferenceNode(D1(),dd()),he)}function gs(he){switch(he.kind){case 183:return Yl(he.typeName);case 184:case 185:{const{parameters:Re,type:nt}=he;return f4(Re)||gs(nt)}case 196:return gs(he.type);default:return!1}}function tp(he){return ct(),Ri(k.createTypePredicateNode(void 0,he,Rd()),he.pos)}function $m(){const he=de();return ct(),Ri(k.createThisTypeNode(),he)}function d3(){const he=de();return ct(),Ri(k.createJSDocAllType(),he)}function c_(){const he=de();return ct(),Ri(k.createJSDocNonNullableType(lb(),!1),he)}function ta(){const he=de();return ct(),X()===28||X()===20||X()===22||X()===32||X()===64||X()===52?Ri(k.createJSDocUnknownType(),he):Ri(k.createJSDocNullableType(Rd(),!1),he)}function Qx(){const he=de(),Re=Oe();if(Tn(Sr)){ct();const nt=yu(36),Lt=yn(59,!1);return Nn(Ri(k.createJSDocFunctionType(nt,Lt),he),Re)}return Ri(k.createTypeReferenceNode(vc(),void 0),he)}function Xx(){const he=de();let Re;return(X()===110||X()===105)&&(Re=vc(),An(59)),Ri(k.createParameterDeclaration(void 0,void 0,Re,void 0,vg(),void 0),he)}function vg(){u.setInJSDocType(!0);const he=de();if(so(144)){const Lt=k.createJSDocNamepathType(void 0);e:for(;;)switch(X()){case 20:case 1:case 28:case 5:break e;default:Qt()}return u.setInJSDocType(!1),Ri(Lt,he)}const Re=so(26);let nt=iC();return u.setInJSDocType(!1),Re&&(nt=Ri(k.createJSDocVariadicType(nt),he)),X()===64?(ct(),Ri(k.createJSDocOptionalType(nt),he)):nt}function rb(){const he=de();An(114);const Re=Ee(!0),nt=u.hasPrecedingLineBreak()?void 0:c6();return Ri(k.createTypeQueryNode(Re,nt),he)}function C5(){const he=de(),Re=O1(!1,!0),nt=U0();let Lt,vi;so(96)&&(hE()||!h3()?Lt=Rd():vi=nc());const Xi=so(64)?Rd():void 0,zu=k.createTypeParameterDeclaration(Re,nt,Lt,Xi);return zu.expression=vi,Ri(zu,he)}function Xe(){if(X()===30)return Oh(19,C5,30,32)}function Dt(he){return X()===26||Vs()||QD(X())||X()===60||hE(!he)}function ai(he){const Re=Du(F.Private_identifiers_cannot_be_used_as_parameters);return ej(Re)===0&&!qe(he)&&QD(X())&&ct(),Re}function wi(){return rs()||X()===23||X()===19}function Qi(he){return en(he)}function On(he){return en(he,!1)}function en(he,Re=!0){const nt=de(),Lt=Oe(),vi=he?et(()=>O1(!0)):gt(()=>O1(!0));if(X()===110){const Nr=k.createParameterDeclaration(vi,void 0,vh(!0),void 0,k5(),void 0),_r=Hi(vi);return _r&&te(_r,F.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Nn(Ri(Nr,nt),Lt)}const Xi=rn;rn=!1;const zu=Vo(26);if(!Re&&!wi())return;const Kr=Nn(Ri(k.createParameterDeclaration(vi,zu,ai(vi),Vo(58),k5(),p4()),nt),Lt);return rn=Xi,Kr}function yn(he,Re){if(Ar(he,Re))return Mt(iC)}function Ar(he,Re){return he===39?(An(he),!0):so(59)?!0:Re&&X()===39?(Yi(F._0_expected,Jo(59)),ct(),!0):!1}function bu(he,Re){const nt=_i(),Lt=Ji();xa(!!(he&1)),wa(!!(he&2));const vi=he&32?I1(17,Xx):I1(16,()=>Re?Qi(Lt):On(Lt));return xa(nt),wa(Lt),vi}function yu(he){if(!An(21))return Kf();const Re=bu(he,!0);return An(22),Re}function _u(){so(28)||sl()}function sa(he){const Re=de(),nt=Oe();he===180&&An(105);const Lt=Xe(),vi=yu(4),Xi=yn(59,!0);_u();const zu=he===179?k.createCallSignature(Lt,vi,Xi):k.createConstructSignature(Lt,vi,Xi);return Nn(Ri(zu,Re),nt)}function m0(){return X()===23&&Tn(a0)}function a0(){if(ct(),X()===26||X()===24)return!0;if(QD(X())){if(ct(),So())return!0}else if(So())ct();else return!1;return X()===59||X()===28?!0:X()!==58?!1:(ct(),X()===59||X()===28||X()===24)}function Wf(he,Re,nt){const Lt=Oh(16,()=>Qi(!1),23,24),vi=k5();_u();const Xi=k.createIndexSignature(nt,Lt,vi);return Nn(Ri(Xi,he),Re)}function Qv(he,Re,nt){const Lt=fn(),vi=Vo(58);let Xi;if(X()===21||X()===30){const zu=Xe(),Kr=yu(4),Nr=yn(59,!0);Xi=k.createMethodSignature(nt,Lt,vi,zu,Kr,Nr)}else{const zu=k5();Xi=k.createPropertySignature(nt,Lt,vi,zu),X()===64&&(Xi.initializer=p4())}return _u(),Nn(Ri(Xi,he),Re)}function e6(){if(X()===21||X()===30||X()===139||X()===153)return!0;let he=!1;for(;QD(X());)he=!0,ct();return X()===23?!0:(tt()&&(he=!0,ct()),he?X()===21||X()===30||X()===58||X()===59||X()===28||Tc():!1)}function lD(){if(X()===21||X()===30)return sa(179);if(X()===105&&Tn(t6))return sa(180);const he=de(),Re=Oe(),nt=O1(!1);return Tu(139)?op(he,Re,nt,177,4):Tu(153)?op(he,Re,nt,178,4):m0()?Wf(he,Re,nt):Qv(he,Re,nt)}function t6(){return ct(),X()===21||X()===30}function Kk(){return ct()===25}function ab(){switch(ct()){case 21:case 30:case 25:return!0}return!1}function Wk(){const he=de();return Ri(k.createTypeLiteralNode(Gk()),he)}function Gk(){let he;return An(19)?(he=Bo(4,lD),An(20)):he=Kf(),he}function rz(){return ct(),X()===40||X()===41?ct()===148:(X()===148&&ct(),X()===23&&Ih()&&ct()===103)}function E9(){const he=de(),Re=vc();An(103);const nt=Rd();return Ri(k.createTypeParameterDeclaration(void 0,Re,nt,void 0),he)}function Sw(){const he=de();An(19);let Re;(X()===148||X()===40||X()===41)&&(Re=wc(),Re.kind!==148&&An(148)),An(23);const nt=E9(),Lt=so(130)?Rd():void 0;An(24);let vi;(X()===58||X()===40||X()===41)&&(vi=wc(),vi.kind!==58&&An(58));const Xi=k5();sl();const zu=Bo(4,lD);return An(20),Ri(k.createMappedTypeNode(Re,nt,Lt,vi,Xi,zu),he)}function Xv(){const he=de();if(so(26))return Ri(k.createRestTypeNode(Rd()),he);const Re=Rd();if(SB(Re)&&Re.pos===Re.type.pos){const nt=k.createOptionalTypeNode(Re.type);return Pt(nt,Re),nt.flags=Re.flags,nt}return Re}function _9(){return ct()===59||X()===58&&ct()===59}function D9(){return X()===26?hh(ct())&&_9():hh(X())&&_9()}function Bw(){if(Tn(D9)){const he=de(),Re=Oe(),nt=Vo(26),Lt=vc(),vi=Vo(58);An(59);const Xi=Xv(),zu=k.createNamedTupleMember(nt,Lt,vi,Xi);return Nn(Ri(zu,he),Re)}return Xv()}function Jk(){const he=de();return Ri(k.createTupleTypeNode(Oh(21,Bw,23,24)),he)}function ww(){const he=de();An(21);const Re=Rd();return An(22),Ri(k.createParenthesizedType(Re),he)}function x9(){let he;if(X()===128){const Re=de();ct();const nt=Ri(Y(128),Re);he=Ka([nt],Re)}return he}function v9(){const he=de(),Re=Oe(),nt=x9(),Lt=so(105);H.assert(!nt||Lt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const vi=Xe(),Xi=yu(4),zu=yn(39,!1),Kr=Lt?k.createConstructorTypeNode(nt,vi,Xi,zu):k.createFunctionTypeNode(vi,Xi,zu);return Nn(Ri(Kr,he),Re)}function $k(){const he=wc();return X()===25?void 0:he}function ob(he){const Re=de();he&&ct();let nt=X()===112||X()===97||X()===106?wc():Il(X());return he&&(nt=Ri(k.createPrefixUnaryExpression(41,nt),Re)),Ri(k.createLiteralTypeNode(nt),Re)}function sb(){return ct(),X()===102}function eC(){je|=4194304;const he=de(),Re=so(114);An(102),An(21);const nt=Rd();let Lt;if(so(28)){const zu=u.getTokenStart();An(19);const Kr=X();if(Kr===118||Kr===132?ct():Yi(F._0_expected,Jo(118)),An(59),Lt=EC(Kr,!0),!An(20)){const Nr=Yu(st);Nr&&Nr.code===F._0_expected.code&&ps(Nr,cB(Ze,Ke,zu,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}An(22);const vi=so(25)?D1():void 0,Xi=dd();return Ri(k.createImportTypeNode(nt,Lt,vi,Xi,Re),he)}function b5(){return ct(),X()===9||X()===10}function lb(){switch(X()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Rr($k)||Jm();case 67:u.reScanAsteriskEqualsToken();case 42:return d3();case 61:u.reScanQuestionToken();case 58:return ta();case 100:return Qx();case 54:return c_();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return ob();case 41:return Tn(b5)?ob(!0):Jm();case 116:return wc();case 110:{const he=$m();return X()===142&&!u.hasPrecedingLineBreak()?tp(he):he}case 114:return Tn(sb)?eC():rb();case 19:return Tn(rz)?Sw():Wk();case 23:return Jk();case 21:return ww();case 102:return eC();case 131:return Tn(r6)?nC():Jm();case 16:return Me();default:return Jm()}}function hE(he){switch(X()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!he;case 41:return!he&&Tn(b5);case 21:return!he&&Tn(Os);default:return So()}}function Os(){return ct(),X()===22||Dt(!1)||hE()}function Uk(){const he=de();let Re=lb();for(;!u.hasPrecedingLineBreak();)switch(X()){case 54:ct(),Re=Ri(k.createJSDocNonNullableType(Re,!0),he);break;case 58:if(Tn(si))return Re;ct(),Re=Ri(k.createJSDocNullableType(Re,!0),he);break;case 23:if(An(23),hE()){const nt=Rd();An(24),Re=Ri(k.createIndexedAccessTypeNode(Re,nt),he)}else An(24),Re=Ri(k.createArrayTypeNode(Re),he);break;default:return Re}return Re}function Tw(he){const Re=de();return An(he),Ri(k.createTypeOperatorNode(he,m4()),Re)}function i6(){if(so(96)){const he=qt(Rd);if(jt()||X()!==58)return he}}function y5(){const he=de(),Re=U0(),nt=Rr(i6),Lt=k.createTypeParameterDeclaration(void 0,Re,nt);return Ri(Lt,he)}function d_(){const he=de();return An(140),Ri(k.createInferTypeNode(y5()),he)}function m4(){const he=X();switch(he){case 143:case 158:case 148:return Tw(he);case 140:return d_()}return Mt(Uk)}function Gf(he){if(C9()){const Re=v9();let nt;return n3(Re)?nt=he?F.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:F.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:nt=he?F.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:F.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,te(Re,nt),Re}}function jh(he,Re,nt){const Lt=de(),vi=he===52,Xi=so(he);let zu=Xi&&Gf(vi)||Re();if(X()===he||Xi){const Kr=[zu];for(;so(he);)Kr.push(Gf(vi)||Re());zu=Ri(nt(Ka(Kr,Lt)),Lt)}return zu}function gm(){return jh(51,m4,k.createIntersectionTypeNode)}function tC(){return jh(52,gm,k.createUnionTypeNode)}function Lw(){return ct(),X()===105}function C9(){return X()===30||X()===21&&Tn(cb)?!0:X()===105||X()===128&&Tn(Lw)}function qk(){if(QD(X())&&O1(!1),So()||X()===110)return ct(),!0;if(X()===23||X()===19){const he=st.length;return Du(),he===st.length}return!1}function cb(){return ct(),!!(X()===22||X()===26||qk()&&(X()===59||X()===28||X()===58||X()===64||X()===22&&(ct(),X()===39)))}function iC(){const he=de(),Re=So()&&Rr(Zk),nt=Rd();return Re?Ri(k.createTypePredicateNode(void 0,Re,nt),he):nt}function Zk(){const he=U0();if(X()===142&&!u.hasPrecedingLineBreak())return ct(),he}function nC(){const he=de(),Re=$0(131),nt=X()===110?$m():U0(),Lt=so(142)?Rd():void 0;return Ri(k.createTypePredicateNode(Re,nt,Lt),he)}function Rd(){if(Un&81920)return Zo(81920,Rd);if(C9())return v9();const he=de(),Re=tC();if(!jt()&&!u.hasPrecedingLineBreak()&&so(96)){const nt=qt(Rd);An(58);const Lt=Mt(Rd);An(59);const vi=Mt(Rd);return Ri(k.createConditionalTypeNode(Re,nt,Lt,vi),he)}return Re}function k5(){return so(59)?Rd():void 0}function F5(){switch(X()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return Tn(ab);default:return So()}}function h3(){if(F5())return!0;switch(X()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return eF()?!0:So()}}function pt(){return X()!==19&&X()!==100&&X()!==86&&X()!==60&&h3()}function t1(){const he=pi();he&&ra(!1);const Re=de();let nt=Ch(!0),Lt;for(;Lt=Vo(28);)nt=$r(nt,Lt,Ch(!0),Re);return he&&ra(!0),nt}function p4(){return so(64)?Ch(!0):void 0}function Ch(he){if(Nw())return uC();const Re=az(he)||Qk(he);if(Re)return Re;const nt=de(),Lt=Oe(),vi=m3(0);return vi.kind===80&&X()===39?f3(nt,vi,he,Lt,void 0):_f(vi)&&n5($i())?$r(vi,wc(),Ch(he),nt):bg(vi,nt,he)}function Nw(){return X()===127?_i()?!0:Tn(Vw):!1}function A5(){return ct(),!u.hasPrecedingLineBreak()&&So()}function uC(){const he=de();return ct(),!u.hasPrecedingLineBreak()&&(X()===42||h3())?Ri(k.createYieldExpression(Vo(42),Ch(!0)),he):Ri(k.createYieldExpression(void 0,void 0),he)}function f3(he,Re,nt,Lt,vi){H.assert(X()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const Xi=k.createParameterDeclaration(void 0,void 0,Re,void 0,void 0,void 0);Ri(Xi,Re.pos);const zu=Ka([Xi],Xi.pos,Xi.end),Kr=$0(39),Nr=ip(!!vi,nt),_r=k.createArrowFunction(vi,void 0,zu,void 0,Kr,Nr);return Nn(Ri(_r,he),Lt)}function az(he){const Re=js();if(Re!==0)return Re===1?hb(!0,!0):Rr(()=>Yk(he))}function js(){return X()===21||X()===30||X()===134?Tn(Cg):X()===39?1:0}function Cg(){if(X()===134&&(ct(),u.hasPrecedingLineBreak()||X()!==21&&X()!==30))return 0;const he=X(),Re=ct();if(he===21){if(Re===22)switch(ct()){case 39:case 59:case 19:return 1;default:return 0}if(Re===23||Re===19)return 2;if(Re===26)return 1;if(QD(Re)&&Re!==134&&Tn(Ih))return ct()===130?0:1;if(!So()&&Re!==110)return 0;switch(ct()){case 59:return 1;case 58:return ct(),X()===59||X()===28||X()===64||X()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return H.assert(he===30),!So()&&X()!==87?0:Ie===1?Tn(()=>{so(87);const Lt=ct();if(Lt===96)switch(ct()){case 64:case 32:case 44:return!1;default:return!0}else if(Lt===28||Lt===64)return!0;return!1})?1:0:2}function Yk(he){const Re=u.getTokenStart();if(xn!=null&&xn.has(Re))return;const nt=hb(!1,he);return nt||(xn||(xn=new Set)).add(Re),nt}function Qk(he){if(X()===134&&Tn(db)===1){const Re=de(),nt=Oe(),Lt=pC(),vi=m3(0);return f3(Re,vi,he,nt,Lt)}}function db(){if(X()===134){if(ct(),u.hasPrecedingLineBreak()||X()===39)return 0;const he=m3(0);if(!u.hasPrecedingLineBreak()&&he.kind===80&&X()===39)return 1}return 0}function hb(he,Re){const nt=de(),Lt=Oe(),vi=pC(),Xi=qe(vi,jP)?2:0,zu=Xe();let Kr;if(An(21)){if(he)Kr=bu(Xi,he);else{const h6=bu(Xi,he);if(!h6)return;Kr=h6}if(!An(22)&&!he)return}else{if(!he)return;Kr=Kf()}const Nr=X()===59,_r=yn(59,!1);if(_r&&!he&&gs(_r))return;let pa=_r;for(;(pa==null?void 0:pa.kind)===196;)pa=pa.type;const E0=pa&&BB(pa);if(!he&&X()!==39&&(E0||X()!==19))return;const Us=X(),Hs=$0(39),x4=Us===39||Us===19?ip(qe(vi,jP),Re):U0();if(!Re&&Nr&&X()!==59)return;const Jp=k.createArrowFunction(vi,zu,Kr,_r,Hs,x4);return Nn(Ri(Jp,nt),Lt)}function ip(he,Re){if(X()===19)return u6(he?2:0);if(X()!==27&&X()!==100&&X()!==86&&w9()&&!pt())return u6(16|(he?2:0));const nt=rn;rn=!1;const Lt=he?et(()=>Ch(Re)):gt(()=>Ch(Re));return rn=nt,Lt}function bg(he,Re,nt){const Lt=Vo(58);if(!Lt)return he;let vi;return Ri(k.createConditionalExpression(he,Lt,Zo(s,()=>Ch(!1)),vi=$0(59),j4(vi)?Ch(nt):ll(80,!1,F._0_expected,Jo(59))),Re)}function m3(he){const Re=de(),nt=nc();return fE(he,nt,Re)}function Xk(he){return he===103||he===165}function fE(he,Re,nt){for(;;){$i();const Lt=Ij(X());if(!(X()===43?Lt>=he:Lt>he)||X()===103&&mt())break;if(X()===130||X()===152){if(u.hasPrecedingLineBreak())break;{const Xi=X();ct(),Re=Xi===152?Pw(Re,Rd()):sr(Re,Rd())}}else Re=$r(Re,wc(),m3(Lt),nt)}return Re}function eF(){return mt()&&X()===103?!1:Ij(X())>0}function Pw(he,Re){return Ri(k.createSatisfiesExpression(he,Re),he.pos)}function $r(he,Re,nt,Lt){return Ri(k.createBinaryExpression(he,Re,nt),Lt)}function sr(he,Re){return Ri(k.createAsExpression(he,Re),he.pos)}function mE(){const he=de();return Ri(k.createPrefixUnaryExpression(X(),Ct(bh)),he)}function yf(){const he=de();return Ri(k.createDeleteExpression(Ct(bh)),he)}function Mw(){const he=de();return Ri(k.createTypeOfExpression(Ct(bh)),he)}function S5(){const he=de();return Ri(k.createVoidExpression(Ct(bh)),he)}function zw(){return X()===135?Ji()?!0:Tn(Vw):!1}function fb(){const he=de();return Ri(k.createAwaitExpression(Ct(bh)),he)}function nc(){if(cD()){const nt=de(),Lt=h_();return X()===43?fE(Ij(X()),Lt,nt):Lt}const he=X(),Re=bh();if(X()===43){const nt=ms(Ke,Re.pos),{end:Lt}=Re;Re.kind===216?le(nt,Lt,F.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(H.assert(yq(he)),le(nt,Lt,F.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Jo(he)))}return Re}function bh(){switch(X()){case 40:case 41:case 55:case 54:return mE();case 91:return yf();case 114:return Mw();case 116:return S5();case 30:return Ie===1?g3(!0,void 0,void 0,!0):aC();case 135:if(zw())return fb();default:return h_()}}function cD(){switch(X()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Ie!==1)return!1;default:return!0}}function h_(){if(X()===46||X()===47){const Re=de();return Ri(k.createPrefixUnaryExpression(X(),Ct(p3)),Re)}else if(Ie===1&&X()===30&&Tn(d4))return g3(!0);const he=p3();if(H.assert(_f(he)),(X()===46||X()===47)&&!u.hasPrecedingLineBreak()){const Re=X();return ct(),Ri(k.createPostfixUnaryExpression(he,Re),he.pos)}return he}function p3(){const he=de();let Re;return X()===102?Tn(t6)?(je|=4194304,Re=wc()):Tn(Kk)?(ct(),ct(),Re=Ri(k.createMetaProperty(102,vc()),he),je|=8388608):Re=Wp():Re=X()===108?rC():Wp(),up(he,Re)}function Wp(){const he=de(),Re=Bd();return Pa(he,Re,!0)}function rC(){const he=de();let Re=wc();if(X()===30){const nt=de(),Lt=Rr(pb);Lt!==void 0&&(le(nt,de(),F.super_may_not_use_type_arguments),sf()||(Re=k.createExpressionWithTypeArguments(Re,Lt)))}return X()===21||X()===25||X()===23?Re:($0(25,F.super_must_be_followed_by_an_argument_list_or_member_access),Ri(ge(Re,gi(!0,!0,!0)),he))}function g3(he,Re,nt,Lt=!1){const vi=de(),Xi=m_(he);let zu;if(Xi.kind===286){let Kr=Rw(Xi),Nr;const _r=Kr[Kr.length-1];if((_r==null?void 0:_r.kind)===284&&!Ov(_r.openingElement.tagName,_r.closingElement.tagName)&&Ov(Xi.tagName,_r.closingElement.tagName)){const pa=_r.children.end,E0=Ri(k.createJsxElement(_r.openingElement,_r.children,Ri(k.createJsxClosingElement(Ri(J(""),pa,pa)),pa,pa)),_r.openingElement.pos,pa);Kr=Ka([...Kr.slice(0,Kr.length-1),E0],Kr.pos,pa),Nr=_r.closingElement}else Nr=k9(Xi,he),Ov(Xi.tagName,Nr.tagName)||(nt&&rE(nt)&&Ov(Nr.tagName,nt.tagName)?te(Xi.tagName,F.JSX_element_0_has_no_corresponding_closing_tag,GN(Ke,Xi.tagName)):te(Nr.tagName,F.Expected_corresponding_JSX_closing_tag_for_0,GN(Ke,Xi.tagName)));zu=Ri(k.createJsxElement(Xi,Kr,Nr),vi)}else Xi.kind===289?zu=Ri(k.createJsxFragment(Xi,Rw(Xi),np(he)),vi):(H.assert(Xi.kind===285),zu=Xi);if(!Lt&&he&&X()===30){const Kr=typeof Re>"u"?zu.pos:Re,Nr=Rr(()=>g3(!0,Kr));if(Nr){const _r=ll(28,!1);return BP(_r,Nr.pos,0),le(ms(Ke,Kr),Nr.end,F.JSX_expressions_must_have_one_parent_element),Ri(k.createBinaryExpression(zu,_r,Nr),vi)}}return zu}function Iw(){const he=de(),Re=k.createJsxText(u.getTokenValue(),ti===13);return ti=u.scanJsxToken(),Ri(Re,he)}function f_(he,Re){switch(Re){case 1:if(O7(he))te(he,F.JSX_fragment_has_no_corresponding_closing_tag);else{const nt=he.tagName,Lt=Math.min(ms(Ke,nt.pos),nt.end);le(Lt,nt.end,F.JSX_element_0_has_no_corresponding_closing_tag,GN(Ke,he.tagName))}return;case 31:case 7:return;case 12:case 13:return Iw();case 19:return b9(!1);case 30:return g3(!1,void 0,he);default:return H.assertNever(Re)}}function Rw(he){const Re=[],nt=de(),Lt=ji;for(ji|=16384;;){const vi=f_(he,ti=u.reScanJsxToken());if(!vi||(Re.push(vi),rE(he)&&(vi==null?void 0:vi.kind)===284&&!Ov(vi.openingElement.tagName,vi.closingElement.tagName)&&Ov(he.tagName,vi.closingElement.tagName)))break}return ji=Lt,Ka(Re,nt)}function pE(){const he=de();return Ri(k.createJsxAttributes(Bo(13,oz)),he)}function m_(he){const Re=de();if(An(30),X()===32)return da(),Ri(k.createJsxOpeningFragment(),Re);const nt=B5(),Lt=Un&524288?void 0:c6(),vi=pE();let Xi;return X()===32?(da(),Xi=k.createJsxOpeningElement(nt,Lt,vi)):(An(44),An(32,void 0,!1)&&(he?ct():da()),Xi=k.createJsxSelfClosingElement(nt,Lt,vi)),Ri(Xi,Re)}function B5(){const he=de(),Re=Ow();if(mg(Re))return Re;let nt=Re;for(;so(25);)nt=Ri(ge(nt,gi(!0,!1,!1)),he);return nt}function Ow(){const he=de();tr();const Re=X()===110,nt=$();return so(59)?(tr(),Ri(k.createJsxNamespacedName(nt,$()),he)):Re?Ri(k.createToken(110),he):nt}function b9(he){const Re=de();if(!An(19))return;let nt,Lt;return X()!==20&&(he||(nt=Vo(26)),Lt=t1()),he?An(20):An(20,void 0,!1)&&da(),Ri(k.createJsxExpression(nt,Lt),Re)}function oz(){if(X()===19)return mb();const he=de();return Ri(k.createJsxAttribute(S0(),y9()),he)}function y9(){if(X()===64){if(Wu()===11)return ur();if(X()===19)return b9(!0);if(X()===30)return g3(!0);Yi(F.or_JSX_element_expected)}}function S0(){const he=de();tr();const Re=$();return so(59)?(tr(),Ri(k.createJsxNamespacedName(Re,$()),he)):Re}function mb(){const he=de();An(19),An(26);const Re=t1();return An(20),Ri(k.createJsxSpreadAttribute(Re),he)}function k9(he,Re){const nt=de();An(31);const Lt=B5();return An(32,void 0,!1)&&(Re||!Ov(he.tagName,Lt)?ct():da()),Ri(k.createJsxClosingElement(Lt),nt)}function np(he){const Re=de();return An(31),An(32,F.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(he?ct():da()),Ri(k.createJsxJsxClosingFragment(),Re)}function aC(){H.assert(Ie!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const he=de();An(30);const Re=Rd();An(32);const nt=bh();return Ri(k.createTypeAssertion(Re,nt),he)}function F9(){return ct(),hh(X())||X()===23||sf()}function sz(){return X()===29&&Tn(F9)}function tF(he){if(he.flags&64)return!0;if(I7(he)){let Re=he.expression;for(;I7(Re)&&!(Re.flags&64);)Re=Re.expression;if(Re.flags&64){for(;I7(he);)he.flags|=64,he=he.expression;return!0}}return!1}function au(he,Re,nt){const Lt=gi(!0,!0,!0),vi=nt||tF(Re),Xi=vi?ae(Re,nt,Lt):ge(Re,Lt);if(vi&&Xr(Xi.name)&&te(Xi.name,F.An_optional_chain_cannot_contain_private_identifiers),l5(Re)&&Re.typeArguments){const zu=Re.typeArguments.pos-1,Kr=ms(Ke,Re.typeArguments.end)+1;le(zu,Kr,F.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Ri(Xi,he)}function x1(he,Re,nt){let Lt;if(X()===24)Lt=ll(80,!0,F.An_element_access_expression_should_take_an_argument);else{const Xi=Qe(t1);Nm(Xi)&&(Xi.text=$c(Xi.text)),Lt=Xi}An(24);const vi=nt||tF(Re)?ne(Re,nt,Lt):Ce(Re,Lt);return Ri(vi,he)}function Pa(he,Re,nt){for(;;){let Lt,vi=!1;if(nt&&sz()?(Lt=$0(29),vi=hh(X())):vi=so(25),vi){Re=au(he,Re,Lt);continue}if((Lt||!pi())&&so(23)){Re=x1(he,Re,Lt);continue}if(sf()){Re=!Lt&&Re.kind===233?gE(he,Re.expression,Lt,Re.typeArguments):gE(he,Re,Lt,void 0);continue}if(!Lt){if(X()===54&&!u.hasPrecedingLineBreak()){ct(),Re=Ri(k.createNonNullExpression(Re),he);continue}const Xi=Rr(pb);if(Xi){Re=Ri(k.createExpressionWithTypeArguments(Re,Xi),he);continue}}return Re}}function sf(){return X()===15||X()===16}function gE(he,Re,nt,Lt){const vi=k.createTaggedTemplateExpression(Re,Lt,X()===15?(hu(!0),ur()):Q(!0));return(nt||Re.flags&64)&&(vi.flags|=64),vi.questionDotToken=nt,Ri(vi,he)}function up(he,Re){for(;;){Re=Pa(he,Re,!0);let nt;const Lt=Vo(29);if(Lt&&(nt=Rr(pb),sf())){Re=gE(he,Re,Lt,nt);continue}if(nt||X()===21){!Lt&&Re.kind===233&&(nt=Re.typeArguments,Re=Re.expression);const vi=Zn(),Xi=Lt||tF(Re)?Se(Re,Lt,nt,vi):ve(Re,nt,vi);Re=Ri(Xi,he);continue}if(Lt){const vi=ll(80,!1,F.Identifier_expected);Re=Ri(ae(Re,Lt,vi),he)}break}return Re}function Zn(){An(21);const he=I1(11,A9);return An(22),he}function pb(){if(Un&524288||Ru()!==30)return;ct();const he=I1(20,Rd);if($i()===32)return ct(),he&&oC()?he:void 0}function oC(){switch(X()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return u.hasPrecedingLineBreak()||eF()||!h3()}function Bd(){switch(X()){case 15:u.getTokenFlags()&26656&&hu(!1);case 9:case 10:case 11:return ur();case 110:case 108:case 106:case 112:case 97:return wc();case 21:return EE();case 23:return dD();case 19:return lC();case 134:if(!Tn(P0))break;return E3();case 60:return aF();case 86:return Ww();case 100:return E3();case 105:return iF();case 44:case 69:if(Bn()===14)return ur();break;case 16:return Q(!1);case 81:return ru()}return U0(F.Expression_expected)}function EE(){const he=de(),Re=Oe();An(21);const nt=Qe(t1);return An(22),Nn(Ri(pe(nt),he),Re)}function _E(){const he=de();An(26);const Re=Ch(!0);return Ri(k.createSpreadElement(Re),he)}function n6(){return X()===26?_E():X()===28?Ri(k.createOmittedExpression(),de()):Ch(!0)}function A9(){return Zo(s,n6)}function dD(){const he=de(),Re=u.getTokenStart(),nt=An(23),Lt=u.hasPrecedingLineBreak(),vi=I1(15,n6);return Dl(23,24,nt,Re),Ri(oe(vi,Lt),he)}function sC(){const he=de(),Re=Oe();if(Vo(26)){const pa=Ch(!0);return Nn(Ri(k.createSpreadAssignment(pa),he),Re)}const nt=O1(!0);if(Tu(139))return op(he,Re,nt,177,0);if(Tu(153))return op(he,Re,nt,178,0);const Lt=Vo(42),vi=So(),Xi=fn(),zu=Vo(58),Kr=Vo(54);if(Lt||X()===21||X()===30)return ap(he,Re,nt,Lt,Xi,zu,Kr);let Nr;if(vi&&X()!==59){const pa=Vo(64),E0=pa?Qe(()=>Ch(!0)):void 0;Nr=k.createShorthandPropertyAssignment(Xi,E0),Nr.equalsToken=pa}else{An(59);const pa=Qe(()=>Ch(!0));Nr=k.createPropertyAssignment(Xi,pa)}return Nr.modifiers=nt,Nr.questionToken=zu,Nr.exclamationToken=Kr,Nn(Ri(Nr,he),Re)}function lC(){const he=de(),Re=u.getTokenStart(),nt=An(19),Lt=u.hasPrecedingLineBreak(),vi=I1(12,sC,!0);return Dl(19,20,nt,Re),Ri(se(vi,Lt),he)}function E3(){const he=pi();ra(!1);const Re=de(),nt=Oe(),Lt=O1(!1);An(100);const vi=Vo(42),Xi=vi?1:0,zu=qe(Lt,jP)?2:0,Kr=Xi&&zu?ii(p_):Xi?Xt(p_):zu?et(p_):p_(),Nr=Xe(),_r=yu(Xi|zu),pa=yn(59,!1),E0=u6(Xi|zu);ra(he);const Us=k.createFunctionExpression(Lt,vi,Kr,Nr,_r,pa,E0);return Nn(Ri(Us,Re),nt)}function p_(){return rs()?of():void 0}function iF(){const he=de();if(An(105),so(25)){const Xi=vc();return Ri(k.createMetaProperty(105,Xi),he)}const Re=de();let nt=Pa(Re,Bd(),!1),Lt;nt.kind===233&&(Lt=nt.typeArguments,nt=nt.expression),X()===29&&Yi(F.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,GN(Ke,nt));const vi=X()===21?Zn():void 0;return Ri(Ne(nt,Lt,vi),he)}function hD(he,Re){const nt=de(),Lt=Oe(),vi=u.getTokenStart(),Xi=An(19,Re);if(Xi||he){const zu=u.hasPrecedingLineBreak(),Kr=Bo(1,Um);Dl(19,20,Xi,vi);const Nr=Nn(Ri(fe(Kr,zu),nt),Lt);return X()===64&&(Yi(F.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ct()),Nr}else{const zu=Kf();return Nn(Ri(fe(zu,void 0),nt),Lt)}}function u6(he,Re){const nt=_i();xa(!!(he&1));const Lt=Ji();wa(!!(he&2));const vi=rn;rn=!1;const Xi=pi();Xi&&ra(!1);const zu=hD(!!(he&16),Re);return Xi&&ra(!0),rn=vi,xa(nt),wa(Lt),zu}function gb(){const he=de(),Re=Oe();return An(27),Nn(Ri(k.createEmptyStatement(),he),Re)}function S9(){const he=de(),Re=Oe();An(101);const nt=u.getTokenStart(),Lt=An(21),vi=Qe(t1);Dl(21,22,Lt,nt);const Xi=Um(),zu=so(93)?Um():void 0;return Nn(Ri(We(vi,Xi,zu),he),Re)}function nF(){const he=de(),Re=Oe();An(92);const nt=Um();An(117);const Lt=u.getTokenStart(),vi=An(21),Xi=Qe(t1);return Dl(21,22,vi,Lt),so(27),Nn(Ri(k.createDoStatement(nt,Xi),he),Re)}function Eb(){const he=de(),Re=Oe();An(117);const nt=u.getTokenStart(),Lt=An(21),vi=Qe(t1);Dl(21,22,Lt,nt);const Xi=Um();return Nn(Ri(Ae(vi,Xi),he),Re)}function g4(){const he=de(),Re=Oe();An(99);const nt=Vo(135);An(21);let Lt;X()!==27&&(X()===115||X()===121||X()===87||X()===160&&Tn(fD)||X()===135&&Tn(T9)?Lt=vb(!0):Lt=Et(t1));let vi;if(nt?An(165):so(165)){const Xi=Qe(()=>Ch(!0));An(22),vi=He(nt,Lt,Xi,Um())}else if(so(103)){const Xi=Qe(t1);An(22),vi=k.createForInStatement(Lt,Xi,Um())}else{An(27);const Xi=X()!==27&&X()!==22?Qe(t1):void 0;An(27);const zu=X()!==22?Qe(t1):void 0;An(22),vi=De(Lt,Xi,zu,Um())}return Nn(Ri(vi,he),Re)}function cC(he){const Re=de(),nt=Oe();An(he===252?83:88);const Lt=Tc()?void 0:U0();sl();const vi=he===252?k.createBreakStatement(Lt):k.createContinueStatement(Lt);return Nn(Ri(vi,Re),nt)}function bc(){const he=de(),Re=Oe();An(107);const nt=Tc()?void 0:Qe(t1);return sl(),Nn(Ri(k.createReturnStatement(nt),he),Re)}function hd(){const he=de(),Re=Oe();An(118);const nt=u.getTokenStart(),Lt=An(21),vi=Qe(t1);Dl(21,22,Lt,nt);const Xi=vo(67108864,Um);return Nn(Ri(k.createWithStatement(vi,Xi),he),Re)}function B9(){const he=de(),Re=Oe();An(84);const nt=Qe(t1);An(59);const Lt=Bo(3,Um);return Nn(Ri(k.createCaseClause(nt,Lt),he),Re)}function R1(){const he=de();An(90),An(59);const Re=Bo(3,Um);return Ri(k.createDefaultClause(Re),he)}function kf(){return X()===84?B9():R1()}function _b(){const he=de();An(19);const Re=Bo(2,kf);return An(20),Ri(k.createCaseBlock(Re),he)}function E4(){const he=de(),Re=Oe();An(109),An(21);const nt=Qe(t1);An(22);const Lt=_b();return Nn(Ri(k.createSwitchStatement(nt,Lt),he),Re)}function dC(){const he=de(),Re=Oe();An(111);let nt=u.hasPrecedingLineBreak()?void 0:Qe(t1);return nt===void 0&&(Li++,nt=Ri(J(""),de())),zl()||Za(nt),Nn(Ri(k.createThrowStatement(nt),he),Re)}function w5(){const he=de(),Re=Oe();An(113);const nt=hD(!1),Lt=X()===85?i1():void 0;let vi;return(!Lt||X()===98)&&(An(98,F.catch_or_finally_expected),vi=hD(!1)),Nn(Ri(k.createTryStatement(nt,Lt,vi),he),Re)}function i1(){const he=de();An(85);let Re;so(21)?(Re=lf(),An(22)):Re=void 0;const nt=hD(!1);return Ri(k.createCatchClause(Re,nt),he)}function uF(){const he=de(),Re=Oe();return An(89),sl(),Nn(Ri(k.createDebuggerStatement(),he),Re)}function rp(){const he=de();let Re=Oe(),nt;const Lt=X()===21,vi=Qe(t1);return at(vi)&&so(59)?nt=k.createLabeledStatement(vi,Um()):(zl()||Za(vi),nt=Be(vi),Lt&&(Re=!1)),Nn(Ri(nt,he),Re)}function r6(){return ct(),hh(X())&&!u.hasPrecedingLineBreak()}function jw(){return ct(),X()===86&&!u.hasPrecedingLineBreak()}function P0(){return ct(),X()===100&&!u.hasPrecedingLineBreak()}function Vw(){return ct(),(hh(X())||X()===9||X()===10||X()===11)&&!u.hasPrecedingLineBreak()}function rF(){for(;;)switch(X()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return Em();case 135:return a6();case 120:case 156:return A5();case 144:case 145:return P9();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const he=X();if(ct(),u.hasPrecedingLineBreak())return!1;if(he===138&&X()===156)return!0;continue;case 162:return ct(),X()===19||X()===80||X()===95;case 102:return ct(),X()===11||X()===42||X()===19||hh(X());case 95:let Re=ct();if(Re===156&&(Re=Tn(ct)),Re===64||Re===42||Re===19||Re===90||Re===130||Re===60)return!0;continue;case 126:ct();continue;default:return!1}}function hC(){return Tn(rF)}function w9(){switch(X()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return hC()||Tn(ab);case 87:case 95:return hC();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return hC()||!Tn(r6);default:return h3()}}function Vh(){return ct(),rs()||X()===19||X()===23}function _3(){return Tn(Vh)}function fD(){return Db(!0)}function Db(he){return ct(),he&&X()===165?!1:(rs()||X()===19)&&!u.hasPrecedingLineBreak()}function Em(){return Tn(Db)}function T9(he){return ct()===160?Db(he):!1}function a6(){return Tn(T9)}function Um(){switch(X()){case 27:return gb();case 19:return hD(!1);case 115:return mC(de(),Oe(),void 0);case 121:if(_3())return mC(de(),Oe(),void 0);break;case 135:if(a6())return mC(de(),Oe(),void 0);break;case 160:if(Em())return mC(de(),Oe(),void 0);break;case 100:return Cb(de(),Oe(),void 0);case 86:return D4(de(),Oe(),void 0);case 101:return S9();case 92:return nF();case 117:return Eb();case 99:return g4();case 88:return cC(251);case 83:return cC(252);case 107:return bc();case 118:return hd();case 109:return E4();case 111:return dC();case 113:case 85:case 98:return w5();case 89:return uF();case 60:return T5();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(hC())return T5();break}return rp()}function xb(he){return he.kind===138}function T5(){const he=de(),Re=Oe(),nt=O1(!0);if(qe(nt,xb)){const vi=lz(he);if(vi)return vi;for(const Xi of nt)Xi.flags|=33554432;return vo(33554432,()=>L9(he,Re,nt))}else return L9(he,Re,nt)}function lz(he){return vo(33554432,()=>{const Re=hc(ji,he);if(Re)return xl(Re)})}function L9(he,Re,nt){switch(X()){case 115:case 121:case 87:case 160:case 135:return mC(he,Re,nt);case 100:return Cb(he,Re,nt);case 86:return D4(he,Re,nt);case 120:return Vt(he,Re,nt);case 156:return Oi(he,Re,nt);case 94:return Jr(he,Re,nt);case 162:case 144:case 145:return Ff(he,Re,nt);case 102:return N5(he,Re,nt);case 95:switch(ct(),X()){case 90:case 64:return cte(he,Re,nt);case 130:return d6(he,Re,nt);default:return _C(he,Re,nt)}default:if(nt){const Lt=ll(282,!0,F.Declaration_expected);return SP(Lt,he),Lt.modifiers=nt,Lt}return}}function N9(){return ct()===11}function P9(){return ct(),!u.hasPrecedingLineBreak()&&(So()||X()===11)}function fC(he,Re){if(X()!==19){if(he&4){_u();return}if(Tc()){sl();return}}return u6(he,Re)}function Jf(){const he=de();if(X()===28)return Ri(k.createOmittedExpression(),he);const Re=Vo(26),nt=Du(),Lt=p4();return Ri(k.createBindingElement(Re,void 0,nt,Lt),he)}function D3(){const he=de(),Re=Vo(26),nt=rs();let Lt=fn(),vi;nt&&X()!==59?(vi=Lt,Lt=void 0):(An(59),vi=Du());const Xi=p4();return Ri(k.createBindingElement(Re,Lt,vi,Xi),he)}function M9(){const he=de();An(19);const Re=Qe(()=>I1(9,D3));return An(20),Ri(k.createObjectBindingPattern(Re),he)}function z9(){const he=de();An(23);const Re=Qe(()=>I1(10,Jf));return An(24),Ri(k.createArrayBindingPattern(Re),he)}function Vs(){return X()===19||X()===23||X()===81||rs()}function Du(he){return X()===23?z9():X()===19?M9():of(he)}function _m(){return lf(!0)}function lf(he){const Re=de(),nt=Oe(),Lt=Du(F.Private_identifiers_are_not_allowed_in_variable_declarations);let vi;he&&Lt.kind===80&&X()===54&&!u.hasPrecedingLineBreak()&&(vi=wc());const Xi=k5(),zu=Xk(X())?void 0:p4(),Kr=Ge(Lt,vi,Xi,zu);return Nn(Ri(Kr,Re),nt)}function vb(he){const Re=de();let nt=0;switch(X()){case 115:break;case 121:nt|=1;break;case 87:nt|=2;break;case 160:nt|=4;break;case 135:H.assert(a6()),nt|=6,ct();break;default:H.fail()}ct();let Lt;if(X()===165&&Tn(Hw))Lt=Kf();else{const vi=mt();oa(he),Lt=I1(8,he?lf:_m),oa(vi)}return Ri(ft(Lt,nt),Re)}function Hw(){return Ih()&&ct()===22}function mC(he,Re,nt){const Lt=vb(!1);sl();const vi=xe(nt,Lt);return Nn(Ri(vi,he),Re)}function Cb(he,Re,nt){const Lt=Ji(),vi=eE(nt);An(100);const Xi=Vo(42),zu=vi&2048?p_():of(),Kr=Xi?1:0,Nr=vi&1024?2:0,_r=Xe();vi&32&&wa(!0);const pa=yu(Kr|Nr),E0=yn(59,!1),Us=fC(Kr|Nr,F.or_expected);wa(Lt);const Hs=k.createFunctionDeclaration(nt,Xi,zu,_r,pa,E0,Us);return Nn(Ri(Hs,he),Re)}function o6(){if(X()===137)return An(137);if(X()===11&&Tn(ct)===21)return Rr(()=>{const he=ur();return he.text==="constructor"?he:void 0})}function qm(he,Re,nt){return Rr(()=>{if(o6()){const Lt=Xe(),vi=yu(0),Xi=yn(59,!1),zu=fC(0,F.or_expected),Kr=k.createConstructorDeclaration(nt,vi,zu);return Kr.typeParameters=Lt,Kr.type=Xi,Nn(Ri(Kr,he),Re)}})}function ap(he,Re,nt,Lt,vi,Xi,zu,Kr){const Nr=Lt?1:0,_r=qe(nt,jP)?2:0,pa=Xe(),E0=yu(Nr|_r),Us=yn(59,!1),Hs=fC(Nr|_r,Kr),x4=k.createMethodDeclaration(nt,Lt,vi,Xi,pa,E0,Us,Hs);return x4.exclamationToken=zu,Nn(Ri(x4,he),Re)}function s6(he,Re,nt,Lt,vi){const Xi=!vi&&!u.hasPrecedingLineBreak()?Vo(54):void 0,zu=k5(),Kr=Zo(90112,p4);Sl(Lt,zu,Kr);const Nr=k.createPropertyDeclaration(nt,Lt,vi||Xi,zu,Kr);return Nn(Ri(Nr,he),Re)}function Gp(he,Re,nt){const Lt=Vo(42),vi=fn(),Xi=Vo(58);return Lt||X()===21||X()===30?ap(he,Re,nt,Lt,vi,Xi,void 0,F.or_expected):s6(he,Re,nt,vi,Xi)}function op(he,Re,nt,Lt,vi){const Xi=fn(),zu=Xe(),Kr=yu(0),Nr=yn(59,!1),_r=fC(vi),pa=Lt===177?k.createGetAccessorDeclaration(nt,Xi,Kr,Nr,_r):k.createSetAccessorDeclaration(nt,Xi,Kr,_r);return pa.typeParameters=zu,Of(pa)&&(pa.type=Nr),Nn(Ri(pa,he),Re)}function L5(){let he;if(X()===60)return!0;for(;QD(X());){if(he=X(),Use(he))return!0;ct()}if(X()===42||(tt()&&(he=X(),ct()),X()===23))return!0;if(he!==void 0){if(!nf(he)||he===153||he===139)return!0;switch(X()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Tc()}}return!1}function bb(he,Re,nt){$0(126);const Lt=Nc(),vi=Nn(Ri(k.createClassStaticBlockDeclaration(Lt),he),Re);return vi.modifiers=nt,vi}function Nc(){const he=_i(),Re=Ji();xa(!1),wa(!0);const nt=hD(!1);return xa(he),wa(Re),nt}function cz(){if(Ji()&&X()===135){const he=de(),Re=U0(F.Expression_expected);ct();const nt=Pa(he,Re,!0);return up(he,nt)}return p3()}function _4(){const he=de();if(!so(60))return;const Re=Pe(cz);return Ri(k.createDecorator(Re),he)}function Kw(he,Re,nt){const Lt=de(),vi=X();if(X()===87&&Re){if(!Rr(Pr))return}else{if(nt&&X()===126&&Tn(xE))return;if(he&&X()===126)return;if(!id())return}return Ri(Y(vi),Lt)}function O1(he,Re,nt){const Lt=de();let vi,Xi,zu,Kr=!1,Nr=!1,_r=!1;if(he&&X()===60)for(;Xi=_4();)vi=Ei(vi,Xi);for(;zu=Kw(Kr,Re,nt);)zu.kind===126&&(Kr=!0),vi=Ei(vi,zu),Nr=!0;if(Nr&&he&&X()===60)for(;Xi=_4();)vi=Ei(vi,Xi),_r=!0;if(_r)for(;zu=Kw(Kr,Re,nt);)zu.kind===126&&(Kr=!0),vi=Ei(vi,zu);return vi&&Ka(vi,Lt)}function pC(){let he;if(X()===134){const Re=de();ct();const nt=Ri(Y(134),Re);he=Ka([nt],Re)}return he}function yb(){const he=de(),Re=Oe();if(X()===27)return ct(),Nn(Ri(k.createSemicolonClassElement(),he),Re);const nt=O1(!0,!0,!0);if(X()===126&&Tn(xE))return bb(he,Re,nt);if(Tu(139))return op(he,Re,nt,177,0);if(Tu(153))return op(he,Re,nt,178,0);if(X()===137||X()===11){const Lt=qm(he,Re,nt);if(Lt)return Lt}if(m0())return Wf(he,Re,nt);if(hh(X())||X()===11||X()===9||X()===42||X()===23)if(qe(nt,xb)){for(const vi of nt)vi.flags|=33554432;return vo(33554432,()=>Gp(he,Re,nt))}else return Gp(he,Re,nt);if(nt){const Lt=ll(80,!0,F.Declaration_expected);return s6(he,Re,nt,Lt,void 0)}return H.fail("Should not have attempted to parse class member declaration.")}function aF(){const he=de(),Re=Oe(),nt=O1(!0);if(X()===86)return Rl(he,Re,nt,231);const Lt=ll(282,!0,F.Expression_expected);return SP(Lt,he),Lt.modifiers=nt,Lt}function Ww(){return Rl(de(),Oe(),void 0,231)}function D4(he,Re,nt){return Rl(he,Re,nt,263)}function Rl(he,Re,nt,Lt){const vi=Ji();An(86);const Xi=DE(),zu=Xe();qe(nt,w7)&&wa(!0);const Kr=x3();let Nr;An(19)?(Nr=be(),An(20)):Nr=Kf(),wa(vi);const _r=Lt===263?k.createClassDeclaration(nt,Xi,zu,Kr,Nr):k.createClassExpression(nt,Xi,zu,Kr,Nr);return Nn(Ri(_r,he),Re)}function DE(){return rs()&&!l6()?vh(rs()):void 0}function l6(){return X()===119&&Tn(nh)}function x3(){if(O())return Bo(22,gC)}function gC(){const he=de(),Re=X();H.assert(Re===96||Re===119),ct();const nt=I1(7,Gw);return Ri(k.createHeritageClause(Re,nt),he)}function Gw(){const he=de(),Re=p3();if(Re.kind===233)return Re;const nt=c6();return Ri(k.createExpressionWithTypeArguments(Re,nt),he)}function c6(){return X()===30?Oh(20,Rd,30,32):void 0}function O(){return X()===96||X()===119}function be(){return Bo(5,yb)}function Vt(he,Re,nt){An(120);const Lt=U0(),vi=Xe(),Xi=x3(),zu=Gk(),Kr=k.createInterfaceDeclaration(nt,Lt,vi,Xi,zu);return Nn(Ri(Kr,he),Re)}function Oi(he,Re,nt){An(156),u.hasPrecedingLineBreak()&&Yi(F.Line_break_not_permitted_here);const Lt=U0(),vi=Xe();An(64);const Xi=X()===141&&Rr($k)||Rd();sl();const zu=k.createTypeAliasDeclaration(nt,Lt,vi,Xi);return Nn(Ri(zu,he),Re)}function ku(){const he=de(),Re=Oe(),nt=fn(),Lt=Qe(p4);return Nn(Ri(k.createEnumMember(nt,Lt),he),Re)}function Jr(he,Re,nt){An(94);const Lt=U0();let vi;An(19)?(vi=me(()=>I1(6,ku)),An(20)):vi=Kf();const Xi=k.createEnumDeclaration(nt,Lt,vi);return Nn(Ri(Xi,he),Re)}function br(){const he=de();let Re;return An(19)?(Re=Bo(1,Um),An(20)):Re=Kf(),Ri(k.createModuleBlock(Re),he)}function _a(he,Re,nt,Lt){const vi=Lt&32,Xi=Lt&8?vc():U0(),zu=so(25)?_a(de(),!1,void 0,8|vi):br(),Kr=k.createModuleDeclaration(nt,Xi,zu,Lt);return Nn(Ri(Kr,he),Re)}function ko(he,Re,nt){let Lt=0,vi;X()===162?(vi=U0(),Lt|=2048):(vi=ur(),vi.text=$c(vi.text));let Xi;X()===19?Xi=br():sl();const zu=k.createModuleDeclaration(nt,vi,Xi,Lt);return Nn(Ri(zu,he),Re)}function Ff(he,Re,nt){let Lt=0;if(X()===162)return ko(he,Re,nt);if(so(145))Lt|=32;else if(An(144),X()===11)return ko(he,Re,nt);return _a(he,Re,nt,Lt)}function $f(){return X()===149&&Tn(Sr)}function Sr(){return ct()===21}function xE(){return ct()===19}function gn(){return ct()===44}function d6(he,Re,nt){An(130),An(145);const Lt=U0();sl();const vi=k.createNamespaceExportDeclaration(Lt);return vi.modifiers=nt,Nn(Ri(vi,he),Re)}function N5(he,Re,nt){An(102);const Lt=u.getTokenFullStart();let vi;So()&&(vi=U0());let Xi=!1;if(X()!==161&&(vi==null?void 0:vi.escapedText)==="type"&&(So()||I9())&&(Xi=!0,vi=So()?U0():void 0),vi&&!sF())return g_(he,Re,nt,vi,Xi);let zu;(vi||X()===42||X()===19)&&(zu=P5(vi,Lt,Xi),An(161));const Kr=R9(),Nr=X();let _r;(Nr===118||Nr===132)&&!u.hasPrecedingLineBreak()&&(_r=EC(Nr)),sl();const pa=k.createImportDeclaration(nt,zu,Kr,_r);return Nn(Ri(pa,he),Re)}function oF(){const he=de(),Re=hh(X())?vc():Il(11);An(59);const nt=Ch(!0);return Ri(k.createImportAttribute(Re,nt),he)}function EC(he,Re){const nt=de();Re||An(he);const Lt=u.getTokenStart();if(An(19)){const vi=u.hasPrecedingLineBreak(),Xi=I1(24,oF,!0);if(!An(20)){const zu=Yu(st);zu&&zu.code===F._0_expected.code&&ps(zu,cB(Ze,Ke,Lt,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ri(k.createImportAttributes(Xi,vi,he),nt)}else{const vi=Ka([],de(),void 0,!1);return Ri(k.createImportAttributes(vi,!1,he),nt)}}function I9(){return X()===42||X()===19}function sF(){return X()===28||X()===161}function g_(he,Re,nt,Lt,vi){An(64);const Xi=v3();sl();const zu=k.createImportEqualsDeclaration(nt,vi,Lt,Xi);return Nn(Ri(zu,he),Re)}function P5(he,Re,nt){let Lt;return(!he||so(28))&&(Lt=X()===42?UK():dz(275)),Ri(k.createImportClause(nt,he,Lt),Re)}function v3(){return $f()?Jw():Ee(!1)}function Jw(){const he=de();An(149),An(21);const Re=R9();return An(22),Ri(k.createExternalModuleReference(Re),he)}function R9(){if(X()===11){const he=ur();return he.text=$c(he.text),he}else return t1()}function UK(){const he=de();An(42),An(130);const Re=U0();return Ri(k.createNamespaceImport(Re),he)}function dz(he){const Re=de(),nt=he===275?k.createNamedImports(Oh(23,mD,19,20)):k.createNamedExports(Oh(23,E_,19,20));return Ri(nt,Re)}function E_(){const he=Oe();return Nn($w(281),he)}function mD(){return $w(276)}function $w(he){const Re=de();let nt=nf(X())&&!So(),Lt=u.getTokenStart(),vi=u.getTokenEnd(),Xi=!1,zu,Kr=!0,Nr=vc();if(Nr.escapedText==="type")if(X()===130){const E0=vc();if(X()===130){const Us=vc();hh(X())?(Xi=!0,zu=E0,Nr=pa(),Kr=!1):(zu=Nr,Nr=Us,Kr=!1)}else hh(X())?(zu=Nr,Kr=!1,Nr=pa()):(Xi=!0,Nr=E0)}else hh(X())&&(Xi=!0,Nr=pa());Kr&&X()===130&&(zu=Nr,An(130),Nr=pa()),he===276&&nt&&le(Lt,vi,F.Identifier_expected);const _r=he===276?k.createImportSpecifier(Xi,zu,Nr):k.createExportSpecifier(Xi,zu,Nr);return Ri(_r,Re);function pa(){return nt=nf(X())&&!So(),Lt=u.getTokenStart(),vi=u.getTokenEnd(),vc()}}function __(he){return Ri(k.createNamespaceExport(vc()),he)}function _C(he,Re,nt){const Lt=Ji();wa(!0);let vi,Xi,zu;const Kr=so(156),Nr=de();so(42)?(so(130)&&(vi=__(Nr)),An(161),Xi=R9()):(vi=dz(279),(X()===161||X()===11&&!u.hasPrecedingLineBreak())&&(An(161),Xi=R9()));const _r=X();Xi&&(_r===118||_r===132)&&!u.hasPrecedingLineBreak()&&(zu=EC(_r)),sl(),wa(Lt);const pa=k.createExportDeclaration(nt,Kr,vi,Xi,zu);return Nn(Ri(pa,he),Re)}function cte(he,Re,nt){const Lt=Ji();wa(!0);let vi;so(64)?vi=!0:An(90);const Xi=Ch(!0);sl(),wa(Lt);const zu=k.createExportAssignment(nt,vi,Xi);return Nn(Ri(zu,he),Re)}let vE;(he=>{he[he.SourceElements=0]="SourceElements",he[he.BlockStatements=1]="BlockStatements",he[he.SwitchClauses=2]="SwitchClauses",he[he.SwitchClauseStatements=3]="SwitchClauseStatements",he[he.TypeMembers=4]="TypeMembers",he[he.ClassMembers=5]="ClassMembers",he[he.EnumMembers=6]="EnumMembers",he[he.HeritageClauseElement=7]="HeritageClauseElement",he[he.VariableDeclarations=8]="VariableDeclarations",he[he.ObjectBindingElements=9]="ObjectBindingElements",he[he.ArrayBindingElements=10]="ArrayBindingElements",he[he.ArgumentExpressions=11]="ArgumentExpressions",he[he.ObjectLiteralMembers=12]="ObjectLiteralMembers",he[he.JsxAttributes=13]="JsxAttributes",he[he.JsxChildren=14]="JsxChildren",he[he.ArrayLiteralMembers=15]="ArrayLiteralMembers",he[he.Parameters=16]="Parameters",he[he.JSDocParameters=17]="JSDocParameters",he[he.RestProperties=18]="RestProperties",he[he.TypeParameters=19]="TypeParameters",he[he.TypeArguments=20]="TypeArguments",he[he.TupleElementTypes=21]="TupleElementTypes",he[he.HeritageClauses=22]="HeritageClauses",he[he.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",he[he.ImportAttributes=24]="ImportAttributes",he[he.JSDocComment=25]="JSDocComment",he[he.Count=26]="Count"})(vE||(vE={}));let lF;(he=>{he[he.False=0]="False",he[he.True=1]="True",he[he.Unknown=2]="Unknown"})(lF||(lF={}));let qK;(he=>{function Re(_r,pa,E0){Fr("file.js",_r,99,void 0,1,0),u.setText(_r,pa,E0),ti=u.scan();const Us=nt(),Hs=bn("file.js",99,1,!1,[],Y(1),0,Ms),x4=D7(st,Hs);return St&&(Hs.jsDocDiagnostics=D7(St,Hs)),Ba(),Us?{jsDocTypeExpression:Us,diagnostics:x4}:void 0}he.parseJSDocTypeExpressionForTests=Re;function nt(_r){const pa=de(),E0=(_r?so:An)(19),Us=vo(16777216,vg);(!_r||E0)&&cd(20);const Hs=k.createJSDocTypeExpression(Us);return Dn(Hs),Ri(Hs,pa)}he.parseJSDocTypeExpression=nt;function Lt(){const _r=de(),pa=so(19),E0=de();let Us=Ee(!1);for(;X()===81;)Er(),Qt(),Us=Ri(k.createJSDocMemberName(Us,U0()),E0);pa&&cd(20);const Hs=k.createJSDocNameReference(Us);return Dn(Hs),Ri(Hs,_r)}he.parseJSDocNameReference=Lt;function vi(_r,pa,E0){Fr("",_r,99,void 0,1,0);const Us=vo(16777216,()=>Nr(pa,E0)),x4=D7(st,{languageVariant:0,text:_r});return Ba(),Us?{jsDoc:Us,diagnostics:x4}:void 0}he.parseIsolatedJSDocComment=vi;function Xi(_r,pa,E0){const Us=ti,Hs=st.length,x4=Ni,Jp=vo(16777216,()=>Nr(pa,E0));return bs(Jp,_r),Un&524288&&(St||(St=[]),St.push(...st)),ti=Us,st.length=Hs,Ni=x4,Jp}he.parseJSDocComment=Xi;let zu;(_r=>{_r[_r.BeginningOfLine=0]="BeginningOfLine",_r[_r.SawAsterisk=1]="SawAsterisk",_r[_r.SavingComments=2]="SavingComments",_r[_r.SavingBackticks=3]="SavingBackticks"})(zu||(zu={}));let Kr;(_r=>{_r[_r.Property=1]="Property",_r[_r.Parameter=2]="Parameter",_r[_r.CallbackParameter=4]="CallbackParameter"})(Kr||(Kr={}));function Nr(_r=0,pa){const E0=Ke,Us=pa===void 0?E0.length:_r+pa;if(pa=Us-_r,H.assert(_r>=0),H.assert(_r<=Us),H.assert(Us<=E0.length),!Gce(E0,_r))return;let Hs,x4,Jp,h6,C3,Od=[];const pD=[],hz=ji;ji|=1<<25;const Uw=u.scanRange(_r+3,pa-5,qw);return ji=hz,Uw;function qw(){let sn=1,er,Hu=_r-(E0.lastIndexOf(` -`,_r)+1)+4;function jr(_0){er||(er=Hu),Od.push(_0),Hu+=_0.length}for(Qt();kb(5););kb(4)&&(sn=0,Hu=0);e:for(;;){switch(X()){case 60:dte(Od),C3||(C3=de()),hte(pz(Hu)),sn=0,er=void 0;break;case 4:Od.push(u.getTokenText()),sn=0,Hu=0;break;case 42:const _0=u.getTokenText();sn===1?(sn=2,jr(_0)):(H.assert(sn===0),sn=1,Hu+=_0.length);break;case 5:H.assert(sn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const Uc=u.getTokenText();er!==void 0&&Hu+Uc.length>er&&Od.push(Uc.slice(er-Hu)),Hu+=Uc.length;break;case 1:break e;case 82:sn=2,jr(u.getTokenValue());break;case 19:sn=2;const ED=u.getTokenFullStart(),x_=u.getTokenEnd()-1,qc=Ns(x_);if(qc){h6||fz(Od),pD.push(Ri(k.createJSDocText(Od.join("")),h6??_r,ED)),pD.push(qc),Od=[],h6=u.getTokenEnd();break}default:sn=2,jr(u.getTokenText());break}sn===2?Ti(!1):Qt()}const Hr=Od.join("").trimEnd();pD.length&&Hr.length&&pD.push(Ri(k.createJSDocText(Hr),h6??_r,C3)),pD.length&&Hs&&H.assertIsDefined(C3,"having parsed tags implies that the end of the comment span should be set");const zs=Hs&&Ka(Hs,x4,Jp);return Ri(k.createJSDocComment(pD.length?Ka(pD,_r,C3):Hr.length?Hr:void 0,zs),_r,Us)}function fz(sn){for(;sn.length&&(sn[0]===` -`||sn[0]==="\r");)sn.shift()}function dte(sn){for(;sn.length;){const er=sn[sn.length-1].trimEnd();if(er==="")sn.pop();else if(er.lengthUc&&(jr.push(M5.slice(Uc-sn)),_0=2),sn+=M5.length;break;case 19:_0=2;const ZK=u.getTokenFullStart(),Xw=u.getTokenEnd()-1,fF=Ns(Xw);fF?(Hr.push(Ri(k.createJSDocText(jr.join("")),zs??Hu,ZK)),Hr.push(fF),jr=[],zs=u.getTokenEnd()):ED(u.getTokenText());break;case 62:_0===3?_0=2:_0=3,ED(u.getTokenText());break;case 82:_0!==3&&(_0=2),ED(u.getTokenValue());break;case 42:if(_0===0){_0=1,sn+=1;break}default:_0!==3&&(_0=2),ED(u.getTokenText());break}_0===2||_0===3?x_=Ti(_0===3):x_=Qt()}fz(jr);const qc=jr.join("").trimEnd();if(Hr.length)return qc.length&&Hr.push(Ri(k.createJSDocText(qc),zs??Hu)),Ka(Hr,Hu,u.getTokenEnd());if(qc.length)return qc}function Ns(sn){const er=Rr(Pc);if(!er)return;Qt(),Zm();const Hu=de();let jr=hh(X())?Ee(!0):void 0;if(jr)for(;X()===81;)Er(),Qt(),jr=Ri(k.createJSDocMemberName(jr,U0()),Hu);const Hr=[];for(;X()!==20&&X()!==4&&X()!==1;)Hr.push(u.getTokenText()),Qt();const zs=er==="link"?k.createJSDocLink:er==="linkcode"?k.createJSDocLinkCode:k.createJSDocLinkPlain;return Ri(zs(jr,Hr.join("")),sn,u.getTokenEnd())}function Pc(){if(gD(),X()===19&&Qt()===60&&hh(Qt())){const sn=u.getTokenValue();if(f6(sn))return sn}}function f6(sn){return sn==="link"||sn==="linkcode"||sn==="linkplain"}function cF(sn,er,Hu,jr){return Ri(k.createJSDocUnknownTag(er,v4(sn,de(),Hu,jr)),sn)}function hte(sn){sn&&(Hs?Hs.push(sn):(Hs=[sn],x4=sn.pos),Jp=sn.end)}function D_(){return gD(),X()===19?nt():void 0}function O9(){const sn=kb(23);sn&&Zm();const er=kb(62),Hu=Ez();return er&&Ho(62),sn&&(Zm(),Vo(64)&&t1(),An(24)),{name:Hu,isBracketed:sn}}function N(sn){switch(sn.kind){case 151:return!0;case 188:return N(sn.elementType);default:return Y4(sn)&&at(sn.typeName)&&sn.typeName.escapedText==="Object"&&!sn.typeArguments}}function W(sn,er,Hu,jr){let Hr=D_(),zs=!Hr;gD();const{name:_0,isBracketed:Uc}=O9(),ED=gD();zs&&!Tn(Pc)&&(Hr=D_());const x_=v4(sn,de(),jr,ED),qc=ee(Hr,_0,Hu,jr);qc&&(Hr=qc,zs=!0);const M5=Hu===1?k.createJSDocPropertyTag(er,_0,Uc,Hr,zs,x_):k.createJSDocParameterTag(er,_0,Uc,Hr,zs,x_);return Ri(M5,sn)}function ee(sn,er,Hu,jr){if(sn&&N(sn.type)){const Hr=de();let zs,_0;for(;zs=Rr(()=>Jn(Hu,jr,er));)zs.kind===348||zs.kind===355?_0=Ei(_0,zs):zs.kind===352&&te(zs.tagName,F.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(_0){const Uc=Ri(k.createJSDocTypeLiteral(_0,sn.type.kind===188),Hr);return Ri(k.createJSDocTypeExpression(Uc),Hr)}}}function ke(sn,er,Hu,jr){qe(Hs,fY)&&le(er.pos,u.getTokenStart(),F._0_tag_already_specified,Yr(er.escapedText));const Hr=D_();return Ri(k.createJSDocReturnTag(er,Hr,v4(sn,de(),Hu,jr)),sn)}function dt(sn,er,Hu,jr){qe(Hs,QP)&&le(er.pos,u.getTokenStart(),F._0_tag_already_specified,Yr(er.escapedText));const Hr=nt(!0),zs=Hu!==void 0&&jr!==void 0?v4(sn,de(),Hu,jr):void 0;return Ri(k.createJSDocTypeTag(er,Hr,zs),sn)}function Si(sn,er,Hu,jr){const zs=X()===23||Tn(()=>Qt()===60&&hh(Qt())&&f6(u.getTokenValue()))?void 0:Lt(),_0=Hu!==void 0&&jr!==void 0?v4(sn,de(),Hu,jr):void 0;return Ri(k.createJSDocSeeTag(er,zs,_0),sn)}function ou(sn,er,Hu,jr){const Hr=D_(),zs=v4(sn,de(),Hu,jr);return Ri(k.createJSDocThrowsTag(er,Hr,zs),sn)}function Ma(sn,er,Hu,jr){const Hr=de(),zs=i0();let _0=u.getTokenFullStart();const Uc=v4(sn,_0,Hu,jr);Uc||(_0=u.getTokenFullStart());const ED=typeof Uc!="string"?Ka(an([Ri(zs,Hr,_0)],Uc),Hr):zs.text+Uc;return Ri(k.createJSDocAuthorTag(er,ED),sn)}function i0(){const sn=[];let er=!1,Hu=u.getToken();for(;Hu!==1&&Hu!==4;){if(Hu===30)er=!0;else{if(Hu===60&&!er)break;if(Hu===32&&er){sn.push(u.getTokenText()),u.resetTokenState(u.getTokenEnd());break}}sn.push(u.getTokenText()),Hu=Qt()}return k.createJSDocText(sn.join(""))}function Ym(sn,er,Hu,jr){const Hr=DC();return Ri(k.createJSDocImplementsTag(er,Hr,v4(sn,de(),Hu,jr)),sn)}function m6(sn,er,Hu,jr){const Hr=DC();return Ri(k.createJSDocAugmentsTag(er,Hr,v4(sn,de(),Hu,jr)),sn)}function p6(sn,er,Hu,jr){const Hr=nt(!1),zs=Hu!==void 0&&jr!==void 0?v4(sn,de(),Hu,jr):void 0;return Ri(k.createJSDocSatisfiesTag(er,Hr,zs),sn)}function DC(){const sn=so(19),er=de(),Hu=_ge();u.setInJSDocType(!0);const jr=c6();u.setInJSDocType(!1);const Hr=k.createExpressionWithTypeArguments(Hu,jr),zs=Ri(Hr,er);return sn&&An(20),zs}function _ge(){const sn=de();let er=Fb();for(;so(25);){const Hu=Fb();er=Ri(ge(er,Hu),sn)}return er}function dF(sn,er,Hu,jr,Hr){return Ri(er(Hu,v4(sn,de(),jr,Hr)),sn)}function gz(sn,er,Hu,jr){const Hr=nt(!0);return Zm(),Ri(k.createJSDocThisTag(er,Hr,v4(sn,de(),Hu,jr)),sn)}function ANe(sn,er,Hu,jr){const Hr=nt(!0);return Zm(),Ri(k.createJSDocEnumTag(er,Hr,v4(sn,de(),Hu,jr)),sn)}function Dge(sn,er,Hu,jr){let Hr=D_();gD();const zs=fte();Zm();let _0=Zw(Hu),Uc;if(!Hr||N(Hr.type)){let x_,qc,M5,ZK=!1;for(;(x_=Rr(()=>hF(Hu)))&&x_.kind!==352;)if(ZK=!0,x_.kind===351)if(qc){const Xw=Yi(F.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);Xw&&ps(Xw,cB(Ze,Ke,0,0,F.The_tag_was_first_specified_here));break}else qc=x_;else M5=Ei(M5,x_);if(ZK){const Xw=Hr&&Hr.type.kind===188,fF=k.createJSDocTypeLiteral(M5,Xw);Hr=qc&&qc.typeExpression&&!N(qc.typeExpression.type)?qc.typeExpression:Ri(fF,sn),Uc=Hr.end}}Uc=Uc||_0!==void 0?de():(zs??Hr??er).end,_0||(_0=v4(sn,Uc,Hu,jr));const ED=k.createJSDocTypedefTag(er,Hr,zs,_0);return Ri(ED,sn,Uc)}function fte(sn){const er=u.getTokenStart();if(!hh(X()))return;const Hu=Fb();if(so(25)){const jr=fte(!0),Hr=k.createModuleDeclaration(void 0,Hu,jr,sn?8:void 0);return Ri(Hr,er)}return sn&&(Hu.flags|=4096),Hu}function SNe(sn){const er=de();let Hu,jr;for(;Hu=Rr(()=>Jn(4,sn));){if(Hu.kind===352){te(Hu.tagName,F.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}jr=Ei(jr,Hu)}return Ka(jr||[],er)}function xge(sn,er){const Hu=SNe(er),jr=Rr(()=>{if(kb(60)){const Hr=pz(er);if(Hr&&Hr.kind===349)return Hr}});return Ri(k.createJSDocSignature(void 0,Hu,jr),sn)}function Yw(sn,er,Hu,jr){const Hr=fte();Zm();let zs=Zw(Hu);const _0=xge(sn,Hu);zs||(zs=v4(sn,de(),Hu,jr));const Uc=zs!==void 0?de():_0.end;return Ri(k.createJSDocCallbackTag(er,_0,Hr,zs),sn,Uc)}function vge(sn,er,Hu,jr){Zm();let Hr=Zw(Hu);const zs=xge(sn,Hu);Hr||(Hr=v4(sn,de(),Hu,jr));const _0=Hr!==void 0?de():zs.end;return Ri(k.createJSDocOverloadTag(er,zs,Hr),sn,_0)}function BNe(sn,er){for(;!at(sn)||!at(er);)if(!at(sn)&&!at(er)&&sn.right.escapedText===er.right.escapedText)sn=sn.left,er=er.left;else return!1;return sn.escapedText===er.escapedText}function hF(sn){return Jn(1,sn)}function Jn(sn,er,Hu){let jr=!0,Hr=!1;for(;;)switch(Qt()){case 60:if(jr){const zs=g6(sn,er);return zs&&(zs.kind===348||zs.kind===355)&&Hu&&(at(zs.name)||!BNe(Hu,zs.name.left))?!1:zs}Hr=!1;break;case 4:jr=!0,Hr=!1;break;case 42:Hr&&(jr=!1),Hr=!0;break;case 80:jr=!1;break;case 1:return!1}}function g6(sn,er){H.assert(X()===60);const Hu=u.getTokenFullStart();Qt();const jr=Fb(),Hr=gD();let zs;switch(jr.escapedText){case"type":return sn===1&&dt(Hu,jr);case"prop":case"property":zs=1;break;case"arg":case"argument":case"param":zs=6;break;case"template":return j9(Hu,jr,er,Hr);default:return!1}return sn&zs?W(Hu,jr,sn,er):!1}function xC(){const sn=de(),er=kb(23);er&&Zm();const Hu=Fb(F.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let jr;if(er&&(Zm(),An(64),jr=vo(16777216,vg),An(24)),!Yl(Hu))return Ri(k.createTypeParameterDeclaration(void 0,Hu,void 0,jr),sn)}function Qw(){const sn=de(),er=[];do{Zm();const Hu=xC();Hu!==void 0&&er.push(Hu),gD()}while(kb(28));return Ka(er,sn)}function j9(sn,er,Hu,jr){const Hr=X()===19?nt():void 0,zs=Qw();return Ri(k.createJSDocTemplateTag(er,Hr,zs,v4(sn,de(),Hu,jr)),sn)}function kb(sn){return X()===sn?(Qt(),!0):!1}function Ez(){let sn=Fb();for(so(23)&&An(24);so(25);){const er=Fb();so(23)&&An(24),sn=Bt(sn,er)}return sn}function Fb(sn){if(!hh(X()))return ll(80,!sn,sn||F.Identifier_expected);Li++;const er=u.getTokenStart(),Hu=u.getTokenEnd(),jr=X(),Hr=$c(u.getTokenValue()),zs=Ri(J(Hr,jr),er,Hu);return Qt(),zs}}})(qK=t.JSDocParser||(t.JSDocParser={}))})(jv||(jv={})),(t=>{function u(z,j,J,K){if(K=K||H.shouldAssert(2),k(z,j,J,K),T2e(J))return z;if(z.statements.length===0)return jv.parseSourceFile(z.fileName,j,z.languageVersion,void 0,!0,z.scriptKind,z.setExternalModuleIndicator,z.jsDocParsingMode);const Y=z;H.assert(!Y.hasBeenIncrementallyParsed),Y.hasBeenIncrementallyParsed=!0,jv.fixupParentReferences(Y);const oe=z.text,se=T(z),ge=b(z,J);k(z,j,ge,K),H.assert(ge.span.start<=J.span.start),H.assert(gc(ge.span)===gc(J.span)),H.assert(gc(PN(ge))===gc(PN(J)));const ae=PN(ge).length-ge.span.length;v(Y,ge.span.start,gc(ge.span),gc(PN(ge)),ae,oe,j,K);const Ce=jv.parseSourceFile(z.fileName,j,z.languageVersion,se,!0,z.scriptKind,z.setExternalModuleIndicator,z.jsDocParsingMode);return Ce.commentDirectives=s(z.commentDirectives,Ce.commentDirectives,ge.span.start,gc(ge.span),ae,oe,j,K),Ce.impliedNodeFormat=z.impliedNodeFormat,Ce}t.updateSourceFile=u;function s(z,j,J,K,Y,oe,se,ge){if(!z)return j;let ae,Ce=!1;for(const ve of z){const{range:Se,type:Ne}=ve;if(Se.endK){ne();const pe={range:{pos:Se.pos+Y,end:Se.end+Y},type:Ne};ae=Ei(ae,pe),ge&&H.assert(oe.substring(Se.pos,Se.end)===se.substring(pe.range.pos,pe.range.end))}}return ne(),ae;function ne(){Ce||(Ce=!0,ae?j&&ae.push(...j):ae=j)}}function d(z,j,J,K,Y,oe){j?ge(z):se(z);return;function se(ae){let Ce="";if(oe&&f(ae)&&(Ce=K.substring(ae.pos,ae.end)),ae._children&&(ae._children=void 0),e_(ae,ae.pos+J,ae.end+J),oe&&f(ae)&&H.assert(Ce===Y.substring(ae.pos,ae.end)),ro(ae,se,ge),sm(ae))for(const ne of ae.jsDoc)se(ne);E(ae,oe)}function ge(ae){ae._children=void 0,e_(ae,ae.pos+J,ae.end+J);for(const Ce of ae)se(Ce)}}function f(z){switch(z.kind){case 11:case 9:case 80:return!0}return!1}function p(z,j,J,K,Y){H.assert(z.end>=j,"Adjusting an element that was entirely before the change range"),H.assert(z.pos<=J,"Adjusting an element that was entirely after the change range"),H.assert(z.pos<=z.end);const oe=Math.min(z.pos,K),se=z.end>=J?z.end+Y:Math.min(z.end,K);H.assert(oe<=se),z.parent&&(H.assertGreaterThanOrEqual(oe,z.parent.pos),H.assertLessThanOrEqual(se,z.parent.end)),e_(z,oe,se)}function E(z,j){if(j){let J=z.pos;const K=Y=>{H.assert(Y.pos>=J),J=Y.end};if(sm(z))for(const Y of z.jsDoc)K(Y);ro(z,K),H.assert(J<=z.end)}}function v(z,j,J,K,Y,oe,se,ge){ae(z);return;function ae(ne){if(H.assert(ne.pos<=ne.end),ne.pos>J){d(ne,!1,Y,oe,se,ge);return}const ve=ne.end;if(ve>=j){if(ne.intersectsChange=!0,ne._children=void 0,p(ne,j,J,K,Y),ro(ne,ae,Ce),sm(ne))for(const Se of ne.jsDoc)ae(Se);E(ne,ge);return}H.assert(veJ){d(ne,!0,Y,oe,se,ge);return}const ve=ne.end;if(ve>=j){ne.intersectsChange=!0,ne._children=void 0,p(ne,j,J,K,Y);for(const Se of ne)ae(Se);return}H.assert(ve0&&se<=1;se++){const ge=B(z,K);H.assert(ge.pos<=K);const ae=ge.pos;K=Math.max(0,ae-1)}const Y=jc(K,gc(j.span)),oe=j.newLength+(j.span.start-K);return IO(Y,oe)}function B(z,j){let J=z,K;if(ro(z,oe),K){const se=Y(K);se.pos>J.pos&&(J=se)}return J;function Y(se){for(;;){const ge=gle(se);if(ge)se=ge;else return se}}function oe(se){if(!Yl(se))if(se.pos<=j){if(se.pos>=J.pos&&(J=se),jj),!0}}function k(z,j,J,K){const Y=z.text;if(J&&(H.assert(Y.length-J.span.length+J.newLength===j.length),K||H.shouldAssert(3))){const oe=Y.substr(0,J.span.start),se=j.substr(0,J.span.start);H.assert(oe===se);const ge=Y.substring(gc(J.span),Y.length),ae=j.substring(gc(PN(J)),j.length);H.assert(ge===ae)}}function T(z){let j=z.statements,J=0;H.assert(J=Ce.pos&&se=Ce.pos&&se{z[z.Value=-1]="Value"})(M||(M={}))})(Zce||(Zce={})),Yce=new Map,zQe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,IQe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function yY(t){const u=new Map,s=new Map;return L(t,d=>{u.set(d.name.toLowerCase(),d),d.shortName&&s.set(d.shortName,d.name)}),{optionsNameMap:u,shortOptionNames:s}}function RB(){return vXe||(vXe=yY(r3))}function KFe(t){return RQe(t,lc)}function RQe(t,u){const s=Ea(t.type.keys()),d=(t.deprecatedKeys?s.filter(f=>!t.deprecatedKeys.has(f)):s).map(f=>`'${f}'`).join(", ");return u(F.Argument_for_0_option_must_be_Colon_1,`--${t.name}`,d)}function kY(t,u,s){return gXe(t,(u??"").trim(),s)}function WFe(t,u="",s){if(u=u.trim(),Na(u,"-"))return;if(t.type==="listOrElement"&&!u.includes(","))return W7(t,u,s);if(u==="")return[];const d=u.split(",");switch(t.element.type){case"number":return Ui(d,f=>W7(t.element,parseInt(f),s));case"string":return Ui(d,f=>W7(t.element,f||"",s));case"boolean":case"object":return H.fail(`List of ${t.element.type} is not yet supported.`);default:return Ui(d,f=>kY(t.element,f,s))}}function OQe(t){return t.name}function GFe(t,u,s,d,f){var p;if((p=u.alternateMode)!=null&&p.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return Vv(f,d,u.alternateMode.diagnostic,t);const E=CN(t,u.optionDeclarations,OQe);return E?Vv(f,d,u.unknownDidYouMeanDiagnostic,s||t,E.name):Vv(f,d,u.unknownOptionDiagnostic,s||t)}function Qce(t,u,s){const d={};let f;const p=[],E=[];return v(u),{options:d,watchOptions:f,fileNames:p,errors:E};function v(B){let k=0;for(;kl1.readFile(z)));if(!Ja(k)){E.push(k);return}const T=[];let M=0;for(;;){for(;M=k.length)break;const z=M;if(k.charCodeAt(z)===34){for(M++;M32;)M++;T.push(k.substring(z,M))}}v(T)}}function jQe(t,u,s,d,f,p){if(d.isTSConfigOnly){const E=t[u];E==="null"?(f[d.name]=void 0,u++):d.type==="boolean"?E==="false"?(f[d.name]=W7(d,!1,p),u++):(E==="true"&&u++,p.push(lc(F.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,d.name))):(p.push(lc(F.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,d.name)),E&&!Na(E,"-")&&u++)}else if(!t[u]&&d.type!=="boolean"&&p.push(lc(s.optionTypeMismatchDiagnostic,d.name,ide(d))),t[u]!=="null")switch(d.type){case"number":f[d.name]=W7(d,parseInt(t[u]),p),u++;break;case"boolean":const E=t[u];f[d.name]=W7(d,E!=="false",p),(E==="false"||E==="true")&&u++;break;case"string":f[d.name]=W7(d,t[u]||"",p),u++;break;case"list":const v=WFe(d,t[u],p);f[d.name]=v||[],v&&u++;break;case"listOrElement":H.fail("listOrElement not supported here");break;default:f[d.name]=kY(d,t[u],p),u++;break}else f[d.name]=void 0,u++;return u}function VQe(t,u){return Qce(XV,t,u)}function Xce(t,u){return JFe(RB,t,u)}function JFe(t,u,s=!1){u=u.toLowerCase();const{optionsNameMap:d,shortOptionNames:f}=t();if(s){const p=f.get(u);p!==void 0&&(u=p)}return d.get(u)}function HQe(){return bXe||(bXe=yY(TY))}function KQe(t){const{options:u,watchOptions:s,fileNames:d,errors:f}=Qce(kXe,t),p=u;return d.length===0&&d.push("."),p.clean&&p.force&&f.push(lc(F.Options_0_and_1_cannot_be_combined,"clean","force")),p.clean&&p.verbose&&f.push(lc(F.Options_0_and_1_cannot_be_combined,"clean","verbose")),p.clean&&p.watch&&f.push(lc(F.Options_0_and_1_cannot_be_combined,"clean","watch")),p.watch&&p.dry&&f.push(lc(F.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:p,watchOptions:s,projects:d,errors:f}}function WQe(t,...u){return Lo(lc(t,...u).messageText,Ja)}function KV(t,u,s,d,f,p){const E=uM(t,B=>s.readFile(B));if(!Ja(E)){s.onUnRecoverableConfigFileDiagnostic(E);return}const v=HV(t,E),b=s.getCurrentDirectory();return v.path=H0(t,b,T1(s.useCaseSensitiveFileNames)),v.resolvedPath=v.path,v.originalFileName=v.fileName,JV(v,s,$a(dr(t),b),u,$a(t,b),void 0,p,d,f)}function WV(t,u){const s=uM(t,u);return Ja(s)?ede(t,s):{config:{},error:s}}function ede(t,u){const s=HV(t,u);return{config:qQe(s,s.parseDiagnostics,void 0),error:s.parseDiagnostics.length?s.parseDiagnostics[0]:void 0}}function $Fe(t,u){const s=uM(t,u);return Ja(s)?HV(t,s):{fileName:t,parseDiagnostics:[s]}}function uM(t,u){let s;try{s=u(t)}catch(d){return lc(F.Cannot_read_file_0_Colon_1,t,d.message)}return s===void 0?lc(F.Cannot_read_file_0,t):s}function tde(t){return og(t,OQe)}function GQe(){return FXe||(FXe=yY(OB))}function JQe(){return AXe||(AXe=tde(r3))}function $Qe(){return SXe||(SXe=tde(OB))}function UQe(){return BXe||(BXe=tde(QV))}function gNt(){return oAe===void 0&&(oAe={name:void 0,type:"object",elementOptions:tde([uAe,rAe,aAe,eH,{name:"references",type:"list",element:{name:"references",type:"object"},category:F.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:F.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:F.File_Management,defaultValueDescription:F.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:F.File_Management,defaultValueDescription:F.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},UV])}),oAe}function qQe(t,u,s){var d;const f=(d=t.statements[0])==null?void 0:d.expression;if(f&&f.kind!==210){if(u.push(V4(t,f,F.The_root_value_of_a_0_file_must_be_an_object,Fc(t.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),_h(f)){const p=Le(f.elements,Cs);if(p)return GV(t,p,u,!0,s)}return{}}return GV(t,f,u,!0,s)}function UFe(t,u){var s;return GV(t,(s=t.statements[0])==null?void 0:s.expression,u,!0,void 0)}function GV(t,u,s,d,f){if(!u)return d?{}:void 0;return v(u,f==null?void 0:f.rootOptions);function p(B,k){var T;const M=d?{}:void 0;for(const z of B.properties){if(z.kind!==303){s.push(V4(t,z,F.Property_assignment_expected));continue}z.questionToken&&s.push(V4(t,z.questionToken,F.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),b(z.name)||s.push(V4(t,z.name,F.String_literal_with_double_quotes_expected));const j=rj(z.name)?void 0:O8(z.name),J=j&&Yr(j),K=J?(T=k==null?void 0:k.elementOptions)==null?void 0:T.get(J):void 0,Y=v(z.initializer,K);typeof J<"u"&&(d&&(M[J]=Y),f==null||f.onPropertySet(J,Y,z,k,K))}return M}function E(B,k){if(!d){B.forEach(T=>v(T,k));return}return ei(B.map(T=>v(T,k)),T=>T!==void 0)}function v(B,k){switch(B.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return b(B)||s.push(V4(t,B,F.String_literal_with_double_quotes_expected)),B.text;case 9:return Number(B.text);case 224:if(B.operator!==41||B.operand.kind!==9)break;return-Number(B.operand.text);case 210:return p(B,k);case 209:return E(B.elements,k&&k.element)}k?s.push(V4(t,B,F.Compiler_option_0_requires_a_value_of_type_1,k.name,ide(k))):s.push(V4(t,B,F.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function b(B){return ns(B)&&_q(B,t)}}function ide(t){return t.type==="listOrElement"?`${ide(t.element)} or Array`:t.type==="list"?"Array":Ja(t.type)?t.type:"string"}function ZQe(t,u){if(t){if($V(u))return!t.disallowNullOrUndefined;if(t.type==="list")return Ha(u);if(t.type==="listOrElement")return Ha(u)||ZQe(t.element,u);const s=Ja(t.type)?t.type:"string";return typeof u===s}return!1}function YQe(t,u,s){var d,f,p;const E=T1(s.useCaseSensitiveFileNames),v=Kt(ei(t.fileNames,(f=(d=t.options.configFile)==null?void 0:d.configFileSpecs)!=null&&f.validatedIncludeSpecs?_Nt(u,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,s):G3),T=>FO($a(u,s.getCurrentDirectory()),$a(T,s.getCurrentDirectory()),E)),b=rde(t.options,{configFilePath:$a(u,s.getCurrentDirectory()),useCaseSensitiveFileNames:s.useCaseSensitiveFileNames}),B=t.watchOptions&&DNt(t.watchOptions);return{compilerOptions:{...nde(b),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:B&&nde(B),references:Kt(t.projectReferences,T=>({...T,path:T.originalPath?T.originalPath:"",originalPath:void 0})),files:S(v)?v:void 0,...(p=t.options.configFile)!=null&&p.configFileSpecs?{include:ENt(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:t.compileOnSave?!0:void 0}}function nde(t){return{...Ea(t.entries()).reduce((u,s)=>({...u,[s[0]]:s[1]}),{})}}function ENt(t){if(S(t)){if(S(t)!==1)return t;if(t[0]!==PY)return t}}function _Nt(t,u,s,d){if(!u)return G3;const f=iZ(t,s,u,d.useCaseSensitiveFileNames,d.getCurrentDirectory()),p=f.excludePattern&&Ox(f.excludePattern,d.useCaseSensitiveFileNames),E=f.includeFilePattern&&Ox(f.includeFilePattern,d.useCaseSensitiveFileNames);return E?p?v=>!(E.test(v)&&!p.test(v)):v=>!E.test(v):p?v=>p.test(v):G3}function QQe(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return QQe(t.element);default:return t.type}}function ude(t,u){return d1(u,(s,d)=>{if(s===t)return d})}function rde(t,u){return XQe(t,RB(),u)}function DNt(t){return XQe(t,GQe())}function XQe(t,{optionsNameMap:u},s){const d=new Map,f=s&&T1(s.useCaseSensitiveFileNames);for(const p in t)if(Eu(t,p)){if(u.has(p)&&(u.get(p).category===F.Command_line_Options||u.get(p).category===F.Output_Formatting))continue;const E=t[p],v=u.get(p.toLowerCase());if(v){H.assert(v.type!=="listOrElement");const b=QQe(v);b?v.type==="list"?d.set(p,E.map(B=>ude(B,b))):d.set(p,ude(E,b)):s&&v.isFilePath?d.set(p,FO(s.configFilePath,$a(E,dr(s.configFilePath)),f)):d.set(p,E)}}return d}function eXe(t,u){const s=tXe(t);return f();function d(p){return Array(p+1).join(" ")}function f(){const p=[],E=d(2);return cde.forEach(v=>{if(!s.has(v.name))return;const b=s.get(v.name),B=eAe(v);b!==B?p.push(`${E}${v.name}: ${b}`):Eu(LY,v.name)&&p.push(`${E}${v.name}: ${B}`)}),p.join(u)+u}}function tXe(t){const u=K$(t,LY);return rde(u)}function iXe(t,u,s){const d=tXe(t);return E();function f(v){return Array(v+1).join(" ")}function p({category:v,name:b,isCommandLineOnly:B}){const k=[F.Command_line_Options,F.Editor_Support,F.Compiler_Diagnostics,F.Backwards_Compatibility,F.Watch_and_Build_Modes,F.Output_Formatting];return!B&&v!==void 0&&(!k.includes(v)||d.has(b))}function E(){const v=new Map;v.set(F.Projects,[]),v.set(F.Language_and_Environment,[]),v.set(F.Modules,[]),v.set(F.JavaScript_Support,[]),v.set(F.Emit,[]),v.set(F.Interop_Constraints,[]),v.set(F.Type_Checking,[]),v.set(F.Completeness,[]);for(const z of r3)if(p(z)){let j=v.get(z.category);j||v.set(z.category,j=[]),j.push(z)}let b=0,B=0;const k=[];v.forEach((z,j)=>{k.length!==0&&k.push({value:""}),k.push({value:`/* ${Xa(j)} */`});for(const J of z){let K;d.has(J.name)?K=`"${J.name}": ${JSON.stringify(d.get(J.name))}${(B+=1)===d.size?"":","}`:K=`// "${J.name}": ${JSON.stringify(eAe(J))},`,k.push({value:K,description:`/* ${J.description&&Xa(J.description)||J.name} */`}),b=Math.max(K.length,b)}});const T=f(2),M=[];M.push("{"),M.push(`${T}"compilerOptions": {`),M.push(`${T}${T}/* ${Xa(F.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),M.push("");for(const z of k){const{value:j,description:J=""}=z;M.push(j&&`${T}${T}${j}${J&&f(b-j.length+2)+J}`)}if(u.length){M.push(`${T}},`),M.push(`${T}"files": [`);for(let z=0;ztypeof Ae=="object","object"),Se=ge(ae("files"));if(Se){const Ae=ve==="no-prop"||Ha(ve)&&ve.length===0,De=Eu(M,"extends");if(Se.length===0&&Ae&&!De)if(u){const He=E||"tsconfig.json",Ge=F.The_files_list_in_config_file_0_is_empty,ft=cj(u,"files",je=>je.initializer),Ze=Vv(u,ft,Ge,He);k.push(Ze)}else ne(F.The_files_list_in_config_file_0_is_empty,E||"tsconfig.json")}let Ne=ge(ae("include"));const pe=ae("exclude");let fe=!1,xe=ge(pe);if(pe==="no-prop"&&M.compilerOptions){const Ae=M.compilerOptions.outDir,De=M.compilerOptions.declarationDir;(Ae||De)&&(xe=[Ae,De].filter(He=>!!He))}Se===void 0&&Ne===void 0&&(Ne=[PY],fe=!0);let Be,We;return Ne&&(Be=xXe(Ne,k,!0,u,"include")),xe&&(We=xXe(xe,k,!1,u,"exclude")),{filesSpecs:Se,includeSpecs:Ne,excludeSpecs:xe,validatedFilesSpec:ei(Se,Ja),validatedIncludeSpecs:Be,validatedExcludeSpecs:We,pathPatterns:void 0,isDefaultIncludeSpec:fe}}function oe(ve){const Se=aM(J,ve,z,s,b);return oXe(Se,rM(M),v)&&k.push(aXe(J,E)),Se}function se(ve){let Se;const Ne=Ce("references",pe=>typeof pe=="object","object");if(Ha(Ne))for(const pe of Ne)typeof pe.path!="string"?ne(F.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Se||(Se=[])).push({path:$a(pe.path,ve),originalPath:pe.path,prepend:pe.prepend,circular:pe.circular});return Se}function ge(ve){return Ha(ve)?ve:void 0}function ae(ve){return Ce(ve,Ja,"string")}function Ce(ve,Se,Ne){if(Eu(M,ve)&&!$V(M[ve]))if(Ha(M[ve])){const pe=M[ve];return!u&&!ye(pe,Se)&&k.push(lc(F.Compiler_option_0_requires_a_value_of_type_1,ve,Ne)),pe}else return ne(F.Compiler_option_0_requires_a_value_of_type_1,ve,"Array"),"not-array";return"no-prop"}function ne(ve,...Se){u||k.push(lc(ve,...Se))}}function vNt(t){return t.code===F.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function aXe({includeSpecs:t,excludeSpecs:u},s){return lc(F.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,s||"tsconfig.json",JSON.stringify(t||[]),JSON.stringify(u||[]))}function oXe(t,u,s){return t.length===0&&u&&(!s||s.length===0)}function rM(t){return!Eu(t,"files")&&!Eu(t,"references")}function FY(t,u,s,d,f){const p=d.length;return oXe(t,f)?d.push(aXe(s,u)):Uu(d,E=>!vNt(E)),p!==d.length}function CNt(t){return!!t.options}function sXe(t,u,s,d,f,p,E,v){var b;d=U1(d);const B=$a(f||"",d);if(p.includes(B))return E.push(lc(F.Circularity_detected_while_resolving_configuration_Colon_0,[...p,B].join(" -> "))),{raw:t||UFe(u,E)};const k=t?bNt(t,s,d,f,E):yNt(u,s,d,f,E);if((b=k.options)!=null&&b.paths&&(k.options.pathsBasePath=d),k.extendedConfigPath){p=p.concat([B]);const M={options:{}};Ja(k.extendedConfigPath)?T(M,k.extendedConfigPath):k.extendedConfigPath.forEach(z=>T(M,z)),!k.raw.include&&M.include&&(k.raw.include=M.include),!k.raw.exclude&&M.exclude&&(k.raw.exclude=M.exclude),!k.raw.files&&M.files&&(k.raw.files=M.files),k.raw.compileOnSave===void 0&&M.compileOnSave&&(k.raw.compileOnSave=M.compileOnSave),u&&M.extendedSourceFiles&&(u.extendedSourceFiles=Ea(M.extendedSourceFiles.keys())),k.options=jE(M.options,k.options),k.watchOptions=k.watchOptions&&M.watchOptions?jE(M.watchOptions,k.watchOptions):k.watchOptions||M.watchOptions}return k;function T(M,z){const j=kNt(u,z,s,p,E,v,M);if(j&&CNt(j)){const J=j.raw;let K;const Y=oe=>{J[oe]&&(M[oe]=Kt(J[oe],se=>Nf(se)?se:hr(K||(K=BN(dr(z),d,T1(s.useCaseSensitiveFileNames))),se)))};Y("include"),Y("exclude"),Y("files"),J.compileOnSave!==void 0&&(M.compileOnSave=J.compileOnSave),jE(M.options,j.options),M.watchOptions=M.watchOptions&&j.watchOptions?jE({},M.watchOptions,j.watchOptions):M.watchOptions||j.watchOptions}}}function bNt(t,u,s,d,f){Eu(t,"excludes")&&f.push(lc(F.Unknown_option_excludes_Did_you_mean_exclude));const p=mXe(t.compilerOptions,s,f,d),E=pXe(t.typeAcquisition,s,f,d),v=ANt(t.watchOptions,s,f);t.compileOnSave=FNt(t,s,f);const b=t.extends||t.extends===""?lXe(t.extends,u,s,d,f):void 0;return{raw:t,options:p,watchOptions:v,typeAcquisition:E,extendedConfigPath:b}}function lXe(t,u,s,d,f,p,E,v){let b;const B=d?uXe(d,s):s;if(Ja(t))b=cXe(t,u,B,f,E,v);else if(Ha(t)){b=[];for(let k=0;koe.name===z)&&(B=Ei(B,J.name))))}}function cXe(t,u,s,d,f,p){if(t=U1(t),Nf(t)||Na(t,"./")||Na(t,"../")){let v=$a(t,s);if(!u.fileExists(v)&&!oc(v,".json")&&(v=`${v}.json`,!u.fileExists(v))){d.push(Vv(p,f,F.File_0_not_found,t));return}return v}const E=gAe(t,hr(s,"tsconfig.json"),u);if(E.resolvedModule)return E.resolvedModule.resolvedFileName;t===""?d.push(Vv(p,f,F.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):d.push(Vv(p,f,F.File_0_not_found,t))}function kNt(t,u,s,d,f,p,E){const v=s.useCaseSensitiveFileNames?u:Jg(u);let b,B,k;if(p&&(b=p.get(v))?{extendedResult:B,extendedConfig:k}=b:(B=$Fe(u,T=>s.readFile(T)),B.parseDiagnostics.length||(k=sXe(void 0,B,s,dr(u),Fc(u),d,f,p)),p&&p.set(v,{extendedResult:B,extendedConfig:k})),t&&((E.extendedSourceFiles??(E.extendedSourceFiles=new Set)).add(B.fileName),B.extendedSourceFiles))for(const T of B.extendedSourceFiles)E.extendedSourceFiles.add(T);if(B.parseDiagnostics.length){f.push(...B.parseDiagnostics);return}return k}function FNt(t,u,s){if(!Eu(t,UV.name))return!1;const d=Fk(UV,t.compileOnSave,u,s);return typeof d=="boolean"&&d}function dXe(t,u,s){const d=[];return{options:mXe(t,u,d,s),errors:d}}function hXe(t,u,s){const d=[];return{options:pXe(t,u,d,s),errors:d}}function fXe(t){return t&&Fc(t)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function mXe(t,u,s,d){const f=fXe(d);return qFe(JQe(),t,u,f,XV,s),d&&(f.configFilePath=U1(d)),f}function sde(t){return{enable:!!t&&Fc(t)==="jsconfig.json",include:[],exclude:[]}}function pXe(t,u,s,d){const f=sde(d);return qFe(UQe(),t,u,f,nAe,s),f}function ANt(t,u,s){return qFe($Qe(),t,u,void 0,NY,s)}function qFe(t,u,s,d,f,p){if(u){for(const E in u){const v=t.get(E);v?(d||(d={}))[v.name]=Fk(v,u[E],s,p):p.push(GFe(E,f))}return d}}function Vv(t,u,s,...d){return t&&u?V4(t,u,s,...d):lc(s,...d)}function Fk(t,u,s,d,f,p,E){if(t.isCommandLineOnly){d.push(Vv(E,f==null?void 0:f.name,F.Option_0_can_only_be_specified_on_command_line,t.name));return}if(ZQe(t,u)){const v=t.type;if(v==="list"&&Ha(u))return EXe(t,u,s,d,f,p,E);if(v==="listOrElement")return Ha(u)?EXe(t,u,s,d,f,p,E):Fk(t.element,u,s,d,f,p,E);if(!Ja(t.type))return gXe(t,u,d,p,E);const b=W7(t,u,d,p,E);return $V(b)?b:SNt(t,s,b)}else d.push(Vv(E,p,F.Compiler_option_0_requires_a_value_of_type_1,t.name,ide(t)))}function SNt(t,u,s){return t.isFilePath&&(s=$a(s,u),s===""&&(s=".")),s}function W7(t,u,s,d,f){var p;if($V(u))return;const E=(p=t.extraValidation)==null?void 0:p.call(t,u);if(!E)return u;s.push(Vv(f,d,...E))}function gXe(t,u,s,d,f){if($V(u))return;const p=u.toLowerCase(),E=t.type.get(p);if(E!==void 0)return W7(t,E,s,d,f);s.push(RQe(t,(v,...b)=>Vv(f,d,v,...b)))}function EXe(t,u,s,d,f,p,E){return ei(Kt(u,(v,b)=>Fk(t.element,v,s,d,f,p==null?void 0:p.elements[b],E)),v=>t.listPreserveFalsyValues?!0:!!v)}function aM(t,u,s,d,f=_t){u=Go(u);const p=T1(d.useCaseSensitiveFileNames),E=new Map,v=new Map,b=new Map,{validatedFilesSpec:B,validatedIncludeSpecs:k,validatedExcludeSpecs:T}=t,M=yP(s,f),z=Xj(s,M);if(B)for(const Y of B){const oe=$a(Y,u);E.set(p(oe),oe)}let j;if(k&&k.length>0)for(const Y of d.readDirectory(u,Va(z),T,k,void 0)){if(Pl(Y,".json")){if(!j){const ge=k.filter(Ce=>oc(Ce,".json")),ae=Kt(tZ(ge,u,"files"),Ce=>`^${Ce}$`);j=ae?ae.map(Ce=>Ox(Ce,d.useCaseSensitiveFileNames)):_t}if($e(j,ge=>ge.test(Y))!==-1){const ge=p(Y);!E.has(ge)&&!b.has(ge)&&b.set(ge,Y)}continue}if(TNt(Y,E,v,M,p))continue;LNt(Y,v,M,p);const oe=p(Y);!E.has(oe)&&!v.has(oe)&&v.set(oe,Y)}const J=Ea(E.values()),K=Ea(v.values());return J.concat(K,Ea(b.values()))}function ZFe(t,u,s,d,f){const{validatedFilesSpec:p,validatedIncludeSpecs:E,validatedExcludeSpecs:v}=u;if(!S(E)||!S(v))return!1;s=Go(s);const b=T1(d);if(p){for(const B of p)if(b($a(B,s))===t)return!1}return DXe(t,v,d,f,s)}function _Xe(t){const u=Na(t,"**/")?0:t.indexOf("/**/");return u===-1?!1:(oc(t,"/..")?t.length:t.lastIndexOf("/../"))>u}function AY(t,u,s,d){return DXe(t,ei(u,f=>!_Xe(f)),s,d)}function DXe(t,u,s,d,f){const p=bP(u,hr(Go(d),f),"exclude"),E=p&&Ox(p,s);return E?E.test(t)?!0:!XA(t)&&E.test(Pd(t)):!1}function xXe(t,u,s,d,f){return t.filter(E=>{if(!Ja(E))return!1;const v=YFe(E,s);return v!==void 0&&u.push(p(...v)),v===void 0});function p(E,v){const b=aq(d,f,v);return Vv(d,b,E,v)}}function YFe(t,u){if(H.assert(typeof t=="string"),u&&wXe.test(t))return[F.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t];if(_Xe(t))return[F.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}function BNt({validatedIncludeSpecs:t,validatedExcludeSpecs:u},s,d){const f=bP(u,s,"exclude"),p=f&&new RegExp(f,d?"":"i"),E={};if(t!==void 0){const v=[];for(const b of t){const B=Go(hr(s,b));if(p&&p.test(B))continue;const k=wNt(B,d);if(k){const{key:T,flags:M}=k,z=E[T];(z===void 0||zOc(t,E)?E:void 0);if(!p)return!1;for(const E of p){if(Pl(t,E)&&(E!==".ts"||!Pl(t,".d.ts")))return!1;const v=f(Sv(t,E));if(u.has(v)||s.has(v)){if(E===".d.ts"&&(Pl(t,".js")||Pl(t,".jsx")))continue;return!0}}return!1}function LNt(t,u,s,d){const f=L(s,p=>Oc(t,p)?p:void 0);if(f)for(let p=f.length-1;p>=0;p--){const E=f[p];if(Pl(t,E))return;const v=d(Sv(t,E));u.delete(v)}}function QFe(t){const u={};for(const s in t)if(Eu(t,s)){const d=Xce(s);d!==void 0&&(u[s]=XFe(t[s],d))}return u}function XFe(t,u){if(t===void 0)return t;switch(u.type){case"object":return"";case"string":return"";case"number":return typeof t=="number"?t:"";case"boolean":return typeof t=="boolean"?t:"";case"listOrElement":if(!Ha(t))return XFe(t,u.element);case"list":const s=u.element;return Ha(t)?Ui(t,d=>XFe(d,s)):"";default:return d1(u.type,(d,f)=>{if(d===t)return f})}}function eAe(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":const u=t.defaultValueDescription;return t.isFilePath?`./${u&&typeof u=="string"?u:""}`:"";case"list":return[];case"listOrElement":return eAe(t.element);case"object":return{};default:const s=Kn(t.type.keys());return s!==void 0?s:H.fail("Expected 'option.type' to have entries.")}}var UV,tAe,oM,iAe,qV,SY,OB,ZV,YV,lde,cde,r3,dde,hde,fde,BY,wY,mde,pde,gde,TY,QV,vXe,CXe,LY,XV,bXe,yXe,kXe,nAe,FXe,NY,AXe,SXe,BXe,eH,uAe,rAe,aAe,oAe,PY,wXe,TXe,NNt=o({"src/compiler/commandLineParser.ts"(){Ao(),UV={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},tAe=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),oM=new Map(zr(tAe.entries(),([t,u])=>[""+u,t])),iAe=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.es2023.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],qV=iAe.map(t=>t[0]),SY=new Map(iAe),OB=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:F.Watch_and_Build_Modes,description:F.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:F.Watch_and_Build_Modes,description:F.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:F.Watch_and_Build_Modes,description:F.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:F.Watch_and_Build_Modes,description:F.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:YFe},category:F.Watch_and_Build_Modes,description:F.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:YFe},category:F.Watch_and_Build_Modes,description:F.Remove_a_list_of_files_from_the_watch_mode_s_processing}],ZV=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:F.Command_line_Options,description:F.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:F.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:F.Command_line_Options,description:F.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:F.Output_Formatting,description:F.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:F.Output_Formatting,description:F.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:F.Compiler_Diagnostics,description:F.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:F.Compiler_Diagnostics,description:F.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:F.Compiler_Diagnostics,description:F.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:F.FILE_OR_DIRECTORY,category:F.Compiler_Diagnostics,description:F.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:F.DIRECTORY,category:F.Compiler_Diagnostics,description:F.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:F.Projects,description:F.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:F.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,transpileOptionValue:void 0,description:F.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:F.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:F.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,defaultValueDescription:!1,description:F.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:F.Emit,description:F.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Watch_and_Build_Modes,description:F.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:F.Platform_specific}],YV={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:F.VERSION,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},lde={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:F.KIND,showInSimplifiedHelpView:!0,category:F.Modules,description:F.Specify_what_module_code_is_generated,defaultValueDescription:void 0},cde=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:F.Command_line_Options,paramType:F.FILE_OR_DIRECTORY,description:F.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},YV,lde,{name:"lib",type:"list",element:{name:"lib",type:SY,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.JavaScript_Support,description:F.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.JavaScript_Support,description:F.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:tAe,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:F.KIND,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.FILE,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.DIRECTORY,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.LOCATION,category:F.Modules,description:F.Specify_the_root_folder_within_your_source_files,defaultValueDescription:F.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:F.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:F.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:F.FILE,category:F.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:F.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,defaultValueDescription:!1,description:F.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:F.Emit,description:F.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:F.Interop_Constraints,description:F.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:F.Interop_Constraints,description:F.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Type_Checking,description:F.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:F.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:F.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:F.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Ensure_use_strict_is_always_emitted,defaultValueDescription:F.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:F.Type_Checking,description:F.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:F.STRATEGY,category:F.Modules,description:F.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:F.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:F.Modules,description:F.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:F.Modules,description:F.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:F.Modules,description:F.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:F.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:F.Modules,description:F.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:F.Modules,description:F.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Interop_Constraints,description:F.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:F.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Interop_Constraints,description:F.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:F.Interop_Constraints,description:F.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Modules,description:F.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:F.Modules,description:F.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Modules,description:F.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:F.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:F.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:F.Modules,description:F.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:F.LOCATION,category:F.Emit,description:F.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:F.LOCATION,category:F.Emit,description:F.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:F.Language_and_Environment,description:F.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:F.Language_and_Environment,description:F.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:F.Language_and_Environment,description:F.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:F.Modules,description:F.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:F.Backwards_Compatibility,paramType:F.FILE,transpileOptionValue:void 0,description:F.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:F.Completeness,description:F.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:F.Backwards_Compatibility,description:F.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:F.NEWLINE,category:F.Emit,description:F.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Output_Formatting,description:F.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:F.Language_and_Environment,affectsProgramStructure:!0,description:F.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:F.Editor_Support,description:F.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,transpileOptionValue:void 0,description:F.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.DIRECTORY,category:F.Emit,transpileOptionValue:void 0,description:F.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:F.Completeness,description:F.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:F.Interop_Constraints,description:F.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:F.JavaScript_Support,description:F.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:F.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:F.Backwards_Compatibility,description:F.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:F.Specify_a_list_of_language_service_plugins_to_include,category:F.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:F.Control_what_method_is_used_to_detect_module_format_JS_files,category:F.Language_and_Environment,defaultValueDescription:F.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],r3=[...ZV,...cde],dde=r3.filter(t=>!!t.affectsSemanticDiagnostics),hde=r3.filter(t=>!!t.affectsEmit),fde=r3.filter(t=>!!t.affectsDeclarationPath),BY=r3.filter(t=>!!t.affectsModuleResolution),wY=r3.filter(t=>!!t.affectsSourceFile||!!t.affectsBindDiagnostics),mde=r3.filter(t=>!!t.affectsProgramStructure),pde=r3.filter(t=>Eu(t,"transpileOptionValue")),gde=[{name:"verbose",shortName:"v",category:F.Command_line_Options,description:F.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:F.Command_line_Options,description:F.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:F.Command_line_Options,description:F.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:F.Command_line_Options,description:F.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],TY=[...ZV,...gde],QV=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],CXe={diagnostic:F.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:HQe},LY={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},XV={alternateMode:CXe,getOptionsNameMap:RB,optionDeclarations:r3,unknownOptionDiagnostic:F.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:F.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Compiler_option_0_expects_an_argument},yXe={diagnostic:F.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:RB},kXe={alternateMode:yXe,getOptionsNameMap:HQe,optionDeclarations:TY,unknownOptionDiagnostic:F.Unknown_build_option_0,unknownDidYouMeanDiagnostic:F.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Build_option_0_requires_a_value_of_type_1},nAe={optionDeclarations:QV,unknownOptionDiagnostic:F.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:F.Unknown_type_acquisition_option_0_Did_you_mean_1},NY={getOptionsNameMap:GQe,optionDeclarations:OB,unknownOptionDiagnostic:F.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:F.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Watch_option_0_requires_a_value_of_type_1},eH={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:F.File_Management,disallowNullOrUndefined:!0},uAe={name:"compilerOptions",type:"object",elementOptions:JQe(),extraKeyDiagnostics:XV},rAe={name:"watchOptions",type:"object",elementOptions:$Qe(),extraKeyDiagnostics:NY},aAe={name:"typeAcquisition",type:"object",elementOptions:UQe(),extraKeyDiagnostics:nAe},PY="**/*",wXe=/(^|\/)\*\*\/?$/,TXe=/^[^*?]*(?=\/[^/]*[*?])/}});function Sa(t,u,...s){t.trace(_le(u,...s))}function rD(t,u){return!!t.traceResolution&&u.trace!==void 0}function G7(t,u){let s;if(u&&t){const d=t.contents.packageJsonContent;typeof d.name=="string"&&typeof d.version=="string"&&(s={name:d.name,subModuleName:u.path.slice(t.packageDirectory.length+nl.length),version:d.version})}return u&&{path:u.path,extension:u.ext,packageId:s,resolvedUsingTsExtension:u.resolvedUsingTsExtension}}function Ede(t){return G7(void 0,t)}function LXe(t){if(t)return H.assert(t.packageId===void 0),{path:t.path,ext:t.extension,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function MY(t){const u=[];return t&1&&u.push("TypeScript"),t&2&&u.push("JavaScript"),t&4&&u.push("Declaration"),t&8&&u.push("JSON"),u.join(", ")}function PNt(t){const u=[];return t&1&&u.push(...cV),t&2&&u.push(...gB),t&4&&u.push(...lV),t&8&&u.push(".json"),u}function sAe(t){if(t)return H.assert(aZ(t.extension)),{fileName:t.path,packageId:t.packageId}}function NXe(t,u,s,d,f,p,E,v,b){if(!E.resultFromCache&&!E.compilerOptions.preserveSymlinks&&u&&s&&!u.originalPath&&!Md(t)){const{resolvedFileName:B,originalPath:k}=zXe(u.path,E.host,E.traceEnabled);k&&(u={...u,path:B,originalPath:k})}return PXe(u,s,d,f,p,E.resultFromCache,v,b)}function PXe(t,u,s,d,f,p,E,v){return p?E!=null&&E.isReadonly?{...p,failedLookupLocations:lAe(p.failedLookupLocations,s),affectingLocations:lAe(p.affectingLocations,d),resolutionDiagnostics:lAe(p.resolutionDiagnostics,f)}:(p.failedLookupLocations=jB(p.failedLookupLocations,s),p.affectingLocations=jB(p.affectingLocations,d),p.resolutionDiagnostics=jB(p.resolutionDiagnostics,f),p):{resolvedModule:t&&{resolvedFileName:t.path,originalPath:t.originalPath===!0?void 0:t.originalPath,extension:t.extension,isExternalLibraryImport:u,packageId:t.packageId,resolvedUsingTsExtension:!!t.resolvedUsingTsExtension},failedLookupLocations:sM(s),affectingLocations:sM(d),resolutionDiagnostics:sM(f),node10Result:v}}function sM(t){return t.length?t:void 0}function jB(t,u){return u!=null&&u.length?t!=null&&t.length?(t.push(...u),t):u:t}function lAe(t,u){return t!=null&&t.length?u.length?[...t,...u]:t.slice():sM(u)}function MXe(t,u,s,d){if(!Eu(t,u)){d.traceEnabled&&Sa(d.host,F.package_json_does_not_have_a_0_field,u);return}const f=t[u];if(typeof f!==s||f===null){d.traceEnabled&&Sa(d.host,F.Expected_type_of_0_field_in_package_json_to_be_1_got_2,u,s,f===null?"null":typeof f);return}return f}function _de(t,u,s,d){const f=MXe(t,u,"string",d);if(f===void 0)return;if(!f){d.traceEnabled&&Sa(d.host,F.package_json_had_a_falsy_0_field,u);return}const p=Go(hr(s,f));return d.traceEnabled&&Sa(d.host,F.package_json_has_0_field_1_that_references_2,u,f,p),p}function MNt(t,u,s){return _de(t,"typings",u,s)||_de(t,"types",u,s)}function zNt(t,u,s){return _de(t,"tsconfig",u,s)}function INt(t,u,s){return _de(t,"main",u,s)}function RNt(t,u){const s=MXe(t,"typesVersions","object",u);if(s!==void 0)return u.traceEnabled&&Sa(u.host,F.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),s}function ONt(t,u){const s=RNt(t,u);if(s===void 0)return;if(u.traceEnabled)for(const E in s)Eu(s,E)&&!pO.tryParse(E)&&Sa(u.host,F.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,E);const d=zY(s);if(!d){u.traceEnabled&&Sa(u.host,F.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,g);return}const{version:f,paths:p}=d;if(typeof p!="object"){u.traceEnabled&&Sa(u.host,F.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${f}']`,"object",typeof p);return}return d}function zY(t){yAe||(yAe=new Bp(_));for(const u in t){if(!Eu(t,u))continue;const s=pO.tryParse(u);if(s!==void 0&&s.test(yAe))return{version:u,paths:t[u]}}}function lM(t,u){if(t.typeRoots)return t.typeRoots;let s;if(t.configFilePath?s=dr(t.configFilePath):u.getCurrentDirectory&&(s=u.getCurrentDirectory()),s!==void 0)return jNt(s)}function jNt(t){let u;return $g(Go(t),s=>{const d=hr(s,net);(u??(u=[])).push(d)}),u}function VNt(t,u,s){const d=typeof s.useCaseSensitiveFileNames=="function"?s.useCaseSensitiveFileNames():s.useCaseSensitiveFileNames;return fv(t,u,!d)===0}function zXe(t,u,s){const d=XNt(t,u,s),f=VNt(t,d,u);return{resolvedFileName:f?t:d,originalPath:f?void 0:t}}function IXe(t,u,s){const d=oc(t,"/node_modules/@types")||oc(t,"/node_modules/@types/")?eet(u,s):u;return hr(t,d)}function cAe(t,u,s,d,f,p,E){H.assert(typeof t=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const v=rD(s,d);f&&(s=f.commandLine.options);const b=u?dr(u):void 0;let B=b?p==null?void 0:p.getFromDirectoryCache(t,E,b,f):void 0;if(!B&&b&&!Md(t)&&(B=p==null?void 0:p.getFromNonRelativeNameCache(t,E,b,f)),B)return v&&(Sa(d,F.Resolving_type_reference_directive_0_containing_file_1,t,u),f&&Sa(d,F.Using_compiler_options_of_project_reference_redirect_0,f.sourceFile.fileName),Sa(d,F.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,t,b),ae(B)),B;const k=lM(s,d);v&&(u===void 0?k===void 0?Sa(d,F.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):Sa(d,F.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,k):k===void 0?Sa(d,F.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,u):Sa(d,F.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,u,k),f&&Sa(d,F.Using_compiler_options_of_project_reference_redirect_0,f.sourceFile.fileName));const T=[],M=[];let z=dAe(s);E!==void 0&&(z|=30);const j=m1(s);E===99&&3<=j&&j<=99&&(z|=32);const J=z&8?W2(s,E):[],K=[],Y={compilerOptions:s,host:d,traceEnabled:v,failedLookupLocations:T,affectingLocations:M,packageJsonInfoCache:p,features:z,conditions:J,requestContainingDirectory:b,reportDiagnostic:ve=>void K.push(ve),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let oe=Ce(),se=!0;oe||(oe=ne(),se=!1);let ge;if(oe){const{fileName:ve,packageId:Se}=oe;let Ne=ve,pe;s.preserveSymlinks||({resolvedFileName:Ne,originalPath:pe}=zXe(ve,d,v)),ge={primary:se,resolvedFileName:Ne,originalPath:pe,packageId:Se,isExternalLibraryImport:$7(ve)}}return B={resolvedTypeReferenceDirective:ge,failedLookupLocations:sM(T),affectingLocations:sM(M),resolutionDiagnostics:sM(K)},b&&p&&!p.isReadonly&&(p.getOrCreateCacheForDirectory(b,f).set(t,E,B),Md(t)||p.getOrCreateCacheForNonRelativeName(t,E,f).set(b,B)),v&&ae(B),B;function ae(ve){var Se;(Se=ve.resolvedTypeReferenceDirective)!=null&&Se.resolvedFileName?ve.resolvedTypeReferenceDirective.packageId?Sa(d,F.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,ve.resolvedTypeReferenceDirective.resolvedFileName,Nx(ve.resolvedTypeReferenceDirective.packageId),ve.resolvedTypeReferenceDirective.primary):Sa(d,F.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,ve.resolvedTypeReferenceDirective.resolvedFileName,ve.resolvedTypeReferenceDirective.primary):Sa(d,F.Type_reference_directive_0_was_not_resolved,t)}function Ce(){if(k&&k.length)return v&&Sa(d,F.Resolving_with_primary_search_path_0,k.join(", ")),G(k,ve=>{const Se=IXe(ve,t,Y),Ne=cg(ve,d);if(!Ne&&v&&Sa(d,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,ve),s.typeRoots){const pe=KB(4,Se,!Ne,Y);if(pe){const fe=iH(pe.path),xe=fe?G2(fe,!1,Y):void 0;return sAe(G7(xe,pe))}}return sAe(DAe(4,Se,!Ne,Y))});v&&Sa(d,F.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ne(){const ve=u&&dr(u);if(ve!==void 0){let Se;if(!s.typeRoots||!oc(u,ZB))if(v&&Sa(d,F.Looking_up_in_node_modules_folder_initial_location_0,ve),Md(t)){const{path:Ne}=KXe(ve,t);Se=bde(4,Ne,!1,Y,!0)}else{const Ne=ZXe(4,t,ve,Y,void 0,void 0);Se=Ne&&Ne.value}else v&&Sa(d,F.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return sAe(Se)}else v&&Sa(d,F.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function dAe(t){let u=0;switch(m1(t)){case 3:u=30;break;case 99:u=30;break;case 100:u=30;break}return t.resolvePackageJsonExports?u|=8:t.resolvePackageJsonExports===!1&&(u&=-9),t.resolvePackageJsonImports?u|=2:t.resolvePackageJsonImports===!1&&(u&=-3),u}function W2(t,u){const s=m1(t);if(u===void 0){if(s===100)u=99;else if(s===2)return[]}const d=u===99?["import"]:["require"];return t.noDtsResolution||d.push("types"),s!==100&&d.push("node"),an(d,t.customConditions)}function Dde(t,u,s,d,f){const p=nH(f==null?void 0:f.getPackageJsonInfoCache(),d,s);return $g(u,E=>{if(Fc(E)!=="node_modules"){const v=hr(E,"node_modules"),b=hr(v,t);return G2(b,!1,p)}})}function IY(t,u){if(t.types)return t.types;const s=[];if(u.directoryExists&&u.getDirectories){const d=lM(t,u);if(d){for(const f of d)if(u.directoryExists(f))for(const p of u.getDirectories(f)){const E=Go(p),v=hr(f,E,"package.json");if(!(u.fileExists(v)&&gP(v,u).typings===null)){const B=Fc(E);B.charCodeAt(0)!==46&&s.push(B)}}}}return s}function hAe(t){var u;if(t===null||typeof t!="object")return""+t;if(Ha(t))return`[${(u=t.map(d=>hAe(d)))==null?void 0:u.join(",")}]`;let s="{";for(const d in t)Eu(t,d)&&(s+=`${d}: ${hAe(t[d])}`);return s+"}"}function xde(t,u){return u.map(s=>hAe(Yq(t,s))).join("|")+`|${t.pathsBasePath}`}function vde(t,u){const s=new Map,d=new Map;let f=new Map;return t&&s.set(t,f),{getMapOfCacheRedirects:p,getOrCreateMapOfCacheRedirects:E,update:v,clear:B,getOwnMap:()=>f};function p(T){return T?b(T.commandLine.options,!1):f}function E(T){return T?b(T.commandLine.options,!0):f}function v(T){t!==T&&(t?f=b(T,!0):s.set(T,f),t=T)}function b(T,M){let z=s.get(T);if(z)return z;const j=k(T);if(z=d.get(j),!z){if(t){const J=k(t);J===j?z=f:d.has(J)||d.set(J,f)}M&&(z??(z=new Map)),z&&d.set(j,z)}return z&&s.set(T,z),z}function B(){const T=t&&u.get(t);f.clear(),s.clear(),u.clear(),d.clear(),t&&(T&&u.set(t,T),s.set(t,f))}function k(T){let M=u.get(T);return M||u.set(T,M=xde(T,BY)),M}}function HNt(t,u){let s;return{getPackageJsonInfo:d,setPackageJsonInfo:f,clear:p,entries:E,getInternalMap:v};function d(b){return s==null?void 0:s.get(H0(b,t,u))}function f(b,B){(s||(s=new Map)).set(H0(b,t,u),B)}function p(){s=void 0}function E(){const b=s==null?void 0:s.entries();return b?Ea(b):[]}function v(){return s}}function RXe(t,u,s,d){const f=t.getOrCreateMapOfCacheRedirects(u);let p=f.get(s);return p||(p=d(),f.set(s,p)),p}function KNt(t,u,s,d){const f=vde(s,d);return{getFromDirectoryCache:b,getOrCreateCacheForDirectory:v,clear:p,update:E,directoryToModuleNameMap:f};function p(){f.clear()}function E(B){f.update(B)}function v(B,k){const T=H0(B,t,u);return RXe(f,k,T,()=>J7())}function b(B,k,T,M){var z,j;const J=H0(T,t,u);return(j=(z=f.getMapOfCacheRedirects(M))==null?void 0:z.get(J))==null?void 0:j.get(B,k)}}function cM(t,u){return u===void 0?t:`${u}|${t}`}function J7(){const t=new Map,u=new Map,s={get(f,p){return t.get(d(f,p))},set(f,p,E){return t.set(d(f,p),E),s},delete(f,p){return t.delete(d(f,p)),s},has(f,p){return t.has(d(f,p))},forEach(f){return t.forEach((p,E)=>{const[v,b]=u.get(E);return f(p,v,b)})},size(){return t.size}};return s;function d(f,p){const E=cM(f,p);return u.set(E,[f,p]),E}}function WNt(t){return t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName)}function GNt(t){return t.resolvedTypeReferenceDirective&&(t.resolvedTypeReferenceDirective.originalPath||t.resolvedTypeReferenceDirective.resolvedFileName)}function JNt(t,u,s,d,f){const p=vde(s,f);return{getFromNonRelativeNameCache:b,getOrCreateCacheForNonRelativeName:B,clear:E,update:v};function E(){p.clear()}function v(T){p.update(T)}function b(T,M,z,j){var J,K;return H.assert(!Md(T)),(K=(J=p.getMapOfCacheRedirects(j))==null?void 0:J.get(cM(T,M)))==null?void 0:K.get(z)}function B(T,M,z){return H.assert(!Md(T)),RXe(p,z,cM(T,M),k)}function k(){const T=new Map;return{get:M,set:z};function M(J){return T.get(H0(J,t,u))}function z(J,K){const Y=H0(J,t,u);if(T.has(Y))return;T.set(Y,K);const oe=d(K),se=oe&&j(Y,oe);let ge=Y;for(;ge!==se;){const ae=dr(ge);if(ae===ge||T.has(ae))break;T.set(ae,K),ge=ae}}function j(J,K){const Y=H0(dr(K),t,u);let oe=0;const se=Math.min(J.length,Y.length);for(;oed,clearAllExceptPackageJsonInfoCache:B,optionsToRedirectsKey:p};function b(){B(),d.clear()}function B(){E.clear(),v.clear()}function k(T){E.update(T),v.update(T)}}function VB(t,u,s,d,f){const p=OXe(t,u,s,d,WNt,f);return p.getOrCreateCacheForModuleName=(E,v,b)=>p.getOrCreateCacheForNonRelativeName(E,v,b),p}function RY(t,u,s,d,f){return OXe(t,u,s,d,GNt,f)}function Cde(t){return{moduleResolution:2,traceResolution:t.traceResolution}}function OY(t,u,s,d,f){return HB(t,u,Cde(s),d,f)}function jXe(t,u,s,d){const f=dr(u);return s.getFromDirectoryCache(t,d,f,void 0)}function HB(t,u,s,d,f,p,E){var v,b,B;const k=rD(s,d);p&&(s=p.commandLine.options),k&&(Sa(d,F.Resolving_module_0_from_1,t,u),p&&Sa(d,F.Using_compiler_options_of_project_reference_redirect_0,p.sourceFile.fileName));const T=dr(u);let M=f==null?void 0:f.getFromDirectoryCache(t,E,T,p);if(M)k&&Sa(d,F.Resolution_for_module_0_was_found_in_cache_from_location_1,t,T);else{let z=s.moduleResolution;if(z===void 0){switch(f1(s)){case 1:z=2;break;case 100:z=3;break;case 199:z=99;break;default:z=1;break}k&&Sa(d,F.Module_resolution_kind_is_not_specified_using_0,C8[z])}else k&&Sa(d,F.Explicitly_specified_module_resolution_kind_Colon_0,C8[z]);switch((v=dh)==null||v.logStartResolveModule(t),z){case 3:M=ZNt(t,u,s,d,f,p,E);break;case 99:M=YNt(t,u,s,d,f,p,E);break;case 2:M=pAe(t,u,s,d,f,p,E?W2(s,E):void 0);break;case 1:M=CAe(t,u,s,d,f,p);break;case 100:M=mAe(t,u,s,d,f,p,E?W2(s,E):void 0);break;default:return H.fail(`Unexpected moduleResolution: ${z}`)}M&&M.resolvedModule&&((b=dh)==null||b.logInfoEvent(`Module "${t}" resolved to "${M.resolvedModule.resolvedFileName}"`)),(B=dh)==null||B.logStopResolveModule(M&&M.resolvedModule?""+M.resolvedModule.resolvedFileName:"null"),f&&!f.isReadonly&&(f.getOrCreateCacheForDirectory(T,p).set(t,E,M),Md(t)||f.getOrCreateCacheForNonRelativeName(t,E,p).set(T,M))}return k&&(M.resolvedModule?M.resolvedModule.packageId?Sa(d,F.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,M.resolvedModule.resolvedFileName,Nx(M.resolvedModule.packageId)):Sa(d,F.Module_name_0_was_successfully_resolved_to_1,t,M.resolvedModule.resolvedFileName):Sa(d,F.Module_name_0_was_not_resolved,t)),M}function VXe(t,u,s,d,f){const p=$Nt(t,u,d,f);return p?p.value:Md(u)?UNt(t,u,s,d,f):qNt(t,u,d,f)}function $Nt(t,u,s,d){var f;const{baseUrl:p,paths:E,configFile:v}=d.compilerOptions;if(E&&!am(u)){d.traceEnabled&&(p&&Sa(d.host,F.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,p,u),Sa(d.host,F.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,u));const b=Lq(d.compilerOptions,d.host),B=v!=null&&v.configFileSpecs?(f=v.configFileSpecs).pathPatterns||(f.pathPatterns=rZ(E)):void 0;return vAe(t,u,b,E,B,s,!1,d)}}function UNt(t,u,s,d,f){if(!f.compilerOptions.rootDirs)return;f.traceEnabled&&Sa(f.host,F.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,u);const p=Go(hr(s,u));let E,v;for(const b of f.compilerOptions.rootDirs){let B=Go(b);oc(B,nl)||(B+=nl);const k=Na(p,B)&&(v===void 0||v.lengthvoid oe.push(ne),isConfigLookup:v,candidateIsFromPackageJsonField:!1};j&&v7(Y)&&Sa(f,F.Resolving_in_0_mode_with_conditions_1,t&32?"ESM":"CJS",se.conditions.map(ne=>`'${ne}'`).join(", "));let ge;if(Y===2){const ne=E&5,ve=E&-6;ge=ne&&Ce(ne,se)||ve&&Ce(ve,se)||void 0}else ge=Ce(E,se);let ae;if((k=ge==null?void 0:ge.value)!=null&&k.isExternalLibraryImport&&!v&&E&5&&t&8&&!Md(u)&&!xAe(5,ge.value.resolved.extension)&&(B!=null&&B.includes("import"))){Hv(se,F.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ne={...se,features:se.features&-9,reportDiagnostic:Ms},ve=Ce(E&5,ne);(T=ve==null?void 0:ve.value)!=null&&T.isExternalLibraryImport&&(ae=ve.value.resolved.path)}return NXe(u,(M=ge==null?void 0:ge.value)==null?void 0:M.resolved,(z=ge==null?void 0:ge.value)==null?void 0:z.isExternalLibraryImport,J,K,oe,se,p,ae);function Ce(ne,ve){const Ne=VXe(ne,u,s,(pe,fe,xe,Be)=>bde(pe,fe,xe,Be,!0),ve);if(Ne)return zm({resolved:Ne,isExternalLibraryImport:$7(Ne.path)});if(Md(u)){const{path:pe,parts:fe}=KXe(s,u),xe=bde(ne,pe,!1,ve,!0);return xe&&zm({resolved:xe,isExternalLibraryImport:Ft(fe,"node_modules")})}else{let pe;if(t&2&&Na(u,"#")&&(pe=uPt(ne,u,s,ve,p,b)),!pe&&t&4&&(pe=nPt(ne,u,s,ve,p,b)),!pe){if(u.includes(":")){j&&Sa(f,F.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,u,MY(ne));return}j&&Sa(f,F.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,u,MY(ne)),pe=ZXe(ne,u,s,ve,p,b)}return ne&4&&(pe??(pe=iet(u,ve))),pe&&{value:pe.value&&{resolved:pe.value,isExternalLibraryImport:!0}}}}}function KXe(t,u){const s=hr(t,u),d=bd(s),f=Yu(d);return{path:f==="."||f===".."?Pd(Go(s)):Go(s),parts:d}}function XNt(t,u,s){if(!u.realpath)return t;const d=Go(u.realpath(t));return s&&Sa(u,F.Resolving_real_path_for_0_result_1,t,d),d}function bde(t,u,s,d,f){if(d.traceEnabled&&Sa(d.host,F.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,u,MY(t)),!qD(u)){if(!s){const E=dr(u);cg(E,d.host)||(d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,E),s=!0)}const p=KB(t,u,s,d);if(p){const E=f?iH(p.path):void 0,v=E?G2(E,!1,d):void 0;return G7(v,p)}}if(s||cg(u,d.host)||(d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),s=!0),!(d.features&32))return DAe(t,u,s,d,f)}function $7(t){return t.includes(a_)}function iH(t,u){const s=Go(t),d=s.lastIndexOf(a_);if(d===-1)return;const f=d+a_.length;let p=WXe(s,f,u);return s.charCodeAt(f)===64&&(p=WXe(s,p,u)),s.slice(0,p)}function WXe(t,u,s){const d=t.indexOf(nl,u+1);return d===-1?s?t.length:u:d}function EAe(t,u,s,d){return Ede(KB(t,u,s,d))}function KB(t,u,s,d){const f=GXe(t,u,s,d);if(f)return f;if(!(d.features&32)){const p=JXe(u,t,"",s,d);if(p)return p}}function GXe(t,u,s,d){if(!Fc(u).includes("."))return;let p=Eh(u);p===u&&(p=u.substring(0,u.lastIndexOf(".")));const E=u.substring(p.length);return d.traceEnabled&&Sa(d.host,F.File_name_0_has_a_1_extension_stripping_it,u,E),JXe(p,t,E,s,d)}function _Ae(t,u,s,d){return t&1&&Oc(u,cV)||t&4&&Oc(u,lV)?jY(u,s,d)!==void 0?{path:u,ext:Oq(u),resolvedUsingTsExtension:void 0}:void 0:d.isConfigLookup&&t===8&&Pl(u,".json")?jY(u,s,d)!==void 0?{path:u,ext:".json",resolvedUsingTsExtension:void 0}:void 0:GXe(t,u,s,d)}function JXe(t,u,s,d,f){if(!d){const E=dr(t);E&&(d=!cg(E,f.host))}switch(s){case".mjs":case".mts":case".d.mts":return u&1&&p(".mts",s===".mts"||s===".d.mts")||u&4&&p(".d.mts",s===".mts"||s===".d.mts")||u&2&&p(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return u&1&&p(".cts",s===".cts"||s===".d.cts")||u&4&&p(".d.cts",s===".cts"||s===".d.cts")||u&2&&p(".cjs")||void 0;case".json":return u&4&&p(".d.json.ts")||u&8&&p(".json")||void 0;case".tsx":case".jsx":return u&1&&(p(".tsx",s===".tsx")||p(".ts",s===".tsx"))||u&4&&p(".d.ts",s===".tsx")||u&2&&(p(".jsx")||p(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return u&1&&(p(".ts",s===".ts"||s===".d.ts")||p(".tsx",s===".ts"||s===".d.ts"))||u&4&&p(".d.ts",s===".ts"||s===".d.ts")||u&2&&(p(".js")||p(".jsx"))||f.isConfigLookup&&p(".json")||void 0;default:return u&4&&!Xd(t+s)&&p(`.d${s}.ts`)||void 0}function p(E,v){const b=jY(t+E,d,f);return b===void 0?void 0:{path:b,ext:E,resolvedUsingTsExtension:!f.candidateIsFromPackageJsonField&&v}}}function jY(t,u,s){var d;if(!((d=s.compilerOptions.moduleSuffixes)!=null&&d.length))return $Xe(t,u,s);const f=e3(t)??"",p=f?tV(t,f):t;return L(s.compilerOptions.moduleSuffixes,E=>$Xe(p+E+f,u,s))}function $Xe(t,u,s){var d;if(!u){if(s.host.fileExists(t))return s.traceEnabled&&Sa(s.host,F.File_0_exists_use_it_as_a_name_resolution_result,t),t;s.traceEnabled&&Sa(s.host,F.File_0_does_not_exist,t)}(d=s.failedLookupLocations)==null||d.push(t)}function DAe(t,u,s,d,f=!0){const p=f?G2(u,s,d):void 0,E=p&&p.contents.packageJsonContent,v=p&&VY(p,d);return G7(p,kde(t,u,s,d,E,v))}function yde(t,u,s,d,f){if(!f&&t.contents.resolvedEntrypoints!==void 0)return t.contents.resolvedEntrypoints;let p;const E=5|(f?2:0),v=dAe(u),b=nH(d==null?void 0:d.getPackageJsonInfoCache(),s,u);b.conditions=W2(u),b.requestContainingDirectory=t.packageDirectory;const B=kde(E,t.packageDirectory,!1,b,t.contents.packageJsonContent,VY(t,b));if(p=Ei(p,B==null?void 0:B.path),v&8&&t.contents.packageJsonContent.exports){const k=li([W2(u,99),W2(u,1)],Hn);for(const T of k){const M={...b,failedLookupLocations:[],conditions:T,host:s},z=ePt(t,t.contents.packageJsonContent.exports,M,E);if(z)for(const j of z)p=e0(p,j.path)}}return t.contents.resolvedEntrypoints=p||!1}function ePt(t,u,s,d){let f;if(Ha(u))for(const E of u)p(E);else if(typeof u=="object"&&u!==null&&HY(u))for(const E in u)p(u[E]);else p(u);return f;function p(E){var v,b;if(typeof E=="string"&&Na(E,"./"))if(E.includes("*")&&s.host.readDirectory){if(E.indexOf("*")!==E.lastIndexOf("*"))return!1;s.host.readDirectory(t.packageDirectory,PNt(d),void 0,[Xd(E)?E.replace("*","**/*"):kO(E.replace("*","**/*"),Vj(E))]).forEach(B=>{f=e0(f,{path:B,ext:SN(B),resolvedUsingTsExtension:void 0})})}else{const B=bd(E).slice(2);if(B.includes("..")||B.includes(".")||B.includes("node_modules"))return!1;const k=hr(t.packageDirectory,E),T=$a(k,(b=(v=s.host).getCurrentDirectory)==null?void 0:b.call(v)),M=_Ae(d,T,!1,s);if(M)return f=e0(f,M,(z,j)=>z.path===j.path),!0}else if(Array.isArray(E)){for(const B of E)if(p(B))return!0}else if(typeof E=="object"&&E!==null)return L(Ts(E),B=>{if(B==="default"||Ft(s.conditions,B)||aH(s.conditions,B))return p(E[B]),!0})}}function nH(t,u,s){return{host:u,compilerOptions:s,traceEnabled:rD(s,u),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:t,features:0,conditions:_t,requestContainingDirectory:void 0,reportDiagnostic:Ms,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function uH(t,u){const s=bd(t);for(s.pop();s.length>0;){const d=G2(bx(s),!1,u);if(d)return d;s.pop()}}function VY(t,u){return t.contents.versionPaths===void 0&&(t.contents.versionPaths=ONt(t.contents.packageJsonContent,u)||!1),t.contents.versionPaths||void 0}function G2(t,u,s){var d,f,p,E,v,b;const{host:B,traceEnabled:k}=s,T=hr(t,"package.json");if(u){(d=s.failedLookupLocations)==null||d.push(T);return}const M=(f=s.packageJsonInfoCache)==null?void 0:f.getPackageJsonInfo(T);if(M!==void 0){if(typeof M!="boolean")return k&&Sa(B,F.File_0_exists_according_to_earlier_cached_lookups,T),(p=s.affectingLocations)==null||p.push(T),M.packageDirectory===t?M:{packageDirectory:t,contents:M.contents};M&&k&&Sa(B,F.File_0_does_not_exist_according_to_earlier_cached_lookups,T),(E=s.failedLookupLocations)==null||E.push(T);return}const z=cg(t,B);if(z&&B.fileExists(T)){const j=gP(T,B);k&&Sa(B,F.Found_package_json_at_0,T);const J={packageDirectory:t,contents:{packageJsonContent:j,versionPaths:void 0,resolvedEntrypoints:void 0}};return s.packageJsonInfoCache&&!s.packageJsonInfoCache.isReadonly&&s.packageJsonInfoCache.setPackageJsonInfo(T,J),(v=s.affectingLocations)==null||v.push(T),J}else z&&k&&Sa(B,F.File_0_does_not_exist,T),s.packageJsonInfoCache&&!s.packageJsonInfoCache.isReadonly&&s.packageJsonInfoCache.setPackageJsonInfo(T,z),(b=s.failedLookupLocations)==null||b.push(T)}function kde(t,u,s,d,f,p){let E;f&&(d.isConfigLookup?E=zNt(f,u,d):E=t&4&&MNt(f,u,d)||t&7&&INt(f,u,d)||void 0);const v=(M,z,j,J)=>{const K=jY(z,j,J);if(K){const ae=tPt(M,K);if(ae)return Ede(ae);J.traceEnabled&&Sa(J.host,F.File_0_has_an_unsupported_extension_so_skipping_it,K)}const Y=M===4?5:M,oe=J.features,se=J.candidateIsFromPackageJsonField;J.candidateIsFromPackageJsonField=!0,(f==null?void 0:f.type)!=="module"&&(J.features&=-33);const ge=bde(Y,z,j,J,!1);return J.features=oe,J.candidateIsFromPackageJsonField=se,ge},b=E?!cg(dr(E),d.host):void 0,B=s||!cg(u,d.host),k=hr(u,d.isConfigLookup?"tsconfig":"index");if(p&&(!E||WE(u,E))){const M=GE(u,E||k,!1);d.traceEnabled&&Sa(d.host,F.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.version,_,M);const z=vAe(t,M,u,p.paths,void 0,v,b||B,d);if(z)return LXe(z.value)}const T=E&&LXe(v(t,E,b,d));if(T)return T;if(!(d.features&32))return KB(t,k,B,d)}function tPt(t,u,s){const d=e3(u);return d!==void 0&&xAe(t,d)?{path:u,ext:d,resolvedUsingTsExtension:s}:void 0}function xAe(t,u){return t&2&&(u===".js"||u===".jsx"||u===".mjs"||u===".cjs")||t&1&&(u===".ts"||u===".tsx"||u===".mts"||u===".cts")||t&4&&(u===".d.ts"||u===".d.mts"||u===".d.cts")||t&8&&u===".json"||!1}function rH(t){let u=t.indexOf(nl);return t[0]==="@"&&(u=t.indexOf(nl,u+1)),u===-1?{packageName:t,rest:""}:{packageName:t.slice(0,u),rest:t.slice(u+1)}}function HY(t){return ye(Ts(t),u=>Na(u,"."))}function iPt(t){return!qe(Ts(t),u=>Na(u,"."))}function nPt(t,u,s,d,f,p){var E,v;const b=$a(hr(s,"dummy"),(v=(E=d.host).getCurrentDirectory)==null?void 0:v.call(E)),B=uH(b,d);if(!B||!B.contents.packageJsonContent.exports||typeof B.contents.packageJsonContent.name!="string")return;const k=bd(u),T=bd(B.contents.packageJsonContent.name);if(!ye(T,(K,Y)=>k[Y]===K))return;const M=k.slice(T.length),z=S(M)?`.${nl}${M.join(nl)}`:".";if(Av(d.compilerOptions)&&!$7(s))return Fde(B,t,z,d,f,p);const j=t&5,J=t&-6;return Fde(B,j,z,d,f,p)||Fde(B,J,z,d,f,p)}function Fde(t,u,s,d,f,p){if(t.contents.packageJsonContent.exports){if(s==="."){let E;if(typeof t.contents.packageJsonContent.exports=="string"||Array.isArray(t.contents.packageJsonContent.exports)||typeof t.contents.packageJsonContent.exports=="object"&&iPt(t.contents.packageJsonContent.exports)?E=t.contents.packageJsonContent.exports:Eu(t.contents.packageJsonContent.exports,".")&&(E=t.contents.packageJsonContent.exports["."]),E)return qXe(u,d,f,p,s,t,!1)(E,"",!1,".")}else if(HY(t.contents.packageJsonContent.exports)){if(typeof t.contents.packageJsonContent.exports!="object")return d.traceEnabled&&Sa(d.host,F.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),zm(void 0);const E=UXe(u,d,f,p,s,t.contents.packageJsonContent.exports,t,!1);if(E)return E}return d.traceEnabled&&Sa(d.host,F.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),zm(void 0)}}function uPt(t,u,s,d,f,p){var E,v;if(u==="#"||Na(u,"#/"))return d.traceEnabled&&Sa(d.host,F.Invalid_import_specifier_0_has_no_possible_resolutions,u),zm(void 0);const b=$a(hr(s,"dummy"),(v=(E=d.host).getCurrentDirectory)==null?void 0:v.call(E)),B=uH(b,d);if(!B)return d.traceEnabled&&Sa(d.host,F.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,b),zm(void 0);if(!B.contents.packageJsonContent.imports)return d.traceEnabled&&Sa(d.host,F.package_json_scope_0_has_no_imports_defined,B.packageDirectory),zm(void 0);const k=UXe(t,d,f,p,u,B.contents.packageJsonContent.imports,B,!0);return k||(d.traceEnabled&&Sa(d.host,F.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,u,B.packageDirectory),zm(void 0))}function Ade(t,u){const s=t.indexOf("*"),d=u.indexOf("*"),f=s===-1?t.length:s+1,p=d===-1?u.length:d+1;return f>p?-1:p>f||s===-1?1:d===-1||t.length>u.length?-1:u.length>t.length?1:0}function UXe(t,u,s,d,f,p,E,v){const b=qXe(t,u,s,d,f,E,v);if(!oc(f,nl)&&!f.includes("*")&&Eu(p,f)){const T=p[f];return b(T,"",!1,f)}const B=Lh(ei(Ts(p),T=>T.includes("*")||oc(T,"/")),Ade);for(const T of B)if(u.features&16&&k(T,f)){const M=p[T],z=T.indexOf("*"),j=f.substring(T.substring(0,z).length,f.length-(T.length-1-z));return b(M,j,!0,T)}else if(oc(T,"*")&&Na(f,T.substring(0,T.length-1))){const M=p[T],z=f.substring(T.length-1);return b(M,z,!0,T)}else if(Na(f,T)){const M=p[T],z=f.substring(T.length);return b(M,z,!1,T)}function k(T,M){if(oc(T,"*"))return!1;const z=T.indexOf("*");return z===-1?!1:Na(M,T.substring(0,z))&&oc(M,T.substring(z+1))}}function qXe(t,u,s,d,f,p,E){return v;function v(b,B,k,T){if(typeof b=="string"){if(!k&&B.length>0&&!oc(b,"/"))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),zm(void 0);if(!Na(b,"./")){if(E&&!Na(b,"../")&&!Na(b,"/")&&!Nf(b)){const ae=k?b.replace(/\*/g,B):b+B;Hv(u,F.Using_0_subpath_1_with_target_2,"imports",T,ae),Hv(u,F.Resolving_module_0_from_1,ae,p.packageDirectory+"/");const Ce=tH(u.features,ae,p.packageDirectory+"/",u.compilerOptions,u.host,s,t,!1,d,u.conditions);return zm(Ce.resolvedModule?{path:Ce.resolvedModule.resolvedFileName,extension:Ce.resolvedModule.extension,packageId:Ce.resolvedModule.packageId,originalPath:Ce.resolvedModule.originalPath,resolvedUsingTsExtension:Ce.resolvedModule.resolvedUsingTsExtension}:void 0)}return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),zm(void 0)}const K=(am(b)?bd(b).slice(1):bd(b)).slice(1);if(K.includes("..")||K.includes(".")||K.includes("node_modules"))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),zm(void 0);const Y=hr(p.packageDirectory,b),oe=bd(B);if(oe.includes("..")||oe.includes(".")||oe.includes("node_modules"))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),zm(void 0);u.traceEnabled&&Sa(u.host,F.Using_0_subpath_1_with_target_2,E?"imports":"exports",T,k?b.replace(/\*/g,B):b+B);const se=M(k?Y.replace(/\*/g,B):Y+B),ge=j(se,B,hr(p.packageDirectory,"package.json"),E);return ge||zm(G7(p,_Ae(t,se,!1,u)))}else if(typeof b=="object"&&b!==null)if(Array.isArray(b)){if(!S(b))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),zm(void 0);for(const J of b){const K=v(J,B,k,T);if(K)return K}}else{Hv(u,F.Entering_conditional_exports);for(const J of Ts(b))if(J==="default"||u.conditions.includes(J)||aH(u.conditions,J)){Hv(u,F.Matched_0_condition_1,E?"imports":"exports",J);const K=b[J],Y=v(K,B,k,T);if(Y)return Hv(u,F.Resolved_under_condition_0,J),Hv(u,F.Exiting_conditional_exports),Y;Hv(u,F.Failed_to_resolve_under_condition_0,J)}else Hv(u,F.Saw_non_matching_condition_0,J);Hv(u,F.Exiting_conditional_exports);return}else if(b===null)return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_explicitly_maps_specifier_1_to_null,p.packageDirectory,f),zm(void 0);return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),zm(void 0);function M(J){var K,Y;return J===void 0?J:$a(J,(Y=(K=u.host).getCurrentDirectory)==null?void 0:Y.call(K))}function z(J,K){return Pd(hr(J,K))}function j(J,K,Y,oe){var se,ge,ae,Ce;if(!u.isConfigLookup&&(u.compilerOptions.declarationDir||u.compilerOptions.outDir)&&!J.includes("/node_modules/")&&(!u.compilerOptions.configFile||WE(p.packageDirectory,M(u.compilerOptions.configFile.fileName),!Sde(u)))){const ve=i5({useCaseSensitiveFileNames:()=>Sde(u)}),Se=[];if(u.compilerOptions.rootDir||u.compilerOptions.composite&&u.compilerOptions.configFilePath){const Ne=M(bM(u.compilerOptions,()=>[],((ge=(se=u.host).getCurrentDirectory)==null?void 0:ge.call(se))||"",ve));Se.push(Ne)}else if(u.requestContainingDirectory){const Ne=M(hr(u.requestContainingDirectory,"index.ts")),pe=M(bM(u.compilerOptions,()=>[Ne,M(Y)],((Ce=(ae=u.host).getCurrentDirectory)==null?void 0:Ce.call(ae))||"",ve));Se.push(pe);let fe=Pd(pe);for(;fe&&fe.length>1;){const xe=bd(fe);xe.pop();const Be=bx(xe);Se.unshift(Be),fe=Pd(Be)}}Se.length>1&&u.reportDiagnostic(lc(oe?F.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:F.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,K===""?".":K,Y));for(const Ne of Se){const pe=ne(Ne);for(const fe of pe)if(WE(fe,J,!Sde(u))){const xe=J.slice(fe.length+1),Be=hr(Ne,xe),We=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Ae of We)if(Pl(Be,Ae)){const De=_ye(Be);for(const He of De){if(!xAe(t,He))continue;const Ge=kO(Be,He,Ae,!Sde(u));if(u.host.fileExists(Ge))return zm(G7(p,_Ae(t,Ge,!1,u)))}}}}}return;function ne(ve){var Se,Ne;const pe=u.compilerOptions.configFile?((Ne=(Se=u.host).getCurrentDirectory)==null?void 0:Ne.call(Se))||"":ve,fe=[];return u.compilerOptions.declarationDir&&fe.push(M(z(pe,u.compilerOptions.declarationDir))),u.compilerOptions.outDir&&u.compilerOptions.outDir!==u.compilerOptions.declarationDir&&fe.push(M(z(pe,u.compilerOptions.outDir))),fe}}}}function aH(t,u){if(!t.includes("types")||!Na(u,"types@"))return!1;const s=pO.tryParse(u.substring(6));return s?s.test(_):!1}function ZXe(t,u,s,d,f,p){return YXe(t,u,s,d,!1,f,p)}function rPt(t,u,s){return YXe(4,t,u,s,!0,void 0,void 0)}function YXe(t,u,s,d,f,p,E){const v=d.features===0?void 0:d.features&32?99:1,b=t&5,B=t&-6;if(b){Hv(d,F.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,MY(b));const T=k(b);if(T)return T}if(B&&!f)return Hv(d,F.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,MY(B)),k(B);function k(T){return $g(U1(s),M=>{if(Fc(M)!=="node_modules"){const z=tet(p,u,v,M,E,d);return z||zm(QXe(T,u,M,d,f,p,E))}})}}function QXe(t,u,s,d,f,p,E){const v=hr(s,"node_modules"),b=cg(v,d.host);if(!b&&d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,v),!f){const B=XXe(t,u,v,b,d,p,E);if(B)return B}if(t&4){const B=hr(v,"@types");let k=b;return b&&!cg(B,d.host)&&(d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,B),k=!1),XXe(4,eet(u,d),B,k,d,p,E)}}function XXe(t,u,s,d,f,p,E){var v,b;const B=Go(hr(s,u)),{packageName:k,rest:T}=rH(u),M=hr(s,k);let z,j=G2(B,!d,f);if(T!==""&&j&&(!(f.features&8)||!Eu(((v=z=G2(M,!d,f))==null?void 0:v.contents.packageJsonContent)??_t,"exports"))){const Y=KB(t,B,!d,f);if(Y)return Ede(Y);const oe=kde(t,B,!d,f,j.contents.packageJsonContent,VY(j,f));return G7(j,oe)}const J=(Y,oe,se,ge)=>{let ae=(T||!(ge.features&32))&&KB(Y,oe,se,ge)||kde(Y,oe,se,ge,j&&j.contents.packageJsonContent,j&&VY(j,ge));return!ae&&j&&(j.contents.packageJsonContent.exports===void 0||j.contents.packageJsonContent.exports===null)&&ge.features&32&&(ae=KB(Y,hr(oe,"index.js"),se,ge)),G7(j,ae)};if(T!==""&&(j=z??G2(M,!d,f)),j&&j.contents.packageJsonContent.exports&&f.features&8)return(b=Fde(j,t,hr(".",T),f,p,E))==null?void 0:b.value;const K=T!==""&&j?VY(j,f):void 0;if(K){f.traceEnabled&&Sa(f.host,F.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,K.version,_,T);const Y=d&&cg(M,f.host),oe=vAe(t,T,M,K.paths,void 0,J,!Y,f);if(oe)return oe.value}return J(t,B,!d,f)}function vAe(t,u,s,d,f,p,E,v){f||(f=rZ(d));const b=Sle(f,u);if(b){const B=Ja(b)?void 0:XCe(b,u),k=Ja(b)?b:QCe(b);return v.traceEnabled&&Sa(v.host,F.Module_name_0_matched_pattern_1,u,k),{value:L(d[k],M=>{const z=B?M.replace("*",B):M,j=Go(hr(s,z));v.traceEnabled&&Sa(v.host,F.Trying_substitution_0_candidate_module_location_Colon_1,M,z);const J=e3(M);if(J!==void 0){const K=jY(j,E,v);if(K!==void 0)return Ede({path:K,ext:J,resolvedUsingTsExtension:void 0})}return p(t,j,E||!cg(dr(j),v.host),v)})}}}function eet(t,u){const s=WB(t);return u.traceEnabled&&s!==t&&Sa(u.host,F.Scoped_package_detected_looking_in_0,s),s}function KY(t){return`@types/${WB(t)}`}function WB(t){if(Na(t,"@")){const u=t.replace(nl,wde);if(u!==t)return u.slice(1)}return t}function dM(t){const u=bN(t,"@types/");return u!==t?oH(u):t}function oH(t){return t.includes(wde)?"@"+t.replace(wde,nl):t}function tet(t,u,s,d,f,p){const E=t&&t.getFromNonRelativeNameCache(u,s,d,f);if(E)return p.traceEnabled&&Sa(p.host,F.Resolution_for_module_0_was_found_in_cache_from_location_1,u,d),p.resultFromCache=E,{value:E.resolvedModule&&{path:E.resolvedModule.resolvedFileName,originalPath:E.resolvedModule.originalPath||!0,extension:E.resolvedModule.extension,packageId:E.resolvedModule.packageId,resolvedUsingTsExtension:E.resolvedModule.resolvedUsingTsExtension}}}function CAe(t,u,s,d,f,p){const E=rD(s,d),v=[],b=[],B=dr(u),k=[],T={compilerOptions:s,host:d,traceEnabled:E,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:f,features:0,conditions:[],requestContainingDirectory:B,reportDiagnostic:j=>void k.push(j),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},M=z(5)||z(2|(s.resolveJsonModule?8:0));return NXe(t,M&&M.value,(M==null?void 0:M.value)&&$7(M.value.path),v,b,k,T,f);function z(j){const J=VXe(j,t,B,EAe,T);if(J)return{value:J};if(Md(t)){const K=Go(hr(B,t));return zm(EAe(j,K,!1,T))}else{const K=$g(B,Y=>{const oe=tet(f,t,void 0,Y,p,T);if(oe)return oe;const se=Go(hr(Y,t));return zm(EAe(j,se,!1,T))});if(K)return K;if(j&5){let Y=rPt(t,B,T);return j&4&&(Y??(Y=iet(t,T))),Y}}}}function iet(t,u){if(u.compilerOptions.typeRoots)for(const s of u.compilerOptions.typeRoots){const d=IXe(s,t,u),f=cg(s,u.host);!f&&u.traceEnabled&&Sa(u.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);const p=KB(4,d,!f,u);if(p){const v=iH(p.path),b=v?G2(v,!1,u):void 0;return zm(G7(b,p))}const E=DAe(4,d,!f,u);if(E)return zm(E)}}function GB(t,u){return!!t.allowImportingTsExtensions||u&&Xd(u)}function bAe(t,u,s,d,f,p){const E=rD(s,d);E&&Sa(d,F.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,u,t,f);const v=[],b=[],B=[],k={compilerOptions:s,host:d,traceEnabled:E,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:p,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:M=>void B.push(M),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},T=QXe(4,t,f,k,!1,void 0,void 0);return PXe(T,!0,v,b,B,k.resultFromCache,void 0)}function zm(t){return t!==void 0?{value:t}:void 0}function Hv(t,u,...s){t.traceEnabled&&Sa(t.host,u,...s)}function Sde(t){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}var yAe,net,Bde,a_,wde,aPt=o({"src/compiler/moduleNameResolver.ts"(){Ao(),net=hr("node_modules","@types"),Bde=(t=>(t[t.None=0]="None",t[t.Imports=2]="Imports",t[t.SelfName=4]="SelfName",t[t.Exports=8]="Exports",t[t.ExportsPatternTrailers=16]="ExportsPatternTrailers",t[t.AllFeatures=30]="AllFeatures",t[t.Node16Default=30]="Node16Default",t[t.NodeNextDefault=30]="NodeNextDefault",t[t.BundlerDefault=30]="BundlerDefault",t[t.EsmMode=32]="EsmMode",t))(Bde||{}),a_="/node_modules/",wde="__"}});function aD(t,u){return t.body&&!t.body.parent&&(bs(t.body,t),jx(t.body,!1)),t.body?kAe(t.body,u):1}function kAe(t,u=new Map){const s=Js(t);if(u.has(s))return u.get(s)||0;u.set(s,void 0);const d=oPt(t,u);return u.set(s,d),d}function oPt(t,u){switch(t.kind){case 264:case 265:return 0;case 266:if(x2(t))return 2;break;case 272:case 271:if(!Xu(t,32))return 0;break;case 278:const s=t;if(!s.moduleSpecifier&&s.exportClause&&s.exportClause.kind===279){let d=0;for(const f of s.exportClause.elements){const p=sPt(f,u);if(p>d&&(d=p),d===1)return d}return d}break;case 268:{let d=0;return ro(t,f=>{const p=kAe(f,u);switch(p){case 0:return;case 2:d=2;return;case 1:return d=1,!0;default:H.assertNever(p)}}),d}case 267:return aD(t,u);case 80:if(t.flags&4096)return 0}return 1}function sPt(t,u){const s=t.propertyName||t.name;let d=t.parent;for(;d;){if(fo(d)||uE(d)||ca(d)){const f=d.statements;let p;for(const E of f)if(RO(E,s)){E.parent||(bs(E,d),jx(E,!1));const v=kAe(E,u);if((p===void 0||v>p)&&(p=v),p===1)return p;E.kind===271&&(p=1)}if(p!==void 0)return p}d=d.parent}return 1}function U7(t){return H.attachFlowNodeDebugInfo(t),t}function FAe(t,u){var s,d;il("beforeBind"),(s=dh)==null||s.logStartBindFile(""+t.fileName),ret(t,u),(d=dh)==null||d.logStopBindFile(),il("afterBind"),wm("Bind","beforeBind","afterBind")}function lPt(){var t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce=!1,ne=0,ve,Se,Ne={flags:1},pe={flags:1},fe=le();return Be;function xe(Q,Me,...wt){return V4(In(Q)||t,Q,Me,...wt)}function Be(Q,Me){var wt,bi;t=Q,u=Me,s=Is(u),ae=We(t,Me),Se=new Set,ne=0,ve=Yd.getSymbolConstructor(),H.attachFlowNodeDebugInfo(Ne),H.attachFlowNodeDebugInfo(pe),t.locals||((wt=$n)==null||wt.push($n.Phase.Bind,"bindSourceFile",{path:t.path},!0),vt(t),(bi=$n)==null||bi.pop(),t.symbolCount=ne,t.classifiableNames=Se,Dl()),t=void 0,u=void 0,s=void 0,d=void 0,f=void 0,p=void 0,E=void 0,v=void 0,b=void 0,B=!1,k=void 0,T=void 0,M=void 0,z=void 0,j=void 0,J=void 0,K=void 0,oe=void 0,se=!1,Ce=!1,ge=0}function We(Q,Me){return U4(Me,"alwaysStrict")&&!Q.isDeclarationFile?!0:!!Q.externalModuleIndicator}function Ae(Q,Me){return ne++,new ve(Q,Me)}function De(Q,Me,wt){Q.flags|=wt,Me.symbol=Q,Q.declarations=e0(Q.declarations,Me),wt&1955&&!Q.exports&&(Q.exports=jo()),wt&6240&&!Q.members&&(Q.members=jo()),Q.constEnumOnlyModule&&Q.flags&304&&(Q.constEnumOnlyModule=!1),wt&111551&&yj(Q,Me)}function He(Q){if(Q.kind===277)return Q.isExportEquals?"export=":"default";const Me=qa(Q);if(Me){if(L1(Q)){const wt=W4(Me);return Zg(Q)?"__global":`"${wt}"`}if(Me.kind===167){const wt=Me.expression;if(Nm(wt))return kl(wt.text);if(Aq(wt))return Jo(wt.operator)+wt.operand.text;H.fail("Only computed properties with literal names have declaration names")}if(Xr(Me)){const wt=Zd(Q);if(!wt)return;const bi=wt.symbol;return Pj(bi,Me.escapedText)}return mg(Me)?b7(Me):Qg(Me)?aP(Me):void 0}switch(Q.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(Ql(Q)===2)return"export=";H.fail("Unknown binary declaration kind");break;case 324:return Y8(Q)?"__new":"__call";case 169:return H.assert(Q.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${H.formatSyntaxKind(Q.parent.kind)}, expected JSDocFunctionType`),"arg"+Q.parent.parameters.indexOf(Q)}}function Ge(Q){return fh(Q)?C0(Q.name):Yr(H.checkDefined(He(Q)))}function ft(Q,Me,wt,bi,Rn,nr,ur){H.assert(ur||!zx(wt));const ma=Xu(wt,2048)||X1(wt)&&wt.name.escapedText==="default",as=ur?"__computed":ma&&Me?"default":He(wt);let os;if(as===void 0)os=Ae(0,"__missing");else if(os=Q.get(as),bi&2885600&&Se.add(as),!os)Q.set(as,os=Ae(0,as)),nr&&(os.isReplaceableByMethod=!0);else{if(nr&&!os.isReplaceableByMethod)return os;if(os.flags&Rn){if(os.isReplaceableByMethod)Q.set(as,os=Ae(0,as));else if(!(bi&3&&os.flags&67108864)){fh(wt)&&bs(wt.name,wt);let Il=os.flags&2?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0,D1=!0;(os.flags&384||bi&384)&&(Il=F.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,D1=!1);let dd=!1;S(os.declarations)&&(ma||os.declarations&&os.declarations.length&&wt.kind===277&&!wt.isExportEquals)&&(Il=F.A_module_cannot_have_multiple_default_exports,D1=!1,dd=!0);const Jm=[];Ip(wt)&&Yl(wt.type)&&Xu(wt,32)&&os.flags&2887656&&Jm.push(xe(wt,F.Did_you_mean_0,`export type { ${Yr(wt.name.escapedText)} }`));const gs=qa(wt)||wt;L(os.declarations,($m,d3)=>{const c_=qa($m)||$m,ta=D1?xe(c_,Il,Ge($m)):xe(c_,Il);t.bindDiagnostics.push(dd?ps(ta,xe(gs,d3===0?F.Another_export_default_is_here:F.and_here)):ta),dd&&Jm.push(xe(c_,F.The_first_export_default_is_here))});const tp=D1?xe(gs,Il,Ge(wt)):xe(gs,Il);t.bindDiagnostics.push(ps(tp,...Jm)),os=Ae(0,as)}}}return De(os,wt,bi),os.parent?H.assert(os.parent===Me,"Existing symbol parent should match new one"):os.parent=Me,os}function Ze(Q,Me,wt){const bi=!!(d2(Q)&32)||je(Q);if(Me&2097152)return Q.kind===281||Q.kind===271&&bi?ft(f.symbol.exports,f.symbol,Q,Me,wt):(H.assertNode(f,$E),ft(f.locals,void 0,Q,Me,wt));if(K4(Q)&&H.assert(eu(Q)),!L1(Q)&&(bi||f.flags&128)){if(!$E(f)||!f.locals||Xu(Q,2048)&&!He(Q))return ft(f.symbol.exports,f.symbol,Q,Me,wt);const Rn=Me&111551?1048576:0,nr=ft(f.locals,void 0,Q,Rn,wt);return nr.exportSymbol=ft(f.symbol.exports,f.symbol,Q,Me,wt),Q.localSymbol=nr,nr}else return H.assertNode(f,$E),ft(f.locals,void 0,Q,Me,wt)}function je(Q){if(Q.parent&&Ec(Q)&&(Q=Q.parent),!K4(Q))return!1;if(!wV(Q)&&Q.fullName)return!0;const Me=qa(Q);return Me?!!(Gj(Me.parent)&&Ul(Me.parent)||Y1(Me.parent)&&d2(Me.parent)&32):!1}function Ke(Q,Me){const wt=f,bi=p,Rn=E;if(Me&1?(Q.kind!==219&&(p=f),f=E=Q,Me&32&&(f.locals=jo(),da(f))):Me&2&&(E=Q,Me&32&&(E.locals=void 0)),Me&4){const nr=k,ur=T,ma=M,as=z,os=K,Il=oe,D1=se,dd=Me&16&&!Xu(Q,1024)&&!Q.asteriskToken&&!!tk(Q)||Q.kind===175;dd||(k=U7({flags:2}),Me&144&&(k.node=Q)),z=dd||Q.kind===176||eu(Q)&&(Q.kind===262||Q.kind===218)?xn():void 0,K=void 0,T=void 0,M=void 0,oe=void 0,se=!1,st(Q),Q.flags&=-5633,!(k.flags&1)&&Me&8&&j4(Q.body)&&(Q.flags|=512,se&&(Q.flags|=1024),Q.endFlowNode=k),Q.kind===312&&(Q.flags|=ge,Q.endFlowNode=k),z&&(Fi(z,k),k=bt(z),(Q.kind===176||Q.kind===175||eu(Q)&&(Q.kind===262||Q.kind===218))&&(Q.returnFlowNode=k)),dd||(k=nr),T=ur,M=ma,z=as,K=os,oe=Il,se=D1}else Me&64?(B=!1,st(Q),H.assertNotNode(Q,at),Q.flags=B?Q.flags|256:Q.flags&-257):st(Q);f=wt,p=bi,E=Rn}function Gt(Q){Yt(Q,Me=>Me.kind===262?vt(Me):void 0),Yt(Q,Me=>Me.kind!==262?vt(Me):void 0)}function Yt(Q,Me=vt){Q!==void 0&&L(Q,Me)}function Ie(Q){ro(Q,vt,Yt)}function st(Q){const Me=Ce;if(Ce=!1,xi(Q)){Ie(Q),hi(Q),Ce=Me;return}switch(Q.kind>=243&&Q.kind<=259&&!u.allowUnreachableCode&&(Q.flowNode=k),Q.kind){case 247:ra(Q);break;case 246:wa(Q);break;case 248:Zo(Q);break;case 249:case 250:vo(Q);break;case 245:Qe(Q);break;case 253:case 257:Et(Q);break;case 252:case 251:Xt(Q);break;case 258:Pe(Q);break;case 255:et(Q);break;case 269:gt(Q);break;case 296:ii(Q);break;case 244:me(Q);break;case 256:_i(Q);break;case 224:Ji(Q);break;case 225:Yi(Q);break;case 226:if(u5(Q)){Ce=Me,on(Q);return}fe(Q);break;case 220:te(Q);break;case 227:we(Q);break;case 260:Oe(Q);break;case 211:case 212:Er(Q);break;case 213:tr(Q);break;case 235:Ru(Q);break;case 353:case 345:case 347:ct(Q);break;case 312:{Gt(Q.statements),vt(Q.endOfFileToken);break}case 241:case 268:Gt(Q.statements);break;case 208:X(Q);break;case 169:it(Q);break;case 210:case 209:case 303:case 230:Ce=Me;default:Ie(Q);break}hi(Q),Ce=Me}function St(Q){switch(Q.kind){case 80:case 81:case 110:case 211:case 212:return ti(Q);case 213:return ht(Q);case 217:case 235:return St(Q.expression);case 226:return Li(Q);case 224:return Q.operator===54&&St(Q.operand);case 221:return St(Q.expression)}return!1}function It(Q){return mP(Q)||(Iu(Q)||I7(Q)||vf(Q))&&It(Q.expression)||tu(Q)&&Q.operatorToken.kind===28&&It(Q.right)||W0(Q)&&(Nm(Q.argumentExpression)||Xl(Q.argumentExpression))&&It(Q.expression)||od(Q)&&It(Q.left)}function ti(Q){return It(Q)||Z1(Q)&&ti(Q.expression)}function ht(Q){if(Q.arguments){for(const Me of Q.arguments)if(ti(Me))return!0}return!!(Q.expression.kind===211&&ti(Q.expression.expression))}function Ut(Q,Me){return kB(Q)&&ji(Q.expression)&&t0(Me)}function Li(Q){switch(Q.operatorToken.kind){case 64:case 76:case 77:case 78:return ti(Q.left);case 35:case 36:case 37:case 38:return ji(Q.left)||ji(Q.right)||Ut(Q.right,Q.left)||Ut(Q.left,Q.right)||VN(Q.right)&&St(Q.left)||VN(Q.left)&&St(Q.right);case 104:return ji(Q.left);case 103:return St(Q.right);case 28:return St(Q.right)}return!1}function ji(Q){switch(Q.kind){case 217:return ji(Q.expression);case 226:switch(Q.operatorToken.kind){case 64:return ji(Q.left);case 28:return ji(Q.right)}}return ti(Q)}function xn(){return U7({flags:4,antecedents:void 0})}function Un(){return U7({flags:8,antecedents:void 0})}function rn(Q,Me,wt){return U7({flags:1024,target:Q,antecedents:Me,antecedent:wt})}function Ni(Q){Q.flags|=Q.flags&2048?4096:2048}function Fi(Q,Me){!(Me.flags&1)&&!Ft(Q.antecedents,Me)&&((Q.antecedents||(Q.antecedents=[])).push(Me),Ni(Me))}function Qu(Q,Me,wt){return Me.flags&1?Me:wt?(wt.kind===112&&Q&64||wt.kind===97&&Q&32)&&!TU(wt)&&!Hse(wt.parent)?Ne:St(wt)?(Ni(Me),U7({flags:Q,antecedent:Me,node:wt})):Me:Q&32?Me:Ne}function aa(Q,Me,wt,bi){return Ni(Q),U7({flags:128,antecedent:Q,switchStatement:Me,clauseStart:wt,clauseEnd:bi})}function Fr(Q,Me,wt){Ni(Me);const bi=U7({flags:Q,antecedent:Me,node:wt});return K&&Fi(K,bi),bi}function Ba(Q,Me){return Ni(Q),U7({flags:512,antecedent:Q,node:Me})}function bt(Q){const Me=Q.antecedents;return Me?Me.length===1?Me[0]:Q:Ne}function jn(Q){const Me=Q.parent;switch(Me.kind){case 245:case 247:case 246:return Me.expression===Q;case 248:case 227:return Me.condition===Q}return!1}function Nn(Q){for(;;)if(Q.kind===217)Q=Q.expression;else if(Q.kind===224&&Q.operator===54)Q=Q.operand;else return Kj(Q)}function Ai(Q){return ale(s0(Q))}function Dn(Q){for(;vf(Q.parent)||Pv(Q.parent)&&Q.parent.operator===54;)Q=Q.parent;return!jn(Q)&&!Nn(Q.parent)&&!(Z1(Q.parent)&&Q.parent.expression===Q)}function bn(Q,Me,wt,bi){const Rn=j,nr=J;j=wt,J=bi,Q(Me),j=Rn,J=nr}function iu(Q,Me,wt){bn(vt,Q,Me,wt),(!Q||!Ai(Q)&&!Nn(Q)&&!(Z1(Q)&&IN(Q)))&&(Fi(Me,Qu(32,k,Q)),Fi(wt,Qu(64,k,Q)))}function oa(Q,Me,wt){const bi=T,Rn=M;T=Me,M=wt,vt(Q),T=bi,M=Rn}function xa(Q,Me){let wt=oe;for(;wt&&Q.parent.kind===256;)wt.continueTarget=Me,wt=wt.next,Q=Q.parent;return Me}function ra(Q){const Me=xa(Q,Un()),wt=xn(),bi=xn();Fi(Me,k),k=Me,iu(Q.expression,wt,bi),k=bt(wt),oa(Q.statement,bi,Me),Fi(Me,k),k=bt(bi)}function wa(Q){const Me=Un(),wt=xa(Q,xn()),bi=xn();Fi(Me,k),k=Me,oa(Q.statement,bi,wt),Fi(wt,k),k=bt(wt),iu(Q.expression,Me,bi),k=bt(bi)}function Zo(Q){const Me=xa(Q,Un()),wt=xn(),bi=xn();vt(Q.initializer),Fi(Me,k),k=Me,iu(Q.condition,wt,bi),k=bt(wt),oa(Q.statement,bi,Me),vt(Q.incrementor),Fi(Me,k),k=bt(bi)}function vo(Q){const Me=xa(Q,Un()),wt=xn();vt(Q.expression),Fi(Me,k),k=Me,Q.kind===250&&vt(Q.awaitModifier),Fi(wt,k),vt(Q.initializer),Q.initializer.kind!==261&&jt(Q.initializer),oa(Q.statement,wt,Me),Fi(Me,k),k=bt(wt)}function Qe(Q){const Me=xn(),wt=xn(),bi=xn();iu(Q.expression,Me,wt),k=bt(Me),vt(Q.thenStatement),Fi(bi,k),k=bt(wt),vt(Q.elseStatement),Fi(bi,k),k=bt(bi)}function Et(Q){vt(Q.expression),Q.kind===253&&(se=!0,z&&Fi(z,k)),k=Ne}function Mt(Q){for(let Me=oe;Me;Me=Me.next)if(Me.name===Q)return Me}function qt(Q,Me,wt){const bi=Q.kind===252?Me:wt;bi&&(Fi(bi,k),k=Ne)}function Xt(Q){if(vt(Q.label),Q.label){const Me=Mt(Q.label.escapedText);Me&&(Me.referenced=!0,qt(Q,Me.breakTarget,Me.continueTarget))}else qt(Q,T,M)}function Pe(Q){const Me=z,wt=K,bi=xn(),Rn=xn();let nr=xn();if(Q.finallyBlock&&(z=Rn),Fi(nr,k),K=nr,vt(Q.tryBlock),Fi(bi,k),Q.catchClause&&(k=bt(nr),nr=xn(),Fi(nr,k),K=nr,vt(Q.catchClause),Fi(bi,k)),z=Me,K=wt,Q.finallyBlock){const ur=xn();ur.antecedents=an(an(bi.antecedents,nr.antecedents),Rn.antecedents),k=ur,vt(Q.finallyBlock),k.flags&1?k=Ne:(z&&Rn.antecedents&&Fi(z,rn(ur,Rn.antecedents,k)),K&&nr.antecedents&&Fi(K,rn(ur,nr.antecedents,k)),k=bi.antecedents?rn(ur,bi.antecedents,k):Ne)}else k=bt(bi)}function et(Q){const Me=xn();vt(Q.expression);const wt=T,bi=Y;T=Me,Y=k,vt(Q.caseBlock),Fi(Me,k);const Rn=L(Q.caseBlock.clauses,nr=>nr.kind===297);Q.possiblyExhaustive=!Rn&&!Me.antecedents,Rn||Fi(Me,aa(Y,Q,0,0)),T=wt,Y=bi,k=bt(Me)}function gt(Q){const Me=Q.clauses,wt=Q.parent.expression.kind===112||St(Q.parent.expression);let bi=Ne;for(let Rn=0;RnWc(wt)||ec(wt))}function rs(Q){Q.flags&33554432&&!Rr(Q)?Q.flags|=128:Q.flags&=-129}function So(Q){if(rs(Q),L1(Q))if(Xu(Q,32)&&U0(Q,F.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),m0e(Q))An(Q);else{let Me;if(Q.name.kind===11){const{text:bi}=Q.name;Me=dB(bi),Me===void 0&&U0(Q.name,F.Pattern_0_can_have_at_most_one_Asterisk_character,bi)}const wt=Wu(Q,512,110735);t.patternAmbientModules=Ei(t.patternAmbientModules,Me&&!Ja(Me)?{pattern:Me,symbol:wt}:void 0)}else{const Me=An(Q);if(Me!==0){const{symbol:wt}=Q;wt.constEnumOnlyModule=!(wt.flags&304)&&Me===2&&wt.constEnumOnlyModule!==!1}}}function An(Q){const Me=aD(Q),wt=Me!==0;return Wu(Q,wt?512:1024,wt?110735:0),Me}function xc(Q){const Me=Ae(131072,He(Q));De(Me,Q,131072);const wt=Ae(2048,"__type");De(wt,Q,2048),wt.members=jo(),wt.members.set(Me.escapedName,Me)}function Za(Q){return Sl(Q,4096,"__object")}function l0(Q){return Sl(Q,4096,"__jsxAttributes")}function $l(Q,Me,wt){return Wu(Q,Me,wt)}function Sl(Q,Me,wt){const bi=Ae(Me,wt);return Me&106508&&(bi.parent=f.symbol),De(bi,Q,Me),bi}function cd(Q,Me,wt){switch(E.kind){case 267:Ze(Q,Me,wt);break;case 312:if(lm(f)){Ze(Q,Me,wt);break}default:H.assertNode(E,$E),E.locals||(E.locals=jo(),da(E)),ft(E.locals,void 0,Q,Me,wt)}}function Dl(){if(!b)return;const Q=f,Me=v,wt=E,bi=d,Rn=k;for(const nr of b){const ur=nr.parent.parent;f=v0e(ur)||t,E=ZE(ur)||t,k=U7({flags:2}),d=nr,vt(nr.typeExpression);const ma=qa(nr);if((wV(nr)||!nr.fullName)&&ma&&Gj(ma.parent)){const as=Ul(ma.parent);if(as){Bl(t.symbol,ma.parent,as,!!Ln(ma,Il=>Iu(Il)&&Il.name.escapedText==="prototype"),!1);const os=f;switch(Cj(ma.parent)){case 1:case 2:lm(t)?f=t:f=void 0;break;case 4:f=ma.parent.expression;break;case 3:f=ma.parent.expression.name;break;case 5:f=J2(t,ma.parent.expression)?t:Iu(ma.parent.expression)?ma.parent.expression.name:ma.parent.expression;break;case 0:return H.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}f&&Ze(nr,524288,788968),f=os}}else wV(nr)||!nr.fullName||nr.fullName.kind===80?(d=nr.parent,cd(nr,524288,788968)):vt(nr.fullName)}f=Q,v=Me,E=wt,d=bi,k=Rn}function so(Q){if(!t.parseDiagnostics.length&&!(Q.flags&33554432)&&!(Q.flags&16777216)&&!cye(Q)){const Me=Ev(Q);if(Me===void 0)return;ae&&Me>=119&&Me<=127?t.bindDiagnostics.push(xe(Q,Vo(Q),C0(Q))):Me===135?Bc(t)&&lq(Q)?t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,C0(Q))):Q.flags&65536&&t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,C0(Q))):Me===127&&Q.flags&16384&&t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,C0(Q)))}}function Vo(Q){return Zd(Q)?F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:F.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function td(Q){Q.escapedText==="#constructor"&&(t.parseDiagnostics.length||t.bindDiagnostics.push(xe(Q,F.constructor_is_a_reserved_word,C0(Q))))}function $0(Q){ae&&_f(Q.left)&&n5(Q.operatorToken.kind)&&Tc(Q,Q.left)}function Ho(Q){ae&&Q.variableDeclaration&&Tc(Q,Q.variableDeclaration.name)}function wc(Q){if(ae&&Q.expression.kind===80){const Me=D2(t,Q.expression);t.bindDiagnostics.push(zd(t,Me.start,Me.length,F.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Kp(Q){return at(Q)&&(Q.escapedText==="eval"||Q.escapedText==="arguments")}function Tc(Q,Me){if(Me&&Me.kind===80){const wt=Me;if(Kp(wt)){const bi=D2(t,Me);t.bindDiagnostics.push(zd(t,bi.start,bi.length,zl(Q),mu(wt)))}}}function zl(Q){return Zd(Q)?F.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?F.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:F.Invalid_use_of_0_in_strict_mode}function sl(Q){ae&&Tc(Q,Q.name)}function Ka(Q){return Zd(Q)?F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ri(Q){if(s<2&&E.kind!==312&&E.kind!==267&&!w8(E)){const Me=D2(t,Q);t.bindDiagnostics.push(zd(t,Me.start,Me.length,Ka(Q)))}}function ll(Q){ae&&Tc(Q,Q.operand)}function $c(Q){ae&&(Q.operator===46||Q.operator===47)&&Tc(Q,Q.operand)}function vh(Q){ae&&U0(Q,F.with_statements_are_not_allowed_in_strict_mode)}function of(Q){ae&&Is(u)>=2&&(fbe(Q.statement)||Gl(Q.statement))&&U0(Q.label,F.A_label_is_not_allowed_here)}function U0(Q,Me,...wt){const bi=YE(t,Q.pos);t.bindDiagnostics.push(zd(t,bi.start,bi.length,Me,...wt))}function vc(Q,Me,wt){$(Q,Me,Me,wt)}function $(Q,Me,wt,bi){tt(Q,{pos:Qy(Me,t),end:wt.end},bi)}function tt(Q,Me,wt){const bi=zd(t,Me.pos,Me.end-Me.pos,wt);Q?t.bindDiagnostics.push(bi):t.bindSuggestionDiagnostics=Ei(t.bindSuggestionDiagnostics,{...bi,category:2})}function vt(Q){if(!Q)return;bs(Q,d),$n&&(Q.tracingPath=t.path);const Me=ae;if(ru(Q),Q.kind>165){const wt=d;d=Q;const bi=Tde(Q);bi===0?st(Q):Ke(Q,bi),d=wt}else{const wt=d;Q.kind===1&&(d=Q),hi(Q),d=wt}ae=Me}function hi(Q){if(sm(Q))if(eu(Q))for(const Me of Q.jsDoc)vt(Me);else for(const Me of Q.jsDoc)bs(Me,Q),jx(Me,!1)}function fn(Q){if(!ae)for(const Me of Q){if(!Lp(Me))return;if(Gu(Me)){ae=!0;return}}}function Gu(Q){const Me=E2(t,Q.expression);return Me==='"use strict"'||Me==="'use strict'"}function ru(Q){switch(Q.kind){case 80:if(Q.flags&4096){let ur=Q.parent;for(;ur&&!K4(ur);)ur=ur.parent;cd(ur,524288,788968);break}case 110:return k&&(Wt(Q)||d.kind===304)&&(Q.flowNode=k),so(Q);case 166:k&&mq(Q)&&(Q.flowNode=k);break;case 236:case 108:Q.flowNode=k;break;case 81:return td(Q);case 211:case 212:const Me=Q;k&&It(Me)&&(Me.flowNode=k),nye(Me)&&zn(Me),eu(Me)&&t.commonJsModuleIndicator&&Z_(Me)&&!WY(E,"module")&&ft(t.locals,void 0,Me.expression,134217729,111550);break;case 226:switch(Ql(Q)){case 1:Ih(Q);break;case 2:nh(Q);break;case 3:Bo(Q.left,Q);break;case 6:ya(Q);break;case 4:_1(Q);break;case 5:const ur=Q.left.expression;if(eu(Q)&&at(ur)){const ma=WY(E,ur.escapedText);if(cq(ma==null?void 0:ma.valueDeclaration)){_1(Q);break}}hc(Q);break;case 0:break;default:H.fail("Unknown binary expression special property assignment kind")}return $0(Q);case 299:return Ho(Q);case 220:return wc(Q);case 225:return ll(Q);case 224:return $c(Q);case 254:return vh(Q);case 256:return of(Q);case 197:B=!0;return;case 182:break;case 168:return Bt(Q);case 169:return c3(Q);case 260:return I1(Q);case 208:return Q.flowNode=k,I1(Q);case 172:case 171:return Tu(Q);case 303:case 304:return Oh(Q,4,0);case 306:return Oh(Q,8,900095);case 179:case 180:case 181:return Wu(Q,131072,0);case 174:case 173:return Oh(Q,8192|(Q.questionToken?16777216:0),Np(Q)?0:103359);case 262:return Kf(Q);case 176:return Wu(Q,16384,0);case 177:return Oh(Q,32768,46015);case 178:return Oh(Q,65536,78783);case 184:case 324:case 330:case 185:return xc(Q);case 187:case 329:case 200:return Pr(Q);case 339:return Qt(Q);case 210:return Za(Q);case 218:case 219:return f4(Q);case 213:switch(Ql(Q)){case 7:return ic(Q);case 8:return Sd(Q);case 9:return yo(Q);case 0:break;default:return H.fail("Unknown call expression assignment declaration kind")}eu(Q)&&l3(Q);break;case 231:case 263:return ae=!0,l_(Q);case 264:return cd(Q,64,788872);case 265:return cd(Q,524288,788968);case 266:return v5(Q);case 267:return So(Q);case 292:return l0(Q);case 291:return $l(Q,4,0);case 271:case 274:case 276:case 281:return Wu(Q,2097152,2097152);case 270:return id(Q);case 273:return nd(Q);case 278:return A0(Q);case 277:return tc(Q);case 312:return fn(Q.statements),Vu();case 241:if(!w8(Q.parent))return;case 268:return fn(Q.statements);case 348:if(Q.parent.kind===330)return c3(Q);if(Q.parent.kind!==329)break;case 355:const Rn=Q,nr=Rn.isBracketed||Rn.typeExpression&&Rn.typeExpression.type.kind===323?16777220:4;return Wu(Rn,nr,0);case 353:case 345:case 347:return(b||(b=[])).push(Q);case 346:return vt(Q.typeExpression)}}function Tu(Q){const Me=Xh(Q),wt=Me?98304:4,bi=Me?13247:0;return Oh(Q,wt|(Q.questionToken?16777216:0),bi)}function Pr(Q){return Sl(Q,2048,"__type")}function Vu(){if(rs(t),Bc(t))Fs();else if(H4(t)){Fs();const Q=t.symbol;ft(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=Q}}function Fs(){Sl(t,512,`"${Eh(t.fileName)}"`)}function tc(Q){if(!f.symbol||!f.symbol.exports)Sl(Q,111551,He(Q));else{const Me=X8(Q)?2097152:4,wt=ft(f.symbol.exports,f.symbol,Q,Me,67108863);Q.isExportEquals&&yj(wt,Q)}}function id(Q){qe(Q.modifiers)&&t.bindDiagnostics.push(xe(Q,F.Modifiers_cannot_appear_here));const Me=ca(Q.parent)?Bc(Q.parent)?Q.parent.isDeclarationFile?void 0:F.Global_module_exports_may_only_appear_in_declaration_files:F.Global_module_exports_may_only_appear_in_module_files:F.Global_module_exports_may_only_appear_at_top_level;Me?t.bindDiagnostics.push(xe(Q,Me)):(t.symbol.globalExports=t.symbol.globalExports||jo(),ft(t.symbol.globalExports,t.symbol,Q,2097152,2097152))}function A0(Q){!f.symbol||!f.symbol.exports?Sl(Q,8388608,He(Q)):Q.exportClause?n_(Q.exportClause)&&(bs(Q.exportClause,Q),ft(f.symbol.exports,f.symbol,Q.exportClause,2097152,2097152)):ft(f.symbol.exports,f.symbol,Q,8388608,0)}function nd(Q){Q.name&&Wu(Q,2097152,2097152)}function f0(Q){return t.externalModuleIndicator&&t.externalModuleIndicator!==!0?!1:(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=Q,t.externalModuleIndicator||Fs()),!0)}function Sd(Q){if(!f0(Q))return;const Me=h4(Q.arguments[0],void 0,(wt,bi)=>(bi&&De(bi,wt,67110400),bi));Me&&ft(Me.exports,Me,Q,1048580,0)}function Ih(Q){if(!f0(Q))return;const Me=h4(Q.left.expression,void 0,(wt,bi)=>(bi&&De(bi,wt,67110400),bi));if(Me){const bi=Lj(Q.right)&&(ik(Q.left.expression)||Z_(Q.left.expression))?2097152:1048580;bs(Q.left,Q),ft(Me.exports,Me,Q.left,bi,0)}}function nh(Q){if(!f0(Q))return;const Me=Dj(Q.right);if(cle(Me)||f===t&&J2(t,Me))return;if(Cs(Me)&&ye(Me.properties,mm)){L(Me.properties,d4);return}const wt=X8(Q)?2097152:1049092,bi=ft(t.symbol.exports,t.symbol,Q,wt|67108864,0);yj(bi,Q)}function d4(Q){ft(t.symbol.exports,t.symbol,Q,69206016,0)}function _1(Q){if(H.assert(eu(Q)),tu(Q)&&Iu(Q.left)&&Xr(Q.left.name)||Iu(Q)&&Xr(Q.name))return;const wt=ef(Q,!1,!1);switch(wt.kind){case 262:case 218:let bi=wt.symbol;if(tu(wt.parent)&&wt.parent.operatorToken.kind===64){const ur=wt.parent.left;y2(ur)&&Rx(ur.expression)&&(bi=Rh(ur.expression.expression,p))}bi&&bi.valueDeclaration&&(bi.members=bi.members||jo(),zx(Q)?Ve(Q,bi,bi.members):ft(bi.members,bi,Q,67108868,0),De(bi,bi.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const Rn=wt.parent,nr=To(wt)?Rn.symbol.exports:Rn.symbol.members;zx(Q)?Ve(Q,Rn.symbol,nr):ft(nr,Rn.symbol,Q,67108868,0,!0);break;case 312:if(zx(Q))break;wt.commonJsModuleIndicator?ft(wt.symbol.exports,wt.symbol,Q,1048580,0):Wu(Q,1,111550);break;case 267:break;default:H.failBadSyntaxKind(wt)}}function Ve(Q,Me,wt){ft(wt,Me,Q,4,0,!0,!0),si(Q,Me)}function si(Q,Me){Me&&(Me.assignmentDeclarationMembers||(Me.assignmentDeclarationMembers=new Map)).set(Js(Q),Q)}function zn(Q){Q.expression.kind===110?_1(Q):y2(Q)&&Q.parent.parent.kind===312&&(Rx(Q.expression)?Bo(Q,Q.parent):xl(Q))}function ya(Q){bs(Q.left,Q),bs(Q.right,Q),Lc(Q.left.expression,Q.left,!1,!0)}function yo(Q){const Me=Rh(Q.arguments[0].expression);Me&&Me.valueDeclaration&&De(Me,Me.valueDeclaration,32),Cc(Q,Me,!0)}function Bo(Q,Me){const wt=Q.expression,bi=wt.expression;bs(bi,wt),bs(wt,Q),bs(Q,Me),Lc(bi,Q,!0,!0)}function ic(Q){let Me=Rh(Q.arguments[0]);const wt=Q.parent.parent.kind===312;Me=Bl(Me,Q.arguments[0],wt,!1,!1),Cc(Q,Me,!1)}function hc(Q){var Me;const wt=Rh(Q.left.expression,f)||Rh(Q.left.expression,E);if(!eu(Q)&&!uye(wt))return;const bi=vP(Q.left);if(!(at(bi)&&((Me=WY(f,bi.escapedText))==null?void 0:Me.flags)&2097152))if(bs(Q.left,Q),bs(Q.right,Q),at(Q.left.expression)&&f===t&&J2(t,Q.left.expression))Ih(Q);else if(zx(Q)){Sl(Q,67108868,"__computed");const Rn=Bl(wt,Q.left.expression,Ul(Q.left),!1,!1);si(Q,Rn)}else xl(Lo(Q.left,uk))}function xl(Q){H.assert(!at(Q)),bs(Q.expression,Q),Lc(Q.expression,Q,!1,!1)}function Bl(Q,Me,wt,bi,Rn){return(Q==null?void 0:Q.flags)&2097152||(wt&&!bi&&(Q=h4(Me,Q,(ma,as,os)=>{if(as)return De(as,ma,67110400),as;{const Il=os?os.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=jo());return ft(Il,os,ma,67110400,110735)}})),Rn&&Q&&Q.valueDeclaration&&De(Q,Q.valueDeclaration,32)),Q}function Cc(Q,Me,wt){if(!Me||!ep(Me))return;const bi=wt?Me.members||(Me.members=jo()):Me.exports||(Me.exports=jo());let Rn=0,nr=0;K0(o7(Q))?(Rn=8192,nr=103359):No(Q)&&nk(Q)&&(qe(Q.arguments[2].properties,ur=>{const ma=qa(ur);return!!ma&&at(ma)&&mu(ma)==="set"})&&(Rn|=65540,nr|=78783),qe(Q.arguments[2].properties,ur=>{const ma=qa(ur);return!!ma&&at(ma)&&mu(ma)==="get"})&&(Rn|=32772,nr|=46015)),Rn===0&&(Rn=4,nr=0),ft(bi,Me,Q,Rn|67108864,nr&-67108865)}function Ul(Q){return tu(Q.parent)?Gm(Q.parent).parent.kind===312:Q.parent.parent.kind===312}function Lc(Q,Me,wt,bi){let Rn=Rh(Q,f)||Rh(Q,E);const nr=Ul(Me);Rn=Bl(Rn,Me.expression,nr,wt,bi),Cc(Me,Rn,wt)}function ep(Q){if(Q.flags&1072)return!0;const Me=Q.valueDeclaration;if(Me&&No(Me))return!!o7(Me);let wt=Me?ua(Me)?Me.initializer:tu(Me)?Me.right:Iu(Me)&&tu(Me.parent)?Me.parent.right:void 0:void 0;if(wt=wt&&Dj(wt),wt){const bi=Rx(ua(Me)?Me.name:tu(Me)?Me.left:Me);return!!Cv(tu(wt)&&(wt.operatorToken.kind===57||wt.operatorToken.kind===61)?wt.right:wt,bi)}return!1}function Gm(Q){for(;tu(Q.parent);)Q=Q.parent;return Q.parent}function Rh(Q,Me=f){if(at(Q))return WY(Me,Q.escapedText);{const wt=Rh(Q.expression);return wt&&wt.exports&&wt.exports.get(Y3(Q))}}function h4(Q,Me,wt){if(J2(t,Q))return t.symbol;if(at(Q))return wt(Q,Rh(Q),Me);{const bi=h4(Q.expression,Me,wt),Rn=vj(Q);return Xr(Rn)&&H.fail("unexpected PrivateIdentifier"),wt(Rn,bi&&bi.exports&&bi.exports.get(Y3(Q)),bi)}}function l3(Q){!t.commonJsModuleIndicator&&Df(Q,!1)&&f0(Q)}function l_(Q){if(Q.kind===263)cd(Q,32,899503);else{const Rn=Q.name?Q.name.escapedText:"__class";Sl(Q,32,Rn),Q.name&&Se.add(Q.name.escapedText)}const{symbol:Me}=Q,wt=Ae(4194308,"prototype"),bi=Me.exports.get(wt.escapedName);bi&&(Q.name&&bs(Q.name,Q),t.bindDiagnostics.push(xe(bi.declarations[0],F.Duplicate_identifier_0,sc(wt)))),Me.exports.set(wt.escapedName,wt),wt.parent=Me}function v5(Q){return x2(Q)?cd(Q,128,899967):cd(Q,256,899327)}function I1(Q){if(ae&&Tc(Q,Q.name),!Fo(Q.name)){const Me=Q.kind===260?Q:Q.parent.parent;eu(Q)&&Zq(u)&&b2(Me)&&!_v(Q)&&!(d2(Q)&32)?Wu(Q,2097152,2097152):d0e(Q)?cd(Q,2,111551):A2(Q)?Wu(Q,1,111551):Wu(Q,1,111550)}}function c3(Q){if(!(Q.kind===348&&f.kind!==330)&&(ae&&!(Q.flags&33554432)&&Tc(Q,Q.name),Fo(Q.name)?Sl(Q,1,"__"+Q.parent.parameters.indexOf(Q)):Wu(Q,1,111551),Pf(Q,Q.parent))){const Me=Q.parent.parent;ft(Me.symbol.members,Me.symbol,Q,4|(Q.questionToken?16777216:0),0)}}function Kf(Q){!t.isDeclarationFile&&!(Q.flags&33554432)&&rP(Q)&&(ge|=4096),sl(Q),ae?(Ri(Q),cd(Q,16,110991)):Wu(Q,16,110991)}function f4(Q){!t.isDeclarationFile&&!(Q.flags&33554432)&&rP(Q)&&(ge|=4096),k&&(Q.flowNode=k),sl(Q);const Me=Q.name?Q.name.escapedText:"__function";return Sl(Q,16,Me)}function Oh(Q,Me,wt){return!t.isDeclarationFile&&!(Q.flags&33554432)&&rP(Q)&&(ge|=4096),k&&rq(Q)&&(Q.flowNode=k),zx(Q)?Sl(Q,Me,"__computed"):Wu(Q,Me,wt)}function Ee(Q){const Me=Ln(Q,wt=>wt.parent&&yB(wt.parent)&&wt.parent.extendsType===wt);return Me&&Me.parent}function Bt(Q){if(gg(Q.parent)){const Me=bq(Q.parent);Me?(H.assertNode(Me,$E),Me.locals??(Me.locals=jo()),ft(Me.locals,void 0,Q,262144,526824)):Wu(Q,262144,526824)}else if(Q.parent.kind===195){const Me=Ee(Q.parent);Me?(H.assertNode(Me,$E),Me.locals??(Me.locals=jo()),ft(Me.locals,void 0,Q,262144,526824)):Sl(Q,262144,He(Q))}else Wu(Q,262144,526824)}function gi(Q){const Me=aD(Q);return Me===1||Me===2&&dk(u)}function xi(Q){if(!(k.flags&1))return!1;if(k===Ne&&(YO(Q)&&Q.kind!==242||Q.kind===263||Q.kind===267&&gi(Q))&&(k=pe,!u.allowUnreachableCode)){const wt=ike(u)&&!(Q.flags&33554432)&&(!Gl(Q)||!!(YD(Q.declarationList)&7)||Q.declarationList.declarations.some(bi=>!!bi.initializer));cPt(Q,(bi,Rn)=>$(wt,bi,Rn,F.Unreachable_code_detected))}return!0}}function cPt(t,u){if(na(t)&&uet(t)&&fo(t.parent)){const{statements:s}=t.parent,d=Ble(s,t);Lu(d,uet,(f,p)=>u(d[f],d[p-1]))}else u(t,t)}function uet(t){return!Xc(t)&&!dPt(t)&&!Mv(t)&&!(Gl(t)&&!(YD(t)&7)&&t.declarationList.declarations.some(u=>!u.initializer))}function dPt(t){switch(t.kind){case 264:case 265:return!0;case 267:return aD(t)!==1;case 266:return Xu(t,4096);default:return!1}}function J2(t,u){let s=0;const d=W$();for(d.enqueue(u);!d.isEmpty()&&s<100;){if(s++,u=d.dequeue(),ik(u)||Z_(u))return!0;if(at(u)){const f=WY(t,u.escapedText);if(f&&f.valueDeclaration&&ua(f.valueDeclaration)&&f.valueDeclaration.initializer){const p=f.valueDeclaration.initializer;d.enqueue(p),od(p,!0)&&(d.enqueue(p.left),d.enqueue(p.right))}}}return!1}function Tde(t){switch(t.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(rq(t))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return t.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return xo(t.parent)||Ml(t.parent)?0:34}return 0}function WY(t,u){var s,d,f,p;const E=(d=(s=ar(t,$E))==null?void 0:s.locals)==null?void 0:d.get(u);if(E)return E.exportSymbol??E;if(ca(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(u))return t.jsGlobalAugmentations.get(u);if(qg(t))return(p=(f=t.symbol)==null?void 0:f.exports)==null?void 0:p.get(u)}var Lde,Nde,ret,hPt=o({"src/compiler/binder.ts"(){Ao(),Hy(),Lde=(t=>(t[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",t))(Lde||{}),Nde=(t=>(t[t.None=0]="None",t[t.IsContainer=1]="IsContainer",t[t.IsBlockScopedContainer=2]="IsBlockScopedContainer",t[t.IsControlFlowContainer=4]="IsControlFlowContainer",t[t.IsFunctionLike=8]="IsFunctionLike",t[t.IsFunctionExpression=16]="IsFunctionExpression",t[t.HasLocals=32]="HasLocals",t[t.IsInterface=64]="IsInterface",t[t.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",t))(Nde||{}),ret=lPt()}});function AAe(t,u,s,d,f,p,E,v,b,B){return k;function k(T=()=>!0){const M=[],z=[];return{walkType:Se=>{try{return j(Se),{visitedTypes:$1(M),visitedSymbols:$1(z)}}finally{gu(M),gu(z)}},walkSymbol:Se=>{try{return ve(Se),{visitedTypes:$1(M),visitedSymbols:$1(z)}}finally{gu(M),gu(z)}}};function j(Se){if(!(!Se||M[Se.id]||(M[Se.id]=Se,ve(Se.symbol)))){if(Se.flags&524288){const pe=Se,fe=pe.objectFlags;fe&4&&J(Se),fe&32&&ge(Se),fe&3&&Ce(Se),fe&24&&ne(pe)}Se.flags&262144&&K(Se),Se.flags&3145728&&Y(Se),Se.flags&4194304&&oe(Se),Se.flags&8388608&&se(Se)}}function J(Se){j(Se.target),L(B(Se),j)}function K(Se){j(v(Se))}function Y(Se){L(Se.types,j)}function oe(Se){j(Se.type)}function se(Se){j(Se.objectType),j(Se.indexType),j(Se.constraint)}function ge(Se){j(Se.typeParameter),j(Se.constraintType),j(Se.templateType),j(Se.modifiersType)}function ae(Se){const Ne=u(Se);Ne&&j(Ne.type),L(Se.typeParameters,j);for(const pe of Se.parameters)ve(pe);j(t(Se)),j(s(Se))}function Ce(Se){ne(Se),L(Se.typeParameters,j),L(d(Se),j),j(Se.thisType)}function ne(Se){const Ne=f(Se);for(const pe of Ne.indexInfos)j(pe.keyType),j(pe.type);for(const pe of Ne.callSignatures)ae(pe);for(const pe of Ne.constructSignatures)ae(pe);for(const pe of Ne.properties)ve(pe)}function ve(Se){if(!Se)return!1;const Ne=qo(Se);if(z[Ne])return!1;if(z[Ne]=Se,!T(Se))return!0;const pe=p(Se);return j(pe),Se.exports&&Se.exports.forEach(ve),L(Se.declarations,fe=>{if(fe.type&&fe.type.kind===186){const xe=fe.type,Be=E(b(xe.exprName));ve(Be)}}),!1}}}var fPt=o({"src/compiler/symbolWalker.ts"(){Ao()}});function Pde({importModuleSpecifierPreference:t,importModuleSpecifierEnding:u},s,d,f){const p=E();return{relativePreference:f!==void 0?Md(f)?0:1:t==="relative"?0:t==="non-relative"?1:t==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:v=>{if((v??d.impliedNodeFormat)===99)return GB(s,d.fileName)?[3,2]:[2];if(m1(s)===1)return p===2?[2,1]:[1,2];const b=GB(s,d.fileName);switch(p){case 2:return b?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return b?[1,0,3,2]:[1,0,2];case 0:return b?[0,1,3,2]:[0,1,2];default:H.assertNever(p)}}};function E(){if(f!==void 0){if(N2(f))return 2;if(oc(f,"/index"))return 1}return Ale(u,d.impliedNodeFormat,s,d)}}function mPt(t,u,s,d,f,p,E={}){const v=aet(t,u,s,d,f,Pde({},t,u,p),{},E);if(v!==p)return v}function GY(t,u,s,d,f,p={}){return aet(t,u,s,d,f,Pde({},t,u),{},p)}function pPt(t,u,s,d,f,p={}){const E=SAe(u.path,d),v=pet(u.path,s,d,f,p);return G(v,b=>BAe(b,E,u,d,t,f,!0,p.overrideImportMode))}function aet(t,u,s,d,f,p,E,v={}){const b=SAe(s,f),B=pet(s,d,f,E,v);return G(B,k=>BAe(k,b,u,f,t,E,void 0,v.overrideImportMode))||det(d,b,t,f,v.overrideImportMode||u.impliedNodeFormat,p)}function gPt(t,u,s,d,f={}){return oet(t,u,s,d,f)[0]}function oet(t,u,s,d,f={}){var p;const E=$U(t);if(!E)return _t;const v=(p=s.getModuleSpecifierCache)==null?void 0:p.call(s),b=v==null?void 0:v.get(u.path,E.path,d,f);return[b==null?void 0:b.moduleSpecifiers,E,b==null?void 0:b.modulePaths,v]}function set(t,u,s,d,f,p,E={}){return cet(t,u,s,d,f,p,E,!1).moduleSpecifiers}function cet(t,u,s,d,f,p,E={},v){let b=!1;const B=_Pt(t,u);if(B)return{moduleSpecifiers:[B],computedWithoutCache:b};let[k,T,M,z]=oet(t,d,f,p,E);if(k)return{moduleSpecifiers:k,computedWithoutCache:b};if(!T)return{moduleSpecifiers:_t,computedWithoutCache:b};b=!0,M||(M=get(d.path,T.originalFileName,f));const j=EPt(M,s,d,f,p,E,v);return z==null||z.set(d.path,T.path,p,E,M,j),{moduleSpecifiers:j,computedWithoutCache:b}}function EPt(t,u,s,d,f,p={},E){const v=SAe(s.path,d),b=Pde(f,u,s),B=L(t,J=>L(d.getFileIncludeReasons().get(H0(J.path,d.getCurrentDirectory(),v.getCanonicalFileName)),K=>{if(K.kind!==3||K.file!==s.path||s.impliedNodeFormat&&s.impliedNodeFormat!==y1e(s,K.index))return;const Y=AQ(s,K.index).text;return b.relativePreference!==1||!am(Y)?Y:void 0}));if(B)return[B];const k=qe(t,J=>J.isInNodeModules);let T,M,z,j;for(const J of t){const K=J.isInNodeModules?BAe(J,v,s,d,u,f,void 0,p.overrideImportMode):void 0;if(T=Ei(T,K),K&&J.isRedirect)return T;if(!K){const Y=det(J.path,v,u,d,p.overrideImportMode||s.impliedNodeFormat,b,J.isRedirect);if(!Y)continue;J.isRedirect?z=Ei(z,Y):yse(Y)?M=Ei(M,Y):(E||!k||J.isInNodeModules)&&(j=Ei(j,Y))}}return M!=null&&M.length?M:z!=null&&z.length?z:T!=null&&T.length?T:H.checkDefined(j)}function SAe(t,u){const s=T1(u.useCaseSensitiveFileNames?u.useCaseSensitiveFileNames():!0),d=dr(t);return{getCanonicalFileName:s,importingSourceFileName:t,sourceDirectory:d}}function det(t,u,s,d,f,{getAllowedEndingsInPreferredOrder:p,relativePreference:E},v){const{baseUrl:b,paths:B,rootDirs:k}=s;if(v&&!B)return;const{sourceDirectory:T,getCanonicalFileName:M}=u,z=p(f),j=k&&DPt(k,t,T,M,z,s)||sH(l2(GE(T,t,M)),z,s);if(!b&&!B||E===0)return v?void 0:j;const J=$a(Lq(s,d)||b,d.getCurrentDirectory()),K=xet(t,J,M);if(!K)return v?void 0:j;const Y=B&&Eet(K,B,z,d,s);if(v)return Y;const oe=Y===void 0&&b!==void 0?sH(K,z,s):Y;if(!oe)return j;if(E===1&&!am(oe))return oe;if(E===3&&!am(oe)){const se=s.configFilePath?H0(dr(s.configFilePath),d.getCurrentDirectory(),u.getCanonicalFileName):u.getCanonicalFileName(d.getCurrentDirectory()),ge=H0(t,se,M),ae=Na(T,se),Ce=Na(ge,se);if(ae&&!Ce||!ae&&Ce)return oe;const ne=fet(d,dr(ge));return fet(d,T)!==ne?oe:j}return vet(oe)||JY(j)t.fileExists(hr(s,"package.json"))?!0:void 0)}function met(t,u,s,d,f){var p;const E=i5(s),v=s.getCurrentDirectory(),b=s.isSourceOfProjectReferenceRedirect(u)?s.getProjectReferenceRedirect(u):void 0,B=H0(u,v,E),k=s.redirectTargetsMap.get(B)||_t,M=[...b?[b]:_t,u,...k].map(Y=>$a(Y,v));let z=!ye(M,wP);if(!d){const Y=L(M,oe=>!(z&&wP(oe))&&f(oe,b===oe));if(Y)return Y}const j=(p=s.getSymlinkCache)==null?void 0:p.call(s).getSymlinkedDirectoriesByRealpath(),J=$a(u,v);return j&&$g(dr(J),Y=>{const oe=j.get(Pd(H0(Y,v,E)));if(oe)return Fse(t,Y,E)?!1:L(M,se=>{if(!Fse(se,Y,E))return;const ge=GE(Y,se,E);for(const ae of oe){const Ce=yx(ae,ge),ne=f(Ce,se===b);if(z=!0,ne)return ne}})})||(d?L(M,Y=>z&&wP(Y)?void 0:f(Y,Y===b)):void 0)}function pet(t,u,s,d,f={}){var p;const E=H0(u,s.getCurrentDirectory(),i5(s)),v=(p=s.getModuleSpecifierCache)==null?void 0:p.call(s);if(v){const B=v.get(t,E,d,f);if(B!=null&&B.modulePaths)return B.modulePaths}const b=get(t,u,s);return v&&v.setModulePaths(t,E,d,f,b),b}function get(t,u,s){const d=i5(s),f=new Map;met(t,u,s,!0,(E,v)=>{const b=$7(E);f.set(E,{path:d(E),isRedirect:v,isInNodeModules:b})});const p=[];for(let E=dr(t);f.size!==0;){const v=Pd(E);let b;f.forEach(({path:k,isRedirect:T,isInNodeModules:M},z)=>{Na(k,v)&&((b||(b=[])).push({path:z,isRedirect:T,isInNodeModules:M}),f.delete(z))}),b&&(b.length>1&&b.sort(het),p.push(...b));const B=dr(E);if(B===E)break;E=B}if(f.size){const E=Ea(f.values());E.length>1&&E.sort(het),p.push(...E)}return p}function _Pt(t,u){var s;const d=(s=t.declarations)==null?void 0:s.find(E=>f0e(E)&&(!_2(E)||!Md(W4(E.name))));if(d)return d.name.text;const p=Ui(t.declarations,E=>{var v,b,B,k;if(!Ec(E))return;const T=J(E);if(!((v=T==null?void 0:T.parent)!=null&&v.parent&&uE(T.parent)&&L1(T.parent.parent)&&ca(T.parent.parent.parent)))return;const M=(k=(B=(b=T.parent.parent.symbol.exports)==null?void 0:b.get("export="))==null?void 0:B.valueDeclaration)==null?void 0:k.expression;if(!M)return;const z=u.getSymbolAtLocation(M);if(!z)return;if(((z==null?void 0:z.flags)&2097152?u.getAliasedSymbol(z):z)===E.symbol)return T.parent.parent;function J(K){for(;K.flags&8;)K=K.parent;return K}})[0];if(p)return p.name.text}function Eet(t,u,s,d,f){for(const E in u)for(const v of u[E]){const b=Go(v),B=b.indexOf("*"),k=s.map(T=>({ending:T,value:sH(t,[T],f)}));if(e3(b)&&k.push({ending:void 0,value:t}),B!==-1){const T=b.substring(0,B),M=b.substring(B+1);for(const{ending:z,value:j}of k)if(j.length>=T.length+M.length&&Na(j,T)&&oc(j,M)&&p({ending:z,value:j})){const J=j.substring(T.length,j.length-M.length);if(!am(J))return E.replace("*",J)}}else if(qe(k,T=>T.ending!==0&&b===T.value)||qe(k,T=>T.ending===0&&b===T.value&&p(T)))return E}function p({ending:E,value:v}){return E!==0||v===sH(t,[E],f,d)}}function Mde(t,u,s,d,f,p,E=0){if(typeof f=="string"){const v=$a(hr(s,f),void 0),b=hk(u)?Eh(u)+zde(u,t):void 0;switch(E){case 0:if(fv(u,v)===0||b&&fv(b,v)===0)return{moduleFileToTry:d};break;case 1:if(WE(v,u)){const M=GE(v,u,!1);return{moduleFileToTry:$a(hr(hr(d,f),M),void 0)}}break;case 2:const B=v.indexOf("*"),k=v.slice(0,B),T=v.slice(B+1);if(Na(u,k)&&oc(u,T)){const M=u.slice(k.length,u.length-T.length);return{moduleFileToTry:d.replace("*",M)}}if(b&&Na(b,k)&&oc(b,T)){const M=b.slice(k.length,b.length-T.length);return{moduleFileToTry:d.replace("*",M)}}break}}else{if(Array.isArray(f))return L(f,v=>Mde(t,u,s,d,v,p));if(typeof f=="object"&&f!==null){if(HY(f))return L(Ts(f),v=>{const b=$a(hr(d,v),void 0),B=oc(v,"/")?1:v.includes("*")?2:0;return Mde(t,u,s,b,f[v],p,B)});for(const v of Ts(f))if(v==="default"||p.includes(v)||aH(p,v)){const b=f[v],B=Mde(t,u,s,d,b,p,E);if(B)return B}}}}function DPt(t,u,s,d,f,p){const E=_et(u,t,d);if(E===void 0)return;const v=_et(s,t,d),b=Ku(v,k=>Kt(E,T=>l2(GE(k,T,d)))),B=aoe(b,eV);if(B)return sH(B,f,p)}function BAe({path:t,isRedirect:u},{getCanonicalFileName:s,sourceDirectory:d},f,p,E,v,b,B){if(!p.fileExists||!p.readFile)return;const k=dZ(t);if(!k)return;const M=Pde(v,E,f).getAllowedEndingsInPreferredOrder();let z=t,j=!1;if(!b){let ge=k.packageRootIndex,ae;for(;;){const{moduleFileToTry:Ce,packageRootPath:ne,blockedByExports:ve,verbatimFromExports:Se}=se(ge);if(m1(E)!==1){if(ve)return;if(Se)return Ce}if(ne){z=ne,j=!0;break}if(ae||(ae=Ce),ge=t.indexOf(nl,ge+1),ge===-1){z=sH(ae,M,E,p);break}}}if(u&&!j)return;const J=p.getGlobalTypingsCacheLocation&&p.getGlobalTypingsCacheLocation(),K=s(z.substring(0,k.topLevelNodeModulesIndex));if(!(Na(d,K)||J&&Na(s(J),K)))return;const Y=z.substring(k.topLevelPackageNameIndex+1),oe=dM(Y);return m1(E)===1&&oe===Y?void 0:oe;function se(ge){var ae,Ce;const ne=t.substring(0,ge),ve=hr(ne,"package.json");let Se=t,Ne=!1;const pe=(Ce=(ae=p.getPackageJsonInfoCache)==null?void 0:ae.call(p))==null?void 0:Ce.getPackageJsonInfo(ve);if(typeof pe=="object"||pe===void 0&&p.fileExists(ve)){const fe=(pe==null?void 0:pe.contents.packageJsonContent)||JSON.parse(p.readFile(ve)),xe=B||f.impliedNodeFormat;if(xle(E)){const Ae=ne.substring(k.topLevelPackageNameIndex+1),De=dM(Ae),He=W2(E,xe),Ge=fe.exports?Mde(E,t,ne,De,fe.exports,He):void 0;if(Ge)return{...hk(Ge.moduleFileToTry)?{moduleFileToTry:Eh(Ge.moduleFileToTry)+zde(Ge.moduleFileToTry,E)}:Ge,verbatimFromExports:!0};if(fe.exports)return{moduleFileToTry:t,blockedByExports:!0}}const Be=fe.typesVersions?zY(fe.typesVersions):void 0;if(Be){const Ae=t.slice(ne.length+1),De=Eet(Ae,Be.paths,M,p,E);De===void 0?Ne=!0:Se=hr(ne,De)}const We=fe.typings||fe.types||fe.main||"index.js";if(Ja(We)&&!(Ne&&Sle(rZ(Be.paths),We))){const Ae=H0(We,ne,s),De=s(Se);if(Eh(Ae)===Eh(De))return{packageRootPath:ne,moduleFileToTry:Se};if(fe.type!=="module"&&!Oc(De,dV)&&Na(De,Ae)&&dr(De)===hv(Ae)&&Eh(Fc(De))==="index")return{packageRootPath:ne,moduleFileToTry:Se}}}else{const fe=s(Se.substring(k.packageRootIndex+1));if(fe==="index.d.ts"||fe==="index.js"||fe==="index.ts"||fe==="index.tsx")return{moduleFileToTry:Se,packageRootPath:ne}}return{moduleFileToTry:Se}}}function xPt(t,u){if(!t.fileExists)return;const s=Va(yP({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const d of s){const f=u+d;if(t.fileExists(f))return f}}function _et(t,u,s){return Ui(u,d=>{const f=xet(t,d,s);return f!==void 0&&vet(f)?void 0:f})}function sH(t,u,s,d){if(Oc(t,[".json",".mjs",".cjs"]))return t;const f=Eh(t);if(t===f)return t;const p=u.indexOf(2),E=u.indexOf(3);if(Oc(t,[".mts",".cts"])&&E!==-1&&EB===0||B===1);return b!==-1&&bJY,forEachFileNameOfModule:()=>met,getModuleSpecifier:()=>GY,getModuleSpecifiers:()=>set,getModuleSpecifiersWithCacheInfo:()=>cet,getNodeModulesPackageName:()=>pPt,tryGetJSExtensionForFile:()=>zde,tryGetModuleSpecifiersFromCache:()=>gPt,tryGetRealFileNameForNonJsDeclarationFileName:()=>Det,updateModuleSpecifier:()=>mPt});var TAe=o({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Cet()}});function vPt(){this.flags=0}function Js(t){return t.id||(t.id=PAe,PAe++),t.id}function qo(t){return t.id||(t.id=NAe,NAe++),t.id}function Ide(t,u){const s=aD(t);return s===1||u&&s===2}function LAe(t){var u=[],s=l=>{u.push(l)},d,f=new Set,p,E,v=Yd.getSymbolConstructor(),b=Yd.getTypeConstructor(),B=Yd.getSignatureConstructor(),k=0,T=0,M=0,z=0,j=0,J=0,K,Y,oe=!1,se=jo(),ge=[1],ae=t.getCompilerOptions(),Ce=Is(ae),ne=f1(ae),ve=!!ae.experimentalDecorators,Se=Qj(ae),Ne=uke(ae),pe=x7(ae),fe=U4(ae,"strictNullChecks"),xe=U4(ae,"strictFunctionTypes"),Be=U4(ae,"strictBindCallApply"),We=U4(ae,"strictPropertyInitialization"),Ae=U4(ae,"noImplicitAny"),De=U4(ae,"noImplicitThis"),He=U4(ae,"useUnknownInCatchVariables"),Ge=!!ae.keyofStringsOnly,ft=Ge?1:0,Ze=ae.suppressExcessPropertyErrors?0:8192,je=ae.exactOptionalPropertyTypes,Ke=jai(),Gt=_li(),Yt=sF(),Ie=jo(),st=js(4,"undefined");st.declarations=[];var St=js(1536,"globalThis",8);St.exports=Ie,St.declarations=[],Ie.set(St.escapedName,St);var It=js(4,"arguments"),ti=js(4,"require"),ht=ae.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Ut=!ae.verbatimModuleSyntax||!!ae.importsNotUsedAsValues,Li,ji,xn=0,Un,rn=0;const Ni={getNodeCount:()=>tn(t.getSourceFiles(),(l,m)=>l+m.nodeCount,0),getIdentifierCount:()=>tn(t.getSourceFiles(),(l,m)=>l+m.identifierCount,0),getSymbolCount:()=>tn(t.getSourceFiles(),(l,m)=>l+m.symbolCount,T),getTypeCount:()=>k,getInstantiationCount:()=>M,getRelationCacheSizes:()=>({assignable:Gf.size,identity:gm.size,subtype:d_.size,strictSubtype:m4.size}),isUndefinedSymbol:l=>l===st,isArgumentsSymbol:l=>l===It,isUnknownSymbol:l=>l===Xt,getMergedSymbol:Vs,getDiagnostics:z4t,getGlobalDiagnostics:P0i,getRecursionIdentity:tEe,getUnmatchedProperties:iMe,getTypeOfSymbolAtLocation:(l,m)=>{const D=Ua(m);return D?Lni(l,D):jt},getTypeOfSymbol:Jn,getSymbolsOfParameterPropertyDeclaration:(l,m)=>{const D=Ua(l,eo);return D===void 0?H.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(H.assert(Pf(D,D.parent)),Mw(D,kl(m)))},getDeclaredTypeOfSymbol:q0,getPropertiesOfType:n0,getPropertyOfType:(l,m)=>$o(l,kl(m)),getPrivateIdentifierPropertyOfType:(l,m,D)=>{const C=Ua(D);if(!C)return;const A=kl(m),w=TEe(A,C);return w?VMe(l,w):void 0},getTypeOfPropertyOfType:(l,m)=>he(l,kl(m)),getIndexInfoOfType:(l,m)=>y3(l,m===0?ct:Qt),getIndexInfosOfType:yh,getIndexInfosOfIndexSymbol:XNe,getSignaturesOfType:mo,getIndexTypeOfType:(l,m)=>CC(l,m===0?ct:Qt),getIndexType:l=>y_(l),getBaseTypes:qc,getBaseTypeOfLiteralType:yD,getWidenedType:xm,getTypeFromTypeNode:l=>{const m=Ua(l,Qr);return m?Br(m):jt},getParameterType:wg,getParameterIdentifierInfoAtPosition:uai,getPromisedTypeOfPromise:TW,getAwaitedType:l=>TF(l),getReturnTypeOfSignature:qs,isNullableType:Yte,getNullableType:rEe,getNonNullableType:kD,getNonOptionalType:aEe,getTypeArguments:M0,typeToTypeNode:Yt.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Yt.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Yt.signatureToSignatureDeclaration,symbolToEntityName:Yt.symbolToEntityName,symbolToExpression:Yt.symbolToExpression,symbolToNode:Yt.symbolToNode,symbolToTypeParameterDeclarations:Yt.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Yt.symbolToParameterDeclaration,typeParameterToDeclaration:Yt.typeParameterToDeclaration,getSymbolsInScope:(l,m)=>{const D=Ua(l);return D?M0i(D,m):[]},getSymbolAtLocation:l=>{const m=Ua(l);return m?Up(m,!0):void 0},getIndexInfosAtLocation:l=>{const m=Ua(l);return m?K0i(m):void 0},getShorthandAssignmentValueSymbol:l=>{const m=Ua(l);return m?W0i(m):void 0},getExportSpecifierLocalTargetSymbol:l=>{const m=Ua(l,X1);return m?G0i(m):void 0},getExportSymbolOfSymbol(l){return Vs(l.exportSymbol||l)},getTypeAtLocation:l=>{const m=Ua(l);return m?X9(m):jt},getTypeOfAssignmentPattern:l=>{const m=Ua(l,HN);return m&&r_e(m)||jt},getPropertySymbolOfDestructuringAssignment:l=>{const m=Ua(l,at);return m?J0i(m):void 0},signatureToString:(l,m,D,C)=>xE(l,Ua(m),D,C),typeToString:(l,m,D)=>gn(l,Ua(m),D),symbolToString:(l,m,D,C)=>Sr(l,Ua(m),D,C),typePredicateToString:(l,m,D)=>g_(l,Ua(m),D),writeSignature:(l,m,D,C,A)=>xE(l,Ua(m),D,C,A),writeType:(l,m,D,C)=>gn(l,Ua(m),D,C),writeSymbol:(l,m,D,C,A)=>Sr(l,Ua(m),D,C,A),writeTypePredicate:(l,m,D,C)=>g_(l,Ua(m),D,C),getAugmentedPropertiesOfType:Kze,getRootSymbols:W4t,getSymbolOfExpando:OEe,getContextualType:(l,m)=>{const D=Ua(l,Wt);if(D)return m&4?aa(D,()=>df(D,m)):df(D,m)},getContextualTypeForObjectLiteralElement:l=>{const m=Ua(l,q3);return m?AMe(m,void 0):void 0},getContextualTypeForArgumentAtIndex:(l,m)=>{const D=Ua(l,g2);return D&&FMe(D,m)},getContextualTypeForJsxAttribute:l=>{const m=Ua(l,OU);return m&&aft(m,void 0)},isContextSensitive:y4,getTypeOfPropertyOfContextualType:zb,getFullyQualifiedName:rp,getResolvedSignature:(l,m,D)=>Fr(l,m,D,0),getCandidateSignaturesForStringLiteralCompletions:Fi,getResolvedSignatureForSignatureHelp:(l,m,D)=>Qu(l,()=>Fr(l,m,D,16)),getExpandedParameters:cdt,hasEffectiveRestParameter:k_,containsArgumentsReference:YNe,getConstantValue:l=>{const m=Ua(l,q4t);return m?Wze(m):void 0},isValidPropertyAccess:(l,m)=>{const D=Ua(l,ube);return!!D&&mri(D,kl(m))},isValidPropertyAccessForCompletions:(l,m,D)=>{const C=Ua(l,Iu);return!!C&&zft(C,m,D)},getSignatureFromDeclaration:l=>{const m=Ua(l,xo);return m?lp(m):void 0},isImplementationOfOverload:l=>{const m=Ua(l,xo);return m?$4t(m):void 0},getImmediateAliasedSymbol:LMe,getAliasedSymbol:hd,getEmitResolver:Rd,getExportsOfModule:T5,getExportsAndPropertiesOfModule:lz,forEachExportAndPropertyOfModule:L9,getSymbolWalker:AAe(eei,b4,qs,qc,kg,Jn,$p,uh,dm,M0),getAmbientModules:oci,getJsxIntrinsicTagNamesAt:$ui,isOptionalParameter:l=>{const m=Ua(l,eo);return m?iW(m):!1},tryGetMemberInModuleExports:(l,m)=>N9(kl(l),m),tryGetMemberInModuleExportsAndProperties:(l,m)=>P9(kl(l),m),tryFindAmbientModule:l=>yge(l,!0),tryFindAmbientModuleWithoutAugmentations:l=>yge(l,!1),getApparentType:Kh,getUnionType:ir,isTypeAssignableTo:hs,createAnonymousType:Rl,createSignature:b3,createSymbol:js,createIndexInfo:b_,getAnyType:()=>me,getStringType:()=>ct,getStringLiteralType:cf,getNumberType:()=>Qt,getNumberLiteralType:Sg,getBigIntType:()=>Ti,createPromiseType:oie,createArrayType:j1,getElementTypeOfArrayType:HPe,getBooleanType:()=>Er,getFalseType:l=>l?$i:Bn,getTrueType:l=>l?hu:Ru,getVoidType:()=>da,getUndefinedType:()=>te,getNullType:()=>it,getESSymbolType:()=>tr,getNeverType:()=>Wu,getOptionalType:()=>X,getPromiseType:()=>Cte(!1),getPromiseLikeType:()=>Ydt(!1),getAsyncIterableType:()=>{const l=Pge(!1);if(l!==Ka)return l},isSymbolAccessible:ku,isArrayType:F4,isTupleType:_s,isArrayLikeType:V5,isEmptyAnonymousObjectType:bD,isTypeInvalidDueToUnionDiscriminant:MXt,getExactOptionalProperties:sii,getAllPossiblePropertiesOfTypes:zXt,getSuggestedSymbolForNonexistentProperty:WMe,getSuggestionForNonexistentProperty:GMe,getSuggestedSymbolForNonexistentJSXAttribute:Pft,getSuggestedSymbolForNonexistentSymbol:(l,m,D)=>JMe(l,kl(m),D),getSuggestionForNonexistentSymbol:(l,m,D)=>cri(l,kl(m),D),getSuggestedSymbolForNonexistentModule:NEe,getSuggestionForNonexistentExport:dri,getSuggestedSymbolForNonexistentClassMember:Nft,getBaseConstraintOfType:Hh,getDefaultFromTypeParameter:l=>l&&l.flags&262144?gF(l):void 0,resolveName(l,m,D,C){return nc(m,kl(l),D,void 0,void 0,!1,C)},getJsxNamespace:l=>Yr(iC(l)),getJsxFragmentFactory:l=>{const m=Jze(l);return m&&Yr(dm(m).escapedText)},getAccessibleSymbolChain:gC,getTypePredicateOfSignature:b4,resolveExternalModuleName:l=>{const m=Ua(l,Wt);return m&&Vh(m,m,!0)},resolveExternalModuleSymbol:Em,tryGetThisTypeAt:(l,m,D)=>{const C=Ua(l);return C&&CMe(C,m,D)},getTypeArgumentConstraint:l=>{const m=Ua(l,Qr);return m&&_oi(m)},getSuggestionDiagnostics:(l,m)=>{const D=Ua(l,ca)||H.fail("Could not determine parsed source file.");if(FP(D,ae,t))return _t;let C;try{return d=m,Vze(D),H.assert(!!(sr(D).flags&1)),C=kn(C,Uk.getDiagnostics(D.fileName)),Qmt(M4t(D),(A,w,I)=>{!I8(A)&&!P4t(w,!!(A.flags&33554432))&&(C||(C=[])).push({...I,category:2})}),C||_t}finally{d=void 0}},runWithCancellationToken:(l,m)=>{try{return d=l,m(Ni)}finally{d=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:sn,isDeclarationVisible:mD,isPropertyAccessible:UMe,getTypeOnlyAliasDeclaration:E4,getMemberOverrideModifierStatus:Zsi,isTypeParameterPossiblyReferenced:Ste,typeHasCallOrConstructSignatures:a_e};function Fi(l,m){const D=new Set,C=[];aa(m,()=>Fr(l,C,void 0,0));for(const A of C)D.add(A);C.length=0,Qu(m,()=>Fr(l,C,void 0,0));for(const A of C)D.add(A);return Ea(D)}function Qu(l,m){if(l=Ln(l,Qse),l){const D=[],C=[];for(;l;){const w=sr(l);if(D.push([w,w.resolvedSignature]),w.resolvedSignature=void 0,M2(l)){const I=$r(Du(l)),U=I.type;C.push([I,U]),I.type=void 0}l=Ln(l.parent,Qse)}const A=m();for(const[w,I]of D)w.resolvedSignature=I;for(const[w,I]of C)w.type=I;return A}return m()}function aa(l,m){const D=Ln(l,g2);if(D){let A=l;do sr(A).skipDirectInference=!0,A=A.parent;while(A&&A!==D)}oe=!0;const C=Qu(l,m);if(oe=!1,D){let A=l;do sr(A).skipDirectInference=void 0,A=A.parent;while(A&&A!==D)}return C}function Fr(l,m,D,C){const A=Ua(l,g2);Li=D;const w=A?hT(A,m,C):void 0;return Li=void 0,w}var Ba=new Map,bt=new Map,jn=new Map,Nn=new Map,Ai=new Map,Dn=new Map,bn=new Map,iu=new Map,oa=new Map,xa=new Map,ra=new Map,wa=new Map,Zo=new Map,vo=new Map,Qe=new Map,Et=[],Mt=new Map,qt=new Set,Xt=js(4,"unknown"),Pe=js(0,"__resolving__"),et=new Map,gt=new Map,ii=new Set,me=Nc(1,"any"),ni=Nc(1,"any",262144,"auto"),_i=Nc(1,"any",void 0,"wildcard"),mt=Nc(1,"any",void 0,"blocked string"),jt=Nc(1,"error"),pi=Nc(1,"unresolved"),Ji=Nc(1,"any",65536,"non-inferrable"),Yi=Nc(1,"intrinsic"),on=Nc(2,"unknown"),le=Nc(2,"unknown",void 0,"non-null"),te=Nc(32768,"undefined"),we=fe?te:Nc(32768,"undefined",65536,"widening"),de=Nc(32768,"undefined",void 0,"missing"),Oe=je?de:te,X=Nc(32768,"undefined",void 0,"optional"),it=Nc(65536,"null"),Ct=fe?it:Nc(65536,"null",65536,"widening"),ct=Nc(4,"string"),Qt=Nc(8,"number"),Ti=Nc(64,"bigint"),$i=Nc(512,"false",void 0,"fresh"),Bn=Nc(512,"false"),hu=Nc(512,"true",void 0,"fresh"),Ru=Nc(512,"true");hu.regularType=Ru,hu.freshType=hu,Ru.regularType=Ru,Ru.freshType=hu,$i.regularType=Bn,$i.freshType=$i,Bn.regularType=Bn,Bn.freshType=$i;var Er=ir([Bn,Ru]),tr=Nc(4096,"symbol"),da=Nc(16384,"void"),Wu=Nc(131072,"never"),ja=Nc(131072,"never",262144,"silent"),Tn=Nc(131072,"never",void 0,"implicit"),Rr=Nc(131072,"never",void 0,"unreachable"),rs=Nc(67108864,"object"),So=ir([ct,Qt]),An=ir([ct,Qt,tr]),xc=Ge?ct:An,Za=ir([Qt,Ti]),l0=ir([ct,Qt,Er,Ti,it,te]),$l=_F(["",""],[Qt]),Sl=Ate(l=>l.flags&262144?Mti(l):l,()=>"(restrictive mapper)"),cd=Ate(l=>l.flags&262144?_i:l,()=>"(permissive mapper)"),Dl=Nc(131072,"never",void 0,"unique literal"),so=Ate(l=>l.flags&262144?Dl:l,()=>"(unique literal mapper)"),Vo,td=Ate(l=>(Vo&&(l===of||l===U0||l===vc)&&Vo(!0),l),()=>"(unmeasurable reporter)"),$0=Ate(l=>(Vo&&(l===of||l===U0||l===vc)&&Vo(!1),l),()=>"(unreliable reporter)"),Ho=Rl(void 0,se,_t,_t,_t),wc=Rl(void 0,se,_t,_t,_t);wc.objectFlags|=2048;var Kp=js(2048,"__type");Kp.members=jo();var Tc=Rl(Kp,se,_t,_t,_t),zl=Rl(void 0,se,_t,_t,_t),sl=fe?ir([te,it,zl]):on,Ka=Rl(void 0,se,_t,_t,_t);Ka.instantiations=new Map;var Ri=Rl(void 0,se,_t,_t,_t);Ri.objectFlags|=262144;var ll=Rl(void 0,se,_t,_t,_t),$c=Rl(void 0,se,_t,_t,_t),vh=Rl(void 0,se,_t,_t,_t),of=O1(),U0=O1();U0.constraint=of;var vc=O1(),$=O1(),tt=O1();tt.constraint=$;var vt=xte(1,"<>",0,me),hi=b3(void 0,void 0,void 0,_t,me,void 0,0,0),fn=b3(void 0,void 0,void 0,_t,jt,void 0,0,0),Gu=b3(void 0,void 0,void 0,_t,me,void 0,0,0),ru=b3(void 0,void 0,void 0,_t,ja,void 0,0,0),Tu=b_(Qt,ct,!0),Pr=new Map,Vu={get yieldType(){return H.fail("Not supported")},get returnType(){return H.fail("Not supported")},get nextType(){return H.fail("Not supported")}},Fs=G5(me,me,me),tc=G5(me,me,on),id=G5(Wu,me,te),A0={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:pei,getGlobalIterableType:Pge,getGlobalIterableIteratorType:gei,getGlobalGeneratorType:Eei,resolveIterationType:(l,m)=>TF(l,m,F.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:F.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:F.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:F.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},nd={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:_ei,getGlobalIterableType:oPe,getGlobalIterableIteratorType:Dei,getGlobalGeneratorType:xei,resolveIterationType:(l,m)=>l,mustHaveANextMethodDiagnostic:F.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:F.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:F.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},f0,Sd=new Map,Ih=[],nh,d4,_1,Ve,si,zn,ya,yo,Bo,ic,hc,xl,Bl,Cc,Ul,Lc,ep,Gm,Rh,h4,l3,l_,v5,I1,c3,Kf,f4,Oh,Ee,Bt,gi,xi,Q,Me,wt,bi,Rn,nr,ur,ma,as,os,Il,D1,dd,Jm,gs,tp,$m,d3,c_,ta,Qx,Xx,vg,rb,C5=new Map,Xe=0,Dt=0,ai=0,wi=!1,Qi=0,On,en,yn,Ar=[],bu=[],yu=[],_u=0,sa=[],m0=[],a0=0,Wf=cf(""),Qv=Sg(0),e6=Oge({negative:!1,base10Value:"0"}),lD=[],t6=[],Kk=[],ab=0,Wk=!1,Gk=0,rz=10,E9=[],Sw=[],Xv=[],_9=[],D9=[],Bw=[],Jk=[],ww=[],x9=[],v9=[],$k=[],ob=[],sb=[],eC=[],b5=[],lb=[],hE=[],Os=nB(),Uk=nB(),Tw=Kw(),i6,y5,d_=new Map,m4=new Map,Gf=new Map,jh=new Map,gm=new Map,tC=new Map,Lw=jo();Lw.set(st.escapedName,st);var C9=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",ae.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Dli(),Ni;function qk(l){return l?Qe.get(l):void 0}function cb(l,m){return l&&Qe.set(l,m),m}function iC(l){if(l){const m=In(l);if(m)if(O7(l)){if(m.localJsxFragmentNamespace)return m.localJsxFragmentNamespace;const D=m.pragmas.get("jsxfrag");if(D){const A=Ha(D)?D[0]:D;if(m.localJsxFragmentFactory=K7(A.arguments.factory,Ce),yt(m.localJsxFragmentFactory,nC,om),m.localJsxFragmentFactory)return m.localJsxFragmentNamespace=dm(m.localJsxFragmentFactory).escapedText}const C=Jze(l);if(C)return m.localJsxFragmentFactory=C,m.localJsxFragmentNamespace=dm(C).escapedText}else{const D=Zk(m);if(D)return m.localJsxNamespace=D}}return i6||(i6="React",ae.jsxFactory?(y5=K7(ae.jsxFactory,Ce),yt(y5,nC),y5&&(i6=dm(y5).escapedText)):ae.reactNamespace&&(i6=kl(ae.reactNamespace))),y5||(y5=q.createQualifiedName(q.createIdentifier(Yr(i6)),"createElement")),i6}function Zk(l){if(l.localJsxNamespace)return l.localJsxNamespace;const m=l.pragmas.get("jsx");if(m){const D=Ha(m)?m[0]:m;if(l.localJsxFactory=K7(D.arguments.factory,Ce),yt(l.localJsxFactory,nC,om),l.localJsxFactory)return l.localJsxNamespace=dm(l.localJsxFactory).escapedText}}function nC(l){return e_(l,-1,-1),un(l,nC,Eg)}function Rd(l,m){return z4t(l,m),Gt}function k5(l,m,...D){const C=l?Bu(l,m,...D):lc(m,...D),A=Os.lookup(C);return A||(Os.add(C),C)}function F5(l,m,D,...C){const A=pt(m,D,...C);return A.skippedOn=l,A}function h3(l,m,...D){return l?Bu(l,m,...D):lc(m,...D)}function pt(l,m,...D){const C=h3(l,m,...D);return Os.add(C),C}function t1(l,m){l?Os.add(m):Uk.add({...m,category:2})}function p4(l,m,D,...C){if(m.pos<0||m.end<0){if(!l)return;const A=In(m);t1(l,"message"in D?zd(A,0,0,D,...C):C0e(A,D));return}t1(l,"message"in D?Bu(m,D,...C):Z3(In(m),m,D))}function Ch(l,m,D,...C){const A=pt(l,D,...C);if(m){const w=Bu(l,F.Did_you_forget_to_use_await);ps(A,w)}return A}function Nw(l,m){const D=Array.isArray(l)?L(l,Ise):Ise(l);return D&&ps(m,Bu(D,F.The_declaration_was_marked_as_deprecated_here)),Uk.add(m),m}function A5(l){const m=lf(l);return m&&S(l.declarations)>1?m.flags&64?qe(l.declarations,uC):ye(l.declarations,uC):!!l.valueDeclaration&&uC(l.valueDeclaration)||S(l.declarations)&&ye(l.declarations,uC)}function uC(l){return!!(Hb(l)&536870912)}function f3(l,m,D){const C=Bu(l,F._0_is_deprecated,D);return Nw(m,C)}function az(l,m,D,C){const A=D?Bu(l,F.The_signature_0_of_1_is_deprecated,C,D):Bu(l,F._0_is_deprecated,C);return Nw(m,A)}function js(l,m,D){T++;const C=new v(l|33554432,m);return C.links=new IAe,C.links.checkFlags=D||0,C}function Cg(l,m){const D=js(1,l);return D.links.type=m,D}function Yk(l,m){const D=js(4,l);return D.links.type=m,D}function Qk(l){let m=0;return l&2&&(m|=111551),l&1&&(m|=111550),l&4&&(m|=0),l&8&&(m|=900095),l&16&&(m|=110991),l&32&&(m|=899503),l&64&&(m|=788872),l&256&&(m|=899327),l&128&&(m|=899967),l&512&&(m|=110735),l&8192&&(m|=103359),l&32768&&(m|=46015),l&65536&&(m|=78783),l&262144&&(m|=526824),l&524288&&(m|=788968),l&2097152&&(m|=2097152),m}function db(l,m){m.mergeId||(m.mergeId=MAe,MAe++),E9[m.mergeId]=l}function hb(l){const m=js(l.flags,l.escapedName);return m.declarations=l.declarations?l.declarations.slice():[],m.parent=l.parent,l.valueDeclaration&&(m.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(m.constEnumOnlyModule=!0),l.members&&(m.members=new Map(l.members)),l.exports&&(m.exports=new Map(l.exports)),db(m,l),m}function ip(l,m,D=!1){if(!(l.flags&Qk(m.flags))||(m.flags|l.flags)&67108864){if(m===l)return l;if(!(l.flags&33554432)){const A=bc(l);if(A===Xt)return m;l=hb(A)}m.flags&512&&l.flags&512&&l.constEnumOnlyModule&&!m.constEnumOnlyModule&&(l.constEnumOnlyModule=!1),l.flags|=m.flags,m.valueDeclaration&&yj(l,m.valueDeclaration),kn(l.declarations,m.declarations),m.members&&(l.members||(l.members=jo()),fE(l.members,m.members,D)),m.exports&&(l.exports||(l.exports=jo()),fE(l.exports,m.exports,D)),D||db(l,m)}else if(l.flags&1024)l!==St&&pt(m.declarations&&qa(m.declarations[0]),F.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Sr(l));else{const A=!!(l.flags&384||m.flags&384),w=!!(l.flags&2||m.flags&2),I=A?F.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:w?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0,U=m.declarations&&In(m.declarations[0]),Z=l.declarations&&In(l.declarations[0]),ce=tj(U,ae.checkJs),Fe=tj(Z,ae.checkJs),Te=Sr(m);if(U&&Z&&f0&&!A&&U!==Z){const Je=fv(U.path,Z.path)===-1?U:Z,ut=Je===U?Z:U,zt=Vl(f0,`${Je.path}|${ut.path}`,()=>({firstFile:Je,secondFile:ut,conflictingSymbols:new Map})),fi=Vl(zt.conflictingSymbols,Te,()=>({isBlockScoped:w,firstFileLocations:[],secondFileLocations:[]}));ce||C(fi.firstFileLocations,m),Fe||C(fi.secondFileLocations,l)}else ce||bg(m,I,Te,l),Fe||bg(l,I,Te,m)}return l;function C(A,w){if(w.declarations)for(const I of w.declarations)va(A,I)}}function bg(l,m,D,C){L(l.declarations,A=>{m3(A,m,D,C.declarations)})}function m3(l,m,D,C){const A=(Cv(l,!1)?L0e(l):qa(l))||l,w=k5(A,m,D);for(const I of C||_t){const U=(Cv(I,!1)?L0e(I):qa(I))||I;if(U===A)continue;w.relatedInformation=w.relatedInformation||[];const Z=Bu(U,F._0_was_also_declared_here,D),ce=Bu(U,F.and_here);S(w.relatedInformation)>=5||qe(w.relatedInformation,Fe=>CP(Fe,ce)===0||CP(Fe,Z)===0)||ps(w,S(w.relatedInformation)?ce:Z)}}function Xk(l,m){if(!(l!=null&&l.size))return m;if(!(m!=null&&m.size))return l;const D=jo();return fE(D,l),fE(D,m),D}function fE(l,m,D=!1){m.forEach((C,A)=>{const w=l.get(A);l.set(A,w?ip(w,C,D):Vs(C))})}function eF(l){var m,D,C;const A=l.parent;if(((m=A.symbol.declarations)==null?void 0:m[0])!==A){H.assert(A.symbol.declarations.length>1);return}if(Zg(A))fE(Ie,A.symbol.exports);else{const w=l.parent.parent.flags&33554432?void 0:F.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let I=_3(l,l,w,!0);if(!I)return;if(I=Em(I),I.flags&1920)if(qe(d4,U=>I===U.symbol)){const U=ip(A.symbol,I,!0);_1||(_1=new Map),_1.set(l.text,U)}else{if((D=I.exports)!=null&&D.get("__export")&&((C=A.symbol.exports)!=null&&C.size)){const U=LNe(I,"resolvedExports");for(const[Z,ce]of Ea(A.symbol.exports.entries()))U.has(Z)&&!I.exports.has(Z)&&ip(U.get(Z),ce)}ip(I,A.symbol)}else pt(l,F.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,l.text)}}function Pw(l,m,D){m.forEach((A,w)=>{const I=l.get(w);I?L(I.declarations,C(Yr(w),D)):l.set(w,A)});function C(A,w){return I=>Os.add(Bu(I,w,A))}}function $r(l){if(l.flags&33554432)return l.links;const m=qo(l);return Sw[m]??(Sw[m]=new IAe)}function sr(l){const m=Js(l);return Xv[m]||(Xv[m]=new vPt)}function mE(l){return l.kind===312&&!lm(l)}function yf(l,m,D){if(D){const C=Vs(l.get(m));if(C&&(H.assert((Wl(C)&1)===0,"Should never get an instantiated symbol here."),C.flags&D||C.flags&2097152&&R1(C)&D))return C}}function Mw(l,m){const D=l.parent,C=l.parent.parent,A=yf(D.locals,m,111551),w=yf(E6(C.symbol),m,111551);return A&&w?[A,w]:H.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function S5(l,m){const D=In(l),C=In(m),A=ZE(l);if(D!==C){if(ne&&(D.externalModuleIndicator||C.externalModuleIndicator)||!b0(ae)||sk(m)||l.flags&33554432||I(m,l))return!0;const Z=t.getSourceFiles();return Z.indexOf(D)<=Z.indexOf(C)}if(m.flags&16777216||sk(m)||cMe(m))return!0;if(l.pos<=m.pos&&!(bo(l)&&hj(m.parent)&&!l.initializer&&!l.exclamationToken)){if(l.kind===208){const Z=yv(m,208);return Z?Ln(Z,Rs)!==Ln(l,Rs)||l.posLs(Z)&&Z.parent.parent===l);if(bo(l))return!U(l,m,!1);if(Pf(l,l.parent))return!(Ne&&Zd(l)===Zd(m)&&I(m,l))}return!0}if(m.parent.kind===281||m.parent.kind===277&&m.parent.isExportEquals||m.kind===277&&m.isExportEquals)return!0;if(I(m,l))return Ne&&Zd(l)&&(bo(l)||Pf(l,l.parent))?!U(l,m,!0):!0;return!1;function w(Z,ce){switch(Z.parent.parent.kind){case 243:case 248:case 250:if(mb(ce,Z,A))return!0;break}const Fe=Z.parent.parent;return N8(Fe)&&mb(ce,Fe.expression,A)}function I(Z,ce){return!!Ln(Z,Fe=>{if(Fe===A)return"quit";if(xo(Fe))return!0;if(Ml(Fe))return ce.posZ.end?!1:Ln(ce,Je=>{if(Je===Z)return"quit";switch(Je.kind){case 219:return!0;case 172:return Fe&&(bo(Z)&&Je.parent===Z.parent||Pf(Z,Z.parent)&&Je.parent===Z.parent.parent)?"quit":!0;case 241:switch(Je.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function zw(l,m,D){const C=Is(ae),A=m;if(eo(D)&&A.body&&l.valueDeclaration&&l.valueDeclaration.pos>=A.body.pos&&l.valueDeclaration.end<=A.body.end&&C>=2){const U=sr(A);return U.declarationRequiresScopeChange===void 0&&(U.declarationRequiresScopeChange=L(A.parameters,w)||!1),!U.declarationRequiresScopeChange}return!1;function w(U){return I(U.name)||!!U.initializer&&I(U.initializer)}function I(U){switch(U.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return I(U.name);case 172:return Hc(U)?!Ne:I(U.name);default:return Hse(U)||Z1(U)?C<7:Rs(U)&&U.dotDotDotToken&&Mp(U.parent)?C<4:Qr(U)?!1:ro(U,I)||!1}}}function fb(l){return qy(l)&&U3(l.type)||QP(l)&&U3(l.typeExpression)}function nc(l,m,D,C,A,w,I=!1,U=!0){return bh(l,m,D,C,A,w,I,U,yf)}function bh(l,m,D,C,A,w,I,U,Z){var ce,Fe,Te;const Je=l;let ut,zt,fi,Ki,cn,uu=!1;const En=l;let Ii,Pn=!1;e:for(;l;){if(m==="const"&&fb(l))return;if(ZO(l)&&zt&&l.name===zt&&(zt=l,l=l.parent),$E(l)&&l.locals&&!mE(l)&&(ut=Z(l.locals,m,D))){let Sn=!0;if(xo(l)&&zt&&zt!==l.body?(D&ut.flags&788968&&zt.kind!==327&&(Sn=ut.flags&262144?zt===l.type||zt.kind===169||zt.kind===348||zt.kind===349||zt.kind===168:!1),D&ut.flags&3&&(zw(ut,l,zt)?Sn=!1:ut.flags&1&&(Sn=zt.kind===169||zt===l.type&&!!Ln(ut.valueDeclaration,eo)))):l.kind===194&&(Sn=zt===l.trueType),Sn)break e;ut=void 0}switch(uu=uu||h_(l,zt),l.kind){case 312:if(!lm(l))break;Pn=!0;case 267:const Sn=((ce=Du(l))==null?void 0:ce.exports)||se;if(l.kind===312||Ec(l)&&l.flags&33554432&&!Zg(l)){if(ut=Sn.get("default")){const ao=oB(ut);if(ao&&ut.flags&D&&ao.escapedName===m)break e;ut=void 0}const fu=Sn.get(m);if(fu&&fu.flags===2097152&&(Fl(fu,281)||Fl(fu,280)))break}if(m!=="default"&&(ut=Z(Sn,m,D&2623475)))if(ca(l)&&l.commonJsModuleIndicator&&!((Fe=ut.declarations)!=null&&Fe.some(K4)))ut=void 0;else break e;break;case 266:if(ut=Z(((Te=Du(l))==null?void 0:Te.exports)||se,m,D&8)){C&&hg(ae)&&!(l.flags&33554432)&&In(l)!==In(ut.valueDeclaration)&&pt(En,F.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Yr(m),ht,`${Yr(_m(l).escapedName)}.${Yr(m)}`);break e}break;case 172:if(!To(l)){const fu=Gp(l.parent);fu&&fu.locals&&Z(fu.locals,m,D&111551)&&(H.assertNode(l,bo),Ki=l)}break;case 263:case 231:case 264:if(ut=Z(Du(l).members||se,m,D&788968)){if(!rC(ut,l)){ut=void 0;break}if(zt&&To(zt)){C&&pt(En,F.Static_members_cannot_reference_class_type_parameters);return}break e}if(Qd(l)&&D&32){const fu=l.name;if(fu&&m===fu.escapedText){ut=l.symbol;break e}}break;case 233:if(zt===l.expression&&l.parent.token===96){const fu=l.parent.parent;if(gr(fu)&&(ut=Z(Du(fu).members,m,D&788968))){C&&pt(En,F.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Ii=l.parent.parent,(gr(Ii)||Ii.kind===264)&&(ut=Z(Du(Ii).members,m,D&788968))){C&&pt(En,F.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Is(ae)>=2)break;case 174:case 176:case 177:case 178:case 262:if(D&3&&m==="arguments"){ut=It;break e}break;case 218:if(D&3&&m==="arguments"){ut=It;break e}if(D&16){const fu=l.name;if(fu&&m===fu.escapedText){ut=l.symbol;break e}}break;case 170:l.parent&&l.parent.kind===169&&(l=l.parent),l.parent&&(qd(l.parent)||l.parent.kind===263)&&(l=l.parent);break;case 353:case 345:case 347:const _n=tP(l);_n&&(l=_n.parent);break;case 169:zt&&(zt===l.initializer||zt===l.name&&Fo(zt))&&(cn||(cn=l));break;case 208:zt&&(zt===l.initializer||zt===l.name&&Fo(zt))&&A2(l)&&!cn&&(cn=l);break;case 195:if(D&262144){const fu=l.typeParameter.name;if(fu&&m===fu.escapedText){ut=l.typeParameter.symbol;break e}}break;case 281:zt&&zt===l.propertyName&&l.parent.parent.moduleSpecifier&&(l=l.parent.parent.parent);break}p3(l)&&(fi=l),zt=l,l=gg(l)?bq(l)||l.parent:(pg(l)||fY(l))&&bv(l)||l.parent}if(w&&ut&&(!fi||ut!==fi.symbol)&&(ut.isReferenced|=D),!ut){if(zt&&(H.assertNode(zt,ca),zt.commonJsModuleIndicator&&m==="exports"&&D&zt.symbol.flags))return zt.symbol;I||(ut=Z(Ie,m,D))}if(!ut&&Je&&eu(Je)&&Je.parent&&Df(Je.parent,!1))return ti;function Cn(){return Ki&&!Ne?(pt(En,En&&Ki.type&&MO(Ki.type,En.pos)?F.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:F.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,C0(Ki.name),Wp(A)),!0):!1}if(ut){if(C&&Cn())return}else{C&&s(()=>{if(!En||En.parent.kind!==331&&!g3(En,m,A)&&!Cn()&&!Iw(En)&&!Rw(En,m,D)&&!B5(En,m)&&!y9(En,m,D)&&!Ow(En,m,D)&&!pE(En,m,D)){let Sn,_n;if(A&&(_n=sri(A),_n&&pt(En,C,Wp(A),_n)),!_n&&U&&Gk{if(En&&(D&2||(D&32||D&384)&&(D&111551)===111551)){const Sn=ap(ut);(Sn.flags&2||Sn.flags&32||Sn.flags&384)&&S0(Sn,En)}if(ut&&Pn&&(D&111551)===111551&&!(Je.flags&16777216)){const Sn=Vs(ut);S(Sn.declarations)&&ye(Sn.declarations,_n=>SV(_n)||ca(_n)&&!!_n.symbol.globalExports)&&p4(!ae.allowUmdGlobalAccess,En,F._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Yr(m))}if(ut&&cn&&!uu&&(D&111551)===111551){const Sn=Vs(bge(ut)),_n=QE(cn);Sn===Du(cn)?pt(En,F.Parameter_0_cannot_reference_itself,C0(cn.name)):Sn.valueDeclaration&&Sn.valueDeclaration.pos>cn.pos&&_n.parent.locals&&Z(_n.parent.locals,Sn.escapedName,D)===Sn&&pt(En,F.Parameter_0_cannot_reference_identifier_1_declared_after_it,C0(cn.name),C0(En))}if(ut&&En&&D&111551&&ut.flags&2097152&&!(ut.flags&111551)&&!Bv(En)){const Sn=E4(ut,111551);if(Sn){const _n=Sn.kind===281||Sn.kind===278||Sn.kind===280?F._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:F._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,fu=Yr(m);cD(pt(En,_n,fu),Sn,fu)}}}),ut}function cD(l,m,D){return m?ps(l,Bu(m,m.kind===281||m.kind===278||m.kind===280?F._0_was_exported_here:F._0_was_imported_here,D)):l}function h_(l,m){return l.kind!==219&&l.kind!==218?vB(l)||(K0(l)||l.kind===172&&!To(l))&&(!m||m!==l.name):m&&m===l.name?!1:l.asteriskToken||Xu(l,1024)?!0:!tk(l)}function p3(l){switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Wp(l){return Ja(l)?Yr(l):C0(l)}function rC(l,m){if(l.declarations){for(const D of l.declarations)if(D.kind===168&&(gg(D.parent)?c7(D.parent):D.parent)===m)return!(gg(D.parent)&&Le(D.parent.parent.tags,K4))}return!1}function g3(l,m,D){if(!at(l)||l.escapedText!==m||I4t(l)||sk(l))return!1;const C=ef(l,!1,!1);let A=C;for(;A;){if(gr(A.parent)){const w=Du(A.parent);if(!w)break;const I=Jn(w);if($o(I,m))return pt(l,F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Wp(D),Sr(w)),!0;if(A===C&&!To(A)){const U=q0(w).thisType;if($o(U,m))return pt(l,F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Wp(D)),!0}}A=A.parent}return!1}function Iw(l){const m=f_(l);return m&&P0(m,64,!0)?(pt(l,F.Cannot_extend_an_interface_0_Did_you_mean_implements,Vc(m)),!0):!1}function f_(l){switch(l.kind){case 80:case 211:return l.parent?f_(l.parent):void 0;case 233:if(Xl(l.expression))return l.expression;default:return}}function Rw(l,m,D){const C=1920|(eu(l)?111551:0);if(D===C){const A=bc(nc(l,m,788968&~C,void 0,void 0,!1)),w=l.parent;if(A){if(xf(w)){H.assert(w.left===l,"Should only be resolving left side of qualified name as a namespace");const I=w.right.escapedText;if($o(q0(A),I))return pt(w,F.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Yr(m),Yr(I)),!0}return pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Yr(m)),!0}}return!1}function pE(l,m,D){if(D&788584){const C=bc(nc(l,m,111127,void 0,void 0,!1));if(C&&!(C.flags&1920))return pt(l,F._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Yr(m)),!0}return!1}function m_(l){return l==="any"||l==="string"||l==="number"||l==="boolean"||l==="never"||l==="unknown"}function B5(l,m){return m_(m)&&l.parent.kind===281?(pt(l,F.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,m),!0):!1}function Ow(l,m,D){if(D&111551){if(m_(m)){const w=l.parent.parent;if(w&&w.parent&&fm(w)){const I=w.token,U=w.parent.kind;U===264&&I===96?pt(l,F.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Yr(m)):U===263&&I===96?pt(l,F.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Yr(m)):U===263&&I===119&&pt(l,F.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Yr(m))}else pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Yr(m));return!0}const C=bc(nc(l,m,788544,void 0,void 0,!1)),A=C&&R1(C);if(C&&A!==void 0&&!(A&111551)){const w=Yr(m);return oz(m)?pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,w):b9(l,C)?pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,w,w==="K"?"P":"K"):pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,w),!0}}return!1}function b9(l,m){const D=Ln(l.parent,C=>Ls(C)||Pm(C)?!1:hm(C)||"quit");if(D&&D.members.length===1){const C=q0(m);return!!(C.flags&1048576)&&cie(C,384,!0)}return!1}function oz(l){switch(l){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function y9(l,m,D){if(D&111127){if(bc(nc(l,m,1024,void 0,void 0,!1)))return pt(l,F.Cannot_use_namespace_0_as_a_value,Yr(m)),!0}else if(D&788544&&bc(nc(l,m,1536,void 0,void 0,!1)))return pt(l,F.Cannot_use_namespace_0_as_a_type,Yr(m)),!0;return!1}function S0(l,m){var D;if(H.assert(!!(l.flags&2||l.flags&32||l.flags&384)),l.flags&67108881&&l.flags&32)return;const C=(D=l.declarations)==null?void 0:D.find(A=>d0e(A)||gr(A)||A.kind===266);if(C===void 0)return H.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(C.flags&33554432)&&!S5(C,m)){let A;const w=C0(qa(C));l.flags&2?A=pt(m,F.Block_scoped_variable_0_used_before_its_declaration,w):l.flags&32?A=pt(m,F.Class_0_used_before_its_declaration,w):l.flags&256&&(A=pt(m,F.Enum_0_used_before_its_declaration,w)),A&&ps(A,Bu(C,F._0_is_declared_here,w))}}function mb(l,m,D){return!!m&&!!Ln(l,C=>C===m||(C===D||xo(C)&&(!tk(C)||yd(C)&3)?"quit":!1))}function k9(l){switch(l.kind){case 271:return l;case 273:return l.parent;case 274:return l.parent.parent;case 276:return l.parent.parent.parent;default:return}}function np(l){return l.declarations&<(l.declarations,aC)}function aC(l){return l.kind===271||l.kind===270||l.kind===273&&!!l.name||l.kind===274||l.kind===280||l.kind===276||l.kind===281||l.kind===277&&X8(l)||tu(l)&&Ql(l)===2&&X8(l)||N0(l)&&tu(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===64&&F9(l.parent.right)||l.kind===304||l.kind===303&&F9(l.initializer)||l.kind===260&&b2(l)||l.kind===208&&b2(l.parent.parent)}function F9(l){return Lj(l)||F0(l)&&FE(l)}function sz(l,m){const D=hD(l);if(D){const A=vP(D.expression).arguments[0];return at(D.name)?bc($o(Bdt(A),D.name.escapedText)):void 0}if(ua(l)||l.moduleReference.kind===283){const A=Vh(l,B0e(l)||QN(l)),w=Em(A);return kf(l,A,w,!1),w}const C=uF(l.moduleReference,m);return tF(l,C),C}function tF(l,m){if(kf(l,void 0,m,!1)&&!l.isTypeOnly){const D=E4(Du(l)),C=D.kind===281||D.kind===278,A=C?F.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:F.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,w=C?F._0_was_exported_here:F._0_was_imported_here,I=D.kind===278?"*":Yr(D.name.escapedText);ps(pt(l.moduleReference,A),Bu(D,w,I))}}function au(l,m,D,C){const A=l.exports.get("export="),w=A?$o(Jn(A),m,!0):l.exports.get(m),I=bc(w,C);return kf(D,w,I,!1),I}function x1(l){return ec(l)&&!l.isExportEquals||Xu(l,2048)||X1(l)||n_(l)}function Pa(l){return t0(l)?_g(In(l),l):void 0}function sf(l,m){return l===99&&m===1}function gE(l){return Pa(l)===99&&oc(l.text,".json")}function up(l,m,D,C){const A=l&&Pa(C);if(l&&A!==void 0){const w=sf(A,l.impliedNodeFormat);if(A===99||w)return w}if(!pe)return!1;if(!l||l.isDeclarationFile){const w=au(m,"default",void 0,!0);return!(w&&qe(w.declarations,x1)||au(m,kl("__esModule"),void 0,D))}return ph(l)?typeof l.externalModuleIndicator!="object"&&!au(m,kl("__esModule"),void 0,D):xb(m)}function Zn(l,m){const D=Vh(l,l.parent.moduleSpecifier);if(D)return pb(D,l,m)}function pb(l,m,D){var C;let A;JN(l)?A=l:A=au(l,"default",m,D);const w=(C=l.declarations)==null?void 0:C.find(ca),I=oC(m);if(!I)return A;const U=gE(I),Z=up(w,l,D,I);if(!A&&!Z&&!U)if(xb(l)&&!pe){const ce=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop",Te=l.exports.get("export=").valueDeclaration,Je=pt(m.name,F.Module_0_can_only_be_default_imported_using_the_1_flag,Sr(l),ce);Te&&ps(Je,Bu(Te,F.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,ce))}else i_(m)?Bd(l,m):lC(l,l,m,n7(m)&&m.propertyName||m.name);else if(Z||U){const ce=Em(l,D)||bc(l,D);return kf(m,l,ce,!1),ce}return kf(m,A,void 0,!1),A}function oC(l){switch(l.kind){case 273:return l.parent.moduleSpecifier;case 271:return u_(l.moduleReference)?l.moduleReference.expression:void 0;case 274:return l.parent.parent.moduleSpecifier;case 276:return l.parent.parent.parent.moduleSpecifier;case 281:return l.parent.parent.moduleSpecifier;default:return H.assertNever(l)}}function Bd(l,m){var D,C,A;if((D=l.exports)!=null&&D.has(m.symbol.escapedName))pt(m.name,F.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Sr(l),Sr(m.symbol));else{const w=pt(m.name,F.Module_0_has_no_default_export,Sr(l)),I=(C=l.exports)==null?void 0:C.get("__export");if(I){const U=(A=I.declarations)==null?void 0:A.find(Z=>{var ce,Fe;return!!(Wc(Z)&&Z.moduleSpecifier&&((Fe=(ce=Vh(Z,Z.moduleSpecifier))==null?void 0:ce.exports)!=null&&Fe.has("default")))});U&&ps(w,Bu(U,F.export_Asterisk_does_not_re_export_a_default))}}}function EE(l,m){const D=l.parent.parent.moduleSpecifier,C=Vh(l,D),A=a6(C,D,m,!1);return kf(l,C,A,!1),A}function _E(l,m){const D=l.parent.moduleSpecifier,C=D&&Vh(l,D),A=D&&a6(C,D,m,!1);return kf(l,C,A,!1),A}function n6(l,m){if(l===Xt&&m===Xt)return Xt;if(l.flags&790504)return l;const D=js(l.flags|m.flags,l.escapedName);return H.assert(l.declarations||m.declarations),D.declarations=li(an(l.declarations,m.declarations),vx),D.parent=l.parent||m.parent,l.valueDeclaration&&(D.valueDeclaration=l.valueDeclaration),m.members&&(D.members=new Map(m.members)),l.exports&&(D.exports=new Map(l.exports)),D}function A9(l,m,D,C){var A;if(l.flags&1536){const w=Jf(l).get(m.escapedText),I=bc(w,C),U=(A=$r(l).typeOnlyExportStarMap)==null?void 0:A.get(m.escapedText);return kf(D,w,I,!1,U,m.escapedText),I}}function dD(l,m){if(l.flags&3){const D=l.valueDeclaration.type;if(D)return bc($o(Br(D),m))}}function sC(l,m,D=!1){var C;const A=B0e(l)||l.moduleSpecifier,w=Vh(l,A),I=!Iu(m)&&m.propertyName||m.name;if(!at(I))return;const U=I.escapedText==="default"&&pe,Z=a6(w,A,!1,U);if(Z&&I.escapedText){if(JN(w))return w;let ce;w&&w.exports&&w.exports.get("export=")?ce=$o(Jn(Z),I.escapedText,!0):ce=dD(Z,I.escapedText),ce=bc(ce,D);let Fe=A9(Z,I,m,D);if(Fe===void 0&&I.escapedText==="default"){const Je=(C=w.declarations)==null?void 0:C.find(ca);(gE(A)||up(Je,w,D,A))&&(Fe=Em(w,D)||bc(w,D))}const Te=Fe&&ce&&Fe!==ce?n6(ce,Fe):Fe||ce;return Te||lC(w,Z,l,I),Te}}function lC(l,m,D,C){var A;const w=rp(l,D),I=C0(C),U=NEe(C,m);if(U!==void 0){const Z=Sr(U),ce=pt(C,F._0_has_no_exported_member_named_1_Did_you_mean_2,w,I,Z);U.valueDeclaration&&ps(ce,Bu(U.valueDeclaration,F._0_is_declared_here,Z))}else(A=l.exports)!=null&&A.has("default")?pt(C,F.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,w,I):E3(D,C,I,l,w)}function E3(l,m,D,C,A){var w,I;const U=(I=(w=ar(C.valueDeclaration,$E))==null?void 0:w.locals)==null?void 0:I.get(m.escapedText),Z=C.exports;if(U){const ce=Z==null?void 0:Z.get("export=");if(ce)qm(ce,U)?p_(l,m,D,A):pt(m,F.Module_0_has_no_exported_member_1,A,D);else{const Fe=Z?Le(ZNe(Z),Je=>!!qm(Je,U)):void 0,Te=Fe?pt(m,F.Module_0_declares_1_locally_but_it_is_exported_as_2,A,D,Sr(Fe)):pt(m,F.Module_0_declares_1_locally_but_it_is_not_exported,A,D);U.declarations&&ps(Te,...Kt(U.declarations,(Je,ut)=>Bu(Je,ut===0?F._0_is_declared_here:F.and_here,D)))}}else pt(m,F.Module_0_has_no_exported_member_1,A,D)}function p_(l,m,D,C){if(ne>=5){const A=XE(ae)?F._0_can_only_be_imported_by_using_a_default_import:F._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;pt(m,A,D)}else if(eu(l)){const A=XE(ae)?F._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:F._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;pt(m,A,D)}else{const A=XE(ae)?F._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:F._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;pt(m,A,D,D,C)}}function iF(l,m){if(Cf(l)&&mu(l.propertyName||l.name)==="default"){const I=oC(l),U=I&&Vh(l,I);if(U)return pb(U,l,m)}const D=Rs(l)?QE(l):l.parent.parent.parent,C=hD(D),A=sC(D,C||l,m),w=l.propertyName||l.name;return C&&A&&at(w)?bc($o(Jn(A),w.escapedText),m):(kf(l,void 0,A,!1),A)}function hD(l){if(ua(l)&&l.initializer&&Iu(l.initializer))return l.initializer}function u6(l,m){if(qg(l.parent)){const D=Em(l.parent.symbol,m);return kf(l,void 0,D,!1),D}}function gb(l,m,D){if(mu(l.propertyName||l.name)==="default"){const A=oC(l),w=A&&Vh(l,A);if(w)return pb(w,l,!!D)}const C=l.parent.parent.moduleSpecifier?sC(l.parent.parent,l,D):P0(l.propertyName||l.name,m,!1,D);return kf(l,void 0,C,!1),C}function S9(l,m){const D=ec(l)?l.expression:l.right,C=nF(D,m);return kf(l,void 0,C,!1),C}function nF(l,m){if(Qd(l))return Ic(l).symbol;if(!om(l)&&!Xl(l))return;const D=P0(l,901119,!0,m);return D||(Ic(l),sr(l).resolvedSymbol)}function Eb(l,m){if(tu(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===64)return nF(l.parent.right,m)}function g4(l,m=!1){switch(l.kind){case 271:case 260:return sz(l,m);case 273:return Zn(l,m);case 274:return EE(l,m);case 280:return _E(l,m);case 276:case 208:return iF(l,m);case 281:return gb(l,901119,m);case 277:case 226:return S9(l,m);case 270:return u6(l,m);case 304:return P0(l.name,901119,!0,m);case 303:return nF(l.initializer,m);case 212:case 211:return Eb(l,m);default:return H.fail()}}function cC(l,m=901119){return l?(l.flags&(2097152|m))===2097152||!!(l.flags&2097152&&l.flags&67108864):!1}function bc(l,m){return!m&&cC(l)?hd(l):l}function hd(l){H.assert((l.flags&2097152)!==0,"Should only get Alias here.");const m=$r(l);if(m.aliasTarget)m.aliasTarget===Pe&&(m.aliasTarget=Xt);else{m.aliasTarget=Pe;const D=np(l);if(!D)return H.fail();const C=g4(D);m.aliasTarget===Pe?m.aliasTarget=C||Xt:pt(D,F.Circular_definition_of_import_alias_0,Sr(l))}return m.aliasTarget}function B9(l){if($r(l).aliasTarget!==Pe)return hd(l)}function R1(l,m,D){const C=m&&E4(l),A=C&&Wc(C),w=C&&(A?Vh(C.moduleSpecifier,C.moduleSpecifier,!0):hd(C.symbol)),I=A&&w?D3(w):void 0;let U=D?0:l.flags,Z;for(;l.flags&2097152;){const ce=ap(hd(l));if(!A&&ce===w||(I==null?void 0:I.get(ce.escapedName))===ce)break;if(ce===Xt)return 67108863;if(ce===l||Z!=null&&Z.has(ce))break;ce.flags&2097152&&(Z?Z.add(ce):Z=new Set([l,ce])),U|=ce.flags,l=ce}return U}function kf(l,m,D,C,A,w){if(!l||Iu(l))return!1;const I=Du(l);if(p2(l)){const Z=$r(I);return Z.typeOnlyDeclaration=l,!0}if(A){const Z=$r(I);return Z.typeOnlyDeclaration=A,I.escapedName!==w&&(Z.typeOnlyExportStarName=w),!0}const U=$r(I);return _b(U,m,C)||_b(U,D,C)}function _b(l,m,D){var C;if(m&&(l.typeOnlyDeclaration===void 0||D&&l.typeOnlyDeclaration===!1)){const A=((C=m.exports)==null?void 0:C.get("export="))??m,w=A.declarations&&Le(A.declarations,p2);l.typeOnlyDeclaration=w??$r(A).typeOnlyDeclaration??!1}return!!l.typeOnlyDeclaration}function E4(l,m){if(!(l.flags&2097152))return;const D=$r(l);if(m===void 0)return D.typeOnlyDeclaration||void 0;if(D.typeOnlyDeclaration){const C=D.typeOnlyDeclaration.kind===278?bc(D3(D.typeOnlyDeclaration.symbol.parent).get(D.typeOnlyExportStarName||l.escapedName)):hd(D.typeOnlyDeclaration.symbol);return R1(C)&m?D.typeOnlyDeclaration:void 0}}function dC(l){if(!Ut)return;const m=Du(l),D=hd(m);D&&(D===Xt||R1(m,!0)&111551&&!IW(D))&&w5(m)}function w5(l){H.assert(Ut);const m=$r(l);if(!m.referenced){m.referenced=!0;const D=np(l);if(!D)return H.fail();J8(D)&&R1(bc(l))&111551&&Ic(D.moduleReference)}}function i1(l){const m=$r(l);m.constEnumReferenced||(m.constEnumReferenced=!0)}function uF(l,m){return l.kind===80&&pP(l)&&(l=l.parent),l.kind===80||l.parent.kind===166?P0(l,1920,!1,m):(H.assert(l.parent.kind===271),P0(l,901119,!1,m))}function rp(l,m){return l.parent?rp(l.parent,m)+"."+Sr(l):Sr(l,m,void 0,36)}function r6(l){for(;xf(l.parent);)l=l.parent;return l}function jw(l){let m=dm(l),D=nc(m,m.escapedText,111551,void 0,m,!0);if(D){for(;xf(m.parent);){const C=Jn(D);if(D=$o(C,m.parent.right.escapedText),!D)return;m=m.parent}return D}}function P0(l,m,D,C,A){if(Yl(l))return;const w=1920|(eu(l)?m&111551:0);let I;if(l.kind===80){const U=m===w||al(l)?F.Cannot_find_namespace_0:bht(dm(l)),Z=eu(l)&&!al(l)?Vw(l,m):void 0;if(I=Vs(nc(A||l,l.escapedText,m,D||Z?void 0:U,l,!0,!1)),!I)return Vs(Z)}else if(l.kind===166||l.kind===211){const U=l.kind===166?l.left:l.expression,Z=l.kind===166?l.right:l.name;let ce=P0(U,w,D,!1,A);if(!ce||Yl(Z))return;if(ce===Xt)return ce;if(ce.valueDeclaration&&eu(ce.valueDeclaration)&&m1(ae)!==100&&ua(ce.valueDeclaration)&&ce.valueDeclaration.initializer&&nmt(ce.valueDeclaration.initializer)){const Fe=ce.valueDeclaration.initializer.arguments[0],Te=Vh(Fe,Fe);if(Te){const Je=Em(Te);Je&&(ce=Je)}}if(I=Vs(yf(Jf(ce),Z.escapedText,m)),!I&&ce.flags&2097152&&(I=Vs(yf(Jf(hd(ce)),Z.escapedText,m))),!I){if(!D){const Fe=rp(ce),Te=C0(Z),Je=NEe(Z,ce);if(Je){pt(Z,F._0_has_no_exported_member_named_1_Did_you_mean_2,Fe,Te,Sr(Je));return}const ut=xf(l)&&r6(l);if(Ve&&m&788968&&ut&&!kB(ut.parent)&&jw(ut)){pt(ut,F._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Mf(ut));return}if(m&1920&&xf(l.parent)){const fi=Vs(yf(Jf(ce),Z.escapedText,788968));if(fi){pt(l.parent.right,F.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Sr(fi),Yr(l.parent.right.escapedText));return}}pt(Z,F.Namespace_0_has_no_exported_member_1,Fe,Te)}return}}else H.assertNever(l,"Unknown entity name kind.");return H.assert((Wl(I)&1)===0,"Should never get an instantiated symbol here."),!al(l)&&om(l)&&(I.flags&2097152||l.parent.kind===277)&&kf(V0e(l),I,void 0,!0),I.flags&m||C?I:hd(I)}function Vw(l,m){if(Lge(l.parent)){const D=rF(l.parent);if(D)return nc(D,l.escapedText,m,void 0,l,!0)}}function rF(l){if(Ln(l,A=>P8(A)||A.flags&16777216?K4(A):"quit"))return;const D=c7(l);if(D&&Id(D)&&bj(D.expression)){const A=Du(D.expression.left);if(A)return hC(A)}if(D&&F0(D)&&bj(D.parent)&&Id(D.parent.parent)){const A=Du(D.parent.left);if(A)return hC(A)}if(D&&(Np(D)||Gc(D))&&tu(D.parent.parent)&&Ql(D.parent.parent)===6){const A=Du(D.parent.parent.left);if(A)return hC(A)}const C=rk(l);if(C&&xo(C)){const A=Du(C);return A&&A.valueDeclaration}}function hC(l){const m=l.parent.valueDeclaration;return m?(XN(m)?o7(m):Zy(m)?_j(m):void 0)||m:void 0}function w9(l){const m=l.valueDeclaration;if(!m||!eu(m)||l.flags&524288||Cv(m,!1))return;const D=ua(m)?_j(m):o7(m);if(D){const C=_m(D);if(C)return tze(C,l)}}function Vh(l,m,D){const A=m1(ae)===1?F.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:F.Cannot_find_module_0_or_its_corresponding_type_declarations;return _3(l,m,D?void 0:A)}function _3(l,m,D,C=!1){return t0(m)?fD(l,m.text,D,m,C):void 0}function fD(l,m,D,C,A=!1){var w,I,U,Z,ce,Fe,Te,Je,ut,zt;if(Na(m,"@types/")){const _n=F.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,fu=bN(m,"@types/");pt(C,_n,fu,m)}const fi=yge(m,!0);if(fi)return fi;const Ki=In(l),cn=t0(l)?l:((w=Ln(l,cm))==null?void 0:w.arguments[0])||((I=Ln(l,Ad))==null?void 0:I.moduleSpecifier)||((U=Ln(l,vv))==null?void 0:U.moduleReference.expression)||((Z=Ln(l,Wc))==null?void 0:Z.moduleSpecifier)||((ce=Ec(l)?l:l.parent&&Ec(l.parent)&&l.parent.name===l?l.parent:void 0)==null?void 0:ce.name)||((Fe=Mx(l)?l:void 0)==null?void 0:Fe.argument.literal),uu=cn&&t0(cn)?_g(Ki,cn):Ki.impliedNodeFormat,En=m1(ae),Ii=(Te=t.getResolvedModule(Ki,m,uu))==null?void 0:Te.resolvedModule,Pn=Ii&&N1e(ae,Ii,Ki),Cn=Ii&&(!Pn||Pn===F.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(Ii.resolvedFileName);if(Cn){if(Pn&&pt(C,Pn,m,Ii.resolvedFileName),Ii.resolvedUsingTsExtension&&Xd(m)){const _n=((Je=Ln(l,Ad))==null?void 0:Je.importClause)||Ln(l,lg(g1,Wc));(_n&&!_n.isTypeOnly||Ln(l,cm))&&pt(C,F.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,Sn(H.checkDefined(Oq(m))))}else if(Ii.resolvedUsingTsExtension&&!GB(ae,Ki.fileName)){const _n=((ut=Ln(l,Ad))==null?void 0:ut.importClause)||Ln(l,lg(g1,Wc));if(!(_n!=null&&_n.isTypeOnly||Ln(l,iD))){const fu=H.checkDefined(Oq(m));pt(C,F.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,fu)}}if(Cn.symbol){if(Ii.isExternalLibraryImport&&!kP(Ii.extension)&&Db(!1,C,Ki,uu,Ii,m),En===3||En===99){const _n=Ki.impliedNodeFormat===1&&!Ln(l,cm)||!!Ln(l,g1),fu=Ln(l,ao=>iD(ao)||Wc(ao)||Ad(ao));if(_n&&Cn.impliedNodeFormat===99&&!bke(fu))if(Ln(l,g1))pt(C,F.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,m);else{let ao;const po=e3(Ki.fileName);if(po===".ts"||po===".js"||po===".tsx"||po===".jsx"){const co=Ki.packageJsonScope,Fa=po===".ts"?".mts":po===".js"?".mjs":void 0;co&&!co.contents.packageJsonContent.type?Fa?ao=uo(void 0,F.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Fa,hr(co.packageDirectory,"package.json")):ao=uo(void 0,F.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,hr(co.packageDirectory,"package.json")):Fa?ao=uo(void 0,F.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,Fa):ao=uo(void 0,F.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Os.add(Z3(In(C),C,uo(ao,F.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,m)))}}return Vs(Cn.symbol)}D&&pt(C,F.File_0_is_not_a_module,Cn.fileName);return}if(d4){const _n=loe(d4,fu=>fu.pattern,m);if(_n){const fu=_1&&_1.get(m);return Vs(fu||_n.symbol)}}if(Ii&&!kP(Ii.extension)&&Pn===void 0||Pn===F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(A){const _n=F.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;pt(C,_n,m,Ii.resolvedFileName)}else Db(Ae&&!!D,C,Ki,uu,Ii,m);return}if(D){if(Ii){const _n=t.getProjectReferenceRedirect(Ii.resolvedFileName);if(_n){pt(C,F.Output_file_0_has_not_been_built_from_source_file_1,_n,Ii.resolvedFileName);return}}if(Pn)pt(C,Pn,m,Ii.resolvedFileName);else{const _n=am(m)&&!XA(m),fu=En===3||En===99;if(!L2(ae)&&Pl(m,".json")&&En!==1&&Uq(ae))pt(C,F.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,m);else if(uu===99&&fu&&_n){const ao=$a(m,dr(Ki.path)),po=(zt=C9.find(([co,Fa])=>t.fileExists(ao+co)))==null?void 0:zt[1];po?pt(C,F.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,m+po):pt(C,F.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else pt(C,D,m)}}return;function Sn(_n){const fu=tV(m,_n);if($q(ne)||uu===99){const ao=Xd(m)&&GB(ae);return fu+(_n===".mts"||_n===".d.mts"?ao?".mts":".mjs":_n===".cts"||_n===".d.mts"?ao?".cts":".cjs":ao?".ts":".js")}return fu}}function Db(l,m,D,C,{packageId:A,resolvedFileName:w},I){let U;!Md(I)&&A&&(U=a0e(D,t,I,C,A.name)),p4(l,m,uo(U,F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,I,w))}function Em(l,m){if(l!=null&&l.exports){const D=bc(l.exports.get("export="),m),C=T9(Vs(D),Vs(l));return Vs(C)||l}}function T9(l,m){if(!l||l===Xt||l===m||m.exports.size===1||l.flags&2097152)return l;const D=$r(l);if(D.cjsExportMerged)return D.cjsExportMerged;const C=l.flags&33554432?l:hb(l);return C.flags=C.flags|512,C.exports===void 0&&(C.exports=jo()),m.exports.forEach((A,w)=>{w!=="export="&&C.exports.set(w,C.exports.has(w)?ip(C.exports.get(w),A):A)}),C===l&&($r(C).resolvedExports=void 0,$r(C).resolvedMembers=void 0),$r(C).cjsExportMerged=C,D.cjsExportMerged=C}function a6(l,m,D,C){var A;const w=Em(l,D);if(!D&&w){if(!C&&!(w.flags&1539)&&!Fl(w,312)){const U=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop";return pt(m,F.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,U),w}const I=m.parent;if(Ad(I)&&Z8(I)||cm(I)){const U=cm(I)?I.arguments[0]:I.moduleSpecifier,Z=Jn(w),ce=tmt(Z,w,l,U);if(ce)return Um(w,ce,I);const Fe=(A=l==null?void 0:l.declarations)==null?void 0:A.find(ca),Te=Fe&&sf(Pa(U),Fe.impliedNodeFormat);if(XE(ae)||Te){let Je=Dte(Z,0);if((!Je||!Je.length)&&(Je=Dte(Z,1)),Je&&Je.length||$o(Z,"default",!0)||Te){const ut=Z.flags&3670016?imt(Z,w,l,U):ize(w,w.parent);return Um(w,ut,I)}}}}return w}function Um(l,m,D){const C=js(l.flags,l.escapedName);C.declarations=l.declarations?l.declarations.slice():[],C.parent=l.parent,C.links.target=l,C.links.originatingImport=D,l.valueDeclaration&&(C.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(C.constEnumOnlyModule=!0),l.members&&(C.members=new Map(l.members)),l.exports&&(C.exports=new Map(l.exports));const A=kg(m);return C.links.type=Rl(C,A.members,_t,_t,A.indexInfos),C}function xb(l){return l.exports.get("export=")!==void 0}function T5(l){return ZNe(D3(l))}function lz(l){const m=T5(l),D=Em(l);if(D!==l){const C=Jn(D);fC(C)&&kn(m,n0(C))}return m}function L9(l,m){D3(l).forEach((A,w)=>{pC(w)||m(A,w)});const C=Em(l);if(C!==l){const A=Jn(C);fC(A)&&PXt(A,(w,I)=>{m(w,I)})}}function N9(l,m){const D=D3(m);if(D)return D.get(l)}function P9(l,m){const D=N9(l,m);if(D)return D;const C=Em(m);if(C===m)return;const A=Jn(C);return fC(A)?$o(A,l):void 0}function fC(l){return!(l.flags&402784252||$u(l)&1||F4(l)||_s(l))}function Jf(l){return l.flags&6256?LNe(l,"resolvedExports"):l.flags&1536?D3(l):l.exports||se}function D3(l){const m=$r(l);if(!m.resolvedExports){const{exports:D,typeOnlyExportStarMap:C}=z9(l);m.resolvedExports=D,m.typeOnlyExportStarMap=C}return m.resolvedExports}function M9(l,m,D,C){m&&m.forEach((A,w)=>{if(w==="default")return;const I=l.get(w);if(!I)l.set(w,A),D&&C&&D.set(w,{specifierText:Vc(C.moduleSpecifier)});else if(D&&C&&I&&bc(I)!==bc(A)){const U=D.get(w);U.exportsWithDuplicate?U.exportsWithDuplicate.push(C):U.exportsWithDuplicate=[C]}})}function z9(l){const m=[];let D;const C=new Set;l=Em(l);const A=w(l)||se;return D&&C.forEach(I=>D.delete(I)),{exports:A,typeOnlyExportStarMap:D};function w(I,U,Z){if(!Z&&(I!=null&&I.exports)&&I.exports.forEach((Te,Je)=>C.add(Je)),!(I&&I.exports&&va(m,I)))return;const ce=new Map(I.exports),Fe=I.exports.get("__export");if(Fe){const Te=jo(),Je=new Map;if(Fe.declarations)for(const ut of Fe.declarations){const zt=Vh(ut,ut.moduleSpecifier),fi=w(zt,ut,Z||ut.isTypeOnly);M9(Te,fi,Je,ut)}Je.forEach(({exportsWithDuplicate:ut},zt)=>{if(!(zt==="export="||!(ut&&ut.length)||ce.has(zt)))for(const fi of ut)Os.add(Bu(fi,F.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,Je.get(zt).specifierText,Yr(zt)))}),M9(ce,Te)}return U!=null&&U.isTypeOnly&&(D??(D=new Map),ce.forEach((Te,Je)=>D.set(Je,U))),ce}}function Vs(l){let m;return l&&l.mergeId&&(m=E9[l.mergeId])?m:l}function Du(l){return Vs(l.symbol&&bge(l.symbol))}function _m(l){return qg(l)?Du(l):void 0}function lf(l){return Vs(l.parent&&bge(l.parent))}function vb(l,m){const D=In(m),C=Js(D),A=$r(l);let w;if(A.extendedContainersByFile&&(w=A.extendedContainersByFile.get(C)))return w;if(D&&D.imports){for(const U of D.imports){if(al(U))continue;const Z=Vh(m,U,!0);!Z||!o6(Z,l)||(w=Ei(w,Z))}if(S(w))return(A.extendedContainersByFile||(A.extendedContainersByFile=new Map)).set(C,w),w}if(A.extendedContainers)return A.extendedContainers;const I=t.getSourceFiles();for(const U of I){if(!Bc(U))continue;const Z=Du(U);o6(Z,l)&&(w=Ei(w,Z))}return A.extendedContainers=w||_t}function Hw(l,m,D){const C=lf(l);if(C&&!(l.flags&262144)){const I=Ui(C.declarations,w),U=m&&vb(l,m),Z=mC(C,D);if(m&&C.flags&x3(D)&&gC(C,m,1920,!1))return Ei(an(an([C],I),U),Z);const ce=!(C.flags&x3(D))&&C.flags&788968&&q0(C).flags&524288&&D===111551?l6(m,Te=>d1(Te,Je=>{if(Je.flags&x3(D)&&Jn(Je)===q0(C))return Je})):void 0;let Fe=ce?[ce,...I,C]:[...I,C];return Fe=Ei(Fe,Z),Fe=kn(Fe,U),Fe}const A=Ui(l.declarations,I=>{if(!L1(I)&&I.parent){if(ko(I.parent))return Du(I.parent);if(uE(I.parent)&&I.parent.parent&&Em(Du(I.parent.parent))===l)return Du(I.parent.parent)}if(Qd(I)&&tu(I.parent)&&I.parent.operatorToken.kind===64&&N0(I.parent.left)&&Xl(I.parent.left.expression))return Z_(I.parent.left)||ik(I.parent.left.expression)?Du(In(I)):(Ic(I.parent.left.expression),sr(I.parent.left.expression).resolvedSymbol)});if(!S(A))return;return Ui(A,I=>o6(I,l)?I:void 0);function w(I){return C&&Cb(I,C)}}function mC(l,m){const D=!!S(l.declarations)&&Mn(l.declarations);if(m&111551&&D&&D.parent&&ua(D.parent)&&(Cs(D)&&D===D.parent.initializer||hm(D)&&D===D.parent.type))return Du(D.parent)}function Cb(l,m){const D=br(l),C=D&&D.exports&&D.exports.get("export=");return C&&qm(C,m)?D:void 0}function o6(l,m){if(l===lf(m))return m;const D=l.exports&&l.exports.get("export=");if(D&&qm(D,m))return l;const C=Jf(l),A=C.get(m.escapedName);return A&&qm(A,m)?A:d1(C,w=>{if(qm(w,m))return w})}function qm(l,m){if(Vs(bc(Vs(l)))===Vs(bc(Vs(m))))return l}function ap(l){return Vs(l&&(l.flags&1048576)!==0&&l.exportSymbol||l)}function s6(l,m){return!!(l.flags&111551||l.flags&2097152&&R1(l,!m)&111551)}function Gp(l){const m=l.members;for(const D of m)if(D.kind===176&&j4(D.body))return D}function op(l){var m;const D=new b(Ni,l);return k++,D.id=k,(m=$n)==null||m.recordType(D),D}function L5(l,m){const D=op(l);return D.symbol=m,D}function bb(l){return new b(Ni,l)}function Nc(l,m,D=0,C){cz(m,C);const A=op(l);return A.intrinsicName=m,A.debugIntrinsicName=C,A.objectFlags=D|524288|2097152|33554432|16777216,A}function cz(l,m){const D=`${l},${m??""}`;ii.has(D)&&H.fail(`Duplicate intrinsic type name ${l}${m?` (${m})`:""}; you may need to pass a name to createIntrinsicType.`),ii.add(D)}function _4(l,m){const D=L5(524288,m);return D.objectFlags=l,D.members=void 0,D.properties=void 0,D.callSignatures=void 0,D.constructSignatures=void 0,D.indexInfos=void 0,D}function Kw(){return ir(Ea(jde.keys(),cf))}function O1(l){return L5(262144,l)}function pC(l){return l.charCodeAt(0)===95&&l.charCodeAt(1)===95&&l.charCodeAt(2)!==95&&l.charCodeAt(2)!==64&&l.charCodeAt(2)!==35}function yb(l){let m;return l.forEach((D,C)=>{aF(D,C)&&(m||(m=[])).push(D)}),m||_t}function aF(l,m){return!pC(m)&&s6(l)}function Ww(l){const m=yb(l),D=Age(l);return D?an(m,[D]):m}function D4(l,m,D,C,A){const w=l;return w.members=m,w.properties=_t,w.callSignatures=D,w.constructSignatures=C,w.indexInfos=A,m!==se&&(w.properties=yb(m)),w}function Rl(l,m,D,C,A){return D4(_4(16,l),m,D,C,A)}function DE(l){if(l.constructSignatures.length===0)return l;if(l.objectTypeWithoutAbstractConstructSignatures)return l.objectTypeWithoutAbstractConstructSignatures;const m=ei(l.constructSignatures,C=>!(C.flags&4));if(l.constructSignatures===m)return l;const D=Rl(l.symbol,l.members,l.callSignatures,qe(m)?m:_t,l.indexInfos);return l.objectTypeWithoutAbstractConstructSignatures=D,D.objectTypeWithoutAbstractConstructSignatures=D,D}function l6(l,m){let D;for(let C=l;C;C=C.parent){if($E(C)&&C.locals&&!mE(C)&&(D=m(C.locals,void 0,!0,C)))return D;switch(C.kind){case 312:if(!lm(C))break;case 267:const A=Du(C);if(D=m((A==null?void 0:A.exports)||se,void 0,!0,C))return D;break;case 263:case 231:case 264:let w;if((Du(C).members||se).forEach((I,U)=>{I.flags&788968&&(w||(w=jo())).set(U,I)}),w&&(D=m(w,void 0,!1,C)))return D;break}}return m(Ie,void 0,!0)}function x3(l){return l===111551?111551:1920}function gC(l,m,D,C,A=new Map){if(!(l&&!c6(l)))return;const w=$r(l),I=w.accessibleChainCache||(w.accessibleChainCache=new Map),U=l6(m,(cn,uu,En,Ii)=>Ii),Z=`${C?0:1}|${U&&Js(U)}|${D}`;if(I.has(Z))return I.get(Z);const ce=qo(l);let Fe=A.get(ce);Fe||A.set(ce,Fe=[]);const Te=l6(m,Je);return I.set(Z,Te),Te;function Je(cn,uu,En){if(!va(Fe,cn))return;const Ii=fi(cn,uu,En);return Fe.pop(),Ii}function ut(cn,uu){return!Gw(cn,m,uu)||!!gC(cn.parent,m,x3(uu),C,A)}function zt(cn,uu,En){return(l===(uu||cn)||Vs(l)===Vs(uu||cn))&&!qe(cn.declarations,ko)&&(En||ut(Vs(cn),D))}function fi(cn,uu,En){return zt(cn.get(l.escapedName),void 0,uu)?[l]:d1(cn,Pn=>{if(Pn.flags&2097152&&Pn.escapedName!=="export="&&Pn.escapedName!=="default"&&!(Kq(Pn)&&m&&Bc(In(m)))&&(!C||qe(Pn.declarations,vv))&&(!En||!qe(Pn.declarations,eye))&&(uu||!Fl(Pn,281))){const Cn=hd(Pn),Sn=Ki(Pn,Cn,uu);if(Sn)return Sn}if(Pn.escapedName===l.escapedName&&Pn.exportSymbol&&zt(Vs(Pn.exportSymbol),void 0,uu))return[l]})||(cn===Ie?Ki(St,St,uu):void 0)}function Ki(cn,uu,En){if(zt(cn,uu,En))return[cn];const Ii=Jf(uu),Pn=Ii&&Je(Ii,!0);if(Pn&&ut(cn,x3(D)))return[cn].concat(Pn)}}function Gw(l,m,D){let C=!1;return l6(m,A=>{let w=Vs(A.get(l.escapedName));if(!w)return!1;if(w===l)return!0;const I=w.flags&2097152&&!Fl(w,281);return w=I?hd(w):w,(I?R1(w):w.flags)&D?(C=!0,!0):!1}),C}function c6(l){if(l.declarations&&l.declarations.length){for(const m of l.declarations)switch(m.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function O(l,m){return Jr(l,m,788968,!1,!0).accessibility===0}function be(l,m){return Jr(l,m,111551,!1,!0).accessibility===0}function Vt(l,m,D){return Jr(l,m,D,!1,!1).accessibility===0}function Oi(l,m,D,C,A,w){if(!S(l))return;let I,U=!1;for(const Z of l){const ce=gC(Z,m,C,!1);if(ce){I=Z;const Je=Ff(ce[0],A);if(Je)return Je}if(w&&qe(Z.declarations,ko)){if(A){U=!0;continue}return{accessibility:0}}const Fe=Hw(Z,m,C),Te=Oi(Fe,m,D,D===Z?x3(C):C,A,w);if(Te)return Te}if(U)return{accessibility:0};if(I)return{accessibility:1,errorSymbolName:Sr(D,m,C),errorModuleName:I!==D?Sr(I,m,1920):void 0}}function ku(l,m,D,C){return Jr(l,m,D,C,!0)}function Jr(l,m,D,C,A){if(l&&m){const w=Oi([l],m,l,D,C,A);if(w)return w;const I=L(l.declarations,br);if(I){const U=br(m);if(I!==U)return{accessibility:2,errorSymbolName:Sr(l,m,D),errorModuleName:Sr(I),errorNode:eu(m)?m:void 0}}return{accessibility:1,errorSymbolName:Sr(l,m,D)}}return{accessibility:0}}function br(l){const m=Ln(l,_a);return m&&Du(m)}function _a(l){return L1(l)||l.kind===312&&lm(l)}function ko(l){return YU(l)||l.kind===312&&lm(l)}function Ff(l,m){let D;if(!ye(ei(l.declarations,w=>w.kind!==80),C))return;return{accessibility:0,aliasesToMakeVisible:D};function C(w){var I,U;if(!mD(w)){const Z=k9(w);if(Z&&!Xu(Z,32)&&mD(Z.parent))return A(w,Z);if(ua(w)&&Gl(w.parent.parent)&&!Xu(w.parent.parent,32)&&mD(w.parent.parent.parent))return A(w,w.parent.parent);if(QU(w)&&!Xu(w,32)&&mD(w.parent))return A(w,w);if(Rs(w)){if(l.flags&2097152&&eu(w)&&((I=w.parent)!=null&&I.parent)&&ua(w.parent.parent)&&((U=w.parent.parent.parent)!=null&&U.parent)&&Gl(w.parent.parent.parent.parent)&&!Xu(w.parent.parent.parent.parent,32)&&w.parent.parent.parent.parent.parent&&mD(w.parent.parent.parent.parent.parent))return A(w,w.parent.parent.parent.parent);if(l.flags&2){const ce=Ln(w,Gl);return Xu(ce,32)?!0:mD(ce.parent)?A(w,ce):!1}}return!1}return!0}function A(w,I){return m&&(sr(w).isVisible=!0,D=e0(D,I)),!0}}function $f(l,m){let D;l.parent.kind===186||l.parent.kind===233&&!U_(l.parent)||l.parent.kind===167?D=1160127:l.kind===166||l.kind===211||l.parent.kind===271?D=1920:D=788968;const C=dm(l),A=nc(m,C.escapedText,D,void 0,void 0,!1);return A&&A.flags&262144&&D&788968?{accessibility:0}:!A&&w2(C)&&ku(Du(ef(C,!1,!1)),C,D,!1).accessibility===0?{accessibility:0}:A&&Ff(A,!0)||{accessibility:1,errorSymbolName:Vc(C),errorNode:C}}function Sr(l,m,D,C=4,A){let w=70221824;C&2&&(w|=128),C&1&&(w|=512),C&8&&(w|=16384),C&32&&(w|=134217728),C&16&&(w|=1073741824);const I=C&4?Yt.symbolToNode:Yt.symbolToEntityName;return A?U(A).getText():WN(U);function U(Z){const ce=I(l,D,m,w),Fe=(m==null?void 0:m.kind)===312?f1e():Z2(),Te=m&&In(m);return Fe.writeNode(4,ce,Te,Z),Z}}function xE(l,m,D=0,C,A){return A?w(A).getText():WN(w);function w(I){let U;D&262144?U=C===1?185:184:U=C===1?180:179;const Z=Yt.signatureToSignatureDeclaration(l,U,m,EC(D)|70221824|512),ce=pH(),Fe=m&&In(m);return ce.writeNode(4,Z,Fe,X0e(I)),I}}function gn(l,m,D=1064960,C=Oj("")){const A=ae.noErrorTruncation||D&1,w=Yt.typeToTypeNode(l,m,EC(D)|70221824|(A?1:0));if(w===void 0)return H.fail("should always get typenode");const I=l!==pi?Z2():h1e(),U=m&&In(m);I.writeNode(4,w,U,C);const Z=C.getText(),ce=A?pZ*2:oV*2;return ce&&Z&&Z.length>=ce?Z.substr(0,ce-3)+"...":Z}function d6(l,m){let D=oF(l.symbol)?gn(l,l.symbol.valueDeclaration):gn(l),C=oF(m.symbol)?gn(m,m.symbol.valueDeclaration):gn(m);return D===C&&(D=N5(l),C=N5(m)),[D,C]}function N5(l){return gn(l,void 0,64)}function oF(l){return l&&!!l.valueDeclaration&&Wt(l.valueDeclaration)&&!y4(l.valueDeclaration)}function EC(l=0){return l&848330091}function I9(l){return!!l.symbol&&!!(l.symbol.flags&32)&&(l===C4(l.symbol)||!!(l.flags&524288)&&!!($u(l)&16777216))}function sF(){return{typeToTypeNode:(At,ze,Xn,Au)=>m(ze,Xn,Au,Dr=>C(At,Dr)),indexInfoToIndexSignatureDeclaration:(At,ze,Xn,Au)=>m(ze,Xn,Au,Dr=>Fe(At,Dr,void 0)),signatureToSignatureDeclaration:(At,ze,Xn,Au,Dr)=>m(Xn,Au,Dr,pr=>Te(At,ze,pr)),symbolToEntityName:(At,ze,Xn,Au,Dr)=>m(Xn,Au,Dr,pr=>Fa(At,pr,ze,!1)),symbolToExpression:(At,ze,Xn,Au,Dr)=>m(Xn,Au,Dr,pr=>rh(At,pr,ze)),symbolToTypeParameterDeclarations:(At,ze,Xn,Au)=>m(ze,Xn,Au,Dr=>Pn(At,Dr)),symbolToParameterDeclaration:(At,ze,Xn,Au)=>m(ze,Xn,Au,Dr=>Ki(At,Dr)),typeParameterToDeclaration:(At,ze,Xn,Au)=>m(ze,Xn,Au,Dr=>zt(At,Dr)),symbolTableToDeclarationStatements:(At,ze,Xn,Au,Dr)=>m(ze,Xn,Au,pr=>Cm(At,pr,Dr)),symbolToNode:(At,ze,Xn,Au,Dr)=>m(Xn,Au,Dr,pr=>l(At,pr,ze))};function l(At,ze,Xn){if(ze.flags&1073741824){if(At.valueDeclaration){const Dr=qa(At.valueDeclaration);if(Dr&&Ls(Dr))return Dr}const Au=$r(At).nameType;if(Au&&Au.flags&9216)return ze.enclosingDeclaration=Au.symbol.valueDeclaration,q.createComputedPropertyName(rh(Au.symbol,ze,Xn))}return rh(At,ze,Xn)}function m(At,ze,Xn,Au){H.assert(At===void 0||(At.flags&16)===0);const Dr=Xn!=null&&Xn.trackSymbol?Xn.moduleResolverHost:ze&134217728?bPt(t):void 0,pr={enclosingDeclaration:At,flags:ze||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};pr.tracker=new Vde(pr,Xn,Dr);const Mr=Au(pr);return pr.truncating&&pr.flags&1&&pr.tracker.reportTruncationError(),pr.encounteredError?void 0:Mr}function D(At){return At.truncating?At.truncating:At.truncating=At.approximateLength>(At.flags&1?pZ:oV)}function C(At,ze){const Xn=ze.flags,Au=A(At,ze);return ze.flags=Xn,Au}function A(At,ze){var Xn,Au;d&&d.throwIfCancellationRequested&&d.throwIfCancellationRequested();const Dr=ze.flags&8388608;if(ze.flags&=-8388609,!At){if(!(ze.flags&262144)){ze.encounteredError=!0;return}return ze.approximateLength+=3,q.createKeywordTypeNode(133)}if(ze.flags&536870912||(At=Fg(At)),At.flags&1)return At.aliasSymbol?q.createTypeReferenceNode(fu(At.aliasSymbol),Z(At.aliasTypeArguments,ze)):At===pi?RP(q.createKeywordTypeNode(133),3,"unresolved"):(ze.approximateLength+=3,q.createKeywordTypeNode(At===Yi?141:133));if(At.flags&2)return q.createKeywordTypeNode(159);if(At.flags&4)return ze.approximateLength+=6,q.createKeywordTypeNode(154);if(At.flags&8)return ze.approximateLength+=6,q.createKeywordTypeNode(150);if(At.flags&64)return ze.approximateLength+=6,q.createKeywordTypeNode(163);if(At.flags&16&&!At.aliasSymbol)return ze.approximateLength+=7,q.createKeywordTypeNode(136);if(At.flags&1056){if(At.symbol.flags&8){const pn=lf(At.symbol),lr=ao(pn,ze,788968);if(q0(pn)===At)return lr;const Ur=sc(At.symbol);return Tm(Ur,0)?Wr(lr,q.createTypeReferenceNode(Ur,void 0)):iD(lr)?(lr.isTypeOf=!0,q.createIndexedAccessTypeNode(lr,q.createLiteralTypeNode(q.createStringLiteral(Ur)))):Y4(lr)?q.createIndexedAccessTypeNode(q.createTypeQueryNode(lr.typeName),q.createLiteralTypeNode(q.createStringLiteral(Ur))):H.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return ao(At.symbol,ze,788968)}if(At.flags&128)return ze.approximateLength+=At.value.length+2,q.createLiteralTypeNode(Qn(q.createStringLiteral(At.value,!!(ze.flags&268435456)),16777216));if(At.flags&256){const pn=At.value;return ze.approximateLength+=(""+pn).length,q.createLiteralTypeNode(pn<0?q.createPrefixUnaryExpression(41,q.createNumericLiteral(-pn)):q.createNumericLiteral(pn))}if(At.flags&2048)return ze.approximateLength+=P2(At.value).length+1,q.createLiteralTypeNode(q.createBigIntLiteral(At.value));if(At.flags&512)return ze.approximateLength+=At.intrinsicName.length,q.createLiteralTypeNode(At.intrinsicName==="true"?q.createTrue():q.createFalse());if(At.flags&8192){if(!(ze.flags&1048576)){if(be(At.symbol,ze.enclosingDeclaration))return ze.approximateLength+=6,ao(At.symbol,ze,111551);ze.tracker.reportInaccessibleUniqueSymbolError&&ze.tracker.reportInaccessibleUniqueSymbolError()}return ze.approximateLength+=13,q.createTypeOperatorNode(158,q.createKeywordTypeNode(155))}if(At.flags&16384)return ze.approximateLength+=4,q.createKeywordTypeNode(116);if(At.flags&32768)return ze.approximateLength+=9,q.createKeywordTypeNode(157);if(At.flags&65536)return ze.approximateLength+=4,q.createLiteralTypeNode(q.createNull());if(At.flags&131072)return ze.approximateLength+=5,q.createKeywordTypeNode(146);if(At.flags&4096)return ze.approximateLength+=6,q.createKeywordTypeNode(155);if(At.flags&67108864)return ze.approximateLength+=6,q.createKeywordTypeNode(151);if(LP(At))return ze.flags&4194304&&(!ze.encounteredError&&!(ze.flags&32768)&&(ze.encounteredError=!0),(Au=(Xn=ze.tracker).reportInaccessibleThisError)==null||Au.call(Xn)),ze.approximateLength+=4,q.createThisTypeNode();if(!Dr&&At.aliasSymbol&&(ze.flags&16384||O(At.aliasSymbol,ze.enclosingDeclaration))){const pn=Z(At.aliasTypeArguments,ze);return pC(At.aliasSymbol.escapedName)&&!(At.aliasSymbol.flags&32)?q.createTypeReferenceNode(q.createIdentifier(""),pn):S(pn)===1&&At.aliasSymbol===yo.symbol?q.createArrayTypeNode(pn[0]):ao(At.aliasSymbol,ze,788968,pn)}const pr=$u(At);if(pr&4)return H.assert(!!(At.flags&524288)),At.node?Ci(At,mn):mn(At);if(At.flags&262144||pr&3){if(At.flags&262144&&Ft(ze.inferTypeParameters,At)){ze.approximateLength+=sc(At.symbol).length+6;let lr;const Ur=uh(At);if(Ur){const Ta=Pdt(At,!0);Ta&&vD(Ur,Ta)||(ze.approximateLength+=9,lr=Ur&&C(Ur,ze))}return q.createInferTypeNode(ut(At,ze,lr))}if(ze.flags&4&&At.flags&262144&&!O(At.symbol,ze.enclosingDeclaration)){const lr=co(At,ze);return ze.approximateLength+=mu(lr).length,q.createTypeReferenceNode(q.createIdentifier(mu(lr)),void 0)}if(At.symbol)return ao(At.symbol,ze,788968);const pn=(At===$||At===tt)&&Y&&Y.symbol?(At===tt?"sub-":"super-")+sc(Y.symbol):"?";return q.createTypeReferenceNode(q.createIdentifier(pn),void 0)}if(At.flags&1048576&&At.origin&&(At=At.origin),At.flags&3145728){const pn=At.flags&1048576?P5(At.types):At.types;if(S(pn)===1)return C(pn[0],ze);const lr=Z(pn,ze,!0);if(lr&&lr.length>0)return At.flags&1048576?q.createUnionTypeNode(lr):q.createIntersectionTypeNode(lr);!ze.encounteredError&&!(ze.flags&262144)&&(ze.encounteredError=!0);return}if(pr&48)return H.assert(!!(At.flags&524288)),Wi(At);if(At.flags&4194304){const pn=At.type;ze.approximateLength+=6;const lr=C(pn,ze);return q.createTypeOperatorNode(143,lr)}if(At.flags&134217728){const pn=At.texts,lr=At.types,Ur=q.createTemplateHead(pn[0]),Ta=q.createNodeArray(Kt(lr,(ls,fd)=>q.createTemplateLiteralTypeSpan(C(ls,ze),(fdMr(pn));if(At.flags&33554432)return C(At.baseType,ze);return H.fail("Should be unreachable.");function Mr(pn){const lr=C(pn.checkType,ze);if(ze.approximateLength+=15,ze.flags&4&&pn.root.isDistributive&&!(pn.checkType.flags&262144)){const vl=O1(js(262144,"T")),dl=co(vl,ze),V1=q.createTypeReferenceNode(dl);ze.approximateLength+=37;const Cl=q9(pn.root.checkType,vl,pn.mapper),kt=ze.inferTypeParameters;ze.inferTypeParameters=pn.root.inferTypeParameters;const $t=C(Da(pn.root.extendsType,Cl),ze);ze.inferTypeParameters=kt;const Mi=Ou(Da(Br(pn.root.node.trueType),Cl)),wn=Ou(Da(Br(pn.root.node.falseType),Cl));return q.createConditionalTypeNode(lr,q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(V1.typeName))),q.createConditionalTypeNode(q.createTypeReferenceNode(q.cloneNode(dl)),C(pn.checkType,ze),q.createConditionalTypeNode(V1,$t,Mi,wn),q.createKeywordTypeNode(146)),q.createKeywordTypeNode(146))}const Ur=ze.inferTypeParameters;ze.inferTypeParameters=pn.root.inferTypeParameters;const Ta=C(pn.extendsType,ze);ze.inferTypeParameters=Ur;const ls=Ou(FC(pn)),fd=Ou(AC(pn));return q.createConditionalTypeNode(lr,Ta,ls,fd)}function Ou(pn){var lr,Ur,Ta;return pn.flags&1048576?(lr=ze.visitedTypes)!=null&&lr.has(kh(pn))?(ze.flags&131072||(ze.encounteredError=!0,(Ta=(Ur=ze.tracker)==null?void 0:Ur.reportCyclicStructureError)==null||Ta.call(Ur)),w(ze)):Ci(pn,ls=>C(ls,ze)):C(pn,ze)}function vu(pn){return!!Gge(pn)}function Tt(pn){return!!pn.target&&vu(pn.target)&&!vu(pn)}function oi(pn){var lr;H.assert(!!(pn.flags&524288));const Ur=pn.declaration.readonlyToken?q.createToken(pn.declaration.readonlyToken.kind):void 0,Ta=pn.declaration.questionToken?q.createToken(pn.declaration.questionToken.kind):void 0;let ls,fd;const vl=!XK(pn)&&!(V9(pn).flags&2)&&ze.flags&4&&!(sp(pn).flags&262144&&((lr=uh(sp(pn)))==null?void 0:lr.flags)&4194304);if(XK(pn)){if(Tt(pn)&&ze.flags&4){const Mi=O1(js(262144,"T")),wn=co(Mi,ze);fd=q.createTypeReferenceNode(wn)}ls=q.createTypeOperatorNode(143,fd||C(V9(pn),ze))}else if(vl){const Mi=O1(js(262144,"T")),wn=co(Mi,ze);fd=q.createTypeReferenceNode(wn),ls=fd}else ls=C(sp(pn),ze);const dl=ut(yg(pn),ze,ls),V1=pn.declaration.nameType?C(z5(pn),ze):void 0,Cl=C(S6(_D(pn),!!(v_(pn)&4)),ze),kt=q.createMappedTypeNode(Ur,dl,V1,Ta,Cl,void 0);ze.approximateLength+=10;const $t=Qn(kt,1);if(Tt(pn)&&ze.flags&4){const Mi=Da(uh(Br(pn.declaration.typeParameter.constraint.type))||on,pn.mapper);return q.createConditionalTypeNode(C(V9(pn),ze),q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(fd.typeName),Mi.flags&2?void 0:C(Mi,ze))),$t,q.createKeywordTypeNode(146))}else if(vl)return q.createConditionalTypeNode(C(sp(pn),ze),q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(fd.typeName),q.createTypeOperatorNode(143,C(V9(pn),ze)))),$t,q.createKeywordTypeNode(146));return $t}function Wi(pn){var lr,Ur;const Ta=pn.id,ls=pn.symbol;if(ls){const vl=I9(pn)?788968:111551;if(FE(ls.valueDeclaration))return ao(ls,ze,vl);if(ls.flags&32&&!dF(ls)&&!(ls.valueDeclaration&&gr(ls.valueDeclaration)&&ze.flags&2048&&(!Kc(ls.valueDeclaration)||ku(ls,ze.enclosingDeclaration,vl,!1).accessibility!==0))||ls.flags&896||fd())return ao(ls,ze,vl);if((lr=ze.visitedTypes)!=null&&lr.has(Ta)){const dl=Jw(pn);return dl?ao(dl,ze,788968):w(ze)}else return Ci(pn,Gi)}else{if(!!($u(pn)&8388608)){const dl=pn;if(vB(dl.node)){const V1=Z0(ze,dl.node);if(V1)return V1}return(Ur=ze.visitedTypes)!=null&&Ur.has(Ta)?w(ze):Ci(pn,Gi)}return Gi(pn)}function fd(){var vl;const dl=!!(ls.flags&8192)&&qe(ls.declarations,Cl=>To(Cl)),V1=!!(ls.flags&16)&&(ls.parent||L(ls.declarations,Cl=>Cl.parent.kind===312||Cl.parent.kind===268));if(dl||V1)return(!!(ze.flags&4096)||((vl=ze.visitedTypes)==null?void 0:vl.has(Ta)))&&(!(ze.flags&8)||be(ls,ze.enclosingDeclaration))}}function Ci(pn,lr){var Ur,Ta,ls;const fd=pn.id,vl=$u(pn)&16&&pn.symbol&&pn.symbol.flags&32,dl=$u(pn)&4&&pn.node?"N"+Js(pn.node):pn.flags&16777216?"N"+Js(pn.root.node):pn.symbol?(vl?"+":"")+qo(pn.symbol):void 0;ze.visitedTypes||(ze.visitedTypes=new Set),dl&&!ze.symbolDepth&&(ze.symbolDepth=new Map);const V1=ze.enclosingDeclaration&&sr(ze.enclosingDeclaration),Cl=`${kh(pn)}|${ze.flags}`;V1&&(V1.serializedTypes||(V1.serializedTypes=new Map));const kt=(Ur=V1==null?void 0:V1.serializedTypes)==null?void 0:Ur.get(Cl);if(kt)return(Ta=kt.trackedSymbols)==null||Ta.forEach(([Tr,Ya,Io])=>ze.tracker.trackSymbol(Tr,Ya,Io)),kt.truncating&&(ze.truncating=!0),ze.approximateLength+=kt.addedLength,cu(kt.node);let $t;if(dl){if($t=ze.symbolDepth.get(dl)||0,$t>10)return w(ze);ze.symbolDepth.set(dl,$t+1)}ze.visitedTypes.add(fd);const Mi=ze.trackedSymbols;ze.trackedSymbols=void 0;const wn=ze.approximateLength,xu=lr(pn),nn=ze.approximateLength-wn;return!ze.reportedDiagnostic&&!ze.encounteredError&&((ls=V1==null?void 0:V1.serializedTypes)==null||ls.set(Cl,{node:xu,truncating:ze.truncating,addedLength:nn,trackedSymbols:ze.trackedSymbols})),ze.visitedTypes.delete(fd),dl&&ze.symbolDepth.set(dl,$t),ze.trackedSymbols=Mi,xu;function cu(Tr){return!al(Tr)&&Ua(Tr)===Tr?Tr:Pt(q.cloneNode(un(Tr,cu,Eg,xr)),Tr)}function xr(Tr,Ya,Io,Ko,vr){return Tr&&Tr.length===0?Pt(q.createNodeArray(void 0,Tr.hasTrailingComma),Tr):Fn(Tr,Ya,Io,Ko,vr)}}function Gi(pn){if(Qm(pn)||pn.containsError)return oi(pn);const lr=kg(pn);if(!lr.properties.length&&!lr.indexInfos.length){if(!lr.callSignatures.length&&!lr.constructSignatures.length)return ze.approximateLength+=2,Qn(q.createTypeLiteralNode(void 0),1);if(lr.callSignatures.length===1&&!lr.constructSignatures.length){const vl=lr.callSignatures[0];return Te(vl,184,ze)}if(lr.constructSignatures.length===1&&!lr.callSignatures.length){const vl=lr.constructSignatures[0];return Te(vl,185,ze)}}const Ur=ei(lr.constructSignatures,vl=>!!(vl.flags&4));if(qe(Ur)){const vl=Kt(Ur,EF);return lr.callSignatures.length+(lr.constructSignatures.length-Ur.length)+lr.indexInfos.length+(ze.flags&2048?ui(lr.properties,V1=>!(V1.flags&4194304)):S(lr.properties))&&vl.push(DE(lr)),C(Es(vl),ze)}const Ta=ze.flags;ze.flags|=4194304;const ls=go(lr);ze.flags=Ta;const fd=q.createTypeLiteralNode(ls);return ze.approximateLength+=2,Qn(fd,ze.flags&1024?0:1),fd}function mn(pn){let lr=M0(pn);if(pn.target===yo||pn.target===Bo){if(ze.flags&2){const ls=C(lr[0],ze);return q.createTypeReferenceNode(pn.target===yo?"Array":"ReadonlyArray",[ls])}const Ur=C(lr[0],ze),Ta=q.createArrayTypeNode(Ur);return pn.target===yo?Ta:q.createTypeOperatorNode(148,Ta)}else if(pn.target.objectFlags&8){if(lr=Mu(lr,(Ur,Ta)=>S6(Ur,!!(pn.target.elementFlags[Ta]&2))),lr.length>0){const Ur=R5(pn),Ta=Z(lr.slice(0,Ur),ze);if(Ta){const{labeledElementDeclarations:ls}=pn.target;for(let vl=0;vl0){const V1=(pn.target.typeParameters||_t).length;fd=Z(lr.slice(Ta,V1),ze)}const vl=ze.flags;ze.flags|=16;const dl=ao(pn.symbol,ze,788968,fd);return ze.flags=vl,ls?Wr(ls,dl):dl}}}function Wr(pn,lr){if(iD(pn)){let Ur=pn.typeArguments,Ta=pn.qualifier;Ta&&(at(Ta)?Ur!==mk(Ta)&&(Ta=s5(q.cloneNode(Ta),Ur)):Ur!==mk(Ta.right)&&(Ta=q.updateQualifiedName(Ta,Ta.left,s5(q.cloneNode(Ta.right),Ur)))),Ur=lr.typeArguments;const ls=Fu(lr);for(const fd of ls)Ta=Ta?q.createQualifiedName(Ta,fd):fd;return q.updateImportTypeNode(pn,pn.argument,pn.attributes,Ta,Ur,pn.isTypeOf)}else{let Ur=pn.typeArguments,Ta=pn.typeName;at(Ta)?Ur!==mk(Ta)&&(Ta=s5(q.cloneNode(Ta),Ur)):Ur!==mk(Ta.right)&&(Ta=q.updateQualifiedName(Ta,Ta.left,s5(q.cloneNode(Ta.right),Ur))),Ur=lr.typeArguments;const ls=Fu(lr);for(const fd of ls)Ta=q.createQualifiedName(Ta,fd);return q.updateTypeReferenceNode(pn,Ta,Ur)}}function Fu(pn){let lr=pn.typeName;const Ur=[];for(;!at(lr);)Ur.unshift(lr.right),lr=lr.left;return Ur.unshift(lr),Ur}function go(pn){if(D(ze))return[q.createPropertySignature(void 0,"...",void 0,void 0)];const lr=[];for(const ls of pn.callSignatures)lr.push(Te(ls,179,ze));for(const ls of pn.constructSignatures)ls.flags&4||lr.push(Te(ls,180,ze));for(const ls of pn.indexInfos)lr.push(Fe(ls,ze,pn.objectFlags&1024?w(ze):void 0));const Ur=pn.properties;if(!Ur)return lr;let Ta=0;for(const ls of Ur){if(Ta++,ze.flags&2048){if(ls.flags&4194304)continue;s4(ls)&6&&ze.tracker.reportPrivateInBaseOfClassExpression&&ze.tracker.reportPrivateInBaseOfClassExpression(Yr(ls.escapedName))}if(D(ze)&&Ta+2!(mn.flags&32768)),0);for(const mn of Gi){const Wr=Te(mn,173,ze,{name:Ou,questionToken:vu});Xn.push(Ci(Wr))}if(Gi.length||!vu)return}let Tt;I(At,ze)?Tt=w(ze):(Dr&&(ze.reverseMappedStack||(ze.reverseMappedStack=[]),ze.reverseMappedStack.push(At)),Tt=pr?rd(ze,pr,At,Mr):q.createKeywordTypeNode(133),Dr&&ze.reverseMappedStack.pop());const oi=Tg(At)?[q.createToken(148)]:void 0;oi&&(ze.approximateLength+=9);const Wi=q.createPropertySignature(oi,Ou,vu,Tt);Xn.push(Ci(Wi));function Ci(Gi){var mn;const Wr=(mn=At.declarations)==null?void 0:mn.find(Fu=>Fu.kind===355);if(Wr){const Fu=VO(Wr.comment);Fu&&Tv(Gi,[{kind:3,text:`* - * `+Fu.replace(/\n/g,` + })(name => super[name], (name, value) => super[name] = value);`}}});function Of(t){return t.kind===9}function iY(t){return t.kind===10}function us(t){return t.kind===11}function w7(t){return t.kind===12}function mce(t){return t.kind===14}function T7(t){return t.kind===15}function vB(t){return t.kind===16}function qke(t){return t.kind===17}function pce(t){return t.kind===18}function nY(t){return t.kind===26}function Zke(t){return t.kind===28}function gce(t){return t.kind===40}function Ece(t){return t.kind===41}function yV(t){return t.kind===42}function kV(t){return t.kind===54}function Wx(t){return t.kind===58}function Yke(t){return t.kind===59}function uY(t){return t.kind===29}function Qke(t){return t.kind===39}function at(t){return t.kind===80}function Xr(t){return t.kind===81}function L7(t){return t.kind===95}function rY(t){return t.kind===90}function VP(t){return t.kind===134}function Xke(t){return t.kind===131}function _ce(t){return t.kind===135}function eFe(t){return t.kind===148}function N7(t){return t.kind===126}function tFe(t){return t.kind===128}function iFe(t){return t.kind===164}function nFe(t){return t.kind===129}function HP(t){return t.kind===108}function KP(t){return t.kind===102}function uFe(t){return t.kind===84}function vf(t){return t.kind===166}function Ps(t){return t.kind===167}function Bl(t){return t.kind===168}function io(t){return t.kind===169}function g1(t){return t.kind===170}function Mm(t){return t.kind===171}function ko(t){return t.kind===172}function n3(t){return t.kind===173}function dc(t){return t.kind===174}function zl(t){return t.kind===175}function hc(t){return t.kind===176}function zm(t){return t.kind===177}function jf(t){return t.kind===178}function CB(t){return t.kind===179}function FV(t){return t.kind===180}function Ek(t){return t.kind===181}function aY(t){return t.kind===182}function X4(t){return t.kind===183}function u3(t){return t.kind===184}function WP(t){return t.kind===185}function bB(t){return t.kind===186}function fm(t){return t.kind===187}function oY(t){return t.kind===188}function yB(t){return t.kind===189}function GP(t){return t.kind===202}function Dce(t){return t.kind===190}function xce(t){return t.kind===191}function Pv(t){return t.kind===192}function kB(t){return t.kind===193}function FB(t){return t.kind===194}function P7(t){return t.kind===195}function M7(t){return t.kind===196}function sY(t){return t.kind===197}function z7(t){return t.kind===198}function I7(t){return t.kind===199}function JP(t){return t.kind===200}function Mv(t){return t.kind===201}function nD(t){return t.kind===205}function rFe(t){return t.kind===204}function GYe(t){return t.kind===203}function Rp(t){return t.kind===206}function _k(t){return t.kind===207}function js(t){return t.kind===208}function Dh(t){return t.kind===209}function ys(t){return t.kind===210}function Iu(t){return t.kind===211}function U0(t){return t.kind===212}function Mo(t){return t.kind===213}function j2(t){return t.kind===214}function Dk(t){return t.kind===215}function aFe(t){return t.kind===216}function Cf(t){return t.kind===217}function A0(t){return t.kind===218}function q0(t){return t.kind===219}function oFe(t){return t.kind===220}function AB(t){return t.kind===221}function R7(t){return t.kind===222}function Gx(t){return t.kind===223}function zv(t){return t.kind===224}function vce(t){return t.kind===225}function Xn(t){return t.kind===226}function SB(t){return t.kind===227}function lY(t){return t.kind===228}function cY(t){return t.kind===229}function uE(t){return t.kind===230}function Xd(t){return t.kind===231}function Fd(t){return t.kind===232}function c5(t){return t.kind===233}function AV(t){return t.kind===234}function sFe(t){return t.kind===238}function O7(t){return t.kind===235}function $P(t){return t.kind===236}function JYe(t){return t.kind===237}function dY(t){return t.kind===360}function UP(t){return t.kind===361}function qP(t){return t.kind===239}function lFe(t){return t.kind===240}function po(t){return t.kind===241}function Jl(t){return t.kind===243}function Cce(t){return t.kind===242}function Od(t){return t.kind===244}function xk(t){return t.kind===245}function $Ye(t){return t.kind===246}function UYe(t){return t.kind===247}function vk(t){return t.kind===248}function hY(t){return t.kind===249}function SV(t){return t.kind===250}function qYe(t){return t.kind===251}function ZYe(t){return t.kind===252}function Op(t){return t.kind===253}function cFe(t){return t.kind===254}function BV(t){return t.kind===255}function V2(t){return t.kind===256}function bce(t){return t.kind===257}function Ck(t){return t.kind===258}function YYe(t){return t.kind===259}function na(t){return t.kind===260}function Ad(t){return t.kind===261}function ed(t){return t.kind===262}function Wc(t){return t.kind===263}function xh(t){return t.kind===264}function jp(t){return t.kind===265}function Iv(t){return t.kind===266}function _c(t){return t.kind===267}function rE(t){return t.kind===268}function ZP(t){return t.kind===269}function wV(t){return t.kind===270}function E1(t){return t.kind===271}function Sd(t){return t.kind===272}function n_(t){return t.kind===273}function QYe(t){return t.kind===302}function dFe(t){return t.kind===300}function XYe(t){return t.kind===301}function fY(t){return t.kind===300}function hFe(t){return t.kind===301}function Jx(t){return t.kind===274}function u_(t){return t.kind===280}function uD(t){return t.kind===275}function bf(t){return t.kind===276}function tc(t){return t.kind===277}function Gc(t){return t.kind===278}function ep(t){return t.kind===279}function eh(t){return t.kind===281}function eQe(t){return t.kind===282}function yce(t){return t.kind===359}function j7(t){return t.kind===362}function r_(t){return t.kind===283}function r3(t){return t.kind===284}function bk(t){return t.kind===285}function aE(t){return t.kind===286}function H2(t){return t.kind===287}function K2(t){return t.kind===288}function V7(t){return t.kind===289}function fFe(t){return t.kind===290}function oE(t){return t.kind===291}function W2(t){return t.kind===292}function H7(t){return t.kind===293}function YP(t){return t.kind===294}function gg(t){return t.kind===295}function BB(t){return t.kind===296}function TV(t){return t.kind===297}function mm(t){return t.kind===298}function G2(t){return t.kind===299}function Jc(t){return t.kind===303}function pm(t){return t.kind===304}function d5(t){return t.kind===305}function J2(t){return t.kind===306}function mFe(t){return t.kind===308}function la(t){return t.kind===312}function kce(t){return t.kind===313}function yk(t){return t.kind===314}function kk(t){return t.kind===316}function QP(t){return t.kind===317}function Rv(t){return t.kind===318}function pFe(t){return t.kind===331}function gFe(t){return t.kind===332}function tQe(t){return t.kind===333}function EFe(t){return t.kind===319}function _Fe(t){return t.kind===320}function wB(t){return t.kind===321}function mY(t){return t.kind===322}function Fce(t){return t.kind===323}function TB(t){return t.kind===324}function pY(t){return t.kind===325}function iQe(t){return t.kind===326}function Vp(t){return t.kind===327}function K7(t){return t.kind===329}function Ov(t){return t.kind===330}function LB(t){return t.kind===335}function nQe(t){return t.kind===337}function DFe(t){return t.kind===339}function Ace(t){return t.kind===345}function Sce(t){return t.kind===340}function Bce(t){return t.kind===341}function wce(t){return t.kind===342}function Tce(t){return t.kind===343}function gY(t){return t.kind===344}function NB(t){return t.kind===346}function Lce(t){return t.kind===338}function uQe(t){return t.kind===354}function LV(t){return t.kind===347}function Eg(t){return t.kind===348}function EY(t){return t.kind===349}function xFe(t){return t.kind===350}function XP(t){return t.kind===351}function _g(t){return t.kind===352}function PB(t){return t.kind===353}function rQe(t){return t.kind===334}function vFe(t){return t.kind===355}function Nce(t){return t.kind===336}function _Y(t){return t.kind===357}function aQe(t){return t.kind===356}function MB(t){return t.kind===358}var PLt=o({"src/compiler/factory/nodeTests.ts"(){Bo()}});function NV(t){return t.createExportDeclaration(void 0,!1,t.createNamedExports([]),void 0)}function Fk(t,u,s,d){if(Ps(s))return Pt(t.createElementAccessExpression(u,s.expression),d);{const f=Pt(J_(s)?t.createPropertyAccessExpression(u,s):t.createElementAccessExpression(u,s),s);return i_(f,128),f}}function CFe(t,u){const s=a_.createIdentifier(t||"React");return ks(s,Ua(u)),s}function bFe(t,u,s){if(vf(u)){const d=bFe(t,u.left,s),f=t.createIdentifier(fu(u.right));return f.escapedText=u.right.escapedText,t.createPropertyAccessExpression(d,f)}else return CFe(fu(u),s)}function Pce(t,u,s,d){return u?bFe(t,u,d):t.createPropertyAccessExpression(CFe(s,d),"createElement")}function MLt(t,u,s,d){return u?bFe(t,u,d):t.createPropertyAccessExpression(CFe(s,d),"Fragment")}function yFe(t,u,s,d,f,p){const E=[s];if(d&&E.push(d),f&&f.length>0)if(d||E.push(t.createNull()),f.length>1)for(const v of f)vh(v),E.push(v);else E.push(f[0]);return Pt(t.createCallExpression(u,void 0,E),p)}function kFe(t,u,s,d,f,p,E){const b=[MLt(t,s,d,p),t.createNull()];if(f&&f.length>0)if(f.length>1)for(const B of f)vh(B),b.push(B);else b.push(f[0]);return Pt(t.createCallExpression(Pce(t,u,d,p),void 0,b),E)}function Mce(t,u,s){if(Ad(u)){const d=Pn(u.declarations),f=t.updateVariableDeclaration(d,d.name,void 0,void 0,s);return Pt(t.createVariableStatement(void 0,t.updateVariableDeclarationList(u,[f])),u)}else{const d=Pt(t.createAssignment(u,s),u);return Pt(t.createExpressionStatement(d),u)}}function oQe(t,u,s){return po(u)?t.updateBlock(u,Pt(t.createNodeArray([s,...u.statements]),u.statements)):t.createBlock(t.createNodeArray([u,s]),!0)}function PV(t,u){if(vf(u)){const s=PV(t,u.left),d=ks(Pt(t.cloneNode(u.right),u.right),u.right.parent);return Pt(t.createPropertyAccessExpression(s,d),u)}else return ks(Pt(t.cloneNode(u),u),u.parent)}function zce(t,u){return at(u)?t.createStringLiteralFromNode(u):Ps(u)?ks(Pt(t.cloneNode(u.expression),u.expression),u.expression.parent):ks(Pt(t.cloneNode(u),u),u.parent)}function zLt(t,u,s,d,f){const{firstAccessor:p,getAccessor:E,setAccessor:v}=dk(u,s);if(s===p)return Pt(t.createObjectDefinePropertyCall(d,zce(t,s.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:E&&Pt(su(t.createFunctionExpression(p2(E),void 0,void 0,void 0,E.parameters,void 0,E.body),E),E),set:v&&Pt(su(t.createFunctionExpression(p2(v),void 0,void 0,void 0,v.parameters,void 0,v.body),v),v)},!f)),p)}function ILt(t,u,s){return su(Pt(t.createAssignment(Fk(t,s,u.name,u.name),u.initializer),u),u)}function RLt(t,u,s){return su(Pt(t.createAssignment(Fk(t,s,u.name,u.name),t.cloneNode(u.name)),u),u)}function OLt(t,u,s){return su(Pt(t.createAssignment(Fk(t,s,u.name,u.name),su(Pt(t.createFunctionExpression(p2(u),u.asteriskToken,void 0,void 0,u.parameters,void 0,u.body),u),u)),u),u)}function FFe(t,u,s,d){switch(s.name&&Xr(s.name)&&H.failBadSyntaxKind(s.name,"Private identifiers are not allowed in object literals."),s.kind){case 177:case 178:return zLt(t,u.properties,s,d,!!u.multiLine);case 303:return ILt(t,s,d);case 304:return RLt(t,s,d);case 174:return OLt(t,s,d)}}function DY(t,u,s,d,f){const p=u.operator;H.assert(p===46||p===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const E=t.createTempVariable(d);s=t.createAssignment(E,s),Pt(s,u.operand);let v=zv(u)?t.createPrefixUnaryExpression(p,E):t.createPostfixUnaryExpression(E,p);return Pt(v,u),f&&(v=t.createAssignment(f,v),Pt(v,u)),s=t.createComma(s,v),Pt(s,u),vce(u)&&(s=t.createComma(s,E),Pt(s,u)),s}function Ice(t){return(bs(t)&65536)!==0}function rD(t){return(bs(t)&32768)!==0}function xY(t){return(bs(t)&16384)!==0}function sQe(t){return us(t.expression)&&t.expression.text==="use strict"}function Rce(t){for(const u of t)if(Mp(u)){if(sQe(u))return u}else break}function AFe(t){const u=Ki(t);return u!==void 0&&Mp(u)&&sQe(u)}function MV(t){return t.kind===226&&t.operatorToken.kind===28}function eM(t){return MV(t)||UP(t)}function tM(t){return Cf(t)&&Qn(t)&&!!xv(t)}function vY(t){const u=vv(t);return H.assertIsDefined(u),u}function CY(t,u=15){switch(t.kind){case 217:return u&16&&tM(t)?!1:(u&1)!==0;case 216:case 234:case 233:case 238:return(u&2)!==0;case 235:return(u&4)!==0;case 360:return(u&8)!==0}return!1}function Dc(t,u=15){for(;CY(t,u);)t=t.expression;return t}function SFe(t,u=15){let s=t.parent;for(;CY(s,u);)s=s.parent,H.assert(s);return s}function lQe(t){return Dc(t,6)}function vh(t){return FZ(t,!0)}function zV(t){const u=Wl(t,la),s=u&&u.emitNode;return s&&s.externalHelpersModuleName}function BFe(t){const u=Wl(t,la),s=u&&u.emitNode;return!!s&&(!!s.externalHelpersModuleName||!!s.externalHelpers)}function Oce(t,u,s,d,f,p,E){if(d.importHelpers&&s7(s,d)){let v;const b=m1(d);if(b>=5&&b<=99||s.impliedNodeFormat===99){const B=SZ(s);if(B){const k=[];for(const T of B)if(!T.scoped){const M=T.importName;M&&xa(k,M)}if(Oe(k)){k.sort(dh),v=t.createNamedImports(Vt(k,z=>QU(s,z)?t.createImportSpecifier(!1,void 0,t.createIdentifier(z)):t.createImportSpecifier(!1,t.createIdentifier(z),u.getUnscopedHelperName(z))));const T=Wl(s,la),M=P1(T);M.externalHelpers=!0}}}else{const B=wFe(t,s,d,f,p||E);B&&(v=t.createNamespaceImport(B))}if(v){const B=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,v),t.createStringLiteral(Hx),void 0);return F7(B,2),B}}}function wFe(t,u,s,d,f){if(s.importHelpers&&s7(u,s)){const p=zV(u);if(p)return p;const E=m1(s);let v=(d||e_(s)&&f)&&E!==4&&(E<5||u.impliedNodeFormat===1);if(!v){const b=SZ(u);if(b){for(const B of b)if(!B.scoped){v=!0;break}}}if(v){const b=Wl(u,la),B=P1(b);return B.externalHelpersModuleName||(B.externalHelpersModuleName=t.createUniqueName(Hx))}}}function zB(t,u,s){const d=Q8(u);if(d&&!c7(u)&&!eq(u)){const f=d.name;return al(f)?f:t.createIdentifier(x2(s,f)||fu(f))}if(u.kind===272&&u.importClause||u.kind===278&&u.moduleSpecifier)return t.getGeneratedNameForNode(u)}function W7(t,u,s,d,f,p){const E=Y8(u);if(E&&us(E))return VLt(u,d,t,f,p)||jLt(t,E,s)||t.cloneNode(E)}function jLt(t,u,s){const d=s.renamedDependencies&&s.renamedDependencies.get(u.text);return d?t.createStringLiteral(d):void 0}function IV(t,u,s,d){if(u){if(u.moduleName)return t.createStringLiteral(u.moduleName);if(!u.isDeclarationFile&&y0(d))return t.createStringLiteral(tle(s,u.fileName))}}function VLt(t,u,s,d,f){return IV(s,d.getExternalModuleFileFromDeclaration(t),u,f)}function RV(t){if($O(t))return t.initializer;if(Jc(t)){const u=t.initializer;return ld(u,!0)?u.right:void 0}if(pm(t))return t.objectAssignmentInitializer;if(ld(t,!0))return t.right;if(uE(t))return RV(t.expression)}function $x(t){if($O(t))return t.name;if(Z3(t)){switch(t.kind){case 303:return $x(t.initializer);case 304:return t.name;case 305:return $x(t.expression)}return}return ld(t,!0)?$x(t.left):uE(t)?$x(t.expression):t}function bY(t){switch(t.kind){case 169:case 208:return t.dotDotDotToken;case 230:case 305:return t}}function jce(t){const u=yY(t);return H.assert(!!u||d5(t),"Invalid property name for binding element."),u}function yY(t){switch(t.kind){case 208:if(t.propertyName){const s=t.propertyName;return Xr(s)?H.failBadSyntaxKind(s):Ps(s)&&cQe(s.expression)?s.expression:s}break;case 303:if(t.name){const s=t.name;return Xr(s)?H.failBadSyntaxKind(s):Ps(s)&&cQe(s.expression)?s.expression:s}break;case 305:return t.name&&Xr(t.name)?H.failBadSyntaxKind(t.name):t.name}const u=$x(t);if(u&&Sc(u))return u}function cQe(t){const u=t.kind;return u===11||u===9}function IB(t){switch(t.kind){case 206:case 207:case 209:return t.elements;case 210:return t.properties}}function Vce(t){if(t){let u=t;for(;;){if(at(u)||!u.body)return at(u)?u:u.name;u=u.body}}}function dQe(t){const u=t.kind;return u===176||u===178}function TFe(t){const u=t.kind;return u===176||u===177||u===178}function Hce(t){const u=t.kind;return u===303||u===304||u===262||u===176||u===181||u===175||u===282||u===243||u===264||u===265||u===266||u===267||u===271||u===272||u===270||u===278||u===277}function LFe(t){const u=t.kind;return u===175||u===303||u===304||u===282||u===270}function NFe(t){return Wx(t)||kV(t)}function PFe(t){return at(t)||sY(t)}function MFe(t){return eFe(t)||gce(t)||Ece(t)}function zFe(t){return Wx(t)||gce(t)||Ece(t)}function IFe(t){return at(t)||us(t)}function hQe(t){const u=t.kind;return u===106||u===112||u===97||E2(t)||zv(t)}function HLt(t){return t===43}function KLt(t){return t===42||t===44||t===45}function WLt(t){return HLt(t)||KLt(t)}function GLt(t){return t===40||t===41}function JLt(t){return GLt(t)||WLt(t)}function $Lt(t){return t===48||t===49||t===50}function Kce(t){return $Lt(t)||JLt(t)}function ULt(t){return t===30||t===33||t===32||t===34||t===104||t===103}function qLt(t){return ULt(t)||Kce(t)}function ZLt(t){return t===35||t===37||t===36||t===38}function YLt(t){return ZLt(t)||qLt(t)}function QLt(t){return t===51||t===52||t===53}function XLt(t){return QLt(t)||YLt(t)}function eNt(t){return t===56||t===57}function tNt(t){return eNt(t)||XLt(t)}function iNt(t){return t===61||tNt(t)||u5(t)}function nNt(t){return iNt(t)||t===28}function RFe(t){return nNt(t.kind)}function kY(t,u,s,d,f,p){const E=new pQe(t,u,s,d,f,p);return v;function v(b,B){const k={value:void 0},T=[Gce.enter],M=[b],z=[void 0];let j=0;for(;T[j]!==Gce.done;)j=T[j](E,j,T,M,z,k,B);return H.assertEqual(j,0),k.value}}function fQe(t){return t===95||t===90}function OV(t){const u=t.kind;return fQe(u)}function mQe(t){const u=t.kind;return XD(u)&&!fQe(u)}function OFe(t,u){if(u!==void 0)return u.length===0?u:Pt(t.createNodeArray([],u.hasTrailingComma),u)}function jV(t){var u;const s=t.emitNode.autoGenerate;if(s.flags&4){const d=s.id;let f=t,p=f.original;for(;p;){f=p;const E=(u=f.emitNode)==null?void 0:u.autoGenerate;if(J_(f)&&(E===void 0||E.flags&4&&E.id!==d))break;p=f.original}return f}return t}function RB(t,u){return typeof t=="object"?jv(!1,t.prefix,t.node,t.suffix,u):typeof t=="string"?t.length>0&&t.charCodeAt(0)===35?t.slice(1):t:""}function uNt(t,u){return typeof t=="string"?t:rNt(t,H.checkDefined(u))}function rNt(t,u){return Uy(t)?u(t).slice(1):al(t)?u(t):Xr(t)?t.escapedText.slice(1):fu(t)}function jv(t,u,s,d,f){return u=RB(u,f),d=RB(d,f),s=uNt(s,f),`${t?"#":""}${u}${s}${d}`}function Wce(t,u,s,d){return t.updatePropertyDeclaration(u,s,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage"),void 0,void 0,d)}function jFe(t,u,s,d,f=t.createThis()){return t.createGetAccessorDeclaration(s,d,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(f,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage")))]))}function VFe(t,u,s,d,f=t.createThis()){return t.createSetAccessorDeclaration(s,d,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(f,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage")),t.createIdentifier("value")))]))}function FY(t){let u=t.expression;for(;;){if(u=Dc(u),UP(u)){u=Cr(u.elements);continue}if(MV(u)){u=u.right;continue}if(ld(u,!0)&&al(u.left))return u;break}}function aNt(t){return Cf(t)&&sl(t)&&!t.emitNode}function AY(t,u){if(aNt(t))AY(t.expression,u);else if(MV(t))AY(t.left,u),AY(t.right,u);else if(UP(t))for(const s of t.elements)AY(s,u);else u.push(t)}function HFe(t){const u=[];return AY(t,u),u}function VV(t){if(t.transformFlags&65536)return!0;if(t.transformFlags&128)for(const u of IB(t)){const s=$x(u);if(s&&KN(s)&&(s.transformFlags&65536||s.transformFlags&128&&VV(s)))return!0}return!1}var Gce,pQe,oNt=o({"src/compiler/factory/utilities.ts"(){Bo(),(t=>{function u(k,T,M,z,j,J,K){const Y=T>0?j[T-1]:void 0;return H.assertEqual(M[T],u),j[T]=k.onEnter(z[T],Y,K),M[T]=v(k,u),T}t.enter=u;function s(k,T,M,z,j,J,K){H.assertEqual(M[T],s),H.assertIsDefined(k.onLeft),M[T]=v(k,s);const Y=k.onLeft(z[T].left,j[T],z[T]);return Y?(B(T,z,Y),b(T,M,z,j,Y)):T}t.left=s;function d(k,T,M,z,j,J,K){return H.assertEqual(M[T],d),H.assertIsDefined(k.onOperator),M[T]=v(k,d),k.onOperator(z[T].operatorToken,j[T],z[T]),T}t.operator=d;function f(k,T,M,z,j,J,K){H.assertEqual(M[T],f),H.assertIsDefined(k.onRight),M[T]=v(k,f);const Y=k.onRight(z[T].right,j[T],z[T]);return Y?(B(T,z,Y),b(T,M,z,j,Y)):T}t.right=f;function p(k,T,M,z,j,J,K){H.assertEqual(M[T],p),M[T]=v(k,p);const Y=k.onExit(z[T],j[T]);if(T>0){if(T--,k.foldState){const oe=M[T]===p?"right":"left";j[T]=k.foldState(j[T],Y,oe)}}else J.value=Y;return T}t.exit=p;function E(k,T,M,z,j,J,K){return H.assertEqual(M[T],E),T}t.done=E;function v(k,T){switch(T){case u:if(k.onLeft)return s;case s:if(k.onOperator)return d;case d:if(k.onRight)return f;case f:return p;case p:return E;case E:return E;default:H.fail("Invalid state")}}t.nextState=v;function b(k,T,M,z,j){return k++,T[k]=u,M[k]=j,z[k]=void 0,k}function B(k,T,M){if(H.shouldAssert(2))for(;k>=0;)H.assert(T[k]!==M,"Circular traversal detected."),k--}})(Gce||(Gce={})),pQe=class{constructor(t,u,s,d,f,p){this.onEnter=t,this.onLeft=u,this.onOperator=s,this.onRight=d,this.onExit=f,this.foldState=p}}}});function Pt(t,u){return u?t_(t,u.pos,u.end):t}function Hp(t){const u=t.kind;return u===168||u===169||u===171||u===172||u===173||u===174||u===176||u===177||u===178||u===181||u===185||u===218||u===219||u===231||u===243||u===262||u===263||u===264||u===265||u===266||u===267||u===271||u===272||u===277||u===278}function Ak(t){const u=t.kind;return u===169||u===172||u===174||u===177||u===178||u===231||u===263}var sNt=o({"src/compiler/factory/utilitiesPublic.ts"(){Bo()}});function wi(t,u){return u&&t(u)}function Gr(t,u,s){if(s){if(u)return u(s);for(const d of s){const f=t(d);if(f)return f}}}function Jce(t,u){return t.charCodeAt(u+1)===42&&t.charCodeAt(u+2)===42&&t.charCodeAt(u+3)!==47}function HV(t){return L(t.statements,lNt)||cNt(t)}function lNt(t){return Hp(t)&&dNt(t,95)||E1(t)&&r_(t.moduleReference)||Sd(t)||tc(t)||Gc(t)?t:void 0}function cNt(t){return t.flags&8388608?gQe(t):void 0}function gQe(t){return hNt(t)?t:ao(t,gQe)}function dNt(t,u){return Oe(t.modifiers,s=>s.kind===u)}function hNt(t){return $P(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function EQe(t,u,s){return Gr(u,s,t.typeParameters)||Gr(u,s,t.parameters)||wi(u,t.type)}function _Qe(t,u,s){return Gr(u,s,t.types)}function DQe(t,u,s){return wi(u,t.type)}function xQe(t,u,s){return Gr(u,s,t.elements)}function vQe(t,u,s){return wi(u,t.expression)||wi(u,t.questionDotToken)||Gr(u,s,t.typeArguments)||Gr(u,s,t.arguments)}function CQe(t,u,s){return Gr(u,s,t.statements)}function bQe(t,u,s){return wi(u,t.label)}function yQe(t,u,s){return Gr(u,s,t.modifiers)||wi(u,t.name)||Gr(u,s,t.typeParameters)||Gr(u,s,t.heritageClauses)||Gr(u,s,t.members)}function kQe(t,u,s){return Gr(u,s,t.elements)}function FQe(t,u,s){return wi(u,t.propertyName)||wi(u,t.name)}function AQe(t,u,s){return wi(u,t.tagName)||Gr(u,s,t.typeArguments)||wi(u,t.attributes)}function iM(t,u,s){return wi(u,t.type)}function SQe(t,u,s){return wi(u,t.tagName)||(t.isNameFirst?wi(u,t.name)||wi(u,t.typeExpression):wi(u,t.typeExpression)||wi(u,t.name))||(typeof t.comment=="string"?void 0:Gr(u,s,t.comment))}function nM(t,u,s){return wi(u,t.tagName)||wi(u,t.typeExpression)||(typeof t.comment=="string"?void 0:Gr(u,s,t.comment))}function KFe(t,u,s){return wi(u,t.name)}function OB(t,u,s){return wi(u,t.tagName)||(typeof t.comment=="string"?void 0:Gr(u,s,t.comment))}function fNt(t,u,s){return wi(u,t.expression)}function ao(t,u,s){if(t===void 0||t.kind<=165)return;const d=RQe[t.kind];return d===void 0?void 0:d(t,u,s)}function uM(t,u,s){const d=BQe(t),f=[];for(;f.length=0;--v)d.push(p[v]),f.push(E)}else{const v=u(p,E);if(v){if(v==="skip")continue;return v}if(p.kind>=166)for(const b of BQe(p))d.push(b),f.push(p)}}}function BQe(t){const u=[];return ao(t,s,s),u;function s(d){u.unshift(d)}}function wQe(t){t.externalModuleIndicator=HV(t)}function KV(t,u,s,d=!1,f){var p,E,v,b;(p=Gn)==null||p.push(Gn.Phase.Parse,"createSourceFile",{path:t},!0),ul("beforeParse");let B;(E=hh)==null||E.logStartParseSourceFile(t);const{languageVersion:k,setExternalModuleIndicator:T,impliedNodeFormat:M,jsDocParsingMode:z}=typeof s=="object"?s:{languageVersion:s};if(k===100)B=Hv.parseSourceFile(t,u,k,void 0,d,6,Is,z);else{const j=M===void 0?T:J=>(J.impliedNodeFormat=M,(T||wQe)(J));B=Hv.parseSourceFile(t,u,k,void 0,d,f,j,z)}return(v=hh)==null||v.logStopParseSourceFile(),ul("afterParse"),Tm("Parse","beforeParse","afterParse"),(b=Gn)==null||b.pop(),B}function G7(t,u){return Hv.parseIsolatedEntityName(t,u)}function WV(t,u){return Hv.parseJsonText(t,u)}function wc(t){return t.externalModuleIndicator!==void 0}function $ce(t,u,s,d=!1){const f=Yce.updateSourceFile(t,u,s,d);return f.flags|=t.flags&12582912,f}function WFe(t,u,s){const d=Hv.JSDocParser.parseIsolatedJSDocComment(t,u,s);return d&&d.jsDoc&&Hv.fixupParentReferences(d.jsDoc),d}function TQe(t,u,s){return Hv.JSDocParser.parseJSDocTypeExpressionForTests(t,u,s)}function e1(t){return jc(t,dV)||Ml(t,".ts")&&Ac(t).includes(".d.")}function mNt(t,u,s,d){if(t){if(t==="import")return 99;if(t==="require")return 1;d(u,s-u,F.resolution_mode_should_be_either_require_or_import)}}function Uce(t,u){const s=[];for(const d of W_(u,0)||_t){const f=u.substring(d.pos,d.end);gNt(s,d,f)}t.pragmas=new Map;for(const d of s){if(t.pragmas.has(d.name)){const f=t.pragmas.get(d.name);f instanceof Array?f.push(d.args):t.pragmas.set(d.name,[f,d.args]);continue}t.pragmas.set(d.name,d.args)}}function qce(t,u){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((s,d)=>{switch(d){case"reference":{const f=t.referencedFiles,p=t.typeReferenceDirectives,E=t.libReferenceDirectives;L(YA(s),v=>{const{types:b,lib:B,path:k,["resolution-mode"]:T}=v.arguments;if(v.arguments["no-default-lib"])t.hasNoDefaultLib=!0;else if(b){const M=mNt(T,b.pos,b.end,u);p.push({pos:b.pos,end:b.end,fileName:b.value,...M?{resolutionMode:M}:{}})}else B?E.push({pos:B.pos,end:B.end,fileName:B.value}):k?f.push({pos:k.pos,end:k.end,fileName:k.value}):u(v.range.pos,v.range.end-v.range.pos,F.Invalid_reference_directive_syntax)});break}case"amd-dependency":{t.amdDependencies=Vt(YA(s),f=>({name:f.arguments.name,path:f.arguments.path}));break}case"amd-module":{if(s instanceof Array)for(const f of s)t.moduleName&&u(f.range.pos,f.range.end-f.range.pos,F.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=f.arguments.name;else t.moduleName=s.arguments.name;break}case"ts-nocheck":case"ts-check":{L(YA(s),f=>{(!t.checkJsDirective||f.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:d==="ts-check",end:f.range.end,pos:f.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:H.fail("Unhandled pragma kind")}})}function pNt(t){if(Qce.has(t))return Qce.get(t);const u=new RegExp(`(\\s${t}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Qce.set(t,u),u}function gNt(t,u,s){const d=u.kind===2&&OQe.exec(s);if(d){const p=d[1].toLowerCase(),E=CO[p];if(!E||!(E.kind&1))return;if(E.args){const v={};for(const b of E.args){const k=pNt(b.name).exec(s);if(!k&&!b.optional)return;if(k){const T=k[2]||k[3];if(b.captureSpan){const M=u.pos+k.index+k[1].length+1;v[b.name]={value:T,pos:M,end:M+T.length}}else v[b.name]=T}}t.push({name:p,args:{arguments:v,range:u}})}else t.push({name:p,args:{arguments:{},range:u}});return}const f=u.kind===2&&jQe.exec(s);if(f)return LQe(t,u,2,f);if(u.kind===3){const p=/@(\S+)(\s+.*)?$/gim;let E;for(;E=p.exec(s);)LQe(t,u,4,E)}}function LQe(t,u,s,d){if(!d)return;const f=d[1].toLowerCase(),p=CO[f];if(!p||!(p.kind&s))return;const E=d[2],v=ENt(p,E);v!=="fail"&&t.push({name:f,args:{arguments:v,range:u}})}function ENt(t,u){if(!u)return{};if(!t.args)return{};const s=u.trim().split(/\s+/),d={};for(let f=0;fnew(IQe||(IQe=Qd.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(MQe||(MQe=Qd.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(zQe||(zQe=Qd.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(PQe||(PQe=Qd.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(NQe||(NQe=Qd.getNodeConstructor()))(t,-1,-1)},a_=mV(1,Zce),RQe={166:function(u,s,d){return wi(s,u.left)||wi(s,u.right)},168:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.constraint)||wi(s,u.default)||wi(s,u.expression)},304:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.exclamationToken)||wi(s,u.equalsToken)||wi(s,u.objectAssignmentInitializer)},305:function(u,s,d){return wi(s,u.expression)},169:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.dotDotDotToken)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.type)||wi(s,u.initializer)},172:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.exclamationToken)||wi(s,u.type)||wi(s,u.initializer)},171:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.type)||wi(s,u.initializer)},303:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.exclamationToken)||wi(s,u.initializer)},260:function(u,s,d){return wi(s,u.name)||wi(s,u.exclamationToken)||wi(s,u.type)||wi(s,u.initializer)},208:function(u,s,d){return wi(s,u.dotDotDotToken)||wi(s,u.propertyName)||wi(s,u.name)||wi(s,u.initializer)},181:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)},185:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)},184:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)},179:EQe,180:EQe,174:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.asteriskToken)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.exclamationToken)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},173:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)},176:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},177:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},178:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},262:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.asteriskToken)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},218:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.asteriskToken)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},219:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.equalsGreaterThanToken)||wi(s,u.body)},175:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.body)},183:function(u,s,d){return wi(s,u.typeName)||Gr(s,d,u.typeArguments)},182:function(u,s,d){return wi(s,u.assertsModifier)||wi(s,u.parameterName)||wi(s,u.type)},186:function(u,s,d){return wi(s,u.exprName)||Gr(s,d,u.typeArguments)},187:function(u,s,d){return Gr(s,d,u.members)},188:function(u,s,d){return wi(s,u.elementType)},189:function(u,s,d){return Gr(s,d,u.elements)},192:_Qe,193:_Qe,194:function(u,s,d){return wi(s,u.checkType)||wi(s,u.extendsType)||wi(s,u.trueType)||wi(s,u.falseType)},195:function(u,s,d){return wi(s,u.typeParameter)},205:function(u,s,d){return wi(s,u.argument)||wi(s,u.attributes)||wi(s,u.qualifier)||Gr(s,d,u.typeArguments)},302:function(u,s,d){return wi(s,u.assertClause)},196:DQe,198:DQe,199:function(u,s,d){return wi(s,u.objectType)||wi(s,u.indexType)},200:function(u,s,d){return wi(s,u.readonlyToken)||wi(s,u.typeParameter)||wi(s,u.nameType)||wi(s,u.questionToken)||wi(s,u.type)||Gr(s,d,u.members)},201:function(u,s,d){return wi(s,u.literal)},202:function(u,s,d){return wi(s,u.dotDotDotToken)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.type)},206:xQe,207:xQe,209:function(u,s,d){return Gr(s,d,u.elements)},210:function(u,s,d){return Gr(s,d,u.properties)},211:function(u,s,d){return wi(s,u.expression)||wi(s,u.questionDotToken)||wi(s,u.name)},212:function(u,s,d){return wi(s,u.expression)||wi(s,u.questionDotToken)||wi(s,u.argumentExpression)},213:vQe,214:vQe,215:function(u,s,d){return wi(s,u.tag)||wi(s,u.questionDotToken)||Gr(s,d,u.typeArguments)||wi(s,u.template)},216:function(u,s,d){return wi(s,u.type)||wi(s,u.expression)},217:function(u,s,d){return wi(s,u.expression)},220:function(u,s,d){return wi(s,u.expression)},221:function(u,s,d){return wi(s,u.expression)},222:function(u,s,d){return wi(s,u.expression)},224:function(u,s,d){return wi(s,u.operand)},229:function(u,s,d){return wi(s,u.asteriskToken)||wi(s,u.expression)},223:function(u,s,d){return wi(s,u.expression)},225:function(u,s,d){return wi(s,u.operand)},226:function(u,s,d){return wi(s,u.left)||wi(s,u.operatorToken)||wi(s,u.right)},234:function(u,s,d){return wi(s,u.expression)||wi(s,u.type)},235:function(u,s,d){return wi(s,u.expression)},238:function(u,s,d){return wi(s,u.expression)||wi(s,u.type)},236:function(u,s,d){return wi(s,u.name)},227:function(u,s,d){return wi(s,u.condition)||wi(s,u.questionToken)||wi(s,u.whenTrue)||wi(s,u.colonToken)||wi(s,u.whenFalse)},230:function(u,s,d){return wi(s,u.expression)},241:CQe,268:CQe,312:function(u,s,d){return Gr(s,d,u.statements)||wi(s,u.endOfFileToken)},243:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.declarationList)},261:function(u,s,d){return Gr(s,d,u.declarations)},244:function(u,s,d){return wi(s,u.expression)},245:function(u,s,d){return wi(s,u.expression)||wi(s,u.thenStatement)||wi(s,u.elseStatement)},246:function(u,s,d){return wi(s,u.statement)||wi(s,u.expression)},247:function(u,s,d){return wi(s,u.expression)||wi(s,u.statement)},248:function(u,s,d){return wi(s,u.initializer)||wi(s,u.condition)||wi(s,u.incrementor)||wi(s,u.statement)},249:function(u,s,d){return wi(s,u.initializer)||wi(s,u.expression)||wi(s,u.statement)},250:function(u,s,d){return wi(s,u.awaitModifier)||wi(s,u.initializer)||wi(s,u.expression)||wi(s,u.statement)},251:bQe,252:bQe,253:function(u,s,d){return wi(s,u.expression)},254:function(u,s,d){return wi(s,u.expression)||wi(s,u.statement)},255:function(u,s,d){return wi(s,u.expression)||wi(s,u.caseBlock)},269:function(u,s,d){return Gr(s,d,u.clauses)},296:function(u,s,d){return wi(s,u.expression)||Gr(s,d,u.statements)},297:function(u,s,d){return Gr(s,d,u.statements)},256:function(u,s,d){return wi(s,u.label)||wi(s,u.statement)},257:function(u,s,d){return wi(s,u.expression)},258:function(u,s,d){return wi(s,u.tryBlock)||wi(s,u.catchClause)||wi(s,u.finallyBlock)},299:function(u,s,d){return wi(s,u.variableDeclaration)||wi(s,u.block)},170:function(u,s,d){return wi(s,u.expression)},263:yQe,231:yQe,264:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.heritageClauses)||Gr(s,d,u.members)},265:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||wi(s,u.type)},266:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.members)},306:function(u,s,d){return wi(s,u.name)||wi(s,u.initializer)},267:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.body)},271:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.moduleReference)},272:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.importClause)||wi(s,u.moduleSpecifier)||wi(s,u.attributes)},273:function(u,s,d){return wi(s,u.name)||wi(s,u.namedBindings)},300:function(u,s,d){return Gr(s,d,u.elements)},301:function(u,s,d){return wi(s,u.name)||wi(s,u.value)},270:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)},274:function(u,s,d){return wi(s,u.name)},280:function(u,s,d){return wi(s,u.name)},275:kQe,279:kQe,278:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.exportClause)||wi(s,u.moduleSpecifier)||wi(s,u.attributes)},276:FQe,281:FQe,277:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.expression)},228:function(u,s,d){return wi(s,u.head)||Gr(s,d,u.templateSpans)},239:function(u,s,d){return wi(s,u.expression)||wi(s,u.literal)},203:function(u,s,d){return wi(s,u.head)||Gr(s,d,u.templateSpans)},204:function(u,s,d){return wi(s,u.type)||wi(s,u.literal)},167:function(u,s,d){return wi(s,u.expression)},298:function(u,s,d){return Gr(s,d,u.types)},233:function(u,s,d){return wi(s,u.expression)||Gr(s,d,u.typeArguments)},283:function(u,s,d){return wi(s,u.expression)},282:function(u,s,d){return Gr(s,d,u.modifiers)},361:function(u,s,d){return Gr(s,d,u.elements)},284:function(u,s,d){return wi(s,u.openingElement)||Gr(s,d,u.children)||wi(s,u.closingElement)},288:function(u,s,d){return wi(s,u.openingFragment)||Gr(s,d,u.children)||wi(s,u.closingFragment)},285:AQe,286:AQe,292:function(u,s,d){return Gr(s,d,u.properties)},291:function(u,s,d){return wi(s,u.name)||wi(s,u.initializer)},293:function(u,s,d){return wi(s,u.expression)},294:function(u,s,d){return wi(s,u.dotDotDotToken)||wi(s,u.expression)},287:function(u,s,d){return wi(s,u.tagName)},295:function(u,s,d){return wi(s,u.namespace)||wi(s,u.name)},190:iM,191:iM,316:iM,322:iM,321:iM,323:iM,325:iM,324:function(u,s,d){return Gr(s,d,u.parameters)||wi(s,u.type)},327:function(u,s,d){return(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))||Gr(s,d,u.tags)},354:function(u,s,d){return wi(s,u.tagName)||wi(s,u.name)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},317:function(u,s,d){return wi(s,u.name)},318:function(u,s,d){return wi(s,u.left)||wi(s,u.right)},348:SQe,355:SQe,337:function(u,s,d){return wi(s,u.tagName)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},336:function(u,s,d){return wi(s,u.tagName)||wi(s,u.class)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},335:function(u,s,d){return wi(s,u.tagName)||wi(s,u.class)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},352:function(u,s,d){return wi(s,u.tagName)||wi(s,u.constraint)||Gr(s,d,u.typeParameters)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},353:function(u,s,d){return wi(s,u.tagName)||(u.typeExpression&&u.typeExpression.kind===316?wi(s,u.typeExpression)||wi(s,u.fullName)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment)):wi(s,u.fullName)||wi(s,u.typeExpression)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment)))},345:function(u,s,d){return wi(s,u.tagName)||wi(s,u.fullName)||wi(s,u.typeExpression)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},349:nM,351:nM,350:nM,347:nM,357:nM,356:nM,346:nM,330:function(u,s,d){return L(u.typeParameters,s)||L(u.parameters,s)||wi(s,u.type)},331:KFe,332:KFe,333:KFe,329:function(u,s,d){return L(u.jsDocPropertyTags,s)},334:OB,339:OB,340:OB,341:OB,342:OB,343:OB,338:OB,344:OB,360:fNt},(t=>{var u=YD(99,!0),s=40960,d,f,p,E,v;function b(he){return ht++,he}var B={createBaseSourceFileNode:he=>b(new v(he,0,0)),createBaseIdentifierNode:he=>b(new p(he,0,0)),createBasePrivateIdentifierNode:he=>b(new E(he,0,0)),createBaseTokenNode:he=>b(new f(he,0,0)),createBaseNode:he=>b(new d(he,0,0))},k=mV(11,B),{createNodeArray:T,createNumericLiteral:M,createStringLiteral:z,createLiteralLikeNode:j,createIdentifier:J,createPrivateIdentifier:K,createToken:Y,createArrayLiteralExpression:oe,createObjectLiteralExpression:se,createPropertyAccessExpression:ge,createPropertyAccessChain:ae,createElementAccessExpression:Ce,createElementAccessChain:ne,createCallExpression:ve,createCallChain:Se,createNewExpression:Ne,createParenthesizedExpression:pe,createBlock:fe,createVariableStatement:xe,createExpressionStatement:Be,createIfStatement:Ge,createWhileStatement:Ae,createForStatement:De,createForOfStatement:Ke,createVariableDeclaration:Je,createVariableDeclarationList:ft}=k,Ye,Ve,We,Gt,Yt,Ie,st,St,It,ei,ht,Ut,Ni,ji,xn,Jn,an=!0,Pi=!1;function Ai(he,Re,nt,Nt,bi=!1,en,zu,Hr=0){var Lr;if(en=oZ(he,en),en===6){const fa=aa(he,Re,nt,Nt,bi);return $V(fa,(Lr=fa.statements[0])==null?void 0:Lr.expression,fa.parseDiagnostics,!1,void 0),fa.referencedFiles=_t,fa.typeReferenceDirectives=_t,fa.libReferenceDirectives=_t,fa.amdDependencies=_t,fa.hasNoDefaultLib=!1,fa.pragmas=iU,fa}yr(he,Re,nt,Nt,en,Hr);const gr=bt(nt,bi,en,zu||wQe,Hr);return Ba(),gr}t.parseSourceFile=Ai;function Zu(he,Re){yr("",he,Re,void 0,1,0),ct();const nt=Ee(!0),Nt=X()===1&&!st.length;return Ba(),Nt?nt:void 0}t.parseIsolatedEntityName=Zu;function aa(he,Re,nt=2,Nt,bi=!1){yr(he,Re,nt,Nt,6,0),Ve=Jn,ct();const en=de();let zu,Hr;if(X()===1)zu=Ka([],en,en),Hr=Tc();else{let fa;for(;X()!==1;){let Ws;switch(X()){case 23:Ws=hD();break;case 112:case 97:case 106:Ws=Tc();break;case 41:wn(()=>ct()===9&&ct()!==59)?Ws=pE():Ws=dC();break;case 9:case 11:if(wn(()=>ct()!==59)){Ws=ir();break}default:Ws=dC();break}fa&&Ha(fa)?fa.push(Ws):fa?fa=[fa,Ws]:(fa=Ws,X()!==1&&Qi(F.Unexpected_token))}const _0=Ha(fa)?Ri(oe(fa),en):H.checkDefined(fa),qs=Be(_0);Ri(qs,en),zu=Ka([qs],en),Hr=Y0(1,F.Unexpected_token)}const Lr=Cn(he,2,6,!1,zu,Hr,Ve,Is);bi&&Dn(Lr),Lr.nodeCount=ht,Lr.identifierCount=Ni,Lr.identifiers=Ut,Lr.parseDiagnostics=v7(st,Lr),St&&(Lr.jsDocDiagnostics=v7(St,Lr));const gr=Lr;return Ba(),gr}t.parseJsonText=aa;function yr(he,Re,nt,Nt,bi,en){switch(d=Qd.getNodeConstructor(),f=Qd.getTokenConstructor(),p=Qd.getIdentifierConstructor(),E=Qd.getPrivateIdentifierConstructor(),v=Qd.getSourceFileConstructor(),Ye=$o(he),We=Re,Gt=nt,It=Nt,Yt=bi,Ie=Yj(bi),st=[],ji=0,Ut=new Map,Ni=0,ht=0,Ve=0,an=!0,Yt){case 1:case 2:Jn=524288;break;case 6:Jn=134742016;break;default:Jn=0;break}Pi=!1,u.setText(We),u.setOnError(we),u.setScriptTarget(Gt),u.setLanguageVariant(Ie),u.setScriptKind(Yt),u.setJSDocParsingMode(en)}function Ba(){u.clearCommentDirectives(),u.setText(""),u.setOnError(void 0),u.setScriptKind(0),u.setJSDocParsingMode(0),We=void 0,Gt=void 0,It=void 0,Yt=void 0,Ie=void 0,Ve=0,st=void 0,St=void 0,ji=0,Ut=void 0,xn=void 0,an=!0}function bt(he,Re,nt,Nt,bi){const en=e1(Ye);en&&(Jn|=33554432),Ve=Jn,ct();const zu=To(0,qm);H.assert(X()===1);const Hr=je(),Lr=Ln(Tc(),Hr),gr=Cn(Ye,he,nt,en,zu,Lr,Ve,Nt);return Uce(gr,We),qce(gr,fa),gr.commentDirectives=u.getCommentDirectives(),gr.nodeCount=ht,gr.identifierCount=Ni,gr.identifiers=Ut,gr.parseDiagnostics=v7(st,gr),gr.jsDocParsingMode=bi,St&&(gr.jsDocDiagnostics=v7(St,gr)),Re&&Dn(gr),gr;function fa(_0,qs,Ws){st.push(hB(Ye,We,_0,qs,Ws))}}let jn=!1;function Ln(he,Re){if(!Re)return he;H.assert(!he.jsDoc);const nt=qi(k0e(he,We),Nt=>YK.parseJSDocComment(he,Nt.pos,Nt.end-Nt.pos));return nt.length&&(he.jsDoc=nt),jn&&(jn=!1,he.flags|=536870912),he}function Si(he){const Re=It,nt=Yce.createSyntaxCursor(he);It={currentNode:fa};const Nt=[],bi=st;st=[];let en=0,zu=Lr(he.statements,0);for(;zu!==-1;){const _0=he.statements[en],qs=he.statements[zu];yn(Nt,he.statements,en,zu),en=gr(he.statements,zu);const Ws=Ue(bi,qp=>qp.start>=_0.pos),v4=Ws>=0?Ue(bi,qp=>qp.start>=qs.pos,Ws):-1;Ws>=0&&yn(st,bi,Ws,v4>=0?v4:void 0),ja(()=>{const qp=Jn;for(Jn|=65536,u.resetTokenState(qs.pos),ct();X()!==1;){const f6=u.getTokenFullStart(),b3=nc(0,qm);if(Nt.push(b3),f6===u.getTokenFullStart()&&ct(),en>=0){const Vd=he.statements[en];if(b3.end===Vd.pos)break;b3.end>Vd.pos&&(en=gr(he.statements,en+1))}}Jn=qp},2),zu=en>=0?Lr(he.statements,en):-1}if(en>=0){const _0=he.statements[en];yn(Nt,he.statements,en);const qs=Ue(bi,Ws=>Ws.start>=_0.pos);qs>=0&&yn(st,bi,qs)}return It=Re,k.updateSourceFile(he,Pt(T(Nt),he.statements));function Hr(_0){return!(_0.flags&65536)&&!!(_0.transformFlags&67108864)}function Lr(_0,qs){for(let Ws=qs;Ws<_0.length;Ws++)if(Hr(_0[Ws]))return Ws;return-1}function gr(_0,qs){for(let Ws=qs;Ws<_0.length;Ws++)if(!Hr(_0[Ws]))return Ws;return-1}function fa(_0){const qs=nt.currentNode(_0);return an&&qs&&Hr(qs)&&(qs.intersectsChange=!0),qs}}function Dn(he){Vx(he,!0)}t.fixupParentReferences=Dn;function Cn(he,Re,nt,Nt,bi,en,zu,Hr){let Lr=k.createSourceFile(bi,en,zu);return wP(Lr,0,We.length),gr(Lr),!Nt&&wc(Lr)&&Lr.transformFlags&67108864&&(Lr=Si(Lr),gr(Lr)),Lr;function gr(fa){fa.text=We,fa.bindDiagnostics=[],fa.bindSuggestionDiagnostics=void 0,fa.languageVersion=Re,fa.fileName=he,fa.languageVariant=Yj(nt),fa.isDeclarationFile=Nt,fa.scriptKind=nt,Hr(fa),fa.setExternalModuleIndicator=Hr}}function tu(he,Re){he?Jn|=Re:Jn&=~Re}function oa(he){tu(he,8192)}function Da(he){tu(he,16384)}function ua(he){tu(he,32768)}function Ta(he){tu(he,65536)}function Yo(he,Re){const nt=he&Jn;if(nt){tu(!1,nt);const Nt=Re();return tu(!0,nt),Nt}return Re()}function bo(he,Re){const nt=he&~Jn;if(nt){tu(!0,nt);const Nt=Re();return tu(!1,nt),Nt}return Re()}function Qe(he){return Yo(8192,he)}function Et(he){return bo(8192,he)}function Mt(he){return Yo(131072,he)}function qt(he){return bo(131072,he)}function Xt(he){return bo(16384,he)}function Pe(he){return bo(32768,he)}function et(he){return bo(65536,he)}function gt(he){return Yo(65536,he)}function ii(he){return bo(81920,he)}function me(he){return Yo(81920,he)}function ni(he){return(Jn&he)!==0}function vi(){return ni(16384)}function mt(){return ni(8192)}function Ot(){return ni(131072)}function Ei(){return ni(32768)}function $i(){return ni(65536)}function Qi(he,...Re){return le(u.getTokenStart(),u.getTokenEnd(),he,...Re)}function on(he,Re,nt,...Nt){const bi=qu(st);let en;return(!bi||he!==bi.start)&&(en=hB(Ye,We,he,Re,nt,...Nt),st.push(en)),Pi=!0,en}function le(he,Re,nt,...Nt){return on(he,Re-he,nt,...Nt)}function te(he,Re,...nt){le(he.pos,he.end,Re,...nt)}function we(he,Re,nt){on(u.getTokenEnd(),Re,he,nt)}function de(){return u.getTokenFullStart()}function je(){return u.hasPrecedingJSDocComment()}function X(){return ei}function it(){return ei=u.scan()}function Ct(he){return ct(),he()}function ct(){return uf(ei)&&(u.hasUnicodeEscape()||u.hasExtendedUnicodeEscape())&&le(u.getTokenStart(),u.getTokenEnd(),F.Keywords_cannot_contain_escape_characters),it()}function Qt(){return ei=u.scanJsDocToken()}function Li(he){return ei=u.scanJSDocCommentTextToken(he)}function Ui(){return ei=u.reScanGreaterToken()}function Sn(){return ei=u.reScanSlashToken()}function du(he){return ei=u.reScanTemplateToken(he)}function Ru(){return ei=u.reScanLessThanToken()}function pr(){return ei=u.reScanHashToken()}function Xu(){return ei=u.scanJsxIdentifier()}function ca(){return ei=u.scanJsxToken()}function Ku(){return ei=u.scanJsxAttributeValue()}function ja(he,Re){const nt=ei,Nt=st.length,bi=Pi,en=Jn,zu=Re!==0?u.lookAhead(he):u.tryScan(he);return H.assert(en===Jn),(!zu||Re!==0)&&(ei=nt,Re!==2&&(st.length=Nt),Pi=bi),zu}function wn(he){return ja(he,1)}function Ir(he){return ja(he,0)}function as(){return X()===80?!0:X()>118}function wo(){return X()===80?!0:X()===127&&vi()||X()===135&&$i()?!1:X()>118}function Fn(he,Re,nt=!0){return X()===he?(nt&&ct(),!0):(Re?Qi(Re):Qi(F._0_expected,Uo(he)),!1)}const vc=Object.keys(MO).filter(he=>he.length>2);function Ya(he){if(Dk(he)){le(gs(We,he.template.pos),he.template.end,F.Module_declaration_names_may_only_use_or_quoted_strings);return}const Re=at(he)?fu(he):void 0;if(!Re||!Lm(Re,Gt)){Qi(F._0_expected,Uo(27));return}const nt=gs(We,he.pos);switch(Re){case"const":case"let":case"var":le(nt,he.end,F.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":c0(F.Interface_name_cannot_be_0,F.Interface_must_be_given_a_name,19);return;case"is":le(nt,u.getTokenStart(),F.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":c0(F.Namespace_name_cannot_be_0,F.Namespace_must_be_given_a_name,19);return;case"type":c0(F.Type_alias_name_cannot_be_0,F.Type_alias_must_be_given_a_name,64);return}const Nt=bN(Re,vc,bi=>bi)??Ul(Re);if(Nt){le(nt,he.end,F.Unknown_keyword_or_identifier_Did_you_mean_0,Nt);return}X()!==0&&le(nt,he.end,F.Unexpected_keyword_or_identifier)}function c0(he,Re,nt){X()===nt?Qi(Re):Qi(he,u.getTokenValue())}function Ul(he){for(const Re of vc)if(he.length>Re.length+2&&Pa(he,Re))return`${Re} ${he.slice(Re.length)}`}function wl(he,Re,nt){if(X()===60&&!u.hasPrecedingLineBreak()){Qi(F.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(X()===21){Qi(F.Cannot_start_a_function_call_in_a_type_annotation),ct();return}if(Re&&!Lc()){nt?Qi(F._0_expected,Uo(27)):Qi(F.Expected_for_property_initializer);return}if(!Il()){if(nt){Qi(F._0_expected,Uo(27));return}Ya(he)}}function hd(he){return X()===he?(Qt(),!0):(H.assert(Sq(he)),Qi(F._0_expected,Uo(he)),!1)}function vl(he,Re,nt,Nt){if(X()===Re){ct();return}const bi=Qi(F._0_expected,Uo(Re));nt&&bi&&Es(bi,hB(Ye,We,Nt,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Uo(he),Uo(Re)))}function co(he){return X()===he?(ct(),!0):!1}function Ho(he){if(X()===he)return Tc()}function id(he){if(X()===he)return Jp()}function Y0(he,Re,nt){return Ho(he)||dl(he,!1,Re||F._0_expected,nt||Uo(he))}function Ko(he){const Re=id(he);return Re||(H.assert(Sq(he)),dl(he,!1,F._0_expected,Uo(he)))}function Tc(){const he=de(),Re=X();return ct(),Ri(Y(Re),he)}function Jp(){const he=de(),Re=X();return Qt(),Ri(Y(Re),he)}function Lc(){return X()===27?!0:X()===20||X()===1||u.hasPrecedingLineBreak()}function Il(){return Lc()?(X()===27&&ct(),!0):!1}function cl(){return Il()||Fn(27)}function Ka(he,Re,nt,Nt){const bi=T(he,Nt);return t_(bi,Re,nt??u.getTokenFullStart()),bi}function Ri(he,Re,nt){return t_(he,Re,nt??u.getTokenFullStart()),Jn&&(he.flags|=Jn),Pi&&(Pi=!1,he.flags|=262144),he}function dl(he,Re,nt,...Nt){Re?on(u.getTokenFullStart(),0,nt,...Nt):nt&&Qi(nt,...Nt);const bi=de(),en=he===80?J("",void 0):Bx(he)?k.createTemplateLiteralLikeNode(he,"","",void 0):he===9?M("",void 0):he===11?z("",void 0):he===282?k.createMissingDeclaration():Y(he);return Ri(en,bi)}function Uc(he){let Re=Ut.get(he);return Re===void 0&&Ut.set(he,Re=he),Re}function Ch(he,Re,nt){if(he){Ni++;const Hr=de(),Lr=X(),gr=Uc(u.getTokenValue()),fa=u.hasExtendedUnicodeEscape();return it(),Ri(J(gr,Lr,fa),Hr)}if(X()===81)return Qi(nt||F.Private_identifiers_are_not_allowed_outside_class_bodies),Ch(!0);if(X()===0&&u.tryScan(()=>u.reScanInvalidIdentifier()===80))return Ch(!0);Ni++;const Nt=X()===1,bi=u.isReservedWord(),en=u.getTokenText(),zu=bi?F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:F.Identifier_expected;return dl(80,Nt,Re||zu,en)}function sf(he){return Ch(as(),void 0,he)}function Q0(he,Re){return Ch(wo(),he,Re)}function Cc(he){return Ch(fh(X()),he)}function $(){return(u.hasUnicodeEscape()||u.hasExtendedUnicodeEscape())&&Qi(F.Unicode_escape_sequence_cannot_appear_here),Ch(fh(X()))}function tt(){return fh(X())||X()===11||X()===9}function vt(){return fh(X())||X()===11}function mi(he){if(X()===11||X()===9){const Re=ir();return Re.text=Uc(Re.text),Re}return he&&X()===23?Wu():X()===81?uu():Cc()}function fn(){return mi(!0)}function Wu(){const he=de();Fn(23);const Re=Qe(i1);return Fn(24),Ri(k.createComputedPropertyName(Re),he)}function uu(){const he=de(),Re=K(Uc(u.getTokenValue()));return ct(),Ri(Re,he)}function Tu(he){return X()===he&&Ir(Vu)}function Nr(){return ct(),u.hasPrecedingLineBreak()?!1:S0()}function Vu(){switch(X()){case 87:return ct()===94;case 95:return ct(),X()===90?wn(ud):X()===156?wn(ic):Ss();case 90:return ud();case 126:case 139:case 153:return ct(),S0();default:return Nr()}}function Ss(){return X()===60||X()!==42&&X()!==130&&X()!==19&&S0()}function ic(){return ct(),Ss()}function nd(){return XD(X())&&Ir(Vu)}function S0(){return X()===23||X()===19||X()===42||X()===26||tt()}function ud(){return ct(),X()===86||X()===100||X()===120||X()===60||X()===128&&wn(Hw)||X()===134&&wn(R0)}function m0(he,Re){if(fc(he))return!0;switch(he){case 0:case 1:case 3:return!(X()===27&&Re)&&L9();case 2:return X()===84||X()===90;case 4:return wn(t6);case 5:return wn(N5)||X()===27&&!Re;case 6:return X()===23||tt();case 12:switch(X()){case 23:case 42:case 26:case 25:return!0;default:return tt()}case 18:return tt();case 9:return X()===23||X()===26||tt();case 24:return vt();case 7:return X()===19?wn(Bd):Re?wo()&&!D1():A5()&&!D1();case 8:return Ks();case 10:return X()===28||X()===26||Ks();case 19:return X()===103||X()===87||wo();case 15:switch(X()){case 28:case 25:return!0}case 11:return X()===26||f3();case 16:return Dt(!1);case 17:return Dt(!0);case 20:case 21:return X()===28||fE();case 22:return R();case 23:return X()===161&&wn(M9)?!1:fh(X());case 13:return fh(X())||X()===19;case 14:return!0;case 25:return!0;case 26:return H.fail("ParsingContext.Count used as a context");default:H.assertNever(he,"Non-exhaustive case in 'isListElement'.")}}function Bd(){if(H.assert(X()===19),ct()===20){const he=ct();return he===28||he===19||he===96||he===119}return!0}function Oh(){return ct(),wo()}function uh(){return ct(),fh(X())}function h4(){return ct(),b2e(X())}function D1(){return X()===119||X()===96?wn(He):!1}function He(){return ct(),f3()}function di(){return ct(),fE()}function Mn(he){if(X()===1)return!0;switch(he){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return X()===20;case 3:return X()===20||X()===84||X()===90;case 7:return X()===19||X()===96||X()===119;case 8:return ba();case 19:return X()===32||X()===21||X()===19||X()===96||X()===119;case 11:return X()===22||X()===27;case 15:case 21:case 10:return X()===24;case 17:case 16:case 18:return X()===22||X()===24;case 20:return X()!==28;case 22:return X()===19||X()===20;case 13:return X()===32||X()===44;case 14:return X()===30&&wn(gn);default:return!1}}function ba(){return!!(Lc()||tF(X())||X()===39)}function Fo(){H.assert(ji,"Missing parsing context");for(let he=0;he<26;he++)if(ji&1<=0)}function d3(he){return he===6?F.An_enum_member_name_must_be_followed_by_a_or:void 0}function Wf(){const he=Ka([],de());return he.isMissingList=!0,he}function m4(he){return!!he.isMissingList}function Vh(he,Re,nt,Nt){if(Fn(nt)){const bi=R1(he,Re);return Fn(Nt),bi}return Wf()}function Ee(he,Re){const nt=de();let Nt=he?Cc(Re):Q0(Re);for(;co(25)&&X()!==30;)Nt=Ri(k.createQualifiedName(Nt,Di(he,!1,!0)),nt);return Nt}function Bt(he,Re){return Ri(k.createQualifiedName(he,Re),he.pos)}function Di(he,Re,nt){if(u.hasPrecedingLineBreak()&&fh(X())&&wn(a6))return dl(80,!0,F.Identifier_expected);if(X()===81){const Nt=uu();return Re?Nt:dl(80,!0,F.Identifier_expected)}return he?nt?Cc():$():Q0()}function Ci(he){const Re=de(),nt=[];let Nt;do Nt=tr(he),nt.push(Nt);while(Nt.literal.kind===17);return Ka(nt,Re)}function Q(he){const Re=de();return Ri(k.createTemplateExpression(ha(he),Ci(he)),Re)}function Me(){const he=de();return Ri(k.createTemplateLiteralType(ha(!1),wt()),he)}function wt(){const he=de(),Re=[];let nt;do nt=ki(),Re.push(nt);while(nt.literal.kind===17);return Ka(Re,he)}function ki(){const he=de();return Ri(k.createTemplateLiteralTypeSpan(jd(),In(!1)),he)}function In(he){return X()===20?(du(he),os()):Y0(18,F._0_expected,Uo(20))}function tr(he){const Re=de();return Ri(k.createTemplateSpan(Qe(i1),In(he)),Re)}function ir(){return Rl(X())}function ha(he){!he&&u.getTokenFlags()&26656&&du(!1);const Re=Rl(X());return H.assert(Re.kind===16,"Template head has wrong token kind"),Re}function os(){const he=Rl(X());return H.assert(he.kind===17||he.kind===18,"Template fragment has wrong token kind"),he}function ss(he){const Re=he===15||he===18,nt=u.getTokenText();return nt.substring(1,nt.length-(u.isUnterminated()?0:Re?1:2))}function Rl(he){const Re=de(),nt=Bx(he)?k.createTemplateLiteralLikeNode(he,u.getTokenValue(),ss(he),u.getTokenFlags()&7176):he===9?M(u.getTokenValue(),u.getNumericLiteralFlags()):he===11?z(u.getTokenValue(),void 0,u.hasExtendedUnicodeEscape()):jN(he)?j(he,u.getTokenValue()):H.fail();return u.hasExtendedUnicodeEscape()&&(nt.hasExtendedUnicodeEscape=!0),u.isUnterminated()&&(nt.isUnterminated=!0),ct(),Ri(nt,Re)}function x1(){return Ee(!0,F.Type_expected)}function fd(){if(!u.hasPrecedingLineBreak()&&Ru()===30)return Vh(20,jd,30,32)}function $m(){const he=de();return Ri(k.createTypeReferenceNode(x1(),fd()),he)}function _s(he){switch(he.kind){case 183:return Ql(he.typeName);case 184:case 185:{const{parameters:Re,type:nt}=he;return m4(Re)||_s(nt)}case 196:return _s(he.type);default:return!1}}function np(he){return ct(),Ri(k.createTypePredicateNode(void 0,he,jd()),he.pos)}function Um(){const he=de();return ct(),Ri(k.createThisTypeNode(),he)}function h3(){const he=de();return ct(),Ri(k.createJSDocAllType(),he)}function d_(){const he=de();return ct(),Ri(k.createJSDocNonNullableType(hb(),!1),he)}function ta(){const he=de();return ct(),X()===28||X()===20||X()===22||X()===32||X()===64||X()===52?Ri(k.createJSDocUnknownType(),he):Ri(k.createJSDocNullableType(jd(),!1),he)}function Xx(){const he=de(),Re=je();if(wn(Fr)){ct();const nt=bu(36),Nt=bn(59,!1);return Ln(Ri(k.createJSDocFunctionType(nt,Nt),he),Re)}return Ri(k.createTypeReferenceNode(Cc(),void 0),he)}function e6(){const he=de();let Re;return(X()===110||X()===105)&&(Re=Cc(),Fn(59)),Ri(k.createParameterDeclaration(void 0,void 0,Re,void 0,bg(),void 0),he)}function bg(){u.setInJSDocType(!0);const he=de();if(co(144)){const Nt=k.createJSDocNamepathType(void 0);e:for(;;)switch(X()){case 20:case 1:case 28:case 5:break e;default:Qt()}return u.setInJSDocType(!1),Ri(Nt,he)}const Re=co(26);let nt=uC();return u.setInJSDocType(!1),Re&&(nt=Ri(k.createJSDocVariadicType(nt),he)),X()===64?(ct(),Ri(k.createJSDocOptionalType(nt),he)):nt}function sb(){const he=de();Fn(114);const Re=Ee(!0),nt=u.hasPrecedingLineBreak()?void 0:d6();return Ri(k.createTypeQueryNode(Re,nt),he)}function b5(){const he=de(),Re=j1(!1,!0),nt=Q0();let Nt,bi;co(96)&&(fE()||!f3()?Nt=jd():bi=uc());const en=co(64)?jd():void 0,zu=k.createTypeParameterDeclaration(Re,nt,Nt,en);return zu.expression=bi,Ri(zu,he)}function Xe(){if(X()===30)return Vh(19,b5,30,32)}function Dt(he){return X()===26||Ks()||XD(X())||X()===60||fE(!he)}function oi(he){const Re=_u(F.Private_identifiers_cannot_be_used_as_parameters);return ij(Re)===0&&!Oe(he)&&XD(X())&&ct(),Re}function Ti(){return as()||X()===23||X()===19}function Xi(he){return tn(he)}function Rn(he){return tn(he,!1)}function tn(he,Re=!0){const nt=de(),Nt=je(),bi=he?et(()=>j1(!0)):gt(()=>j1(!0));if(X()===110){const Lr=k.createParameterDeclaration(bi,void 0,Ch(!0),void 0,F5(),void 0),gr=Ki(bi);return gr&&te(gr,F.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ln(Ri(Lr,nt),Nt)}const en=an;an=!1;const zu=Ho(26);if(!Re&&!Ti())return;const Hr=Ln(Ri(k.createParameterDeclaration(bi,zu,oi(bi),Ho(58),F5(),g4()),nt),Nt);return an=en,Hr}function bn(he,Re){if(kr(he,Re))return Mt(uC)}function kr(he,Re){return he===39?(Fn(he),!0):co(59)?!0:Re&&X()===39?(Qi(F._0_expected,Uo(59)),ct(),!0):!1}function Cu(he,Re){const nt=vi(),Nt=$i();Da(!!(he&1)),Ta(!!(he&2));const bi=he&32?R1(17,e6):R1(16,()=>Re?Xi(Nt):Rn(Nt));return Da(nt),Ta(Nt),bi}function bu(he){if(!Fn(21))return Wf();const Re=Cu(he,!0);return Fn(22),Re}function Eu(){co(28)||cl()}function sa(he){const Re=de(),nt=je();he===180&&Fn(105);const Nt=Xe(),bi=bu(4),en=bn(59,!0);Eu();const zu=he===179?k.createCallSignature(Nt,bi,en):k.createConstructSignature(Nt,bi,en);return Ln(Ri(zu,Re),nt)}function p0(){return X()===23&&wn(o0)}function o0(){if(ct(),X()===26||X()===24)return!0;if(XD(X())){if(ct(),wo())return!0}else if(wo())ct();else return!1;return X()===59||X()===28?!0:X()!==58?!1:(ct(),X()===59||X()===28||X()===24)}function Gf(he,Re,nt){const Nt=Vh(16,()=>Xi(!1),23,24),bi=F5();Eu();const en=k.createIndexSignature(nt,Nt,bi);return Ln(Ri(en,he),Re)}function eC(he,Re,nt){const Nt=fn(),bi=Ho(58);let en;if(X()===21||X()===30){const zu=Xe(),Hr=bu(4),Lr=bn(59,!0);en=k.createMethodSignature(nt,Nt,bi,zu,Hr,Lr)}else{const zu=F5();en=k.createPropertySignature(nt,Nt,bi,zu),X()===64&&(en.initializer=g4())}return Eu(),Ln(Ri(en,he),Re)}function t6(){if(X()===21||X()===30||X()===139||X()===153)return!0;let he=!1;for(;XD(X());)he=!0,ct();return X()===23?!0:(tt()&&(he=!0,ct()),he?X()===21||X()===30||X()===58||X()===59||X()===28||Lc():!1)}function cD(){if(X()===21||X()===30)return sa(179);if(X()===105&&wn(i6))return sa(180);const he=de(),Re=je(),nt=j1(!1);return Tu(139)?lp(he,Re,nt,177,4):Tu(153)?lp(he,Re,nt,178,4):p0()?Gf(he,Re,nt):eC(he,Re,nt)}function i6(){return ct(),X()===21||X()===30}function Gk(){return ct()===25}function lb(){switch(ct()){case 21:case 30:case 25:return!0}return!1}function Jk(){const he=de();return Ri(k.createTypeLiteralNode($k()),he)}function $k(){let he;return Fn(19)?(he=To(4,cD),Fn(20)):he=Wf(),he}function az(){return ct(),X()===40||X()===41?ct()===148:(X()===148&&ct(),X()===23&&Oh()&&ct()===103)}function D9(){const he=de(),Re=Cc();Fn(103);const nt=jd();return Ri(k.createTypeParameterDeclaration(void 0,Re,nt,void 0),he)}function ww(){const he=de();Fn(19);let Re;(X()===148||X()===40||X()===41)&&(Re=Tc(),Re.kind!==148&&Fn(148)),Fn(23);const nt=D9(),Nt=co(130)?jd():void 0;Fn(24);let bi;(X()===58||X()===40||X()===41)&&(bi=Tc(),bi.kind!==58&&Fn(58));const en=F5();cl();const zu=To(4,cD);return Fn(20),Ri(k.createMappedTypeNode(Re,nt,Nt,bi,en,zu),he)}function tC(){const he=de();if(co(26))return Ri(k.createRestTypeNode(jd()),he);const Re=jd();if(wB(Re)&&Re.pos===Re.type.pos){const nt=k.createOptionalTypeNode(Re.type);return Pt(nt,Re),nt.flags=Re.flags,nt}return Re}function x9(){return ct()===59||X()===58&&ct()===59}function v9(){return X()===26?fh(ct())&&x9():fh(X())&&x9()}function Tw(){if(wn(v9)){const he=de(),Re=je(),nt=Ho(26),Nt=Cc(),bi=Ho(58);Fn(59);const en=tC(),zu=k.createNamedTupleMember(nt,Nt,bi,en);return Ln(Ri(zu,he),Re)}return tC()}function Uk(){const he=de();return Ri(k.createTupleTypeNode(Vh(21,Tw,23,24)),he)}function Lw(){const he=de();Fn(21);const Re=jd();return Fn(22),Ri(k.createParenthesizedType(Re),he)}function C9(){let he;if(X()===128){const Re=de();ct();const nt=Ri(Y(128),Re);he=Ka([nt],Re)}return he}function b9(){const he=de(),Re=je(),nt=C9(),Nt=co(105);H.assert(!nt||Nt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const bi=Xe(),en=bu(4),zu=bn(39,!1),Hr=Nt?k.createConstructorTypeNode(nt,bi,en,zu):k.createFunctionTypeNode(bi,en,zu);return Ln(Ri(Hr,he),Re)}function qk(){const he=Tc();return X()===25?void 0:he}function cb(he){const Re=de();he&&ct();let nt=X()===112||X()===97||X()===106?Tc():Rl(X());return he&&(nt=Ri(k.createPrefixUnaryExpression(41,nt),Re)),Ri(k.createLiteralTypeNode(nt),Re)}function db(){return ct(),X()===102}function iC(){Ve|=4194304;const he=de(),Re=co(114);Fn(102),Fn(21);const nt=jd();let Nt;if(co(28)){const zu=u.getTokenStart();Fn(19);const Hr=X();if(Hr===118||Hr===132?ct():Qi(F._0_expected,Uo(118)),Fn(59),Nt=DC(Hr,!0),!Fn(20)){const Lr=qu(st);Lr&&Lr.code===F._0_expected.code&&Es(Lr,hB(Ye,We,zu,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Fn(22);const bi=co(25)?x1():void 0,en=fd();return Ri(k.createImportTypeNode(nt,Nt,bi,en,Re),he)}function y5(){return ct(),X()===9||X()===10}function hb(){switch(X()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ir(qk)||$m();case 67:u.reScanAsteriskEqualsToken();case 42:return h3();case 61:u.reScanQuestionToken();case 58:return ta();case 100:return Xx();case 54:return d_();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return cb();case 41:return wn(y5)?cb(!0):$m();case 116:return Tc();case 110:{const he=Um();return X()===142&&!u.hasPrecedingLineBreak()?np(he):he}case 114:return wn(db)?iC():sb();case 19:return wn(az)?ww():Jk();case 23:return Uk();case 21:return Lw();case 102:return iC();case 131:return wn(a6)?rC():$m();case 16:return Me();default:return $m()}}function fE(he){switch(X()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!he;case 41:return!he&&wn(y5);case 21:return!he&&wn(Vs);default:return wo()}}function Vs(){return ct(),X()===22||Dt(!1)||fE()}function Zk(){const he=de();let Re=hb();for(;!u.hasPrecedingLineBreak();)switch(X()){case 54:ct(),Re=Ri(k.createJSDocNonNullableType(Re,!0),he);break;case 58:if(wn(di))return Re;ct(),Re=Ri(k.createJSDocNullableType(Re,!0),he);break;case 23:if(Fn(23),fE()){const nt=jd();Fn(24),Re=Ri(k.createIndexedAccessTypeNode(Re,nt),he)}else Fn(24),Re=Ri(k.createArrayTypeNode(Re),he);break;default:return Re}return Re}function Nw(he){const Re=de();return Fn(he),Ri(k.createTypeOperatorNode(he,p4()),Re)}function n6(){if(co(96)){const he=qt(jd);if(Ot()||X()!==58)return he}}function k5(){const he=de(),Re=Q0(),nt=Ir(n6),Nt=k.createTypeParameterDeclaration(void 0,Re,nt);return Ri(Nt,he)}function h_(){const he=de();return Fn(140),Ri(k.createInferTypeNode(k5()),he)}function p4(){const he=X();switch(he){case 143:case 158:case 148:return Nw(he);case 140:return h_()}return Mt(Zk)}function Jf(he){if(y9()){const Re=b9();let nt;return u3(Re)?nt=he?F.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:F.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:nt=he?F.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:F.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,te(Re,nt),Re}}function Hh(he,Re,nt){const Nt=de(),bi=he===52,en=co(he);let zu=en&&Jf(bi)||Re();if(X()===he||en){const Hr=[zu];for(;co(he);)Hr.push(Jf(bi)||Re());zu=Ri(nt(Ka(Hr,Nt)),Nt)}return zu}function Em(){return Hh(51,p4,k.createIntersectionTypeNode)}function nC(){return Hh(52,Em,k.createUnionTypeNode)}function Pw(){return ct(),X()===105}function y9(){return X()===30||X()===21&&wn(fb)?!0:X()===105||X()===128&&wn(Pw)}function Yk(){if(XD(X())&&j1(!1),wo()||X()===110)return ct(),!0;if(X()===23||X()===19){const he=st.length;return _u(),he===st.length}return!1}function fb(){return ct(),!!(X()===22||X()===26||Yk()&&(X()===59||X()===28||X()===58||X()===64||X()===22&&(ct(),X()===39)))}function uC(){const he=de(),Re=wo()&&Ir(Qk),nt=jd();return Re?Ri(k.createTypePredicateNode(void 0,Re,nt),he):nt}function Qk(){const he=Q0();if(X()===142&&!u.hasPrecedingLineBreak())return ct(),he}function rC(){const he=de(),Re=Y0(131),nt=X()===110?Um():Q0(),Nt=co(142)?jd():void 0;return Ri(k.createTypePredicateNode(Re,nt,Nt),he)}function jd(){if(Jn&81920)return Yo(81920,jd);if(y9())return b9();const he=de(),Re=nC();if(!Ot()&&!u.hasPrecedingLineBreak()&&co(96)){const nt=qt(jd);Fn(58);const Nt=Mt(jd);Fn(59);const bi=Mt(jd);return Ri(k.createConditionalTypeNode(Re,nt,Nt,bi),he)}return Re}function F5(){return co(59)?jd():void 0}function A5(){switch(X()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return wn(lb);default:return wo()}}function f3(){if(A5())return!0;switch(X()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return iF()?!0:wo()}}function pt(){return X()!==19&&X()!==100&&X()!==86&&X()!==60&&f3()}function i1(){const he=Ei();he&&ua(!1);const Re=de();let nt=bh(!0),Nt;for(;Nt=Ho(28);)nt=Ur(nt,Nt,bh(!0),Re);return he&&ua(!0),nt}function g4(){return co(64)?bh(!0):void 0}function bh(he){if(Mw())return aC();const Re=oz(he)||eF(he);if(Re)return Re;const nt=de(),Nt=je(),bi=p3(0);return bi.kind===80&&X()===39?m3(nt,bi,he,Nt,void 0):Df(bi)&&u5(Ui())?Ur(bi,Tc(),bh(he),nt):kg(bi,nt,he)}function Mw(){return X()===127?vi()?!0:wn(Kw):!1}function S5(){return ct(),!u.hasPrecedingLineBreak()&&wo()}function aC(){const he=de();return ct(),!u.hasPrecedingLineBreak()&&(X()===42||f3())?Ri(k.createYieldExpression(Ho(42),bh(!0)),he):Ri(k.createYieldExpression(void 0,void 0),he)}function m3(he,Re,nt,Nt,bi){H.assert(X()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const en=k.createParameterDeclaration(void 0,void 0,Re,void 0,void 0,void 0);Ri(en,Re.pos);const zu=Ka([en],en.pos,en.end),Hr=Y0(39),Lr=up(!!bi,nt),gr=k.createArrowFunction(bi,void 0,zu,void 0,Hr,Lr);return Ln(Ri(gr,he),Nt)}function oz(he){const Re=Hs();if(Re!==0)return Re===1?pb(!0,!0):Ir(()=>Xk(he))}function Hs(){return X()===21||X()===30||X()===134?wn(yg):X()===39?1:0}function yg(){if(X()===134&&(ct(),u.hasPrecedingLineBreak()||X()!==21&&X()!==30))return 0;const he=X(),Re=ct();if(he===21){if(Re===22)switch(ct()){case 39:case 59:case 19:return 1;default:return 0}if(Re===23||Re===19)return 2;if(Re===26)return 1;if(XD(Re)&&Re!==134&&wn(Oh))return ct()===130?0:1;if(!wo()&&Re!==110)return 0;switch(ct()){case 59:return 1;case 58:return ct(),X()===59||X()===28||X()===64||X()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return H.assert(he===30),!wo()&&X()!==87?0:Ie===1?wn(()=>{co(87);const Nt=ct();if(Nt===96)switch(ct()){case 64:case 32:case 44:return!1;default:return!0}else if(Nt===28||Nt===64)return!0;return!1})?1:0:2}function Xk(he){const Re=u.getTokenStart();if(xn!=null&&xn.has(Re))return;const nt=pb(!1,he);return nt||(xn||(xn=new Set)).add(Re),nt}function eF(he){if(X()===134&&wn(mb)===1){const Re=de(),nt=je(),Nt=EC(),bi=p3(0);return m3(Re,bi,he,nt,Nt)}}function mb(){if(X()===134){if(ct(),u.hasPrecedingLineBreak()||X()===39)return 0;const he=p3(0);if(!u.hasPrecedingLineBreak()&&he.kind===80&&X()===39)return 1}return 0}function pb(he,Re){const nt=de(),Nt=je(),bi=EC(),en=Oe(bi,VP)?2:0,zu=Xe();let Hr;if(Fn(21)){if(he)Hr=Cu(en,he);else{const f6=Cu(en,he);if(!f6)return;Hr=f6}if(!Fn(22)&&!he)return}else{if(!he)return;Hr=Wf()}const Lr=X()===59,gr=bn(59,!1);if(gr&&!he&&_s(gr))return;let fa=gr;for(;(fa==null?void 0:fa.kind)===196;)fa=fa.type;const _0=fa&&TB(fa);if(!he&&X()!==39&&(_0||X()!==19))return;const qs=X(),Ws=Y0(39),v4=qs===39||qs===19?up(Oe(bi,VP),Re):Q0();if(!Re&&Lr&&X()!==59)return;const qp=k.createArrowFunction(bi,zu,Hr,gr,Ws,v4);return Ln(Ri(qp,nt),Nt)}function up(he,Re){if(X()===19)return r6(he?2:0);if(X()!==27&&X()!==100&&X()!==86&&L9()&&!pt())return r6(16|(he?2:0));const nt=an;an=!1;const Nt=he?et(()=>bh(Re)):gt(()=>bh(Re));return an=nt,Nt}function kg(he,Re,nt){const Nt=Ho(58);if(!Nt)return he;let bi;return Ri(k.createConditionalExpression(he,Nt,Yo(s,()=>bh(!1)),bi=Y0(59),H4(bi)?bh(nt):dl(80,!1,F._0_expected,Uo(59))),Re)}function p3(he){const Re=de(),nt=uc();return mE(he,nt,Re)}function tF(he){return he===103||he===165}function mE(he,Re,nt){for(;;){Ui();const Nt=Oj(X());if(!(X()===43?Nt>=he:Nt>he)||X()===103&&mt())break;if(X()===130||X()===152){if(u.hasPrecedingLineBreak())break;{const en=X();ct(),Re=en===152?zw(Re,jd()):ar(Re,jd())}}else Re=Ur(Re,Tc(),p3(Nt),nt)}return Re}function iF(){return mt()&&X()===103?!1:Oj(X())>0}function zw(he,Re){return Ri(k.createSatisfiesExpression(he,Re),he.pos)}function Ur(he,Re,nt,Nt){return Ri(k.createBinaryExpression(he,Re,nt),Nt)}function ar(he,Re){return Ri(k.createAsExpression(he,Re),he.pos)}function pE(){const he=de();return Ri(k.createPrefixUnaryExpression(X(),Ct(yh)),he)}function kf(){const he=de();return Ri(k.createDeleteExpression(Ct(yh)),he)}function Iw(){const he=de();return Ri(k.createTypeOfExpression(Ct(yh)),he)}function B5(){const he=de();return Ri(k.createVoidExpression(Ct(yh)),he)}function Rw(){return X()===135?$i()?!0:wn(Kw):!1}function gb(){const he=de();return Ri(k.createAwaitExpression(Ct(yh)),he)}function uc(){if(dD()){const nt=de(),Nt=f_();return X()===43?mE(Oj(X()),Nt,nt):Nt}const he=X(),Re=yh();if(X()===43){const nt=gs(We,Re.pos),{end:Nt}=Re;Re.kind===216?le(nt,Nt,F.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(H.assert(Sq(he)),le(nt,Nt,F.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,Uo(he)))}return Re}function yh(){switch(X()){case 40:case 41:case 55:case 54:return pE();case 91:return kf();case 114:return Iw();case 116:return B5();case 30:return Ie===1?E3(!0,void 0,void 0,!0):sC();case 135:if(Rw())return gb();default:return f_()}}function dD(){switch(X()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Ie!==1)return!1;default:return!0}}function f_(){if(X()===46||X()===47){const Re=de();return Ri(k.createPrefixUnaryExpression(X(),Ct(g3)),Re)}else if(Ie===1&&X()===30&&wn(h4))return E3(!0);const he=g3();if(H.assert(Df(he)),(X()===46||X()===47)&&!u.hasPrecedingLineBreak()){const Re=X();return ct(),Ri(k.createPostfixUnaryExpression(he,Re),he.pos)}return he}function g3(){const he=de();let Re;return X()===102?wn(i6)?(Ve|=4194304,Re=Tc()):wn(Gk)?(ct(),ct(),Re=Ri(k.createMetaProperty(102,Cc()),he),Ve|=8388608):Re=$p():Re=X()===108?oC():$p(),ap(he,Re)}function $p(){const he=de(),Re=wd();return Ma(he,Re,!0)}function oC(){const he=de();let Re=Tc();if(X()===30){const nt=de(),Nt=Ir(_b);Nt!==void 0&&(le(nt,de(),F.super_may_not_use_type_arguments),lf()||(Re=k.createExpressionWithTypeArguments(Re,Nt)))}return X()===21||X()===25||X()===23?Re:(Y0(25,F.super_must_be_followed_by_an_argument_list_or_member_access),Ri(ge(Re,Di(!0,!0,!0)),he))}function E3(he,Re,nt,Nt=!1){const bi=de(),en=p_(he);let zu;if(en.kind===286){let Hr=jw(en),Lr;const gr=Hr[Hr.length-1];if((gr==null?void 0:gr.kind)===284&&!Vv(gr.openingElement.tagName,gr.closingElement.tagName)&&Vv(en.tagName,gr.closingElement.tagName)){const fa=gr.children.end,_0=Ri(k.createJsxElement(gr.openingElement,gr.children,Ri(k.createJsxClosingElement(Ri(J(""),fa,fa)),fa,fa)),gr.openingElement.pos,fa);Hr=Ka([...Hr.slice(0,Hr.length-1),_0],Hr.pos,fa),Lr=gr.closingElement}else Lr=A9(en,he),Vv(en.tagName,Lr.tagName)||(nt&&aE(nt)&&Vv(Lr.tagName,nt.tagName)?te(en.tagName,F.JSX_element_0_has_no_corresponding_closing_tag,JN(We,en.tagName)):te(Lr.tagName,F.Expected_corresponding_JSX_closing_tag_for_0,JN(We,en.tagName)));zu=Ri(k.createJsxElement(en,Hr,Lr),bi)}else en.kind===289?zu=Ri(k.createJsxFragment(en,jw(en),rp(he)),bi):(H.assert(en.kind===285),zu=en);if(!Nt&&he&&X()===30){const Hr=typeof Re>"u"?zu.pos:Re,Lr=Ir(()=>E3(!0,Hr));if(Lr){const gr=dl(28,!1);return wP(gr,Lr.pos,0),le(gs(We,Hr),Lr.end,F.JSX_expressions_must_have_one_parent_element),Ri(k.createBinaryExpression(zu,gr,Lr),bi)}}return zu}function Ow(){const he=de(),Re=k.createJsxText(u.getTokenValue(),ei===13);return ei=u.scanJsxToken(),Ri(Re,he)}function m_(he,Re){switch(Re){case 1:if(V7(he))te(he,F.JSX_fragment_has_no_corresponding_closing_tag);else{const nt=he.tagName,Nt=Math.min(gs(We,nt.pos),nt.end);le(Nt,nt.end,F.JSX_element_0_has_no_corresponding_closing_tag,JN(We,he.tagName))}return;case 31:case 7:return;case 12:case 13:return Ow();case 19:return k9(!1);case 30:return E3(!1,void 0,he);default:return H.assertNever(Re)}}function jw(he){const Re=[],nt=de(),Nt=ji;for(ji|=16384;;){const bi=m_(he,ei=u.reScanJsxToken());if(!bi||(Re.push(bi),aE(he)&&(bi==null?void 0:bi.kind)===284&&!Vv(bi.openingElement.tagName,bi.closingElement.tagName)&&Vv(he.tagName,bi.closingElement.tagName)))break}return ji=Nt,Ka(Re,nt)}function gE(){const he=de();return Ri(k.createJsxAttributes(To(13,sz)),he)}function p_(he){const Re=de();if(Fn(30),X()===32)return ca(),Ri(k.createJsxOpeningFragment(),Re);const nt=w5(),Nt=Jn&524288?void 0:d6(),bi=gE();let en;return X()===32?(ca(),en=k.createJsxOpeningElement(nt,Nt,bi)):(Fn(44),Fn(32,void 0,!1)&&(he?ct():ca()),en=k.createJsxSelfClosingElement(nt,Nt,bi)),Ri(en,Re)}function w5(){const he=de(),Re=Vw();if(gg(Re))return Re;let nt=Re;for(;co(25);)nt=Ri(ge(nt,Di(!0,!1,!1)),he);return nt}function Vw(){const he=de();Xu();const Re=X()===110,nt=$();return co(59)?(Xu(),Ri(k.createJsxNamespacedName(nt,$()),he)):Re?Ri(k.createToken(110),he):nt}function k9(he){const Re=de();if(!Fn(19))return;let nt,Nt;return X()!==20&&(he||(nt=Ho(26)),Nt=i1()),he?Fn(20):Fn(20,void 0,!1)&&ca(),Ri(k.createJsxExpression(nt,Nt),Re)}function sz(){if(X()===19)return Eb();const he=de();return Ri(k.createJsxAttribute(B0(),F9()),he)}function F9(){if(X()===64){if(Ku()===11)return ir();if(X()===19)return k9(!0);if(X()===30)return E3(!0);Qi(F.or_JSX_element_expected)}}function B0(){const he=de();Xu();const Re=$();return co(59)?(Xu(),Ri(k.createJsxNamespacedName(Re,$()),he)):Re}function Eb(){const he=de();Fn(19),Fn(26);const Re=i1();return Fn(20),Ri(k.createJsxSpreadAttribute(Re),he)}function A9(he,Re){const nt=de();Fn(31);const Nt=w5();return Fn(32,void 0,!1)&&(Re||!Vv(he.tagName,Nt)?ct():ca()),Ri(k.createJsxClosingElement(Nt),nt)}function rp(he){const Re=de();return Fn(31),Fn(32,F.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(he?ct():ca()),Ri(k.createJsxJsxClosingFragment(),Re)}function sC(){H.assert(Ie!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const he=de();Fn(30);const Re=jd();Fn(32);const nt=yh();return Ri(k.createTypeAssertion(Re,nt),he)}function S9(){return ct(),fh(X())||X()===23||lf()}function lz(){return X()===29&&wn(S9)}function nF(he){if(he.flags&64)return!0;if(O7(he)){let Re=he.expression;for(;O7(Re)&&!(Re.flags&64);)Re=Re.expression;if(Re.flags&64){for(;O7(he);)he.flags|=64,he=he.expression;return!0}}return!1}function ru(he,Re,nt){const Nt=Di(!0,!0,!0),bi=nt||nF(Re),en=bi?ae(Re,nt,Nt):ge(Re,Nt);if(bi&&Xr(en.name)&&te(en.name,F.An_optional_chain_cannot_contain_private_identifiers),c5(Re)&&Re.typeArguments){const zu=Re.typeArguments.pos-1,Hr=gs(We,Re.typeArguments.end)+1;le(zu,Hr,F.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Ri(en,he)}function v1(he,Re,nt){let Nt;if(X()===24)Nt=dl(80,!0,F.An_element_access_expression_should_take_an_argument);else{const en=Qe(i1);Pm(en)&&(en.text=Uc(en.text)),Nt=en}Fn(24);const bi=nt||nF(Re)?ne(Re,nt,Nt):Ce(Re,Nt);return Ri(bi,he)}function Ma(he,Re,nt){for(;;){let Nt,bi=!1;if(nt&&lz()?(Nt=Y0(29),bi=fh(X())):bi=co(25),bi){Re=ru(he,Re,Nt);continue}if((Nt||!Ei())&&co(23)){Re=v1(he,Re,Nt);continue}if(lf()){Re=!Nt&&Re.kind===233?EE(he,Re.expression,Nt,Re.typeArguments):EE(he,Re,Nt,void 0);continue}if(!Nt){if(X()===54&&!u.hasPrecedingLineBreak()){ct(),Re=Ri(k.createNonNullExpression(Re),he);continue}const en=Ir(_b);if(en){Re=Ri(k.createExpressionWithTypeArguments(Re,en),he);continue}}return Re}}function lf(){return X()===15||X()===16}function EE(he,Re,nt,Nt){const bi=k.createTaggedTemplateExpression(Re,Nt,X()===15?(du(!0),ir()):Q(!0));return(nt||Re.flags&64)&&(bi.flags|=64),bi.questionDotToken=nt,Ri(bi,he)}function ap(he,Re){for(;;){Re=Ma(he,Re,!0);let nt;const Nt=Ho(29);if(Nt&&(nt=Ir(_b),lf())){Re=EE(he,Re,Nt,nt);continue}if(nt||X()===21){!Nt&&Re.kind===233&&(nt=Re.typeArguments,Re=Re.expression);const bi=Un(),en=Nt||nF(Re)?Se(Re,Nt,nt,bi):ve(Re,nt,bi);Re=Ri(en,he);continue}if(Nt){const bi=dl(80,!1,F.Identifier_expected);Re=Ri(ae(Re,Nt,bi),he)}break}return Re}function Un(){Fn(21);const he=R1(11,B9);return Fn(22),he}function _b(){if(Jn&524288||Ru()!==30)return;ct();const he=R1(20,jd);if(Ui()===32)return ct(),he&&lC()?he:void 0}function lC(){switch(X()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return u.hasPrecedingLineBreak()||iF()||!f3()}function wd(){switch(X()){case 15:u.getTokenFlags()&26656&&du(!1);case 9:case 10:case 11:return ir();case 110:case 108:case 106:case 112:case 97:return Tc();case 21:return _E();case 23:return hD();case 19:return dC();case 134:if(!wn(R0))break;return _3();case 60:return sF();case 86:return Jw();case 100:return _3();case 105:return uF();case 44:case 69:if(Sn()===14)return ir();break;case 16:return Q(!1);case 81:return uu()}return Q0(F.Expression_expected)}function _E(){const he=de(),Re=je();Fn(21);const nt=Qe(i1);return Fn(22),Ln(Ri(pe(nt),he),Re)}function DE(){const he=de();Fn(26);const Re=bh(!0);return Ri(k.createSpreadElement(Re),he)}function u6(){return X()===26?DE():X()===28?Ri(k.createOmittedExpression(),de()):bh(!0)}function B9(){return Yo(s,u6)}function hD(){const he=de(),Re=u.getTokenStart(),nt=Fn(23),Nt=u.hasPrecedingLineBreak(),bi=R1(15,u6);return vl(23,24,nt,Re),Ri(oe(bi,Nt),he)}function cC(){const he=de(),Re=je();if(Ho(26)){const fa=bh(!0);return Ln(Ri(k.createSpreadAssignment(fa),he),Re)}const nt=j1(!0);if(Tu(139))return lp(he,Re,nt,177,0);if(Tu(153))return lp(he,Re,nt,178,0);const Nt=Ho(42),bi=wo(),en=fn(),zu=Ho(58),Hr=Ho(54);if(Nt||X()===21||X()===30)return sp(he,Re,nt,Nt,en,zu,Hr);let Lr;if(bi&&X()!==59){const fa=Ho(64),_0=fa?Qe(()=>bh(!0)):void 0;Lr=k.createShorthandPropertyAssignment(en,_0),Lr.equalsToken=fa}else{Fn(59);const fa=Qe(()=>bh(!0));Lr=k.createPropertyAssignment(en,fa)}return Lr.modifiers=nt,Lr.questionToken=zu,Lr.exclamationToken=Hr,Ln(Ri(Lr,he),Re)}function dC(){const he=de(),Re=u.getTokenStart(),nt=Fn(19),Nt=u.hasPrecedingLineBreak(),bi=R1(12,cC,!0);return vl(19,20,nt,Re),Ri(se(bi,Nt),he)}function _3(){const he=Ei();ua(!1);const Re=de(),nt=je(),Nt=j1(!1);Fn(100);const bi=Ho(42),en=bi?1:0,zu=Oe(Nt,VP)?2:0,Hr=en&&zu?ii(g_):en?Xt(g_):zu?et(g_):g_(),Lr=Xe(),gr=bu(en|zu),fa=bn(59,!1),_0=r6(en|zu);ua(he);const qs=k.createFunctionExpression(Nt,bi,Hr,Lr,gr,fa,_0);return Ln(Ri(qs,Re),nt)}function g_(){return as()?sf():void 0}function uF(){const he=de();if(Fn(105),co(25)){const en=Cc();return Ri(k.createMetaProperty(105,en),he)}const Re=de();let nt=Ma(Re,wd(),!1),Nt;nt.kind===233&&(Nt=nt.typeArguments,nt=nt.expression),X()===29&&Qi(F.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,JN(We,nt));const bi=X()===21?Un():void 0;return Ri(Ne(nt,Nt,bi),he)}function fD(he,Re){const nt=de(),Nt=je(),bi=u.getTokenStart(),en=Fn(19,Re);if(en||he){const zu=u.hasPrecedingLineBreak(),Hr=To(1,qm);vl(19,20,en,bi);const Lr=Ln(Ri(fe(Hr,zu),nt),Nt);return X()===64&&(Qi(F.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),ct()),Lr}else{const zu=Wf();return Ln(Ri(fe(zu,void 0),nt),Nt)}}function r6(he,Re){const nt=vi();Da(!!(he&1));const Nt=$i();Ta(!!(he&2));const bi=an;an=!1;const en=Ei();en&&ua(!1);const zu=fD(!!(he&16),Re);return en&&ua(!0),an=bi,Da(nt),Ta(Nt),zu}function Db(){const he=de(),Re=je();return Fn(27),Ln(Ri(k.createEmptyStatement(),he),Re)}function w9(){const he=de(),Re=je();Fn(101);const nt=u.getTokenStart(),Nt=Fn(21),bi=Qe(i1);vl(21,22,Nt,nt);const en=qm(),zu=co(93)?qm():void 0;return Ln(Ri(Ge(bi,en,zu),he),Re)}function rF(){const he=de(),Re=je();Fn(92);const nt=qm();Fn(117);const Nt=u.getTokenStart(),bi=Fn(21),en=Qe(i1);return vl(21,22,bi,Nt),co(27),Ln(Ri(k.createDoStatement(nt,en),he),Re)}function xb(){const he=de(),Re=je();Fn(117);const nt=u.getTokenStart(),Nt=Fn(21),bi=Qe(i1);vl(21,22,Nt,nt);const en=qm();return Ln(Ri(Ae(bi,en),he),Re)}function E4(){const he=de(),Re=je();Fn(99);const nt=Ho(135);Fn(21);let Nt;X()!==27&&(X()===115||X()===121||X()===87||X()===160&&wn(mD)||X()===135&&wn(N9)?Nt=yb(!0):Nt=Et(i1));let bi;if(nt?Fn(165):co(165)){const en=Qe(()=>bh(!0));Fn(22),bi=Ke(nt,Nt,en,qm())}else if(co(103)){const en=Qe(i1);Fn(22),bi=k.createForInStatement(Nt,en,qm())}else{Fn(27);const en=X()!==27&&X()!==22?Qe(i1):void 0;Fn(27);const zu=X()!==22?Qe(i1):void 0;Fn(22),bi=De(Nt,en,zu,qm())}return Ln(Ri(bi,he),Re)}function hC(he){const Re=de(),nt=je();Fn(he===252?83:88);const Nt=Lc()?void 0:Q0();cl();const bi=he===252?k.createBreakStatement(Nt):k.createContinueStatement(Nt);return Ln(Ri(bi,Re),nt)}function yc(){const he=de(),Re=je();Fn(107);const nt=Lc()?void 0:Qe(i1);return cl(),Ln(Ri(k.createReturnStatement(nt),he),Re)}function md(){const he=de(),Re=je();Fn(118);const nt=u.getTokenStart(),Nt=Fn(21),bi=Qe(i1);vl(21,22,Nt,nt);const en=bo(67108864,qm);return Ln(Ri(k.createWithStatement(bi,en),he),Re)}function T9(){const he=de(),Re=je();Fn(84);const nt=Qe(i1);Fn(59);const Nt=To(3,qm);return Ln(Ri(k.createCaseClause(nt,Nt),he),Re)}function O1(){const he=de();Fn(90),Fn(59);const Re=To(3,qm);return Ri(k.createDefaultClause(Re),he)}function Ff(){return X()===84?T9():O1()}function vb(){const he=de();Fn(19);const Re=To(2,Ff);return Fn(20),Ri(k.createCaseBlock(Re),he)}function _4(){const he=de(),Re=je();Fn(109),Fn(21);const nt=Qe(i1);Fn(22);const Nt=vb();return Ln(Ri(k.createSwitchStatement(nt,Nt),he),Re)}function fC(){const he=de(),Re=je();Fn(111);let nt=u.hasPrecedingLineBreak()?void 0:Qe(i1);return nt===void 0&&(Ni++,nt=Ri(J(""),de())),Il()||Ya(nt),Ln(Ri(k.createThrowStatement(nt),he),Re)}function T5(){const he=de(),Re=je();Fn(113);const nt=fD(!1),Nt=X()===85?n1():void 0;let bi;return(!Nt||X()===98)&&(Fn(98,F.catch_or_finally_expected),bi=fD(!1)),Ln(Ri(k.createTryStatement(nt,Nt,bi),he),Re)}function n1(){const he=de();Fn(85);let Re;co(21)?(Re=cf(),Fn(22)):Re=void 0;const nt=fD(!1);return Ri(k.createCatchClause(Re,nt),he)}function aF(){const he=de(),Re=je();return Fn(89),cl(),Ln(Ri(k.createDebuggerStatement(),he),Re)}function op(){const he=de();let Re=je(),nt;const Nt=X()===21,bi=Qe(i1);return at(bi)&&co(59)?nt=k.createLabeledStatement(bi,qm()):(Il()||Ya(bi),nt=Be(bi),Nt&&(Re=!1)),Ln(Ri(nt,he),Re)}function a6(){return ct(),fh(X())&&!u.hasPrecedingLineBreak()}function Hw(){return ct(),X()===86&&!u.hasPrecedingLineBreak()}function R0(){return ct(),X()===100&&!u.hasPrecedingLineBreak()}function Kw(){return ct(),(fh(X())||X()===9||X()===10||X()===11)&&!u.hasPrecedingLineBreak()}function oF(){for(;;)switch(X()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return _m();case 135:return o6();case 120:case 156:return S5();case 144:case 145:return z9();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const he=X();if(ct(),u.hasPrecedingLineBreak())return!1;if(he===138&&X()===156)return!0;continue;case 162:return ct(),X()===19||X()===80||X()===95;case 102:return ct(),X()===11||X()===42||X()===19||fh(X());case 95:let Re=ct();if(Re===156&&(Re=wn(ct)),Re===64||Re===42||Re===19||Re===90||Re===130||Re===60)return!0;continue;case 126:ct();continue;default:return!1}}function mC(){return wn(oF)}function L9(){switch(X()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return mC()||wn(lb);case 87:case 95:return mC();case 134:case 138:case 120:case 144:case 145:case 156:case 162:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return mC()||!wn(a6);default:return f3()}}function Kh(){return ct(),as()||X()===19||X()===23}function D3(){return wn(Kh)}function mD(){return Cb(!0)}function Cb(he){return ct(),he&&X()===165?!1:(as()||X()===19)&&!u.hasPrecedingLineBreak()}function _m(){return wn(Cb)}function N9(he){return ct()===160?Cb(he):!1}function o6(){return wn(N9)}function qm(){switch(X()){case 27:return Db();case 19:return fD(!1);case 115:return gC(de(),je(),void 0);case 121:if(D3())return gC(de(),je(),void 0);break;case 135:if(o6())return gC(de(),je(),void 0);break;case 160:if(_m())return gC(de(),je(),void 0);break;case 100:return kb(de(),je(),void 0);case 86:return x4(de(),je(),void 0);case 101:return w9();case 92:return rF();case 117:return xb();case 99:return E4();case 88:return hC(251);case 83:return hC(252);case 107:return yc();case 118:return md();case 109:return _4();case 111:return fC();case 113:case 85:case 98:return T5();case 89:return aF();case 60:return L5();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(mC())return L5();break}return op()}function bb(he){return he.kind===138}function L5(){const he=de(),Re=je(),nt=j1(!0);if(Oe(nt,bb)){const bi=cz(he);if(bi)return bi;for(const en of nt)en.flags|=33554432;return bo(33554432,()=>P9(he,Re,nt))}else return P9(he,Re,nt)}function cz(he){return bo(33554432,()=>{const Re=fc(ji,he);if(Re)return Cl(Re)})}function P9(he,Re,nt){switch(X()){case 115:case 121:case 87:case 160:case 135:return gC(he,Re,nt);case 100:return kb(he,Re,nt);case 86:return x4(he,Re,nt);case 120:return Ht(he,Re,nt);case 156:return Oi(he,Re,nt);case 94:return Jr(he,Re,nt);case 162:case 144:case 145:return Af(he,Re,nt);case 102:return P5(he,Re,nt);case 95:switch(ct(),X()){case 90:case 64:return mte(he,Re,nt);case 130:return h6(he,Re,nt);default:return xC(he,Re,nt)}default:if(nt){const Nt=dl(282,!0,F.Declaration_expected);return BP(Nt,he),Nt.modifiers=nt,Nt}return}}function M9(){return ct()===11}function z9(){return ct(),!u.hasPrecedingLineBreak()&&(wo()||X()===11)}function pC(he,Re){if(X()!==19){if(he&4){Eu();return}if(Lc()){cl();return}}return r6(he,Re)}function $f(){const he=de();if(X()===28)return Ri(k.createOmittedExpression(),he);const Re=Ho(26),nt=_u(),Nt=g4();return Ri(k.createBindingElement(Re,void 0,nt,Nt),he)}function x3(){const he=de(),Re=Ho(26),nt=as();let Nt=fn(),bi;nt&&X()!==59?(bi=Nt,Nt=void 0):(Fn(59),bi=_u());const en=g4();return Ri(k.createBindingElement(Re,Nt,bi,en),he)}function I9(){const he=de();Fn(19);const Re=Qe(()=>R1(9,x3));return Fn(20),Ri(k.createObjectBindingPattern(Re),he)}function R9(){const he=de();Fn(23);const Re=Qe(()=>R1(10,$f));return Fn(24),Ri(k.createArrayBindingPattern(Re),he)}function Ks(){return X()===19||X()===23||X()===81||as()}function _u(he){return X()===23?R9():X()===19?I9():sf(he)}function Dm(){return cf(!0)}function cf(he){const Re=de(),nt=je(),Nt=_u(F.Private_identifiers_are_not_allowed_in_variable_declarations);let bi;he&&Nt.kind===80&&X()===54&&!u.hasPrecedingLineBreak()&&(bi=Tc());const en=F5(),zu=tF(X())?void 0:g4(),Hr=Je(Nt,bi,en,zu);return Ln(Ri(Hr,Re),nt)}function yb(he){const Re=de();let nt=0;switch(X()){case 115:break;case 121:nt|=1;break;case 87:nt|=2;break;case 160:nt|=4;break;case 135:H.assert(o6()),nt|=6,ct();break;default:H.fail()}ct();let Nt;if(X()===165&&wn(Ww))Nt=Wf();else{const bi=mt();oa(he),Nt=R1(8,he?cf:Dm),oa(bi)}return Ri(ft(Nt,nt),Re)}function Ww(){return Oh()&&ct()===22}function gC(he,Re,nt){const Nt=yb(!1);cl();const bi=xe(nt,Nt);return Ln(Ri(bi,he),Re)}function kb(he,Re,nt){const Nt=$i(),bi=tE(nt);Fn(100);const en=Ho(42),zu=bi&2048?g_():sf(),Hr=en?1:0,Lr=bi&1024?2:0,gr=Xe();bi&32&&Ta(!0);const fa=bu(Hr|Lr),_0=bn(59,!1),qs=pC(Hr|Lr,F.or_expected);Ta(Nt);const Ws=k.createFunctionDeclaration(nt,en,zu,gr,fa,_0,qs);return Ln(Ri(Ws,he),Re)}function s6(){if(X()===137)return Fn(137);if(X()===11&&wn(ct)===21)return Ir(()=>{const he=ir();return he.text==="constructor"?he:void 0})}function Zm(he,Re,nt){return Ir(()=>{if(s6()){const Nt=Xe(),bi=bu(0),en=bn(59,!1),zu=pC(0,F.or_expected),Hr=k.createConstructorDeclaration(nt,bi,zu);return Hr.typeParameters=Nt,Hr.type=en,Ln(Ri(Hr,he),Re)}})}function sp(he,Re,nt,Nt,bi,en,zu,Hr){const Lr=Nt?1:0,gr=Oe(nt,VP)?2:0,fa=Xe(),_0=bu(Lr|gr),qs=bn(59,!1),Ws=pC(Lr|gr,Hr),v4=k.createMethodDeclaration(nt,Nt,bi,en,fa,_0,qs,Ws);return v4.exclamationToken=zu,Ln(Ri(v4,he),Re)}function l6(he,Re,nt,Nt,bi){const en=!bi&&!u.hasPrecedingLineBreak()?Ho(54):void 0,zu=F5(),Hr=Yo(90112,g4);wl(Nt,zu,Hr);const Lr=k.createPropertyDeclaration(nt,Nt,bi||en,zu,Hr);return Ln(Ri(Lr,he),Re)}function Up(he,Re,nt){const Nt=Ho(42),bi=fn(),en=Ho(58);return Nt||X()===21||X()===30?sp(he,Re,nt,Nt,bi,en,void 0,F.or_expected):l6(he,Re,nt,bi,en)}function lp(he,Re,nt,Nt,bi){const en=fn(),zu=Xe(),Hr=bu(0),Lr=bn(59,!1),gr=pC(bi),fa=Nt===177?k.createGetAccessorDeclaration(nt,en,Hr,Lr,gr):k.createSetAccessorDeclaration(nt,en,Hr,gr);return fa.typeParameters=zu,jf(fa)&&(fa.type=Lr),Ln(Ri(fa,he),Re)}function N5(){let he;if(X()===60)return!0;for(;XD(X());){if(he=X(),qse(he))return!0;ct()}if(X()===42||(tt()&&(he=X(),ct()),X()===23))return!0;if(he!==void 0){if(!uf(he)||he===153||he===139)return!0;switch(X()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Lc()}}return!1}function Fb(he,Re,nt){Y0(126);const Nt=Pc(),bi=Ln(Ri(k.createClassStaticBlockDeclaration(Nt),he),Re);return bi.modifiers=nt,bi}function Pc(){const he=vi(),Re=$i();Da(!1),Ta(!0);const nt=fD(!1);return Da(he),Ta(Re),nt}function dz(){if($i()&&X()===135){const he=de(),Re=Q0(F.Expression_expected);ct();const nt=Ma(he,Re,!0);return ap(he,nt)}return g3()}function D4(){const he=de();if(!co(60))return;const Re=Pe(dz);return Ri(k.createDecorator(Re),he)}function Gw(he,Re,nt){const Nt=de(),bi=X();if(X()===87&&Re){if(!Ir(Nr))return}else{if(nt&&X()===126&&wn(vE))return;if(he&&X()===126)return;if(!nd())return}return Ri(Y(bi),Nt)}function j1(he,Re,nt){const Nt=de();let bi,en,zu,Hr=!1,Lr=!1,gr=!1;if(he&&X()===60)for(;en=D4();)bi=xi(bi,en);for(;zu=Gw(Hr,Re,nt);)zu.kind===126&&(Hr=!0),bi=xi(bi,zu),Lr=!0;if(Lr&&he&&X()===60)for(;en=D4();)bi=xi(bi,en),gr=!0;if(gr)for(;zu=Gw(Hr,Re,nt);)zu.kind===126&&(Hr=!0),bi=xi(bi,zu);return bi&&Ka(bi,Nt)}function EC(){let he;if(X()===134){const Re=de();ct();const nt=Ri(Y(134),Re);he=Ka([nt],Re)}return he}function Ab(){const he=de(),Re=je();if(X()===27)return ct(),Ln(Ri(k.createSemicolonClassElement(),he),Re);const nt=j1(!0,!0,!0);if(X()===126&&wn(vE))return Fb(he,Re,nt);if(Tu(139))return lp(he,Re,nt,177,0);if(Tu(153))return lp(he,Re,nt,178,0);if(X()===137||X()===11){const Nt=Zm(he,Re,nt);if(Nt)return Nt}if(p0())return Gf(he,Re,nt);if(fh(X())||X()===11||X()===9||X()===42||X()===23)if(Oe(nt,bb)){for(const bi of nt)bi.flags|=33554432;return bo(33554432,()=>Up(he,Re,nt))}else return Up(he,Re,nt);if(nt){const Nt=dl(80,!0,F.Declaration_expected);return l6(he,Re,nt,Nt,void 0)}return H.fail("Should not have attempted to parse class member declaration.")}function sF(){const he=de(),Re=je(),nt=j1(!0);if(X()===86)return Ol(he,Re,nt,231);const Nt=dl(282,!0,F.Expression_expected);return BP(Nt,he),Nt.modifiers=nt,Nt}function Jw(){return Ol(de(),je(),void 0,231)}function x4(he,Re,nt){return Ol(he,Re,nt,263)}function Ol(he,Re,nt,Nt){const bi=$i();Fn(86);const en=xE(),zu=Xe();Oe(nt,L7)&&Ta(!0);const Hr=v3();let Lr;Fn(19)?(Lr=be(),Fn(20)):Lr=Wf(),Ta(bi);const gr=Nt===263?k.createClassDeclaration(nt,en,zu,Hr,Lr):k.createClassExpression(nt,en,zu,Hr,Lr);return Ln(Ri(gr,he),Re)}function xE(){return as()&&!c6()?Ch(as()):void 0}function c6(){return X()===119&&wn(uh)}function v3(){if(R())return To(22,_C)}function _C(){const he=de(),Re=X();H.assert(Re===96||Re===119),ct();const nt=R1(7,$w);return Ri(k.createHeritageClause(Re,nt),he)}function $w(){const he=de(),Re=g3();if(Re.kind===233)return Re;const nt=d6();return Ri(k.createExpressionWithTypeArguments(Re,nt),he)}function d6(){return X()===30?Vh(20,jd,30,32):void 0}function R(){return X()===96||X()===119}function be(){return To(5,Ab)}function Ht(he,Re,nt){Fn(120);const Nt=Q0(),bi=Xe(),en=v3(),zu=$k(),Hr=k.createInterfaceDeclaration(nt,Nt,bi,en,zu);return Ln(Ri(Hr,he),Re)}function Oi(he,Re,nt){Fn(156),u.hasPrecedingLineBreak()&&Qi(F.Line_break_not_permitted_here);const Nt=Q0(),bi=Xe();Fn(64);const en=X()===141&&Ir(qk)||jd();cl();const zu=k.createTypeAliasDeclaration(nt,Nt,bi,en);return Ln(Ri(zu,he),Re)}function yu(){const he=de(),Re=je(),nt=fn(),Nt=Qe(g4);return Ln(Ri(k.createEnumMember(nt,Nt),he),Re)}function Jr(he,Re,nt){Fn(94);const Nt=Q0();let bi;Fn(19)?(bi=me(()=>R1(6,yu)),Fn(20)):bi=Wf();const en=k.createEnumDeclaration(nt,Nt,bi);return Ln(Ri(en,he),Re)}function br(){const he=de();let Re;return Fn(19)?(Re=To(1,qm),Fn(20)):Re=Wf(),Ri(k.createModuleBlock(Re),he)}function Ea(he,Re,nt,Nt){const bi=Nt&32,en=Nt&8?Cc():Q0(),zu=co(25)?Ea(de(),!1,void 0,8|bi):br(),Hr=k.createModuleDeclaration(nt,en,zu,Nt);return Ln(Ri(Hr,he),Re)}function Ao(he,Re,nt){let Nt=0,bi;X()===162?(bi=Q0(),Nt|=2048):(bi=ir(),bi.text=Uc(bi.text));let en;X()===19?en=br():cl();const zu=k.createModuleDeclaration(nt,bi,en,Nt);return Ln(Ri(zu,he),Re)}function Af(he,Re,nt){let Nt=0;if(X()===162)return Ao(he,Re,nt);if(co(145))Nt|=32;else if(Fn(144),X()===11)return Ao(he,Re,nt);return Ea(he,Re,nt,Nt)}function Uf(){return X()===149&&wn(Fr)}function Fr(){return ct()===21}function vE(){return ct()===19}function gn(){return ct()===44}function h6(he,Re,nt){Fn(130),Fn(145);const Nt=Q0();cl();const bi=k.createNamespaceExportDeclaration(Nt);return bi.modifiers=nt,Ln(Ri(bi,he),Re)}function P5(he,Re,nt){Fn(102);const Nt=u.getTokenFullStart();let bi;wo()&&(bi=Q0());let en=!1;if(X()!==161&&(bi==null?void 0:bi.escapedText)==="type"&&(wo()||O9())&&(en=!0,bi=wo()?Q0():void 0),bi&&!cF())return E_(he,Re,nt,bi,en);let zu;(bi||X()===42||X()===19)&&(zu=M5(bi,Nt,en),Fn(161));const Hr=j9(),Lr=X();let gr;(Lr===118||Lr===132)&&!u.hasPrecedingLineBreak()&&(gr=DC(Lr)),cl();const fa=k.createImportDeclaration(nt,zu,Hr,gr);return Ln(Ri(fa,he),Re)}function lF(){const he=de(),Re=fh(X())?Cc():Rl(11);Fn(59);const nt=bh(!0);return Ri(k.createImportAttribute(Re,nt),he)}function DC(he,Re){const nt=de();Re||Fn(he);const Nt=u.getTokenStart();if(Fn(19)){const bi=u.hasPrecedingLineBreak(),en=R1(24,lF,!0);if(!Fn(20)){const zu=qu(st);zu&&zu.code===F._0_expected.code&&Es(zu,hB(Ye,We,Nt,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ri(k.createImportAttributes(en,bi,he),nt)}else{const bi=Ka([],de(),void 0,!1);return Ri(k.createImportAttributes(bi,!1,he),nt)}}function O9(){return X()===42||X()===19}function cF(){return X()===28||X()===161}function E_(he,Re,nt,Nt,bi){Fn(64);const en=C3();cl();const zu=k.createImportEqualsDeclaration(nt,bi,Nt,en);return Ln(Ri(zu,he),Re)}function M5(he,Re,nt){let Nt;return(!he||co(28))&&(Nt=X()===42?ZK():hz(275)),Ri(k.createImportClause(nt,he,Nt),Re)}function C3(){return Uf()?Uw():Ee(!1)}function Uw(){const he=de();Fn(149),Fn(21);const Re=j9();return Fn(22),Ri(k.createExternalModuleReference(Re),he)}function j9(){if(X()===11){const he=ir();return he.text=Uc(he.text),he}else return i1()}function ZK(){const he=de();Fn(42),Fn(130);const Re=Q0();return Ri(k.createNamespaceImport(Re),he)}function hz(he){const Re=de(),nt=he===275?k.createNamedImports(Vh(23,pD,19,20)):k.createNamedExports(Vh(23,__,19,20));return Ri(nt,Re)}function __(){const he=je();return Ln(qw(281),he)}function pD(){return qw(276)}function qw(he){const Re=de();let nt=uf(X())&&!wo(),Nt=u.getTokenStart(),bi=u.getTokenEnd(),en=!1,zu,Hr=!0,Lr=Cc();if(Lr.escapedText==="type")if(X()===130){const _0=Cc();if(X()===130){const qs=Cc();fh(X())?(en=!0,zu=_0,Lr=fa(),Hr=!1):(zu=Lr,Lr=qs,Hr=!1)}else fh(X())?(zu=Lr,Hr=!1,Lr=fa()):(en=!0,Lr=_0)}else fh(X())&&(en=!0,Lr=fa());Hr&&X()===130&&(zu=Lr,Fn(130),Lr=fa()),he===276&&nt&&le(Nt,bi,F.Identifier_expected);const gr=he===276?k.createImportSpecifier(en,zu,Lr):k.createExportSpecifier(en,zu,Lr);return Ri(gr,Re);function fa(){return nt=uf(X())&&!wo(),Nt=u.getTokenStart(),bi=u.getTokenEnd(),Cc()}}function D_(he){return Ri(k.createNamespaceExport(Cc()),he)}function xC(he,Re,nt){const Nt=$i();Ta(!0);let bi,en,zu;const Hr=co(156),Lr=de();co(42)?(co(130)&&(bi=D_(Lr)),Fn(161),en=j9()):(bi=hz(279),(X()===161||X()===11&&!u.hasPrecedingLineBreak())&&(Fn(161),en=j9()));const gr=X();en&&(gr===118||gr===132)&&!u.hasPrecedingLineBreak()&&(zu=DC(gr)),cl(),Ta(Nt);const fa=k.createExportDeclaration(nt,Hr,bi,en,zu);return Ln(Ri(fa,he),Re)}function mte(he,Re,nt){const Nt=$i();Ta(!0);let bi;co(64)?bi=!0:Fn(90);const en=bh(!0);cl(),Ta(Nt);const zu=k.createExportAssignment(nt,bi,en);return Ln(Ri(zu,he),Re)}let CE;(he=>{he[he.SourceElements=0]="SourceElements",he[he.BlockStatements=1]="BlockStatements",he[he.SwitchClauses=2]="SwitchClauses",he[he.SwitchClauseStatements=3]="SwitchClauseStatements",he[he.TypeMembers=4]="TypeMembers",he[he.ClassMembers=5]="ClassMembers",he[he.EnumMembers=6]="EnumMembers",he[he.HeritageClauseElement=7]="HeritageClauseElement",he[he.VariableDeclarations=8]="VariableDeclarations",he[he.ObjectBindingElements=9]="ObjectBindingElements",he[he.ArrayBindingElements=10]="ArrayBindingElements",he[he.ArgumentExpressions=11]="ArgumentExpressions",he[he.ObjectLiteralMembers=12]="ObjectLiteralMembers",he[he.JsxAttributes=13]="JsxAttributes",he[he.JsxChildren=14]="JsxChildren",he[he.ArrayLiteralMembers=15]="ArrayLiteralMembers",he[he.Parameters=16]="Parameters",he[he.JSDocParameters=17]="JSDocParameters",he[he.RestProperties=18]="RestProperties",he[he.TypeParameters=19]="TypeParameters",he[he.TypeArguments=20]="TypeArguments",he[he.TupleElementTypes=21]="TupleElementTypes",he[he.HeritageClauses=22]="HeritageClauses",he[he.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",he[he.ImportAttributes=24]="ImportAttributes",he[he.JSDocComment=25]="JSDocComment",he[he.Count=26]="Count"})(CE||(CE={}));let dF;(he=>{he[he.False=0]="False",he[he.True=1]="True",he[he.Unknown=2]="Unknown"})(dF||(dF={}));let YK;(he=>{function Re(gr,fa,_0){yr("file.js",gr,99,void 0,1,0),u.setText(gr,fa,_0),ei=u.scan();const qs=nt(),Ws=Cn("file.js",99,1,!1,[],Y(1),0,Is),v4=v7(st,Ws);return St&&(Ws.jsDocDiagnostics=v7(St,Ws)),Ba(),qs?{jsDocTypeExpression:qs,diagnostics:v4}:void 0}he.parseJSDocTypeExpressionForTests=Re;function nt(gr){const fa=de(),_0=(gr?co:Fn)(19),qs=bo(16777216,bg);(!gr||_0)&&hd(20);const Ws=k.createJSDocTypeExpression(qs);return Dn(Ws),Ri(Ws,fa)}he.parseJSDocTypeExpression=nt;function Nt(){const gr=de(),fa=co(19),_0=de();let qs=Ee(!1);for(;X()===81;)pr(),Qt(),qs=Ri(k.createJSDocMemberName(qs,Q0()),_0);fa&&hd(20);const Ws=k.createJSDocNameReference(qs);return Dn(Ws),Ri(Ws,gr)}he.parseJSDocNameReference=Nt;function bi(gr,fa,_0){yr("",gr,99,void 0,1,0);const qs=bo(16777216,()=>Lr(fa,_0)),v4=v7(st,{languageVariant:0,text:gr});return Ba(),qs?{jsDoc:qs,diagnostics:v4}:void 0}he.parseIsolatedJSDocComment=bi;function en(gr,fa,_0){const qs=ei,Ws=st.length,v4=Pi,qp=bo(16777216,()=>Lr(fa,_0));return ks(qp,gr),Jn&524288&&(St||(St=[]),St.push(...st)),ei=qs,st.length=Ws,Pi=v4,qp}he.parseJSDocComment=en;let zu;(gr=>{gr[gr.BeginningOfLine=0]="BeginningOfLine",gr[gr.SawAsterisk=1]="SawAsterisk",gr[gr.SavingComments=2]="SavingComments",gr[gr.SavingBackticks=3]="SavingBackticks"})(zu||(zu={}));let Hr;(gr=>{gr[gr.Property=1]="Property",gr[gr.Parameter=2]="Parameter",gr[gr.CallbackParameter=4]="CallbackParameter"})(Hr||(Hr={}));function Lr(gr=0,fa){const _0=We,qs=fa===void 0?_0.length:gr+fa;if(fa=qs-gr,H.assert(gr>=0),H.assert(gr<=qs),H.assert(qs<=_0.length),!Jce(_0,gr))return;let Ws,v4,qp,f6,b3,Vd=[];const gD=[],fz=ji;ji|=1<<25;const Zw=u.scanRange(gr+3,fa-5,Yw);return ji=fz,Zw;function Yw(){let sn=1,Qu,Hu=gr-(_0.lastIndexOf(` +`,gr)+1)+4;function Or(D0){Qu||(Qu=Hu),Vd.push(D0),Hu+=D0.length}for(Qt();Sb(5););Sb(4)&&(sn=0,Hu=0);e:for(;;){switch(X()){case 60:pte(Vd),b3||(b3=de()),gte(gz(Hu)),sn=0,Qu=void 0;break;case 4:Vd.push(u.getTokenText()),sn=0,Hu=0;break;case 42:const D0=u.getTokenText();sn===1?(sn=2,Or(D0)):(H.assert(sn===0),sn=1,Hu+=D0.length);break;case 5:H.assert(sn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const qc=u.getTokenText();Qu!==void 0&&Hu+qc.length>Qu&&Vd.push(qc.slice(Qu-Hu)),Hu+=qc.length;break;case 1:break e;case 82:sn=2,Or(u.getTokenValue());break;case 19:sn=2;const _D=u.getTokenFullStart(),v_=u.getTokenEnd()-1,Zc=Ms(v_);if(Zc){f6||mz(Vd),gD.push(Ri(k.createJSDocText(Vd.join("")),f6??gr,_D)),gD.push(Zc),Vd=[],f6=u.getTokenEnd();break}default:sn=2,Or(u.getTokenText());break}sn===2?Li(!1):Qt()}const Vr=Vd.join("").trimEnd();gD.length&&Vr.length&&gD.push(Ri(k.createJSDocText(Vr),f6??gr,b3)),gD.length&&Ws&&H.assertIsDefined(b3,"having parsed tags implies that the end of the comment span should be set");const Rs=Ws&&Ka(Ws,v4,qp);return Ri(k.createJSDocComment(gD.length?Ka(gD,gr,b3):Vr.length?Vr:void 0,Rs),gr,qs)}function mz(sn){for(;sn.length&&(sn[0]===` +`||sn[0]==="\r");)sn.shift()}function pte(sn){for(;sn.length;){const Qu=sn[sn.length-1].trimEnd();if(Qu==="")sn.pop();else if(Qu.lengthqc&&(Or.push(z5.slice(qc-sn)),D0=2),sn+=z5.length;break;case 19:D0=2;const QK=u.getTokenFullStart(),tT=u.getTokenEnd()-1,pF=Ms(tT);pF?(Vr.push(Ri(k.createJSDocText(Or.join("")),Rs??Hu,QK)),Vr.push(pF),Or=[],Rs=u.getTokenEnd()):_D(u.getTokenText());break;case 62:D0===3?D0=2:D0=3,_D(u.getTokenText());break;case 82:D0!==3&&(D0=2),_D(u.getTokenValue());break;case 42:if(D0===0){D0=1,sn+=1;break}default:D0!==3&&(D0=2),_D(u.getTokenText());break}D0===2||D0===3?v_=Li(D0===3):v_=Qt()}mz(Or);const Zc=Or.join("").trimEnd();if(Vr.length)return Zc.length&&Vr.push(Ri(k.createJSDocText(Zc),Rs??Hu)),Ka(Vr,Hu,u.getTokenEnd());if(Zc.length)return Zc}function Ms(sn){const Qu=Ir(Mc);if(!Qu)return;Qt(),Ym();const Hu=de();let Or=fh(X())?Ee(!0):void 0;if(Or)for(;X()===81;)pr(),Qt(),Or=Ri(k.createJSDocMemberName(Or,Q0()),Hu);const Vr=[];for(;X()!==20&&X()!==4&&X()!==1;)Vr.push(u.getTokenText()),Qt();const Rs=Qu==="link"?k.createJSDocLink:Qu==="linkcode"?k.createJSDocLinkCode:k.createJSDocLinkPlain;return Ri(Rs(Or,Vr.join("")),sn,u.getTokenEnd())}function Mc(){if(ED(),X()===19&&Qt()===60&&fh(Qt())){const sn=u.getTokenValue();if(m6(sn))return sn}}function m6(sn){return sn==="link"||sn==="linkcode"||sn==="linkplain"}function hF(sn,Qu,Hu,Or){return Ri(k.createJSDocUnknownTag(Qu,C4(sn,de(),Hu,Or)),sn)}function gte(sn){sn&&(Ws?Ws.push(sn):(Ws=[sn],v4=sn.pos),qp=sn.end)}function x_(){return ED(),X()===19?nt():void 0}function V9(){const sn=Sb(23);sn&&Ym();const Qu=Sb(62),Hu=_z();return Qu&&Ko(62),sn&&(Ym(),Ho(64)&&i1(),Fn(24)),{name:Hu,isBracketed:sn}}function N(sn){switch(sn.kind){case 151:return!0;case 188:return N(sn.elementType);default:return X4(sn)&&at(sn.typeName)&&sn.typeName.escapedText==="Object"&&!sn.typeArguments}}function W(sn,Qu,Hu,Or){let Vr=x_(),Rs=!Vr;ED();const{name:D0,isBracketed:qc}=V9(),_D=ED();Rs&&!wn(Mc)&&(Vr=x_());const v_=C4(sn,de(),Or,_D),Zc=ee(Vr,D0,Hu,Or);Zc&&(Vr=Zc,Rs=!0);const z5=Hu===1?k.createJSDocPropertyTag(Qu,D0,qc,Vr,Rs,v_):k.createJSDocParameterTag(Qu,D0,qc,Vr,Rs,v_);return Ri(z5,sn)}function ee(sn,Qu,Hu,Or){if(sn&&N(sn.type)){const Vr=de();let Rs,D0;for(;Rs=Ir(()=>Wn(Hu,Or,Qu));)Rs.kind===348||Rs.kind===355?D0=xi(D0,Rs):Rs.kind===352&&te(Rs.tagName,F.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(D0){const qc=Ri(k.createJSDocTypeLiteral(D0,sn.type.kind===188),Vr);return Ri(k.createJSDocTypeExpression(qc),Vr)}}}function ke(sn,Qu,Hu,Or){Oe(Ws,EY)&&le(Qu.pos,u.getTokenStart(),F._0_tag_already_specified,Yr(Qu.escapedText));const Vr=x_();return Ri(k.createJSDocReturnTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function dt(sn,Qu,Hu,Or){Oe(Ws,XP)&&le(Qu.pos,u.getTokenStart(),F._0_tag_already_specified,Yr(Qu.escapedText));const Vr=nt(!0),Rs=Hu!==void 0&&Or!==void 0?C4(sn,de(),Hu,Or):void 0;return Ri(k.createJSDocTypeTag(Qu,Vr,Rs),sn)}function Bi(sn,Qu,Hu,Or){const Rs=X()===23||wn(()=>Qt()===60&&fh(Qt())&&m6(u.getTokenValue()))?void 0:Nt(),D0=Hu!==void 0&&Or!==void 0?C4(sn,de(),Hu,Or):void 0;return Ri(k.createJSDocSeeTag(Qu,Rs,D0),sn)}function au(sn,Qu,Hu,Or){const Vr=x_(),Rs=C4(sn,de(),Hu,Or);return Ri(k.createJSDocThrowsTag(Qu,Vr,Rs),sn)}function za(sn,Qu,Hu,Or){const Vr=de(),Rs=i0();let D0=u.getTokenFullStart();const qc=C4(sn,D0,Hu,Or);qc||(D0=u.getTokenFullStart());const _D=typeof qc!="string"?Ka(Hi([Ri(Rs,Vr,D0)],qc),Vr):Rs.text+qc;return Ri(k.createJSDocAuthorTag(Qu,_D),sn)}function i0(){const sn=[];let Qu=!1,Hu=u.getToken();for(;Hu!==1&&Hu!==4;){if(Hu===30)Qu=!0;else{if(Hu===60&&!Qu)break;if(Hu===32&&Qu){sn.push(u.getTokenText()),u.resetTokenState(u.getTokenEnd());break}}sn.push(u.getTokenText()),Hu=Qt()}return k.createJSDocText(sn.join(""))}function Qm(sn,Qu,Hu,Or){const Vr=vC();return Ri(k.createJSDocImplementsTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function p6(sn,Qu,Hu,Or){const Vr=vC();return Ri(k.createJSDocAugmentsTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function g6(sn,Qu,Hu,Or){const Vr=nt(!1),Rs=Hu!==void 0&&Or!==void 0?C4(sn,de(),Hu,Or):void 0;return Ri(k.createJSDocSatisfiesTag(Qu,Vr,Rs),sn)}function vC(){const sn=co(19),Qu=de(),Hu=Dge();u.setInJSDocType(!0);const Or=d6();u.setInJSDocType(!1);const Vr=k.createExpressionWithTypeArguments(Hu,Or),Rs=Ri(Vr,Qu);return sn&&Fn(20),Rs}function Dge(){const sn=de();let Qu=Bb();for(;co(25);){const Hu=Bb();Qu=Ri(ge(Qu,Hu),sn)}return Qu}function fF(sn,Qu,Hu,Or,Vr){return Ri(Qu(Hu,C4(sn,de(),Or,Vr)),sn)}function Ez(sn,Qu,Hu,Or){const Vr=nt(!0);return Ym(),Ri(k.createJSDocThisTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function BNe(sn,Qu,Hu,Or){const Vr=nt(!0);return Ym(),Ri(k.createJSDocEnumTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function xge(sn,Qu,Hu,Or){let Vr=x_();ED();const Rs=Ete();Ym();let D0=Qw(Hu),qc;if(!Vr||N(Vr.type)){let v_,Zc,z5,QK=!1;for(;(v_=Ir(()=>mF(Hu)))&&v_.kind!==352;)if(QK=!0,v_.kind===351)if(Zc){const tT=Qi(F.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);tT&&Es(tT,hB(Ye,We,0,0,F.The_tag_was_first_specified_here));break}else Zc=v_;else z5=xi(z5,v_);if(QK){const tT=Vr&&Vr.type.kind===188,pF=k.createJSDocTypeLiteral(z5,tT);Vr=Zc&&Zc.typeExpression&&!N(Zc.typeExpression.type)?Zc.typeExpression:Ri(pF,sn),qc=Vr.end}}qc=qc||D0!==void 0?de():(Rs??Vr??Qu).end,D0||(D0=C4(sn,qc,Hu,Or));const _D=k.createJSDocTypedefTag(Qu,Vr,Rs,D0);return Ri(_D,sn,qc)}function Ete(sn){const Qu=u.getTokenStart();if(!fh(X()))return;const Hu=Bb();if(co(25)){const Or=Ete(!0),Vr=k.createModuleDeclaration(void 0,Hu,Or,sn?8:void 0);return Ri(Vr,Qu)}return sn&&(Hu.flags|=4096),Hu}function wNe(sn){const Qu=de();let Hu,Or;for(;Hu=Ir(()=>Wn(4,sn));){if(Hu.kind===352){te(Hu.tagName,F.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Or=xi(Or,Hu)}return Ka(Or||[],Qu)}function vge(sn,Qu){const Hu=wNe(Qu),Or=Ir(()=>{if(Sb(60)){const Vr=gz(Qu);if(Vr&&Vr.kind===349)return Vr}});return Ri(k.createJSDocSignature(void 0,Hu,Or),sn)}function Xw(sn,Qu,Hu,Or){const Vr=Ete();Ym();let Rs=Qw(Hu);const D0=vge(sn,Hu);Rs||(Rs=C4(sn,de(),Hu,Or));const qc=Rs!==void 0?de():D0.end;return Ri(k.createJSDocCallbackTag(Qu,D0,Vr,Rs),sn,qc)}function Cge(sn,Qu,Hu,Or){Ym();let Vr=Qw(Hu);const Rs=vge(sn,Hu);Vr||(Vr=C4(sn,de(),Hu,Or));const D0=Vr!==void 0?de():Rs.end;return Ri(k.createJSDocOverloadTag(Qu,Rs,Vr),sn,D0)}function TNe(sn,Qu){for(;!at(sn)||!at(Qu);)if(!at(sn)&&!at(Qu)&&sn.right.escapedText===Qu.right.escapedText)sn=sn.left,Qu=Qu.left;else return!1;return sn.escapedText===Qu.escapedText}function mF(sn){return Wn(1,sn)}function Wn(sn,Qu,Hu){let Or=!0,Vr=!1;for(;;)switch(Qt()){case 60:if(Or){const Rs=E6(sn,Qu);return Rs&&(Rs.kind===348||Rs.kind===355)&&Hu&&(at(Rs.name)||!TNe(Hu,Rs.name.left))?!1:Rs}Vr=!1;break;case 4:Or=!0,Vr=!1;break;case 42:Vr&&(Or=!1),Vr=!0;break;case 80:Or=!1;break;case 1:return!1}}function E6(sn,Qu){H.assert(X()===60);const Hu=u.getTokenFullStart();Qt();const Or=Bb(),Vr=ED();let Rs;switch(Or.escapedText){case"type":return sn===1&&dt(Hu,Or);case"prop":case"property":Rs=1;break;case"arg":case"argument":case"param":Rs=6;break;case"template":return H9(Hu,Or,Qu,Vr);default:return!1}return sn&Rs?W(Hu,Or,sn,Qu):!1}function CC(){const sn=de(),Qu=Sb(23);Qu&&Ym();const Hu=Bb(F.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Or;if(Qu&&(Ym(),Fn(64),Or=bo(16777216,bg),Fn(24)),!Ql(Hu))return Ri(k.createTypeParameterDeclaration(void 0,Hu,void 0,Or),sn)}function eT(){const sn=de(),Qu=[];do{Ym();const Hu=CC();Hu!==void 0&&Qu.push(Hu),ED()}while(Sb(28));return Ka(Qu,sn)}function H9(sn,Qu,Hu,Or){const Vr=X()===19?nt():void 0,Rs=eT();return Ri(k.createJSDocTemplateTag(Qu,Vr,Rs,C4(sn,de(),Hu,Or)),sn)}function Sb(sn){return X()===sn?(Qt(),!0):!1}function _z(){let sn=Bb();for(co(23)&&Fn(24);co(25);){const Qu=Bb();co(23)&&Fn(24),sn=Bt(sn,Qu)}return sn}function Bb(sn){if(!fh(X()))return dl(80,!sn,sn||F.Identifier_expected);Ni++;const Qu=u.getTokenStart(),Hu=u.getTokenEnd(),Or=X(),Vr=Uc(u.getTokenValue()),Rs=Ri(J(Vr,Or),Qu,Hu);return Qt(),Rs}}})(YK=t.JSDocParser||(t.JSDocParser={}))})(Hv||(Hv={})),(t=>{function u(z,j,J,K){if(K=K||H.shouldAssert(2),k(z,j,J,K),N2e(J))return z;if(z.statements.length===0)return Hv.parseSourceFile(z.fileName,j,z.languageVersion,void 0,!0,z.scriptKind,z.setExternalModuleIndicator,z.jsDocParsingMode);const Y=z;H.assert(!Y.hasBeenIncrementallyParsed),Y.hasBeenIncrementallyParsed=!0,Hv.fixupParentReferences(Y);const oe=z.text,se=T(z),ge=b(z,J);k(z,j,ge,K),H.assert(ge.span.start<=J.span.start),H.assert(Ec(ge.span)===Ec(J.span)),H.assert(Ec(MN(ge))===Ec(MN(J)));const ae=MN(ge).length-ge.span.length;v(Y,ge.span.start,Ec(ge.span),Ec(MN(ge)),ae,oe,j,K);const Ce=Hv.parseSourceFile(z.fileName,j,z.languageVersion,se,!0,z.scriptKind,z.setExternalModuleIndicator,z.jsDocParsingMode);return Ce.commentDirectives=s(z.commentDirectives,Ce.commentDirectives,ge.span.start,Ec(ge.span),ae,oe,j,K),Ce.impliedNodeFormat=z.impliedNodeFormat,Ce}t.updateSourceFile=u;function s(z,j,J,K,Y,oe,se,ge){if(!z)return j;let ae,Ce=!1;for(const ve of z){const{range:Se,type:Ne}=ve;if(Se.endK){ne();const pe={range:{pos:Se.pos+Y,end:Se.end+Y},type:Ne};ae=xi(ae,pe),ge&&H.assert(oe.substring(Se.pos,Se.end)===se.substring(pe.range.pos,pe.range.end))}}return ne(),ae;function ne(){Ce||(Ce=!0,ae?j&&ae.push(...j):ae=j)}}function d(z,j,J,K,Y,oe){j?ge(z):se(z);return;function se(ae){let Ce="";if(oe&&f(ae)&&(Ce=K.substring(ae.pos,ae.end)),ae._children&&(ae._children=void 0),t_(ae,ae.pos+J,ae.end+J),oe&&f(ae)&&H.assert(Ce===Y.substring(ae.pos,ae.end)),ao(ae,se,ge),lm(ae))for(const ne of ae.jsDoc)se(ne);E(ae,oe)}function ge(ae){ae._children=void 0,t_(ae,ae.pos+J,ae.end+J);for(const Ce of ae)se(Ce)}}function f(z){switch(z.kind){case 11:case 9:case 80:return!0}return!1}function p(z,j,J,K,Y){H.assert(z.end>=j,"Adjusting an element that was entirely before the change range"),H.assert(z.pos<=J,"Adjusting an element that was entirely after the change range"),H.assert(z.pos<=z.end);const oe=Math.min(z.pos,K),se=z.end>=J?z.end+Y:Math.min(z.end,K);H.assert(oe<=se),z.parent&&(H.assertGreaterThanOrEqual(oe,z.parent.pos),H.assertLessThanOrEqual(se,z.parent.end)),t_(z,oe,se)}function E(z,j){if(j){let J=z.pos;const K=Y=>{H.assert(Y.pos>=J),J=Y.end};if(lm(z))for(const Y of z.jsDoc)K(Y);ao(z,K),H.assert(J<=z.end)}}function v(z,j,J,K,Y,oe,se,ge){ae(z);return;function ae(ne){if(H.assert(ne.pos<=ne.end),ne.pos>J){d(ne,!1,Y,oe,se,ge);return}const ve=ne.end;if(ve>=j){if(ne.intersectsChange=!0,ne._children=void 0,p(ne,j,J,K,Y),ao(ne,ae,Ce),lm(ne))for(const Se of ne.jsDoc)ae(Se);E(ne,ge);return}H.assert(veJ){d(ne,!0,Y,oe,se,ge);return}const ve=ne.end;if(ve>=j){ne.intersectsChange=!0,ne._children=void 0,p(ne,j,J,K,Y);for(const Se of ne)ae(Se);return}H.assert(ve0&&se<=1;se++){const ge=B(z,K);H.assert(ge.pos<=K);const ae=ge.pos;K=Math.max(0,ae-1)}const Y=Vc(K,Ec(j.span)),oe=j.newLength+(j.span.start-K);return OO(Y,oe)}function B(z,j){let J=z,K;if(ao(z,oe),K){const se=Y(K);se.pos>J.pos&&(J=se)}return J;function Y(se){for(;;){const ge=Ele(se);if(ge)se=ge;else return se}}function oe(se){if(!Ql(se))if(se.pos<=j){if(se.pos>=J.pos&&(J=se),jj),!0}}function k(z,j,J,K){const Y=z.text;if(J&&(H.assert(Y.length-J.span.length+J.newLength===j.length),K||H.shouldAssert(3))){const oe=Y.substr(0,J.span.start),se=j.substr(0,J.span.start);H.assert(oe===se);const ge=Y.substring(Ec(J.span),Y.length),ae=j.substring(Ec(MN(J)),j.length);H.assert(ge===ae)}}function T(z){let j=z.statements,J=0;H.assert(J=Ce.pos&&se=Ce.pos&&se{z[z.Value=-1]="Value"})(M||(M={}))})(Yce||(Yce={})),Qce=new Map,OQe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,jQe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function SY(t){const u=new Map,s=new Map;return L(t,d=>{u.set(d.name.toLowerCase(),d),d.shortName&&s.set(d.shortName,d.name)}),{optionsNameMap:u,shortOptionNames:s}}function jB(){return yXe||(yXe=SY(a3))}function GFe(t){return VQe(t,cc)}function VQe(t,u){const s=ga(t.type.keys()),d=(t.deprecatedKeys?s.filter(f=>!t.deprecatedKeys.has(f)):s).map(f=>`'${f}'`).join(", ");return u(F.Argument_for_0_option_must_be_Colon_1,`--${t.name}`,d)}function BY(t,u,s){return DXe(t,(u??"").trim(),s)}function JFe(t,u="",s){if(u=u.trim(),Pa(u,"-"))return;if(t.type==="listOrElement"&&!u.includes(","))return J7(t,u,s);if(u==="")return[];const d=u.split(",");switch(t.element.type){case"number":return qi(d,f=>J7(t.element,parseInt(f),s));case"string":return qi(d,f=>J7(t.element,f||"",s));case"boolean":case"object":return H.fail(`List of ${t.element.type} is not yet supported.`);default:return qi(d,f=>BY(t.element,f,s))}}function HQe(t){return t.name}function $Fe(t,u,s,d,f){var p;if((p=u.alternateMode)!=null&&p.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return Kv(f,d,u.alternateMode.diagnostic,t);const E=bN(t,u.optionDeclarations,HQe);return E?Kv(f,d,u.unknownDidYouMeanDiagnostic,s||t,E.name):Kv(f,d,u.unknownOptionDiagnostic,s||t)}function Xce(t,u,s){const d={};let f;const p=[],E=[];return v(u),{options:d,watchOptions:f,fileNames:p,errors:E};function v(B){let k=0;for(;kc1.readFile(z)));if(!Ja(k)){E.push(k);return}const T=[];let M=0;for(;;){for(;M=k.length)break;const z=M;if(k.charCodeAt(z)===34){for(M++;M32;)M++;T.push(k.substring(z,M))}}v(T)}}function KQe(t,u,s,d,f,p){if(d.isTSConfigOnly){const E=t[u];E==="null"?(f[d.name]=void 0,u++):d.type==="boolean"?E==="false"?(f[d.name]=J7(d,!1,p),u++):(E==="true"&&u++,p.push(cc(F.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,d.name))):(p.push(cc(F.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,d.name)),E&&!Pa(E,"-")&&u++)}else if(!t[u]&&d.type!=="boolean"&&p.push(cc(s.optionTypeMismatchDiagnostic,d.name,nde(d))),t[u]!=="null")switch(d.type){case"number":f[d.name]=J7(d,parseInt(t[u]),p),u++;break;case"boolean":const E=t[u];f[d.name]=J7(d,E!=="false",p),(E==="false"||E==="true")&&u++;break;case"string":f[d.name]=J7(d,t[u]||"",p),u++;break;case"list":const v=JFe(d,t[u],p);f[d.name]=v||[],v&&u++;break;case"listOrElement":H.fail("listOrElement not supported here");break;default:f[d.name]=BY(d,t[u],p),u++;break}else f[d.name]=void 0,u++;return u}function WQe(t,u){return Xce(tH,t,u)}function ede(t,u){return UFe(jB,t,u)}function UFe(t,u,s=!1){u=u.toLowerCase();const{optionsNameMap:d,shortOptionNames:f}=t();if(s){const p=f.get(u);p!==void 0&&(u=p)}return d.get(u)}function GQe(){return FXe||(FXe=SY(MY))}function JQe(t){const{options:u,watchOptions:s,fileNames:d,errors:f}=Xce(SXe,t),p=u;return d.length===0&&d.push("."),p.clean&&p.force&&f.push(cc(F.Options_0_and_1_cannot_be_combined,"clean","force")),p.clean&&p.verbose&&f.push(cc(F.Options_0_and_1_cannot_be_combined,"clean","verbose")),p.clean&&p.watch&&f.push(cc(F.Options_0_and_1_cannot_be_combined,"clean","watch")),p.watch&&p.dry&&f.push(cc(F.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:p,watchOptions:s,projects:d,errors:f}}function $Qe(t,...u){return Po(cc(t,...u).messageText,Ja)}function GV(t,u,s,d,f,p){const E=rM(t,B=>s.readFile(B));if(!Ja(E)){s.onUnRecoverableConfigFileDiagnostic(E);return}const v=WV(t,E),b=s.getCurrentDirectory();return v.path=J0(t,b,L1(s.useCaseSensitiveFileNames)),v.resolvedPath=v.path,v.originalFileName=v.fileName,UV(v,s,$a(lr(t),b),u,$a(t,b),void 0,p,d,f)}function JV(t,u){const s=rM(t,u);return Ja(s)?tde(t,s):{config:{},error:s}}function tde(t,u){const s=WV(t,u);return{config:QQe(s,s.parseDiagnostics,void 0),error:s.parseDiagnostics.length?s.parseDiagnostics[0]:void 0}}function qFe(t,u){const s=rM(t,u);return Ja(s)?WV(t,s):{fileName:t,parseDiagnostics:[s]}}function rM(t,u){let s;try{s=u(t)}catch(d){return cc(F.Cannot_read_file_0_Colon_1,t,d.message)}return s===void 0?cc(F.Cannot_read_file_0,t):s}function ide(t){return lg(t,HQe)}function UQe(){return BXe||(BXe=SY(VB))}function qQe(){return wXe||(wXe=ide(a3))}function ZQe(){return TXe||(TXe=ide(VB))}function YQe(){return LXe||(LXe=ide(eH))}function DNt(){return lAe===void 0&&(lAe={name:void 0,type:"object",elementOptions:ide([aAe,oAe,sAe,iH,{name:"references",type:"list",element:{name:"references",type:"object"},category:F.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:F.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:F.File_Management,defaultValueDescription:F.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:F.File_Management,defaultValueDescription:F.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},ZV])}),lAe}function QQe(t,u,s){var d;const f=(d=t.statements[0])==null?void 0:d.expression;if(f&&f.kind!==210){if(u.push(K4(t,f,F.The_root_value_of_a_0_file_must_be_an_object,Ac(t.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Dh(f)){const p=Le(f.elements,ys);if(p)return $V(t,p,u,!0,s)}return{}}return $V(t,f,u,!0,s)}function ZFe(t,u){var s;return $V(t,(s=t.statements[0])==null?void 0:s.expression,u,!0,void 0)}function $V(t,u,s,d,f){if(!u)return d?{}:void 0;return v(u,f==null?void 0:f.rootOptions);function p(B,k){var T;const M=d?{}:void 0;for(const z of B.properties){if(z.kind!==303){s.push(K4(t,z,F.Property_assignment_expected));continue}z.questionToken&&s.push(K4(t,z.questionToken,F.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),b(z.name)||s.push(K4(t,z.name,F.String_literal_with_double_quotes_expected));const j=oj(z.name)?void 0:V8(z.name),J=j&&Yr(j),K=J?(T=k==null?void 0:k.elementOptions)==null?void 0:T.get(J):void 0,Y=v(z.initializer,K);typeof J<"u"&&(d&&(M[J]=Y),f==null||f.onPropertySet(J,Y,z,k,K))}return M}function E(B,k){if(!d){B.forEach(T=>v(T,k));return}return ti(B.map(T=>v(T,k)),T=>T!==void 0)}function v(B,k){switch(B.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return b(B)||s.push(K4(t,B,F.String_literal_with_double_quotes_expected)),B.text;case 9:return Number(B.text);case 224:if(B.operator!==41||B.operand.kind!==9)break;return-Number(B.operand.text);case 210:return p(B,k);case 209:return E(B.elements,k&&k.element)}k?s.push(K4(t,B,F.Compiler_option_0_requires_a_value_of_type_1,k.name,nde(k))):s.push(K4(t,B,F.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function b(B){return us(B)&&Cq(B,t)}}function nde(t){return t.type==="listOrElement"?`${nde(t.element)} or Array`:t.type==="list"?"Array":Ja(t.type)?t.type:"string"}function XQe(t,u){if(t){if(qV(u))return!t.disallowNullOrUndefined;if(t.type==="list")return Ha(u);if(t.type==="listOrElement")return Ha(u)||XQe(t.element,u);const s=Ja(t.type)?t.type:"string";return typeof u===s}return!1}function eXe(t,u,s){var d,f,p;const E=L1(s.useCaseSensitiveFileNames),v=Vt(ti(t.fileNames,(f=(d=t.options.configFile)==null?void 0:d.configFileSpecs)!=null&&f.validatedIncludeSpecs?vNt(u,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,s):J3),T=>SO($a(u,s.getCurrentDirectory()),$a(T,s.getCurrentDirectory()),E)),b=ade(t.options,{configFilePath:$a(u,s.getCurrentDirectory()),useCaseSensitiveFileNames:s.useCaseSensitiveFileNames}),B=t.watchOptions&&CNt(t.watchOptions);return{compilerOptions:{...ude(b),showConfig:void 0,configFile:void 0,configFilePath:void 0,help:void 0,init:void 0,listFiles:void 0,listEmittedFiles:void 0,project:void 0,build:void 0,version:void 0},watchOptions:B&&ude(B),references:Vt(t.projectReferences,T=>({...T,path:T.originalPath?T.originalPath:"",originalPath:void 0})),files:S(v)?v:void 0,...(p=t.options.configFile)!=null&&p.configFileSpecs?{include:xNt(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:t.compileOnSave?!0:void 0}}function ude(t){return{...ga(t.entries()).reduce((u,s)=>({...u,[s[0]]:s[1]}),{})}}function xNt(t){if(S(t)){if(S(t)!==1)return t;if(t[0]!==RY)return t}}function vNt(t,u,s,d){if(!u)return J3;const f=aZ(t,s,u,d.useCaseSensitiveFileNames,d.getCurrentDirectory()),p=f.excludePattern&&jx(f.excludePattern,d.useCaseSensitiveFileNames),E=f.includeFilePattern&&jx(f.includeFilePattern,d.useCaseSensitiveFileNames);return E?p?v=>!(E.test(v)&&!p.test(v)):v=>!E.test(v):p?v=>p.test(v):J3}function tXe(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return tXe(t.element);default:return t.type}}function rde(t,u){return h1(u,(s,d)=>{if(s===t)return d})}function ade(t,u){return iXe(t,jB(),u)}function CNt(t){return iXe(t,UQe())}function iXe(t,{optionsNameMap:u},s){const d=new Map,f=s&&L1(s.useCaseSensitiveFileNames);for(const p in t)if(gu(t,p)){if(u.has(p)&&(u.get(p).category===F.Command_line_Options||u.get(p).category===F.Output_Formatting))continue;const E=t[p],v=u.get(p.toLowerCase());if(v){H.assert(v.type!=="listOrElement");const b=tXe(v);b?v.type==="list"?d.set(p,E.map(B=>rde(B,b))):d.set(p,rde(E,b)):s&&v.isFilePath?d.set(p,SO(s.configFilePath,$a(E,lr(s.configFilePath)),f)):d.set(p,E)}}return d}function nXe(t,u){const s=uXe(t);return f();function d(p){return Array(p+1).join(" ")}function f(){const p=[],E=d(2);return dde.forEach(v=>{if(!s.has(v.name))return;const b=s.get(v.name),B=iAe(v);b!==B?p.push(`${E}${v.name}: ${b}`):gu(zY,v.name)&&p.push(`${E}${v.name}: ${B}`)}),p.join(u)+u}}function uXe(t){const u=$$(t,zY);return ade(u)}function rXe(t,u,s){const d=uXe(t);return E();function f(v){return Array(v+1).join(" ")}function p({category:v,name:b,isCommandLineOnly:B}){const k=[F.Command_line_Options,F.Editor_Support,F.Compiler_Diagnostics,F.Backwards_Compatibility,F.Watch_and_Build_Modes,F.Output_Formatting];return!B&&v!==void 0&&(!k.includes(v)||d.has(b))}function E(){const v=new Map;v.set(F.Projects,[]),v.set(F.Language_and_Environment,[]),v.set(F.Modules,[]),v.set(F.JavaScript_Support,[]),v.set(F.Emit,[]),v.set(F.Interop_Constraints,[]),v.set(F.Type_Checking,[]),v.set(F.Completeness,[]);for(const z of a3)if(p(z)){let j=v.get(z.category);j||v.set(z.category,j=[]),j.push(z)}let b=0,B=0;const k=[];v.forEach((z,j)=>{k.length!==0&&k.push({value:""}),k.push({value:`/* ${to(j)} */`});for(const J of z){let K;d.has(J.name)?K=`"${J.name}": ${JSON.stringify(d.get(J.name))}${(B+=1)===d.size?"":","}`:K=`// "${J.name}": ${JSON.stringify(iAe(J))},`,k.push({value:K,description:`/* ${J.description&&to(J.description)||J.name} */`}),b=Math.max(K.length,b)}});const T=f(2),M=[];M.push("{"),M.push(`${T}"compilerOptions": {`),M.push(`${T}${T}/* ${to(F.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),M.push("");for(const z of k){const{value:j,description:J=""}=z;M.push(j&&`${T}${T}${j}${J&&f(b-j.length+2)+J}`)}if(u.length){M.push(`${T}},`),M.push(`${T}"files": [`);for(let z=0;ztypeof Ae=="object","object"),Se=ge(ae("files"));if(Se){const Ae=ve==="no-prop"||Ha(ve)&&ve.length===0,De=gu(M,"extends");if(Se.length===0&&Ae&&!De)if(u){const Ke=E||"tsconfig.json",Je=F.The_files_list_in_config_file_0_is_empty,ft=hj(u,"files",Ve=>Ve.initializer),Ye=Kv(u,ft,Je,Ke);k.push(Ye)}else ne(F.The_files_list_in_config_file_0_is_empty,E||"tsconfig.json")}let Ne=ge(ae("include"));const pe=ae("exclude");let fe=!1,xe=ge(pe);if(pe==="no-prop"&&M.compilerOptions){const Ae=M.compilerOptions.outDir,De=M.compilerOptions.declarationDir;(Ae||De)&&(xe=[Ae,De].filter(Ke=>!!Ke))}Se===void 0&&Ne===void 0&&(Ne=[RY],fe=!0);let Be,Ge;return Ne&&(Be=bXe(Ne,k,!0,u,"include")),xe&&(Ge=bXe(xe,k,!1,u,"exclude")),{filesSpecs:Se,includeSpecs:Ne,excludeSpecs:xe,validatedFilesSpec:ti(Se,Ja),validatedIncludeSpecs:Be,validatedExcludeSpecs:Ge,pathPatterns:void 0,isDefaultIncludeSpec:fe}}function oe(ve){const Se=oM(J,ve,z,s,b);return cXe(Se,aM(M),v)&&k.push(lXe(J,E)),Se}function se(ve){let Se;const Ne=Ce("references",pe=>typeof pe=="object","object");if(Ha(Ne))for(const pe of Ne)typeof pe.path!="string"?ne(F.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Se||(Se=[])).push({path:$a(pe.path,ve),originalPath:pe.path,prepend:pe.prepend,circular:pe.circular});return Se}function ge(ve){return Ha(ve)?ve:void 0}function ae(ve){return Ce(ve,Ja,"string")}function Ce(ve,Se,Ne){if(gu(M,ve)&&!qV(M[ve]))if(Ha(M[ve])){const pe=M[ve];return!u&&!ye(pe,Se)&&k.push(cc(F.Compiler_option_0_requires_a_value_of_type_1,ve,Ne)),pe}else return ne(F.Compiler_option_0_requires_a_value_of_type_1,ve,"Array"),"not-array";return"no-prop"}function ne(ve,...Se){u||k.push(cc(ve,...Se))}}function yNt(t){return t.code===F.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function lXe({includeSpecs:t,excludeSpecs:u},s){return cc(F.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,s||"tsconfig.json",JSON.stringify(t||[]),JSON.stringify(u||[]))}function cXe(t,u,s){return t.length===0&&u&&(!s||s.length===0)}function aM(t){return!gu(t,"files")&&!gu(t,"references")}function wY(t,u,s,d,f){const p=d.length;return cXe(t,f)?d.push(lXe(s,u)):Uu(d,E=>!yNt(E)),p!==d.length}function kNt(t){return!!t.options}function dXe(t,u,s,d,f,p,E,v){var b;d=q1(d);const B=$a(f||"",d);if(p.includes(B))return E.push(cc(F.Circularity_detected_while_resolving_configuration_Colon_0,[...p,B].join(" -> "))),{raw:t||ZFe(u,E)};const k=t?FNt(t,s,d,f,E):ANt(u,s,d,f,E);if((b=k.options)!=null&&b.paths&&(k.options.pathsBasePath=d),k.extendedConfigPath){p=p.concat([B]);const M={options:{}};Ja(k.extendedConfigPath)?T(M,k.extendedConfigPath):k.extendedConfigPath.forEach(z=>T(M,z)),!k.raw.include&&M.include&&(k.raw.include=M.include),!k.raw.exclude&&M.exclude&&(k.raw.exclude=M.exclude),!k.raw.files&&M.files&&(k.raw.files=M.files),k.raw.compileOnSave===void 0&&M.compileOnSave&&(k.raw.compileOnSave=M.compileOnSave),u&&M.extendedSourceFiles&&(u.extendedSourceFiles=ga(M.extendedSourceFiles.keys())),k.options=VE(M.options,k.options),k.watchOptions=k.watchOptions&&M.watchOptions?VE(M.watchOptions,k.watchOptions):k.watchOptions||M.watchOptions}return k;function T(M,z){const j=SNt(u,z,s,p,E,v,M);if(j&&kNt(j)){const J=j.raw;let K;const Y=oe=>{J[oe]&&(M[oe]=Vt(J[oe],se=>Pf(se)?se:cr(K||(K=wN(lr(z),d,L1(s.useCaseSensitiveFileNames))),se)))};Y("include"),Y("exclude"),Y("files"),J.compileOnSave!==void 0&&(M.compileOnSave=J.compileOnSave),VE(M.options,j.options),M.watchOptions=M.watchOptions&&j.watchOptions?VE({},M.watchOptions,j.watchOptions):M.watchOptions||j.watchOptions}}}function FNt(t,u,s,d,f){gu(t,"excludes")&&f.push(cc(F.Unknown_option_excludes_Did_you_mean_exclude));const p=EXe(t.compilerOptions,s,f,d),E=_Xe(t.typeAcquisition,s,f,d),v=wNt(t.watchOptions,s,f);t.compileOnSave=BNt(t,s,f);const b=t.extends||t.extends===""?hXe(t.extends,u,s,d,f):void 0;return{raw:t,options:p,watchOptions:v,typeAcquisition:E,extendedConfigPath:b}}function hXe(t,u,s,d,f,p,E,v){let b;const B=d?oXe(d,s):s;if(Ja(t))b=fXe(t,u,B,f,E,v);else if(Ha(t)){b=[];for(let k=0;koe.name===z)&&(B=xi(B,J.name))))}}function fXe(t,u,s,d,f,p){if(t=q1(t),Pf(t)||Pa(t,"./")||Pa(t,"../")){let v=$a(t,s);if(!u.fileExists(v)&&!sc(v,".json")&&(v=`${v}.json`,!u.fileExists(v))){d.push(Kv(p,f,F.File_0_not_found,t));return}return v}const E=_Ae(t,cr(s,"tsconfig.json"),u);if(E.resolvedModule)return E.resolvedModule.resolvedFileName;t===""?d.push(Kv(p,f,F.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):d.push(Kv(p,f,F.File_0_not_found,t))}function SNt(t,u,s,d,f,p,E){const v=s.useCaseSensitiveFileNames?u:$g(u);let b,B,k;if(p&&(b=p.get(v))?{extendedResult:B,extendedConfig:k}=b:(B=qFe(u,T=>s.readFile(T)),B.parseDiagnostics.length||(k=dXe(void 0,B,s,lr(u),Ac(u),d,f,p)),p&&p.set(v,{extendedResult:B,extendedConfig:k})),t&&((E.extendedSourceFiles??(E.extendedSourceFiles=new Set)).add(B.fileName),B.extendedSourceFiles))for(const T of B.extendedSourceFiles)E.extendedSourceFiles.add(T);if(B.parseDiagnostics.length){f.push(...B.parseDiagnostics);return}return k}function BNt(t,u,s){if(!gu(t,ZV.name))return!1;const d=Sk(ZV,t.compileOnSave,u,s);return typeof d=="boolean"&&d}function mXe(t,u,s){const d=[];return{options:EXe(t,u,d,s),errors:d}}function pXe(t,u,s){const d=[];return{options:_Xe(t,u,d,s),errors:d}}function gXe(t){return t&&Ac(t)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function EXe(t,u,s,d){const f=gXe(d);return YFe(qQe(),t,u,f,tH,s),d&&(f.configFilePath=q1(d)),f}function lde(t){return{enable:!!t&&Ac(t)==="jsconfig.json",include:[],exclude:[]}}function _Xe(t,u,s,d){const f=lde(d);return YFe(YQe(),t,u,f,rAe,s),f}function wNt(t,u,s){return YFe(ZQe(),t,u,void 0,IY,s)}function YFe(t,u,s,d,f,p){if(u){for(const E in u){const v=t.get(E);v?(d||(d={}))[v.name]=Sk(v,u[E],s,p):p.push($Fe(E,f))}return d}}function Kv(t,u,s,...d){return t&&u?K4(t,u,s,...d):cc(s,...d)}function Sk(t,u,s,d,f,p,E){if(t.isCommandLineOnly){d.push(Kv(E,f==null?void 0:f.name,F.Option_0_can_only_be_specified_on_command_line,t.name));return}if(XQe(t,u)){const v=t.type;if(v==="list"&&Ha(u))return xXe(t,u,s,d,f,p,E);if(v==="listOrElement")return Ha(u)?xXe(t,u,s,d,f,p,E):Sk(t.element,u,s,d,f,p,E);if(!Ja(t.type))return DXe(t,u,d,p,E);const b=J7(t,u,d,p,E);return qV(b)?b:TNt(t,s,b)}else d.push(Kv(E,p,F.Compiler_option_0_requires_a_value_of_type_1,t.name,nde(t)))}function TNt(t,u,s){return t.isFilePath&&(s=$a(s,u),s===""&&(s=".")),s}function J7(t,u,s,d,f){var p;if(qV(u))return;const E=(p=t.extraValidation)==null?void 0:p.call(t,u);if(!E)return u;s.push(Kv(f,d,...E))}function DXe(t,u,s,d,f){if(qV(u))return;const p=u.toLowerCase(),E=t.type.get(p);if(E!==void 0)return J7(t,E,s,d,f);s.push(VQe(t,(v,...b)=>Kv(f,d,v,...b)))}function xXe(t,u,s,d,f,p,E){return ti(Vt(u,(v,b)=>Sk(t.element,v,s,d,f,p==null?void 0:p.elements[b],E)),v=>t.listPreserveFalsyValues?!0:!!v)}function oM(t,u,s,d,f=_t){u=$o(u);const p=L1(d.useCaseSensitiveFileNames),E=new Map,v=new Map,b=new Map,{validatedFilesSpec:B,validatedIncludeSpecs:k,validatedExcludeSpecs:T}=t,M=kP(s,f),z=tV(s,M);if(B)for(const Y of B){const oe=$a(Y,u);E.set(p(oe),oe)}let j;if(k&&k.length>0)for(const Y of d.readDirectory(u,Va(z),T,k,void 0)){if(Ml(Y,".json")){if(!j){const ge=k.filter(Ce=>sc(Ce,".json")),ae=Vt(rZ(ge,u,"files"),Ce=>`^${Ce}$`);j=ae?ae.map(Ce=>jx(Ce,d.useCaseSensitiveFileNames)):_t}if(Ue(j,ge=>ge.test(Y))!==-1){const ge=p(Y);!E.has(ge)&&!b.has(ge)&&b.set(ge,Y)}continue}if(PNt(Y,E,v,M,p))continue;MNt(Y,v,M,p);const oe=p(Y);!E.has(oe)&&!v.has(oe)&&v.set(oe,Y)}const J=ga(E.values()),K=ga(v.values());return J.concat(K,ga(b.values()))}function QFe(t,u,s,d,f){const{validatedFilesSpec:p,validatedIncludeSpecs:E,validatedExcludeSpecs:v}=u;if(!S(E)||!S(v))return!1;s=$o(s);const b=L1(d);if(p){for(const B of p)if(b($a(B,s))===t)return!1}return CXe(t,v,d,f,s)}function vXe(t){const u=Pa(t,"**/")?0:t.indexOf("/**/");return u===-1?!1:(sc(t,"/..")?t.length:t.lastIndexOf("/../"))>u}function TY(t,u,s,d){return CXe(t,ti(u,f=>!vXe(f)),s,d)}function CXe(t,u,s,d,f){const p=yP(u,cr($o(d),f),"exclude"),E=p&&jx(p,s);return E?E.test(t)?!0:!t7(t)&&E.test(zd(t)):!1}function bXe(t,u,s,d,f){return t.filter(E=>{if(!Ja(E))return!1;const v=XFe(E,s);return v!==void 0&&u.push(p(...v)),v===void 0});function p(E,v){const b=cq(d,f,v);return Kv(d,b,E,v)}}function XFe(t,u){if(H.assert(typeof t=="string"),u&&NXe.test(t))return[F.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t];if(vXe(t))return[F.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}function LNt({validatedIncludeSpecs:t,validatedExcludeSpecs:u},s,d){const f=yP(u,s,"exclude"),p=f&&new RegExp(f,d?"":"i"),E={};if(t!==void 0){const v=[];for(const b of t){const B=$o(cr(s,b));if(p&&p.test(B))continue;const k=NNt(B,d);if(k){const{key:T,flags:M}=k,z=E[T];(z===void 0||zjc(t,E)?E:void 0);if(!p)return!1;for(const E of p){if(Ml(t,E)&&(E!==".ts"||!Ml(t,".d.ts")))return!1;const v=f(wv(t,E));if(u.has(v)||s.has(v)){if(E===".d.ts"&&(Ml(t,".js")||Ml(t,".jsx")))continue;return!0}}return!1}function MNt(t,u,s,d){const f=L(s,p=>jc(t,p)?p:void 0);if(f)for(let p=f.length-1;p>=0;p--){const E=f[p];if(Ml(t,E))return;const v=d(wv(t,E));u.delete(v)}}function eAe(t){const u={};for(const s in t)if(gu(t,s)){const d=ede(s);d!==void 0&&(u[s]=tAe(t[s],d))}return u}function tAe(t,u){if(t===void 0)return t;switch(u.type){case"object":return"";case"string":return"";case"number":return typeof t=="number"?t:"";case"boolean":return typeof t=="boolean"?t:"";case"listOrElement":if(!Ha(t))return tAe(t,u.element);case"list":const s=u.element;return Ha(t)?qi(t,d=>tAe(d,s)):"";default:return h1(u.type,(d,f)=>{if(d===t)return f})}}function iAe(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":const u=t.defaultValueDescription;return t.isFilePath?`./${u&&typeof u=="string"?u:""}`:"";case"list":return[];case"listOrElement":return iAe(t.element);case"object":return{};default:const s=Hn(t.type.keys());return s!==void 0?s:H.fail("Expected 'option.type' to have entries.")}}var ZV,nAe,sM,uAe,YV,LY,VB,QV,XV,cde,dde,a3,hde,fde,mde,NY,PY,pde,gde,Ede,MY,eH,yXe,kXe,zY,tH,FXe,AXe,SXe,rAe,BXe,IY,wXe,TXe,LXe,iH,aAe,oAe,sAe,lAe,RY,NXe,PXe,zNt=o({"src/compiler/commandLineParser.ts"(){Bo(),ZV={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},nAe=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),sM=new Map(zr(nAe.entries(),([t,u])=>[""+u,t])),uAe=[["es5","lib.es5.d.ts"],["es6","lib.es2015.d.ts"],["es2015","lib.es2015.d.ts"],["es7","lib.es2016.d.ts"],["es2016","lib.es2016.d.ts"],["es2017","lib.es2017.d.ts"],["es2018","lib.es2018.d.ts"],["es2019","lib.es2019.d.ts"],["es2020","lib.es2020.d.ts"],["es2021","lib.es2021.d.ts"],["es2022","lib.es2022.d.ts"],["es2023","lib.es2023.d.ts"],["esnext","lib.esnext.d.ts"],["dom","lib.dom.d.ts"],["dom.iterable","lib.dom.iterable.d.ts"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.d.ts"],["scripthost","lib.scripthost.d.ts"],["es2015.core","lib.es2015.core.d.ts"],["es2015.collection","lib.es2015.collection.d.ts"],["es2015.generator","lib.es2015.generator.d.ts"],["es2015.iterable","lib.es2015.iterable.d.ts"],["es2015.promise","lib.es2015.promise.d.ts"],["es2015.proxy","lib.es2015.proxy.d.ts"],["es2015.reflect","lib.es2015.reflect.d.ts"],["es2015.symbol","lib.es2015.symbol.d.ts"],["es2015.symbol.wellknown","lib.es2015.symbol.wellknown.d.ts"],["es2016.array.include","lib.es2016.array.include.d.ts"],["es2017.date","lib.es2017.date.d.ts"],["es2017.object","lib.es2017.object.d.ts"],["es2017.sharedmemory","lib.es2017.sharedmemory.d.ts"],["es2017.string","lib.es2017.string.d.ts"],["es2017.intl","lib.es2017.intl.d.ts"],["es2017.typedarrays","lib.es2017.typedarrays.d.ts"],["es2018.asyncgenerator","lib.es2018.asyncgenerator.d.ts"],["es2018.asynciterable","lib.es2018.asynciterable.d.ts"],["es2018.intl","lib.es2018.intl.d.ts"],["es2018.promise","lib.es2018.promise.d.ts"],["es2018.regexp","lib.es2018.regexp.d.ts"],["es2019.array","lib.es2019.array.d.ts"],["es2019.object","lib.es2019.object.d.ts"],["es2019.string","lib.es2019.string.d.ts"],["es2019.symbol","lib.es2019.symbol.d.ts"],["es2019.intl","lib.es2019.intl.d.ts"],["es2020.bigint","lib.es2020.bigint.d.ts"],["es2020.date","lib.es2020.date.d.ts"],["es2020.promise","lib.es2020.promise.d.ts"],["es2020.sharedmemory","lib.es2020.sharedmemory.d.ts"],["es2020.string","lib.es2020.string.d.ts"],["es2020.symbol.wellknown","lib.es2020.symbol.wellknown.d.ts"],["es2020.intl","lib.es2020.intl.d.ts"],["es2020.number","lib.es2020.number.d.ts"],["es2021.promise","lib.es2021.promise.d.ts"],["es2021.string","lib.es2021.string.d.ts"],["es2021.weakref","lib.es2021.weakref.d.ts"],["es2021.intl","lib.es2021.intl.d.ts"],["es2022.array","lib.es2022.array.d.ts"],["es2022.error","lib.es2022.error.d.ts"],["es2022.intl","lib.es2022.intl.d.ts"],["es2022.object","lib.es2022.object.d.ts"],["es2022.sharedmemory","lib.es2022.sharedmemory.d.ts"],["es2022.string","lib.es2022.string.d.ts"],["es2022.regexp","lib.es2022.regexp.d.ts"],["es2023.array","lib.es2023.array.d.ts"],["es2023.collection","lib.es2023.collection.d.ts"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.es2023.collection.d.ts"],["esnext.symbol","lib.es2019.symbol.d.ts"],["esnext.asynciterable","lib.es2018.asynciterable.d.ts"],["esnext.intl","lib.esnext.intl.d.ts"],["esnext.disposable","lib.esnext.disposable.d.ts"],["esnext.bigint","lib.es2020.bigint.d.ts"],["esnext.string","lib.es2022.string.d.ts"],["esnext.promise","lib.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],YV=uAe.map(t=>t[0]),LY=new Map(uAe),VB=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:F.Watch_and_Build_Modes,description:F.Specify_how_the_TypeScript_watch_mode_works,defaultValueDescription:4},{name:"watchDirectory",type:new Map(Object.entries({usefsevents:0,fixedpollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3})),category:F.Watch_and_Build_Modes,description:F.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,defaultValueDescription:0},{name:"fallbackPolling",type:new Map(Object.entries({fixedinterval:0,priorityinterval:1,dynamicpriority:2,fixedchunksize:3})),category:F.Watch_and_Build_Modes,description:F.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:F.Watch_and_Build_Modes,description:F.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,defaultValueDescription:!1},{name:"excludeDirectories",type:"list",element:{name:"excludeDirectory",type:"string",isFilePath:!0,extraValidation:XFe},category:F.Watch_and_Build_Modes,description:F.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:XFe},category:F.Watch_and_Build_Modes,description:F.Remove_a_list_of_files_from_the_watch_mode_s_processing}],QV=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:F.Command_line_Options,description:F.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:F.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:F.Command_line_Options,description:F.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:F.Output_Formatting,description:F.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:F.Output_Formatting,description:F.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:F.Compiler_Diagnostics,description:F.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:F.Compiler_Diagnostics,description:F.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:F.Compiler_Diagnostics,description:F.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:F.FILE_OR_DIRECTORY,category:F.Compiler_Diagnostics,description:F.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:F.DIRECTORY,category:F.Compiler_Diagnostics,description:F.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:F.Projects,description:F.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:F.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,transpileOptionValue:void 0,description:F.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:F.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:F.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,defaultValueDescription:!1,description:F.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:F.Emit,description:F.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Watch_and_Build_Modes,description:F.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it,defaultValueDescription:!1},{name:"locale",type:"string",category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:F.Platform_specific}],XV={name:"target",shortName:"t",type:new Map(Object.entries({es3:0,es5:1,es6:2,es2015:2,es2016:3,es2017:4,es2018:5,es2019:6,es2020:7,es2021:8,es2022:9,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:F.VERSION,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},cde={name:"module",shortName:"m",type:new Map(Object.entries({none:0,commonjs:1,amd:2,system:4,umd:3,es6:5,es2015:5,es2020:6,es2022:7,esnext:99,node16:100,nodenext:199})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:F.KIND,showInSimplifiedHelpView:!0,category:F.Modules,description:F.Specify_what_module_code_is_generated,defaultValueDescription:void 0},dde=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:F.Command_line_Options,paramType:F.FILE_OR_DIRECTORY,description:F.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json},{name:"build",type:"boolean",shortName:"b",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},XV,cde,{name:"lib",type:"list",element:{name:"lib",type:LY,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,transpileOptionValue:void 0},{name:"allowJs",type:"boolean",allowJsFlag:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.JavaScript_Support,description:F.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,defaultValueDescription:!1},{name:"checkJs",type:"boolean",affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.JavaScript_Support,description:F.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:nAe,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:F.KIND,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.FILE,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,transpileOptionValue:void 0},{name:"outDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.DIRECTORY,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.LOCATION,category:F.Modules,description:F.Specify_the_root_folder_within_your_source_files,defaultValueDescription:F.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:F.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:F.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:F.FILE,category:F.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:F.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,defaultValueDescription:!1,description:F.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:F.Emit,description:F.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,defaultValueDescription:!1},{name:"importsNotUsedAsValues",type:new Map(Object.entries({remove:0,preserve:1,error:2})),affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:F.Interop_Constraints,description:F.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:F.Interop_Constraints,description:F.Do_not_transform_or_elide_any_imports_or_exports_not_marked_as_type_only_ensuring_they_are_written_in_the_output_file_s_format_based_on_the_module_setting,defaultValueDescription:!1},{name:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Type_Checking,description:F.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:F.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:F.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:F.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Ensure_use_strict_is_always_emitted,defaultValueDescription:F.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,defaultValueDescription:!1},{name:"noFallthroughCasesInSwitch",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier,defaultValueDescription:!1},{name:"noPropertyAccessFromIndexSignature",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!1,category:F.Type_Checking,description:F.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,defaultValueDescription:!1},{name:"moduleResolution",type:new Map(Object.entries({node10:2,node:2,classic:1,node16:3,nodenext:99,bundler:100})),deprecatedKeys:new Set(["node"]),affectsSourceFile:!0,affectsModuleResolution:!0,paramType:F.STRATEGY,category:F.Modules,description:F.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:F.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:F.Modules,description:F.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:F.Modules,description:F.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,transpileOptionValue:void 0},{name:"rootDirs",type:"list",isTSConfigOnly:!0,element:{name:"rootDirs",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:F.Modules,description:F.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:F.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:F.Modules,description:F.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:F.Modules,description:F.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,transpileOptionValue:void 0},{name:"allowSyntheticDefaultImports",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Interop_Constraints,description:F.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:F.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Interop_Constraints,description:F.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:F.Interop_Constraints,description:F.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,defaultValueDescription:!1},{name:"allowUmdGlobalAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Modules,description:F.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:F.Modules,description:F.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Modules,description:F.Allow_imports_to_include_TypeScript_file_extensions_Requires_moduleResolution_bundler_and_either_noEmit_or_emitDeclarationOnly_to_be_set,defaultValueDescription:!1,transpileOptionValue:void 0},{name:"resolvePackageJsonExports",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:F.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:F.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:F.Modules,description:F.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:F.LOCATION,category:F.Emit,description:F.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:F.LOCATION,category:F.Emit,description:F.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:F.Language_and_Environment,description:F.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,defaultValueDescription:"`React.createElement`"},{name:"jsxFragmentFactory",type:"string",category:F.Language_and_Environment,description:F.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment,defaultValueDescription:"React.Fragment"},{name:"jsxImportSource",type:"string",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,category:F.Language_and_Environment,description:F.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,defaultValueDescription:"react"},{name:"resolveJsonModule",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:F.Modules,description:F.Enable_importing_files_with_any_extension_provided_a_declaration_file_is_present,defaultValueDescription:!1},{name:"out",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!1,category:F.Backwards_Compatibility,paramType:F.FILE,transpileOptionValue:void 0,description:F.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:F.Completeness,description:F.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:F.Backwards_Compatibility,description:F.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,defaultValueDescription:"utf8"},{name:"emitBOM",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,defaultValueDescription:!1},{name:"newLine",type:new Map(Object.entries({crlf:0,lf:1})),affectsEmit:!0,affectsBuildInfo:!0,paramType:F.NEWLINE,category:F.Emit,description:F.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Output_Formatting,description:F.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:F.Language_and_Environment,affectsProgramStructure:!0,description:F.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,transpileOptionValue:!0,defaultValueDescription:!1},{name:"stripInternal",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:F.Editor_Support,description:F.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,defaultValueDescription:!1},{name:"disableSourceOfProjectReferenceRedirect",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,transpileOptionValue:void 0,description:F.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.DIRECTORY,category:F.Emit,transpileOptionValue:void 0,description:F.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:F.Completeness,description:F.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:F.Interop_Constraints,description:F.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:F.JavaScript_Support,description:F.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,defaultValueDescription:0},{name:"noStrictGenericChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:F.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:F.Backwards_Compatibility,description:F.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,defaultValueDescription:!1},{name:"plugins",type:"list",isTSConfigOnly:!0,element:{name:"plugin",type:"object"},description:F.Specify_a_list_of_language_service_plugins_to_include,category:F.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:F.Control_what_method_is_used_to_detect_module_format_JS_files,category:F.Language_and_Environment,defaultValueDescription:F.auto_Colon_Treat_files_with_imports_exports_import_meta_jsx_with_jsx_Colon_react_jsx_or_esm_format_with_module_Colon_node16_as_modules},{name:"ignoreDeprecations",type:"string",defaultValueDescription:void 0}],a3=[...QV,...dde],hde=a3.filter(t=>!!t.affectsSemanticDiagnostics),fde=a3.filter(t=>!!t.affectsEmit),mde=a3.filter(t=>!!t.affectsDeclarationPath),NY=a3.filter(t=>!!t.affectsModuleResolution),PY=a3.filter(t=>!!t.affectsSourceFile||!!t.affectsBindDiagnostics),pde=a3.filter(t=>!!t.affectsProgramStructure),gde=a3.filter(t=>gu(t,"transpileOptionValue")),Ede=[{name:"verbose",shortName:"v",category:F.Command_line_Options,description:F.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:F.Command_line_Options,description:F.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:F.Command_line_Options,description:F.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:F.Command_line_Options,description:F.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],MY=[...QV,...Ede],eH=[{name:"enable",type:"boolean",defaultValueDescription:!1},{name:"include",type:"list",element:{name:"include",type:"string"}},{name:"exclude",type:"list",element:{name:"exclude",type:"string"}},{name:"disableFilenameBasedTypeAcquisition",type:"boolean",defaultValueDescription:!1}],kXe={diagnostic:F.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:GQe},zY={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},tH={alternateMode:kXe,getOptionsNameMap:jB,optionDeclarations:a3,unknownOptionDiagnostic:F.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:F.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Compiler_option_0_expects_an_argument},AXe={diagnostic:F.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:jB},SXe={alternateMode:AXe,getOptionsNameMap:GQe,optionDeclarations:MY,unknownOptionDiagnostic:F.Unknown_build_option_0,unknownDidYouMeanDiagnostic:F.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Build_option_0_requires_a_value_of_type_1},rAe={optionDeclarations:eH,unknownOptionDiagnostic:F.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:F.Unknown_type_acquisition_option_0_Did_you_mean_1},IY={getOptionsNameMap:UQe,optionDeclarations:VB,unknownOptionDiagnostic:F.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:F.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Watch_option_0_requires_a_value_of_type_1},iH={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:F.File_Management,disallowNullOrUndefined:!0},aAe={name:"compilerOptions",type:"object",elementOptions:qQe(),extraKeyDiagnostics:tH},oAe={name:"watchOptions",type:"object",elementOptions:ZQe(),extraKeyDiagnostics:IY},sAe={name:"typeAcquisition",type:"object",elementOptions:YQe(),extraKeyDiagnostics:rAe},RY="**/*",NXe=/(^|\/)\*\*\/?$/,PXe=/^[^*?]*(?=\/[^/]*[*?])/}});function Sa(t,u,...s){t.trace(Dle(u,...s))}function aD(t,u){return!!t.traceResolution&&u.trace!==void 0}function $7(t,u){let s;if(u&&t){const d=t.contents.packageJsonContent;typeof d.name=="string"&&typeof d.version=="string"&&(s={name:d.name,subModuleName:u.path.slice(t.packageDirectory.length+rl.length),version:d.version})}return u&&{path:u.path,extension:u.ext,packageId:s,resolvedUsingTsExtension:u.resolvedUsingTsExtension}}function _de(t){return $7(void 0,t)}function MXe(t){if(t)return H.assert(t.packageId===void 0),{path:t.path,ext:t.extension,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function OY(t){const u=[];return t&1&&u.push("TypeScript"),t&2&&u.push("JavaScript"),t&4&&u.push("Declaration"),t&8&&u.push("JSON"),u.join(", ")}function INt(t){const u=[];return t&1&&u.push(...hV),t&2&&u.push(..._B),t&4&&u.push(...dV),t&8&&u.push(".json"),u}function cAe(t){if(t)return H.assert(cZ(t.extension)),{fileName:t.path,packageId:t.packageId}}function zXe(t,u,s,d,f,p,E,v,b){if(!E.resultFromCache&&!E.compilerOptions.preserveSymlinks&&u&&s&&!u.originalPath&&!Id(t)){const{resolvedFileName:B,originalPath:k}=OXe(u.path,E.host,E.traceEnabled);k&&(u={...u,path:B,originalPath:k})}return IXe(u,s,d,f,p,E.resultFromCache,v,b)}function IXe(t,u,s,d,f,p,E,v){return p?E!=null&&E.isReadonly?{...p,failedLookupLocations:dAe(p.failedLookupLocations,s),affectingLocations:dAe(p.affectingLocations,d),resolutionDiagnostics:dAe(p.resolutionDiagnostics,f)}:(p.failedLookupLocations=HB(p.failedLookupLocations,s),p.affectingLocations=HB(p.affectingLocations,d),p.resolutionDiagnostics=HB(p.resolutionDiagnostics,f),p):{resolvedModule:t&&{resolvedFileName:t.path,originalPath:t.originalPath===!0?void 0:t.originalPath,extension:t.extension,isExternalLibraryImport:u,packageId:t.packageId,resolvedUsingTsExtension:!!t.resolvedUsingTsExtension},failedLookupLocations:lM(s),affectingLocations:lM(d),resolutionDiagnostics:lM(f),node10Result:v}}function lM(t){return t.length?t:void 0}function HB(t,u){return u!=null&&u.length?t!=null&&t.length?(t.push(...u),t):u:t}function dAe(t,u){return t!=null&&t.length?u.length?[...t,...u]:t.slice():lM(u)}function RXe(t,u,s,d){if(!gu(t,u)){d.traceEnabled&&Sa(d.host,F.package_json_does_not_have_a_0_field,u);return}const f=t[u];if(typeof f!==s||f===null){d.traceEnabled&&Sa(d.host,F.Expected_type_of_0_field_in_package_json_to_be_1_got_2,u,s,f===null?"null":typeof f);return}return f}function Dde(t,u,s,d){const f=RXe(t,u,"string",d);if(f===void 0)return;if(!f){d.traceEnabled&&Sa(d.host,F.package_json_had_a_falsy_0_field,u);return}const p=$o(cr(s,f));return d.traceEnabled&&Sa(d.host,F.package_json_has_0_field_1_that_references_2,u,f,p),p}function RNt(t,u,s){return Dde(t,"typings",u,s)||Dde(t,"types",u,s)}function ONt(t,u,s){return Dde(t,"tsconfig",u,s)}function jNt(t,u,s){return Dde(t,"main",u,s)}function VNt(t,u){const s=RXe(t,"typesVersions","object",u);if(s!==void 0)return u.traceEnabled&&Sa(u.host,F.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),s}function HNt(t,u){const s=VNt(t,u);if(s===void 0)return;if(u.traceEnabled)for(const E in s)gu(s,E)&&!EO.tryParse(E)&&Sa(u.host,F.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,E);const d=jY(s);if(!d){u.traceEnabled&&Sa(u.host,F.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,g);return}const{version:f,paths:p}=d;if(typeof p!="object"){u.traceEnabled&&Sa(u.host,F.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${f}']`,"object",typeof p);return}return d}function jY(t){FAe||(FAe=new Lp(_));for(const u in t){if(!gu(t,u))continue;const s=EO.tryParse(u);if(s!==void 0&&s.test(FAe))return{version:u,paths:t[u]}}}function cM(t,u){if(t.typeRoots)return t.typeRoots;let s;if(t.configFilePath?s=lr(t.configFilePath):u.getCurrentDirectory&&(s=u.getCurrentDirectory()),s!==void 0)return KNt(s)}function KNt(t){let u;return Ug($o(t),s=>{const d=cr(s,aet);(u??(u=[])).push(d)}),u}function WNt(t,u,s){const d=typeof s.useCaseSensitiveFileNames=="function"?s.useCaseSensitiveFileNames():s.useCaseSensitiveFileNames;return pv(t,u,!d)===0}function OXe(t,u,s){const d=iPt(t,u,s),f=WNt(t,d,u);return{resolvedFileName:f?t:d,originalPath:f?void 0:t}}function jXe(t,u,s){const d=sc(t,"/node_modules/@types")||sc(t,"/node_modules/@types/")?net(u,s):u;return cr(t,d)}function hAe(t,u,s,d,f,p,E){H.assert(typeof t=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const v=aD(s,d);f&&(s=f.commandLine.options);const b=u?lr(u):void 0;let B=b?p==null?void 0:p.getFromDirectoryCache(t,E,b,f):void 0;if(!B&&b&&!Id(t)&&(B=p==null?void 0:p.getFromNonRelativeNameCache(t,E,b,f)),B)return v&&(Sa(d,F.Resolving_type_reference_directive_0_containing_file_1,t,u),f&&Sa(d,F.Using_compiler_options_of_project_reference_redirect_0,f.sourceFile.fileName),Sa(d,F.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,t,b),ae(B)),B;const k=cM(s,d);v&&(u===void 0?k===void 0?Sa(d,F.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):Sa(d,F.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,k):k===void 0?Sa(d,F.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,u):Sa(d,F.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,u,k),f&&Sa(d,F.Using_compiler_options_of_project_reference_redirect_0,f.sourceFile.fileName));const T=[],M=[];let z=fAe(s);E!==void 0&&(z|=30);const j=p1(s);E===99&&3<=j&&j<=99&&(z|=32);const J=z&8?$2(s,E):[],K=[],Y={compilerOptions:s,host:d,traceEnabled:v,failedLookupLocations:T,affectingLocations:M,packageJsonInfoCache:p,features:z,conditions:J,requestContainingDirectory:b,reportDiagnostic:ve=>void K.push(ve),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let oe=Ce(),se=!0;oe||(oe=ne(),se=!1);let ge;if(oe){const{fileName:ve,packageId:Se}=oe;let Ne=ve,pe;s.preserveSymlinks||({resolvedFileName:Ne,originalPath:pe}=OXe(ve,d,v)),ge={primary:se,resolvedFileName:Ne,originalPath:pe,packageId:Se,isExternalLibraryImport:q7(ve)}}return B={resolvedTypeReferenceDirective:ge,failedLookupLocations:lM(T),affectingLocations:lM(M),resolutionDiagnostics:lM(K)},b&&p&&!p.isReadonly&&(p.getOrCreateCacheForDirectory(b,f).set(t,E,B),Id(t)||p.getOrCreateCacheForNonRelativeName(t,E,f).set(b,B)),v&&ae(B),B;function ae(ve){var Se;(Se=ve.resolvedTypeReferenceDirective)!=null&&Se.resolvedFileName?ve.resolvedTypeReferenceDirective.packageId?Sa(d,F.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,ve.resolvedTypeReferenceDirective.resolvedFileName,Px(ve.resolvedTypeReferenceDirective.packageId),ve.resolvedTypeReferenceDirective.primary):Sa(d,F.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,ve.resolvedTypeReferenceDirective.resolvedFileName,ve.resolvedTypeReferenceDirective.primary):Sa(d,F.Type_reference_directive_0_was_not_resolved,t)}function Ce(){if(k&&k.length)return v&&Sa(d,F.Resolving_with_primary_search_path_0,k.join(", ")),G(k,ve=>{const Se=jXe(ve,t,Y),Ne=hg(ve,d);if(!Ne&&v&&Sa(d,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,ve),s.typeRoots){const pe=GB(4,Se,!Ne,Y);if(pe){const fe=uH(pe.path),xe=fe?U2(fe,!1,Y):void 0;return cAe($7(xe,pe))}}return cAe(vAe(4,Se,!Ne,Y))});v&&Sa(d,F.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ne(){const ve=u&&lr(u);if(ve!==void 0){let Se;if(!s.typeRoots||!sc(u,QB))if(v&&Sa(d,F.Looking_up_in_node_modules_folder_initial_location_0,ve),Id(t)){const{path:Ne}=JXe(ve,t);Se=yde(4,Ne,!1,Y,!0)}else{const Ne=XXe(4,t,ve,Y,void 0,void 0);Se=Ne&&Ne.value}else v&&Sa(d,F.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return cAe(Se)}else v&&Sa(d,F.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function fAe(t){let u=0;switch(p1(t)){case 3:u=30;break;case 99:u=30;break;case 100:u=30;break}return t.resolvePackageJsonExports?u|=8:t.resolvePackageJsonExports===!1&&(u&=-9),t.resolvePackageJsonImports?u|=2:t.resolvePackageJsonImports===!1&&(u&=-3),u}function $2(t,u){const s=p1(t);if(u===void 0){if(s===100)u=99;else if(s===2)return[]}const d=u===99?["import"]:["require"];return t.noDtsResolution||d.push("types"),s!==100&&d.push("node"),Hi(d,t.customConditions)}function xde(t,u,s,d,f){const p=rH(f==null?void 0:f.getPackageJsonInfoCache(),d,s);return Ug(u,E=>{if(Ac(E)!=="node_modules"){const v=cr(E,"node_modules"),b=cr(v,t);return U2(b,!1,p)}})}function VY(t,u){if(t.types)return t.types;const s=[];if(u.directoryExists&&u.getDirectories){const d=cM(t,u);if(d){for(const f of d)if(u.directoryExists(f))for(const p of u.getDirectories(f)){const E=$o(p),v=cr(f,E,"package.json");if(!(u.fileExists(v)&&EP(v,u).typings===null)){const B=Ac(E);B.charCodeAt(0)!==46&&s.push(B)}}}}return s}function mAe(t){var u;if(t===null||typeof t!="object")return""+t;if(Ha(t))return`[${(u=t.map(d=>mAe(d)))==null?void 0:u.join(",")}]`;let s="{";for(const d in t)gu(t,d)&&(s+=`${d}: ${mAe(t[d])}`);return s+"}"}function vde(t,u){return u.map(s=>mAe(tZ(t,s))).join("|")+`|${t.pathsBasePath}`}function Cde(t,u){const s=new Map,d=new Map;let f=new Map;return t&&s.set(t,f),{getMapOfCacheRedirects:p,getOrCreateMapOfCacheRedirects:E,update:v,clear:B,getOwnMap:()=>f};function p(T){return T?b(T.commandLine.options,!1):f}function E(T){return T?b(T.commandLine.options,!0):f}function v(T){t!==T&&(t?f=b(T,!0):s.set(T,f),t=T)}function b(T,M){let z=s.get(T);if(z)return z;const j=k(T);if(z=d.get(j),!z){if(t){const J=k(t);J===j?z=f:d.has(J)||d.set(J,f)}M&&(z??(z=new Map)),z&&d.set(j,z)}return z&&s.set(T,z),z}function B(){const T=t&&u.get(t);f.clear(),s.clear(),u.clear(),d.clear(),t&&(T&&u.set(t,T),s.set(t,f))}function k(T){let M=u.get(T);return M||u.set(T,M=vde(T,NY)),M}}function GNt(t,u){let s;return{getPackageJsonInfo:d,setPackageJsonInfo:f,clear:p,entries:E,getInternalMap:v};function d(b){return s==null?void 0:s.get(J0(b,t,u))}function f(b,B){(s||(s=new Map)).set(J0(b,t,u),B)}function p(){s=void 0}function E(){const b=s==null?void 0:s.entries();return b?ga(b):[]}function v(){return s}}function VXe(t,u,s,d){const f=t.getOrCreateMapOfCacheRedirects(u);let p=f.get(s);return p||(p=d(),f.set(s,p)),p}function JNt(t,u,s,d){const f=Cde(s,d);return{getFromDirectoryCache:b,getOrCreateCacheForDirectory:v,clear:p,update:E,directoryToModuleNameMap:f};function p(){f.clear()}function E(B){f.update(B)}function v(B,k){const T=J0(B,t,u);return VXe(f,k,T,()=>U7())}function b(B,k,T,M){var z,j;const J=J0(T,t,u);return(j=(z=f.getMapOfCacheRedirects(M))==null?void 0:z.get(J))==null?void 0:j.get(B,k)}}function dM(t,u){return u===void 0?t:`${u}|${t}`}function U7(){const t=new Map,u=new Map,s={get(f,p){return t.get(d(f,p))},set(f,p,E){return t.set(d(f,p),E),s},delete(f,p){return t.delete(d(f,p)),s},has(f,p){return t.has(d(f,p))},forEach(f){return t.forEach((p,E)=>{const[v,b]=u.get(E);return f(p,v,b)})},size(){return t.size}};return s;function d(f,p){const E=dM(f,p);return u.set(E,[f,p]),E}}function $Nt(t){return t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName)}function UNt(t){return t.resolvedTypeReferenceDirective&&(t.resolvedTypeReferenceDirective.originalPath||t.resolvedTypeReferenceDirective.resolvedFileName)}function qNt(t,u,s,d,f){const p=Cde(s,f);return{getFromNonRelativeNameCache:b,getOrCreateCacheForNonRelativeName:B,clear:E,update:v};function E(){p.clear()}function v(T){p.update(T)}function b(T,M,z,j){var J,K;return H.assert(!Id(T)),(K=(J=p.getMapOfCacheRedirects(j))==null?void 0:J.get(dM(T,M)))==null?void 0:K.get(z)}function B(T,M,z){return H.assert(!Id(T)),VXe(p,z,dM(T,M),k)}function k(){const T=new Map;return{get:M,set:z};function M(J){return T.get(J0(J,t,u))}function z(J,K){const Y=J0(J,t,u);if(T.has(Y))return;T.set(Y,K);const oe=d(K),se=oe&&j(Y,oe);let ge=Y;for(;ge!==se;){const ae=lr(ge);if(ae===ge||T.has(ae))break;T.set(ae,K),ge=ae}}function j(J,K){const Y=J0(lr(K),t,u);let oe=0;const se=Math.min(J.length,Y.length);for(;oed,clearAllExceptPackageJsonInfoCache:B,optionsToRedirectsKey:p};function b(){B(),d.clear()}function B(){E.clear(),v.clear()}function k(T){E.update(T),v.update(T)}}function KB(t,u,s,d,f){const p=HXe(t,u,s,d,$Nt,f);return p.getOrCreateCacheForModuleName=(E,v,b)=>p.getOrCreateCacheForNonRelativeName(E,v,b),p}function HY(t,u,s,d,f){return HXe(t,u,s,d,UNt,f)}function bde(t){return{moduleResolution:2,traceResolution:t.traceResolution}}function KY(t,u,s,d,f){return WB(t,u,bde(s),d,f)}function KXe(t,u,s,d){const f=lr(u);return s.getFromDirectoryCache(t,d,f,void 0)}function WB(t,u,s,d,f,p,E){var v,b,B;const k=aD(s,d);p&&(s=p.commandLine.options),k&&(Sa(d,F.Resolving_module_0_from_1,t,u),p&&Sa(d,F.Using_compiler_options_of_project_reference_redirect_0,p.sourceFile.fileName));const T=lr(u);let M=f==null?void 0:f.getFromDirectoryCache(t,E,T,p);if(M)k&&Sa(d,F.Resolution_for_module_0_was_found_in_cache_from_location_1,t,T);else{let z=s.moduleResolution;if(z===void 0){switch(m1(s)){case 1:z=2;break;case 100:z=3;break;case 199:z=99;break;default:z=1;break}k&&Sa(d,F.Module_resolution_kind_is_not_specified_using_0,y8[z])}else k&&Sa(d,F.Explicitly_specified_module_resolution_kind_Colon_0,y8[z]);switch((v=hh)==null||v.logStartResolveModule(t),z){case 3:M=XNt(t,u,s,d,f,p,E);break;case 99:M=ePt(t,u,s,d,f,p,E);break;case 2:M=EAe(t,u,s,d,f,p,E?$2(s,E):void 0);break;case 1:M=yAe(t,u,s,d,f,p);break;case 100:M=gAe(t,u,s,d,f,p,E?$2(s,E):void 0);break;default:return H.fail(`Unexpected moduleResolution: ${z}`)}M&&M.resolvedModule&&((b=hh)==null||b.logInfoEvent(`Module "${t}" resolved to "${M.resolvedModule.resolvedFileName}"`)),(B=hh)==null||B.logStopResolveModule(M&&M.resolvedModule?""+M.resolvedModule.resolvedFileName:"null"),f&&!f.isReadonly&&(f.getOrCreateCacheForDirectory(T,p).set(t,E,M),Id(t)||f.getOrCreateCacheForNonRelativeName(t,E,p).set(T,M))}return k&&(M.resolvedModule?M.resolvedModule.packageId?Sa(d,F.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,M.resolvedModule.resolvedFileName,Px(M.resolvedModule.packageId)):Sa(d,F.Module_name_0_was_successfully_resolved_to_1,t,M.resolvedModule.resolvedFileName):Sa(d,F.Module_name_0_was_not_resolved,t)),M}function WXe(t,u,s,d,f){const p=ZNt(t,u,d,f);return p?p.value:Id(u)?YNt(t,u,s,d,f):QNt(t,u,d,f)}function ZNt(t,u,s,d){var f;const{baseUrl:p,paths:E,configFile:v}=d.compilerOptions;if(E&&!om(u)){d.traceEnabled&&(p&&Sa(d.host,F.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,p,u),Sa(d.host,F.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,u));const b=zq(d.compilerOptions,d.host),B=v!=null&&v.configFileSpecs?(f=v.configFileSpecs).pathPatterns||(f.pathPatterns=lZ(E)):void 0;return bAe(t,u,b,E,B,s,!1,d)}}function YNt(t,u,s,d,f){if(!f.compilerOptions.rootDirs)return;f.traceEnabled&&Sa(f.host,F.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,u);const p=$o(cr(s,u));let E,v;for(const b of f.compilerOptions.rootDirs){let B=$o(b);sc(B,rl)||(B+=rl);const k=Pa(p,B)&&(v===void 0||v.lengthvoid oe.push(ne),isConfigLookup:v,candidateIsFromPackageJsonField:!1};j&&b7(Y)&&Sa(f,F.Resolving_in_0_mode_with_conditions_1,t&32?"ESM":"CJS",se.conditions.map(ne=>`'${ne}'`).join(", "));let ge;if(Y===2){const ne=E&5,ve=E&-6;ge=ne&&Ce(ne,se)||ve&&Ce(ve,se)||void 0}else ge=Ce(E,se);let ae;if((k=ge==null?void 0:ge.value)!=null&&k.isExternalLibraryImport&&!v&&E&5&&t&8&&!Id(u)&&!CAe(5,ge.value.resolved.extension)&&(B!=null&&B.includes("import"))){Wv(se,F.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ne={...se,features:se.features&-9,reportDiagnostic:Is},ve=Ce(E&5,ne);(T=ve==null?void 0:ve.value)!=null&&T.isExternalLibraryImport&&(ae=ve.value.resolved.path)}return zXe(u,(M=ge==null?void 0:ge.value)==null?void 0:M.resolved,(z=ge==null?void 0:ge.value)==null?void 0:z.isExternalLibraryImport,J,K,oe,se,p,ae);function Ce(ne,ve){const Ne=WXe(ne,u,s,(pe,fe,xe,Be)=>yde(pe,fe,xe,Be,!0),ve);if(Ne)return Im({resolved:Ne,isExternalLibraryImport:q7(Ne.path)});if(Id(u)){const{path:pe,parts:fe}=JXe(s,u),xe=yde(ne,pe,!1,ve,!0);return xe&&Im({resolved:xe,isExternalLibraryImport:kt(fe,"node_modules")})}else{let pe;if(t&2&&Pa(u,"#")&&(pe=oPt(ne,u,s,ve,p,b)),!pe&&t&4&&(pe=aPt(ne,u,s,ve,p,b)),!pe){if(u.includes(":")){j&&Sa(f,F.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,u,OY(ne));return}j&&Sa(f,F.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,u,OY(ne)),pe=XXe(ne,u,s,ve,p,b)}return ne&4&&(pe??(pe=ret(u,ve))),pe&&{value:pe.value&&{resolved:pe.value,isExternalLibraryImport:!0}}}}}function JXe(t,u){const s=cr(t,u),d=yd(s),f=qu(d);return{path:f==="."||f===".."?zd($o(s)):$o(s),parts:d}}function iPt(t,u,s){if(!u.realpath)return t;const d=$o(u.realpath(t));return s&&Sa(u,F.Resolving_real_path_for_0_result_1,t,d),d}function yde(t,u,s,d,f){if(d.traceEnabled&&Sa(d.host,F.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,u,OY(t)),!ZD(u)){if(!s){const E=lr(u);hg(E,d.host)||(d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,E),s=!0)}const p=GB(t,u,s,d);if(p){const E=f?uH(p.path):void 0,v=E?U2(E,!1,d):void 0;return $7(v,p)}}if(s||hg(u,d.host)||(d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),s=!0),!(d.features&32))return vAe(t,u,s,d,f)}function q7(t){return t.includes(o_)}function uH(t,u){const s=$o(t),d=s.lastIndexOf(o_);if(d===-1)return;const f=d+o_.length;let p=$Xe(s,f,u);return s.charCodeAt(f)===64&&(p=$Xe(s,p,u)),s.slice(0,p)}function $Xe(t,u,s){const d=t.indexOf(rl,u+1);return d===-1?s?t.length:u:d}function DAe(t,u,s,d){return _de(GB(t,u,s,d))}function GB(t,u,s,d){const f=UXe(t,u,s,d);if(f)return f;if(!(d.features&32)){const p=qXe(u,t,"",s,d);if(p)return p}}function UXe(t,u,s,d){if(!Ac(u).includes("."))return;let p=_h(u);p===u&&(p=u.substring(0,u.lastIndexOf(".")));const E=u.substring(p.length);return d.traceEnabled&&Sa(d.host,F.File_name_0_has_a_1_extension_stripping_it,u,E),qXe(p,t,E,s,d)}function xAe(t,u,s,d){return t&1&&jc(u,hV)||t&4&&jc(u,dV)?WY(u,s,d)!==void 0?{path:u,ext:Kq(u),resolvedUsingTsExtension:void 0}:void 0:d.isConfigLookup&&t===8&&Ml(u,".json")?WY(u,s,d)!==void 0?{path:u,ext:".json",resolvedUsingTsExtension:void 0}:void 0:UXe(t,u,s,d)}function qXe(t,u,s,d,f){if(!d){const E=lr(t);E&&(d=!hg(E,f.host))}switch(s){case".mjs":case".mts":case".d.mts":return u&1&&p(".mts",s===".mts"||s===".d.mts")||u&4&&p(".d.mts",s===".mts"||s===".d.mts")||u&2&&p(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return u&1&&p(".cts",s===".cts"||s===".d.cts")||u&4&&p(".d.cts",s===".cts"||s===".d.cts")||u&2&&p(".cjs")||void 0;case".json":return u&4&&p(".d.json.ts")||u&8&&p(".json")||void 0;case".tsx":case".jsx":return u&1&&(p(".tsx",s===".tsx")||p(".ts",s===".tsx"))||u&4&&p(".d.ts",s===".tsx")||u&2&&(p(".jsx")||p(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return u&1&&(p(".ts",s===".ts"||s===".d.ts")||p(".tsx",s===".ts"||s===".d.ts"))||u&4&&p(".d.ts",s===".ts"||s===".d.ts")||u&2&&(p(".js")||p(".jsx"))||f.isConfigLookup&&p(".json")||void 0;default:return u&4&&!e1(t+s)&&p(`.d${s}.ts`)||void 0}function p(E,v){const b=WY(t+E,d,f);return b===void 0?void 0:{path:b,ext:E,resolvedUsingTsExtension:!f.candidateIsFromPackageJsonField&&v}}}function WY(t,u,s){var d;if(!((d=s.compilerOptions.moduleSuffixes)!=null&&d.length))return ZXe(t,u,s);const f=t3(t)??"",p=f?nV(t,f):t;return L(s.compilerOptions.moduleSuffixes,E=>ZXe(p+E+f,u,s))}function ZXe(t,u,s){var d;if(!u){if(s.host.fileExists(t))return s.traceEnabled&&Sa(s.host,F.File_0_exists_use_it_as_a_name_resolution_result,t),t;s.traceEnabled&&Sa(s.host,F.File_0_does_not_exist,t)}(d=s.failedLookupLocations)==null||d.push(t)}function vAe(t,u,s,d,f=!0){const p=f?U2(u,s,d):void 0,E=p&&p.contents.packageJsonContent,v=p&&GY(p,d);return $7(p,Fde(t,u,s,d,E,v))}function kde(t,u,s,d,f){if(!f&&t.contents.resolvedEntrypoints!==void 0)return t.contents.resolvedEntrypoints;let p;const E=5|(f?2:0),v=fAe(u),b=rH(d==null?void 0:d.getPackageJsonInfoCache(),s,u);b.conditions=$2(u),b.requestContainingDirectory=t.packageDirectory;const B=Fde(E,t.packageDirectory,!1,b,t.contents.packageJsonContent,GY(t,b));if(p=xi(p,B==null?void 0:B.path),v&8&&t.contents.packageJsonContent.exports){const k=ri([$2(u,99),$2(u,1)],On);for(const T of k){const M={...b,failedLookupLocations:[],conditions:T,host:s},z=nPt(t,t.contents.packageJsonContent.exports,M,E);if(z)for(const j of z)p=e0(p,j.path)}}return t.contents.resolvedEntrypoints=p||!1}function nPt(t,u,s,d){let f;if(Ha(u))for(const E of u)p(E);else if(typeof u=="object"&&u!==null&&JY(u))for(const E in u)p(u[E]);else p(u);return f;function p(E){var v,b;if(typeof E=="string"&&Pa(E,"./"))if(E.includes("*")&&s.host.readDirectory){if(E.indexOf("*")!==E.lastIndexOf("*"))return!1;s.host.readDirectory(t.packageDirectory,INt(d),void 0,[e1(E)?E.replace("*","**/*"):AO(E.replace("*","**/*"),Kj(E))]).forEach(B=>{f=e0(f,{path:B,ext:BN(B),resolvedUsingTsExtension:void 0})})}else{const B=yd(E).slice(2);if(B.includes("..")||B.includes(".")||B.includes("node_modules"))return!1;const k=cr(t.packageDirectory,E),T=$a(k,(b=(v=s.host).getCurrentDirectory)==null?void 0:b.call(v)),M=xAe(d,T,!1,s);if(M)return f=e0(f,M,(z,j)=>z.path===j.path),!0}else if(Array.isArray(E)){for(const B of E)if(p(B))return!0}else if(typeof E=="object"&&E!==null)return L(Ns(E),B=>{if(B==="default"||kt(s.conditions,B)||sH(s.conditions,B))return p(E[B]),!0})}}function rH(t,u,s){return{host:u,compilerOptions:s,traceEnabled:aD(s,u),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:t,features:0,conditions:_t,requestContainingDirectory:void 0,reportDiagnostic:Is,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function aH(t,u){const s=yd(t);for(s.pop();s.length>0;){const d=U2(yx(s),!1,u);if(d)return d;s.pop()}}function GY(t,u){return t.contents.versionPaths===void 0&&(t.contents.versionPaths=HNt(t.contents.packageJsonContent,u)||!1),t.contents.versionPaths||void 0}function U2(t,u,s){var d,f,p,E,v,b;const{host:B,traceEnabled:k}=s,T=cr(t,"package.json");if(u){(d=s.failedLookupLocations)==null||d.push(T);return}const M=(f=s.packageJsonInfoCache)==null?void 0:f.getPackageJsonInfo(T);if(M!==void 0){if(typeof M!="boolean")return k&&Sa(B,F.File_0_exists_according_to_earlier_cached_lookups,T),(p=s.affectingLocations)==null||p.push(T),M.packageDirectory===t?M:{packageDirectory:t,contents:M.contents};M&&k&&Sa(B,F.File_0_does_not_exist_according_to_earlier_cached_lookups,T),(E=s.failedLookupLocations)==null||E.push(T);return}const z=hg(t,B);if(z&&B.fileExists(T)){const j=EP(T,B);k&&Sa(B,F.Found_package_json_at_0,T);const J={packageDirectory:t,contents:{packageJsonContent:j,versionPaths:void 0,resolvedEntrypoints:void 0}};return s.packageJsonInfoCache&&!s.packageJsonInfoCache.isReadonly&&s.packageJsonInfoCache.setPackageJsonInfo(T,J),(v=s.affectingLocations)==null||v.push(T),J}else z&&k&&Sa(B,F.File_0_does_not_exist,T),s.packageJsonInfoCache&&!s.packageJsonInfoCache.isReadonly&&s.packageJsonInfoCache.setPackageJsonInfo(T,z),(b=s.failedLookupLocations)==null||b.push(T)}function Fde(t,u,s,d,f,p){let E;f&&(d.isConfigLookup?E=ONt(f,u,d):E=t&4&&RNt(f,u,d)||t&7&&jNt(f,u,d)||void 0);const v=(M,z,j,J)=>{const K=WY(z,j,J);if(K){const ae=uPt(M,K);if(ae)return _de(ae);J.traceEnabled&&Sa(J.host,F.File_0_has_an_unsupported_extension_so_skipping_it,K)}const Y=M===4?5:M,oe=J.features,se=J.candidateIsFromPackageJsonField;J.candidateIsFromPackageJsonField=!0,(f==null?void 0:f.type)!=="module"&&(J.features&=-33);const ge=yde(Y,z,j,J,!1);return J.features=oe,J.candidateIsFromPackageJsonField=se,ge},b=E?!hg(lr(E),d.host):void 0,B=s||!hg(u,d.host),k=cr(u,d.isConfigLookup?"tsconfig":"index");if(p&&(!E||GE(u,E))){const M=JE(u,E||k,!1);d.traceEnabled&&Sa(d.host,F.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.version,_,M);const z=bAe(t,M,u,p.paths,void 0,v,b||B,d);if(z)return MXe(z.value)}const T=E&&MXe(v(t,E,b,d));if(T)return T;if(!(d.features&32))return GB(t,k,B,d)}function uPt(t,u,s){const d=t3(u);return d!==void 0&&CAe(t,d)?{path:u,ext:d,resolvedUsingTsExtension:s}:void 0}function CAe(t,u){return t&2&&(u===".js"||u===".jsx"||u===".mjs"||u===".cjs")||t&1&&(u===".ts"||u===".tsx"||u===".mts"||u===".cts")||t&4&&(u===".d.ts"||u===".d.mts"||u===".d.cts")||t&8&&u===".json"||!1}function oH(t){let u=t.indexOf(rl);return t[0]==="@"&&(u=t.indexOf(rl,u+1)),u===-1?{packageName:t,rest:""}:{packageName:t.slice(0,u),rest:t.slice(u+1)}}function JY(t){return ye(Ns(t),u=>Pa(u,"."))}function rPt(t){return!Oe(Ns(t),u=>Pa(u,"."))}function aPt(t,u,s,d,f,p){var E,v;const b=$a(cr(s,"dummy"),(v=(E=d.host).getCurrentDirectory)==null?void 0:v.call(E)),B=aH(b,d);if(!B||!B.contents.packageJsonContent.exports||typeof B.contents.packageJsonContent.name!="string")return;const k=yd(u),T=yd(B.contents.packageJsonContent.name);if(!ye(T,(K,Y)=>k[Y]===K))return;const M=k.slice(T.length),z=S(M)?`.${rl}${M.join(rl)}`:".";if(Bv(d.compilerOptions)&&!q7(s))return Ade(B,t,z,d,f,p);const j=t&5,J=t&-6;return Ade(B,j,z,d,f,p)||Ade(B,J,z,d,f,p)}function Ade(t,u,s,d,f,p){if(t.contents.packageJsonContent.exports){if(s==="."){let E;if(typeof t.contents.packageJsonContent.exports=="string"||Array.isArray(t.contents.packageJsonContent.exports)||typeof t.contents.packageJsonContent.exports=="object"&&rPt(t.contents.packageJsonContent.exports)?E=t.contents.packageJsonContent.exports:gu(t.contents.packageJsonContent.exports,".")&&(E=t.contents.packageJsonContent.exports["."]),E)return QXe(u,d,f,p,s,t,!1)(E,"",!1,".")}else if(JY(t.contents.packageJsonContent.exports)){if(typeof t.contents.packageJsonContent.exports!="object")return d.traceEnabled&&Sa(d.host,F.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),Im(void 0);const E=YXe(u,d,f,p,s,t.contents.packageJsonContent.exports,t,!1);if(E)return E}return d.traceEnabled&&Sa(d.host,F.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),Im(void 0)}}function oPt(t,u,s,d,f,p){var E,v;if(u==="#"||Pa(u,"#/"))return d.traceEnabled&&Sa(d.host,F.Invalid_import_specifier_0_has_no_possible_resolutions,u),Im(void 0);const b=$a(cr(s,"dummy"),(v=(E=d.host).getCurrentDirectory)==null?void 0:v.call(E)),B=aH(b,d);if(!B)return d.traceEnabled&&Sa(d.host,F.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,b),Im(void 0);if(!B.contents.packageJsonContent.imports)return d.traceEnabled&&Sa(d.host,F.package_json_scope_0_has_no_imports_defined,B.packageDirectory),Im(void 0);const k=YXe(t,d,f,p,u,B.contents.packageJsonContent.imports,B,!0);return k||(d.traceEnabled&&Sa(d.host,F.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,u,B.packageDirectory),Im(void 0))}function Sde(t,u){const s=t.indexOf("*"),d=u.indexOf("*"),f=s===-1?t.length:s+1,p=d===-1?u.length:d+1;return f>p?-1:p>f||s===-1?1:d===-1||t.length>u.length?-1:u.length>t.length?1:0}function YXe(t,u,s,d,f,p,E,v){const b=QXe(t,u,s,d,f,E,v);if(!sc(f,rl)&&!f.includes("*")&&gu(p,f)){const T=p[f];return b(T,"",!1,f)}const B=Ph(ti(Ns(p),T=>T.includes("*")||sc(T,"/")),Sde);for(const T of B)if(u.features&16&&k(T,f)){const M=p[T],z=T.indexOf("*"),j=f.substring(T.substring(0,z).length,f.length-(T.length-1-z));return b(M,j,!0,T)}else if(sc(T,"*")&&Pa(f,T.substring(0,T.length-1))){const M=p[T],z=f.substring(T.length-1);return b(M,z,!0,T)}else if(Pa(f,T)){const M=p[T],z=f.substring(T.length);return b(M,z,!1,T)}function k(T,M){if(sc(T,"*"))return!1;const z=T.indexOf("*");return z===-1?!1:Pa(M,T.substring(0,z))&&sc(M,T.substring(z+1))}}function QXe(t,u,s,d,f,p,E){return v;function v(b,B,k,T){if(typeof b=="string"){if(!k&&B.length>0&&!sc(b,"/"))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);if(!Pa(b,"./")){if(E&&!Pa(b,"../")&&!Pa(b,"/")&&!Pf(b)){const ae=k?b.replace(/\*/g,B):b+B;Wv(u,F.Using_0_subpath_1_with_target_2,"imports",T,ae),Wv(u,F.Resolving_module_0_from_1,ae,p.packageDirectory+"/");const Ce=nH(u.features,ae,p.packageDirectory+"/",u.compilerOptions,u.host,s,t,!1,d,u.conditions);return Im(Ce.resolvedModule?{path:Ce.resolvedModule.resolvedFileName,extension:Ce.resolvedModule.extension,packageId:Ce.resolvedModule.packageId,originalPath:Ce.resolvedModule.originalPath,resolvedUsingTsExtension:Ce.resolvedModule.resolvedUsingTsExtension}:void 0)}return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0)}const K=(om(b)?yd(b).slice(1):yd(b)).slice(1);if(K.includes("..")||K.includes(".")||K.includes("node_modules"))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);const Y=cr(p.packageDirectory,b),oe=yd(B);if(oe.includes("..")||oe.includes(".")||oe.includes("node_modules"))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);u.traceEnabled&&Sa(u.host,F.Using_0_subpath_1_with_target_2,E?"imports":"exports",T,k?b.replace(/\*/g,B):b+B);const se=M(k?Y.replace(/\*/g,B):Y+B),ge=j(se,B,cr(p.packageDirectory,"package.json"),E);return ge||Im($7(p,xAe(t,se,!1,u)))}else if(typeof b=="object"&&b!==null)if(Array.isArray(b)){if(!S(b))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);for(const J of b){const K=v(J,B,k,T);if(K)return K}}else{Wv(u,F.Entering_conditional_exports);for(const J of Ns(b))if(J==="default"||u.conditions.includes(J)||sH(u.conditions,J)){Wv(u,F.Matched_0_condition_1,E?"imports":"exports",J);const K=b[J],Y=v(K,B,k,T);if(Y)return Wv(u,F.Resolved_under_condition_0,J),Wv(u,F.Exiting_conditional_exports),Y;Wv(u,F.Failed_to_resolve_under_condition_0,J)}else Wv(u,F.Saw_non_matching_condition_0,J);Wv(u,F.Exiting_conditional_exports);return}else if(b===null)return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_explicitly_maps_specifier_1_to_null,p.packageDirectory,f),Im(void 0);return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);function M(J){var K,Y;return J===void 0?J:$a(J,(Y=(K=u.host).getCurrentDirectory)==null?void 0:Y.call(K))}function z(J,K){return zd(cr(J,K))}function j(J,K,Y,oe){var se,ge,ae,Ce;if(!u.isConfigLookup&&(u.compilerOptions.declarationDir||u.compilerOptions.outDir)&&!J.includes("/node_modules/")&&(!u.compilerOptions.configFile||GE(p.packageDirectory,M(u.compilerOptions.configFile.fileName),!Bde(u)))){const ve=n5({useCaseSensitiveFileNames:()=>Bde(u)}),Se=[];if(u.compilerOptions.rootDir||u.compilerOptions.composite&&u.compilerOptions.configFilePath){const Ne=M(yM(u.compilerOptions,()=>[],((ge=(se=u.host).getCurrentDirectory)==null?void 0:ge.call(se))||"",ve));Se.push(Ne)}else if(u.requestContainingDirectory){const Ne=M(cr(u.requestContainingDirectory,"index.ts")),pe=M(yM(u.compilerOptions,()=>[Ne,M(Y)],((Ce=(ae=u.host).getCurrentDirectory)==null?void 0:Ce.call(ae))||"",ve));Se.push(pe);let fe=zd(pe);for(;fe&&fe.length>1;){const xe=yd(fe);xe.pop();const Be=yx(xe);Se.unshift(Be),fe=zd(Be)}}Se.length>1&&u.reportDiagnostic(cc(oe?F.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:F.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,K===""?".":K,Y));for(const Ne of Se){const pe=ne(Ne);for(const fe of pe)if(GE(fe,J,!Bde(u))){const xe=J.slice(fe.length+1),Be=cr(Ne,xe),Ge=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Ae of Ge)if(Ml(Be,Ae)){const De=xye(Be);for(const Ke of De){if(!CAe(t,Ke))continue;const Je=AO(Be,Ke,Ae,!Bde(u));if(u.host.fileExists(Je))return Im($7(p,xAe(t,Je,!1,u)))}}}}}return;function ne(ve){var Se,Ne;const pe=u.compilerOptions.configFile?((Ne=(Se=u.host).getCurrentDirectory)==null?void 0:Ne.call(Se))||"":ve,fe=[];return u.compilerOptions.declarationDir&&fe.push(M(z(pe,u.compilerOptions.declarationDir))),u.compilerOptions.outDir&&u.compilerOptions.outDir!==u.compilerOptions.declarationDir&&fe.push(M(z(pe,u.compilerOptions.outDir))),fe}}}}function sH(t,u){if(!t.includes("types")||!Pa(u,"types@"))return!1;const s=EO.tryParse(u.substring(6));return s?s.test(_):!1}function XXe(t,u,s,d,f,p){return eet(t,u,s,d,!1,f,p)}function sPt(t,u,s){return eet(4,t,u,s,!0,void 0,void 0)}function eet(t,u,s,d,f,p,E){const v=d.features===0?void 0:d.features&32?99:1,b=t&5,B=t&-6;if(b){Wv(d,F.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,OY(b));const T=k(b);if(T)return T}if(B&&!f)return Wv(d,F.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,OY(B)),k(B);function k(T){return Ug(q1(s),M=>{if(Ac(M)!=="node_modules"){const z=uet(p,u,v,M,E,d);return z||Im(tet(T,u,M,d,f,p,E))}})}}function tet(t,u,s,d,f,p,E){const v=cr(s,"node_modules"),b=hg(v,d.host);if(!b&&d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,v),!f){const B=iet(t,u,v,b,d,p,E);if(B)return B}if(t&4){const B=cr(v,"@types");let k=b;return b&&!hg(B,d.host)&&(d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,B),k=!1),iet(4,net(u,d),B,k,d,p,E)}}function iet(t,u,s,d,f,p,E){var v,b;const B=$o(cr(s,u)),{packageName:k,rest:T}=oH(u),M=cr(s,k);let z,j=U2(B,!d,f);if(T!==""&&j&&(!(f.features&8)||!gu(((v=z=U2(M,!d,f))==null?void 0:v.contents.packageJsonContent)??_t,"exports"))){const Y=GB(t,B,!d,f);if(Y)return _de(Y);const oe=Fde(t,B,!d,f,j.contents.packageJsonContent,GY(j,f));return $7(j,oe)}const J=(Y,oe,se,ge)=>{let ae=(T||!(ge.features&32))&&GB(Y,oe,se,ge)||Fde(Y,oe,se,ge,j&&j.contents.packageJsonContent,j&&GY(j,ge));return!ae&&j&&(j.contents.packageJsonContent.exports===void 0||j.contents.packageJsonContent.exports===null)&&ge.features&32&&(ae=GB(Y,cr(oe,"index.js"),se,ge)),$7(j,ae)};if(T!==""&&(j=z??U2(M,!d,f)),j&&j.contents.packageJsonContent.exports&&f.features&8)return(b=Ade(j,t,cr(".",T),f,p,E))==null?void 0:b.value;const K=T!==""&&j?GY(j,f):void 0;if(K){f.traceEnabled&&Sa(f.host,F.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,K.version,_,T);const Y=d&&hg(M,f.host),oe=bAe(t,T,M,K.paths,void 0,J,!Y,f);if(oe)return oe.value}return J(t,B,!d,f)}function bAe(t,u,s,d,f,p,E,v){f||(f=lZ(d));const b=Ble(f,u);if(b){const B=Ja(b)?void 0:t2e(b,u),k=Ja(b)?b:e2e(b);return v.traceEnabled&&Sa(v.host,F.Module_name_0_matched_pattern_1,u,k),{value:L(d[k],M=>{const z=B?M.replace("*",B):M,j=$o(cr(s,z));v.traceEnabled&&Sa(v.host,F.Trying_substitution_0_candidate_module_location_Colon_1,M,z);const J=t3(M);if(J!==void 0){const K=WY(j,E,v);if(K!==void 0)return _de({path:K,ext:J,resolvedUsingTsExtension:void 0})}return p(t,j,E||!hg(lr(j),v.host),v)})}}}function net(t,u){const s=JB(t);return u.traceEnabled&&s!==t&&Sa(u.host,F.Scoped_package_detected_looking_in_0,s),s}function $Y(t){return`@types/${JB(t)}`}function JB(t){if(Pa(t,"@")){const u=t.replace(rl,Tde);if(u!==t)return u.slice(1)}return t}function hM(t){const u=yN(t,"@types/");return u!==t?lH(u):t}function lH(t){return t.includes(Tde)?"@"+t.replace(Tde,rl):t}function uet(t,u,s,d,f,p){const E=t&&t.getFromNonRelativeNameCache(u,s,d,f);if(E)return p.traceEnabled&&Sa(p.host,F.Resolution_for_module_0_was_found_in_cache_from_location_1,u,d),p.resultFromCache=E,{value:E.resolvedModule&&{path:E.resolvedModule.resolvedFileName,originalPath:E.resolvedModule.originalPath||!0,extension:E.resolvedModule.extension,packageId:E.resolvedModule.packageId,resolvedUsingTsExtension:E.resolvedModule.resolvedUsingTsExtension}}}function yAe(t,u,s,d,f,p){const E=aD(s,d),v=[],b=[],B=lr(u),k=[],T={compilerOptions:s,host:d,traceEnabled:E,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:f,features:0,conditions:[],requestContainingDirectory:B,reportDiagnostic:j=>void k.push(j),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},M=z(5)||z(2|(s.resolveJsonModule?8:0));return zXe(t,M&&M.value,(M==null?void 0:M.value)&&q7(M.value.path),v,b,k,T,f);function z(j){const J=WXe(j,t,B,DAe,T);if(J)return{value:J};if(Id(t)){const K=$o(cr(B,t));return Im(DAe(j,K,!1,T))}else{const K=Ug(B,Y=>{const oe=uet(f,t,void 0,Y,p,T);if(oe)return oe;const se=$o(cr(Y,t));return Im(DAe(j,se,!1,T))});if(K)return K;if(j&5){let Y=sPt(t,B,T);return j&4&&(Y??(Y=ret(t,T))),Y}}}}function ret(t,u){if(u.compilerOptions.typeRoots)for(const s of u.compilerOptions.typeRoots){const d=jXe(s,t,u),f=hg(s,u.host);!f&&u.traceEnabled&&Sa(u.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);const p=GB(4,d,!f,u);if(p){const v=uH(p.path),b=v?U2(v,!1,u):void 0;return Im($7(b,p))}const E=vAe(4,d,!f,u);if(E)return Im(E)}}function $B(t,u){return!!t.allowImportingTsExtensions||u&&e1(u)}function kAe(t,u,s,d,f,p){const E=aD(s,d);E&&Sa(d,F.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,u,t,f);const v=[],b=[],B=[],k={compilerOptions:s,host:d,traceEnabled:E,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:p,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:M=>void B.push(M),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},T=tet(4,t,f,k,!1,void 0,void 0);return IXe(T,!0,v,b,B,k.resultFromCache,void 0)}function Im(t){return t!==void 0?{value:t}:void 0}function Wv(t,u,...s){t.traceEnabled&&Sa(t.host,u,...s)}function Bde(t){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}var FAe,aet,wde,o_,Tde,lPt=o({"src/compiler/moduleNameResolver.ts"(){Bo(),aet=cr("node_modules","@types"),wde=(t=>(t[t.None=0]="None",t[t.Imports=2]="Imports",t[t.SelfName=4]="SelfName",t[t.Exports=8]="Exports",t[t.ExportsPatternTrailers=16]="ExportsPatternTrailers",t[t.AllFeatures=30]="AllFeatures",t[t.Node16Default=30]="Node16Default",t[t.NodeNextDefault=30]="NodeNextDefault",t[t.BundlerDefault=30]="BundlerDefault",t[t.EsmMode=32]="EsmMode",t))(wde||{}),o_="/node_modules/",Tde="__"}});function oD(t,u){return t.body&&!t.body.parent&&(ks(t.body,t),Vx(t.body,!1)),t.body?AAe(t.body,u):1}function AAe(t,u=new Map){const s=$s(t);if(u.has(s))return u.get(s)||0;u.set(s,void 0);const d=cPt(t,u);return u.set(s,d),d}function cPt(t,u){switch(t.kind){case 264:case 265:return 0;case 266:if(b2(t))return 2;break;case 272:case 271:if(!Yu(t,32))return 0;break;case 278:const s=t;if(!s.moduleSpecifier&&s.exportClause&&s.exportClause.kind===279){let d=0;for(const f of s.exportClause.elements){const p=dPt(f,u);if(p>d&&(d=p),d===1)return d}return d}break;case 268:{let d=0;return ao(t,f=>{const p=AAe(f,u);switch(p){case 0:return;case 2:d=2;return;case 1:return d=1,!0;default:H.assertNever(p)}}),d}case 267:return oD(t,u);case 80:if(t.flags&4096)return 0}return 1}function dPt(t,u){const s=t.propertyName||t.name;let d=t.parent;for(;d;){if(po(d)||rE(d)||la(d)){const f=d.statements;let p;for(const E of f)if(jO(E,s)){E.parent||(ks(E,d),Vx(E,!1));const v=AAe(E,u);if((p===void 0||v>p)&&(p=v),p===1)return p;E.kind===271&&(p=1)}if(p!==void 0)return p}d=d.parent}return 1}function Z7(t){return H.attachFlowNodeDebugInfo(t),t}function SAe(t,u){var s,d;ul("beforeBind"),(s=hh)==null||s.logStartBindFile(""+t.fileName),set(t,u),(d=hh)==null||d.logStopBindFile(),ul("afterBind"),Tm("Bind","beforeBind","afterBind")}function hPt(){var t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce=!1,ne=0,ve,Se,Ne={flags:1},pe={flags:1},fe=le();return Be;function xe(Q,Me,...wt){return K4(zn(Q)||t,Q,Me,...wt)}function Be(Q,Me){var wt,ki;t=Q,u=Me,s=Os(u),ae=Ge(t,Me),Se=new Set,ne=0,ve=Qd.getSymbolConstructor(),H.attachFlowNodeDebugInfo(Ne),H.attachFlowNodeDebugInfo(pe),t.locals||((wt=Gn)==null||wt.push(Gn.Phase.Bind,"bindSourceFile",{path:t.path},!0),vt(t),(ki=Gn)==null||ki.pop(),t.symbolCount=ne,t.classifiableNames=Se,vl()),t=void 0,u=void 0,s=void 0,d=void 0,f=void 0,p=void 0,E=void 0,v=void 0,b=void 0,B=!1,k=void 0,T=void 0,M=void 0,z=void 0,j=void 0,J=void 0,K=void 0,oe=void 0,se=!1,Ce=!1,ge=0}function Ge(Q,Me){return Z4(Me,"alwaysStrict")&&!Q.isDeclarationFile?!0:!!Q.externalModuleIndicator}function Ae(Q,Me){return ne++,new ve(Q,Me)}function De(Q,Me,wt){Q.flags|=wt,Me.symbol=Q,Q.declarations=e0(Q.declarations,Me),wt&1955&&!Q.exports&&(Q.exports=Vo()),wt&6240&&!Q.members&&(Q.members=Vo()),Q.constEnumOnlyModule&&Q.flags&304&&(Q.constEnumOnlyModule=!1),wt&111551&&Fj(Q,Me)}function Ke(Q){if(Q.kind===277)return Q.isExportEquals?"export=":"default";const Me=Za(Q);if(Me){if(N1(Q)){const wt=J4(Me);return Yg(Q)?"__global":`"${wt}"`}if(Me.kind===167){const wt=Me.expression;if(Pm(wt))return Al(wt.text);if(Tq(wt))return Uo(wt.operator)+wt.operand.text;H.fail("Only computed properties with literal names have declaration names")}if(Xr(Me)){const wt=Yd(Q);if(!wt)return;const ki=wt.symbol;return zj(ki,Me.escapedText)}return gg(Me)?k7(Me):Xg(Me)?oP(Me):void 0}switch(Q.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(Xl(Q)===2)return"export=";H.fail("Unknown binary declaration kind");break;case 324:return X8(Q)?"__new":"__call";case 169:return H.assert(Q.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${H.formatSyntaxKind(Q.parent.kind)}, expected JSDocFunctionType`),"arg"+Q.parent.parameters.indexOf(Q)}}function Je(Q){return mh(Q)?b0(Q.name):Yr(H.checkDefined(Ke(Q)))}function ft(Q,Me,wt,ki,In,tr,ir){H.assert(ir||!Ix(wt));const ha=Yu(wt,2048)||eh(wt)&&wt.name.escapedText==="default",os=ir?"__computed":ha&&Me?"default":Ke(wt);let ss;if(os===void 0)ss=Ae(0,"__missing");else if(ss=Q.get(os),ki&2885600&&Se.add(os),!ss)Q.set(os,ss=Ae(0,os)),tr&&(ss.isReplaceableByMethod=!0);else{if(tr&&!ss.isReplaceableByMethod)return ss;if(ss.flags&In){if(ss.isReplaceableByMethod)Q.set(os,ss=Ae(0,os));else if(!(ki&3&&ss.flags&67108864)){mh(wt)&&ks(wt.name,wt);let Rl=ss.flags&2?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0,x1=!0;(ss.flags&384||ki&384)&&(Rl=F.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,x1=!1);let fd=!1;S(ss.declarations)&&(ha||ss.declarations&&ss.declarations.length&&wt.kind===277&&!wt.isExportEquals)&&(Rl=F.A_module_cannot_have_multiple_default_exports,x1=!1,fd=!0);const $m=[];jp(wt)&&Ql(wt.type)&&Yu(wt,32)&&ss.flags&2887656&&$m.push(xe(wt,F.Did_you_mean_0,`export type { ${Yr(wt.name.escapedText)} }`));const _s=Za(wt)||wt;L(ss.declarations,(Um,h3)=>{const d_=Za(Um)||Um,ta=x1?xe(d_,Rl,Je(Um)):xe(d_,Rl);t.bindDiagnostics.push(fd?Es(ta,xe(_s,h3===0?F.Another_export_default_is_here:F.and_here)):ta),fd&&$m.push(xe(d_,F.The_first_export_default_is_here))});const np=x1?xe(_s,Rl,Je(wt)):xe(_s,Rl);t.bindDiagnostics.push(Es(np,...$m)),ss=Ae(0,os)}}}return De(ss,wt,ki),ss.parent?H.assert(ss.parent===Me,"Existing symbol parent should match new one"):ss.parent=Me,ss}function Ye(Q,Me,wt){const ki=!!(m2(Q)&32)||Ve(Q);if(Me&2097152)return Q.kind===281||Q.kind===271&&ki?ft(f.symbol.exports,f.symbol,Q,Me,wt):(H.assertNode(f,UE),ft(f.locals,void 0,Q,Me,wt));if(G4(Q)&&H.assert(Qn(Q)),!N1(Q)&&(ki||f.flags&128)){if(!UE(f)||!f.locals||Yu(Q,2048)&&!Ke(Q))return ft(f.symbol.exports,f.symbol,Q,Me,wt);const In=Me&111551?1048576:0,tr=ft(f.locals,void 0,Q,In,wt);return tr.exportSymbol=ft(f.symbol.exports,f.symbol,Q,Me,wt),Q.localSymbol=tr,tr}else return H.assertNode(f,UE),ft(f.locals,void 0,Q,Me,wt)}function Ve(Q){if(Q.parent&&_c(Q)&&(Q=Q.parent),!G4(Q))return!1;if(!LV(Q)&&Q.fullName)return!0;const Me=Za(Q);return Me?!!($j(Me.parent)&&ql(Me.parent)||Q1(Me.parent)&&m2(Me.parent)&32):!1}function We(Q,Me){const wt=f,ki=p,In=E;if(Me&1?(Q.kind!==219&&(p=f),f=E=Q,Me&32&&(f.locals=Vo(),ca(f))):Me&2&&(E=Q,Me&32&&(E.locals=void 0)),Me&4){const tr=k,ir=T,ha=M,os=z,ss=K,Rl=oe,x1=se,fd=Me&16&&!Yu(Q,1024)&&!Q.asteriskToken&&!!nk(Q)||Q.kind===175;fd||(k=Z7({flags:2}),Me&144&&(k.node=Q)),z=fd||Q.kind===176||Qn(Q)&&(Q.kind===262||Q.kind===218)?xn():void 0,K=void 0,T=void 0,M=void 0,oe=void 0,se=!1,st(Q),Q.flags&=-5633,!(k.flags&1)&&Me&8&&H4(Q.body)&&(Q.flags|=512,se&&(Q.flags|=1024),Q.endFlowNode=k),Q.kind===312&&(Q.flags|=ge,Q.endFlowNode=k),z&&(Ai(z,k),k=bt(z),(Q.kind===176||Q.kind===175||Qn(Q)&&(Q.kind===262||Q.kind===218))&&(Q.returnFlowNode=k)),fd||(k=tr),T=ir,M=ha,z=os,K=ss,oe=Rl,se=x1}else Me&64?(B=!1,st(Q),H.assertNotNode(Q,at),Q.flags=B?Q.flags|256:Q.flags&-257):st(Q);f=wt,p=ki,E=In}function Gt(Q){Yt(Q,Me=>Me.kind===262?vt(Me):void 0),Yt(Q,Me=>Me.kind!==262?vt(Me):void 0)}function Yt(Q,Me=vt){Q!==void 0&&L(Q,Me)}function Ie(Q){ao(Q,vt,Yt)}function st(Q){const Me=Ce;if(Ce=!1,Ci(Q)){Ie(Q),mi(Q),Ce=Me;return}switch(Q.kind>=243&&Q.kind<=259&&!u.allowUnreachableCode&&(Q.flowNode=k),Q.kind){case 247:ua(Q);break;case 246:Ta(Q);break;case 248:Yo(Q);break;case 249:case 250:bo(Q);break;case 245:Qe(Q);break;case 253:case 257:Et(Q);break;case 252:case 251:Xt(Q);break;case 258:Pe(Q);break;case 255:et(Q);break;case 269:gt(Q);break;case 296:ii(Q);break;case 244:me(Q);break;case 256:vi(Q);break;case 224:$i(Q);break;case 225:Qi(Q);break;case 226:if(r5(Q)){Ce=Me,on(Q);return}fe(Q);break;case 220:te(Q);break;case 227:we(Q);break;case 260:je(Q);break;case 211:case 212:pr(Q);break;case 213:Xu(Q);break;case 235:Ru(Q);break;case 353:case 345:case 347:ct(Q);break;case 312:{Gt(Q.statements),vt(Q.endOfFileToken);break}case 241:case 268:Gt(Q.statements);break;case 208:X(Q);break;case 169:it(Q);break;case 210:case 209:case 303:case 230:Ce=Me;default:Ie(Q);break}mi(Q),Ce=Me}function St(Q){switch(Q.kind){case 80:case 81:case 110:case 211:case 212:return ei(Q);case 213:return ht(Q);case 217:case 235:return St(Q.expression);case 226:return Ni(Q);case 224:return Q.operator===54&&St(Q.operand);case 221:return St(Q.expression)}return!1}function It(Q){return pP(Q)||(Iu(Q)||O7(Q)||Cf(Q))&&It(Q.expression)||Xn(Q)&&Q.operatorToken.kind===28&&It(Q.right)||U0(Q)&&(Pm(Q.argumentExpression)||ec(Q.argumentExpression))&&It(Q.expression)||ld(Q)&&It(Q.left)}function ei(Q){return It(Q)||Y1(Q)&&ei(Q.expression)}function ht(Q){if(Q.arguments){for(const Me of Q.arguments)if(ei(Me))return!0}return!!(Q.expression.kind===211&&ei(Q.expression.expression))}function Ut(Q,Me){return AB(Q)&&ji(Q.expression)&&t0(Me)}function Ni(Q){switch(Q.operatorToken.kind){case 64:case 76:case 77:case 78:return ei(Q.left);case 35:case 36:case 37:case 38:return ji(Q.left)||ji(Q.right)||Ut(Q.right,Q.left)||Ut(Q.left,Q.right)||HN(Q.right)&&St(Q.left)||HN(Q.left)&&St(Q.right);case 104:return ji(Q.left);case 103:return St(Q.right);case 28:return St(Q.right)}return!1}function ji(Q){switch(Q.kind){case 217:return ji(Q.expression);case 226:switch(Q.operatorToken.kind){case 64:return ji(Q.left);case 28:return ji(Q.right)}}return ei(Q)}function xn(){return Z7({flags:4,antecedents:void 0})}function Jn(){return Z7({flags:8,antecedents:void 0})}function an(Q,Me,wt){return Z7({flags:1024,target:Q,antecedents:Me,antecedent:wt})}function Pi(Q){Q.flags|=Q.flags&2048?4096:2048}function Ai(Q,Me){!(Me.flags&1)&&!kt(Q.antecedents,Me)&&((Q.antecedents||(Q.antecedents=[])).push(Me),Pi(Me))}function Zu(Q,Me,wt){return Me.flags&1?Me:wt?(wt.kind===112&&Q&64||wt.kind===97&&Q&32)&&!MU(wt)&&!Kse(wt.parent)?Ne:St(wt)?(Pi(Me),Z7({flags:Q,antecedent:Me,node:wt})):Me:Q&32?Me:Ne}function aa(Q,Me,wt,ki){return Pi(Q),Z7({flags:128,antecedent:Q,switchStatement:Me,clauseStart:wt,clauseEnd:ki})}function yr(Q,Me,wt){Pi(Me);const ki=Z7({flags:Q,antecedent:Me,node:wt});return K&&Ai(K,ki),ki}function Ba(Q,Me){return Pi(Q),Z7({flags:512,antecedent:Q,node:Me})}function bt(Q){const Me=Q.antecedents;return Me?Me.length===1?Me[0]:Q:Ne}function jn(Q){const Me=Q.parent;switch(Me.kind){case 245:case 247:case 246:return Me.expression===Q;case 248:case 227:return Me.condition===Q}return!1}function Ln(Q){for(;;)if(Q.kind===217)Q=Q.expression;else if(Q.kind===224&&Q.operator===54)Q=Q.operand;else return Gj(Q)}function Si(Q){return ole(l0(Q))}function Dn(Q){for(;Cf(Q.parent)||zv(Q.parent)&&Q.parent.operator===54;)Q=Q.parent;return!jn(Q)&&!Ln(Q.parent)&&!(Y1(Q.parent)&&Q.parent.expression===Q)}function Cn(Q,Me,wt,ki){const In=j,tr=J;j=wt,J=ki,Q(Me),j=In,J=tr}function tu(Q,Me,wt){Cn(vt,Q,Me,wt),(!Q||!Si(Q)&&!Ln(Q)&&!(Y1(Q)&&RN(Q)))&&(Ai(Me,Zu(32,k,Q)),Ai(wt,Zu(64,k,Q)))}function oa(Q,Me,wt){const ki=T,In=M;T=Me,M=wt,vt(Q),T=ki,M=In}function Da(Q,Me){let wt=oe;for(;wt&&Q.parent.kind===256;)wt.continueTarget=Me,wt=wt.next,Q=Q.parent;return Me}function ua(Q){const Me=Da(Q,Jn()),wt=xn(),ki=xn();Ai(Me,k),k=Me,tu(Q.expression,wt,ki),k=bt(wt),oa(Q.statement,ki,Me),Ai(Me,k),k=bt(ki)}function Ta(Q){const Me=Jn(),wt=Da(Q,xn()),ki=xn();Ai(Me,k),k=Me,oa(Q.statement,ki,wt),Ai(wt,k),k=bt(wt),tu(Q.expression,Me,ki),k=bt(ki)}function Yo(Q){const Me=Da(Q,Jn()),wt=xn(),ki=xn();vt(Q.initializer),Ai(Me,k),k=Me,tu(Q.condition,wt,ki),k=bt(wt),oa(Q.statement,ki,Me),vt(Q.incrementor),Ai(Me,k),k=bt(ki)}function bo(Q){const Me=Da(Q,Jn()),wt=xn();vt(Q.expression),Ai(Me,k),k=Me,Q.kind===250&&vt(Q.awaitModifier),Ai(wt,k),vt(Q.initializer),Q.initializer.kind!==261&&Ot(Q.initializer),oa(Q.statement,wt,Me),Ai(Me,k),k=bt(wt)}function Qe(Q){const Me=xn(),wt=xn(),ki=xn();tu(Q.expression,Me,wt),k=bt(Me),vt(Q.thenStatement),Ai(ki,k),k=bt(wt),vt(Q.elseStatement),Ai(ki,k),k=bt(ki)}function Et(Q){vt(Q.expression),Q.kind===253&&(se=!0,z&&Ai(z,k)),k=Ne}function Mt(Q){for(let Me=oe;Me;Me=Me.next)if(Me.name===Q)return Me}function qt(Q,Me,wt){const ki=Q.kind===252?Me:wt;ki&&(Ai(ki,k),k=Ne)}function Xt(Q){if(vt(Q.label),Q.label){const Me=Mt(Q.label.escapedText);Me&&(Me.referenced=!0,qt(Q,Me.breakTarget,Me.continueTarget))}else qt(Q,T,M)}function Pe(Q){const Me=z,wt=K,ki=xn(),In=xn();let tr=xn();if(Q.finallyBlock&&(z=In),Ai(tr,k),K=tr,vt(Q.tryBlock),Ai(ki,k),Q.catchClause&&(k=bt(tr),tr=xn(),Ai(tr,k),K=tr,vt(Q.catchClause),Ai(ki,k)),z=Me,K=wt,Q.finallyBlock){const ir=xn();ir.antecedents=Hi(Hi(ki.antecedents,tr.antecedents),In.antecedents),k=ir,vt(Q.finallyBlock),k.flags&1?k=Ne:(z&&In.antecedents&&Ai(z,an(ir,In.antecedents,k)),K&&tr.antecedents&&Ai(K,an(ir,tr.antecedents,k)),k=ki.antecedents?an(ir,ki.antecedents,k):Ne)}else k=bt(ki)}function et(Q){const Me=xn();vt(Q.expression);const wt=T,ki=Y;T=Me,Y=k,vt(Q.caseBlock),Ai(Me,k);const In=L(Q.caseBlock.clauses,tr=>tr.kind===297);Q.possiblyExhaustive=!In&&!Me.antecedents,In||Ai(Me,aa(Y,Q,0,0)),T=wt,Y=ki,k=bt(Me)}function gt(Q){const Me=Q.clauses,wt=Q.parent.expression.kind===112||St(Q.parent.expression);let ki=Ne;for(let In=0;InGc(wt)||tc(wt))}function as(Q){Q.flags&33554432&&!Ir(Q)?Q.flags|=128:Q.flags&=-129}function wo(Q){if(as(Q),N1(Q))if(Yu(Q,32)&&Q0(Q,F.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),p0e(Q))Fn(Q);else{let Me;if(Q.name.kind===11){const{text:ki}=Q.name;Me=fB(ki),Me===void 0&&Q0(Q.name,F.Pattern_0_can_have_at_most_one_Asterisk_character,ki)}const wt=Ku(Q,512,110735);t.patternAmbientModules=xi(t.patternAmbientModules,Me&&!Ja(Me)?{pattern:Me,symbol:wt}:void 0)}else{const Me=Fn(Q);if(Me!==0){const{symbol:wt}=Q;wt.constEnumOnlyModule=!(wt.flags&304)&&Me===2&&wt.constEnumOnlyModule!==!1}}}function Fn(Q){const Me=oD(Q),wt=Me!==0;return Ku(Q,wt?512:1024,wt?110735:0),Me}function vc(Q){const Me=Ae(131072,Ke(Q));De(Me,Q,131072);const wt=Ae(2048,"__type");De(wt,Q,2048),wt.members=Vo(),wt.members.set(Me.escapedName,Me)}function Ya(Q){return wl(Q,4096,"__object")}function c0(Q){return wl(Q,4096,"__jsxAttributes")}function Ul(Q,Me,wt){return Ku(Q,Me,wt)}function wl(Q,Me,wt){const ki=Ae(Me,wt);return Me&106508&&(ki.parent=f.symbol),De(ki,Q,Me),ki}function hd(Q,Me,wt){switch(E.kind){case 267:Ye(Q,Me,wt);break;case 312:if(cm(f)){Ye(Q,Me,wt);break}default:H.assertNode(E,UE),E.locals||(E.locals=Vo(),ca(E)),ft(E.locals,void 0,Q,Me,wt)}}function vl(){if(!b)return;const Q=f,Me=v,wt=E,ki=d,In=k;for(const tr of b){const ir=tr.parent.parent;f=C0e(ir)||t,E=YE(ir)||t,k=Z7({flags:2}),d=tr,vt(tr.typeExpression);const ha=Za(tr);if((LV(tr)||!tr.fullName)&&ha&&$j(ha.parent)){const os=ql(ha.parent);if(os){Tl(t.symbol,ha.parent,os,!!Tn(ha,Rl=>Iu(Rl)&&Rl.name.escapedText==="prototype"),!1);const ss=f;switch(yj(ha.parent)){case 1:case 2:cm(t)?f=t:f=void 0;break;case 4:f=ha.parent.expression;break;case 3:f=ha.parent.expression.name;break;case 5:f=q2(t,ha.parent.expression)?t:Iu(ha.parent.expression)?ha.parent.expression.name:ha.parent.expression;break;case 0:return H.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}f&&Ye(tr,524288,788968),f=ss}}else LV(tr)||!tr.fullName||tr.fullName.kind===80?(d=tr.parent,hd(tr,524288,788968)):vt(tr.fullName)}f=Q,v=Me,E=wt,d=ki,k=In}function co(Q){if(!t.parseDiagnostics.length&&!(Q.flags&33554432)&&!(Q.flags&16777216)&&!hye(Q)){const Me=Dv(Q);if(Me===void 0)return;ae&&Me>=119&&Me<=127?t.bindDiagnostics.push(xe(Q,Ho(Q),b0(Q))):Me===135?wc(t)&&fq(Q)?t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,b0(Q))):Q.flags&65536&&t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,b0(Q))):Me===127&&Q.flags&16384&&t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,b0(Q)))}}function Ho(Q){return Yd(Q)?F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:F.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function id(Q){Q.escapedText==="#constructor"&&(t.parseDiagnostics.length||t.bindDiagnostics.push(xe(Q,F.constructor_is_a_reserved_word,b0(Q))))}function Y0(Q){ae&&Df(Q.left)&&u5(Q.operatorToken.kind)&&Lc(Q,Q.left)}function Ko(Q){ae&&Q.variableDeclaration&&Lc(Q,Q.variableDeclaration.name)}function Tc(Q){if(ae&&Q.expression.kind===80){const Me=C2(t,Q.expression);t.bindDiagnostics.push(Rd(t,Me.start,Me.length,F.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Jp(Q){return at(Q)&&(Q.escapedText==="eval"||Q.escapedText==="arguments")}function Lc(Q,Me){if(Me&&Me.kind===80){const wt=Me;if(Jp(wt)){const ki=C2(t,Me);t.bindDiagnostics.push(Rd(t,ki.start,ki.length,Il(Q),fu(wt)))}}}function Il(Q){return Yd(Q)?F.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode:t.externalModuleIndicator?F.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:F.Invalid_use_of_0_in_strict_mode}function cl(Q){ae&&Lc(Q,Q.name)}function Ka(Q){return Yd(Q)?F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ri(Q){if(s<2&&E.kind!==312&&E.kind!==267&&!L8(E)){const Me=C2(t,Q);t.bindDiagnostics.push(Rd(t,Me.start,Me.length,Ka(Q)))}}function dl(Q){ae&&Lc(Q,Q.operand)}function Uc(Q){ae&&(Q.operator===46||Q.operator===47)&&Lc(Q,Q.operand)}function Ch(Q){ae&&Q0(Q,F.with_statements_are_not_allowed_in_strict_mode)}function sf(Q){ae&&Os(u)>=2&&(pbe(Q.statement)||Jl(Q.statement))&&Q0(Q.label,F.A_label_is_not_allowed_here)}function Q0(Q,Me,...wt){const ki=QE(t,Q.pos);t.bindDiagnostics.push(Rd(t,ki.start,ki.length,Me,...wt))}function Cc(Q,Me,wt){$(Q,Me,Me,wt)}function $(Q,Me,wt,ki){tt(Q,{pos:ek(Me,t),end:wt.end},ki)}function tt(Q,Me,wt){const ki=Rd(t,Me.pos,Me.end-Me.pos,wt);Q?t.bindDiagnostics.push(ki):t.bindSuggestionDiagnostics=xi(t.bindSuggestionDiagnostics,{...ki,category:2})}function vt(Q){if(!Q)return;ks(Q,d),Gn&&(Q.tracingPath=t.path);const Me=ae;if(uu(Q),Q.kind>165){const wt=d;d=Q;const ki=Lde(Q);ki===0?st(Q):We(Q,ki),d=wt}else{const wt=d;Q.kind===1&&(d=Q),mi(Q),d=wt}ae=Me}function mi(Q){if(lm(Q))if(Qn(Q))for(const Me of Q.jsDoc)vt(Me);else for(const Me of Q.jsDoc)ks(Me,Q),Vx(Me,!1)}function fn(Q){if(!ae)for(const Me of Q){if(!Mp(Me))return;if(Wu(Me)){ae=!0;return}}}function Wu(Q){const Me=x2(t,Q.expression);return Me==='"use strict"'||Me==="'use strict'"}function uu(Q){switch(Q.kind){case 80:if(Q.flags&4096){let ir=Q.parent;for(;ir&&!G4(ir);)ir=ir.parent;hd(ir,524288,788968);break}case 110:return k&&(Wt(Q)||d.kind===304)&&(Q.flowNode=k),co(Q);case 166:k&&_q(Q)&&(Q.flowNode=k);break;case 236:case 108:Q.flowNode=k;break;case 81:return id(Q);case 211:case 212:const Me=Q;k&&It(Me)&&(Me.flowNode=k),rye(Me)&&Mn(Me),Qn(Me)&&t.commonJsModuleIndicator&&Y_(Me)&&!UY(E,"module")&&ft(t.locals,void 0,Me.expression,134217729,111550);break;case 226:switch(Xl(Q)){case 1:Oh(Q);break;case 2:uh(Q);break;case 3:To(Q.left,Q);break;case 6:ba(Q);break;case 4:D1(Q);break;case 5:const ir=Q.left.expression;if(Qn(Q)&&at(ir)){const ha=UY(E,ir.escapedText);if(mq(ha==null?void 0:ha.valueDeclaration)){D1(Q);break}}fc(Q);break;case 0:break;default:H.fail("Unknown binary expression special property assignment kind")}return Y0(Q);case 299:return Ko(Q);case 220:return Tc(Q);case 225:return dl(Q);case 224:return Uc(Q);case 254:return Ch(Q);case 256:return sf(Q);case 197:B=!0;return;case 182:break;case 168:return Bt(Q);case 169:return d3(Q);case 260:return R1(Q);case 208:return Q.flowNode=k,R1(Q);case 172:case 171:return Tu(Q);case 303:case 304:return Vh(Q,4,0);case 306:return Vh(Q,8,900095);case 179:case 180:case 181:return Ku(Q,131072,0);case 174:case 173:return Vh(Q,8192|(Q.questionToken?16777216:0),zp(Q)?0:103359);case 262:return Wf(Q);case 176:return Ku(Q,16384,0);case 177:return Vh(Q,32768,46015);case 178:return Vh(Q,65536,78783);case 184:case 324:case 330:case 185:return vc(Q);case 187:case 329:case 200:return Nr(Q);case 339:return Qt(Q);case 210:return Ya(Q);case 218:case 219:return m4(Q);case 213:switch(Xl(Q)){case 7:return nc(Q);case 8:return Bd(Q);case 9:return Fo(Q);case 0:break;default:return H.fail("Unknown call expression assignment declaration kind")}Qn(Q)&&c3(Q);break;case 231:case 263:return ae=!0,c_(Q);case 264:return hd(Q,64,788872);case 265:return hd(Q,524288,788968);case 266:return C5(Q);case 267:return wo(Q);case 292:return c0(Q);case 291:return Ul(Q,4,0);case 271:case 274:case 276:case 281:return Ku(Q,2097152,2097152);case 270:return nd(Q);case 273:return ud(Q);case 278:return S0(Q);case 277:return ic(Q);case 312:return fn(Q.statements),Vu();case 241:if(!L8(Q.parent))return;case 268:return fn(Q.statements);case 348:if(Q.parent.kind===330)return d3(Q);if(Q.parent.kind!==329)break;case 355:const In=Q,tr=In.isBracketed||In.typeExpression&&In.typeExpression.type.kind===323?16777220:4;return Ku(In,tr,0);case 353:case 345:case 347:return(b||(b=[])).push(Q);case 346:return vt(Q.typeExpression)}}function Tu(Q){const Me=ef(Q),wt=Me?98304:4,ki=Me?13247:0;return Vh(Q,wt|(Q.questionToken?16777216:0),ki)}function Nr(Q){return wl(Q,2048,"__type")}function Vu(){if(as(t),wc(t))Ss();else if(W4(t)){Ss();const Q=t.symbol;ft(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=Q}}function Ss(){wl(t,512,`"${_h(t.fileName)}"`)}function ic(Q){if(!f.symbol||!f.symbol.exports)wl(Q,111551,Ke(Q));else{const Me=tB(Q)?2097152:4,wt=ft(f.symbol.exports,f.symbol,Q,Me,67108863);Q.isExportEquals&&Fj(wt,Q)}}function nd(Q){Oe(Q.modifiers)&&t.bindDiagnostics.push(xe(Q,F.Modifiers_cannot_appear_here));const Me=la(Q.parent)?wc(Q.parent)?Q.parent.isDeclarationFile?void 0:F.Global_module_exports_may_only_appear_in_declaration_files:F.Global_module_exports_may_only_appear_in_module_files:F.Global_module_exports_may_only_appear_at_top_level;Me?t.bindDiagnostics.push(xe(Q,Me)):(t.symbol.globalExports=t.symbol.globalExports||Vo(),ft(t.symbol.globalExports,t.symbol,Q,2097152,2097152))}function S0(Q){!f.symbol||!f.symbol.exports?wl(Q,8388608,Ke(Q)):Q.exportClause?u_(Q.exportClause)&&(ks(Q.exportClause,Q),ft(f.symbol.exports,f.symbol,Q.exportClause,2097152,2097152)):ft(f.symbol.exports,f.symbol,Q,8388608,0)}function ud(Q){Q.name&&Ku(Q,2097152,2097152)}function m0(Q){return t.externalModuleIndicator&&t.externalModuleIndicator!==!0?!1:(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=Q,t.externalModuleIndicator||Ss()),!0)}function Bd(Q){if(!m0(Q))return;const Me=f4(Q.arguments[0],void 0,(wt,ki)=>(ki&&De(ki,wt,67110400),ki));Me&&ft(Me.exports,Me,Q,1048580,0)}function Oh(Q){if(!m0(Q))return;const Me=f4(Q.left.expression,void 0,(wt,ki)=>(ki&&De(ki,wt,67110400),ki));if(Me){const ki=Pj(Q.right)&&(uk(Q.left.expression)||Y_(Q.left.expression))?2097152:1048580;ks(Q.left,Q),ft(Me.exports,Me,Q.left,ki,0)}}function uh(Q){if(!m0(Q))return;const Me=vj(Q.right);if(dle(Me)||f===t&&q2(t,Me))return;if(ys(Me)&&ye(Me.properties,pm)){L(Me.properties,h4);return}const wt=tB(Q)?2097152:1049092,ki=ft(t.symbol.exports,t.symbol,Q,wt|67108864,0);Fj(ki,Q)}function h4(Q){ft(t.symbol.exports,t.symbol,Q,69206016,0)}function D1(Q){if(H.assert(Qn(Q)),Xn(Q)&&Iu(Q.left)&&Xr(Q.left.name)||Iu(Q)&&Xr(Q.name))return;const wt=tf(Q,!1,!1);switch(wt.kind){case 262:case 218:let ki=wt.symbol;if(Xn(wt.parent)&&wt.parent.operatorToken.kind===64){const ir=wt.parent.left;A2(ir)&&Ox(ir.expression)&&(ki=jh(ir.expression.expression,p))}ki&&ki.valueDeclaration&&(ki.members=ki.members||Vo(),Ix(Q)?He(Q,ki,ki.members):ft(ki.members,ki,Q,67108868,0),De(ki,ki.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const In=wt.parent,tr=No(wt)?In.symbol.exports:In.symbol.members;Ix(Q)?He(Q,In.symbol,tr):ft(tr,In.symbol,Q,67108868,0,!0);break;case 312:if(Ix(Q))break;wt.commonJsModuleIndicator?ft(wt.symbol.exports,wt.symbol,Q,1048580,0):Ku(Q,1,111550);break;case 267:break;default:H.failBadSyntaxKind(wt)}}function He(Q,Me,wt){ft(wt,Me,Q,4,0,!0,!0),di(Q,Me)}function di(Q,Me){Me&&(Me.assignmentDeclarationMembers||(Me.assignmentDeclarationMembers=new Map)).set($s(Q),Q)}function Mn(Q){Q.expression.kind===110?D1(Q):A2(Q)&&Q.parent.parent.kind===312&&(Ox(Q.expression)?To(Q,Q.parent):Cl(Q))}function ba(Q){ks(Q.left,Q),ks(Q.right,Q),Nc(Q.left.expression,Q.left,!1,!0)}function Fo(Q){const Me=jh(Q.arguments[0].expression);Me&&Me.valueDeclaration&&De(Me,Me.valueDeclaration,32),bc(Q,Me,!0)}function To(Q,Me){const wt=Q.expression,ki=wt.expression;ks(ki,wt),ks(wt,Q),ks(Q,Me),Nc(ki,Q,!0,!0)}function nc(Q){let Me=jh(Q.arguments[0]);const wt=Q.parent.parent.kind===312;Me=Tl(Me,Q.arguments[0],wt,!1,!1),bc(Q,Me,!1)}function fc(Q){var Me;const wt=jh(Q.left.expression,f)||jh(Q.left.expression,E);if(!Qn(Q)&&!aye(wt))return;const ki=CP(Q.left);if(!(at(ki)&&((Me=UY(f,ki.escapedText))==null?void 0:Me.flags)&2097152))if(ks(Q.left,Q),ks(Q.right,Q),at(Q.left.expression)&&f===t&&q2(t,Q.left.expression))Oh(Q);else if(Ix(Q)){wl(Q,67108868,"__computed");const In=Tl(wt,Q.left.expression,ql(Q.left),!1,!1);di(Q,In)}else Cl(Po(Q.left,ak))}function Cl(Q){H.assert(!at(Q)),ks(Q.expression,Q),Nc(Q.expression,Q,!1,!1)}function Tl(Q,Me,wt,ki,In){return(Q==null?void 0:Q.flags)&2097152||(wt&&!ki&&(Q=f4(Me,Q,(ha,os,ss)=>{if(os)return De(os,ha,67110400),os;{const Rl=ss?ss.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=Vo());return ft(Rl,ss,ha,67110400,110735)}})),In&&Q&&Q.valueDeclaration&&De(Q,Q.valueDeclaration,32)),Q}function bc(Q,Me,wt){if(!Me||!ip(Me))return;const ki=wt?Me.members||(Me.members=Vo()):Me.exports||(Me.exports=Vo());let In=0,tr=0;$0(l7(Q))?(In=8192,tr=103359):Mo(Q)&&rk(Q)&&(Oe(Q.arguments[2].properties,ir=>{const ha=Za(ir);return!!ha&&at(ha)&&fu(ha)==="set"})&&(In|=65540,tr|=78783),Oe(Q.arguments[2].properties,ir=>{const ha=Za(ir);return!!ha&&at(ha)&&fu(ha)==="get"})&&(In|=32772,tr|=46015)),In===0&&(In=4,tr=0),ft(ki,Me,Q,In|67108864,tr&-67108865)}function ql(Q){return Xn(Q.parent)?Jm(Q.parent).parent.kind===312:Q.parent.parent.kind===312}function Nc(Q,Me,wt,ki){let In=jh(Q,f)||jh(Q,E);const tr=ql(Me);In=Tl(In,Me.expression,tr,wt,ki),bc(Me,In,wt)}function ip(Q){if(Q.flags&1072)return!0;const Me=Q.valueDeclaration;if(Me&&Mo(Me))return!!l7(Me);let wt=Me?na(Me)?Me.initializer:Xn(Me)?Me.right:Iu(Me)&&Xn(Me.parent)?Me.parent.right:void 0:void 0;if(wt=wt&&vj(wt),wt){const ki=Ox(na(Me)?Me.name:Xn(Me)?Me.left:Me);return!!yv(Xn(wt)&&(wt.operatorToken.kind===57||wt.operatorToken.kind===61)?wt.right:wt,ki)}return!1}function Jm(Q){for(;Xn(Q.parent);)Q=Q.parent;return Q.parent}function jh(Q,Me=f){if(at(Q))return UY(Me,Q.escapedText);{const wt=jh(Q.expression);return wt&&wt.exports&&wt.exports.get(Q3(Q))}}function f4(Q,Me,wt){if(q2(t,Q))return t.symbol;if(at(Q))return wt(Q,jh(Q),Me);{const ki=f4(Q.expression,Me,wt),In=bj(Q);return Xr(In)&&H.fail("unexpected PrivateIdentifier"),wt(In,ki&&ki.exports&&ki.exports.get(Q3(Q)),ki)}}function c3(Q){!t.commonJsModuleIndicator&&xf(Q,!1)&&m0(Q)}function c_(Q){if(Q.kind===263)hd(Q,32,899503);else{const In=Q.name?Q.name.escapedText:"__class";wl(Q,32,In),Q.name&&Se.add(Q.name.escapedText)}const{symbol:Me}=Q,wt=Ae(4194308,"prototype"),ki=Me.exports.get(wt.escapedName);ki&&(Q.name&&ks(Q.name,Q),t.bindDiagnostics.push(xe(ki.declarations[0],F.Duplicate_identifier_0,lc(wt)))),Me.exports.set(wt.escapedName,wt),wt.parent=Me}function C5(Q){return b2(Q)?hd(Q,128,899967):hd(Q,256,899327)}function R1(Q){if(ae&&Lc(Q,Q.name),!So(Q.name)){const Me=Q.kind===260?Q:Q.parent.parent;Qn(Q)&&eZ(u)&&F2(Me)&&!xv(Q)&&!(m2(Q)&32)?Ku(Q,2097152,2097152):h0e(Q)?hd(Q,2,111551):w2(Q)?Ku(Q,1,111551):Ku(Q,1,111550)}}function d3(Q){if(!(Q.kind===348&&f.kind!==330)&&(ae&&!(Q.flags&33554432)&&Lc(Q,Q.name),So(Q.name)?wl(Q,1,"__"+Q.parent.parameters.indexOf(Q)):Ku(Q,1,111551),Mf(Q,Q.parent))){const Me=Q.parent.parent;ft(Me.symbol.members,Me.symbol,Q,4|(Q.questionToken?16777216:0),0)}}function Wf(Q){!t.isDeclarationFile&&!(Q.flags&33554432)&&aP(Q)&&(ge|=4096),cl(Q),ae?(Ri(Q),hd(Q,16,110991)):Ku(Q,16,110991)}function m4(Q){!t.isDeclarationFile&&!(Q.flags&33554432)&&aP(Q)&&(ge|=4096),k&&(Q.flowNode=k),cl(Q);const Me=Q.name?Q.name.escapedText:"__function";return wl(Q,16,Me)}function Vh(Q,Me,wt){return!t.isDeclarationFile&&!(Q.flags&33554432)&&aP(Q)&&(ge|=4096),k&&lq(Q)&&(Q.flowNode=k),Ix(Q)?wl(Q,Me,"__computed"):Ku(Q,Me,wt)}function Ee(Q){const Me=Tn(Q,wt=>wt.parent&&FB(wt.parent)&&wt.parent.extendsType===wt);return Me&&Me.parent}function Bt(Q){if(_g(Q.parent)){const Me=Aq(Q.parent);Me?(H.assertNode(Me,UE),Me.locals??(Me.locals=Vo()),ft(Me.locals,void 0,Q,262144,526824)):Ku(Q,262144,526824)}else if(Q.parent.kind===195){const Me=Ee(Q.parent);Me?(H.assertNode(Me,UE),Me.locals??(Me.locals=Vo()),ft(Me.locals,void 0,Q,262144,526824)):wl(Q,262144,Ke(Q))}else Ku(Q,262144,526824)}function Di(Q){const Me=oD(Q);return Me===1||Me===2&&fk(u)}function Ci(Q){if(!(k.flags&1))return!1;if(k===Ne&&(XO(Q)&&Q.kind!==242||Q.kind===263||Q.kind===267&&Di(Q))&&(k=pe,!u.allowUnreachableCode)){const wt=uke(u)&&!(Q.flags&33554432)&&(!Jl(Q)||!!(QD(Q.declarationList)&7)||Q.declarationList.declarations.some(ki=>!!ki.initializer));fPt(Q,(ki,In)=>$(wt,ki,In,F.Unreachable_code_detected))}return!0}}function fPt(t,u){if(ia(t)&&oet(t)&&po(t.parent)){const{statements:s}=t.parent,d=wle(s,t);eu(d,oet,(f,p)=>u(d[f],d[p-1]))}else u(t,t)}function oet(t){return!ed(t)&&!mPt(t)&&!Iv(t)&&!(Jl(t)&&!(QD(t)&7)&&t.declarationList.declarations.some(u=>!u.initializer))}function mPt(t){switch(t.kind){case 264:case 265:return!0;case 267:return oD(t)!==1;case 266:return Yu(t,4096);default:return!1}}function q2(t,u){let s=0;const d=U$();for(d.enqueue(u);!d.isEmpty()&&s<100;){if(s++,u=d.dequeue(),uk(u)||Y_(u))return!0;if(at(u)){const f=UY(t,u.escapedText);if(f&&f.valueDeclaration&&na(f.valueDeclaration)&&f.valueDeclaration.initializer){const p=f.valueDeclaration.initializer;d.enqueue(p),ld(p,!0)&&(d.enqueue(p.left),d.enqueue(p.right))}}}return!1}function Lde(t){switch(t.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(lq(t))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return t.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Co(t.parent)||zl(t.parent)?0:34}return 0}function UY(t,u){var s,d,f,p;const E=(d=(s=ur(t,UE))==null?void 0:s.locals)==null?void 0:d.get(u);if(E)return E.exportSymbol??E;if(la(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(u))return t.jsGlobalAugmentations.get(u);if(Zg(t))return(p=(f=t.symbol)==null?void 0:f.exports)==null?void 0:p.get(u)}var Nde,Pde,set,pPt=o({"src/compiler/binder.ts"(){Bo(),Wy(),Nde=(t=>(t[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",t))(Nde||{}),Pde=(t=>(t[t.None=0]="None",t[t.IsContainer=1]="IsContainer",t[t.IsBlockScopedContainer=2]="IsBlockScopedContainer",t[t.IsControlFlowContainer=4]="IsControlFlowContainer",t[t.IsFunctionLike=8]="IsFunctionLike",t[t.IsFunctionExpression=16]="IsFunctionExpression",t[t.HasLocals=32]="HasLocals",t[t.IsInterface=64]="IsInterface",t[t.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",t))(Pde||{}),set=hPt()}});function BAe(t,u,s,d,f,p,E,v,b,B){return k;function k(T=()=>!0){const M=[],z=[];return{walkType:Se=>{try{return j(Se),{visitedTypes:U1(M),visitedSymbols:U1(z)}}finally{pu(M),pu(z)}},walkSymbol:Se=>{try{return ve(Se),{visitedTypes:U1(M),visitedSymbols:U1(z)}}finally{pu(M),pu(z)}}};function j(Se){if(!(!Se||M[Se.id]||(M[Se.id]=Se,ve(Se.symbol)))){if(Se.flags&524288){const pe=Se,fe=pe.objectFlags;fe&4&&J(Se),fe&32&&ge(Se),fe&3&&Ce(Se),fe&24&&ne(pe)}Se.flags&262144&&K(Se),Se.flags&3145728&&Y(Se),Se.flags&4194304&&oe(Se),Se.flags&8388608&&se(Se)}}function J(Se){j(Se.target),L(B(Se),j)}function K(Se){j(v(Se))}function Y(Se){L(Se.types,j)}function oe(Se){j(Se.type)}function se(Se){j(Se.objectType),j(Se.indexType),j(Se.constraint)}function ge(Se){j(Se.typeParameter),j(Se.constraintType),j(Se.templateType),j(Se.modifiersType)}function ae(Se){const Ne=u(Se);Ne&&j(Ne.type),L(Se.typeParameters,j);for(const pe of Se.parameters)ve(pe);j(t(Se)),j(s(Se))}function Ce(Se){ne(Se),L(Se.typeParameters,j),L(d(Se),j),j(Se.thisType)}function ne(Se){const Ne=f(Se);for(const pe of Ne.indexInfos)j(pe.keyType),j(pe.type);for(const pe of Ne.callSignatures)ae(pe);for(const pe of Ne.constructSignatures)ae(pe);for(const pe of Ne.properties)ve(pe)}function ve(Se){if(!Se)return!1;const Ne=Zo(Se);if(z[Ne])return!1;if(z[Ne]=Se,!T(Se))return!0;const pe=p(Se);return j(pe),Se.exports&&Se.exports.forEach(ve),L(Se.declarations,fe=>{if(fe.type&&fe.type.kind===186){const xe=fe.type,Be=E(b(xe.exprName));ve(Be)}}),!1}}}var gPt=o({"src/compiler/symbolWalker.ts"(){Bo()}});function Mde({importModuleSpecifierPreference:t,importModuleSpecifierEnding:u},s,d,f){const p=E();return{relativePreference:f!==void 0?Id(f)?0:1:t==="relative"?0:t==="non-relative"?1:t==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:v=>{if((v??d.impliedNodeFormat)===99)return $B(s,d.fileName)?[3,2]:[2];if(p1(s)===1)return p===2?[2,1]:[1,2];const b=$B(s,d.fileName);switch(p){case 2:return b?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return b?[1,0,3,2]:[1,0,2];case 0:return b?[0,1,3,2]:[0,1,2];default:H.assertNever(p)}}};function E(){if(f!==void 0){if(z2(f))return 2;if(sc(f,"/index"))return 1}return Sle(u,d.impliedNodeFormat,s,d)}}function EPt(t,u,s,d,f,p,E={}){const v=cet(t,u,s,d,f,Mde({},t,u,p),{},E);if(v!==p)return v}function qY(t,u,s,d,f,p={}){return cet(t,u,s,d,f,Mde({},t,u),{},p)}function _Pt(t,u,s,d,f,p={}){const E=wAe(u.path,d),v=_et(u.path,s,d,f,p);return G(v,b=>TAe(b,E,u,d,t,f,!0,p.overrideImportMode))}function cet(t,u,s,d,f,p,E,v={}){const b=wAe(s,f),B=_et(s,d,f,E,v);return G(B,k=>TAe(k,b,u,f,t,E,void 0,v.overrideImportMode))||met(d,b,t,f,v.overrideImportMode||u.impliedNodeFormat,p)}function DPt(t,u,s,d,f={}){return det(t,u,s,d,f)[0]}function det(t,u,s,d,f={}){var p;const E=YU(t);if(!E)return _t;const v=(p=s.getModuleSpecifierCache)==null?void 0:p.call(s),b=v==null?void 0:v.get(u.path,E.path,d,f);return[b==null?void 0:b.moduleSpecifiers,E,b==null?void 0:b.modulePaths,v]}function het(t,u,s,d,f,p,E={}){return fet(t,u,s,d,f,p,E,!1).moduleSpecifiers}function fet(t,u,s,d,f,p,E={},v){let b=!1;const B=vPt(t,u);if(B)return{moduleSpecifiers:[B],computedWithoutCache:b};let[k,T,M,z]=det(t,d,f,p,E);if(k)return{moduleSpecifiers:k,computedWithoutCache:b};if(!T)return{moduleSpecifiers:_t,computedWithoutCache:b};b=!0,M||(M=Det(d.path,T.originalFileName,f));const j=xPt(M,s,d,f,p,E,v);return z==null||z.set(d.path,T.path,p,E,M,j),{moduleSpecifiers:j,computedWithoutCache:b}}function xPt(t,u,s,d,f,p={},E){const v=wAe(s.path,d),b=Mde(f,u,s),B=L(t,J=>L(d.getFileIncludeReasons().get(J0(J.path,d.getCurrentDirectory(),v.getCanonicalFileName)),K=>{if(K.kind!==3||K.file!==s.path||s.impliedNodeFormat&&s.impliedNodeFormat!==k1e(s,K.index))return;const Y=TQ(s,K.index).text;return b.relativePreference!==1||!om(Y)?Y:void 0}));if(B)return[B];const k=Oe(t,J=>J.isInNodeModules);let T,M,z,j;for(const J of t){const K=J.isInNodeModules?TAe(J,v,s,d,u,f,void 0,p.overrideImportMode):void 0;if(T=xi(T,K),K&&J.isRedirect)return T;if(!K){const Y=met(J.path,v,u,d,p.overrideImportMode||s.impliedNodeFormat,b,J.isRedirect);if(!Y)continue;J.isRedirect?z=xi(z,Y):kse(Y)?M=xi(M,Y):(E||!k||J.isInNodeModules)&&(j=xi(j,Y))}}return M!=null&&M.length?M:z!=null&&z.length?z:T!=null&&T.length?T:H.checkDefined(j)}function wAe(t,u){const s=L1(u.useCaseSensitiveFileNames?u.useCaseSensitiveFileNames():!0),d=lr(t);return{getCanonicalFileName:s,importingSourceFileName:t,sourceDirectory:d}}function met(t,u,s,d,f,{getAllowedEndingsInPreferredOrder:p,relativePreference:E},v){const{baseUrl:b,paths:B,rootDirs:k}=s;if(v&&!B)return;const{sourceDirectory:T,getCanonicalFileName:M}=u,z=p(f),j=k&&CPt(k,t,T,M,z,s)||cH(h2(JE(T,t,M)),z,s);if(!b&&!B||E===0)return v?void 0:j;const J=$a(zq(s,d)||b,d.getCurrentDirectory()),K=bet(t,J,M);if(!K)return v?void 0:j;const Y=B&&xet(K,B,z,d,s);if(v)return Y;const oe=Y===void 0&&b!==void 0?cH(K,z,s):Y;if(!oe)return j;if(E===1&&!om(oe))return oe;if(E===3&&!om(oe)){const se=s.configFilePath?J0(lr(s.configFilePath),d.getCurrentDirectory(),u.getCanonicalFileName):u.getCanonicalFileName(d.getCurrentDirectory()),ge=J0(t,se,M),ae=Pa(T,se),Ce=Pa(ge,se);if(ae&&!Ce||!ae&&Ce)return oe;const ne=get(d,lr(ge));return get(d,T)!==ne?oe:j}return yet(oe)||ZY(j)t.fileExists(cr(s,"package.json"))?!0:void 0)}function Eet(t,u,s,d,f){var p;const E=n5(s),v=s.getCurrentDirectory(),b=s.isSourceOfProjectReferenceRedirect(u)?s.getProjectReferenceRedirect(u):void 0,B=J0(u,v,E),k=s.redirectTargetsMap.get(B)||_t,M=[...b?[b]:_t,u,...k].map(Y=>$a(Y,v));let z=!ye(M,TP);if(!d){const Y=L(M,oe=>!(z&&TP(oe))&&f(oe,b===oe));if(Y)return Y}const j=(p=s.getSymlinkCache)==null?void 0:p.call(s).getSymlinkedDirectoriesByRealpath(),J=$a(u,v);return j&&Ug(lr(J),Y=>{const oe=j.get(zd(J0(Y,v,E)));if(oe)return Ase(t,Y,E)?!1:L(M,se=>{if(!Ase(se,Y,E))return;const ge=JE(Y,se,E);for(const ae of oe){const Ce=kx(ae,ge),ne=f(Ce,se===b);if(z=!0,ne)return ne}})})||(d?L(M,Y=>z&&TP(Y)?void 0:f(Y,Y===b)):void 0)}function _et(t,u,s,d,f={}){var p;const E=J0(u,s.getCurrentDirectory(),n5(s)),v=(p=s.getModuleSpecifierCache)==null?void 0:p.call(s);if(v){const B=v.get(t,E,d,f);if(B!=null&&B.modulePaths)return B.modulePaths}const b=Det(t,u,s);return v&&v.setModulePaths(t,E,d,f,b),b}function Det(t,u,s){const d=n5(s),f=new Map;Eet(t,u,s,!0,(E,v)=>{const b=q7(E);f.set(E,{path:d(E),isRedirect:v,isInNodeModules:b})});const p=[];for(let E=lr(t);f.size!==0;){const v=zd(E);let b;f.forEach(({path:k,isRedirect:T,isInNodeModules:M},z)=>{Pa(k,v)&&((b||(b=[])).push({path:z,isRedirect:T,isInNodeModules:M}),f.delete(z))}),b&&(b.length>1&&b.sort(pet),p.push(...b));const B=lr(E);if(B===E)break;E=B}if(f.size){const E=ga(f.values());E.length>1&&E.sort(pet),p.push(...E)}return p}function vPt(t,u){var s;const d=(s=t.declarations)==null?void 0:s.find(E=>m0e(E)&&(!v2(E)||!Id(J4(E.name))));if(d)return d.name.text;const p=qi(t.declarations,E=>{var v,b,B,k;if(!_c(E))return;const T=J(E);if(!((v=T==null?void 0:T.parent)!=null&&v.parent&&rE(T.parent)&&N1(T.parent.parent)&&la(T.parent.parent.parent)))return;const M=(k=(B=(b=T.parent.parent.symbol.exports)==null?void 0:b.get("export="))==null?void 0:B.valueDeclaration)==null?void 0:k.expression;if(!M)return;const z=u.getSymbolAtLocation(M);if(!z)return;if(((z==null?void 0:z.flags)&2097152?u.getAliasedSymbol(z):z)===E.symbol)return T.parent.parent;function J(K){for(;K.flags&8;)K=K.parent;return K}})[0];if(p)return p.name.text}function xet(t,u,s,d,f){for(const E in u)for(const v of u[E]){const b=$o(v),B=b.indexOf("*"),k=s.map(T=>({ending:T,value:cH(t,[T],f)}));if(t3(b)&&k.push({ending:void 0,value:t}),B!==-1){const T=b.substring(0,B),M=b.substring(B+1);for(const{ending:z,value:j}of k)if(j.length>=T.length+M.length&&Pa(j,T)&&sc(j,M)&&p({ending:z,value:j})){const J=j.substring(T.length,j.length-M.length);if(!om(J))return E.replace("*",J)}}else if(Oe(k,T=>T.ending!==0&&b===T.value)||Oe(k,T=>T.ending===0&&b===T.value&&p(T)))return E}function p({ending:E,value:v}){return E!==0||v===cH(t,[E],f,d)}}function zde(t,u,s,d,f,p,E=0){if(typeof f=="string"){const v=$a(cr(s,f),void 0),b=mk(u)?_h(u)+Ide(u,t):void 0;switch(E){case 0:if(pv(u,v)===0||b&&pv(b,v)===0)return{moduleFileToTry:d};break;case 1:if(GE(v,u)){const M=JE(v,u,!1);return{moduleFileToTry:$a(cr(cr(d,f),M),void 0)}}break;case 2:const B=v.indexOf("*"),k=v.slice(0,B),T=v.slice(B+1);if(Pa(u,k)&&sc(u,T)){const M=u.slice(k.length,u.length-T.length);return{moduleFileToTry:d.replace("*",M)}}if(b&&Pa(b,k)&&sc(b,T)){const M=b.slice(k.length,b.length-T.length);return{moduleFileToTry:d.replace("*",M)}}break}}else{if(Array.isArray(f))return L(f,v=>zde(t,u,s,d,v,p));if(typeof f=="object"&&f!==null){if(JY(f))return L(Ns(f),v=>{const b=$a(cr(d,v),void 0),B=sc(v,"/")?1:v.includes("*")?2:0;return zde(t,u,s,b,f[v],p,B)});for(const v of Ns(f))if(v==="default"||p.includes(v)||sH(p,v)){const b=f[v],B=zde(t,u,s,d,b,p,E);if(B)return B}}}}function CPt(t,u,s,d,f,p){const E=vet(u,t,d);if(E===void 0)return;const v=vet(s,t,d),b=ju(v,k=>Vt(E,T=>h2(JE(k,T,d)))),B=ooe(b,iV);if(B)return cH(B,f,p)}function TAe({path:t,isRedirect:u},{getCanonicalFileName:s,sourceDirectory:d},f,p,E,v,b,B){if(!p.fileExists||!p.readFile)return;const k=pZ(t);if(!k)return;const M=Mde(v,E,f).getAllowedEndingsInPreferredOrder();let z=t,j=!1;if(!b){let ge=k.packageRootIndex,ae;for(;;){const{moduleFileToTry:Ce,packageRootPath:ne,blockedByExports:ve,verbatimFromExports:Se}=se(ge);if(p1(E)!==1){if(ve)return;if(Se)return Ce}if(ne){z=ne,j=!0;break}if(ae||(ae=Ce),ge=t.indexOf(rl,ge+1),ge===-1){z=cH(ae,M,E,p);break}}}if(u&&!j)return;const J=p.getGlobalTypingsCacheLocation&&p.getGlobalTypingsCacheLocation(),K=s(z.substring(0,k.topLevelNodeModulesIndex));if(!(Pa(d,K)||J&&Pa(s(J),K)))return;const Y=z.substring(k.topLevelPackageNameIndex+1),oe=hM(Y);return p1(E)===1&&oe===Y?void 0:oe;function se(ge){var ae,Ce;const ne=t.substring(0,ge),ve=cr(ne,"package.json");let Se=t,Ne=!1;const pe=(Ce=(ae=p.getPackageJsonInfoCache)==null?void 0:ae.call(p))==null?void 0:Ce.getPackageJsonInfo(ve);if(typeof pe=="object"||pe===void 0&&p.fileExists(ve)){const fe=(pe==null?void 0:pe.contents.packageJsonContent)||JSON.parse(p.readFile(ve)),xe=B||f.impliedNodeFormat;if(vle(E)){const Ae=ne.substring(k.topLevelPackageNameIndex+1),De=hM(Ae),Ke=$2(E,xe),Je=fe.exports?zde(E,t,ne,De,fe.exports,Ke):void 0;if(Je)return{...mk(Je.moduleFileToTry)?{moduleFileToTry:_h(Je.moduleFileToTry)+Ide(Je.moduleFileToTry,E)}:Je,verbatimFromExports:!0};if(fe.exports)return{moduleFileToTry:t,blockedByExports:!0}}const Be=fe.typesVersions?jY(fe.typesVersions):void 0;if(Be){const Ae=t.slice(ne.length+1),De=xet(Ae,Be.paths,M,p,E);De===void 0?Ne=!0:Se=cr(ne,De)}const Ge=fe.typings||fe.types||fe.main||"index.js";if(Ja(Ge)&&!(Ne&&Ble(lZ(Be.paths),Ge))){const Ae=J0(Ge,ne,s),De=s(Se);if(_h(Ae)===_h(De))return{packageRootPath:ne,moduleFileToTry:Se};if(fe.type!=="module"&&!jc(De,fV)&&Pa(De,Ae)&&lr(De)===mv(Ae)&&_h(Ac(De))==="index")return{packageRootPath:ne,moduleFileToTry:Se}}}else{const fe=s(Se.substring(k.packageRootIndex+1));if(fe==="index.d.ts"||fe==="index.js"||fe==="index.ts"||fe==="index.tsx")return{moduleFileToTry:Se,packageRootPath:ne}}return{moduleFileToTry:Se}}}function bPt(t,u){if(!t.fileExists)return;const s=Va(kP({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const d of s){const f=u+d;if(t.fileExists(f))return f}}function vet(t,u,s){return qi(u,d=>{const f=bet(t,d,s);return f!==void 0&&yet(f)?void 0:f})}function cH(t,u,s,d){if(jc(t,[".json",".mjs",".cjs"]))return t;const f=_h(t);if(t===f)return t;const p=u.indexOf(2),E=u.indexOf(3);if(jc(t,[".mts",".cts"])&&E!==-1&&EB===0||B===1);return b!==-1&&bZY,forEachFileNameOfModule:()=>Eet,getModuleSpecifier:()=>qY,getModuleSpecifiers:()=>het,getModuleSpecifiersWithCacheInfo:()=>fet,getNodeModulesPackageName:()=>_Pt,tryGetJSExtensionForFile:()=>Ide,tryGetModuleSpecifiersFromCache:()=>DPt,tryGetRealFileNameForNonJsDeclarationFileName:()=>Cet,updateModuleSpecifier:()=>EPt});var NAe=o({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){ket()}});function yPt(){this.flags=0}function $s(t){return t.id||(t.id=zAe,zAe++),t.id}function Zo(t){return t.id||(t.id=MAe,MAe++),t.id}function Rde(t,u){const s=oD(t);return s===1||u&&s===2}function PAe(t){var u=[],s=l=>{u.push(l)},d,f=new Set,p,E,v=Qd.getSymbolConstructor(),b=Qd.getTypeConstructor(),B=Qd.getSignatureConstructor(),k=0,T=0,M=0,z=0,j=0,J=0,K,Y,oe=!1,se=Vo(),ge=[1],ae=t.getCompilerOptions(),Ce=Os(ae),ne=m1(ae),ve=!!ae.experimentalDecorators,Se=eV(ae),Ne=ake(ae),pe=C7(ae),fe=Z4(ae,"strictNullChecks"),xe=Z4(ae,"strictFunctionTypes"),Be=Z4(ae,"strictBindCallApply"),Ge=Z4(ae,"strictPropertyInitialization"),Ae=Z4(ae,"noImplicitAny"),De=Z4(ae,"noImplicitThis"),Ke=Z4(ae,"useUnknownInCatchVariables"),Je=!!ae.keyofStringsOnly,ft=Je?1:0,Ye=ae.suppressExcessPropertyErrors?0:8192,Ve=ae.exactOptionalPropertyTypes,We=Kai(),Gt=vli(),Yt=cF(),Ie=Vo(),st=Hs(4,"undefined");st.declarations=[];var St=Hs(1536,"globalThis",8);St.exports=Ie,St.declarations=[],Ie.set(St.escapedName,St);var It=Hs(4,"arguments"),ei=Hs(4,"require"),ht=ae.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Ut=!ae.verbatimModuleSyntax||!!ae.importsNotUsedAsValues,Ni,ji,xn=0,Jn,an=0;const Pi={getNodeCount:()=>nn(t.getSourceFiles(),(l,m)=>l+m.nodeCount,0),getIdentifierCount:()=>nn(t.getSourceFiles(),(l,m)=>l+m.identifierCount,0),getSymbolCount:()=>nn(t.getSourceFiles(),(l,m)=>l+m.symbolCount,T),getTypeCount:()=>k,getInstantiationCount:()=>M,getRelationCacheSizes:()=>({assignable:Jf.size,identity:Em.size,subtype:h_.size,strictSubtype:p4.size}),isUndefinedSymbol:l=>l===st,isArgumentsSymbol:l=>l===It,isUnknownSymbol:l=>l===Xt,getMergedSymbol:Ks,getDiagnostics:O4t,getGlobalDiagnostics:I0i,getRecursionIdentity:iEe,getUnmatchedProperties:uMe,getTypeOfSymbolAtLocation:(l,m)=>{const D=Ua(m);return D?Mni(l,D):Ot},getTypeOfSymbol:Wn,getSymbolsOfParameterPropertyDeclaration:(l,m)=>{const D=Ua(l,io);return D===void 0?H.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(H.assert(Mf(D,D.parent)),Iw(D,Al(m)))},getDeclaredTypeOfSymbol:X0,getPropertiesOfType:n0,getPropertyOfType:(l,m)=>qo(l,Al(m)),getPrivateIdentifierPropertyOfType:(l,m,D)=>{const C=Ua(D);if(!C)return;const A=Al(m),w=LEe(A,C);return w?KMe(l,w):void 0},getTypeOfPropertyOfType:(l,m)=>he(l,Al(m)),getIndexInfoOfType:(l,m)=>k3(l,m===0?ct:Qt),getIndexInfosOfType:kh,getIndexInfosOfIndexSymbol:tPe,getSignaturesOfType:go,getIndexTypeOfType:(l,m)=>yC(l,m===0?ct:Qt),getIndexType:l=>k_(l),getBaseTypes:Zc,getBaseTypeOfLiteralType:kD,getWidenedType:vm,getTypeFromTypeNode:l=>{const m=Ua(l,Qr);return m?Ar(m):Ot},getParameterType:Lg,getParameterIdentifierInfoAtPosition:oai,getPromisedTypeOfPromise:NW,getAwaitedType:l=>NF(l),getReturnTypeOfSignature:Zs,isNullableType:tie,getNullableType:aEe,getNonNullableType:FD,getNonOptionalType:oEe,getTypeArguments:O0,typeToTypeNode:Yt.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Yt.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Yt.signatureToSignatureDeclaration,symbolToEntityName:Yt.symbolToEntityName,symbolToExpression:Yt.symbolToExpression,symbolToNode:Yt.symbolToNode,symbolToTypeParameterDeclarations:Yt.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Yt.symbolToParameterDeclaration,typeParameterToDeclaration:Yt.typeParameterToDeclaration,getSymbolsInScope:(l,m)=>{const D=Ua(l);return D?R0i(D,m):[]},getSymbolAtLocation:l=>{const m=Ua(l);return m?Yp(m,!0):void 0},getIndexInfosAtLocation:l=>{const m=Ua(l);return m?J0i(m):void 0},getShorthandAssignmentValueSymbol:l=>{const m=Ua(l);return m?$0i(m):void 0},getExportSpecifierLocalTargetSymbol:l=>{const m=Ua(l,eh);return m?U0i(m):void 0},getExportSymbolOfSymbol(l){return Ks(l.exportSymbol||l)},getTypeAtLocation:l=>{const m=Ua(l);return m?tS(m):Ot},getTypeOfAssignmentPattern:l=>{const m=Ua(l,KN);return m&&a_e(m)||Ot},getPropertySymbolOfDestructuringAssignment:l=>{const m=Ua(l,at);return m?q0i(m):void 0},signatureToString:(l,m,D,C)=>vE(l,Ua(m),D,C),typeToString:(l,m,D)=>gn(l,Ua(m),D),symbolToString:(l,m,D,C)=>Fr(l,Ua(m),D,C),typePredicateToString:(l,m,D)=>E_(l,Ua(m),D),writeSignature:(l,m,D,C,A)=>vE(l,Ua(m),D,C,A),writeType:(l,m,D,C)=>gn(l,Ua(m),D,C),writeSymbol:(l,m,D,C,A)=>Fr(l,Ua(m),D,C,A),writeTypePredicate:(l,m,D,C)=>E_(l,Ua(m),D,C),getAugmentedPropertiesOfType:Gze,getRootSymbols:$4t,getSymbolOfExpando:jEe,getContextualType:(l,m)=>{const D=Ua(l,Wt);if(D)return m&4?aa(D,()=>hf(D,m)):hf(D,m)},getContextualTypeForObjectLiteralElement:l=>{const m=Ua(l,Z3);return m?BMe(m,void 0):void 0},getContextualTypeForArgumentAtIndex:(l,m)=>{const D=Ua(l,D2);return D&&SMe(D,m)},getContextualTypeForJsxAttribute:l=>{const m=Ua(l,KU);return m&&lft(m,void 0)},isContextSensitive:k4,getTypeOfPropertyOfContextualType:Ob,getFullyQualifiedName:op,getResolvedSignature:(l,m,D)=>yr(l,m,D,0),getCandidateSignaturesForStringLiteralCompletions:Ai,getResolvedSignatureForSignatureHelp:(l,m,D)=>Zu(l,()=>yr(l,m,D,16)),getExpandedParameters:fdt,hasEffectiveRestParameter:F_,containsArgumentsReference:XNe,getConstantValue:l=>{const m=Ua(l,Q4t);return m?Jze(m):void 0},isValidPropertyAccess:(l,m)=>{const D=Ua(l,abe);return!!D&&Eri(D,Al(m))},isValidPropertyAccessForCompletions:(l,m,D)=>{const C=Ua(l,Iu);return!!C&&Oft(C,m,D)},getSignatureFromDeclaration:l=>{const m=Ua(l,Co);return m?dp(m):void 0},isImplementationOfOverload:l=>{const m=Ua(l,Co);return m?Z4t(m):void 0},getImmediateAliasedSymbol:PMe,getAliasedSymbol:md,getEmitResolver:jd,getExportsOfModule:L5,getExportsAndPropertiesOfModule:cz,forEachExportAndPropertyOfModule:P9,getSymbolWalker:BAe(nei,y4,Zs,Zc,Ag,Wn,Zp,rh,hm,O0),getAmbientModules:cci,getJsxIntrinsicTagNamesAt:Zui,isOptionalParameter:l=>{const m=Ua(l,io);return m?uW(m):!1},tryGetMemberInModuleExports:(l,m)=>M9(Al(l),m),tryGetMemberInModuleExportsAndProperties:(l,m)=>z9(Al(l),m),tryFindAmbientModule:l=>kge(l,!0),tryFindAmbientModuleWithoutAugmentations:l=>kge(l,!1),getApparentType:Gh,getUnionType:er,isTypeAssignableTo:ms,createAnonymousType:Ol,createSignature:y3,createSymbol:Hs,createIndexInfo:y_,getAnyType:()=>me,getStringType:()=>ct,getStringLiteralType:df,getNumberType:()=>Qt,getNumberLiteralType:wg,getBigIntType:()=>Li,createPromiseType:die,createArrayType:V1,getElementTypeOfArrayType:WPe,getBooleanType:()=>pr,getFalseType:l=>l?Ui:Sn,getTrueType:l=>l?du:Ru,getVoidType:()=>ca,getUndefinedType:()=>te,getNullType:()=>it,getESSymbolType:()=>Xu,getNeverType:()=>Ku,getOptionalType:()=>X,getPromiseType:()=>Fte(!1),getPromiseLikeType:()=>e1t(!1),getAsyncIterableType:()=>{const l=Mge(!1);if(l!==Ka)return l},isSymbolAccessible:yu,isArrayType:A4,isTupleType:xs,isArrayLikeType:H5,isEmptyAnonymousObjectType:yD,isTypeInvalidDueToUnionDiscriminant:RXt,getExactOptionalProperties:dii,getAllPossiblePropertiesOfTypes:OXt,getSuggestedSymbolForNonexistentProperty:JMe,getSuggestionForNonexistentProperty:$Me,getSuggestedSymbolForNonexistentJSXAttribute:Ift,getSuggestedSymbolForNonexistentSymbol:(l,m,D)=>UMe(l,Al(m),D),getSuggestionForNonexistentSymbol:(l,m,D)=>fri(l,Al(m),D),getSuggestedSymbolForNonexistentModule:PEe,getSuggestionForNonexistentExport:mri,getSuggestedSymbolForNonexistentClassMember:zft,getBaseConstraintOfType:Wh,getDefaultFromTypeParameter:l=>l&&l.flags&262144?_F(l):void 0,resolveName(l,m,D,C){return uc(m,Al(l),D,void 0,void 0,!1,C)},getJsxNamespace:l=>Yr(uC(l)),getJsxFragmentFactory:l=>{const m=Uze(l);return m&&Yr(hm(m).escapedText)},getAccessibleSymbolChain:_C,getTypePredicateOfSignature:y4,resolveExternalModuleName:l=>{const m=Ua(l,Wt);return m&&Kh(m,m,!0)},resolveExternalModuleSymbol:_m,tryGetThisTypeAt:(l,m,D)=>{const C=Ua(l);return C&&yMe(C,m,D)},getTypeArgumentConstraint:l=>{const m=Ua(l,Qr);return m&&voi(m)},getSuggestionDiagnostics:(l,m)=>{const D=Ua(l,la)||H.fail("Could not determine parsed source file.");if(AP(D,ae,t))return _t;let C;try{return d=m,Kze(D),H.assert(!!(ar(D).flags&1)),C=yn(C,Zk.getDiagnostics(D.fileName)),t4t(R4t(D),(A,w,I)=>{!O8(A)&&!I4t(w,!!(A.flags&33554432))&&(C||(C=[])).push({...I,category:2})}),C||_t}finally{d=void 0}},runWithCancellationToken:(l,m)=>{try{return d=l,m(Pi)}finally{d=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:sn,isDeclarationVisible:pD,isPropertyAccessible:ZMe,getTypeOnlyAliasDeclaration:_4,getMemberOverrideModifierStatus:Xsi,isTypeParameterPossiblyReferenced:Lte,typeHasCallOrConstructSignatures:o_e};function Ai(l,m){const D=new Set,C=[];aa(m,()=>yr(l,C,void 0,0));for(const A of C)D.add(A);C.length=0,Zu(m,()=>yr(l,C,void 0,0));for(const A of C)D.add(A);return ga(D)}function Zu(l,m){if(l=Tn(l,Xse),l){const D=[],C=[];for(;l;){const w=ar(l);if(D.push([w,w.resolvedSignature]),w.resolvedSignature=void 0,R2(l)){const I=Ur(_u(l)),U=I.type;C.push([I,U]),I.type=void 0}l=Tn(l.parent,Xse)}const A=m();for(const[w,I]of D)w.resolvedSignature=I;for(const[w,I]of C)w.type=I;return A}return m()}function aa(l,m){const D=Tn(l,D2);if(D){let A=l;do ar(A).skipDirectInference=!0,A=A.parent;while(A&&A!==D)}oe=!0;const C=Zu(l,m);if(oe=!1,D){let A=l;do ar(A).skipDirectInference=void 0,A=A.parent;while(A&&A!==D)}return C}function yr(l,m,D,C){const A=Ua(l,D2);Ni=D;const w=A?mT(A,m,C):void 0;return Ni=void 0,w}var Ba=new Map,bt=new Map,jn=new Map,Ln=new Map,Si=new Map,Dn=new Map,Cn=new Map,tu=new Map,oa=new Map,Da=new Map,ua=new Map,Ta=new Map,Yo=new Map,bo=new Map,Qe=new Map,Et=[],Mt=new Map,qt=new Set,Xt=Hs(4,"unknown"),Pe=Hs(0,"__resolving__"),et=new Map,gt=new Map,ii=new Set,me=Pc(1,"any"),ni=Pc(1,"any",262144,"auto"),vi=Pc(1,"any",void 0,"wildcard"),mt=Pc(1,"any",void 0,"blocked string"),Ot=Pc(1,"error"),Ei=Pc(1,"unresolved"),$i=Pc(1,"any",65536,"non-inferrable"),Qi=Pc(1,"intrinsic"),on=Pc(2,"unknown"),le=Pc(2,"unknown",void 0,"non-null"),te=Pc(32768,"undefined"),we=fe?te:Pc(32768,"undefined",65536,"widening"),de=Pc(32768,"undefined",void 0,"missing"),je=Ve?de:te,X=Pc(32768,"undefined",void 0,"optional"),it=Pc(65536,"null"),Ct=fe?it:Pc(65536,"null",65536,"widening"),ct=Pc(4,"string"),Qt=Pc(8,"number"),Li=Pc(64,"bigint"),Ui=Pc(512,"false",void 0,"fresh"),Sn=Pc(512,"false"),du=Pc(512,"true",void 0,"fresh"),Ru=Pc(512,"true");du.regularType=Ru,du.freshType=du,Ru.regularType=Ru,Ru.freshType=du,Ui.regularType=Sn,Ui.freshType=Ui,Sn.regularType=Sn,Sn.freshType=Ui;var pr=er([Sn,Ru]),Xu=Pc(4096,"symbol"),ca=Pc(16384,"void"),Ku=Pc(131072,"never"),ja=Pc(131072,"never",262144,"silent"),wn=Pc(131072,"never",void 0,"implicit"),Ir=Pc(131072,"never",void 0,"unreachable"),as=Pc(67108864,"object"),wo=er([ct,Qt]),Fn=er([ct,Qt,Xu]),vc=Je?ct:Fn,Ya=er([Qt,Li]),c0=er([ct,Qt,pr,Li,it,te]),Ul=xF(["",""],[Qt]),wl=Tte(l=>l.flags&262144?Rti(l):l,()=>"(restrictive mapper)"),hd=Tte(l=>l.flags&262144?vi:l,()=>"(permissive mapper)"),vl=Pc(131072,"never",void 0,"unique literal"),co=Tte(l=>l.flags&262144?vl:l,()=>"(unique literal mapper)"),Ho,id=Tte(l=>(Ho&&(l===sf||l===Q0||l===Cc)&&Ho(!0),l),()=>"(unmeasurable reporter)"),Y0=Tte(l=>(Ho&&(l===sf||l===Q0||l===Cc)&&Ho(!1),l),()=>"(unreliable reporter)"),Ko=Ol(void 0,se,_t,_t,_t),Tc=Ol(void 0,se,_t,_t,_t);Tc.objectFlags|=2048;var Jp=Hs(2048,"__type");Jp.members=Vo();var Lc=Ol(Jp,se,_t,_t,_t),Il=Ol(void 0,se,_t,_t,_t),cl=fe?er([te,it,Il]):on,Ka=Ol(void 0,se,_t,_t,_t);Ka.instantiations=new Map;var Ri=Ol(void 0,se,_t,_t,_t);Ri.objectFlags|=262144;var dl=Ol(void 0,se,_t,_t,_t),Uc=Ol(void 0,se,_t,_t,_t),Ch=Ol(void 0,se,_t,_t,_t),sf=j1(),Q0=j1();Q0.constraint=sf;var Cc=j1(),$=j1(),tt=j1();tt.constraint=$;var vt=yte(1,"<>",0,me),mi=y3(void 0,void 0,void 0,_t,me,void 0,0,0),fn=y3(void 0,void 0,void 0,_t,Ot,void 0,0,0),Wu=y3(void 0,void 0,void 0,_t,me,void 0,0,0),uu=y3(void 0,void 0,void 0,_t,ja,void 0,0,0),Tu=y_(Qt,ct,!0),Nr=new Map,Vu={get yieldType(){return H.fail("Not supported")},get returnType(){return H.fail("Not supported")},get nextType(){return H.fail("Not supported")}},Ss=J5(me,me,me),ic=J5(me,me,on),nd=J5(Ku,me,te),S0={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:_ei,getGlobalIterableType:Mge,getGlobalIterableIteratorType:Dei,getGlobalGeneratorType:xei,resolveIterationType:(l,m)=>NF(l,m,F.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:F.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:F.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:F.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ud={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:vei,getGlobalIterableType:lPe,getGlobalIterableIteratorType:Cei,getGlobalGeneratorType:bei,resolveIterationType:(l,m)=>l,mustHaveANextMethodDiagnostic:F.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:F.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:F.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},m0,Bd=new Map,Oh=[],uh,h4,D1,He,di,Mn,ba,Fo,To,nc,fc,Cl,Tl,bc,ql,Nc,ip,Jm,jh,f4,c3,c_,C5,R1,d3,Wf,m4,Vh,Ee,Bt,Di,Ci,Q,Me,wt,ki,In,tr,ir,ha,os,ss,Rl,x1,fd,$m,_s,np,Um,h3,d_,ta,Xx,e6,bg,sb,b5=new Map,Xe=0,Dt=0,oi=0,Ti=!1,Xi=0,Rn,tn,bn,kr=[],Cu=[],bu=[],Eu=0,sa=[],p0=[],o0=0,Gf=df(""),eC=wg(0),t6=jge({negative:!1,base10Value:"0"}),cD=[],i6=[],Gk=[],lb=0,Jk=!1,$k=0,az=10,D9=[],ww=[],tC=[],x9=[],v9=[],Tw=[],Uk=[],Lw=[],C9=[],b9=[],qk=[],cb=[],db=[],iC=[],y5=[],hb=[],fE=[],Vs=rB(),Zk=rB(),Nw=Gw(),n6,k5,h_=new Map,p4=new Map,Jf=new Map,Hh=new Map,Em=new Map,nC=new Map,Pw=Vo();Pw.set(st.escapedName,st);var y9=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",ae.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Cli(),Pi;function Yk(l){return l?Qe.get(l):void 0}function fb(l,m){return l&&Qe.set(l,m),m}function uC(l){if(l){const m=zn(l);if(m)if(V7(l)){if(m.localJsxFragmentNamespace)return m.localJsxFragmentNamespace;const D=m.pragmas.get("jsxfrag");if(D){const A=Ha(D)?D[0]:D;if(m.localJsxFragmentFactory=G7(A.arguments.factory,Ce),yt(m.localJsxFragmentFactory,rC,sm),m.localJsxFragmentFactory)return m.localJsxFragmentNamespace=hm(m.localJsxFragmentFactory).escapedText}const C=Uze(l);if(C)return m.localJsxFragmentFactory=C,m.localJsxFragmentNamespace=hm(C).escapedText}else{const D=Qk(m);if(D)return m.localJsxNamespace=D}}return n6||(n6="React",ae.jsxFactory?(k5=G7(ae.jsxFactory,Ce),yt(k5,rC),k5&&(n6=hm(k5).escapedText)):ae.reactNamespace&&(n6=Al(ae.reactNamespace))),k5||(k5=q.createQualifiedName(q.createIdentifier(Yr(n6)),"createElement")),n6}function Qk(l){if(l.localJsxNamespace)return l.localJsxNamespace;const m=l.pragmas.get("jsx");if(m){const D=Ha(m)?m[0]:m;if(l.localJsxFactory=G7(D.arguments.factory,Ce),yt(l.localJsxFactory,rC,sm),l.localJsxFactory)return l.localJsxNamespace=hm(l.localJsxFactory).escapedText}}function rC(l){return t_(l,-1,-1),rn(l,rC,Dg)}function jd(l,m){return O4t(l,m),Gt}function F5(l,m,...D){const C=l?Su(l,m,...D):cc(m,...D),A=Vs.lookup(C);return A||(Vs.add(C),C)}function A5(l,m,D,...C){const A=pt(m,D,...C);return A.skippedOn=l,A}function f3(l,m,...D){return l?Su(l,m,...D):cc(m,...D)}function pt(l,m,...D){const C=f3(l,m,...D);return Vs.add(C),C}function i1(l,m){l?Vs.add(m):Zk.add({...m,category:2})}function g4(l,m,D,...C){if(m.pos<0||m.end<0){if(!l)return;const A=zn(m);i1(l,"message"in D?Rd(A,0,0,D,...C):b0e(A,D));return}i1(l,"message"in D?Su(m,D,...C):Y3(zn(m),m,D))}function bh(l,m,D,...C){const A=pt(l,D,...C);if(m){const w=Su(l,F.Did_you_forget_to_use_await);Es(A,w)}return A}function Mw(l,m){const D=Array.isArray(l)?L(l,Rse):Rse(l);return D&&Es(m,Su(D,F.The_declaration_was_marked_as_deprecated_here)),Zk.add(m),m}function S5(l){const m=cf(l);return m&&S(l.declarations)>1?m.flags&64?Oe(l.declarations,aC):ye(l.declarations,aC):!!l.valueDeclaration&&aC(l.valueDeclaration)||S(l.declarations)&&ye(l.declarations,aC)}function aC(l){return!!(Gb(l)&536870912)}function m3(l,m,D){const C=Su(l,F._0_is_deprecated,D);return Mw(m,C)}function oz(l,m,D,C){const A=D?Su(l,F.The_signature_0_of_1_is_deprecated,C,D):Su(l,F._0_is_deprecated,C);return Mw(m,A)}function Hs(l,m,D){T++;const C=new v(l|33554432,m);return C.links=new OAe,C.links.checkFlags=D||0,C}function yg(l,m){const D=Hs(1,l);return D.links.type=m,D}function Xk(l,m){const D=Hs(4,l);return D.links.type=m,D}function eF(l){let m=0;return l&2&&(m|=111551),l&1&&(m|=111550),l&4&&(m|=0),l&8&&(m|=900095),l&16&&(m|=110991),l&32&&(m|=899503),l&64&&(m|=788872),l&256&&(m|=899327),l&128&&(m|=899967),l&512&&(m|=110735),l&8192&&(m|=103359),l&32768&&(m|=46015),l&65536&&(m|=78783),l&262144&&(m|=526824),l&524288&&(m|=788968),l&2097152&&(m|=2097152),m}function mb(l,m){m.mergeId||(m.mergeId=IAe,IAe++),D9[m.mergeId]=l}function pb(l){const m=Hs(l.flags,l.escapedName);return m.declarations=l.declarations?l.declarations.slice():[],m.parent=l.parent,l.valueDeclaration&&(m.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(m.constEnumOnlyModule=!0),l.members&&(m.members=new Map(l.members)),l.exports&&(m.exports=new Map(l.exports)),mb(m,l),m}function up(l,m,D=!1){if(!(l.flags&eF(m.flags))||(m.flags|l.flags)&67108864){if(m===l)return l;if(!(l.flags&33554432)){const A=yc(l);if(A===Xt)return m;l=pb(A)}m.flags&512&&l.flags&512&&l.constEnumOnlyModule&&!m.constEnumOnlyModule&&(l.constEnumOnlyModule=!1),l.flags|=m.flags,m.valueDeclaration&&Fj(l,m.valueDeclaration),yn(l.declarations,m.declarations),m.members&&(l.members||(l.members=Vo()),mE(l.members,m.members,D)),m.exports&&(l.exports||(l.exports=Vo()),mE(l.exports,m.exports,D)),D||mb(l,m)}else if(l.flags&1024)l!==St&&pt(m.declarations&&Za(m.declarations[0]),F.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Fr(l));else{const A=!!(l.flags&384||m.flags&384),w=!!(l.flags&2||m.flags&2),I=A?F.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:w?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0,U=m.declarations&&zn(m.declarations[0]),Z=l.declarations&&zn(l.declarations[0]),ce=nj(U,ae.checkJs),Fe=nj(Z,ae.checkJs),Te=Fr(m);if(U&&Z&&m0&&!A&&U!==Z){const $e=pv(U.path,Z.path)===-1?U:Z,ut=$e===U?Z:U,zt=W0(m0,`${$e.path}|${ut.path}`,()=>({firstFile:$e,secondFile:ut,conflictingSymbols:new Map})),gi=W0(zt.conflictingSymbols,Te,()=>({isBlockScoped:w,firstFileLocations:[],secondFileLocations:[]}));ce||C(gi.firstFileLocations,m),Fe||C(gi.secondFileLocations,l)}else ce||kg(m,I,Te,l),Fe||kg(l,I,Te,m)}return l;function C(A,w){if(w.declarations)for(const I of w.declarations)xa(A,I)}}function kg(l,m,D,C){L(l.declarations,A=>{p3(A,m,D,C.declarations)})}function p3(l,m,D,C){const A=(yv(l,!1)?N0e(l):Za(l))||l,w=F5(A,m,D);for(const I of C||_t){const U=(yv(I,!1)?N0e(I):Za(I))||I;if(U===A)continue;w.relatedInformation=w.relatedInformation||[];const Z=Su(U,F._0_was_also_declared_here,D),ce=Su(U,F.and_here);S(w.relatedInformation)>=5||Oe(w.relatedInformation,Fe=>bP(Fe,ce)===0||bP(Fe,Z)===0)||Es(w,S(w.relatedInformation)?ce:Z)}}function tF(l,m){if(!(l!=null&&l.size))return m;if(!(m!=null&&m.size))return l;const D=Vo();return mE(D,l),mE(D,m),D}function mE(l,m,D=!1){m.forEach((C,A)=>{const w=l.get(A);l.set(A,w?up(w,C,D):Ks(C))})}function iF(l){var m,D,C;const A=l.parent;if(((m=A.symbol.declarations)==null?void 0:m[0])!==A){H.assert(A.symbol.declarations.length>1);return}if(Yg(A))mE(Ie,A.symbol.exports);else{const w=l.parent.parent.flags&33554432?void 0:F.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let I=D3(l,l,w,!0);if(!I)return;if(I=_m(I),I.flags&1920)if(Oe(h4,U=>I===U.symbol)){const U=up(A.symbol,I,!0);D1||(D1=new Map),D1.set(l.text,U)}else{if((D=I.exports)!=null&&D.get("__export")&&((C=A.symbol.exports)!=null&&C.size)){const U=PNe(I,"resolvedExports");for(const[Z,ce]of ga(A.symbol.exports.entries()))U.has(Z)&&!I.exports.has(Z)&&up(U.get(Z),ce)}up(I,A.symbol)}else pt(l,F.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,l.text)}}function zw(l,m,D){m.forEach((A,w)=>{const I=l.get(w);I?L(I.declarations,C(Yr(w),D)):l.set(w,A)});function C(A,w){return I=>Vs.add(Su(I,w,A))}}function Ur(l){if(l.flags&33554432)return l.links;const m=Zo(l);return ww[m]??(ww[m]=new OAe)}function ar(l){const m=$s(l);return tC[m]||(tC[m]=new yPt)}function pE(l){return l.kind===312&&!cm(l)}function kf(l,m,D){if(D){const C=Ks(l.get(m));if(C&&(H.assert((Gl(C)&1)===0,"Should never get an instantiated symbol here."),C.flags&D||C.flags&2097152&&O1(C)&D))return C}}function Iw(l,m){const D=l.parent,C=l.parent.parent,A=kf(D.locals,m,111551),w=kf(_6(C.symbol),m,111551);return A&&w?[A,w]:H.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function B5(l,m){const D=zn(l),C=zn(m),A=YE(l);if(D!==C){if(ne&&(D.externalModuleIndicator||C.externalModuleIndicator)||!y0(ae)||ck(m)||l.flags&33554432||I(m,l))return!0;const Z=t.getSourceFiles();return Z.indexOf(D)<=Z.indexOf(C)}if(m.flags&16777216||ck(m)||hMe(m))return!0;if(l.pos<=m.pos&&!(ko(l)&&mj(m.parent)&&!l.initializer&&!l.exclamationToken)){if(l.kind===208){const Z=Fv(m,208);return Z?Tn(Z,js)!==Tn(l,js)||l.posPs(Z)&&Z.parent.parent===l);if(ko(l))return!U(l,m,!1);if(Mf(l,l.parent))return!(Ne&&Yd(l)===Yd(m)&&I(m,l))}return!0}if(m.parent.kind===281||m.parent.kind===277&&m.parent.isExportEquals||m.kind===277&&m.isExportEquals)return!0;if(I(m,l))return Ne&&Yd(l)&&(ko(l)||Mf(l,l.parent))?!U(l,m,!0):!0;return!1;function w(Z,ce){switch(Z.parent.parent.kind){case 243:case 248:case 250:if(Eb(ce,Z,A))return!0;break}const Fe=Z.parent.parent;return M8(Fe)&&Eb(ce,Fe.expression,A)}function I(Z,ce){return!!Tn(Z,Fe=>{if(Fe===A)return"quit";if(Co(Fe))return!0;if(zl(Fe))return ce.posZ.end?!1:Tn(ce,$e=>{if($e===Z)return"quit";switch($e.kind){case 219:return!0;case 172:return Fe&&(ko(Z)&&$e.parent===Z.parent||Mf(Z,Z.parent)&&$e.parent===Z.parent.parent)?"quit":!0;case 241:switch($e.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function Rw(l,m,D){const C=Os(ae),A=m;if(io(D)&&A.body&&l.valueDeclaration&&l.valueDeclaration.pos>=A.body.pos&&l.valueDeclaration.end<=A.body.end&&C>=2){const U=ar(A);return U.declarationRequiresScopeChange===void 0&&(U.declarationRequiresScopeChange=L(A.parameters,w)||!1),!U.declarationRequiresScopeChange}return!1;function w(U){return I(U.name)||!!U.initializer&&I(U.initializer)}function I(U){switch(U.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return I(U.name);case 172:return Kc(U)?!Ne:I(U.name);default:return Kse(U)||Y1(U)?C<7:js(U)&&U.dotDotDotToken&&Rp(U.parent)?C<4:Qr(U)?!1:ao(U,I)||!1}}}function gb(l){return Yy(l)&&q3(l.type)||XP(l)&&q3(l.typeExpression)}function uc(l,m,D,C,A,w,I=!1,U=!0){return yh(l,m,D,C,A,w,I,U,kf)}function yh(l,m,D,C,A,w,I,U,Z){var ce,Fe,Te;const $e=l;let ut,zt,gi,Wi,dn,nu=!1;const En=l;let Ii,Nn=!1;e:for(;l;){if(m==="const"&&gb(l))return;if(QO(l)&&zt&&l.name===zt&&(zt=l,l=l.parent),UE(l)&&l.locals&&!pE(l)&&(ut=Z(l.locals,m,D))){let An=!0;if(Co(l)&&zt&&zt!==l.body?(D&ut.flags&788968&&zt.kind!==327&&(An=ut.flags&262144?zt===l.type||zt.kind===169||zt.kind===348||zt.kind===349||zt.kind===168:!1),D&ut.flags&3&&(Rw(ut,l,zt)?An=!1:ut.flags&1&&(An=zt.kind===169||zt===l.type&&!!Tn(ut.valueDeclaration,io)))):l.kind===194&&(An=zt===l.trueType),An)break e;ut=void 0}switch(nu=nu||f_(l,zt),l.kind){case 312:if(!cm(l))break;Nn=!0;case 267:const An=((ce=_u(l))==null?void 0:ce.exports)||se;if(l.kind===312||_c(l)&&l.flags&33554432&&!Yg(l)){if(ut=An.get("default")){const oo=lB(ut);if(oo&&ut.flags&D&&oo.escapedName===m)break e;ut=void 0}const hu=An.get(m);if(hu&&hu.flags===2097152&&(Sl(hu,281)||Sl(hu,280)))break}if(m!=="default"&&(ut=Z(An,m,D&2623475)))if(la(l)&&l.commonJsModuleIndicator&&!((Fe=ut.declarations)!=null&&Fe.some(G4)))ut=void 0;else break e;break;case 266:if(ut=Z(((Te=_u(l))==null?void 0:Te.exports)||se,m,D&8)){C&&mg(ae)&&!(l.flags&33554432)&&zn(l)!==zn(ut.valueDeclaration)&&pt(En,F.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Yr(m),ht,`${Yr(Dm(l).escapedName)}.${Yr(m)}`);break e}break;case 172:if(!No(l)){const hu=Up(l.parent);hu&&hu.locals&&Z(hu.locals,m,D&111551)&&(H.assertNode(l,ko),Wi=l)}break;case 263:case 231:case 264:if(ut=Z(_u(l).members||se,m,D&788968)){if(!oC(ut,l)){ut=void 0;break}if(zt&&No(zt)){C&&pt(En,F.Static_members_cannot_reference_class_type_parameters);return}break e}if(Xd(l)&&D&32){const hu=l.name;if(hu&&m===hu.escapedText){ut=l.symbol;break e}}break;case 233:if(zt===l.expression&&l.parent.token===96){const hu=l.parent.parent;if(mr(hu)&&(ut=Z(_u(hu).members,m,D&788968))){C&&pt(En,F.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Ii=l.parent.parent,(mr(Ii)||Ii.kind===264)&&(ut=Z(_u(Ii).members,m,D&788968))){C&&pt(En,F.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Os(ae)>=2)break;case 174:case 176:case 177:case 178:case 262:if(D&3&&m==="arguments"){ut=It;break e}break;case 218:if(D&3&&m==="arguments"){ut=It;break e}if(D&16){const hu=l.name;if(hu&&m===hu.escapedText){ut=l.symbol;break e}}break;case 170:l.parent&&l.parent.kind===169&&(l=l.parent),l.parent&&(Zd(l.parent)||l.parent.kind===263)&&(l=l.parent);break;case 353:case 345:case 347:const _n=iP(l);_n&&(l=_n.parent);break;case 169:zt&&(zt===l.initializer||zt===l.name&&So(zt))&&(dn||(dn=l));break;case 208:zt&&(zt===l.initializer||zt===l.name&&So(zt))&&w2(l)&&!dn&&(dn=l);break;case 195:if(D&262144){const hu=l.typeParameter.name;if(hu&&m===hu.escapedText){ut=l.typeParameter.symbol;break e}}break;case 281:zt&&zt===l.propertyName&&l.parent.parent.moduleSpecifier&&(l=l.parent.parent.parent);break}g3(l)&&(gi=l),zt=l,l=_g(l)?Aq(l)||l.parent:(Eg(l)||EY(l))&&kv(l)||l.parent}if(w&&ut&&(!gi||ut!==gi.symbol)&&(ut.isReferenced|=D),!ut){if(zt&&(H.assertNode(zt,la),zt.commonJsModuleIndicator&&m==="exports"&&D&zt.symbol.flags))return zt.symbol;I||(ut=Z(Ie,m,D))}if(!ut&&$e&&Qn($e)&&$e.parent&&xf($e.parent,!1))return ei;function vn(){return Wi&&!Ne?(pt(En,En&&Wi.type&&IO(Wi.type,En.pos)?F.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:F.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,b0(Wi.name),$p(A)),!0):!1}if(ut){if(C&&vn())return}else{C&&s(()=>{if(!En||En.parent.kind!==331&&!E3(En,m,A)&&!vn()&&!Ow(En)&&!jw(En,m,D)&&!w5(En,m)&&!F9(En,m,D)&&!Vw(En,m,D)&&!gE(En,m,D)){let An,_n;if(A&&(_n=dri(A),_n&&pt(En,C,$p(A),_n)),!_n&&U&&$k{if(En&&(D&2||(D&32||D&384)&&(D&111551)===111551)){const An=sp(ut);(An.flags&2||An.flags&32||An.flags&384)&&B0(An,En)}if(ut&&Nn&&(D&111551)===111551&&!($e.flags&16777216)){const An=Ks(ut);S(An.declarations)&&ye(An.declarations,_n=>wV(_n)||la(_n)&&!!_n.symbol.globalExports)&&g4(!ae.allowUmdGlobalAccess,En,F._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Yr(m))}if(ut&&dn&&!nu&&(D&111551)===111551){const An=Ks(yge(ut)),_n=XE(dn);An===_u(dn)?pt(En,F.Parameter_0_cannot_reference_itself,b0(dn.name)):An.valueDeclaration&&An.valueDeclaration.pos>dn.pos&&_n.parent.locals&&Z(_n.parent.locals,An.escapedName,D)===An&&pt(En,F.Parameter_0_cannot_reference_identifier_1_declared_after_it,b0(dn.name),b0(En))}if(ut&&En&&D&111551&&ut.flags&2097152&&!(ut.flags&111551)&&!Tv(En)){const An=_4(ut,111551);if(An){const _n=An.kind===281||An.kind===278||An.kind===280?F._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:F._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,hu=Yr(m);dD(pt(En,_n,hu),An,hu)}}}),ut}function dD(l,m,D){return m?Es(l,Su(m,m.kind===281||m.kind===278||m.kind===280?F._0_was_exported_here:F._0_was_imported_here,D)):l}function f_(l,m){return l.kind!==219&&l.kind!==218?bB(l)||($0(l)||l.kind===172&&!No(l))&&(!m||m!==l.name):m&&m===l.name?!1:l.asteriskToken||Yu(l,1024)?!0:!nk(l)}function g3(l){switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function $p(l){return Ja(l)?Yr(l):b0(l)}function oC(l,m){if(l.declarations){for(const D of l.declarations)if(D.kind===168&&(_g(D.parent)?h7(D.parent):D.parent)===m)return!(_g(D.parent)&&Le(D.parent.parent.tags,G4))}return!1}function E3(l,m,D){if(!at(l)||l.escapedText!==m||j4t(l)||ck(l))return!1;const C=tf(l,!1,!1);let A=C;for(;A;){if(mr(A.parent)){const w=_u(A.parent);if(!w)break;const I=Wn(w);if(qo(I,m))return pt(l,F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,$p(D),Fr(w)),!0;if(A===C&&!No(A)){const U=X0(w).thisType;if(qo(U,m))return pt(l,F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,$p(D)),!0}}A=A.parent}return!1}function Ow(l){const m=m_(l);return m&&R0(m,64,!0)?(pt(l,F.Cannot_extend_an_interface_0_Did_you_mean_implements,Hc(m)),!0):!1}function m_(l){switch(l.kind){case 80:case 211:return l.parent?m_(l.parent):void 0;case 233:if(ec(l.expression))return l.expression;default:return}}function jw(l,m,D){const C=1920|(Qn(l)?111551:0);if(D===C){const A=yc(uc(l,m,788968&~C,void 0,void 0,!1)),w=l.parent;if(A){if(vf(w)){H.assert(w.left===l,"Should only be resolving left side of qualified name as a namespace");const I=w.right.escapedText;if(qo(X0(A),I))return pt(w,F.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Yr(m),Yr(I)),!0}return pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Yr(m)),!0}}return!1}function gE(l,m,D){if(D&788584){const C=yc(uc(l,m,111127,void 0,void 0,!1));if(C&&!(C.flags&1920))return pt(l,F._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Yr(m)),!0}return!1}function p_(l){return l==="any"||l==="string"||l==="number"||l==="boolean"||l==="never"||l==="unknown"}function w5(l,m){return p_(m)&&l.parent.kind===281?(pt(l,F.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,m),!0):!1}function Vw(l,m,D){if(D&111551){if(p_(m)){const w=l.parent.parent;if(w&&w.parent&&mm(w)){const I=w.token,U=w.parent.kind;U===264&&I===96?pt(l,F.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Yr(m)):U===263&&I===96?pt(l,F.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Yr(m)):U===263&&I===119&&pt(l,F.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Yr(m))}else pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Yr(m));return!0}const C=yc(uc(l,m,788544,void 0,void 0,!1)),A=C&&O1(C);if(C&&A!==void 0&&!(A&111551)){const w=Yr(m);return sz(m)?pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later,w):k9(l,C)?pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,w,w==="K"?"P":"K"):pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,w),!0}}return!1}function k9(l,m){const D=Tn(l.parent,C=>Ps(C)||Mm(C)?!1:fm(C)||"quit");if(D&&D.members.length===1){const C=X0(m);return!!(C.flags&1048576)&&mie(C,384,!0)}return!1}function sz(l){switch(l){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function F9(l,m,D){if(D&111127){if(yc(uc(l,m,1024,void 0,void 0,!1)))return pt(l,F.Cannot_use_namespace_0_as_a_value,Yr(m)),!0}else if(D&788544&&yc(uc(l,m,1536,void 0,void 0,!1)))return pt(l,F.Cannot_use_namespace_0_as_a_type,Yr(m)),!0;return!1}function B0(l,m){var D;if(H.assert(!!(l.flags&2||l.flags&32||l.flags&384)),l.flags&67108881&&l.flags&32)return;const C=(D=l.declarations)==null?void 0:D.find(A=>h0e(A)||mr(A)||A.kind===266);if(C===void 0)return H.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(C.flags&33554432)&&!B5(C,m)){let A;const w=b0(Za(C));l.flags&2?A=pt(m,F.Block_scoped_variable_0_used_before_its_declaration,w):l.flags&32?A=pt(m,F.Class_0_used_before_its_declaration,w):l.flags&256&&(A=pt(m,F.Enum_0_used_before_its_declaration,w)),A&&Es(A,Su(C,F._0_is_declared_here,w))}}function Eb(l,m,D){return!!m&&!!Tn(l,C=>C===m||(C===D||Co(C)&&(!nk(C)||kd(C)&3)?"quit":!1))}function A9(l){switch(l.kind){case 271:return l;case 273:return l.parent;case 274:return l.parent.parent;case 276:return l.parent.parent.parent;default:return}}function rp(l){return l.declarations&<(l.declarations,sC)}function sC(l){return l.kind===271||l.kind===270||l.kind===273&&!!l.name||l.kind===274||l.kind===280||l.kind===276||l.kind===281||l.kind===277&&tB(l)||Xn(l)&&Xl(l)===2&&tB(l)||I0(l)&&Xn(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===64&&S9(l.parent.right)||l.kind===304||l.kind===303&&S9(l.initializer)||l.kind===260&&F2(l)||l.kind===208&&F2(l.parent.parent)}function S9(l){return Pj(l)||A0(l)&&AE(l)}function lz(l,m){const D=fD(l);if(D){const A=CP(D.expression).arguments[0];return at(D.name)?yc(qo(Ldt(A),D.name.escapedText)):void 0}if(na(l)||l.moduleReference.kind===283){const A=Kh(l,w0e(l)||XN(l)),w=_m(A);return Ff(l,A,w,!1),w}const C=aF(l.moduleReference,m);return nF(l,C),C}function nF(l,m){if(Ff(l,void 0,m,!1)&&!l.isTypeOnly){const D=_4(_u(l)),C=D.kind===281||D.kind===278,A=C?F.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:F.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,w=C?F._0_was_exported_here:F._0_was_imported_here,I=D.kind===278?"*":Yr(D.name.escapedText);Es(pt(l.moduleReference,A),Su(D,w,I))}}function ru(l,m,D,C){const A=l.exports.get("export="),w=A?qo(Wn(A),m,!0):l.exports.get(m),I=yc(w,C);return Ff(D,w,I,!1),I}function v1(l){return tc(l)&&!l.isExportEquals||Yu(l,2048)||eh(l)||u_(l)}function Ma(l){return t0(l)?xg(zn(l),l):void 0}function lf(l,m){return l===99&&m===1}function EE(l){return Ma(l)===99&&sc(l.text,".json")}function ap(l,m,D,C){const A=l&&Ma(C);if(l&&A!==void 0){const w=lf(A,l.impliedNodeFormat);if(A===99||w)return w}if(!pe)return!1;if(!l||l.isDeclarationFile){const w=ru(m,"default",void 0,!0);return!(w&&Oe(w.declarations,v1)||ru(m,Al("__esModule"),void 0,D))}return gh(l)?typeof l.externalModuleIndicator!="object"&&!ru(m,Al("__esModule"),void 0,D):bb(m)}function Un(l,m){const D=Kh(l,l.parent.moduleSpecifier);if(D)return _b(D,l,m)}function _b(l,m,D){var C;let A;$N(l)?A=l:A=ru(l,"default",m,D);const w=(C=l.declarations)==null?void 0:C.find(la),I=lC(m);if(!I)return A;const U=EE(I),Z=ap(w,l,D,I);if(!A&&!Z&&!U)if(bb(l)&&!pe){const ce=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop",Te=l.exports.get("export=").valueDeclaration,$e=pt(m.name,F.Module_0_can_only_be_default_imported_using_the_1_flag,Fr(l),ce);Te&&Es($e,Su(Te,F.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,ce))}else n_(m)?wd(l,m):dC(l,l,m,r7(m)&&m.propertyName||m.name);else if(Z||U){const ce=_m(l,D)||yc(l,D);return Ff(m,l,ce,!1),ce}return Ff(m,A,void 0,!1),A}function lC(l){switch(l.kind){case 273:return l.parent.moduleSpecifier;case 271:return r_(l.moduleReference)?l.moduleReference.expression:void 0;case 274:return l.parent.parent.moduleSpecifier;case 276:return l.parent.parent.parent.moduleSpecifier;case 281:return l.parent.parent.moduleSpecifier;default:return H.assertNever(l)}}function wd(l,m){var D,C,A;if((D=l.exports)!=null&&D.has(m.symbol.escapedName))pt(m.name,F.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Fr(l),Fr(m.symbol));else{const w=pt(m.name,F.Module_0_has_no_default_export,Fr(l)),I=(C=l.exports)==null?void 0:C.get("__export");if(I){const U=(A=I.declarations)==null?void 0:A.find(Z=>{var ce,Fe;return!!(Gc(Z)&&Z.moduleSpecifier&&((Fe=(ce=Kh(Z,Z.moduleSpecifier))==null?void 0:ce.exports)!=null&&Fe.has("default")))});U&&Es(w,Su(U,F.export_Asterisk_does_not_re_export_a_default))}}}function _E(l,m){const D=l.parent.parent.moduleSpecifier,C=Kh(l,D),A=o6(C,D,m,!1);return Ff(l,C,A,!1),A}function DE(l,m){const D=l.parent.moduleSpecifier,C=D&&Kh(l,D),A=D&&o6(C,D,m,!1);return Ff(l,C,A,!1),A}function u6(l,m){if(l===Xt&&m===Xt)return Xt;if(l.flags&790504)return l;const D=Hs(l.flags|m.flags,l.escapedName);return H.assert(l.declarations||m.declarations),D.declarations=ri(Hi(l.declarations,m.declarations),Cx),D.parent=l.parent||m.parent,l.valueDeclaration&&(D.valueDeclaration=l.valueDeclaration),m.members&&(D.members=new Map(m.members)),l.exports&&(D.exports=new Map(l.exports)),D}function B9(l,m,D,C){var A;if(l.flags&1536){const w=$f(l).get(m.escapedText),I=yc(w,C),U=(A=Ur(l).typeOnlyExportStarMap)==null?void 0:A.get(m.escapedText);return Ff(D,w,I,!1,U,m.escapedText),I}}function hD(l,m){if(l.flags&3){const D=l.valueDeclaration.type;if(D)return yc(qo(Ar(D),m))}}function cC(l,m,D=!1){var C;const A=w0e(l)||l.moduleSpecifier,w=Kh(l,A),I=!Iu(m)&&m.propertyName||m.name;if(!at(I))return;const U=I.escapedText==="default"&&pe,Z=o6(w,A,!1,U);if(Z&&I.escapedText){if($N(w))return w;let ce;w&&w.exports&&w.exports.get("export=")?ce=qo(Wn(Z),I.escapedText,!0):ce=hD(Z,I.escapedText),ce=yc(ce,D);let Fe=B9(Z,I,m,D);if(Fe===void 0&&I.escapedText==="default"){const $e=(C=w.declarations)==null?void 0:C.find(la);(EE(A)||ap($e,w,D,A))&&(Fe=_m(w,D)||yc(w,D))}const Te=Fe&&ce&&Fe!==ce?u6(ce,Fe):Fe||ce;return Te||dC(w,Z,l,I),Te}}function dC(l,m,D,C){var A;const w=op(l,D),I=b0(C),U=PEe(C,m);if(U!==void 0){const Z=Fr(U),ce=pt(C,F._0_has_no_exported_member_named_1_Did_you_mean_2,w,I,Z);U.valueDeclaration&&Es(ce,Su(U.valueDeclaration,F._0_is_declared_here,Z))}else(A=l.exports)!=null&&A.has("default")?pt(C,F.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,w,I):_3(D,C,I,l,w)}function _3(l,m,D,C,A){var w,I;const U=(I=(w=ur(C.valueDeclaration,UE))==null?void 0:w.locals)==null?void 0:I.get(m.escapedText),Z=C.exports;if(U){const ce=Z==null?void 0:Z.get("export=");if(ce)Zm(ce,U)?g_(l,m,D,A):pt(m,F.Module_0_has_no_exported_member_1,A,D);else{const Fe=Z?Le(QNe(Z),$e=>!!Zm($e,U)):void 0,Te=Fe?pt(m,F.Module_0_declares_1_locally_but_it_is_exported_as_2,A,D,Fr(Fe)):pt(m,F.Module_0_declares_1_locally_but_it_is_not_exported,A,D);U.declarations&&Es(Te,...Vt(U.declarations,($e,ut)=>Su($e,ut===0?F._0_is_declared_here:F.and_here,D)))}}else pt(m,F.Module_0_has_no_exported_member_1,A,D)}function g_(l,m,D,C){if(ne>=5){const A=e_(ae)?F._0_can_only_be_imported_by_using_a_default_import:F._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;pt(m,A,D)}else if(Qn(l)){const A=e_(ae)?F._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:F._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;pt(m,A,D)}else{const A=e_(ae)?F._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:F._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;pt(m,A,D,D,C)}}function uF(l,m){if(bf(l)&&fu(l.propertyName||l.name)==="default"){const I=lC(l),U=I&&Kh(l,I);if(U)return _b(U,l,m)}const D=js(l)?XE(l):l.parent.parent.parent,C=fD(D),A=cC(D,C||l,m),w=l.propertyName||l.name;return C&&A&&at(w)?yc(qo(Wn(A),w.escapedText),m):(Ff(l,void 0,A,!1),A)}function fD(l){if(na(l)&&l.initializer&&Iu(l.initializer))return l.initializer}function r6(l,m){if(Zg(l.parent)){const D=_m(l.parent.symbol,m);return Ff(l,void 0,D,!1),D}}function Db(l,m,D){if(fu(l.propertyName||l.name)==="default"){const A=lC(l),w=A&&Kh(l,A);if(w)return _b(w,l,!!D)}const C=l.parent.parent.moduleSpecifier?cC(l.parent.parent,l,D):R0(l.propertyName||l.name,m,!1,D);return Ff(l,void 0,C,!1),C}function w9(l,m){const D=tc(l)?l.expression:l.right,C=rF(D,m);return Ff(l,void 0,C,!1),C}function rF(l,m){if(Xd(l))return Rc(l).symbol;if(!sm(l)&&!ec(l))return;const D=R0(l,901119,!0,m);return D||(Rc(l),ar(l).resolvedSymbol)}function xb(l,m){if(Xn(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===64)return rF(l.parent.right,m)}function E4(l,m=!1){switch(l.kind){case 271:case 260:return lz(l,m);case 273:return Un(l,m);case 274:return _E(l,m);case 280:return DE(l,m);case 276:case 208:return uF(l,m);case 281:return Db(l,901119,m);case 277:case 226:return w9(l,m);case 270:return r6(l,m);case 304:return R0(l.name,901119,!0,m);case 303:return rF(l.initializer,m);case 212:case 211:return xb(l,m);default:return H.fail()}}function hC(l,m=901119){return l?(l.flags&(2097152|m))===2097152||!!(l.flags&2097152&&l.flags&67108864):!1}function yc(l,m){return!m&&hC(l)?md(l):l}function md(l){H.assert((l.flags&2097152)!==0,"Should only get Alias here.");const m=Ur(l);if(m.aliasTarget)m.aliasTarget===Pe&&(m.aliasTarget=Xt);else{m.aliasTarget=Pe;const D=rp(l);if(!D)return H.fail();const C=E4(D);m.aliasTarget===Pe?m.aliasTarget=C||Xt:pt(D,F.Circular_definition_of_import_alias_0,Fr(l))}return m.aliasTarget}function T9(l){if(Ur(l).aliasTarget!==Pe)return md(l)}function O1(l,m,D){const C=m&&_4(l),A=C&&Gc(C),w=C&&(A?Kh(C.moduleSpecifier,C.moduleSpecifier,!0):md(C.symbol)),I=A&&w?x3(w):void 0;let U=D?0:l.flags,Z;for(;l.flags&2097152;){const ce=sp(md(l));if(!A&&ce===w||(I==null?void 0:I.get(ce.escapedName))===ce)break;if(ce===Xt)return 67108863;if(ce===l||Z!=null&&Z.has(ce))break;ce.flags&2097152&&(Z?Z.add(ce):Z=new Set([l,ce])),U|=ce.flags,l=ce}return U}function Ff(l,m,D,C,A,w){if(!l||Iu(l))return!1;const I=_u(l);if(_2(l)){const Z=Ur(I);return Z.typeOnlyDeclaration=l,!0}if(A){const Z=Ur(I);return Z.typeOnlyDeclaration=A,I.escapedName!==w&&(Z.typeOnlyExportStarName=w),!0}const U=Ur(I);return vb(U,m,C)||vb(U,D,C)}function vb(l,m,D){var C;if(m&&(l.typeOnlyDeclaration===void 0||D&&l.typeOnlyDeclaration===!1)){const A=((C=m.exports)==null?void 0:C.get("export="))??m,w=A.declarations&&Le(A.declarations,_2);l.typeOnlyDeclaration=w??Ur(A).typeOnlyDeclaration??!1}return!!l.typeOnlyDeclaration}function _4(l,m){if(!(l.flags&2097152))return;const D=Ur(l);if(m===void 0)return D.typeOnlyDeclaration||void 0;if(D.typeOnlyDeclaration){const C=D.typeOnlyDeclaration.kind===278?yc(x3(D.typeOnlyDeclaration.symbol.parent).get(D.typeOnlyExportStarName||l.escapedName)):md(D.typeOnlyDeclaration.symbol);return O1(C)&m?D.typeOnlyDeclaration:void 0}}function fC(l){if(!Ut)return;const m=_u(l),D=md(m);D&&(D===Xt||O1(m,!0)&111551&&!OW(D))&&T5(m)}function T5(l){H.assert(Ut);const m=Ur(l);if(!m.referenced){m.referenced=!0;const D=rp(l);if(!D)return H.fail();U8(D)&&O1(yc(l))&111551&&Rc(D.moduleReference)}}function n1(l){const m=Ur(l);m.constEnumReferenced||(m.constEnumReferenced=!0)}function aF(l,m){return l.kind===80&&gP(l)&&(l=l.parent),l.kind===80||l.parent.kind===166?R0(l,1920,!1,m):(H.assert(l.parent.kind===271),R0(l,901119,!1,m))}function op(l,m){return l.parent?op(l.parent,m)+"."+Fr(l):Fr(l,m,void 0,36)}function a6(l){for(;vf(l.parent);)l=l.parent;return l}function Hw(l){let m=hm(l),D=uc(m,m.escapedText,111551,void 0,m,!0);if(D){for(;vf(m.parent);){const C=Wn(D);if(D=qo(C,m.parent.right.escapedText),!D)return;m=m.parent}return D}}function R0(l,m,D,C,A){if(Ql(l))return;const w=1920|(Qn(l)?m&111551:0);let I;if(l.kind===80){const U=m===w||sl(l)?F.Cannot_find_namespace_0:Fht(hm(l)),Z=Qn(l)&&!sl(l)?Kw(l,m):void 0;if(I=Ks(uc(A||l,l.escapedText,m,D||Z?void 0:U,l,!0,!1)),!I)return Ks(Z)}else if(l.kind===166||l.kind===211){const U=l.kind===166?l.left:l.expression,Z=l.kind===166?l.right:l.name;let ce=R0(U,w,D,!1,A);if(!ce||Ql(Z))return;if(ce===Xt)return ce;if(ce.valueDeclaration&&Qn(ce.valueDeclaration)&&p1(ae)!==100&&na(ce.valueDeclaration)&&ce.valueDeclaration.initializer&&amt(ce.valueDeclaration.initializer)){const Fe=ce.valueDeclaration.initializer.arguments[0],Te=Kh(Fe,Fe);if(Te){const $e=_m(Te);$e&&(ce=$e)}}if(I=Ks(kf($f(ce),Z.escapedText,m)),!I&&ce.flags&2097152&&(I=Ks(kf($f(md(ce)),Z.escapedText,m))),!I){if(!D){const Fe=op(ce),Te=b0(Z),$e=PEe(Z,ce);if($e){pt(Z,F._0_has_no_exported_member_named_1_Did_you_mean_2,Fe,Te,Fr($e));return}const ut=vf(l)&&a6(l);if(He&&m&788968&&ut&&!AB(ut.parent)&&Hw(ut)){pt(ut,F._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,zf(ut));return}if(m&1920&&vf(l.parent)){const gi=Ks(kf($f(ce),Z.escapedText,788968));if(gi){pt(l.parent.right,F.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1,Fr(gi),Yr(l.parent.right.escapedText));return}}pt(Z,F.Namespace_0_has_no_exported_member_1,Fe,Te)}return}}else H.assertNever(l,"Unknown entity name kind.");return H.assert((Gl(I)&1)===0,"Should never get an instantiated symbol here."),!sl(l)&&sm(l)&&(I.flags&2097152||l.parent.kind===277)&&Ff(H0e(l),I,void 0,!0),I.flags&m||C?I:md(I)}function Kw(l,m){if(Nge(l.parent)){const D=oF(l.parent);if(D)return uc(D,l.escapedText,m,void 0,l,!0)}}function oF(l){if(Tn(l,A=>z8(A)||A.flags&16777216?G4(A):"quit"))return;const D=h7(l);if(D&&Od(D)&&kj(D.expression)){const A=_u(D.expression.left);if(A)return mC(A)}if(D&&A0(D)&&kj(D.parent)&&Od(D.parent.parent)){const A=_u(D.parent.left);if(A)return mC(A)}if(D&&(zp(D)||Jc(D))&&Xn(D.parent.parent)&&Xl(D.parent.parent)===6){const A=_u(D.parent.parent.left);if(A)return mC(A)}const C=ok(l);if(C&&Co(C)){const A=_u(C);return A&&A.valueDeclaration}}function mC(l){const m=l.parent.valueDeclaration;return m?(eP(m)?l7(m):Qy(m)?xj(m):void 0)||m:void 0}function L9(l){const m=l.valueDeclaration;if(!m||!Qn(m)||l.flags&524288||yv(m,!1))return;const D=na(m)?xj(m):l7(m);if(D){const C=Dm(D);if(C)return nze(C,l)}}function Kh(l,m,D){const A=p1(ae)===1?F.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:F.Cannot_find_module_0_or_its_corresponding_type_declarations;return D3(l,m,D?void 0:A)}function D3(l,m,D,C=!1){return t0(m)?mD(l,m.text,D,m,C):void 0}function mD(l,m,D,C,A=!1){var w,I,U,Z,ce,Fe,Te,$e,ut,zt;if(Pa(m,"@types/")){const _n=F.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,hu=yN(m,"@types/");pt(C,_n,hu,m)}const gi=kge(m,!0);if(gi)return gi;const Wi=zn(l),dn=t0(l)?l:((w=Tn(l,dm))==null?void 0:w.arguments[0])||((I=Tn(l,Sd))==null?void 0:I.moduleSpecifier)||((U=Tn(l,bv))==null?void 0:U.moduleReference.expression)||((Z=Tn(l,Gc))==null?void 0:Z.moduleSpecifier)||((ce=_c(l)?l:l.parent&&_c(l.parent)&&l.parent.name===l?l.parent:void 0)==null?void 0:ce.name)||((Fe=zx(l)?l:void 0)==null?void 0:Fe.argument.literal),nu=dn&&t0(dn)?xg(Wi,dn):Wi.impliedNodeFormat,En=p1(ae),Ii=(Te=t.getResolvedModule(Wi,m,nu))==null?void 0:Te.resolvedModule,Nn=Ii&&P1e(ae,Ii,Wi),vn=Ii&&(!Nn||Nn===F.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(Ii.resolvedFileName);if(vn){if(Nn&&pt(C,Nn,m,Ii.resolvedFileName),Ii.resolvedUsingTsExtension&&e1(m)){const _n=(($e=Tn(l,Sd))==null?void 0:$e.importClause)||Tn(l,dg(E1,Gc));(_n&&!_n.isTypeOnly||Tn(l,dm))&&pt(C,F.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,An(H.checkDefined(Kq(m))))}else if(Ii.resolvedUsingTsExtension&&!$B(ae,Wi.fileName)){const _n=((ut=Tn(l,Sd))==null?void 0:ut.importClause)||Tn(l,dg(E1,Gc));if(!(_n!=null&&_n.isTypeOnly||Tn(l,nD))){const hu=H.checkDefined(Kq(m));pt(C,F.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,hu)}}if(vn.symbol){if(Ii.isExternalLibraryImport&&!FP(Ii.extension)&&Cb(!1,C,Wi,nu,Ii,m),En===3||En===99){const _n=Wi.impliedNodeFormat===1&&!Tn(l,dm)||!!Tn(l,E1),hu=Tn(l,oo=>nD(oo)||Gc(oo)||Sd(oo));if(_n&&vn.impliedNodeFormat===99&&!kke(hu))if(Tn(l,E1))pt(C,F.Module_0_cannot_be_imported_using_this_construct_The_specifier_only_resolves_to_an_ES_module_which_cannot_be_imported_with_require_Use_an_ECMAScript_import_instead,m);else{let oo;const Eo=t3(Wi.fileName);if(Eo===".ts"||Eo===".js"||Eo===".tsx"||Eo===".jsx"){const fo=Wi.packageJsonScope,ka=Eo===".ts"?".mts":Eo===".js"?".mjs":void 0;fo&&!fo.contents.packageJsonContent.type?ka?oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ka,cr(fo.packageDirectory,"package.json")):oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,cr(fo.packageDirectory,"package.json")):ka?oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_create_a_local_package_json_file_with_type_Colon_module,ka):oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Vs.add(Y3(zn(C),C,ro(oo,F.The_current_file_is_a_CommonJS_module_whose_imports_will_produce_require_calls_however_the_referenced_file_is_an_ECMAScript_module_and_cannot_be_imported_with_require_Consider_writing_a_dynamic_import_0_call_instead,m)))}}return Ks(vn.symbol)}D&&pt(C,F.File_0_is_not_a_module,vn.fileName);return}if(h4){const _n=coe(h4,hu=>hu.pattern,m);if(_n){const hu=D1&&D1.get(m);return Ks(hu||_n.symbol)}}if(Ii&&!FP(Ii.extension)&&Nn===void 0||Nn===F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(A){const _n=F.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;pt(C,_n,m,Ii.resolvedFileName)}else Cb(Ae&&!!D,C,Wi,nu,Ii,m);return}if(D){if(Ii){const _n=t.getProjectReferenceRedirect(Ii.resolvedFileName);if(_n){pt(C,F.Output_file_0_has_not_been_built_from_source_file_1,_n,Ii.resolvedFileName);return}}if(Nn)pt(C,Nn,m,Ii.resolvedFileName);else{const _n=om(m)&&!t7(m),hu=En===3||En===99;if(!M2(ae)&&Ml(m,".json")&&En!==1&&Qq(ae))pt(C,F.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,m);else if(nu===99&&hu&&_n){const oo=$a(m,lr(Wi.path)),Eo=(zt=y9.find(([fo,ka])=>t.fileExists(oo+fo)))==null?void 0:zt[1];Eo?pt(C,F.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,m+Eo):pt(C,F.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Consider_adding_an_extension_to_the_import_path)}else pt(C,D,m)}}return;function An(_n){const hu=nV(m,_n);if(Yq(ne)||nu===99){const oo=e1(m)&&$B(ae);return hu+(_n===".mts"||_n===".d.mts"?oo?".mts":".mjs":_n===".cts"||_n===".d.mts"?oo?".cts":".cjs":oo?".ts":".js")}return hu}}function Cb(l,m,D,C,{packageId:A,resolvedFileName:w},I){let U;!Id(I)&&A&&(U=o0e(D,t,I,C,A.name)),g4(l,m,ro(U,F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,I,w))}function _m(l,m){if(l!=null&&l.exports){const D=yc(l.exports.get("export="),m),C=N9(Ks(D),Ks(l));return Ks(C)||l}}function N9(l,m){if(!l||l===Xt||l===m||m.exports.size===1||l.flags&2097152)return l;const D=Ur(l);if(D.cjsExportMerged)return D.cjsExportMerged;const C=l.flags&33554432?l:pb(l);return C.flags=C.flags|512,C.exports===void 0&&(C.exports=Vo()),m.exports.forEach((A,w)=>{w!=="export="&&C.exports.set(w,C.exports.has(w)?up(C.exports.get(w),A):A)}),C===l&&(Ur(C).resolvedExports=void 0,Ur(C).resolvedMembers=void 0),Ur(C).cjsExportMerged=C,D.cjsExportMerged=C}function o6(l,m,D,C){var A;const w=_m(l,D);if(!D&&w){if(!C&&!(w.flags&1539)&&!Sl(w,312)){const U=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop";return pt(m,F.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,U),w}const I=m.parent;if(Sd(I)&&Q8(I)||dm(I)){const U=dm(I)?I.arguments[0]:I.moduleSpecifier,Z=Wn(w),ce=umt(Z,w,l,U);if(ce)return qm(w,ce,I);const Fe=(A=l==null?void 0:l.declarations)==null?void 0:A.find(la),Te=Fe&&lf(Ma(U),Fe.impliedNodeFormat);if(e_(ae)||Te){let $e=bte(Z,0);if((!$e||!$e.length)&&($e=bte(Z,1)),$e&&$e.length||qo(Z,"default",!0)||Te){const ut=Z.flags&3670016?rmt(Z,w,l,U):uze(w,w.parent);return qm(w,ut,I)}}}}return w}function qm(l,m,D){const C=Hs(l.flags,l.escapedName);C.declarations=l.declarations?l.declarations.slice():[],C.parent=l.parent,C.links.target=l,C.links.originatingImport=D,l.valueDeclaration&&(C.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(C.constEnumOnlyModule=!0),l.members&&(C.members=new Map(l.members)),l.exports&&(C.exports=new Map(l.exports));const A=Ag(m);return C.links.type=Ol(C,A.members,_t,_t,A.indexInfos),C}function bb(l){return l.exports.get("export=")!==void 0}function L5(l){return QNe(x3(l))}function cz(l){const m=L5(l),D=_m(l);if(D!==l){const C=Wn(D);pC(C)&&yn(m,n0(C))}return m}function P9(l,m){x3(l).forEach((A,w)=>{EC(w)||m(A,w)});const C=_m(l);if(C!==l){const A=Wn(C);pC(A)&&IXt(A,(w,I)=>{m(w,I)})}}function M9(l,m){const D=x3(m);if(D)return D.get(l)}function z9(l,m){const D=M9(l,m);if(D)return D;const C=_m(m);if(C===m)return;const A=Wn(C);return pC(A)?qo(A,l):void 0}function pC(l){return!(l.flags&402784252||Gu(l)&1||A4(l)||xs(l))}function $f(l){return l.flags&6256?PNe(l,"resolvedExports"):l.flags&1536?x3(l):l.exports||se}function x3(l){const m=Ur(l);if(!m.resolvedExports){const{exports:D,typeOnlyExportStarMap:C}=R9(l);m.resolvedExports=D,m.typeOnlyExportStarMap=C}return m.resolvedExports}function I9(l,m,D,C){m&&m.forEach((A,w)=>{if(w==="default")return;const I=l.get(w);if(!I)l.set(w,A),D&&C&&D.set(w,{specifierText:Hc(C.moduleSpecifier)});else if(D&&C&&I&&yc(I)!==yc(A)){const U=D.get(w);U.exportsWithDuplicate?U.exportsWithDuplicate.push(C):U.exportsWithDuplicate=[C]}})}function R9(l){const m=[];let D;const C=new Set;l=_m(l);const A=w(l)||se;return D&&C.forEach(I=>D.delete(I)),{exports:A,typeOnlyExportStarMap:D};function w(I,U,Z){if(!Z&&(I!=null&&I.exports)&&I.exports.forEach((Te,$e)=>C.add($e)),!(I&&I.exports&&xa(m,I)))return;const ce=new Map(I.exports),Fe=I.exports.get("__export");if(Fe){const Te=Vo(),$e=new Map;if(Fe.declarations)for(const ut of Fe.declarations){const zt=Kh(ut,ut.moduleSpecifier),gi=w(zt,ut,Z||ut.isTypeOnly);I9(Te,gi,$e,ut)}$e.forEach(({exportsWithDuplicate:ut},zt)=>{if(!(zt==="export="||!(ut&&ut.length)||ce.has(zt)))for(const gi of ut)Vs.add(Su(gi,F.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,$e.get(zt).specifierText,Yr(zt)))}),I9(ce,Te)}return U!=null&&U.isTypeOnly&&(D??(D=new Map),ce.forEach((Te,$e)=>D.set($e,U))),ce}}function Ks(l){let m;return l&&l.mergeId&&(m=D9[l.mergeId])?m:l}function _u(l){return Ks(l.symbol&&yge(l.symbol))}function Dm(l){return Zg(l)?_u(l):void 0}function cf(l){return Ks(l.parent&&yge(l.parent))}function yb(l,m){const D=zn(m),C=$s(D),A=Ur(l);let w;if(A.extendedContainersByFile&&(w=A.extendedContainersByFile.get(C)))return w;if(D&&D.imports){for(const U of D.imports){if(sl(U))continue;const Z=Kh(m,U,!0);!Z||!s6(Z,l)||(w=xi(w,Z))}if(S(w))return(A.extendedContainersByFile||(A.extendedContainersByFile=new Map)).set(C,w),w}if(A.extendedContainers)return A.extendedContainers;const I=t.getSourceFiles();for(const U of I){if(!wc(U))continue;const Z=_u(U);s6(Z,l)&&(w=xi(w,Z))}return A.extendedContainers=w||_t}function Ww(l,m,D){const C=cf(l);if(C&&!(l.flags&262144)){const I=qi(C.declarations,w),U=m&&yb(l,m),Z=gC(C,D);if(m&&C.flags&v3(D)&&_C(C,m,1920,!1))return xi(Hi(Hi([C],I),U),Z);const ce=!(C.flags&v3(D))&&C.flags&788968&&X0(C).flags&524288&&D===111551?c6(m,Te=>h1(Te,$e=>{if($e.flags&v3(D)&&Wn($e)===X0(C))return $e})):void 0;let Fe=ce?[ce,...I,C]:[...I,C];return Fe=xi(Fe,Z),Fe=yn(Fe,U),Fe}const A=qi(l.declarations,I=>{if(!N1(I)&&I.parent){if(Ao(I.parent))return _u(I.parent);if(rE(I.parent)&&I.parent.parent&&_m(_u(I.parent.parent))===l)return _u(I.parent.parent)}if(Xd(I)&&Xn(I.parent)&&I.parent.operatorToken.kind===64&&I0(I.parent.left)&&ec(I.parent.left.expression))return Y_(I.parent.left)||uk(I.parent.left.expression)?_u(zn(I)):(Rc(I.parent.left.expression),ar(I.parent.left.expression).resolvedSymbol)});if(!S(A))return;return qi(A,I=>s6(I,l)?I:void 0);function w(I){return C&&kb(I,C)}}function gC(l,m){const D=!!S(l.declarations)&&Pn(l.declarations);if(m&111551&&D&&D.parent&&na(D.parent)&&(ys(D)&&D===D.parent.initializer||fm(D)&&D===D.parent.type))return _u(D.parent)}function kb(l,m){const D=br(l),C=D&&D.exports&&D.exports.get("export=");return C&&Zm(C,m)?D:void 0}function s6(l,m){if(l===cf(m))return m;const D=l.exports&&l.exports.get("export=");if(D&&Zm(D,m))return l;const C=$f(l),A=C.get(m.escapedName);return A&&Zm(A,m)?A:h1(C,w=>{if(Zm(w,m))return w})}function Zm(l,m){if(Ks(yc(Ks(l)))===Ks(yc(Ks(m))))return l}function sp(l){return Ks(l&&(l.flags&1048576)!==0&&l.exportSymbol||l)}function l6(l,m){return!!(l.flags&111551||l.flags&2097152&&O1(l,!m)&111551)}function Up(l){const m=l.members;for(const D of m)if(D.kind===176&&H4(D.body))return D}function lp(l){var m;const D=new b(Pi,l);return k++,D.id=k,(m=Gn)==null||m.recordType(D),D}function N5(l,m){const D=lp(l);return D.symbol=m,D}function Fb(l){return new b(Pi,l)}function Pc(l,m,D=0,C){dz(m,C);const A=lp(l);return A.intrinsicName=m,A.debugIntrinsicName=C,A.objectFlags=D|524288|2097152|33554432|16777216,A}function dz(l,m){const D=`${l},${m??""}`;ii.has(D)&&H.fail(`Duplicate intrinsic type name ${l}${m?` (${m})`:""}; you may need to pass a name to createIntrinsicType.`),ii.add(D)}function D4(l,m){const D=N5(524288,m);return D.objectFlags=l,D.members=void 0,D.properties=void 0,D.callSignatures=void 0,D.constructSignatures=void 0,D.indexInfos=void 0,D}function Gw(){return er(ga(Vde.keys(),df))}function j1(l){return N5(262144,l)}function EC(l){return l.charCodeAt(0)===95&&l.charCodeAt(1)===95&&l.charCodeAt(2)!==95&&l.charCodeAt(2)!==64&&l.charCodeAt(2)!==35}function Ab(l){let m;return l.forEach((D,C)=>{sF(D,C)&&(m||(m=[])).push(D)}),m||_t}function sF(l,m){return!EC(m)&&l6(l)}function Jw(l){const m=Ab(l),D=Sge(l);return D?Hi(m,[D]):m}function x4(l,m,D,C,A){const w=l;return w.members=m,w.properties=_t,w.callSignatures=D,w.constructSignatures=C,w.indexInfos=A,m!==se&&(w.properties=Ab(m)),w}function Ol(l,m,D,C,A){return x4(D4(16,l),m,D,C,A)}function xE(l){if(l.constructSignatures.length===0)return l;if(l.objectTypeWithoutAbstractConstructSignatures)return l.objectTypeWithoutAbstractConstructSignatures;const m=ti(l.constructSignatures,C=>!(C.flags&4));if(l.constructSignatures===m)return l;const D=Ol(l.symbol,l.members,l.callSignatures,Oe(m)?m:_t,l.indexInfos);return l.objectTypeWithoutAbstractConstructSignatures=D,D.objectTypeWithoutAbstractConstructSignatures=D,D}function c6(l,m){let D;for(let C=l;C;C=C.parent){if(UE(C)&&C.locals&&!pE(C)&&(D=m(C.locals,void 0,!0,C)))return D;switch(C.kind){case 312:if(!cm(C))break;case 267:const A=_u(C);if(D=m((A==null?void 0:A.exports)||se,void 0,!0,C))return D;break;case 263:case 231:case 264:let w;if((_u(C).members||se).forEach((I,U)=>{I.flags&788968&&(w||(w=Vo())).set(U,I)}),w&&(D=m(w,void 0,!1,C)))return D;break}}return m(Ie,void 0,!0)}function v3(l){return l===111551?111551:1920}function _C(l,m,D,C,A=new Map){if(!(l&&!d6(l)))return;const w=Ur(l),I=w.accessibleChainCache||(w.accessibleChainCache=new Map),U=c6(m,(dn,nu,En,Ii)=>Ii),Z=`${C?0:1}|${U&&$s(U)}|${D}`;if(I.has(Z))return I.get(Z);const ce=Zo(l);let Fe=A.get(ce);Fe||A.set(ce,Fe=[]);const Te=c6(m,$e);return I.set(Z,Te),Te;function $e(dn,nu,En){if(!xa(Fe,dn))return;const Ii=gi(dn,nu,En);return Fe.pop(),Ii}function ut(dn,nu){return!$w(dn,m,nu)||!!_C(dn.parent,m,v3(nu),C,A)}function zt(dn,nu,En){return(l===(nu||dn)||Ks(l)===Ks(nu||dn))&&!Oe(dn.declarations,Ao)&&(En||ut(Ks(dn),D))}function gi(dn,nu,En){return zt(dn.get(l.escapedName),void 0,nu)?[l]:h1(dn,Nn=>{if(Nn.flags&2097152&&Nn.escapedName!=="export="&&Nn.escapedName!=="default"&&!($q(Nn)&&m&&wc(zn(m)))&&(!C||Oe(Nn.declarations,bv))&&(!En||!Oe(Nn.declarations,iye))&&(nu||!Sl(Nn,281))){const vn=md(Nn),An=Wi(Nn,vn,nu);if(An)return An}if(Nn.escapedName===l.escapedName&&Nn.exportSymbol&&zt(Ks(Nn.exportSymbol),void 0,nu))return[l]})||(dn===Ie?Wi(St,St,nu):void 0)}function Wi(dn,nu,En){if(zt(dn,nu,En))return[dn];const Ii=$f(nu),Nn=Ii&&$e(Ii,!0);if(Nn&&ut(dn,v3(D)))return[dn].concat(Nn)}}function $w(l,m,D){let C=!1;return c6(m,A=>{let w=Ks(A.get(l.escapedName));if(!w)return!1;if(w===l)return!0;const I=w.flags&2097152&&!Sl(w,281);return w=I?md(w):w,(I?O1(w):w.flags)&D?(C=!0,!0):!1}),C}function d6(l){if(l.declarations&&l.declarations.length){for(const m of l.declarations)switch(m.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function R(l,m){return Jr(l,m,788968,!1,!0).accessibility===0}function be(l,m){return Jr(l,m,111551,!1,!0).accessibility===0}function Ht(l,m,D){return Jr(l,m,D,!1,!1).accessibility===0}function Oi(l,m,D,C,A,w){if(!S(l))return;let I,U=!1;for(const Z of l){const ce=_C(Z,m,C,!1);if(ce){I=Z;const $e=Af(ce[0],A);if($e)return $e}if(w&&Oe(Z.declarations,Ao)){if(A){U=!0;continue}return{accessibility:0}}const Fe=Ww(Z,m,C),Te=Oi(Fe,m,D,D===Z?v3(C):C,A,w);if(Te)return Te}if(U)return{accessibility:0};if(I)return{accessibility:1,errorSymbolName:Fr(D,m,C),errorModuleName:I!==D?Fr(I,m,1920):void 0}}function yu(l,m,D,C){return Jr(l,m,D,C,!0)}function Jr(l,m,D,C,A){if(l&&m){const w=Oi([l],m,l,D,C,A);if(w)return w;const I=L(l.declarations,br);if(I){const U=br(m);if(I!==U)return{accessibility:2,errorSymbolName:Fr(l,m,D),errorModuleName:Fr(I),errorNode:Qn(m)?m:void 0}}return{accessibility:1,errorSymbolName:Fr(l,m,D)}}return{accessibility:0}}function br(l){const m=Tn(l,Ea);return m&&_u(m)}function Ea(l){return N1(l)||l.kind===312&&cm(l)}function Ao(l){return tq(l)||l.kind===312&&cm(l)}function Af(l,m){let D;if(!ye(ti(l.declarations,w=>w.kind!==80),C))return;return{accessibility:0,aliasesToMakeVisible:D};function C(w){var I,U;if(!pD(w)){const Z=A9(w);if(Z&&!Yu(Z,32)&&pD(Z.parent))return A(w,Z);if(na(w)&&Jl(w.parent.parent)&&!Yu(w.parent.parent,32)&&pD(w.parent.parent.parent))return A(w,w.parent.parent);if(iq(w)&&!Yu(w,32)&&pD(w.parent))return A(w,w);if(js(w)){if(l.flags&2097152&&Qn(w)&&((I=w.parent)!=null&&I.parent)&&na(w.parent.parent)&&((U=w.parent.parent.parent)!=null&&U.parent)&&Jl(w.parent.parent.parent.parent)&&!Yu(w.parent.parent.parent.parent,32)&&w.parent.parent.parent.parent.parent&&pD(w.parent.parent.parent.parent.parent))return A(w,w.parent.parent.parent.parent);if(l.flags&2){const ce=Tn(w,Jl);return Yu(ce,32)?!0:pD(ce.parent)?A(w,ce):!1}}return!1}return!0}function A(w,I){return m&&(ar(w).isVisible=!0,D=e0(D,I)),!0}}function Uf(l,m){let D;l.parent.kind===186||l.parent.kind===233&&!q_(l.parent)||l.parent.kind===167?D=1160127:l.kind===166||l.kind===211||l.parent.kind===271?D=1920:D=788968;const C=hm(l),A=uc(m,C.escapedText,D,void 0,void 0,!1);return A&&A.flags&262144&&D&788968?{accessibility:0}:!A&&N2(C)&&yu(_u(tf(C,!1,!1)),C,D,!1).accessibility===0?{accessibility:0}:A&&Af(A,!0)||{accessibility:1,errorSymbolName:Hc(C),errorNode:C}}function Fr(l,m,D,C=4,A){let w=70221824;C&2&&(w|=128),C&1&&(w|=512),C&8&&(w|=16384),C&32&&(w|=134217728),C&16&&(w|=1073741824);const I=C&4?Yt.symbolToNode:Yt.symbolToEntityName;return A?U(A).getText():GN(U);function U(Z){const ce=I(l,D,m,w),Fe=(m==null?void 0:m.kind)===312?m1e():X2(),Te=m&&zn(m);return Fe.writeNode(4,ce,Te,Z),Z}}function vE(l,m,D=0,C,A){return A?w(A).getText():GN(w);function w(I){let U;D&262144?U=C===1?185:184:U=C===1?180:179;const Z=Yt.signatureToSignatureDeclaration(l,U,m,DC(D)|70221824|512),ce=EH(),Fe=m&&zn(m);return ce.writeNode(4,Z,Fe,ele(I)),I}}function gn(l,m,D=1064960,C=Vj("")){const A=ae.noErrorTruncation||D&1,w=Yt.typeToTypeNode(l,m,DC(D)|70221824|(A?1:0));if(w===void 0)return H.fail("should always get typenode");const I=l!==Ei?X2():f1e(),U=m&&zn(m);I.writeNode(4,w,U,C);const Z=C.getText(),ce=A?DZ*2:lV*2;return ce&&Z&&Z.length>=ce?Z.substr(0,ce-3)+"...":Z}function h6(l,m){let D=lF(l.symbol)?gn(l,l.symbol.valueDeclaration):gn(l),C=lF(m.symbol)?gn(m,m.symbol.valueDeclaration):gn(m);return D===C&&(D=P5(l),C=P5(m)),[D,C]}function P5(l){return gn(l,void 0,64)}function lF(l){return l&&!!l.valueDeclaration&&Wt(l.valueDeclaration)&&!k4(l.valueDeclaration)}function DC(l=0){return l&848330091}function O9(l){return!!l.symbol&&!!(l.symbol.flags&32)&&(l===b4(l.symbol)||!!(l.flags&524288)&&!!(Gu(l)&16777216))}function cF(){return{typeToTypeNode:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>C(At,Er)),indexInfoToIndexSignatureDeclaration:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>Fe(At,Er,void 0)),signatureToSignatureDeclaration:(At,ze,Yn,Fu,Er)=>m(Yn,Fu,Er,fr=>Te(At,ze,fr)),symbolToEntityName:(At,ze,Yn,Fu,Er)=>m(Yn,Fu,Er,fr=>ka(At,fr,ze,!1)),symbolToExpression:(At,ze,Yn,Fu,Er)=>m(Yn,Fu,Er,fr=>ah(At,fr,ze)),symbolToTypeParameterDeclarations:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>Nn(At,Er)),symbolToParameterDeclaration:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>Wi(At,Er)),typeParameterToDeclaration:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>zt(At,Er)),symbolTableToDeclarationStatements:(At,ze,Yn,Fu,Er)=>m(ze,Yn,Fu,fr=>bm(At,fr,Er)),symbolToNode:(At,ze,Yn,Fu,Er)=>m(Yn,Fu,Er,fr=>l(At,fr,ze))};function l(At,ze,Yn){if(ze.flags&1073741824){if(At.valueDeclaration){const Er=Za(At.valueDeclaration);if(Er&&Ps(Er))return Er}const Fu=Ur(At).nameType;if(Fu&&Fu.flags&9216)return ze.enclosingDeclaration=Fu.symbol.valueDeclaration,q.createComputedPropertyName(ah(Fu.symbol,ze,Yn))}return ah(At,ze,Yn)}function m(At,ze,Yn,Fu){H.assert(At===void 0||(At.flags&16)===0);const Er=Yn!=null&&Yn.trackSymbol?Yn.moduleResolverHost:ze&134217728?FPt(t):void 0,fr={enclosingDeclaration:At,flags:ze||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};fr.tracker=new Hde(fr,Yn,Er);const Mr=Fu(fr);return fr.truncating&&fr.flags&1&&fr.tracker.reportTruncationError(),fr.encounteredError?void 0:Mr}function D(At){return At.truncating?At.truncating:At.truncating=At.approximateLength>(At.flags&1?DZ:lV)}function C(At,ze){const Yn=ze.flags,Fu=A(At,ze);return ze.flags=Yn,Fu}function A(At,ze){var Yn,Fu;d&&d.throwIfCancellationRequested&&d.throwIfCancellationRequested();const Er=ze.flags&8388608;if(ze.flags&=-8388609,!At){if(!(ze.flags&262144)){ze.encounteredError=!0;return}return ze.approximateLength+=3,q.createKeywordTypeNode(133)}if(ze.flags&536870912||(At=Sg(At)),At.flags&1)return At.aliasSymbol?q.createTypeReferenceNode(hu(At.aliasSymbol),Z(At.aliasTypeArguments,ze)):At===Ei?OP(q.createKeywordTypeNode(133),3,"unresolved"):(ze.approximateLength+=3,q.createKeywordTypeNode(At===Qi?141:133));if(At.flags&2)return q.createKeywordTypeNode(159);if(At.flags&4)return ze.approximateLength+=6,q.createKeywordTypeNode(154);if(At.flags&8)return ze.approximateLength+=6,q.createKeywordTypeNode(150);if(At.flags&64)return ze.approximateLength+=6,q.createKeywordTypeNode(163);if(At.flags&16&&!At.aliasSymbol)return ze.approximateLength+=7,q.createKeywordTypeNode(136);if(At.flags&1056){if(At.symbol.flags&8){const pn=cf(At.symbol),or=oo(pn,ze,788968);if(X0(pn)===At)return or;const qr=lc(At.symbol);return Lm(qr,0)?Kr(or,q.createTypeReferenceNode(qr,void 0)):nD(or)?(or.isTypeOf=!0,q.createIndexedAccessTypeNode(or,q.createLiteralTypeNode(q.createStringLiteral(qr)))):X4(or)?q.createIndexedAccessTypeNode(q.createTypeQueryNode(or.typeName),q.createLiteralTypeNode(q.createStringLiteral(qr))):H.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return oo(At.symbol,ze,788968)}if(At.flags&128)return ze.approximateLength+=At.value.length+2,q.createLiteralTypeNode(Zn(q.createStringLiteral(At.value,!!(ze.flags&268435456)),16777216));if(At.flags&256){const pn=At.value;return ze.approximateLength+=(""+pn).length,q.createLiteralTypeNode(pn<0?q.createPrefixUnaryExpression(41,q.createNumericLiteral(-pn)):q.createNumericLiteral(pn))}if(At.flags&2048)return ze.approximateLength+=I2(At.value).length+1,q.createLiteralTypeNode(q.createBigIntLiteral(At.value));if(At.flags&512)return ze.approximateLength+=At.intrinsicName.length,q.createLiteralTypeNode(At.intrinsicName==="true"?q.createTrue():q.createFalse());if(At.flags&8192){if(!(ze.flags&1048576)){if(be(At.symbol,ze.enclosingDeclaration))return ze.approximateLength+=6,oo(At.symbol,ze,111551);ze.tracker.reportInaccessibleUniqueSymbolError&&ze.tracker.reportInaccessibleUniqueSymbolError()}return ze.approximateLength+=13,q.createTypeOperatorNode(158,q.createKeywordTypeNode(155))}if(At.flags&16384)return ze.approximateLength+=4,q.createKeywordTypeNode(116);if(At.flags&32768)return ze.approximateLength+=9,q.createKeywordTypeNode(157);if(At.flags&65536)return ze.approximateLength+=4,q.createLiteralTypeNode(q.createNull());if(At.flags&131072)return ze.approximateLength+=5,q.createKeywordTypeNode(146);if(At.flags&4096)return ze.approximateLength+=6,q.createKeywordTypeNode(155);if(At.flags&67108864)return ze.approximateLength+=6,q.createKeywordTypeNode(151);if(NP(At))return ze.flags&4194304&&(!ze.encounteredError&&!(ze.flags&32768)&&(ze.encounteredError=!0),(Fu=(Yn=ze.tracker).reportInaccessibleThisError)==null||Fu.call(Yn)),ze.approximateLength+=4,q.createThisTypeNode();if(!Er&&At.aliasSymbol&&(ze.flags&16384||R(At.aliasSymbol,ze.enclosingDeclaration))){const pn=Z(At.aliasTypeArguments,ze);return EC(At.aliasSymbol.escapedName)&&!(At.aliasSymbol.flags&32)?q.createTypeReferenceNode(q.createIdentifier(""),pn):S(pn)===1&&At.aliasSymbol===Fo.symbol?q.createArrayTypeNode(pn[0]):oo(At.aliasSymbol,ze,788968,pn)}const fr=Gu(At);if(fr&4)return H.assert(!!(At.flags&524288)),At.node?yi(At,mn):mn(At);if(At.flags&262144||fr&3){if(At.flags&262144&&kt(ze.inferTypeParameters,At)){ze.approximateLength+=lc(At.symbol).length+6;let or;const qr=rh(At);if(qr){const La=Idt(At,!0);La&&CD(qr,La)||(ze.approximateLength+=9,or=qr&&C(qr,ze))}return q.createInferTypeNode(ut(At,ze,or))}if(ze.flags&4&&At.flags&262144&&!R(At.symbol,ze.enclosingDeclaration)){const or=fo(At,ze);return ze.approximateLength+=fu(or).length,q.createTypeReferenceNode(q.createIdentifier(fu(or)),void 0)}if(At.symbol)return oo(At.symbol,ze,788968);const pn=(At===$||At===tt)&&Y&&Y.symbol?(At===tt?"sub-":"super-")+lc(Y.symbol):"?";return q.createTypeReferenceNode(q.createIdentifier(pn),void 0)}if(At.flags&1048576&&At.origin&&(At=At.origin),At.flags&3145728){const pn=At.flags&1048576?M5(At.types):At.types;if(S(pn)===1)return C(pn[0],ze);const or=Z(pn,ze,!0);if(or&&or.length>0)return At.flags&1048576?q.createUnionTypeNode(or):q.createIntersectionTypeNode(or);!ze.encounteredError&&!(ze.flags&262144)&&(ze.encounteredError=!0);return}if(fr&48)return H.assert(!!(At.flags&524288)),Gi(At);if(At.flags&4194304){const pn=At.type;ze.approximateLength+=6;const or=C(pn,ze);return q.createTypeOperatorNode(143,or)}if(At.flags&134217728){const pn=At.texts,or=At.types,qr=q.createTemplateHead(pn[0]),La=q.createNodeArray(Vt(or,(cs,pd)=>q.createTemplateLiteralTypeSpan(C(cs,ze),(pdMr(pn));if(At.flags&33554432)return C(At.baseType,ze);return H.fail("Should be unreachable.");function Mr(pn){const or=C(pn.checkType,ze);if(ze.approximateLength+=15,ze.flags&4&&pn.root.isDistributive&&!(pn.checkType.flags&262144)){const bl=j1(Hs(262144,"T")),fl=fo(bl,ze),H1=q.createTypeReferenceNode(fl);ze.approximateLength+=37;const yl=Y9(pn.root.checkType,bl,pn.mapper),Ft=ze.inferTypeParameters;ze.inferTypeParameters=pn.root.inferTypeParameters;const $t=C(_a(pn.root.extendsType,yl),ze);ze.inferTypeParameters=Ft;const Mi=Ou(_a(Ar(pn.root.node.trueType),yl)),Bn=Ou(_a(Ar(pn.root.node.falseType),yl));return q.createConditionalTypeNode(or,q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(H1.typeName))),q.createConditionalTypeNode(q.createTypeReferenceNode(q.cloneNode(fl)),C(pn.checkType,ze),q.createConditionalTypeNode(H1,$t,Mi,Bn),q.createKeywordTypeNode(146)),q.createKeywordTypeNode(146))}const qr=ze.inferTypeParameters;ze.inferTypeParameters=pn.root.inferTypeParameters;const La=C(pn.extendsType,ze);ze.inferTypeParameters=qr;const cs=Ou(SC(pn)),pd=Ou(BC(pn));return q.createConditionalTypeNode(or,La,cs,pd)}function Ou(pn){var or,qr,La;return pn.flags&1048576?(or=ze.visitedTypes)!=null&&or.has(Fh(pn))?(ze.flags&131072||(ze.encounteredError=!0,(La=(qr=ze.tracker)==null?void 0:qr.reportCyclicStructureError)==null||La.call(qr)),w(ze)):yi(pn,cs=>C(cs,ze)):C(pn,ze)}function xu(pn){return!!Jge(pn)}function Lt(pn){return!!pn.target&&xu(pn.target)&&!xu(pn)}function li(pn){var or;H.assert(!!(pn.flags&524288));const qr=pn.declaration.readonlyToken?q.createToken(pn.declaration.readonlyToken.kind):void 0,La=pn.declaration.questionToken?q.createToken(pn.declaration.questionToken.kind):void 0;let cs,pd;const bl=!tW(pn)&&!(K9(pn).flags&2)&&ze.flags&4&&!(cp(pn).flags&262144&&((or=rh(cp(pn)))==null?void 0:or.flags)&4194304);if(tW(pn)){if(Lt(pn)&&ze.flags&4){const Mi=j1(Hs(262144,"T")),Bn=fo(Mi,ze);pd=q.createTypeReferenceNode(Bn)}cs=q.createTypeOperatorNode(143,pd||C(K9(pn),ze))}else if(bl){const Mi=j1(Hs(262144,"T")),Bn=fo(Mi,ze);pd=q.createTypeReferenceNode(Bn),cs=pd}else cs=C(cp(pn),ze);const fl=ut(Fg(pn),ze,cs),H1=pn.declaration.nameType?C(I5(pn),ze):void 0,yl=C(B6(DD(pn),!!(C_(pn)&4)),ze),Ft=q.createMappedTypeNode(qr,fl,H1,La,yl,void 0);ze.approximateLength+=10;const $t=Zn(Ft,1);if(Lt(pn)&&ze.flags&4){const Mi=_a(rh(Ar(pn.declaration.typeParameter.constraint.type))||on,pn.mapper);return q.createConditionalTypeNode(C(K9(pn),ze),q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(pd.typeName),Mi.flags&2?void 0:C(Mi,ze))),$t,q.createKeywordTypeNode(146))}else if(bl)return q.createConditionalTypeNode(C(cp(pn),ze),q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(pd.typeName),q.createTypeOperatorNode(143,C(K9(pn),ze)))),$t,q.createKeywordTypeNode(146));return $t}function Gi(pn){var or,qr;const La=pn.id,cs=pn.symbol;if(cs){const bl=O9(pn)?788968:111551;if(AE(cs.valueDeclaration))return oo(cs,ze,bl);if(cs.flags&32&&!fF(cs)&&!(cs.valueDeclaration&&mr(cs.valueDeclaration)&&ze.flags&2048&&(!Wc(cs.valueDeclaration)||yu(cs,ze.enclosingDeclaration,bl,!1).accessibility!==0))||cs.flags&896||pd())return oo(cs,ze,bl);if((or=ze.visitedTypes)!=null&&or.has(La)){const fl=Uw(pn);return fl?oo(fl,ze,788968):w(ze)}else return yi(pn,Ji)}else{if(!!(Gu(pn)&8388608)){const fl=pn;if(bB(fl.node)){const H1=el(ze,fl.node);if(H1)return H1}return(qr=ze.visitedTypes)!=null&&qr.has(La)?w(ze):yi(pn,Ji)}return Ji(pn)}function pd(){var bl;const fl=!!(cs.flags&8192)&&Oe(cs.declarations,yl=>No(yl)),H1=!!(cs.flags&16)&&(cs.parent||L(cs.declarations,yl=>yl.parent.kind===312||yl.parent.kind===268));if(fl||H1)return(!!(ze.flags&4096)||((bl=ze.visitedTypes)==null?void 0:bl.has(La)))&&(!(ze.flags&8)||be(cs,ze.enclosingDeclaration))}}function yi(pn,or){var qr,La,cs;const pd=pn.id,bl=Gu(pn)&16&&pn.symbol&&pn.symbol.flags&32,fl=Gu(pn)&4&&pn.node?"N"+$s(pn.node):pn.flags&16777216?"N"+$s(pn.root.node):pn.symbol?(bl?"+":"")+Zo(pn.symbol):void 0;ze.visitedTypes||(ze.visitedTypes=new Set),fl&&!ze.symbolDepth&&(ze.symbolDepth=new Map);const H1=ze.enclosingDeclaration&&ar(ze.enclosingDeclaration),yl=`${Fh(pn)}|${ze.flags}`;H1&&(H1.serializedTypes||(H1.serializedTypes=new Map));const Ft=(qr=H1==null?void 0:H1.serializedTypes)==null?void 0:qr.get(yl);if(Ft)return(La=Ft.trackedSymbols)==null||La.forEach(([Br,Qa,Oo])=>ze.tracker.trackSymbol(Br,Qa,Oo)),Ft.truncating&&(ze.truncating=!0),ze.approximateLength+=Ft.addedLength,lu(Ft.node);let $t;if(fl){if($t=ze.symbolDepth.get(fl)||0,$t>10)return w(ze);ze.symbolDepth.set(fl,$t+1)}ze.visitedTypes.add(pd);const Mi=ze.trackedSymbols;ze.trackedSymbols=void 0;const Bn=ze.approximateLength,Du=or(pn),un=ze.approximateLength-Bn;return!ze.reportedDiagnostic&&!ze.encounteredError&&((cs=H1==null?void 0:H1.serializedTypes)==null||cs.set(yl,{node:Du,truncating:ze.truncating,addedLength:un,trackedSymbols:ze.trackedSymbols})),ze.visitedTypes.delete(pd),fl&&ze.symbolDepth.set(fl,$t),ze.trackedSymbols=Mi,Du;function lu(Br){return!sl(Br)&&Ua(Br)===Br?Br:Pt(q.cloneNode(rn(Br,lu,Dg,_r)),Br)}function _r(Br,Qa,Oo,Wo,xr){return Br&&Br.length===0?Pt(q.createNodeArray(void 0,Br.hasTrailingComma),Br):kn(Br,Qa,Oo,Wo,xr)}}function Ji(pn){if(Xm(pn)||pn.containsError)return li(pn);const or=Ag(pn);if(!or.properties.length&&!or.indexInfos.length){if(!or.callSignatures.length&&!or.constructSignatures.length)return ze.approximateLength+=2,Zn(q.createTypeLiteralNode(void 0),1);if(or.callSignatures.length===1&&!or.constructSignatures.length){const bl=or.callSignatures[0];return Te(bl,184,ze)}if(or.constructSignatures.length===1&&!or.callSignatures.length){const bl=or.constructSignatures[0];return Te(bl,185,ze)}}const qr=ti(or.constructSignatures,bl=>!!(bl.flags&4));if(Oe(qr)){const bl=Vt(qr,DF);return or.callSignatures.length+(or.constructSignatures.length-qr.length)+or.indexInfos.length+(ze.flags&2048?ui(or.properties,H1=>!(H1.flags&4194304)):S(or.properties))&&bl.push(xE(or)),C(Ds(bl),ze)}const La=ze.flags;ze.flags|=4194304;const cs=_o(or);ze.flags=La;const pd=q.createTypeLiteralNode(cs);return ze.approximateLength+=2,Zn(pd,ze.flags&1024?0:1),pd}function mn(pn){let or=O0(pn);if(pn.target===Fo||pn.target===To){if(ze.flags&2){const cs=C(or[0],ze);return q.createTypeReferenceNode(pn.target===Fo?"Array":"ReadonlyArray",[cs])}const qr=C(or[0],ze),La=q.createArrayTypeNode(qr);return pn.target===Fo?La:q.createTypeOperatorNode(148,La)}else if(pn.target.objectFlags&8){if(or=Lu(or,(qr,La)=>B6(qr,!!(pn.target.elementFlags[La]&2))),or.length>0){const qr=O5(pn),La=Z(or.slice(0,qr),ze);if(La){const{labeledElementDeclarations:cs}=pn.target;for(let bl=0;bl0){const H1=(pn.target.typeParameters||_t).length;pd=Z(or.slice(La,H1),ze)}const bl=ze.flags;ze.flags|=16;const fl=oo(pn.symbol,ze,788968,pd);return ze.flags=bl,cs?Kr(cs,fl):fl}}}function Kr(pn,or){if(nD(pn)){let qr=pn.typeArguments,La=pn.qualifier;La&&(at(La)?qr!==gk(La)&&(La=l5(q.cloneNode(La),qr)):qr!==gk(La.right)&&(La=q.updateQualifiedName(La,La.left,l5(q.cloneNode(La.right),qr)))),qr=or.typeArguments;const cs=ku(or);for(const pd of cs)La=La?q.createQualifiedName(La,pd):pd;return q.updateImportTypeNode(pn,pn.argument,pn.attributes,La,qr,pn.isTypeOf)}else{let qr=pn.typeArguments,La=pn.typeName;at(La)?qr!==gk(La)&&(La=l5(q.cloneNode(La),qr)):qr!==gk(La.right)&&(La=q.updateQualifiedName(La,La.left,l5(q.cloneNode(La.right),qr))),qr=or.typeArguments;const cs=ku(or);for(const pd of cs)La=q.createQualifiedName(La,pd);return q.updateTypeReferenceNode(pn,La,qr)}}function ku(pn){let or=pn.typeName;const qr=[];for(;!at(or);)qr.unshift(or.right),or=or.left;return qr.unshift(or),qr}function _o(pn){if(D(ze))return[q.createPropertySignature(void 0,"...",void 0,void 0)];const or=[];for(const cs of pn.callSignatures)or.push(Te(cs,179,ze));for(const cs of pn.constructSignatures)cs.flags&4||or.push(Te(cs,180,ze));for(const cs of pn.indexInfos)or.push(Fe(cs,ze,pn.objectFlags&1024?w(ze):void 0));const qr=pn.properties;if(!qr)return or;let La=0;for(const cs of qr){if(La++,ze.flags&2048){if(cs.flags&4194304)continue;l4(cs)&6&&ze.tracker.reportPrivateInBaseOfClassExpression&&ze.tracker.reportPrivateInBaseOfClassExpression(Yr(cs.escapedName))}if(D(ze)&&La+2!(mn.flags&32768)),0);for(const mn of Ji){const Kr=Te(mn,173,ze,{name:Ou,questionToken:xu});Yn.push(yi(Kr))}if(Ji.length||!xu)return}let Lt;I(At,ze)?Lt=w(ze):(Er&&(ze.reverseMappedStack||(ze.reverseMappedStack=[]),ze.reverseMappedStack.push(At)),Lt=fr?ad(ze,fr,At,Mr):q.createKeywordTypeNode(133),Er&&ze.reverseMappedStack.pop());const li=Ng(At)?[q.createToken(148)]:void 0;li&&(ze.approximateLength+=9);const Gi=q.createPropertySignature(li,Ou,xu,Lt);Yn.push(yi(Gi));function yi(Ji){var mn;const Kr=(mn=At.declarations)==null?void 0:mn.find(ku=>ku.kind===355);if(Kr){const ku=KO(Kr.comment);ku&&Nv(Ji,[{kind:3,text:`* + * `+ku.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else At.valueDeclaration&&Sc(Gi,At.valueDeclaration);return Gi}}function Z(At,ze,Xn){if(qe(At)){if(D(ze))if(Xn){if(At.length>2)return[C(At[0],ze),q.createTypeReferenceNode(`... ${At.length-2} more ...`,void 0),C(At[At.length-1],ze)]}else return[q.createTypeReferenceNode("...",void 0)];const Dr=!(ze.flags&64)?Bm():void 0,pr=[];let Mr=0;for(const Ou of At){if(Mr++,D(ze)&&Mr+2{if(!pke(vu,([Tt],[oi])=>ce(Tt,oi)))for(const[Tt,oi]of vu)pr[oi]=C(Tt,ze)}),ze.flags=Ou}return pr}}function ce(At,ze){return At===ze||!!At.symbol&&At.symbol===ze.symbol||!!At.aliasSymbol&&At.aliasSymbol===ze.aliasSymbol}function Fe(At,ze,Xn){const Au=zbe(At)||"x",Dr=C(At.keyType,ze),pr=q.createParameterDeclaration(void 0,void 0,Au,void 0,Dr,void 0);return Xn||(Xn=C(At.type||me,ze)),!At.type&&!(ze.flags&2097152)&&(ze.encounteredError=!0),ze.approximateLength+=Au.length+4,q.createIndexSignature(At.isReadonly?[q.createToken(148)]:void 0,[pr],Xn)}function Te(At,ze,Xn,Au){var Dr;const pr=Xn.flags&256;pr&&(Xn.flags&=-257),Xn.approximateLength+=3;let Mr,Ou;Xn.flags&32&&At.target&&At.mapper&&At.target.typeParameters?Ou=At.target.typeParameters.map(Fu=>C(Da(Fu,At.mapper),Xn)):Mr=At.typeParameters&&At.typeParameters.map(Fu=>zt(Fu,Xn));const vu=cdt(At,!0)[0];let Tt;if(Xn.enclosingDeclaration&&At.declaration&&At.declaration!==Xn.enclosingDeclaration&&!eu(At.declaration)&&qe(vu)){const Fu=sr(Xn.enclosingDeclaration).fakeScopeForSignatureDeclaration?Xn.enclosingDeclaration:void 0;H.assertOptionalNode(Fu,fo);const go=(Fu==null?void 0:Fu.locals)??jo();let pn;for(const lr of vu)go.has(lr.escapedName)||(pn=Ei(pn,lr.escapedName),go.set(lr.escapedName,lr));if(pn){let lr=function(){L(pn,Ur=>go.delete(Ur))};if(Fu)Tt=lr;else{const Ur=r_.createBlock(_t);sr(Ur).fakeScopeForSignatureDeclaration=!0,Ur.locals=go;const Ta=Xn.enclosingDeclaration;bs(Ur,Ta),Xn.enclosingDeclaration=Ur,Tt=()=>{Xn.enclosingDeclaration=Ta,lr()}}}}const oi=(qe(vu,Fu=>Fu!==vu[vu.length-1]&&!!(Wl(Fu)&32768))?At.parameters:vu).map(Fu=>Ki(Fu,Xn,ze===176,Au==null?void 0:Au.privateSymbolVisitor,Au==null?void 0:Au.bundledImports)),Wi=Xn.flags&33554432?void 0:Je(At,Xn);Wi&&oi.unshift(Wi);let Ci;const Gi=b4(At);if(Gi){const Fu=Gi.kind===2||Gi.kind===3?q.createToken(131):void 0,go=Gi.kind===1||Gi.kind===3?Qn(q.createIdentifier(Gi.parameterName),16777216):q.createThisTypeNode(),pn=Gi.type&&C(Gi.type,Xn);Ci=q.createTypePredicateNode(Fu,go,pn)}else{const Fu=qs(At);Fu&&!(pr&&nt(Fu))?Ci=wd(Xn,Fu,At,Au==null?void 0:Au.privateSymbolVisitor,Au==null?void 0:Au.bundledImports):pr||(Ci=q.createKeywordTypeNode(133))}let mn=Au==null?void 0:Au.modifiers;if(ze===185&&At.flags&4){const Fu=eE(mn);mn=q.createModifiersFromModifierFlags(Fu|64)}const Wr=ze===179?q.createCallSignature(Mr,oi,Ci):ze===180?q.createConstructSignature(Mr,oi,Ci):ze===173?q.createMethodSignature(mn,(Au==null?void 0:Au.name)??q.createIdentifier(""),Au==null?void 0:Au.questionToken,Mr,oi,Ci):ze===174?q.createMethodDeclaration(mn,void 0,(Au==null?void 0:Au.name)??q.createIdentifier(""),void 0,Mr,oi,Ci,void 0):ze===176?q.createConstructorDeclaration(mn,oi,void 0):ze===177?q.createGetAccessorDeclaration(mn,(Au==null?void 0:Au.name)??q.createIdentifier(""),oi,Ci,void 0):ze===178?q.createSetAccessorDeclaration(mn,(Au==null?void 0:Au.name)??q.createIdentifier(""),oi,void 0):ze===181?q.createIndexSignature(mn,oi,Ci):ze===324?q.createJSDocFunctionType(oi,Ci):ze===184?q.createFunctionTypeNode(Mr,oi,Ci??q.createTypeReferenceNode(q.createIdentifier(""))):ze===185?q.createConstructorTypeNode(mn,Mr,oi,Ci??q.createTypeReferenceNode(q.createIdentifier(""))):ze===262?q.createFunctionDeclaration(mn,void 0,Au!=null&&Au.name?Lo(Au.name,at):q.createIdentifier(""),Mr,oi,Ci,void 0):ze===218?q.createFunctionExpression(mn,void 0,Au!=null&&Au.name?Lo(Au.name,at):q.createIdentifier(""),Mr,oi,Ci,q.createBlock([])):ze===219?q.createArrowFunction(mn,Mr,oi,Ci,void 0,q.createBlock([])):H.assertNever(ze);if(Ou&&(Wr.typeArguments=q.createNodeArray(Ou)),((Dr=At.declaration)==null?void 0:Dr.kind)===330&&At.declaration.parent.kind===346){const Fu=Vc(At.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(go=>go.replace(/^\s+/," ")).join(` -`);RP(Wr,3,Fu,!0)}return Tt==null||Tt(),Wr}function Je(At,ze){if(At.thisParameter)return Ki(At.thisParameter,ze);if(At.declaration&&eu(At.declaration)){const Xn=SU(At.declaration);if(Xn&&Xn.typeExpression)return q.createParameterDeclaration(void 0,void 0,"this",void 0,C(Br(Xn.typeExpression),ze))}}function ut(At,ze,Xn){const Au=ze.flags;ze.flags&=-513;const Dr=q.createModifiersFromModifierFlags(jPe(At)),pr=co(At,ze),Mr=gF(At),Ou=Mr&&C(Mr,ze);return ze.flags=Au,q.createTypeParameterDeclaration(Dr,pr,Xn,Ou)}function zt(At,ze,Xn=uh(At)){const Au=Xn&&C(Xn,ze);return ut(At,ze,Au)}function fi(At){const ze=Fl(At,169);if(ze)return ze;if(!UE(At))return Fl(At,348)}function Ki(At,ze,Xn,Au,Dr){const pr=fi(At);let Mr=Jn(At);pr&&U4t(pr)&&(Mr=A6(Mr));const Ou=rd(ze,Mr,At,ze.enclosingDeclaration,Au,Dr),vu=!(ze.flags&8192)&&Xn&&pr&&Op(pr)?Kt(h2(pr),q.cloneNode):void 0,oi=pr&&J_(pr)||Wl(At)&32768?q.createToken(26):void 0,Wi=cn(At,pr,ze),Gi=pr&&iW(pr)||Wl(At)&16384?q.createToken(58):void 0,mn=q.createParameterDeclaration(vu,oi,Wi,Gi,Ou,void 0);return ze.approximateLength+=sc(At).length+3,mn}function cn(At,ze,Xn){return ze&&ze.name?ze.name.kind===80?Qn(q.cloneNode(ze.name),16777216):ze.name.kind===166?Qn(q.cloneNode(ze.name.right),16777216):Au(ze.name):sc(At);function Au(Dr){return pr(Dr);function pr(Mr){Xn.tracker.canTrackSymbol&&Ls(Mr)&&TNe(Mr)&&uu(Mr.expression,Xn.enclosingDeclaration,Xn);let Ou=un(Mr,pr,Eg,void 0,pr);return Rs(Ou)&&(Ou=q.updateBindingElement(Ou,Ou.dotDotDotToken,Ou.propertyName,Ou.name,void 0)),al(Ou)||(Ou=q.cloneNode(Ou)),Qn(Ou,16777217)}}}function uu(At,ze,Xn){if(!Xn.tracker.canTrackSymbol)return;const Au=dm(At),Dr=nc(Au,Au.escapedText,1160127,void 0,void 0,!0);Dr&&Xn.tracker.trackSymbol(Dr,ze,111551)}function En(At,ze,Xn,Au){return ze.tracker.trackSymbol(At,ze.enclosingDeclaration,Xn),Ii(At,ze,Xn,Au)}function Ii(At,ze,Xn,Au){let Dr;return!(At.flags&262144)&&(ze.enclosingDeclaration||ze.flags&64)&&!(ze.flags&134217728)?(Dr=H.checkDefined(Mr(At,Xn,!0)),H.assert(Dr&&Dr.length>0)):Dr=[At],Dr;function Mr(Ou,vu,Tt){let oi=gC(Ou,ze.enclosingDeclaration,vu,!!(ze.flags&128)),Wi;if(!oi||Gw(oi[0],ze.enclosingDeclaration,oi.length===1?vu:x3(vu))){const Gi=Hw(oi?oi[0]:Ou,ze.enclosingDeclaration,vu);if(S(Gi)){Wi=Gi.map(Fu=>qe(Fu.declarations,ko)?_n(Fu,ze):void 0);const mn=Gi.map((Fu,go)=>go);mn.sort(Ci);const Wr=mn.map(Fu=>Gi[Fu]);for(const Fu of Wr){const go=Mr(Fu,x3(vu),!1);if(go){if(Fu.exports&&Fu.exports.get("export=")&&qm(Fu.exports.get("export="),Ou)){oi=go;break}oi=go.concat(oi||[o6(Fu,Ou)||Ou]);break}}}}if(oi)return oi;if(Tt||!(Ou.flags&6144))return!Tt&&!Au&&L(Ou.declarations,ko)?void 0:[Ou];function Ci(Gi,mn){const Wr=Wi[Gi],Fu=Wi[mn];if(Wr&&Fu){const go=am(Fu);return am(Wr)===go?JY(Wr)-JY(Fu):go?-1:1}return 0}}}function Pn(At,ze){let Xn;return gT(At).flags&524384&&(Xn=q.createNodeArray(Kt(sn(At),Dr=>zt(Dr,ze)))),Xn}function Cn(At,ze,Xn){var Au;H.assert(At&&0<=ze&&zey6(oi,vu.links.mapper)),Xn)}else Mr=Pn(Dr,Xn)}return Mr}function Sn(At){return M7(At.objectType)?Sn(At.objectType):At}function _n(At,ze,Xn){let Au=Fl(At,312);if(!Au){const Tt=G(At.declarations,oi=>Cb(oi,At));Tt&&(Au=Fl(Tt,312))}if(Au&&Au.moduleName!==void 0)return Au.moduleName;if(!Au){if(ze.tracker.trackReferencedAmbientModule){const Tt=ei(At.declarations,L1);if(S(Tt))for(const oi of Tt)ze.tracker.trackReferencedAmbientModule(oi,At)}if(Ode.test(At.escapedName))return At.escapedName.substring(1,At.escapedName.length-1)}if(!ze.enclosingDeclaration||!ze.tracker.moduleResolverHost)return Ode.test(At.escapedName)?At.escapedName.substring(1,At.escapedName.length-1):In(p0e(At)).fileName;const Dr=In(Kl(ze.enclosingDeclaration)),pr=Xn||(Dr==null?void 0:Dr.impliedNodeFormat),Mr=cM(Dr.path,pr),Ou=$r(At);let vu=Ou.specifierCache&&Ou.specifierCache.get(Mr);if(!vu){const Tt=!!b0(ae),{moduleResolverHost:oi}=ze.tracker,Wi=Tt?{...ae,baseUrl:oi.getCommonSourceDirectory()}:ae;vu=Mn(set(At,Ni,Wi,Dr,oi,{importModuleSpecifierPreference:Tt?"non-relative":"project-relative",importModuleSpecifierEnding:Tt?"minimal":pr===99?"js":void 0},{overrideImportMode:Xn})),Ou.specifierCache??(Ou.specifierCache=new Map),Ou.specifierCache.set(Mr,vu)}return vu}function fu(At){const ze=q.createIdentifier(Yr(At.escapedName));return At.parent?q.createQualifiedName(fu(At.parent),ze):ze}function ao(At,ze,Xn,Au){const Dr=En(At,ze,Xn,!(ze.flags&16384)),pr=Xn===111551;if(qe(Dr[0].declarations,ko)){const vu=Dr.length>1?Ou(Dr,Dr.length-1,1):void 0,Tt=Au||Cn(Dr,0,ze),oi=In(Kl(ze.enclosingDeclaration)),Wi=$U(Dr[0]);let Ci,Gi;if((m1(ae)===3||m1(ae)===99)&&(Wi==null?void 0:Wi.impliedNodeFormat)===99&&Wi.impliedNodeFormat!==(oi==null?void 0:oi.impliedNodeFormat)&&(Ci=_n(Dr[0],ze,99),Gi=q.createImportAttributes(q.createNodeArray([q.createImportAttribute(q.createStringLiteral("resolution-mode"),q.createStringLiteral("import"))]))),Ci||(Ci=_n(Dr[0],ze)),!(ze.flags&67108864)&&m1(ae)!==1&&Ci.includes("/node_modules/")){const Wr=Ci;if(m1(ae)===3||m1(ae)===99){const Fu=(oi==null?void 0:oi.impliedNodeFormat)===99?1:99;Ci=_n(Dr[0],ze,Fu),Ci.includes("/node_modules/")?Ci=Wr:Gi=q.createImportAttributes(q.createNodeArray([q.createImportAttribute(q.createStringLiteral("resolution-mode"),q.createStringLiteral(Fu===99?"import":"require"))]))}Gi||(ze.encounteredError=!0,ze.tracker.reportLikelyUnsafeImportRequiredError&&ze.tracker.reportLikelyUnsafeImportRequiredError(Wr))}const mn=q.createLiteralTypeNode(q.createStringLiteral(Ci));if(ze.tracker.trackExternalModuleSymbolOfImportTypeNode&&ze.tracker.trackExternalModuleSymbolOfImportTypeNode(Dr[0]),ze.approximateLength+=Ci.length+10,!vu||om(vu)){if(vu){const Wr=at(vu)?vu:vu.right;s5(Wr,void 0)}return q.createImportTypeNode(mn,Gi,vu,Tt,pr)}else{const Wr=Sn(vu),Fu=Wr.objectType.typeName;return q.createIndexedAccessTypeNode(q.createImportTypeNode(mn,Gi,Fu,Tt,pr),Wr.indexType)}}const Mr=Ou(Dr,Dr.length-1,0);if(M7(Mr))return Mr;if(pr)return q.createTypeQueryNode(Mr);{const vu=at(Mr)?Mr:Mr.right,Tt=mk(vu);return s5(vu,void 0),q.createTypeReferenceNode(Mr,Tt)}function Ou(vu,Tt,oi){const Wi=Tt===vu.length-1?Au:Cn(vu,Tt,ze),Ci=vu[Tt],Gi=vu[Tt-1];let mn;if(Tt===0)ze.flags|=16777216,mn=E_(Ci,ze),ze.approximateLength+=(mn?mn.length:0)+1,ze.flags^=16777216;else if(Gi&&Jf(Gi)){const Fu=Jf(Gi);d1(Fu,(go,pn)=>{if(qm(go,Ci)&&!YK(pn)&&pn!=="export=")return mn=Yr(pn),!0})}if(mn===void 0){const Fu=G(Ci.declarations,qa);if(Fu&&Ls(Fu)&&om(Fu.expression)){const go=Ou(vu,Tt-1,oi);return om(go)?q.createIndexedAccessTypeNode(q.createParenthesizedType(q.createTypeQueryNode(go)),q.createTypeQueryNode(Fu.expression)):go}mn=E_(Ci,ze)}if(ze.approximateLength+=mn.length+1,!(ze.flags&16)&&Gi&&E6(Gi)&&E6(Gi).get(Ci.escapedName)&&qm(E6(Gi).get(Ci.escapedName),Ci)){const Fu=Ou(vu,Tt-1,oi);return M7(Fu)?q.createIndexedAccessTypeNode(Fu,q.createLiteralTypeNode(q.createStringLiteral(mn))):q.createIndexedAccessTypeNode(q.createTypeReferenceNode(Fu,Wi),q.createLiteralTypeNode(q.createStringLiteral(mn)))}const Wr=Qn(q.createIdentifier(mn),16777216);if(Wi&&s5(Wr,q.createNodeArray(Wi)),Wr.symbol=Ci,Tt>oi){const Fu=Ou(vu,Tt-1,oi);return om(Fu)?q.createQualifiedName(Fu,Wr):H.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Wr}}function po(At,ze,Xn){const Au=nc(ze.enclosingDeclaration,At,788968,void 0,At,!1);return Au?!(Au.flags&262144&&Au===Xn.symbol):!1}function co(At,ze){var Xn,Au;if(ze.flags&4&&ze.typeParameterNames){const pr=ze.typeParameterNames.get(kh(At));if(pr)return pr}let Dr=Fa(At.symbol,ze,788968,!0);if(!(Dr.kind&80))return q.createIdentifier("(Missing type parameter)");if(ze.flags&4){const pr=Dr.escapedText;let Mr=((Xn=ze.typeParameterNamesByTextNextNameCount)==null?void 0:Xn.get(pr))||0,Ou=pr;for(;(Au=ze.typeParameterNamesByText)!=null&&Au.has(Ou)||po(Ou,ze,At);)Mr++,Ou=`${pr}_${Mr}`;if(Ou!==pr){const vu=mk(Dr);Dr=q.createIdentifier(Ou),s5(Dr,vu)}(ze.typeParameterNamesByTextNextNameCount||(ze.typeParameterNamesByTextNextNameCount=new Map)).set(pr,Mr),(ze.typeParameterNames||(ze.typeParameterNames=new Map)).set(kh(At),Dr),(ze.typeParameterNamesByText||(ze.typeParameterNamesByText=new Set)).add(pr)}return Dr}function Fa(At,ze,Xn,Au){const Dr=En(At,ze,Xn);return Au&&Dr.length!==1&&!ze.encounteredError&&!(ze.flags&65536)&&(ze.encounteredError=!0),pr(Dr,Dr.length-1);function pr(Mr,Ou){const vu=Cn(Mr,Ou,ze),Tt=Mr[Ou];Ou===0&&(ze.flags|=16777216);const oi=E_(Tt,ze);Ou===0&&(ze.flags^=16777216);const Wi=Qn(q.createIdentifier(oi),16777216);return vu&&s5(Wi,q.createNodeArray(vu)),Wi.symbol=Tt,Ou>0?q.createQualifiedName(pr(Mr,Ou-1),Wi):Wi}}function rh(At,ze,Xn){const Au=En(At,ze,Xn);return Dr(Au,Au.length-1);function Dr(pr,Mr){const Ou=Cn(pr,Mr,ze),vu=pr[Mr];Mr===0&&(ze.flags|=16777216);let Tt=E_(vu,ze);Mr===0&&(ze.flags^=16777216);let oi=Tt.charCodeAt(0);if(gj(oi)&&qe(vu.declarations,ko))return q.createStringLiteral(_n(vu,ze));if(Mr===0||Mle(Tt,Ce)){const Wi=Qn(q.createIdentifier(Tt),16777216);return Ou&&s5(Wi,q.createNodeArray(Ou)),Wi.symbol=vu,Mr>0?q.createPropertyAccessExpression(Dr(pr,Mr-1),Wi):Wi}else{oi===91&&(Tt=Tt.substring(1,Tt.length-1),oi=Tt.charCodeAt(0));let Wi;if(gj(oi)&&!(vu.flags&8)?Wi=q.createStringLiteral(G4(Tt).replace(/\\./g,Ci=>Ci.substring(1)),oi===39):""+ +Tt===Tt&&(Wi=q.createNumericLiteral(+Tt)),!Wi){const Ci=Qn(q.createIdentifier(Tt),16777216);Ou&&s5(Ci,q.createNodeArray(Ou)),Ci.symbol=vu,Wi=Ci}return q.createElementAccessExpression(Dr(pr,Mr-1),Wi)}}}function e4(At){const ze=qa(At);return ze?Ls(ze)?!!(ka(ze.expression).flags&402653316):W0(ze)?!!(ka(ze.argumentExpression).flags&402653316):ns(ze):!1}function dn(At){const ze=qa(At);return!!(ze&&ns(ze)&&(ze.singleQuote||!al(ze)&&Na(Vc(ze,!1),"'")))}function Gn(At,ze){const Xn=!!S(At.declarations)&&ye(At.declarations,e4),Au=!!S(At.declarations)&&ye(At.declarations,dn),Dr=!!(At.flags&8192),pr=qr(At,ze,Au,Xn,Dr);if(pr)return pr;const Mr=Yr(At.escapedName);return cZ(Mr,Is(ae),Au,Xn,Dr)}function qr(At,ze,Xn,Au,Dr){const pr=$r(At).nameType;if(pr){if(pr.flags&384){const Mr=""+pr.value;return!Tm(Mr,Is(ae))&&(Au||!t3(Mr))?q.createStringLiteral(Mr,!!Xn):t3(Mr)&&Na(Mr,"-")?q.createComputedPropertyName(q.createNumericLiteral(+Mr)):cZ(Mr,Is(ae),Xn,Au,Dr)}if(pr.flags&8192)return q.createComputedPropertyName(rh(pr.symbol,ze,111551))}}function Co(At){const ze={...At};return ze.typeParameterNames&&(ze.typeParameterNames=new Map(ze.typeParameterNames)),ze.typeParameterNamesByText&&(ze.typeParameterNamesByText=new Set(ze.typeParameterNamesByText)),ze.typeParameterSymbolList&&(ze.typeParameterSymbolList=new Set(ze.typeParameterSymbolList)),ze.tracker=new Vde(ze,ze.tracker.inner,ze.tracker.moduleResolverHost),ze}function qn(At,ze){return At.declarations&&Le(At.declarations,Xn=>!!h1(Xn)&&(!ze||!!Ln(Xn,Au=>Au===ze)))}function As(At,ze){return!($u(ze)&4)||!Y4(At)||S(At.typeArguments)>=C_(ze.target.typeParameters)}function B0(At){return sr(At).fakeScopeForSignatureDeclaration?At.parent:At}function rd(At,ze,Xn,Au,Dr,pr){if(!Lt(ze)&&Au){const vu=qn(Xn,B0(Au));if(vu&&!K0(vu)&&!Mm(vu)){const Tt=h1(vu);if(Zs(Tt,vu,ze)&&As(Tt,ze)){const oi=Z0(At,Tt,Dr,pr);if(oi)return oi}}}const Mr=At.flags;ze.flags&8192&&ze.symbol===Xn&&(!At.enclosingDeclaration||qe(Xn.declarations,vu=>In(vu)===In(At.enclosingDeclaration)))&&(At.flags|=1048576);const Ou=C(ze,At);return At.flags=Mr,Ou}function Zs(At,ze,Xn){const Au=Br(At);return Au===Xn?!0:eo(ze)&&ze.questionToken?hp(Xn,524288)===Au:!1}function wd(At,ze,Xn,Au,Dr){if(!Lt(ze)&&At.enclosingDeclaration){const pr=Xn.declaration&&J4(Xn.declaration),Mr=B0(At.enclosingDeclaration);if(Ln(pr,Ou=>Ou===Mr)&&pr){const Ou=Br(pr);if((Ou.flags&262144&&Ou.isThisType?Da(Ou,Xn.mapper):Ou)===ze&&As(pr,ze)){const Tt=Z0(At,pr,Au,Dr);if(Tt)return Tt}}}return C(ze,At)}function yc(At,ze,Xn){let Au=!1;const Dr=dm(At);if(eu(At)&&(ik(Dr)||Z_(Dr.parent)||xf(Dr.parent)&&N0e(Dr.parent.left)&&ik(Dr.parent.right)))return Au=!0,{introducesError:Au,node:At};const pr=P0(Dr,67108863,!0,!0);if(pr&&(ku(pr,ze.enclosingDeclaration,67108863,!1).accessibility!==0?Au=!0:(ze.tracker.trackSymbol(pr,ze.enclosingDeclaration,67108863),Xn==null||Xn(pr)),at(At))){const Mr=q0(pr),Ou=pr.flags&262144&&!O(Mr.symbol,ze.enclosingDeclaration)?co(Mr,ze):q.cloneNode(At);return Ou.symbol=pr,{introducesError:Au,node:Qn(lu(Ou,At),16777216)}}return{introducesError:Au,node:At}}function Z0(At,ze,Xn,Au){d&&d.throwIfCancellationRequested&&d.throwIfCancellationRequested();let Dr=!1;const pr=In(ze),Mr=yt(ze,Ou,Qr);if(Dr)return;return Mr===ze?Pt(q.cloneNode(ze),ze):Mr;function Ou(vu){if(pFe(vu)||vu.kind===326)return q.createKeywordTypeNode(133);if(gFe(vu))return q.createKeywordTypeNode(159);if(SB(vu))return q.createUnionTypeNode([yt(vu.type,Ou,Qr),q.createLiteralTypeNode(q.createNull())]);if(kce(vu))return q.createUnionTypeNode([yt(vu.type,Ou,Qr),q.createKeywordTypeNode(157)]);if(cY(vu))return yt(vu.type,Ou);if(dY(vu))return q.createArrayTypeNode(yt(vu.type,Ou,Qr));if(V7(vu))return q.createTypeLiteralNode(Kt(vu.jsDocPropertyTags,Ci=>{const Gi=at(Ci.name)?Ci.name:Ci.name.right,mn=he(Br(vu),Gi.escapedText),Wr=mn&&Ci.typeExpression&&Br(Ci.typeExpression.type)!==mn?C(mn,At):void 0;return q.createPropertySignature(void 0,Gi,Ci.isBracketed||Ci.typeExpression&&kce(Ci.typeExpression.type)?q.createToken(58):void 0,Wr||Ci.typeExpression&&yt(Ci.typeExpression.type,Ou,Qr)||q.createKeywordTypeNode(133))}));if(Y4(vu)&&at(vu.typeName)&&vu.typeName.escapedText==="")return lu(q.createKeywordTypeNode(133),vu);if((l5(vu)||Y4(vu))&&gq(vu))return q.createTypeLiteralNode([q.createIndexSignature(void 0,[q.createParameterDeclaration(void 0,void 0,"x",void 0,yt(vu.typeArguments[0],Ou,Qr))],yt(vu.typeArguments[1],Ou,Qr))]);if(BB(vu))if(Y8(vu)){let Ci;return q.createConstructorTypeNode(void 0,Fn(vu.typeParameters,Ou,Al),Ui(vu.parameters,(Gi,mn)=>Gi.name&&at(Gi.name)&&Gi.name.escapedText==="new"?(Ci=Gi.type,void 0):q.createParameterDeclaration(void 0,Tt(Gi),oi(Gi,mn),Gi.questionToken,yt(Gi.type,Ou,Qr),void 0)),yt(Ci||vu.type,Ou,Qr)||q.createKeywordTypeNode(133))}else return q.createFunctionTypeNode(Fn(vu.typeParameters,Ou,Al),Kt(vu.parameters,(Ci,Gi)=>q.createParameterDeclaration(void 0,Tt(Ci),oi(Ci,Gi),Ci.questionToken,yt(Ci.type,Ou,Qr),void 0)),yt(vu.type,Ou,Qr)||q.createKeywordTypeNode(133));if(Y4(vu)&&pj(vu)&&(!As(vu,Br(vu))||Hdt(vu)||Xt===rT(vu,788968,!0)))return lu(C(Br(vu),At),vu);if(Mx(vu)){const Ci=sr(vu).resolvedSymbol;return pj(vu)&&Ci&&(!vu.isTypeOf&&!(Ci.flags&788968)||!(S(vu.typeArguments)>=C_(sn(Ci))))?lu(C(Br(vu),At),vu):q.updateImportTypeNode(vu,q.updateLiteralTypeNode(vu.argument,Wi(vu,vu.argument.literal)),vu.attributes,vu.qualifier,Fn(vu.typeArguments,Ou,Qr),vu.isTypeOf)}if(om(vu)||Xl(vu)){const{introducesError:Ci,node:Gi}=yc(vu,At,Xn);if(Dr=Dr||Ci,Gi!==vu)return Gi}return pr&&CB(vu)&&o0(pr,vu.pos).line===o0(pr,vu.end).line&&Qn(vu,1),un(vu,Ou,Eg);function Tt(Ci){return Ci.dotDotDotToken||(Ci.type&&dY(Ci.type)?q.createToken(26):void 0)}function oi(Ci,Gi){return Ci.name&&at(Ci.name)&&Ci.name.escapedText==="this"?"this":Tt(Ci)?"args":`arg${Gi}`}function Wi(Ci,Gi){if(Au){if(At.tracker&&At.tracker.moduleResolverHost){const mn=$ze(Ci);if(mn){const Fu={getCanonicalFileName:T1(!!t.useCaseSensitiveFileNames),getCurrentDirectory:()=>At.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>At.tracker.moduleResolverHost.getCommonSourceDirectory()},go=wq(Fu,mn);return q.createStringLiteral(go)}}}else if(At.tracker&&At.tracker.trackExternalModuleSymbolOfImportTypeNode){const mn=_3(Gi,Gi,void 0);mn&&At.tracker.trackExternalModuleSymbolOfImportTypeNode(mn)}return Gi}}}function Cm(At,ze,Xn){var Au;const Dr=jd(q.createPropertyDeclaration,174,!0),pr=jd((ri,wu,fr,rr)=>q.createPropertySignature(ri,wu,fr,rr),173,!1),Mr=ze.enclosingDeclaration;let Ou=[];const vu=new Set,Tt=[],oi=ze;ze={...oi,usedSymbolNames:new Set(oi.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Au=oi.remappedSymbolReferences)==null?void 0:Au.entries()),tracker:void 0};const Wi={...oi.tracker.inner,trackSymbol:(ri,wu,fr)=>{var rr,mr;if((rr=ze.remappedSymbolNames)!=null&&rr.has(qo(ri)))return!1;if(ku(ri,wu,fr,!1).accessibility===0){const Po=Ii(ri,ze,fr);if(!(ri.flags&4)){const oo=Po[0],es=In(oi.enclosingDeclaration);qe(oo.declarations,Qs=>In(Qs)===es)&&dl(oo)}}else if((mr=oi.tracker.inner)!=null&&mr.trackSymbol)return oi.tracker.inner.trackSymbol(ri,wu,fr);return!1}};ze.tracker=new Vde(ze,Wi,oi.tracker.moduleResolverHost),d1(At,(ri,wu)=>{const fr=Yr(wu);qf(ri,fr)});let Ci=!Xn;const Gi=At.get("export=");return Gi&&At.size>1&&Gi.flags&2097152&&(At=jo(),At.set("export=",Gi)),ls(At),lr(Ou);function mn(ri){return!!ri&&ri.kind===80}function Wr(ri){return Gl(ri)?ei(Kt(ri.declarationList.declarations,qa),mn):ei([qa(ri)],mn)}function Fu(ri){const wu=Le(ri,ec),fr=$e(ri,Ec);let rr=fr!==-1?ri[fr]:void 0;if(rr&&wu&&wu.isExportEquals&&at(wu.expression)&&at(rr.name)&&mu(rr.name)===mu(wu.expression)&&rr.body&&uE(rr.body)){const mr=ei(ri,oo=>!!(gh(oo)&32)),Ys=rr.name;let Po=rr.body;if(S(mr)&&(rr=q.updateModuleDeclaration(rr,rr.modifiers,rr.name,Po=q.updateModuleBlock(Po,q.createNodeArray([...rr.body.statements,q.createExportDeclaration(void 0,!1,q.createNamedExports(Kt(Ku(mr,oo=>Wr(oo)),oo=>q.createExportSpecifier(!1,void 0,oo))),void 0)]))),ri=[...ri.slice(0,fr),rr,...ri.slice(fr+1)]),!Le(ri,oo=>oo!==rr&&RO(oo,Ys))){Ou=[];const oo=!qe(Po.statements,es=>Xu(es,32)||ec(es)||Wc(es));L(Po.statements,es=>{Cl(es,oo?32:0)}),ri=[...ei(ri,es=>es!==rr&&es!==wu),...Ou]}}return ri}function go(ri){const wu=ei(ri,rr=>Wc(rr)&&!rr.moduleSpecifier&&!!rr.exportClause&&Q4(rr.exportClause));S(wu)>1&&(ri=[...ei(ri,mr=>!Wc(mr)||!!mr.moduleSpecifier||!mr.exportClause),q.createExportDeclaration(void 0,!1,q.createNamedExports(Ku(wu,mr=>Lo(mr.exportClause,Q4).elements)),void 0)]);const fr=ei(ri,rr=>Wc(rr)&&!!rr.moduleSpecifier&&!!rr.exportClause&&Q4(rr.exportClause));if(S(fr)>1){const rr=xN(fr,mr=>ns(mr.moduleSpecifier)?">"+mr.moduleSpecifier.text:">");if(rr.length!==fr.length)for(const mr of rr)mr.length>1&&(ri=[...ei(ri,Ys=>!mr.includes(Ys)),q.createExportDeclaration(void 0,!1,q.createNamedExports(Ku(mr,Ys=>Lo(Ys.exportClause,Q4).elements)),mr[0].moduleSpecifier)])}return ri}function pn(ri){const wu=$e(ri,fr=>Wc(fr)&&!fr.moduleSpecifier&&!fr.attributes&&!!fr.exportClause&&Q4(fr.exportClause));if(wu>=0){const fr=ri[wu],rr=Ui(fr.exportClause.elements,mr=>{if(!mr.propertyName){const Ys=Zr(ri),Po=ei(Ys,oo=>RO(ri[oo],mr.name));if(S(Po)&&ye(Po,oo=>nV(ri[oo]))){for(const oo of Po)ri[oo]=Ur(ri[oo]);return}}return mr});S(rr)?ri[wu]=q.updateExportDeclaration(fr,fr.modifiers,fr.isTypeOnly,q.updateNamedExports(fr.exportClause,rr),fr.moduleSpecifier,fr.attributes):dv(ri,wu)}return ri}function lr(ri){return ri=Fu(ri),ri=go(ri),ri=pn(ri),Mr&&(ca(Mr)&&lm(Mr)||Ec(Mr))&&(!qe(ri,qO)||!lbe(ri)&&qe(ri,IU))&&ri.push(TV(q)),ri}function Ur(ri){const wu=(gh(ri)|32)&-129;return q.replaceModifiers(ri,wu)}function Ta(ri){const wu=gh(ri)&-33;return q.replaceModifiers(ri,wu)}function ls(ri,wu,fr){wu||Tt.push(new Map),ri.forEach(rr=>{fd(rr,!1,!!fr)}),wu||(Tt[Tt.length-1].forEach(rr=>{fd(rr,!0,!!fr)}),Tt.pop())}function fd(ri,wu,fr){const rr=Vs(ri);if(vu.has(qo(rr)))return;if(vu.add(qo(rr)),!wu||S(ri.declarations)&&qe(ri.declarations,Ys=>!!Ln(Ys,Po=>Po===Mr))){const Ys=ze;ze=Co(ze),vl(ri,wu,fr),ze.reportedDiagnostic&&(oi.reportedDiagnostic=ze.reportedDiagnostic),ze.trackedSymbols&&(Ys.trackedSymbols?H.assert(ze.trackedSymbols===Ys.trackedSymbols):Ys.trackedSymbols=ze.trackedSymbols),ze=Ys}}function vl(ri,wu,fr,rr=ri.escapedName){var mr,Ys,Po,oo,es,Qs;const T0=Yr(rr),Gh=rr==="default";if(wu&&!(ze.flags&131072)&&h7(T0)&&!Gh){ze.encounteredError=!0;return}let H1=Gh&&!!(ri.flags&-113||ri.flags&16&&S(n0(Jn(ri))))&&!(ri.flags&2097152),K1=!H1&&!wu&&h7(T0)&&!Gh;(H1||K1)&&(wu=!0);const hl=(wu?0:32)|(Gh&&!H1?2048:0),b1=ri.flags&1536&&ri.flags&7&&rr!=="export=",S3=b1&&Ks(Jn(ri),ri);if((ri.flags&8208||S3)&&cu(Jn(ri),ri,qf(ri,T0),hl),ri.flags&524288&&kt(ri,T0,hl),ri.flags&98311&&rr!=="export="&&!(ri.flags&4194304)&&!(ri.flags&32)&&!(ri.flags&8192)&&!S3)if(fr)w0(ri)&&(K1=!1,H1=!1);else{const y1=Jn(ri),Zf=qf(ri,T0);if(y1.symbol&&y1.symbol!==ri&&y1.symbol.flags&16&&qe(y1.symbol.declarations,M2)&&((mr=y1.symbol.members)!=null&&mr.size||(Ys=y1.symbol.exports)!=null&&Ys.size))ze.remappedSymbolReferences||(ze.remappedSymbolReferences=new Map),ze.remappedSymbolReferences.set(qo(y1.symbol),ri),vl(y1.symbol,wu,fr,rr),ze.remappedSymbolReferences.delete(qo(y1.symbol));else if(!(ri.flags&16)&&Ks(y1,ri))cu(y1,ri,Zf,hl);else{const iS=ri.flags&2?Pz(ri)?2:1:(Po=ri.parent)!=null&&Po.valueDeclaration&&ca((oo=ri.parent)==null?void 0:oo.valueDeclaration)?2:void 0,wE=H1||!(ri.flags&4)?Zf:PC(Zf,ri);let T6=ri.declarations&&Le(ri.declarations,jW=>ua(jW));T6&&Fd(T6.parent)&&T6.parent.declarations.length===1&&(T6=T6.parent.parent);const L6=(es=ri.declarations)==null?void 0:es.find(Iu);if(L6&&tu(L6.parent)&&at(L6.parent.right)&&((Qs=y1.symbol)!=null&&Qs.valueDeclaration)&&ca(y1.symbol.valueDeclaration)){const jW=Zf===L6.parent.right.escapedText?void 0:L6.parent.right;Cl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,jW,Zf)])),0),ze.tracker.trackSymbol(y1.symbol,ze.enclosingDeclaration,111551)}else{const jW=Pt(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(wE,void 0,rd(ze,y1,ri,Mr,dl,Xn))],iS)),T6);Cl(jW,wE!==Zf?hl&-33:hl),wE!==Zf&&!wu&&(Cl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,wE,Zf)])),0),K1=!1,H1=!1)}}}if(ri.flags&384&&nn(ri,T0,hl),ri.flags&32&&(ri.flags&4&&ri.valueDeclaration&&tu(ri.valueDeclaration.parent)&&Qd(ri.valueDeclaration.parent.right)?ho(ri,qf(ri,T0),hl):Ko(ri,qf(ri,T0),hl)),(ri.flags&1536&&(!b1||wn(ri))||S3)&&xu(ri,T0,hl),ri.flags&64&&!(ri.flags&32)&&$t(ri,T0,hl),ri.flags&2097152&&ho(ri,qf(ri,T0),hl),ri.flags&4&&ri.escapedName==="export="&&w0(ri),ri.flags&8388608&&ri.declarations)for(const y1 of ri.declarations){const Zf=Vh(y1,y1.moduleSpecifier);Zf&&Cl(q.createExportDeclaration(void 0,y1.isTypeOnly,void 0,q.createStringLiteral(_n(Zf,ze))),0)}H1?Cl(q.createExportAssignment(void 0,!1,q.createIdentifier(qf(ri,T0))),0):K1&&Cl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,qf(ri,T0),T0)])),0)}function dl(ri){if(qe(ri.declarations,A2))return;H.assertIsDefined(Tt[Tt.length-1]),PC(Yr(ri.escapedName),ri);const wu=!!(ri.flags&2097152)&&!qe(ri.declarations,fr=>!!Ln(fr,Wc)||n_(fr)||g1(fr)&&!u_(fr.moduleReference));Tt[wu?0:Tt.length-1].set(qo(ri),ri)}function V1(ri){return ca(ri)&&(lm(ri)||H4(ri))||L1(ri)&&!Zg(ri)}function Cl(ri,wu){if(Op(ri)){let fr=0;const rr=ze.enclosingDeclaration&&(K4(ze.enclosingDeclaration)?In(ze.enclosingDeclaration):ze.enclosingDeclaration);wu&32&&rr&&(V1(rr)||Ec(rr))&&nV(ri)&&(fr|=32),Ci&&!(fr&32)&&(!rr||!(rr.flags&33554432))&&(Mv(ri)||Gl(ri)||Xc(ri)||Kc(ri)||Ec(ri))&&(fr|=128),wu&2048&&(Kc(ri)||Dh(ri)||Xc(ri))&&(fr|=2048),fr&&(ri=q.replaceModifiers(ri,fr|gh(ri)))}Ou.push(ri)}function kt(ri,wu,fr){var rr;const mr=Qct(ri),Ys=$r(ri).typeParameters,Po=Kt(Ys,H1=>zt(H1,ze)),oo=(rr=ri.declarations)==null?void 0:rr.find(K4),es=VO(oo?oo.comment||oo.parent.comment:void 0),Qs=ze.flags;ze.flags|=8388608;const T0=ze.enclosingDeclaration;ze.enclosingDeclaration=oo;const Gh=oo&&oo.typeExpression&&bk(oo.typeExpression)&&Z0(ze,oo.typeExpression.type,dl,Xn)||C(mr,ze);Cl(Tv(q.createTypeAliasDeclaration(void 0,qf(ri,wu),Po,Gh),es?[{kind:3,text:`* - * `+es.replace(/\n/g,` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else At.valueDeclaration&&Bc(Ji,At.valueDeclaration);return Ji}}function Z(At,ze,Yn){if(Oe(At)){if(D(ze))if(Yn){if(At.length>2)return[C(At[0],ze),q.createTypeReferenceNode(`... ${At.length-2} more ...`,void 0),C(At[At.length-1],ze)]}else return[q.createTypeReferenceNode("...",void 0)];const Er=!(ze.flags&64)?wm():void 0,fr=[];let Mr=0;for(const Ou of At){if(Mr++,D(ze)&&Mr+2{if(!Eke(xu,([Lt],[li])=>ce(Lt,li)))for(const[Lt,li]of xu)fr[li]=C(Lt,ze)}),ze.flags=Ou}return fr}}function ce(At,ze){return At===ze||!!At.symbol&&At.symbol===ze.symbol||!!At.aliasSymbol&&At.aliasSymbol===ze.aliasSymbol}function Fe(At,ze,Yn){const Fu=Rbe(At)||"x",Er=C(At.keyType,ze),fr=q.createParameterDeclaration(void 0,void 0,Fu,void 0,Er,void 0);return Yn||(Yn=C(At.type||me,ze)),!At.type&&!(ze.flags&2097152)&&(ze.encounteredError=!0),ze.approximateLength+=Fu.length+4,q.createIndexSignature(At.isReadonly?[q.createToken(148)]:void 0,[fr],Yn)}function Te(At,ze,Yn,Fu){var Er;const fr=Yn.flags&256;fr&&(Yn.flags&=-257),Yn.approximateLength+=3;let Mr,Ou;Yn.flags&32&&At.target&&At.mapper&&At.target.typeParameters?Ou=At.target.typeParameters.map(ku=>C(_a(ku,At.mapper),Yn)):Mr=At.typeParameters&&At.typeParameters.map(ku=>zt(ku,Yn));const xu=fdt(At,!0)[0];let Lt;if(Yn.enclosingDeclaration&&At.declaration&&At.declaration!==Yn.enclosingDeclaration&&!Qn(At.declaration)&&Oe(xu)){const ku=ar(Yn.enclosingDeclaration).fakeScopeForSignatureDeclaration?Yn.enclosingDeclaration:void 0;H.assertOptionalNode(ku,po);const _o=(ku==null?void 0:ku.locals)??Vo();let pn;for(const or of xu)_o.has(or.escapedName)||(pn=xi(pn,or.escapedName),_o.set(or.escapedName,or));if(pn){let or=function(){L(pn,qr=>_o.delete(qr))};if(ku)Lt=or;else{const qr=a_.createBlock(_t);ar(qr).fakeScopeForSignatureDeclaration=!0,qr.locals=_o;const La=Yn.enclosingDeclaration;ks(qr,La),Yn.enclosingDeclaration=qr,Lt=()=>{Yn.enclosingDeclaration=La,or()}}}}const li=(Oe(xu,ku=>ku!==xu[xu.length-1]&&!!(Gl(ku)&32768))?At.parameters:xu).map(ku=>Wi(ku,Yn,ze===176,Fu==null?void 0:Fu.privateSymbolVisitor,Fu==null?void 0:Fu.bundledImports)),Gi=Yn.flags&33554432?void 0:$e(At,Yn);Gi&&li.unshift(Gi);let yi;const Ji=y4(At);if(Ji){const ku=Ji.kind===2||Ji.kind===3?q.createToken(131):void 0,_o=Ji.kind===1||Ji.kind===3?Zn(q.createIdentifier(Ji.parameterName),16777216):q.createThisTypeNode(),pn=Ji.type&&C(Ji.type,Yn);yi=q.createTypePredicateNode(ku,_o,pn)}else{const ku=Zs(At);ku&&!(fr&&nt(ku))?yi=Td(Yn,ku,At,Fu==null?void 0:Fu.privateSymbolVisitor,Fu==null?void 0:Fu.bundledImports):fr||(yi=q.createKeywordTypeNode(133))}let mn=Fu==null?void 0:Fu.modifiers;if(ze===185&&At.flags&4){const ku=tE(mn);mn=q.createModifiersFromModifierFlags(ku|64)}const Kr=ze===179?q.createCallSignature(Mr,li,yi):ze===180?q.createConstructSignature(Mr,li,yi):ze===173?q.createMethodSignature(mn,(Fu==null?void 0:Fu.name)??q.createIdentifier(""),Fu==null?void 0:Fu.questionToken,Mr,li,yi):ze===174?q.createMethodDeclaration(mn,void 0,(Fu==null?void 0:Fu.name)??q.createIdentifier(""),void 0,Mr,li,yi,void 0):ze===176?q.createConstructorDeclaration(mn,li,void 0):ze===177?q.createGetAccessorDeclaration(mn,(Fu==null?void 0:Fu.name)??q.createIdentifier(""),li,yi,void 0):ze===178?q.createSetAccessorDeclaration(mn,(Fu==null?void 0:Fu.name)??q.createIdentifier(""),li,void 0):ze===181?q.createIndexSignature(mn,li,yi):ze===324?q.createJSDocFunctionType(li,yi):ze===184?q.createFunctionTypeNode(Mr,li,yi??q.createTypeReferenceNode(q.createIdentifier(""))):ze===185?q.createConstructorTypeNode(mn,Mr,li,yi??q.createTypeReferenceNode(q.createIdentifier(""))):ze===262?q.createFunctionDeclaration(mn,void 0,Fu!=null&&Fu.name?Po(Fu.name,at):q.createIdentifier(""),Mr,li,yi,void 0):ze===218?q.createFunctionExpression(mn,void 0,Fu!=null&&Fu.name?Po(Fu.name,at):q.createIdentifier(""),Mr,li,yi,q.createBlock([])):ze===219?q.createArrowFunction(mn,Mr,li,yi,void 0,q.createBlock([])):H.assertNever(ze);if(Ou&&(Kr.typeArguments=q.createNodeArray(Ou)),((Er=At.declaration)==null?void 0:Er.kind)===330&&At.declaration.parent.kind===346){const ku=Hc(At.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(_o=>_o.replace(/^\s+/," ")).join(` +`);OP(Kr,3,ku,!0)}return Lt==null||Lt(),Kr}function $e(At,ze){if(At.thisParameter)return Wi(At.thisParameter,ze);if(At.declaration&&Qn(At.declaration)){const Yn=LU(At.declaration);if(Yn&&Yn.typeExpression)return q.createParameterDeclaration(void 0,void 0,"this",void 0,C(Ar(Yn.typeExpression),ze))}}function ut(At,ze,Yn){const Fu=ze.flags;ze.flags&=-513;const Er=q.createModifiersFromModifierFlags(HPe(At)),fr=fo(At,ze),Mr=_F(At),Ou=Mr&&C(Mr,ze);return ze.flags=Fu,q.createTypeParameterDeclaration(Er,fr,Yn,Ou)}function zt(At,ze,Yn=rh(At)){const Fu=Yn&&C(Yn,ze);return ut(At,ze,Fu)}function gi(At){const ze=Sl(At,169);if(ze)return ze;if(!qE(At))return Sl(At,348)}function Wi(At,ze,Yn,Fu,Er){const fr=gi(At);let Mr=Wn(At);fr&&Y4t(fr)&&(Mr=S6(Mr));const Ou=ad(ze,Mr,At,ze.enclosingDeclaration,Fu,Er),xu=!(ze.flags&8192)&&Yn&&fr&&Hp(fr)?Vt(p2(fr),q.cloneNode):void 0,li=fr&&$_(fr)||Gl(At)&32768?q.createToken(26):void 0,Gi=dn(At,fr,ze),Ji=fr&&uW(fr)||Gl(At)&16384?q.createToken(58):void 0,mn=q.createParameterDeclaration(xu,li,Gi,Ji,Ou,void 0);return ze.approximateLength+=lc(At).length+3,mn}function dn(At,ze,Yn){return ze&&ze.name?ze.name.kind===80?Zn(q.cloneNode(ze.name),16777216):ze.name.kind===166?Zn(q.cloneNode(ze.name.right),16777216):Fu(ze.name):lc(At);function Fu(Er){return fr(Er);function fr(Mr){Yn.tracker.canTrackSymbol&&Ps(Mr)&&NNe(Mr)&&nu(Mr.expression,Yn.enclosingDeclaration,Yn);let Ou=rn(Mr,fr,Dg,void 0,fr);return js(Ou)&&(Ou=q.updateBindingElement(Ou,Ou.dotDotDotToken,Ou.propertyName,Ou.name,void 0)),sl(Ou)||(Ou=q.cloneNode(Ou)),Zn(Ou,16777217)}}}function nu(At,ze,Yn){if(!Yn.tracker.canTrackSymbol)return;const Fu=hm(At),Er=uc(Fu,Fu.escapedText,1160127,void 0,void 0,!0);Er&&Yn.tracker.trackSymbol(Er,ze,111551)}function En(At,ze,Yn,Fu){return ze.tracker.trackSymbol(At,ze.enclosingDeclaration,Yn),Ii(At,ze,Yn,Fu)}function Ii(At,ze,Yn,Fu){let Er;return!(At.flags&262144)&&(ze.enclosingDeclaration||ze.flags&64)&&!(ze.flags&134217728)?(Er=H.checkDefined(Mr(At,Yn,!0)),H.assert(Er&&Er.length>0)):Er=[At],Er;function Mr(Ou,xu,Lt){let li=_C(Ou,ze.enclosingDeclaration,xu,!!(ze.flags&128)),Gi;if(!li||$w(li[0],ze.enclosingDeclaration,li.length===1?xu:v3(xu))){const Ji=Ww(li?li[0]:Ou,ze.enclosingDeclaration,xu);if(S(Ji)){Gi=Ji.map(ku=>Oe(ku.declarations,Ao)?_n(ku,ze):void 0);const mn=Ji.map((ku,_o)=>_o);mn.sort(yi);const Kr=mn.map(ku=>Ji[ku]);for(const ku of Kr){const _o=Mr(ku,v3(xu),!1);if(_o){if(ku.exports&&ku.exports.get("export=")&&Zm(ku.exports.get("export="),Ou)){li=_o;break}li=_o.concat(li||[s6(ku,Ou)||Ou]);break}}}}if(li)return li;if(Lt||!(Ou.flags&6144))return!Lt&&!Fu&&L(Ou.declarations,Ao)?void 0:[Ou];function yi(Ji,mn){const Kr=Gi[Ji],ku=Gi[mn];if(Kr&&ku){const _o=om(ku);return om(Kr)===_o?ZY(Kr)-ZY(ku):_o?-1:1}return 0}}}function Nn(At,ze){let Yn;return _T(At).flags&524384&&(Yn=q.createNodeArray(Vt(sn(At),Er=>zt(Er,ze)))),Yn}function vn(At,ze,Yn){var Fu;H.assert(At&&0<=ze&&zek6(li,xu.links.mapper)),Yn)}else Mr=Nn(Er,Yn)}return Mr}function An(At){return I7(At.objectType)?An(At.objectType):At}function _n(At,ze,Yn){let Fu=Sl(At,312);if(!Fu){const Lt=G(At.declarations,li=>kb(li,At));Lt&&(Fu=Sl(Lt,312))}if(Fu&&Fu.moduleName!==void 0)return Fu.moduleName;if(!Fu){if(ze.tracker.trackReferencedAmbientModule){const Lt=ti(At.declarations,N1);if(S(Lt))for(const li of Lt)ze.tracker.trackReferencedAmbientModule(li,At)}if(jde.test(At.escapedName))return At.escapedName.substring(1,At.escapedName.length-1)}if(!ze.enclosingDeclaration||!ze.tracker.moduleResolverHost)return jde.test(At.escapedName)?At.escapedName.substring(1,At.escapedName.length-1):zn(g0e(At)).fileName;const Er=zn(Wl(ze.enclosingDeclaration)),fr=Yn||(Er==null?void 0:Er.impliedNodeFormat),Mr=dM(Er.path,fr),Ou=Ur(At);let xu=Ou.specifierCache&&Ou.specifierCache.get(Mr);if(!xu){const Lt=!!y0(ae),{moduleResolverHost:li}=ze.tracker,Gi=Lt?{...ae,baseUrl:li.getCommonSourceDirectory()}:ae;xu=Pn(het(At,Pi,Gi,Er,li,{importModuleSpecifierPreference:Lt?"non-relative":"project-relative",importModuleSpecifierEnding:Lt?"minimal":fr===99?"js":void 0},{overrideImportMode:Yn})),Ou.specifierCache??(Ou.specifierCache=new Map),Ou.specifierCache.set(Mr,xu)}return xu}function hu(At){const ze=q.createIdentifier(Yr(At.escapedName));return At.parent?q.createQualifiedName(hu(At.parent),ze):ze}function oo(At,ze,Yn,Fu){const Er=En(At,ze,Yn,!(ze.flags&16384)),fr=Yn===111551;if(Oe(Er[0].declarations,Ao)){const xu=Er.length>1?Ou(Er,Er.length-1,1):void 0,Lt=Fu||vn(Er,0,ze),li=zn(Wl(ze.enclosingDeclaration)),Gi=YU(Er[0]);let yi,Ji;if((p1(ae)===3||p1(ae)===99)&&(Gi==null?void 0:Gi.impliedNodeFormat)===99&&Gi.impliedNodeFormat!==(li==null?void 0:li.impliedNodeFormat)&&(yi=_n(Er[0],ze,99),Ji=q.createImportAttributes(q.createNodeArray([q.createImportAttribute(q.createStringLiteral("resolution-mode"),q.createStringLiteral("import"))]))),yi||(yi=_n(Er[0],ze)),!(ze.flags&67108864)&&p1(ae)!==1&&yi.includes("/node_modules/")){const Kr=yi;if(p1(ae)===3||p1(ae)===99){const ku=(li==null?void 0:li.impliedNodeFormat)===99?1:99;yi=_n(Er[0],ze,ku),yi.includes("/node_modules/")?yi=Kr:Ji=q.createImportAttributes(q.createNodeArray([q.createImportAttribute(q.createStringLiteral("resolution-mode"),q.createStringLiteral(ku===99?"import":"require"))]))}Ji||(ze.encounteredError=!0,ze.tracker.reportLikelyUnsafeImportRequiredError&&ze.tracker.reportLikelyUnsafeImportRequiredError(Kr))}const mn=q.createLiteralTypeNode(q.createStringLiteral(yi));if(ze.tracker.trackExternalModuleSymbolOfImportTypeNode&&ze.tracker.trackExternalModuleSymbolOfImportTypeNode(Er[0]),ze.approximateLength+=yi.length+10,!xu||sm(xu)){if(xu){const Kr=at(xu)?xu:xu.right;l5(Kr,void 0)}return q.createImportTypeNode(mn,Ji,xu,Lt,fr)}else{const Kr=An(xu),ku=Kr.objectType.typeName;return q.createIndexedAccessTypeNode(q.createImportTypeNode(mn,Ji,ku,Lt,fr),Kr.indexType)}}const Mr=Ou(Er,Er.length-1,0);if(I7(Mr))return Mr;if(fr)return q.createTypeQueryNode(Mr);{const xu=at(Mr)?Mr:Mr.right,Lt=gk(xu);return l5(xu,void 0),q.createTypeReferenceNode(Mr,Lt)}function Ou(xu,Lt,li){const Gi=Lt===xu.length-1?Fu:vn(xu,Lt,ze),yi=xu[Lt],Ji=xu[Lt-1];let mn;if(Lt===0)ze.flags|=16777216,mn=__(yi,ze),ze.approximateLength+=(mn?mn.length:0)+1,ze.flags^=16777216;else if(Ji&&$f(Ji)){const ku=$f(Ji);h1(ku,(_o,pn)=>{if(Zm(_o,yi)&&!XK(pn)&&pn!=="export=")return mn=Yr(pn),!0})}if(mn===void 0){const ku=G(yi.declarations,Za);if(ku&&Ps(ku)&&sm(ku.expression)){const _o=Ou(xu,Lt-1,li);return sm(_o)?q.createIndexedAccessTypeNode(q.createParenthesizedType(q.createTypeQueryNode(_o)),q.createTypeQueryNode(ku.expression)):_o}mn=__(yi,ze)}if(ze.approximateLength+=mn.length+1,!(ze.flags&16)&&Ji&&_6(Ji)&&_6(Ji).get(yi.escapedName)&&Zm(_6(Ji).get(yi.escapedName),yi)){const ku=Ou(xu,Lt-1,li);return I7(ku)?q.createIndexedAccessTypeNode(ku,q.createLiteralTypeNode(q.createStringLiteral(mn))):q.createIndexedAccessTypeNode(q.createTypeReferenceNode(ku,Gi),q.createLiteralTypeNode(q.createStringLiteral(mn)))}const Kr=Zn(q.createIdentifier(mn),16777216);if(Gi&&l5(Kr,q.createNodeArray(Gi)),Kr.symbol=yi,Lt>li){const ku=Ou(xu,Lt-1,li);return sm(ku)?q.createQualifiedName(ku,Kr):H.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Kr}}function Eo(At,ze,Yn){const Fu=uc(ze.enclosingDeclaration,At,788968,void 0,At,!1);return Fu?!(Fu.flags&262144&&Fu===Yn.symbol):!1}function fo(At,ze){var Yn,Fu;if(ze.flags&4&&ze.typeParameterNames){const fr=ze.typeParameterNames.get(Fh(At));if(fr)return fr}let Er=ka(At.symbol,ze,788968,!0);if(!(Er.kind&80))return q.createIdentifier("(Missing type parameter)");if(ze.flags&4){const fr=Er.escapedText;let Mr=((Yn=ze.typeParameterNamesByTextNextNameCount)==null?void 0:Yn.get(fr))||0,Ou=fr;for(;(Fu=ze.typeParameterNamesByText)!=null&&Fu.has(Ou)||Eo(Ou,ze,At);)Mr++,Ou=`${fr}_${Mr}`;if(Ou!==fr){const xu=gk(Er);Er=q.createIdentifier(Ou),l5(Er,xu)}(ze.typeParameterNamesByTextNextNameCount||(ze.typeParameterNamesByTextNextNameCount=new Map)).set(fr,Mr),(ze.typeParameterNames||(ze.typeParameterNames=new Map)).set(Fh(At),Er),(ze.typeParameterNamesByText||(ze.typeParameterNamesByText=new Set)).add(fr)}return Er}function ka(At,ze,Yn,Fu){const Er=En(At,ze,Yn);return Fu&&Er.length!==1&&!ze.encounteredError&&!(ze.flags&65536)&&(ze.encounteredError=!0),fr(Er,Er.length-1);function fr(Mr,Ou){const xu=vn(Mr,Ou,ze),Lt=Mr[Ou];Ou===0&&(ze.flags|=16777216);const li=__(Lt,ze);Ou===0&&(ze.flags^=16777216);const Gi=Zn(q.createIdentifier(li),16777216);return xu&&l5(Gi,q.createNodeArray(xu)),Gi.symbol=Lt,Ou>0?q.createQualifiedName(fr(Mr,Ou-1),Gi):Gi}}function ah(At,ze,Yn){const Fu=En(At,ze,Yn);return Er(Fu,Fu.length-1);function Er(fr,Mr){const Ou=vn(fr,Mr,ze),xu=fr[Mr];Mr===0&&(ze.flags|=16777216);let Lt=__(xu,ze);Mr===0&&(ze.flags^=16777216);let li=Lt.charCodeAt(0);if(_j(li)&&Oe(xu.declarations,Ao))return q.createStringLiteral(_n(xu,ze));if(Mr===0||zle(Lt,Ce)){const Gi=Zn(q.createIdentifier(Lt),16777216);return Ou&&l5(Gi,q.createNodeArray(Ou)),Gi.symbol=xu,Mr>0?q.createPropertyAccessExpression(Er(fr,Mr-1),Gi):Gi}else{li===91&&(Lt=Lt.substring(1,Lt.length-1),li=Lt.charCodeAt(0));let Gi;if(_j(li)&&!(xu.flags&8)?Gi=q.createStringLiteral($4(Lt).replace(/\\./g,yi=>yi.substring(1)),li===39):""+ +Lt===Lt&&(Gi=q.createNumericLiteral(+Lt)),!Gi){const yi=Zn(q.createIdentifier(Lt),16777216);Ou&&l5(yi,q.createNodeArray(Ou)),yi.symbol=xu,Gi=yi}return q.createElementAccessExpression(Er(fr,Mr-1),Gi)}}}function t4(At){const ze=Za(At);return ze?Ps(ze)?!!(ya(ze.expression).flags&402653316):U0(ze)?!!(ya(ze.argumentExpression).flags&402653316):us(ze):!1}function hn(At){const ze=Za(At);return!!(ze&&us(ze)&&(ze.singleQuote||!sl(ze)&&Pa(Hc(ze,!1),"'")))}function Kn(At,ze){const Yn=!!S(At.declarations)&&ye(At.declarations,t4),Fu=!!S(At.declarations)&&ye(At.declarations,hn),Er=!!(At.flags&8192),fr=Zr(At,ze,Fu,Yn,Er);if(fr)return fr;const Mr=Yr(At.escapedName);return mZ(Mr,Os(ae),Fu,Yn,Er)}function Zr(At,ze,Yn,Fu,Er){const fr=Ur(At).nameType;if(fr){if(fr.flags&384){const Mr=""+fr.value;return!Lm(Mr,Os(ae))&&(Fu||!i3(Mr))?q.createStringLiteral(Mr,!!Yn):i3(Mr)&&Pa(Mr,"-")?q.createComputedPropertyName(q.createNumericLiteral(+Mr)):mZ(Mr,Os(ae),Yn,Fu,Er)}if(fr.flags&8192)return q.createComputedPropertyName(ah(fr.symbol,ze,111551))}}function yo(At){const ze={...At};return ze.typeParameterNames&&(ze.typeParameterNames=new Map(ze.typeParameterNames)),ze.typeParameterNamesByText&&(ze.typeParameterNamesByText=new Set(ze.typeParameterNamesByText)),ze.typeParameterSymbolList&&(ze.typeParameterSymbolList=new Set(ze.typeParameterSymbolList)),ze.tracker=new Hde(ze,ze.tracker.inner,ze.tracker.moduleResolverHost),ze}function $n(At,ze){return At.declarations&&Le(At.declarations,Yn=>!!f1(Yn)&&(!ze||!!Tn(Yn,Fu=>Fu===ze)))}function Bs(At,ze){return!(Gu(ze)&4)||!X4(At)||S(At.typeArguments)>=b_(ze.target.typeParameters)}function w0(At){return ar(At).fakeScopeForSignatureDeclaration?At.parent:At}function ad(At,ze,Yn,Fu,Er,fr){if(!Nt(ze)&&Fu){const xu=$n(Yn,w0(Fu));if(xu&&!$0(xu)&&!zm(xu)){const Lt=f1(xu);if(Ys(Lt,xu,ze)&&Bs(Lt,ze)){const li=el(At,Lt,Er,fr);if(li)return li}}}const Mr=At.flags;ze.flags&8192&&ze.symbol===Yn&&(!At.enclosingDeclaration||Oe(Yn.declarations,xu=>zn(xu)===zn(At.enclosingDeclaration)))&&(At.flags|=1048576);const Ou=C(ze,At);return At.flags=Mr,Ou}function Ys(At,ze,Yn){const Fu=Ar(At);return Fu===Yn?!0:io(ze)&&ze.questionToken?mp(Yn,524288)===Fu:!1}function Td(At,ze,Yn,Fu,Er){if(!Nt(ze)&&At.enclosingDeclaration){const fr=Yn.declaration&&U4(Yn.declaration),Mr=w0(At.enclosingDeclaration);if(Tn(fr,Ou=>Ou===Mr)&&fr){const Ou=Ar(fr);if((Ou.flags&262144&&Ou.isThisType?_a(Ou,Yn.mapper):Ou)===ze&&Bs(fr,ze)){const Lt=el(At,fr,Fu,Er);if(Lt)return Lt}}}return C(ze,At)}function kc(At,ze,Yn){let Fu=!1;const Er=hm(At);if(Qn(At)&&(uk(Er)||Y_(Er.parent)||vf(Er.parent)&&P0e(Er.parent.left)&&uk(Er.parent.right)))return Fu=!0,{introducesError:Fu,node:At};const fr=R0(Er,67108863,!0,!0);if(fr&&(yu(fr,ze.enclosingDeclaration,67108863,!1).accessibility!==0?Fu=!0:(ze.tracker.trackSymbol(fr,ze.enclosingDeclaration,67108863),Yn==null||Yn(fr)),at(At))){const Mr=X0(fr),Ou=fr.flags&262144&&!R(Mr.symbol,ze.enclosingDeclaration)?fo(Mr,ze):q.cloneNode(At);return Ou.symbol=fr,{introducesError:Fu,node:Zn(su(Ou,At),16777216)}}return{introducesError:Fu,node:At}}function el(At,ze,Yn,Fu){d&&d.throwIfCancellationRequested&&d.throwIfCancellationRequested();let Er=!1;const fr=zn(ze),Mr=yt(ze,Ou,Qr);if(Er)return;return Mr===ze?Pt(q.cloneNode(ze),ze):Mr;function Ou(xu){if(EFe(xu)||xu.kind===326)return q.createKeywordTypeNode(133);if(_Fe(xu))return q.createKeywordTypeNode(159);if(wB(xu))return q.createUnionTypeNode([yt(xu.type,Ou,Qr),q.createLiteralTypeNode(q.createNull())]);if(Fce(xu))return q.createUnionTypeNode([yt(xu.type,Ou,Qr),q.createKeywordTypeNode(157)]);if(mY(xu))return yt(xu.type,Ou);if(pY(xu))return q.createArrayTypeNode(yt(xu.type,Ou,Qr));if(K7(xu))return q.createTypeLiteralNode(Vt(xu.jsDocPropertyTags,yi=>{const Ji=at(yi.name)?yi.name:yi.name.right,mn=he(Ar(xu),Ji.escapedText),Kr=mn&&yi.typeExpression&&Ar(yi.typeExpression.type)!==mn?C(mn,At):void 0;return q.createPropertySignature(void 0,Ji,yi.isBracketed||yi.typeExpression&&Fce(yi.typeExpression.type)?q.createToken(58):void 0,Kr||yi.typeExpression&&yt(yi.typeExpression.type,Ou,Qr)||q.createKeywordTypeNode(133))}));if(X4(xu)&&at(xu.typeName)&&xu.typeName.escapedText==="")return su(q.createKeywordTypeNode(133),xu);if((c5(xu)||X4(xu))&&xq(xu))return q.createTypeLiteralNode([q.createIndexSignature(void 0,[q.createParameterDeclaration(void 0,void 0,"x",void 0,yt(xu.typeArguments[0],Ou,Qr))],yt(xu.typeArguments[1],Ou,Qr))]);if(TB(xu))if(X8(xu)){let yi;return q.createConstructorTypeNode(void 0,kn(xu.typeParameters,Ou,Bl),qi(xu.parameters,(Ji,mn)=>Ji.name&&at(Ji.name)&&Ji.name.escapedText==="new"?(yi=Ji.type,void 0):q.createParameterDeclaration(void 0,Lt(Ji),li(Ji,mn),Ji.questionToken,yt(Ji.type,Ou,Qr),void 0)),yt(yi||xu.type,Ou,Qr)||q.createKeywordTypeNode(133))}else return q.createFunctionTypeNode(kn(xu.typeParameters,Ou,Bl),Vt(xu.parameters,(yi,Ji)=>q.createParameterDeclaration(void 0,Lt(yi),li(yi,Ji),yi.questionToken,yt(yi.type,Ou,Qr),void 0)),yt(xu.type,Ou,Qr)||q.createKeywordTypeNode(133));if(X4(xu)&&Ej(xu)&&(!Bs(xu,Ar(xu))||Gdt(xu)||Xt===oT(xu,788968,!0)))return su(C(Ar(xu),At),xu);if(zx(xu)){const yi=ar(xu).resolvedSymbol;return Ej(xu)&&yi&&(!xu.isTypeOf&&!(yi.flags&788968)||!(S(xu.typeArguments)>=b_(sn(yi))))?su(C(Ar(xu),At),xu):q.updateImportTypeNode(xu,q.updateLiteralTypeNode(xu.argument,Gi(xu,xu.argument.literal)),xu.attributes,xu.qualifier,kn(xu.typeArguments,Ou,Qr),xu.isTypeOf)}if(sm(xu)||ec(xu)){const{introducesError:yi,node:Ji}=kc(xu,At,Yn);if(Er=Er||yi,Ji!==xu)return Ji}return fr&&yB(xu)&&s0(fr,xu.pos).line===s0(fr,xu.end).line&&Zn(xu,1),rn(xu,Ou,Dg);function Lt(yi){return yi.dotDotDotToken||(yi.type&&pY(yi.type)?q.createToken(26):void 0)}function li(yi,Ji){return yi.name&&at(yi.name)&&yi.name.escapedText==="this"?"this":Lt(yi)?"args":`arg${Ji}`}function Gi(yi,Ji){if(Fu){if(At.tracker&&At.tracker.moduleResolverHost){const mn=qze(yi);if(mn){const ku={getCanonicalFileName:L1(!!t.useCaseSensitiveFileNames),getCurrentDirectory:()=>At.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>At.tracker.moduleResolverHost.getCommonSourceDirectory()},_o=Pq(ku,mn);return q.createStringLiteral(_o)}}}else if(At.tracker&&At.tracker.trackExternalModuleSymbolOfImportTypeNode){const mn=D3(Ji,Ji,void 0);mn&&At.tracker.trackExternalModuleSymbolOfImportTypeNode(mn)}return Ji}}}function bm(At,ze,Yn){var Fu;const Er=Hd(q.createPropertyDeclaration,174,!0),fr=Hd((ai,Bu,dr,nr)=>q.createPropertySignature(ai,Bu,dr,nr),173,!1),Mr=ze.enclosingDeclaration;let Ou=[];const xu=new Set,Lt=[],li=ze;ze={...li,usedSymbolNames:new Set(li.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Fu=li.remappedSymbolReferences)==null?void 0:Fu.entries()),tracker:void 0};const Gi={...li.tracker.inner,trackSymbol:(ai,Bu,dr)=>{var nr,hr;if((nr=ze.remappedSymbolNames)!=null&&nr.has(Zo(ai)))return!1;if(yu(ai,Bu,dr,!1).accessibility===0){const zo=Ii(ai,ze,dr);if(!(ai.flags&4)){const so=zo[0],ts=zn(li.enclosingDeclaration);Oe(so.declarations,Xs=>zn(Xs)===ts)&&fl(so)}}else if((hr=li.tracker.inner)!=null&&hr.trackSymbol)return li.tracker.inner.trackSymbol(ai,Bu,dr);return!1}};ze.tracker=new Hde(ze,Gi,li.tracker.moduleResolverHost),h1(At,(ai,Bu)=>{const dr=Yr(Bu);Zf(ai,dr)});let yi=!Yn;const Ji=At.get("export=");return Ji&&At.size>1&&Ji.flags&2097152&&(At=Vo(),At.set("export=",Ji)),cs(At),or(Ou);function mn(ai){return!!ai&&ai.kind===80}function Kr(ai){return Jl(ai)?ti(Vt(ai.declarationList.declarations,Za),mn):ti([Za(ai)],mn)}function ku(ai){const Bu=Le(ai,tc),dr=Ue(ai,_c);let nr=dr!==-1?ai[dr]:void 0;if(nr&&Bu&&Bu.isExportEquals&&at(Bu.expression)&&at(nr.name)&&fu(nr.name)===fu(Bu.expression)&&nr.body&&rE(nr.body)){const hr=ti(ai,so=>!!(Eh(so)&32)),Qs=nr.name;let zo=nr.body;if(S(hr)&&(nr=q.updateModuleDeclaration(nr,nr.modifiers,nr.name,zo=q.updateModuleBlock(zo,q.createNodeArray([...nr.body.statements,q.createExportDeclaration(void 0,!1,q.createNamedExports(Vt(ju(hr,so=>Kr(so)),so=>q.createExportSpecifier(!1,void 0,so))),void 0)]))),ai=[...ai.slice(0,dr),nr,...ai.slice(dr+1)]),!Le(ai,so=>so!==nr&&jO(so,Qs))){Ou=[];const so=!Oe(zo.statements,ts=>Yu(ts,32)||tc(ts)||Gc(ts));L(zo.statements,ts=>{yl(ts,so?32:0)}),ai=[...ti(ai,ts=>ts!==nr&&ts!==Bu),...Ou]}}return ai}function _o(ai){const Bu=ti(ai,nr=>Gc(nr)&&!nr.moduleSpecifier&&!!nr.exportClause&&ep(nr.exportClause));S(Bu)>1&&(ai=[...ti(ai,hr=>!Gc(hr)||!!hr.moduleSpecifier||!hr.exportClause),q.createExportDeclaration(void 0,!1,q.createNamedExports(ju(Bu,hr=>Po(hr.exportClause,ep).elements)),void 0)]);const dr=ti(ai,nr=>Gc(nr)&&!!nr.moduleSpecifier&&!!nr.exportClause&&ep(nr.exportClause));if(S(dr)>1){const nr=vN(dr,hr=>us(hr.moduleSpecifier)?">"+hr.moduleSpecifier.text:">");if(nr.length!==dr.length)for(const hr of nr)hr.length>1&&(ai=[...ti(ai,Qs=>!hr.includes(Qs)),q.createExportDeclaration(void 0,!1,q.createNamedExports(ju(hr,Qs=>Po(Qs.exportClause,ep).elements)),hr[0].moduleSpecifier)])}return ai}function pn(ai){const Bu=Ue(ai,dr=>Gc(dr)&&!dr.moduleSpecifier&&!dr.attributes&&!!dr.exportClause&&ep(dr.exportClause));if(Bu>=0){const dr=ai[Bu],nr=qi(dr.exportClause.elements,hr=>{if(!hr.propertyName){const Qs=$r(ai),zo=ti(Qs,so=>jO(ai[so],hr.name));if(S(zo)&&ye(zo,so=>rV(ai[so]))){for(const so of zo)ai[so]=qr(ai[so]);return}}return hr});S(nr)?ai[Bu]=q.updateExportDeclaration(dr,dr.modifiers,dr.isTypeOnly,q.updateNamedExports(dr.exportClause,nr),dr.moduleSpecifier,dr.attributes):fv(ai,Bu)}return ai}function or(ai){return ai=ku(ai),ai=_o(ai),ai=pn(ai),Mr&&(la(Mr)&&cm(Mr)||_c(Mr))&&(!Oe(ai,YO)||!dbe(ai)&&Oe(ai,VU))&&ai.push(NV(q)),ai}function qr(ai){const Bu=(Eh(ai)|32)&-129;return q.replaceModifiers(ai,Bu)}function La(ai){const Bu=Eh(ai)&-33;return q.replaceModifiers(ai,Bu)}function cs(ai,Bu,dr){Bu||Lt.push(new Map),ai.forEach(nr=>{pd(nr,!1,!!dr)}),Bu||(Lt[Lt.length-1].forEach(nr=>{pd(nr,!0,!!dr)}),Lt.pop())}function pd(ai,Bu,dr){const nr=Ks(ai);if(xu.has(Zo(nr)))return;if(xu.add(Zo(nr)),!Bu||S(ai.declarations)&&Oe(ai.declarations,Qs=>!!Tn(Qs,zo=>zo===Mr))){const Qs=ze;ze=yo(ze),bl(ai,Bu,dr),ze.reportedDiagnostic&&(li.reportedDiagnostic=ze.reportedDiagnostic),ze.trackedSymbols&&(Qs.trackedSymbols?H.assert(ze.trackedSymbols===Qs.trackedSymbols):Qs.trackedSymbols=ze.trackedSymbols),ze=Qs}}function bl(ai,Bu,dr,nr=ai.escapedName){var hr,Qs,zo,so,ts,Xs;const L0=Yr(nr),$h=nr==="default";if(Bu&&!(ze.flags&131072)&&m7(L0)&&!$h){ze.encounteredError=!0;return}let K1=$h&&!!(ai.flags&-113||ai.flags&16&&S(n0(Wn(ai))))&&!(ai.flags&2097152),W1=!K1&&!Bu&&m7(L0)&&!$h;(K1||W1)&&(Bu=!0);const ml=(Bu?0:32)|($h&&!K1?2048:0),y1=ai.flags&1536&&ai.flags&7&&nr!=="export=",B3=y1&&Gs(Wn(ai),ai);if((ai.flags&8208||B3)&&lu(Wn(ai),ai,Zf(ai,L0),ml),ai.flags&524288&&Ft(ai,L0,ml),ai.flags&98311&&nr!=="export="&&!(ai.flags&4194304)&&!(ai.flags&32)&&!(ai.flags&8192)&&!B3)if(dr)T0(ai)&&(W1=!1,K1=!1);else{const k1=Wn(ai),Yf=Zf(ai,L0);if(k1.symbol&&k1.symbol!==ai&&k1.symbol.flags&16&&Oe(k1.symbol.declarations,R2)&&((hr=k1.symbol.members)!=null&&hr.size||(Qs=k1.symbol.exports)!=null&&Qs.size))ze.remappedSymbolReferences||(ze.remappedSymbolReferences=new Map),ze.remappedSymbolReferences.set(Zo(k1.symbol),ai),bl(k1.symbol,Bu,dr,nr),ze.remappedSymbolReferences.delete(Zo(k1.symbol));else if(!(ai.flags&16)&&Gs(k1,ai))lu(k1,ai,Yf,ml);else{const uS=ai.flags&2?Mz(ai)?2:1:(zo=ai.parent)!=null&&zo.valueDeclaration&&la((so=ai.parent)==null?void 0:so.valueDeclaration)?2:void 0,TE=K1||!(ai.flags&4)?Yf:zC(Yf,ai);let L6=ai.declarations&&Le(ai.declarations,HW=>na(HW));L6&&Ad(L6.parent)&&L6.parent.declarations.length===1&&(L6=L6.parent.parent);const N6=(ts=ai.declarations)==null?void 0:ts.find(Iu);if(N6&&Xn(N6.parent)&&at(N6.parent.right)&&((Xs=k1.symbol)!=null&&Xs.valueDeclaration)&&la(k1.symbol.valueDeclaration)){const HW=Yf===N6.parent.right.escapedText?void 0:N6.parent.right;yl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,HW,Yf)])),0),ze.tracker.trackSymbol(k1.symbol,ze.enclosingDeclaration,111551)}else{const HW=Pt(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(TE,void 0,ad(ze,k1,ai,Mr,fl,Yn))],uS)),L6);yl(HW,TE!==Yf?ml&-33:ml),TE!==Yf&&!Bu&&(yl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,TE,Yf)])),0),W1=!1,K1=!1)}}}if(ai.flags&384&&un(ai,L0,ml),ai.flags&32&&(ai.flags&4&&ai.valueDeclaration&&Xn(ai.valueDeclaration.parent)&&Xd(ai.valueDeclaration.parent.right)?mo(ai,Zf(ai,L0),ml):Wo(ai,Zf(ai,L0),ml)),(ai.flags&1536&&(!y1||Bn(ai))||B3)&&Du(ai,L0,ml),ai.flags&64&&!(ai.flags&32)&&$t(ai,L0,ml),ai.flags&2097152&&mo(ai,Zf(ai,L0),ml),ai.flags&4&&ai.escapedName==="export="&&T0(ai),ai.flags&8388608&&ai.declarations)for(const k1 of ai.declarations){const Yf=Kh(k1,k1.moduleSpecifier);Yf&&yl(q.createExportDeclaration(void 0,k1.isTypeOnly,void 0,q.createStringLiteral(_n(Yf,ze))),0)}K1?yl(q.createExportAssignment(void 0,!1,q.createIdentifier(Zf(ai,L0))),0):W1&&yl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,Zf(ai,L0),L0)])),0)}function fl(ai){if(Oe(ai.declarations,w2))return;H.assertIsDefined(Lt[Lt.length-1]),zC(Yr(ai.escapedName),ai);const Bu=!!(ai.flags&2097152)&&!Oe(ai.declarations,dr=>!!Tn(dr,Gc)||u_(dr)||E1(dr)&&!r_(dr.moduleReference));Lt[Bu?0:Lt.length-1].set(Zo(ai),ai)}function H1(ai){return la(ai)&&(cm(ai)||W4(ai))||N1(ai)&&!Yg(ai)}function yl(ai,Bu){if(Hp(ai)){let dr=0;const nr=ze.enclosingDeclaration&&(G4(ze.enclosingDeclaration)?zn(ze.enclosingDeclaration):ze.enclosingDeclaration);Bu&32&&nr&&(H1(nr)||_c(nr))&&rV(ai)&&(dr|=32),yi&&!(dr&32)&&(!nr||!(nr.flags&33554432))&&(Iv(ai)||Jl(ai)||ed(ai)||Wc(ai)||_c(ai))&&(dr|=128),Bu&2048&&(Wc(ai)||xh(ai)||ed(ai))&&(dr|=2048),dr&&(ai=q.replaceModifiers(ai,dr|Eh(ai)))}Ou.push(ai)}function Ft(ai,Bu,dr){var nr;const hr=tdt(ai),Qs=Ur(ai).typeParameters,zo=Vt(Qs,K1=>zt(K1,ze)),so=(nr=ai.declarations)==null?void 0:nr.find(G4),ts=KO(so?so.comment||so.parent.comment:void 0),Xs=ze.flags;ze.flags|=8388608;const L0=ze.enclosingDeclaration;ze.enclosingDeclaration=so;const $h=so&&so.typeExpression&&kk(so.typeExpression)&&el(ze,so.typeExpression.type,fl,Yn)||C(hr,ze);yl(Nv(q.createTypeAliasDeclaration(void 0,Zf(ai,Bu),zo,$h),ts?[{kind:3,text:`* + * `+ts.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fr),ze.flags=Qs,ze.enclosingDeclaration=T0}function $t(ri,wu,fr){const rr=C4(ri),mr=sn(ri),Ys=Kt(mr,K1=>zt(K1,ze)),Po=qc(rr),oo=S(Po)?Es(Po):void 0,es=Ku(n0(rr),K1=>SE(K1,oo)),Qs=BE(0,rr,oo,179),T0=BE(1,rr,oo,180),Gh=Kb(rr,oo),H1=S(Po)?[q.createHeritageClause(96,Ui(Po,K1=>tS(K1,111551)))]:void 0;Cl(q.createInterfaceDeclaration(void 0,qf(ri,wu),Ys,H1,[...Gh,...T0,...Qs,...es]),fr)}function Mi(ri){const wu=Jf(ri);return wu?ei(Ea(wu.values()),fr=>Ya(fr)&&Tm(fr.escapedName,99)):[]}function wn(ri){return ye(Mi(ri),wu=>!(R1(bc(wu))&111551))}function xu(ri,wu,fr){const rr=Mi(ri),mr=hO(rr,oo=>oo.parent&&oo.parent===ri?"real":"merged"),Ys=mr.get("real")||_t,Po=mr.get("merged")||_t;if(S(Ys)){const oo=qf(ri,wu);Tr(Ys,oo,fr,!!(ri.flags&67108880))}if(S(Po)){const oo=In(ze.enclosingDeclaration),es=qf(ri,wu),Qs=q.createModuleBlock([q.createExportDeclaration(void 0,!1,q.createNamedExports(Ui(ei(Po,T0=>T0.escapedName!=="export="),T0=>{var Gh,H1;const K1=Yr(T0.escapedName),hl=qf(T0,K1),b1=T0.declarations&&np(T0);if(oo&&(b1?oo!==In(b1):!qe(T0.declarations,Zf=>In(Zf)===oo))){(H1=(Gh=ze.tracker)==null?void 0:Gh.reportNonlocalAugmentation)==null||H1.call(Gh,oo,ri,T0);return}const S3=b1&&g4(b1,!0);dl(S3||T0);const y1=S3?qf(S3,Yr(S3.escapedName)):hl;return q.createExportSpecifier(!1,K1===y1?void 0:y1,K1)})))]);Cl(q.createModuleDeclaration(void 0,q.createIdentifier(es),Qs,32),0)}}function nn(ri,wu,fr){Cl(q.createEnumDeclaration(q.createModifiersFromModifierFlags(fze(ri)?4096:0),qf(ri,wu),Kt(ei(n0(Jn(ri)),rr=>!!(rr.flags&8)),rr=>{const mr=rr.declarations&&rr.declarations[0]&&K2(rr.declarations[0])?Wze(rr.declarations[0]):void 0;return q.createEnumMember(Yr(rr.escapedName),mr===void 0?void 0:typeof mr=="string"?q.createStringLiteral(mr):q.createNumericLiteral(mr))})),fr)}function cu(ri,wu,fr,rr){const mr=mo(ri,0);for(const Ys of mr){const Po=Te(Ys,262,ze,{name:q.createIdentifier(fr),privateSymbolVisitor:dl,bundledImports:Xn});Cl(Pt(Po,xr(Ys)),rr)}if(!(wu.flags&1536&&wu.exports&&wu.exports.size)){const Ys=ei(n0(ri),Ya);Tr(Ys,fr,rr,!0)}}function xr(ri){if(ri.declaration&&ri.declaration.parent){if(tu(ri.declaration.parent)&&Ql(ri.declaration.parent)===5)return ri.declaration.parent;if(ua(ri.declaration.parent)&&ri.declaration.parent.parent)return ri.declaration.parent.parent}return ri.declaration}function Tr(ri,wu,fr,rr){if(S(ri)){const Ys=hO(ri,hl=>!S(hl.declarations)||qe(hl.declarations,b1=>In(b1)===In(ze.enclosingDeclaration))?"local":"remote").get("local")||_t;let Po=r_.createModuleDeclaration(void 0,q.createIdentifier(wu),q.createModuleBlock([]),32);bs(Po,Mr),Po.locals=jo(ri),Po.symbol=ri[0].parent;const oo=Ou;Ou=[];const es=Ci;Ci=!1;const Qs={...ze,enclosingDeclaration:Po},T0=ze;ze=Qs,ls(jo(Ys),rr,!0),ze=T0,Ci=es;const Gh=Ou;Ou=oo;const H1=Kt(Gh,hl=>ec(hl)&&!hl.isExportEquals&&at(hl.expression)?q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,hl.expression,q.createIdentifier("default"))])):hl),K1=ye(H1,hl=>Xu(hl,32))?Kt(H1,Ta):H1;Po=q.updateModuleDeclaration(Po,Po.modifiers,Po.name,q.createModuleBlock(K1)),Cl(Po,fr)}}function Ya(ri){return!!(ri.flags&2887656)||!(ri.flags&4194304||ri.escapedName==="prototype"||ri.valueDeclaration&&To(ri.valueDeclaration)&&gr(ri.valueDeclaration.parent))}function Io(ri){const wu=Ui(ri,fr=>{const rr=ze.enclosingDeclaration;ze.enclosingDeclaration=fr;let mr=fr.expression;if(Xl(mr)){if(at(mr)&&mu(mr)==="")return Ys(void 0);let Po;if({introducesError:Po,node:mr}=yc(mr,ze,dl),Po)return Ys(void 0)}return Ys(q.createExpressionWithTypeArguments(mr,Kt(fr.typeArguments,Po=>Z0(ze,Po,dl,Xn)||C(Br(Po),ze))));function Ys(Po){return ze.enclosingDeclaration=rr,Po}});if(wu.length===ri.length)return wu}function Ko(ri,wu,fr){var rr,mr;const Ys=(rr=ri.declarations)==null?void 0:rr.find(gr),Po=ze.enclosingDeclaration;ze.enclosingDeclaration=Ys||Po;const oo=sn(ri),es=Kt(oo,TE=>zt(TE,ze)),Qs=Dm(C4(ri)),T0=qc(Qs),Gh=Ys&&eB(Ys),H1=Gh&&Io(Gh)||Ui(ED(Qs),SD),K1=Jn(ri),hl=!!((mr=K1.symbol)!=null&&mr.valueDeclaration)&&gr(K1.symbol.valueDeclaration),b1=hl?Uc(K1):me,S3=[...S(T0)?[q.createHeritageClause(96,Kt(T0,TE=>_T(TE,b1,wu)))]:[],...S(H1)?[q.createHeritageClause(119,H1)]:[]],y1=Xsi(Qs,T0,n0(Qs)),Zf=ei(y1,TE=>{const Jz=TE.valueDeclaration;return!!Jz&&!(fh(Jz)&&Xr(Jz.name))}),wE=qe(y1,TE=>{const Jz=TE.valueDeclaration;return!!Jz&&fh(Jz)&&Xr(Jz.name)})?[q.createPropertyDeclaration(void 0,q.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:_t,T6=Ku(Zf,TE=>Dr(TE,!1,T0[0])),L6=Ku(ei(n0(K1),TE=>!(TE.flags&4194304)&&TE.escapedName!=="prototype"&&!Ya(TE)),TE=>Dr(TE,!0,b1)),pci=!hl&&!!ri.valueDeclaration&&eu(ri.valueDeclaration)&&!qe(mo(K1,1))?[q.createConstructorDeclaration(q.createModifiersFromModifierFlags(2),[],void 0)]:BE(1,K1,b1,176),gci=Kb(Qs,T0[0]);ze.enclosingDeclaration=Po,Cl(Pt(q.createClassDeclaration(void 0,wu,es,S3,[...gci,...L6,...pci,...T6,...wE]),ri.declarations&&ei(ri.declarations,TE=>Kc(TE)||Qd(TE))[0]),fr)}function vr(ri){return G(ri,wu=>{if(Cf(wu)||X1(wu))return mu(wu.propertyName||wu.name);if(tu(wu)||ec(wu)){const fr=ec(wu)?wu.expression:wu.right;if(Iu(fr))return mu(fr.name)}if(aC(wu)){const fr=qa(wu);if(fr&&at(fr))return mu(fr)}})}function ho(ri,wu,fr){var rr,mr,Ys,Po,oo;const es=np(ri);if(!es)return H.fail();const Qs=Vs(g4(es,!0));if(!Qs)return;let T0=JN(Qs)&&vr(ri.declarations)||Yr(Qs.escapedName);T0==="export="&&pe&&(T0="default");const Gh=qf(Qs,T0);switch(dl(Qs),es.kind){case 208:if(((mr=(rr=es.parent)==null?void 0:rr.parent)==null?void 0:mr.kind)===260){const hl=_n(Qs.parent||Qs,ze),{propertyName:b1}=es;Cl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamedImports([q.createImportSpecifier(!1,b1&&at(b1)?q.createIdentifier(mu(b1)):void 0,q.createIdentifier(wu))])),q.createStringLiteral(hl),void 0),0);break}H.failBadSyntaxKind(((Ys=es.parent)==null?void 0:Ys.parent)||es,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((oo=(Po=es.parent)==null?void 0:Po.parent)==null?void 0:oo.kind)===226&&Xo(Yr(ri.escapedName),Gh);break;case 260:if(Iu(es.initializer)){const hl=es.initializer,b1=q.createUniqueName(wu),S3=_n(Qs.parent||Qs,ze);Cl(q.createImportEqualsDeclaration(void 0,!1,b1,q.createExternalModuleReference(q.createStringLiteral(S3))),0),Cl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(wu),q.createQualifiedName(b1,hl.name)),fr);break}case 271:if(Qs.escapedName==="export="&&qe(Qs.declarations,hl=>ca(hl)&&H4(hl))){w0(ri);break}const H1=!(Qs.flags&512)&&!ua(es);Cl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(wu),H1?Fa(Qs,ze,67108863,!1):q.createExternalModuleReference(q.createStringLiteral(_n(Qs,ze)))),H1?fr:0);break;case 270:Cl(q.createNamespaceExportDeclaration(mu(es.name)),0);break;case 273:{const hl=_n(Qs.parent||Qs,ze),b1=Xn?q.createStringLiteral(hl):es.parent.moduleSpecifier;Cl(q.createImportDeclaration(void 0,q.createImportClause(!1,q.createIdentifier(wu),void 0),b1,es.parent.attributes),0);break}case 274:{const hl=_n(Qs.parent||Qs,ze),b1=Xn?q.createStringLiteral(hl):es.parent.parent.moduleSpecifier;Cl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamespaceImport(q.createIdentifier(wu))),b1,es.parent.attributes),0);break}case 280:Cl(q.createExportDeclaration(void 0,!1,q.createNamespaceExport(q.createIdentifier(wu)),q.createStringLiteral(_n(Qs,ze))),0);break;case 276:{const hl=_n(Qs.parent||Qs,ze),b1=Xn?q.createStringLiteral(hl):es.parent.parent.parent.moduleSpecifier;Cl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamedImports([q.createImportSpecifier(!1,wu!==T0?q.createIdentifier(T0):void 0,q.createIdentifier(wu))])),b1,es.parent.parent.parent.attributes),0);break}case 281:const K1=es.parent.parent.moduleSpecifier;Xo(Yr(ri.escapedName),K1?T0:Gh,K1&&t0(K1)?q.createStringLiteral(K1.text):void 0);break;case 277:w0(ri);break;case 226:case 211:case 212:ri.escapedName==="default"||ri.escapedName==="export="?w0(ri):Xo(wu,Gh);break;default:return H.failBadSyntaxKind(es,"Unhandled alias declaration kind in symbol serializer!")}}function Xo(ri,wu,fr){Cl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,ri!==wu?wu:void 0,ri)]),fr),0)}function w0(ri){var wu;if(ri.flags&4194304)return!1;const fr=Yr(ri.escapedName),rr=fr==="export=",Ys=rr||fr==="default",Po=ri.declarations&&np(ri),oo=Po&&g4(Po,!0);if(oo&&S(oo.declarations)&&qe(oo.declarations,es=>In(es)===In(Mr))){const es=Po&&(ec(Po)||tu(Po)?H0e(Po):dye(Po)),Qs=es&&Xl(es)?f0i(es):void 0,T0=Qs&&P0(Qs,67108863,!0,!0,Mr);(T0||oo)&&dl(T0||oo);const Gh=ze.tracker.disableTrackSymbol;if(ze.tracker.disableTrackSymbol=!0,Ys)Ou.push(q.createExportAssignment(void 0,rr,rh(oo,ze,67108863)));else if(Qs===es&&Qs)Xo(fr,mu(Qs));else if(es&&Qd(es))Xo(fr,qf(oo,sc(oo)));else{const H1=PC(fr,ri);Cl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(H1),Fa(oo,ze,67108863,!1)),0),Xo(fr,H1)}return ze.tracker.disableTrackSymbol=Gh,!0}else{const es=PC(fr,ri),Qs=xm(Jn(Vs(ri)));if(Ks(Qs,ri))cu(Qs,ri,es,Ys?0:32);else{const T0=((wu=ze.enclosingDeclaration)==null?void 0:wu.kind)===267&&(!(ri.flags&98304)||ri.flags&65536)?1:2,Gh=q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(es,void 0,rd(ze,Qs,ri,Mr,dl,Xn))],T0));Cl(Gh,oo&&oo.flags&4&&oo.escapedName==="export="?128:fr===es?32:0)}return Ys?(Ou.push(q.createExportAssignment(void 0,rr,q.createIdentifier(es))),!0):fr!==es?(Xo(fr,es),!0):!1}}function Ks(ri,wu){const fr=In(ze.enclosingDeclaration);return $u(ri)&48&&!S(yh(ri))&&!I9(ri)&&!!(S(ei(n0(ri),Ya))||S(mo(ri,0)))&&!S(mo(ri,1))&&!qn(wu,Mr)&&!(ri.symbol&&qe(ri.symbol.declarations,rr=>In(rr)!==fr))&&!qe(n0(ri),rr=>YK(rr.escapedName))&&!qe(n0(ri),rr=>qe(rr.declarations,mr=>In(mr)!==fr))&&ye(n0(ri),rr=>Tm(sc(rr),Ce)?rr.flags&98304?g6(rr)===hF(rr):!0:!1)}function jd(ri,wu,fr){return function(mr,Ys,Po){var oo,es,Qs,T0,Gh;const H1=s4(mr),K1=!!(H1&2);if(Ys&&mr.flags&2887656)return[];if(mr.flags&4194304||mr.escapedName==="constructor"||Po&&$o(Po,mr.escapedName)&&Tg($o(Po,mr.escapedName))===Tg(mr)&&(mr.flags&16777216)===($o(Po,mr.escapedName).flags&16777216)&&vD(Jn(mr),he(Po,mr.escapedName)))return[];const hl=H1&-1025|(Ys?256:0),b1=Gn(mr,ze),S3=(oo=mr.declarations)==null?void 0:oo.find(lg(bo,Bx,ua,Pm,tu,Iu));if(mr.flags&98304&&fr){const y1=[];if(mr.flags&65536){const Zf=mr.declarations&&L(mr.declarations,wE=>{if(wE.kind===178)return wE;if(No(wE)&&nk(wE))return L(wE.arguments[2].properties,T6=>{const L6=qa(T6);if(L6&&at(L6)&&mu(L6)==="set")return T6})});H.assert(!!Zf);const iS=K0(Zf)?lp(Zf).parameters[0]:void 0;y1.push(Pt(q.createSetAccessorDeclaration(q.createModifiersFromModifierFlags(hl),b1,[q.createParameterDeclaration(void 0,void 0,iS?cn(iS,fi(iS),ze):"value",void 0,K1?void 0:rd(ze,Jn(mr),mr,Mr,dl,Xn))],void 0),((es=mr.declarations)==null?void 0:es.find(XD))||S3))}if(mr.flags&32768){const Zf=H1&2;y1.push(Pt(q.createGetAccessorDeclaration(q.createModifiersFromModifierFlags(hl),b1,[],Zf?void 0:rd(ze,Jn(mr),mr,Mr,dl,Xn),void 0),((Qs=mr.declarations)==null?void 0:Qs.find(Tx))||S3))}return y1}else if(mr.flags&98311)return Pt(ri(q.createModifiersFromModifierFlags((Tg(mr)?8:0)|hl),b1,mr.flags&16777216?q.createToken(58):void 0,K1?void 0:rd(ze,hF(mr),mr,Mr,dl,Xn),void 0),((T0=mr.declarations)==null?void 0:T0.find(lg(bo,ua)))||S3);if(mr.flags&8208){const y1=Jn(mr),Zf=mo(y1,0);if(hl&2)return Pt(ri(q.createModifiersFromModifierFlags((Tg(mr)?8:0)|hl),b1,mr.flags&16777216?q.createToken(58):void 0,void 0,void 0),((Gh=mr.declarations)==null?void 0:Gh.find(K0))||Zf[0]&&Zf[0].declaration||mr.declarations&&mr.declarations[0]);const iS=[];for(const wE of Zf){const T6=Te(wE,wu,ze,{name:b1,questionToken:mr.flags&16777216?q.createToken(58):void 0,modifiers:hl?q.createModifiersFromModifierFlags(hl):void 0}),L6=wE.declaration&&bj(wE.declaration.parent)?wE.declaration.parent:wE.declaration;iS.push(Pt(T6,L6))}return iS}return H.fail(`Unhandled class member kind! ${mr.__debugFlags||mr.flags}`)}}function SE(ri,wu){return pr(ri,!1,wu)}function BE(ri,wu,fr,rr){const mr=mo(wu,ri);if(ri===1){if(!fr&&ye(mr,oo=>S(oo.parameters)===0))return[];if(fr){const oo=mo(fr,1);if(!S(oo)&&ye(mr,es=>S(es.parameters)===0))return[];if(oo.length===mr.length){let es=!1;for(let Qs=0;QsC(mr,ze)),rr=rh(ri.target.symbol,ze,788968)):ri.symbol&&Vt(ri.symbol,Mr,wu)&&(rr=rh(ri.symbol,ze,788968)),rr)return q.createExpressionWithTypeArguments(rr,fr)}function SD(ri){const wu=tS(ri,788968);if(wu)return wu;if(ri.symbol)return q.createExpressionWithTypeArguments(rh(ri.symbol,ze,788968),void 0)}function PC(ri,wu){var fr,rr;const mr=wu?qo(wu):void 0;if(mr&&ze.remappedSymbolNames.has(mr))return ze.remappedSymbolNames.get(mr);wu&&(ri=yie(wu,ri));let Ys=0;const Po=ri;for(;(fr=ze.usedSymbolNames)!=null&&fr.has(ri);)Ys++,ri=`${Po}_${Ys}`;return(rr=ze.usedSymbolNames)==null||rr.add(ri),mr&&ze.remappedSymbolNames.set(mr,ri),ri}function yie(ri,wu){if(wu==="default"||wu==="__class"||wu==="__function"){const fr=ze.flags;ze.flags|=16777216;const rr=E_(ri,ze);ze.flags=fr,wu=rr.length>0&&gj(rr.charCodeAt(0))?G4(rr):rr}return wu==="default"?wu="_default":wu==="export="&&(wu="_exports"),wu=Tm(wu,Ce)&&!h7(wu)?wu:"_"+wu.replace(/[^a-zA-Z0-9]/g,"_"),wu}function qf(ri,wu){const fr=qo(ri);return ze.remappedSymbolNames.has(fr)?ze.remappedSymbolNames.get(fr):(wu=yie(ri,wu),ze.remappedSymbolNames.set(fr,wu),wu)}}}function g_(l,m,D=16384,C){return C?A(C).getText():WN(A);function A(w){const I=q.createTypePredicateNode(l.kind===2||l.kind===3?q.createToken(131):void 0,l.kind===1||l.kind===3?q.createIdentifier(l.parameterName):q.createThisTypeNode(),l.type&&Yt.typeToTypeNode(l.type,m,EC(D)|70221824|512)),U=Z2(),Z=m&&In(m);return U.writeNode(4,I,Z,w),w}}function P5(l){const m=[];let D=0;for(let C=0;Cqa(I)?I:void 0);const w=A&&qa(A);if(A&&w){if(No(A)&&nk(A))return sc(l);if(Ls(w)&&!(Wl(l)&4096)){const I=$r(l).nameType;if(I&&I.flags&384){const U=dz(l,m);if(U!==void 0)return U}}return C0(w)}if(A||(A=l.declarations[0]),A.parent&&A.parent.kind===260)return C0(A.parent.name);switch(A.kind){case 231:case 218:case 219:return m&&!m.encounteredError&&!(m.flags&131072)&&(m.encounteredError=!0),A.kind===231?"(Anonymous class)":"(Anonymous function)"}}const C=dz(l,m);return C!==void 0?C:sc(l)}function mD(l){if(l){const D=sr(l);return D.isVisible===void 0&&(D.isVisible=!!m()),D.isVisible}return!1;function m(){switch(l.kind){case 345:case 353:case 347:return!!(l.parent&&l.parent.parent&&l.parent.parent.parent&&ca(l.parent.parent.parent));case 208:return mD(l.parent.parent);case 260:if(Fo(l.name)&&!l.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(_2(l))return!0;const D=lF(l);return!(h_e(l)&32)&&!(l.kind!==271&&D.kind!==312&&D.flags&33554432)?mE(D):mD(D);case 172:case 171:case 177:case 178:case 174:case 173:if(If(l,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return mD(l.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function $w(l,m){let D;l.parent&&l.parent.kind===277?D=nc(l,l.escapedText,2998271,void 0,l,!1):l.parent.kind===281&&(D=gb(l.parent,2998271));let C,A;return D&&(A=new Set,A.add(qo(D)),w(D.declarations)),C;function w(I){L(I,U=>{const Z=k9(U)||U;if(m?sr(U).isVisible=!0:(C=C||[],va(C,Z)),J8(U)){const ce=U.moduleReference,Fe=dm(ce),Te=nc(U,Fe.escapedText,901119,void 0,void 0,!1);Te&&A&&Ll(A,qo(Te))&&w(Te.declarations)}})}}function __(l,m){const D=_C(l,m);if(D>=0){const{length:C}=lD;for(let A=D;A=ab;D--){if(cte(lD[D],Kk[D]))return-1;if(lD[D]===l&&Kk[D]===m)return D}return-1}function cte(l,m){switch(m){case 0:return!!$r(l).type;case 5:return!!sr(l).resolvedEnumType;case 2:return!!$r(l).declaredType;case 1:return!!l.resolvedBaseConstructorType;case 3:return!!l.resolvedReturnType;case 4:return!!l.immediateBaseConstraint;case 6:return!!l.resolvedTypeArguments;case 7:return!!l.baseTypesResolved;case 8:return!!$r(l).writeType;case 9:return sr(l).parameterInitializerContainsUndefined!==void 0}return H.assertNever(m)}function vE(){return lD.pop(),Kk.pop(),t6.pop()}function lF(l){return Ln(QE(l),m=>{switch(m.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function qK(l){const m=q0(lf(l));return m.typeParameters?I5(m,Kt(m.typeParameters,D=>me)):m}function he(l,m){const D=$o(l,m);return D?Jn(D):void 0}function Re(l,m){var D;let C;return he(l,m)||(C=(D=K9(l,m))==null?void 0:D.type)&&Od(C,!0,!0)}function nt(l){return l&&(l.flags&1)!==0}function Lt(l){return l===jt||!!(l.flags&1&&l.aliasSymbol)}function vi(l,m){if(m!==0)return pD(l,!1,m);const D=Du(l);return D&&$r(D).type||pD(l,!1,m)}function Xi(l,m,D){if(l=zc(l,Z=>!(Z.flags&98304)),l.flags&131072)return Ho;if(l.flags&1048576)return cl(l,Z=>Xi(Z,m,D));let C=ir(Kt(m,O5));const A=[],w=[];for(const Z of n0(l)){const ce=bz(Z,8576);!hs(ce,C)&&!(s4(Z)&6)&&Rge(Z)?A.push(Z):w.push(ce)}if(Bb(l)||kC(C)){if(w.length&&(C=ir([C,...w])),C.flags&131072)return l;const Z=kei();return Z?uT(Z,[l,C]):jt}const I=jo();for(const Z of A)I.set(Z.escapedName,kPe(Z,!1));const U=Rl(D,I,_t,_t,yh(l));return U.objectFlags|=4194304,U}function zu(l){return!!(l.flags&465829888)&&Ol(Hh(l)||on,32768)}function Kr(l){const m=bE(l,zu)?cl(l,D=>D.flags&465829888?DD(D):D):l;return hp(m,524288)}function Nr(l,m){const D=_r(l);return D?B6(D,m):m}function _r(l){const m=pa(l);if(m&&Aj(m)&&m.flowNode){const D=E0(l);if(D){const C=Pt(r_.createStringLiteral(D),l),A=_f(m)?m:r_.createParenthesizedExpression(m),w=Pt(r_.createElementAccessExpression(A,C),l);return bs(C,w),bs(w,l),A!==m&&bs(A,w),w.flowNode=m.flowNode,w}}}function pa(l){const m=l.parent.parent;switch(m.kind){case 208:case 303:return _r(m);case 209:return _r(l.parent);case 260:return m.initializer;case 226:return m.right}}function E0(l){const m=l.parent;return l.kind===208&&m.kind===206?Us(l.propertyName||l.name):l.kind===303||l.kind===304?Us(l.name):""+m.elements.indexOf(l)}function Us(l){const m=O5(l);return m.flags&384?""+m.value:void 0}function Hs(l){const m=l.dotDotDotToken?32:0,D=vi(l.parent.parent,m);return D&&x4(l,D,!1)}function x4(l,m,D){if(nt(m))return m;const C=l.parent;fe&&l.flags&33554432&&A2(l)?m=kD(m):fe&&C.parent.initializer&&!dp(Pht(C.parent.initializer),65536)&&(m=hp(m,524288));let A;if(C.kind===206)if(l.dotDotDotToken){if(m=Fg(m),m.flags&2||!$te(m))return pt(l,F.Rest_types_may_only_be_created_from_object_types),jt;const w=[];for(const I of C.elements)I.dotDotDotToken||w.push(I.propertyName||I.name);A=Xi(m,w,l.symbol)}else{const w=l.propertyName||l.name,I=O5(w),U=Uf(m,I,32,w);A=Nr(l,U)}else{const w=W5(65|(l.dotDotDotToken?0:128),m,te,C),I=C.elements.indexOf(l);if(l.dotDotDotToken){const U=cl(m,Z=>Z.flags&58982400?DD(Z):Z);A=Xm(U,_s)?cl(U,Z=>Cz(Z,I)):j1(w)}else if(V5(m)){const U=Sg(I),Z=32|(D||Mz(l)?16:0),ce=C6(m,U,Z,l.name)||jt;A=Nr(l,ce)}else A=w}return l.initializer?h1(F8(l))?fe&&!dp(SW(l,0),16777216)?Kr(A):A:gze(l,ir([Kr(A),SW(l,0)],2)):A}function Jp(l){const m=Dv(l);if(m)return Br(m)}function h6(l){const m=s0(l,!0);return m.kind===106||m.kind===80&&$p(m)===st}function C3(l){const m=s0(l,!0);return m.kind===209&&m.elements.length===0}function Od(l,m=!1,D=!0){return fe&&D?A6(l,m):l}function pD(l,m,D){if(ua(l)&&l.parent.parent.kind===249){const I=y_(jMe(ka(l.parent.parent.expression,D)));return I.flags&4456448?E1t(I):ct}if(ua(l)&&l.parent.parent.kind===250){const I=l.parent.parent;return _ie(I)||me}if(Fo(l.parent))return Hs(l);const C=bo(l)&&!Xg(l)||Pm(l)||DFe(l),A=m&&NP(l),w=dt(l);if(h0e(l))return w?nt(w)||w===on?w:jt:He?on:me;if(w)return Od(w,C,A);if((Ae||eu(l))&&ua(l)&&!Fo(l.name)&&!(h_e(l)&32)&&!(l.flags&33554432)){if(!(Hb(l)&6)&&(!l.initializer||h6(l.initializer)))return ni;if(l.initializer&&C3(l.initializer))return Lc}if(eo(l)){const I=l.parent;if(I.kind===178&&eT(I)){const ce=Fl(Du(l.parent),177);if(ce){const Fe=lp(ce),Te=Zze(I);return Te&&l===Te?(H.assert(!Te.type),Jn(Fe.thisParameter)):qs(Fe)}}const U=YXt(I,l);if(U)return U;const Z=l.symbol.escapedName==="this"?eft(I):tft(l);if(Z)return Od(Z,!1,A)}if(Zy(l)&&l.initializer){if(eu(l)&&!eo(l)){const U=pz(l,Du(l),_j(l));if(U)return U}const I=gze(l,SW(l,D));return Od(I,C,A)}if(bo(l)&&(Ae||eu(l)))if(Hc(l)){const I=ei(l.parent.members,Ml),U=I.length?dte(l.symbol,I):gh(l)&128?eEe(l.symbol):void 0;return U&&Od(U,!0,A)}else{const I=Gp(l.parent),U=I?mz(l.symbol,I):gh(l)&128?eEe(l.symbol):void 0;return U&&Od(U,!0,A)}if(aE(l))return hu;if(Fo(l.name))return O9(l.name,!1,!0)}function hz(l){if(l.valueDeclaration&&tu(l.valueDeclaration)){const m=$r(l);return m.isConstructorDeclaredProperty===void 0&&(m.isConstructorDeclaredProperty=!1,m.isConstructorDeclaredProperty=!!qw(l)&&ye(l.declarations,D=>tu(D)&&yEe(D)&&(D.left.kind!==212||Nm(D.left.argumentExpression))&&!v4(void 0,D,l,D))),m.isConstructorDeclaredProperty}return!1}function Uw(l){const m=l.valueDeclaration;return m&&bo(m)&&!h1(m)&&!m.initializer&&(Ae||eu(m))}function qw(l){if(l.declarations)for(const m of l.declarations){const D=ef(m,!1,!1);if(D&&(D.kind===176||FE(D)))return D}}function fz(l){const m=In(l.declarations[0]),D=Yr(l.escapedName),C=l.declarations.every(w=>eu(w)&&N0(w)&&Z_(w.expression)),A=C?q.createPropertyAccessExpression(q.createPropertyAccessExpression(q.createIdentifier("module"),q.createIdentifier("exports")),D):q.createPropertyAccessExpression(q.createIdentifier("exports"),D);return C&&bs(A.expression.expression,A.expression),bs(A.expression,A),bs(A,m),A.flowNode=m.endFlowNode,B6(A,ni,te)}function dte(l,m){const D=Na(l.escapedName,"__#")?q.createPrivateIdentifier(l.escapedName.split("@")[1]):Yr(l.escapedName);for(const C of m){const A=q.createPropertyAccessExpression(q.createThis(),D);bs(A.expression,A),bs(A,C),A.flowNode=C.returnFlowNode;const w=Zm(A,l);if(Ae&&(w===ni||w===Lc)&&pt(l.valueDeclaration,F.Member_0_implicitly_has_an_1_type,Sr(l),gn(w)),!Xm(w,Yte))return zW(w)}}function mz(l,m){const D=Na(l.escapedName,"__#")?q.createPrivateIdentifier(l.escapedName.split("@")[1]):Yr(l.escapedName),C=q.createPropertyAccessExpression(q.createThis(),D);bs(C.expression,C),bs(C,m),C.flowNode=m.returnFlowNode;const A=Zm(C,l);return Ae&&(A===ni||A===Lc)&&pt(l.valueDeclaration,F.Member_0_implicitly_has_an_1_type,Sr(l),gn(A)),Xm(A,Yte)?void 0:zW(A)}function Zm(l,m){const D=(m==null?void 0:m.valueDeclaration)&&(!Uw(m)||gh(m.valueDeclaration)&128)&&eEe(m)||te;return B6(l,ni,D)}function gD(l,m){const D=o7(l.valueDeclaration);if(D){const U=eu(D)?_v(D):void 0;return U&&U.typeExpression?Br(U.typeExpression):l.valueDeclaration&&pz(l.valueDeclaration,l,D)||Pb(Ic(D))}let C,A=!1,w=!1;if(hz(l)&&(C=mz(l,qw(l))),!C){let U;if(l.declarations){let Z;for(const ce of l.declarations){const Fe=tu(ce)||No(ce)?ce:N0(ce)?tu(ce.parent)?ce.parent:ce:void 0;if(!Fe)continue;const Te=N0(Fe)?Cj(Fe):Ql(Fe);(Te===4||tu(Fe)&&yEe(Fe,Te))&&(Pc(Fe)?A=!0:w=!0),No(Fe)||(Z=v4(Z,Fe,l,ce)),Z||(U||(U=[])).push(tu(Fe)||No(Fe)?Zw(l,m,Fe,Te):Wu)}C=Z}if(!C){if(!S(U))return jt;let Z=A&&l.declarations?f6(U,l.declarations):void 0;if(w){const Fe=eEe(l);Fe&&((Z||(Z=[])).push(Fe),A=!0)}const ce=qe(Z,Fe=>!!(Fe.flags&-98305))?Z:U;C=ir(ce)}}const I=xm(Od(C,!1,w&&!A));return l.valueDeclaration&&eu(l.valueDeclaration)&&zc(I,U=>!!(U.flags&-98305))===Wu?(wC(l.valueDeclaration,me),me):I}function pz(l,m,D){var C,A;if(!eu(l)||!D||!Cs(D)||D.properties.length)return;const w=jo();for(;tu(l)||Iu(l);){const Z=_m(l);(C=Z==null?void 0:Z.exports)!=null&&C.size&&fE(w,Z.exports),l=tu(l)?l.parent:l.parent.parent}const I=_m(l);(A=I==null?void 0:I.exports)!=null&&A.size&&fE(w,I.exports);const U=Rl(m,w,_t,_t,_t);return U.objectFlags|=4096,U}function v4(l,m,D,C){var A;const w=h1(m.parent);if(w){const I=xm(Br(w));if(l)!Lt(l)&&!Lt(I)&&!vD(l,I)&&n4t(void 0,l,C,I);else return I}if((A=D.parent)!=null&&A.valueDeclaration){const I=h1(D.parent.valueDeclaration);if(I){const U=$o(Br(I),D.escapedName);if(U)return g6(U)}}return l}function Zw(l,m,D,C){if(No(D)){if(m)return Jn(m);const I=Ic(D.arguments[2]),U=he(I,"value");if(U)return U;const Z=he(I,"get");if(Z){const Fe=SF(Z);if(Fe)return qs(Fe)}const ce=he(I,"set");if(ce){const Fe=SF(ce);if(Fe)return oze(Fe)}return me}if(Ns(D.left,D.right))return me;const A=C===1&&(Iu(D.left)||W0(D.left))&&(Z_(D.left.expression)||at(D.left.expression)&&ik(D.left.expression)),w=m?Jn(m):A?Wh(Ic(D.right)):Pb(Ic(D.right));if(w.flags&524288&&C===2&&l.escapedName==="export="){const I=kg(w),U=jo();GU(I.members,U);const Z=U.size;m&&!m.exports&&(m.exports=jo()),(m||l).exports.forEach((Fe,Te)=>{var Je;const ut=U.get(Te);if(ut&&ut!==Fe&&!(Fe.flags&2097152))if(Fe.flags&111551&&ut.flags&111551){if(Fe.valueDeclaration&&ut.valueDeclaration&&In(Fe.valueDeclaration)!==In(ut.valueDeclaration)){const fi=Yr(Fe.escapedName),Ki=((Je=ar(ut.valueDeclaration,fh))==null?void 0:Je.name)||ut.valueDeclaration;ps(pt(Fe.valueDeclaration,F.Duplicate_identifier_0,fi),Bu(Ki,F._0_was_also_declared_here,fi)),ps(pt(Ki,F.Duplicate_identifier_0,fi),Bu(Fe.valueDeclaration,F._0_was_also_declared_here,fi))}const zt=js(Fe.flags|ut.flags,Te);zt.links.type=ir([Jn(Fe),Jn(ut)]),zt.valueDeclaration=ut.valueDeclaration,zt.declarations=an(ut.declarations,Fe.declarations),U.set(Te,zt)}else U.set(Te,ip(Fe,ut));else U.set(Te,Fe)});const ce=Rl(Z!==U.size?void 0:I.symbol,U,I.callSignatures,I.constructSignatures,I.indexInfos);if(Z===U.size&&(w.aliasSymbol&&(ce.aliasSymbol=w.aliasSymbol,ce.aliasTypeArguments=w.aliasTypeArguments),$u(w)&4)){ce.aliasSymbol=w.symbol;const Fe=M0(w);ce.aliasTypeArguments=S(Fe)?Fe:void 0}return ce.objectFlags|=$u(w)&4096,ce.symbol&&ce.symbol.flags&32&&w===C4(ce.symbol)&&(ce.objectFlags|=16777216),ce}return iEe(w)?(wC(D,Ul),Ul):w}function Ns(l,m){return Iu(l)&&l.expression.kind===110&&nM(m,D=>v1(l,D))}function Pc(l){const m=ef(l,!1,!1);return m.kind===176||m.kind===262||m.kind===218&&!bj(m.parent)}function f6(l,m){return H.assert(l.length===m.length),l.filter((D,C)=>{const A=m[C],w=tu(A)?A:tu(A.parent)?A.parent:void 0;return w&&Pc(w)})}function cF(l,m,D){if(l.initializer){const C=Fo(l.name)?O9(l.name,!0,!1):on;return Od(gze(l,SW(l,0,C)))}return Fo(l.name)?O9(l.name,m,D):(D&&!ke(l)&&wC(l,me),m?Ji:me)}function hte(l,m,D){const C=jo();let A,w=131200;L(l.elements,U=>{const Z=U.propertyName||U.name;if(U.dotDotDotToken){A=b_(ct,me,!1);return}const ce=O5(Z);if(!q4(ce)){w|=512;return}const Fe=Z4(ce),Te=4|(U.initializer?16777216:0),Je=js(Te,Fe);Je.links.type=cF(U,m,D),Je.links.bindingElement=U,C.set(Je.escapedName,Je)});const I=Rl(void 0,C,_t,_t,A?[A]:_t);return I.objectFlags|=w,m&&(I.pattern=l,I.objectFlags|=131072),I}function D_(l,m,D){const C=l.elements,A=Yu(C),w=A&&A.kind===208&&A.dotDotDotToken?A:void 0;if(C.length===0||C.length===1&&w)return Ce>=2?t1t(me):Ul;const I=Kt(C,Fe=>kd(Fe)?me:cF(Fe,m,D)),U=Ye(C,Fe=>!(Fe===w||kd(Fe)||Mz(Fe)),C.length-1)+1,Z=Kt(C,(Fe,Te)=>Fe===w?4:Te>=U?2:1);let ce=Ag(I,Z);return m&&(ce=zdt(ce),ce.pattern=l,ce.objectFlags|=131072),ce}function O9(l,m=!1,D=!1){return l.kind===206?hte(l,m,D):D_(l,m,D)}function N(l,m){return ee(pD(l,!0,0),l,m)}function W(l){const m=_m(l),D=fei(!1);return D&&m&&m===D}function ee(l,m,D){return l?(l.flags&4096&&W(m.parent)&&(l=FPe(m)),D&&dEe(m,l),l.flags&8192&&(Rs(m)||!m.type)&&l.symbol!==Du(m)&&(l=tr),xm(l)):(l=eo(m)&&m.dotDotDotToken?Ul:me,D&&(ke(m)||wC(m,l)),l)}function ke(l){const m=QE(l),D=m.kind===169?m.parent:m;return fie(D)}function dt(l){const m=h1(l);if(m)return Br(m)}function Si(l){let m=l.valueDeclaration;return m?(Rs(m)&&(m=F8(m)),eo(m)?$ge(m.parent):!1):!1}function ou(l){const m=$r(l);if(!m.type){const D=Ma(l);return!m.type&&!Si(l)&&(m.type=D),D}return m.type}function Ma(l){if(l.flags&4194304)return qK(l);if(l===ti)return me;if(l.flags&134217728&&l.valueDeclaration){const C=Du(In(l.valueDeclaration)),A=js(C.flags,"exports");A.declarations=C.declarations?C.declarations.slice():[],A.parent=l,A.links.target=C,C.valueDeclaration&&(A.valueDeclaration=C.valueDeclaration),C.members&&(A.members=new Map(C.members)),C.exports&&(A.exports=new Map(C.exports));const w=jo();return w.set("exports",A),Rl(l,w,_t,_t,_t)}H.assertIsDefined(l.valueDeclaration);const m=l.valueDeclaration;if(ca(m)&&H4(m))return m.statements.length?xm(Pb(ka(m.statements[0].expression))):Ho;if(Bx(m))return DC(l);if(!__(l,0))return l.flags&512&&!(l.flags&67108864)?gz(l):Yw(l);let D;if(m.kind===277)D=ee(dt(m)||Ic(m.expression),m);else if(tu(m)||eu(m)&&(No(m)||(Iu(m)||xq(m))&&tu(m.parent)))D=gD(l);else if(Iu(m)||W0(m)||at(m)||t0(m)||Rf(m)||Kc(m)||Xc(m)||cc(m)&&!Np(m)||i3(m)||ca(m)){if(l.flags&9136)return gz(l);D=tu(m.parent)?gD(l):dt(m)||me}else if(Gc(m))D=dt(m)||Bmt(m);else if(aE(m))D=dt(m)||fft(m);else if(mm(m))D=dt(m)||Rz(m.name,0);else if(Np(m))D=dt(m)||wmt(m,0);else if(eo(m)||bo(m)||Pm(m)||ua(m)||Rs(m)||HO(m))D=N(m,!0);else if(Mv(m))D=gz(l);else if(K2(m))D=Dge(l);else return H.fail("Unhandled declaration kind! "+H.formatSyntaxKind(m.kind)+" for "+H.formatSymbol(l));return vE()?D:l.flags&512&&!(l.flags&67108864)?gz(l):Yw(l)}function i0(l){if(l)switch(l.kind){case 177:return J4(l);case 178:return vye(l);case 172:return H.assert(Xg(l)),h1(l)}}function Ym(l){const m=i0(l);return m&&Br(m)}function m6(l){const m=Zze(l);return m&&m.symbol}function p6(l){return bC(lp(l))}function DC(l){const m=$r(l);if(!m.type){if(!__(l,0))return jt;const D=Fl(l,177),C=Fl(l,178),A=ar(Fl(l,172),Xh);let w=D&&eu(D)&&Jp(D)||Ym(D)||Ym(C)||Ym(A)||D&&D.body&&VEe(D)||A&&A.initializer&&N(A,!0);w||(C&&!fie(C)?p4(Ae,C,F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Sr(l)):D&&!fie(D)?p4(Ae,D,F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Sr(l)):A&&!fie(A)&&p4(Ae,A,F.Member_0_implicitly_has_an_1_type,Sr(l),"any"),w=me),vE()||(i0(D)?pt(D,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Sr(l)):i0(C)||i0(A)?pt(C,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Sr(l)):D&&Ae&&pt(D,F._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Sr(l)),w=me),m.type=w}return m.type}function _ge(l){const m=$r(l);if(!m.writeType){if(!__(l,8))return jt;const D=Fl(l,178)??ar(Fl(l,172),Xh);let C=Ym(D);vE()||(i0(D)&&pt(D,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Sr(l)),C=me),m.writeType=C||DC(l)}return m.writeType}function dF(l){const m=Uc(C4(l));return m.flags&8650752?m:m.flags&2097152?Le(m.types,D=>!!(D.flags&8650752)):void 0}function gz(l){let m=$r(l);const D=m;if(!m.type){const C=l.valueDeclaration&&OEe(l.valueDeclaration,!1);if(C){const A=tze(l,C);A&&(l=A,m=A.links)}D.type=m.type=ANe(l)}return m.type}function ANe(l){const m=l.valueDeclaration;if(l.flags&1536&&JN(l))return me;if(m&&(m.kind===226||N0(m)&&m.parent.kind===226))return gD(l);if(l.flags&512&&m&&ca(m)&&m.commonJsModuleIndicator){const C=Em(l);if(C!==l){if(!__(l,0))return jt;const A=Vs(l.exports.get("export=")),w=gD(A,A===C?void 0:C);return vE()?w:Yw(l)}}const D=_4(16,l);if(l.flags&32){const C=dF(l);return C?Es([D,C]):D}else return fe&&l.flags&16777216?A6(D,!0):D}function Dge(l){const m=$r(l);return m.type||(m.type=tdt(l))}function fte(l){const m=$r(l);if(!m.type){if(!__(l,0))return jt;const D=hd(l),C=l.declarations&&g4(np(l),!0),A=G(C==null?void 0:C.declarations,w=>ec(w)?dt(w):void 0);if(m.type=C!=null&&C.declarations&&n_e(C.declarations)&&l.declarations.length?fz(C):n_e(l.declarations)?ni:A||(R1(D)&111551?Jn(D):jt),!vE())return Yw(C??l),m.type=jt}return m.type}function SNe(l){const m=$r(l);return m.type||(m.type=Da(Jn(m.target),m.mapper))}function xge(l){const m=$r(l);return m.writeType||(m.writeType=Da(hF(m.target),m.mapper))}function Yw(l){const m=l.valueDeclaration;if(m){if(h1(m))return pt(l.valueDeclaration,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Sr(l)),jt;Ae&&(m.kind!==169||m.initializer)&&pt(l.valueDeclaration,F._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Sr(l))}else if(l.flags&2097152){const D=np(l);D&&pt(D,F.Circular_definition_of_import_alias_0,Sr(l))}return me}function vge(l){const m=$r(l);return m.type||(H.assertIsDefined(m.deferralParent),H.assertIsDefined(m.deferralConstituents),m.type=m.deferralParent.flags&1048576?ir(m.deferralConstituents):Es(m.deferralConstituents)),m.type}function BNe(l){const m=$r(l);return!m.writeType&&m.deferralWriteConstituents&&(H.assertIsDefined(m.deferralParent),H.assertIsDefined(m.deferralConstituents),m.writeType=m.deferralParent.flags&1048576?ir(m.deferralWriteConstituents):Es(m.deferralWriteConstituents)),m.writeType}function hF(l){const m=Wl(l);return l.flags&4?m&2?m&65536?BNe(l)||vge(l):l.links.writeType||l.links.type:S6(Jn(l),!!(l.flags&16777216)):l.flags&98304?m&1?xge(l):_ge(l):Jn(l)}function Jn(l){const m=Wl(l);return m&65536?vge(l):m&1?SNe(l):m&262144?LXt(l):m&8192?Jii(l):l.flags&7?ou(l):l.flags&9136?gz(l):l.flags&8?Dge(l):l.flags&98304?DC(l):l.flags&2097152?fte(l):jt}function g6(l){return S6(Jn(l),!!(l.flags&16777216))}function xC(l,m){return l!==void 0&&m!==void 0&&($u(l)&4)!==0&&l.target===m}function Qw(l){return $u(l)&4?l.target:l}function j9(l,m){return D(l);function D(C){if($u(C)&7){const A=Qw(C);return A===m||qe(qc(A),D)}else if(C.flags&2097152)return qe(C.types,D);return!1}}function kb(l,m){for(const D of m)l=e0(l,mF(Du(D)));return l}function Ez(l,m){for(;;){if(l=l.parent,l&&tu(l)){const D=Ql(l);if(D===6||D===3){const C=Du(l.left);C&&C.parent&&!Ln(C.parent.valueDeclaration,A=>l===A)&&(l=C.parent.valueDeclaration)}}if(!l)return;switch(l.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const C=Ez(l,m);if(l.kind===200)return Ei(C,mF(Du(l.typeParameter)));if(l.kind===194)return an(C,A1t(l));const A=kb(C,Ax(l)),w=m&&(l.kind===263||l.kind===231||l.kind===264||FE(l))&&C4(Du(l)).thisType;return w?Ei(A,w):A}case 348:const D=Bj(l);D&&(l=D.valueDeclaration);break;case 327:{const C=Ez(l,m);return l.tags?kb(C,Ku(l.tags,A=>gg(A)?A.typeParameters:void 0)):C}}}}function Fb(l){var m;const D=l.flags&32||l.flags&16?l.valueDeclaration:(m=l.declarations)==null?void 0:m.find(C=>{if(C.kind===264)return!0;if(C.kind!==260)return!1;const A=C.initializer;return!!A&&(A.kind===218||A.kind===219)});return H.assert(!!D,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Ez(D)}function sn(l){if(!l.declarations)return;let m;for(const D of l.declarations)(D.kind===264||D.kind===263||D.kind===231||FE(D)||Fj(D))&&(m=kb(m,Ax(D)));return m}function er(l){return an(Fb(l),sn(l))}function Hu(l){const m=mo(l,1);if(m.length===1){const D=m[0];if(!D.typeParameters&&D.parameters.length===1&&eh(D)){const C=rie(D.parameters[0]);return nt(C)||HPe(C)===me}}return!1}function jr(l){if(mo(l,1).length>0)return!0;if(l.flags&8650752){const m=Hh(l);return!!m&&Hu(m)}return!1}function Hr(l){const m=eD(l.symbol);return m&&Yg(m)}function zs(l,m,D){const C=S(m),A=eu(D);return ei(mo(l,1),w=>(A||C>=C_(w.typeParameters))&&C<=S(w.typeParameters))}function _0(l,m,D){const C=zs(l,m,D),A=Kt(m,Br);return Mu(C,w=>qe(w.typeParameters)?nW(w,A,eu(D)):w)}function Uc(l){if(!l.resolvedBaseConstructorType){const m=eD(l.symbol),D=m&&Yg(m),C=Hr(l);if(!C)return l.resolvedBaseConstructorType=te;if(!__(l,1))return jt;const A=ka(C.expression);if(D&&C!==D&&(H.assert(!D.typeArguments),ka(D.expression)),A.flags&2621440&&kg(A),!vE())return pt(l.symbol.valueDeclaration,F._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Sr(l.symbol)),l.resolvedBaseConstructorType=jt;if(!(A.flags&1)&&A!==Ct&&!jr(A)){const w=pt(C.expression,F.Type_0_is_not_a_constructor_function_type,gn(A));if(A.flags&262144){const I=xz(A);let U=on;if(I){const Z=mo(I,1);Z[0]&&(U=qs(Z[0]))}A.symbol.declarations&&ps(w,Bu(A.symbol.declarations[0],F.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Sr(A.symbol),gn(U)))}return l.resolvedBaseConstructorType=jt}l.resolvedBaseConstructorType=A}return l.resolvedBaseConstructorType}function ED(l){let m=_t;if(l.symbol.declarations)for(const D of l.symbol.declarations){const C=eB(D);if(C)for(const A of C){const w=Br(A);Lt(w)||(m===_t?m=[w]:m.push(w))}}return m}function x_(l,m){pt(l,F.Type_0_recursively_references_itself_as_a_base_type,gn(m,void 0,2))}function qc(l){if(!l.baseTypesResolved){if(__(l,7)&&(l.objectFlags&8?l.resolvedBaseTypes=[M5(l)]:l.symbol.flags&96?(l.symbol.flags&32&&ZK(l),l.symbol.flags&64&&sXt(l)):H.fail("type must be class or interface"),!vE()&&l.symbol.declarations))for(const m of l.symbol.declarations)(m.kind===263||m.kind===264)&&x_(m,l);l.baseTypesResolved=!0}return l.resolvedBaseTypes}function M5(l){const m=Mu(l.typeParameters,(D,C)=>l.elementFlags[C]&8?Uf(D,Qt):D);return j1(ir(m||_t),l.readonly)}function ZK(l){l.resolvedBaseTypes=mZ;const m=Kh(Uc(l));if(!(m.flags&2621441))return l.resolvedBaseTypes=_t;const D=Hr(l);let C;const A=m.symbol?q0(m.symbol):void 0;if(m.symbol&&m.symbol.flags&32&&Xw(A))C=Idt(D,m.symbol);else if(m.flags&1)C=m;else{const I=_0(m,D.typeArguments,D);if(!I.length)return pt(D.expression,F.No_base_constructor_has_the_specified_number_of_type_arguments),l.resolvedBaseTypes=_t;C=qs(I[0])}if(Lt(C))return l.resolvedBaseTypes=_t;const w=Fg(C);if(!fF(w)){const I=GNe(void 0,C),U=uo(I,F.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,gn(w));return Os.add(Z3(In(D.expression),D.expression,U)),l.resolvedBaseTypes=_t}return l===w||j9(w,l)?(pt(l.symbol.valueDeclaration,F.Type_0_recursively_references_itself_as_a_base_type,gn(l,void 0,2)),l.resolvedBaseTypes=_t):(l.resolvedBaseTypes===mZ&&(l.members=void 0),l.resolvedBaseTypes=[w])}function Xw(l){const m=l.outerTypeParameters;if(m){const D=m.length-1,C=M0(l);return m[D].symbol!==C[D].symbol}return!0}function fF(l){if(l.flags&262144){const m=Hh(l);if(m)return fF(m)}return!!(l.flags&67633153&&!Qm(l)||l.flags&2097152&&ye(l.types,fF))}function sXt(l){if(l.resolvedBaseTypes=l.resolvedBaseTypes||_t,l.symbol.declarations){for(const m of l.symbol.declarations)if(m.kind===264&&uP(m))for(const D of uP(m)){const C=Fg(Br(D));Lt(C)||(fF(C)?l!==C&&!j9(C,l)?l.resolvedBaseTypes===_t?l.resolvedBaseTypes=[C]:l.resolvedBaseTypes.push(C):x_(m,l):pt(D,F.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function lXt(l){if(!l.declarations)return!0;for(const m of l.declarations)if(m.kind===264){if(m.flags&256)return!1;const D=uP(m);if(D){for(const C of D)if(Xl(C.expression)){const A=P0(C.expression,788968,!0);if(!A||!(A.flags&64)||C4(A).thisType)return!1}}}return!0}function C4(l){let m=$r(l);const D=m;if(!m.declaredType){const C=l.flags&32?1:2,A=tze(l,l.valueDeclaration&&Jri(l.valueDeclaration));A&&(l=A,m=A.links);const w=D.declaredType=m.declaredType=_4(C,l),I=Fb(l),U=sn(l);(I||U||C===1||!lXt(l))&&(w.objectFlags|=4,w.typeParameters=an(I,U),w.outerTypeParameters=I,w.localTypeParameters=U,w.instantiations=new Map,w.instantiations.set(cp(w.typeParameters),w),w.target=w,w.resolvedTypeArguments=w.typeParameters,w.thisType=O1(l),w.thisType.isThisType=!0,w.thisType.constraint=w)}return m.declaredType}function Qct(l){var m;const D=$r(l);if(!D.declaredType){if(!__(l,2))return jt;const C=H.checkDefined((m=l.declarations)==null?void 0:m.find(Fj),"Type alias symbol with no valid declaration found"),A=K4(C)?C.typeExpression:C.type;let w=A?Br(A):jt;if(vE()){const I=sn(l);I&&(D.typeParameters=I,D.instantiations=new Map,D.instantiations.set(cp(I),w))}else w=jt,C.kind===347?pt(C.typeExpression.type,F.Type_alias_0_circularly_references_itself,Sr(l)):pt(fh(C)&&C.name||C,F.Type_alias_0_circularly_references_itself,Sr(l));D.declaredType=w}return D.declaredType}function Cge(l){return l.flags&1056&&l.symbol.flags&8?q0(lf(l.symbol)):l}function Xct(l){const m=$r(l);if(!m.declaredType){const D=[];if(l.declarations){for(const A of l.declarations)if(A.kind===266){for(const w of A.members)if(eT(w)){const I=Du(w),U=RW(w),Z=U9(U!==void 0?Ati(U,qo(l),I):edt(I));$r(I).declaredType=Z,D.push(Wh(Z))}}}const C=D.length?ir(D,1,l,void 0):edt(l);C.flags&1048576&&(C.flags|=1024,C.symbol=l),m.declaredType=C}return m.declaredType}function edt(l){const m=L5(32,l),D=L5(32,l);return m.regularType=m,m.freshType=D,D.regularType=m,D.freshType=D,m}function tdt(l){const m=$r(l);if(!m.declaredType){const D=Xct(lf(l));m.declaredType||(m.declaredType=D)}return m.declaredType}function mF(l){const m=$r(l);return m.declaredType||(m.declaredType=O1(l))}function cXt(l){const m=$r(l);return m.declaredType||(m.declaredType=q0(hd(l)))}function q0(l){return idt(l)||jt}function idt(l){if(l.flags&96)return C4(l);if(l.flags&524288)return Qct(l);if(l.flags&262144)return mF(l);if(l.flags&384)return Xct(l);if(l.flags&8)return tdt(l);if(l.flags&2097152)return cXt(l)}function mte(l){switch(l.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return mte(l.elementType);case 183:return!l.typeArguments||l.typeArguments.every(mte)}return!1}function dXt(l){const m=S8(l);return!m||mte(m)}function ndt(l){const m=h1(l);return m?mte(m):!Lx(l)}function hXt(l){const m=J4(l),D=Ax(l);return(l.kind===176||!!m&&mte(m))&&l.parameters.every(ndt)&&D.every(dXt)}function fXt(l){if(l.declarations&&l.declarations.length===1){const m=l.declarations[0];if(m)switch(m.kind){case 172:case 171:return ndt(m);case 174:case 173:case 176:case 177:case 178:return hXt(m)}}return!1}function udt(l,m,D){const C=jo();for(const A of l)C.set(A.escapedName,D&&fXt(A)?A:SPe(A,m));return C}function rdt(l,m){for(const D of m){if(adt(D))continue;const C=l.get(D.escapedName);(!C||C.valueDeclaration&&tu(C.valueDeclaration)&&!hz(C)&&!Zbe(C.valueDeclaration))&&(l.set(D.escapedName,D),l.set(D.escapedName,D))}}function adt(l){return!!l.valueDeclaration&&mh(l.valueDeclaration)&&To(l.valueDeclaration)}function wNe(l){if(!l.declaredProperties){const m=l.symbol,D=E6(m);l.declaredProperties=yb(D),l.declaredCallSignatures=_t,l.declaredConstructSignatures=_t,l.declaredIndexInfos=_t,l.declaredCallSignatures=Ab(D.get("__call")),l.declaredConstructSignatures=Ab(D.get("__new")),l.declaredIndexInfos=Ndt(m)}return l}function TNe(l){if(!Ls(l)&&!W0(l))return!1;const m=Ls(l)?l.expression:l.argumentExpression;return Xl(m)&&q4(Ls(l)?k3(l):Ic(m))}function YK(l){return l.charCodeAt(0)===95&&l.charCodeAt(1)===95&&l.charCodeAt(2)===64}function pte(l){const m=qa(l);return!!m&&TNe(m)}function eT(l){return!zx(l)||pte(l)}function mXt(l){return Sq(l)&&!TNe(l)}function pXt(l,m,D){H.assert(!!(Wl(l)&4096),"Expected a late-bound symbol."),l.flags|=D,$r(m.symbol).lateSymbol=l,l.declarations?m.symbol.isReplaceableByMethod||l.declarations.push(m):l.declarations=[m],D&111551&&(!l.valueDeclaration||l.valueDeclaration.kind!==m.kind)&&(l.valueDeclaration=m)}function odt(l,m,D,C){H.assert(!!C.symbol,"The member is expected to have a symbol.");const A=sr(C);if(!A.resolvedSymbol){A.resolvedSymbol=C.symbol;const w=tu(C)?C.left:C.name,I=W0(w)?Ic(w.argumentExpression):k3(w);if(q4(I)){const U=Z4(I),Z=C.symbol.flags;let ce=D.get(U);ce||D.set(U,ce=js(0,U,4096));const Fe=m&&m.get(U);if(!(l.flags&32)&&(ce.flags&Qk(Z)||Fe)){const Te=Fe?an(Fe.declarations,ce.declarations):ce.declarations,Je=!(I.flags&8192)&&Yr(U)||C0(w);L(Te,ut=>pt(qa(ut)||ut,F.Property_0_was_also_declared_here,Je)),pt(w||C,F.Duplicate_property_0,Je),ce=js(0,U,4096)}return ce.links.nameType=I,pXt(ce,C,Z),ce.parent?H.assert(ce.parent===l,"Existing symbol parent should match new one"):ce.parent=l,A.resolvedSymbol=ce}}return A.resolvedSymbol}function LNe(l,m){var D,C,A;const w=$r(l);if(!w[m]){const I=m==="resolvedExports",U=I?l.flags&1536?z9(l).exports:l.exports:l.members;w[m]=U||se;const Z=jo();for(const Te of l.declarations||_t){const Je=Hbe(Te);if(Je)for(const ut of Je)I===Hc(ut)&&pte(ut)&&odt(l,U,Z,ut)}const ce=(((D=l.valueDeclaration)==null?void 0:D.kind)===219||((C=l.valueDeclaration)==null?void 0:C.kind)===218)&&((A=_m(l.valueDeclaration.parent))==null?void 0:A.assignmentDeclarationMembers)||l.assignmentDeclarationMembers;if(ce){const Te=Ea(ce.values());for(const Je of Te){const ut=Ql(Je),zt=ut===3||tu(Je)&&yEe(Je,ut)||ut===9||ut===6;I===!zt&&pte(Je)&&odt(l,U,Z,Je)}}let Fe=Xk(U,Z);if(l.flags&33554432&&w.cjsExportMerged&&l.declarations)for(const Te of l.declarations){const Je=$r(Te.symbol)[m];if(!Fe){Fe=Je;continue}Je&&Je.forEach((ut,zt)=>{const fi=Fe.get(zt);if(!fi)Fe.set(zt,ut);else{if(fi===ut)return;Fe.set(zt,ip(fi,ut))}})}w[m]=Fe||se}return w[m]}function E6(l){return l.flags&6256?LNe(l,"resolvedMembers"):l.members||se}function bge(l){if(l.flags&106500&&l.escapedName==="__computed"){const m=$r(l);if(!m.lateSymbol&&qe(l.declarations,pte)){const D=Vs(l.parent);qe(l.declarations,Hc)?Jf(D):E6(D)}return m.lateSymbol||(m.lateSymbol=l)}return l}function Dm(l,m,D){if($u(l)&4){const C=l.target,A=M0(l);return S(C.typeParameters)===S(A)?I5(C,an(A,[m||C.thisType])):l}else if(l.flags&2097152){const C=Mu(l.types,A=>Dm(A,m,D));return C!==l.types?Es(C):l}return D?Kh(l):l}function sdt(l,m,D,C){let A,w,I,U,Z;zi(D,C,0,D.length)?(w=m.symbol?E6(m.symbol):jo(m.declaredProperties),I=m.declaredCallSignatures,U=m.declaredConstructSignatures,Z=m.declaredIndexInfos):(A=Af(D,C),w=udt(m.declaredProperties,A,D.length===1),I=Hge(m.declaredCallSignatures,A),U=Hge(m.declaredConstructSignatures,A),Z=N1t(m.declaredIndexInfos,A));const ce=qc(m);if(ce.length){if(m.symbol&&w===E6(m.symbol)){const Te=jo();for(const Je of w.values())Je.flags&262144||Te.set(Je.escapedName,Je);w=Te}D4(l,w,I,U,Z);const Fe=Yu(C);for(const Te of ce){const Je=Fe?Dm(Da(Te,A),Fe):Te;rdt(w,n0(Je)),I=an(I,mo(Je,0)),U=an(U,mo(Je,1));const ut=Je!==me?yh(Je):[b_(ct,me,!1)];Z=an(Z,ei(ut,zt=>!JNe(Z,zt.keyType)))}}D4(l,w,I,U,Z)}function gXt(l){sdt(l,wNe(l),_t,_t)}function EXt(l){const m=wNe(l.target),D=an(m.typeParameters,[m.thisType]),C=M0(l),A=C.length===D.length?C:an(C,[l]);sdt(l,m,D,A)}function b3(l,m,D,C,A,w,I,U){const Z=new B(Ni,U);return Z.declaration=l,Z.typeParameters=m,Z.parameters=C,Z.thisParameter=D,Z.resolvedReturnType=A,Z.resolvedTypePredicate=w,Z.minArgumentCount=I,Z.resolvedMinArgumentCount=void 0,Z.target=void 0,Z.mapper=void 0,Z.compositeSignatures=void 0,Z.compositeKind=void 0,Z}function QK(l){const m=b3(l.declaration,l.typeParameters,l.thisParameter,l.parameters,void 0,void 0,l.minArgumentCount,l.flags&167);return m.target=l.target,m.mapper=l.mapper,m.compositeSignatures=l.compositeSignatures,m.compositeKind=l.compositeKind,m}function ldt(l,m){const D=QK(l);return D.compositeSignatures=m,D.compositeKind=1048576,D.target=void 0,D.mapper=void 0,D}function _Xt(l,m){if((l.flags&24)===m)return l;l.optionalCallSignatureCache||(l.optionalCallSignatureCache={});const D=m===8?"inner":"outer";return l.optionalCallSignatureCache[D]||(l.optionalCallSignatureCache[D]=DXt(l,m))}function DXt(l,m){H.assert(m===8||m===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const D=QK(l);return D.flags|=m,D}function cdt(l,m){if(eh(l)){const A=l.parameters.length-1,w=l.parameters[A].escapedName,I=Jn(l.parameters[A]);if(_s(I))return[D(I,A,w)];if(!m&&I.flags&1048576&&ye(I.types,_s))return Kt(I.types,U=>D(U,A,w))}return[l.parameters];function D(A,w,I){const U=M0(A),Z=C(A,I),ce=Kt(U,(Fe,Te)=>{const Je=Z&&Z[Te]?Z[Te]:zz(l,w+Te,A),ut=A.target.elementFlags[Te],zt=ut&12?32768:ut&2?16384:0,fi=js(1,Je,zt);return fi.links.type=ut&4?j1(Fe):Fe,fi});return an(l.parameters.slice(0,w),ce)}function C(A,w){const I=new Map;return Kt(A.target.labeledElementDeclarations,(U,Z)=>{const ce=aze(U,Z,w),Fe=I.get(ce);return Fe===void 0?(I.set(ce,1),ce):(I.set(ce,Fe+1),`${ce}_${Fe}`)})}}function xXt(l){const m=Uc(l),D=mo(m,1),C=eD(l.symbol),A=!!C&&Xu(C,64);if(D.length===0)return[b3(void 0,l.localTypeParameters,void 0,_t,l,void 0,0,A?4:0)];const w=Hr(l),I=eu(w),U=vte(w),Z=S(U),ce=[];for(const Fe of D){const Te=C_(Fe.typeParameters),Je=S(Fe.typeParameters);if(I||Z>=Te&&Z<=Je){const ut=Je?Fge(Fe,D6(U,Fe.typeParameters,Te,I)):QK(Fe);ut.typeParameters=l.localTypeParameters,ut.resolvedReturnType=l,ut.flags=A?ut.flags|4:ut.flags&-5,ce.push(ut)}}return ce}function NNe(l,m,D,C,A){for(const w of l)if(Pte(w,m,D,C,A,D?Jti:cW))return w}function vXt(l,m,D){if(m.typeParameters){if(D>0)return;for(let A=1;A1&&(D=D===void 0?C:-1);for(const A of l[C])if(!m||!NNe(m,A,!1,!1,!0)){const w=vXt(l,A,C);if(w){let I=A;if(w.length>1){let U=A.thisParameter;const Z=L(w,ce=>ce.thisParameter);if(Z){const ce=Es(Ui(w,Fe=>Fe.thisParameter&&Jn(Fe.thisParameter)));U=xF(Z,ce)}I=ldt(A,w),I.thisParameter=U}(m||(m=[])).push(I)}}}if(!S(m)&&D!==-1){const C=l[D!==void 0?D:0];let A=C.slice();for(const w of l)if(w!==C){const I=w[0];if(H.assert(!!I,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),A=I.typeParameters&&qe(A,U=>!!U.typeParameters&&!ddt(I.typeParameters,U.typeParameters))?void 0:Kt(A,U=>yXt(U,I)),!A)break}m=A}return m||_t}function ddt(l,m){if(S(l)!==S(m))return!1;if(!l||!m)return!0;const D=Af(m,l);for(let C=0;C=A?l:m,I=w===l?m:l,U=w===l?C:A,Z=k_(l)||k_(m),ce=Z&&!k_(w),Fe=new Array(U+(ce?1:0));for(let Te=0;Te=AE(w)&&Te>=AE(I),cn=Te>=C?void 0:zz(l,Te),uu=Te>=A?void 0:zz(m,Te),En=cn===uu?cn:cn?uu?void 0:cn:uu,Ii=js(1|(Ki&&!fi?16777216:0),En||`arg${Te}`,fi?32768:Ki?16384:0);Ii.links.type=fi?j1(zt):zt,Fe[Te]=Ii}if(ce){const Te=js(1,"args",32768);Te.links.type=j1(wg(I,U)),I===m&&(Te.links.type=Da(Te.links.type,D)),Fe[U]=Te}return Fe}function yXt(l,m){const D=l.typeParameters||m.typeParameters;let C;l.typeParameters&&m.typeParameters&&(C=Af(m.typeParameters,l.typeParameters));const A=l.declaration,w=bXt(l,m,C),I=CXt(l.thisParameter,m.thisParameter,C),U=Math.max(l.minArgumentCount,m.minArgumentCount),Z=b3(A,D,I,w,void 0,void 0,U,(l.flags|m.flags)&167);return Z.compositeKind=1048576,Z.compositeSignatures=an(l.compositeKind!==2097152&&l.compositeSignatures||[l],[m]),C&&(Z.mapper=l.compositeKind!==2097152&&l.mapper&&l.compositeSignatures?SC(l.mapper,C):C),Z}function hdt(l){const m=yh(l[0]);if(m){const D=[];for(const C of m){const A=C.keyType;ye(l,w=>!!y3(w,A))&&D.push(b_(A,ir(Kt(l,w=>CC(w,A))),qe(l,w=>y3(w,A).isReadonly)))}return D}return _t}function kXt(l){const m=PNe(Kt(l.types,A=>A===si?[fn]:mo(A,0))),D=PNe(Kt(l.types,A=>mo(A,1))),C=hdt(l.types);D4(l,se,m,D,C)}function gte(l,m){return l?m?Es([l,m]):l:m}function fdt(l){const m=ui(l,C=>mo(C,1).length>0),D=Kt(l,Hu);if(m>0&&m===ui(D,C=>C)){const C=D.indexOf(!0);D[C]=!1}return D}function FXt(l,m,D,C){const A=[];for(let w=0;wU);for(let U=0;U0&&(ce=Kt(ce,Fe=>{const Te=QK(Fe);return Te.resolvedReturnType=FXt(qs(Fe),A,w,U),Te})),D=mdt(D,ce)}m=mdt(m,mo(Z,0)),C=tn(yh(Z),(ce,Fe)=>pdt(ce,Fe,!1),C)}D4(l,se,m||_t,D||_t,C||_t)}function mdt(l,m){for(const D of m)(!l||ye(l,C=>!Pte(C,D,!1,!1,!1,cW)))&&(l=Ei(l,D));return l}function pdt(l,m,D){if(l)for(let C=0;C{var Z;!(U.flags&418)&&!(U.flags&512&&((Z=U.declarations)!=null&&Z.length)&&ye(U.declarations,L1))&&I.set(U.escapedName,U)}),D=I}let A;if(D4(l,D,_t,_t,_t),m.flags&32){const I=C4(m),U=Uc(I);U.flags&11272192?(D=jo(Ww(D)),rdt(D,n0(U))):U===me&&(A=b_(ct,me,!1))}const w=Age(D);if(w?C=XNe(w):(A&&(C=Ei(C,A)),m.flags&384&&(q0(m).flags&32||qe(l.properties,I=>!!(Jn(I).flags&296)))&&(C=Ei(C,Tu))),D4(l,D,_t,_t,C||_t),m.flags&8208&&(l.callSignatures=Ab(m)),m.flags&32){const I=C4(m);let U=m.members?Ab(m.members.get("__constructor")):_t;m.flags&16&&(U=kn(U.slice(),Ui(l.callSignatures,Z=>FE(Z.declaration)?b3(Z.declaration,Z.typeParameters,Z.thisParameter,Z.parameters,I,void 0,Z.minArgumentCount,Z.flags&167):void 0))),U.length||(U=xXt(I)),l.constructSignatures=U}}function BXt(l,m,D){return Da(l,Af([m.indexType,m.objectType],[Sg(0),Ag([D])]))}function wXt(l){const m=y3(l.source,ct),D=v_(l.mappedType),C=!(D&1),A=D&4?0:16777216,w=m?[b_(ct,fEe(m.type,l.mappedType,l.constraintType),C&&m.isReadonly)]:_t,I=jo();for(const U of n0(l.source)){const Z=8192|(C&&Tg(U)?8:0),ce=js(4|U.flags&A,U.escapedName,Z);if(ce.declarations=U.declarations,ce.links.nameType=$r(U).nameType,ce.links.propertyType=Jn(U),l.constraintType.type.flags&8388608&&l.constraintType.type.objectType.flags&262144&&l.constraintType.type.indexType.flags&262144){const Fe=l.constraintType.type.objectType,Te=BXt(l.mappedType,l.constraintType.type,Fe);ce.links.mappedType=Te,ce.links.constraintType=y_(Fe)}else ce.links.mappedType=l.mappedType,ce.links.constraintType=l.constraintType;I.set(U.escapedName,ce)}D4(l,I,_t,_t,w)}function Ete(l){if(l.flags&4194304){const m=Kh(l.type);return H5(m)?r1t(m):y_(m)}if(l.flags&16777216){if(l.root.isDistributive){const m=l.checkType,D=Ete(m);if(D!==m)return TPe(l,q9(l.root.checkType,D,l.mapper))}return l}if(l.flags&1048576)return cl(l,Ete,!0);if(l.flags&2097152){const m=l.types;return m.length===2&&m[0].flags&76&&m[1]===Tc?l:Es(Mu(l.types,Ete))}return l}function MNe(l){return Wl(l)&4096}function zNe(l,m,D,C){for(const A of n0(l))C(bz(A,m));if(l.flags&1)C(ct);else for(const A of yh(l))(!D||A.keyType.flags&134217732)&&C(A.keyType)}function TXt(l){const m=jo();let D;D4(l,se,_t,_t,_t);const C=yg(l),A=sp(l),w=l.target||l,I=z5(w),U=!I||_dt(w),Z=_D(w),ce=Kh(V9(l)),Fe=v_(l),Te=Ge?128:8576;XK(l)?zNe(ce,Te,Ge,Je):yF(Ete(A),Je),D4(l,m,_t,_t,D||_t);function Je(zt){const fi=I?Da(I,lW(l.mapper,C,zt)):zt;yF(fi,Ki=>ut(zt,Ki))}function ut(zt,fi){if(q4(fi)){const Ki=Z4(fi),cn=m.get(Ki);if(cn)cn.links.nameType=ir([cn.links.nameType,fi]),cn.links.keyType=ir([cn.links.keyType,zt]);else{const uu=q4(zt)?$o(ce,Z4(zt)):void 0,En=!!(Fe&4||!(Fe&8)&&uu&&uu.flags&16777216),Ii=!!(Fe&1||!(Fe&2)&&uu&&Tg(uu)),Pn=fe&&!En&&uu&&uu.flags&16777216,Cn=uu?MNe(uu):0,Sn=js(4|(En?16777216:0),Ki,Cn|262144|(Ii?8:0)|(Pn?524288:0));Sn.links.mappedType=l,Sn.links.nameType=fi,Sn.links.keyType=zt,uu&&(Sn.links.syntheticOrigin=uu,Sn.declarations=U?uu.declarations:void 0),m.set(Ki,Sn)}}else if(Sge(fi)||fi.flags&33){const Ki=fi.flags&5?ct:fi.flags&40?Qt:fi,cn=Da(Z,lW(l.mapper,C,zt)),uu=tW(ce,fi),En=!!(Fe&1||!(Fe&2)&&(uu!=null&&uu.isReadonly)),Ii=b_(Ki,cn,En);D=pdt(D,Ii,!0)}}}function LXt(l){if(!l.links.type){const m=l.links.mappedType;if(!__(l,0))return m.containsError=!0,jt;const D=_D(m.target||m),C=lW(m.mapper,yg(m),l.links.keyType),A=Da(D,C);let w=fe&&l.flags&16777216&&!Ol(A,49152)?A6(A,!0):l.links.checkFlags&524288?sEe(A):A;vE()||(pt(K,F.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Sr(l),gn(m)),w=jt),l.links.type=w}return l.links.type}function yg(l){return l.typeParameter||(l.typeParameter=mF(Du(l.declaration.typeParameter)))}function sp(l){return l.constraintType||(l.constraintType=uh(yg(l))||jt)}function z5(l){return l.declaration.nameType?l.nameType||(l.nameType=Da(Br(l.declaration.nameType),l.mapper)):void 0}function _D(l){return l.templateType||(l.templateType=l.declaration.type?Da(Od(Br(l.declaration.type),!0,!!(v_(l)&4)),l.mapper):jt)}function gdt(l){return S8(l.declaration.typeParameter)}function XK(l){const m=gdt(l);return m.kind===198&&m.operator===143}function V9(l){if(!l.modifiersType)if(XK(l))l.modifiersType=Da(Br(gdt(l).type),l.mapper);else{const m=vPe(l.declaration),D=sp(m),C=D&&D.flags&262144?uh(D):D;l.modifiersType=C&&C.flags&4194304?Da(C.type,l.mapper):on}return l.modifiersType}function v_(l){const m=l.declaration;return(m.readonlyToken?m.readonlyToken.kind===41?2:1:0)|(m.questionToken?m.questionToken.kind===41?8:4:0)}function Edt(l){const m=v_(l);return m&8?-1:m&4?1:0}function INe(l){const m=Edt(l),D=V9(l);return m||(Qm(D)?Edt(D):0)}function NXt(l){return!!($u(l)&32&&v_(l)&4)}function Qm(l){if($u(l)&32){const m=sp(l);if(kC(m))return!0;const D=z5(l);if(D&&kC(Da(D,Lb(yg(l),m))))return!0}return!1}function _dt(l){const m=z5(l);return!!m&&hs(m,yg(l))}function kg(l){return l.members||(l.flags&524288?l.objectFlags&4?EXt(l):l.objectFlags&3?gXt(l):l.objectFlags&1024?wXt(l):l.objectFlags&16?SXt(l):l.objectFlags&32?TXt(l):H.fail("Unhandled object type "+H.formatObjectFlags(l.objectFlags)):l.flags&1048576?kXt(l):l.flags&2097152?AXt(l):H.fail("Unhandled type "+H.formatTypeFlags(l.flags))),l}function _6(l){return l.flags&524288?kg(l).properties:_t}function vC(l,m){if(l.flags&524288){const C=kg(l).members.get(m);if(C&&s6(C))return C}}function _te(l){if(!l.resolvedProperties){const m=jo();for(const D of l.types){for(const C of n0(D))if(!m.has(C.escapedName)){const A=KNe(l,C.escapedName);A&&m.set(C.escapedName,A)}if(l.flags&1048576&&yh(D).length===0)break}l.resolvedProperties=yb(m)}return l.resolvedProperties}function n0(l){return l=_z(l),l.flags&3145728?_te(l):_6(l)}function PXt(l,m){l=_z(l),l.flags&3670016&&kg(l).members.forEach((D,C)=>{aF(D,C)&&m(D,C)})}function MXt(l,m){return m.properties.some(C=>{const A=C.name&&(mg(C.name)?cf(aV(C.name)):O5(C.name)),w=A&&q4(A)?Z4(A):void 0,I=w===void 0?void 0:he(l,w);return!!I&&fW(I)&&!hs(X9(C),I)})}function zXt(l){const m=ir(l);if(!(m.flags&1048576))return Kze(m);const D=jo();for(const C of l)for(const{escapedName:A}of Kze(C))if(!D.has(A)){const w=bdt(m,A);w&&D.set(A,w)}return Ea(D.values())}function pF(l){return l.flags&262144?uh(l):l.flags&8388608?IXt(l):l.flags&16777216?vdt(l):Hh(l)}function uh(l){return eW(l)?xz(l):void 0}function H9(l,m=0){var D;return m<5&&!!(l&&(l.flags&262144&&qe((D=l.symbol)==null?void 0:D.declarations,C=>Xu(C,4096))||l.flags&3145728&&qe(l.types,C=>H9(C,m))||l.flags&8388608&&H9(l.objectType,m+1)||l.flags&16777216&&H9(vdt(l),m+1)||l.flags&33554432&&H9(l.baseType,m)||H5(l)&&$e(yC(l),(C,A)=>!!(l.target.elementFlags[A]&8)&&H9(C,m))>=0))}function IXt(l){return eW(l)?RXt(l):void 0}function RNe(l){const m=xD(l,!1);return m!==l?m:pF(l)}function RXt(l){if(HNe(l)||Qm(l.objectType))return zge(l.objectType,l.indexType);const m=RNe(l.indexType);if(m&&m!==l.indexType){const C=C6(l.objectType,m,l.accessFlags);if(C)return C}const D=RNe(l.objectType);if(D&&D!==l.objectType)return C6(D,l.indexType,l.accessFlags)}function ONe(l){if(!l.resolvedDefaultConstraint){const m=vti(l),D=AC(l);l.resolvedDefaultConstraint=nt(m)?D:nt(D)?m:ir([m,D])}return l.resolvedDefaultConstraint}function Ddt(l){if(l.resolvedConstraintOfDistributive!==void 0)return l.resolvedConstraintOfDistributive||void 0;if(l.root.isDistributive&&l.restrictiveInstantiation!==l){const m=xD(l.checkType,!1),D=m===l.checkType?pF(m):m;if(D&&D!==l.checkType){const C=TPe(l,q9(l.root.checkType,D,l.mapper));if(!(C.flags&131072))return l.resolvedConstraintOfDistributive=C,C}}l.resolvedConstraintOfDistributive=!1}function xdt(l){return Ddt(l)||ONe(l)}function vdt(l){return eW(l)?xdt(l):void 0}function OXt(l,m){let D,C=!1;for(const A of l)if(A.flags&465829888){let w=pF(A);for(;w&&w.flags&21233664;)w=pF(w);w&&(D=Ei(D,w),m&&(D=Ei(D,A)))}else(A.flags&469892092||bD(A))&&(C=!0);if(D&&(m||C)){if(C)for(const A of l)(A.flags&469892092||bD(A))&&(D=Ei(D,A));return Tte(Es(D),!1)}}function Hh(l){if(l.flags&464781312||H5(l)){const m=jNe(l);return m!==ll&&m!==$c?m:void 0}return l.flags&4194304?xc:void 0}function DD(l){return Hh(l)||l}function eW(l){return jNe(l)!==$c}function jNe(l){if(l.resolvedBaseConstraint)return l.resolvedBaseConstraint;const m=[];return l.resolvedBaseConstraint=D(l);function D(w){if(!w.immediateBaseConstraint){if(!__(w,4))return $c;let I;const U=tEe(w);if((m.length<10||m.length<50&&!Ft(m,U))&&(m.push(U),I=A(xD(w,!1)),m.pop()),!vE()){if(w.flags&262144){const Z=ePe(w);if(Z){const ce=pt(Z,F.Type_parameter_0_has_a_circular_constraint,gn(w));K&&!k2(Z,K)&&!k2(K,Z)&&ps(ce,Bu(K,F.Circularity_originates_in_type_at_this_location))}}I=$c}w.immediateBaseConstraint=I||ll}return w.immediateBaseConstraint}function C(w){const I=D(w);return I!==ll&&I!==$c?I:void 0}function A(w){if(w.flags&262144){const I=xz(w);return w.isThisType||!I?I:C(I)}if(w.flags&3145728){const I=w.types,U=[];let Z=!1;for(const ce of I){const Fe=C(ce);Fe?(Fe!==ce&&(Z=!0),U.push(Fe)):Z=!0}return Z?w.flags&1048576&&U.length===I.length?ir(U):w.flags&2097152&&U.length?Es(U):void 0:w}if(w.flags&4194304)return xc;if(w.flags&134217728){const I=w.types,U=Ui(I,C);return U.length===I.length?_F(w.texts,U):ct}if(w.flags&268435456){const I=C(w.type);return I&&I!==w.type?G9(w.symbol,I):ct}if(w.flags&8388608){if(HNe(w))return C(zge(w.objectType,w.indexType));const I=C(w.objectType),U=C(w.indexType),Z=I&&U&&C6(I,U,w.accessFlags);return Z&&C(Z)}if(w.flags&16777216){const I=xdt(w);return I&&C(I)}if(w.flags&33554432)return C(nPe(w));if(H5(w)){const I=Kt(yC(w),(U,Z)=>{const ce=U.flags&262144&&w.target.elementFlags[Z]&8&&C(U)||U;return ce!==U&&Xm(ce,Fe=>Nb(Fe)&&!H5(Fe))?ce:U});return Ag(I,w.target.elementFlags,w.target.readonly,w.target.labeledElementDeclarations)}return w}}function jXt(l,m){return l.resolvedApparentType||(l.resolvedApparentType=Dm(l,m,!0))}function VNe(l){if(l.default)l.default===vh&&(l.default=$c);else if(l.target){const m=VNe(l.target);l.default=m?Da(m,l.mapper):ll}else{l.default=vh;const m=l.symbol&&L(l.symbol.declarations,C=>Al(C)&&C.default),D=m?Br(m):ll;l.default===vh&&(l.default=D)}return l.default}function gF(l){const m=VNe(l);return m!==ll&&m!==$c?m:void 0}function VXt(l){return VNe(l)!==$c}function Cdt(l){return!!(l.symbol&&L(l.symbol.declarations,m=>Al(m)&&m.default))}function HXt(l){return l.resolvedApparentType||(l.resolvedApparentType=KXt(l))}function KXt(l){const m=Gge(l);if(m&&!l.declaration.nameType){const D=uh(m);if(D&&Xm(D,Nb))return Da(l,q9(m,D,l.mapper))}return l}function HNe(l){let m;return!!(l.flags&8388608&&$u(m=l.objectType)&32&&!Qm(m)&&kC(l.indexType)&&!(v_(m)&8)&&!m.declaration.nameType)}function Kh(l){const m=l.flags&465829888?Hh(l)||on:l,D=$u(m);return D&32?HXt(m):D&4&&m!==l?Dm(m,l):m.flags&2097152?jXt(m,l):m.flags&402653316?ic:m.flags&296?hc:m.flags&2112?Fei():m.flags&528?xl:m.flags&12288?Zdt():m.flags&67108864?Ho:m.flags&4194304?xc:m.flags&2&&!fe?Ho:m}function _z(l){return Fg(Kh(Fg(l)))}function bdt(l,m,D){var C,A,w;let I,U,Z;const ce=l.flags&1048576;let Fe,Te=4,Je=ce?0:8,ut=!1;for(const Sn of l.types){const _n=Kh(Sn);if(!(Lt(_n)||_n.flags&131072)){const fu=$o(_n,m,D),ao=fu?s4(fu):0;if(fu){if(fu.flags&106500&&(Fe??(Fe=ce?0:16777216),ce?Fe|=fu.flags&16777216:Fe&=fu.flags),!I)I=fu;else if(fu!==I)if((gT(fu)||fu)===(gT(I)||I)&&VPe(I,fu,(co,Fa)=>co===Fa?-1:0)===-1)ut=!!I.parent&&!!S(sn(I.parent));else{U||(U=new Map,U.set(qo(I),I));const co=qo(fu);U.has(co)||U.set(co,fu)}ce&&Tg(fu)?Je|=8:!ce&&!Tg(fu)&&(Je&=-9),Je|=(ao&6?0:256)|(ao&4?512:0)|(ao&2?1024:0)|(ao&256?2048:0),RMe(fu)||(Te=2)}else if(ce){const po=!YK(m)&&K9(_n,m);po?(Je|=32|(po.isReadonly?8:0),Z=Ei(Z,_s(_n)?uEe(_n)||te:po.type)):LC(_n)&&!($u(_n)&2097152)?(Je|=32,Z=Ei(Z,te)):Je|=16}}}if(!I||ce&&(U||Je&48)&&Je&1536&&!(U&&WXt(U.values())))return;if(!U&&!(Je&16)&&!Z)if(ut){const Sn=(C=ar(I,UE))==null?void 0:C.links,_n=xF(I,Sn==null?void 0:Sn.type);return _n.parent=(w=(A=I.valueDeclaration)==null?void 0:A.symbol)==null?void 0:w.parent,_n.links.containingType=l,_n.links.mapper=Sn==null?void 0:Sn.mapper,_n}else return I;const zt=U?Ea(U.values()):[I];let fi,Ki,cn;const uu=[];let En,Ii,Pn=!1;for(const Sn of zt){Ii?Sn.valueDeclaration&&Sn.valueDeclaration!==Ii&&(Pn=!0):Ii=Sn.valueDeclaration,fi=kn(fi,Sn.declarations);const _n=Jn(Sn);Ki||(Ki=_n,cn=$r(Sn).nameType);const fu=hF(Sn);(En||fu!==_n)&&(En=Ei(En||uu.slice(),fu)),_n!==Ki&&(Je|=64),(fW(_n)||J9(_n))&&(Je|=128),_n.flags&131072&&_n!==Dl&&(Je|=131072),uu.push(_n)}kn(uu,Z);const Cn=js(4|(Fe??0),m,Te|Je);return Cn.links.containingType=l,!Pn&&Ii&&(Cn.valueDeclaration=Ii,Ii.symbol.parent&&(Cn.parent=Ii.symbol.parent)),Cn.declarations=fi,Cn.links.nameType=cn,uu.length>2?(Cn.links.checkFlags|=65536,Cn.links.deferralParent=l,Cn.links.deferralConstituents=uu,Cn.links.deferralWriteConstituents=En):(Cn.links.type=ce?ir(uu):Es(uu),En&&(Cn.links.writeType=ce?ir(En):Es(En))),Cn}function ydt(l,m,D){var C,A;let w=(C=l.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&C.get(m)||!D?(A=l.propertyCache)==null?void 0:A.get(m):void 0;return w||(w=bdt(l,m,D),w&&(D?l.propertyCacheWithoutObjectFunctionPropertyAugment||(l.propertyCacheWithoutObjectFunctionPropertyAugment=jo()):l.propertyCache||(l.propertyCache=jo())).set(m,w)),w}function WXt(l){let m;for(const D of l){if(!D.declarations)return;if(!m){m=new Set(D.declarations);continue}if(m.forEach(C=>{Ft(D.declarations,C)||m.delete(C)}),m.size===0)return}return m}function KNe(l,m,D){const C=ydt(l,m,D);return C&&!(Wl(C)&16)?C:void 0}function Fg(l){return l.flags&1048576&&l.objectFlags&16777216?l.resolvedReducedType||(l.resolvedReducedType=GXt(l)):l.flags&2097152?(l.objectFlags&16777216||(l.objectFlags|=16777216|(qe(_te(l),JXt)?33554432:0)),l.objectFlags&33554432?Wu:l):l}function GXt(l){const m=Mu(l.types,Fg);if(m===l.types)return l;const D=ir(m);return D.flags&1048576&&(D.resolvedReducedType=D),D}function JXt(l){return kdt(l)||Fdt(l)}function kdt(l){return!(l.flags&16777216)&&(Wl(l)&131264)===192&&!!(Jn(l).flags&131072)}function Fdt(l){return!l.valueDeclaration&&!!(Wl(l)&1024)}function WNe(l){return!!(l.flags&1048576&&l.objectFlags&16777216&&qe(l.types,WNe)||l.flags&2097152&&$Xt(l))}function $Xt(l){const m=l.uniqueLiteralFilledInstantiation||(l.uniqueLiteralFilledInstantiation=Da(l,so));return Fg(m)!==m}function GNe(l,m){if(m.flags&2097152&&$u(m)&33554432){const D=Le(_te(m),kdt);if(D)return uo(l,F.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,gn(m,void 0,536870912),Sr(D));const C=Le(_te(m),Fdt);if(C)return uo(l,F.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,gn(m,void 0,536870912),Sr(C))}return l}function $o(l,m,D,C){if(l=_z(l),l.flags&524288){const A=kg(l),w=A.members.get(m);if(w&&s6(w,C))return w;if(D)return;const I=A===Ri?si:A.callSignatures.length?zn:A.constructSignatures.length?ya:void 0;if(I){const U=vC(I,m);if(U)return U}return vC(Ve,m)}if(l.flags&3145728)return KNe(l,m,D)}function Dte(l,m){if(l.flags&3670016){const D=kg(l);return m===0?D.callSignatures:D.constructSignatures}return _t}function mo(l,m){const D=Dte(_z(l),m);if(m===0&&!S(D)&&l.flags&1048576){if(l.arrayFallbackSignatures)return l.arrayFallbackSignatures;let C;if(Xm(l,A=>{var w;return!!((w=A.symbol)!=null&&w.parent)&&UXt(A.symbol.parent)&&(C?C===A.symbol.escapedName:(C=A.symbol.escapedName,!0))})){const A=cl(l,I=>y6((Adt(I.symbol.parent)?Bo:yo).typeParameters[0],I.mapper)),w=j1(A,bE(l,I=>Adt(I.symbol.parent)));return l.arrayFallbackSignatures=mo(he(w,C),m)}l.arrayFallbackSignatures=D}return D}function UXt(l){return!l||!yo.symbol||!Bo.symbol?!1:!!qm(l,yo.symbol)||!!qm(l,Bo.symbol)}function Adt(l){return!l||!Bo.symbol?!1:!!qm(l,Bo.symbol)}function JNe(l,m){return Le(l,D=>D.keyType===m)}function $Ne(l,m){let D,C,A;for(const w of l)w.keyType===ct?D=w:tT(m,w.keyType)&&(C?(A||(A=[C])).push(w):C=w);return A?b_(on,Es(Kt(A,w=>w.type)),tn(A,(w,I)=>w&&I.isReadonly,!0)):C||(D&&tT(m,ct)?D:void 0)}function tT(l,m){return hs(l,m)||m===ct&&hs(l,Qt)||m===Qt&&(l===$l||!!(l.flags&128)&&t3(l.value))}function UNe(l){return l.flags&3670016?kg(l).indexInfos:_t}function yh(l){return UNe(_z(l))}function y3(l,m){return JNe(yh(l),m)}function CC(l,m){var D;return(D=y3(l,m))==null?void 0:D.type}function qNe(l,m){return yh(l).filter(D=>tT(m,D.keyType))}function tW(l,m){return $Ne(yh(l),m)}function K9(l,m){return tW(l,YK(m)?tr:cf(Yr(m)))}function Sdt(l){var m;let D;for(const C of Ax(l))D=e0(D,mF(C.symbol));return D!=null&&D.length?D:Xc(l)?(m=Dz(l))==null?void 0:m.typeParameters:void 0}function ZNe(l){const m=[];return l.forEach((D,C)=>{pC(C)||m.push(D)}),m}function yge(l,m){if(Md(l))return;const D=yf(Ie,'"'+l+'"',512);return D&&m?Vs(D):D}function iW(l){if(l7(l)||uV(l)||rV(l))return!0;if(l.initializer){const D=lp(l.parent),C=l.parent.parameters.indexOf(l);return H.assert(C>=0),C>=AE(D,3)}const m=tk(l.parent);return m?!l.type&&!l.dotDotDotToken&&l.parent.parameters.indexOf(l)>=IEe(m).length:!1}function qXt(l){return bo(l)&&!Xg(l)&&l.questionToken}function xte(l,m,D,C){return{kind:l,parameterName:m,parameterIndex:D,type:C}}function C_(l){let m=0;if(l)for(let D=0;D=D&&w<=A){const I=l?l.slice():[];for(let Z=w;ZU.arguments.length&&!Ki||rV(zt)||(A=D.length)}if((l.kind===177||l.kind===178)&&eT(l)&&(!I||!w)){const ut=l.kind===177?178:177,zt=Fl(Du(l),ut);zt&&(w=m6(zt))}if(eu(l)){const ut=SU(l);ut&&ut.typeExpression&&(w=xF(js(1,"this"),Br(ut.typeExpression)))}const Fe=Iv(l)?rk(l):l,Te=Fe&&dc(Fe)?C4(Vs(Fe.parent.symbol)):void 0,Je=Te?Te.localTypeParameters:Sdt(l);(n0e(l)||eu(l)&&ZXt(l,D))&&(C|=1),(KP(l)&&Xu(l,64)||dc(l)&&Xu(l.parent,64))&&(C|=4),m.resolvedSignature=b3(l,Je,w,D,void 0,void 0,A,C)}return m.resolvedSignature}function ZXt(l,m){if(Iv(l)||!YNe(l))return!1;const D=Yu(l.parameters),C=D?A8(D):xv(l).filter(pg),A=G(C,I=>I.typeExpression&&dY(I.typeExpression.type)?I.typeExpression.type:void 0),w=js(3,"args",32768);return A?w.links.type=j1(Br(A.type)):(w.links.checkFlags|=65536,w.links.deferralParent=Wu,w.links.deferralConstituents=[Ul],w.links.deferralWriteConstituents=[Ul]),A&&m.pop(),m.push(w),!0}function Dz(l){if(!(eu(l)&&K0(l)))return;const m=_v(l);return(m==null?void 0:m.typeExpression)&&SF(Br(m.typeExpression))}function YXt(l,m){const D=Dz(l);if(!D)return;const C=l.parameters.indexOf(m);return m.dotDotDotToken?yW(D,C):wg(D,C)}function QXt(l){const m=Dz(l);return m&&qs(m)}function YNe(l){const m=sr(l);return m.containsArgumentsReference===void 0&&(m.flags&512?m.containsArgumentsReference=!0:m.containsArgumentsReference=D(l.body)),m.containsArgumentsReference;function D(C){if(!C)return!1;switch(C.kind){case 80:return C.escapedText===It.escapedName&&OW(C)===It;case 172:case 174:case 177:case 178:return C.name.kind===167&&D(C.name);case 211:case 212:return D(C.expression);case 303:return D(C.initializer);default:return!$0e(C)&&!U_(C)&&!!ro(C,D)}}}function Ab(l){if(!l||!l.declarations)return _t;const m=[];for(let D=0;D0&&C.body){const A=l.declarations[D-1];if(C.parent===A.parent&&C.kind===A.kind&&C.pos===A.end)continue}if(eu(C)&&C.jsDoc){let A=!1;for(const w of C.jsDoc)if(w.tags){for(const I of w.tags)if(TB(I)){const U=I.typeExpression;U.type===void 0&&!dc(C)&&wC(U,me),m.push(lp(U)),A=!0}}if(A)continue}m.push(!M2(C)&&!Np(C)&&Dz(C)||lp(C))}}return m}function Bdt(l){const m=Vh(l,l);if(m){const D=Em(m);if(D)return Jn(D)}return me}function bC(l){if(l.thisParameter)return Jn(l.thisParameter)}function b4(l){if(!l.resolvedTypePredicate){if(l.target){const m=b4(l.target);l.resolvedTypePredicate=m?zti(m,l.mapper):vt}else if(l.compositeSignatures)l.resolvedTypePredicate=qei(l.compositeSignatures,l.compositeKind)||vt;else{const m=l.declaration&&J4(l.declaration);let D;if(!m){const C=Dz(l.declaration);C&&l!==C&&(D=b4(C))}l.resolvedTypePredicate=m&&iY(m)?XXt(m,l):D||vt}H.assert(!!l.resolvedTypePredicate)}return l.resolvedTypePredicate===vt?void 0:l.resolvedTypePredicate}function XXt(l,m){const D=l.parameterName,C=l.type&&Br(l.type);return D.kind===197?xte(l.assertsModifier?2:0,void 0,void 0,C):xte(l.assertsModifier?3:1,D.escapedText,$e(m.parameters,A=>A.escapedName===D.escapedText),C)}function wdt(l,m,D){return m!==2097152?ir(l,D):Es(l)}function qs(l){if(!l.resolvedReturnType){if(!__(l,3))return jt;let m=l.target?Da(qs(l.target),l.mapper):l.compositeSignatures?Da(wdt(Kt(l.compositeSignatures,qs),l.compositeKind,2),l.mapper):iT(l.declaration)||(Yl(l.declaration.body)?me:VEe(l.declaration));if(l.flags&8?m=dht(m):l.flags&16&&(m=A6(m)),!vE()){if(l.declaration){const D=J4(l.declaration);if(D)pt(D,F.Return_type_annotation_circularly_references_itself);else if(Ae){const C=l.declaration,A=qa(C);A?pt(A,F._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,C0(A)):pt(C,F.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}m=me}l.resolvedReturnType=m}return l.resolvedReturnType}function iT(l){if(l.kind===176)return C4(Vs(l.parent.symbol));const m=J4(l);if(Iv(l)){const D=tP(l);if(D&&dc(D.parent)&&!m)return C4(Vs(D.parent.parent.symbol))}if(Y8(l))return Br(l.parameters[0].type);if(m)return Br(m);if(l.kind===177&&eT(l)){const D=eu(l)&&Jp(l);if(D)return D;const C=Fl(Du(l),178),A=Ym(C);if(A)return A}return QXt(l)}function kge(l){return l.compositeSignatures&&qe(l.compositeSignatures,kge)||!l.resolvedReturnType&&_C(l,3)>=0}function eei(l){return Tdt(l)||me}function Tdt(l){if(eh(l)){const m=Jn(l.parameters[l.parameters.length-1]),D=_s(m)?uEe(m):m;return D&&CC(D,Qt)}}function nW(l,m,D,C){const A=QNe(l,D6(m,l.typeParameters,C_(l.typeParameters),D));if(C){const w=jft(qs(A));if(w){const I=QK(w);I.typeParameters=C;const U=QK(A);return U.resolvedReturnType=EF(I),U}}return A}function QNe(l,m){const D=l.instantiations||(l.instantiations=new Map),C=cp(m);let A=D.get(C);return A||D.set(C,A=Fge(l,m)),A}function Fge(l,m){return oT(l,tei(l,m),!0)}function tei(l,m){return Af(l.typeParameters,m)}function uW(l){return l.typeParameters?l.erasedSignatureCache||(l.erasedSignatureCache=iei(l)):l}function iei(l){return oT(l,P1t(l.typeParameters),!0)}function nei(l){return l.typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=uei(l)):l}function uei(l){return nW(l,Kt(l.typeParameters,m=>m.target&&!uh(m.target)?m.target:m),eu(l.declaration))}function rei(l){const m=l.typeParameters;if(m){if(l.baseSignatureCache)return l.baseSignatureCache;const D=P1t(m),C=Af(m,Kt(m,w=>uh(w)||on));let A=Kt(m,w=>Da(w,C)||on);for(let w=0;w{Sge(A)&&!JNe(m,A)&&m.push(b_(A,D.type?Br(D.type):me,If(D,8),D))})}return m}return _t}function Sge(l){return!!(l.flags&4108)||J9(l)||!!(l.flags&2097152)&&!yz(l)&&qe(l.types,Sge)}function ePe(l){return Ui(ei(l.symbol&&l.symbol.declarations,Al),S8)[0]}function Pdt(l,m){var D;let C;if((D=l.symbol)!=null&&D.declarations){for(const A of l.symbol.declarations)if(A.parent.kind===195){const[w=A.parent,I]=lye(A.parent.parent);if(I.kind===183&&!m){const U=I,Z=Cze(U);if(Z){const ce=U.typeArguments.indexOf(w);if(ce()=>goi(U,Z,zt))),Je=Da(Fe,Te);Je!==l&&(C=Ei(C,Je))}}}}else if(I.kind===169&&I.dotDotDotToken||I.kind===191||I.kind===202&&I.dotDotDotToken)C=Ei(C,j1(on));else if(I.kind===204)C=Ei(C,ct);else if(I.kind===168&&I.parent.kind===200)C=Ei(C,xc);else if(I.kind===200&&I.type&&s0(I.type)===A.parent&&I.parent.kind===194&&I.parent.extendsType===I&&I.parent.checkType.kind===200&&I.parent.checkType.type){const U=I.parent.checkType,Z=Br(U.type);C=Ei(C,Da(Z,Lb(mF(Du(U.typeParameter)),U.typeParameter.constraint?Br(U.typeParameter.constraint):xc)))}}}return C&&Es(C)}function xz(l){if(!l.constraint)if(l.target){const m=uh(l.target);l.constraint=m?Da(m,l.mapper):ll}else{const m=ePe(l);if(!m)l.constraint=Pdt(l)||ll;else{let D=Br(m);D.flags&1&&!Lt(D)&&(D=m.parent.parent.kind===200?xc:on),l.constraint=D}}return l.constraint===ll?void 0:l.constraint}function Mdt(l){const m=Fl(l.symbol,168),D=gg(m.parent)?bq(m.parent):m.parent;return D&&_m(D)}function cp(l){let m="";if(l){const D=l.length;let C=0;for(;C1&&(m+=":"+w),C+=w}}return m}function W9(l,m){return l?`@${qo(l)}`+(m?`:${cp(m)}`:""):""}function Bge(l,m){let D=0;for(const C of l)(m===void 0||!(C.flags&m))&&(D|=$u(C));return D&458752}function nT(l,m){return qe(m)&&l===Ka?on:I5(l,m)}function I5(l,m){const D=cp(m);let C=l.instantiations.get(D);return C||(C=_4(4,l.symbol),l.instantiations.set(D,C),C.objectFlags|=m?Bge(m):0,C.target=l,C.resolvedTypeArguments=m),C}function zdt(l){const m=L5(l.flags,l.symbol);return m.objectFlags=l.objectFlags,m.target=l.target,m.resolvedTypeArguments=l.resolvedTypeArguments,m}function tPe(l,m,D,C,A){if(!C){C=$9(m);const I=aT(C);A=D?j5(I,D):I}const w=_4(4,l.symbol);return w.target=l,w.node=m,w.mapper=D,w.aliasSymbol=C,w.aliasTypeArguments=A,w}function M0(l){var m,D;if(!l.resolvedTypeArguments){if(!__(l,6))return((m=l.target.localTypeParameters)==null?void 0:m.map(()=>jt))||_t;const C=l.node,A=C?C.kind===183?an(l.target.outerTypeParameters,GEe(C,l.target.localTypeParameters)):C.kind===188?[Br(C.elementType)]:Kt(C.elements,Br):_t;vE()?l.resolvedTypeArguments=l.mapper?j5(A,l.mapper):A:(l.resolvedTypeArguments=((D=l.target.localTypeParameters)==null?void 0:D.map(()=>jt))||_t,pt(l.node||K,l.target.symbol?F.Type_arguments_for_0_circularly_reference_themselves:F.Tuple_type_arguments_circularly_reference_themselves,l.target.symbol&&Sr(l.target.symbol)))}return l.resolvedTypeArguments}function R5(l){return S(l.target.typeParameters)}function Idt(l,m){const D=q0(Vs(m)),C=D.localTypeParameters;if(C){const A=S(l.typeArguments),w=C_(C),I=eu(l);if(!(!Ae&&I)&&(AC.length)){const ce=I&&l5(l)&&!wB(l.parent),Fe=w===C.length?ce?F.Expected_0_type_arguments_provide_these_with_an_extends_tag:F.Generic_type_0_requires_1_type_argument_s:ce?F.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:F.Generic_type_0_requires_between_1_and_2_type_arguments,Te=gn(D,void 0,2);if(pt(l,Fe,Te,w,C.length),!I)return jt}if(l.kind===183&&n1t(l,S(l.typeArguments)!==C.length))return tPe(D,l,void 0);const Z=an(D.outerTypeParameters,D6(vte(l),C,w,I));return I5(D,Z)}return Sb(l,m)?D:jt}function uT(l,m,D,C){const A=q0(l);if(A===Yi&&YY.has(l.escapedName)&&m&&m.length===1)return G9(l,m[0]);const w=$r(l),I=w.typeParameters,U=cp(m)+W9(D,C);let Z=w.instantiations.get(U);return Z||w.instantiations.set(U,Z=I1t(A,Af(I,D6(m,I,C_(I),eu(l.valueDeclaration))),D,C)),Z}function aei(l,m){if(Wl(m)&1048576){const A=vte(l),w=W9(m,A);let I=gt.get(w);return I||(I=Nc(1,"error",void 0,`alias ${w}`),I.aliasSymbol=m,I.aliasTypeArguments=A,gt.set(w,I)),I}const D=q0(m),C=$r(m).typeParameters;if(C){const A=S(l.typeArguments),w=C_(C);if(AC.length)return pt(l,w===C.length?F.Generic_type_0_requires_1_type_argument_s:F.Generic_type_0_requires_between_1_and_2_type_arguments,Sr(m),w,C.length),jt;const I=$9(l);let U=I&&(Rdt(m)||!Rdt(I))?I:void 0,Z;if(U)Z=aT(U);else if(KU(l)){const ce=rT(l,2097152,!0);if(ce&&ce!==Xt){const Fe=hd(ce);Fe&&Fe.flags&524288&&(U=Fe,Z=vte(l)||(C?[]:void 0))}}return uT(m,vte(l),U,Z)}return Sb(l,m)?D:jt}function Rdt(l){var m;const D=(m=l.declarations)==null?void 0:m.find(Fj);return!!(D&&Lm(D))}function oei(l){switch(l.kind){case 183:return l.typeName;case 233:const m=l.expression;if(Xl(m))return m}}function Odt(l){return l.parent?`${Odt(l.parent)}.${l.escapedName}`:l.escapedName}function wge(l){const D=(l.kind===166?l.right:l.kind===211?l.name:l).escapedText;if(D){const C=l.kind===166?wge(l.left):l.kind===211?wge(l.expression):void 0,A=C?`${Odt(C)}.${D}`:D;let w=et.get(A);return w||(et.set(A,w=js(524288,D,1048576)),w.parent=C,w.links.declaredType=pi),w}return Xt}function rT(l,m,D){const C=oei(l);if(!C)return Xt;const A=P0(C,m,D);return A&&A!==Xt?A:D?Xt:wge(C)}function Tge(l,m){if(m===Xt)return jt;if(m=w9(m)||m,m.flags&96)return Idt(l,m);if(m.flags&524288)return aei(l,m);const D=idt(m);if(D)return Sb(l,m)?Wh(D):jt;if(m.flags&111551&&Lge(l)){const C=sei(l,m);return C||(rT(l,788968),Jn(m))}return jt}function sei(l,m){const D=sr(l);if(!D.resolvedJSDocType){const C=Jn(m);let A=C;if(m.valueDeclaration){const w=l.kind===205&&l.qualifier;C.symbol&&C.symbol!==m&&w&&(A=Tge(l,C.symbol))}D.resolvedJSDocType=A}return D.resolvedJSDocType}function iPe(l,m){if(m.flags&3||m===l||l.flags&1)return l;const D=`${kh(l)}>${kh(m)}`,C=wa.get(D);if(C)return C;const A=op(33554432);return A.baseType=l,A.constraint=m,wa.set(D,A),A}function nPe(l){return Es([l.constraint,l.baseType])}function jdt(l){return l.kind===189&&l.elements.length===1}function Vdt(l,m,D){return jdt(m)&&jdt(D)?Vdt(l,m.elements[0],D.elements[0]):b6(Br(m))===b6(l)?Br(D):void 0}function lei(l,m){let D,C=!0;for(;m&&!na(m)&&m.kind!==327;){const A=m.parent;if(A.kind===169&&(C=!C),(C||l.flags&8650752)&&A.kind===194&&m===A.trueType){const w=Vdt(l,A.checkType,A.extendsType);w&&(D=Ei(D,w))}else if(l.flags&262144&&A.kind===200&&m===A.type){const w=Br(A);if(yg(w)===b6(l)){const I=Gge(w);if(I){const U=uh(I);U&&Xm(U,Nb)&&(D=Ei(D,ir([Qt,$l])))}}}m=A}return D?iPe(l,Es(D)):l}function Lge(l){return!!(l.flags&16777216)&&(l.kind===183||l.kind===205)}function Sb(l,m){return l.typeArguments?(pt(l,F.Type_0_is_not_generic,m?Sr(m):l.typeName?C0(l.typeName):$Y),!1):!0}function Hdt(l){if(at(l.typeName)){const m=l.typeArguments;switch(l.typeName.escapedText){case"String":return Sb(l),ct;case"Number":return Sb(l),Qt;case"Boolean":return Sb(l),Er;case"Void":return Sb(l),da;case"Undefined":return Sb(l),te;case"Null":return Sb(l),it;case"Function":case"function":return Sb(l),si;case"array":return(!m||!m.length)&&!Ae?Ul:void 0;case"promise":return(!m||!m.length)&&!Ae?oie(me):void 0;case"Object":if(m&&m.length===2){if(gq(l)){const D=Br(m[0]),C=Br(m[1]),A=D===ct||D===Qt?[b_(D,C,!1)]:_t;return Rl(void 0,se,_t,_t,A)}return me}return Sb(l),Ae?void 0:me}}}function cei(l){const m=Br(l.type);return fe?rEe(m,65536):m}function uPe(l){const m=sr(l);if(!m.resolvedType){if(U3(l)&&qy(l.parent))return m.resolvedSymbol=Xt,m.resolvedType=Ic(l.parent.expression);let D,C;const A=788968;Lge(l)&&(C=Hdt(l),C||(D=rT(l,A,!0),D===Xt?D=rT(l,A|111551):rT(l,A),C=Tge(l,D))),C||(D=rT(l,A),C=Tge(l,D)),m.resolvedSymbol=D,m.resolvedType=C}return m.resolvedType}function vte(l){return Kt(l.typeArguments,Br)}function Kdt(l){const m=sr(l);if(!m.resolvedType){const D=amt(l);m.resolvedType=Wh(xm(D))}return m.resolvedType}function Wdt(l,m){function D(A){const w=A.declarations;if(w)for(const I of w)switch(I.kind){case 263:case 264:case 266:return I}}if(!l)return m?Ka:Ho;const C=q0(l);return C.flags&524288?S(C.typeParameters)!==m?(pt(D(l),F.Global_type_0_must_have_1_type_parameter_s,sc(l),m),m?Ka:Ho):C:(pt(D(l),F.Global_type_0_must_be_a_class_or_interface_type,sc(l)),m?Ka:Ho)}function rPe(l,m){return vz(l,111551,m?F.Cannot_find_global_value_0:void 0)}function Gdt(l,m){return vz(l,788968,m?F.Cannot_find_global_type_0:void 0)}function Nge(l,m,D){const C=vz(l,788968,D?F.Cannot_find_global_type_0:void 0);if(C&&(q0(C),S($r(C).typeParameters)!==m)){const A=C.declarations&&Le(C.declarations,Ip);pt(A,F.Global_type_0_must_have_1_type_parameter_s,sc(C),m);return}return C}function vz(l,m,D){return nc(void 0,l,m,D,l,!1,!1,!1)}function Mc(l,m,D){const C=Gdt(l,D);return C||D?Wdt(C,m):void 0}function dei(){return l_||(l_=Mc("TypedPropertyDescriptor",1,!0)||Ka)}function hei(){return Rn||(Rn=Mc("TemplateStringsArray",0,!0)||Ho)}function Jdt(){return nr||(nr=Mc("ImportMeta",0,!0)||Ho)}function $dt(){if(!ur){const l=js(0,"ImportMetaExpression"),m=Jdt(),D=js(4,"meta",8);D.parent=l,D.links.type=m;const C=jo([D]);l.members=C,ur=Rl(l,C,_t,_t,_t)}return ur}function Udt(l){return ma||(ma=Mc("ImportCallOptions",0,l))||Ho}function qdt(l){return Rh||(Rh=rPe("Symbol",l))}function fei(l){return h4||(h4=Gdt("SymbolConstructor",l))}function Zdt(){return l3||(l3=Mc("Symbol",0,!1))||Ho}function Cte(l){return v5||(v5=Mc("Promise",1,l))||Ka}function Ydt(l){return I1||(I1=Mc("PromiseLike",1,l))||Ka}function aPe(l){return c3||(c3=rPe("Promise",l))}function mei(l){return Kf||(Kf=Mc("PromiseConstructorLike",0,l))||Ho}function Pge(l){return Q||(Q=Mc("AsyncIterable",1,l))||Ka}function pei(l){return Me||(Me=Mc("AsyncIterator",3,l))||Ka}function gei(l){return wt||(wt=Mc("AsyncIterableIterator",1,l))||Ka}function Eei(l){return bi||(bi=Mc("AsyncGenerator",3,l))||Ka}function oPe(l){return f4||(f4=Mc("Iterable",1,l))||Ka}function _ei(l){return Oh||(Oh=Mc("Iterator",3,l))||Ka}function Dei(l){return Ee||(Ee=Mc("IterableIterator",1,l))||Ka}function xei(l){return Bt||(Bt=Mc("Generator",3,l))||Ka}function vei(l){return gi||(gi=Mc("IteratorYieldResult",1,l))||Ka}function Cei(l){return xi||(xi=Mc("IteratorReturnResult",1,l))||Ka}function Qdt(l){return as||(as=Mc("Disposable",0,l))||Ho}function bei(l){return os||(os=Mc("AsyncDisposable",0,l))||Ho}function Xdt(l,m=0){const D=vz(l,788968,void 0);return D&&Wdt(D,m)}function yei(){return Il||(Il=Nge("Extract",2,!0)||Xt),Il===Xt?void 0:Il}function kei(){return D1||(D1=Nge("Omit",2,!0)||Xt),D1===Xt?void 0:D1}function sPe(l){return dd||(dd=Nge("Awaited",1,l)||(l?Xt:void 0)),dd===Xt?void 0:dd}function Fei(){return Jm||(Jm=Mc("BigInt",0,!1))||Ho}function Aei(l){return $m??($m=Mc("ClassDecoratorContext",1,l))??Ka}function Sei(l){return d3??(d3=Mc("ClassMethodDecoratorContext",2,l))??Ka}function Bei(l){return c_??(c_=Mc("ClassGetterDecoratorContext",2,l))??Ka}function wei(l){return ta??(ta=Mc("ClassSetterDecoratorContext",2,l))??Ka}function Tei(l){return Qx??(Qx=Mc("ClassAccessorDecoratorContext",2,l))??Ka}function Lei(l){return Xx??(Xx=Mc("ClassAccessorDecoratorTarget",2,l))??Ka}function Nei(l){return vg??(vg=Mc("ClassAccessorDecoratorResult",2,l))??Ka}function Pei(l){return rb??(rb=Mc("ClassFieldDecoratorContext",2,l))??Ka}function Mei(){return gs||(gs=rPe("NaN",!1))}function zei(){return tp||(tp=Nge("Record",2,!0)||Xt),tp===Xt?void 0:tp}function rW(l,m){return l!==Ka?I5(l,m):Ho}function e1t(l){return rW(dei(),[l])}function t1t(l){return rW(oPe(!0),[l])}function j1(l,m){return rW(m?Bo:yo,[l])}function lPe(l){switch(l.kind){case 190:return 2;case 191:return i1t(l);case 202:return l.questionToken?2:l.dotDotDotToken?i1t(l):1;default:return 1}}function i1t(l){return Fte(l.type)?4:8}function Iei(l){const m=jei(l.parent);if(Fte(l))return m?Bo:yo;const C=Kt(l.elements,lPe);return cPe(C,m,Kt(l.elements,Rei))}function Rei(l){return WP(l)||eo(l)?l:void 0}function n1t(l,m){return!!$9(l)||u1t(l)&&(l.kind===188?x6(l.elementType):l.kind===189?qe(l.elements,x6):m||qe(l.typeArguments,x6))}function u1t(l){const m=l.parent;switch(m.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return u1t(m);case 265:return!0}return!1}function x6(l){switch(l.kind){case 183:return Lge(l)||!!(rT(l,788968).flags&524288);case 186:return!0;case 198:return l.operator!==158&&x6(l.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return x6(l.type);case 191:return l.type.kind!==188||x6(l.type.elementType);case 192:case 193:return qe(l.types,x6);case 199:return x6(l.objectType)||x6(l.indexType);case 194:return x6(l.checkType)||x6(l.extendsType)||x6(l.trueType)||x6(l.falseType)}return!1}function Oei(l){const m=sr(l);if(!m.resolvedType){const D=Iei(l);if(D===Ka)m.resolvedType=Ho;else if(!(l.kind===189&&qe(l.elements,C=>!!(lPe(C)&8)))&&n1t(l))m.resolvedType=l.kind===189&&l.elements.length===0?D:tPe(D,l,void 0);else{const C=l.kind===188?[Br(l.elementType)]:Kt(l.elements,Br);m.resolvedType=dPe(D,C)}}return m.resolvedType}function jei(l){return P7(l)&&l.operator===148}function Ag(l,m,D=!1,C=[]){const A=cPe(m||Kt(l,w=>1),D,C);return A===Ka?Ho:l.length?dPe(A,l):A}function cPe(l,m,D){if(l.length===1&&l[0]&4)return m?Bo:yo;const C=Kt(l,w=>w&1?"#":w&2?"?":w&4?".":"*").join()+(m?"R":"")+(qe(D,w=>!!w)?","+Kt(D,w=>w?Js(w):"_").join(","):"");let A=Ba.get(C);return A||Ba.set(C,A=Vei(l,m,D)),A}function Vei(l,m,D){const C=l.length,A=ui(l,Te=>!!(Te&9));let w;const I=[];let U=0;if(C){w=new Array(C);for(let Te=0;Te!!(l.elementFlags[fi]&8&&zt.flags&1179648));if(ut>=0)return bte(Kt(m,(zt,fi)=>l.elementFlags[fi]&8?zt:on))?cl(m[ut],zt=>hPe(l,Ud(m,ut,zt))):jt}const w=[],I=[],U=[];let Z=-1,ce=-1,Fe=-1;for(let ut=0;ut=1e4)return pt(K,U_(K)?F.Type_produces_a_tuple_type_that_is_too_large_to_represent:F.Expression_produces_a_tuple_type_that_is_too_large_to_represent),jt;L(Ki,(cn,uu)=>{var En;return Je(cn,zt.target.elementFlags[uu],(En=zt.target.labeledElementDeclarations)==null?void 0:En[uu])})}else Je(V5(zt)&&CC(zt,Qt)||jt,4,(C=l.labeledElementDeclarations)==null?void 0:C[ut]);else Je(zt,fi,(A=l.labeledElementDeclarations)==null?void 0:A[ut])}for(let ut=0;ut=0&&ceI[ce+zt]&8?Uf(ut,Qt):ut)),w.splice(ce+1,Fe-ce),I.splice(ce+1,Fe-ce),U.splice(ce+1,Fe-ce));const Te=cPe(I,l.readonly,U);return Te===Ka?Ho:I.length?I5(Te,w):Te;function Je(ut,zt,fi){zt&1&&(Z=I.length),zt&4&&ce<0&&(ce=I.length),zt&6&&(Fe=I.length),w.push(zt&2?Od(ut,!0):ut),I.push(zt),U.push(fi)}}function Cz(l,m,D=0){const C=l.target,A=R5(l)-D;return m>C.fixedLength?Aii(l)||Ag(_t):Ag(M0(l).slice(m,A),C.elementFlags.slice(m,A),!1,C.labeledElementDeclarations&&C.labeledElementDeclarations.slice(m,A))}function r1t(l){return ir(Ei(rm(l.target.fixedLength,m=>cf(""+m)),y_(l.target.readonly?Bo:yo)))}function Hei(l,m){const D=$e(l.elementFlags,C=>!(C&m));return D>=0?D:l.elementFlags.length}function aW(l,m){return l.elementFlags.length-Ye(l.elementFlags,D=>!(D&m))-1}function fPe(l){return l.fixedLength+aW(l,3)}function yC(l){const m=M0(l),D=R5(l);return m.length===D?m:m.slice(0,D)}function Kei(l){return Od(Br(l.type),!0)}function kh(l){return l.id}function v6(l,m){return Hl(l,m,kh,tl)>=0}function mPe(l,m){const D=Hl(l,m,kh,tl);return D<0?(l.splice(~D,0,m),!0):!1}function Wei(l,m,D){const C=D.flags;if(!(C&131072))if(m|=C&473694207,C&465829888&&(m|=33554432),D===_i&&(m|=8388608),!fe&&C&98304)$u(D)&65536||(m|=4194304);else{const A=l.length,w=A&&D.id>l[A-1].id?~A:Hl(l,D,kh,tl);w<0&&l.splice(~w,0,D)}return m}function a1t(l,m,D){let C;for(const A of D)A!==C&&(m=A.flags&1048576?a1t(l,m|(Uei(A)?1048576:0),A.types):Wei(l,m,A),C=A);return m}function Gei(l,m){var D;if(l.length<2)return l;const C=cp(l),A=Zo.get(C);if(A)return A;const w=m&&qe(l,ce=>!!(ce.flags&524288)&&!Qm(ce)&&MPe(kg(ce))),I=l.length;let U=I,Z=0;for(;U>0;){U--;const ce=l[U];if(w||ce.flags&469499904){if(ce.flags&262144&&DD(ce).flags&1048576){CE(ce,ir(Kt(l,Je=>Je===ce?Wu:Je)),m4)&&dv(l,U);continue}const Fe=ce.flags&61603840?Le(n0(ce),Je=>Bg(Jn(Je))):void 0,Te=Fe&&Wh(Jn(Fe));for(const Je of l)if(ce!==Je){if(Z===1e5&&Z/(I-U)*I>1e6){(D=$n)==null||D.instant($n.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:l.map(zt=>zt.id)}),pt(K,F.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(Z++,Fe&&Je.flags&61603840){const ut=he(Je,Fe.escapedName);if(ut&&Bg(ut)&&Wh(ut)!==Te)continue}if(CE(ce,Je,m4)&&(!($u(Qw(ce))&1)||!($u(Qw(Je))&1)||BC(ce,Je))){dv(l,U);break}}}}return Zo.set(C,l),l}function Jei(l,m,D){let C=l.length;for(;C>0;){C--;const A=l[C],w=A.flags;(w&402653312&&m&4||w&256&&m&8||w&2048&&m&64||w&8192&&m&4096||D&&w&32768&&m&16384||Tb(A)&&v6(l,A.regularType))&&dv(l,C)}}function $ei(l){const m=ei(l,D=>!!(D.flags&134217728)&&J9(D));if(m.length){let D=l.length;for(;D>0;){D--;const C=l[D];C.flags&128&&qe(m,A=>mEe(C,A))&&dv(l,D)}}}function Uei(l){return!!(l.flags&1048576&&(l.aliasSymbol||l.origin))}function o1t(l,m){for(const D of m)if(D.flags&1048576){const C=D.origin;D.aliasSymbol||C&&!(C.flags&1048576)?va(l,D):C&&C.flags&1048576&&o1t(l,C.types)}}function pPe(l,m){const D=bb(l);return D.types=m,D}function ir(l,m=1,D,C,A){if(l.length===0)return Wu;if(l.length===1)return l[0];if(l.length===2&&!A&&(l[0].flags&1048576||l[1].flags&1048576)){const w=m===0?"N":m===2?"S":"L",I=l[0].id=2&&w[0]===te&&w[1]===de&&dv(w,1),(I&402664352||I&16384&&I&32768)&&Jei(w,I,!!(m&2)),I&128&&I&134217728&&$ei(w),m===2&&(w=Gei(w,!!(I&524288)),!w))return jt;if(w.length===0)return I&65536?I&4194304?it:Ct:I&32768?I&4194304?te:we:Wu}if(!A&&I&1048576){const Z=[];o1t(Z,l);const ce=[];for(const Te of w)qe(Z,Je=>v6(Je.types,Te))||ce.push(Te);if(!D&&Z.length===1&&ce.length===0)return Z[0];if(tn(Z,(Te,Je)=>Te+Je.types.length,0)+ce.length===w.length){for(const Te of Z)mPe(ce,Te);A=pPe(1048576,ce)}}const U=(I&36323331?0:32768)|(I&2097152?16777216:0);return EPe(w,U,D,C,A)}function qei(l,m){let D;const C=[];for(const w of l){const I=b4(w);if(I){if(I.kind!==0&&I.kind!==1||D&&!gPe(D,I))return;D=I,C.push(I.type)}else{const U=m!==2097152?qs(w):void 0;if(U!==$i&&U!==Bn)return}}if(!D)return;const A=wdt(C,m);return xte(D.kind,D.parameterName,D.parameterIndex,A)}function gPe(l,m){return l.kind===m.kind&&l.parameterIndex===m.parameterIndex}function EPe(l,m,D,C,A){if(l.length===0)return Wu;if(l.length===1)return l[0];const I=(A?A.flags&1048576?`|${cp(A.types)}`:A.flags&2097152?`&${cp(A.types)}`:`#${A.type.id}|${cp(l)}`:cp(l))+W9(D,C);let U=bt.get(I);return U||(U=op(1048576),U.objectFlags=m|Bge(l,98304),U.types=l,U.origin=A,U.aliasSymbol=D,U.aliasTypeArguments=C,l.length===2&&l[0].flags&512&&l[1].flags&512&&(U.flags|=16,U.intrinsicName="boolean"),bt.set(I,U)),U}function Zei(l){const m=sr(l);if(!m.resolvedType){const D=$9(l);m.resolvedType=ir(Kt(l.types,Br),1,D,aT(D))}return m.resolvedType}function Yei(l,m,D){const C=D.flags;return C&2097152?l1t(l,m,D.types):(bD(D)?m&16777216||(m|=16777216,l.set(D.id.toString(),D)):(C&3?D===_i&&(m|=8388608):(fe||!(C&98304))&&(D===de&&(m|=262144,D=te),l.has(D.id.toString())||(D.flags&109472&&m&109472&&(m|=67108864),l.set(D.id.toString(),D))),m|=C&473694207),m)}function l1t(l,m,D){for(const C of D)m=Yei(l,m,Wh(C));return m}function Qei(l,m){let D=l.length;for(;D>0;){D--;const C=l[D];(C.flags&4&&m&402653312||C.flags&8&&m&256||C.flags&64&&m&2048||C.flags&4096&&m&8192||C.flags&16384&&m&32768||bD(C)&&m&470302716)&&dv(l,D)}}function Xei(l,m){for(const D of l)if(!v6(D.types,m)){const C=m.flags&128?ct:m.flags&288?Qt:m.flags&2048?Ti:m.flags&8192?tr:void 0;if(!C||!v6(D.types,C))return!1}return!0}function eti(l){let m=l.length;const D=ei(l,C=>!!(C.flags&128));for(;m>0;){m--;const C=l[m];if(C.flags&134217728){for(const A of D)if(k6(A,C)){dv(l,m);break}else if(J9(C))return!0}}return!1}function c1t(l,m){for(let D=0;D!(C.flags&m))}function tti(l){let m;const D=$e(l,I=>!!($u(I)&32768));if(D<0)return!1;let C=D+1;for(;C!!(ce.flags&1048576&&ce.types[0].flags&32768))){const ce=qe(I,pW)?de:te;c1t(I,32768),Z=ir([Es(I),ce],1,m,D)}else if(ye(I,ce=>!!(ce.flags&1048576&&(ce.types[0].flags&65536||ce.types[1].flags&65536))))c1t(I,65536),Z=ir([Es(I),it],1,m,D);else{if(!bte(I))return jt;const ce=nti(I),Fe=qe(ce,Te=>!!(Te.flags&2097152))&&_Pe(ce)>_Pe(I)?pPe(2097152,I):void 0;Z=ir(ce,1,m,D,Fe)}else Z=iti(I,m,D);Nn.set(U,Z)}return Z}function d1t(l){return tn(l,(m,D)=>D.flags&1048576?m*D.types.length:D.flags&131072?0:m,1)}function bte(l){var m;const D=d1t(l);return D>=1e5?((m=$n)==null||m.instant($n.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:l.map(C=>C.id),size:D}),pt(K,F.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function nti(l){const m=d1t(l),D=[];for(let C=0;C=0;U--)if(l[U].flags&1048576){const Z=l[U].types,ce=Z.length;A[U]=Z[w%ce],w=Math.floor(w/ce)}const I=Es(A);I.flags&131072||D.push(I)}return D}function h1t(l){return!(l.flags&3145728)||l.aliasSymbol?1:l.flags&1048576&&l.origin?h1t(l.origin):_Pe(l.types)}function _Pe(l){return tn(l,(m,D)=>m+h1t(D),0)}function uti(l){const m=sr(l);if(!m.resolvedType){const D=$9(l),C=Kt(l.types,Br),A=C.length===2?C.indexOf(Tc):-1,w=A>=0?C[1-A]:on,I=!!(w.flags&76||w.flags&134217728&&J9(w));m.resolvedType=Es(C,D,aT(D),I)}return m.resolvedType}function f1t(l,m){const D=op(4194304);return D.type=l,D.indexFlags=m,D}function rti(l){const m=bb(4194304);return m.type=l,m}function m1t(l,m){return m&1?l.resolvedStringIndexType||(l.resolvedStringIndexType=f1t(l,1)):l.resolvedIndexType||(l.resolvedIndexType=f1t(l,0))}function ati(l,m){const D=yg(l),C=sp(l),A=z5(l.target||l);if(!A&&!(m&2))return C;const w=[];if(XK(l)){if(kC(C))return m1t(l,m);{const Z=Kh(V9(l));zNe(Z,8576,!!(m&1),U)}}else yF(Ete(C),U);kC(C)&&yF(C,U);const I=m&2?zc(ir(w),Z=>!(Z.flags&5)):ir(w);if(I.flags&1048576&&C.flags&1048576&&cp(I.types)===cp(C.types))return C;return I;function U(Z){const ce=A?Da(A,lW(l.mapper,D,Z)):Z;w.push(ce===ct?So:ce)}}function oti(l){const m=yg(l);return D(z5(l)||m);function D(C){return C.flags&470810623?!0:C.flags&16777216?C.root.isDistributive&&C.checkType===m:C.flags&137363456?ye(C.types,D):C.flags&8388608?D(C.objectType)&&D(C.indexType):C.flags&33554432?D(C.baseType)&&D(C.constraint):C.flags&268435456?D(C.type):!1}}function O5(l){if(Xr(l))return Wu;if(Rf(l))return Wh(ka(l));if(Ls(l))return Wh(k3(l));const m=ak(l);return m!==void 0?cf(Yr(m)):Wt(l)?Wh(ka(l)):Wu}function bz(l,m,D){if(D||!(s4(l)&6)){let C=$r(bge(l)).nameType;if(!C){const A=qa(l.valueDeclaration);C=l.escapedName==="default"?cf("default"):A&&O5(A)||(Mj(l)?void 0:cf(sc(l)))}if(C&&C.flags&m)return C}return Wu}function p1t(l,m){return!!(l.flags&m||l.flags&2097152&&qe(l.types,D=>p1t(D,m)))}function sti(l,m,D){const C=D&&($u(l)&7||l.aliasSymbol)?rti(l):void 0,A=Kt(n0(l),I=>bz(I,m)),w=Kt(yh(l),I=>I!==Tu&&p1t(I.keyType,m)?I.keyType===ct&&m&8?So:I.keyType:Wu);return ir(an(A,w),1,void 0,void 0,C)}function g1t(l,m=0){return!!(l.flags&58982400||H5(l)||Qm(l)&&!oti(l)||l.flags&1048576&&!(m&4)&&WNe(l)||l.flags&2097152&&Ol(l,465829888)&&qe(l.types,bD))}function y_(l,m=ft){return l=Fg(l),g1t(l,m)?m1t(l,m):l.flags&1048576?Es(Kt(l.types,D=>y_(D,m))):l.flags&2097152?ir(Kt(l.types,D=>y_(D,m))):$u(l)&32?ati(l,m):l===_i?_i:l.flags&2?Wu:l.flags&131073?xc:sti(l,(m&2?128:402653316)|(m&1?0:12584),m===ft)}function E1t(l){if(Ge)return l;const m=yei();return m?uT(m,[l,ct]):ct}function lti(l){const m=E1t(y_(l));return m.flags&131072?ct:m}function cti(l){const m=sr(l);if(!m.resolvedType)switch(l.operator){case 143:m.resolvedType=y_(Br(l.type));break;case 158:m.resolvedType=l.type.kind===155?FPe(wj(l.parent)):jt;break;case 148:m.resolvedType=Br(l.type);break;default:H.assertNever(l.operator)}return m.resolvedType}function dti(l){const m=sr(l);return m.resolvedType||(m.resolvedType=_F([l.head.text,...Kt(l.templateSpans,D=>D.literal.text)],Kt(l.templateSpans,D=>Br(D.type)))),m.resolvedType}function _F(l,m){const D=$e(m,ce=>!!(ce.flags&1179648));if(D>=0)return bte(m)?cl(m[D],ce=>_F(l,Ud(m,D,ce))):jt;if(Ft(m,_i))return _i;const C=[],A=[];let w=l[0];if(!Z(l,m))return ct;if(C.length===0)return cf(w);if(A.push(w),ye(A,ce=>ce==="")){if(ye(C,ce=>!!(ce.flags&4)))return ct;if(C.length===1&&J9(C[0]))return C[0]}const I=`${cp(C)}|${Kt(A,ce=>ce.length).join(",")}|${A.join("")}`;let U=xa.get(I);return U||xa.set(I,U=fti(A,C)),U;function Z(ce,Fe){for(let Te=0;TeG9(l,D)):m.flags&128?cf(_1t(l,m.value)):m.flags&134217728?_F(...mti(l,m.texts,m.types)):m.flags&268435456&&l===m.symbol?m:m.flags&268435461||kC(m)?D1t(l,m):yte(m)?D1t(l,_F(["",""],[m])):m}function _1t(l,m){switch(YY.get(l.escapedName)){case 0:return m.toUpperCase();case 1:return m.toLowerCase();case 2:return m.charAt(0).toUpperCase()+m.slice(1);case 3:return m.charAt(0).toLowerCase()+m.slice(1)}return m}function mti(l,m,D){switch(YY.get(l.escapedName)){case 0:return[m.map(C=>C.toUpperCase()),D.map(C=>G9(l,C))];case 1:return[m.map(C=>C.toLowerCase()),D.map(C=>G9(l,C))];case 2:return[m[0]===""?m:[m[0].charAt(0).toUpperCase()+m[0].slice(1),...m.slice(1)],m[0]===""?[G9(l,D[0]),...D.slice(1)]:D];case 3:return[m[0]===""?m:[m[0].charAt(0).toLowerCase()+m[0].slice(1),...m.slice(1)],m[0]===""?[G9(l,D[0]),...D.slice(1)]:D]}return[m,D]}function D1t(l,m){const D=`${qo(l)},${kh(m)}`;let C=ra.get(D);return C||ra.set(D,C=pti(l,m)),C}function pti(l,m){const D=L5(268435456,l);return D.type=m,D}function gti(l,m,D,C,A){const w=op(8388608);return w.objectType=l,w.indexType=m,w.accessFlags=D,w.aliasSymbol=C,w.aliasTypeArguments=A,w}function oW(l){if(Ae)return!1;if($u(l)&4096)return!0;if(l.flags&1048576)return ye(l.types,oW);if(l.flags&2097152)return qe(l.types,oW);if(l.flags&465829888){const m=jNe(l);return m!==l&&oW(m)}return!1}function Mge(l,m){return q4(l)?Z4(l):m&&Ac(m)?ak(m):void 0}function DPe(l,m){if(m.flags&8208){const D=Ln(l.parent,C=>!N0(C))||l.parent;return g2(D)?JE(D)&&at(l)&&Sht(D,l):ye(m.declarations,C=>!xo(C)||uC(C))}return!0}function x1t(l,m,D,C,A,w){const I=A&&A.kind===212?A:void 0,U=A&&Xr(A)?void 0:Mge(D,A);if(U!==void 0){if(w&256)return zb(m,U)||me;const ce=$o(m,U);if(ce){if(w&64&&A&&ce.declarations&&A5(ce)&&DPe(A,ce)){const Te=(I==null?void 0:I.argumentExpression)??(M7(A)?A.indexType:A);f3(Te,ce.declarations,U)}if(I){if(Xte(ce,I,Mft(I.expression,m.symbol)),Cmt(I,ce,d7(I))){pt(I.argumentExpression,F.Cannot_assign_to_0_because_it_is_a_read_only_property,Sr(ce));return}if(w&8&&(sr(A).resolvedSymbol=ce),Sft(I,ce))return ni}const Fe=w&4?hF(ce):Jn(ce);return I&&d7(I)!==1?B6(I,Fe):A&&M7(A)&&pW(Fe)?ir([Fe,te]):Fe}if(Xm(m,_s)&&t3(U)){const Fe=+U;if(A&&Xm(m,Te=>!Te.target.hasRestElement)&&!(w&16)){const Te=xPe(A);if(_s(m)){if(Fe<0)return pt(Te,F.A_tuple_type_cannot_be_indexed_with_a_negative_value),te;pt(Te,F.Tuple_type_0_of_length_1_has_no_element_at_index_2,gn(m),R5(m),Yr(U))}else pt(Te,F.Property_0_does_not_exist_on_type_1,Yr(U),gn(m))}if(Fe>=0)return Z(y3(m,Qt)),sht(m,Fe,w&1?de:void 0)}}if(!(D.flags&98304)&&n1(D,402665900)){if(m.flags&131073)return m;const ce=tW(m,D)||y3(m,ct);if(ce){if(w&2&&ce.keyType!==Qt){I&&(w&4?pt(I,F.Type_0_is_generic_and_can_only_be_indexed_for_reading,gn(l)):pt(I,F.Type_0_cannot_be_used_to_index_type_1,gn(D),gn(l)));return}if(A&&ce.keyType===ct&&!n1(D,12)){const Fe=xPe(A);return pt(Fe,F.Type_0_cannot_be_used_as_an_index_type,gn(D)),w&1?ir([ce.type,de]):ce.type}return Z(ce),w&1&&!(m.symbol&&m.symbol.flags&384&&D.symbol&&D.flags&1024&&lf(D.symbol)===m.symbol)?ir([ce.type,de]):ce.type}if(D.flags&131072)return Wu;if(oW(m))return me;if(I&&!KEe(m)){if(LC(m)){if(Ae&&D.flags&384)return Os.add(Bu(I,F.Property_0_does_not_exist_on_type_1,D.value,gn(m))),te;if(D.flags&12){const Fe=Kt(m.properties,Te=>Jn(Te));return ir(Ei(Fe,te))}}if(m.symbol===St&&U!==void 0&&St.exports.has(U)&&St.exports.get(U).flags&418)pt(I,F.Property_0_does_not_exist_on_type_1,Yr(U),gn(m));else if(Ae&&!ae.suppressImplicitAnyIndexErrors&&!(w&128))if(U!==void 0&&Lft(U,m)){const Fe=gn(m);pt(I,F.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,U,Fe,Fe+"["+Vc(I.argumentExpression)+"]")}else if(CC(m,Qt))pt(I.argumentExpression,F.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Fe;if(U!==void 0&&(Fe=GMe(U,m)))Fe!==void 0&&pt(I.argumentExpression,F.Property_0_does_not_exist_on_type_1_Did_you_mean_2,U,gn(m),Fe);else{const Te=hri(m,I,D);if(Te!==void 0)pt(I,F.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,gn(m),Te);else{let Je;if(D.flags&1024)Je=uo(void 0,F.Property_0_does_not_exist_on_type_1,"["+gn(D)+"]",gn(m));else if(D.flags&8192){const ut=rp(D.symbol,I);Je=uo(void 0,F.Property_0_does_not_exist_on_type_1,"["+ut+"]",gn(m))}else D.flags&128||D.flags&256?Je=uo(void 0,F.Property_0_does_not_exist_on_type_1,D.value,gn(m)):D.flags&12&&(Je=uo(void 0,F.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,gn(D),gn(m)));Je=uo(Je,F.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,gn(C),gn(m)),Os.add(Z3(In(I),I,Je))}}}return}}if(oW(m))return me;if(A){const ce=xPe(A);D.flags&384?pt(ce,F.Property_0_does_not_exist_on_type_1,""+D.value,gn(m)):D.flags&12?pt(ce,F.Type_0_has_no_matching_index_signature_for_type_1,gn(m),gn(D)):pt(ce,F.Type_0_cannot_be_used_as_an_index_type,gn(D))}if(nt(D))return D;return;function Z(ce){ce&&ce.isReadonly&&I&&(Y_(I)||j0e(I))&&pt(I,F.Index_signature_in_type_0_only_permits_reading,gn(m))}}function xPe(l){return l.kind===212?l.argumentExpression:l.kind===199?l.indexType:l.kind===167?l.expression:l}function yte(l){if(l.flags&2097152){let m=!1;for(const D of l.types)if(D.flags&101248||yte(D))m=!0;else if(!(D.flags&524288))return!1;return m}return!!(l.flags&77)||J9(l)}function J9(l){return!!(l.flags&134217728)&&ye(l.types,yte)||!!(l.flags&268435456)&&yte(l.type)}function yz(l){return!!sW(l)}function Bb(l){return!!(sW(l)&4194304)}function kC(l){return!!(sW(l)&8388608)}function sW(l){return l.flags&3145728?(l.objectFlags&2097152||(l.objectFlags|=2097152|tn(l.types,(m,D)=>m|sW(D),0)),l.objectFlags&12582912):l.flags&33554432?(l.objectFlags&2097152||(l.objectFlags|=2097152|sW(l.baseType)|sW(l.constraint)),l.objectFlags&12582912):(l.flags&58982400||Qm(l)||H5(l)?4194304:0)|(l.flags&465829888&&!J9(l)?8388608:0)}function xD(l,m){return l.flags&8388608?_ti(l,m):l.flags&16777216?Dti(l,m):l}function v1t(l,m,D){if(l.flags&1048576||l.flags&2097152&&!g1t(l)){const C=Kt(l.types,A=>xD(Uf(A,m),D));return l.flags&2097152||D?Es(C):ir(C)}}function Eti(l,m,D){if(m.flags&1048576){const C=Kt(m.types,A=>xD(Uf(l,A),D));return D?Es(C):ir(C)}}function _ti(l,m){const D=m?"simplifiedForWriting":"simplifiedForReading";if(l[D])return l[D]===$c?l:l[D];l[D]=$c;const C=xD(l.objectType,m),A=xD(l.indexType,m),w=Eti(C,A,m);if(w)return l[D]=w;if(!(A.flags&465829888)){const I=v1t(C,A,m);if(I)return l[D]=I}if(H5(C)&&A.flags&296){const I=Bz(C,A.flags&8?0:C.target.fixedLength,0,m);if(I)return l[D]=I}return Qm(C)&&(!z5(C)||_dt(C))?l[D]=cl(zge(C,l.indexType),I=>xD(I,m)):l[D]=l}function Dti(l,m){const D=l.checkType,C=l.extendsType,A=FC(l),w=AC(l);if(w.flags&131072&&b6(A)===b6(D)){if(D.flags&1||hs(DF(D),DF(C)))return xD(A,m);if(C1t(D,C))return Wu}else if(A.flags&131072&&b6(w)===b6(D)){if(!(D.flags&1)&&hs(DF(D),DF(C)))return Wu;if(D.flags&1||C1t(D,C))return xD(w,m)}return l}function C1t(l,m){return!!(ir([gte(l,m),Wu]).flags&131072)}function zge(l,m){const D=Af([yg(l)],[m]),C=SC(l.mapper,D);return Da(_D(l.target||l),C)}function Uf(l,m,D=0,C,A,w){return C6(l,m,D,C,A,w)||(C?jt:on)}function b1t(l,m){return Xm(l,D=>{if(D.flags&384){const C=Z4(D);if(t3(C)){const A=+C;return A>=0&&A0&&!qe(l.elements,m=>_ce(m)||Dce(m)||WP(m)&&!!(m.questionToken||m.dotDotDotToken))}function F1t(l,m){return yz(l)||m&&_s(l)&&qe(yC(l),yz)}function CPe(l,m,D,C){let A,w,I=0;for(;;){if(I===1e3)return pt(K,F.Type_instantiation_is_excessively_deep_and_possibly_infinite),jt;const Z=Da(b6(l.checkType),m),ce=Da(l.extendsType,m);if(Z===jt||ce===jt)return jt;if(Z===_i||ce===_i)return _i;const Fe=k1t(l.node.checkType)&&k1t(l.node.extendsType)&&S(l.node.checkType.elements)===S(l.node.extendsType.elements),Te=F1t(Z,Fe);let Je;if(l.inferTypeParameters){const zt=Mu(l.inferTypeParameters,xti),fi=zt!==l.inferTypeParameters?Af(l.inferTypeParameters,zt):void 0,Ki=EW(zt,void 0,0);if(fi){const uu=SC(m,fi);for(let En=0;Eny6(fi,Te)),ut=Af(Fe.outerTypeParameters,Je),zt=Fe.isDistributive?y6(Fe.checkType,ut):void 0;if(!zt||zt===Fe.checkType||!(zt.flags&1179648))return l=Fe,m=ut,D=void 0,C=void 0,Fe.aliasSymbol&&I++,!0}}return!1}}function FC(l){return l.resolvedTrueType||(l.resolvedTrueType=Da(Br(l.root.node.trueType),l.mapper))}function AC(l){return l.resolvedFalseType||(l.resolvedFalseType=Da(Br(l.root.node.falseType),l.mapper))}function vti(l){return l.resolvedInferredTrueType||(l.resolvedInferredTrueType=l.combinedMapper?Da(Br(l.root.node.trueType),l.combinedMapper):FC(l))}function A1t(l){let m;return l.locals&&l.locals.forEach(D=>{D.flags&262144&&(m=Ei(m,q0(D)))}),m}function Cti(l){return l.isDistributive&&(Ste(l.checkType,l.node.trueType)||Ste(l.checkType,l.node.falseType))}function bti(l){const m=sr(l);if(!m.resolvedType){const D=Br(l.checkType),C=$9(l),A=aT(C),w=Ez(l,!0),I=A?w:ei(w,Z=>Ste(Z,l)),U={node:l,checkType:D,extendsType:Br(l.extendsType),isDistributive:!!(D.flags&262144),inferTypeParameters:A1t(l),outerTypeParameters:I,instantiations:void 0,aliasSymbol:C,aliasTypeArguments:A};m.resolvedType=CPe(U,void 0),I&&(U.instantiations=new Map,U.instantiations.set(cp(I),m.resolvedType))}return m.resolvedType}function yti(l){const m=sr(l);return m.resolvedType||(m.resolvedType=mF(Du(l.typeParameter))),m.resolvedType}function S1t(l){return at(l)?[l]:Ei(S1t(l.left),l.right)}function kti(l){var m;const D=sr(l);if(!D.resolvedType){if(!Mx(l))return pt(l.argument,F.String_literal_expected),D.resolvedSymbol=Xt,D.resolvedType=jt;const C=l.isTypeOf?111551:l.flags&16777216?900095:788968,A=Vh(l,l.argument.literal);if(!A)return D.resolvedSymbol=Xt,D.resolvedType=jt;const w=!!((m=A.exports)!=null&&m.get("export=")),I=Em(A,!1);if(Yl(l.qualifier))if(I.flags&C)D.resolvedType=B1t(l,D,I,C);else{const U=C===111551?F.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:F.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;pt(l,U,l.argument.literal.text),D.resolvedSymbol=Xt,D.resolvedType=jt}else{const U=S1t(l.qualifier);let Z=I,ce;for(;ce=U.shift();){const Fe=U.length?1920:C,Te=Vs(bc(Z)),Je=l.isTypeOf||eu(l)&&w?$o(Jn(Te),ce.escapedText,!1,!0):void 0,zt=(l.isTypeOf?void 0:yf(Jf(Te),ce.escapedText,Fe))??Je;if(!zt)return pt(ce,F.Namespace_0_has_no_exported_member_1,rp(Z),C0(ce)),D.resolvedType=jt;sr(ce).resolvedSymbol=zt,sr(ce.parent).resolvedSymbol=zt,Z=zt}D.resolvedType=B1t(l,D,Z,C)}}return D.resolvedType}function B1t(l,m,D,C){const A=bc(D);return m.resolvedSymbol=A,C===111551?omt(Jn(D),l):Tge(l,A)}function w1t(l){const m=sr(l);if(!m.resolvedType){const D=$9(l);if(E6(l.symbol).size===0&&!D)m.resolvedType=Tc;else{let C=_4(16,l.symbol);C.aliasSymbol=D,C.aliasTypeArguments=aT(D),V7(l)&&l.isArrayType&&(C=j1(C)),m.resolvedType=C}}return m.resolvedType}function $9(l){let m=l.parent;for(;N7(m)||bk(m)||P7(m)&&m.operator===148;)m=m.parent;return Fj(m)?Du(m):void 0}function aT(l){return l?sn(l):void 0}function Ige(l){return!!(l.flags&524288)&&!Qm(l)}function bPe(l){return CD(l)||!!(l.flags&474058748)}function yPe(l,m){if(!(l.flags&1048576))return l;if(ye(l.types,bPe))return Le(l.types,CD)||Ho;const D=Le(l.types,w=>!bPe(w));if(!D||Le(l.types,w=>w!==D&&!bPe(w)))return l;return A(D);function A(w){const I=jo();for(const Z of n0(w))if(!(s4(Z)&6)){if(Rge(Z)){const ce=Z.flags&65536&&!(Z.flags&32768),Te=js(16777220,Z.escapedName,MNe(Z)|(m?8:0));Te.links.type=ce?te:Od(Jn(Z),!0),Te.declarations=Z.declarations,Te.links.nameType=$r(Z).nameType,Te.links.syntheticOrigin=Z,I.set(Z.escapedName,Te)}}const U=Rl(w.symbol,I,_t,_t,yh(w));return U.objectFlags|=131200,U}}function wb(l,m,D,C,A){if(l.flags&1||m.flags&1)return me;if(l.flags&2||m.flags&2)return on;if(l.flags&131072)return m;if(m.flags&131072)return l;if(l=yPe(l,A),l.flags&1048576)return bte([l,m])?cl(l,ce=>wb(ce,m,D,C,A)):jt;if(m=yPe(m,A),m.flags&1048576)return bte([l,m])?cl(m,ce=>wb(l,ce,D,C,A)):jt;if(m.flags&473960444)return l;if(Bb(l)||Bb(m)){if(CD(l))return m;if(l.flags&2097152){const ce=l.types,Fe=ce[ce.length-1];if(Ige(Fe)&&Ige(m))return Es(an(ce.slice(0,ce.length-1),[wb(Fe,m,D,C,A)]))}return Es([l,m])}const w=jo(),I=new Set,U=l===Ho?yh(m):hdt([l,m]);for(const ce of n0(m))s4(ce)&6?I.add(ce.escapedName):Rge(ce)&&w.set(ce.escapedName,kPe(ce,A));for(const ce of n0(l))if(!(I.has(ce.escapedName)||!Rge(ce)))if(w.has(ce.escapedName)){const Fe=w.get(ce.escapedName),Te=Jn(Fe);if(Fe.flags&16777216){const Je=an(ce.declarations,Fe.declarations),ut=4|ce.flags&16777216,zt=js(ut,ce.escapedName),fi=Jn(ce),Ki=sEe(fi),cn=sEe(Te);zt.links.type=Ki===cn?fi:ir([fi,cn],2),zt.links.leftSpread=ce,zt.links.rightSpread=Fe,zt.declarations=Je,zt.links.nameType=$r(ce).nameType,w.set(ce.escapedName,zt)}}else w.set(ce.escapedName,kPe(ce,A));const Z=Rl(D,w,_t,_t,Mu(U,ce=>Fti(ce,A)));return Z.objectFlags|=2228352|C,Z}function Rge(l){var m;return!qe(l.declarations,mh)&&(!(l.flags&106496)||!((m=l.declarations)!=null&&m.some(D=>gr(D.parent))))}function kPe(l,m){const D=l.flags&65536&&!(l.flags&32768);if(!D&&m===Tg(l))return l;const C=4|l.flags&16777216,A=js(C,l.escapedName,MNe(l)|(m?8:0));return A.links.type=D?te:Jn(l),A.declarations=l.declarations,A.links.nameType=$r(l).nameType,A.links.syntheticOrigin=l,A}function Fti(l,m){return l.isReadonly!==m?b_(l.keyType,l.type,m,l.declaration):l}function kte(l,m,D,C){const A=L5(l,D);return A.value=m,A.regularType=C||A,A}function U9(l){if(l.flags&2976){if(!l.freshType){const m=kte(l.flags,l.value,l.symbol,l);m.freshType=m,l.freshType=m}return l.freshType}return l}function Wh(l){return l.flags&2976?l.regularType:l.flags&1048576?l.regularType||(l.regularType=cl(l,Wh)):l}function Tb(l){return!!(l.flags&2976)&&l.freshType===l}function cf(l){let m;return Ai.get(l)||(Ai.set(l,m=kte(128,l)),m)}function Sg(l){let m;return Dn.get(l)||(Dn.set(l,m=kte(256,l)),m)}function Oge(l){let m;const D=P2(l);return bn.get(D)||(bn.set(D,m=kte(2048,l)),m)}function Ati(l,m,D){let C;const A=`${m}${typeof l=="string"?"@":"#"}${l}`,w=1024|(typeof l=="string"?128:256);return iu.get(A)||(iu.set(A,C=kte(w,l,D)),C)}function Sti(l){if(l.literal.kind===106)return it;const m=sr(l);return m.resolvedType||(m.resolvedType=Wh(ka(l.literal))),m.resolvedType}function Bti(l){const m=L5(8192,l);return m.escapedName=`__@${m.symbol.escapedName}@${qo(m.symbol)}`,m}function FPe(l){if(Gbe(l)){const m=uq(l)?_m(l.left):_m(l);if(m){const D=$r(m);return D.uniqueESSymbolType||(D.uniqueESSymbolType=Bti(m))}}return tr}function wti(l){const m=ef(l,!1,!1),D=m&&m.parent;if(D&&(gr(D)||D.kind===264)&&!To(m)&&(!dc(m)||k2(l,m.body)))return C4(Du(D)).thisType;if(D&&Cs(D)&&tu(D.parent)&&Ql(D.parent)===6)return C4(_m(D.parent.left).parent).thisType;const C=l.flags&16777216?bv(l):void 0;return C&&F0(C)&&tu(C.parent)&&Ql(C.parent)===3?C4(_m(C.parent.left).parent).thisType:FE(m)&&k2(l,m.body)?C4(Du(m)).thisType:(pt(l,F.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),jt)}function jge(l){const m=sr(l);return m.resolvedType||(m.resolvedType=wti(l)),m.resolvedType}function T1t(l){return Br(Fte(l.type)||l.type)}function Fte(l){switch(l.kind){case 196:return Fte(l.type);case 189:if(l.elements.length===1&&(l=l.elements[0],l.kind===191||l.kind===202&&l.dotDotDotToken))return Fte(l.type);break;case 188:return l.elementType}}function Tti(l){const m=sr(l);return m.resolvedType||(m.resolvedType=l.dotDotDotToken?T1t(l):Od(Br(l.type),!0,!!l.questionToken))}function Br(l){return lei(L1t(l),l)}function L1t(l){switch(l.kind){case 133:case 319:case 320:return me;case 159:return on;case 154:return ct;case 150:return Qt;case 163:return Ti;case 136:return Er;case 155:return tr;case 116:return da;case 157:return te;case 106:return it;case 146:return Wu;case 151:return l.flags&524288&&!Ae?me:rs;case 141:return Yi;case 197:case 110:return jge(l);case 201:return Sti(l);case 183:return uPe(l);case 182:return l.assertsModifier?da:Er;case 233:return uPe(l);case 186:return Kdt(l);case 188:case 189:return Oei(l);case 190:return Kei(l);case 192:return Zei(l);case 193:return uti(l);case 321:return cei(l);case 323:return Od(Br(l.type));case 202:return Tti(l);case 196:case 322:case 316:return Br(l.type);case 191:return T1t(l);case 325:return S0i(l);case 184:case 185:case 187:case 329:case 324:case 330:return w1t(l);case 198:return cti(l);case 199:return y1t(l);case 200:return vPe(l);case 194:return bti(l);case 195:return yti(l);case 203:return dti(l);case 205:return kti(l);case 80:case 166:case 211:const m=Up(l);return m?q0(m):jt;default:return jt}}function Vge(l,m,D){if(l&&l.length)for(let C=0;CC.typeParameter),Kt(D,()=>on))}function SC(l,m){return l?Kge(4,l,m):m}function Pti(l,m){return l?Kge(5,l,m):m}function q9(l,m,D){return D?Kge(5,Lb(l,m),D):Lb(l,m)}function lW(l,m,D){return l?Kge(5,l,Lb(m,D)):Lb(m,D)}function Mti(l){return!l.constraint&&!ePe(l)||l.constraint===ll?l:l.restrictiveInstantiation||(l.restrictiveInstantiation=O1(l.symbol),l.restrictiveInstantiation.constraint=ll,l.restrictiveInstantiation)}function Wge(l){const m=O1(l.symbol);return m.target=l,m}function zti(l,m){return xte(l.kind,l.parameterName,l.parameterIndex,Da(l.type,m))}function oT(l,m,D){let C;if(l.typeParameters&&!D){C=Kt(l.typeParameters,Wge),m=SC(Af(l.typeParameters,C),m);for(const w of C)w.mapper=m}const A=b3(l.declaration,C,l.thisParameter&&SPe(l.thisParameter,m),Vge(l.parameters,m,SPe),void 0,void 0,l.minArgumentCount,l.flags&167);return A.target=l,A.mapper=m,A}function SPe(l,m){const D=$r(l);if(D.type&&!TC(D.type)&&(!(l.flags&65536)||D.writeType&&!TC(D.writeType)))return l;Wl(l)&1&&(l=D.target,m=SC(D.mapper,m));const C=js(l.flags,l.escapedName,1|Wl(l)&53256);return C.declarations=l.declarations,C.parent=l.parent,C.links.target=l,C.links.mapper=m,l.valueDeclaration&&(C.valueDeclaration=l.valueDeclaration),D.nameType&&(C.links.nameType=D.nameType),C}function Iti(l,m,D,C){const A=l.objectFlags&4||l.objectFlags&8388608?l.node:l.symbol.declarations[0],w=sr(A),I=l.objectFlags&4?w.resolvedType:l.objectFlags&64?l.target:l;let U=w.outerTypeParameters;if(!U){let Z=Ez(A,!0);if(FE(A)){const Fe=Sdt(A);Z=kn(Z,Fe)}U=Z||_t;const ce=l.objectFlags&8388612?[A]:l.symbol.declarations;U=(I.objectFlags&8388612||I.symbol.flags&8192||I.symbol.flags&2048)&&!I.aliasTypeArguments?ei(U,Fe=>qe(ce,Te=>Ste(Fe,Te))):U,w.outerTypeParameters=U}if(U.length){const Z=SC(l.mapper,m),ce=Kt(U,zt=>y6(zt,Z)),Fe=D||l.aliasSymbol,Te=D?C:j5(l.aliasTypeArguments,m),Je=cp(ce)+W9(Fe,Te);I.instantiations||(I.instantiations=new Map,I.instantiations.set(cp(U)+W9(I.aliasSymbol,I.aliasTypeArguments),I));let ut=I.instantiations.get(Je);if(!ut){const zt=Af(U,ce);ut=I.objectFlags&4?tPe(l.target,l.node,zt,Fe,Te):I.objectFlags&32?M1t(I,zt,Fe,Te):wPe(I,zt,Fe,Te),I.instantiations.set(Je,ut);const fi=$u(ut);if(ut.flags&3899393&&!(fi&524288)){const Ki=qe(ce,TC);$u(ut)&524288||(fi&52?ut.objectFlags|=524288|(Ki?1048576:0):ut.objectFlags|=Ki?0:524288)}}return ut}return l}function Rti(l){return!(l.parent.kind===183&&l.parent.typeArguments&&l===l.parent.typeName||l.parent.kind===205&&l.parent.typeArguments&&l===l.parent.qualifier)}function Ste(l,m){if(l.symbol&&l.symbol.declarations&&l.symbol.declarations.length===1){const C=l.symbol.declarations[0].parent;for(let A=m;A!==C;A=A.parent)if(!A||A.kind===241||A.kind===194&&ro(A.extendsType,D))return!0;return D(m)}return!0;function D(C){switch(C.kind){case 197:return!!l.isThisType;case 80:return!l.isThisType&&U_(C)&&Rti(C)&&L1t(C)===l;case 186:const A=C.exprName,w=dm(A);if(!w2(w)){const I=$p(w),U=l.symbol.declarations[0],Z=U.kind===168?U.parent:l.isThisType?U:void 0;if(I.declarations&&Z)return qe(I.declarations,ce=>k2(ce,Z))||qe(C.typeArguments,D)}return!0;case 174:case 173:return!C.type&&!!C.body||qe(C.typeParameters,D)||qe(C.parameters,D)||!!C.type&&D(C.type)}return!!ro(C,D)}}function Gge(l){const m=sp(l);if(m.flags&4194304){const D=b6(m.type);if(D.flags&262144)return D}}function M1t(l,m,D,C){const A=Gge(l);if(A){const w=Da(A,m);if(A!==w)return Rht(Fg(w),I=>{if(I.flags&61603843&&I!==_i&&!Lt(I)){if(!l.declaration.nameType){let U;if(F4(I)||I.flags&1&&_C(A,4)<0&&(U=uh(A))&&Xm(U,Nb))return jti(I,l,q9(A,I,m));if(H5(I))return Oti(I,l,A,m);if(_s(I))return Vti(I,l,q9(A,I,m))}return wPe(l,q9(A,I,m))}return I},D,C)}return Da(sp(l),m)===_i?_i:wPe(l,m,D,C)}function BPe(l,m){return m&1?!0:m&2?!1:l}function Oti(l,m,D,C){const A=l.target.elementFlags,w=Kt(yC(l),(U,Z)=>{const ce=A[Z]&8?U:A[Z]&4?j1(U):Ag([U],[A[Z]]);return ce===D?m:M1t(m,q9(D,ce,C))}),I=BPe(l.target.readonly,v_(m));return Ag(w,Kt(w,U=>8),I)}function jti(l,m,D){const C=z1t(m,Qt,!0,D);return Lt(C)?jt:j1(C,BPe(Az(l),v_(m)))}function Vti(l,m,D){const C=l.target.elementFlags,A=Kt(yC(l),(Z,ce)=>z1t(m,cf(""+ce),!!(C[ce]&2),D)),w=v_(m),I=w&4?Kt(C,Z=>Z&1?2:Z):w&8?Kt(C,Z=>Z&2?1:Z):C,U=BPe(l.target.readonly,w);return Ft(A,jt)?jt:Ag(A,I,U,l.target.labeledElementDeclarations)}function z1t(l,m,D,C){const A=lW(C,yg(l),m),w=Da(_D(l.target||l),A),I=v_(l);return fe&&I&4&&!Ol(w,49152)?A6(w,!0):fe&&I&8&&D?hp(w,524288):w}function wPe(l,m,D,C){const A=_4(l.objectFlags&-1572865|64,l.symbol);if(l.objectFlags&32){A.declaration=l.declaration;const w=yg(l),I=Wge(w);A.typeParameter=I,m=SC(Lb(w,I),m),I.mapper=m}return l.objectFlags&8388608&&(A.node=l.node),A.target=l,A.mapper=m,A.aliasSymbol=D||l.aliasSymbol,A.aliasTypeArguments=D?C:j5(l.aliasTypeArguments,m),A.objectFlags|=A.aliasTypeArguments?Bge(A.aliasTypeArguments):0,A}function TPe(l,m,D,C){const A=l.root;if(A.outerTypeParameters){const w=Kt(A.outerTypeParameters,Z=>y6(Z,m)),I=cp(w)+W9(D,C);let U=A.instantiations.get(I);if(!U){const Z=Af(A.outerTypeParameters,w),ce=A.checkType,Fe=A.isDistributive?y6(ce,Z):void 0;U=Fe&&ce!==Fe&&Fe.flags&1179648?Rht(Fg(Fe),Te=>CPe(A,q9(ce,Te,Z)),D,C):CPe(A,Z,D,C),A.instantiations.set(I,U)}return U}return l}function Da(l,m){return l&&m?I1t(l,m,void 0,void 0):l}function I1t(l,m,D,C){var A;if(!TC(l))return l;if(j===100||z>=5e6)return(A=$n)==null||A.instant($n.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:l.id,instantiationDepth:j,instantiationCount:z}),pt(K,F.Type_instantiation_is_excessively_deep_and_possibly_infinite),jt;M++,z++,j++;const w=Hti(l,m,D,C);return j--,w}function Hti(l,m,D,C){const A=l.flags;if(A&262144)return y6(l,m);if(A&524288){const w=l.objectFlags;if(w&52){if(w&4&&!l.node){const I=l.resolvedTypeArguments,U=j5(I,m);return U!==I?dPe(l.target,U):l}return w&1024?Kti(l,m):Iti(l,m,D,C)}return l}if(A&3145728){const w=l.flags&1048576?l.origin:void 0,I=w&&w.flags&3145728?w.types:l.types,U=j5(I,m);if(U===I&&D===l.aliasSymbol)return l;const Z=D||l.aliasSymbol,ce=D?C:j5(l.aliasTypeArguments,m);return A&2097152||w&&w.flags&2097152?Es(U,Z,ce):ir(U,1,Z,ce)}if(A&4194304)return y_(Da(l.type,m));if(A&134217728)return _F(l.texts,j5(l.types,m));if(A&268435456)return G9(l.symbol,Da(l.type,m));if(A&8388608){const w=D||l.aliasSymbol,I=D?C:j5(l.aliasTypeArguments,m);return Uf(Da(l.objectType,m),Da(l.indexType,m),l.accessFlags,void 0,w,I)}if(A&16777216)return TPe(l,SC(l.mapper,m),D,C);if(A&33554432){const w=Da(l.baseType,m),I=Da(l.constraint,m);return w.flags&8650752&&yz(I)?iPe(w,I):I.flags&3||hs(DF(w),DF(I))?w:w.flags&8650752?iPe(w,I):Es([I,w])}return l}function Kti(l,m){const D=Da(l.mappedType,m);if(!($u(D)&32))return l;const C=Da(l.constraintType,m);if(!(C.flags&4194304))return l;const A=ght(Da(l.source,m),D,C);return A||l}function Jge(l){return l.flags&402915327?l:l.permissiveInstantiation||(l.permissiveInstantiation=Da(l,cd))}function DF(l){return l.flags&402915327?l:(l.restrictiveInstantiation||(l.restrictiveInstantiation=Da(l,Sl),l.restrictiveInstantiation.restrictiveInstantiation=l.restrictiveInstantiation),l.restrictiveInstantiation)}function Wti(l,m){return b_(l.keyType,Da(l.type,m),l.isReadonly,l.declaration)}function y4(l){switch(H.assert(l.kind!==174||Np(l)),l.kind){case 218:case 219:case 174:case 262:return R1t(l);case 210:return qe(l.properties,y4);case 209:return qe(l.elements,y4);case 227:return y4(l.whenTrue)||y4(l.whenFalse);case 226:return(l.operatorToken.kind===57||l.operatorToken.kind===61)&&(y4(l.left)||y4(l.right));case 303:return y4(l.initializer);case 217:return y4(l.expression);case 292:return qe(l.properties,y4)||rE(l.parent)&&qe(l.parent.parent.children,y4);case 291:{const{initializer:m}=l;return!!m&&y4(m)}case 294:{const{expression:m}=l;return!!m&&y4(m)}}return!1}function R1t(l){return lZ(l)||Gti(l)}function Gti(l){return l.typeParameters||J4(l)||!l.body?!1:l.body.kind!==241?y4(l.body):!!v2(l.body,m=>!!m.expression&&y4(m.expression))}function $ge(l){return(M2(l)||Np(l))&&R1t(l)}function O1t(l){if(l.flags&524288){const m=kg(l);if(m.constructSignatures.length||m.callSignatures.length){const D=_4(16,l.symbol);return D.members=m.members,D.properties=m.properties,D.callSignatures=_t,D.constructSignatures=_t,D.indexInfos=_t,D}}else if(l.flags&2097152)return Es(Kt(l.types,O1t));return l}function vD(l,m){return CE(l,m,gm)}function cW(l,m){return CE(l,m,gm)?-1:0}function LPe(l,m){return CE(l,m,Gf)?-1:0}function Jti(l,m){return CE(l,m,d_)?-1:0}function k6(l,m){return CE(l,m,d_)}function j1t(l,m){return CE(l,m,m4)}function hs(l,m){return CE(l,m,Gf)}function BC(l,m){return l.flags&1048576?ye(l.types,D=>BC(D,m)):m.flags&1048576?qe(m.types,D=>BC(l,D)):l.flags&2097152?qe(l.types,D=>BC(D,m)):l.flags&58982400?BC(Hh(l)||on,m):bD(m)?!!(l.flags&67633152):m===Ve?!!(l.flags&67633152)&&!bD(l):m===si?!!(l.flags&524288)&&fMe(l):j9(l,Qw(m))||F4(m)&&!Az(m)&&BC(l,Bo)}function Uge(l,m){return CE(l,m,jh)}function Bte(l,m){return Uge(l,m)||Uge(m,l)}function Fh(l,m,D,C,A,w){return k4(l,m,Gf,D,C,A,w)}function F6(l,m,D,C,A,w){return NPe(l,m,Gf,D,C,A,w,void 0)}function NPe(l,m,D,C,A,w,I,U){return CE(l,m,D)?!0:!C||!dW(A,l,m,D,w,I,U)?k4(l,m,D,C,w,I,U):!1}function V1t(l){return!!(l.flags&16777216||l.flags&2097152&&qe(l.types,V1t))}function dW(l,m,D,C,A,w,I){if(!l||V1t(D))return!1;if(!k4(m,D,C,void 0)&&$ti(l,m,D,C,A,w,I))return!0;switch(l.kind){case 234:if(!fb(l))break;case 294:case 217:return dW(l.expression,m,D,C,A,w,I);case 226:switch(l.operatorToken.kind){case 64:case 28:return dW(l.right,m,D,C,A,w,I)}break;case 210:return tii(l,m,D,C,w,I);case 209:return Xti(l,m,D,C,w,I);case 292:return Qti(l,m,D,C,w,I);case 219:return Uti(l,m,D,C,w,I)}return!1}function $ti(l,m,D,C,A,w,I){const U=mo(m,0),Z=mo(m,1);for(const ce of[Z,U])if(qe(ce,Fe=>{const Te=qs(Fe);return!(Te.flags&131073)&&k4(Te,D,C,void 0)})){const Fe=I||{};Fh(m,D,l,A,w,Fe);const Te=Fe.errors[Fe.errors.length-1];return ps(Te,Bu(l,ce===Z?F.Did_you_mean_to_use_new_with_this_expression:F.Did_you_mean_to_call_this_expression)),!0}return!1}function Uti(l,m,D,C,A,w){if(fo(l.body)||qe(l.parameters,HU))return!1;const I=SF(m);if(!I)return!1;const U=mo(D,0);if(!S(U))return!1;const Z=l.body,ce=qs(I),Fe=ir(Kt(U,qs));if(!k4(ce,Fe,C,void 0)){const Te=Z&&dW(Z,ce,Fe,C,void 0,A,w);if(Te)return Te;const Je=w||{};if(k4(ce,Fe,C,Z,void 0,A,Je),Je.errors)return D.symbol&&S(D.symbol.declarations)&&ps(Je.errors[Je.errors.length-1],Bu(D.symbol.declarations[0],F.The_expected_type_comes_from_the_return_type_of_this_signature)),!(yd(l)&2)&&!he(ce,"then")&&k4(oie(ce),Fe,C,void 0)&&ps(Je.errors[Je.errors.length-1],Bu(l,F.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function H1t(l,m,D){const C=C6(m,D);if(C)return C;if(m.flags&1048576){const A=Z1t(l,m);if(A)return C6(A,D)}}function K1t(l,m){Jte(l,m,!1);const D=Rz(l,1);return vW(),D}function wte(l,m,D,C,A,w){let I=!1;for(const U of l){const{errorNode:Z,innerExpression:ce,nameType:Fe,errorMessage:Te}=U;let Je=H1t(m,D,Fe);if(!Je||Je.flags&8388608)continue;let ut=C6(m,Fe);if(!ut)continue;const zt=Mge(Fe,void 0);if(!k4(ut,Je,C,void 0)){const fi=ce&&dW(ce,ut,Je,C,void 0,A,w);if(I=!0,!fi){const Ki=w||{},cn=ce?K1t(ce,ut):ut;if(je&&Zge(cn,Je)){const uu=Bu(Z,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(cn),gn(Je));Os.add(uu),Ki.errors=[uu]}else{const uu=!!(zt&&($o(D,zt)||Xt).flags&16777216),En=!!(zt&&($o(m,zt)||Xt).flags&16777216);Je=S6(Je,uu),ut=S6(ut,uu&&En),k4(cn,Je,C,Z,Te,A,Ki)&&cn!==ut&&k4(ut,Je,C,Z,Te,A,Ki)}if(Ki.errors){const uu=Ki.errors[Ki.errors.length-1],En=q4(Fe)?Z4(Fe):void 0,Ii=En!==void 0?$o(D,En):void 0;let Pn=!1;if(!Ii){const Cn=tW(D,Fe);Cn&&Cn.declaration&&!In(Cn.declaration).hasNoDefaultLib&&(Pn=!0,ps(uu,Bu(Cn.declaration,F.The_expected_type_comes_from_this_index_signature)))}if(!Pn&&(Ii&&S(Ii.declarations)||D.symbol&&S(D.symbol.declarations))){const Cn=Ii&&S(Ii.declarations)?Ii.declarations[0]:D.symbol.declarations[0];In(Cn).hasNoDefaultLib||ps(uu,Bu(Cn,F.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,En&&!(Fe.flags&8192)?Yr(En):gn(Fe),gn(D)))}}}}}return I}function qti(l,m,D,C,A,w){const I=zc(D,nEe),U=zc(D,Fe=>!nEe(Fe)),Z=U!==Wu?Tze(13,0,U,void 0):void 0;let ce=!1;for(let Fe=l.next();!Fe.done;Fe=l.next()){const{errorNode:Te,innerExpression:Je,nameType:ut,errorMessage:zt}=Fe.value;let fi=Z;const Ki=I!==Wu?H1t(m,I,ut):void 0;if(Ki&&!(Ki.flags&8388608)&&(fi=Z?ir([Z,Ki]):Ki),!fi)continue;let cn=C6(m,ut);if(!cn)continue;const uu=Mge(ut,void 0);if(!k4(cn,fi,C,void 0)){const En=Je&&dW(Je,cn,fi,C,void 0,A,w);if(ce=!0,!En){const Ii=w||{},Pn=Je?K1t(Je,cn):cn;if(je&&Zge(Pn,fi)){const Cn=Bu(Te,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(Pn),gn(fi));Os.add(Cn),Ii.errors=[Cn]}else{const Cn=!!(uu&&($o(I,uu)||Xt).flags&16777216),Sn=!!(uu&&($o(m,uu)||Xt).flags&16777216);fi=S6(fi,Cn),cn=S6(cn,Cn&&Sn),k4(Pn,fi,C,Te,zt,A,Ii)&&Pn!==cn&&k4(cn,fi,C,Te,zt,A,Ii)}}}}return ce}function*Zti(l){if(S(l.properties))for(const m of l.properties)j7(m)||NMe(aV(m.name))||(yield{errorNode:m.name,innerExpression:m.initializer,nameType:cf(aV(m.name))})}function*Yti(l,m){if(!S(l.children))return;let D=0;for(let C=0;C1;let Ki,cn;if(oPe(!1)!==Ka){const En=t1t(me);Ki=zc(ut,Ii=>hs(Ii,En)),cn=zc(ut,Ii=>!hs(Ii,En))}else Ki=zc(ut,nEe),cn=zc(ut,En=>!nEe(En));if(fi){if(Ki!==Wu){const En=Ag(SEe(ce,0)),Ii=Yti(ce,Z);I=qti(Ii,En,Ki,C,A,w)||I}else if(!CE(Uf(m,Je),ut,C)){I=!0;const En=pt(ce.openingElement.tagName,F.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Te,gn(ut));w&&w.skipLogging&&(w.errors||(w.errors=[])).push(En)}}else if(cn!==Wu){const En=zt[0],Ii=W1t(En,Je,Z);Ii&&(I=wte(function*(){yield Ii}(),m,D,C,A,w)||I)}else if(!CE(Uf(m,Je),ut,C)){I=!0;const En=pt(ce.openingElement.tagName,F.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Te,gn(ut));w&&w.skipLogging&&(w.errors||(w.errors=[])).push(En)}}return I;function Z(){if(!U){const ce=Vc(l.parent.tagName),Fe=Ute(FF(l)),Te=Fe===void 0?"children":Yr(Fe),Je=Uf(D,cf(Te)),ut=F._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;U={...ut,key:"!!ALREADY FORMATTED!!",message:_le(ut,ce,Te,gn(Je))}}return U}}function*G1t(l,m){const D=S(l.elements);if(D)for(let C=0;CZ:AE(l)>Z))return C&&!(D&8)&&A(F.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,AE(l),Z),0;l.typeParameters&&l.typeParameters!==m.typeParameters&&(m=nei(m),l=Vft(l,m,void 0,I));const Fe=vm(l),Te=FW(l),Je=FW(m);(Te||Je)&&Da(Te||Je,U);const ut=m.declaration?m.declaration.kind:0,zt=!(D&3)&&xe&&ut!==174&&ut!==173&&ut!==176;let fi=-1;const Ki=bC(l);if(Ki&&Ki!==da){const En=bC(m);if(En){const Ii=!zt&&I(Ki,En,!1)||I(En,Ki,C);if(!Ii)return C&&A(F.The_this_types_of_each_signature_are_incompatible),0;fi&=Ii}}const cn=Te||Je?Math.min(Fe,Z):Math.max(Fe,Z),uu=Te||Je?cn-1:-1;for(let En=0;En=AE(l)&&En=3&&m[0].flags&32768&&m[1].flags&65536&&qe(m,bD)?67108864:0)}return!!(l.objectFlags&67108864)}return!1}function kz(l){return!!((l.flags&1048576?l.types[0]:l).flags&32768)}function $1t(l){return l.flags&524288&&!Qm(l)&&n0(l).length===0&&yh(l).length===1&&!!y3(l,ct)||l.flags&3145728&&ye(l.types,$1t)||!1}function zPe(l,m,D){const C=l.flags&8?lf(l):l,A=m.flags&8?lf(m):m;if(C===A)return!0;if(C.escapedName!==A.escapedName||!(C.flags&256)||!(A.flags&256))return!1;const w=qo(C)+","+qo(A),I=tC.get(w);if(I!==void 0&&!(!(I&4)&&I&2&&D))return!!(I&1);const U=Jn(A);for(const Z of n0(Jn(C)))if(Z.flags&8){const ce=$o(U,Z.escapedName);if(!ce||!(ce.flags&8))return D?(D(F.Property_0_is_missing_in_type_1,sc(Z),gn(q0(A),void 0,64)),tC.set(w,6)):tC.set(w,2),!1}return tC.set(w,1),!0}function hW(l,m,D,C){const A=l.flags,w=m.flags;return w&1||A&131072||l===_i||w&2&&!(D===m4&&A&1)?!0:w&131072?!1:!!(A&402653316&&w&4||A&128&&A&1024&&w&128&&!(w&1024)&&l.value===m.value||A&296&&w&8||A&256&&A&1024&&w&256&&!(w&1024)&&l.value===m.value||A&2112&&w&64||A&528&&w&16||A&12288&&w&4096||A&32&&w&32&&l.symbol.escapedName===m.symbol.escapedName&&zPe(l.symbol,m.symbol,C)||A&1024&&w&1024&&(A&1048576&&w&1048576&&zPe(l.symbol,m.symbol,C)||A&2944&&w&2944&&l.value===m.value&&zPe(l.symbol,m.symbol,C))||A&32768&&(!fe&&!(w&3145728)||w&49152)||A&65536&&(!fe&&!(w&3145728)||w&65536)||A&524288&&w&67108864&&!(D===m4&&bD(l)&&!($u(l)&8192))||(D===Gf||D===jh)&&(A&1||A&8&&(w&32||w&256&&w&1024)||A&256&&!(A&1024)&&(w&32||w&256&&w&1024&&l.value===m.value)||rii(m)))}function CE(l,m,D){if(Tb(l)&&(l=l.regularType),Tb(m)&&(m=m.regularType),l===m)return!0;if(D!==gm){if(D===jh&&!(m.flags&131072)&&hW(m,l,D)||hW(l,m,D))return!0}else if(!((l.flags|m.flags)&61865984)){if(l.flags!==m.flags)return!1;if(l.flags&67358815)return!0}if(l.flags&524288&&m.flags&524288){const C=D.get(Xge(l,m,0,D,!1));if(C!==void 0)return!!(C&1)}return l.flags&469499904||m.flags&469499904?k4(l,m,D,void 0):!1}function U1t(l,m){return $u(l)&2048&&NMe(m.escapedName)}function Tte(l,m){for(;;){const D=Tb(l)?l.regularType:H5(l)?oii(l,m):$u(l)&4?l.node?I5(l.target,M0(l)):WPe(l)||l:l.flags&3145728?aii(l,m):l.flags&33554432?m?l.baseType:nPe(l):l.flags&25165824?xD(l,m):l;if(D===l)return D;l=D}}function aii(l,m){const D=Fg(l);if(D!==l)return D;if(l.flags&2097152&&qe(l.types,bD)){const C=Mu(l.types,A=>Tte(A,m));if(C!==l.types)return Es(C)}return l}function oii(l,m){const D=yC(l),C=Mu(D,A=>A.flags&25165824?xD(A,m):A);return D!==C?hPe(l.target,C):l}function k4(l,m,D,C,A,w,I){var U;let Z,ce,Fe,Te,Je,ut,zt=0,fi=0,Ki=0,cn=0,uu=!1,En=0,Ii=0,Pn,Cn,Sn=16e6-D.size>>3;H.assert(D!==gm||!C,"no error reporting in identity checking");const _n=qn(l,m,3,!!C,A);if(Cn&&co(),uu){const kt=Xge(l,m,0,D,!1);D.set(kt,6),(U=$n)==null||U.instant($n.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:l.id,targetId:m.id,depth:fi,targetDepth:Ki});const $t=Sn<=0?F.Excessive_complexity_comparing_types_0_and_1:F.Excessive_stack_depth_comparing_types_0_and_1,Mi=pt(C||K,$t,gn(l),gn(m));I&&(I.errors||(I.errors=[])).push(Mi)}else if(Z){if(w){const Mi=w();Mi&&(eke(Mi,Z),Z=Mi)}let kt;if(A&&C&&!_n&&l.symbol){const Mi=$r(l.symbol);if(Mi.originatingImport&&!cm(Mi.originatingImport)&&k4(Jn(Mi.target),m,D,void 0)){const xu=Bu(Mi.originatingImport,F.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);kt=Ei(kt,xu)}}const $t=Z3(In(C),C,Z,kt);ce&&ps($t,...ce),I&&(I.errors||(I.errors=[])).push($t),(!I||!I.skipLogging)&&Os.add($t)}return C&&I&&I.skipLogging&&_n===0&&H.assert(!!I.errors,"missed opportunity to interact with error."),_n!==0;function fu(kt){Z=kt.errorInfo,Pn=kt.lastSkippedInfo,Cn=kt.incompatibleStack,En=kt.overrideNextErrorInfo,Ii=kt.skipParentCounter,ce=kt.relatedInfo}function ao(){return{errorInfo:Z,lastSkippedInfo:Pn,incompatibleStack:Cn==null?void 0:Cn.slice(),overrideNextErrorInfo:En,skipParentCounter:Ii,relatedInfo:ce==null?void 0:ce.slice()}}function po(kt,...$t){En++,Pn=void 0,(Cn||(Cn=[])).push([kt,...$t])}function co(){const kt=Cn||[];Cn=void 0;const $t=Pn;if(Pn=void 0,kt.length===1){Fa(...kt[0]),$t&&dn(void 0,...$t);return}let Mi="";const wn=[];for(;kt.length;){const[xu,...nn]=kt.pop();switch(xu.code){case F.Types_of_property_0_are_incompatible.code:{Mi.indexOf("new ")===0&&(Mi=`(${Mi})`);const cu=""+nn[0];Mi.length===0?Mi=`${cu}`:Tm(cu,Is(ae))?Mi=`${Mi}.${cu}`:cu[0]==="["&&cu[cu.length-1]==="]"?Mi=`${Mi}${cu}`:Mi=`${Mi}[${cu}]`;break}case F.Call_signature_return_types_0_and_1_are_incompatible.code:case F.Construct_signature_return_types_0_and_1_are_incompatible.code:case F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Mi.length===0){let cu=xu;xu.code===F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?cu=F.Call_signature_return_types_0_and_1_are_incompatible:xu.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(cu=F.Construct_signature_return_types_0_and_1_are_incompatible),wn.unshift([cu,nn[0],nn[1]])}else{const cu=xu.code===F.Construct_signature_return_types_0_and_1_are_incompatible.code||xu.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",xr=xu.code===F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||xu.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Mi=`${cu}${Mi}(${xr})`}break}case F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{wn.unshift([F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,nn[0],nn[1]]);break}case F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{wn.unshift([F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,nn[0],nn[1],nn[2]]);break}default:return H.fail(`Unhandled Diagnostic: ${xu.code}`)}}Mi?Fa(Mi[Mi.length-1]===")"?F.The_types_returned_by_0_are_incompatible_between_these_types:F.The_types_of_0_are_incompatible_between_these_types,Mi):wn.shift();for(const[xu,...nn]of wn){const cu=xu.elidedInCompatabilityPyramid;xu.elidedInCompatabilityPyramid=!1,Fa(xu,...nn),xu.elidedInCompatabilityPyramid=cu}$t&&dn(void 0,...$t)}function Fa(kt,...$t){H.assert(!!C),Cn&&co(),!kt.elidedInCompatabilityPyramid&&(Ii===0?Z=uo(Z,kt,...$t):Ii--)}function rh(kt,...$t){Fa(kt,...$t),Ii++}function e4(kt){H.assert(!!Z),ce?ce.push(kt):ce=[kt]}function dn(kt,$t,Mi){Cn&&co();const[wn,xu]=d6($t,Mi);let nn=$t,cu=wn;if(fW($t)&&!IPe(Mi)&&(nn=yD($t),H.assert(!hs(nn,Mi),"generalized source shouldn't be assignable"),cu=N5(nn)),(Mi.flags&8388608&&!($t.flags&8388608)?Mi.objectType.flags:Mi.flags)&262144&&Mi!==$&&Mi!==tt){const Tr=Hh(Mi);let Ya;Tr&&(hs(nn,Tr)||(Ya=hs($t,Tr)))?Fa(F._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Ya?wn:cu,xu,gn(Tr)):(Z=void 0,Fa(F._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,xu,cu))}if(kt)kt===F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&je&&q1t($t,Mi).length&&(kt=F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(D===jh)kt=F.Type_0_is_not_comparable_to_type_1;else if(wn===xu)kt=F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(je&&q1t($t,Mi).length)kt=F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if($t.flags&128&&Mi.flags&1048576){const Tr=fri($t,Mi);if(Tr){Fa(F.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,cu,xu,gn(Tr));return}}kt=F.Type_0_is_not_assignable_to_type_1}Fa(kt,cu,xu)}function Gn(kt,$t){const Mi=oF(kt.symbol)?gn(kt,kt.symbol.valueDeclaration):gn(kt),wn=oF($t.symbol)?gn($t,$t.symbol.valueDeclaration):gn($t);(ic===kt&&ct===$t||hc===kt&&Qt===$t||xl===kt&&Er===$t||Zdt()===kt&&tr===$t)&&Fa(F._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,wn,Mi)}function qr(kt,$t,Mi){return _s(kt)?kt.target.readonly&&Mte($t)?(Mi&&Fa(F.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(kt),gn($t)),!1):Nb($t):Az(kt)&&Mte($t)?(Mi&&Fa(F.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(kt),gn($t)),!1):_s($t)?F4(kt):!0}function Co(kt,$t,Mi){return qn(kt,$t,3,Mi)}function qn(kt,$t,Mi=3,wn=!1,xu,nn=0){if(kt===$t)return-1;if(kt.flags&524288&&$t.flags&402784252)return D===jh&&!($t.flags&131072)&&hW($t,kt,D)||hW(kt,$t,D,wn?Fa:void 0)?-1:(wn&&As(kt,$t,kt,$t,xu),0);const cu=Tte(kt,!1);let xr=Tte($t,!0);if(cu===xr)return-1;if(D===gm)return cu.flags!==xr.flags?0:cu.flags&67358815?-1:(B0(cu,xr),pr(cu,xr,!1,0,Mi));if(cu.flags&262144&&pF(cu)===xr)return-1;if(cu.flags&470302716&&xr.flags&1048576){const Tr=xr.types,Ya=Tr.length===2&&Tr[0].flags&98304?Tr[1]:Tr.length===3&&Tr[0].flags&98304&&Tr[1].flags&98304?Tr[2]:void 0;if(Ya&&!(Ya.flags&98304)&&(xr=Tte(Ya,!0),cu===xr))return-1}if(D===jh&&!(xr.flags&131072)&&hW(xr,cu,D)||hW(cu,xr,D,wn?Fa:void 0))return-1;if(cu.flags&469499904||xr.flags&469499904){if(!(nn&2)&&LC(cu)&&$u(cu)&8192&&Zs(cu,xr,wn))return wn&&dn(xu,cu,$t.aliasSymbol?$t:xr),0;const Ya=(D!==jh||Bg(cu))&&!(nn&2)&&cu.flags&405405692&&cu!==Ve&&xr.flags&2621440&&Y1t(xr)&&(n0(cu).length>0||a_e(cu)),Io=!!($u(cu)&2048);if(Ya&&!lii(cu,xr,Io)){if(wn){const ho=gn(kt.aliasSymbol?kt:cu),Xo=gn($t.aliasSymbol?$t:xr),w0=mo(cu,0),Ks=mo(cu,1);w0.length>0&&qn(qs(w0[0]),xr,1,!1)||Ks.length>0&&qn(qs(Ks[0]),xr,1,!1)?Fa(F.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,ho,Xo):Fa(F.Type_0_has_no_properties_in_common_with_type_1,ho,Xo)}return 0}B0(cu,xr);const vr=cu.flags&1048576&&cu.types.length<4&&!(xr.flags&1048576)||xr.flags&1048576&&xr.types.length<4&&!(cu.flags&469499904)?yc(cu,xr,wn,nn):pr(cu,xr,wn,nn,Mi);if(vr)return vr}return wn&&As(kt,$t,cu,xr,xu),0}function As(kt,$t,Mi,wn,xu){var nn,cu;const xr=!!WPe(kt),Tr=!!WPe($t);Mi=kt.aliasSymbol||xr?kt:Mi,wn=$t.aliasSymbol||Tr?$t:wn;let Ya=En>0;if(Ya&&En--,Mi.flags&524288&&wn.flags&524288){const Io=Z;qr(Mi,wn,!0),Z!==Io&&(Ya=!!Z)}if(Mi.flags&524288&&wn.flags&402784252)Gn(Mi,wn);else if(Mi.symbol&&Mi.flags&524288&&Ve===Mi)Fa(F.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if($u(Mi)&2048&&wn.flags&2097152){const Io=wn.types,Ko=Rb(Im.IntrinsicAttributes,C),vr=Rb(Im.IntrinsicClassAttributes,C);if(!Lt(Ko)&&!Lt(vr)&&(Ft(Io,Ko)||Ft(Io,vr)))return}else Z=GNe(Z,$t);if(!xu&&Ya){Pn=[Mi,wn];return}if(dn(xu,Mi,wn),Mi.flags&262144&&((cu=(nn=Mi.symbol)==null?void 0:nn.declarations)!=null&&cu[0])&&!pF(Mi)){const Io=Wge(Mi);if(Io.constraint=Da(wn,Lb(Mi,Io)),eW(Io)){const Ko=gn(wn,Mi.symbol.declarations[0]);e4(Bu(Mi.symbol.declarations[0],F.This_type_parameter_might_need_an_extends_0_constraint,Ko))}}}function B0(kt,$t){if($n&&kt.flags&3145728&&$t.flags&3145728){const Mi=kt,wn=$t;if(Mi.objectFlags&wn.objectFlags&32768)return;const xu=Mi.types.length,nn=wn.types.length;xu*nn>1e6&&$n.instant($n.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:kt.id,sourceSize:xu,targetId:$t.id,targetSize:nn,pos:C==null?void 0:C.pos,end:C==null?void 0:C.end})}}function rd(kt,$t){return ir(tn(kt,(wn,xu)=>{var nn;xu=Kh(xu);const cu=xu.flags&3145728?KNe(xu,$t):vC(xu,$t),xr=cu&&Jn(cu)||((nn=K9(xu,$t))==null?void 0:nn.type)||te;return Ei(wn,xr)},void 0)||_t)}function Zs(kt,$t,Mi){var wn;if(!Zte($t)||!Ae&&$u($t)&4096)return!1;const xu=!!($u(kt)&2048);if((D===Gf||D===jh)&&(Lz(Ve,$t)||!xu&&CD($t)))return!1;let nn=$t,cu;$t.flags&1048576&&(nn=lpt(kt,$t,qn)||mci($t),cu=nn.flags&1048576?nn.types:[nn]);for(const xr of n0(kt))if(wd(xr,kt.symbol)&&!U1t(kt,xr)){if(!zMe(nn,xr.escapedName,xu)){if(Mi){const Tr=zc(nn,Zte);if(!C)return H.fail();if(V2(C)||Ph(C)||Ph(C.parent)){xr.valueDeclaration&&aE(xr.valueDeclaration)&&In(C)===In(xr.valueDeclaration.name)&&(C=xr.valueDeclaration.name);const Ya=Sr(xr),Io=Pft(Ya,Tr),Ko=Io?Sr(Io):void 0;Ko?Fa(F.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Ya,gn(Tr),Ko):Fa(F.Property_0_does_not_exist_on_type_1,Ya,gn(Tr))}else{const Ya=((wn=kt.symbol)==null?void 0:wn.declarations)&&Hi(kt.symbol.declarations);let Io;if(xr.valueDeclaration&&Ln(xr.valueDeclaration,Ko=>Ko===Ya)&&In(Ya)===In(C)){const Ko=xr.valueDeclaration;H.assertNode(Ko,q3);const vr=Ko.name;C=vr,at(vr)&&(Io=GMe(vr,Tr))}Io!==void 0?rh(F.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Sr(xr),gn(Tr),Io):rh(F.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Sr(xr),gn(Tr))}}return!0}if(cu&&!qn(Jn(xr),rd(cu,xr.escapedName),3,Mi))return Mi&&po(F.Types_of_property_0_are_incompatible,Sr(xr)),!0}return!1}function wd(kt,$t){return kt.valueDeclaration&&$t.valueDeclaration&&kt.valueDeclaration.parent===$t.valueDeclaration}function yc(kt,$t,Mi,wn){if(kt.flags&1048576){if($t.flags&1048576){const xu=kt.origin;if(xu&&xu.flags&2097152&&$t.aliasSymbol&&Ft(xu.types,$t))return-1;const nn=$t.origin;if(nn&&nn.flags&1048576&&kt.aliasSymbol&&Ft(nn.types,kt))return-1}return D===jh?ze(kt,$t,Mi&&!(kt.flags&402784252),wn):Au(kt,$t,Mi&&!(kt.flags&402784252),wn)}if($t.flags&1048576)return Cm(gW(kt),$t,Mi&&!(kt.flags&402784252)&&!($t.flags&402784252));if($t.flags&2097152)return At(kt,$t,Mi,2);if(D===jh&&$t.flags&402784252){const xu=Mu(kt.types,nn=>nn.flags&465829888?Hh(nn)||on:nn);if(xu!==kt.types){if(kt=Es(xu),kt.flags&131072)return 0;if(!(kt.flags&2097152))return qn(kt,$t,1,!1)||qn($t,kt,1,!1)}}return ze(kt,$t,!1,1)}function Z0(kt,$t){let Mi=-1;const wn=kt.types;for(const xu of wn){const nn=Cm(xu,$t,!1);if(!nn)return 0;Mi&=nn}return Mi}function Cm(kt,$t,Mi){const wn=$t.types;if($t.flags&1048576){if(v6(wn,kt))return-1;if(D!==jh&&$u($t)&32768&&!(kt.flags&1024)&&(kt.flags&2688||(D===d_||D===m4)&&kt.flags&256)){const nn=kt===kt.regularType?kt.freshType:kt.regularType,cu=kt.flags&128?ct:kt.flags&256?Qt:kt.flags&2048?Ti:void 0;return cu&&v6(wn,cu)||nn&&v6(wn,nn)?-1:0}const xu=Fht($t,kt);if(xu){const nn=qn(kt,xu,2,!1);if(nn)return nn}}for(const xu of wn){const nn=qn(kt,xu,2,!1);if(nn)return nn}if(Mi){const xu=Z1t(kt,$t,qn);xu&&qn(kt,xu,2,!0)}return 0}function At(kt,$t,Mi,wn){let xu=-1;const nn=$t.types;for(const cu of nn){const xr=qn(kt,cu,2,Mi,void 0,wn);if(!xr)return 0;xu&=xr}return xu}function ze(kt,$t,Mi,wn){const xu=kt.types;if(kt.flags&1048576&&v6(xu,$t))return-1;const nn=xu.length;for(let cu=0;cu=cu.types.length&&nn.length%cu.types.length===0){const Io=qn(Tr,cu.types[xr%cu.types.length],3,!1,void 0,wn);if(Io){xu&=Io;continue}}const Ya=qn(Tr,$t,1,Mi,void 0,wn);if(!Ya)return 0;xu&=Ya}return xu}function Dr(kt=_t,$t=_t,Mi=_t,wn,xu){if(kt.length!==$t.length&&D===gm)return 0;const nn=kt.length<=$t.length?kt.length:$t.length;let cu=-1;for(let xr=0;xr(ho|=Ks?16:8,vr(Ks)));let Xo;return cn===3?((nn=$n)==null||nn.instant($n.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:kt.id,sourceIdStack:Je.map(Ks=>Ks.id),targetId:$t.id,targetIdStack:ut.map(Ks=>Ks.id),depth:fi,targetDepth:Ki}),Xo=3):((cu=$n)==null||cu.push($n.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:kt.id,targetId:$t.id}),Xo=Mr(kt,$t,Mi,wn),(xr=$n)==null||xr.pop()),Vo&&(Vo=vr),xu&1&&fi--,xu&2&&Ki--,cn=Ko,Xo?(Xo===-1||fi===0&&Ki===0)&&w0(Xo===-1||Xo===3):(D.set(Tr,(Mi?4:0)|2|ho),Sn--,w0(!1)),Xo;function w0(Ks){for(let jd=Io;jdxr!==kt)&&(nn=qn(cu,$t,1,!1,void 0,wn))}nn&&!(wn&2)&&$t.flags&2097152&&!Bb($t)&&kt.flags&2621440?(nn&=mn(kt,$t,Mi,void 0,!1,0),nn&&LC(kt)&&$u(kt)&8192&&(nn&=vl(kt,$t,!1,Mi,0))):nn&&Ige($t)&&!Nb($t)&&kt.flags&2097152&&Kh(kt).flags&3670016&&!qe(kt.types,cu=>cu===$t||!!($u(cu)&262144))&&(nn&=mn(kt,$t,Mi,void 0,!0,wn))}return nn&&fu(xu),nn}function Ou(kt,$t,Mi,wn,xu){let nn,cu,xr=!1,Tr=kt.flags;const Ya=$t.flags;if(D===gm){if(Tr&3145728){let vr=Z0(kt,$t);return vr&&(vr&=Z0($t,kt)),vr}if(Tr&4194304)return qn(kt.type,$t.type,3,!1);if(Tr&8388608&&(nn=qn(kt.objectType,$t.objectType,3,!1))&&(nn&=qn(kt.indexType,$t.indexType,3,!1))||Tr&16777216&&kt.root.isDistributive===$t.root.isDistributive&&(nn=qn(kt.checkType,$t.checkType,3,!1))&&(nn&=qn(kt.extendsType,$t.extendsType,3,!1))&&(nn&=qn(FC(kt),FC($t),3,!1))&&(nn&=qn(AC(kt),AC($t),3,!1))||Tr&33554432&&(nn=qn(kt.baseType,$t.baseType,3,!1))&&(nn&=qn(kt.constraint,$t.constraint,3,!1)))return nn;if(!(Tr&524288))return 0}else if(Tr&3145728||Ya&3145728){if(nn=yc(kt,$t,Mi,wn))return nn;if(!(Tr&465829888||Tr&524288&&Ya&1048576||Tr&2097152&&Ya&467402752))return 0}if(Tr&17301504&&kt.aliasSymbol&&kt.aliasTypeArguments&&kt.aliasSymbol===$t.aliasSymbol&&!(Yge(kt)||Yge($t))){const vr=Q1t(kt.aliasSymbol);if(vr===_t)return 1;const ho=$r(kt.aliasSymbol).typeParameters,Xo=C_(ho),w0=D6(kt.aliasTypeArguments,ho,Xo,eu(kt.aliasSymbol.valueDeclaration)),Ks=D6($t.aliasTypeArguments,ho,Xo,eu(kt.aliasSymbol.valueDeclaration)),jd=Ko(w0,Ks,vr,wn);if(jd!==void 0)return jd}if(oht(kt)&&!kt.target.readonly&&(nn=qn(M0(kt)[0],$t,1))||oht($t)&&($t.target.readonly||Mte(Hh(kt)||kt))&&(nn=qn(kt,M0($t)[0],2)))return nn;if(Ya&262144){if($u(kt)&32&&!kt.declaration.nameType&&qn(y_($t),sp(kt),3)&&!(v_(kt)&4)){const vr=_D(kt),ho=Uf($t,yg(kt));if(nn=qn(vr,ho,3,Mi))return nn}if(D===jh&&Tr&262144){let vr=uh(kt);if(vr&&eW(kt))for(;vr&&bE(vr,ho=>!!(ho.flags&262144));){if(nn=qn(vr,$t,1,!1))return nn;vr=uh(vr)}return 0}}else if(Ya&4194304){const vr=$t.type;if(Tr&4194304&&(nn=qn(vr,kt.type,3,!1)))return nn;if(_s(vr)){if(nn=qn(kt,r1t(vr),2,Mi))return nn}else{const ho=RNe(vr);if(ho){if(qn(kt,y_(ho,$t.indexFlags|4),2,Mi)===-1)return-1}else if(Qm(vr)){const Xo=z5(vr),w0=sp(vr);let Ks;if(Xo&&XK(vr)){const jd=Kh(V9(vr)),SE=[];zNe(jd,8576,!1,BE=>void SE.push(Da(Xo,lW(vr.mapper,yg(vr),BE)))),Ks=ir([...SE,Xo])}else Ks=Xo||w0;if(qn(kt,Ks,2,Mi)===-1)return-1}}}else if(Ya&8388608){if(Tr&8388608){if((nn=qn(kt.objectType,$t.objectType,3,Mi))&&(nn&=qn(kt.indexType,$t.indexType,3,Mi)),nn)return nn;Mi&&(cu=Z)}if(D===Gf||D===jh){const vr=$t.objectType,ho=$t.indexType,Xo=Hh(vr)||vr,w0=Hh(ho)||ho;if(!Bb(Xo)&&!kC(w0)){const Ks=4|(Xo!==vr?2:0),jd=C6(Xo,w0,Ks);if(jd){if(Mi&&cu&&fu(xu),nn=qn(kt,jd,2,Mi,void 0,wn))return nn;Mi&&cu&&Z&&(Z=Io([cu])<=Io([Z])?cu:Z)}}}Mi&&(cu=void 0)}else if(Qm($t)&&D!==gm){const vr=!!$t.declaration.nameType,ho=_D($t),Xo=v_($t);if(!(Xo&8)){if(!vr&&ho.flags&8388608&&ho.objectType===kt&&ho.indexType===yg($t))return-1;if(!Qm(kt)){const w0=vr?z5($t):sp($t),Ks=y_(kt,2),jd=Xo&4,SE=jd?gte(w0,Ks):void 0;if(jd?!(SE.flags&131072):qn(w0,Ks,3)){const BE=_D($t),Kb=yg($t),_T=Nz(BE,-98305);if(!vr&&_T.flags&8388608&&_T.indexType===Kb){if(nn=qn(kt,_T.objectType,2,Mi))return nn}else{const tS=vr?SE||w0:SE?Es([SE,Kb]):Kb,SD=Uf(kt,tS);if(nn=qn(SD,BE,3,Mi))return nn}}cu=Z,fu(xu)}}}else if(Ya&16777216){if(Fz($t,ut,Ki,10))return 3;const vr=$t;if(!vr.root.inferTypeParameters&&!Cti(vr.root)&&!(kt.flags&16777216&&kt.root===vr.root)){const ho=!hs(Jge(vr.checkType),Jge(vr.extendsType)),Xo=!ho&&hs(DF(vr.checkType),DF(vr.extendsType));if((nn=ho?-1:qn(kt,FC(vr),2,!1,void 0,wn))&&(nn&=Xo?-1:qn(kt,AC(vr),2,!1,void 0,wn),nn))return nn}}else if(Ya&134217728){if(Tr&134217728){if(D===jh)return qii(kt,$t)?0:-1;Da(kt,td)}if(mEe(kt,$t))return-1}else if($t.flags&268435456&&!(kt.flags&268435456)&&rMe(kt,$t))return-1;if(Tr&8650752){if(!(Tr&8388608&&Ya&8388608)){const vr=pF(kt)||on;if(nn=qn(vr,$t,1,!1,void 0,wn))return nn;if(nn=qn(Dm(vr,kt),$t,1,Mi&&vr!==on&&!(Ya&Tr&262144),void 0,wn))return nn;if(HNe(kt)){const ho=pF(kt.indexType);if(ho&&(nn=qn(Uf(kt.objectType,ho),$t,1,Mi)))return nn}}}else if(Tr&4194304){if(nn=qn(xc,$t,1,Mi))return nn}else if(Tr&134217728&&!(Ya&524288)){if(!(Ya&134217728)){const vr=Hh(kt);if(vr&&vr!==kt&&(nn=qn(vr,$t,1,Mi)))return nn}}else if(Tr&268435456)if(Ya&268435456){if(kt.symbol!==$t.symbol)return 0;if(nn=qn(kt.type,$t.type,3,Mi))return nn}else{const vr=Hh(kt);if(vr&&(nn=qn(vr,$t,1,Mi)))return nn}else if(Tr&16777216){if(Fz(kt,Je,fi,10))return 3;if(Ya&16777216){const ho=kt.root.inferTypeParameters;let Xo=kt.extendsType,w0;if(ho){const Ks=EW(ho,void 0,0,Co);FD(Ks.inferences,$t.extendsType,Xo,1536),Xo=Da(Xo,Ks.mapper),w0=Ks.mapper}if(vD(Xo,$t.extendsType)&&(qn(kt.checkType,$t.checkType,3)||qn($t.checkType,kt.checkType,3))&&((nn=qn(Da(FC(kt),w0),FC($t),3,Mi))&&(nn&=qn(AC(kt),AC($t),3,Mi)),nn))return nn}else{const ho=eW(kt)?Ddt(kt):void 0;if(ho&&(nn=qn(ho,$t,1,Mi)))return nn}const vr=ONe(kt);if(vr&&(nn=qn(vr,$t,1,Mi)))return nn}else{if(D!==d_&&D!==m4&&NXt($t)&&CD(kt))return-1;if(Qm($t))return Qm(kt)&&(nn=vu(kt,$t,Mi))?nn:0;const vr=!!(Tr&402784252);if(D!==gm)kt=Kh(kt),Tr=kt.flags;else if(Qm(kt))return 0;if($u(kt)&4&&$u($t)&4&&kt.target===$t.target&&!_s(kt)&&!(Yge(kt)||Yge($t))){if(iEe(kt))return-1;const ho=OPe(kt.target);if(ho===_t)return 1;const Xo=Ko(M0(kt),M0($t),ho,wn);if(Xo!==void 0)return Xo}else{if(Az($t)?Xm(kt,Nb):F4($t)&&Xm(kt,ho=>_s(ho)&&!ho.target.readonly))return D!==gm?qn(CC(kt,Qt)||me,CC($t,Qt)||me,3,Mi):0;if(H5(kt)&&_s($t)&&!H5($t)){const ho=DD(kt);if(ho!==kt)return qn(ho,$t,1,Mi)}else if((D===d_||D===m4)&&CD($t)&&$u($t)&8192&&!CD(kt))return 0}if(Tr&2621440&&Ya&524288){const ho=Mi&&Z===xu.errorInfo&&!vr;if(nn=mn(kt,$t,ho,void 0,!1,wn),nn&&(nn&=Fu(kt,$t,0,ho,wn),nn&&(nn&=Fu(kt,$t,1,ho,wn),nn&&(nn&=vl(kt,$t,vr,ho,wn)))),xr&&nn)Z=cu||Z||xu.errorInfo;else if(nn)return nn}if(Tr&2621440&&Ya&1048576){const ho=Nz($t,36175872);if(ho.flags&1048576){const Xo=Tt(kt,ho);if(Xo)return Xo}}}return 0;function Io(vr){return vr?tn(vr,(ho,Xo)=>ho+1+Io(Xo.next),0):0}function Ko(vr,ho,Xo,w0){if(nn=Dr(vr,ho,Xo,Mi,w0))return nn;if(qe(Xo,jd=>!!(jd&24))){cu=void 0,fu(xu);return}const Ks=ho&&cii(ho,Xo);if(xr=!Ks,Xo!==_t&&!Ks){if(xr&&!(Mi&&qe(Xo,jd=>(jd&7)===0)))return 0;cu=Z,fu(xu)}}}function vu(kt,$t,Mi){if(D===jh||(D===gm?v_(kt)===v_($t):INe(kt)<=INe($t))){let xu;const nn=sp($t),cu=Da(sp(kt),INe(kt)<0?$0:td);if(xu=qn(nn,cu,3,Mi)){const xr=Af([yg(kt)],[yg($t)]);if(Da(z5(kt),xr)===Da(z5($t),xr))return xu&qn(Da(_D(kt),xr),_D($t),3,Mi)}}return 0}function Tt(kt,$t){var Mi;const wn=n0(kt),xu=kht(wn,$t);if(!xu)return 0;let nn=1;for(const Ko of xu)if(nn*=bni(g6(Ko)),nn>25)return(Mi=$n)==null||Mi.instant($n.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:kt.id,targetId:$t.id,numCombinations:nn}),0;const cu=new Array(xu.length),xr=new Set;for(let Ko=0;KoKo[Xo],!1,0,fe||D===jh))continue e}va(Ya,ho,vx),vr=!0}if(!vr)return 0}let Io=-1;for(const Ko of Ya)if(Io&=mn(kt,Ko,!1,xr,!1,0),Io&&(Io&=Fu(kt,Ko,0,!1,0),Io&&(Io&=Fu(kt,Ko,1,!1,0),Io&&!(_s(kt)&&_s(Ko))&&(Io&=vl(kt,Ko,!1,!1,0)))),!Io)return Io;return Io}function oi(kt,$t){if(!$t||kt.length===0)return kt;let Mi;for(let wn=0;wn5?Fa(F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,gn(kt),gn($t),Kt(nn.slice(0,4),cu=>Sr(cu)).join(", "),nn.length-4):Fa(F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,gn(kt),gn($t),Kt(nn,cu=>Sr(cu)).join(", ")),xu&&Z&&En++)}function mn(kt,$t,Mi,wn,xu,nn){if(D===gm)return Wr(kt,$t,wn);let cu=-1;if(_s($t)){if(Nb(kt)){if(!$t.target.readonly&&(Az(kt)||_s(kt)&&kt.target.readonly))return 0;const Ko=R5(kt),vr=R5($t),ho=_s(kt)?kt.target.combinedFlags&4:4,Xo=$t.target.combinedFlags&4,w0=_s(kt)?kt.target.minLength:0,Ks=$t.target.minLength;if(!ho&&Ko=BE?vr-1-Math.min(yie,Kb):SD,ri=$t.target.elementFlags[qf];if(ri&8&&!(PC&8))return Mi&&Fa(F.Source_provides_no_match_for_variadic_element_at_position_0_in_target,qf),0;if(PC&8&&!(ri&12))return Mi&&Fa(F.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,SD,qf),0;if(ri&1&&!(PC&1))return Mi&&Fa(F.Source_provides_no_match_for_required_element_at_position_0_in_target,qf),0;if(tS&&((PC&12||ri&12)&&(tS=!1),tS&&(wn!=null&&wn.has(""+SD))))continue;const wu=S6(jd[SD],!!(PC&ri&2)),fr=SE[qf],rr=PC&8&&ri&4?j1(fr):S6(fr,!!(ri&2)),mr=qn(wu,rr,3,Mi,void 0,nn);if(!mr)return Mi&&(vr>1||Ko>1)&&(_T&&SD>=BE&&yie>=Kb&&BE!==Ko-Kb-1?po(F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,BE,Ko-Kb-1,qf):po(F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,SD,qf)),0;cu&=mr}return cu}if($t.target.combinedFlags&12)return 0}const xr=(D===d_||D===m4)&&!LC(kt)&&!iEe(kt)&&!_s(kt),Tr=nMe(kt,$t,xr,!1);if(Tr)return Mi&&go(kt,$t)&&Gi(kt,$t,Tr,xr),0;if(LC($t)){for(const Ko of oi(n0(kt),wn))if(!vC($t,Ko.escapedName)&&!(Jn(Ko).flags&32768))return Mi&&Fa(F.Property_0_does_not_exist_on_type_1,Sr(Ko),gn($t)),0}const Ya=n0($t),Io=_s(kt)&&_s($t);for(const Ko of oi(Ya,wn)){const vr=Ko.escapedName;if(!(Ko.flags&4194304)&&(!Io||t3(vr)||vr==="length")&&(!xu||Ko.flags&16777216)){const ho=$o(kt,vr);if(ho&&ho!==Ko){const Xo=Ci(kt,$t,ho,Ko,g6,Mi,nn,D===jh);if(!Xo)return 0;cu&=Xo}}}return cu}function Wr(kt,$t,Mi){if(!(kt.flags&524288&&$t.flags&524288))return 0;const wn=oi(_6(kt),Mi),xu=oi(_6($t),Mi);if(wn.length!==xu.length)return 0;let nn=-1;for(const cu of wn){const xr=vC($t,cu.escapedName);if(!xr)return 0;const Tr=VPe(cu,xr,qn);if(!Tr)return 0;nn&=Tr}return nn}function Fu(kt,$t,Mi,wn,xu){var nn,cu;if(D===gm)return Ta(kt,$t,Mi);if($t===Ri||kt===Ri)return-1;const xr=kt.symbol&&FE(kt.symbol.valueDeclaration),Tr=$t.symbol&&FE($t.symbol.valueDeclaration),Ya=mo(kt,xr&&Mi===1?0:Mi),Io=mo($t,Tr&&Mi===1?0:Mi);if(Mi===1&&Ya.length&&Io.length){const w0=!!(Ya[0].flags&4),Ks=!!(Io[0].flags&4);if(w0&&!Ks)return wn&&Fa(F.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!Cl(Ya[0],Io[0],wn))return 0}let Ko=-1;const vr=Mi===1?lr:pn,ho=$u(kt),Xo=$u($t);if(ho&64&&Xo&64&&kt.symbol===$t.symbol||ho&4&&Xo&4&&kt.target===$t.target)for(let w0=0;w0xE(BE,void 0,262144,Mi);return Fa(F.Type_0_is_not_assignable_to_type_1,SE(Ks),SE(jd)),Fa(F.Types_of_construct_signatures_are_incompatible),Ko}}else e:for(const w0 of Io){const Ks=ao();let jd=wn;for(const SE of Ya){const BE=Ur(SE,w0,!0,jd,xu,vr(SE,w0));if(BE){Ko&=BE,fu(Ks);continue e}jd=!1}return jd&&Fa(F.Type_0_provides_no_match_for_the_signature_1,gn(kt),xE(w0,void 0,void 0,Mi)),0}return Ko}function go(kt,$t){const Mi=Dte(kt,0),wn=Dte(kt,1),xu=_6(kt);return(Mi.length||wn.length)&&!xu.length?!!(mo($t,0).length&&Mi.length||mo($t,1).length&&wn.length):!0}function pn(kt,$t){return kt.parameters.length===0&&$t.parameters.length===0?(Mi,wn)=>po(F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(Mi),gn(wn)):(Mi,wn)=>po(F.Call_signature_return_types_0_and_1_are_incompatible,gn(Mi),gn(wn))}function lr(kt,$t){return kt.parameters.length===0&&$t.parameters.length===0?(Mi,wn)=>po(F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(Mi),gn(wn)):(Mi,wn)=>po(F.Construct_signature_return_types_0_and_1_are_incompatible,gn(Mi),gn(wn))}function Ur(kt,$t,Mi,wn,xu,nn){const cu=D===d_?16:D===m4?24:0;return PPe(Mi?uW(kt):kt,Mi?uW($t):$t,cu,wn,Fa,nn,xr,td);function xr(Tr,Ya,Io){return qn(Tr,Ya,3,Io,void 0,xu)}}function Ta(kt,$t,Mi){const wn=mo(kt,Mi),xu=mo($t,Mi);if(wn.length!==xu.length)return 0;let nn=-1;for(let cu=0;cuTr.keyType===ct);let xr=-1;for(const Tr of nn){const Ya=D!==m4&&!Mi&&cu&&Tr.type.flags&1?-1:Qm(kt)&&cu?qn(_D(kt),Tr.type,3,wn):dl(kt,Tr,wn,xu);if(!Ya)return 0;xr&=Ya}return xr}function dl(kt,$t,Mi,wn){const xu=tW(kt,$t.keyType);return xu?fd(xu,$t,Mi,wn):!(wn&1)&&(D!==m4||$u(kt)&8192)&&lEe(kt)?ls(kt,$t,Mi,wn):(Mi&&Fa(F.Index_signature_for_type_0_is_missing_in_type_1,gn($t.keyType),gn(kt)),0)}function V1(kt,$t){const Mi=yh(kt),wn=yh($t);if(Mi.length!==wn.length)return 0;for(const xu of wn){const nn=y3(kt,xu.keyType);if(!(nn&&qn(nn.type,xu.type,3)&&nn.isReadonly===xu.isReadonly))return 0}return-1}function Cl(kt,$t,Mi){if(!kt.declaration||!$t.declaration)return!0;const wn=p7(kt.declaration,6),xu=p7($t.declaration,6);return xu===2||xu===4&&wn!==2||xu!==4&&!wn?!0:(Mi&&Fa(F.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,v3(wn),v3(xu)),!1)}}function IPe(l){if(l.flags&16)return!1;if(l.flags&3145728)return!!L(l.types,IPe);if(l.flags&465829888){const m=pF(l);if(m&&m!==l)return IPe(m)}return Bg(l)||!!(l.flags&134217728)||!!(l.flags&268435456)}function q1t(l,m){return _s(l)&&_s(m)?_t:n0(m).filter(D=>Zge(he(l,D.escapedName),Jn(D)))}function Zge(l,m){return!!l&&!!m&&Ol(l,32768)&&!!pW(m)}function sii(l){return n0(l).filter(m=>pW(Jn(m)))}function Z1t(l,m,D=LPe){return lpt(l,m,D)||cci(l,m)||dci(l,m)||hci(l,m)||fci(l,m)}function RPe(l,m,D){const C=l.types,A=C.map(I=>I.flags&402784252?0:-1);for(const[I,U]of m){let Z=!1;for(let ce=0;ceA[U]),0):l;return w.flags&131072?l:w}function Y1t(l){if(l.flags&524288){const m=kg(l);return m.callSignatures.length===0&&m.constructSignatures.length===0&&m.indexInfos.length===0&&m.properties.length>0&&ye(m.properties,D=>!!(D.flags&16777216))}return l.flags&2097152?ye(l.types,Y1t):!1}function lii(l,m,D){for(const C of n0(l))if(zMe(m,C.escapedName,D))return!0;return!1}function OPe(l){return l===yo||l===Bo||l.objectFlags&8?ge:X1t(l.symbol,l.typeParameters)}function Q1t(l){return X1t(l,$r(l).typeParameters)}function X1t(l,m=_t){var D,C;const A=$r(l);if(!A.variances){(D=$n)==null||D.push($n.Phase.CheckTypes,"getVariancesWorker",{arity:m.length,id:kh(q0(l))});const w=Wk;Wk||(Wk=!0,ab=lD.length),A.variances=_t;const I=[];for(const U of m){const Z=jPe(U);let ce=Z&16384?Z&8192?0:1:Z&8192?2:void 0;if(ce===void 0){let Fe=!1,Te=!1;const Je=Vo;Vo=fi=>fi?Te=!0:Fe=!0;const ut=Lte(l,U,of),zt=Lte(l,U,U0);ce=(hs(zt,ut)?1:0)|(hs(ut,zt)?2:0),ce===3&&hs(Lte(l,U,vc),ut)&&(ce=4),Vo=Je,(Fe||Te)&&(Fe&&(ce|=8),Te&&(ce|=16))}I.push(ce)}w||(Wk=!1,ab=0),A.variances=I,(C=$n)==null||C.pop({variances:I.map(H.formatVariance)})}return A.variances}function Lte(l,m,D){const C=Lb(m,D),A=q0(l);if(Lt(A))return A;const w=l.flags&524288?uT(l,j5($r(l).typeParameters,C)):I5(A,j5(A.typeParameters,C));return qt.add(kh(w)),w}function Yge(l){return qt.has(kh(l))}function jPe(l){var m;return tn((m=l.symbol)==null?void 0:m.declarations,(D,C)=>D|gh(C),0)&28672}function cii(l,m){for(let D=0;D!!(m.flags&262144)||Qge(m))}function fii(l,m,D,C){const A=[];let w="";const I=Z(l,0),U=Z(m,0);return`${w}${I},${U}${D}`;function Z(ce,Fe=0){let Te=""+ce.target.id;for(const Je of M0(ce)){if(Je.flags&262144){if(C||dii(Je)){let ut=A.indexOf(Je);ut<0&&(ut=A.length,A.push(Je)),Te+="="+ut;continue}w="*"}else if(Fe<4&&Qge(Je)){Te+="<"+Z(Je,Fe+1)+">";continue}Te+="-"+Je.id}return Te}}function Xge(l,m,D,C,A){if(C===gm&&l.id>m.id){const I=l;l=m,m=I}const w=D?":"+D:"";return Qge(l)&&Qge(m)?fii(l,m,w,A):`${l.id},${m.id}${w}`}function Nte(l,m){if(Wl(l)&6){for(const D of l.links.containingType.types){const C=$o(D,l.escapedName),A=C&&Nte(C,m);if(A)return A}return}return m(l)}function Z9(l){return l.parent&&l.parent.flags&32?q0(lf(l)):void 0}function eEe(l){const m=Z9(l),D=m&&qc(m)[0];return D&&he(D,l.escapedName)}function mii(l,m){return Nte(l,D=>{const C=Z9(D);return C?j9(C,m):!1})}function pii(l,m){return!Nte(m,D=>s4(D)&4?!mii(l,Z9(D)):!1)}function eht(l,m,D){return Nte(m,C=>s4(C,D)&4?!j9(l,Z9(C)):!1)?void 0:l}function Fz(l,m,D,C=3){if(D>=C){if(($u(l)&96)===96&&(l=tht(l)),l.flags&2097152)return qe(l.types,U=>Fz(U,m,D,C));const A=tEe(l);let w=0,I=0;for(let U=0;U=I&&(w++,w>=C))return!0;I=Z.id}}}return!1}function tht(l){let m;for(;($u(l)&96)===96&&(m=V9(l))&&(m.symbol||m.flags&2097152&&qe(m.types,D=>!!D.symbol));)l=m;return l}function iht(l,m){return($u(l)&96)===96&&(l=tht(l)),l.flags&2097152?qe(l.types,D=>iht(D,m)):tEe(l)===m}function tEe(l){if(l.flags&524288&&!aMe(l)){if($u(l)&4&&l.node)return l.node;if(l.symbol&&!($u(l)&16&&l.symbol.flags&32))return l.symbol;if(_s(l))return l.target}if(l.flags&262144)return l.symbol;if(l.flags&8388608){do l=l.objectType;while(l.flags&8388608);return l}return l.flags&16777216?l.root:l}function gii(l,m){return VPe(l,m,cW)!==0}function VPe(l,m,D){if(l===m)return-1;const C=s4(l)&6,A=s4(m)&6;if(C!==A)return 0;if(C){if(gT(l)!==gT(m))return 0}else if((l.flags&16777216)!==(m.flags&16777216))return 0;return Tg(l)!==Tg(m)?0:D(Jn(l),Jn(m))}function Eii(l,m,D){const C=vm(l),A=vm(m),w=AE(l),I=AE(m),U=k_(l),Z=k_(m);return!!(C===A&&w===I&&U===Z||D&&w<=I)}function Pte(l,m,D,C,A,w){if(l===m)return-1;if(!Eii(l,m,D)||S(l.typeParameters)!==S(m.typeParameters))return 0;if(m.typeParameters){const Z=Af(l.typeParameters,m.typeParameters);for(let ce=0;cem|(D.flags&1048576?nht(D.types):D.flags),0)}function xii(l){if(l.length===1)return l[0];const m=fe?Mu(l,C=>zc(C,A=>!(A.flags&98304))):l,D=Dii(m)?ir(m):tn(m,(C,A)=>k6(C,A)?A:C);return m===l?D:rEe(D,nht(l)&98304)}function vii(l){return tn(l,(m,D)=>k6(D,m)?D:m)}function F4(l){return!!($u(l)&4)&&(l.target===yo||l.target===Bo)}function Az(l){return!!($u(l)&4)&&l.target===Bo}function Nb(l){return F4(l)||_s(l)}function Mte(l){return F4(l)&&!Az(l)||_s(l)&&!l.target.readonly}function HPe(l){return F4(l)?M0(l)[0]:void 0}function V5(l){return F4(l)||!(l.flags&98304)&&hs(l,ep)}function KPe(l){return Mte(l)||!(l.flags&98305)&&hs(l,Ul)}function WPe(l){if(!($u(l)&4)||!($u(l.target)&3))return;if($u(l)&33554432)return $u(l)&67108864?l.cachedEquivalentBaseType:void 0;l.objectFlags|=33554432;const m=l.target;if($u(m)&1){const A=Hr(m);if(A&&A.expression.kind!==80&&A.expression.kind!==211)return}const D=qc(m);if(D.length!==1||E6(l.symbol).size)return;let C=S(m.typeParameters)?Da(D[0],Af(m.typeParameters,M0(l).slice(0,m.typeParameters.length))):D[0];return S(M0(l))>S(m.typeParameters)&&(C=Dm(C,Cr(M0(l)))),l.objectFlags|=67108864,l.cachedEquivalentBaseType=C}function uht(l){return fe?l===Tn:l===we}function iEe(l){const m=HPe(l);return!!m&&uht(m)}function Sz(l){let m;return _s(l)||!!$o(l,"0")||V5(l)&&!!(m=he(l,"length"))&&Xm(m,D=>!!(D.flags&256))}function nEe(l){return V5(l)||Sz(l)}function Cii(l,m){const D=he(l,""+m);if(D)return D;if(Xm(l,_s))return sht(l,m,ae.noUncheckedIndexedAccess?te:void 0)}function bii(l){return!(l.flags&240544)}function Bg(l){return!!(l.flags&109472)}function rht(l){const m=DD(l);return m.flags&2097152?qe(m.types,Bg):Bg(m)}function yii(l){return l.flags&2097152&&Le(l.types,Bg)||l}function fW(l){return l.flags&16?!0:l.flags&1048576?l.flags&1024?!0:ye(l.types,Bg):Bg(l)}function yD(l){return l.flags&1056?Cge(l):l.flags&402653312?ct:l.flags&256?Qt:l.flags&2048?Ti:l.flags&512?Er:l.flags&1048576?kii(l):l}function kii(l){const m=`B${kh(l)}`;return qk(m)??cb(m,cl(l,yD))}function GPe(l){return l.flags&402653312?ct:l.flags&288?Qt:l.flags&2048?Ti:l.flags&512?Er:l.flags&1048576?cl(l,GPe):l}function Pb(l){return l.flags&1056&&Tb(l)?Cge(l):l.flags&128&&Tb(l)?ct:l.flags&256&&Tb(l)?Qt:l.flags&2048&&Tb(l)?Ti:l.flags&512&&Tb(l)?Er:l.flags&1048576?cl(l,Pb):l}function aht(l){return l.flags&8192?tr:l.flags&1048576?cl(l,aht):l}function JPe(l,m){return WEe(l,m)||(l=aht(Pb(l))),Wh(l)}function Fii(l,m,D){if(l&&Bg(l)){const C=m?D?TW(m):m:void 0;l=JPe(l,C)}return l}function $Pe(l,m,D,C){if(l&&Bg(l)){const A=m?Ob(D,m,C):void 0;l=JPe(l,A)}return l}function _s(l){return!!($u(l)&4&&l.target.objectFlags&8)}function H5(l){return _s(l)&&!!(l.target.combinedFlags&8)}function oht(l){return H5(l)&&l.target.elementFlags.length===1}function uEe(l){return Bz(l,l.target.fixedLength)}function sht(l,m,D){return cl(l,C=>{const A=C,w=uEe(A);return w?D&&m>=fPe(A.target)?ir([w,D]):w:te})}function Aii(l){const m=uEe(l);return m&&j1(m)}function Bz(l,m,D=0,C=!1,A=!1){const w=R5(l)-D;if(m(D&12)===(m.target.elementFlags[C]&12))}function lht({value:l}){return l.base10Value==="0"}function cht(l){return zc(l,m=>dp(m,4194304))}function Bii(l){return cl(l,wii)}function wii(l){return l.flags&4?Wf:l.flags&8?Qv:l.flags&64?e6:l===Bn||l===$i||l.flags&114691||l.flags&128&&l.value===""||l.flags&256&&l.value===0||l.flags&2048&&lht(l)?l:Wu}function rEe(l,m){const D=m&~l.flags&98304;return D===0?l:ir(D===32768?[l,te]:D===65536?[l,it]:[l,te,it])}function A6(l,m=!1){H.assert(fe);const D=m?Oe:te;return l===D||l.flags&1048576&&l.types[0]===D?l:ir([l,D])}function Tii(l){return Gm||(Gm=vz("NonNullable",524288,void 0)||Xt),Gm!==Xt?uT(Gm,[l]):Es([l,Ho])}function kD(l){return fe?bF(l,2097152):l}function dht(l){return fe?ir([l,X]):l}function aEe(l){return fe?EEe(l,X):l}function oEe(l,m,D){return D?IN(m)?A6(l):dht(l):l}function mW(l,m){return TU(m)?kD(l):Z1(m)?aEe(l):l}function S6(l,m){return je&&m?EEe(l,de):l}function pW(l){return l===de||!!(l.flags&1048576)&&l.types[0]===de}function sEe(l){return je?EEe(l,de):hp(l,524288)}function Lii(l,m){return(l.flags&524)!==0&&(m.flags&28)!==0}function lEe(l){const m=$u(l);return l.flags&2097152?ye(l.types,lEe):!!(l.symbol&&l.symbol.flags&7040&&!(l.symbol.flags&32)&&!a_e(l))||!!(m&4194304)||!!(m&1024&&lEe(l.source))}function xF(l,m){const D=js(l.flags,l.escapedName,Wl(l)&8);D.declarations=l.declarations,D.parent=l.parent,D.links.type=m,D.links.target=l,l.valueDeclaration&&(D.valueDeclaration=l.valueDeclaration);const C=$r(l).nameType;return C&&(D.links.nameType=C),D}function Nii(l,m){const D=jo();for(const C of _6(l)){const A=Jn(C),w=m(A);D.set(C.escapedName,w===A?C:xF(C,w))}return D}function gW(l){if(!(LC(l)&&$u(l)&8192))return l;const m=l.regularType;if(m)return m;const D=l,C=Nii(l,gW),A=Rl(D.symbol,C,D.callSignatures,D.constructSignatures,D.indexInfos);return A.flags=D.flags,A.objectFlags|=D.objectFlags&-8193,l.regularType=A,A}function hht(l,m,D){return{parent:l,propertyName:m,siblings:D,resolvedProperties:void 0}}function fht(l){if(!l.siblings){const m=[];for(const D of fht(l.parent))if(LC(D)){const C=vC(D,l.propertyName);C&&yF(Jn(C),A=>{m.push(A)})}l.siblings=m}return l.siblings}function Pii(l){if(!l.resolvedProperties){const m=new Map;for(const D of fht(l))if(LC(D)&&!($u(D)&2097152))for(const C of n0(D))m.set(C.escapedName,C);l.resolvedProperties=Ea(m.values())}return l.resolvedProperties}function Mii(l,m){if(!(l.flags&4))return l;const D=Jn(l),C=m&&hht(m,l.escapedName,void 0),A=UPe(D,C);return A===D?l:xF(l,A)}function zii(l){const m=Mt.get(l.escapedName);if(m)return m;const D=xF(l,Oe);return D.flags|=16777216,Mt.set(l.escapedName,D),D}function Iii(l,m){const D=jo();for(const A of _6(l))D.set(A.escapedName,Mii(A,m));if(m)for(const A of Pii(m))D.has(A.escapedName)||D.set(A.escapedName,zii(A));const C=Rl(l.symbol,D,_t,_t,Mu(yh(l),A=>b_(A.keyType,xm(A.type),A.isReadonly)));return C.objectFlags|=$u(l)&266240,C}function xm(l){return UPe(l,void 0)}function UPe(l,m){if($u(l)&196608){if(m===void 0&&l.widened)return l.widened;let D;if(l.flags&98305)D=me;else if(LC(l))D=Iii(l,m);else if(l.flags&1048576){const C=m||hht(void 0,void 0,l.types),A=Mu(l.types,w=>w.flags&98304?w:UPe(w,C));D=ir(A,qe(A,CD)?2:1)}else l.flags&2097152?D=Es(Mu(l.types,xm)):Nb(l)&&(D=I5(l.target,Mu(M0(l),xm)));return D&&m===void 0&&(l.widened=D),D||l}return l}function cEe(l){let m=!1;if($u(l)&65536){if(l.flags&1048576)if(qe(l.types,CD))m=!0;else for(const D of l.types)cEe(D)&&(m=!0);if(Nb(l))for(const D of M0(l))cEe(D)&&(m=!0);if(LC(l))for(const D of _6(l)){const C=Jn(D);$u(C)&65536&&(cEe(C)||pt(D.valueDeclaration,F.Object_literal_s_property_0_implicitly_has_an_1_type,Sr(D),gn(xm(C))),m=!0)}}return m}function wC(l,m,D){const C=gn(xm(m));if(eu(l)&&!iV(In(l),ae))return;let A;switch(l.kind){case 226:case 172:case 171:A=Ae?F.Member_0_implicitly_has_an_1_type:F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const w=l;if(at(w.name)){const I=Ev(w.name);if((xB(w.parent)||i3(w.parent)||n3(w.parent))&&w.parent.parameters.includes(w)&&(nc(w,w.name.escapedText,788968,void 0,w.name.escapedText,!0)||I&&Ele(I))){const U="arg"+w.parent.parameters.indexOf(w),Z=C0(w.name)+(w.dotDotDotToken?"[]":"");p4(Ae,l,F.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,U,Z);return}}A=l.dotDotDotToken?Ae?F.Rest_parameter_0_implicitly_has_an_any_type:F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ae?F.Parameter_0_implicitly_has_an_1_type:F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(A=F.Binding_element_0_implicitly_has_an_1_type,!Ae)return;break;case 324:pt(l,F.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return;case 330:Ae&&TB(l.parent)&&pt(l.parent.tagName,F.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,C);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Ae&&!l.name){D===3?pt(l,F.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,C):pt(l,F.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return}A=Ae?D===3?F._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Ae&&pt(l,F.Mapped_object_type_implicitly_has_an_any_template_type);return;default:A=Ae?F.Variable_0_implicitly_has_an_1_type:F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}p4(Ae,l,A,C0(qa(l)),C)}function dEe(l,m,D){s(()=>{Ae&&$u(m)&65536&&(!D||!wMe(l))&&(cEe(m)||wC(l,m,D))})}function qPe(l,m,D){const C=vm(l),A=vm(m),w=kW(l),I=kW(m),U=I?A-1:A,Z=w?U:Math.min(C,U),ce=bC(l);if(ce){const Fe=bC(m);Fe&&D(ce,Fe)}for(let Fe=0;Fem.typeParameter),Kt(l.inferences,(m,D)=>()=>(m.isFixed||(Vii(l),hEe(l.inferences),m.isFixed=!0),oMe(l,D))))}function jii(l){return APe(Kt(l.inferences,m=>m.typeParameter),Kt(l.inferences,(m,D)=>()=>oMe(l,D)))}function hEe(l){for(const m of l)m.isFixed||(m.inferredType=void 0)}function QPe(l,m,D){(l.intraExpressionInferenceSites??(l.intraExpressionInferenceSites=[])).push({node:m,type:D})}function Vii(l){if(l.intraExpressionInferenceSites){for(const{node:m,type:D}of l.intraExpressionInferenceSites){const C=m.kind===174?rft(m,2):df(m,2);C&&FD(l.inferences,D,C)}l.intraExpressionInferenceSites=void 0}}function XPe(l){return{typeParameter:l,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function mht(l){return{typeParameter:l.typeParameter,candidates:l.candidates&&l.candidates.slice(),contraCandidates:l.contraCandidates&&l.contraCandidates.slice(),inferredType:l.inferredType,priority:l.priority,topLevel:l.topLevel,isFixed:l.isFixed,impliedArity:l.impliedArity}}function Hii(l){const m=ei(l.inferences,mT);return m.length?YPe(Kt(m,mht),l.signature,l.flags,l.compareTypes):void 0}function eMe(l){return l&&l.mapper}function TC(l){const m=$u(l);if(m&524288)return!!(m&1048576);const D=!!(l.flags&465829888||l.flags&524288&&!pht(l)&&(m&4&&(l.node||qe(M0(l),TC))||m&16&&l.symbol&&l.symbol.flags&14384&&l.symbol.declarations||m&12583968)||l.flags&3145728&&!(l.flags&1024)&&!pht(l)&&qe(l.types,TC));return l.flags&3899393&&(l.objectFlags|=524288|(D?1048576:0)),D}function pht(l){if(l.aliasSymbol&&!l.aliasTypeArguments){const m=Fl(l.aliasSymbol,265);return!!(m&&Ln(m.parent,D=>D.kind===312?!0:D.kind===267?!1:"quit"))}return!1}function _W(l,m,D=0){return!!(l===m||l.flags&3145728&&qe(l.types,C=>_W(C,m,D))||D<3&&l.flags&16777216&&(_W(FC(l),m,D+1)||_W(AC(l),m,D+1)))}function Kii(l,m){const D=b4(l);return D?!!D.type&&_W(D.type,m):_W(qs(l),m)}function Wii(l){const m=jo();yF(l,C=>{if(!(C.flags&128))return;const A=kl(C.value),w=js(4,A);w.links.type=me,C.symbol&&(w.declarations=C.symbol.declarations,w.valueDeclaration=C.symbol.valueDeclaration),m.set(A,w)});const D=l.flags&4?[b_(ct,Ho,!1)]:_t;return Rl(void 0,m,_t,_t,D)}function ght(l,m,D){const C=l.id+","+m.id+","+D.id;if(Sd.has(C))return Sd.get(C);const A=l.id+","+(m.target||m).id;if(Ft(Ih,A))return;Ih.push(A);const w=Gii(l,m,D);return Ih.pop(),Sd.set(C,w),w}function tMe(l){return!($u(l)&262144)||LC(l)&&qe(n0(l),m=>tMe(Jn(m)))||_s(l)&&qe(yC(l),tMe)}function Gii(l,m,D){if(!(y3(l,ct)||n0(l).length!==0&&tMe(l)))return;if(F4(l))return j1(fEe(M0(l)[0],m,D),Az(l));if(_s(l)){const A=Kt(yC(l),I=>fEe(I,m,D)),w=v_(m)&4?Mu(l.target.elementFlags,I=>I&2?1:I):l.target.elementFlags;return Ag(A,w,l.target.readonly,l.target.labeledElementDeclarations)}const C=_4(1040,void 0);return C.source=l,C.mappedType=m,C.constraintType=D,C}function Jii(l){const m=$r(l);return m.type||(m.type=fEe(l.links.propertyType,l.links.mappedType,l.links.constraintType)),m.type}function fEe(l,m,D){const C=Uf(D.type,yg(m)),A=_D(m),w=XPe(C);return FD([w],l,A),Eht(w)||on}function*iMe(l,m,D,C){const A=n0(m);for(const w of A)if(!adt(w)&&(D||!(w.flags&16777216||Wl(w)&48))){const I=$o(l,w.escapedName);if(!I)yield w;else if(C){const U=Jn(w);if(U.flags&109472){const Z=Jn(I);Z.flags&1||Wh(Z)===Wh(U)||(yield w)}}}}function nMe(l,m,D,C){return Kn(iMe(l,m,D,C))}function $ii(l,m){return!(m.target.combinedFlags&8)&&m.target.minLength>l.target.minLength||!m.target.hasRestElement&&(l.target.hasRestElement||m.target.fixedLengthG9(w,A),l)===l&&rMe(l,m)}return!1}function xht(l,m){if(l===m||m.flags&5)return!0;if(m.flags&2097152)return ye(m.types,D=>D===Tc||xht(l,D));if(l.flags&128){const D=l.value;return!!(m.flags&8&&Dht(D,!1)||m.flags&64&&sZ(D,!1)||m.flags&98816&&D===m.intrinsicName||m.flags&268435456&&rMe(cf(D),m)||m.flags&134217728&&mEe(l,m))}if(l.flags&134217728){const D=l.texts;return D.length===2&&D[0]===""&&D[1]===""&&hs(l.types[0],m)}return hs(l,m)}function vht(l,m){return l.flags&128?Cht([l.value],_t,m):l.flags&134217728?Zt(l.texts,m.texts)?Kt(l.types,Yii):Cht(l.texts,l.types,m):void 0}function mEe(l,m){const D=vht(l,m);return!!D&&ye(D,(C,A)=>xht(C,m.types[A]))}function Yii(l){return l.flags&402653317?l:_F(["",""],[l])}function Cht(l,m,D){const C=l.length-1,A=l[0],w=l[C],I=D.texts,U=I.length-1,Z=I[0],ce=I[U];if(C===0&&A.length0){let uu=Je,En=ut;for(;En=zt(uu).indexOf(cn,En),!(En>=0);){if(uu++,uu===l.length)return;En=0}fi(uu,En),ut+=cn.length}else if(ut!Ft(Co,As)):dn,qn?ei(Gn,As=>!Ft(qn,As)):Gn]}function uu(dn,Gn,qr){const Co=dn.length!!Pn(qn));if(!Co||Gn&&Co!==Gn)return;Gn=Co}return Gn}function Sn(dn,Gn,qr){let Co=0;if(qr&1048576){let qn;const As=dn.flags&1048576?dn.types:[dn],B0=new Array(As.length);let rd=!1;for(const Zs of Gn)if(Pn(Zs))qn=Zs,Co++;else for(let wd=0;wdB0[yc]?void 0:wd);if(Zs.length){Je(ir(Zs),qn);return}}}else for(const qn of Gn)Pn(qn)?Co++:Je(dn,qn);if(qr&2097152?Co===1:Co>0)for(const qn of Gn)Pn(qn)&&ut(dn,qn,1)}function _n(dn,Gn,qr){if(qr.flags&1048576){let Co=!1;for(const qn of qr.types)Co=_n(dn,Gn,qn)||Co;return Co}if(qr.flags&4194304){const Co=Pn(qr.type);if(Co&&!Co.isFixed&&!_ht(dn)){const qn=ght(dn,Gn,qr);qn&&ut(qn,Co.typeParameter,$u(dn)&262144?16:8)}return!0}if(qr.flags&262144){ut(y_(dn,dn.pattern?2:0),qr,32);const Co=pF(qr);if(Co&&_n(dn,Gn,Co))return!0;const qn=Kt(n0(dn),Jn),As=Kt(yh(dn),B0=>B0!==Tu?B0.type:Wu);return Je(ir(an(qn,As)),_D(Gn)),!0}return!1}function fu(dn,Gn){if(dn.flags&16777216)Je(dn.checkType,Gn.checkType),Je(dn.extendsType,Gn.extendsType),Je(FC(dn),FC(Gn)),Je(AC(dn),AC(Gn));else{const qr=[FC(Gn),AC(Gn)];fi(dn,qr,Gn.flags,A?64:0)}}function ao(dn,Gn){const qr=vht(dn,Gn),Co=Gn.types;if(qr||ye(Gn.texts,qn=>qn.length===0))for(let qn=0;qnZ0|Cm.flags,0);if(!(yc&4)){const Z0=As.value;yc&296&&!Dht(Z0,!0)&&(yc&=-297),yc&2112&&!sZ(Z0,!0)&&(yc&=-2113);const Cm=tn(wd,(At,ze)=>ze.flags&yc?At.flags&4?At:ze.flags&4?As:At.flags&134217728?At:ze.flags&134217728&&mEe(As,ze)?As:At.flags&268435456?At:ze.flags&268435456&&Z0===_1t(ze.symbol,Z0)?As:At.flags&128?At:ze.flags&128&&ze.value===Z0?ze:At.flags&8?At:ze.flags&8?Sg(+Z0):At.flags&32?At:ze.flags&32?Sg(+Z0):At.flags&256?At:ze.flags&256&&ze.value===+Z0?ze:At.flags&64?At:ze.flags&64?Zii(Z0):At.flags&2048?At:ze.flags&2048&&P2(ze.value)===Z0?ze:At.flags&16?At:ze.flags&16?Z0==="true"?hu:Z0==="false"?$i:Er:At.flags&512?At:ze.flags&512&&ze.intrinsicName===Z0?ze:At.flags&32768?At:ze.flags&32768&&ze.intrinsicName===Z0?ze:At.flags&65536?At:ze.flags&65536&&ze.intrinsicName===Z0?ze:At:At,Wu);if(!(Cm.flags&131072)){Je(Cm,B0);continue}}}}Je(As,B0)}}function po(dn,Gn){var qr,Co;if($u(dn)&4&&$u(Gn)&4&&(dn.target===Gn.target||F4(dn)&&F4(Gn))){uu(M0(dn),M0(Gn),OPe(dn.target));return}if(Qm(dn)&&Qm(Gn)){Je(sp(dn),sp(Gn)),Je(_D(dn),_D(Gn));const qn=z5(dn),As=z5(Gn);qn&&As&&Je(qn,As)}if($u(Gn)&32&&!Gn.declaration.nameType){const qn=sp(Gn);if(_n(dn,Gn,qn))return}if(!Uii(dn,Gn)){if(Nb(dn)){if(_s(Gn)){const qn=R5(dn),As=R5(Gn),B0=M0(Gn),rd=Gn.target.elementFlags;if(_s(dn)&&Sii(dn,Gn)){for(let yc=0;yc0){const As=mo(Gn,qr),B0=As.length;for(let rd=0;rd1){const m=ei(l,aMe);if(m.length){const D=ir(m,2);return an(ei(l,C=>!aMe(C)),[D])}}return l}function ini(l){return l.priority&416?Es(l.contraCandidates):vii(l.contraCandidates)}function nni(l,m){const D=tni(l.candidates),C=eni(l.typeParameter)||H9(l.typeParameter),A=!C&&l.topLevel&&(l.isFixed||!Kii(m,l.typeParameter)),w=C?Mu(D,Wh):A?Mu(D,Pb):D,I=l.priority&416?ir(w,2):xii(w);return xm(I)}function oMe(l,m){const D=l.inferences[m];if(!D.inferredType){let C,A;if(l.signature){const I=D.candidates?nni(D,l.signature):void 0,U=D.contraCandidates?ini(D):void 0;if(I||U){const Z=I&&(!U||!(I.flags&131072)&&qe(D.contraCandidates,ce=>k6(I,ce))&&ye(l.inferences,ce=>ce!==D&&uh(ce.typeParameter)!==D.typeParameter||ye(ce.candidates,Fe=>k6(Fe,I))));C=Z?I:U,A=Z?U:I}else if(l.flags&1)C=ja;else{const Z=gF(D.typeParameter);Z&&(C=Da(Z,Pti(Nti(l,m),l.nonFixingMapper)))}}else C=Eht(D);D.inferredType=C||sMe(!!(l.flags&2));const w=uh(D.typeParameter);if(w){const I=Da(w,l.nonFixingMapper);(!C||!l.compareTypes(C,Dm(I,C)))&&(D.inferredType=A&&l.compareTypes(A,Dm(I,A))?A:I)}}return D.inferredType}function sMe(l){return l?me:on}function lMe(l){const m=[];for(let D=0;DDh(m)||Ip(m)||hm(m)))}function pEe(l,m,D,C){switch(l.kind){case 80:if(!m7(l)){const I=$p(l);return I!==Xt?`${C?Js(C):"-1"}|${kh(m)}|${kh(D)}|${qo(I)}`:void 0}case 110:return`0|${C?Js(C):"-1"}|${kh(m)}|${kh(D)}`;case 235:case 217:return pEe(l.expression,m,D,C);case 166:const A=pEe(l.left,m,D,C);return A&&A+"."+l.right.escapedText;case 211:case 212:const w=vF(l);if(w!==void 0){const I=pEe(l.expression,m,D,C);return I&&I+"."+w}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Js(l)}#${kh(m)}`}}function v1(l,m){switch(m.kind){case 217:case 235:return v1(l,m.expression);case 226:return od(m)&&v1(l,m.left)||tu(m)&&m.operatorToken.kind===28&&v1(l,m.right)}switch(l.kind){case 236:return m.kind===236&&l.keywordToken===m.keywordToken&&l.name.escapedText===m.name.escapedText;case 80:case 81:return m7(l)?m.kind===110:m.kind===80&&$p(l)===$p(m)||(ua(m)||Rs(m))&&ap($p(l))===Du(m);case 110:return m.kind===110;case 108:return m.kind===108;case 235:case 217:return v1(l.expression,m);case 211:case 212:const D=vF(l),C=N0(m)?vF(m):void 0;return D!==void 0&&C!==void 0&&C===D&&v1(l.expression,m.expression);case 166:return N0(m)&&l.right.escapedText===vF(m)&&v1(l.left,m.expression);case 226:return tu(l)&&l.operatorToken.kind===28&&v1(l.right,m)}return!1}function vF(l){if(Iu(l))return l.name.escapedText;if(W0(l))return uni(l);if(Rs(l)){const m=E0(l);return m?kl(m):void 0}if(eo(l))return""+l.parent.parameters.indexOf(l)}function dMe(l){return l.flags&8192?l.escapedName:l.flags&384?kl(""+l.value):void 0}function uni(l){return Nm(l.argumentExpression)?kl(l.argumentExpression.text):Xl(l.argumentExpression)?rni(l.argumentExpression):void 0}function rni(l){const m=P0(l,111551,!0);if(!m||!(Pz(m)||m.flags&8))return;const D=m.valueDeclaration;if(D===void 0)return;const C=dt(D);if(C){const A=dMe(C);if(A!==void 0)return A}if(Zy(D)&&S5(D,l)){const A=Ej(D);if(A)return dMe(C1(A));if(K2(D))return O8(D.name)}}function yht(l,m){for(;N0(l);)if(l=l.expression,v1(l,m))return!0;return!1}function CF(l,m){for(;Z1(l);)if(l=l.expression,v1(l,m))return!0;return!1}function wz(l,m){if(l&&l.flags&1048576){const D=ydt(l,m);if(D&&Wl(D)&2)return D.links.isDiscriminantProperty===void 0&&(D.links.isDiscriminantProperty=(D.links.checkFlags&192)===192&&!yz(Jn(D))),!!D.links.isDiscriminantProperty}return!1}function kht(l,m){let D;for(const C of l)if(wz(m,C.escapedName)){if(D){D.push(C);continue}D=[C]}return D}function ani(l,m){const D=new Map;let C=0;for(const A of l)if(A.flags&61603840){const w=he(A,m);if(w){if(!fW(w))return;let I=!1;yF(w,U=>{const Z=kh(Wh(U)),ce=D.get(Z);ce?ce!==on&&(D.set(Z,on),I=!0):D.set(Z,A)}),I||C++}}return C>=10&&C*2>=l.length?D:void 0}function zte(l){const m=l.types;if(!(m.length<10||$u(l)&32768||ui(m,D=>!!(D.flags&59506688))<10)){if(l.keyPropertyName===void 0){const D=L(m,A=>A.flags&59506688?L(n0(A),w=>Bg(Jn(w))?w.escapedName:void 0):void 0),C=D&&ani(m,D);l.keyPropertyName=C?D:"",l.constituentMap=C}return l.keyPropertyName.length?l.keyPropertyName:void 0}}function Ite(l,m){var D;const C=(D=l.constituentMap)==null?void 0:D.get(kh(Wh(m)));return C!==on?C:void 0}function Fht(l,m){const D=zte(l),C=D&&he(m,D);return C&&Ite(l,C)}function oni(l,m){const D=zte(l),C=D&&Le(m.properties,w=>w.symbol&&w.kind===303&&w.symbol.escapedName===D&&Gte(w.initializer)),A=C&&hie(C.initializer);return A&&Ite(l,A)}function Aht(l,m){return v1(l,m)||yht(l,m)}function Sht(l,m){if(l.arguments){for(const D of l.arguments)if(Aht(m,D)||CF(D,m))return!0}return!!(l.expression.kind===211&&Aht(m,l.expression.expression))}function hMe(l){return(!l.id||l.id<0)&&(l.id=zAe,zAe++),l.id}function sni(l,m){if(!(l.flags&1048576))return hs(l,m);for(const D of l.types)if(hs(D,m))return!0;return!1}function lni(l,m){if(l===m)return l;if(m.flags&131072)return m;const D=`A${kh(l)},${kh(m)}`;return qk(D)??cb(D,cni(l,m))}function cni(l,m){const D=zc(l,A=>sni(m,A)),C=m.flags&512&&Tb(m)?cl(D,U9):D;return hs(m,C)?C:l}function fMe(l){const m=kg(l);return!!(m.callSignatures.length||m.constructSignatures.length||m.members.get("bind")&&k6(l,si))}function Tz(l,m){return mMe(l,m)&m}function dp(l,m){return Tz(l,m)!==0}function mMe(l,m){l.flags&467927040&&(l=Hh(l)||on);const D=l.flags;if(D&268435460)return fe?16317953:16776705;if(D&134217856){const C=D&128&&l.value==="";return fe?C?12123649:7929345:C?12582401:16776705}if(D&40)return fe?16317698:16776450;if(D&256){const C=l.value===0;return fe?C?12123394:7929090:C?12582146:16776450}if(D&64)return fe?16317188:16775940;if(D&2048){const C=lht(l);return fe?C?12122884:7928580:C?12581636:16775940}return D&16?fe?16316168:16774920:D&528?fe?l===$i||l===Bn?12121864:7927560:l===$i||l===Bn?12580616:16774920:D&524288?m&(fe?83427327:83886079)?$u(l)&16&&CD(l)?fe?83427327:83886079:fMe(l)?fe?7880640:16728e3:fe?7888800:16736160:0:D&16384?9830144:D&32768?26607360:D&65536?42917664:D&12288?fe?7925520:16772880:D&67108864?fe?7888800:16736160:D&131072?0:D&1048576?tn(l.types,(C,A)=>C|mMe(A,m),0):D&2097152?dni(l,m):83886079}function dni(l,m){const D=Ol(l,402784252);let C=0,A=134217727;for(const w of l.types)if(!(D&&w.flags&524288)){const I=mMe(w,m);C|=I,A&=I}return C&8256|A&134209471}function hp(l,m){return zc(l,D=>dp(D,m))}function bF(l,m){const D=Bht(hp(fe&&l.flags&2?sl:l,m));if(fe)switch(m){case 524288:return cl(D,C=>dp(C,65536)?Es([C,dp(C,131072)&&!Ol(D,65536)?ir([Ho,it]):Ho]):C);case 1048576:return cl(D,C=>dp(C,131072)?Es([C,dp(C,65536)&&!Ol(D,32768)?ir([Ho,te]):Ho]):C);case 2097152:case 4194304:return cl(D,C=>dp(C,262144)?Tii(C):C)}return D}function Bht(l){return l===sl?on:l}function pMe(l,m){return m?ir([Kr(l),C1(m)]):l}function wht(l,m){var D;const C=O5(m);if(!q4(C))return jt;const A=Z4(C);return he(l,A)||DW((D=K9(l,A))==null?void 0:D.type)||jt}function Tht(l,m){return Xm(l,Sz)&&Cii(l,m)||DW(W5(65,l,te,void 0))||jt}function DW(l){return l&&(ae.noUncheckedIndexedAccess?ir([l,de]):l)}function Lht(l){return j1(W5(65,l,te,void 0)||jt)}function hni(l){return l.parent.kind===209&&gMe(l.parent)||l.parent.kind===303&&gMe(l.parent.parent)?pMe(Rte(l),l.right):C1(l.right)}function gMe(l){return l.parent.kind===226&&l.parent.left===l||l.parent.kind===250&&l.parent.initializer===l}function fni(l,m){return Tht(Rte(l),l.elements.indexOf(m))}function mni(l){return Lht(Rte(l.parent))}function Nht(l){return wht(Rte(l.parent),l.name)}function pni(l){return pMe(Nht(l),l.objectAssignmentInitializer)}function Rte(l){const{parent:m}=l;switch(m.kind){case 249:return ct;case 250:return _ie(m)||jt;case 226:return hni(m);case 220:return te;case 209:return fni(m,l);case 230:return mni(m);case 303:return Nht(m);case 304:return pni(m)}return jt}function gni(l){const m=l.parent,D=Mht(m.parent),C=m.kind===206?wht(D,l.propertyName||l.name):l.dotDotDotToken?Lht(D):Tht(D,m.elements.indexOf(l));return pMe(C,l.initializer)}function Pht(l){return sr(l).resolvedType||C1(l)}function Eni(l){return l.initializer?Pht(l.initializer):l.parent.parent.kind===249?ct:l.parent.parent.kind===250&&_ie(l.parent.parent)||jt}function Mht(l){return l.kind===260?Eni(l):gni(l)}function _ni(l){return l.kind===260&&l.initializer&&C3(l.initializer)||l.kind!==208&&l.parent.kind===226&&C3(l.parent.right)}function Mb(l){switch(l.kind){case 217:return Mb(l.expression);case 226:switch(l.operatorToken.kind){case 64:case 76:case 77:case 78:return Mb(l.left);case 28:return Mb(l.right)}}return l}function zht(l){const{parent:m}=l;return m.kind===217||m.kind===226&&m.operatorToken.kind===64&&m.left===l||m.kind===226&&m.operatorToken.kind===28&&m.right===l?zht(m):l}function Dni(l){return l.kind===296?Wh(C1(l.expression)):Wu}function gEe(l){const m=sr(l);if(!m.switchTypes){m.switchTypes=[];for(const D of l.caseBlock.clauses)m.switchTypes.push(Dni(D))}return m.switchTypes}function Iht(l){if(qe(l.caseBlock.clauses,D=>D.kind===296&&!t0(D.expression)))return;const m=[];for(const D of l.caseBlock.clauses){const C=D.kind===296?D.expression.text:void 0;m.push(C&&!Ft(m,C)?C:void 0)}return m}function xni(l,m){return l.flags&1048576?!L(l.types,D=>!Ft(m,D)):Ft(m,l)}function Lz(l,m){return!!(l===m||l.flags&131072||m.flags&1048576&&vni(l,m))}function vni(l,m){if(l.flags&1048576){for(const D of l.types)if(!v6(m.types,D))return!1;return!0}return l.flags&1056&&Cge(l)===m?!0:v6(m.types,l)}function yF(l,m){return l.flags&1048576?L(l.types,m):m(l)}function bE(l,m){return l.flags&1048576?qe(l.types,m):m(l)}function Xm(l,m){return l.flags&1048576?ye(l.types,m):m(l)}function Cni(l,m){return l.flags&3145728?ye(l.types,m):m(l)}function zc(l,m){if(l.flags&1048576){const D=l.types,C=ei(D,m);if(C===D)return l;const A=l.origin;let w;if(A&&A.flags&1048576){const I=A.types,U=ei(I,Z=>!!(Z.flags&1048576)||m(Z));if(I.length-U.length===D.length-C.length){if(U.length===1)return U[0];w=pPe(1048576,U)}}return EPe(C,l.objectFlags&16809984,void 0,void 0,w)}return l.flags&131072||m(l)?l:Wu}function EEe(l,m){return zc(l,D=>D!==m)}function bni(l){return l.flags&1048576?l.types.length:1}function cl(l,m,D){if(l.flags&131072)return l;if(!(l.flags&1048576))return m(l);const C=l.origin,A=C&&C.flags&1048576?C.types:l.types;let w,I=!1;for(const U of A){const Z=U.flags&1048576?cl(U,m,D):m(U);I||(I=U!==Z),Z&&(w?w.push(Z):w=[Z])}return I?w&&ir(w,D?0:1):l}function Rht(l,m,D,C){return l.flags&1048576&&D?ir(Kt(l.types,m),1,D,C):cl(l,m)}function Nz(l,m){return zc(l,D=>(D.flags&m)!==0)}function Oht(l,m){return Ol(l,134217804)&&Ol(m,402655616)?cl(l,D=>D.flags&4?Nz(m,402653316):J9(D)&&!Ol(m,402653188)?Nz(m,128):D.flags&8?Nz(m,264):D.flags&64?Nz(m,2112):D):l}function sT(l){return l.flags===0}function kF(l){return l.flags===0?l.type:l}function lT(l,m){return m?{flags:0,type:l.flags&131072?ja:l}:l}function yni(l){const m=_4(256);return m.elementType=l,m}function EMe(l){return Et[l.id]||(Et[l.id]=yni(l))}function jht(l,m){const D=gW(yD(hie(m)));return Lz(D,l.elementType)?l:EMe(ir([l.elementType,D]))}function kni(l){return l.flags&131072?Lc:j1(l.flags&1048576?ir(l.types,2):l)}function Fni(l){return l.finalArrayType||(l.finalArrayType=kni(l.elementType))}function Ote(l){return $u(l)&256?Fni(l):l}function Ani(l){return $u(l)&256?l.elementType:Wu}function Sni(l){let m=!1;for(const D of l)if(!(D.flags&131072)){if(!($u(D)&256))return!1;m=!0}return m}function Vht(l){const m=zht(l),D=m.parent,C=Iu(D)&&(D.name.escapedText==="length"||D.parent.kind===213&&at(D.name)&&J0e(D.name)),A=D.kind===212&&D.expression===m&&D.parent.kind===226&&D.parent.operatorToken.kind===64&&D.parent.left===D&&!Y_(D.parent)&&n1(C1(D.argumentExpression),296);return C||A}function Bni(l){return(ua(l)||bo(l)||Pm(l)||eo(l))&&!!(h1(l)||eu(l)&&Lx(l)&&l.initializer&&M2(l.initializer)&&J4(l.initializer))}function _Ee(l,m){if(l=bc(l),l.flags&8752)return Jn(l);if(l.flags&7){if(Wl(l)&262144){const C=l.links.syntheticOrigin;if(C&&_Ee(C))return Jn(l)}const D=l.valueDeclaration;if(D){if(Bni(D))return Jn(l);if(ua(D)&&D.parent.parent.kind===250){const C=D.parent.parent,A=jte(C.expression,void 0);if(A){const w=C.awaitModifier?15:13;return W5(w,A,te,void 0)}}m&&ps(m,Bu(D,F._0_needs_an_explicit_type_annotation,Sr(l)))}}}function jte(l,m){if(!(l.flags&67108864))switch(l.kind){case 80:const D=ap($p(l));return _Ee(D,m);case 110:return Uni(l);case 108:return bMe(l);case 211:{const C=jte(l.expression,m);if(C){const A=l.name;let w;if(Xr(A)){if(!C.symbol)return;w=$o(C,Pj(C.symbol,A.escapedText))}else w=$o(C,A.escapedText);return w&&_Ee(w,m)}return}case 217:return jte(l.expression,m)}}function Vte(l){const m=sr(l);let D=m.effectsSignature;if(D===void 0){let C;if(tu(l)){const I=cT(l.right);C=mze(I)}else l.parent.kind===244?C=jte(l.expression,void 0):l.expression.kind!==108&&(Z1(l)?C=yE(mW(ka(l.expression),l.expression),l.expression):C=cT(l.expression));const A=mo(C&&Kh(C)||on,0),w=A.length===1&&!A[0].typeParameters?A[0]:qe(A,Hht)?hT(l):void 0;D=m.effectsSignature=w&&Hht(w)?w:fn}return D===fn?void 0:D}function Hht(l){return!!(b4(l)||l.declaration&&(iT(l.declaration)||on).flags&131072)}function wni(l,m){if(l.kind===1||l.kind===3)return m.arguments[l.parameterIndex];const D=s0(m.expression);return N0(D)?s0(D.expression):void 0}function Tni(l){const m=Ln(l,qse),D=In(l),C=YE(D,m.statements.pos);Os.add(zd(D,C.start,C.length,F.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Hte(l){const m=DEe(l,!1);return On=l,en=m,m}function Kte(l){const m=s0(l,!0);return m.kind===97||m.kind===226&&(m.operatorToken.kind===56&&(Kte(m.left)||Kte(m.right))||m.operatorToken.kind===57&&Kte(m.left)&&Kte(m.right))}function DEe(l,m){for(;;){if(l===On)return en;const D=l.flags;if(D&4096){if(!m){const C=hMe(l),A=v9[C];return A!==void 0?A:v9[C]=DEe(l,!0)}m=!1}if(D&368)l=l.antecedent;else if(D&512){const C=Vte(l.node);if(C){const A=b4(C);if(A&&A.kind===3&&!A.type){const w=l.node.arguments[A.parameterIndex];if(w&&Kte(w))return!1}if(qs(C).flags&131072)return!1}l=l.antecedent}else{if(D&4)return qe(l.antecedents,C=>DEe(C,!1));if(D&8){const C=l.antecedents;if(C===void 0||C.length===0)return!1;l=C[0]}else if(D&128){if(l.clauseStart===l.clauseEnd&&_mt(l.switchStatement))return!1;l=l.antecedent}else if(D&1024){On=void 0;const C=l.target,A=C.antecedents;C.antecedents=l.antecedents;const w=DEe(l.antecedent,!1);return C.antecedents=A,w}else return!(D&1)}}}function xEe(l,m){for(;;){const D=l.flags;if(D&4096){if(!m){const C=hMe(l),A=$k[C];return A!==void 0?A:$k[C]=xEe(l,!0)}m=!1}if(D&496)l=l.antecedent;else if(D&512){if(l.node.expression.kind===108)return!0;l=l.antecedent}else{if(D&4)return ye(l.antecedents,C=>xEe(C,!1));if(D&8)l=l.antecedents[0];else if(D&1024){const C=l.target,A=C.antecedents;C.antecedents=l.antecedents;const w=xEe(l.antecedent,!1);return C.antecedents=A,w}else return!!(D&1)}}}function Kht(l){switch(l.kind){case 110:return!0;case 80:if(!m7(l)){const m=$p(l);return Pz(m)||Ple(m)&&!vEe(m)}break;case 211:case 212:return Kht(l.expression)&&Tg(sr(l).resolvedSymbol||Xt)}return!1}function B6(l,m,D=m,C,A=(w=>(w=ar(l,Aj))==null?void 0:w.flowNode)()){let w,I=!1,U=0;if(wi)return jt;if(!A)return m;Qi++;const Z=ai,ce=kF(Je(A));ai=Z;const Fe=$u(ce)&256&&Vht(l)?Lc:Ote(ce);if(Fe===Rr||l.parent&&l.parent.kind===235&&!(Fe.flags&131072)&&hp(Fe,2097152).flags&131072)return m;return Fe===le?on:Fe;function Te(){return I?w:(I=!0,w=pEe(l,m,D,C))}function Je(Tt){var oi;if(U===2e3)return(oi=$n)==null||oi.instant($n.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Tt.id}),wi=!0,Tni(l),jt;U++;let Wi;for(;;){const Ci=Tt.flags;if(Ci&4096){for(let mn=Z;mn=0&&Wi.parameterIndex!(mn.flags&163840)):oi.kind===221&&CF(oi.expression,l)&&(Ci=B0(Ci,Tt.switchStatement,Tt.clauseStart,Tt.clauseEnd,mn=>!(mn.flags&131072||mn.flags&128&&mn.value==="undefined"))));const Gi=_n(oi,Ci);Gi&&(Ci=po(Ci,Gi,Tt.switchStatement,Tt.clauseStart,Tt.clauseEnd))}return lT(Ci,sT(Wi))}function Ii(Tt){const oi=[];let Wi=!1,Ci=!1,Gi;for(const mn of Tt.antecedents){if(!Gi&&mn.flags&128&&mn.clauseStart===mn.clauseEnd){Gi=mn;continue}const Wr=Je(mn),Fu=kF(Wr);if(Fu===m&&m===D)return Fu;va(oi,Fu),Lz(Fu,D)||(Wi=!0),sT(Wr)&&(Ci=!0)}if(Gi){const mn=Je(Gi),Wr=kF(mn);if(!(Wr.flags&131072)&&!Ft(oi,Wr)&&!_mt(Gi.switchStatement)){if(Wr===m&&m===D)return Wr;oi.push(Wr),Lz(Wr,D)||(Wi=!0),sT(mn)&&(Ci=!0)}}return lT(Cn(oi,Wi?2:1),Ci)}function Pn(Tt){const oi=hMe(Tt),Wi=_9[oi]||(_9[oi]=new Map),Ci=Te();if(!Ci)return m;const Gi=Wi.get(Ci);if(Gi)return Gi;for(let pn=Xe;pn{const pn=Re(go,Ci)||on;return!(pn.flags&131072)&&!(Fu.flags&131072)&&Bte(Fu,pn)})}function ao(Tt,oi,Wi,Ci,Gi){if((Wi===37||Wi===38)&&Tt.flags&1048576){const mn=zte(Tt);if(mn&&mn===vF(oi)){const Wr=Ite(Tt,C1(Ci));if(Wr)return Wi===(Gi?37:38)?Wr:Bg(he(Wr,mn)||on)?EEe(Tt,Wr):Tt}}return fu(Tt,oi,mn=>Co(mn,Wi,Ci,Gi))}function po(Tt,oi,Wi,Ci,Gi){if(CiIte(Tt,Fu)||on));if(Wr!==on)return Wr}return fu(Tt,oi,mn=>rd(mn,Wi,Ci,Gi))}function co(Tt,oi,Wi){if(v1(l,oi))return bF(Tt,Wi?4194304:8388608);fe&&Wi&&CF(oi,l)&&(Tt=bF(Tt,2097152));const Ci=_n(oi,Tt);return Ci?fu(Tt,Ci,Gi=>hp(Gi,Wi?4194304:8388608)):Tt}function Fa(Tt,oi,Wi){const Ci=$o(Tt,oi);return Ci?!!(Ci.flags&16777216||Wl(Ci)&48)||Wi:!!K9(Tt,oi)||!Wi}function rh(Tt,oi,Wi){const Ci=Z4(oi);if(bE(Tt,mn=>Fa(mn,Ci,!0)))return zc(Tt,mn=>Fa(mn,Ci,Wi));if(Wi){const mn=zei();if(mn)return Es([Tt,uT(mn,[oi,on])])}return Tt}function e4(Tt,oi,Wi,Ci,Gi){return Gi=Gi!==(Wi.kind===112)!=(Ci!==38&&Ci!==36),Ou(Tt,oi,Gi)}function dn(Tt,oi,Wi){switch(oi.operatorToken.kind){case 64:case 76:case 77:case 78:return co(Ou(Tt,oi.right,Wi),oi.left,Wi);case 35:case 36:case 37:case 38:const Ci=oi.operatorToken.kind,Gi=Mb(oi.left),mn=Mb(oi.right);if(Gi.kind===221&&t0(mn))return qn(Tt,Gi,Ci,mn,Wi);if(mn.kind===221&&t0(Gi))return qn(Tt,mn,Ci,Gi,Wi);if(v1(l,Gi))return Co(Tt,Ci,mn,Wi);if(v1(l,mn))return Co(Tt,Ci,Gi,Wi);fe&&(CF(Gi,l)?Tt=qr(Tt,Ci,mn,Wi):CF(mn,l)&&(Tt=qr(Tt,Ci,Gi,Wi)));const Wr=_n(Gi,Tt);if(Wr)return ao(Tt,Wr,Ci,mn,Wi);const Fu=_n(mn,Tt);if(Fu)return ao(Tt,Fu,Ci,Gi,Wi);if(Cm(Gi))return At(Tt,Ci,mn,Wi);if(Cm(mn))return At(Tt,Ci,Gi,Wi);if(VN(mn)&&!N0(Gi))return e4(Tt,Gi,mn,Ci,Wi);if(VN(Gi)&&!N0(mn))return e4(Tt,mn,Gi,Ci,Wi);break;case 104:return ze(Tt,oi,Wi);case 103:if(Xr(oi.left))return Gn(Tt,oi,Wi);const go=Mb(oi.right);if(pW(Tt)&&N0(l)&&v1(l.expression,go)){const pn=C1(oi.left);if(q4(pn)&&vF(l)===Z4(pn))return hp(Tt,Wi?524288:65536)}if(v1(l,go)){const pn=C1(oi.left);if(q4(pn))return rh(Tt,pn,Wi)}break;case 28:return Ou(Tt,oi.right,Wi);case 56:return Wi?Ou(Ou(Tt,oi.left,!0),oi.right,!0):ir([Ou(Tt,oi.left,!1),Ou(Tt,oi.right,!1)]);case 57:return Wi?ir([Ou(Tt,oi.left,!0),Ou(Tt,oi.right,!0)]):Ou(Ou(Tt,oi.left,!1),oi.right,!1)}return Tt}function Gn(Tt,oi,Wi){const Ci=Mb(oi.right);if(!v1(l,Ci))return Tt;H.assertNode(oi.left,Xr);const Gi=LEe(oi.left);if(Gi===void 0)return Tt;const mn=Gi.parent,Wr=Hc(H.checkDefined(Gi.valueDeclaration,"should always have a declaration"))?Jn(mn):q0(mn);return Au(Tt,Wr,Wi,!0)}function qr(Tt,oi,Wi,Ci){const Gi=oi===35||oi===37,mn=oi===35||oi===36?98304:32768,Wr=C1(Wi);return Gi!==Ci&&Xm(Wr,go=>!!(go.flags&mn))||Gi===Ci&&Xm(Wr,go=>!(go.flags&(3|mn)))?bF(Tt,2097152):Tt}function Co(Tt,oi,Wi,Ci){if(Tt.flags&1)return Tt;(oi===36||oi===38)&&(Ci=!Ci);const Gi=C1(Wi),mn=oi===35||oi===36;if(Gi.flags&98304){if(!fe)return Tt;const Wr=mn?Ci?262144:2097152:Gi.flags&65536?Ci?131072:1048576:Ci?65536:524288;return bF(Tt,Wr)}if(Ci){if(!mn&&(Tt.flags&2||bE(Tt,bD))){if(Gi.flags&469893116||bD(Gi))return Gi;if(Gi.flags&524288)return rs}const Wr=zc(Tt,Fu=>Bte(Fu,Gi)||mn&&Lii(Fu,Gi));return Oht(Wr,Gi)}return Bg(Gi)?zc(Tt,Wr=>!(rht(Wr)&&Bte(Wr,Gi))):Tt}function qn(Tt,oi,Wi,Ci,Gi){(Wi===36||Wi===38)&&(Gi=!Gi);const mn=Mb(oi.expression);if(!v1(l,mn)){fe&&CF(mn,l)&&Gi===(Ci.text!=="undefined")&&(Tt=bF(Tt,2097152));const Wr=_n(mn,Tt);return Wr?fu(Tt,Wr,Fu=>As(Fu,Ci,Gi)):Tt}return As(Tt,Ci,Gi)}function As(Tt,oi,Wi){return Wi?Zs(Tt,oi.text):bF(Tt,jde.get(oi.text)||32768)}function B0(Tt,oi,Wi,Ci,Gi){return Wi!==Ci&&ye(gEe(oi).slice(Wi,Ci),Gi)?hp(Tt,2097152):Tt}function rd(Tt,oi,Wi,Ci){const Gi=gEe(oi);if(!Gi.length)return Tt;const mn=Gi.slice(Wi,Ci),Wr=Wi===Ci||Ft(mn,Wu);if(Tt.flags&2&&!Wr){let lr;for(let Ur=0;UrBte(Fu,lr)),Fu);if(!Wr)return go;const pn=zc(Tt,lr=>!(rht(lr)&&Ft(Gi,Wh(yii(lr)))));return go.flags&131072?pn:ir([go,pn])}function Zs(Tt,oi){switch(oi){case"string":return wd(Tt,ct,1);case"number":return wd(Tt,Qt,2);case"bigint":return wd(Tt,Ti,4);case"boolean":return wd(Tt,Er,8);case"symbol":return wd(Tt,tr,16);case"object":return Tt.flags&1?Tt:ir([wd(Tt,rs,32),wd(Tt,it,131072)]);case"function":return Tt.flags&1?Tt:wd(Tt,si,64);case"undefined":return wd(Tt,te,65536)}return wd(Tt,rs,128)}function wd(Tt,oi,Wi){return cl(Tt,Ci=>CE(Ci,oi,m4)?dp(Ci,Wi)?Ci:Wu:k6(oi,Ci)?oi:dp(Ci,Wi)?Es([Ci,oi]):Wu)}function yc(Tt,oi,Wi,Ci){const Gi=Iht(oi);if(!Gi)return Tt;const mn=$e(oi.caseBlock.clauses,go=>go.kind===297);if(Wi===Ci||mn>=Wi&&mnTz(pn,go)===go)}const Fu=Gi.slice(Wi,Ci);return ir(Kt(Fu,go=>go?Zs(Tt,go):Wu))}function Z0(Tt,oi,Wi,Ci){const Gi=$e(oi.caseBlock.clauses,Fu=>Fu.kind===297),mn=Wi===Ci||Gi>=Wi&&GiFu.kind===296?Ou(Tt,Fu.expression,!0):Wu))}function Cm(Tt){return(Iu(Tt)&&mu(Tt.name)==="constructor"||W0(Tt)&&t0(Tt.argumentExpression)&&Tt.argumentExpression.text==="constructor")&&v1(l,Tt.expression)}function At(Tt,oi,Wi,Ci){if(Ci?oi!==35&&oi!==37:oi!==36&&oi!==38)return Tt;const Gi=C1(Wi);if(!Gze(Gi)&&!jr(Gi))return Tt;const mn=$o(Gi,"prototype");if(!mn)return Tt;const Wr=Jn(mn),Fu=nt(Wr)?void 0:Wr;if(!Fu||Fu===Ve||Fu===si)return Tt;if(nt(Tt))return Fu;return zc(Tt,pn=>go(pn,Fu));function go(pn,lr){return pn.flags&524288&&$u(pn)&1||lr.flags&524288&&$u(lr)&1?pn.symbol===lr.symbol:k6(pn,lr)}}function ze(Tt,oi,Wi){const Ci=Mb(oi.left);if(!v1(l,Ci))return Wi&&fe&&CF(Ci,l)?bF(Tt,2097152):Tt;const Gi=oi.right,mn=C1(Gi);if(!BC(mn,Ve))return Tt;const Wr=Vte(oi),Fu=Wr&&b4(Wr);if(Fu&&Fu.kind===1&&Fu.parameterIndex===0)return Au(Tt,Fu.type,Wi,!0);if(!BC(mn,si))return Tt;const go=cl(mn,Xn);return nt(Tt)&&(go===Ve||go===si)||!Wi&&!(go.flags&524288&&!bD(go))?Tt:Au(Tt,go,Wi,!0)}function Xn(Tt){const oi=he(Tt,"prototype");if(oi&&!nt(oi))return oi;const Wi=mo(Tt,1);return Wi.length?ir(Kt(Wi,Ci=>qs(uW(Ci)))):Ho}function Au(Tt,oi,Wi,Ci){const Gi=Tt.flags&1048576?`N${kh(Tt)},${kh(oi)},${(Wi?1:0)|(Ci?2:0)}`:void 0;return qk(Gi)??cb(Gi,Dr(Tt,oi,Wi,Ci))}function Dr(Tt,oi,Wi,Ci){if(!Wi){if(Ci)return zc(Tt,go=>!BC(go,oi));const Fu=Au(Tt,oi,!0,!1);return zc(Tt,go=>!Lz(go,Fu))}if(Tt.flags&3)return oi;const Gi=Ci?BC:k6,mn=Tt.flags&1048576?zte(Tt):void 0,Wr=cl(oi,Fu=>{const go=mn&&he(Fu,mn),pn=go&&Ite(Tt,go),lr=cl(pn||Tt,Ci?Ur=>BC(Ur,Fu)?Ur:BC(Fu,Ur)?Fu:Wu:Ur=>j1t(Ur,Fu)?Ur:j1t(Fu,Ur)?Fu:k6(Ur,Fu)?Ur:k6(Fu,Ur)?Fu:Wu);return lr.flags&131072?cl(Tt,Ur=>Ol(Ur,465829888)&&Gi(Fu,Hh(Ur)||on)?Es([Ur,Fu]):Wu):lr});return Wr.flags&131072?k6(oi,Tt)?oi:hs(Tt,oi)?Tt:hs(oi,Tt)?oi:Es([Tt,oi]):Wr}function pr(Tt,oi,Wi){if(Sht(oi,l)){const Ci=Wi||!Gy(oi)?Vte(oi):void 0,Gi=Ci&&b4(Ci);if(Gi&&(Gi.kind===0||Gi.kind===1))return Mr(Tt,Gi,oi,Wi)}if(pW(Tt)&&N0(l)&&Iu(oi.expression)){const Ci=oi.expression;if(v1(l.expression,Mb(Ci.expression))&&at(Ci.name)&&Ci.name.escapedText==="hasOwnProperty"&&oi.arguments.length===1){const Gi=oi.arguments[0];if(t0(Gi)&&vF(l)===kl(Gi.text))return hp(Tt,Wi?524288:65536)}}return Tt}function Mr(Tt,oi,Wi,Ci){if(oi.type&&!(nt(Tt)&&(oi.type===Ve||oi.type===si))){const Gi=wni(oi,Wi);if(Gi){if(v1(l,Gi))return Au(Tt,oi.type,Ci,!1);fe&&CF(Gi,l)&&(Ci&&!dp(oi.type,65536)||!Ci&&Xm(oi.type,Yte))&&(Tt=bF(Tt,2097152));const mn=_n(Gi,Tt);if(mn)return fu(Tt,mn,Wr=>Au(Wr,oi.type,Ci,!1))}}return Tt}function Ou(Tt,oi,Wi){if(TU(oi)||tu(oi.parent)&&(oi.parent.operatorToken.kind===61||oi.parent.operatorToken.kind===78)&&oi.parent.left===oi)return vu(Tt,oi,Wi);switch(oi.kind){case 80:if(!v1(l,oi)&&J<5){const Ci=$p(oi);if(Pz(Ci)){const Gi=Ci.valueDeclaration;if(Gi&&ua(Gi)&&!Gi.type&&Gi.initializer&&Kht(l)){J++;const mn=Ou(Tt,Gi.initializer,Wi);return J--,mn}}}case 110:case 108:case 211:case 212:return co(Tt,oi,Wi);case 213:return pr(Tt,oi,Wi);case 217:case 235:return Ou(Tt,oi.expression,Wi);case 226:return dn(Tt,oi,Wi);case 224:if(oi.operator===54)return Ou(Tt,oi.operand,!Wi);break}return Tt}function vu(Tt,oi,Wi){if(v1(l,oi))return bF(Tt,Wi?2097152:262144);const Ci=_n(oi,Tt);return Ci?fu(Tt,Ci,Gi=>hp(Gi,Wi?2097152:262144)):Tt}}function Lni(l,m){if(l=ap(l),(m.kind===80||m.kind===81)&&(pP(m)&&(m=m.parent),q_(m)&&(!Y_(m)||E7(m)))){const D=aEe(E7(m)&&m.kind===211?wEe(m,void 0,!0):C1(m));if(ap(sr(m).resolvedSymbol)===l)return D}return Q3(m)&&XD(m.parent)&&i0(m.parent)?_ge(m.parent.symbol):lle(m)&&E7(m.parent)?hF(l):g6(l)}function xW(l){return Ln(l.parent,m=>xo(m)&&!tk(m)||m.kind===268||m.kind===312||m.kind===172)}function vEe(l){if(!l.valueDeclaration)return!1;const m=QE(l.valueDeclaration).parent,D=sr(m);return D.flags&131072||(D.flags|=131072,Nni(m)||Wht(m)),l.isAssigned||!1}function Nni(l){return!!Ln(l.parent,m=>(xo(m)||H2(m))&&!!(sr(m).flags&131072))}function Wht(l){if(l.kind===80){if(Y_(l)){const m=$p(l);Ple(m)&&(m.isAssigned=!0)}}else ro(l,Wht)}function Pz(l){return l.flags&3&&(IMe(l)&6)!==0}function Pni(l){const m=sr(l);if(m.parameterInitializerContainsUndefined===void 0){if(!__(l,9))return Yw(l.symbol),!0;const D=!!dp(SW(l,0),16777216);if(!vE())return Yw(l.symbol),!0;m.parameterInitializerContainsUndefined=D}return m.parameterInitializerContainsUndefined}function Mni(l,m){return fe&&m.kind===169&&m.initializer&&dp(l,16777216)&&!Pni(m)?hp(l,524288):l}function zni(l,m){const D=m.parent;return D.kind===211||D.kind===166||D.kind===213&&D.expression===m||D.kind===212&&D.expression===m&&!(bE(l,Jht)&&kC(C1(D.argumentExpression)))}function Ght(l){return l.flags&2097152?qe(l.types,Ght):!!(l.flags&465829888&&DD(l).flags&1146880)}function Jht(l){return l.flags&2097152?qe(l.types,Jht):!!(l.flags&465829888&&!Ol(DD(l),98304))}function Ini(l,m){const D=(at(l)||Iu(l)||W0(l))&&!((rE(l.parent)||vk(l.parent))&&l.parent.tagName===l)&&(m&&m&32?df(l,8):df(l,void 0));return D&&!yz(D)}function _Me(l,m,D){return!(D&&D&2)&&bE(l,Ght)&&(zni(l,m)||Ini(m,D))?cl(l,DD):l}function $ht(l){return!!Ln(l,m=>{const D=m.parent;return D===void 0?"quit":ec(D)?D.expression===m&&Xl(m):X1(D)?D.name===m||D.propertyName===m:!1})}function CEe(l,m){if(Ut&&cC(l,111551)&&!sk(m)){const D=hd(l);R1(l,!0)&1160127&&(hg(ae)||dk(ae)&&$ht(m)||!IW(ap(D))?w5(l):i1(l))}}function Rni(l,m){var D;const C=Jn(l),A=l.valueDeclaration;if(A){if(Rs(A)&&!A.initializer&&!A.dotDotDotToken&&A.parent.elements.length>=2){const w=A.parent.parent;if(w.kind===260&&Hb(A)&6||w.kind===169){const I=sr(w);if(!(I.flags&4194304)){I.flags|=4194304;const U=vi(w,0),Z=U&&cl(U,DD);if(I.flags&=-4194305,Z&&Z.flags&1048576&&!(w.kind===169&&vEe(l))){const ce=A.parent,Fe=B6(ce,Z,Z,void 0,m.flowNode);return Fe.flags&131072?Wu:x4(A,Fe,!0)}}}}if(eo(A)&&!A.type&&!A.initializer&&!A.dotDotDotToken){const w=A.parent;if(w.parameters.length>=2&&$ge(w)){const I=CW(w);if(I&&I.parameters.length===1&&eh(I)){const U=_z(Da(Jn(I.parameters[0]),(D=Ib(w))==null?void 0:D.nonFixingMapper));if(U.flags&1048576&&Xm(U,_s)&&!vEe(l)){const Z=B6(w,U,U,void 0,m.flowNode),ce=w.parameters.indexOf(A)-(S2(w)?1:0);return Uf(Z,Sg(ce))}}}}}return C}function Oni(l,m){if(m7(l))return Wte(l);const D=$p(l);if(D===Xt)return jt;if(D===It){if(wft(l))return pt(l,F.arguments_cannot_be_referenced_in_property_initializers),jt;const Ii=Lm(l);return Ce<2&&(Ii.kind===219?pt(l,F.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Xu(Ii,1024)&&pt(l,F.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),sr(Ii).flags|=512,Jn(D)}Vni(l)&&CEe(D,l);const C=ap(D),A=Oze(C,l);A5(A)&&DPe(l,A)&&A.declarations&&f3(l,A.declarations,l.escapedText);let w=C.valueDeclaration;if(w&&C.flags&32&&gr(w)&&w.name!==l){let Ii=ef(l,!1,!1);for(;Ii.kind!==312&&Ii.parent!==w;)Ii=ef(Ii,!1,!1);Ii.kind!==312&&(sr(w).flags|=262144,sr(Ii).flags|=262144,sr(l).flags|=536870912)}Wni(l,D);let I=Rni(C,l);const U=d7(l);if(U){if(!(C.flags&3)&&!(eu(l)&&C.flags&512)){const Ii=C.flags&384?F.Cannot_assign_to_0_because_it_is_an_enum:C.flags&32?F.Cannot_assign_to_0_because_it_is_a_class:C.flags&1536?F.Cannot_assign_to_0_because_it_is_a_namespace:C.flags&16?F.Cannot_assign_to_0_because_it_is_a_function:C.flags&2097152?F.Cannot_assign_to_0_because_it_is_an_import:F.Cannot_assign_to_0_because_it_is_not_a_variable;return pt(l,Ii,Sr(D)),jt}if(Tg(C))return C.flags&3?pt(l,F.Cannot_assign_to_0_because_it_is_a_constant,Sr(D)):pt(l,F.Cannot_assign_to_0_because_it_is_a_read_only_property,Sr(D)),jt}const Z=C.flags&2097152;if(C.flags&3){if(U===1)return R0e(l)?yD(I):I}else if(Z)w=np(D);else return I;if(!w)return I;I=_Me(I,l,m);const ce=QE(w).kind===169,Fe=xW(w);let Te=xW(l);const Je=Te!==Fe,ut=l.parent&&l.parent.parent&&c5(l.parent)&&gMe(l.parent.parent),zt=D.flags&134217728,fi=I===ni||I===Lc,Ki=fi&&l.parent.kind===235;for(;Te!==Fe&&(Te.kind===218||Te.kind===219||rq(Te))&&(Pz(C)&&I!==Lc||ce&&!vEe(C));)Te=xW(Te);const cn=ce||Z||Je||ut||zt||jni(l,w)||I!==ni&&I!==Lc&&(!fe||(I.flags&16387)!==0||sk(l)||cMe(l)||l.parent.kind===281)||l.parent.kind===235||w.kind===260&&w.exclamationToken||w.flags&33554432,uu=Ki?te:cn?ce?Mni(I,w):I:fi?te:A6(I),En=Ki?kD(B6(l,I,uu,Te)):B6(l,I,uu,Te);if(!Vht(l)&&(I===ni||I===Lc)){if(En===ni||En===Lc)return Ae&&(pt(qa(w),F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Sr(D),gn(En)),pt(l,F.Variable_0_implicitly_has_an_1_type,Sr(D),gn(En))),zW(En)}else if(!cn&&!kz(I)&&kz(En))return pt(l,F.Variable_0_is_used_before_being_assigned,Sr(D)),I;return U?yD(En):En}function jni(l,m){if(Rs(m)){const D=Ln(l,Rs);return D&&QE(D)===QE(m)}}function Vni(l){var m;const D=l.parent;if(D){if(Iu(D)&&D.expression===l||X1(D)&&D.isTypeOnly)return!1;const C=(m=D.parent)==null?void 0:m.parent;if(C&&Wc(C)&&C.isTypeOnly)return!1}return!0}function Hni(l,m){return!!Ln(l,D=>D===m?"quit":xo(D)||D.parent&&bo(D.parent)&&!Hc(D.parent)&&D.parent.initializer===D)}function Kni(l,m){return Ln(l,D=>D===m?"quit":D===m.initializer||D===m.condition||D===m.incrementor||D===m.statement)}function DMe(l){return Ln(l,m=>!m||$0e(m)?"quit":wx(m,!1))}function Wni(l,m){if(Ce>=2||!(m.flags&34)||!m.valueDeclaration||ca(m.valueDeclaration)||m.valueDeclaration.parent.kind===299)return;const D=ZE(m.valueDeclaration),C=Hni(l,D),A=DMe(D);if(A){if(C){let w=!0;if(Dk(D)){const I=yv(m.valueDeclaration,261);if(I&&I.parent===D){const U=Kni(l.parent,D);if(U){const Z=sr(U);Z.flags|=8192;const ce=Z.capturedBlockScopeBindings||(Z.capturedBlockScopeBindings=[]);va(ce,m),U===D.initializer&&(w=!1)}}}w&&(sr(A).flags|=4096)}if(Dk(D)){const w=yv(m.valueDeclaration,261);w&&w.parent===D&&Jni(l,D)&&(sr(m.valueDeclaration).flags|=65536)}sr(m.valueDeclaration).flags|=32768}C&&(sr(m.valueDeclaration).flags|=16384)}function Gni(l,m){const D=sr(l);return!!D&&Ft(D.capturedBlockScopeBindings,Du(m))}function Jni(l,m){let D=l;for(;D.parent.kind===217;)D=D.parent;let C=!1;if(Y_(D))C=!0;else if(D.parent.kind===224||D.parent.kind===225){const A=D.parent;C=A.operator===46||A.operator===47}return C?!!Ln(D,A=>A===m?"quit":A===m.statement):!1}function xMe(l,m){if(sr(l).flags|=2,m.kind===172||m.kind===176){const D=m.parent;sr(D).flags|=4}else sr(m).flags|=4}function Uht(l){return ek(l)?l:xo(l)?void 0:ro(l,Uht)}function vMe(l){const m=Du(l),D=q0(m);return Uc(D)===Ct}function qht(l,m,D){const C=m.parent;F2(C)&&!vMe(C)&&Aj(l)&&l.flowNode&&!xEe(l.flowNode,!1)&&pt(l,D)}function $ni(l,m){bo(m)&&Hc(m)&&ve&&m.initializer&&MO(m.initializer,l.pos)&&a4(m.parent)&&pt(l,F.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Wte(l){const m=sk(l);let D=ef(l,!0,!0),C=!1,A=!1;for(D.kind===176&&qht(l,D,F.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(D.kind===219&&(D=ef(D,!1,!A),C=!0),D.kind===167){D=ef(D,!C,!1),A=!0;continue}break}if($ni(l,D),A)pt(l,F.this_cannot_be_referenced_in_a_computed_property_name);else switch(D.kind){case 267:pt(l,F.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:pt(l,F.this_cannot_be_referenced_in_current_location);break;case 176:Zht(l,D)&&pt(l,F.this_cannot_be_referenced_in_constructor_arguments);break}!m&&C&&Ce<2&&xMe(l,D);const w=CMe(l,!0,D);if(De){const I=Jn(St);if(w===I&&C)pt(l,F.The_containing_arrow_function_captures_the_global_value_of_this);else if(!w){const U=pt(l,F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!ca(D)){const Z=CMe(D);Z&&Z!==I&&ps(U,Bu(D,F.An_outer_value_of_this_is_shadowed_by_this_container))}}}return w||me}function CMe(l,m=!0,D=ef(l,!1,!1)){const C=eu(l);if(xo(D)&&(!kMe(l)||S2(D))){let A=p6(D)||C&&Zni(D);if(!A){const w=qni(D);if(C&&w){const I=ka(w).symbol;I&&I.members&&I.flags&16&&(A=q0(I).thisType)}else FE(D)&&(A=q0(Vs(D.symbol)).thisType);A||(A=eft(D))}if(A)return B6(l,A)}if(gr(D.parent)){const A=Du(D.parent),w=To(D)?Jn(A):q0(A).thisType;return B6(l,w)}if(ca(D))if(D.commonJsModuleIndicator){const A=Du(D);return A&&Jn(A)}else{if(D.externalModuleIndicator)return te;if(m)return Jn(St)}}function Uni(l){const m=ef(l,!1,!1);if(xo(m)){const D=lp(m);if(D.thisParameter)return _Ee(D.thisParameter)}if(gr(m.parent)){const D=Du(m.parent);return To(m)?Jn(D):q0(D).thisType}}function qni(l){if(l.kind===218&&tu(l.parent)&&Ql(l.parent)===3)return l.parent.left.expression.expression;if(l.kind===174&&l.parent.kind===210&&tu(l.parent.parent)&&Ql(l.parent.parent)===6)return l.parent.parent.left.expression;if(l.kind===218&&l.parent.kind===303&&l.parent.parent.kind===210&&tu(l.parent.parent.parent)&&Ql(l.parent.parent.parent)===6)return l.parent.parent.parent.left.expression;if(l.kind===218&&Gc(l.parent)&&at(l.parent.name)&&(l.parent.name.escapedText==="value"||l.parent.name.escapedText==="get"||l.parent.name.escapedText==="set")&&Cs(l.parent.parent)&&No(l.parent.parent.parent)&&l.parent.parent.parent.arguments[2]===l.parent.parent&&Ql(l.parent.parent.parent)===9)return l.parent.parent.parent.arguments[0].expression;if(cc(l)&&at(l.name)&&(l.name.escapedText==="value"||l.name.escapedText==="get"||l.name.escapedText==="set")&&Cs(l.parent)&&No(l.parent.parent)&&l.parent.parent.arguments[2]===l.parent&&Ql(l.parent.parent)===9)return l.parent.parent.arguments[0].expression}function Zni(l){const m=SU(l);if(m&&m.typeExpression)return Br(m.typeExpression);const D=Dz(l);if(D)return bC(D)}function Zht(l,m){return!!Ln(l,D=>K0(D)?"quit":D.kind===169&&D.parent===m)}function bMe(l){const m=l.parent.kind===213&&l.parent.expression===l,D=dj(l,!0);let C=D,A=!1,w=!1;if(!m){for(;C&&C.kind===219;)Xu(C,1024)&&(w=!0),C=dj(C,!0),A=Ce<2;C&&Xu(C,1024)&&(w=!0)}let I=0;if(!C||!Fe(C)){const Te=Ln(l,Je=>Je===C?"quit":Je.kind===167);return Te&&Te.kind===167?pt(l,F.super_cannot_be_referenced_in_a_computed_property_name):m?pt(l,F.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!C||!C.parent||!(gr(C.parent)||C.parent.kind===210)?pt(l,F.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):pt(l,F.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),jt}if(!m&&D.kind===176&&qht(l,C,F.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),To(C)||m?(I=32,!m&&Ce>=2&&Ce<=8&&(bo(C)||Ml(C))&&Mbe(l.parent,Te=>{(!ca(Te)||lm(Te))&&(sr(Te).flags|=2097152)})):I=16,sr(l).flags|=I,C.kind===174&&w&&(tf(l.parent)&&Y_(l.parent)?sr(C).flags|=256:sr(C).flags|=128),A&&xMe(l.parent,C),C.parent.kind===210)return Ce<2?(pt(l,F.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),jt):me;const U=C.parent;if(!F2(U))return pt(l,F.super_can_only_be_referenced_in_a_derived_class),jt;if(vMe(U))return m?jt:Ct;const Z=q0(Du(U)),ce=Z&&qc(Z)[0];if(!ce)return jt;if(C.kind===176&&Zht(l,C))return pt(l,F.super_cannot_be_referenced_in_constructor_arguments),jt;return I===32?Uc(Z):Dm(ce,Z.thisType);function Fe(Te){return m?Te.kind===176:gr(Te.parent)||Te.parent.kind===210?To(Te)?Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===175:Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===171||Te.kind===176:!1}}function Yht(l){return(l.kind===174||l.kind===177||l.kind===178)&&l.parent.kind===210?l.parent:l.kind===218&&l.parent.kind===303?l.parent.parent:void 0}function Qht(l){return $u(l)&4&&l.target===Cc?M0(l)[0]:void 0}function Yni(l){return cl(l,m=>m.flags&2097152?L(m.types,Qht):Qht(m))}function Xht(l,m){let D=l,C=m;for(;C;){const A=Yni(C);if(A)return A;if(D.parent.kind!==303)break;D=D.parent.parent,C=NC(D,void 0)}}function eft(l){if(l.kind===219)return;if($ge(l)){const D=CW(l);if(D){const C=D.thisParameter;if(C)return Jn(C)}}const m=eu(l);if(De||m){const D=Yht(l);if(D){const A=NC(D,void 0),w=Xht(D,A);return w?Da(w,eMe(Ib(D))):xm(A?kD(A):Ic(D))}const C=t5(l.parent);if(od(C)){const A=C.left;if(N0(A)){const{expression:w}=A;if(m&&at(w)){const I=In(C);if(I.commonJsModuleIndicator&&$p(w)===I.symbol)return}return xm(Ic(w))}}}}function tft(l){const m=l.parent;if(!$ge(m))return;const D=tk(m);if(D&&D.arguments){const A=IEe(D),w=m.parameters.indexOf(l);if(l.dotDotDotToken)return YMe(A,w,A.length,me,void 0,0);const I=sr(D),U=I.resolvedSignature;I.resolvedSignature=hi;const Z=w0)return O9(D.name,!0,!1)}}function tui(l,m){const D=Lm(l);if(D){let C=bEe(D,m);if(C){const A=yd(D);if(A&1){const w=(A&2)!==0;C.flags&1048576&&(C=zc(C,U=>!!Ob(1,U,w)));const I=Ob(1,C,(A&2)!==0);if(!I)return;C=I}if(A&2){const w=cl(C,K5);return w&&ir([w,mmt(w)])}return C}}}function iui(l,m){const D=df(l,m);if(D){const C=K5(D);return C&&ir([C,mmt(C)])}}function nui(l,m){const D=Lm(l);if(D){const C=yd(D);let A=bEe(D,m);if(A){const w=(C&2)!==0;return!l.asteriskToken&&A.flags&1048576&&(A=zc(A,I=>!!Ob(1,I,w))),l.asteriskToken?A:Ob(0,A,w)}}}function kMe(l){let m=!1;for(;l.parent&&!xo(l.parent);){if(eo(l.parent)&&(m||l.parent.initializer===l))return!0;Rs(l.parent)&&l.parent.initializer===l&&(m=!0),l=l.parent}return!1}function ift(l,m){const D=!!(yd(m)&2),C=bEe(m,void 0);if(C)return Ob(l,C,D)||void 0}function bEe(l,m){const D=iT(l);if(D)return D;const C=wMe(l);if(C&&!kge(C)){const w=qs(C),I=yd(l);return I&1?zc(w,U=>!!(U.flags&58998787)||Dze(U,I,void 0)):I&2?zc(w,U=>!!(U.flags&58998787)||!!Oz(U)):w}const A=tk(l);if(A)return df(A,m)}function nft(l,m){const C=IEe(l).indexOf(m);return C===-1?void 0:FMe(l,C)}function FMe(l,m){if(cm(l))return m===0?ct:m===1?Udt(!1):me;const D=sr(l).resolvedSignature===Gu?Gu:hT(l);if(Ph(l)&&m===0)return AEe(D,l);const C=D.parameters.length-1;return eh(D)&&m>=C?Uf(Jn(D.parameters[C]),Sg(m-C),256):wg(D,m)}function uui(l){const m=cze(l);return m?EF(m):void 0}function rui(l,m){if(l.parent.kind===215)return nft(l.parent,m)}function aui(l,m){const D=l.parent,{left:C,operatorToken:A,right:w}=D;switch(A.kind){case 64:case 77:case 76:case 78:return l===w?sui(D):void 0;case 57:case 61:const I=df(D,m);return l===w&&(I&&I.pattern||!I&&!iye(D))?C1(C):I;case 56:case 28:return l===w?df(D,m):void 0;default:return}}function oui(l){if(qg(l)&&l.symbol)return l.symbol;if(at(l))return $p(l);if(Iu(l)){const D=C1(l.expression);return Xr(l.name)?m(D,l.name):$o(D,l.name.escapedText)}if(W0(l)){const D=Ic(l.argumentExpression);if(!q4(D))return;const C=C1(l.expression);return $o(C,Z4(D))}return;function m(D,C){const A=TEe(C.escapedText,C);return A&&VMe(D,A)}}function sui(l){var m,D;const C=Ql(l);switch(C){case 0:case 4:const A=oui(l.left),w=A&&A.valueDeclaration;if(w&&(bo(w)||Pm(w))){const Z=h1(w);return Z&&Da(Br(Z),$r(A).mapper)||(bo(w)?w.initializer&&C1(l.left):void 0)}return C===0?C1(l.left):uft(l);case 5:if(yEe(l,C))return uft(l);if(!qg(l.left)||!l.left.symbol)return C1(l.left);{const Z=l.left.symbol.valueDeclaration;if(!Z)return;const ce=Lo(l.left,N0),Fe=h1(Z);if(Fe)return Br(Fe);if(at(ce.expression)){const Te=ce.expression,Je=nc(Te,Te.escapedText,111551,void 0,Te.escapedText,!0);if(Je){const ut=Je.valueDeclaration&&h1(Je.valueDeclaration);if(ut){const zt=Y3(ce);if(zt!==void 0)return zb(Br(ut),zt)}return}}return eu(Z)||Z===l.left?void 0:C1(l.left)}case 1:case 6:case 3:case 2:let I;C!==2&&(I=qg(l.left)?(m=l.left.symbol)==null?void 0:m.valueDeclaration:void 0),I||(I=(D=l.symbol)==null?void 0:D.valueDeclaration);const U=I&&h1(I);return U?Br(U):void 0;case 7:case 8:case 9:return H.fail("Does not apply");default:return H.assertNever(C)}}function yEe(l,m=Ql(l)){if(m===4)return!0;if(!eu(l)||m!==5||!at(l.left.expression))return!1;const D=l.left.expression.escapedText,C=nc(l.left,D,111551,void 0,void 0,!0,!0);return cq(C==null?void 0:C.valueDeclaration)}function uft(l){if(!l.symbol)return C1(l.left);if(l.symbol.valueDeclaration){const A=h1(l.symbol.valueDeclaration);if(A){const w=Br(A);if(w)return w}}const m=Lo(l.left,N0);if(!Np(ef(m.expression,!1,!1)))return;const D=Wte(m.expression),C=Y3(m);return C!==void 0&&zb(D,C)||void 0}function lui(l){return!!(Wl(l)&262144&&!l.links.type&&_C(l,0)>=0)}function zb(l,m,D){return cl(l,C=>{var A;if(Qm(C)&&!C.declaration.nameType){const w=sp(C),I=Hh(w)||w,U=D||cf(Yr(m));if(hs(U,I))return zge(C,U)}else if(C.flags&3670016){const w=$o(C,m);if(w)return lui(w)?void 0:S6(Jn(w),!!(w&&w.flags&16777216));if(_s(C)&&t3(m)&&+m>=0){const I=Bz(C,C.target.fixedLength,0,!1,!0);if(I)return I}return(A=$Ne(UNe(C),D||cf(Yr(m))))==null?void 0:A.type}},!0)}function rft(l,m){if(H.assert(Np(l)),!(l.flags&67108864))return AMe(l,m)}function AMe(l,m){const D=l.parent,C=Gc(l)&&yMe(l,m);if(C)return C;const A=NC(D,m);if(A){if(eT(l)){const w=Du(l);return zb(A,w.escapedName,$r(w).nameType)}if(zx(l)){const w=qa(l);if(w&&Ls(w)){const I=ka(w.expression),U=q4(I)&&zb(A,Z4(I));if(U)return U}}if(l.name){const w=O5(l.name);return cl(A,I=>{var U;return(U=$Ne(UNe(I),w))==null?void 0:U.type},!0)}}}function cui(l){let m,D;for(let C=0;C{if(_s(w)){if((C===void 0||mA)?D-m:0,U=I>0&&w.target.hasRestElement?aW(w.target,3):0;return I>0&&I<=U?M0(w)[R5(w)-I]:Bz(w,C===void 0?w.target.fixedLength:Math.min(w.target.fixedLength,C),D===void 0||A===void 0?U:Math.min(U,D-A),!1,!0)}return(!C||mV5(Z)?Uf(Z,Sg(I)):Z,!0))}function fui(l,m){const D=l.parent;return OU(D)?df(l,m):u3(D)?hui(D,l,m):void 0}function aft(l,m){if(aE(l)){const D=NC(l.parent,m);return!D||nt(D)?void 0:zb(D,PP(l.name))}else return df(l.parent,m)}function Gte(l){switch(l.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return Gte(l.expression);case 294:return!l.expression||Gte(l.expression)}return!1}function mui(l,m){return oni(m,l)||RPe(m,an(Kt(ei(l.properties,D=>D.symbol?D.kind===303?Gte(D.initializer)&&wz(m,D.symbol.escapedName):D.kind===304?wz(m,D.symbol.escapedName):!1:!1),D=>[()=>hie(D.kind===303?D.initializer:D.name),D.symbol.escapedName]),Kt(ei(n0(m),D=>{var C;return!!(D.flags&16777216)&&!!((C=l==null?void 0:l.symbol)!=null&&C.members)&&!l.symbol.members.has(D.escapedName)&&wz(m,D.escapedName)}),D=>[()=>te,D.escapedName])),hs)}function pui(l,m){const D=Ute(FF(l));return RPe(m,an(Kt(ei(l.properties,C=>!!C.symbol&&C.kind===291&&wz(m,C.symbol.escapedName)&&(!C.initializer||Gte(C.initializer))),C=>[C.initializer?()=>hie(C.initializer):()=>hu,C.symbol.escapedName]),Kt(ei(n0(m),C=>{var A;if(!(C.flags&16777216)||!((A=l==null?void 0:l.symbol)!=null&&A.members))return!1;const w=l.parent.parent;return C.escapedName===D&&u3(w)&&iB(w.children).length?!1:!l.symbol.members.has(C.escapedName)&&wz(m,C.escapedName)}),C=>[()=>te,C.escapedName])),hs)}function NC(l,m){const D=Np(l)?rft(l,m):df(l,m),C=kEe(D,l,m);if(C&&!(m&&m&2&&C.flags&8650752)){const A=cl(C,w=>$u(w)&32?w:Kh(w),!0);return A.flags&1048576&&Cs(l)?mui(l,A):A.flags&1048576&&V2(l)?pui(l,A):A}}function kEe(l,m,D){if(l&&Ol(l,465829888)){const C=Ib(m);if(C&&D&1&&qe(C.inferences,Zai))return FEe(l,C.nonFixingMapper);if(C!=null&&C.returnMapper){const A=FEe(l,C.returnMapper);return A.flags&1048576&&v6(A.types,Bn)&&v6(A.types,Ru)?zc(A,w=>w!==Bn&&w!==Ru):A}}return l}function FEe(l,m){return l.flags&465829888?Da(l,m):l.flags&1048576?ir(Kt(l.types,D=>FEe(D,m)),0):l.flags&2097152?Es(Kt(l.types,D=>FEe(D,m))):l}function df(l,m){var D;if(l.flags&67108864)return;const C=sft(l,!m);if(C>=0)return bu[C];const{parent:A}=l;switch(A.kind){case 260:case 169:case 172:case 171:case 208:return eui(l,m);case 219:case 253:return tui(l,m);case 229:return nui(A,m);case 223:return iui(A,m);case 213:case 214:return nft(A,l);case 170:return uui(A);case 216:case 234:return U3(A.type)?df(A,m):Br(A.type);case 226:return aui(l,m);case 303:case 304:return AMe(A,m);case 305:return df(A.parent,m);case 209:{const w=A,I=NC(w,m),U=R8(w.elements,l),Z=(D=sr(w)).spreadIndices??(D.spreadIndices=cui(w.elements));return SMe(I,U,w.elements.length,Z.first,Z.last)}case 227:return dui(l,m);case 239:return H.assert(A.parent.kind===228),rui(A.parent,l);case 217:{if(eu(A)){if(zle(A))return Br(Ile(A));const w=_v(A);if(w&&!U3(w.typeExpression.type))return Br(w.typeExpression.type)}return df(A,m)}case 235:return df(A,m);case 238:return Br(A.type);case 277:return dt(A);case 294:return fui(A,m);case 291:case 293:return aft(A,m);case 286:case 285:return _ui(A,m)}}function oft(l){Jte(l,df(l,void 0),!0)}function Jte(l,m,D){Ar[_u]=l,bu[_u]=m,yu[_u]=D,_u++}function vW(){_u--}function sft(l,m){for(let D=_u-1;D>=0;D--)if(l===Ar[D]&&(m||!yu[D]))return D;return-1}function gui(l,m){sa[a0]=l,m0[a0]=m,a0++}function Eui(){a0--}function Ib(l){for(let m=a0-1;m>=0;m--)if(k2(l,sa[m]))return m0[m]}function _ui(l,m){if(rE(l)&&m!==4){const D=sft(l.parent,!m);if(D>=0)return bu[D]}return FMe(l,0)}function AEe(l,m){return Wft(m)!==0?Dui(l,m):Cui(l,m)}function Dui(l,m){let D=sze(l,on);D=lft(m,FF(m),D);const C=Rb(Im.IntrinsicAttributes,m);return Lt(C)||(D=gte(C,D)),D}function xui(l,m){if(l.compositeSignatures){const C=[];for(const A of l.compositeSignatures){const w=qs(A);if(nt(w))return w;const I=he(w,m);if(!I)return;C.push(I)}return Es(C)}const D=qs(l);return nt(D)?D:he(D,m)}function vui(l){if(Y9(l.tagName)){const D=_ft(l),C=REe(l,D);return EF(C)}const m=Ic(l.tagName);if(m.flags&128){const D=Eft(m,l);if(!D)return jt;const C=REe(l,D);return EF(C)}return m}function lft(l,m,D){const C=Hui(m);if(C){const A=vui(l),w=vft(C,eu(l),A,D);if(w)return w}return D}function Cui(l,m){const D=FF(m),C=Wui(D);let A=C===void 0?sze(l,on):C===""?qs(l):xui(l,C);if(!A)return C&&S(m.attributes.properties)&&pt(m,F.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Yr(C)),on;if(A=lft(m,D,A),nt(A))return A;{let w=A;const I=Rb(Im.IntrinsicClassAttributes,m);if(!Lt(I)){const Z=sn(I.symbol),ce=qs(l);let Fe;if(Z){const Te=D6([ce],Z,C_(Z),eu(m));Fe=Da(I,Af(Z,Te))}else Fe=I;w=gte(Fe,w)}const U=Rb(Im.IntrinsicAttributes,m);return Lt(U)||(w=gte(U,w)),w}}function bui(l){return U4(ae,"noImplicitAny")?tn(l,(m,D)=>m===D||!m?m:ddt(m.typeParameters,D.typeParameters)?Fui(m,D):void 0):void 0}function yui(l,m,D){if(!l||!m)return l||m;const C=ir([Jn(l),Da(Jn(m),D)]);return xF(l,C)}function kui(l,m,D){const C=vm(l),A=vm(m),w=C>=A?l:m,I=w===l?m:l,U=w===l?C:A,Z=k_(l)||k_(m),ce=Z&&!k_(w),Fe=new Array(U+(ce?1:0));for(let Te=0;Te=AE(w)&&Te>=AE(I),cn=Te>=C?void 0:zz(l,Te),uu=Te>=A?void 0:zz(m,Te),En=cn===uu?cn:cn?uu?void 0:cn:uu,Ii=js(1|(Ki&&!fi?16777216:0),En||`arg${Te}`);Ii.links.type=fi?j1(zt):zt,Fe[Te]=Ii}if(ce){const Te=js(1,"args");Te.links.type=j1(wg(I,U)),I===m&&(Te.links.type=Da(Te.links.type,D)),Fe[U]=Te}return Fe}function Fui(l,m){const D=l.typeParameters||m.typeParameters;let C;l.typeParameters&&m.typeParameters&&(C=Af(m.typeParameters,l.typeParameters));const A=l.declaration,w=kui(l,m,C),I=yui(l.thisParameter,m.thisParameter,C),U=Math.max(l.minArgumentCount,m.minArgumentCount),Z=b3(A,D,I,w,void 0,void 0,U,(l.flags|m.flags)&167);return Z.compositeKind=2097152,Z.compositeSignatures=an(l.compositeKind===2097152&&l.compositeSignatures||[l],[m]),C&&(Z.mapper=l.compositeKind===2097152&&l.mapper&&l.compositeSignatures?SC(l.mapper,C):C),Z}function BMe(l,m){const D=mo(l,0),C=ei(D,A=>!Aui(A,m));return C.length===1?C[0]:bui(C)}function Aui(l,m){let D=0;for(;DI[ut]&8?C6(Je,Qt)||me:Je),2):fe?Tn:we,Z))}function dft(l){if(!($u(l)&4))return l;let m=l.literalType;return m||(m=l.literalType=zdt(l),m.objectFlags|=147456),m}function Tui(l){switch(l.kind){case 167:return Lui(l);case 80:return t3(l.escapedText);case 9:case 11:return t3(l.text);default:return!1}}function Lui(l){return n1(k3(l),296)}function k3(l){const m=sr(l.expression);if(!m.resolvedType){if((hm(l.parent.parent)||gr(l.parent.parent)||Dh(l.parent.parent))&&tu(l.expression)&&l.expression.operatorToken.kind===103&&l.parent.kind!==177&&l.parent.kind!==178)return m.resolvedType=jt;if(m.resolvedType=ka(l.expression),bo(l.parent)&&!Hc(l.parent)&&Qd(l.parent.parent)){const D=ZE(l.parent.parent),C=DMe(D);C&&(sr(C).flags|=4096,sr(l).flags|=32768,sr(l.parent.parent).flags|=32768)}(m.resolvedType.flags&98304||!n1(m.resolvedType,402665900)&&!hs(m.resolvedType,An))&&pt(l,F.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return m.resolvedType}function Nui(l){var m;const D=(m=l.declarations)==null?void 0:m[0];return t3(l.escapedName)||D&&fh(D)&&Tui(D.name)}function hft(l){var m;const D=(m=l.declarations)==null?void 0:m[0];return Mj(l)||D&&fh(D)&&Ls(D.name)&&n1(k3(D.name),4096)}function TMe(l,m,D,C){const A=[];for(let I=m;I0&&(U=wb(U,Pn(),l.symbol,fi,Fe),I=[],w=jo(),cn=!1,uu=!1,En=!1);const fu=Fg(ka(Cn.expression,m&2));if($te(fu)){const ao=yPe(fu,Fe);if(A&&mft(ao,A,Cn),Ii=I.length,Lt(U))continue;U=wb(U,ao,l.symbol,fi,Fe)}else pt(Cn,F.Spread_types_may_only_be_created_from_object_types),U=jt;continue}else H.assert(Cn.kind===177||Cn.kind===178),Q9(Cn);_n&&!(_n.flags&8576)?hs(_n,An)&&(hs(_n,Qt)?uu=!0:hs(_n,tr)?En=!0:cn=!0,C&&(Ki=!0)):w.set(Sn.escapedName,Sn),I.push(Sn)}if(vW(),ce){const Cn=Ln(Z.pattern.parent,_n=>_n.kind===260||_n.kind===226||_n.kind===169);if(Ln(l,_n=>_n===Cn||_n.kind===305).kind!==305)for(const _n of n0(Z))!w.get(_n.escapedName)&&!$o(U,_n.escapedName)&&(_n.flags&16777216||pt(_n.valueDeclaration||((D=ar(_n,UE))==null?void 0:D.links.bindingElement),F.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),w.set(_n.escapedName,_n),I.push(_n))}if(Lt(U))return jt;if(U!==Ho)return I.length>0&&(U=wb(U,Pn(),l.symbol,fi,Fe),I=[],w=jo(),cn=!1,uu=!1),cl(U,Cn=>Cn===Ho?Pn():Cn);return Pn();function Pn(){const Cn=[];cn&&Cn.push(TMe(l,Ii,I,ct)),uu&&Cn.push(TMe(l,Ii,I,Qt)),En&&Cn.push(TMe(l,Ii,I,tr));const Sn=Rl(l.symbol,w,_t,_t,Cn);return Sn.objectFlags|=fi|128|131072,zt&&(Sn.objectFlags|=4096),Ki&&(Sn.objectFlags|=512),C&&(Sn.pattern=l),Sn}}function $te(l){const m=cht(cl(l,DD));return!!(m.flags&126615553||m.flags&3145728&&ye(m.types,$te))}function Mui(l){MMe(l)}function zui(l,m){return Q9(l),qte(l)||me}function Iui(l){MMe(l.openingElement),Y9(l.closingElement.tagName)?BEe(l.closingElement):ka(l.closingElement.tagName),SEe(l)}function Rui(l,m){return Q9(l),qte(l)||me}function Oui(l){MMe(l.openingFragment);const m=In(l);return Qq(ae)&&(ae.jsxFactory||m.pragmas.has("jsx"))&&!ae.jsxFragmentFactory&&!m.pragmas.has("jsxfrag")&&pt(l,ae.jsxFactory?F.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:F.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),SEe(l),qte(l)||me}function NMe(l){return l.includes("-")}function Y9(l){return at(l)&&uB(l.escapedText)||mg(l)}function fft(l,m){return l.initializer?Rz(l.initializer,m):hu}function jui(l,m=0){const D=l.attributes,C=df(D,0),A=fe?jo():void 0;let w=jo(),I=wc,U=!1,Z,ce=!1,Fe=2048;const Te=Ute(FF(l));for(const zt of D.properties){const fi=zt.symbol;if(aE(zt)){const Ki=fft(zt,m);Fe|=$u(Ki)&458752;const cn=js(4|fi.flags,fi.escapedName);if(cn.declarations=fi.declarations,cn.parent=fi.parent,fi.valueDeclaration&&(cn.valueDeclaration=fi.valueDeclaration),cn.links.type=Ki,cn.links.target=fi,w.set(cn.escapedName,cn),A==null||A.set(cn.escapedName,cn),PP(zt.name)===Te&&(ce=!0),C){const uu=$o(C,fi.escapedName);uu&&uu.declarations&&A5(uu)&&at(zt.name)&&f3(zt.name,uu.declarations,zt.name.escapedText)}if(C&&m&2&&!(m&4)&&y4(zt)){const uu=Ib(D);H.assert(uu);const En=zt.initializer.expression;QPe(uu,En,Ki)}}else{H.assert(zt.kind===293),w.size>0&&(I=wb(I,ut(),D.symbol,Fe,!1),w=jo());const Ki=Fg(ka(zt.expression,m&2));nt(Ki)&&(U=!0),$te(Ki)?(I=wb(I,Ki,D.symbol,Fe,!1),A&&mft(Ki,A,zt)):(pt(zt.expression,F.Spread_types_may_only_be_created_from_object_types),Z=Z?Es([Z,Ki]):Ki)}}U||w.size>0&&(I=wb(I,ut(),D.symbol,Fe,!1));const Je=l.parent.kind===284?l.parent:void 0;if(Je&&Je.openingElement===l&&iB(Je.children).length>0){const zt=SEe(Je,m);if(!U&&Te&&Te!==""){ce&&pt(D,F._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Yr(Te));const fi=NC(l.attributes,void 0),Ki=fi&&zb(fi,Te),cn=js(4,Te);cn.links.type=zt.length===1?zt[0]:Ki&&bE(Ki,Sz)?Ag(zt):j1(ir(zt)),cn.valueDeclaration=q.createPropertySignature(void 0,Yr(Te),void 0,void 0),bs(cn.valueDeclaration,D),cn.valueDeclaration.symbol=cn;const uu=jo();uu.set(Te,cn),I=wb(I,Rl(D.symbol,uu,_t,_t,_t),D.symbol,Fe,!1)}}if(U)return me;if(Z&&I!==wc)return Es([Z,I]);return Z||(I===wc?ut():I);function ut(){Fe|=Ze;const zt=Rl(D.symbol,w,_t,_t,_t);return zt.objectFlags|=Fe|128|131072,zt}}function SEe(l,m){const D=[];for(const C of l.children)if(C.kind===12)C.containsOnlyTriviaWhiteSpaces||D.push(ct);else{if(C.kind===294&&!C.expression)continue;D.push(Rz(C,m))}return D}function mft(l,m,D){for(const C of n0(l))if(!(C.flags&16777216)){const A=m.get(C.escapedName);if(A){const w=pt(A.valueDeclaration,F._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Yr(A.escapedName));ps(w,Bu(D,F.This_spread_always_overwrites_this_property))}}}function Vui(l,m){return jui(l.parent,m)}function Rb(l,m){const D=FF(m),C=D&&Jf(D),A=C&&yf(C,l,788968);return A?q0(A):jt}function BEe(l){const m=sr(l);if(!m.resolvedSymbol){const D=Rb(Im.IntrinsicElements,l);if(Lt(D))return Ae&&pt(l,F.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Yr(Im.IntrinsicElements)),m.resolvedSymbol=Xt;{if(!at(l.tagName)&&!mg(l.tagName))return H.fail();const C=mg(l.tagName)?b7(l.tagName):l.tagName.escapedText,A=$o(D,C);if(A)return m.jsxFlags|=1,m.resolvedSymbol=A;const w=j4t(D,cf(Yr(C)));return w?(m.jsxFlags|=2,m.resolvedSymbol=w):Re(D,C)?(m.jsxFlags|=2,m.resolvedSymbol=D.symbol):(pt(l,F.Property_0_does_not_exist_on_type_1,Rle(l.tagName),"JSX."+Im.IntrinsicElements),m.resolvedSymbol=Xt)}}return m.resolvedSymbol}function PMe(l){const m=l&&In(l),D=m&&sr(m);if(D&&D.jsxImplicitImportContainer===!1)return;if(D&&D.jsxImplicitImportContainer)return D.jsxImplicitImportContainer;const C=eZ(Xq(ae,m),ae);if(!C)return;const w=m1(ae)===1?F.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:F.Cannot_find_module_0_or_its_corresponding_type_declarations,I=fD(l,C,w,l),U=I&&I!==Xt?Vs(bc(I)):void 0;return D&&(D.jsxImplicitImportContainer=U||!1),U}function FF(l){const m=l&&sr(l);if(m&&m.jsxNamespace)return m.jsxNamespace;if(!m||m.jsxNamespace!==!1){let C=PMe(l);if(!C||C===Xt){const A=iC(l);C=nc(l,A,1920,void 0,A,!1)}if(C){const A=bc(yf(Jf(bc(C)),Im.JSX,1920));if(A&&A!==Xt)return m&&(m.jsxNamespace=A),A}m&&(m.jsxNamespace=!1)}const D=bc(vz(Im.JSX,1920,void 0));if(D!==Xt)return D}function pft(l,m){const D=m&&yf(m.exports,l,788968),C=D&&q0(D),A=C&&n0(C);if(A){if(A.length===0)return"";if(A.length===1)return A[0].escapedName;A.length>1&&D.declarations&&pt(D.declarations[0],F.The_global_type_JSX_0_may_not_have_more_than_one_property,Yr(l))}}function Hui(l){return l&&yf(l.exports,Im.LibraryManagedAttributes,788968)}function Kui(l){return l&&yf(l.exports,Im.ElementType,788968)}function Wui(l){return pft(Im.ElementAttributesPropertyNameContainer,l)}function Ute(l){return pft(Im.ElementChildrenAttributeNameContainer,l)}function gft(l,m){if(l.flags&4)return[hi];if(l.flags&128){const A=Eft(l,m);return A?[REe(m,A)]:(pt(m,F.Property_0_does_not_exist_on_type_1,l.value,"JSX."+Im.IntrinsicElements),_t)}const D=Kh(l);let C=mo(D,1);return C.length===0&&(C=mo(D,0)),C.length===0&&D.flags&1048576&&(C=PNe(Kt(D.types,A=>gft(A,m)))),C}function Eft(l,m){const D=Rb(Im.IntrinsicElements,m);if(!Lt(D)){const C=l.value,A=$o(D,kl(C));if(A)return Jn(A);const w=CC(D,ct);return w||void 0}return me}function Gui(l,m,D){if(l===1){const A=xft(D);A&&k4(m,A,Gf,D.tagName,F.Its_return_type_0_is_not_a_valid_JSX_element,C)}else if(l===0){const A=Dft(D);A&&k4(m,A,Gf,D.tagName,F.Its_instance_type_0_is_not_a_valid_JSX_element,C)}else{const A=xft(D),w=Dft(D);if(!A||!w)return;const I=ir([A,w]);k4(m,I,Gf,D.tagName,F.Its_element_type_0_is_not_a_valid_JSX_element,C)}function C(){const A=Vc(D.tagName);return uo(void 0,F._0_cannot_be_used_as_a_JSX_component,A)}}function _ft(l){var m;H.assert(Y9(l.tagName));const D=sr(l);if(!D.resolvedJsxElementAttributesType){const C=BEe(l);if(D.jsxFlags&1)return D.resolvedJsxElementAttributesType=Jn(C)||jt;if(D.jsxFlags&2){const A=mg(l.tagName)?b7(l.tagName):l.tagName.escapedText;return D.resolvedJsxElementAttributesType=((m=K9(Rb(Im.IntrinsicElements,l),A))==null?void 0:m.type)||jt}else return D.resolvedJsxElementAttributesType=jt}return D.resolvedJsxElementAttributesType}function Dft(l){const m=Rb(Im.ElementClass,l);if(!Lt(m))return m}function qte(l){return Rb(Im.Element,l)}function xft(l){const m=qte(l);if(m)return ir([m,it])}function Jui(l){const m=FF(l);if(!m)return;const D=Kui(m);if(!D)return;const C=vft(D,eu(l));if(!(!C||Lt(C)))return C}function vft(l,m,...D){const C=q0(l);if(l.flags&524288){const A=$r(l).typeParameters;if(S(A)>=D.length){const w=D6(D,A,D.length,m);return S(w)===0?C:uT(l,w)}}if(S(C.typeParameters)>=D.length){const A=D6(D,C.typeParameters,D.length,m);return I5(C,A)}}function $ui(l){const m=Rb(Im.IntrinsicElements,l);return m?n0(m):_t}function Uui(l){(ae.jsx||0)===0&&pt(l,F.Cannot_use_JSX_unless_the_jsx_flag_is_provided),qte(l)===void 0&&Ae&&pt(l,F.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function MMe(l){const m=Ph(l);if(m&&Oli(l),Uui(l),!PMe(l)){const D=Os&&ae.jsx===2?F.Cannot_find_name_0:void 0,C=iC(l),A=m?l.tagName:l;let w;if(O7(l)&&C==="null"||(w=nc(A,C,111551,D,C,!0)),w&&(w.isReferenced=67108863,Ut&&w.flags&2097152&&!E4(w)&&w5(w)),O7(l)){const I=In(l),U=Zk(I);U&&nc(A,U,111551,D,U,!0)}}if(m){const D=l,C=hT(D);jEe(C,l);const A=Jui(D);if(A!==void 0){const w=D.tagName,I=Y9(w)?cf(Rle(w)):ka(w);k4(I,A,Gf,w,F.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const U=Vc(w);return uo(void 0,F._0_cannot_be_used_as_a_JSX_component,U)})}else Gui(Wft(D),qs(C),D)}}function zMe(l,m,D){if(l.flags&524288){if(vC(l,m)||K9(l,m)||YK(m)&&y3(l,ct)||D&&NMe(m))return!0}else if(l.flags&3145728&&Zte(l)){for(const C of l.types)if(zMe(C,m,D))return!0}return!1}function Zte(l){return!!(l.flags&524288&&!($u(l)&512)||l.flags&67108864||l.flags&1048576&&qe(l.types,Zte)||l.flags&2097152&&ye(l.types,Zte))}function qui(l,m){if(Vli(l),l.expression){const D=ka(l.expression,m);return l.dotDotDotToken&&D!==me&&!F4(D)&&pt(l,F.JSX_spread_child_must_be_an_array_type),D}else return jt}function IMe(l){return l.valueDeclaration?Hb(l.valueDeclaration):0}function RMe(l){if(l.flags&8192||Wl(l)&4)return!0;if(eu(l.valueDeclaration)){const m=l.valueDeclaration.parent;return m&&tu(m)&&Ql(m)===3}}function OMe(l,m,D,C,A,w=!0){const I=w?l.kind===166?l.right:l.kind===205?l:l.kind===208&&l.propertyName?l.propertyName:l.name:void 0;return Cft(l,m,D,C,A,I)}function Cft(l,m,D,C,A,w){var I;const U=s4(A,D);if(m){if(Ce<2&&bft(A))return w&&pt(w,F.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(U&64)return w&&pt(w,F.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Sr(A),gn(Z9(A))),!1;if(!(U&256)&&((I=A.declarations)!=null&&I.some(ebe)))return w&&pt(w,F.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Sr(A)),!1}if(U&64&&bft(A)&&(hj(l)||Xbe(l)||Mp(l.parent)&&cq(l.parent.parent))){const ce=eD(lf(A));if(ce&&R0i(l))return w&&pt(w,F.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Sr(A),W4(ce.name)),!1}if(!(U&6))return!0;if(U&2){const ce=eD(lf(A));return Hze(l,ce)?!0:(w&&pt(w,F.Property_0_is_private_and_only_accessible_within_class_1,Sr(A),gn(Z9(A))),!1)}if(m)return!0;let Z=R4t(l,ce=>{const Fe=q0(Du(ce));return eht(Fe,A,D)});return!Z&&(Z=Zui(l),Z=Z&&eht(Z,A,D),U&256||!Z)?(w&&pt(w,F.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Sr(A),gn(Z9(A)||C)),!1):U&256?!0:(C.flags&262144&&(C=C.isThisType?uh(C):Hh(C)),!C||!j9(C,Z)?(w&&pt(w,F.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Sr(A),gn(Z),gn(C)),!1):!0)}function Zui(l){const m=Yui(l);let D=(m==null?void 0:m.type)&&Br(m.type);if(D&&D.flags&262144&&(D=uh(D)),D&&$u(D)&7)return Qw(D)}function Yui(l){const m=ef(l,!1,!1);return m&&xo(m)?S2(m):void 0}function bft(l){return!!Nte(l,m=>!(m.flags&8192))}function cT(l){return yE(ka(l),l)}function Yte(l){return dp(l,50331648)}function jMe(l){return Yte(l)?kD(l):l}function Qui(l,m){const D=Xl(l)?Mf(l):void 0;if(l.kind===106){pt(l,F.The_value_0_cannot_be_used_here,"null");return}if(D!==void 0&&D.length<100){if(at(l)&&D==="undefined"){pt(l,F.The_value_0_cannot_be_used_here,"undefined");return}pt(l,m&16777216?m&33554432?F._0_is_possibly_null_or_undefined:F._0_is_possibly_undefined:F._0_is_possibly_null,D)}else pt(l,m&16777216?m&33554432?F.Object_is_possibly_null_or_undefined:F.Object_is_possibly_undefined:F.Object_is_possibly_null)}function Xui(l,m){pt(l,m&16777216?m&33554432?F.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:F.Cannot_invoke_an_object_which_is_possibly_undefined:F.Cannot_invoke_an_object_which_is_possibly_null)}function yft(l,m,D){if(fe&&l.flags&2){if(Xl(m)){const A=Mf(m);if(A.length<100)return pt(m,F._0_is_of_type_unknown,A),jt}return pt(m,F.Object_is_of_type_unknown),jt}const C=Tz(l,50331648);if(C&50331648){D(m,C);const A=kD(l);return A.flags&229376?jt:A}return l}function yE(l,m){return yft(l,m,Qui)}function kft(l,m){const D=yE(l,m);if(D.flags&16384){if(Xl(m)){const C=Mf(m);if(at(m)&&C==="undefined")return pt(m,F.The_value_0_cannot_be_used_here,C),D;if(C.length<100)return pt(m,F._0_is_possibly_undefined,C),D}pt(m,F.Object_is_possibly_undefined)}return D}function wEe(l,m,D){return l.flags&64?eri(l,m):HMe(l,l.expression,cT(l.expression),l.name,m,D)}function eri(l,m){const D=ka(l.expression),C=mW(D,l.expression);return oEe(HMe(l,l.expression,yE(C,l.expression),l.name,m),l,C!==D)}function Fft(l,m){const D=mq(l)&&w2(l.left)?yE(Wte(l.left),l.left):cT(l.left);return HMe(l,l.left,D,l.right,m)}function Aft(l){for(;l.parent.kind===217;)l=l.parent;return JE(l.parent)&&l.parent.expression===l}function TEe(l,m){for(let D=sq(m);D;D=Zd(D)){const{symbol:C}=D,A=Pj(C,l),w=C.members&&C.members.get(A)||C.exports&&C.exports.get(A);if(w)return w}}function tri(l){if(!Zd(l))return qi(l,F.Private_identifiers_are_not_allowed_outside_class_bodies);if(!sY(l.parent)){if(!q_(l))return qi(l,F.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const m=tu(l.parent)&&l.parent.operatorToken.kind===103;if(!LEe(l)&&!m)return qi(l,F.Cannot_find_name_0,mu(l))}return!1}function iri(l){tri(l);const m=LEe(l);return m&&Xte(m,void 0,!1),me}function LEe(l){if(!q_(l))return;const m=sr(l);return m.resolvedSymbol===void 0&&(m.resolvedSymbol=TEe(l.escapedText,l)),m.resolvedSymbol}function VMe(l,m){return $o(l,m.escapedName)}function nri(l,m,D){let C;const A=n0(l);A&&L(A,I=>{const U=I.valueDeclaration;if(U&&fh(U)&&Xr(U.name)&&U.name.escapedText===m.escapedText)return C=I,!0});const w=Wp(m);if(C){const I=H.checkDefined(C.valueDeclaration),U=H.checkDefined(Zd(I));if(D!=null&&D.valueDeclaration){const Z=D.valueDeclaration,ce=Zd(Z);if(H.assert(!!ce),Ln(ce,Fe=>U===Fe)){const Fe=pt(m,F.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,w,gn(l));return ps(Fe,Bu(Z,F.The_shadowing_declaration_of_0_is_defined_here,w),Bu(I,F.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,w)),!0}}return pt(m,F.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,w,Wp(U.name||$Y)),!0}return!1}function Sft(l,m){return(hz(m)||hj(l)&&Uw(m))&&ef(l,!0,!1)===qw(m)}function HMe(l,m,D,C,A,w){const I=sr(m).resolvedSymbol,U=d7(l),Z=Kh(U!==0||Aft(l)?xm(D):D),ce=nt(Z)||Z===ja;let Fe;if(Xr(C)){Ce<99&&(U!==0&&ud(l,1048576),U!==1&&ud(l,524288));const Je=TEe(C.escapedText,C);if(U&&Je&&Je.valueDeclaration&&cc(Je.valueDeclaration)&&qi(C,F.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,mu(C)),ce){if(Je)return Lt(Z)?jt:Z;if(sq(C)===void 0)return qi(C,F.Private_identifiers_are_not_allowed_outside_class_bodies),me}if(Fe=Je&&VMe(D,Je),Fe===void 0){if(nri(D,C,Je))return jt;const ut=sq(C);ut&&tj(In(ut),ae.checkJs)&&qi(C,F.Private_field_0_must_be_declared_in_an_enclosing_class,mu(C))}else Fe.flags&65536&&!(Fe.flags&32768)&&U!==1&&pt(l,F.Private_accessor_was_defined_without_a_getter)}else{if(ce)return at(m)&&I&&CEe(I,l),Lt(Z)?jt:Z;Fe=$o(Z,C.escapedText,KEe(Z),l.kind===166)}at(m)&&I&&(hg(ae)||!(Fe&&(IW(Fe)||Fe.flags&8&&l.parent.kind===306))||dk(ae)&&$ht(l))&&CEe(I,l);let Te;if(Fe){const Je=Oze(Fe,C);if(A5(Je)&&DPe(l,Je)&&Je.declarations&&f3(C,Je.declarations,C.escapedText),uri(Fe,l,C),Xte(Fe,l,Mft(m,I)),sr(l).resolvedSymbol=Fe,OMe(l,m.kind===108,E7(l),Z,Fe),Cmt(l,Fe,U))return pt(C,F.Cannot_assign_to_0_because_it_is_a_read_only_property,mu(C)),jt;Te=Sft(l,Fe)?ni:w||Hq(l)?hF(Fe):Jn(Fe)}else{const Je=!Xr(C)&&(U===0||!Bb(D)||LP(D))?K9(Z,C.escapedText):void 0;if(!(Je&&Je.type)){const ut=KMe(l,D.symbol,!0);return!ut&&oW(D)?me:D.symbol===St?(St.exports.has(C.escapedText)&&St.exports.get(C.escapedText).flags&418?pt(C,F.Property_0_does_not_exist_on_type_1,Yr(C.escapedText),gn(D)):Ae&&pt(C,F.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,gn(D)),me):(C.escapedText&&!Iw(l)&&Tft(C,LP(D)?Z:D,ut),jt)}Je.isReadonly&&(Y_(l)||j0e(l))&&pt(l,F.Index_signature_in_type_0_only_permits_reading,gn(Z)),Te=ae.noUncheckedIndexedAccess&&!Y_(l)?ir([Je.type,de]):Je.type,ae.noPropertyAccessFromIndexSignature&&Iu(l)&&pt(C,F.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Yr(C.escapedText)),Je.declaration&&uC(Je.declaration)&&f3(C,[Je.declaration],C.escapedText)}return Bft(l,Fe,Te,C,A)}function KMe(l,m,D){var C;const A=In(l);if(A&&ae.checkJs===void 0&&A.checkJsDirective===void 0&&(A.scriptKind===1||A.scriptKind===2)){const w=L(m==null?void 0:m.declarations,In),I=!(m!=null&&m.valueDeclaration)||!gr(m.valueDeclaration)||((C=m.valueDeclaration.heritageClauses)==null?void 0:C.length)||e5(!1,m.valueDeclaration);return!(A!==w&&w&&mE(w))&&!(D&&m&&m.flags&32&&I)&&!(l&&D&&Iu(l)&&l.expression.kind===110&&I)}return!1}function Bft(l,m,D,C,A){const w=d7(l);if(w===1)return S6(D,!!(m&&m.flags&16777216));if(m&&!(m.flags&98311)&&!(m.flags&8192&&D.flags&1048576)&&!n_e(m.declarations))return D;if(D===ni)return Zm(l,m);D=_Me(D,l,A);let I=!1;if(fe&&We&&N0(l)&&l.expression.kind===110){const Z=m&&m.valueDeclaration;if(Z&&k4t(Z)&&!To(Z)){const ce=xW(l);ce.kind===176&&ce.parent===Z.parent&&!(Z.flags&33554432)&&(I=!0)}}else fe&&m&&m.valueDeclaration&&Iu(m.valueDeclaration)&&Cj(m.valueDeclaration)&&xW(l)===xW(m.valueDeclaration)&&(I=!0);const U=B6(l,D,I?A6(D):D);return I&&!kz(D)&&kz(U)?(pt(C,F.Property_0_is_used_before_being_assigned,Sr(m)),D):w?yD(U):U}function uri(l,m,D){const{valueDeclaration:C}=l;if(!C||In(m).isDeclarationFile)return;let A;const w=mu(D);wft(m)&&!qXt(C)&&!(N0(m)&&N0(m.expression))&&!S5(C,D)&&!(cc(C)&&h_e(C)&256)&&(Se||!rri(l))?A=pt(D,F.Property_0_is_used_before_its_initialization,w):C.kind===263&&m.parent.kind!==183&&!(C.flags&33554432)&&!S5(C,D)&&(A=pt(D,F.Class_0_used_before_its_declaration,w)),A&&ps(A,Bu(C,F._0_is_declared_here,w))}function wft(l){return!!Ln(l,m=>{switch(m.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return fo(m.parent)&&Ml(m.parent.parent)?!0:"quit";default:return q_(m)?!1:"quit"}})}function rri(l){if(!(l.parent.flags&32))return!1;let m=Jn(l.parent);for(;;){if(m=m.symbol&&ari(m),!m)return!1;const D=$o(m,l.escapedName);if(D&&D.valueDeclaration)return!0}}function ari(l){const m=qc(l);if(m.length!==0)return Es(m)}function Tft(l,m,D){let C,A;if(!Xr(l)&&m.flags&1048576&&!(m.flags&402784252)){for(const I of m.types)if(!$o(I,l.escapedText)&&!K9(I,l.escapedText)){C=uo(C,F.Property_0_does_not_exist_on_type_1,C0(l),gn(I));break}}if(Lft(l.escapedText,m)){const I=C0(l),U=gn(m);C=uo(C,F.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,I,U,U+"."+I)}else{const I=TW(m);if(I&&$o(I,l.escapedText))C=uo(C,F.Property_0_does_not_exist_on_type_1,C0(l),gn(m)),A=Bu(l,F.Did_you_forget_to_use_await);else{const U=C0(l),Z=gn(m),ce=lri(U,m);if(ce!==void 0)C=uo(C,F.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,U,Z,ce);else{const Fe=WMe(l,m);if(Fe!==void 0){const Te=sc(Fe),Je=D?F.Property_0_may_not_exist_on_type_1_Did_you_mean_2:F.Property_0_does_not_exist_on_type_1_Did_you_mean_2;C=uo(C,Je,U,Z,Te),A=Fe.valueDeclaration&&Bu(Fe.valueDeclaration,F._0_is_declared_here,Te)}else{const Te=ori(m)?F.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:F.Property_0_does_not_exist_on_type_1;C=uo(GNe(C,m),Te,U,Z)}}}}const w=Z3(In(l),l,C);A&&ps(w,A),t1(!D||C.code!==F.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,w)}function ori(l){return ae.lib&&!ae.lib.includes("dom")&&Cni(l,m=>m.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Yr(m.symbol.escapedName)))&&CD(l)}function Lft(l,m){const D=m.symbol&&$o(Jn(m.symbol),l);return D!==void 0&&!!D.valueDeclaration&&To(D.valueDeclaration)}function sri(l){const m=Wp(l),C=gZ().get(m);return C&&Oa(C.keys())}function lri(l,m){const D=Kh(m).symbol;if(!D)return;const C=sc(D),w=gZ().get(C);if(w){for(const[I,U]of w)if(Ft(U,l))return I}}function Nft(l,m){return Qte(l,n0(m),106500)}function WMe(l,m){let D=n0(m);if(typeof l!="string"){const C=l.parent;Iu(C)&&(D=ei(D,A=>zft(C,m,A))),l=mu(l)}return Qte(l,D,111551)}function Pft(l,m){const D=Ja(l)?l:mu(l),C=n0(m);return(D==="for"?Le(C,w=>sc(w)==="htmlFor"):D==="class"?Le(C,w=>sc(w)==="className"):void 0)??Qte(D,C,111551)}function GMe(l,m){const D=WMe(l,m);return D&&sc(D)}function JMe(l,m,D){return H.assert(m!==void 0,"outername should always be defined"),bh(l,m,D,void 0,m,!1,!1,!0,(A,w,I)=>{H.assertEqual(m,w,"name should equal outerName");const U=yf(A,w,I);if(U)return U;let Z;return A===Ie?Z=Ui(["string","number","boolean","object","bigint","symbol"],Fe=>A.has(Fe.charAt(0).toUpperCase()+Fe.slice(1))?js(524288,Fe):void 0).concat(Ea(A.values())):Z=Ea(A.values()),Qte(Yr(w),Z,I)})}function cri(l,m,D){const C=JMe(l,m,D);return C&&sc(C)}function NEe(l,m){return m.exports&&Qte(mu(l),T5(m),2623475)}function dri(l,m){const D=NEe(l,m);return D&&sc(D)}function hri(l,m,D){function C(I){const U=vC(l,I);if(U){const Z=SF(Jn(U));return!!Z&&AE(Z)>=1&&hs(D,wg(Z,0))}return!1}const A=Y_(m)?"set":"get";if(!C(A))return;let w=Jj(m.expression);return w===void 0?w=A:w+="."+A,w}function fri(l,m){const D=m.types.filter(C=>!!(C.flags&128));return CN(l.value,D,C=>C.value)}function Qte(l,m,D){return CN(l,m,C);function C(A){const w=sc(A);if(!Na(w,'"')){if(A.flags&D)return w;if(A.flags&2097152){const I=B9(A);if(I&&I.flags&D)return w}}}}function Xte(l,m,D){const C=l&&l.flags&106500&&l.valueDeclaration;if(!C)return;const A=If(C,2),w=l.valueDeclaration&&fh(l.valueDeclaration)&&Xr(l.valueDeclaration.name);if(!(!A&&!w)&&!(m&&Hq(m)&&!(l.flags&65536))){if(D){const I=Ln(m,K0);if(I&&I.symbol===l)return}(Wl(l)&1?$r(l).target:l).isReferenced=67108863}}function Mft(l,m){return l.kind===110||!!m&&Xl(l)&&m===$p(dm(l))}function mri(l,m){switch(l.kind){case 211:return $Me(l,l.expression.kind===108,m,xm(ka(l.expression)));case 166:return $Me(l,!1,m,xm(ka(l.left)));case 205:return $Me(l,!1,m,Br(l))}}function zft(l,m,D){return UMe(l,l.kind===211&&l.expression.kind===108,!1,m,D)}function $Me(l,m,D,C){if(nt(C))return!0;const A=$o(C,D);return!!A&&UMe(l,m,!1,C,A)}function UMe(l,m,D,C,A){if(nt(C))return!0;if(A.valueDeclaration&&mh(A.valueDeclaration)){const w=Zd(A.valueDeclaration);return!Z1(l)&&!!Ln(l,I=>I===w)}return Cft(l,m,D,C,A)}function pri(l){const m=l.initializer;if(m.kind===261){const D=m.declarations[0];if(D&&!Fo(D.name))return Du(D)}else if(m.kind===80)return $p(m)}function gri(l){return yh(l).length===1&&!!y3(l,Qt)}function Eri(l){const m=s0(l);if(m.kind===80){const D=$p(m);if(D.flags&3){let C=l,A=l.parent;for(;A;){if(A.kind===249&&C===A.statement&&pri(A)===D&&gri(C1(A.expression)))return!0;C=A,A=A.parent}}}return!1}function _ri(l,m){return l.flags&64?Dri(l,m):Ift(l,cT(l.expression),m)}function Dri(l,m){const D=ka(l.expression),C=mW(D,l.expression);return oEe(Ift(l,yE(C,l.expression),m),l,C!==D)}function Ift(l,m,D){const C=d7(l)!==0||Aft(l)?xm(m):m,A=l.argumentExpression,w=ka(A);if(Lt(C)||C===ja)return C;if(KEe(C)&&!t0(A))return pt(A,F.A_const_enum_member_can_only_be_accessed_using_a_string_literal),jt;const I=Eri(A)?Qt:w,U=Y_(l)?4|(Bb(C)&&!LP(C)?2:0):32,Z=C6(C,I,U,l)||jt;return Kmt(Bft(l,sr(l).resolvedSymbol,Z,A,D),l)}function Rft(l){return JE(l)||Ek(l)||Ph(l)}function AF(l){return Rft(l)&&L(l.typeArguments,ss),l.kind===215?ka(l.template):Ph(l)?ka(l.attributes):tu(l)?ka(l.left):JE(l)&&L(l.arguments,m=>{ka(m)}),hi}function kE(l){return AF(l),fn}function xri(l,m,D){let C,A,w=0,I,U=-1,Z;H.assert(!m.length);for(const ce of l){const Fe=ce.declaration&&Du(ce.declaration),Te=ce.declaration&&ce.declaration.parent;!A||Fe===A?C&&Te===C?I=I+1:(C=Te,I=w):(I=w=m.length,C=Te),A=Fe,Rde(ce)?(U++,Z=U,w++):Z=I,m.splice(Z,0,D?_Xt(ce,D):ce)}}function PEe(l){return!!l&&(l.kind===230||l.kind===237&&l.isSpread)}function MEe(l){return $e(l,PEe)}function Oft(l){return!!(l.flags&16384)}function vri(l){return!!(l.flags&49155)}function zEe(l,m,D,C=!1){let A,w=!1,I=vm(D),U=AE(D);if(l.kind===215)if(A=m.length,l.template.kind===228){const Z=Cr(l.template.templateSpans);w=Yl(Z.literal)||!!Z.literal.isUnterminated}else{const Z=l.template;H.assert(Z.kind===15),w=!!Z.isUnterminated}else if(l.kind===170)A=Jft(l,D);else if(l.kind===226)A=1;else if(Ph(l)){if(w=l.attributes.end===l.end,w)return!0;A=U===0?m.length:1,I=m.length===0?I:1,U=Math.min(U,1)}else if(l.arguments){A=C?m.length+1:m.length,w=l.arguments.end===l.end;const Z=MEe(m);if(Z>=0)return Z>=AE(D)&&(k_(D)||ZI)return!1;if(w||A>=U)return!0;for(let Z=A;Z=C&&m.length<=D}function SF(l){return bW(l,0,!1)}function jft(l){return bW(l,0,!1)||bW(l,1,!1)}function bW(l,m,D){if(l.flags&524288){const C=kg(l);if(D||C.properties.length===0&&C.indexInfos.length===0){if(m===0&&C.callSignatures.length===1&&C.constructSignatures.length===0)return C.callSignatures[0];if(m===1&&C.constructSignatures.length===1&&C.callSignatures.length===0)return C.constructSignatures[0]}}}function Vft(l,m,D,C){const A=EW(l.typeParameters,l,0,C),w=kW(m),I=D&&(w&&w.flags&262144?D.nonFixingMapper:D.mapper),U=I?oT(m,I):m;return qPe(U,l,(Z,ce)=>{FD(A.inferences,Z,ce)}),D||ZPe(m,l,(Z,ce)=>{FD(A.inferences,Z,ce,128)}),nW(l,lMe(A),eu(m.declaration))}function Cri(l,m,D,C){const A=AEe(m,l),w=fT(l.attributes,A,C,D);return FD(C.inferences,w,A),lMe(C)}function Hft(l){if(!l)return da;const m=ka(l);return Pye(l)?m:zN(l.parent)?kD(m):Z1(l.parent)?aEe(m):m}function ZMe(l,m,D,C,A){if(Ph(l))return Cri(l,m,C,A);if(l.kind!==170&&l.kind!==226){const Z=ye(m.typeParameters,Fe=>!!gF(Fe)),ce=df(l,Z?8:0);if(ce){const Fe=qs(m);if(TC(Fe)){const Te=Ib(l);if(!(!Z&&df(l,8)!==ce)){const fi=eMe(Rii(Te,1)),Ki=Da(ce,fi),cn=SF(Ki),uu=cn&&cn.typeParameters?EF(QNe(cn,cn.typeParameters)):Ki;FD(A.inferences,uu,Fe,128)}const ut=EW(m.typeParameters,m,A.flags),zt=Da(ce,Te&&Te.returnMapper);FD(ut.inferences,zt,Fe),A.returnMapper=qe(ut.inferences,mT)?eMe(Hii(ut)):void 0}}}const w=FW(m),I=w?Math.min(vm(m)-1,D.length):D.length;if(w&&w.flags&262144){const Z=Le(A.inferences,ce=>ce.typeParameter===w);Z&&(Z.impliedArity=$e(D,PEe,I)<0?D.length-I:void 0)}const U=bC(m);if(U&&TC(U)){const Z=Gft(l);FD(A.inferences,Hft(Z),U)}for(let Z=0;Z=D-1){const Fe=l[D-1];if(PEe(Fe)){const Te=Fe.kind===237?Fe.type:fT(Fe.expression,C,A,w);return V5(Te)?Kft(Te):j1(W5(33,Te,te,Fe.kind===230?Fe.expression:Fe),I)}}const U=[],Z=[],ce=[];for(let Fe=m;Feuo(void 0,F.Type_0_does_not_satisfy_the_constraint_1):void 0,Te=C||F.Type_0_does_not_satisfy_the_constraint_1;U||(U=Af(w,I));const Je=I[Z];if(!Fh(Je,Dm(Da(ce,U),Je),D?m[Z]:void 0,Te,Fe))return}}return I}function Wft(l){if(Y9(l.tagName))return 2;const m=Kh(ka(l.tagName));return S(mo(m,1))?0:S(mo(m,0))?1:2}function bri(l,m,D,C,A,w,I){const U=AEe(m,l),Z=fT(l.attributes,U,void 0,C),ce=C&4?gW(Z):Z;return Fe()&&NPe(ce,U,D,A?l.tagName:void 0,l.attributes,void 0,w,I);function Fe(){var Te;if(PMe(l))return!0;const Je=(rE(l)||vk(l))&&!(Y9(l.tagName)||mg(l.tagName))?ka(l.tagName):void 0;if(!Je)return!0;const ut=mo(Je,0);if(!S(ut))return!0;const zt=Z4t(l);if(!zt)return!0;const fi=P0(zt,111551,!0,!1,l);if(!fi)return!0;const Ki=Jn(fi),cn=mo(Ki,0);if(!S(cn))return!0;let uu=!1,En=0;for(const Pn of cn){const Cn=wg(Pn,0),Sn=mo(Cn,0);if(S(Sn))for(const _n of Sn){if(uu=!0,k_(_n))return!0;const fu=vm(_n);fu>En&&(En=fu)}}if(!uu)return!0;let Ii=1/0;for(const Pn of ut){const Cn=AE(Pn);Cn{A.push(w.expression)}),A}if(l.kind===170)return yri(l);if(l.kind===226)return[l.left];if(Ph(l))return l.attributes.properties.length>0||rE(l)&&l.parent.children.length>0?[l.attributes]:_t;const m=l.arguments||_t,D=MEe(m);if(D>=0){const C=m.slice(0,D);for(let A=D;A{var ce;const Fe=I.target.elementFlags[Z],Te=tie(w,Fe&4?j1(U):U,!!(Fe&12),(ce=I.target.labeledElementDeclarations)==null?void 0:ce[Z]);C.push(Te)}):C.push(w)}return C}return m}function yri(l){const m=l.expression,D=cze(l);if(D){const C=[];for(const A of D.parameters){const w=Jn(A);C.push(tie(m,w))}return C}return H.fail()}function Jft(l,m){return ae.experimentalDecorators?kri(l,m):2}function kri(l,m){switch(l.parent.kind){case 263:case 231:return 1;case 172:return Xg(l.parent)?3:2;case 174:case 177:case 178:return Ce===0||m.parameters.length<=2?2:3;case 169:return 3;default:return H.fail()}}function $ft(l,m){let D,C;const A=In(l);if(Iu(l.expression)){const w=D2(A,l.expression.name);D=w.start,C=m?w.length:l.end-D}else{const w=D2(A,l.expression);D=w.start,C=m?w.length:l.end-D}return{start:D,length:C,sourceFile:A}}function iie(l,m,...D){if(No(l)){const{sourceFile:C,start:A,length:w}=$ft(l);return"message"in m?zd(C,A,w,m,...D):C0e(C,m)}else return"message"in m?Bu(l,m,...D):Z3(In(l),l,m)}function Fri(l){if(!No(l)||!at(l.expression))return!1;const m=nc(l.expression,l.expression.escapedText,111551,void 0,void 0,!1),D=m==null?void 0:m.valueDeclaration;if(!D||!eo(D)||!M2(D.parent)||!I2(D.parent.parent)||!at(D.parent.parent.expression))return!1;const C=aPe(!1);return C?Up(D.parent.parent.expression,!0)===C:!1}function Uft(l,m,D,C){var A;const w=MEe(D);if(w>-1)return Bu(D[w],F.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let I=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,ce=Number.POSITIVE_INFINITY,Fe;for(const fi of m){const Ki=AE(fi),cn=vm(fi);KiZ&&(Z=Ki),D.lengthA?I=Math.min(I,Z):ce1&&(En=Cn(Je,d_,zt,Ii)),En||(En=Cn(Je,Gf,zt,Ii)),En)return En;if(En=Sri(l,Je,ut,!!D,C),sr(l).resolvedSignature=En,Fe)if(!w&&ce&&(w=F.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),Ki)if(Ki.length===1||Ki.length>3){const Sn=Ki[Ki.length-1];let _n;Ki.length>3&&(_n=uo(_n,F.The_last_overload_gave_the_following_error),_n=uo(_n,F.No_overload_matches_this_call)),w&&(_n=uo(_n,w));const fu=eie(l,ut,Sn,Gf,0,!0,()=>_n);if(fu)for(const ao of fu)Sn.declaration&&Ki.length>3&&ps(ao,Bu(Sn.declaration,F.The_last_overload_is_declared_here)),Pn(Sn,ao),Os.add(ao);else H.fail("No error for last overload signature")}else{const Sn=[];let _n=0,fu=Number.MAX_VALUE,ao=0,po=0;for(const dn of Ki){const qr=eie(l,ut,dn,Gf,0,!0,()=>uo(void 0,F.Overload_0_of_1_2_gave_the_following_error,po+1,Je.length,xE(dn)));qr?(qr.length<=fu&&(fu=qr.length,ao=po),_n=Math.max(_n,qr.length),Sn.push(qr)):H.fail("No error for 3 or fewer overload signatures"),po++}const co=_n>1?Sn[ao]:Va(Sn);H.assert(co.length>0,"No errors reported for 3 or fewer overload signatures");let Fa=uo(Kt(co,Rbe),F.No_overload_matches_this_call);w&&(Fa=uo(Fa,w));const rh=[...Ku(co,dn=>dn.relatedInformation)];let e4;if(ye(co,dn=>dn.start===co[0].start&&dn.length===co[0].length&&dn.file===co[0].file)){const{file:dn,start:Gn,length:qr}=co[0];e4={file:dn,start:Gn,length:qr,code:Fa.code,category:Fa.category,messageText:Fa,relatedInformation:rh}}else e4=Z3(In(l),l,Fa,rh);Pn(Ki[0],e4),Os.add(e4)}else if(cn)Os.add(Uft(l,[cn],ut,w));else if(uu)QMe(uu,l.typeArguments,!0,w);else{const Sn=ei(m,_n=>qMe(_n,Te));Sn.length===0?Os.add(Ari(l,m,Te,w)):Os.add(Uft(l,Sn,ut,w))}return En;function Pn(Sn,_n){var fu,ao;const po=Ki,co=cn,Fa=uu,rh=((ao=(fu=Sn.declaration)==null?void 0:fu.symbol)==null?void 0:ao.declarations)||_t,dn=rh.length>1?Le(rh,Gn=>K0(Gn)&&j4(Gn.body)):void 0;if(dn){const Gn=lp(dn),qr=!Gn.typeParameters;Cn([Gn],Gf,qr)&&ps(_n,Bu(dn,F.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Ki=po,cn=co,uu=Fa}function Cn(Sn,_n,fu,ao=!1){if(Ki=void 0,cn=void 0,uu=void 0,fu){const po=Sn[0];if(qe(Te)||!zEe(l,ut,po,ao))return;if(eie(l,ut,po,_n,0,!1,void 0)){Ki=[po];return}return po}for(let po=0;po0),Q9(l),C||m.length===1||m.some(w=>!!w.typeParameters)?Tri(l,m,D,A):Bri(m)}function Bri(l){const m=Ui(l,Z=>Z.thisParameter);let D;m.length&&(D=qft(m,m.map(rie)));const{min:C,max:A}=hke(l,wri),w=[];for(let Z=0;Zeh(Fe)?ZBF(Fe,Z))))}const I=Ui(l,Z=>eh(Z)?Cr(Z.parameters):void 0);let U=128;if(I.length!==0){const Z=j1(ir(Ui(l,Tdt),2));w.push(Zft(I,Z)),U|=1}return l.some(Rde)&&(U|=2),b3(l[0].declaration,void 0,D,w,Es(l.map(qs)),void 0,C,U)}function wri(l){const m=l.parameters.length;return eh(l)?m-1:m}function qft(l,m){return Zft(l,ir(m,2))}function Zft(l,m){return xF(Mn(l),m)}function Tri(l,m,D,C){const A=Pri(m,Li===void 0?D.length:Li),w=m[A],{typeParameters:I}=w;if(!I)return w;const U=Rft(l)?l.typeArguments:void 0,Z=U?Fge(w,Lri(U,I,eu(l))):Nri(l,I,w,D,C);return m[A]=Z,Z}function Lri(l,m,D){const C=l.map(X9);for(;C.length>m.length;)C.pop();for(;C.length=m)return A;I>C&&(C=I,D=A)}return D}function Mri(l,m,D){if(l.expression.kind===108){const Z=bMe(l.expression);if(nt(Z)){for(const ce of l.arguments)ka(ce);return hi}if(!Lt(Z)){const ce=Yg(Zd(l));if(ce){const Fe=_0(Z,ce.typeArguments,ce);return dT(l,Fe,m,D,0)}}return AF(l)}let C,A=ka(l.expression);if(Gy(l)){const Z=mW(A,l.expression);C=Z===A?0:IN(l)?16:8,A=Z}else C=0;if(A=yft(A,l.expression,Xui),A===ja)return ru;const w=Kh(A);if(Lt(w))return kE(l);const I=mo(w,0),U=mo(w,1).length;if(nie(A,w,I.length,U))return!Lt(A)&&l.typeArguments&&pt(l,F.Untyped_function_calls_may_not_accept_type_arguments),AF(l);if(!I.length){if(U)pt(l,F.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(A));else{let Z;if(l.arguments.length===1){const ce=In(l).text;q1(ce.charCodeAt(ms(ce,l.expression.end,!0)-1))&&(Z=Bu(l.expression,F.Are_you_missing_a_semicolon))}eze(l.expression,w,0,Z)}return kE(l)}return D&8&&!l.typeArguments&&I.some(zri)?(Lmt(l,D),Gu):I.some(Z=>eu(Z.declaration)&&!!zse(Z.declaration))?(pt(l,F.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(A)),kE(l)):dT(l,I,m,D,C)}function zri(l){return!!(l.typeParameters&&Gze(qs(l)))}function nie(l,m,D,C){return nt(l)||nt(m)&&!!(l.flags&262144)||!D&&!C&&!(m.flags&1048576)&&!(Fg(m).flags&131072)&&hs(l,si)}function Iri(l,m,D){if(l.arguments&&Ce<1){const I=MEe(l.arguments);I>=0&&pt(l.arguments[I],F.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let C=cT(l.expression);if(C===ja)return ru;if(C=Kh(C),Lt(C))return kE(l);if(nt(C))return l.typeArguments&&pt(l,F.Untyped_function_calls_may_not_accept_type_arguments),AF(l);const A=mo(C,1);if(A.length){if(!Rri(l,A[0]))return kE(l);if(Yft(A,U=>!!(U.flags&4)))return pt(l,F.Cannot_create_an_instance_of_an_abstract_class),kE(l);const I=C.symbol&&eD(C.symbol);return I&&Xu(I,64)?(pt(l,F.Cannot_create_an_instance_of_an_abstract_class),kE(l)):dT(l,A,m,D,0)}const w=mo(C,0);if(w.length){const I=dT(l,w,m,D,0);return Ae||(I.declaration&&!FE(I.declaration)&&qs(I)!==da&&pt(l,F.Only_a_void_function_can_be_called_with_the_new_keyword),bC(I)===da&&pt(l,F.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),I}return eze(l.expression,C,1),kE(l)}function Yft(l,m){return Ha(l)?qe(l,D=>Yft(D,m)):l.compositeKind===1048576?qe(l.compositeSignatures,m):m(l)}function XMe(l,m){const D=qc(m);if(!S(D))return!1;const C=D[0];if(C.flags&2097152){const A=C.types,w=fdt(A);let I=0;for(const U of C.types){if(!w[I]&&$u(U)&3&&(U.symbol===l||XMe(l,U)))return!0;I++}return!1}return C.symbol===l?!0:XMe(l,C)}function Rri(l,m){if(!m||!m.declaration)return!0;const D=m.declaration,C=p7(D,6);if(!C||D.kind!==176)return!0;const A=eD(D.parent.symbol),w=q0(D.parent.symbol);if(!Hze(l,A)){const I=Zd(l);if(I&&C&4){const U=X9(I);if(XMe(D.parent.symbol,U))return!0}return C&2&&pt(l,F.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,gn(w)),C&4&&pt(l,F.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,gn(w)),!1}return!0}function Qft(l,m,D){let C;const A=D===0,w=TF(m),I=w&&mo(w,D).length>0;if(m.flags&1048576){const Z=m.types;let ce=!1;for(const Fe of Z)if(mo(Fe,D).length!==0){if(ce=!0,C)break}else if(C||(C=uo(C,A?F.Type_0_has_no_call_signatures:F.Type_0_has_no_construct_signatures,gn(Fe)),C=uo(C,A?F.Not_all_constituents_of_type_0_are_callable:F.Not_all_constituents_of_type_0_are_constructable,gn(m))),ce)break;ce||(C=uo(void 0,A?F.No_constituent_of_type_0_is_callable:F.No_constituent_of_type_0_is_constructable,gn(m))),C||(C=uo(C,A?F.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:F.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,gn(m)))}else C=uo(C,A?F.Type_0_has_no_call_signatures:F.Type_0_has_no_construct_signatures,gn(m));let U=A?F.This_expression_is_not_callable:F.This_expression_is_not_constructable;if(No(l.parent)&&l.parent.arguments.length===0){const{resolvedSymbol:Z}=sr(l);Z&&Z.flags&32768&&(U=F.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:uo(C,U),relatedMessage:I?F.Did_you_forget_to_use_await:void 0}}function eze(l,m,D,C){const{messageChain:A,relatedMessage:w}=Qft(l,m,D),I=Z3(In(l),l,A);if(w&&ps(I,Bu(l,w)),No(l.parent)){const{start:U,length:Z}=$ft(l.parent,!0);I.start=U,I.length=Z}Os.add(I),Xft(m,D,C?ps(I,C):I)}function Xft(l,m,D){if(!l.symbol)return;const C=$r(l.symbol).originatingImport;if(C&&!cm(C)){const A=mo(Jn($r(l.symbol).target),m);if(!A||!A.length)return;ps(D,Bu(C,F.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function Ori(l,m,D){const C=ka(l.tag),A=Kh(C);if(Lt(A))return kE(l);const w=mo(A,0),I=mo(A,1).length;if(nie(C,A,w.length,I))return AF(l);if(!w.length){if(_h(l.parent)){const U=Bu(l.tag,F.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Os.add(U),kE(l)}return eze(l.tag,A,0),kE(l)}return dT(l,w,m,D,0)}function jri(l){switch(l.parent.kind){case 263:case 231:return F.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return F.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return F.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return F.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return H.fail()}}function Vri(l,m,D){const C=ka(l.expression),A=Kh(C);if(Lt(A))return kE(l);const w=mo(A,0),I=mo(A,1).length;if(nie(C,A,w.length,I))return AF(l);if(Wri(l,w)&&!vf(l.expression)){const Z=Vc(l.expression,!1);return pt(l,F._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,Z),kE(l)}const U=jri(l);if(!w.length){const Z=Qft(l.expression,A,0),ce=uo(Z.messageChain,U),Fe=Z3(In(l.expression),l.expression,ce);return Z.relatedMessage&&ps(Fe,Bu(l.expression,Z.relatedMessage)),Os.add(Fe),Xft(A,0,Fe),kE(l)}return dT(l,w,m,D,0,U)}function REe(l,m){const D=FF(l),C=D&&Jf(D),A=C&&yf(C,Im.Element,788968),w=A&&Yt.symbolToEntityName(A,788968,l),I=q.createFunctionTypeNode(void 0,[q.createParameterDeclaration(void 0,void 0,"props",void 0,Yt.typeToTypeNode(m,l))],w?q.createTypeReferenceNode(w,void 0):q.createKeywordTypeNode(133)),U=js(1,"props");return U.links.type=m,b3(I,void 0,void 0,[U],A?q0(A):jt,void 0,1,0)}function Hri(l,m,D){if(Y9(l.tagName)){const I=_ft(l),U=REe(l,I);return F6(fT(l.attributes,AEe(U,l),void 0,0),I,l.tagName,l.attributes),S(l.typeArguments)&&(L(l.typeArguments,ss),Os.add(j8(In(l),l.typeArguments,F.Expected_0_type_arguments_but_got_1,0,S(l.typeArguments)))),U}const C=ka(l.tagName),A=Kh(C);if(Lt(A))return kE(l);const w=gft(C,l);return nie(C,A,w.length,0)?AF(l):w.length===0?(pt(l.tagName,F.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Vc(l.tagName)),kE(l)):dT(l,w,m,D,0)}function Kri(l,m,D){const C=ka(l.right);if(!nt(C)){const A=mze(C);if(A){const w=Kh(A);if(Lt(w))return kE(l);const I=mo(w,0),U=mo(w,1);if(nie(A,w,I.length,U.length))return AF(l);if(I.length)return dT(l,I,m,D,0)}else if(!(a_e(C)||k6(C,si)))return pt(l.right,F.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),kE(l)}return hi}function Wri(l,m){return m.length&&ye(m,D=>D.minArgumentCount===0&&!eh(D)&&D.parameters.length1?Ic(l.arguments[1]):void 0;for(let w=2;w{const I=xm(A);Uge(w,I)||J1t(A,w,D,F.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function Xri(l){const m=ka(l.expression),D=mW(m,l.expression);return oEe(kD(D),l,D!==m)}function eai(l){return l.flags&64?Xri(l):kD(ka(l.expression))}function amt(l){if(X4t(l),L(l.typeArguments,ss),l.kind===233){const D=t5(l.parent);D.kind===226&&D.operatorToken.kind===104&&k2(l,D.right)&&pt(l,F.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const m=l.kind===233?ka(l.expression):w2(l.exprName)?Wte(l.exprName):ka(l.exprName);return omt(m,l)}function omt(l,m){const D=m.typeArguments;if(l===ja||Lt(l)||!qe(D))return l;let C=!1,A;const w=U(l),I=C?A:l;return I&&Os.add(j8(In(m),D,F.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,gn(I))),w;function U(ce){let Fe=!1,Te=!1;const Je=ut(ce);return C||(C=Te),Fe&&!Te&&(A??(A=ce)),Je;function ut(zt){if(zt.flags&524288){const fi=kg(zt),Ki=Z(fi.callSignatures),cn=Z(fi.constructSignatures);if(Fe||(Fe=fi.callSignatures.length!==0||fi.constructSignatures.length!==0),Te||(Te=Ki.length!==0||cn.length!==0),Ki!==fi.callSignatures||cn!==fi.constructSignatures){const uu=Rl(void 0,fi.members,Ki,cn,fi.indexInfos);return uu.objectFlags|=8388608,uu.node=m,uu}}else if(zt.flags&58982400){const fi=Hh(zt);if(fi){const Ki=ut(fi);if(Ki!==fi)return Ki}}else{if(zt.flags&1048576)return cl(zt,U);if(zt.flags&2097152)return Es(Mu(zt.types,ut))}return zt}}function Z(ce){const Fe=ei(ce,Te=>!!Te.typeParameters&&qMe(Te,D));return Mu(Fe,Te=>{const Je=QMe(Te,D,!0);return Je?nW(Te,Je,eu(Te.declaration)):Te})}}function tai(l){return ss(l.type),uze(l.expression,l.type)}function uze(l,m,D){const C=ka(l,D),A=Br(m);if(Lt(A))return A;const w=Ln(m.parent,I=>I.kind===238||I.kind===357);return F6(C,A,w,l,F.Type_0_does_not_satisfy_the_expected_type_1),C}function iai(l){return Yli(l),l.keywordToken===105?rze(l):l.keywordToken===102?nai(l):H.assertNever(l.keywordToken)}function smt(l){switch(l.keywordToken){case 102:return $dt();case 105:const m=rze(l);return Lt(m)?jt:xai(m);default:H.assertNever(l.keywordToken)}}function rze(l){const m=Qbe(l);if(m)if(m.kind===176){const D=Du(m.parent);return Jn(D)}else{const D=Du(m);return Jn(D)}else return pt(l,F.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),jt}function nai(l){ne===100||ne===199?In(l).impliedNodeFormat!==99&&pt(l,F.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ne<6&&ne!==4&&pt(l,F.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const m=In(l);return H.assert(!!(m.flags&8388608),"Containing file is missing import meta node flag."),l.name.escapedText==="meta"?Jdt():jt}function rie(l){const m=l.valueDeclaration;return Od(Jn(l),!1,!!m&&(Lx(m)||NP(m)))}function aze(l,m,D="arg"){return l?(H.assert(at(l.name)),l.name.escapedText):`${D}_${m}`}function zz(l,m,D){const C=l.parameters.length-(eh(l)?1:0);if(m=C-1)return m===C-1?w:j1(Uf(w,Qt));const I=[],U=[],Z=[];for(let ce=m;ce!(Z&1)),U=I<0?w.target.fixedLength:I;U>0&&(A=l.parameters.length-1+U)}}if(A===void 0){if(!D&&l.flags&32)return 0;A=l.minArgumentCount}if(C)return A;for(let w=A-1;w>=0;w--){const I=wg(l,w);if(zc(I,Oft).flags&131072)break;A=w}l.resolvedMinArgumentCount=A}return l.resolvedMinArgumentCount}function k_(l){if(eh(l)){const m=Jn(l.parameters[l.parameters.length-1]);return!_s(m)||m.target.hasRestElement}return!1}function kW(l){if(eh(l)){const m=Jn(l.parameters[l.parameters.length-1]);if(!_s(m))return m;if(m.target.hasRestElement)return Cz(m,m.target.fixedLength)}}function FW(l){const m=kW(l);return m&&!F4(m)&&!nt(m)?m:void 0}function oze(l){return sze(l,Wu)}function sze(l,m){return l.parameters.length>0?wg(l,0):m}function dmt(l,m,D){const C=l.parameters.length-(eh(l)?1:0);for(let A=0;A=0);const w=dc(C.parent)?Jn(Du(C.parent.parent)):H4t(C.parent),I=dc(C.parent)?te:K4t(C.parent),U=Sg(A),Z=Cg("target",w),ce=Cg("propertyKey",I),Fe=Cg("parameterIndex",U);D.decoratorSignature=NW(void 0,void 0,[Z,ce,Fe],da);break}case 174:case 177:case 178:case 172:{const C=m;if(!gr(C.parent))break;const A=H4t(C),w=Cg("target",A),I=K4t(C),U=Cg("propertyKey",I),Z=bo(C)?da:e1t(X9(C));if(Ce!==0&&(!bo(m)||Xg(m))){const Fe=e1t(X9(C)),Te=Cg("descriptor",Fe);D.decoratorSignature=NW(void 0,void 0,[w,U,Te],ir([Z,da]))}else D.decoratorSignature=NW(void 0,void 0,[w,U],ir([Z,da]));break}}return D.decoratorSignature===hi?void 0:D.decoratorSignature}function cze(l){return ve?Dai(l):_ai(l)}function oie(l){const m=Cte(!0);return m!==Ka?(l=K5(jz(l))||on,I5(m,[l])):on}function mmt(l){const m=Ydt(!0);return m!==Ka?(l=K5(jz(l))||on,I5(m,[l])):on}function sie(l,m){const D=oie(m);return D===on?(pt(l,cm(l)?F.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:F.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),jt):(aPe(!0)||pt(l,cm(l)?F.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:F.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),D)}function xai(l){const m=js(0,"NewTargetExpression"),D=js(4,"target",8);D.parent=m,D.links.type=l;const C=jo([D]);return m.members=C,Rl(m,C,_t,_t,_t)}function VEe(l,m){if(!l.body)return jt;const D=yd(l),C=(D&2)!==0,A=(D&1)!==0;let w,I,U,Z=da;if(l.body.kind!==241)w=Ic(l.body,m&&m&-9),C&&(w=jz(LW(w,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(A){const ce=xmt(l,m);ce?ce.length>0&&(w=ir(ce,2)):Z=Wu;const{yieldTypes:Fe,nextTypes:Te}=vai(l,m);I=qe(Fe)?ir(Fe,2):void 0,U=qe(Te)?Es(Te):void 0}else{const ce=xmt(l,m);if(!ce)return D&2?sie(l,Wu):Wu;if(ce.length===0){const Fe=bEe(l,void 0),Te=Fe&&(Die(Fe,D)||da).flags&32768?te:da;return D&2?sie(l,Te):Te}w=ir(ce,2)}if(w||I||U){if(I&&dEe(l,I,3),w&&dEe(l,w,1),U&&dEe(l,U,2),w&&Bg(w)||I&&Bg(I)||U&&Bg(U)){const ce=wMe(l),Fe=ce?ce===lp(l)?A?void 0:w:kEe(qs(ce),l,void 0):void 0;A?(I=$Pe(I,Fe,0,C),w=$Pe(w,Fe,1,C),U=$Pe(U,Fe,2,C)):w=Fii(w,Fe,C)}I&&(I=xm(I)),w&&(w=xm(w)),U&&(U=xm(U))}return A?pmt(I||Wu,w||Z,U||ift(2,l)||on,C):C?oie(w||Z):w||Z}function pmt(l,m,D,C){const A=C?A0:nd,w=A.getGlobalGeneratorType(!1);if(l=A.resolveIterationType(l,void 0)||on,m=A.resolveIterationType(m,void 0)||on,D=A.resolveIterationType(D,void 0)||on,w===Ka){const I=A.getGlobalIterableIteratorType(!1),U=I!==Ka?o4t(I,A):void 0,Z=U?U.returnType:me,ce=U?U.nextType:te;return hs(m,Z)&&hs(ce,D)?I!==Ka?rW(I,[l]):(A.getGlobalIterableIteratorType(!0),Ho):(A.getGlobalGeneratorType(!0),Ho)}return rW(w,[l,m,D])}function vai(l,m){const D=[],C=[],A=(yd(l)&2)!==0;return Vbe(l.body,w=>{const I=w.expression?ka(w.expression,m):we;va(D,gmt(w,I,me,A));let U;if(w.asteriskToken){const Z=XEe(I,A?19:17,w.expression);U=Z&&Z.nextType}else U=df(w,void 0);U&&va(C,U)}),{yieldTypes:D,nextTypes:C}}function gmt(l,m,D,C){const A=l.expression||l,w=l.asteriskToken?W5(C?19:17,m,D,A):m;return C?TF(w,A,l.asteriskToken?F.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:F.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):w}function Emt(l,m,D){let C=0;for(let A=0;A=m?D[A]:void 0;C|=w!==void 0?jde.get(w)||32768:0}return C}function _mt(l){const m=sr(l);if(m.isExhaustive===void 0){m.isExhaustive=0;const D=Cai(l);m.isExhaustive===0&&(m.isExhaustive=D)}else m.isExhaustive===0&&(m.isExhaustive=!1);return m.isExhaustive}function Cai(l){if(l.expression.kind===221){const C=Iht(l);if(!C)return!1;const A=DD(Ic(l.expression.expression)),w=Emt(0,0,C);return A.flags&3?(556800&w)===556800:!bE(A,I=>Tz(I,w)===w)}const m=Ic(l.expression);if(!fW(m))return!1;const D=gEe(l);return!D.length||qe(D,bii)?!1:xni(cl(m,Wh),D)}function Dmt(l){return l.endFlowNode&&Hte(l.endFlowNode)}function xmt(l,m){const D=yd(l),C=[];let A=Dmt(l),w=!1;if(v2(l.body,I=>{let U=I.expression;if(U){if(U=s0(U,!0),D&2&&U.kind===223&&(U=s0(U.expression,!0)),U.kind===213&&U.expression.kind===80&&Ic(U.expression).symbol===l.symbol){w=!0;return}let Z=Ic(U,m&&m&-9);D&2&&(Z=jz(LW(Z,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Z.flags&131072&&(w=!0),va(C,Z)}else A=!0}),!(C.length===0&&!A&&(w||bai(l))))return fe&&C.length&&A&&!(FE(l)&&C.some(I=>I.symbol===l.symbol))&&va(C,te),C}function bai(l){switch(l.kind){case 218:case 219:return!0;case 174:return l.parent.kind===210;default:return!1}}function dze(l,m){s(D);return;function D(){const C=yd(l),A=m&&Die(m,C);if(A&&(Ol(A,16384)||A.flags&32769)||l.kind===173||Yl(l.body)||l.body.kind!==241||!Dmt(l))return;const w=l.flags&1024,I=J4(l)||l;if(A&&A.flags&131072)pt(I,F.A_function_returning_never_cannot_have_a_reachable_end_point);else if(A&&!w)pt(I,F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(A&&fe&&!hs(te,A))pt(I,F.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(ae.noImplicitReturns){if(!A){if(!w)return;const U=qs(lp(l));if(p4t(l,U))return}pt(I,F.Not_all_code_paths_return_a_value)}}}function vmt(l,m){if(H.assert(l.kind!==174||Np(l)),Q9(l),F0(l)&&Vz(l,l.name),m&&m&4&&y4(l)){if(!J4(l)&&!lZ(l)){const C=CW(l);if(C&&TC(qs(C))){const A=sr(l);if(A.contextFreeType)return A.contextFreeType;const w=VEe(l,m),I=b3(void 0,void 0,void 0,_t,w,void 0,0,64),U=Rl(l.symbol,se,[I],_t,_t);return U.objectFlags|=262144,A.contextFreeType=U}}return Ri}return!c_e(l)&&l.kind===218&&Uze(l),yai(l,m),Jn(Du(l))}function yai(l,m){const D=sr(l);if(!(D.flags&64)){const C=CW(l);if(!(D.flags&64)){D.flags|=64;const A=Hi(mo(Jn(Du(l)),0));if(!A)return;if(y4(l))if(C){const w=Ib(l);let I;if(m&&m&2){dmt(A,C,w);const U=kW(C);U&&U.flags&262144&&(I=oT(C,w.nonFixingMapper))}I||(I=w?oT(C,w.mapper):C),aai(A,I)}else oai(A);else if(C&&!l.typeParameters&&C.parameters.length>l.parameters.length){const w=Ib(l);m&&m&2&&dmt(A,C,w)}if(C&&!iT(l)&&!A.resolvedReturnType){const w=VEe(l,m);A.resolvedReturnType||(A.resolvedReturnType=w)}BW(l)}}}function kai(l){H.assert(l.kind!==174||Np(l));const m=yd(l),D=iT(l);if(dze(l,D),l.body)if(J4(l)||qs(lp(l)),l.body.kind===241)ss(l.body);else{const C=ka(l.body),A=D&&Die(D,m);if(A)if((m&3)===2){const w=LW(C,!1,l.body,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);F6(w,A,l.body,l.body)}else F6(C,A,l.body,l.body)}}function HEe(l,m,D,C=!1){if(!hs(m,Za)){const A=C&&Oz(m);return Ch(l,!!A&&hs(A,Za),D),!1}return!0}function Fai(l){if(!No(l)||!nk(l))return!1;const m=Ic(l.arguments[2]);if(he(m,"value")){const A=$o(m,"writable"),w=A&&Jn(A);if(!w||w===$i||w===Bn)return!0;if(A&&A.valueDeclaration&&Gc(A.valueDeclaration)){const I=A.valueDeclaration.initializer,U=ka(I);if(U===$i||U===Bn)return!0}return!1}return!$o(m,"set")}function Tg(l){return!!(Wl(l)&8||l.flags&4&&s4(l)&8||l.flags&3&&IMe(l)&6||l.flags&98304&&!(l.flags&65536)||l.flags&8||qe(l.declarations,Fai))}function Cmt(l,m,D){var C,A;if(D===0)return!1;if(Tg(m)){if(m.flags&4&&N0(l)&&l.expression.kind===110){const w=Lm(l);if(!(w&&(w.kind===176||FE(w))))return!0;if(m.valueDeclaration){const I=tu(m.valueDeclaration),U=w.parent===m.valueDeclaration.parent,Z=w===m.valueDeclaration.parent,ce=I&&((C=m.parent)==null?void 0:C.valueDeclaration)===w.parent,Fe=I&&((A=m.parent)==null?void 0:A.valueDeclaration)===w;return!(U||Z||ce||Fe)}}return!0}if(N0(l)){const w=s0(l.expression);if(w.kind===80){const I=sr(w).resolvedSymbol;if(I.flags&2097152){const U=np(I);return!!U&&U.kind===274}}}return!1}function AW(l,m,D){const C=_c(l,7);return C.kind!==80&&!N0(C)?(pt(l,m),!1):C.flags&64?(pt(l,D),!1):!0}function Aai(l){ka(l.expression);const m=s0(l.expression);if(!N0(m))return pt(m,F.The_operand_of_a_delete_operator_must_be_a_property_reference),Er;Iu(m)&&Xr(m.name)&&pt(m,F.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const D=sr(m),C=ap(D.resolvedSymbol);return C&&(Tg(C)?pt(m,F.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Sai(m,C)),Er}function Sai(l,m){const D=Jn(m);fe&&!(D.flags&131075)&&!(je?m.flags&16777216:dp(D,16777216))&&pt(l,F.The_operand_of_a_delete_operator_must_be_optional)}function Bai(l){return ka(l.expression),Tw}function wai(l){return Q9(l),we}function bmt(l){let m=!1;const D=oq(l);if(D&&Ml(D)){const C=Wx(l)?F.await_expression_cannot_be_used_inside_a_class_static_block:F.await_using_statements_cannot_be_used_inside_a_class_static_block;pt(l,C),m=!0}else if(!(l.flags&65536))if(lq(l)){const C=In(l);if(!jb(C)){let A;if(!a7(C,ae)){A??(A=YE(C,l.pos));const w=Wx(l)?F.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:F.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,I=zd(C,A.start,A.length,w);Os.add(I),m=!0}switch(ne){case 100:case 199:if(C.impliedNodeFormat===1){A??(A=YE(C,l.pos)),Os.add(zd(C,A.start,A.length,F.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),m=!0;break}case 7:case 99:case 4:if(Ce>=4)break;default:A??(A=YE(C,l.pos));const w=Wx(l)?F.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:F.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher;Os.add(zd(C,A.start,A.length,w)),m=!0;break}}}else{const C=In(l);if(!jb(C)){const A=YE(C,l.pos),w=Wx(l)?F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,I=zd(C,A.start,A.length,w);if(D&&D.kind!==176&&!(yd(D)&2)){const U=Bu(D,F.Did_you_mean_to_mark_this_function_as_async);ps(I,U)}Os.add(I),m=!0}}return Wx(l)&&kMe(l)&&(pt(l,F.await_expressions_cannot_be_used_in_a_parameter_initializer),m=!0),m}function Tai(l){s(()=>bmt(l));const m=ka(l.expression),D=LW(m,!0,l,F.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return D===m&&!Lt(D)&&!(m.flags&3)&&t1(!1,Bu(l,F.await_has_no_effect_on_the_type_of_this_expression)),D}function Lai(l){const m=ka(l.operand);if(m===ja)return ja;switch(l.operand.kind){case 9:switch(l.operator){case 41:return U9(Sg(-l.operand.text));case 40:return U9(Sg(+l.operand.text))}break;case 10:if(l.operator===41)return U9(Oge({negative:!0,base10Value:AP(l.operand.text)}))}switch(l.operator){case 40:case 41:case 55:return yE(m,l.operand),lie(m,12288)&&pt(l.operand,F.The_0_operator_cannot_be_applied_to_type_symbol,Jo(l.operator)),l.operator===40?(lie(m,2112)&&pt(l.operand,F.Operator_0_cannot_be_applied_to_type_1,Jo(l.operator),gn(yD(m))),Qt):hze(m);case 54:Bze(m,l.operand);const D=Tz(m,12582912);return D===4194304?$i:D===8388608?hu:Er;case 46:case 47:return HEe(l.operand,yE(m,l.operand),F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AW(l.operand,F.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,F.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hze(m)}return jt}function Nai(l){const m=ka(l.operand);return m===ja?ja:(HEe(l.operand,yE(m,l.operand),F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&AW(l.operand,F.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,F.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),hze(m))}function hze(l){return Ol(l,2112)?n1(l,3)||Ol(l,296)?Za:Ti:Qt}function lie(l,m){if(Ol(l,m))return!0;const D=DD(l);return!!D&&Ol(D,m)}function Ol(l,m){if(l.flags&m)return!0;if(l.flags&3145728){const D=l.types;for(const C of D)if(Ol(C,m))return!0}return!1}function n1(l,m,D){return l.flags&m?!0:D&&l.flags&114691?!1:!!(m&296)&&hs(l,Qt)||!!(m&2112)&&hs(l,Ti)||!!(m&402653316)&&hs(l,ct)||!!(m&528)&&hs(l,Er)||!!(m&16384)&&hs(l,da)||!!(m&131072)&&hs(l,Wu)||!!(m&65536)&&hs(l,it)||!!(m&32768)&&hs(l,te)||!!(m&4096)&&hs(l,tr)||!!(m&67108864)&&hs(l,rs)}function cie(l,m,D){return l.flags&1048576?ye(l.types,C=>cie(C,m,D)):n1(l,m,D)}function KEe(l){return!!($u(l)&16)&&!!l.symbol&&fze(l.symbol)}function fze(l){return(l.flags&128)!==0}function mze(l){const m=l4t("hasInstance"),D=vC(l,m);if(D){const C=Jn(D);if(C&&mo(C,0).length!==0)return C}}function Pai(l,m,D,C,A){if(D===ja||C===ja)return ja;!nt(D)&&cie(D,402784252)&&pt(l,F.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),H.assert(Rq(l.parent));const w=hT(l.parent,void 0,A);if(w===Gu)return ja;const I=qs(w);return Fh(I,Er,m,F.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),Er}function Mai(l){return bE(l,m=>m===zl||!!(m.flags&2097152)&&bD(DD(m)))}function zai(l,m,D,C){if(D===ja||C===ja)return ja;if(Xr(l)){if(Ce<99&&ud(l,2097152),!sr(l).resolvedSymbol&&Zd(l)){const A=KMe(l,C.symbol,!0);Tft(l,C,A)}}else Fh(yE(D,l),An,l);return Fh(yE(C,m),rs,m)&&Mai(C)&&pt(m,F.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,gn(C)),Er}function Iai(l,m,D){const C=l.properties;if(fe&&C.length===0)return yE(m,l);for(let A=0;ACz(ce,D)):j1(C);return wF(U,Z,A)}}}}function wF(l,m,D,C){let A;if(l.kind===304){const w=l;w.objectAssignmentInitializer&&(fe&&!dp(ka(w.objectAssignmentInitializer),16777216)&&(m=hp(m,524288)),Hai(w.name,w.equalsToken,w.objectAssignmentInitializer,D)),A=l.name}else A=l;return A.kind===226&&A.operatorToken.kind===64&&(Ke(A,D),A=A.left,fe&&(m=hp(m,524288))),A.kind===210?Iai(A,m,C):A.kind===209?Rai(A,m,D):Oai(A,m,D)}function Oai(l,m,D){const C=ka(l,D),A=l.parent.kind===305?F.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:F.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,w=l.parent.kind===305?F.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:F.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return AW(l,A,w)&&F6(m,C,l,l),B8(l)&&ud(l.parent,1048576),m}function die(l){switch(l=s0(l),l.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return die(l.whenTrue)&&die(l.whenFalse);case 226:return n5(l.operatorToken.kind)?!1:die(l.left)&&die(l.right);case 224:case 225:switch(l.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function pze(l,m){return(m.flags&98304)!==0||Uge(l,m)}function jai(){const l=vY(m,D,C,A,w,I);return(Je,ut)=>{const zt=l(Je,ut);return H.assertIsDefined(zt),zt};function m(Je,ut,zt){return ut?(ut.stackIndex++,ut.skip=!1,ce(ut,void 0),Te(ut,void 0)):ut={checkMode:zt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},eu(Je)&&o7(Je)?(ut.skip=!0,Te(ut,ka(Je.right,zt)),ut):(Vai(Je),Je.operatorToken.kind===64&&(Je.left.kind===210||Je.left.kind===209)&&(ut.skip=!0,Te(ut,wF(Je.left,ka(Je.right,zt),zt,Je.right.kind===110))),ut)}function D(Je,ut,zt){if(!ut.skip)return U(ut,Je)}function C(Je,ut,zt){if(!ut.skip){const fi=Fe(ut);H.assertIsDefined(fi),ce(ut,fi),Te(ut,void 0);const Ki=Je.kind;if(Hj(Ki)){let cn=zt.parent;for(;cn.kind===217||Kj(cn);)cn=cn.parent;(Ki===56||_k(cn))&&Sze(zt.left,fi,_k(cn)?cn.thenStatement:void 0),Bze(fi,zt.left)}}}function A(Je,ut,zt){if(!ut.skip)return U(ut,Je)}function w(Je,ut){let zt;if(ut.skip)zt=Fe(ut);else{const fi=Z(ut);H.assertIsDefined(fi);const Ki=Fe(ut);H.assertIsDefined(Ki),zt=Fmt(Je.left,Je.operatorToken,Je.right,fi,Ki,ut.checkMode,Je)}return ut.skip=!1,ce(ut,void 0),Te(ut,void 0),ut.stackIndex--,zt}function I(Je,ut,zt){return Te(Je,ut),Je}function U(Je,ut){if(tu(ut))return ut;Te(Je,ka(ut,Je.checkMode))}function Z(Je){return Je.typeStack[Je.stackIndex]}function ce(Je,ut){Je.typeStack[Je.stackIndex]=ut}function Fe(Je){return Je.typeStack[Je.stackIndex+1]}function Te(Je,ut){Je.typeStack[Je.stackIndex+1]=ut}}function Vai(l){const{left:m,operatorToken:D,right:C}=l;D.kind===61&&(tu(m)&&(m.operatorToken.kind===57||m.operatorToken.kind===56)&&qi(m,F._0_and_1_operations_cannot_be_mixed_without_parentheses,Jo(m.operatorToken.kind),Jo(D.kind)),tu(C)&&(C.operatorToken.kind===57||C.operatorToken.kind===56)&&qi(C,F._0_and_1_operations_cannot_be_mixed_without_parentheses,Jo(C.operatorToken.kind),Jo(D.kind)))}function Hai(l,m,D,C,A){const w=m.kind;if(w===64&&(l.kind===210||l.kind===209))return wF(l,ka(D,C),C,D.kind===110);let I;Hj(w)?I=Hz(l,C):I=ka(l,C);const U=ka(D,C);return Fmt(l,m,D,I,U,C,A)}function Fmt(l,m,D,C,A,w,I){const U=m.kind;switch(U){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(C===ja||A===ja)return ja;C=yE(C,l),A=yE(A,D);let Ii;if(C.flags&528&&A.flags&528&&(Ii=Je(m.kind))!==void 0)return pt(I||m,F.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Jo(m.kind),Jo(Ii)),Qt;{const Sn=HEe(l,C,F.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),_n=HEe(D,A,F.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let fu;if(n1(C,3)&&n1(A,3)||!(Ol(C,2112)||Ol(A,2112)))fu=Qt;else if(Z(C,A)){switch(U){case 50:case 73:Ki();break;case 43:case 68:Ce<3&&pt(I,F.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}fu=Ti}else Ki(Z),fu=jt;return Sn&&_n&&ut(fu),fu}case 40:case 65:if(C===ja||A===ja)return ja;!n1(C,402653316)&&!n1(A,402653316)&&(C=yE(C,l),A=yE(A,D));let Pn;return n1(C,296,!0)&&n1(A,296,!0)?Pn=Qt:n1(C,2112,!0)&&n1(A,2112,!0)?Pn=Ti:n1(C,402653316,!0)||n1(A,402653316,!0)?Pn=ct:(nt(C)||nt(A))&&(Pn=Lt(C)||Lt(A)?jt:me),Pn&&!Te(U)?Pn:Pn?(U===65&&ut(Pn),Pn):(Ki((_n,fu)=>n1(_n,402655727)&&n1(fu,402655727)),me);case 30:case 32:case 33:case 34:return Te(U)&&(C=GPe(yE(C,l)),A=GPe(yE(A,D)),fi((Sn,_n)=>{if(nt(Sn)||nt(_n))return!0;const fu=hs(Sn,Za),ao=hs(_n,Za);return fu&&ao||!fu&&!ao&&Bte(Sn,_n)})),Er;case 35:case 36:case 37:case 38:if(!(w&&w&64)){if((Jse(l)||Jse(D))&&(!eu(l)||U===37||U===38)){const Sn=U===35||U===37;pt(I,F.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,Sn?"false":"true")}uu(I,U,l,D),fi((Sn,_n)=>pze(Sn,_n)||pze(_n,Sn))}return Er;case 104:return Pai(l,D,C,A,w);case 103:return zai(l,D,C,A);case 56:case 77:{const Sn=dp(C,4194304)?ir([Bii(fe?C:yD(A)),A]):C;return U===77&&ut(A),Sn}case 57:case 76:{const Sn=dp(C,8388608)?ir([kD(cht(C)),A],2):C;return U===76&&ut(A),Sn}case 61:case 78:{const Sn=dp(C,262144)?ir([kD(C),A],2):C;return U===78&&ut(A),Sn}case 64:const Cn=tu(l.parent)?Ql(l.parent):0;return ce(Cn,A),zt(Cn)?((!(A.flags&524288)||Cn!==2&&Cn!==6&&!CD(A)&&!fMe(A)&&!($u(A)&1))&&ut(A),C):(ut(A),A);case 28:if(!ae.allowUnreachableCode&&die(l)&&!Fe(l.parent)){const Sn=In(l),_n=Sn.text,fu=ms(_n,l.pos);Sn.parseDiagnostics.some(po=>po.code!==F.JSX_expressions_must_have_one_parent_element.code?!1:Lse(po,fu))||pt(l,F.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return A;default:return H.fail()}function Z(Ii,Pn){return n1(Ii,2112)&&n1(Pn,2112)}function ce(Ii,Pn){if(Ii===2)for(const Cn of _6(Pn)){const Sn=Jn(Cn);if(Sn.symbol&&Sn.symbol.flags&32){const _n=Cn.escapedName,fu=nc(Cn.valueDeclaration,_n,788968,void 0,_n,!1);fu!=null&&fu.declarations&&fu.declarations.some(LB)&&(bg(fu,F.Duplicate_identifier_0,Yr(_n),Cn),bg(Cn,F.Duplicate_identifier_0,Yr(_n),fu))}}}function Fe(Ii){return Ii.parent.kind===217&&Rf(Ii.left)&&Ii.left.text==="0"&&(No(Ii.parent.parent)&&Ii.parent.parent.expression===Ii.parent||Ii.parent.parent.kind===215)&&(N0(Ii.right)||at(Ii.right)&&Ii.right.escapedText==="eval")}function Te(Ii){const Pn=lie(C,12288)?l:lie(A,12288)?D:void 0;return Pn?(pt(Pn,F.The_0_operator_cannot_be_applied_to_type_symbol,Jo(Ii)),!1):!0}function Je(Ii){switch(Ii){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function ut(Ii){n5(U)&&s(Pn);function Pn(){let Cn=C;if(fM(m.kind)&&l.kind===211&&(Cn=wEe(l,void 0,!0)),AW(l,F.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let Sn;if(je&&Iu(l)&&Ol(Ii,32768)){const _n=he(C1(l.expression),l.name.escapedText);Zge(Ii,_n)&&(Sn=F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}F6(Ii,Cn,l,D,Sn)}}}function zt(Ii){var Pn;switch(Ii){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const Cn=_m(l),Sn=o7(D);return!!Sn&&Cs(Sn)&&!!((Pn=Cn==null?void 0:Cn.exports)!=null&&Pn.size);default:return!1}}function fi(Ii){return Ii(C,A)?!1:(Ki(Ii),!0)}function Ki(Ii){let Pn=!1;const Cn=I||m;if(Ii){const po=K5(C),co=K5(A);Pn=!(po===C&&co===A)&&!!(po&&co)&&Ii(po,co)}let Sn=C,_n=A;!Pn&&Ii&&([Sn,_n]=Kai(C,A,Ii));const[fu,ao]=d6(Sn,_n);cn(Cn,Pn,fu,ao)||Ch(Cn,Pn,F.Operator_0_cannot_be_applied_to_types_1_and_2,Jo(m.kind),fu,ao)}function cn(Ii,Pn,Cn,Sn){switch(m.kind){case 37:case 35:case 38:case 36:return Ch(Ii,Pn,F.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,Cn,Sn);default:return}}function uu(Ii,Pn,Cn,Sn){const _n=En(s0(Cn)),fu=En(s0(Sn));if(_n||fu){const ao=pt(Ii,F.This_condition_will_always_return_0,Jo(Pn===37||Pn===35?97:112));if(_n&&fu)return;const po=Pn===38||Pn===36?Jo(54):"",co=_n?Sn:Cn,Fa=s0(co);ps(ao,Bu(co,F.Did_you_mean_0,`${po}Number.isNaN(${Xl(Fa)?Mf(Fa):"..."})`))}}function En(Ii){if(at(Ii)&&Ii.escapedText==="NaN"){const Pn=Mei();return!!Pn&&Pn===$p(Ii)}return!1}}function Kai(l,m,D){let C=l,A=m;const w=yD(l),I=yD(m);return D(w,I)||(C=w,A=I),[C,A]}function Wai(l){s(Je);const m=Lm(l);if(!m)return me;const D=yd(m);if(!(D&1))return me;const C=(D&2)!==0;l.asteriskToken&&(C&&Ce<99&&ud(l,26624),!C&&Ce<2&&ae.downlevelIteration&&ud(l,256));let A=iT(m);A&&A.flags&1048576&&(A=zc(A,ut=>Dze(ut,D,void 0)));const w=A&&m4t(A,C),I=w&&w.yieldType||me,U=w&&w.nextType||me,Z=C?TF(U)||me:U,ce=l.expression?ka(l.expression):we,Fe=gmt(l,ce,Z,C);if(A&&Fe&&F6(Fe,I,l.expression||l,l.expression),l.asteriskToken)return Tze(C?19:17,1,ce,l.expression)||me;if(A)return Ob(2,A,C)||me;let Te=ift(2,m);return Te||(Te=me,s(()=>{if(Ae&&!Eke(l)){const ut=df(l,void 0);(!ut||nt(ut))&&pt(l,F.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Te;function Je(){l.flags&16384||u1(l,F.A_yield_expression_is_only_allowed_in_a_generator_body),kMe(l)&&pt(l,F.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Gai(l,m){const D=Hz(l.condition,m);Sze(l.condition,D,l.whenTrue);const C=ka(l.whenTrue,m),A=ka(l.whenFalse,m);return ir([C,A],2)}function Amt(l){const m=l.parent;return vf(m)&&Amt(m)||W0(m)&&m.argumentExpression===l}function Jai(l){const m=[l.head.text],D=[];for(const A of l.templateSpans){const w=ka(A.expression);lie(w,12288)&&pt(A.expression,F.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),m.push(A.literal.text),D.push(hs(w,l0)?w:ct)}if(Iz(l)||Amt(l)||bE(df(l,void 0)||on,$ai))return _F(m,D);const C=l.parent.kind!==215&&B4t(l);return C?U9(cf(C)):ct}function $ai(l){return!!(l.flags&134217856||l.flags&58982400&&Ol(Hh(l)||on,402653316))}function Uai(l){return V2(l)&&!vk(l.parent)?l.parent.parent:l}function fT(l,m,D,C){const A=Uai(l);Jte(A,m,!1),gui(A,D);const w=ka(l,C|1|(D?2:0));D&&D.intraExpressionInferenceSites&&(D.intraExpressionInferenceSites=void 0);const I=Ol(w,2944)&&WEe(w,kEe(m,l,void 0))?Wh(w):w;return Eui(),vW(),I}function Ic(l,m){if(m)return ka(l,m);const D=sr(l);if(!D.resolvedType){const C=Xe,A=yn;Xe=Dt,yn=void 0,D.resolvedType=ka(l,m),yn=A,Xe=C}return D.resolvedType}function Smt(l){return l=s0(l,!0),l.kind===216||l.kind===234||eM(l)}function SW(l,m,D){const C=Ej(l);if(eu(l)){const w=hZ(l);if(w)return uze(C,w,m)}const A=_ze(C)||(D?fT(C,D,void 0,m||0):Ic(C,m));return eo(l)&&l.name.kind===207&&_s(A)&&!A.target.hasRestElement&&R5(A)WEe(l,C))}if(m.flags&58982400){const D=Hh(m)||on;return Ol(D,4)&&Ol(l,128)||Ol(D,8)&&Ol(l,256)||Ol(D,64)&&Ol(l,2048)||Ol(D,4096)&&Ol(l,8192)||WEe(l,D)}return!!(m.flags&406847616&&Ol(l,128)||m.flags&256&&Ol(l,256)||m.flags&2048&&Ol(l,2048)||m.flags&512&&Ol(l,512)||m.flags&8192&&Ol(l,8192))}return!1}function Iz(l){const m=l.parent;return qy(m)&&U3(m.type)||eM(m)&&U3(EY(m))||nze(l)&&H9(df(l,0))||(vf(m)||_h(m)||nE(m))&&Iz(m)||(Gc(m)||mm(m)||UP(m))&&Iz(m.parent)}function Rz(l,m,D){const C=ka(l,m,D);return Iz(l)||Wbe(l)?Wh(C):Smt(l)?C:JPe(C,kEe(df(l,void 0),l,void 0))}function Bmt(l,m){return l.name.kind===167&&k3(l.name),Rz(l.initializer,m)}function wmt(l,m){ipt(l),l.name.kind===167&&k3(l.name);const D=vmt(l,m);return Tmt(l,D,m)}function Tmt(l,m,D){if(D&&D&10){const C=bW(m,0,!0),A=bW(m,1,!0),w=C||A;if(w&&w.typeParameters){const I=NC(l,2);if(I){const U=bW(kD(I),C?0:1,!1);if(U&&!U.typeParameters){if(D&8)return Lmt(l,D),Ri;const Z=Ib(l),ce=Z.signature&&qs(Z.signature),Fe=ce&&jft(ce);if(Fe&&!Fe.typeParameters&&!ye(Z.inferences,mT)){const Te=Xai(Z,w.typeParameters),Je=QNe(w,Te),ut=Kt(Z.inferences,zt=>XPe(zt.typeParameter));if(qPe(Je,U,(zt,fi)=>{FD(ut,zt,fi,0,!0)}),qe(ut,mT)&&(ZPe(Je,U,(zt,fi)=>{FD(ut,zt,fi)}),!Yai(Z.inferences,ut)))return Qai(Z.inferences,ut),Z.inferredTypeParameters=an(Z.inferredTypeParameters,Te),EF(Je)}return EF(Vft(w,U,Z))}}}}return m}function Lmt(l,m){if(m&2){const D=Ib(l);D.flags|=4}}function mT(l){return!!(l.candidates||l.contraCandidates)}function Zai(l){return!!(l.candidates||l.contraCandidates||Cdt(l.typeParameter))}function Yai(l,m){for(let D=0;DD.symbol.escapedName===m)}function eoi(l,m){let D=m.length;for(;D>1&&m.charCodeAt(D-1)>=48&&m.charCodeAt(D-1)<=57;)D--;const C=m.slice(0,D);for(let A=1;;A++){const w=C+A;if(!Eze(l,w))return w}}function Nmt(l){const m=SF(l);if(m&&!m.typeParameters)return qs(m)}function toi(l){const m=ka(l.expression),D=mW(m,l.expression),C=Nmt(m);return C&&oEe(C,l,D!==m)}function C1(l){const m=_ze(l);if(m)return m;if(l.flags&268435456&&yn){const A=yn[Js(l)];if(A)return A}const D=Qi,C=ka(l,64);if(Qi!==D){const A=yn||(yn=[]);A[Js(l)]=C,gke(l,l.flags|268435456)}return C}function _ze(l){let m=s0(l,!0);if(eM(m)){const D=EY(m);if(!U3(D))return Br(D)}if(m=s0(l),Wx(m)){const D=_ze(m.expression);return D?TF(D):void 0}if(No(m)&&m.expression.kind!==108&&!Df(m,!0)&&!emt(m))return Gy(m)?toi(m):Nmt(cT(m.expression));if(qy(m)&&!U3(m.type))return Br(m.type);if(m2(l)||VN(l))return ka(l)}function hie(l){const m=sr(l);if(m.contextFreeType)return m.contextFreeType;Jte(l,me,!1);const D=m.contextFreeType=ka(l,4);return vW(),D}function ka(l,m,D){var C,A;(C=$n)==null||C.push($n.Phase.Check,"checkExpression",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath});const w=K;K=l,z=0;const I=uoi(l,m,D),U=Tmt(l,I,m);return KEe(U)&&ioi(l,U),K=w,(A=$n)==null||A.pop(),U}function ioi(l,m){l.parent.kind===211&&l.parent.expression===l||l.parent.kind===212&&l.parent.expression===l||(l.kind===80||l.kind===166)&&u_e(l)||l.parent.kind===186&&l.parent.exprName===l||l.parent.kind===281||pt(l,F.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),hg(ae)&&(H.assert(!!(m.symbol.flags&128)),m.symbol.valueDeclaration.flags&33554432&&!Bv(l)&&pt(l,F.Cannot_access_ambient_const_enums_when_0_is_enabled,ht))}function noi(l,m){if(sm(l)){if(zle(l))return uze(l.expression,Ile(l),m);if(eM(l))return umt(l,m)}return ka(l.expression,m)}function uoi(l,m,D){const C=l.kind;if(d)switch(C){case 231:case 218:case 219:d.throwIfCancellationRequested()}switch(C){case 80:return Oni(l,m);case 81:return iri(l);case 110:return Wte(l);case 108:return bMe(l);case 106:return Ct;case 15:case 11:return uMe(l)?mt:U9(cf(l.text));case 9:return Qze(l),U9(Sg(+l.text));case 10:return rci(l),U9(Oge({negative:!1,base10Value:AP(l.text)}));case 112:return hu;case 97:return $i;case 228:return Jai(l);case 14:return Bl;case 209:return cft(l,m,D);case 210:return Pui(l,m);case 211:return wEe(l,m);case 166:return Fft(l,m);case 212:return _ri(l,m);case 213:if(l.expression.kind===102)return qri(l);case 214:return Uri(l,m);case 215:return Zri(l);case 217:return noi(l,m);case 231:return Gsi(l);case 218:case 219:return vmt(l,m);case 221:return Bai(l);case 216:case 234:return Yri(l,m);case 235:return eai(l);case 233:return amt(l);case 238:return tai(l);case 236:return iai(l);case 220:return Aai(l);case 222:return wai(l);case 223:return Tai(l);case 224:return Lai(l);case 225:return Nai(l);case 226:return Ke(l,m);case 227:return Gai(l,m);case 230:return Sui(l,m);case 232:return we;case 229:return Wai(l);case 237:return Bui(l);case 294:return qui(l,m);case 284:return Rui(l);case 285:return zui(l);case 288:return Oui(l);case 292:return Vui(l,m);case 286:H.fail("Shouldn't ever directly check a JsxOpeningElement")}return jt}function Pmt(l){A3(l),l.expression&&u1(l.expression,F.Type_expected),ss(l.constraint),ss(l.default);const m=mF(Du(l));Hh(m),VXt(m)||pt(l.default,F.Type_parameter_0_has_a_circular_default,gn(m));const D=uh(m),C=gF(m);D&&C&&Fh(C,Dm(Da(D,Lb(m,C)),C),l.default,F.Type_0_does_not_satisfy_the_constraint_1),Q9(l),s(()=>Kz(l.name,F.Type_parameter_name_cannot_be_0))}function roi(l){var m,D;if(Dh(l.parent)||gr(l.parent)||Ip(l.parent)){const C=mF(Du(l)),A=jPe(C)&24576;if(A){const w=Du(l.parent);if(Ip(l.parent)&&!($u(q0(w))&48))pt(l,F.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(A===8192||A===16384){(m=$n)==null||m.push($n.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:kh(q0(w)),id:kh(C)});const I=Lte(w,C,A===16384?tt:$),U=Lte(w,C,A===16384?$:tt),Z=C;Y=C,Fh(I,U,l,F.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),Y=Z,(D=$n)==null||D.pop()}}}}function Mmt(l){A3(l),Eie(l);const m=Lm(l);Xu(l,31)&&(m.kind===176&&j4(m.body)||pt(l,F.A_parameter_property_is_only_allowed_in_a_constructor_implementation),m.kind===176&&at(l.name)&&l.name.escapedText==="constructor"&&pt(l.name,F.constructor_cannot_be_used_as_a_parameter_property_name)),!l.initializer&&NP(l)&&Fo(l.name)&&m.body&&pt(l,F.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),l.name&&at(l.name)&&(l.name.escapedText==="this"||l.name.escapedText==="new")&&(m.parameters.indexOf(l)!==0&&pt(l,F.A_0_parameter_must_be_the_first_parameter,l.name.escapedText),(m.kind===176||m.kind===180||m.kind===185)&&pt(l,F.A_constructor_cannot_have_a_this_parameter),m.kind===219&&pt(l,F.An_arrow_function_cannot_have_a_this_parameter),(m.kind===177||m.kind===178)&&pt(l,F.get_and_set_accessors_cannot_declare_this_parameters)),l.dotDotDotToken&&!Fo(l.name)&&!hs(Fg(Jn(l.symbol)),ep)&&pt(l,F.A_rest_parameter_must_be_of_an_array_type)}function aoi(l){const m=ooi(l);if(!m){pt(l,F.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const D=lp(m),C=b4(D);if(!C)return;ss(l.type);const{parameterName:A}=l;if(C.kind===0||C.kind===2)jge(A);else if(C.parameterIndex>=0){if(eh(D)&&C.parameterIndex===D.parameters.length-1)pt(A,F.A_type_predicate_cannot_reference_a_rest_parameter);else if(C.type){const w=()=>uo(void 0,F.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Fh(C.type,Jn(D.parameters[C.parameterIndex]),l.type,void 0,w)}}else if(A){let w=!1;for(const{name:I}of m.parameters)if(Fo(I)&&zmt(I,A,C.parameterName)){w=!0;break}w||pt(l.parameterName,F.Cannot_find_parameter_0,C.parameterName)}}function ooi(l){switch(l.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const m=l.parent;if(l===m.type)return m}}function zmt(l,m,D){for(const C of l.elements){if(kd(C))continue;const A=C.name;if(A.kind===80&&A.escapedText===D)return pt(m,F.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,D),!0;if((A.kind===207||A.kind===206)&&zmt(A,m,D))return!0}}function BW(l){l.kind===181?Nli(l):(l.kind===184||l.kind===262||l.kind===185||l.kind===179||l.kind===176||l.kind===180)&&c_e(l);const m=yd(l);m&4||((m&3)===3&&Ce<99&&ud(l,6144),(m&3)===2&&Ce<4&&ud(l,64),m&3&&Ce<2&&ud(l,128)),xie(Ax(l)),Hsi(l),L(l.parameters,Mmt),l.type&&ss(l.type),s(D);function D(){rsi(l);let C=J4(l),A=C;if(eu(l)){const w=_v(l);if(w&&w.typeExpression&&Y4(w.typeExpression.type)){const I=SF(Br(w.typeExpression));I&&I.declaration&&(C=J4(I.declaration),A=w.typeExpression.type)}}if(Ae&&!C)switch(l.kind){case 180:pt(l,F.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:pt(l,F.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(C&&A){const w=yd(l);if((w&5)===1){const I=Br(C);I===da?pt(A,F.A_generator_cannot_have_a_void_type_annotation):Dze(I,w,A)}else(w&3)===2&&Roi(l,C,A)}l.kind!==181&&l.kind!==324&&w6(l)}}function Dze(l,m,D){const C=Ob(0,l,(m&2)!==0)||me,A=Ob(1,l,(m&2)!==0)||C,w=Ob(2,l,(m&2)!==0)||on,I=pmt(C,A,w,!!(m&2));return Fh(I,l,D)}function soi(l){const m=new Map,D=new Map,C=new Map;for(const w of l.members)if(w.kind===176)for(const I of w.parameters)Pf(I,w)&&!Fo(I.name)&&A(m,I.name,I.name.escapedText,3);else{const I=To(w),U=w.name;if(!U)continue;const Z=Xr(U),ce=Z&&I?16:0,Fe=Z?C:I?D:m,Te=U&&Xze(U);if(Te)switch(w.kind){case 177:A(Fe,U,Te,1|ce);break;case 178:A(Fe,U,Te,2|ce);break;case 172:A(Fe,U,Te,3|ce);break;case 174:A(Fe,U,Te,8|ce);break}}function A(w,I,U,Z){const ce=w.get(U);if(ce)if((ce&16)!==(Z&16))pt(I,F.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Vc(I));else{const Fe=!!(ce&8),Te=!!(Z&8);Fe||Te?Fe!==Te&&pt(I,F.Duplicate_identifier_0,Vc(I)):ce&Z&-17?pt(I,F.Duplicate_identifier_0,Vc(I)):w.set(U,ce|Z)}else w.set(U,Z)}}function loi(l){for(const m of l.members){const D=m.name;if(To(m)&&D){const A=Xze(D);switch(A){case"name":case"length":case"caller":case"arguments":if(Se)break;case"prototype":const w=F.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,I=E_(Du(l));pt(D,w,A,I);break}}}}function Imt(l){const m=new Map;for(const D of l.members)if(D.kind===171){let C;const A=D.name;switch(A.kind){case 11:case 9:C=A.text;break;case 80:C=mu(A);break;default:continue}m.get(C)?(pt(qa(D.symbol.valueDeclaration),F.Duplicate_identifier_0,C),pt(D.name,F.Duplicate_identifier_0,C)):m.set(C,!0)}}function xze(l){if(l.kind===264){const D=Du(l);if(D.declarations&&D.declarations.length>0&&D.declarations[0]!==l)return}const m=Ldt(Du(l));if(m!=null&&m.declarations){const D=new Map;for(const C of m.declarations)C.parameters.length===1&&C.parameters[0].type&&yF(Br(C.parameters[0].type),A=>{const w=D.get(kh(A));w?w.declarations.push(C):D.set(kh(A),{type:A,declarations:[C]})});D.forEach(C=>{if(C.declarations.length>1)for(const A of C.declarations)pt(A,F.Duplicate_index_signature_for_type_0,gn(C.type))})}}function Rmt(l){!A3(l)&&!tci(l)&&d_e(l.name),Eie(l),vze(l),Xu(l,64)&&l.kind===172&&l.initializer&&pt(l,F.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,C0(l.name))}function coi(l){return Xr(l.name)&&pt(l,F.Private_identifiers_are_not_allowed_outside_class_bodies),Rmt(l)}function doi(l){ipt(l)||d_e(l.name),cc(l)&&l.asteriskToken&&at(l.name)&&mu(l.name)==="constructor"&&pt(l.name,F.Class_constructor_may_not_be_a_generator),Ymt(l),Xu(l,64)&&l.kind===174&&l.body&&pt(l,F.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,C0(l.name)),Xr(l.name)&&!Zd(l)&&pt(l,F.Private_identifiers_are_not_allowed_outside_class_bodies),vze(l)}function vze(l){if(Xr(l.name)&&Ce<99){for(let m=ZE(l);m;m=ZE(m))sr(m).flags|=1048576;if(Qd(l.parent)){const m=DMe(l.parent);m&&(sr(l.name).flags|=32768,sr(m).flags|=4096)}}}function hoi(l){A3(l),ro(l,ss)}function foi(l){BW(l),Xli(l)||eci(l),ss(l.body);const m=Du(l),D=Fl(m,l.kind);if(l===D&&$Ee(m),Yl(l.body))return;s(A);return;function C(w){return mh(w)?!0:w.kind===172&&!To(w)&&!!w.initializer}function A(){const w=l.parent;if(F2(w)){xMe(l.parent,w);const I=vMe(w),U=Uht(l.body);if(U){if(I&&pt(U,F.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!Ne&&(qe(l.parent.members,C)||qe(l.parameters,ce=>Xu(ce,31))))if(!moi(U,l.body))pt(U,F.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let ce;for(const Fe of l.body.statements){if(Id(Fe)&&ek(_c(Fe.expression))){ce=Fe;break}if(Omt(Fe))break}ce===void 0&&pt(l,F.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else I||pt(l,F.Constructors_for_derived_classes_must_contain_a_super_call)}}}function moi(l,m){const D=t5(l.parent);return Id(D)&&D.parent===m}function Omt(l){return l.kind===108||l.kind===110?!0:Ybe(l)?!1:!!ro(l,Omt)}function jmt(l){at(l.name)&&mu(l.name)==="constructor"&&gr(l.parent)&&pt(l.name,F.Class_constructor_may_not_be_an_accessor),s(m),ss(l.body),vze(l);function m(){if(!c_e(l)&&!Hli(l)&&d_e(l.name),mie(l),BW(l),l.kind===177&&!(l.flags&33554432)&&j4(l.body)&&l.flags&512&&(l.flags&1024||pt(l.name,F.A_get_accessor_must_return_a_value)),l.name.kind===167&&k3(l.name),eT(l)){const C=Du(l),A=Fl(C,177),w=Fl(C,178);if(A&&w&&!(ET(A)&1)){sr(A).flags|=1;const I=gh(A),U=gh(w);(I&64)!==(U&64)&&(pt(A.name,F.Accessors_must_both_be_abstract_or_non_abstract),pt(w.name,F.Accessors_must_both_be_abstract_or_non_abstract)),(I&4&&!(U&6)||I&2&&!(U&2))&&(pt(A.name,F.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),pt(w.name,F.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const D=DC(Du(l));l.kind===177&&dze(l,D)}}function poi(l){mie(l)}function goi(l,m,D){return l.typeArguments&&D{const C=Cze(l);C&&Vmt(l,C)});const D=sr(l).resolvedSymbol;D&&qe(D.declarations,C=>mB(C)&&!!(C.flags&536870912))&&f3(uie(l),D.declarations,D.escapedName)}}function _oi(l){const m=ar(l.parent,KU);if(!m)return;const D=Cze(m);if(!D)return;const C=uh(D[m.typeArguments.indexOf(l)]);return C&&Da(C,Af(D,GEe(m,D)))}function Doi(l){Kdt(l)}function xoi(l){L(l.members,ss),s(m);function m(){const D=w1t(l);e_e(D,D.symbol),xze(l),Imt(l)}}function voi(l){ss(l.elementType)}function Coi(l){const m=l.elements;let D=!1,C=!1;for(const A of m){const w=lPe(A);if(w&8){const I=Br(A.type);if(!V5(I)){pt(A,F.A_rest_element_type_must_be_an_array_type);break}(F4(I)||_s(I)&&I.target.combinedFlags&4)&&(C=!0)}else if(w&4){if(C){qi(A,F.A_rest_element_cannot_follow_another_rest_element);break}C=!0}else if(w&2){if(C){qi(A,F.An_optional_element_cannot_follow_a_rest_element);break}D=!0}else if(D){qi(A,F.A_required_element_cannot_follow_an_optional_element);break}}L(l.elements,ss),Br(l)}function boi(l){L(l.types,ss),Br(l)}function Kmt(l,m){if(!(l.flags&8388608))return l;const D=l.objectType,C=l.indexType;if(hs(C,y_(D,0)))return m.kind===212&&Y_(m)&&$u(D)&32&&v_(D)&1&&pt(m,F.Index_signature_in_type_0_only_permits_reading,gn(D)),l;const A=Kh(D);if(y3(A,Qt)&&n1(C,296))return l;if(Bb(D)){const w=Mge(C,m);if(w){const I=yF(A,U=>$o(U,w));if(I&&s4(I)&6)return pt(m,F.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Yr(w)),jt}}return pt(m,F.Type_0_cannot_be_used_to_index_type_1,gn(C),gn(D)),jt}function yoi(l){ss(l.objectType),ss(l.indexType),Kmt(y1t(l),l)}function koi(l){Foi(l),ss(l.typeParameter),ss(l.nameType),ss(l.type),l.type||wC(l,me);const m=vPe(l),D=z5(m);if(D)Fh(D,xc,l.nameType);else{const C=sp(m);Fh(C,xc,S8(l.typeParameter))}}function Foi(l){var m;if((m=l.members)!=null&&m.length)return qi(l.members[0],F.A_mapped_type_may_not_declare_properties_or_methods)}function Aoi(l){jge(l)}function Soi(l){Wli(l),ss(l.type)}function Boi(l){ro(l,ss)}function woi(l){Ln(l,D=>D.parent&&D.parent.kind===194&&D.parent.extendsType===D)||qi(l,F.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),ss(l.typeParameter);const m=Du(l.typeParameter);if(m.declarations&&m.declarations.length>1){const D=$r(m);if(!D.typeParametersChecked){D.typeParametersChecked=!0;const C=mF(m),A=Dbe(m,168);if(!_4t(A,[C],w=>[w])){const w=Sr(m);for(const I of A)pt(I.name,F.All_declarations_of_0_must_have_identical_constraints,w)}}}w6(l)}function Toi(l){for(const m of l.templateSpans){ss(m.type);const D=Br(m.type);Fh(D,l0,m.type)}Br(l)}function Loi(l){ss(l.argument),l.attributes&&$B(l.attributes,qi),Hmt(l)}function Noi(l){l.dotDotDotToken&&l.questionToken&&qi(l,F.A_tuple_member_cannot_be_both_optional_and_rest),l.type.kind===190&&qi(l.type,F.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),l.type.kind===191&&qi(l.type,F.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),ss(l.type),Br(l)}function fie(l){return(If(l,2)||mh(l))&&!!(l.flags&33554432)}function JEe(l,m){let D=h_e(l);if(l.parent.kind!==264&&l.parent.kind!==263&&l.parent.kind!==231&&l.flags&33554432){const C=v0e(l);C&&C.flags&128&&!(D&128)&&!(uE(l.parent)&&Ec(l.parent.parent)&&Zg(l.parent.parent))&&(D|=32),D|=128}return D&m}function $Ee(l){s(()=>Poi(l))}function Poi(l){function m(Ii,Pn){return Pn!==void 0&&Pn.parent===Ii[0].parent?Pn:Ii[0]}function D(Ii,Pn,Cn,Sn,_n){if((Sn^_n)!==0){const ao=JEe(m(Ii,Pn),Cn);L(Ii,po=>{const co=JEe(po,Cn)^ao;co&32?pt(qa(po),F.Overload_signatures_must_all_be_exported_or_non_exported):co&128?pt(qa(po),F.Overload_signatures_must_all_be_ambient_or_non_ambient):co&6?pt(qa(po)||po,F.Overload_signatures_must_all_be_public_private_or_protected):co&64&&pt(qa(po),F.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function C(Ii,Pn,Cn,Sn){if(Cn!==Sn){const _n=l7(m(Ii,Pn));L(Ii,fu=>{l7(fu)!==_n&&pt(qa(fu),F.Overload_signatures_must_all_be_optional_or_required)})}}const A=230;let w=0,I=A,U=!1,Z=!0,ce=!1,Fe,Te,Je;const ut=l.declarations,zt=(l.flags&16384)!==0;function fi(Ii){if(Ii.name&&Yl(Ii.name))return;let Pn=!1;const Cn=ro(Ii.parent,_n=>{if(Pn)return _n;Pn=_n===Ii});if(Cn&&Cn.pos===Ii.end&&Cn.kind===Ii.kind){const _n=Cn.name||Cn,fu=Cn.name;if(Ii.name&&fu&&(Xr(Ii.name)&&Xr(fu)&&Ii.name.escapedText===fu.escapedText||Ls(Ii.name)&&Ls(fu)&&vD(k3(Ii.name),k3(fu))||Qg(Ii.name)&&Qg(fu)&&aP(Ii.name)===aP(fu))){if((Ii.kind===174||Ii.kind===173)&&To(Ii)!==To(Cn)){const po=To(Ii)?F.Function_overload_must_be_static:F.Function_overload_must_not_be_static;pt(_n,po)}return}if(j4(Cn.body)){pt(_n,F.Function_implementation_name_must_be_0,C0(Ii.name));return}}const Sn=Ii.name||Ii;zt?pt(Sn,F.Constructor_implementation_is_missing):Xu(Ii,64)?pt(Sn,F.All_declarations_of_an_abstract_method_must_be_consecutive):pt(Sn,F.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Ki=!1,cn=!1,uu=!1;const En=[];if(ut)for(const Ii of ut){const Pn=Ii,Cn=Pn.flags&33554432,Sn=Pn.parent&&(Pn.parent.kind===264||Pn.parent.kind===187)||Cn;if(Sn&&(Je=void 0),(Pn.kind===263||Pn.kind===231)&&!Cn&&(uu=!0),Pn.kind===262||Pn.kind===174||Pn.kind===173||Pn.kind===176){En.push(Pn);const _n=JEe(Pn,A);w|=_n,I&=_n,U=U||l7(Pn),Z=Z&&l7(Pn);const fu=j4(Pn.body);fu&&Fe?zt?cn=!0:Ki=!0:(Je==null?void 0:Je.parent)===Pn.parent&&Je.end!==Pn.pos&&fi(Je),fu?Fe||(Fe=Pn):ce=!0,Je=Pn,Sn||(Te=Pn)}if(eu(Ii)&&xo(Ii)&&Ii.jsDoc){for(const _n of Ii.jsDoc)if(_n.tags)for(const fu of _n.tags)TB(fu)&&(ce=!0)}}if(cn&&L(En,Ii=>{pt(Ii,F.Multiple_constructor_implementations_are_not_allowed)}),Ki&&L(En,Ii=>{pt(qa(Ii)||Ii,F.Duplicate_function_implementation)}),uu&&!zt&&l.flags&16&&ut){const Ii=ei(ut,Pn=>Pn.kind===263).map(Pn=>Bu(Pn,F.Consider_adding_a_declare_modifier_to_this_class));L(ut,Pn=>{const Cn=Pn.kind===263?F.Class_declaration_cannot_implement_overload_list_for_0:Pn.kind===262?F.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;Cn&&ps(pt(qa(Pn)||Pn,Cn,sc(l)),...Ii)})}if(Te&&!Te.body&&!Xu(Te,64)&&!Te.questionToken&&fi(Te),ce&&(ut&&(D(ut,Fe,A,w,I),C(ut,Fe,U,Z)),Fe)){const Ii=Ab(l),Pn=lp(Fe);for(const Cn of Ii)if(!uii(Pn,Cn)){const Sn=Cn.declaration&&Iv(Cn.declaration)?Cn.declaration.parent.tagName:Cn.declaration;ps(pt(Sn,F.This_overload_signature_is_not_compatible_with_its_implementation_signature),Bu(Fe,F.The_implementation_signature_is_declared_here));break}}}function wW(l){s(()=>Moi(l))}function Moi(l){let m=l.localSymbol;if(!m&&(m=Du(l),!m.exportSymbol)||Fl(m,l.kind)!==l)return;let D=0,C=0,A=0;for(const ce of m.declarations){const Fe=Z(ce),Te=JEe(ce,2080);Te&32?Te&2048?A|=Fe:D|=Fe:C|=Fe}const w=D|C,I=D&C,U=A&w;if(I||U)for(const ce of m.declarations){const Fe=Z(ce),Te=qa(ce);Fe&U?pt(Te,F.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,C0(Te)):Fe&I&&pt(Te,F.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,C0(Te))}function Z(ce){let Fe=ce;switch(Fe.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return L1(Fe)||aD(Fe)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Te=Fe,Je=ec(Te)?Te.expression:Te.right;if(!Xl(Je))return 1;Fe=Je;case 271:case 274:case 273:let ut=0;const zt=hd(Du(Fe));return L(zt.declarations,fi=>{ut|=Z(fi)}),ut;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return H.failBadSyntaxKind(Fe)}}}function Oz(l,m,D,...C){const A=TW(l,m);return A&&TF(A,m,D,...C)}function TW(l,m,D){if(nt(l))return;const C=l;if(C.promisedTypeOfPromise)return C.promisedTypeOfPromise;if(xC(l,Cte(!1)))return C.promisedTypeOfPromise=M0(l)[0];if(cie(DD(l),402915324))return;const A=he(l,"then");if(nt(A))return;const w=A?mo(A,0):_t;if(w.length===0){m&&pt(m,F.A_promise_must_have_a_then_method);return}let I,U;for(const Fe of w){const Te=bC(Fe);Te&&Te!==da&&!CE(l,Te,d_)?I=Te:U=Ei(U,Fe)}if(!U){H.assertIsDefined(I),D&&(D.value=I),m&&pt(m,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,gn(l),gn(I));return}const Z=hp(ir(Kt(U,oze)),2097152);if(nt(Z))return;const ce=mo(Z,0);if(ce.length===0){m&&pt(m,F.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return C.promisedTypeOfPromise=ir(Kt(ce,oze),2)}function LW(l,m,D,C,...A){return(m?TF(l,D,C,...A):K5(l,D,C,...A))||jt}function Wmt(l){if(cie(DD(l),402915324))return!1;const m=he(l,"then");return!!m&&mo(hp(m,2097152),0).length>0}function UEe(l){var m;if(l.flags&16777216){const D=sPe(!1);return!!D&&l.aliasSymbol===D&&((m=l.aliasTypeArguments)==null?void 0:m.length)===1}return!1}function jz(l){return l.flags&1048576?cl(l,jz):UEe(l)?l.aliasTypeArguments[0]:l}function Gmt(l){if(nt(l)||UEe(l))return!1;if(Bb(l)){const m=Hh(l);if(m?m.flags&3||CD(m)||bE(m,Wmt):Ol(l,8650752))return!0}return!1}function zoi(l){const m=sPe(!0);if(m)return uT(m,[jz(l)])}function Ioi(l){if(Gmt(l)){const m=zoi(l);if(m)return m}return H.assert(UEe(l)||TW(l)===void 0,"type provided should not be a non-generic 'promise'-like."),l}function TF(l,m,D,...C){const A=K5(l,m,D,...C);return A&&Ioi(A)}function K5(l,m,D,...C){if(nt(l)||UEe(l))return l;const A=l;if(A.awaitedTypeOfType)return A.awaitedTypeOfType;if(l.flags&1048576){if(hE.lastIndexOf(l.id)>=0){m&&pt(m,F.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const U=m?ce=>K5(ce,m,D,...C):K5;hE.push(l.id);const Z=cl(l,U);return hE.pop(),A.awaitedTypeOfType=Z}if(Gmt(l))return A.awaitedTypeOfType=l;const w={value:void 0},I=TW(l,void 0,w);if(I){if(l.id===I.id||hE.lastIndexOf(I.id)>=0){m&&pt(m,F.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}hE.push(l.id);const U=K5(I,m,D,...C);return hE.pop(),U?A.awaitedTypeOfType=U:void 0}if(Wmt(l)){if(m){H.assertIsDefined(D);let U;w.value&&(U=uo(U,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,gn(l),gn(w.value))),U=uo(U,D,...C),Os.add(Z3(In(m),m,U))}return}return A.awaitedTypeOfType=l}function Roi(l,m,D){const C=Br(m);if(Ce>=2){if(Lt(C))return;const w=Cte(!0);if(w!==Ka&&!xC(C,w)){A(F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,m,D,gn(K5(C)||da));return}}else{if(joi(m),Lt(C))return;const w=fj(m);if(w===void 0){A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,gn(C));return}const I=P0(w,111551,!0),U=I?Jn(I):jt;if(Lt(U)){w.kind===80&&w.escapedText==="Promise"&&Qw(C)===Cte(!1)?pt(D,F.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,Mf(w));return}const Z=mei(!0);if(Z===Ho){A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,Mf(w));return}const ce=F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Fh(U,Z,D,ce,()=>m===D?void 0:uo(void 0,F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Te=w&&dm(w),Je=yf(l.locals,Te.escapedText,111551);if(Je){pt(Je.valueDeclaration,F.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,mu(Te),Mf(w));return}}LW(C,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function A(w,I,U,Z){if(I===U)pt(U,w,Z);else{const ce=pt(U,F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);ps(ce,Bu(I,w,Z))}}}function Ooi(l){const m=hT(l);jEe(m,l);const D=qs(m);if(D.flags&1)return;const C=cze(l);if(!(C!=null&&C.resolvedReturnType))return;let A;const w=C.resolvedReturnType;switch(l.parent.kind){case 263:case 231:A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ve){A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:A=F.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return H.failBadSyntaxKind(l.parent)}Fh(D,w,l.expression,A)}function NW(l,m,D,C,A,w=D.length,I=0){const U=q.createFunctionTypeNode(void 0,_t,q.createKeywordTypeNode(133));return b3(U,l,m,D,C,A,w,I)}function yze(l,m,D,C,A,w,I){const U=NW(l,m,D,C,A,w,I);return EF(U)}function Jmt(l){return yze(void 0,void 0,_t,l)}function $mt(l){const m=Cg("value",l);return yze(void 0,void 0,[m],da)}function joi(l){Umt(l&&fj(l),!1)}function Umt(l,m){if(!l)return;const D=dm(l),C=(l.kind===80?788968:1920)|2097152,A=nc(D,D.escapedText,C,void 0,void 0,!0);if(A&&A.flags&2097152){if(Ut&&s6(A)&&!IW(hd(A))&&!E4(A))w5(A);else if(m&&hg(ae)&&f1(ae)>=5&&!s6(A)&&!qe(A.declarations,p2)){const w=pt(l,F.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),I=Le(A.declarations||_t,aC);I&&ps(w,Bu(I,F._0_was_imported_here,mu(D)))}}}function pT(l){const m=kze(l);m&&om(m)&&Umt(m,!0)}function kze(l){if(l)switch(l.kind){case 193:case 192:return qmt(l.types);case 194:return qmt([l.trueType,l.falseType]);case 196:case 202:return kze(l.type);case 183:return l.typeName}}function qmt(l){let m;for(let D of l){for(;D.kind===196||D.kind===202;)D=D.type;if(D.kind===146||!fe&&(D.kind===201&&D.literal.kind===106||D.kind===157))continue;const C=kze(D);if(!C)return;if(m){if(!at(m)||!at(C)||m.escapedText!==C.escapedText)return}else m=C}return m}function qEe(l){const m=h1(l);return J_(l)?k0e(m):m}function mie(l){if(!kk(l)||!a4(l)||!l.modifiers||!hq(ve,l,l.parent,l.parent.parent))return;const m=Le(l.modifiers,p1);if(m){if(ve?(ud(m,8),l.kind===169&&ud(m,32)):Ce<99&&(ud(m,8),Kc(l)?l.name?D4t(l)&&ud(m,8388608):ud(m,8388608):Qd(l)||(Xr(l.name)&&(cc(l)||Bx(l)||Xh(l))&&ud(m,8388608),Ls(l.name)&&ud(m,16777216))),ae.emitDecoratorMetadata)switch(ud(m,16),l.kind){case 263:const D=Q_(l);if(D)for(const I of D.parameters)pT(qEe(I));break;case 177:case 178:const C=l.kind===177?178:177,A=Fl(Du(l),C);pT(i0(l)||A&&i0(A));break;case 174:for(const I of l.parameters)pT(qEe(I));pT(J4(l));break;case 172:pT(h1(l));break;case 169:pT(qEe(l));const w=l.parent;for(const I of w.parameters)pT(qEe(I));pT(J4(w));break}for(const D of l.modifiers)p1(D)&&Ooi(D)}}function Voi(l){s(m);function m(){Ymt(l),Uze(l),Vz(l,l.name)}}function Hoi(l){l.typeExpression||pt(l.name,F.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),l.name&&Kz(l.name,F.Type_alias_name_cannot_be_0),ss(l.typeExpression),xie(Ax(l))}function Koi(l){ss(l.constraint);for(const m of l.typeParameters)ss(m)}function Woi(l){ss(l.typeExpression)}function Goi(l){ss(l.typeExpression);const m=rk(l);if(m){const D=jse(m,mY);if(S(D)>1)for(let C=1;C0),D.length>1&&pt(D[1],F.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const C=Zmt(l.class.expression),A=F2(m);if(A){const w=Zmt(A.expression);w&&C.escapedText!==w.escapedText&&pt(C,F.JSDoc_0_1_does_not_match_the_extends_2_clause,mu(l.tagName),mu(C),mu(w))}}function Xoi(l){const m=c7(l);m&&mh(m)&&pt(l,F.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Zmt(l){switch(l.kind){case 80:return l;case 211:return l.name;default:return}}function Ymt(l){var m;mie(l),BW(l);const D=yd(l);if(l.name&&l.name.kind===167&&k3(l.name),eT(l)){const w=Du(l),I=l.localSymbol||w,U=(m=I.declarations)==null?void 0:m.find(Z=>Z.kind===l.kind&&!(Z.flags&524288));l===U&&$Ee(I),w.parent&&$Ee(w)}const C=l.kind===173?void 0:l.body;if(ss(C),dze(l,iT(l)),s(A),eu(l)){const w=_v(l);w&&w.typeExpression&&!BMe(Br(w.typeExpression),l)&&pt(w.typeExpression.type,F.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function A(){J4(l)||(Yl(C)&&!fie(l)&&wC(l,me),D&1&&j4(C)&&qs(lp(l)))}}function w6(l){s(m);function m(){const D=In(l);let C=C5.get(D.path);C||(C=[],C5.set(D.path,C)),C.push(l)}}function Qmt(l,m){for(const D of l)switch(D.kind){case 263:case 231:esi(D,m),Fze(D,m);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:t4t(D,m);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:D.body&&t4t(D,m),Fze(D,m);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Fze(D,m);break;case 195:tsi(D,m);break;default:H.assertNever(D,"Node should not have been registered for unused identifiers check")}}function Xmt(l,m,D){const C=qa(l)||l,A=mB(l)?F._0_is_declared_but_never_used:F._0_is_declared_but_its_value_is_never_read;D(l,0,Bu(C,A,m))}function PW(l){return at(l)&&mu(l).charCodeAt(0)===95}function esi(l,m){for(const D of l.members)switch(D.kind){case 174:case 172:case 177:case 178:if(D.kind===178&&D.symbol.flags&32768)break;const C=Du(D);!C.isReferenced&&(If(D,2)||fh(D)&&Xr(D.name))&&!(D.flags&33554432)&&m(D,0,Bu(D.name,F._0_is_declared_but_its_value_is_never_read,Sr(C)));break;case 176:for(const A of D.parameters)!A.symbol.isReferenced&&Xu(A,2)&&m(A,0,Bu(A.name,F.Property_0_is_declared_but_its_value_is_never_read,sc(A.symbol)));break;case 181:case 240:case 175:break;default:H.fail("Unexpected class member")}}function tsi(l,m){const{typeParameter:D}=l;Aze(D)&&m(l,1,Bu(l,F._0_is_declared_but_its_value_is_never_read,mu(D.name)))}function Fze(l,m){const D=Du(l).declarations;if(!D||Cr(D)!==l)return;const C=Ax(l),A=new Set;for(const w of C){if(!Aze(w))continue;const I=mu(w.name),{parent:U}=w;if(U.kind!==195&&U.typeParameters.every(Aze)){if(Ll(A,U)){const Z=In(U),ce=gg(U)?wle(U):Tle(Z,U.typeParameters),Te=U.typeParameters.length===1?[F._0_is_declared_but_its_value_is_never_read,I]:[F.All_type_parameters_are_unused];m(w,1,zd(Z,ce.pos,ce.end-ce.pos,...Te))}}else m(w,1,Bu(w,F._0_is_declared_but_its_value_is_never_read,I))}}function Aze(l){return!(Vs(l.symbol).isReferenced&262144)&&!PW(l.name)}function pie(l,m,D,C){const A=String(C(m)),w=l.get(A);w?w[1].push(D):l.set(A,[m,[D]])}function e4t(l){return ar(QE(l),eo)}function isi(l){return Rs(l)?Mp(l.parent)?!!(l.propertyName&&PW(l.name)):PW(l.name):L1(l)||(ua(l)&&N8(l.parent.parent)||i4t(l))&&PW(l.name)}function t4t(l,m){const D=new Map,C=new Map,A=new Map;l.locals.forEach(w=>{if(!(w.flags&262144?!(w.flags&3&&!(w.isReferenced&3)):w.isReferenced||w.exportSymbol)&&w.declarations){for(const I of w.declarations)if(!isi(I))if(i4t(I))pie(D,usi(I),I,Js);else if(Rs(I)&&Mp(I.parent)){const U=Cr(I.parent.elements);(I===U||!Cr(I.parent.elements).dotDotDotToken)&&pie(C,I.parent,I,Js)}else if(ua(I)){const U=Hb(I)&7,Z=qa(I);(U!==4&&U!==6||!Z||!PW(Z))&&pie(A,I.parent,I,Js)}else{const U=w.valueDeclaration&&e4t(w.valueDeclaration),Z=w.valueDeclaration&&qa(w.valueDeclaration);U&&Z?!Pf(U,U.parent)&&!B2(U)&&!PW(Z)&&(Rs(I)&&gk(I.parent)?pie(C,I.parent,I,Js):m(U,1,Bu(Z,F._0_is_declared_but_its_value_is_never_read,sc(w)))):Xmt(I,sc(w),m)}}}),D.forEach(([w,I])=>{const U=w.parent;if((w.name?1:0)+(w.namedBindings?w.namedBindings.kind===274?1:w.namedBindings.elements.length:0)===I.length)m(U,0,I.length===1?Bu(U,F._0_is_declared_but_its_value_is_never_read,mu(Mn(I).name)):Bu(U,F.All_imports_in_import_declaration_are_unused));else for(const ce of I)Xmt(ce,mu(ce.name),m)}),C.forEach(([w,I])=>{const U=e4t(w.parent)?1:0;if(w.elements.length===I.length)I.length===1&&w.parent.kind===260&&w.parent.parent.kind===261?pie(A,w.parent.parent,w.parent,Js):m(w,U,I.length===1?Bu(w,F._0_is_declared_but_its_value_is_never_read,gie(Mn(I).name)):Bu(w,F.All_destructured_elements_are_unused));else for(const Z of I)m(Z,U,Bu(Z,F._0_is_declared_but_its_value_is_never_read,gie(Z.name)))}),A.forEach(([w,I])=>{if(w.declarations.length===I.length)m(w,0,I.length===1?Bu(Mn(I).name,F._0_is_declared_but_its_value_is_never_read,gie(Mn(I).name)):Bu(w.parent.kind===243?w.parent:w,F.All_variables_are_unused));else for(const U of I)m(U,0,Bu(U,F._0_is_declared_but_its_value_is_never_read,gie(U.name)))})}function nsi(){var l;for(const m of lb)if(!((l=Du(m))!=null&&l.isReferenced)){const D=F8(m);H.assert(A2(D),"Only parameter declaration should be checked here");const C=Bu(m.name,F._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,C0(m.name),C0(m.propertyName));D.type||ps(C,zd(In(D),D.end,1,F.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,C0(m.propertyName))),Os.add(C)}}function gie(l){switch(l.kind){case 80:return mu(l);case 207:case 206:return gie(Lo(Mn(l.elements),Rs).name);default:return H.assertNever(l)}}function i4t(l){return l.kind===273||l.kind===276||l.kind===274}function usi(l){return l.kind===273?l:l.kind===274?l.parent:l.parent.parent}function ZEe(l){if(l.kind===241&&AD(l),qse(l)){const m=wi;L(l.statements,ss),wi=m}else L(l.statements,ss);l.locals&&w6(l)}function rsi(l){Ce>=2||!n0e(l)||l.flags&33554432||Yl(l.body)||L(l.parameters,m=>{m.name&&!Fo(m.name)&&m.name.escapedText===It.escapedName&&F5("noEmit",m,F.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function MW(l,m,D){if((m==null?void 0:m.escapedText)!==D||l.kind===172||l.kind===171||l.kind===174||l.kind===173||l.kind===177||l.kind===178||l.kind===303||l.flags&33554432||(i_(l)||g1(l)||Cf(l))&&p2(l))return!1;const C=QE(l);return!(eo(C)&&Yl(C.parent.body))}function asi(l){Ln(l,m=>ET(m)&4?(l.kind!==80?pt(qa(l),F.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):pt(l,F.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function osi(l){Ln(l,m=>ET(m)&8?(l.kind!==80?pt(qa(l),F.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):pt(l,F.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function ssi(l,m){if(ne>=5&&!(ne>=100&&In(l).impliedNodeFormat===1)||!m||!MW(l,m,"require")&&!MW(l,m,"exports")||Ec(l)&&aD(l)!==1)return;const D=lF(l);D.kind===312&&lm(D)&&F5("noEmit",m,F.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,C0(m),C0(m))}function lsi(l,m){if(!m||Ce>=4||!MW(l,m,"Promise")||Ec(l)&&aD(l)!==1)return;const D=lF(l);D.kind===312&&lm(D)&&D.flags&4096&&F5("noEmit",m,F.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,C0(m),C0(m))}function csi(l,m){Ce<=8&&(MW(l,m,"WeakMap")||MW(l,m,"WeakSet"))&&eC.push(l)}function dsi(l){const m=ZE(l);ET(m)&1048576&&(H.assert(fh(l)&&at(l.name)&&typeof l.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),F5("noEmit",l,F.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,l.name.escapedText))}function hsi(l,m){m&&Ce>=2&&Ce<=8&&MW(l,m,"Reflect")&&b5.push(l)}function fsi(l){let m=!1;if(Qd(l)){for(const D of l.members)if(ET(D)&2097152){m=!0;break}}else if(F0(l))ET(l)&2097152&&(m=!0);else{const D=ZE(l);D&&ET(D)&2097152&&(m=!0)}m&&(H.assert(fh(l)&&at(l.name),"The target of a Reflect collision check should be an identifier"),F5("noEmit",l,F.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,C0(l.name),"Reflect"))}function Vz(l,m){m&&(ssi(l,m),lsi(l,m),csi(l,m),hsi(l,m),gr(l)?(Kz(m,F.Class_name_cannot_be_0),l.flags&33554432||Vsi(m)):Mv(l)&&Kz(m,F.Enum_name_cannot_be_0))}function msi(l){if(Hb(l)&7||A2(l))return;const m=Du(l);if(m.flags&1){if(!at(l.name))return H.fail();const D=nc(l,l.name.escapedText,3,void 0,void 0,!1);if(D&&D!==m&&D.flags&2&&IMe(D)&7){const C=yv(D.valueDeclaration,261),A=C.parent.kind===243&&C.parent.parent?C.parent.parent:void 0;if(!(A&&(A.kind===241&&xo(A.parent)||A.kind===268||A.kind===267||A.kind===312))){const I=Sr(D);pt(l,F.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,I,I)}}}}function zW(l){return l===ni?me:l===Lc?Ul:l}function Eie(l){var m;if(mie(l),Rs(l)||ss(l.type),!l.name)return;if(l.name.kind===167&&(k3(l.name),Zy(l)&&l.initializer&&Ic(l.initializer)),Rs(l)){if(l.propertyName&&at(l.name)&&A2(l)&&Yl(Lm(l).body)){lb.push(l);return}Mp(l.parent)&&l.dotDotDotToken&&Ce<5&&ud(l,4),l.propertyName&&l.propertyName.kind===167&&k3(l.propertyName);const A=l.parent.parent,w=l.dotDotDotToken?32:0,I=vi(A,w),U=l.propertyName||l.name;if(I&&!Fo(U)){const Z=O5(U);if(q4(Z)){const ce=Z4(Z),Fe=$o(I,ce);Fe&&(Xte(Fe,void 0,!1),OMe(l,!!A.initializer&&A.initializer.kind===108,!1,I,Fe))}}}if(Fo(l.name)&&(l.name.kind===207&&Ce<2&&ae.downlevelIteration&&ud(l,512),L(l.name.elements,ss)),l.initializer&&A2(l)&&Yl(Lm(l).body)){pt(l,F.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(Fo(l.name)){if(cMe(l))return;const A=Zy(l)&&l.initializer&&l.parent.parent.kind!==249,w=!qe(l.name.elements,q$(kd));if(A||w){const I=N(l);if(A){const U=Ic(l.initializer);fe&&w?kft(U,l):F6(U,N(l),l,l.initializer)}w&&(gk(l.name)?W5(65,I,te,l):fe&&kft(I,l))}return}const D=Du(l);if(D.flags&2097152&&(b2(l)||tye(l))){t_e(l);return}const C=zW(Jn(D));if(l===D.valueDeclaration){const A=Zy(l)&&Ej(l);if(A&&!(eu(l)&&Cs(A)&&(A.properties.length===0||Rx(l.name))&&!!((m=D.exports)!=null&&m.size))&&l.parent.parent.kind!==249){const I=Ic(A);F6(I,C,l,A,void 0);const U=Hb(l)&7;if(U===6){const Z=bei(!0),ce=Qdt(!0);if(Z!==Ho&&ce!==Ho){const Fe=ir([Z,ce,it,te]);Fh(I,Fe,A,F.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(U===4){const Z=Qdt(!0);if(Z!==Ho){const ce=ir([Z,it,te]);Fh(I,ce,A,F.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}D.declarations&&D.declarations.length>1&&qe(D.declarations,w=>w!==l&&K8(w)&&!u4t(w,l))&&pt(l.name,F.All_declarations_of_0_must_have_identical_modifiers,C0(l.name))}else{const A=zW(N(l));!Lt(C)&&!Lt(A)&&!vD(C,A)&&!(D.flags&67108864)&&n4t(D.valueDeclaration,C,l,A),Zy(l)&&l.initializer&&F6(Ic(l.initializer),A,l,l.initializer,void 0),D.valueDeclaration&&!u4t(l,D.valueDeclaration)&&pt(l.name,F.All_declarations_of_0_must_have_identical_modifiers,C0(l.name))}l.kind!==172&&l.kind!==171&&(wW(l),(l.kind===260||l.kind===208)&&msi(l),Vz(l,l.name))}function n4t(l,m,D,C){const A=qa(D),w=D.kind===172||D.kind===171?F.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:F.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,I=C0(A),U=pt(A,w,I,gn(m),gn(C));l&&ps(U,Bu(l,F._0_was_also_declared_here,I))}function u4t(l,m){if(l.kind===169&&m.kind===260||l.kind===260&&m.kind===169)return!0;if(l7(l)!==l7(m))return!1;const D=1358;return p7(l,D)===p7(m,D)}function psi(l){var m,D;(m=$n)==null||m.push($n.Phase.Check,"checkVariableDeclaration",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath}),qli(l),Eie(l),(D=$n)==null||D.pop()}function gsi(l){return Jli(l),Eie(l)}function YEe(l){const m=YD(l)&7;(m===4||m===6)&&ud(l,33554432),L(l.declarations,ss)}function Esi(l){!A3(l)&&!Yze(l.declarationList)&&Zli(l),YEe(l.declarationList)}function _si(l){AD(l),ka(l.expression)}function Dsi(l){AD(l);const m=Hz(l.expression);Sze(l.expression,m,l.thenStatement),ss(l.thenStatement),l.thenStatement.kind===242&&pt(l.thenStatement,F.The_body_of_an_if_statement_cannot_be_the_empty_statement),ss(l.elseStatement)}function Sze(l,m,D){if(!fe)return;C(l,D);function C(w,I){for(w=s0(w),A(w,I);tu(w)&&(w.operatorToken.kind===57||w.operatorToken.kind===61);)w=s0(w.left),A(w,I)}function A(w,I){const U=Kj(w)?s0(w.right):w;if(Z_(U))return;if(Kj(U)){C(U,I);return}const Z=U===w?m:Hz(U),ce=Iu(U)&&Smt(U.expression);if(!dp(Z,4194304)||ce)return;const Fe=mo(Z,0),Te=!!Oz(Z);if(Fe.length===0&&!Te)return;const Je=at(U)?U:Iu(U)?U.name:void 0,ut=Je&&Up(Je);if(!ut&&!Te)return;ut&&tu(w.parent)&&vsi(w.parent,ut)||ut&&I&&xsi(w,I,Je,ut)||(Te?Ch(U,!0,F.This_condition_will_always_return_true_since_this_0_is_always_defined,N5(Z)):pt(U,F.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function xsi(l,m,D,C){return!!ro(m,function A(w){if(at(w)){const I=Up(w);if(I&&I===C){if(at(l)||at(D)&&tu(D.parent))return!0;let U=D.parent,Z=w.parent;for(;U&&Z;){if(at(U)&&at(Z)||U.kind===110&&Z.kind===110)return Up(U)===Up(Z);if(Iu(U)&&Iu(Z)){if(Up(U.name)!==Up(Z.name))return!1;Z=Z.expression,U=U.expression}else if(No(U)&&No(Z))Z=Z.expression,U=U.expression;else return!1}}}return ro(w,A)})}function vsi(l,m){for(;tu(l)&&l.operatorToken.kind===56;){if(ro(l.right,function C(A){if(at(A)){const w=Up(A);if(w&&w===m)return!0}return ro(A,C)}))return!0;l=l.parent}return!1}function Csi(l){AD(l),ss(l.statement),Hz(l.expression)}function bsi(l){AD(l),Hz(l.expression),ss(l.statement)}function Bze(l,m){return l.flags&16384&&pt(m,F.An_expression_of_type_void_cannot_be_tested_for_truthiness),l}function Hz(l,m){return Bze(ka(l,m),l)}function ysi(l){AD(l)||l.initializer&&l.initializer.kind===261&&Yze(l.initializer),l.initializer&&(l.initializer.kind===261?YEe(l.initializer):ka(l.initializer)),l.condition&&Hz(l.condition),l.incrementor&&ka(l.incrementor),ss(l.statement),l.locals&&w6(l)}function ksi(l){tpt(l);const m=oq(l);if(l.awaitModifier?m&&Ml(m)?qi(l.awaitModifier,F.for_await_loops_cannot_be_used_inside_a_class_static_block):(yd(m)&6)===2&&Ce<99&&ud(l,16384):ae.downlevelIteration&&Ce<2&&ud(l,256),l.initializer.kind===261)YEe(l.initializer);else{const D=l.initializer,C=_ie(l);if(D.kind===209||D.kind===210)wF(D,C||jt);else{const A=ka(D);AW(D,F.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),C&&F6(C,A,D,l.expression)}}ss(l.statement),l.locals&&w6(l)}function Fsi(l){tpt(l);const m=jMe(ka(l.expression));if(l.initializer.kind===261){const D=l.initializer.declarations[0];D&&Fo(D.name)&&pt(D.name,F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),YEe(l.initializer)}else{const D=l.initializer,C=ka(D);D.kind===209||D.kind===210?pt(D,F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):hs(lti(m),C)?AW(D,F.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):pt(D,F.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(m===Wu||!n1(m,126091264))&&pt(l.expression,F.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,gn(m)),ss(l.statement),l.locals&&w6(l)}function _ie(l){const m=l.awaitModifier?15:13;return W5(m,cT(l.expression),te,l.expression)}function W5(l,m,D,C){return nt(m)?m:wze(l,m,D,C,!0)||me}function wze(l,m,D,C,A){const w=(l&2)!==0;if(m===Wu){Mze(C,m,w);return}const I=Ce>=2,U=!I&&ae.downlevelIteration,Z=ae.noUncheckedIndexedAccess&&!!(l&128);if(I||U||w){const zt=XEe(m,l,I?C:void 0);if(A&&zt){const fi=l&8?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:l&32?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:l&64?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:l&16?F.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;fi&&Fh(D,zt.nextType,C,fi)}if(zt||I)return Z?DW(zt&&zt.yieldType):zt&&zt.yieldType}let ce=m,Fe=!1,Te=!1;if(l&4){if(ce.flags&1048576){const zt=m.types,fi=ei(zt,Ki=>!(Ki.flags&402653316));fi!==zt&&(ce=ir(fi,2))}else ce.flags&402653316&&(ce=Wu);if(Te=ce!==m,Te&&(Ce<1&&C&&(pt(C,F.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Fe=!0),ce.flags&131072))return Z?DW(ct):ct}if(!V5(ce)){if(C&&!Fe){const zt=!!(l&4)&&!Te,[fi,Ki]=ut(zt,U);Ch(C,Ki&&!!Oz(ce),fi,gn(ce))}return Te?Z?DW(ct):ct:void 0}const Je=CC(ce,Qt);if(Te&&Je)return Je.flags&402653316&&!ae.noUncheckedIndexedAccess?ct:ir(Z?[Je,ct,te]:[Je,ct],2);return l&128?DW(Je):Je;function ut(zt,fi){var Ki;return fi?zt?[F.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[F.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Tze(l,0,m,void 0)?[F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Asi((Ki=m.symbol)==null?void 0:Ki.escapedName)?[F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:zt?[F.Type_0_is_not_an_array_type_or_a_string_type,!0]:[F.Type_0_is_not_an_array_type,!0]}}function Asi(l){switch(l){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Tze(l,m,D,C){if(nt(D))return;const A=XEe(D,l,C);return A&&A[ket(m)]}function G5(l=Wu,m=Wu,D=on){if(l.flags&67359327&&m.flags&180227&&D.flags&180227){const C=cp([l,m,D]);let A=Pr.get(C);return A||(A={yieldType:l,returnType:m,nextType:D},Pr.set(C,A)),A}return{yieldType:l,returnType:m,nextType:D}}function r4t(l){let m,D,C;for(const A of l)if(!(A===void 0||A===Vu)){if(A===Fs)return Fs;m=Ei(m,A.yieldType),D=Ei(D,A.returnType),C=Ei(C,A.nextType)}return m||D||C?G5(m&&ir(m),D&&ir(D),C&&Es(C)):Vu}function QEe(l,m){return l[m]}function F3(l,m,D){return l[m]=D}function XEe(l,m,D){var C,A;if(nt(l))return Fs;if(!(l.flags&1048576)){const ce=D?{errors:void 0}:void 0,Fe=a4t(l,m,D,ce);if(Fe===Vu){if(D){const Te=Mze(D,l,!!(m&2));ce!=null&&ce.errors&&ps(Te,...ce.errors)}return}else if((C=ce==null?void 0:ce.errors)!=null&&C.length)for(const Te of ce.errors)Os.add(Te);return Fe}const w=m&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",I=QEe(l,w);if(I)return I===Vu?void 0:I;let U;for(const ce of l.types){const Fe=D?{errors:void 0}:void 0,Te=a4t(ce,m,D,Fe);if(Te===Vu){if(D){const Je=Mze(D,l,!!(m&2));Fe!=null&&Fe.errors&&ps(Je,...Fe.errors)}F3(l,w,Vu);return}else if((A=Fe==null?void 0:Fe.errors)!=null&&A.length)for(const Je of Fe.errors)Os.add(Je);U=Ei(U,Te)}const Z=U?r4t(U):Vu;return F3(l,w,Z),Z===Vu?void 0:Z}function Lze(l,m){if(l===Vu)return Vu;if(l===Fs)return Fs;const{yieldType:D,returnType:C,nextType:A}=l;return m&&sPe(!0),G5(TF(D,m)||me,TF(C,m)||me,A)}function a4t(l,m,D,C){if(nt(l))return Fs;let A=!1;if(m&2){const w=Nze(l,A0)||s4t(l,A0);if(w)if(w===Vu&&D)A=!0;else return m&8?Lze(w,D):w}if(m&1){let w=Nze(l,nd)||s4t(l,nd);if(w)if(w===Vu&&D)A=!0;else if(m&2){if(w!==Vu)return w=Lze(w,D),A?w:F3(l,"iterationTypesOfAsyncIterable",w)}else return w}if(m&2){const w=Pze(l,A0,D,C,A);if(w!==Vu)return w}if(m&1){let w=Pze(l,nd,D,C,A);if(w!==Vu)return m&2?(w=Lze(w,D),A?w:F3(l,"iterationTypesOfAsyncIterable",w)):w}return Vu}function Nze(l,m){return QEe(l,m.iterableCacheKey)}function o4t(l,m){const D=Nze(l,m)||Pze(l,m,void 0,void 0,!1);return D===Vu?id:D}function s4t(l,m){let D;if(xC(l,D=m.getGlobalIterableType(!1))||xC(l,D=m.getGlobalIterableIteratorType(!1))){const[C]=M0(l),{returnType:A,nextType:w}=o4t(D,m);return F3(l,m.iterableCacheKey,G5(m.resolveIterationType(C,void 0)||C,m.resolveIterationType(A,void 0)||A,w))}if(xC(l,m.getGlobalGeneratorType(!1))){const[C,A,w]=M0(l);return F3(l,m.iterableCacheKey,G5(m.resolveIterationType(C,void 0)||C,m.resolveIterationType(A,void 0)||A,w))}}function l4t(l){const m=qdt(!1),D=m&&he(Jn(m),kl(l));return D&&q4(D)?Z4(D):`__@${l}`}function Pze(l,m,D,C,A){const w=$o(l,l4t(m.iteratorSymbolName)),I=w&&!(w.flags&16777216)?Jn(w):void 0;if(nt(I))return A?Fs:F3(l,m.iterableCacheKey,Fs);const U=I?mo(I,0):void 0;if(!qe(U))return A?Vu:F3(l,m.iterableCacheKey,Vu);const Z=Es(Kt(U,qs)),ce=c4t(Z,m,D,C,A)??Vu;return A?ce:F3(l,m.iterableCacheKey,ce)}function Mze(l,m,D){const C=D?F.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:F.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,A=!!Oz(m)||!D&&FV(l.parent)&&l.parent.expression===l&&Pge(!1)!==Ka&&hs(m,Pge(!1));return Ch(l,A,C,gn(m))}function Ssi(l,m,D,C){return c4t(l,m,D,C,!1)}function c4t(l,m,D,C,A){if(nt(l))return Fs;let w=d4t(l,m)||Bsi(l,m);return w===Vu&&D&&(w=void 0,A=!0),w??(w=f4t(l,m,D,C,A)),w===Vu?void 0:w}function d4t(l,m){return QEe(l,m.iteratorCacheKey)}function Bsi(l,m){const D=m.getGlobalIterableIteratorType(!1);if(xC(l,D)){const[C]=M0(l),A=d4t(D,m)||f4t(D,m,void 0,void 0,!1),{returnType:w,nextType:I}=A===Vu?id:A;return F3(l,m.iteratorCacheKey,G5(C,w,I))}if(xC(l,m.getGlobalIteratorType(!1))||xC(l,m.getGlobalGeneratorType(!1))){const[C,A,w]=M0(l);return F3(l,m.iteratorCacheKey,G5(C,A,w))}}function h4t(l,m){const D=he(l,"done")||$i;return hs(m===0?$i:hu,D)}function wsi(l){return h4t(l,0)}function Tsi(l){return h4t(l,1)}function Lsi(l){if(nt(l))return Fs;const m=QEe(l,"iterationTypesOfIteratorResult");if(m)return m;if(xC(l,vei(!1))){const I=M0(l)[0];return F3(l,"iterationTypesOfIteratorResult",G5(I,void 0,void 0))}if(xC(l,Cei(!1))){const I=M0(l)[0];return F3(l,"iterationTypesOfIteratorResult",G5(void 0,I,void 0))}const D=zc(l,wsi),C=D!==Wu?he(D,"value"):void 0,A=zc(l,Tsi),w=A!==Wu?he(A,"value"):void 0;return!C&&!w?F3(l,"iterationTypesOfIteratorResult",Vu):F3(l,"iterationTypesOfIteratorResult",G5(C,w||da,void 0))}function zze(l,m,D,C,A){var w,I,U,Z;const ce=$o(l,D);if(!ce&&D!=="next")return;const Fe=ce&&!(D==="next"&&ce.flags&16777216)?D==="next"?Jn(ce):hp(Jn(ce),2097152):void 0;if(nt(Fe))return D==="next"?Fs:tc;const Te=Fe?mo(Fe,0):_t;if(Te.length===0){if(C){const Ii=D==="next"?m.mustHaveANextMethodDiagnostic:m.mustBeAMethodDiagnostic;A?(A.errors??(A.errors=[]),A.errors.push(Bu(C,Ii,D))):pt(C,Ii,D)}return D==="next"?Vu:void 0}if(Fe!=null&&Fe.symbol&&Te.length===1){const Ii=m.getGlobalGeneratorType(!1),Pn=m.getGlobalIteratorType(!1),Cn=((I=(w=Ii.symbol)==null?void 0:w.members)==null?void 0:I.get(D))===Fe.symbol,Sn=!Cn&&((Z=(U=Pn.symbol)==null?void 0:U.members)==null?void 0:Z.get(D))===Fe.symbol;if(Cn||Sn){const _n=Cn?Ii:Pn,{mapper:fu}=Fe;return G5(y6(_n.typeParameters[0],fu),y6(_n.typeParameters[1],fu),D==="next"?y6(_n.typeParameters[2],fu):void 0)}}let Je,ut;for(const Ii of Te)D!=="throw"&&qe(Ii.parameters)&&(Je=Ei(Je,wg(Ii,0))),ut=Ei(ut,qs(Ii));let zt,fi;if(D!=="throw"){const Ii=Je?ir(Je):on;if(D==="next")fi=Ii;else if(D==="return"){const Pn=m.resolveIterationType(Ii,C)||me;zt=Ei(zt,Pn)}}let Ki;const cn=ut?Es(ut):Wu,uu=m.resolveIterationType(cn,C)||me,En=Lsi(uu);return En===Vu?(C&&(A?(A.errors??(A.errors=[]),A.errors.push(Bu(C,m.mustHaveAValueDiagnostic,D))):pt(C,m.mustHaveAValueDiagnostic,D)),Ki=me,zt=Ei(zt,me)):(Ki=En.yieldType,zt=Ei(zt,En.returnType)),G5(Ki,ir(zt),fi)}function f4t(l,m,D,C,A){const w=r4t([zze(l,m,"next",D,C),zze(l,m,"return",D,C),zze(l,m,"throw",D,C)]);return A?w:F3(l,m.iteratorCacheKey,w)}function Ob(l,m,D){if(nt(m))return;const C=m4t(m,D);return C&&C[ket(l)]}function m4t(l,m){if(nt(l))return Fs;const D=m?2:1,C=m?A0:nd;return XEe(l,D,void 0)||Ssi(l,C,void 0,void 0)}function Nsi(l){AD(l)||Gli(l)}function Die(l,m){const D=!!(m&1),C=!!(m&2);if(D){const A=Ob(1,l,C);return A?C?K5(jz(A)):A:jt}return C?K5(l)||jt:l}function p4t(l,m){const D=Die(m,yd(l));return!!(D&&(Ol(D,16384)||D.flags&32769))}function Psi(l){if(AD(l))return;const m=oq(l);if(m&&Ml(m)){u1(l,F.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!m){u1(l,F.A_return_statement_can_only_be_used_within_a_function_body);return}const D=lp(m),C=qs(D),A=yd(m);if(fe||l.expression||C.flags&131072){const w=l.expression?Ic(l.expression):te;if(m.kind===178)l.expression&&pt(l,F.Setters_cannot_return_a_value);else if(m.kind===176)l.expression&&!F6(w,C,l,l.expression)&&pt(l,F.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(iT(m)){const I=Die(C,A)??C,U=A&2?LW(w,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):w;I&&F6(U,I,l,l.expression)}}else m.kind!==176&&ae.noImplicitReturns&&!p4t(m,C)&&pt(l,F.Not_all_code_paths_return_a_value)}function Msi(l){AD(l)||l.flags&65536&&u1(l,F.with_statements_are_not_allowed_in_an_async_function_block),ka(l.expression);const m=In(l);if(!jb(m)){const D=YE(m,l.pos).start,C=l.statement.pos;Vb(m,D,C-D,F.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function zsi(l){AD(l);let m,D=!1;const C=ka(l.expression);L(l.caseBlock.clauses,A=>{A.kind===297&&!D&&(m===void 0?m=A:(qi(A,F.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),D=!0)),A.kind===296&&s(w(A)),L(A.statements,ss),ae.noFallthroughCasesInSwitch&&A.fallthroughFlowNode&&Hte(A.fallthroughFlowNode)&&pt(A,F.Fallthrough_case_in_switch);function w(I){return()=>{const U=ka(I.expression);pze(C,U)||J1t(U,C,I.expression,void 0)}}}),l.caseBlock.locals&&w6(l.caseBlock)}function Isi(l){AD(l)||Ln(l.parent,m=>xo(m)?"quit":m.kind===256&&m.label.escapedText===l.label.escapedText?(qi(l.label,F.Duplicate_label_0,Vc(l.label)),!0):!1),ss(l.statement)}function Rsi(l){AD(l)||at(l.expression)&&!l.expression.escapedText&&aci(l,F.Line_break_not_permitted_here),l.expression&&ka(l.expression)}function Osi(l){AD(l),ZEe(l.tryBlock);const m=l.catchClause;if(m){if(m.variableDeclaration){const D=m.variableDeclaration;Eie(D);const C=h1(D);if(C){const A=Br(C);A&&!(A.flags&3)&&u1(C,F.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(D.initializer)u1(D.initializer,F.Catch_clause_variable_cannot_have_an_initializer);else{const A=m.block.locals;A&&$_(m.locals,w=>{const I=A.get(w);I!=null&&I.valueDeclaration&&I.flags&2&&qi(I.valueDeclaration,F.Cannot_redeclare_identifier_0_in_catch_clause,Yr(w))})}}ZEe(m.block)}l.finallyBlock&&ZEe(l.finallyBlock)}function e_e(l,m,D){const C=yh(l);if(C.length===0)return;for(const w of _6(l))D&&w.flags&4194304||g4t(l,w,bz(w,8576,!0),g6(w));const A=m.valueDeclaration;if(A&&gr(A)){for(const w of A.members)if(!To(w)&&!eT(w)){const I=Du(w);g4t(l,I,C1(w.name.expression),g6(I))}}if(C.length>1)for(const w of C)jsi(l,w)}function g4t(l,m,D,C){const A=m.valueDeclaration,w=qa(A);if(w&&Xr(w))return;const I=qNe(l,D),U=$u(l)&2?Fl(l.symbol,264):void 0,Z=A&&A.kind===226||w&&w.kind===167?A:void 0,ce=lf(m)===l.symbol?A:void 0;for(const Fe of I){const Te=Fe.declaration&&lf(Du(Fe.declaration))===l.symbol?Fe.declaration:void 0,Je=ce||Te||(U&&!qe(qc(l),ut=>!!vC(ut,m.escapedName)&&!!CC(ut,Fe.keyType))?U:void 0);if(Je&&!hs(C,Fe.type)){const ut=h3(Je,F.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Sr(m),gn(C),gn(Fe.keyType),gn(Fe.type));Z&&Je!==Z&&ps(ut,Bu(Z,F._0_is_declared_here,Sr(m))),Os.add(ut)}}}function jsi(l,m){const D=m.declaration,C=qNe(l,m.keyType),A=$u(l)&2?Fl(l.symbol,264):void 0,w=D&&lf(Du(D))===l.symbol?D:void 0;for(const I of C){if(I===m)continue;const U=I.declaration&&lf(Du(I.declaration))===l.symbol?I.declaration:void 0,Z=w||U||(A&&!qe(qc(l),ce=>!!y3(ce,m.keyType)&&!!CC(ce,I.keyType))?A:void 0);Z&&!hs(m.type,I.type)&&pt(Z,F._0_index_type_1_is_not_assignable_to_2_index_type_3,gn(m.keyType),gn(m.type),gn(I.keyType),gn(I.type))}}function Kz(l,m){switch(l.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":pt(l,m,l.escapedText)}}function Vsi(l){Ce>=1&&l.escapedText==="Object"&&(ne<5||In(l).impliedNodeFormat===1)&&pt(l,F.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,kN[ne])}function Hsi(l){const m=ei(xv(l),pg);if(!S(m))return;const D=eu(l),C=new Set,A=new Set;if(L(l.parameters,({name:I},U)=>{at(I)&&C.add(I.escapedText),Fo(I)&&A.add(U)}),YNe(l)){const I=m.length-1,U=m[I];D&&U&&at(U.name)&&U.typeExpression&&U.typeExpression.type&&!C.has(U.name.escapedText)&&!A.has(I)&&!F4(Br(U.typeExpression.type))&&pt(U.name,F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,mu(U.name))}else L(m,({name:I,isNameFirst:U},Z)=>{A.has(Z)||at(I)&&C.has(I.escapedText)||(xf(I)?D&&pt(I,F.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,Mf(I),Mf(I.left)):U||p4(D,I,F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,mu(I)))})}function xie(l){let m=!1;if(l)for(let C=0;C{C.default?(m=!0,Ksi(C.default,l,A)):m&&pt(C,F.Required_type_parameters_may_not_follow_optional_type_parameters);for(let w=0;wC)return!1;for(let Z=0;ZHc(D)&&mh(D))&&qi(m,F.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!l.name&&!Xu(l,2048)&&u1(l,F.A_class_declaration_without_the_default_modifier_must_have_a_name),x4t(l),L(l.members,ss),w6(l)}function x4t(l){wli(l),mie(l),Vz(l,l.name),xie(Ax(l)),wW(l);const m=Du(l),D=q0(m),C=Dm(D),A=Jn(m);E4t(m),$Ee(m),soi(l),!!(l.flags&33554432)||loi(l);const I=Yg(l);if(I){L(I.typeArguments,ss),Ce<2&&ud(I.parent,1);const ce=F2(l);ce&&ce!==I&&ka(ce.expression);const Fe=qc(D);Fe.length&&s(()=>{const Te=Fe[0],Je=Uc(D),ut=Kh(Je);if(qsi(ut,I),ss(I.expression),qe(I.typeArguments)){L(I.typeArguments,ss);for(const fi of zs(ut,I.typeArguments,I))if(!Vmt(I,fi.typeParameters))break}const zt=Dm(Te,D.thisType);if(Fh(C,zt,void 0)?Fh(A,O1t(ut),l.name||l,F.Class_static_side_0_incorrectly_extends_base_class_static_side_1):b4t(l,C,zt,F.Class_0_incorrectly_extends_base_class_1),Je.flags&8650752&&(Hu(A)?mo(Je,1).some(Ki=>Ki.flags&4)&&!Xu(l,64)&&pt(l.name||l,F.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):pt(l.name||l,F.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(ut.symbol&&ut.symbol.flags&32)&&!(Je.flags&8650752)){const fi=_0(ut,I.typeArguments,I);L(fi,Ki=>!FE(Ki.declaration)&&!vD(qs(Ki),Te))&&pt(I.expression,F.Base_constructors_must_all_have_the_same_return_type)}Qsi(D,Te)})}Usi(l,D,C,A);const U=eB(l);if(U)for(const ce of U)(!Xl(ce.expression)||Z1(ce.expression))&&pt(ce.expression,F.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),bze(ce),s(Z(ce));s(()=>{e_e(D,m),e_e(A,m,!0),xze(l),t0i(l)});function Z(ce){return()=>{const Fe=Fg(Br(ce));if(!Lt(Fe))if(fF(Fe)){const Te=Fe.symbol&&Fe.symbol.flags&32?F.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:F.Class_0_incorrectly_implements_interface_1,Je=Dm(Fe,D.thisType);Fh(C,Je,void 0)||b4t(l,C,Je,Te)}else pt(ce,F.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Usi(l,m,D,C){const w=Yg(l)&&qc(m),I=w!=null&&w.length?Dm(Mn(w),m.thisType):void 0,U=Uc(m);for(const Z of l.members)ule(Z)||(dc(Z)&&L(Z.parameters,ce=>{Pf(ce,Z)&&v4t(l,C,U,I,m,D,ce,!0)}),v4t(l,C,U,I,m,D,Z,!1))}function v4t(l,m,D,C,A,w,I,U,Z=!0){const ce=I.name&&Up(I.name)||Up(I);return ce?C4t(l,m,D,C,A,w,Iq(I),T2(I),To(I),U,sc(ce),Z?I:void 0):0}function C4t(l,m,D,C,A,w,I,U,Z,ce,Fe,Te){const Je=eu(l),ut=!!(l.flags&33554432);if(C&&(I||ae.noImplicitOverride)){const zt=kl(Fe),fi=Z?m:w,Ki=Z?D:C,cn=$o(fi,zt),uu=$o(Ki,zt),En=gn(C);if(cn&&!uu&&I){if(Te){const Ii=Nft(Fe,Ki);Ii?pt(Te,Je?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,En,Sr(Ii)):pt(Te,Je?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,En)}return 2}else if(cn&&(uu!=null&&uu.declarations)&&ae.noImplicitOverride&&!ut){const Ii=qe(uu.declarations,T2);if(I)return 0;if(Ii){if(U&&Ii)return Te&&pt(Te,F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,En),1}else{if(Te){const Pn=ce?Je?F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:Je?F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;pt(Te,Pn,En)}return 1}}}else if(I){if(Te){const zt=gn(A);pt(Te,Je?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,zt)}return 2}return 0}function b4t(l,m,D,C){let A=!1;for(const w of l.members){if(To(w))continue;const I=w.name&&Up(w.name)||Up(w);if(I){const U=$o(m,I.escapedName),Z=$o(D,I.escapedName);if(U&&Z){const ce=()=>uo(void 0,F.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Sr(I),gn(m),gn(D));Fh(Jn(U),Jn(Z),w.name||w,void 0,ce)||(A=!0)}}}A||Fh(m,D,l.name||l,C)}function qsi(l,m){const D=mo(l,1);if(D.length){const C=D[0].declaration;if(C&&If(C,2)){const A=eD(l.symbol);Hze(m,A)||pt(m,F.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,rp(l.symbol))}}}function Zsi(l,m,D){if(!m.name)return 0;const C=Du(l),A=q0(C),w=Dm(A),I=Jn(C),Z=Yg(l)&&qc(A),ce=Z!=null&&Z.length?Dm(Mn(Z),A.thisType):void 0,Fe=Uc(A),Te=m.parent?Iq(m):Xu(m,16);return C4t(l,I,Fe,ce,A,w,Te,T2(m),To(m),!1,sc(D))}function gT(l){return Wl(l)&1?l.links.target:l}function Ysi(l){return ei(l.declarations,m=>m.kind===263||m.kind===264)}function Qsi(l,m){var D,C,A,w;const I=n0(m);let U;e:for(const Z of I){const ce=gT(Z);if(ce.flags&4194304)continue;const Fe=vC(l,ce.escapedName);if(!Fe)continue;const Te=gT(Fe),Je=s4(ce);if(H.assert(!!Te,"derived should point to something, even if it is the base class' declaration."),Te===ce){const ut=eD(l.symbol);if(Je&64&&(!ut||!Xu(ut,64))){for(const zt of qc(l)){if(zt===m)continue;const fi=vC(zt,ce.escapedName),Ki=fi&&gT(fi);if(Ki&&Ki!==ce)continue e}U||(U=pt(ut,F.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,gn(l),gn(m))),ut.kind===231?ps(U,Bu(Z.valueDeclaration??(Z.declarations&&Mn(Z.declarations))??ut,F.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Sr(Z),gn(m))):ps(U,Bu(Z.valueDeclaration??(Z.declarations&&Mn(Z.declarations))??ut,F.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,gn(l),Sr(Z),gn(m)))}}else{const ut=s4(Te);if(Je&2||ut&2)continue;let zt;const fi=ce.flags&98308,Ki=Te.flags&98308;if(fi&&Ki){if((Wl(ce)&6?(D=ce.declarations)!=null&&D.some(En=>y4t(En,Je)):(C=ce.declarations)!=null&&C.every(En=>y4t(En,Je)))||Wl(ce)&262144||Te.valueDeclaration&&tu(Te.valueDeclaration))continue;const cn=fi!==4&&Ki===4;if(cn||fi===4&&Ki!==4){const En=cn?F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;pt(qa(Te.valueDeclaration)||Te.valueDeclaration,En,Sr(ce),gn(m),gn(l))}else if(Se){const En=(A=Te.declarations)==null?void 0:A.find(Ii=>Ii.kind===172&&!Ii.initializer);if(En&&!(Te.flags&33554432)&&!(Je&64)&&!(ut&64)&&!((w=Te.declarations)!=null&&w.some(Ii=>!!(Ii.flags&33554432)))){const Ii=Gp(eD(l.symbol)),Pn=En.name;if(En.exclamationToken||!Ii||!at(Pn)||!fe||!F4t(Pn,l,Ii)){const Cn=F.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;pt(qa(Te.valueDeclaration)||Te.valueDeclaration,Cn,Sr(ce),gn(m))}}}continue}else if(RMe(ce)){if(RMe(Te)||Te.flags&4)continue;H.assert(!!(Te.flags&98304)),zt=F.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ce.flags&98304?zt=F.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:zt=F.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;pt(qa(Te.valueDeclaration)||Te.valueDeclaration,zt,gn(m),Sr(ce),gn(l))}}}function y4t(l,m){return m&64&&(!bo(l)||!l.initializer)||Dh(l.parent)}function Xsi(l,m,D){if(!S(m))return D;const C=new Map;L(D,A=>{C.set(A.escapedName,A)});for(const A of m){const w=n0(Dm(A,l.thisType));for(const I of w){const U=C.get(I.escapedName);U&&I.parent===U.parent&&C.delete(I.escapedName)}}return Ea(C.values())}function e0i(l,m){const D=qc(l);if(D.length<2)return!0;const C=new Map;L(wNe(l).declaredProperties,w=>{C.set(w.escapedName,{prop:w,containingType:l})});let A=!0;for(const w of D){const I=n0(Dm(w,l.thisType));for(const U of I){const Z=C.get(U.escapedName);if(!Z)C.set(U.escapedName,{prop:U,containingType:w});else if(Z.containingType!==l&&!gii(Z.prop,U)){A=!1;const Fe=gn(Z.containingType),Te=gn(w);let Je=uo(void 0,F.Named_property_0_of_types_1_and_2_are_not_identical,Sr(U),Fe,Te);Je=uo(Je,F.Interface_0_cannot_simultaneously_extend_types_1_and_2,gn(l),Fe,Te),Os.add(Z3(In(m),m,Je))}}}return A}function t0i(l){if(!fe||!We||l.flags&33554432)return;const m=Gp(l);for(const D of l.members)if(!(gh(D)&128)&&!To(D)&&k4t(D)){const C=D.name;if(at(C)||Xr(C)||Ls(C)){const A=Jn(Du(D));A.flags&3||kz(A)||(!m||!F4t(C,A,m))&&pt(D.name,F.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,C0(C))}}}function k4t(l){return l.kind===172&&!T2(l)&&!l.exclamationToken&&!l.initializer}function i0i(l,m,D,C,A){for(const w of D)if(w.pos>=C&&w.pos<=A){const I=q.createPropertyAccessExpression(q.createThis(),l);bs(I.expression,I),bs(I,w),I.flowNode=w.returnFlowNode;const U=B6(I,m,A6(m));if(!kz(U))return!0}return!1}function F4t(l,m,D){const C=Ls(l)?q.createElementAccessExpression(q.createThis(),l.expression):q.createPropertyAccessExpression(q.createThis(),l);bs(C.expression,C),bs(C,D),C.flowNode=D.returnFlowNode;const A=B6(C,m,A6(m));return!kz(A)}function n0i(l){A3(l)||Ili(l),xie(l.typeParameters),s(()=>{Kz(l.name,F.Interface_name_cannot_be_0),wW(l);const m=Du(l);E4t(m);const D=Fl(m,264);if(l===D){const C=q0(m),A=Dm(C);if(e0i(C,l.name)){for(const w of qc(C))Fh(A,Dm(w,C.thisType),l.name,F.Interface_0_incorrectly_extends_interface_1);e_e(C,m)}}Imt(l)}),L(uP(l),m=>{(!Xl(m.expression)||Z1(m.expression))&&pt(m.expression,F.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),bze(m)}),L(l.members,ss),s(()=>{xze(l),w6(l)})}function u0i(l){A3(l),Kz(l.name,F.Type_alias_name_cannot_be_0),wW(l),xie(l.typeParameters),l.type.kind===141?(!YY.has(l.name.escapedText)||S(l.typeParameters)!==1)&&pt(l.type,F.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(ss(l.type),w6(l))}function A4t(l){const m=sr(l);if(!(m.flags&1024)){m.flags|=1024;let D=0;for(const C of l.members){const A=r0i(C,D);sr(C).enumMemberValue=A,D=typeof A=="number"?A+1:void 0}}}function r0i(l,m){if(rj(l.name))pt(l.name,F.Computed_property_names_are_not_allowed_in_enums);else{const D=O8(l.name);t3(D)&&!TP(D)&&pt(l.name,F.An_enum_member_cannot_have_a_numeric_name)}if(l.initializer)return a0i(l);if(!(l.parent.flags&33554432&&!x2(l.parent))){if(m!==void 0)return m;pt(l.name,F.Enum_member_must_have_initializer)}}function a0i(l){const m=x2(l.parent),D=l.initializer,C=Wz(D,l);return C!==void 0?m&&typeof C=="number"&&!isFinite(C)&&pt(D,isNaN(C)?F.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:F.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):m?pt(D,F.const_enum_member_initializers_must_be_constant_expressions):l.parent.flags&33554432?pt(D,F.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Fh(ka(D),Qt,D,F.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),C}function Wz(l,m){switch(l.kind){case 224:const D=Wz(l.operand,m);if(typeof D=="number")switch(l.operator){case 40:return D;case 41:return-D;case 55:return~D}break;case 226:const C=Wz(l.left,m),A=Wz(l.right,m);if(typeof C=="number"&&typeof A=="number")switch(l.operatorToken.kind){case 52:return C|A;case 51:return C&A;case 49:return C>>A;case 50:return C>>>A;case 48:return C<s0i(l))}function s0i(l){A3(l),Vz(l,l.name),wW(l),l.members.forEach(l0i),A4t(l);const m=Du(l),D=Fl(m,l.kind);if(l===D){if(m.declarations&&m.declarations.length>1){const A=x2(l);L(m.declarations,w=>{Mv(w)&&x2(w)!==A&&pt(qa(w),F.Enum_declarations_must_all_be_const_or_non_const)})}let C=!1;L(m.declarations,A=>{if(A.kind!==266)return!1;const w=A;if(!w.members.length)return!1;const I=w.members[0];I.initializer||(C?pt(I.name,F.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):C=!0)})}}function l0i(l){Xr(l.name)&&pt(l,F.An_enum_member_cannot_be_named_with_a_private_identifier),l.initializer&&ka(l.initializer)}function c0i(l){const m=l.declarations;if(m){for(const D of m)if((D.kind===263||D.kind===262&&j4(D.body))&&!(D.flags&33554432))return D}}function d0i(l,m){const D=ZE(l),C=ZE(m);return mE(D)?mE(C):mE(C)?!1:D===C}function h0i(l){l.body&&(ss(l.body),Zg(l)||w6(l)),s(m);function m(){var D,C;const A=Zg(l),w=l.flags&33554432;A&&!w&&pt(l.name,F.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const I=L1(l),U=I?F.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:F.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(vie(l,U))return;A3(l)||!w&&l.name.kind===11&&qi(l.name,F.Only_ambient_modules_can_use_quoted_names),at(l.name)&&Vz(l,l.name),wW(l);const Z=Du(l);if(Z.flags&512&&!w&&Ide(l,dk(ae))){if(hg(ae)&&!In(l).externalModuleIndicator&&pt(l.name,F.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,ht),((D=Z.declarations)==null?void 0:D.length)>1){const ce=c0i(Z);ce&&(In(l)!==In(ce)?pt(l.name,F.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):l.posFe.kind===95);ce&&pt(ce,F.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(I)if(_2(l)){if((A||Du(l).flags&33554432)&&l.body)for(const Fe of l.body.statements)Ize(Fe,A)}else mE(l.parent)?A?pt(l.name,F.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Md(W4(l.name))&&pt(l.name,F.Ambient_module_declaration_cannot_specify_relative_module_name):A?pt(l.name,F.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):pt(l.name,F.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Ize(l,m){switch(l.kind){case 243:for(const C of l.declarationList.declarations)Ize(C,m);break;case 277:case 278:u1(l,F.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:u1(l,F.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const D=l.name;if(Fo(D)){for(const C of D.elements)Ize(C,m);break}case 263:case 266:case 262:case 264:case 267:case 265:if(m)return;break}}function f0i(l){switch(l.kind){case 80:return l;case 166:do l=l.left;while(l.kind!==80);return l;case 211:do{if(Z_(l.expression)&&!Xr(l.name))return l.name;l=l.expression}while(l.kind!==80);return l}}function Rze(l){const m=q8(l);if(!m||Yl(m))return!1;if(!ns(m))return pt(m,F.String_literal_expected),!1;const D=l.parent.kind===268&&L1(l.parent.parent);if(l.parent.kind!==312&&!D)return pt(m,l.kind===278?F.Export_declarations_are_not_permitted_in_a_namespace:F.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(D&&Md(m.text)&&!R9(l))return pt(l,F.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!g1(l)&&l.attributes){const C=l.attributes.token===118?F.Import_attribute_values_must_be_string_literal_expressions:F.Import_assertion_values_must_be_string_literal_expressions;let A=!1;for(const w of l.attributes.elements)ns(w.value)||(A=!0,pt(w.value,C));return!A}return!0}function t_e(l){var m,D,C,A;let w=Du(l);const I=hd(w);if(I!==Xt){if(w=Vs(w.exportSymbol||w),eu(l)&&!(I.flags&111551)&&!p2(l)){const ce=n7(l)?l.propertyName||l.name:fh(l)?l.name:l;if(H.assert(l.kind!==280),l.kind===281){const Fe=pt(ce,F.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Te=(D=(m=In(l).symbol)==null?void 0:m.exports)==null?void 0:D.get((l.propertyName||l.name).escapedText);if(Te===I){const Je=(C=Te.declarations)==null?void 0:C.find(P8);Je&&ps(Fe,Bu(Je,F._0_is_automatically_exported_here,Yr(Te.escapedName)))}}else{H.assert(l.kind!==260);const Fe=Ln(l,lg(Ad,g1)),Te=(Fe&&((A=U8(Fe))==null?void 0:A.text))??"...",Je=Yr(at(ce)?ce.escapedText:w.escapedName);pt(ce,F._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,Je,`import("${Te}").${Je}`)}return}const U=R1(I),Z=(w.flags&1160127?111551:0)|(w.flags&788968?788968:0)|(w.flags&1920?1920:0);if(U&Z){const ce=l.kind===281?F.Export_declaration_conflicts_with_exported_declaration_of_0:F.Import_declaration_conflicts_with_local_declaration_of_0;pt(l,ce,Sr(w))}if(hg(ae)&&!p2(l)&&!(l.flags&33554432)){const ce=E4(w),Fe=!(U&111551);if(Fe||ce)switch(l.kind){case 273:case 276:case 271:{if(ae.preserveValueImports||ae.verbatimModuleSyntax){H.assertIsDefined(l.name,"An ImportClause with a symbol should have a name");const Te=ae.verbatimModuleSyntax&&J8(l)?F.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Fe?ae.verbatimModuleSyntax?F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:ae.verbatimModuleSyntax?F._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:F._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,Je=mu(l.kind===276&&l.propertyName||l.name);cD(pt(l,Te,Je),Fe?void 0:ce,Je)}Fe&&l.kind===271&&If(l,32)&&pt(l,F.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,ht);break}case 281:if(ae.verbatimModuleSyntax||In(ce)!==In(l)){const Te=mu(l.propertyName||l.name),Je=Fe?pt(l,F.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,ht):pt(l,F._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Te,ht);cD(Je,Fe?void 0:ce,Te);break}}ae.verbatimModuleSyntax&&l.kind!==271&&!eu(l)&&(ne===1||In(l).impliedNodeFormat===1)&&pt(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(Cf(l)){const ce=Oze(w,l);A5(ce)&&ce.declarations&&f3(l,ce.declarations,ce.escapedName)}}}function Oze(l,m){if(!(l.flags&2097152)||A5(l)||!np(l))return l;const D=hd(l);if(D===Xt)return D;for(;l.flags&2097152;){const C=LMe(l);if(C){if(C===D)break;if(C.declarations&&S(C.declarations))if(A5(C)){f3(m,C.declarations,C.escapedName);break}else{if(l===D)break;l=C}}else break}return D}function i_e(l){Vz(l,l.name),t_e(l),l.kind===276&&mu(l.propertyName||l.name)==="default"&&XE(ae)&&ne!==4&&(ne<5||In(l).impliedNodeFormat===1)&&ud(l,131072)}function w4t(l){var m;const D=l.attributes;if(D){const C=k1e(l),A=$B(D,C?qi:void 0),w=l.attributes.token===118;if(C&&A)return;if((ne===199&&l.moduleSpecifier&&Pa(l.moduleSpecifier))!==99&&ne!==99){const U=w?ne===199?F.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:F.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:ne===199?F.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:F.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext;return qi(D,U)}if(Ad(l)?(m=l.importClause)!=null&&m.isTypeOnly:l.isTypeOnly)return qi(D,w?F.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:F.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(A)return qi(D,F.resolution_mode_can_only_be_set_for_type_only_imports)}}function m0i(l){if(!vie(l,eu(l)?F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!A3(l)&&zq(l)&&u1(l,F.An_import_declaration_cannot_have_modifiers),Rze(l)){const m=l.importClause;m&&!sci(m)&&(m.name&&i_e(m),m.namedBindings&&(m.namedBindings.kind===274?(i_e(m.namedBindings),ne!==4&&(ne<5||In(l).impliedNodeFormat===1)&&XE(ae)&&ud(l,65536)):Vh(l,l.moduleSpecifier)&&L(m.namedBindings.elements,i_e)))}w4t(l)}}function p0i(l){if(!vie(l,eu(l)?F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(A3(l),J8(l)||Rze(l)))if(i_e(l),Xu(l,32)&&dC(l),l.moduleReference.kind!==283){const m=hd(Du(l));if(m!==Xt){const D=R1(m);if(D&111551){const C=dm(l.moduleReference);P0(C,112575).flags&1920||pt(C,F.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,C0(C))}D&788968&&Kz(l.name,F.Import_name_cannot_be_0)}l.isTypeOnly&&qi(l,F.An_import_alias_cannot_use_import_type)}else ne>=5&&In(l).impliedNodeFormat===void 0&&!l.isTypeOnly&&!(l.flags&33554432)&&qi(l,F.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function g0i(l){if(!vie(l,eu(l)?F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!A3(l)&&Aye(l)&&u1(l,F.An_export_declaration_cannot_have_modifiers),l.moduleSpecifier&&l.exportClause&&Q4(l.exportClause)&&S(l.exportClause.elements)&&Ce===0&&ud(l,4194304),E0i(l),!l.moduleSpecifier||Rze(l))if(l.exportClause&&!n_(l.exportClause)){L(l.exportClause.elements,b0i);const m=l.parent.kind===268&&L1(l.parent.parent),D=!m&&l.parent.kind===268&&!l.moduleSpecifier&&l.flags&33554432;l.parent.kind!==312&&!m&&!D&&pt(l,F.Export_declarations_are_not_permitted_in_a_namespace)}else{const m=Vh(l,l.moduleSpecifier);m&&xb(m)?pt(l.moduleSpecifier,F.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Sr(m)):l.exportClause&&t_e(l.exportClause),ne!==4&&(ne<5||In(l).impliedNodeFormat===1)&&(l.exportClause?XE(ae)&&ud(l,65536):ud(l,32768))}w4t(l)}}function E0i(l){var m;return l.isTypeOnly&&((m=l.exportClause)==null?void 0:m.kind)===279?spt(l.exportClause):!1}function vie(l,m){const D=l.parent.kind===312||l.parent.kind===268||l.parent.kind===267;return D||u1(l,m),!D}function _0i(l){return Cq(l,m=>!!Du(m).isReferenced)}function D0i(l){return Cq(l,m=>!!$r(Du(m)).constEnumReferenced)}function x0i(l){return Ad(l)&&l.importClause&&!l.importClause.isTypeOnly&&_0i(l.importClause)&&!s_e(l.importClause,!0)&&!D0i(l.importClause)}function v0i(l){return g1(l)&&u_(l.moduleReference)&&!l.isTypeOnly&&Du(l).isReferenced&&!s_e(l,!1)&&!$r(Du(l)).constEnumReferenced}function C0i(l){if(Ut)for(const m of l.statements)(x0i(m)||v0i(m))&&pt(m,F.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function b0i(l){if(t_e(l),l4(ae)&&$w(l.propertyName||l.name,!0),l.parent.parent.moduleSpecifier)XE(ae)&&ne!==4&&(ne<5||In(l).impliedNodeFormat===1)&&mu(l.propertyName||l.name)==="default"&&ud(l,131072);else{const m=l.propertyName||l.name,D=nc(m,m.escapedText,2998271,void 0,void 0,!0);if(D&&(D===st||D===St||D.declarations&&mE(lF(D.declarations[0]))))pt(m,F.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,mu(m));else{!l.isTypeOnly&&!l.parent.parent.isTypeOnly&&dC(l);const C=D&&(D.flags&2097152?hd(D):D);(!C||R1(C)&111551)&&Ic(l.propertyName||l.name)}}}function y0i(l){const m=l.isExportEquals?F.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:F.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(vie(l,m))return;const D=l.parent.kind===312?l.parent:l.parent.parent;if(D.kind===267&&!L1(D)){l.isExportEquals?pt(l,F.An_export_assignment_cannot_be_used_in_a_namespace):pt(l,F.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!A3(l)&&zq(l)&&u1(l,F.An_export_assignment_cannot_have_modifiers);const C=h1(l);C&&Fh(Ic(l.expression),Br(C),l.expression);const A=!l.isExportEquals&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&(ne===1||In(l).impliedNodeFormat===1);if(l.expression.kind===80){const w=l.expression,I=ap(P0(w,67108863,!0,!0,l));I?(CEe(I,w),R1(I)&111551?(Ic(w),!A&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&E4(I,111551)&&pt(w,l.isExportEquals?F.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:F.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,mu(w))):!A&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&pt(w,l.isExportEquals?F.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:F.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,mu(w))):Ic(w),l4(ae)&&$w(w,!0)}else Ic(l.expression);A&&pt(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),T4t(D),l.flags&33554432&&!Xl(l.expression)&&qi(l.expression,F.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),l.isExportEquals&&(ne>=5&&(l.flags&33554432&&In(l).impliedNodeFormat===99||!(l.flags&33554432)&&In(l).impliedNodeFormat!==1)?qi(l,F.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ne===4&&!(l.flags&33554432)&&qi(l,F.Export_assignment_is_not_supported_when_module_flag_is_system))}function k0i(l){return d1(l.exports,(m,D)=>D!=="export=")}function T4t(l){const m=Du(l),D=$r(m);if(!D.exportsChecked){const C=m.exports.get("export=");if(C&&k0i(m)){const w=np(C)||C.valueDeclaration;w&&!R9(w)&&!eu(w)&&pt(w,F.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const A=D3(m);A&&A.forEach(({declarations:w,flags:I},U)=>{if(U==="__export"||I&1920)return;const Z=ui(w,U$(Fet,q$(Dh)));if(!(I&524288&&Z<=2)&&Z>1&&!n_e(w))for(const ce of w)bet(ce)&&Os.add(Bu(ce,F.Cannot_redeclare_exported_variable_0,Yr(U)))}),D.exportsChecked=!0}}function n_e(l){return l&&l.length>1&&l.every(m=>eu(m)&&N0(m)&&(ik(m.expression)||Z_(m.expression)))}function ss(l){if(l){const m=K;K=l,z=0,F0i(l),K=m}}function F0i(l){Sj(l)&&L(l.jsDoc,({comment:D,tags:C})=>{L4t(D),L(C,A=>{L4t(A.comment),eu(l)&&ss(A)})});const m=l.kind;if(d)switch(m){case 267:case 263:case 264:case 262:d.throwIfCancellationRequested()}switch(m>=243&&m<=259&&Aj(l)&&l.flowNode&&!Hte(l.flowNode)&&p4(ae.allowUnreachableCode===!1,l,F.Unreachable_code_detected),m){case 168:return Pmt(l);case 169:return Mmt(l);case 172:return Rmt(l);case 171:return coi(l);case 185:case 184:case 179:case 180:case 181:return BW(l);case 174:case 173:return doi(l);case 175:return hoi(l);case 176:return foi(l);case 177:case 178:return jmt(l);case 183:return bze(l);case 182:return aoi(l);case 186:return Doi(l);case 187:return xoi(l);case 188:return voi(l);case 189:return Coi(l);case 192:case 193:return boi(l);case 196:case 190:case 191:return ss(l.type);case 197:return Aoi(l);case 198:return Soi(l);case 194:return Boi(l);case 195:return woi(l);case 203:return Toi(l);case 205:return Loi(l);case 202:return Noi(l);case 335:return Qoi(l);case 336:return Yoi(l);case 353:case 345:case 347:return Hoi(l);case 352:return Koi(l);case 351:return Woi(l);case 331:case 332:case 333:return Joi(l);case 348:return $oi(l);case 355:return Uoi(l);case 324:qoi(l);case 322:case 321:case 319:case 320:case 329:N4t(l),ro(l,ss);return;case 325:A0i(l);return;case 316:return ss(l.type);case 340:case 342:case 341:return Xoi(l);case 357:return Goi(l);case 350:return Zoi(l);case 199:return yoi(l);case 200:return koi(l);case 262:return Voi(l);case 241:case 268:return ZEe(l);case 243:return Esi(l);case 244:return _si(l);case 245:return Dsi(l);case 246:return Csi(l);case 247:return bsi(l);case 248:return ysi(l);case 249:return Fsi(l);case 250:return ksi(l);case 251:case 252:return Nsi(l);case 253:return Psi(l);case 254:return Msi(l);case 255:return zsi(l);case 256:return Isi(l);case 257:return Rsi(l);case 258:return Osi(l);case 260:return psi(l);case 208:return gsi(l);case 263:return $si(l);case 264:return n0i(l);case 265:return u0i(l);case 266:return o0i(l);case 267:return h0i(l);case 272:return m0i(l);case 271:return p0i(l);case 278:return g0i(l);case 277:return y0i(l);case 242:case 259:AD(l);return;case 282:return poi(l)}}function L4t(l){Ha(l)&&L(l,m=>{r7(m)&&ss(m)})}function N4t(l){if(!eu(l))if(cY(l)||SB(l)){const m=Jo(cY(l)?54:58),D=l.postfix?F._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:F._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,C=l.type,A=Br(C);qi(l,D,m,gn(SB(l)&&!(A===Wu||A===da)?ir(Ei([A,te],l.postfix?void 0:it)):A))}else qi(l,F.JSDoc_types_can_only_be_used_inside_documentation_comments)}function A0i(l){N4t(l),ss(l.type);const{parent:m}=l;if(eo(m)&&BB(m.parent)){Cr(m.parent.parameters)!==m&&pt(l,F.A_rest_parameter_must_be_last_in_a_parameter_list);return}bk(m)||pt(l,F.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const D=l.parent.parent;if(!pg(D)){pt(l,F.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const C=Bj(D);if(!C)return;const A=bv(D);(!A||Cr(A.parameters).symbol!==C)&&pt(l,F.A_rest_parameter_must_be_last_in_a_parameter_list)}function S0i(l){const m=Br(l.type),{parent:D}=l,C=l.parent.parent;if(bk(l.parent)&&pg(C)){const A=bv(C),w=Fce(C.parent.parent);if(A||w){const I=Yu(w?C.parent.parent.typeExpression.parameters:A.parameters),U=Bj(C);if(!I||U&&I.symbol===U&&J_(I))return j1(m)}}return eo(D)&&BB(D.parent)?j1(m):Od(m)}function Q9(l){const m=In(l),D=sr(m);D.flags&1?H.assert(!D.deferredNodes,"A type-checked file should have no deferred nodes."):(D.deferredNodes||(D.deferredNodes=new Set),D.deferredNodes.add(l))}function B0i(l){const m=sr(l);m.deferredNodes&&m.deferredNodes.forEach(w0i),m.deferredNodes=void 0}function w0i(l){var m,D;(m=$n)==null||m.push($n.Phase.Check,"checkDeferredNode",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath});const C=K;switch(K=l,z=0,l.kind){case 213:case 214:case 215:case 170:case 286:AF(l);break;case 218:case 219:case 174:case 173:kai(l);break;case 177:case 178:jmt(l);break;case 231:Jsi(l);break;case 168:roi(l);break;case 285:Mui(l);break;case 284:Iui(l);break;case 216:case 234:case 217:Qri(l);break;case 222:ka(l.expression);break;case 226:Rq(l)&&AF(l);break}K=C,(D=$n)==null||D.pop()}function T0i(l){var m,D;(m=$n)==null||m.push($n.Phase.Check,"checkSourceFile",{path:l.path},!0),il("beforeCheck"),L0i(l),il("afterCheck"),wm("Check","beforeCheck","afterCheck"),(D=$n)==null||D.pop()}function P4t(l,m){if(m)return!1;switch(l){case 0:return!!ae.noUnusedLocals;case 1:return!!ae.noUnusedParameters;default:return H.assertNever(l)}}function M4t(l){return C5.get(l.path)||_t}function L0i(l){const m=sr(l);if(!(m.flags&1)){if(FP(l,ae,t))return;uci(l),gu(ob),gu(sb),gu(eC),gu(b5),gu(lb),L(l.statements,ss),ss(l.endOfFileToken),B0i(l),lm(l)&&w6(l),s(()=>{!l.isDeclarationFile&&(ae.noUnusedLocals||ae.noUnusedParameters)&&Qmt(M4t(l),(D,C,A)=>{!I8(D)&&P4t(C,!!(D.flags&33554432))&&Os.add(A)}),l.isDeclarationFile||nsi()}),ae.importsNotUsedAsValues===2&&!l.isDeclarationFile&&Bc(l)&&C0i(l),lm(l)&&T4t(l),ob.length&&(L(ob,asi),gu(ob)),sb.length&&(L(sb,osi),gu(sb)),eC.length&&(L(eC,dsi),gu(eC)),b5.length&&(L(b5,fsi),gu(b5)),m.flags|=1}}function z4t(l,m){try{return d=m,N0i(l)}finally{d=void 0}}function jze(){for(const l of u)l();u=[]}function Vze(l){jze();const m=s;s=D=>D(),T0i(l),s=m}function N0i(l){if(l){jze();const m=Os.getGlobalDiagnostics(),D=m.length;Vze(l);const C=Os.getDiagnostics(l.fileName),A=Os.getGlobalDiagnostics();if(A!==m){const w=ia(m,A,CP);return an(w,C)}else if(D===0&&A.length>0)return an(A,C);return C}return L(t.getSourceFiles(),Vze),Os.getDiagnostics()}function P0i(){return jze(),Os.getGlobalDiagnostics()}function M0i(l,m){if(l.flags&67108864)return[];const D=jo();let C=!1;return A(),D.delete("this"),ZNe(D);function A(){for(;l;){switch($E(l)&&l.locals&&!mE(l)&&I(l.locals,m),l.kind){case 312:if(!Bc(l))break;case 267:U(Du(l).exports,m&2623475);break;case 266:I(Du(l).exports,m&8);break;case 231:l.name&&w(l.symbol,m);case 263:case 264:C||I(E6(Du(l)),m&788968);break;case 218:l.name&&w(l.symbol,m);break}Jbe(l)&&w(It,m),C=To(l),l=l.parent}I(Ie,m)}function w(Z,ce){if(DP(Z)&ce){const Fe=Z.escapedName;D.has(Fe)||D.set(Fe,Z)}}function I(Z,ce){ce&&Z.forEach(Fe=>{w(Fe,ce)})}function U(Z,ce){ce&&Z.forEach(Fe=>{!Fl(Fe,281)&&!Fl(Fe,280)&&Fe.escapedName!=="default"&&w(Fe,ce)})}}function z0i(l){return l.kind===80&&mB(l.parent)&&qa(l.parent)===l}function I4t(l){for(;l.parent.kind===166;)l=l.parent;return l.parent.kind===183}function I0i(l){for(;l.parent.kind===211;)l=l.parent;return l.parent.kind===233}function R4t(l,m){let D,C=Zd(l);for(;C&&!(D=m(C));)C=Zd(C);return D}function R0i(l){return!!Ln(l,m=>dc(m)&&j4(m.body)||bo(m)?!0:gr(m)||K0(m)?"quit":!1)}function Hze(l,m){return!!R4t(l,D=>D===m)}function O0i(l){for(;l.parent.kind===166;)l=l.parent;if(l.parent.kind===271)return l.parent.moduleReference===l?l.parent:void 0;if(l.parent.kind===277)return l.parent.expression===l?l.parent:void 0}function u_e(l){return O0i(l)!==void 0}function j0i(l){switch(Ql(l.parent.parent)){case 1:case 3:return _m(l.parent);case 4:case 2:case 5:return Du(l.parent.parent)}}function V0i(l){let m=l.parent;for(;xf(m);)l=m,m=m.parent;if(m&&m.kind===205&&m.qualifier===l)return m}function H0i(l){if(l.expression.kind===110){const m=ef(l,!1,!1);if(xo(m)){const D=Yht(m);if(D){const C=NC(D,void 0),A=Xht(D,C);return A&&!nt(A)}}}}function O4t(l){if(Q3(l))return _m(l.parent);if(eu(l)&&l.parent.kind===211&&l.parent===l.parent.parent.left&&!Xr(l)&&!zv(l)&&!H0i(l.parent)){const m=j0i(l);if(m)return m}if(l.parent.kind===277&&Xl(l)){const m=P0(l,2998271,!0);if(m&&m!==Xt)return m}else if(om(l)&&u_e(l)){const m=yv(l,271);return H.assert(m!==void 0),uF(l,!0)}if(om(l)){const m=V0i(l);if(m){Br(m);const D=sr(l).resolvedSymbol;return D===Xt?void 0:D}}for(;Nye(l);)l=l.parent;if(I0i(l)){let m=0;l.parent.kind===233?(m=U_(l)?788968:111551,Wj(l.parent)&&(m|=111551)):m=1920,m|=2097152;const D=Xl(l)?P0(l,m,!0):void 0;if(D)return D}if(l.parent.kind===348)return Bj(l.parent);if(l.parent.kind===168&&l.parent.parent.kind===352){H.assert(!eu(l));const m=rye(l.parent);return m&&m.symbol}if(q_(l)){if(Yl(l))return;const m=Ln(l,lg(r7,YP,zv)),D=m?901119:111551;if(l.kind===80){if(G8(l)&&Y9(l)){const A=BEe(l.parent);return A===Xt?void 0:A}const C=P0(l,D,!0,!0,bv(l));if(!C&&m){const A=Ln(l,lg(gr,Dh));if(A)return Cie(l,!0,Du(A))}if(C&&m){const A=c7(l);if(A&&K2(A)&&A===C.valueDeclaration)return P0(l,D,!0,!0,In(A))||C}return C}else{if(Xr(l))return LEe(l);if(l.kind===211||l.kind===166){const C=sr(l);return C.resolvedSymbol?C.resolvedSymbol:(l.kind===211?(wEe(l,0),C.resolvedSymbol||(C.resolvedSymbol=j4t(Ic(l.expression),O5(l.name)))):Fft(l,0),!C.resolvedSymbol&&m&&xf(l)?Cie(l):C.resolvedSymbol)}else if(zv(l))return Cie(l)}}else if(I4t(l)){const m=l.parent.kind===183?788968:1920,D=P0(l,m,!1,!0);return D&&D!==Xt?D:wge(l)}if(l.parent.kind===182)return P0(l,1)}function j4t(l,m){const D=qNe(l,m);if(D.length&&l.members){const C=Age(kg(l).members);if(D===yh(l))return C;if(C){const A=$r(C),w=Ui(D,U=>U.declaration),I=Kt(w,Js).join(",");if(A.filteredIndexSymbolCache||(A.filteredIndexSymbolCache=new Map),A.filteredIndexSymbolCache.has(I))return A.filteredIndexSymbolCache.get(I);{const U=js(131072,"__index");return U.declarations=Ui(D,Z=>Z.declaration),U.parent=l.aliasSymbol?l.aliasSymbol:l.symbol?l.symbol:Up(U.declarations[0].parent),A.filteredIndexSymbolCache.set(I,U),U}}}}function Cie(l,m,D){if(om(l)){let I=P0(l,901119,m,!0,bv(l));if(!I&&at(l)&&D&&(I=Vs(yf(Jf(D),l.escapedText,901119))),I)return I}const C=at(l)?D:Cie(l.left,m,D),A=at(l)?l.escapedText:l.right.escapedText;if(C){const w=C.flags&111551&&$o(Jn(C),"prototype"),I=w?Jn(w):q0(C);return $o(I,A)}}function Up(l,m){if(ca(l))return Bc(l)?Vs(l.symbol):void 0;const{parent:D}=l,C=D.parent;if(!(l.flags&67108864)){if(yet(l)){const A=Du(D);return n7(l.parent)&&l.parent.propertyName===l?LMe(A):A}else if(Tj(l))return Du(D.parent);if(l.kind===80){if(u_e(l))return O4t(l);if(D.kind===208&&C.kind===206&&l===D.propertyName){const A=X9(C),w=$o(A,l.escapedText);if(w)return w}else if(JP(D)&&D.name===l)return D.keywordToken===105&&mu(l)==="target"?rze(D).symbol:D.keywordToken===102&&mu(l)==="meta"?$dt().members.get("meta"):void 0}switch(l.kind){case 80:case 81:case 211:case 166:if(!m7(l))return O4t(l);case 110:const A=ef(l,!1,!1);if(xo(A)){const U=lp(A);if(U.thisParameter)return U.thisParameter}if(fq(l))return ka(l).symbol;case 197:return jge(l).symbol;case 108:return ka(l).symbol;case 137:const w=l.parent;return w&&w.kind===176?w.parent.symbol:void 0;case 11:case 15:if(vv(l.parent.parent)&&QN(l.parent.parent)===l||(l.parent.kind===272||l.parent.kind===278)&&l.parent.moduleSpecifier===l||eu(l)&&m1(ae)!==100&&Df(l.parent,!1)||cm(l.parent)||Nv(l.parent)&&Mx(l.parent.parent)&&l.parent.parent.argument===l.parent)return Vh(l,l,m);if(No(D)&&nk(D)&&D.arguments[1]===l)return Du(D);case 9:const I=W0(D)?D.argumentExpression===l?C1(D.expression):void 0:Nv(D)&&M7(C)?Br(C.objectType):void 0;return I&&$o(I,kl(l.text));case 90:case 100:case 39:case 86:return _m(l.parent);case 205:return Mx(l)?Up(l.argument.literal,m):void 0;case 95:return ec(l.parent)?H.checkDefined(l.parent.symbol):void 0;case 102:case 105:return JP(l.parent)?smt(l.parent).symbol:void 0;case 104:if(tu(l.parent)){const U=C1(l.parent.right),Z=mze(U);return(Z==null?void 0:Z.symbol)??U.symbol}return;case 236:return ka(l).symbol;case 295:if(G8(l)&&Y9(l)){const U=BEe(l.parent);return U===Xt?void 0:U}default:return}}}function K0i(l){if(at(l)&&Iu(l.parent)&&l.parent.name===l){const m=O5(l),D=C1(l.parent.expression),C=D.flags&1048576?D.types:[D];return Ku(C,A=>ei(yh(A),w=>tT(m,w.keyType)))}}function W0i(l){if(l&&l.kind===304)return P0(l.name,2208703)}function G0i(l){return X1(l)?l.parent.parent.moduleSpecifier?sC(l.parent.parent,l):P0(l.propertyName||l.name,2998271):P0(l,2998271)}function X9(l){if(ca(l)&&!Bc(l)||l.flags&67108864)return jt;const m=sle(l),D=m&&C4(Du(m.class));if(U_(l)){const C=Br(l);return D?Dm(C,D.thisType):C}if(q_(l))return V4t(l);if(D&&!m.isImplements){const C=Hi(qc(D));return C?Dm(C,D.thisType):jt}if(mB(l)){const C=Du(l);return q0(C)}if(z0i(l)){const C=Up(l);return C?q0(C):jt}if(Rs(l))return pD(l,!0,0)||jt;if(Y1(l)){const C=Du(l);return C?Jn(C):jt}if(yet(l)){const C=Up(l);return C?Jn(C):jt}if(Fo(l))return pD(l.parent,!0,0)||jt;if(u_e(l)){const C=Up(l);if(C){const A=q0(C);return Lt(A)?Jn(C):A}}return JP(l.parent)&&l.parent.keywordToken===l.kind?smt(l.parent):jt}function r_e(l){if(H.assert(l.kind===210||l.kind===209),l.parent.kind===250){const A=_ie(l.parent);return wF(l,A||jt)}if(l.parent.kind===226){const A=C1(l.parent.right);return wF(l,A||jt)}if(l.parent.kind===303){const A=Lo(l.parent.parent,Cs),w=r_e(A)||jt,I=R8(A.properties,l.parent);return ymt(A,w,I)}const m=Lo(l.parent,_h),D=r_e(m)||jt,C=W5(65,D,te,l.parent)||jt;return kmt(m,D,m.elements.indexOf(l),C)}function J0i(l){const m=r_e(Lo(l.parent.parent,HN));return m&&$o(m,l.escapedText)}function V4t(l){return pP(l)&&(l=l.parent),Wh(C1(l))}function H4t(l){const m=_m(l.parent);return To(l)?Jn(m):q0(m)}function K4t(l){const m=l.name;switch(m.kind){case 80:return cf(mu(m));case 9:case 11:return cf(m.text);case 167:const D=k3(m);return n1(D,12288)?D:ct;default:return H.fail("Unsupported property name.")}}function Kze(l){l=Kh(l);const m=jo(n0(l)),D=mo(l,0).length?zn:mo(l,1).length?ya:void 0;return D&&L(n0(D),C=>{m.has(C.escapedName)||m.set(C.escapedName,C)}),yb(m)}function a_e(l){return mo(l,0).length!==0||mo(l,1).length!==0}function W4t(l){const m=$0i(l);return m?Ku(m,W4t):[l]}function $0i(l){if(Wl(l)&6)return Ui($r(l).containingType.types,m=>$o(m,l.escapedName));if(l.flags&33554432){const{links:{leftSpread:m,rightSpread:D,syntheticOrigin:C}}=l;return m?[m,D]:C?[C]:jy(U0i(l))}}function U0i(l){let m,D=l;for(;D=$r(D).target;)m=D;return m}function q0i(l){if(ul(l))return!1;const m=Ua(l,at);if(!m)return!1;const D=m.parent;return D?!((Iu(D)||Gc(D))&&D.name===m)&&OW(m)===It:!1}function Z0i(l){let m=Vh(l.parent,l);if(!m||JN(m))return!0;const D=xb(m);m=Em(m);const C=$r(m);return C.exportsSomeValue===void 0&&(C.exportsSomeValue=D?!!(m.flags&111551):d1(D3(m),A)),C.exportsSomeValue;function A(w){return w=bc(w),w&&!!(R1(w)&111551)}}function Y0i(l){return ZO(l.parent)&&l===l.parent.name}function Q0i(l,m){var D;const C=Ua(l,at);if(C){let A=OW(C,Y0i(C));if(A){if(A.flags&1048576){const I=Vs(A.exportSymbol);if(!m&&I.flags&944&&!(I.flags&3))return;A=I}const w=lf(A);if(w){if(w.flags&512&&((D=w.valueDeclaration)==null?void 0:D.kind)===312){const I=w.valueDeclaration,U=In(C);return I!==U?void 0:I}return Ln(C.parent,I=>ZO(I)&&Du(I)===w)}}}}function X0i(l){const m=Wke(l);if(m)return m;const D=Ua(l,at);if(D){const C=hli(D);if(cC(C,111551)&&!E4(C,111551))return np(C)}}function eli(l){return l.valueDeclaration&&Rs(l.valueDeclaration)&&F8(l.valueDeclaration).parent.kind===299}function G4t(l){if(l.flags&418&&l.valueDeclaration&&!ca(l.valueDeclaration)){const m=$r(l);if(m.isDeclarationWithCollidingName===void 0){const D=ZE(l.valueDeclaration);if(kbe(D)||eli(l)){const C=sr(l.valueDeclaration);if(nc(D.parent,l.escapedName,111551,void 0,void 0,!1))m.isDeclarationWithCollidingName=!0;else if(C.flags&16384){const A=C.flags&32768,w=wx(D,!1),I=D.kind===241&&wx(D.parent,!1);m.isDeclarationWithCollidingName=!Lbe(D)&&(!A||!w&&!I)}else m.isDeclarationWithCollidingName=!1}}return m.isDeclarationWithCollidingName}return!1}function tli(l){if(!ul(l)){const m=Ua(l,at);if(m){const D=OW(m);if(D&&G4t(D))return D.valueDeclaration}}}function ili(l){const m=Ua(l,Y1);if(m){const D=Du(m);if(D)return G4t(D)}return!1}function J4t(l){switch(H.assert(Ut),l.kind){case 271:return o_e(Du(l));case 273:case 274:case 276:case 281:const m=Du(l);return!!m&&o_e(m,!0);case 278:const D=l.exportClause;return!!D&&(n_(D)||qe(D.elements,J4t));case 277:return l.expression&&l.expression.kind===80?o_e(Du(l)):!0}return!1}function nli(l){const m=Ua(l,g1);return m===void 0||m.parent.kind!==312||!J8(m)?!1:o_e(Du(m))&&m.moduleReference&&!Yl(m.moduleReference)}function o_e(l,m){if(!l)return!1;const D=ap(hd(l));return D===Xt?!m||!E4(l):!!(R1(l,m,!0)&111551)&&(dk(ae)||!IW(D))}function IW(l){return fze(l)||!!l.constEnumOnlyModule}function s_e(l,m){if(H.assert(Ut),aC(l)){const D=Du(l),C=D&&$r(D);if(C!=null&&C.referenced)return!0;const A=$r(D).aliasTarget;if(A&&gh(l)&32&&R1(A)&111551&&(dk(ae)||!IW(A)))return!0}return m?!!ro(l,D=>s_e(D,m)):!1}function $4t(l){if(j4(l.body)){if(Tx(l)||XD(l))return!1;const m=Du(l),D=Ab(m);return D.length>1||D.length===1&&D[0].declaration!==l}return!1}function U4t(l){return!!fe&&!iW(l)&&!pg(l)&&!!l.initializer&&!Xu(l,31)}function uli(l){return fe&&iW(l)&&!l.initializer&&Xu(l,31)}function rli(l){const m=Ua(l,Xc);if(!m)return!1;const D=Du(m);return!D||!(D.flags&16)?!1:!!d1(Jf(D),C=>C.flags&111551&&fZ(C.valueDeclaration))}function ali(l){const m=Ua(l,Xc);if(!m)return _t;const D=Du(m);return D&&n0(Jn(D))||_t}function ET(l){var m;const D=l.id||0;return D<0||D>=Xv.length?0:((m=Xv[D])==null?void 0:m.flags)||0}function RW(l){return A4t(l.parent),sr(l).enumMemberValue}function q4t(l){switch(l.kind){case 306:case 211:case 212:return!0}return!1}function Wze(l){if(l.kind===306)return RW(l);const m=sr(l).resolvedSymbol;if(m&&m.flags&8){const D=m.valueDeclaration;if(x2(D.parent))return RW(D)}}function Gze(l){return!!(l.flags&524288)&&mo(l,0).length>0}function oli(l,m){var D;const C=Ua(l,om);if(!C||m&&(m=Ua(m),!m))return 0;let A=!1;if(xf(C)){const ce=P0(dm(C),111551,!0,!0,m);A=!!((D=ce==null?void 0:ce.declarations)!=null&&D.every(p2))}const w=P0(C,111551,!0,!0,m),I=w&&w.flags&2097152?hd(w):w;A||(A=!!(w&&E4(w,111551)));const U=P0(C,788968,!0,!1,m);if(I&&I===U){const ce=aPe(!1);if(ce&&I===ce)return 9;const Fe=Jn(I);if(Fe&&jr(Fe))return A?10:1}if(!U)return A?11:0;const Z=q0(U);return Lt(Z)?A?11:0:Z.flags&3?11:n1(Z,245760)?2:n1(Z,528)?6:n1(Z,296)?3:n1(Z,2112)?4:n1(Z,402653316)?5:_s(Z)?7:n1(Z,12288)?8:Gze(Z)?10:F4(Z)?7:11}function sli(l,m,D,C,A){const w=Ua(l,Kbe);if(!w)return q.createToken(133);const I=Du(w);let U=I&&!(I.flags&133120)?Pb(Jn(I)):jt;return U.flags&8192&&U.symbol===I&&(D|=1048576),A&&(U=A6(U)),Yt.typeToTypeNode(U,m,D|1024,C)}function lli(l,m,D,C){const A=Ua(l,xo);if(!A)return q.createToken(133);const w=lp(A);return Yt.typeToTypeNode(qs(w),m,D|1024,C)}function cli(l,m,D,C){const A=Ua(l,Wt);if(!A)return q.createToken(133);const w=xm(V4t(A));return Yt.typeToTypeNode(w,m,D|1024,C)}function dli(l){return Ie.has(kl(l))}function OW(l,m){const D=sr(l).resolvedSymbol;if(D)return D;let C=l;if(m){const A=l.parent;Y1(A)&&l===A.name&&(C=lF(A))}return nc(C,l.escapedText,3257279,void 0,void 0,!0)}function hli(l){const m=sr(l).resolvedSymbol;return m&&m!==Xt?m:nc(l,l.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function fli(l){if(!ul(l)){const m=Ua(l,at);if(m){const D=OW(m);if(D)return ap(D).valueDeclaration}}}function mli(l){if(!ul(l)){const m=Ua(l,at);if(m){const D=OW(m);if(D)return ei(ap(D).declarations,C=>{switch(C.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function pli(l){return eq(l)||ua(l)&&f_e(l)?Tb(Jn(Du(l))):!1}function gli(l,m,D){const C=l.flags&1056?Yt.symbolToExpression(l.symbol,111551,m,void 0,D):l===hu?q.createTrue():l===$i&&q.createFalse();if(C)return C;const A=l.value;return typeof A=="object"?q.createBigIntLiteral(A):typeof A=="number"?q.createNumericLiteral(A):q.createStringLiteral(A)}function Eli(l,m){const D=Jn(Du(l));return gli(D,l,m)}function Z4t(l){return l?(iC(l),In(l).localJsxFactory||y5):y5}function Jze(l){if(l){const m=In(l);if(m){if(m.localJsxFragmentFactory)return m.localJsxFragmentFactory;const D=m.pragmas.get("jsxfrag"),C=Ha(D)?D[0]:D;if(C)return m.localJsxFragmentFactory=K7(C.arguments.factory,Ce),m.localJsxFragmentFactory}}if(ae.jsxFragmentFactory)return K7(ae.jsxFragmentFactory,Ce)}function _li(){const l=t.getResolvedTypeReferenceDirectives();let m;return l&&(m=new Map,l.forEach(({resolvedTypeReferenceDirective:Z},ce,Fe)=>{if(!(Z!=null&&Z.resolvedFileName))return;const Te=t.getSourceFile(Z.resolvedFileName);Te&&U(Te,ce,Fe)})),{getReferencedExportContainer:Q0i,getReferencedImportDeclaration:X0i,getReferencedDeclarationWithCollidingName:tli,isDeclarationWithCollidingName:ili,isValueAliasDeclaration:Z=>{const ce=Ua(Z);return ce&&Ut?J4t(ce):!0},hasGlobalName:dli,isReferencedAliasDeclaration:(Z,ce)=>{const Fe=Ua(Z);return Fe&&Ut?s_e(Fe,ce):!0},getNodeCheckFlags:Z=>{const ce=Ua(Z);return ce?ET(ce):0},isTopLevelValueImportEqualsWithEntityName:nli,isDeclarationVisible:mD,isImplementationOfOverload:$4t,isRequiredInitializedParameter:U4t,isOptionalUninitializedParameterProperty:uli,isExpandoFunctionDeclaration:rli,getPropertiesOfContainerFunction:ali,createTypeOfDeclaration:sli,createReturnTypeOfSignatureDeclaration:lli,createTypeOfExpression:cli,createLiteralConstValue:Eli,isSymbolAccessible:ku,isEntityNameVisible:$f,getConstantValue:Z=>{const ce=Ua(Z,q4t);return ce?Wze(ce):void 0},collectLinkedAliases:$w,getReferencedValueDeclaration:fli,getReferencedValueDeclarations:mli,getTypeReferenceSerializationKind:oli,isOptionalParameter:iW,moduleExportsSomeValue:Z0i,isArgumentsLocalBinding:q0i,getExternalModuleFileFromDeclaration:Z=>{const ce=Ua(Z,Pbe);return ce&&$ze(ce)},getTypeReferenceDirectivesForEntityName:A,getTypeReferenceDirectivesForSymbol:w,isLiteralConstDeclaration:pli,isLateBound:Z=>{const ce=Ua(Z,Y1),Fe=ce&&Du(ce);return!!(Fe&&Wl(Fe)&4096)},getJsxFactoryEntity:Z4t,getJsxFragmentFactoryEntity:Jze,getAllAccessorDeclarations(Z){Z=Ua(Z,BU);const ce=Z.kind===178?177:178,Fe=Fl(Du(Z),ce),Te=Fe&&Fe.pos_3(Z,Z,void 0),isBindingCapturedByNode:(Z,ce)=>{const Fe=Ua(Z),Te=Ua(ce);return!!Fe&&!!Te&&(ua(Te)||Rs(Te))&&Gni(Fe,Te)},getDeclarationStatementsForSourceFile:(Z,ce,Fe,Te)=>{const Je=Ua(Z);H.assert(Je&&Je.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const ut=Du(Z);return ut?ut.exports?Yt.symbolTableToDeclarationStatements(ut.exports,Z,ce,Fe,Te):[]:Z.locals?Yt.symbolTableToDeclarationStatements(Z.locals,Z,ce,Fe,Te):[]},isImportRequiredByAugmentation:D,tryFindAmbientModule:Z=>{const ce=Ua(Z),Fe=ce&&t0(ce)?ce.text:void 0;return Fe!==void 0?yge(Fe,!0):void 0}};function D(Z){const ce=In(Z);if(!ce.symbol)return!1;const Fe=$ze(Z);if(!Fe||Fe===ce)return!1;const Te=D3(ce.symbol);for(const Je of Ea(Te.values()))if(Je.mergeId){const ut=Vs(Je);if(ut.declarations){for(const zt of ut.declarations)if(In(zt)===Fe)return!0}}return!1}function C(Z){return Z.parent&&Z.parent.kind===233&&Z.parent.parent&&Z.parent.parent.kind===298}function A(Z){if(!m)return;let ce;Z.parent.kind===167?ce=1160127:(ce=790504,(Z.kind===80&&sk(Z)||Z.kind===211&&!C(Z))&&(ce=1160127));const Fe=P0(Z,ce,!0);return Fe&&Fe!==Xt?w(Fe,ce):void 0}function w(Z,ce){if(!m||!I(Z))return;let Fe;for(const Te of Z.declarations)if(Te.symbol&&Te.symbol.flags&ce){const Je=In(Te),ut=m.get(Je.path);if(ut)(Fe||(Fe=[])).push(ut);else return}return Fe}function I(Z){if(!Z.declarations)return!1;let ce=Z;for(;;){const Fe=lf(ce);if(Fe)ce=Fe;else break}if(ce.valueDeclaration&&ce.valueDeclaration.kind===312&&ce.flags&512)return!1;for(const Fe of Z.declarations){const Te=In(Fe);if(m.has(Te.path))return!0}return!1}function U(Z,ce,Fe){if(!m.has(Z.path)){m.set(Z.path,[ce,Fe]);for(const{fileName:Te}of Z.referencedFiles){const Je=DQ(Te,Z.fileName),ut=t.getSourceFile(Je);ut&&U(ut,ce,Fe||Z.impliedNodeFormat)}}}}function $ze(l){const m=l.kind===267?ar(l.name,ns):q8(l),D=_3(m,m,void 0);if(D)return Fl(D,312)}function Dli(){for(const m of t.getSourceFiles())FAe(m,ae);f0=new Map;let l;for(const m of t.getSourceFiles())if(!m.redirectInfo){if(!lm(m)){const D=m.locals.get("globalThis");if(D!=null&&D.declarations)for(const C of D.declarations)Os.add(Bu(C,F.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));fE(Ie,m.locals)}m.jsGlobalAugmentations&&fE(Ie,m.jsGlobalAugmentations),m.patternAmbientModules&&m.patternAmbientModules.length&&(d4=an(d4,m.patternAmbientModules)),m.moduleAugmentations.length&&(l||(l=[])).push(m.moduleAugmentations),m.symbol&&m.symbol.globalExports&&m.symbol.globalExports.forEach((C,A)=>{Ie.has(A)||Ie.set(A,C)})}if(l)for(const m of l)for(const D of m)Zg(D.parent)&&eF(D);if(Pw(Ie,Lw,F.Declaration_name_conflicts_with_built_in_global_identifier_0),$r(st).type=we,$r(It).type=Mc("IArguments",0,!0),$r(Xt).type=jt,$r(St).type=_4(16,St),yo=Mc("Array",1,!0),Ve=Mc("Object",0,!0),si=Mc("Function",0,!0),zn=Be&&Mc("CallableFunction",0,!0)||si,ya=Be&&Mc("NewableFunction",0,!0)||si,ic=Mc("String",0,!0),hc=Mc("Number",0,!0),xl=Mc("Boolean",0,!0),Bl=Mc("RegExp",0,!0),Ul=j1(me),Lc=j1(ni),Lc===Ho&&(Lc=Rl(void 0,se,_t,_t,_t)),Bo=Xdt("ReadonlyArray",1)||yo,ep=Bo?rW(Bo,[me]):Ul,Cc=Xdt("ThisType",1),l)for(const m of l)for(const D of m)Zg(D.parent)||eF(D);f0.forEach(({firstFile:m,secondFile:D,conflictingSymbols:C})=>{if(C.size<8)C.forEach(({isBlockScoped:A,firstFileLocations:w,secondFileLocations:I},U)=>{const Z=A?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0;for(const ce of w)m3(ce,Z,U,I);for(const ce of I)m3(ce,Z,U,w)});else{const A=Ea(C.keys()).join(", ");Os.add(ps(Bu(m,F.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,A),Bu(D,F.Conflicts_are_in_this_file))),Os.add(ps(Bu(D,F.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,A),Bu(m,F.Conflicts_are_in_this_file)))}}),f0=void 0}function ud(l,m){if((p&m)!==m&&ae.importHelpers){const D=In(l);if(a7(D,ae)&&!(l.flags&33554432)){const C=vli(D,l);if(C!==Xt){const A=m&~p;for(let w=1;w<=33554432;w<<=1)if(A&w)for(const I of xli(w)){if(f.has(I))continue;f.add(I);const U=bc(yf(D3(C),kl(I),111551));U?w&524288?qe(Ab(U),Z=>vm(Z)>3)||pt(l,F.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vx,I,4):w&1048576?qe(Ab(U),Z=>vm(Z)>4)||pt(l,F.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vx,I,5):w&1024&&(qe(Ab(U),Z=>vm(Z)>2)||pt(l,F.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Vx,I,3)):pt(l,F.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Vx,I)}}p|=m}}}function xli(l){switch(l){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ve?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return H.fail("Unrecognized helper")}}function vli(l,m){return E||(E=fD(l,Vx,F.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,m)||Xt),E}function A3(l){const m=yli(l)||Cli(l);if(m!==void 0)return m;if(eo(l)&&B2(l))return u1(l,F.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const D=Gl(l)?l.declarationList.flags&7:0;let C,A,w,I,U,Z=0,ce=!1,Fe=!1;for(const Te of l.modifiers)if(p1(Te)){if(hq(ve,l,l.parent,l.parent.parent)){if(ve&&(l.kind===177||l.kind===178)){const Je=lk(l.parent.members,l);if(a4(Je.firstAccessor)&&l===Je.secondAccessor)return u1(l,F.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return l.kind===174&&!j4(l.body)?u1(l,F.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):u1(l,F.Decorators_are_not_valid_here);if(Z&-34849)return qi(Te,F.Decorators_are_not_valid_here);if(Fe&&Z&98303){H.assertIsDefined(U);const Je=In(Te);return jb(Je)?!1:(ps(pt(Te,F.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Bu(U,F.Decorator_used_before_export_here)),!0)}Z|=32768,Z&98303?Z&32&&(ce=!0):Fe=!0,U??(U=Te)}else{if(Te.kind!==148){if(l.kind===171||l.kind===173)return qi(Te,F._0_modifier_cannot_appear_on_a_type_member,Jo(Te.kind));if(l.kind===181&&(Te.kind!==126||!gr(l.parent)))return qi(Te,F._0_modifier_cannot_appear_on_an_index_signature,Jo(Te.kind))}if(Te.kind!==103&&Te.kind!==147&&Te.kind!==87&&l.kind===168)return qi(Te,F._0_modifier_cannot_appear_on_a_type_parameter,Jo(Te.kind));switch(Te.kind){case 87:if(l.kind!==266&&l.kind!==168)return qi(l,F.A_class_member_cannot_have_the_0_keyword,Jo(87));const Je=l.parent;if(l.kind===168&&!(K0(Je)||gr(Je)||n3(Je)||KP(Je)||xB(Je)||yV(Je)||i3(Je)))return qi(Te,F._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Jo(Te.kind));break;case 164:if(Z&16)return qi(Te,F._0_modifier_already_seen,"override");if(Z&128)return qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(Z&8)return qi(Te,F._0_modifier_must_precede_1_modifier,"override","readonly");if(Z&512)return qi(Te,F._0_modifier_must_precede_1_modifier,"override","accessor");if(Z&1024)return qi(Te,F._0_modifier_must_precede_1_modifier,"override","async");Z|=16,I=Te;break;case 125:case 124:case 123:const ut=v3(g7(Te.kind));if(Z&7)return qi(Te,F.Accessibility_modifier_already_seen);if(Z&16)return qi(Te,F._0_modifier_must_precede_1_modifier,ut,"override");if(Z&256)return qi(Te,F._0_modifier_must_precede_1_modifier,ut,"static");if(Z&512)return qi(Te,F._0_modifier_must_precede_1_modifier,ut,"accessor");if(Z&8)return qi(Te,F._0_modifier_must_precede_1_modifier,ut,"readonly");if(Z&1024)return qi(Te,F._0_modifier_must_precede_1_modifier,ut,"async");if(l.parent.kind===268||l.parent.kind===312)return qi(Te,F._0_modifier_cannot_appear_on_a_module_or_namespace_element,ut);if(Z&64)return Te.kind===123?qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,ut,"abstract"):qi(Te,F._0_modifier_must_precede_1_modifier,ut,"abstract");if(mh(l))return qi(Te,F.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);Z|=g7(Te.kind);break;case 126:if(Z&256)return qi(Te,F._0_modifier_already_seen,"static");if(Z&8)return qi(Te,F._0_modifier_must_precede_1_modifier,"static","readonly");if(Z&1024)return qi(Te,F._0_modifier_must_precede_1_modifier,"static","async");if(Z&512)return qi(Te,F._0_modifier_must_precede_1_modifier,"static","accessor");if(l.parent.kind===268||l.parent.kind===312)return qi(Te,F._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(l.kind===169)return qi(Te,F._0_modifier_cannot_appear_on_a_parameter,"static");if(Z&64)return qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Z&16)return qi(Te,F._0_modifier_must_precede_1_modifier,"static","override");Z|=256,C=Te;break;case 129:if(Z&512)return qi(Te,F._0_modifier_already_seen,"accessor");if(Z&8)return qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(Z&128)return qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(l.kind!==172)return qi(Te,F.accessor_modifier_can_only_appear_on_a_property_declaration);Z|=512;break;case 148:if(Z&8)return qi(Te,F._0_modifier_already_seen,"readonly");if(l.kind!==172&&l.kind!==171&&l.kind!==181&&l.kind!==169)return qi(Te,F.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(Z&512)return qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");Z|=8;break;case 95:if(ae.verbatimModuleSyntax&&!(l.flags&33554432)&&l.kind!==265&&l.kind!==264&&l.kind!==267&&l.parent.kind===312&&(ne===1||In(l).impliedNodeFormat===1))return qi(Te,F.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Z&32)return qi(Te,F._0_modifier_already_seen,"export");if(Z&128)return qi(Te,F._0_modifier_must_precede_1_modifier,"export","declare");if(Z&64)return qi(Te,F._0_modifier_must_precede_1_modifier,"export","abstract");if(Z&1024)return qi(Te,F._0_modifier_must_precede_1_modifier,"export","async");if(gr(l.parent))return qi(Te,F._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(l.kind===169)return qi(Te,F._0_modifier_cannot_appear_on_a_parameter,"export");if(D===4)return qi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"export");if(D===6)return qi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"export");Z|=32;break;case 90:const zt=l.parent.kind===312?l.parent:l.parent.parent;if(zt.kind===267&&!L1(zt))return qi(Te,F.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(D===4)return qi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"default");if(D===6)return qi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(Z&32){if(ce)return qi(U,F.Decorators_are_not_valid_here)}else return qi(Te,F._0_modifier_must_precede_1_modifier,"export","default");Z|=2048;break;case 138:if(Z&128)return qi(Te,F._0_modifier_already_seen,"declare");if(Z&1024)return qi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Z&16)return qi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(gr(l.parent)&&!bo(l))return qi(Te,F._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(l.kind===169)return qi(Te,F._0_modifier_cannot_appear_on_a_parameter,"declare");if(D===4)return qi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(D===6)return qi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(l.parent.flags&33554432&&l.parent.kind===268)return qi(Te,F.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(mh(l))return qi(Te,F._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(Z&512)return qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");Z|=128,A=Te;break;case 128:if(Z&64)return qi(Te,F._0_modifier_already_seen,"abstract");if(l.kind!==263&&l.kind!==185){if(l.kind!==174&&l.kind!==172&&l.kind!==177&&l.kind!==178)return qi(Te,F.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(l.parent.kind===263&&Xu(l.parent,64))){const cn=l.kind===172?F.Abstract_properties_can_only_appear_within_an_abstract_class:F.Abstract_methods_can_only_appear_within_an_abstract_class;return qi(Te,cn)}if(Z&256)return qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Z&2)return qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(Z&1024&&w)return qi(w,F._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(Z&16)return qi(Te,F._0_modifier_must_precede_1_modifier,"abstract","override");if(Z&512)return qi(Te,F._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(fh(l)&&l.name.kind===81)return qi(Te,F._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");Z|=64;break;case 134:if(Z&1024)return qi(Te,F._0_modifier_already_seen,"async");if(Z&128||l.parent.flags&33554432)return qi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(l.kind===169)return qi(Te,F._0_modifier_cannot_appear_on_a_parameter,"async");if(Z&64)return qi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");Z|=1024,w=Te;break;case 103:case 147:const fi=Te.kind===103?8192:16384,Ki=Te.kind===103?"in":"out";if(l.kind!==168||!(Dh(l.parent)||gr(l.parent)||Ip(l.parent)))return qi(Te,F._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Ki);if(Z&fi)return qi(Te,F._0_modifier_already_seen,Ki);if(fi&8192&&Z&16384)return qi(Te,F._0_modifier_must_precede_1_modifier,"in","out");Z|=fi;break}}return l.kind===176?Z&256?qi(C,F._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):Z&16?qi(I,F._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):Z&1024?qi(w,F._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(l.kind===272||l.kind===271)&&Z&128?qi(A,F.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):l.kind===169&&Z&31&&Fo(l.name)?qi(l,F.A_parameter_property_may_not_be_declared_using_a_binding_pattern):l.kind===169&&Z&31&&l.dotDotDotToken?qi(l,F.A_parameter_property_cannot_be_declared_using_a_rest_parameter):Z&1024?Fli(l,w):!1}function Cli(l){if(!l.modifiers)return!1;const m=bli(l);return m&&u1(m,F.Modifiers_cannot_appear_here)}function l_e(l,m){const D=Le(l.modifiers,Yo);return D&&D.kind!==m?D:void 0}function bli(l){switch(l.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Le(l.modifiers,Yo);default:if(l.parent.kind===268||l.parent.kind===312)return;switch(l.kind){case 262:return l_e(l,134);case 263:case 185:return l_e(l,128);case 231:case 264:case 265:return Le(l.modifiers,Yo);case 243:return l.declarationList.flags&4?l_e(l,135):Le(l.modifiers,Yo);case 266:return l_e(l,87);default:H.assertNever(l)}}}function yli(l){const m=kli(l);return m&&u1(m,F.Decorators_are_not_valid_here)}function kli(l){return Vce(l)?Le(l.modifiers,p1):void 0}function Fli(l,m){switch(l.kind){case 174:case 262:case 218:case 219:return!1}return qi(m,F._0_modifier_cannot_be_used_here,"async")}function eS(l,m=F.Trailing_comma_not_allowed){return l&&l.hasTrailingComma?Vb(l[0],l.end-1,1,m):!1}function Y4t(l,m){if(l&&l.length===0){const D=l.pos-1,C=ms(m.text,l.end)+1;return Vb(m,D,C-D,F.Type_parameter_list_cannot_be_empty)}return!1}function Ali(l){let m=!1;const D=l.length;for(let C=0;C!!m.initializer||Fo(m.name)||J_(m))}function Bli(l){if(Ce>=3){const m=l.body&&fo(l.body)&&Ice(l.body.statements);if(m){const D=Sli(l.parameters);if(S(D)){L(D,A=>{ps(pt(A,F.This_parameter_is_not_allowed_with_use_strict_directive),Bu(m,F.use_strict_directive_used_here))});const C=D.map((A,w)=>w===0?Bu(A,F.Non_simple_parameter_declared_here):Bu(A,F.and_here));return ps(pt(m,F.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...C),!0}}}return!1}function c_e(l){const m=In(l);return A3(l)||Y4t(l.typeParameters,m)||Ali(l.parameters)||Tli(l,m)||K0(l)&&Bli(l)}function wli(l){const m=In(l);return zli(l)||Y4t(l.typeParameters,m)}function Tli(l,m){if(!G0(l))return!1;l.typeParameters&&!(S(l.typeParameters)>1||l.typeParameters.hasTrailingComma||l.typeParameters[0].constraint)&&m&&Oc(m.fileName,[".mts",".cts"])&&qi(l.typeParameters[0],F.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:D}=l,C=o0(m,D.pos).line,A=o0(m,D.end).line;return C!==A&&qi(D,F.Line_terminator_not_permitted_before_arrow)}function Lli(l){const m=l.parameters[0];if(l.parameters.length!==1)return qi(m?m.name:l,F.An_index_signature_must_have_exactly_one_parameter);if(eS(l.parameters,F.An_index_signature_cannot_have_a_trailing_comma),m.dotDotDotToken)return qi(m.dotDotDotToken,F.An_index_signature_cannot_have_a_rest_parameter);if(zq(m))return qi(m.name,F.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(m.questionToken)return qi(m.questionToken,F.An_index_signature_parameter_cannot_have_a_question_mark);if(m.initializer)return qi(m.name,F.An_index_signature_parameter_cannot_have_an_initializer);if(!m.type)return qi(m.name,F.An_index_signature_parameter_must_have_a_type_annotation);const D=Br(m.type);return bE(D,C=>!!(C.flags&8576))||yz(D)?qi(m.name,F.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):Xm(D,Sge)?l.type?!1:qi(l,F.An_index_signature_must_have_a_type_annotation):qi(m.name,F.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function Nli(l){return A3(l)||Lli(l)}function Pli(l,m){if(m&&m.length===0){const D=In(l),C=m.pos-1,A=ms(D.text,m.end)+1;return Vb(D,C,A-C,F.Type_argument_list_cannot_be_empty)}return!1}function bie(l,m){return eS(m)||Pli(l,m)}function Mli(l){return l.questionDotToken||l.flags&64?qi(l.template,F.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function Q4t(l){const m=l.types;if(eS(m))return!0;if(m&&m.length===0){const D=Jo(l.token);return Vb(l,m.pos,0,F._0_list_cannot_be_empty,D)}return qe(m,X4t)}function X4t(l){return l5(l)&&HP(l.expression)&&l.typeArguments?qi(l,F.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):bie(l,l.typeArguments)}function zli(l){let m=!1,D=!1;if(!A3(l)&&l.heritageClauses)for(const C of l.heritageClauses){if(C.token===96){if(m)return u1(C,F.extends_clause_already_seen);if(D)return u1(C,F.extends_clause_must_precede_implements_clause);if(C.types.length>1)return u1(C.types[1],F.Classes_can_only_extend_a_single_class);m=!0}else{if(H.assert(C.token===119),D)return u1(C,F.implements_clause_already_seen);D=!0}Q4t(C)}}function Ili(l){let m=!1;if(l.heritageClauses)for(const D of l.heritageClauses){if(D.token===96){if(m)return u1(D,F.extends_clause_already_seen);m=!0}else return H.assert(D.token===119),u1(D,F.Interface_declaration_cannot_have_implements_clause);Q4t(D)}return!1}function d_e(l){if(l.kind!==167)return!1;const m=l;return m.expression.kind===226&&m.expression.operatorToken.kind===28?qi(m.expression,F.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Uze(l){if(l.asteriskToken){if(H.assert(l.kind===262||l.kind===218||l.kind===174),l.flags&33554432)return qi(l.asteriskToken,F.Generators_are_not_allowed_in_an_ambient_context);if(!l.body)return qi(l.asteriskToken,F.An_overload_signature_cannot_be_declared_as_a_generator)}}function qze(l,m){return!!l&&qi(l,m)}function ept(l,m){return!!l&&qi(l,m)}function Rli(l,m){const D=new Map;for(const C of l.properties){if(C.kind===305){if(m){const I=s0(C.expression);if(_h(I)||Cs(I))return qi(C.expression,F.A_rest_element_cannot_contain_a_binding_pattern)}continue}const A=C.name;if(A.kind===167&&d_e(A),C.kind===304&&!m&&C.objectAssignmentInitializer&&qi(C.equalsToken,F.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),A.kind===81&&qi(A,F.Private_identifiers_are_not_allowed_outside_class_bodies),Op(C)&&C.modifiers)for(const I of C.modifiers)Yo(I)&&(I.kind!==134||C.kind!==174)&&qi(I,F._0_modifier_cannot_be_used_here,Vc(I));else if(wFe(C)&&C.modifiers)for(const I of C.modifiers)Yo(I)&&qi(I,F._0_modifier_cannot_be_used_here,Vc(I));let w;switch(C.kind){case 304:case 303:ept(C.exclamationToken,F.A_definite_assignment_assertion_is_not_permitted_in_this_context),qze(C.questionToken,F.An_object_member_cannot_be_declared_optional),A.kind===9&&Qze(A),w=4;break;case 174:w=8;break;case 177:w=1;break;case 178:w=2;break;default:H.assertNever(C,"Unexpected syntax kind:"+C.kind)}if(!m){const I=Xze(A);if(I===void 0)continue;const U=D.get(I);if(!U)D.set(I,w);else if(w&8&&U&8)qi(A,F.Duplicate_identifier_0,Vc(A));else if(w&4&&U&4)qi(A,F.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Vc(A));else if(w&3&&U&3)if(U!==3&&w!==U)D.set(I,w|U);else return qi(A,F.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return qi(A,F.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Oli(l){jli(l.tagName),bie(l,l.typeArguments);const m=new Map;for(const D of l.attributes.properties){if(D.kind===293)continue;const{name:C,initializer:A}=D,w=PP(C);if(!m.get(w))m.set(w,!0);else return qi(C,F.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(A&&A.kind===294&&!A.expression)return qi(A,F.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function jli(l){if(Iu(l)&&mg(l.expression))return qi(l.expression,F.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(mg(l)&&Qq(ae)&&!uB(l.namespace.escapedText))return qi(l,F.React_components_cannot_include_JSX_namespace_names)}function Vli(l){if(l.expression&&XP(l.expression))return qi(l.expression,F.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function tpt(l){if(AD(l))return!0;if(l.kind===250&&l.awaitModifier&&!(l.flags&65536)){const m=In(l);if(lq(l)){if(!jb(m))switch(a7(m,ae)||Os.add(Bu(l.awaitModifier,F.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),ne){case 100:case 199:if(m.impliedNodeFormat===1){Os.add(Bu(l.awaitModifier,F.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(Ce>=4)break;default:Os.add(Bu(l.awaitModifier,F.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!jb(m)){const D=Bu(l.awaitModifier,F.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),C=Lm(l);if(C&&C.kind!==176){H.assert((yd(C)&2)===0,"Enclosing function should never be an async function.");const A=Bu(C,F.Did_you_mean_to_mark_this_function_as_async);ps(D,A)}return Os.add(D),!0}return!1}if(FV(l)&&!(l.flags&65536)&&at(l.initializer)&&l.initializer.escapedText==="async")return qi(l.initializer,F.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(l.initializer.kind===261){const m=l.initializer;if(!Yze(m)){const D=m.declarations;if(!D.length)return!1;if(D.length>1){const A=l.kind===249?F.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:F.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return u1(m.declarations[1],A)}const C=D[0];if(C.initializer){const A=l.kind===249?F.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:F.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return qi(C.name,A)}if(C.type){const A=l.kind===249?F.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:F.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return qi(C,A)}}}return!1}function Hli(l){if(!(l.flags&33554432)&&l.parent.kind!==187&&l.parent.kind!==264){if(Ce<1)return qi(l.name,F.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(Ce<2&&Xr(l.name))return qi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(l.body===void 0&&!Xu(l,64))return Vb(l,l.end-1,1,F._0_expected,"{")}if(l.body){if(Xu(l,64))return qi(l,F.An_abstract_accessor_cannot_have_an_implementation);if(l.parent.kind===187||l.parent.kind===264)return qi(l.body,F.An_implementation_cannot_be_declared_in_ambient_contexts)}if(l.typeParameters)return qi(l.name,F.An_accessor_cannot_have_type_parameters);if(!Kli(l))return qi(l.name,l.kind===177?F.A_get_accessor_cannot_have_parameters:F.A_set_accessor_must_have_exactly_one_parameter);if(l.kind===178){if(l.type)return qi(l.name,F.A_set_accessor_cannot_have_a_return_type_annotation);const m=H.checkDefined(dP(l),"Return value does not match parameter count assertion.");if(m.dotDotDotToken)return qi(m.dotDotDotToken,F.A_set_accessor_cannot_have_rest_parameter);if(m.questionToken)return qi(m.questionToken,F.A_set_accessor_cannot_have_an_optional_parameter);if(m.initializer)return qi(l.name,F.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Kli(l){return Zze(l)||l.parameters.length===(l.kind===177?0:1)}function Zze(l){if(l.parameters.length===(l.kind===177?1:2))return S2(l)}function Wli(l){if(l.operator===158){if(l.type.kind!==155)return qi(l.type,F._0_expected,Jo(155));let m=wj(l.parent);if(eu(m)&&bk(m)){const D=c7(m);D&&(m=Q8(D)||D)}switch(m.kind){case 260:const D=m;if(D.name.kind!==80)return qi(l,F.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!UN(D))return qi(l,F.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(D.parent.flags&2))return qi(m.name,F.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!To(m)||!hP(m))return qi(m.name,F.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Xu(m,8))return qi(m.name,F.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return qi(l,F.unique_symbol_types_are_not_allowed_here)}}else if(l.operator===148&&l.type.kind!==188&&l.type.kind!==189)return u1(l,F.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Jo(155))}function Gz(l,m){if(mXt(l))return qi(l,m)}function ipt(l){if(c_e(l))return!0;if(l.kind===174){if(l.parent.kind===210){if(l.modifiers&&!(l.modifiers.length===1&&Mn(l.modifiers).kind===134))return u1(l,F.Modifiers_cannot_appear_here);if(qze(l.questionToken,F.An_object_member_cannot_be_declared_optional))return!0;if(ept(l.exclamationToken,F.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(l.body===void 0)return Vb(l,l.end-1,1,F._0_expected,"{")}if(Uze(l))return!0}if(gr(l.parent)){if(Ce<2&&Xr(l.name))return qi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(l.flags&33554432)return Gz(l.name,F.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(l.kind===174&&!l.body)return Gz(l.name,F.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(l.parent.kind===264)return Gz(l.name,F.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(l.parent.kind===187)return Gz(l.name,F.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Gli(l){let m=l;for(;m;){if(w8(m))return qi(l,F.Jump_target_cannot_cross_function_boundary);switch(m.kind){case 256:if(l.label&&m.label.escapedText===l.label.escapedText)return l.kind===251&&!wx(m.statement,!0)?qi(l,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(l.kind===252&&!l.label)return!1;break;default:if(wx(m,!1)&&!l.label)return!1;break}m=m.parent}if(l.label){const D=l.kind===252?F.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return qi(l,D)}else{const D=l.kind===252?F.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:F.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return qi(l,D)}}function Jli(l){if(l.dotDotDotToken){const m=l.parent.elements;if(l!==Cr(m))return qi(l,F.A_rest_element_must_be_last_in_a_destructuring_pattern);if(eS(m,F.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),l.propertyName)return qi(l.name,F.A_rest_element_cannot_have_a_property_name)}if(l.dotDotDotToken&&l.initializer)return Vb(l,l.initializer.pos-1,1,F.A_rest_element_cannot_have_an_initializer)}function npt(l){return Nm(l)||l.kind===224&&l.operator===41&&l.operand.kind===9}function $li(l){return l.kind===10||l.kind===224&&l.operator===41&&l.operand.kind===10}function Uli(l){if((Iu(l)||W0(l)&&npt(l.argumentExpression))&&Xl(l.expression))return!!(Ic(l).flags&1056)}function upt(l){const m=l.initializer;if(m){const D=!(npt(m)||Uli(m)||m.kind===112||m.kind===97||$li(m));if((eq(l)||ua(l)&&f_e(l))&&!l.type){if(D)return qi(m,F.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return qi(m,F.Initializers_are_not_allowed_in_ambient_contexts)}}function qli(l){const m=Hb(l),D=m&7;if(Fo(l.name))switch(D){case 6:return qi(l,F._0_declarations_may_not_have_binding_patterns,"await using");case 4:return qi(l,F._0_declarations_may_not_have_binding_patterns,"using")}if(l.parent.parent.kind!==249&&l.parent.parent.kind!==250){if(m&33554432)upt(l);else if(!l.initializer){if(Fo(l.name)&&!Fo(l.parent))return qi(l,F.A_destructuring_declaration_must_have_an_initializer);switch(D){case 6:return qi(l,F._0_declarations_must_be_initialized,"await using");case 4:return qi(l,F._0_declarations_must_be_initialized,"using");case 2:return qi(l,F._0_declarations_must_be_initialized,"const")}}}if(l.exclamationToken&&(l.parent.parent.kind!==243||!l.type||l.initializer||m&33554432)){const C=l.initializer?F.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:l.type?F.A_definite_assignment_assertion_is_not_permitted_in_this_context:F.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return qi(l.exclamationToken,C)}return(ne<5||In(l).impliedNodeFormat===1)&&ne!==4&&!(l.parent.parent.flags&33554432)&&Xu(l.parent.parent,32)&&rpt(l.name),!!D&&apt(l.name)}function rpt(l){if(l.kind===80){if(mu(l)==="__esModule")return Qli("noEmit",l,F.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const m=l.elements;for(const D of m)if(!kd(D))return rpt(D.name)}return!1}function apt(l){if(l.kind===80){if(l.escapedText==="let")return qi(l,F.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const m=l.elements;for(const D of m)kd(D)||apt(D.name)}return!1}function Yze(l){const m=l.declarations;if(eS(l.declarations))return!0;if(!l.declarations.length)return Vb(l,m.pos,m.end-m.pos,F.Variable_declaration_list_cannot_be_empty);const D=l.flags&7;return(D===4||D===6)&&sY(l.parent)?qi(l,D===4?F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:F.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):D===6?bmt(l):!1}function opt(l){switch(l.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return opt(l.parent)}return!0}function Zli(l){if(!opt(l.parent)){const m=Hb(l.declarationList)&7;if(m){const D=m===1?"let":m===2?"const":m===4?"using":m===6?"await using":H.fail("Unknown BlockScope flag");return qi(l,F._0_declarations_can_only_be_declared_inside_a_block,D)}}}function Yli(l){const m=l.name.escapedText;switch(l.keywordToken){case 105:if(m!=="target")return qi(l.name,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Yr(l.name.escapedText),Jo(l.keywordToken),"target");break;case 102:if(m!=="meta")return qi(l.name,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Yr(l.name.escapedText),Jo(l.keywordToken),"meta");break}}function jb(l){return l.parseDiagnostics.length>0}function u1(l,m,...D){const C=In(l);if(!jb(C)){const A=YE(C,l.pos);return Os.add(zd(C,A.start,A.length,m,...D)),!0}return!1}function Vb(l,m,D,C,...A){const w=In(l);return jb(w)?!1:(Os.add(zd(w,m,D,C,...A)),!0)}function Qli(l,m,D,...C){const A=In(m);return jb(A)?!1:(F5(l,m,D,...C),!0)}function qi(l,m,...D){const C=In(l);return jb(C)?!1:(Os.add(Bu(l,m,...D)),!0)}function Xli(l){const m=eu(l)?Mq(l):void 0,D=l.typeParameters||m&&Hi(m);if(D){const C=D.pos===D.end?D.pos:ms(In(l).text,D.pos);return Vb(l,C,D.end-C,F.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function eci(l){const m=l.type||J4(l);if(m)return qi(m,F.Type_annotation_cannot_appear_on_a_constructor_declaration)}function tci(l){if(Ls(l.name)&&tu(l.name.expression)&&l.name.expression.operatorToken.kind===103)return qi(l.parent.members[0],F.A_mapped_type_may_not_declare_properties_or_methods);if(gr(l.parent)){if(ns(l.name)&&l.name.text==="constructor")return qi(l.name,F.Classes_may_not_have_a_field_named_constructor);if(Gz(l.name,F.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(Ce<2&&Xr(l.name))return qi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Ce<2&&Xh(l))return qi(l.name,F.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Xh(l)&&qze(l.questionToken,F.An_accessor_property_cannot_be_declared_optional))return!0}else if(l.parent.kind===264){if(Gz(l.name,F.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(H.assertNode(l,Pm),l.initializer)return qi(l.initializer,F.An_interface_property_cannot_have_an_initializer)}else if(hm(l.parent)){if(Gz(l.name,F.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(H.assertNode(l,Pm),l.initializer)return qi(l.initializer,F.A_type_literal_property_cannot_have_an_initializer)}if(l.flags&33554432&&upt(l),bo(l)&&l.exclamationToken&&(!gr(l.parent)||!l.type||l.initializer||l.flags&33554432||To(l)||T2(l))){const m=l.initializer?F.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:l.type?F.A_definite_assignment_assertion_is_not_permitted_in_this_context:F.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return qi(l.exclamationToken,m)}}function ici(l){return l.kind===264||l.kind===265||l.kind===272||l.kind===271||l.kind===278||l.kind===277||l.kind===270||Xu(l,2208)?!1:u1(l,F.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function nci(l){for(const m of l.statements)if((Y1(m)||m.kind===243)&&ici(m))return!0;return!1}function uci(l){return!!(l.flags&33554432)&&nci(l)}function AD(l){if(l.flags&33554432){if(!sr(l).hasReportedStatementInAmbientContext&&(xo(l.parent)||Bx(l.parent)))return sr(l).hasReportedStatementInAmbientContext=u1(l,F.An_implementation_cannot_be_declared_in_ambient_contexts);if(l.parent.kind===241||l.parent.kind===268||l.parent.kind===312){const D=sr(l.parent);if(!D.hasReportedStatementInAmbientContext)return D.hasReportedStatementInAmbientContext=u1(l,F.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function Qze(l){const m=Vc(l).includes("."),D=l.numericLiteralFlags&16;m||D||+l.text<=9007199254740991||t1(!1,Bu(l,F.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function rci(l){return!!(!(Nv(l.parent)||Pv(l.parent)&&Nv(l.parent.parent))&&Ce<7&&qi(l,F.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function aci(l,m,...D){const C=In(l);if(!jb(C)){const A=YE(C,l.pos);return Os.add(zd(C,gc(A),0,m,...D)),!0}return!1}function oci(){return nh||(nh=[],Ie.forEach((l,m)=>{Ode.test(m)&&nh.push(l)})),nh}function sci(l){var m;return l.isTypeOnly&&l.name&&l.namedBindings?qi(l,F.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):l.isTypeOnly&&((m=l.namedBindings)==null?void 0:m.kind)===275?spt(l.namedBindings):!1}function spt(l){return!!L(l.elements,m=>{if(m.isTypeOnly)return u1(m,m.kind===276?F.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:F.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function lci(l){if(ae.verbatimModuleSyntax&&ne===1)return qi(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ne===5)return qi(l,F.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(l.typeArguments)return qi(l,F.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const m=l.arguments;if(ne!==99&&ne!==199&&ne!==100&&(eS(m),m.length>1)){const C=m[1];return qi(C,F.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(m.length===0||m.length>2)return qi(l,F.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const D=Le(m,nE);return D?qi(D,F.Argument_of_dynamic_import_cannot_be_spread_element):!1}function cci(l,m){const D=$u(l);if(D&20&&m.flags&1048576)return Le(m.types,C=>{if(C.flags&524288){const A=D&$u(C);if(A&4)return l.target===C.target;if(A&16)return!!l.aliasSymbol&&l.aliasSymbol===C.aliasSymbol}return!1})}function dci(l,m){if($u(l)&128&&bE(m,V5))return Le(m.types,D=>!V5(D))}function hci(l,m){let D=0;if(mo(l,D).length>0||(D=1,mo(l,D).length>0))return Le(m.types,A=>mo(A,D).length>0)}function fci(l,m){let D;if(!(l.flags&406978556)){let C=0;for(const A of m.types)if(!(A.flags&406978556)){const w=Es([y_(l),y_(A)]);if(w.flags&4194304)return A;if(Bg(w)||w.flags&1048576){const I=w.flags&1048576?ui(w.types,Bg):1;I>=C&&(D=A,C=I)}}}return D}function mci(l){if(Ol(l,67108864)){const m=zc(l,D=>!(D.flags&402784252));if(!(m.flags&131072))return m}return l}function lpt(l,m,D){if(m.flags&1048576&&l.flags&2621440){const C=Fht(m,l);if(C)return C;const A=n0(l);if(A){const w=kht(A,m);if(w){const I=RPe(m,Kt(w,U=>[()=>Jn(U),U.escapedName]),D);if(I!==m)return I}}}}function Xze(l){const m=ak(l);return m||(Ls(l)?dMe(C1(l.expression)):void 0)}function h_e(l){return Un===l||(Un=l,rn=d2(l)),rn}function Hb(l){return ji===l||(ji=l,xn=YD(l)),xn}function f_e(l){const m=Hb(l)&7;return m===2||m===4||m===6}}function CPt(t){return!Bx(t)}function bet(t){return t.kind!==262&&t.kind!==174||!!t.body}function yet(t){switch(t.parent.kind){case 276:case 281:return at(t);default:return Q3(t)}}function ket(t){switch(t){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function eh(t){return!!(t.flags&1)}function Rde(t){return!!(t.flags&2)}function bPt(t){return{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:wo(t,t.getSymlinkCache),getPackageJsonInfoCache:()=>{var u;return(u=t.getPackageJsonInfoCache)==null?void 0:u.call(t)},useCaseSensitiveFileNames:wo(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:u=>t.getProjectReferenceRedirect(u),isSourceOfProjectReferenceRedirect:u=>t.isSourceOfProjectReferenceRedirect(u),fileExists:u=>t.fileExists(u),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?u=>t.readFile(u):void 0}}var Ode,$Y,NAe,PAe,MAe,zAe,UY,jde,qY,ZY,Fet,YY,IAe,Im,Vde,yPt=o({"src/compiler/checker.ts"(){Ao(),TAe(),Hy(),Ode=/^".+"$/,$Y="(anonymous)",NAe=1,PAe=1,MAe=1,zAe=1,UY=(t=>(t[t.None=0]="None",t[t.TypeofEQString=1]="TypeofEQString",t[t.TypeofEQNumber=2]="TypeofEQNumber",t[t.TypeofEQBigInt=4]="TypeofEQBigInt",t[t.TypeofEQBoolean=8]="TypeofEQBoolean",t[t.TypeofEQSymbol=16]="TypeofEQSymbol",t[t.TypeofEQObject=32]="TypeofEQObject",t[t.TypeofEQFunction=64]="TypeofEQFunction",t[t.TypeofEQHostObject=128]="TypeofEQHostObject",t[t.TypeofNEString=256]="TypeofNEString",t[t.TypeofNENumber=512]="TypeofNENumber",t[t.TypeofNEBigInt=1024]="TypeofNEBigInt",t[t.TypeofNEBoolean=2048]="TypeofNEBoolean",t[t.TypeofNESymbol=4096]="TypeofNESymbol",t[t.TypeofNEObject=8192]="TypeofNEObject",t[t.TypeofNEFunction=16384]="TypeofNEFunction",t[t.TypeofNEHostObject=32768]="TypeofNEHostObject",t[t.EQUndefined=65536]="EQUndefined",t[t.EQNull=131072]="EQNull",t[t.EQUndefinedOrNull=262144]="EQUndefinedOrNull",t[t.NEUndefined=524288]="NEUndefined",t[t.NENull=1048576]="NENull",t[t.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",t[t.Truthy=4194304]="Truthy",t[t.Falsy=8388608]="Falsy",t[t.IsUndefined=16777216]="IsUndefined",t[t.IsNull=33554432]="IsNull",t[t.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",t[t.All=134217727]="All",t[t.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",t[t.BaseStringFacts=12582401]="BaseStringFacts",t[t.StringStrictFacts=16317953]="StringStrictFacts",t[t.StringFacts=16776705]="StringFacts",t[t.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",t[t.EmptyStringFacts=12582401]="EmptyStringFacts",t[t.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",t[t.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",t[t.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",t[t.BaseNumberFacts=12582146]="BaseNumberFacts",t[t.NumberStrictFacts=16317698]="NumberStrictFacts",t[t.NumberFacts=16776450]="NumberFacts",t[t.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",t[t.ZeroNumberFacts=12582146]="ZeroNumberFacts",t[t.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",t[t.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",t[t.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",t[t.BaseBigIntFacts=12581636]="BaseBigIntFacts",t[t.BigIntStrictFacts=16317188]="BigIntStrictFacts",t[t.BigIntFacts=16775940]="BigIntFacts",t[t.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",t[t.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",t[t.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",t[t.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",t[t.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",t[t.BaseBooleanFacts=12580616]="BaseBooleanFacts",t[t.BooleanStrictFacts=16316168]="BooleanStrictFacts",t[t.BooleanFacts=16774920]="BooleanFacts",t[t.FalseStrictFacts=12121864]="FalseStrictFacts",t[t.FalseFacts=12580616]="FalseFacts",t[t.TrueStrictFacts=7927560]="TrueStrictFacts",t[t.TrueFacts=16774920]="TrueFacts",t[t.SymbolStrictFacts=7925520]="SymbolStrictFacts",t[t.SymbolFacts=16772880]="SymbolFacts",t[t.ObjectStrictFacts=7888800]="ObjectStrictFacts",t[t.ObjectFacts=16736160]="ObjectFacts",t[t.FunctionStrictFacts=7880640]="FunctionStrictFacts",t[t.FunctionFacts=16728e3]="FunctionFacts",t[t.VoidFacts=9830144]="VoidFacts",t[t.UndefinedFacts=26607360]="UndefinedFacts",t[t.NullFacts=42917664]="NullFacts",t[t.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",t[t.EmptyObjectFacts=83886079]="EmptyObjectFacts",t[t.UnknownFacts=83886079]="UnknownFacts",t[t.AllTypeofNE=556800]="AllTypeofNE",t[t.OrFactsMask=8256]="OrFactsMask",t[t.AndFactsMask=134209471]="AndFactsMask",t))(UY||{}),jde=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),qY=(t=>(t[t.Normal=0]="Normal",t[t.Contextual=1]="Contextual",t[t.Inferential=2]="Inferential",t[t.SkipContextSensitive=4]="SkipContextSensitive",t[t.SkipGenericFunctions=8]="SkipGenericFunctions",t[t.IsForSignatureHelp=16]="IsForSignatureHelp",t[t.RestBindingElement=32]="RestBindingElement",t[t.TypeOnly=64]="TypeOnly",t))(qY||{}),ZY=(t=>(t[t.None=0]="None",t[t.BivariantCallback=1]="BivariantCallback",t[t.StrictCallback=2]="StrictCallback",t[t.IgnoreReturnTypes=4]="IgnoreReturnTypes",t[t.StrictArity=8]="StrictArity",t[t.StrictTopSignature=16]="StrictTopSignature",t[t.Callback=3]="Callback",t))(ZY||{}),Fet=U$(bet,CPt),YY=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),IAe=class{},(t=>{t.JSX="JSX",t.IntrinsicElements="IntrinsicElements",t.ElementClass="ElementClass",t.ElementAttributesPropertyNameContainer="ElementAttributesProperty",t.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",t.Element="Element",t.ElementType="ElementType",t.IntrinsicAttributes="IntrinsicAttributes",t.IntrinsicClassAttributes="IntrinsicClassAttributes",t.LibraryManagedAttributes="LibraryManagedAttributes"})(Im||(Im={})),Vde=class O6t{constructor(u,s,d){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var f;s instanceof O6t;)s=s.inner;this.inner=s,this.moduleResolverHost=d,this.context=u,this.canTrackSymbol=!!((f=this.inner)!=null&&f.trackSymbol)}trackSymbol(u,s,d){var f,p;if((f=this.inner)!=null&&f.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(u,s,d))return this.onDiagnosticReported(),!0;u.flags&262144||((p=this.context).trackedSymbols??(p.trackedSymbols=[])).push([u,s,d])}return!1}reportInaccessibleThisError(){var u;(u=this.inner)!=null&&u.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(u){var s;(s=this.inner)!=null&&s.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(u))}reportInaccessibleUniqueSymbolError(){var u;(u=this.inner)!=null&&u.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var u;(u=this.inner)!=null&&u.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(u){var s;(s=this.inner)!=null&&s.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(u))}reportTruncationError(){var u;(u=this.inner)!=null&&u.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(u,s){var d;(d=this.inner)!=null&&d.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(u,s))}trackExternalModuleSymbolOfImportTypeNode(u){var s;(s=this.inner)!=null&&s.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(u))}reportNonlocalAugmentation(u,s,d){var f;(f=this.inner)!=null&&f.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(u,s,d))}reportNonSerializableProperty(u){var s;(s=this.inner)!=null&&s.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(u))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function yt(t,u,s,d){if(t===void 0)return t;const f=u(t);let p;if(f!==void 0)return Ha(f)?p=(d||BPt)(f):p=f,H.assertNode(p,s),p}function Fn(t,u,s,d,f){if(t===void 0)return t;const p=t.length;(d===void 0||d<0)&&(d=0),(f===void 0||f>p-d)&&(f=p-d);let E,v=-1,b=-1;d>0||fp-d)&&(f=p-d),Aet(t,u,s,d,f)}function Aet(t,u,s,d,f){let p;const E=t.length;(d>0||f=2&&(f=kPt(f,s)),s.setLexicalEnvironmentFlags(1,!1)),s.suspendLexicalEnvironment(),f}function kPt(t,u){let s;for(let d=0;d{const E=dv,addSource:We,setSourceContent:Ae,addName:De,addMapping:ft,appendSourceMap:Ze,toJSON:Ie,toString:()=>JSON.stringify(Ie())};function We(St){p();const It=e7(d,St,t.getCurrentDirectory(),t.getCanonicalFileName,!0);let ti=B.get(It);return ti===void 0&&(ti=b.length,b.push(It),v.push(St),B.set(It,ti)),E(),ti}function Ae(St,It){if(p(),It!==null){for(k||(k=[]);k.lengthIt||Se===It&&Ne>ti)}function ft(St,It,ti,ht,Ut,Li){H.assert(St>=Ce,"generatedLine cannot backtrack"),H.assert(It>=0,"generatedCharacter cannot be negative"),H.assert(ti===void 0||ti>=0,"sourceIndex cannot be negative"),H.assert(ht===void 0||ht>=0,"sourceLine cannot be negative"),H.assert(Ut===void 0||Ut>=0,"sourceCharacter cannot be negative"),p(),(He(St,It)||Ge(ti,ht,Ut))&&(Gt(),Ce=St,ne=It,xe=!1,Be=!1,fe=!0),ti!==void 0&&ht!==void 0&&Ut!==void 0&&(ve=ti,Se=ht,Ne=Ut,xe=!0,Li!==void 0&&(pe=Li,Be=!0)),E()}function Ze(St,It,ti,ht,Ut,Li){H.assert(St>=Ce,"generatedLine cannot backtrack"),H.assert(It>=0,"generatedCharacter cannot be negative"),p();const ji=[];let xn;const Un=Wde(ti.mappings);for(const rn of Un){if(Li&&(rn.generatedLine>Li.line||rn.generatedLine===Li.line&&rn.generatedCharacter>Li.character))break;if(Ut&&(rn.generatedLine=1024&&Yt()}function Gt(){if(!(!fe||!je())){if(p(),J0&&(j+=String.fromCharCode.apply(void 0,z),z.length=0)}function Ie(){return Gt(),Yt(),{version:3,file:u,sourceRoot:s,sources:b,names:T,mappings:j,sourcesContent:k}}function st(St){St<0?St=(-St<<1)+1:St=St<<1;do{let It=St&31;St=St>>5,St>0&&(It=It|32),Ke(LPt(It))}while(St>0)}}function Hde(t,u){return{getLineCount:()=>u.length,getLineText:s=>t.substring(u[s],u[s+1])}}function OAe(t){for(let u=t.getLineCount()-1;u>=0;u--){const s=t.getLineText(u),d=XY.exec(s);if(d)return d[1].trimEnd();if(!s.match(eQ))break}}function TPt(t){return typeof t=="string"||t===null}function jAe(t){return t!==null&&typeof t=="object"&&t.version===3&&typeof t.file=="string"&&typeof t.mappings=="string"&&Ha(t.sources)&&ye(t.sources,Ja)&&(t.sourceRoot===void 0||t.sourceRoot===null||typeof t.sourceRoot=="string")&&(t.sourcesContent===void 0||t.sourcesContent===null||Ha(t.sourcesContent)&&ye(t.sourcesContent,TPt))&&(t.names===void 0||t.names===null||Ha(t.names)&&ye(t.names,Ja))}function Kde(t){try{const u=JSON.parse(t);if(jAe(u))return u}catch{}}function Wde(t){let u=!1,s=0,d=0,f=0,p=0,E=0,v=0,b=0,B;return{get pos(){return s},get error(){return B},get state(){return k(!0,!0)},next(){for(;!u&&s=t.length)return M("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const ge=NPt(t.charCodeAt(s));if(ge===-1)return M("Invalid character in VLQ"),-1;Y=(ge&32)!==0,se=se|(ge&31)<>1,se=-se):se=se>>1,se}}function wet(t,u){return t===u||t.generatedLine===u.generatedLine&&t.generatedCharacter===u.generatedCharacter&&t.sourceIndex===u.sourceIndex&&t.sourceLine===u.sourceLine&&t.sourceCharacter===u.sourceCharacter&&t.nameIndex===u.nameIndex}function VAe(t){return t.sourceIndex!==void 0&&t.sourceLine!==void 0&&t.sourceCharacter!==void 0}function LPt(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:t===62?43:t===63?47:H.fail(`${t}: not a base64 value`)}function NPt(t){return t>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:t===43?62:t===47?63:-1}function Tet(t){return t.sourceIndex!==void 0&&t.sourcePosition!==void 0}function Let(t,u){return t.generatedPosition===u.generatedPosition&&t.sourceIndex===u.sourceIndex&&t.sourcePosition===u.sourcePosition}function PPt(t,u){return H.assert(t.sourceIndex===u.sourceIndex),tl(t.sourcePosition,u.sourcePosition)}function MPt(t,u){return tl(t.generatedPosition,u.generatedPosition)}function zPt(t){return t.sourcePosition}function IPt(t){return t.generatedPosition}function HAe(t,u,s){const d=dr(s),f=u.sourceRoot?$a(u.sourceRoot,d):d,p=$a(u.file,d),E=t.getSourceFileLike(p),v=u.sources.map(oe=>$a(oe,f)),b=new Map(v.map((oe,se)=>[t.getCanonicalFileName(oe),se]));let B,k,T;return{getSourcePosition:Y,getGeneratedPosition:K};function M(oe){const se=E!==void 0?BO(E,oe.generatedLine,oe.generatedCharacter,!0):-1;let ge,ae;if(VAe(oe)){const Ce=t.getSourceFileLike(v[oe.sourceIndex]);ge=u.sources[oe.sourceIndex],ae=Ce!==void 0?BO(Ce,oe.sourceLine,oe.sourceCharacter,!0):-1}return{generatedPosition:se,source:ge,sourceIndex:oe.sourceIndex,sourcePosition:ae,nameIndex:oe.nameIndex}}function z(){if(B===void 0){const oe=Wde(u.mappings),se=Ea(oe,M);oe.error!==void 0?(t.log&&t.log(`Encountered error while decoding sourcemap: ${oe.error}`),B=_t):B=se}return B}function j(oe){if(T===void 0){const se=[];for(const ge of z()){if(!Tet(ge))continue;let ae=se[ge.sourceIndex];ae||(se[ge.sourceIndex]=ae=[]),ae.push(ge)}T=se.map(ge=>mi(ge,PPt,Let))}return T[oe]}function J(){if(k===void 0){const oe=[];for(const se of z())oe.push(se);k=mi(oe,MPt,Let)}return k}function K(oe){const se=b.get(t.getCanonicalFileName(oe.fileName));if(se===void 0)return oe;const ge=j(se);if(!qe(ge))return oe;let ae=Ca(ge,oe.pos,zPt,tl);ae<0&&(ae=~ae);const Ce=ge[ae];return Ce===void 0||Ce.sourceIndex!==se?oe:{fileName:p,pos:Ce.generatedPosition}}function Y(oe){const se=J();if(!qe(se))return oe;let ge=Ca(se,oe.pos,IPt,tl);ge<0&&(ge=~ge);const ae=se[ge];return ae===void 0||!Tet(ae)?oe:{fileName:v[ae.sourceIndex],pos:ae.sourcePosition}}}var Gde,XY,eQ,tQ,RPt=o({"src/compiler/sourcemap.ts"(){Ao(),Hy(),Gde=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,XY=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,eQ=/^\s*(\/\/[@#] .*)?$/,tQ={getSourcePosition:el,getGeneratedPosition:el}}});function P1(t){return t=Kl(t),t?Js(t):0}function OPt(t){return!t||!nD(t)?!1:qe(t.elements,Net)}function Net(t){return t.propertyName!==void 0&&t.propertyName.escapedText==="default"}function jp(t,u){return s;function s(f){return f.kind===312?u(f):d(f)}function d(f){return t.factory.createBundle(Kt(f.sourceFiles,u),f.prepends)}}function KAe(t){return!!Z8(t)}function iQ(t){if(Z8(t))return!0;const u=t.importClause&&t.importClause.namedBindings;if(!u||!nD(u))return!1;let s=0;for(const d of u.elements)Net(d)&&s++;return s>0&&s!==u.elements.length||!!(u.elements.length-s)&&s7(t)}function Jde(t){return!iQ(t)&&(s7(t)||!!t.importClause&&nD(t.importClause.namedBindings)&&OPt(t.importClause.namedBindings))}function $de(t,u){const s=t.getEmitResolver(),d=t.getCompilerOptions(),f=[],p=new Yde,E=[],v=new Map;let b,B=!1,k,T=!1,M=!1,z=!1;for(const K of u.statements)switch(K.kind){case 272:f.push(K),!M&&iQ(K)&&(M=!0),!z&&Jde(K)&&(z=!0);break;case 271:K.moduleReference.kind===283&&f.push(K);break;case 278:if(K.moduleSpecifier)if(!K.exportClause)f.push(K),T=!0;else if(f.push(K),Q4(K.exportClause))J(K);else{const Y=K.exportClause.name;v.get(mu(Y))||(hM(E,P1(K),Y),v.set(mu(Y),!0),b=Ei(b,Y)),M=!0}else J(K);break;case 277:K.isExportEquals&&!k&&(k=K);break;case 243:if(Xu(K,32))for(const Y of K.declarationList.declarations)b=Pet(Y,v,b,E);break;case 262:if(Xu(K,32))if(Xu(K,2048))B||(hM(E,P1(K),t.factory.getDeclarationName(K)),B=!0);else{const Y=K.name;v.get(mu(Y))||(hM(E,P1(K),Y),v.set(mu(Y),!0),b=Ei(b,Y))}break;case 263:if(Xu(K,32))if(Xu(K,2048))B||(hM(E,P1(K),t.factory.getDeclarationName(K)),B=!0);else{const Y=K.name;Y&&!v.get(mu(Y))&&(hM(E,P1(K),Y),v.set(mu(Y),!0),b=Ei(b,Y))}break}const j=Rce(t.factory,t.getEmitHelperFactory(),u,d,T,M,z);return j&&f.unshift(j),{externalImports:f,exportSpecifiers:p,exportEquals:k,hasExportStarsToExportValues:T,exportedBindings:E,exportedNames:b,externalHelpersImportDeclaration:j};function J(K){for(const Y of Lo(K.exportClause,Q4).elements)if(!v.get(mu(Y.name))){const oe=Y.propertyName||Y.name;K.moduleSpecifier||p.add(oe,Y);const se=s.getReferencedImportDeclaration(oe)||s.getReferencedValueDeclaration(oe);se&&hM(E,P1(se),Y.name),v.set(mu(Y.name),!0),b=Ei(b,Y.name)}}}function Pet(t,u,s,d){if(Fo(t.name))for(const f of t.name.elements)kd(f)||(s=Pet(f,u,s,d));else if(!ul(t.name)){const f=mu(t.name);u.get(f)||(u.set(f,!0),s=Ei(s,t.name),uD(t.name)&&hM(d,P1(t),t.name))}return s}function hM(t,u,s){let d=t[u];return d?d.push(s):t[u]=d=[s],d}function U2(t){return t0(t)||t.kind===9||nf(t.kind)||at(t)}function oE(t){return!at(t)&&U2(t)}function fM(t){return t>=65&&t<=79}function mM(t){switch(t){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function nQ(t){if(!Id(t))return;const u=s0(t.expression);return ek(u)?u:void 0}function Met(t,u,s){for(let d=u;dVPt(d,u,s))}function jPt(t){return HPt(t)||Ml(t)}function rQ(t){return ei(t.members,jPt)}function VPt(t,u,s){return bo(t)&&(!!t.initializer||!u)&&Hc(t)===s}function HPt(t){return bo(t)&&Hc(t)}function dH(t){return t.kind===172&&t.initializer!==void 0}function WAe(t){return!To(t)&&(T8(t)||Xh(t))&&Xr(t.name)}function GAe(t){let u;if(t){const s=t.parameters,d=s.length>0&&B2(s[0]),f=d?1:0,p=d?s.length-1:s.length;for(let E=0;EZde(s.privateEnv,u))}var q7,Yde,GPt=o({"src/compiler/transformers/utilities.ts"(){Ao(),q7=class wT{constructor(){this._map=new Map}get size(){return this._map.size}has(u){return this._map.has(wT.toKey(u))}get(u){return this._map.get(wT.toKey(u))}set(u,s){return this._map.set(wT.toKey(u),s),this}delete(u){var s;return((s=this._map)==null?void 0:s.delete(wT.toKey(u)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(u){if(Jy(u)||ul(u)){const s=u.emitNode.autoGenerate;if((s.flags&7)===4){const d=RV(u),f=G_(d)&&d!==u?wT.toKey(d):`(generated@${Js(d)})`;return Rv(!1,s.prefix,f,s.suffix,wT.toKey)}else{const d=`(auto@${s.id})`;return Rv(!1,s.prefix,d,s.suffix,wT.toKey)}}return Xr(u)?mu(u).slice(1):mu(u)}},Yde=class extends q7{add(t,u){let s=this.get(t);return s?s.push(u):this.set(t,s=[u]),s}remove(t,u){const s=this.get(t);s&&(Oy(s,u),s.length||this.delete(t))}}}});function Sk(t,u,s,d,f,p){let E=t,v;if(u5(t))for(v=t.right;Mye(t.left)||cle(t.left);)if(u5(v))E=t=v,v=t.right;else return H.checkDefined(yt(v,u,Wt));let b;const B={context:s,level:d,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:k,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:M=>XPt(s.factory,M),createObjectBindingOrAssignmentPattern:M=>tMt(s.factory,M),createArrayBindingOrAssignmentElement:nMt,visitor:u};if(v&&(v=yt(v,u,Wt),H.assert(v),at(v)&&qAe(t,v.escapedText)||ZAe(t)?v=Z7(B,v,!1,E):f?v=Z7(B,v,!0,E):al(t)&&(E=v)),pM(B,t,v,E,u5(t)),v&&f){if(!qe(b))return v;b.push(v)}return s.factory.inlineExpressions(b)||s.factory.createOmittedExpression();function k(M){b=Ei(b,M)}function T(M,z,j,J){H.assertNode(M,p?at:Wt);const K=p?p(M,z,j):Pt(s.factory.createAssignment(H.checkDefined(yt(M,u,Wt)),z),j);K.original=J,k(K)}}function qAe(t,u){const s=Jx(t);return JO(s)?JPt(s,u):at(s)?s.escapedText===u:!1}function JPt(t,u){const s=MB(t);for(const d of s)if(qAe(d,u))return!0;return!1}function ZAe(t){const u=xY(t);if(u&&Ls(u)&&!m2(u.expression))return!0;const s=Jx(t);return!!s&&JO(s)&&$Pt(s)}function $Pt(t){return!!L(MB(t),ZAe)}function q2(t,u,s,d,f,p=!1,E){let v;const b=[],B=[],k={context:s,level:d,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:p,emitExpression:T,emitBindingOrAssignment:M,createArrayBindingOrAssignmentPattern:z=>QPt(s.factory,z),createObjectBindingOrAssignmentPattern:z=>eMt(s.factory,z),createArrayBindingOrAssignmentElement:z=>iMt(s.factory,z),visitor:u};if(ua(t)){let z=zV(t);z&&(at(z)&&qAe(t,z.escapedText)||ZAe(t))&&(z=Z7(k,H.checkDefined(yt(z,k.visitor,Wt)),!1,z),t=s.factory.updateVariableDeclaration(t,t.name,void 0,void 0,z))}if(pM(k,t,f,t,E),v){const z=s.factory.createTempVariable(void 0);if(p){const j=s.factory.inlineExpressions(v);v=void 0,M(z,j,void 0,void 0)}else{s.hoistVariableDeclaration(z);const j=Cr(b);j.pendingExpressions=Ei(j.pendingExpressions,s.factory.createAssignment(z,j.value)),kn(j.pendingExpressions,v),j.value=z}}for(const{pendingExpressions:z,name:j,value:J,location:K,original:Y}of b){const oe=s.factory.createVariableDeclaration(j,void 0,void 0,z?s.factory.inlineExpressions(Ei(z,J)):J);oe.original=Y,Pt(oe,K),B.push(oe)}return B;function T(z){v=Ei(v,z)}function M(z,j,J,K){H.assertNode(z,$y),v&&(j=s.factory.inlineExpressions(Ei(v,j)),v=void 0),b.push({pendingExpressions:v,name:z,value:j,location:J,original:K})}}function pM(t,u,s,d,f){const p=Jx(u);if(!f){const E=yt(zV(u),t.visitor,Wt);E?s?(s=ZPt(t,s,E,d),!oE(E)&&JO(p)&&(s=Z7(t,s,!0,d))):s=E:s||(s=t.context.factory.createVoidZero())}Zse(p)?UPt(t,u,p,s,d):Yse(p)?qPt(t,u,p,s,d):t.emitBindingOrAssignment(p,s,d,u)}function UPt(t,u,s,d,f){const p=MB(s),E=p.length;if(E!==1){const B=!GO(u)||E!==0;d=Z7(t,d,B,f)}let v,b;for(let B=0;B=1&&!(k.transformFlags&98304)&&!(Jx(k).transformFlags&98304)&&!Ls(T))v=Ei(v,yt(k,t.visitor,nbe));else{v&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(v),d,f,s),v=void 0);const M=YPt(t,d,T);Ls(T)&&(b=Ei(b,M.argumentExpression)),pM(t,k,M,k)}}}v&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(v),d,f,s)}function qPt(t,u,s,d,f){const p=MB(s),E=p.length;if(t.level<1&&t.downlevelIteration)d=Z7(t,Pt(t.context.getEmitHelperFactory().createReadHelper(d,E>0&&DY(p[E-1])?void 0:E),f),!1,f);else if(E!==1&&(t.level<1||E===0)||ye(p,kd)){const B=!GO(u)||E!==0;d=Z7(t,d,B,f)}let v,b;for(let B=0;B=1)if(k.transformFlags&65536||t.hasTransformedPriorElement&&!Iet(k)){t.hasTransformedPriorElement=!0;const T=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(T),b=Ei(b,[T,k]),v=Ei(v,t.createArrayBindingOrAssignmentElement(T))}else v=Ei(v,k);else{if(kd(k))continue;if(DY(k)){if(B===E-1){const T=t.context.factory.createArraySliceCall(d,B);pM(t,k,T,k)}}else{const T=t.context.factory.createElementAccessExpression(d,B);pM(t,k,T,k)}}}if(v&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(v),d,f,s),b)for(const[B,k]of b)pM(t,k,B,k)}function Iet(t){const u=Jx(t);if(!u||kd(u))return!0;const s=xY(t);if(s&&!Qg(s))return!1;const d=zV(t);return d&&!oE(d)?!1:JO(u)?ye(MB(u),Iet):at(u)}function ZPt(t,u,s,d){return u=Z7(t,u,!0,d),t.context.factory.createConditionalExpression(t.context.factory.createTypeCheck(u,"undefined"),void 0,s,void 0,u)}function YPt(t,u,s){const{factory:d}=t.context;if(Ls(s)){const f=Z7(t,H.checkDefined(yt(s.expression,t.visitor,Wt)),!1,s);return t.context.factory.createElementAccessExpression(u,f)}else if(Nm(s)){const f=d.cloneNode(s);return t.context.factory.createElementAccessExpression(u,f)}else{const f=t.context.factory.createIdentifier(mu(s));return t.context.factory.createPropertyAccessExpression(u,f)}}function Z7(t,u,s,d){if(at(u)&&s)return u;{const f=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(f),t.emitExpression(Pt(t.context.factory.createAssignment(f,u),d))):t.emitBindingOrAssignment(f,u,d,void 0),f}}function QPt(t,u){return H.assertEachNode(u,zU),t.createArrayBindingPattern(u)}function XPt(t,u){return H.assertEachNode(u,UO),t.createArrayLiteralExpression(Kt(u,t.converters.convertToArrayAssignmentElement))}function eMt(t,u){return H.assertEachNode(u,Rs),t.createObjectBindingPattern(u)}function tMt(t,u){return H.assertEachNode(u,$O),t.createObjectLiteralExpression(Kt(u,t.converters.convertToObjectAssignmentElement))}function iMt(t,u){return t.createBindingElement(void 0,void 0,u)}function nMt(t){return t}var Qde,uMt=o({"src/compiler/transformers/destructuring.ts"(){Ao(),Qde=(t=>(t[t.All=0]="All",t[t.ObjectRest=1]="ObjectRest",t))(Qde||{})}});function YAe(t,u,s=t.createThis()){const d=t.createAssignment(u,s),f=t.createExpressionStatement(d),p=t.createBlock([f],!1),E=t.createClassStaticBlockDeclaration(p);return N1(E).classThis=u,E}function gM(t){var u;if(!Ml(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Id(s)&&od(s.expression,!0)&&at(s.expression.left)&&((u=t.emitNode)==null?void 0:u.classThis)===s.expression.left&&s.expression.right.kind===110}function Xde(t){var u;return!!((u=t.emitNode)!=null&&u.classThis)&&qe(t.members,gM)}function QAe(t,u,s,d){if(Xde(u))return u;const f=YAe(t,s,d);u.name&&ks(f.body.statements[0],u.name);const p=t.createNodeArray([f,...u.members]);Pt(p,u.members);const E=Kc(u)?t.updateClassDeclaration(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,p):t.updateClassExpression(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,p);return N1(E).classThis=s,E}var rMt=o({"src/compiler/transformers/classThis.ts"(){Ao()}});function EM(t,u,s){const d=Kl(_c(s));return(Kc(d)||Xc(d))&&!d.name&&Xu(d,2048)?t.createStringLiteral("default"):t.createStringLiteralFromNode(u)}function Ret(t,u,s){const{factory:d}=t;if(s!==void 0)return{assignedName:d.createStringLiteral(s),name:u};if(Qg(u)||Xr(u))return{assignedName:d.createStringLiteralFromNode(u),name:u};if(Qg(u.expression)&&!at(u.expression))return{assignedName:d.createStringLiteralFromNode(u.expression),name:u};const f=d.getGeneratedNameForNode(u);t.hoistVariableDeclaration(f);const p=t.getEmitHelperFactory().createPropKeyHelper(u.expression),E=d.createAssignment(f,p),v=d.updateComputedPropertyName(u,E);return{assignedName:f,name:v}}function XAe(t,u,s=t.factory.createThis()){const{factory:d}=t,f=t.getEmitHelperFactory().createSetFunctionNameHelper(s,u),p=d.createExpressionStatement(f),E=d.createBlock([p],!1),v=d.createClassStaticBlockDeclaration(E);return N1(v).assignedName=u,v}function Y7(t){var u;if(!Ml(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Id(s)&&OP(s.expression,"___setFunctionName")&&s.expression.arguments.length>=2&&s.expression.arguments[1]===((u=t.emitNode)==null?void 0:u.assignedName)}function oQ(t){var u;return!!((u=t.emitNode)!=null&&u.assignedName)&&qe(t.members,Y7)}function e1e(t){return!!t.name||oQ(t)}function sQ(t,u,s,d){if(oQ(u))return u;const{factory:f}=t,p=XAe(t,s,d);u.name&&ks(p.body.statements[0],u.name);const E=$e(u.members,gM)+1,v=u.members.slice(0,E),b=u.members.slice(E),B=f.createNodeArray([...v,p,...b]);return Pt(B,u.members),u=Kc(u)?f.updateClassDeclaration(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,B):f.updateClassExpression(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,B),N1(u).assignedName=s,u}function JB(t,u,s,d){if(d&&ns(s)&&S0e(s))return u;const{factory:f}=t,p=_c(u),E=Qd(p)?Lo(sQ(t,p,s),Qd):t.getEmitHelperFactory().createSetFunctionNameHelper(p,s);return f.restoreOuterExpressions(u,E)}function aMt(t,u,s,d){const{factory:f}=t,{assignedName:p,name:E}=Ret(t,u.name,d),v=JB(t,u.initializer,p,s);return f.updatePropertyAssignment(u,E,v)}function oMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):EM(f,u.name,u.objectAssignmentInitializer),E=JB(t,u.objectAssignmentInitializer,p,s);return f.updateShorthandPropertyAssignment(u,u.name,E)}function sMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):EM(f,u.name,u.initializer),E=JB(t,u.initializer,p,s);return f.updateVariableDeclaration(u,u.name,u.exclamationToken,u.type,E)}function lMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):EM(f,u.name,u.initializer),E=JB(t,u.initializer,p,s);return f.updateParameterDeclaration(u,u.modifiers,u.dotDotDotToken,u.name,u.questionToken,u.type,E)}function cMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):EM(f,u.name,u.initializer),E=JB(t,u.initializer,p,s);return f.updateBindingElement(u,u.dotDotDotToken,u.propertyName,u.name,E)}function dMt(t,u,s,d){const{factory:f}=t,{assignedName:p,name:E}=Ret(t,u.name,d),v=JB(t,u.initializer,p,s);return f.updatePropertyDeclaration(u,u.modifiers,E,u.questionToken??u.exclamationToken,u.type,v)}function hMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):EM(f,u.left,u.right),E=JB(t,u.right,p,s);return f.updateBinaryExpression(u,u.left,u.operatorToken,E)}function fMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):f.createStringLiteral(u.isExportEquals?"":"default"),E=JB(t,u.expression,p,s);return f.updateExportAssignment(u,u.modifiers,E)}function jf(t,u,s,d){switch(u.kind){case 303:return aMt(t,u,s,d);case 304:return oMt(t,u,s,d);case 260:return sMt(t,u,s,d);case 169:return lMt(t,u,s,d);case 208:return cMt(t,u,s,d);case 172:return dMt(t,u,s,d);case 226:return hMt(t,u,s,d);case 277:return fMt(t,u,s,d)}}var mMt=o({"src/compiler/transformers/namedEvaluation.ts"(){Ao()}});function t1e(t,u,s,d,f,p){const E=yt(u.tag,s,Wt);H.assert(E);const v=[void 0],b=[],B=[],k=u.template;if(p===0&&!Y0e(k))return un(u,s,t);const{factory:T}=t;if(B7(k))b.push(e7e(T,k)),B.push(t7e(T,k,d));else{b.push(e7e(T,k.head)),B.push(t7e(T,k.head,d));for(const z of k.templateSpans)b.push(e7e(T,z.literal)),B.push(t7e(T,z.literal,d)),v.push(H.checkDefined(yt(z.expression,s,Wt)))}const M=t.getEmitHelperFactory().createTemplateObjectHelper(T.createArrayLiteralExpression(b),T.createArrayLiteralExpression(B));if(Bc(d)){const z=T.createUniqueName("templateObject");f(z),v[0]=T.createLogicalOr(z,T.createAssignment(z,M))}else v[0]=M;return T.createCallExpression(E,void 0,v)}function e7e(t,u){return u.templateFlags&26656?t.createVoidZero():t.createStringLiteral(u.text)}function t7e(t,u,s){let d=u.rawText;if(d===void 0){H.assertIsDefined(s,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),d=E2(s,u);const f=u.kind===15||u.kind===18;d=d.substring(1,d.length-(f?1:2))}return d=d.replace(/\r\n?/g,` -`),Pt(t.createStringLiteral(d),u)}var i1e,pMt=o({"src/compiler/transformers/taggedTemplate.ts"(){Ao(),i1e=(t=>(t[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",t))(i1e||{})}});function i7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,resumeLexicalEnvironment:f,endLexicalEnvironment:p,hoistVariableDeclaration:E}=t,v=t.getEmitResolver(),b=t.getCompilerOptions(),B=Is(b),k=f1(b),T=!!b.experimentalDecorators,M=b.emitDecoratorMetadata?u7e(t):void 0,z=t.onEmitNode,j=t.onSubstituteNode;t.onEmitNode=Kp,t.onSubstituteNode=Tc,t.enableSubstitution(211),t.enableSubstitution(212);let J,K,Y,oe,se,ge,ae,Ce;return ne;function ne($){return $.kind===313?ve($):Se($)}function ve($){return u.createBundle($.sourceFiles.map(Se),Ui($.prepends,tt=>tt.kind===315?ice(tt,"js"):tt))}function Se($){if($.isDeclarationFile)return $;J=$;const tt=Ne($,st);return tD(tt,t.readEmitHelpers()),J=void 0,tt}function Ne($,tt){const vt=oe,hi=se,fn=ge;pe($);const Gu=tt($);return oe!==vt&&(se=hi),oe=vt,ge=fn,Gu}function pe($){switch($.kind){case 312:case 269:case 268:case 241:oe=$,se=void 0;break;case 263:case 262:if(Xu($,128))break;$.name?Oe($):H.assert($.kind===263||Xu($,2048));break}}function fe($){return Ne($,xe)}function xe($){return $.transformFlags&1?Ie($):$}function Be($){return Ne($,We)}function We($){switch($.kind){case 272:case 271:case 277:case 278:return Ae($);default:return xe($)}}function Ae($){if(Ua($)!==$)return $.transformFlags&1?un($,fe,t):$;switch($.kind){case 272:return $i($);case 271:return rs($);case 277:return Er($);case 278:return tr($);default:H.fail("Unhandled ellided statement")}}function De($){return Ne($,He)}function He($){if(!($.kind===278||$.kind===272||$.kind===273||$.kind===271&&$.moduleReference.kind===283))return $.transformFlags&1||Xu($,32)?Ie($):$}function Ge($){return tt=>Ne(tt,vt=>ft(vt,$))}function ft($,tt){switch($.kind){case 176:return bn($);case 172:return Dn($,tt);case 177:return Zo($,tt);case 178:return vo($,tt);case 174:return ra($,tt);case 175:return un($,fe,t);case 240:return $;case 181:return;default:return H.failBadSyntaxKind($)}}function Ze($){return tt=>Ne(tt,vt=>je(vt,$))}function je($,tt){switch($.kind){case 303:case 304:case 305:return fe($);case 177:return Zo($,tt);case 178:return vo($,tt);case 174:return ra($,tt);default:return H.failBadSyntaxKind($)}}function Ke($){return p1($)?void 0:fe($)}function Gt($){return Yo($)?void 0:fe($)}function Yt($){if(!p1($)&&!(g7($.kind)&28895)&&!(K&&$.kind===95))return $}function Ie($){if(na($)&&Xu($,128))return u.createNotEmittedStatement($);switch($.kind){case 95:case 90:return K?void 0:$;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return u.createNotEmittedStatement($);case 270:return;case 264:return u.createNotEmittedStatement($);case 263:return Ut($);case 231:return Li($);case 298:return jn($);case 233:return Nn($);case 210:return St($);case 176:case 172:case 174:case 177:case 178:case 175:return H.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Qe($);case 218:return Et($);case 219:return Mt($);case 169:return qt($);case 217:return gt($);case 216:case 234:return ii($);case 238:return ni($);case 213:return _i($);case 214:return mt($);case 215:return jt($);case 235:return me($);case 266:return on($);case 243:return Xt($);case 260:return et($);case 267:return ct($);case 271:return rs($);case 285:return pi($);case 286:return Ji($);default:return un($,fe,t)}}function st($){const tt=U4(b,"alwaysStrict")&&!(Bc($)&&k>=5)&&!H4($);return u.updateSourceFile($,QY($.statements,Be,t,0,tt))}function St($){return u.updateObjectLiteralExpression($,Fn($.properties,Ze($),q3))}function It($){let tt=0;qe(Ude($,!0,!0))&&(tt|=1);const vt=Yg($);return vt&&_c(vt.expression).kind!==106&&(tt|=64),e5(T,$)&&(tt|=2),YN(T,$)&&(tt|=4),So($)?tt|=8:Za($)?tt|=32:xc($)&&(tt|=16),tt}function ti($){return!!($.transformFlags&8192)}function ht($){return a4($)||qe($.typeParameters)||qe($.heritageClauses,ti)||qe($.members,ti)}function Ut($){const tt=It($),vt=B<=1&&!!(tt&7);if(!ht($)&&!e5(T,$)&&!So($))return u.updateClassDeclaration($,Fn($.modifiers,Yt,Yo),$.name,void 0,Fn($.heritageClauses,fe,fm),Fn($.members,Ge($),qd));vt&&t.startLexicalEnvironment();const hi=vt||tt&8;let fn=hi?Fn($.modifiers,Gt,rl):Fn($.modifiers,fe,rl);tt&2&&(fn=xn(fn,$));const ru=hi&&!$.name||tt&4||tt&1?$.name??u.getGeneratedNameForNode($):$.name,Tu=u.updateClassDeclaration($,fn,ru,void 0,Fn($.heritageClauses,fe,fm),ji($));let Pr=vs($);tt&1&&(Pr|=64),Qn(Tu,Pr);let Vu;if(vt){const Fs=[Tu],tc=hle(ms(J.text,$.members.end),20),id=u.getInternalName($),A0=u.createPartiallyEmittedExpression(id);hB(A0,tc.end),Qn(A0,3072);const nd=u.createReturnStatement(A0);SP(nd,tc.pos),Qn(nd,3840),Fs.push(nd),qE(Fs,t.endLexicalEnvironment());const f0=u.createImmediatelyInvokedArrowFunction(Fs);gV(f0,1);const Sd=u.createVariableDeclaration(u.getLocalName($,!1,!1),void 0,void 0,f0);lu(Sd,$);const Ih=u.createVariableStatement(void 0,u.createVariableDeclarationList([Sd],1));lu(Ih,$),Sc(Ih,$),ks(Ih,a5($)),xh(Ih),Vu=Ih}else Vu=Tu;if(hi){if(tt&8)return[Vu,l0($)];if(tt&32)return[Vu,u.createExportDefault(u.getLocalName($,!1,!0))];if(tt&16)return[Vu,u.createExternalModuleExport(u.getDeclarationName($,!1,!0))]}return Vu}function Li($){let tt=Fn($.modifiers,Gt,rl);return e5(T,$)&&(tt=xn(tt,$)),u.updateClassExpression($,tt,$.name,void 0,Fn($.heritageClauses,fe,fm),ji($))}function ji($){const tt=Fn($.members,Ge($),qd);let vt;const hi=Q_($),fn=hi&&ei(hi.parameters,Gu=>Pf(Gu,hi));if(fn)for(const Gu of fn){const ru=u.createPropertyDeclaration(void 0,Gu.name,void 0,void 0,void 0);lu(ru,Gu),vt=Ei(vt,ru)}return vt?(vt=kn(vt,tt),Pt(u.createNodeArray(vt),$.members)):tt}function xn($,tt){const vt=rn(tt,tt);if(qe(vt)){const hi=[];kn(hi,Y$($,IV)),kn(hi,ei($,p1)),kn(hi,vt),kn(hi,ei(t2e($,IV),Yo)),$=Pt(u.createNodeArray(hi),$)}return $}function Un($,tt,vt){if(gr(vt)&&A0e(T,tt,vt)){const hi=rn(tt,vt);if(qe(hi)){const fn=[];kn(fn,ei($,p1)),kn(fn,hi),kn(fn,ei($,Yo)),$=Pt(u.createNodeArray(fn),$)}}return $}function rn($,tt){if(T)return Oet?Fi($,tt):Ni($,tt)}function Ni($,tt){if(M){let vt;if(Qu($)){const hi=s().createMetadataHelper("design:type",M.serializeTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$));vt=Ei(vt,u.createDecorator(hi))}if(Fr($)){const hi=s().createMetadataHelper("design:paramtypes",M.serializeParameterTypesOfNode({currentLexicalScope:oe,currentNameScope:tt},$,tt));vt=Ei(vt,u.createDecorator(hi))}if(aa($)){const hi=s().createMetadataHelper("design:returntype",M.serializeReturnTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$));vt=Ei(vt,u.createDecorator(hi))}return vt}}function Fi($,tt){if(M){let vt;if(Qu($)){const hi=u.createPropertyAssignment("type",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$)));vt=Ei(vt,hi)}if(Fr($)){const hi=u.createPropertyAssignment("paramTypes",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeParameterTypesOfNode({currentLexicalScope:oe,currentNameScope:tt},$,tt)));vt=Ei(vt,hi)}if(aa($)){const hi=u.createPropertyAssignment("returnType",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeReturnTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$)));vt=Ei(vt,hi)}if(vt){const hi=s().createMetadataHelper("design:typeinfo",u.createObjectLiteralExpression(vt,!0));return[u.createDecorator(hi)]}}}function Qu($){const tt=$.kind;return tt===174||tt===177||tt===178||tt===172}function aa($){return $.kind===174}function Fr($){switch($.kind){case 263:case 231:return Q_($)!==void 0;case 174:case 177:case 178:return!0}return!1}function Ba($,tt){const vt=$.name;return Xr(vt)?u.createIdentifier(""):Ls(vt)?tt&&!oE(vt.expression)?u.getGeneratedNameForNode(vt):vt.expression:at(vt)?u.createStringLiteral(mu(vt)):u.cloneNode(vt)}function bt($){const tt=$.name;if(Ls(tt)&&(!Hc($)&&ge||a4($)&&T)){const vt=yt(tt.expression,fe,Wt);H.assert(vt);const hi=wp(vt);if(!oE(hi)){const fn=u.getGeneratedNameForNode(tt);return E(fn),u.updateComputedPropertyName(tt,u.createAssignment(fn,vt))}}return H.checkDefined(yt(tt,fe,Ac))}function jn($){if($.token!==119)return un($,fe,t)}function Nn($){return u.updateExpressionWithTypeArguments($,H.checkDefined(yt($.expression,fe,_f)),void 0)}function Ai($){return!Yl($.body)}function Dn($,tt){const vt=$.flags&33554432||Xu($,64);if(vt&&!(T&&a4($)))return;let hi=gr(tt)?vt?Fn($.modifiers,Gt,rl):Fn($.modifiers,fe,rl):Fn($.modifiers,Ke,rl);return hi=Un(hi,$,tt),vt?u.updatePropertyDeclaration($,an(hi,u.createModifiersFromModifierFlags(128)),H.checkDefined(yt($.name,fe,Ac)),void 0,void 0,void 0):u.updatePropertyDeclaration($,hi,bt($),void 0,void 0,yt($.initializer,fe,Wt))}function bn($){if(Ai($))return u.updateConstructorDeclaration($,void 0,Dc($.parameters,fe,t),oa($.body,$))}function iu($,tt,vt,hi,fn,Gu){const ru=hi[fn],Tu=tt[ru];if(kn($,Fn(tt,fe,na,vt,ru-vt)),xk(Tu)){const Pr=[];iu(Pr,Tu.tryBlock.statements,0,hi,fn+1,Gu);const Vu=u.createNodeArray(Pr);Pt(Vu,Tu.tryBlock.statements),$.push(u.updateTryStatement(Tu,u.updateBlock(Tu.tryBlock,Pr),yt(Tu.catchClause,fe,H2),yt(Tu.finallyBlock,fe,fo)))}else kn($,Fn(tt,fe,na,ru,1)),kn($,Gu);kn($,Fn(tt,fe,na,ru+1))}function oa($,tt){const vt=tt&&ei(tt.parameters,Pr=>Pf(Pr,tt));if(!qe(vt))return Rm($,fe,t);let hi=[];f();const fn=u.copyPrologue($.statements,hi,!1,fe),Gu=uQ($.statements,fn),ru=Ui(vt,xa);Gu.length?iu(hi,$.statements,fn,Gu,0,ru):(kn(hi,ru),kn(hi,Fn($.statements,fe,na,fn))),hi=u.mergeLexicalEnvironment(hi,p());const Tu=u.createBlock(Pt(u.createNodeArray(hi),$.statements),!0);return Pt(Tu,$),lu(Tu,$),Tu}function xa($){const tt=$.name;if(!at(tt))return;const vt=bs(Pt(u.cloneNode(tt),tt),tt.parent);Qn(vt,3168);const hi=bs(Pt(u.cloneNode(tt),tt),tt.parent);return Qn(hi,3072),xh(pV(Pt(lu(u.createExpressionStatement(u.createAssignment(Pt(u.createPropertyAccessExpression(u.createThis(),vt),$.name),hi)),$),Fv($,-1))))}function ra($,tt){if(!($.transformFlags&1))return $;if(!Ai($))return;let vt=gr(tt)?Fn($.modifiers,fe,rl):Fn($.modifiers,Ke,rl);return vt=Un(vt,$,tt),u.updateMethodDeclaration($,vt,$.asteriskToken,bt($),void 0,void 0,Dc($.parameters,fe,t),void 0,Rm($.body,fe,t))}function wa($){return!(Yl($.body)&&Xu($,64))}function Zo($,tt){if(!($.transformFlags&1))return $;if(!wa($))return;let vt=gr(tt)?Fn($.modifiers,fe,rl):Fn($.modifiers,Ke,rl);return vt=Un(vt,$,tt),u.updateGetAccessorDeclaration($,vt,bt($),Dc($.parameters,fe,t),void 0,Rm($.body,fe,t)||u.createBlock([]))}function vo($,tt){if(!($.transformFlags&1))return $;if(!wa($))return;let vt=gr(tt)?Fn($.modifiers,fe,rl):Fn($.modifiers,Ke,rl);return vt=Un(vt,$,tt),u.updateSetAccessorDeclaration($,vt,bt($),Dc($.parameters,fe,t),Rm($.body,fe,t)||u.createBlock([]))}function Qe($){if(!Ai($))return u.createNotEmittedStatement($);const tt=u.updateFunctionDeclaration($,Fn($.modifiers,Yt,Yo),$.asteriskToken,$.name,void 0,Dc($.parameters,fe,t),void 0,Rm($.body,fe,t)||u.createBlock([]));if(So($)){const vt=[tt];return $l(vt,$),vt}return tt}function Et($){return Ai($)?u.updateFunctionExpression($,Fn($.modifiers,Yt,Yo),$.asteriskToken,$.name,void 0,Dc($.parameters,fe,t),void 0,Rm($.body,fe,t)||u.createBlock([])):u.createOmittedExpression()}function Mt($){return u.updateArrowFunction($,Fn($.modifiers,Yt,Yo),void 0,Dc($.parameters,fe,t),void 0,$.equalsGreaterThanToken,Rm($.body,fe,t))}function qt($){if(B2($))return;const tt=u.updateParameterDeclaration($,Fn($.modifiers,vt=>p1(vt)?fe(vt):void 0,rl),$.dotDotDotToken,H.checkDefined(yt($.name,fe,$y)),void 0,void 0,yt($.initializer,fe,Wt));return tt!==$&&(Sc(tt,$),Pt(tt,tE($)),ks(tt,tE($)),Qn(tt.name,64)),tt}function Xt($){if(So($)){const tt=_P($.declarationList);return tt.length===0?void 0:Pt(u.createExpressionStatement(u.inlineExpressions(Kt(tt,Pe))),$)}else return un($,fe,t)}function Pe($){const tt=$.name;return Fo(tt)?Sk($,fe,t,0,!1,cd):Pt(u.createAssignment(Dl(tt),H.checkDefined(yt($.initializer,fe,Wt))),$)}function et($){const tt=u.updateVariableDeclaration($,H.checkDefined(yt($.name,fe,$y)),void 0,void 0,yt($.initializer,fe,Wt));return $.type&&Vke(tt.name,$.type),tt}function gt($){const tt=_c($.expression,-7);if(qy(tt)){const vt=yt($.expression,fe,Wt);return H.assert(vt),u.createPartiallyEmittedExpression(vt,$)}return un($,fe,t)}function ii($){const tt=yt($.expression,fe,Wt);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function me($){const tt=yt($.expression,fe,_f);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function ni($){const tt=yt($.expression,fe,Wt);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function _i($){return u.updateCallExpression($,H.checkDefined(yt($.expression,fe,Wt)),void 0,Fn($.arguments,fe,Wt))}function mt($){return u.updateNewExpression($,H.checkDefined(yt($.expression,fe,Wt)),void 0,Fn($.arguments,fe,Wt))}function jt($){return u.updateTaggedTemplateExpression($,H.checkDefined(yt($.tag,fe,Wt)),void 0,H.checkDefined(yt($.template,fe,L8)))}function pi($){return u.updateJsxSelfClosingElement($,H.checkDefined(yt($.tagName,fe,KN)),void 0,H.checkDefined(yt($.attributes,fe,V2)))}function Ji($){return u.updateJsxOpeningElement($,H.checkDefined(yt($.tagName,fe,KN)),void 0,H.checkDefined(yt($.attributes,fe,V2)))}function Yi($){return!x2($)||dk(b)}function on($){if(!Yi($))return u.createNotEmittedStatement($);const tt=[];let vt=4;const hi=Ct(tt,$);hi&&(k!==4||oe!==J)&&(vt|=1024);const fn=so($),Gu=Vo($),ru=So($)?u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0):u.getDeclarationName($,!1,!0);let Tu=u.createLogicalOr(ru,u.createAssignment(ru,u.createObjectLiteralExpression()));if(So($)){const Vu=u.getLocalName($,!1,!0);Tu=u.createAssignment(Vu,Tu)}const Pr=u.createExpressionStatement(u.createCallExpression(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,fn)],void 0,le($,Gu)),void 0,[Tu]));return lu(Pr,$),hi&&(Tv(Pr,void 0),k7(Pr,void 0)),Pt(Pr,$),t_(Pr,vt),tt.push(Pr),tt}function le($,tt){const vt=Y;Y=tt;const hi=[];d();const fn=Kt($.members,te);return qE(hi,p()),kn(hi,fn),Y=vt,u.createBlock(Pt(u.createNodeArray(hi),$.members),!0)}function te($){const tt=Ba($,!1),vt=we($),hi=u.createAssignment(u.createElementAccessExpression(Y,tt),vt),fn=vt.kind===11?hi:u.createAssignment(u.createElementAccessExpression(Y,hi),tt);return Pt(u.createExpressionStatement(Pt(fn,$)),$)}function we($){const tt=v.getConstantValue($);return tt!==void 0?typeof tt=="string"?u.createStringLiteral(tt):u.createNumericLiteral(tt):(td(),$.initializer?H.checkDefined(yt($.initializer,fe,Wt)):u.createVoidZero())}function de($){const tt=Ua($,Ec);return tt?Ide(tt,dk(b)):!0}function Oe($){se||(se=new Map);const tt=it($);se.has(tt)||se.set(tt,$)}function X($){if(se){const tt=it($);return se.get(tt)===$}return!0}function it($){return H.assertNode($.name,at),$.name.escapedText}function Ct($,tt){const vt=u.createVariableDeclaration(u.getLocalName(tt,!1,!0)),hi=oe.kind===312?0:1,fn=u.createVariableStatement(Fn(tt.modifiers,Yt,Yo),u.createVariableDeclarationList([vt],hi));return lu(vt,tt),Tv(vt,void 0),k7(vt,void 0),lu(fn,tt),Oe(tt),X(tt)?(tt.kind===266?ks(fn.declarationList,tt):ks(fn,tt),Sc(fn,tt),t_(fn,2048),$.push(fn),!0):!1}function ct($){if(!de($))return u.createNotEmittedStatement($);H.assertNode($.name,at,"A TypeScript namespace should have an Identifier name."),$0();const tt=[];let vt=4;const hi=Ct(tt,$);hi&&(k!==4||oe!==J)&&(vt|=1024);const fn=so($),Gu=Vo($),ru=So($)?u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0):u.getDeclarationName($,!1,!0);let Tu=u.createLogicalOr(ru,u.createAssignment(ru,u.createObjectLiteralExpression()));if(So($)){const Vu=u.getLocalName($,!1,!0);Tu=u.createAssignment(Vu,Tu)}const Pr=u.createExpressionStatement(u.createCallExpression(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,fn)],void 0,Qt($,Gu)),void 0,[Tu]));return lu(Pr,$),hi&&(Tv(Pr,void 0),k7(Pr,void 0)),Pt(Pr,$),t_(Pr,vt),tt.push(Pr),tt}function Qt($,tt){const vt=Y,hi=K,fn=se;Y=tt,K=$,se=void 0;const Gu=[];d();let ru,Tu;if($.body)if($.body.kind===268)Ne($.body,Vu=>kn(Gu,Fn(Vu.statements,De,na))),ru=$.body.statements,Tu=$.body;else{const Vu=ct($.body);Vu&&(Ha(Vu)?kn(Gu,Vu):Gu.push(Vu));const Fs=Ti($).body;ru=Fv(Fs.statements,-1)}qE(Gu,p()),Y=vt,K=hi,se=fn;const Pr=u.createBlock(Pt(u.createNodeArray(Gu),ru),!0);return Pt(Pr,Tu),(!$.body||$.body.kind!==268)&&Qn(Pr,vs(Pr)|3072),Pr}function Ti($){if($.body.kind===267)return Ti($.body)||$.body}function $i($){if(!$.importClause)return $;if($.importClause.isTypeOnly)return;const tt=yt($.importClause,Bn,i_);return tt||b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2?u.updateImportDeclaration($,void 0,tt,$.moduleSpecifier,$.attributes):void 0}function Bn($){H.assert(!$.isTypeOnly);const tt=vc($)?$.name:void 0,vt=yt($.namedBindings,hu,t0e);return tt||vt?u.updateImportClause($,!1,tt,vt):void 0}function hu($){if($.kind===274)return vc($)?$:void 0;{const tt=b.verbatimModuleSyntax||b.preserveValueImports&&(b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2),vt=Fn($.elements,Ru,Cf);return tt||qe(vt)?u.updateNamedImports($,vt):void 0}}function Ru($){return!$.isTypeOnly&&vc($)?$:void 0}function Er($){return b.verbatimModuleSyntax||v.isValueAliasDeclaration($)?un($,fe,t):void 0}function tr($){if($.isTypeOnly)return;if(!$.exportClause||n_($.exportClause))return $;const tt=b.verbatimModuleSyntax||!!$.moduleSpecifier&&(b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2),vt=yt($.exportClause,hi=>ja(hi,tt),Kse);return vt?u.updateExportDeclaration($,void 0,$.isTypeOnly,vt,$.moduleSpecifier,$.attributes):void 0}function da($,tt){const vt=Fn($.elements,Tn,X1);return tt||qe(vt)?u.updateNamedExports($,vt):void 0}function Wu($){return u.updateNamespaceExport($,H.checkDefined(yt($.name,fe,at)))}function ja($,tt){return n_($)?Wu($):da($,tt)}function Tn($){return!$.isTypeOnly&&(b.verbatimModuleSyntax||v.isValueAliasDeclaration($))?$:void 0}function Rr($){return vc($)||!Bc(J)&&v.isTopLevelValueImportEqualsWithEntityName($)}function rs($){if($.isTypeOnly)return;if(vv($)){const vt=vc($);return!vt&&b.importsNotUsedAsValues===1?lu(Pt(u.createImportDeclaration(void 0,void 0,$.moduleReference.expression,void 0),$),$):vt?un($,fe,t):void 0}if(!Rr($))return;const tt=LV(u,$.moduleReference);return Qn(tt,7168),xc($)||!So($)?lu(Pt(u.createVariableStatement(Fn($.modifiers,Yt,Yo),u.createVariableDeclarationList([lu(u.createVariableDeclaration($.name,void 0,void 0,tt),$)])),$),$):lu(Sl($.name,tt,$),$)}function So($){return K!==void 0&&Xu($,32)}function An($){return K===void 0&&Xu($,32)}function xc($){return An($)&&!Xu($,2048)}function Za($){return An($)&&Xu($,2048)}function l0($){const tt=u.createAssignment(u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0),u.getLocalName($));ks(tt,o4($.name?$.name.pos:$.pos,$.end));const vt=u.createExpressionStatement(tt);return ks(vt,o4(-1,$.end)),vt}function $l($,tt){$.push(l0(tt))}function Sl($,tt,vt){return Pt(u.createExpressionStatement(u.createAssignment(u.getNamespaceMemberName(Y,$,!1,!0),tt)),vt)}function cd($,tt,vt){return Pt(u.createAssignment(Dl($),tt),vt)}function Dl($){return u.getNamespaceMemberName(Y,$,!1,!0)}function so($){const tt=u.getGeneratedNameForNode($);return ks(tt,$.name),tt}function Vo($){return u.getGeneratedNameForNode($)}function td(){ae&8||(ae|=8,t.enableSubstitution(80))}function $0(){ae&2||(ae|=2,t.enableSubstitution(80),t.enableSubstitution(304),t.enableEmitNotification(267))}function Ho($){return Kl($).kind===267}function wc($){return Kl($).kind===266}function Kp($,tt,vt){const hi=Ce,fn=J;ca(tt)&&(J=tt),ae&2&&Ho(tt)&&(Ce|=2),ae&8&&wc(tt)&&(Ce|=8),z($,tt,vt),Ce=hi,J=fn}function Tc($,tt){return tt=j($,tt),$===1?sl(tt):mm(tt)?zl(tt):tt}function zl($){if(ae&2){const tt=$.name,vt=Ri(tt);if(vt){if($.objectAssignmentInitializer){const hi=u.createAssignment(vt,$.objectAssignmentInitializer);return Pt(u.createPropertyAssignment(tt,hi),$)}return Pt(u.createPropertyAssignment(tt,vt),$)}}return $}function sl($){switch($.kind){case 80:return Ka($);case 211:return ll($);case 212:return $c($)}return $}function Ka($){return Ri($)||$}function Ri($){if(ae&Ce&&!ul($)&&!uD($)){const tt=v.getReferencedExportContainer($,!1);if(tt&&tt.kind!==312&&(Ce&2&&tt.kind===267||Ce&8&&tt.kind===266))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(tt),$),$)}}function ll($){return of($)}function $c($){return of($)}function vh($){return $.replace(/\*\//g,"*_/")}function of($){const tt=U0($);if(tt!==void 0){Oke($,tt);const vt=typeof tt=="string"?u.createStringLiteral(tt):tt<0?u.createPrefixUnaryExpression(41,u.createNumericLiteral(Math.abs(tt))):u.createNumericLiteral(tt);if(!b.removeComments){const hi=Kl($,N0);bZ(vt,3,` ${vh(Vc(hi))} `)}return vt}return $}function U0($){if(!hg(b))return Iu($)||W0($)?v.getConstantValue($):void 0}function vc($){return b.verbatimModuleSyntax||eu($)||(b.preserveValueImports?v.isValueAliasDeclaration($):v.isReferencedAliasDeclaration($))}}var Oet,gMt=o({"src/compiler/transformers/ts.ts"(){Ao(),Oet=!1}});function n7e(t){const{factory:u,getEmitHelperFactory:s,hoistVariableDeclaration:d,endLexicalEnvironment:f,startLexicalEnvironment:p,resumeLexicalEnvironment:E,addBlockScopedVariable:v}=t,b=t.getEmitResolver(),B=t.getCompilerOptions(),k=Is(B),T=Qj(B),M=!!B.experimentalDecorators,z=!T,j=T&&k<9,J=z||j,K=k<9,Y=k<99?-1:T?0:3,oe=k<9,se=oe&&k>=2,ge=J||K||Y===-1,ae=t.onSubstituteNode;t.onSubstituteNode=$c;const Ce=t.onEmitNode;t.onEmitNode=ll;let ne=!1,ve,Se,Ne,pe,fe;const xe=new Map,Be=new Set;let We,Ae,De=!1,He=!1;return jp(t,Ge);function Ge($){if($.isDeclarationFile||(fe=void 0,ne=!!(Tp($)&32),!ge&&!ne))return $;const tt=un($,Ze,t);return tD(tt,t.readEmitHelpers()),tt}function ft($){switch($.kind){case 129:return bn()?void 0:$;default:return ar($,Yo)}}function Ze($){if(!($.transformFlags&16777216)&&!($.transformFlags&134234112))return $;switch($.kind){case 129:return H.fail("Use `modifierVisitor` instead.");case 263:return Yi($);case 231:return le($);case 175:case 172:return H.fail("Use `classElementVisitor` instead.");case 303:return ht($);case 243:return Ut($);case 260:return Li($);case 169:return ji($);case 208:return xn($);case 277:return Un($);case 81:return It($);case 211:return Zo($);case 212:return vo($);case 224:case 225:return Qe($,!1);case 226:return ii($,!1);case 217:return ni($,!1);case 213:return Xt($);case 244:return Mt($);case 215:return Pe($);case 248:return Et($);case 110:return de($);case 262:case 218:return Fr(void 0,je,$);case 176:case 174:case 177:case 178:return Fr($,je,$);default:return je($)}}function je($){return un($,Ze,t)}function Ke($){switch($.kind){case 224:case 225:return Qe($,!0);case 226:return ii($,!0);case 361:return me($,!0);case 217:return ni($,!0);default:return Ze($)}}function Gt($){switch($.kind){case 298:return un($,Gt,t);case 233:return pi($);default:return Ze($)}}function Yt($){switch($.kind){case 210:case 209:return Ri($);default:return Ze($)}}function Ie($){switch($.kind){case 176:return Fr($,Fi,$);case 177:case 178:case 174:return Fr($,aa,$);case 172:return Fr($,iu,$);case 175:return Fr($,we,$);case 167:return Ni($);case 240:return $;default:return rl($)?ft($):Ze($)}}function st($){switch($.kind){case 167:return Ni($);default:return Ze($)}}function St($){switch($.kind){case 172:return Dn($);case 177:case 178:return Ie($);default:H.assertMissingNode($,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function It($){return!K||na($.parent)?$:lu(u.createIdentifier(""),$)}function ti($){const tt=Vo($.left);if(tt){const vt=yt($.right,Ze,Wt);return lu(s().createClassPrivateFieldInHelper(tt.brandCheckIdentifier,vt),$)}return un($,Ze,t)}function ht($){return zf($,gt)&&($=jf(t,$)),un($,Ze,t)}function Ut($){const tt=pe;pe=[];const vt=un($,Ze,t),hi=qe(pe)?[vt,...pe]:vt;return pe=tt,hi}function Li($){return zf($,gt)&&($=jf(t,$)),un($,Ze,t)}function ji($){return zf($,gt)&&($=jf(t,$)),un($,Ze,t)}function xn($){return zf($,gt)&&($=jf(t,$)),un($,Ze,t)}function Un($){return zf($,gt)&&($=jf(t,$,!0,$.isExportEquals?"":"default")),un($,Ze,t)}function rn($){return qe(Ne)&&(vf($)?(Ne.push($.expression),$=u.updateParenthesizedExpression($,u.inlineExpressions(Ne))):(Ne.push($),$=u.inlineExpressions(Ne)),Ne=void 0),$}function Ni($){const tt=yt($.expression,Ze,Wt);return u.updateComputedPropertyName($,rn(tt))}function Fi($){return We?it($,We):je($)}function Qu($){return!!(K||Hc($)&&Tp($)&32)}function aa($){if(H.assert(!a4($)),!mh($)||!Qu($))return un($,Ie,t);const tt=Vo($.name);if(H.assert(tt,"Undeclared private name for property declaration."),!tt.isValid)return $;const vt=Ba($);vt&&So().push(u.createAssignment(vt,u.createFunctionExpression(ei($.modifiers,hi=>Yo(hi)&&!T7(hi)&&!tFe(hi)),$.asteriskToken,vt,void 0,Dc($.parameters,Ze,t),void 0,Rm($.body,Ze,t))))}function Fr($,tt,vt){if($!==Ae){const hi=Ae;Ae=$;const fn=tt(vt);return Ae=hi,fn}return tt(vt)}function Ba($){H.assert(Xr($.name));const tt=Vo($.name);if(H.assert(tt,"Undeclared private name for property declaration."),tt.kind==="m")return tt.methodName;if(tt.kind==="a"){if(Tx($))return tt.getterName;if(XD($))return tt.setterName}}function bt(){const $=Rr(),tt=$.classThis??$.classConstructor??(We==null?void 0:We.name);return H.checkDefined(tt)}function jn($){const tt=iE($),vt=wv($),hi=$.name;let fn=hi,Gu=hi;if(Ls(hi)&&!oE(hi.expression)){const id=CY(hi);if(id)fn=u.updateComputedPropertyName(hi,yt(hi.expression,Ze,Wt)),Gu=u.updateComputedPropertyName(hi,id.left);else{const A0=u.createTempVariable(d);ks(A0,hi.expression);const nd=yt(hi.expression,Ze,Wt),f0=u.createAssignment(A0,nd);ks(f0,hi.expression),fn=u.updateComputedPropertyName(hi,f0),Gu=u.updateComputedPropertyName(hi,A0)}}const ru=Fn($.modifiers,ft,Yo),Tu=Kce(u,$,ru,$.initializer);lu(Tu,$),Qn(Tu,3072),ks(Tu,vt);const Pr=To($)?bt():u.createThis(),Vu=RFe(u,$,ru,fn,Pr);lu(Vu,$),Sc(Vu,tt),ks(Vu,vt);const Fs=u.createModifiersFromModifierFlags(eE(ru)),tc=OFe(u,$,Fs,Gu,Pr);return lu(tc,$),Qn(tc,3072),ks(tc,vt),lH([Tu,Vu,tc],St,qd)}function Nn($){if(Qu($)){const tt=Vo($.name);if(H.assert(tt,"Undeclared private name for property declaration."),!tt.isValid)return $;if(tt.isStatic&&!K){const vt=Ti($,u.createThis());if(vt)return u.createClassStaticBlockDeclaration(u.createBlock([vt],!0))}return}return z&&!To($)&&(fe!=null&&fe.data)&&fe.data.facts&16?u.updatePropertyDeclaration($,Fn($.modifiers,Ze,rl),$.name,void 0,void 0,void 0):(zf($,gt)&&($=jf(t,$)),u.updatePropertyDeclaration($,Fn($.modifiers,ft,Yo),yt($.name,st,Ac),void 0,void 0,yt($.initializer,Ze,Wt)))}function Ai($){if(J&&!Xh($)){const tt=Wu($.name,!!$.initializer||T);if(tt&&So().push(...jFe(tt)),To($)&&!K){const vt=Ti($,u.createThis());if(vt){const hi=u.createClassStaticBlockDeclaration(u.createBlock([vt]));return lu(hi,$),Sc(hi,$),Sc(vt,{pos:-1,end:-1}),Tv(vt,void 0),k7(vt,void 0),hi}}return}return u.updatePropertyDeclaration($,Fn($.modifiers,ft,Yo),yt($.name,st,Ac),void 0,void 0,yt($.initializer,Ze,Wt))}function Dn($){return H.assert(!a4($),"Decorators should already have been transformed and elided."),mh($)?Nn($):Ai($)}function bn(){return Y===-1||Y===3&&!!(fe!=null&&fe.data)&&!!(fe.data.facts&16)}function iu($){return Xh($)&&(bn()||Hc($)&&Tp($)&32)?jn($):Dn($)}function oa(){return!!Ae&&Hc(Ae)&&Bx(Ae)&&Xh(Kl(Ae))}function xa($){if(oa()){const tt=_c($);tt.kind===110&&Be.add(tt)}}function ra($,tt){return tt=yt(tt,Ze,Wt),xa(tt),wa($,tt)}function wa($,tt){switch(Sc(tt,Fv(tt,-1)),$.kind){case"a":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.getterName);case"m":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.methodName);case"f":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return H.fail("Access helpers should not be created for untransformed private elements");default:H.assertNever($,"Unknown private element type")}}function Zo($){if(Xr($.name)){const tt=Vo($.name);if(tt)return Pt(lu(ra(tt,$.expression),$),$)}if(se&&Ae&&tf($)&&at($.name)&&_M(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:hi}=fe.data;if(hi&1)return da($);if(tt&&vt){const fn=u.createReflectGetCall(vt,u.createStringLiteralFromNode($.name),tt);return lu(fn,$.expression),Pt(fn,$.expression),fn}}return un($,Ze,t)}function vo($){if(se&&Ae&&tf($)&&_M(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:hi}=fe.data;if(hi&1)return da($);if(tt&&vt){const fn=u.createReflectGetCall(vt,yt($.argumentExpression,Ze,Wt),tt);return lu(fn,$.expression),Pt(fn,$.expression),fn}}return un($,Ze,t)}function Qe($,tt){if($.operator===46||$.operator===47){const vt=s0($.operand);if(B8(vt)){let hi;if(hi=Vo(vt.name)){const fn=yt(vt.expression,Ze,Wt);xa(fn);const{readExpression:Gu,initializeExpression:ru}=qt(fn);let Tu=ra(hi,Gu);const Pr=Pv($)||tt?void 0:u.createTempVariable(d);return Tu=pY(u,$,Tu,d,Pr),Tu=_i(hi,ru||Gu,Tu,64),lu(Tu,$),Pt(Tu,$),Pr&&(Tu=u.createComma(Tu,Pr),Pt(Tu,$)),Tu}}else if(se&&Ae&&tf(vt)&&_M(Ae)&&(fe!=null&&fe.data)){const{classConstructor:hi,superClassReference:fn,facts:Gu}=fe.data;if(Gu&1){const ru=da(vt);return Pv($)?u.updatePrefixUnaryExpression($,ru):u.updatePostfixUnaryExpression($,ru)}if(hi&&fn){let ru,Tu;if(Iu(vt)?at(vt.name)&&(Tu=ru=u.createStringLiteralFromNode(vt.name)):oE(vt.argumentExpression)?Tu=ru=vt.argumentExpression:(Tu=u.createTempVariable(d),ru=u.createAssignment(Tu,yt(vt.argumentExpression,Ze,Wt))),ru&&Tu){let Pr=u.createReflectGetCall(fn,Tu,hi);Pt(Pr,vt);const Vu=tt?void 0:u.createTempVariable(d);return Pr=pY(u,$,Pr,d,Vu),Pr=u.createReflectSetCall(fn,ru,Pr,hi),lu(Pr,$),Pt(Pr,$),Vu&&(Pr=u.createComma(Pr,Vu),Pt(Pr,$)),Pr}}}}return un($,Ze,t)}function Et($){return u.updateForStatement($,yt($.initializer,Ke,r4),yt($.condition,Ze,Wt),yt($.incrementor,Ke,Wt),Mh($.statement,Ze,t))}function Mt($){return u.updateExpressionStatement($,yt($.expression,Ke,Wt))}function qt($){const tt=al($)?$:u.cloneNode($);if($.kind===110&&Be.has($)&&Be.add(tt),oE($))return{readExpression:tt,initializeExpression:void 0};const vt=u.createTempVariable(d),hi=u.createAssignment(vt,tt);return{readExpression:vt,initializeExpression:hi}}function Xt($){var tt;if(B8($.expression)&&Vo($.expression.name)){const{thisArg:vt,target:hi}=u.createCallBinding($.expression,d,k);return Gy($)?u.updateCallChain($,u.createPropertyAccessChain(yt(hi,Ze,Wt),$.questionDotToken,"call"),void 0,void 0,[yt(vt,Ze,Wt),...Fn($.arguments,Ze,Wt)]):u.updateCallExpression($,u.createPropertyAccessExpression(yt(hi,Ze,Wt),"call"),void 0,[yt(vt,Ze,Wt),...Fn($.arguments,Ze,Wt)])}if(se&&Ae&&tf($.expression)&&_M(Ae)&&((tt=fe==null?void 0:fe.data)!=null&&tt.classConstructor)){const vt=u.createFunctionCallCall(yt($.expression,Ze,Wt),fe.data.classConstructor,Fn($.arguments,Ze,Wt));return lu(vt,$),Pt(vt,$),vt}return un($,Ze,t)}function Pe($){var tt;if(B8($.tag)&&Vo($.tag.name)){const{thisArg:vt,target:hi}=u.createCallBinding($.tag,d,k);return u.updateTaggedTemplateExpression($,u.createCallExpression(u.createPropertyAccessExpression(yt(hi,Ze,Wt),"bind"),void 0,[yt(vt,Ze,Wt)]),void 0,yt($.template,Ze,L8))}if(se&&Ae&&tf($.tag)&&_M(Ae)&&((tt=fe==null?void 0:fe.data)!=null&&tt.classConstructor)){const vt=u.createFunctionBindCall(yt($.tag,Ze,Wt),fe.data.classConstructor,[]);return lu(vt,$),Pt(vt,$),u.updateTaggedTemplateExpression($,vt,void 0,yt($.template,Ze,L8))}return un($,Ze,t)}function et($){if(fe&&xe.set(Kl($),fe),K){if(gM($)){const hi=yt($.body.statements[0].expression,Ze,Wt);return od(hi,!0)&&hi.left===hi.right?void 0:hi}if(Y7($))return yt($.body.statements[0].expression,Ze,Wt);p();let tt=Fr($,hi=>Fn(hi,Ze,na),$.body.statements);tt=u.mergeLexicalEnvironment(tt,f());const vt=u.createImmediatelyInvokedArrowFunction(tt);return lu(s0(vt.expression),$),t_(s0(vt.expression),4),lu(vt,$),Pt(vt,$),vt}}function gt($){if(Qd($)&&!$.name){const tt=rQ($);return qe(tt,Y7)?!1:(K||!!Tp($))&&qe(tt,hi=>Ml(hi)||mh(hi)||J&&dH(hi))}return!1}function ii($,tt){if(u5($)){const vt=Ne;Ne=void 0,$=u.updateBinaryExpression($,yt($.left,Yt,Wt),$.operatorToken,yt($.right,Ze,Wt));const hi=qe(Ne)?u.inlineExpressions(kr([...Ne,$])):$;return Ne=vt,hi}if(od($)){zf($,gt)&&($=jf(t,$),H.assertNode($,od));const vt=_c($.left,9);if(B8(vt)){const hi=Vo(vt.name);if(hi)return Pt(lu(_i(hi,vt.expression,$.right,$.operatorToken.kind),$),$)}else if(se&&Ae&&tf($.left)&&_M(Ae)&&(fe!=null&&fe.data)){const{classConstructor:hi,superClassReference:fn,facts:Gu}=fe.data;if(Gu&1)return u.updateBinaryExpression($,da($.left),$.operatorToken,yt($.right,Ze,Wt));if(hi&&fn){let ru=W0($.left)?yt($.left.argumentExpression,Ze,Wt):at($.left.name)?u.createStringLiteralFromNode($.left.name):void 0;if(ru){let Tu=yt($.right,Ze,Wt);if(fM($.operatorToken.kind)){let Vu=ru;oE(ru)||(Vu=u.createTempVariable(d),ru=u.createAssignment(Vu,ru));const Fs=u.createReflectGetCall(fn,Vu,hi);lu(Fs,$.left),Pt(Fs,$.left),Tu=u.createBinaryExpression(Fs,mM($.operatorToken.kind),Tu),Pt(Tu,$)}const Pr=tt?void 0:u.createTempVariable(d);return Pr&&(Tu=u.createAssignment(Pr,Tu),Pt(Pr,$)),Tu=u.createReflectSetCall(fn,ru,Tu,hi),lu(Tu,$),Pt(Tu,$),Pr&&(Tu=u.createComma(Tu,Pr),Pt(Tu,$)),Tu}}}}return vMt($)?ti($):un($,Ze,t)}function me($,tt){const vt=tt?cH($.elements,Ke):cH($.elements,Ze,Ke);return u.updateCommaListExpression($,vt)}function ni($,tt){const vt=tt?Ke:Ze,hi=yt($.expression,vt,Wt);return u.updateParenthesizedExpression($,hi)}function _i($,tt,vt,hi){if(tt=yt(tt,Ze,Wt),vt=yt(vt,Ze,Wt),xa(tt),fM(hi)){const{readExpression:fn,initializeExpression:Gu}=qt(tt);tt=Gu||fn,vt=u.createBinaryExpression(wa($,fn),mM(hi),vt)}switch(Sc(tt,Fv(tt,-1)),$.kind){case"a":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,$.setterName);case"m":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,void 0);case"f":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return H.fail("Access helpers should not be created for untransformed private elements");default:H.assertNever($,"Unknown private element type")}}function mt($){return ei($.members,WAe)}function jt($){var tt;let vt=0;const hi=Kl($);Kc(hi)&&e5(M,hi)&&(vt|=1),K&&(Xde($)||oQ($))&&(vt|=2);let fn=!1,Gu=!1,ru=!1,Tu=!1;for(const Vu of $.members)To(Vu)?((Vu.name&&(Xr(Vu.name)||Xh(Vu))&&K||Xh(Vu)&&Y===-1&&!$.name&&!((tt=$.emitNode)!=null&&tt.classThis))&&(vt|=2),(bo(Vu)||Ml(Vu))&&(oe&&Vu.transformFlags&16384&&(vt|=8,vt&1||(vt|=2)),se&&Vu.transformFlags&134217728&&(vt&1||(vt|=6)))):T2(Kl(Vu))||(Xh(Vu)?(Tu=!0,ru||(ru=mh(Vu))):mh(Vu)?(ru=!0,b.getNodeCheckFlags(Vu)&262144&&(vt|=2)):bo(Vu)&&(fn=!0,Gu||(Gu=!!Vu.initializer)));return(j&&fn||z&&Gu||K&&ru||K&&Tu&&Y===-1)&&(vt|=16),vt}function pi($){var tt;if((((tt=fe==null?void 0:fe.data)==null?void 0:tt.facts)||0)&4){const hi=u.createTempVariable(d,!0);return Rr().superClassReference=hi,u.updateExpressionWithTypeArguments($,u.createAssignment(hi,yt($.expression,Ze,Wt)),void 0)}return un($,Ze,t)}function Ji($,tt){var vt;const hi=We,fn=Ne,Gu=fe;We=$,Ne=void 0,ja();const ru=Tp($)&32;if(K||ru){const Vu=qa($);if(Vu&&at(Vu))rs().data.className=Vu;else if((vt=$.emitNode)!=null&&vt.assignedName&&ns($.emitNode.assignedName)){if($.emitNode.assignedName.textSourceNode&&at($.emitNode.assignedName.textSourceNode))rs().data.className=$.emitNode.assignedName.textSourceNode;else if(Tm($.emitNode.assignedName.text,k)){const Fs=u.createIdentifier($.emitNode.assignedName.text);rs().data.className=Fs}}}if(K){const Vu=mt($);qe(Vu)&&(rs().data.weakSetName=Dl("instances",Vu[0].name))}const Tu=jt($);Tu&&(Rr().facts=Tu),Tu&8&&Er();const Pr=tt($,Tu);return Tn(),H.assert(fe===Gu),We=hi,Ne=fn,Pr}function Yi($){return Ji($,on)}function on($,tt){var vt,hi;let fn;if(tt&2)if(K&&((vt=$.emitNode)!=null&&vt.classThis))Rr().classConstructor=$.emitNode.classThis,fn=u.createAssignment($.emitNode.classThis,u.getInternalName($));else{const f0=u.createTempVariable(d,!0);Rr().classConstructor=u.cloneNode(f0),fn=u.createAssignment(f0,u.getInternalName($))}(hi=$.emitNode)!=null&&hi.classThis&&(Rr().classThis=$.emitNode.classThis);const Gu=b.getNodeCheckFlags($)&262144,ru=Xu($,32),Tu=Xu($,2048);let Pr=Fn($.modifiers,ft,Yo);const Vu=Fn($.heritageClauses,Gt,fm),{members:Fs,prologue:tc}=Oe($),id=[];if(fn&&So().unshift(fn),qe(Ne)&&id.push(u.createExpressionStatement(u.inlineExpressions(Ne))),z||K||Tp($)&32){const f0=rQ($);qe(f0)&&Qt(id,f0,u.getInternalName($))}id.length>0&&ru&&Tu&&(Pr=Fn(Pr,f0=>IV(f0)?void 0:f0,Yo),id.push(u.createExportAssignment(void 0,!1,u.getLocalName($,!1,!0))));const A0=Rr().classConstructor;Gu&&A0&&(Ru(),Se[P1($)]=A0);const nd=u.updateClassDeclaration($,Pr,$.name,void 0,Vu,Fs);return id.unshift(nd),tc&&id.unshift(u.createExpressionStatement(tc)),id}function le($){return Ji($,te)}function te($,tt){var vt,hi,fn;const Gu=!!(tt&1),ru=rQ($),Tu=b.getNodeCheckFlags($),Pr=Tu&262144;let Vu;function Fs(){var nh;if(K&&((nh=$.emitNode)!=null&&nh.classThis))return Rr().classConstructor=$.emitNode.classThis;const d4=Tu&32768,_1=u.createTempVariable(d4?v:d,!0);return Rr().classConstructor=u.cloneNode(_1),_1}(vt=$.emitNode)!=null&&vt.classThis&&(Rr().classThis=$.emitNode.classThis),tt&2&&(Vu??(Vu=Fs()));const tc=Fn($.modifiers,ft,Yo),id=Fn($.heritageClauses,Gt,fm),{members:A0,prologue:nd}=Oe($),f0=u.updateClassExpression($,tc,$.name,void 0,id,A0),Sd=[];if(nd&&Sd.push(nd),(K||Tp($)&32)&&qe(ru,nh=>Ml(nh)||mh(nh)||J&&dH(nh))||qe(Ne))if(Gu)H.assertIsDefined(pe,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),qe(Ne)&&kn(pe,Kt(Ne,u.createExpressionStatement)),qe(ru)&&Qt(pe,ru,((hi=$.emitNode)==null?void 0:hi.classThis)??u.getInternalName($)),Vu?Sd.push(u.createAssignment(Vu,f0)):K&&((fn=$.emitNode)!=null&&fn.classThis)?Sd.push(u.createAssignment($.emitNode.classThis,f0)):Sd.push(f0);else{if(Vu??(Vu=Fs()),Pr){Ru();const nh=u.cloneNode(Vu);nh.emitNode.autoGenerate.flags&=-9,Se[P1($)]=nh}Sd.push(u.createAssignment(Vu,f0)),kn(Sd,Ne),kn(Sd,$i(ru,Vu)),Sd.push(u.cloneNode(Vu))}else Sd.push(f0);return Sd.length>1&&(t_(f0,131072),Sd.forEach(xh)),u.inlineExpressions(Sd)}function we($){if(!K)return un($,Ze,t)}function de($){if(oe&&Ae&&Ml(Ae)&&(fe!=null&&fe.data)){const{classThis:tt,classConstructor:vt}=fe.data;return tt??vt??$}return $}function Oe($){const tt=!!(Tp($)&32);if(K||ne){for(const ru of $.members)if(mh(ru))if(Qu(ru))cd(ru,ru.name,An);else{const Tu=rs();Ak(Tu,ru.name,{kind:"untransformed"})}if(K&&qe(mt($))&&X(),bn()){for(const ru of $.members)if(Xh(ru)){const Tu=u.getGeneratedPrivateNameForNode(ru.name,void 0,"_accessor_storage");if(K||tt&&Hc(ru))cd(ru,Tu,xc);else{const Pr=rs();Ak(Pr,Tu,{kind:"untransformed"})}}}}let vt=Fn($.members,Ie,qd),hi;qe(vt,dc)||(hi=it(void 0,$));let fn,Gu;if(!K&&qe(Ne)){let ru=u.createExpressionStatement(u.inlineExpressions(Ne));if(ru.transformFlags&134234112){const Pr=u.createTempVariable(d),Vu=u.createArrowFunction(void 0,void 0,[],void 0,void 0,u.createBlock([ru]));fn=u.createAssignment(Pr,Vu),ru=u.createExpressionStatement(u.createCallExpression(Pr,void 0,[]))}const Tu=u.createBlock([ru]);Gu=u.createClassStaticBlockDeclaration(Tu),Ne=void 0}if(hi||Gu){let ru;const Tu=Le(vt,gM),Pr=Le(vt,Y7);ru=Ei(ru,Tu),ru=Ei(ru,Pr),ru=Ei(ru,hi),ru=Ei(ru,Gu);const Vu=Tu||Pr?ei(vt,Fs=>Fs!==Tu&&Fs!==Pr):vt;ru=kn(ru,Vu),vt=Pt(u.createNodeArray(ru),$.members)}return{members:vt,prologue:fn}}function X(){const{weakSetName:$}=rs().data;H.assert($,"weakSetName should be set in private identifier environment"),So().push(u.createAssignment($,u.createNewExpression(u.createIdentifier("WeakSet"),void 0,[])))}function it($,tt){if($=yt($,Ze,dc),!(fe!=null&&fe.data)||!(fe.data.facts&16))return $;const vt=Yg(tt),hi=!!(vt&&_c(vt.expression).kind!==106),fn=Dc($?$.parameters:void 0,Ze,t),Gu=ct(tt,$,hi);return Gu?$?(H.assert(fn),u.updateConstructorDeclaration($,void 0,fn,Gu)):xh(lu(Pt(u.createConstructorDeclaration(void 0,fn??[],Gu),$||tt),$)):$}function Ct($,tt,vt,hi,fn,Gu,ru){const Tu=hi[fn],Pr=tt[Tu];if(kn($,Fn(tt,Ze,na,vt,Tu-vt)),vt=Tu+1,xk(Pr)){const Vu=[];Ct(Vu,Pr.tryBlock.statements,0,hi,fn+1,Gu,ru);const Fs=u.createNodeArray(Vu);Pt(Fs,Pr.tryBlock.statements),$.push(u.updateTryStatement(Pr,u.updateBlock(Pr.tryBlock,Vu),yt(Pr.catchClause,Ze,H2),yt(Pr.finallyBlock,Ze,fo)))}else{for(kn($,Fn(tt,Ze,na,Tu,1));vt!!A0.initializer||Xr(A0.name)||Xg(A0)));const Gu=mt($),ru=qe(fn)||qe(Gu);if(!tt&&!ru)return Rm(void 0,Ze,t);E();const Tu=!tt&&vt;let Pr=0,Vu=[];const Fs=[],tc=u.createThis();if(tr(Fs,Gu,tc),tt){const A0=ei(hi,f0=>Pf(Kl(f0),tt)),nd=ei(fn,f0=>!Pf(Kl(f0),tt));Qt(Fs,A0,tc),Qt(Fs,nd,tc)}else Qt(Fs,fn,tc);if(tt!=null&&tt.body){Pr=u.copyPrologue(tt.body.statements,Vu,!1,Ze);const A0=uQ(tt.body.statements,Pr);if(A0.length)Ct(Vu,tt.body.statements,Pr,A0,0,Fs,tt);else{for(;Pr=Vu.length?tt.body.multiLine??Vu.length>0:Vu.length>0;return Pt(u.createBlock(Pt(u.createNodeArray(Vu),tt?tt.body.statements:$.members),id),tt?tt.body:void 0)}function Qt($,tt,vt){for(const hi of tt){if(To(hi)&&!K)continue;const fn=Ti(hi,vt);fn&&$.push(fn)}}function Ti($,tt){const vt=Ml($)?Fr($,et,$):Bn($,tt);if(!vt)return;const hi=u.createExpressionStatement(vt);lu(hi,$),t_(hi,vs($)&3072),Sc(hi,$);const fn=Kl($);return eo(fn)?(ks(hi,fn),pV(hi)):ks(hi,tE($)),Tv(vt,void 0),k7(vt,void 0),Xg(fn)&&t_(hi,3072),hi}function $i($,tt){const vt=[];for(const hi of $){const fn=Ml(hi)?Fr(hi,et,hi):Fr(hi,()=>Bn(hi,tt),void 0);fn&&(xh(fn),lu(fn,hi),t_(fn,vs(hi)&3072),ks(fn,tE(hi)),Sc(fn,hi),vt.push(fn))}return vt}function Bn($,tt){var vt;const hi=Ae,fn=hu($,tt);return fn&&Hc($)&&((vt=fe==null?void 0:fe.data)!=null&&vt.facts)&&(lu(fn,$),t_(fn,4),ks(fn,wv($.name)),xe.set(Kl($),fe)),Ae=hi,fn}function hu($,tt){const vt=!T;zf($,gt)&&($=jf(t,$));const hi=Xg($)?u.getGeneratedPrivateNameForNode($.name):Ls($.name)&&!oE($.name.expression)?u.updateComputedPropertyName($.name,u.getGeneratedNameForNode($.name)):$.name;if(Hc($)&&(Ae=$),Xr(hi)&&Qu($)){const ru=Vo(hi);if(ru)return ru.kind==="f"?ru.isStatic?EMt(u,ru.variableName,yt($.initializer,Ze,Wt)):_Mt(u,tt,yt($.initializer,Ze,Wt),ru.brandCheckIdentifier):void 0;H.fail("Undeclared private name for property declaration.")}if((Xr(hi)||Hc($))&&!$.initializer)return;const fn=Kl($);if(Xu(fn,64))return;let Gu=yt($.initializer,Ze,Wt);if(Pf(fn,fn.parent)&&at(hi)){const ru=u.cloneNode(hi);Gu?(vf(Gu)&&NV(Gu.expression)&&OP(Gu.expression.left,"___runInitializers")&&z7(Gu.expression.right)&&Rf(Gu.expression.right.expression)&&(Gu=Gu.expression.left),Gu=u.inlineExpressions([Gu,ru])):Gu=ru,Qn(hi,3168),ks(ru,fn.name),Qn(ru,3072)}else Gu??(Gu=u.createVoidZero());if(vt||Xr(hi)){const ru=yk(u,tt,hi,hi);return t_(ru,1024),u.createAssignment(ru,Gu)}else{const ru=Ls(hi)?hi.expression:at(hi)?u.createStringLiteral(Yr(hi.escapedText)):hi,Tu=u.createPropertyDescriptor({value:Gu,configurable:!0,writable:!0,enumerable:!0});return u.createObjectDefinePropertyCall(tt,ru,Tu)}}function Ru(){ve&1||(ve|=1,t.enableSubstitution(80),Se=[])}function Er(){ve&2||(ve|=2,t.enableSubstitution(110),t.enableEmitNotification(262),t.enableEmitNotification(218),t.enableEmitNotification(176),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(174),t.enableEmitNotification(172),t.enableEmitNotification(167))}function tr($,tt,vt){if(!K||!qe(tt))return;const{weakSetName:hi}=rs().data;H.assert(hi,"weakSetName should be set in private identifier environment"),$.push(u.createExpressionStatement(DMt(u,vt,hi)))}function da($){return Iu($)?u.updatePropertyAccessExpression($,u.createVoidZero(),$.name):u.updateElementAccessExpression($,u.createVoidZero(),yt($.argumentExpression,Ze,Wt))}function Wu($,tt){if(Ls($)){const vt=CY($),hi=yt($.expression,Ze,Wt),fn=wp(hi),Gu=oE(fn);if(!(!!vt||od(fn)&&ul(fn.left))&&!Gu&&tt){const Tu=u.getGeneratedNameForNode($);return b.getNodeCheckFlags($)&32768?v(Tu):d(Tu),u.createAssignment(Tu,hi)}return Gu||at(fn)?void 0:hi}}function ja(){fe={previous:fe,data:void 0}}function Tn(){fe=fe==null?void 0:fe.previous}function Rr(){return H.assert(fe),fe.data??(fe.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function rs(){return H.assert(fe),fe.privateEnv??(fe.privateEnv=$Ae({className:void 0,weakSetName:void 0}))}function So(){return Ne??(Ne=[])}function An($,tt,vt,hi,fn,Gu,ru){Xh($)?Sl($,tt,vt,hi,fn,Gu):bo($)?xc($,tt,vt,hi,fn,Gu):cc($)?Za($,tt,vt,hi,fn,Gu):Mm($)?l0($,tt,vt,hi,fn,Gu,ru):Of($)&&$l($,tt,vt,hi,fn,Gu,ru)}function xc($,tt,vt,hi,fn,Gu,ru){if(fn){const Tu=H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"),Pr=so(tt);Ak(hi,tt,{kind:"f",isStatic:!0,brandCheckIdentifier:Tu,variableName:Pr,isValid:Gu})}else{const Tu=so(tt);Ak(hi,tt,{kind:"f",isStatic:!1,brandCheckIdentifier:Tu,isValid:Gu}),So().push(u.createAssignment(Tu,u.createNewExpression(u.createIdentifier("WeakMap"),void 0,[])))}}function Za($,tt,vt,hi,fn,Gu,ru){const Tu=so(tt),Pr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");Ak(hi,tt,{kind:"m",methodName:Tu,brandCheckIdentifier:Pr,isStatic:fn,isValid:Gu})}function l0($,tt,vt,hi,fn,Gu,ru){const Tu=so(tt,"_get"),Pr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");(ru==null?void 0:ru.kind)==="a"&&ru.isStatic===fn&&!ru.getterName?ru.getterName=Tu:Ak(hi,tt,{kind:"a",getterName:Tu,setterName:void 0,brandCheckIdentifier:Pr,isStatic:fn,isValid:Gu})}function $l($,tt,vt,hi,fn,Gu,ru){const Tu=so(tt,"_set"),Pr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");(ru==null?void 0:ru.kind)==="a"&&ru.isStatic===fn&&!ru.setterName?ru.setterName=Tu:Ak(hi,tt,{kind:"a",getterName:void 0,setterName:Tu,brandCheckIdentifier:Pr,isStatic:fn,isValid:Gu})}function Sl($,tt,vt,hi,fn,Gu,ru){const Tu=so(tt,"_get"),Pr=so(tt,"_set"),Vu=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(hi.data.weakSetName,"weakSetName should be set in private identifier environment");Ak(hi,tt,{kind:"a",getterName:Tu,setterName:Pr,brandCheckIdentifier:Vu,isStatic:fn,isValid:Gu})}function cd($,tt,vt){const hi=Rr(),fn=rs(),Gu=Zde(fn,tt),ru=Hc($),Tu=!xMt(tt)&&Gu===void 0;vt($,tt,hi,fn,ru,Tu,Gu)}function Dl($,tt,vt){const{className:hi}=rs().data,fn=hi?{prefix:"_",node:hi,suffix:"_"}:"_",Gu=typeof $=="object"?u.getGeneratedNameForNode($,24,fn,vt):typeof $=="string"?u.createUniqueName($,16,fn,vt):u.createTempVariable(void 0,!0,fn,vt);return b.getNodeCheckFlags(tt)&32768?v(Gu):d(Gu),Gu}function so($,tt){const vt=$N($);return Dl((vt==null?void 0:vt.substring(1))??$,$,tt)}function Vo($){const tt=UAe(fe,$);return(tt==null?void 0:tt.kind)==="untransformed"?void 0:tt}function td($){const tt=u.getGeneratedNameForNode($),vt=Vo($.name);if(!vt)return un($,Ze,t);let hi=$.expression;return(hj($)||tf($)||!U2($.expression))&&(hi=u.createTempVariable(d,!0),So().push(u.createBinaryExpression(hi,64,yt($.expression,Ze,Wt)))),u.createAssignmentTargetWrapper(tt,_i(vt,hi,tt,64))}function $0($){if(Cs($)||_h($))return Ri($);if(B8($))return td($);if(se&&Ae&&tf($)&&_M(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:hi}=fe.data;if(hi&1)return da($);if(tt&&vt){const fn=W0($)?yt($.argumentExpression,Ze,Wt):at($.name)?u.createStringLiteralFromNode($.name):void 0;if(fn){const Gu=u.createTempVariable(void 0);return u.createAssignmentTargetWrapper(Gu,u.createReflectSetCall(vt,fn,Gu,tt))}}}return un($,Ze,t)}function Ho($){if(zf($,gt)&&($=jf(t,$)),od($,!0)){const tt=$0($.left),vt=yt($.right,Ze,Wt);return u.updateBinaryExpression($,tt,$.operatorToken,vt)}return $0($)}function wc($){if(_f($.expression)){const tt=$0($.expression);return u.updateSpreadElement($,tt)}return un($,Ze,t)}function Kp($){if(UO($)){if(nE($))return wc($);if(!kd($))return Ho($)}return un($,Ze,t)}function Tc($){const tt=yt($.name,Ze,Ac);if(od($.initializer,!0)){const vt=Ho($.initializer);return u.updatePropertyAssignment($,tt,vt)}if(_f($.initializer)){const vt=$0($.initializer);return u.updatePropertyAssignment($,tt,vt)}return un($,Ze,t)}function zl($){return zf($,gt)&&($=jf(t,$)),un($,Ze,t)}function sl($){if(_f($.expression)){const tt=$0($.expression);return u.updateSpreadAssignment($,tt)}return un($,Ze,t)}function Ka($){return H.assertNode($,$O),c5($)?sl($):mm($)?zl($):Gc($)?Tc($):un($,Ze,t)}function Ri($){return _h($)?u.updateArrayLiteralExpression($,Fn($.elements,Kp,Wt)):u.updateObjectLiteralExpression($,Fn($.properties,Ka,q3))}function ll($,tt,vt){const hi=Kl(tt),fn=xe.get(hi);if(fn){const Gu=fe,ru=He;fe=fn,He=De,De=!Ml(hi)||!(Tp(hi)&32),Ce($,tt,vt),De=He,He=ru,fe=Gu;return}switch(tt.kind){case 218:if(G0(hi)||vs(tt)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Gu=fe,ru=He;fe=void 0,He=De,De=!1,Ce($,tt,vt),De=He,He=ru,fe=Gu;return}case 167:{const Gu=fe,ru=De;fe=fe==null?void 0:fe.previous,De=He,Ce($,tt,vt),De=ru,fe=Gu;return}}Ce($,tt,vt)}function $c($,tt){return tt=ae($,tt),$===1?vh(tt):tt}function vh($){switch($.kind){case 80:return U0($);case 110:return of($)}return $}function of($){if(ve&2&&(fe!=null&&fe.data)&&!Be.has($)){const{facts:tt,classConstructor:vt,classThis:hi}=fe.data,fn=De?hi??vt:vt;if(fn)return Pt(lu(u.cloneNode(fn),$),$);if(tt&1&&M)return u.createParenthesizedExpression(u.createVoidZero())}return $}function U0($){return vc($)||$}function vc($){if(ve&1&&b.getNodeCheckFlags($)&536870912){const tt=b.getReferencedValueDeclaration($);if(tt){const vt=Se[tt.id];if(vt){const hi=u.cloneNode(vt);return ks(hi,$),Sc(hi,$),hi}}}}}function EMt(t,u,s){return t.createAssignment(u,t.createObjectLiteralExpression([t.createPropertyAssignment("value",s||t.createVoidZero())]))}function _Mt(t,u,s,d){return t.createCallExpression(t.createPropertyAccessExpression(d,"set"),void 0,[u,s||t.createVoidZero()])}function DMt(t,u,s){return t.createCallExpression(t.createPropertyAccessExpression(s,"add"),void 0,[u])}function xMt(t){return!Jy(t)&&t.escapedText==="#constructor"}function vMt(t){return Xr(t.left)&&t.operatorToken.kind===103}function CMt(t){return bo(t)&&Hc(t)}function _M(t){return Ml(t)||CMt(t)}var bMt=o({"src/compiler/transformers/classFields.ts"(){Ao()}});function u7e(t){const{factory:u,hoistVariableDeclaration:s}=t,d=t.getEmitResolver(),f=t.getCompilerOptions(),p=Is(f),E=U4(f,"strictNullChecks");let v,b;return{serializeTypeNode:(Ne,pe)=>B(Ne,J,pe),serializeTypeOfNode:(Ne,pe)=>B(Ne,T,pe),serializeParameterTypesOfNode:(Ne,pe,fe)=>B(Ne,M,pe,fe),serializeReturnTypeOfNode:(Ne,pe)=>B(Ne,j,pe)};function B(Ne,pe,fe,xe){const Be=v,We=b;v=Ne.currentLexicalScope,b=Ne.currentNameScope;const Ae=xe===void 0?pe(fe):pe(fe,xe);return v=Be,b=We,Ae}function k(Ne){const pe=d.getAllAccessorDeclarations(Ne);return pe.setAccessor&&Dye(pe.setAccessor)||pe.getAccessor&&J4(pe.getAccessor)}function T(Ne){switch(Ne.kind){case 172:case 169:return J(Ne.type);case 178:case 177:return J(k(Ne));case 263:case 231:case 174:return u.createIdentifier("Function");default:return u.createVoidZero()}}function M(Ne,pe){const fe=gr(Ne)?Q_(Ne):xo(Ne)&&j4(Ne.body)?Ne:void 0,xe=[];if(fe){const Be=z(fe,pe),We=Be.length;for(let Ae=0;AeBe.parent&&yB(Be.parent)&&(Be.parent.trueType===Be||Be.parent.falseType===Be)))return u.createIdentifier("Object");const fe=ae(Ne.typeName),xe=u.createTempVariable(s);return u.createConditionalExpression(u.createTypeCheck(u.createAssignment(xe,fe),"function"),void 0,xe,void 0,u.createIdentifier("Object"));case 1:return Ce(Ne.typeName);case 2:return u.createVoidZero();case 4:return Se("BigInt",7);case 6:return u.createIdentifier("Boolean");case 3:return u.createIdentifier("Number");case 5:return u.createIdentifier("String");case 7:return u.createIdentifier("Array");case 8:return Se("Symbol",2);case 10:return u.createIdentifier("Function");case 9:return u.createIdentifier("Promise");case 11:return u.createIdentifier("Object");default:return H.assertNever(pe)}}function ge(Ne,pe){return u.createLogicalAnd(u.createStrictInequality(u.createTypeOfExpression(Ne),u.createStringLiteral("undefined")),pe)}function ae(Ne){if(Ne.kind===80){const xe=Ce(Ne);return ge(xe,xe)}if(Ne.left.kind===80)return ge(Ce(Ne.left),Ce(Ne));const pe=ae(Ne.left),fe=u.createTempVariable(s);return u.createLogicalAnd(u.createLogicalAnd(pe.left,u.createStrictInequality(u.createAssignment(fe,pe.right),u.createVoidZero())),u.createPropertyAccessExpression(fe,Ne.right))}function Ce(Ne){switch(Ne.kind){case 80:const pe=bs(Pt(r_.cloneNode(Ne),Ne),Ne.parent);return pe.original=void 0,bs(pe,Ua(v)),pe;case 166:return ne(Ne)}}function ne(Ne){return u.createPropertyAccessExpression(Ce(Ne.left),Ne.right)}function ve(Ne){return u.createConditionalExpression(u.createTypeCheck(u.createIdentifier(Ne),"function"),void 0,u.createIdentifier(Ne),void 0,u.createIdentifier("Object"))}function Se(Ne,pe){return pIV(bn)||p1(bn)?void 0:bn,rl),Un=tE(ht),rn=Gt(ht),Ni=E<2?u.getInternalName(ht,!1,!0):u.getLocalName(ht,!1,!0),Fi=Fn(ht.heritageClauses,T,fm);let Qu=Fn(ht.members,T,qd),aa=[];({members:Qu,decorationStatements:aa}=K(ht,Qu));const Fr=E>=9&&!!rn&&qe(Qu,bn=>bo(bn)&&Xu(bn,256)||Ml(bn));Fr&&(Qu=Pt(u.createNodeArray([u.createClassStaticBlockDeclaration(u.createBlock([u.createExpressionStatement(u.createAssignment(rn,u.createThis()))])),...Qu]),Qu));const Ba=u.createClassExpression(xn,Ut&&ul(Ut)?void 0:Ut,void 0,Fi,Qu);lu(Ba,ht),Pt(Ba,Un);const bt=rn&&!Fr?u.createAssignment(rn,Ba):Ba,jn=u.createVariableDeclaration(Ni,void 0,void 0,bt);lu(jn,ht);const Nn=u.createVariableDeclarationList([jn],1),Ai=u.createVariableStatement(void 0,Nn);lu(Ai,ht),Pt(Ai,Un),Sc(Ai,ht);const Dn=[Ai];if(kn(Dn,aa),He(Dn,ht),Li)if(ji){const bn=u.createExportDefault(Ni);Dn.push(bn)}else{const bn=u.createExternalModuleExport(u.getDeclarationName(ht));Dn.push(bn)}return Dn}function se(ht){return u.updateClassExpression(ht,Fn(ht.modifiers,k,Yo),ht.name,void 0,Fn(ht.heritageClauses,T,fm),Fn(ht.members,T,qd))}function ge(ht){return u.updateConstructorDeclaration(ht,Fn(ht.modifiers,k,Yo),Fn(ht.parameters,T,eo),yt(ht.body,T,fo))}function ae(ht,Ut){return ht!==Ut&&(Sc(ht,Ut),ks(ht,tE(Ut))),ht}function Ce(ht){return ae(u.updateMethodDeclaration(ht,Fn(ht.modifiers,k,Yo),ht.asteriskToken,H.checkDefined(yt(ht.name,T,Ac)),void 0,void 0,Fn(ht.parameters,T,eo),void 0,yt(ht.body,T,fo)),ht)}function ne(ht){return ae(u.updateGetAccessorDeclaration(ht,Fn(ht.modifiers,k,Yo),H.checkDefined(yt(ht.name,T,Ac)),Fn(ht.parameters,T,eo),void 0,yt(ht.body,T,fo)),ht)}function ve(ht){return ae(u.updateSetAccessorDeclaration(ht,Fn(ht.modifiers,k,Yo),H.checkDefined(yt(ht.name,T,Ac)),Fn(ht.parameters,T,eo),yt(ht.body,T,fo)),ht)}function Se(ht){if(!(ht.flags&33554432||Xu(ht,128)))return ae(u.updatePropertyDeclaration(ht,Fn(ht.modifiers,k,Yo),H.checkDefined(yt(ht.name,T,Ac)),void 0,void 0,yt(ht.initializer,T,Wt)),ht)}function Ne(ht){const Ut=u.updateParameterDeclaration(ht,IFe(u,ht.modifiers),ht.dotDotDotToken,H.checkDefined(yt(ht.name,T,$y)),void 0,void 0,yt(ht.initializer,T,Wt));return Ut!==ht&&(Sc(Ut,ht),Pt(Ut,tE(ht)),ks(Ut,tE(ht)),Qn(Ut.name,64)),Ut}function pe(ht){return OP(ht.expression,"___metadata")}function fe(ht){if(!ht)return;const{false:Ut,true:Li}=WCe(ht.decorators,pe),ji=[];return kn(ji,Kt(Ut,ft)),kn(ji,Ku(ht.parameters,Ze)),kn(ji,Kt(Li,ft)),ji}function xe(ht,Ut,Li){kn(ht,Kt(Ae(Ut,Li),ji=>u.createExpressionStatement(ji)))}function Be(ht,Ut,Li){return mj(!0,ht,Li)&&Ut===To(ht)}function We(ht,Ut){return ei(ht.members,Li=>Be(Li,Ut,ht))}function Ae(ht,Ut){const Li=We(ht,Ut);let ji;for(const xn of Li)ji=Ei(ji,De(ht,xn));return ji}function De(ht,Ut){const Li=aQ(Ut,ht,!0),ji=fe(Li);if(!ji)return;const xn=Ie(ht,Ut),Un=je(Ut,!Xu(Ut,128)),rn=E>0?bo(Ut)&&!Xg(Ut)?u.createVoidZero():u.createNull():void 0,Ni=s().createDecorateHelper(ji,xn,Un,rn);return Qn(Ni,3072),ks(Ni,tE(Ut)),Ni}function He(ht,Ut){const Li=Ge(Ut);Li&&ht.push(lu(u.createExpressionStatement(Li),Ut))}function Ge(ht){const Ut=qde(ht),Li=fe(Ut);if(!Li)return;const ji=b&&b[P1(ht)],xn=E<2?u.getInternalName(ht,!1,!0):u.getDeclarationName(ht,!1,!0),Un=s().createDecorateHelper(Li,xn),rn=u.createAssignment(xn,ji?u.createAssignment(ji,Un):Un);return Qn(rn,3072),ks(rn,tE(ht)),rn}function ft(ht){return H.checkDefined(yt(ht.expression,T,Wt))}function Ze(ht,Ut){let Li;if(ht){Li=[];for(const ji of ht){const xn=s().createParamHelper(ft(ji),Ut);Pt(xn,ji.expression),Qn(xn,3072),Li.push(xn)}}return Li}function je(ht,Ut){const Li=ht.name;return Xr(Li)?u.createIdentifier(""):Ls(Li)?Ut&&!oE(Li.expression)?u.getGeneratedNameForNode(Li):Li.expression:at(Li)?u.createStringLiteral(mu(Li)):u.cloneNode(Li)}function Ke(){b||(t.enableSubstitution(80),b=[])}function Gt(ht){if(f.getNodeCheckFlags(ht)&262144){Ke();const Ut=u.createUniqueName(ht.name&&!ul(ht.name)?mu(ht.name):"default");return b[P1(ht)]=Ut,d(Ut),Ut}}function Yt(ht){return u.createPropertyAccessExpression(u.getDeclarationName(ht),"prototype")}function Ie(ht,Ut){return To(Ut)?u.getDeclarationName(ht):Yt(ht)}function st(ht,Ut){return Ut=v(ht,Ut),ht===1?St(Ut):Ut}function St(ht){switch(ht.kind){case 80:return It(ht)}return ht}function It(ht){return ti(ht)??ht}function ti(ht){if(b&&f.getNodeCheckFlags(ht)&536870912){const Ut=f.getReferencedValueDeclaration(ht);if(Ut){const Li=b[Ut.id];if(Li){const ji=u.cloneNode(Li);return ks(ji,ht),Sc(ji,ht),ji}}}}}var kMt=o({"src/compiler/transformers/legacyDecorators.ts"(){Ao()}});function a7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=Is(t.getCompilerOptions());let v,b,B,k,T,M;return jp(t,z);function z(te){v=void 0,M=!1;const we=un(te,ve,t);return tD(we,t.readEmitHelpers()),M&&(y7(we,32),M=!1),we}function j(){switch(b=void 0,B=void 0,k=void 0,v==null?void 0:v.kind){case"class":b=v.classInfo;break;case"class-element":b=v.next.classInfo,B=v.classThis,k=v.classSuper;break;case"name":const te=v.next.next.next;(te==null?void 0:te.kind)==="class-element"&&(b=te.next.classInfo,B=te.classThis,k=te.classSuper);break}}function J(te){v={kind:"class",next:v,classInfo:te,savedPendingExpressions:T},T=void 0,j()}function K(){H.assert((v==null?void 0:v.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${v==null?void 0:v.kind}' instead.`),T=v.savedPendingExpressions,v=v.next,j()}function Y(te){var we,de;H.assert((v==null?void 0:v.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${v==null?void 0:v.kind}' instead.`),v={kind:"class-element",next:v},(Ml(te)||bo(te)&&Hc(te))&&(v.classThis=(we=v.next.classInfo)==null?void 0:we.classThis,v.classSuper=(de=v.next.classInfo)==null?void 0:de.classSuper),j()}function oe(){var te;H.assert((v==null?void 0:v.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${v==null?void 0:v.kind}' instead.`),H.assert(((te=v.next)==null?void 0:te.kind)==="class","Incorrect value for top.next.kind.",()=>{var we;return`Expected top.next.kind to be 'class' but got '${(we=v.next)==null?void 0:we.kind}' instead.`}),v=v.next,j()}function se(){H.assert((v==null?void 0:v.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${v==null?void 0:v.kind}' instead.`),v={kind:"name",next:v},j()}function ge(){H.assert((v==null?void 0:v.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${v==null?void 0:v.kind}' instead.`),v=v.next,j()}function ae(){(v==null?void 0:v.kind)==="other"?(H.assert(!T),v.depth++):(v={kind:"other",next:v,depth:0,savedPendingExpressions:T},T=void 0,j())}function Ce(){H.assert((v==null?void 0:v.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${v==null?void 0:v.kind}' instead.`),v.depth>0?(H.assert(!T),v.depth--):(T=v.savedPendingExpressions,v=v.next,j())}function ne(te){return!!(te.transformFlags&33554432)||!!B&&!!(te.transformFlags&16384)||!!B&&!!k&&!!(te.transformFlags&134217728)}function ve(te){if(!ne(te))return te;switch(te.kind){case 170:return H.fail("Use `modifierVisitor` instead.");case 263:return Ge(te);case 231:return ft(te);case 176:case 172:case 175:return H.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Un(te);case 226:return aa(te,!1);case 303:return Ai(te);case 260:return Dn(te);case 208:return bn(te);case 277:return Mt(te);case 110:return ht(te);case 248:return Fi(te);case 244:return Qu(te);case 361:return Ba(te,!1);case 217:return qt(te,!1);case 360:return Xt(te,!1);case 213:return Ut(te);case 215:return Li(te);case 224:case 225:return Fr(te,!1);case 211:return ji(te);case 212:return xn(te);case 167:return Nn(te);case 174:case 178:case 177:case 218:case 262:{ae();const we=un(te,Se,t);return Ce(),we}default:return un(te,Se,t)}}function Se(te){switch(te.kind){case 170:return;default:return ve(te)}}function Ne(te){switch(te.kind){case 170:return;default:return te}}function pe(te){switch(te.kind){case 176:return Ke(te);case 174:return Ie(te);case 177:return st(te);case 178:return St(te);case 172:return ti(te);case 175:return It(te);default:return ve(te)}}function fe(te){switch(te.kind){case 224:case 225:return Fr(te,!0);case 226:return aa(te,!0);case 361:return Ba(te,!0);case 217:return qt(te,!0);default:return ve(te)}}function xe(te){let we=te.name&&at(te.name)&&!ul(te.name)?mu(te.name):te.name&&Xr(te.name)&&!ul(te.name)?mu(te.name).slice(1):te.name&&ns(te.name)&&Tm(te.name.text,99)?te.name.text:gr(te)?"class":"member";return Tx(te)&&(we=`get_${we}`),XD(te)&&(we=`set_${we}`),te.name&&Xr(te.name)&&(we=`private_${we}`),To(te)&&(we=`static_${we}`),"_"+we}function Be(te,we){return u.createUniqueName(`${xe(te)}_${we}`,24)}function We(te,we){return u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(te,void 0,void 0,we)],1))}function Ae(te){const we=u.createUniqueName("_metadata",48);let de,Oe,X=!1,it=!1,Ct=!1;for(const ct of te.members)if(tbe(ct)&&mj(!1,ct,te)&&(Hc(ct)?Oe??(Oe=u.createUniqueName("_staticExtraInitializers",48)):de??(de=u.createUniqueName("_instanceExtraInitializers",48))),Ml(ct)?Y7(ct)||(X=!0):bo(ct)&&(Hc(ct)?X||(X=!!ct.initializer||a4(ct)):it||(it=!E0e(ct))),(mh(ct)||Xh(ct))&&Hc(ct)&&(Ct=!0),Oe&&de&&X&&it&&Ct)break;return{class:te,metadataReference:we,instanceExtraInitializersName:de,staticExtraInitializersName:Oe,hasStaticInitializers:X,hasNonAmbientInstanceFields:it,hasStaticPrivateClassElements:Ct}}function De(te){d(),!e1e(te)&&e5(!1,te)&&(te=sQ(t,te,u.createStringLiteral("")));const we=u.getLocalName(te,!1,!1,!0),de=Ae(te),Oe=[];let X,it,Ct,ct,Qt=!1;const Ti=et(qde(te));if(Ti){de.classDecoratorsName=u.createUniqueName("_classDecorators",48),de.classDescriptorName=u.createUniqueName("_classDescriptor",48),de.classExtraInitializersName=u.createUniqueName("_classExtraInitializers",48);const Tn=qe(te.members,Rr=>(mh(Rr)||Xh(Rr))&&Hc(Rr));de.classThis=u.createUniqueName("_classThis",Tn?24:48),Oe.push(We(de.classDecoratorsName,u.createArrayLiteralExpression(Ti)),We(de.classDescriptorName),We(de.classExtraInitializersName,u.createArrayLiteralExpression()),We(de.classThis)),de.hasStaticPrivateClassElements&&(Qt=!0,M=!0)}const $i=Nj(te.heritageClauses,96),Bn=$i&&Hi($i.types),hu=Bn&&yt(Bn.expression,ve,Wt);if(hu){de.classSuper=u.createUniqueName("_classSuper",48);const Tn=_c(hu),Rr=Qd(Tn)&&!Tn.name||F0(Tn)&&!Tn.name||G0(Tn)?u.createComma(u.createNumericLiteral(0),hu):hu;Oe.push(We(de.classSuper,Rr));const rs=u.updateExpressionWithTypeArguments(Bn,de.classSuper,void 0),So=u.updateHeritageClause($i,[rs]);ct=u.createNodeArray([So])}const Ru=de.classThis??u.createThis();J(de),X=Ei(X,Yi(de.metadataReference,de.classSuper));let Er=Fn(te.members,pe,qd);if(T){let Tn;for(let Rr of T){Rr=yt(Rr,function So(An){if(!(An.transformFlags&16384))return An;switch(An.kind){case 110:return Tn||(Tn=u.createUniqueName("_outerThis",16),Oe.unshift(We(Tn,u.createThis()))),Tn;default:return un(An,So,t)}},Wt);const rs=u.createExpressionStatement(Rr);X=Ei(X,rs)}T=void 0}if(K(),de.instanceExtraInitializersName&&!Q_(te)){const Tn=Ze(te,de);if(Tn){const Rr=Yg(te),rs=!!(Rr&&_c(Rr.expression).kind!==106),So=[];if(rs){const xc=u.createSpreadElement(u.createIdentifier("arguments")),Za=u.createCallExpression(u.createSuper(),void 0,[xc]);So.push(u.createExpressionStatement(Za))}kn(So,Tn);const An=u.createBlock(So,!0);Ct=u.createConstructorDeclaration(void 0,[],An)}}if(de.staticExtraInitializersName&&Oe.push(We(de.staticExtraInitializersName,u.createArrayLiteralExpression())),de.instanceExtraInitializersName&&Oe.push(We(de.instanceExtraInitializersName,u.createArrayLiteralExpression())),de.memberInfos&&d1(de.memberInfos,(Tn,Rr)=>{To(Rr)&&(Oe.push(We(Tn.memberDecoratorsName)),Tn.memberInitializersName&&Oe.push(We(Tn.memberInitializersName,u.createArrayLiteralExpression())),Tn.memberDescriptorName&&Oe.push(We(Tn.memberDescriptorName)))}),de.memberInfos&&d1(de.memberInfos,(Tn,Rr)=>{To(Rr)||(Oe.push(We(Tn.memberDecoratorsName)),Tn.memberInitializersName&&Oe.push(We(Tn.memberInitializersName,u.createArrayLiteralExpression())),Tn.memberDescriptorName&&Oe.push(We(Tn.memberDescriptorName)))}),X=kn(X,de.staticNonFieldDecorationStatements),X=kn(X,de.nonStaticNonFieldDecorationStatements),X=kn(X,de.staticFieldDecorationStatements),X=kn(X,de.nonStaticFieldDecorationStatements),de.classDescriptorName&&de.classDecoratorsName&&de.classExtraInitializersName&&de.classThis){X??(X=[]);const Tn=u.createPropertyAssignment("value",Ru),Rr=u.createObjectLiteralExpression([Tn]),rs=u.createAssignment(de.classDescriptorName,Rr),So=u.createPropertyAccessExpression(Ru,"name"),An=s().createESDecorateHelper(u.createNull(),rs,de.classDecoratorsName,{kind:"class",name:So,metadata:de.metadataReference},u.createNull(),de.classExtraInitializersName),xc=u.createExpressionStatement(An);ks(xc,a5(te)),X.push(xc);const Za=u.createPropertyAccessExpression(de.classDescriptorName,"value"),l0=u.createAssignment(de.classThis,Za),$l=u.createAssignment(we,l0);X.push(u.createExpressionStatement($l))}if(X.push(on(Ru,de.metadataReference)),de.staticExtraInitializersName){const Tn=s().createRunInitializersHelper(Ru,de.staticExtraInitializersName),Rr=u.createExpressionStatement(Tn);ks(Rr,te.name??a5(te)),X=Ei(X,Rr)}if(de.classExtraInitializersName){const Tn=s().createRunInitializersHelper(Ru,de.classExtraInitializersName),Rr=u.createExpressionStatement(Tn);ks(Rr,te.name??a5(te)),it=Ei(it,Rr)}X&&it&&!de.hasStaticInitializers&&(kn(X,it),it=void 0);const tr=X&&u.createClassStaticBlockDeclaration(u.createBlock(X,!0));tr&&Qt&&gV(tr,32);const da=it&&u.createClassStaticBlockDeclaration(u.createBlock(it,!0));if(tr||Ct||da){const Tn=[],Rr=Er.findIndex(Y7);tr?(kn(Tn,Er,0,Rr+1),Tn.push(tr),kn(Tn,Er,Rr+1)):kn(Tn,Er),Ct&&Tn.push(Ct),da&&Tn.push(da),Er=Pt(u.createNodeArray(Tn),Er)}const Wu=f();let ja;if(Ti){ja=u.createClassExpression(void 0,void 0,void 0,ct,Er),de.classThis&&(ja=QAe(u,ja,de.classThis));const Tn=u.createVariableDeclaration(we,void 0,void 0,ja),Rr=u.createVariableDeclarationList([Tn]),rs=de.classThis?u.createAssignment(we,de.classThis):we;Oe.push(u.createVariableStatement(void 0,Rr),u.createReturnStatement(rs))}else ja=u.createClassExpression(void 0,te.name,void 0,ct,Er),Oe.push(u.createReturnStatement(ja));if(Qt){y7(ja,32);for(const Tn of ja.members)(mh(Tn)||Xh(Tn))&&Hc(Tn)&&y7(Tn,32)}return lu(ja,te),u.createImmediatelyInvokedArrowFunction(u.mergeLexicalEnvironment(Oe,Wu))}function He(te){return e5(!1,te)||YN(!1,te)}function Ge(te){if(He(te)){const we=[],de=Kl(te,gr)??te,Oe=de.name?u.createStringLiteralFromNode(de.name):u.createStringLiteral("default"),X=Xu(te,32),it=Xu(te,2048);if(te.name||(te=sQ(t,te,Oe)),X&&it){const Ct=De(te);if(te.name){const ct=u.createVariableDeclaration(u.getLocalName(te),void 0,void 0,Ct);lu(ct,te);const Qt=u.createVariableDeclarationList([ct],1),Ti=u.createVariableStatement(void 0,Qt);we.push(Ti);const $i=u.createExportDefault(u.getDeclarationName(te));lu($i,te),Sc($i,iE(te)),ks($i,a5(te)),we.push($i)}else{const ct=u.createExportDefault(Ct);lu(ct,te),Sc(ct,iE(te)),ks(ct,a5(te)),we.push(ct)}}else{H.assertIsDefined(te.name,"A class declaration that is not a default export must have a name.");const Ct=De(te),ct=X?Ru=>w7(Ru)?void 0:Ne(Ru):Ne,Qt=Fn(te.modifiers,ct,Yo),Ti=u.getLocalName(te,!1,!0),$i=u.createVariableDeclaration(Ti,void 0,void 0,Ct);lu($i,te);const Bn=u.createVariableDeclarationList([$i],1),hu=u.createVariableStatement(Qt,Bn);if(lu(hu,te),Sc(hu,iE(te)),we.push(hu),X){const Ru=u.createExternalModuleExport(Ti);lu(Ru,te),we.push(Ru)}}return k0(we)}else{const we=Fn(te.modifiers,Ne,Yo),de=Fn(te.heritageClauses,ve,fm);J(void 0);const Oe=Fn(te.members,pe,qd);return K(),u.updateClassDeclaration(te,we,te.name,void 0,de,Oe)}}function ft(te){if(He(te)){const we=De(te);return lu(we,te),we}else{const we=Fn(te.modifiers,Ne,Yo),de=Fn(te.heritageClauses,ve,fm);J(void 0);const Oe=Fn(te.members,pe,qd);return K(),u.updateClassExpression(te,we,te.name,void 0,de,Oe)}}function Ze(te,we){if(we.instanceExtraInitializersName&&!we.hasNonAmbientInstanceFields){const de=[];return de.push(u.createExpressionStatement(s().createRunInitializersHelper(u.createThis(),we.instanceExtraInitializersName))),de}}function je(te,we,de,Oe,X,it){const Ct=Oe[X],ct=we[Ct];if(kn(te,Fn(we,ve,na,de,Ct-de)),xk(ct)){const Qt=[];je(Qt,ct.tryBlock.statements,0,Oe,X+1,it);const Ti=u.createNodeArray(Qt);Pt(Ti,ct.tryBlock.statements),te.push(u.updateTryStatement(ct,u.updateBlock(ct.tryBlock,Qt),yt(ct.catchClause,ve,H2),yt(ct.finallyBlock,ve,fo)))}else kn(te,Fn(we,ve,na,Ct,1)),kn(te,it);kn(te,Fn(we,ve,na,Ct+1))}function Ke(te){Y(te);const we=Fn(te.modifiers,Ne,Yo),de=Fn(te.parameters,ve,eo);let Oe;if(te.body&&b){const X=Ze(b.class,b);if(X){const it=[],Ct=u.copyPrologue(te.body.statements,it,!1,ve),ct=uQ(te.body.statements,Ct);ct.length>0?je(it,te.body.statements,Ct,ct,0,X):(kn(it,X),kn(it,Fn(te.body.statements,ve,na))),Oe=u.createBlock(it,!0),lu(Oe,te.body),Pt(Oe,te.body)}}return Oe??(Oe=yt(te.body,ve,fo)),oe(),u.updateConstructorDeclaration(te,we,de,Oe)}function Gt(te,we){return te!==we&&(Sc(te,we),ks(te,a5(we))),te}function Yt(te,we,de){let Oe,X,it,Ct,ct;if(!we){const $i=Fn(te.modifiers,Ne,Yo);return se(),X=jn(te.name),ge(),{modifiers:$i,referencedName:Oe,name:X,initializersName:it,descriptorName:ct,thisArg:Ct}}const Qt=et(aQ(te,we.class,!1)),Ti=Fn(te.modifiers,Ne,Yo);if(Qt){const $i=Be(te,"decorators"),Bn=u.createArrayLiteralExpression(Qt),hu=u.createAssignment($i,Bn),Ru={memberDecoratorsName:$i};we.memberInfos??(we.memberInfos=new Map),we.memberInfos.set(te,Ru),T??(T=[]),T.push(hu);const Er=T8(te)||Xh(te)?To(te)?we.staticNonFieldDecorationStatements??(we.staticNonFieldDecorationStatements=[]):we.nonStaticNonFieldDecorationStatements??(we.nonStaticNonFieldDecorationStatements=[]):bo(te)&&!Xh(te)?To(te)?we.staticFieldDecorationStatements??(we.staticFieldDecorationStatements=[]):we.nonStaticFieldDecorationStatements??(we.nonStaticFieldDecorationStatements=[]):H.fail(),tr=Mm(te)?"getter":Of(te)?"setter":cc(te)?"method":Xh(te)?"accessor":bo(te)?"field":H.fail();let da;if(at(te.name)||Xr(te.name))da={computed:!1,name:te.name};else if(Qg(te.name))da={computed:!0,name:u.createStringLiteralFromNode(te.name)};else{const Tn=te.name.expression;Qg(Tn)&&!at(Tn)?da={computed:!0,name:u.createStringLiteralFromNode(Tn)}:(se(),{referencedName:Oe,name:X}=bt(te.name),da={computed:!0,name:Oe},ge())}const Wu={kind:tr,name:da,static:To(te),private:Xr(te.name),access:{get:bo(te)||Mm(te)||cc(te),set:bo(te)||Of(te)},metadata:we.metadataReference},ja=To(te)?we.staticExtraInitializersName??(we.staticExtraInitializersName=u.createUniqueName("_staticExtraInitializers",48)):we.instanceExtraInitializersName??(we.instanceExtraInitializersName=u.createUniqueName("_instanceExtraInitializers",48));if(T8(te)){let Tn;mh(te)&&de&&(Tn=de(te,Fn(Ti,So=>ar(So,jP),Yo)),Ru.memberDescriptorName=ct=Be(te,"descriptor"),Tn=u.createAssignment(ct,Tn));const Rr=s().createESDecorateHelper(u.createThis(),Tn??u.createNull(),$i,Wu,u.createNull(),ja),rs=u.createExpressionStatement(Rr);ks(rs,a5(te)),Er.push(rs)}else if(bo(te)){it=Ru.memberInitializersName??(Ru.memberInitializersName=Be(te,"initializers")),To(te)&&(Ct=we.classThis);let Tn;mh(te)&&Xg(te)&&de&&(Tn=de(te,void 0),Ru.memberDescriptorName=ct=Be(te,"descriptor"),Tn=u.createAssignment(ct,Tn));const Rr=s().createESDecorateHelper(Xh(te)?u.createThis():u.createNull(),Tn??u.createNull(),$i,Wu,it,ja),rs=u.createExpressionStatement(Rr);ks(rs,a5(te)),Er.push(rs)}}return X===void 0&&(se(),X=jn(te.name),ge()),!qe(Ti)&&(cc(te)||bo(te))&&Qn(X,1024),{modifiers:Ti,referencedName:Oe,name:X,initializersName:it,descriptorName:ct,thisArg:Ct}}function Ie(te){Y(te);const{modifiers:we,name:de,descriptorName:Oe}=Yt(te,b,me);if(Oe)return oe(),Gt(jt(we,de,Oe),te);{const X=Fn(te.parameters,ve,eo),it=yt(te.body,ve,fo);return oe(),Gt(u.updateMethodDeclaration(te,we,te.asteriskToken,de,void 0,void 0,X,void 0,it),te)}}function st(te){Y(te);const{modifiers:we,name:de,descriptorName:Oe}=Yt(te,b,ni);if(Oe)return oe(),Gt(pi(we,de,Oe),te);{const X=Fn(te.parameters,ve,eo),it=yt(te.body,ve,fo);return oe(),Gt(u.updateGetAccessorDeclaration(te,we,de,X,void 0,it),te)}}function St(te){Y(te);const{modifiers:we,name:de,descriptorName:Oe}=Yt(te,b,_i);if(Oe)return oe(),Gt(Ji(we,de,Oe),te);{const X=Fn(te.parameters,ve,eo),it=yt(te.body,ve,fo);return oe(),Gt(u.updateSetAccessorDeclaration(te,we,de,X,it),te)}}function It(te){Y(te);let we;if(Y7(te))we=un(te,ve,t);else if(gM(te)){const de=B;B=void 0,we=un(te,ve,t),B=de}else b&&(b.hasStaticInitializers=!0),we=un(te,ve,t);return oe(),we}function ti(te){zf(te,rn)&&(te=jf(t,te,Ni(te.initializer))),Y(te),H.assert(!E0e(te),"Not yet implemented.");const{modifiers:we,name:de,initializersName:Oe,descriptorName:X,thisArg:it}=Yt(te,b,Xg(te)?mt:void 0);d();let Ct=yt(te.initializer,ve,Wt);Oe&&(Ct=s().createRunInitializersHelper(it??u.createThis(),Oe,Ct??u.createVoidZero())),!To(te)&&(b!=null&&b.instanceExtraInitializersName)&&!(b!=null&&b.hasInjectedInstanceInitializers)&&(b.hasInjectedInstanceInitializers=!0,Ct??(Ct=u.createVoidZero()),Ct=u.createParenthesizedExpression(u.createComma(s().createRunInitializersHelper(u.createThis(),b.instanceExtraInitializersName),Ct))),To(te)&&b&&Ct&&(b.hasStaticInitializers=!0);const ct=f();if(qe(ct)&&(Ct=u.createImmediatelyInvokedArrowFunction([...ct,u.createReturnStatement(Ct)])),oe(),Xg(te)&&X){const Qt=iE(te),Ti=wv(te),$i=te.name;let Bn=$i,hu=$i;if(Ls($i)&&!oE($i.expression)){const Wu=CY($i);if(Wu)Bn=u.updateComputedPropertyName($i,yt($i.expression,ve,Wt)),hu=u.updateComputedPropertyName($i,Wu.left);else{const ja=u.createTempVariable(p);ks(ja,$i.expression);const Tn=yt($i.expression,ve,Wt),Rr=u.createAssignment(ja,Tn);ks(Rr,$i.expression),Bn=u.updateComputedPropertyName($i,Rr),hu=u.updateComputedPropertyName($i,ja)}}const Ru=Fn(we,Wu=>Wu.kind!==129?Wu:void 0,Yo),Er=Kce(u,te,Ru,Ct);lu(Er,te),Qn(Er,3072),ks(Er,Ti),ks(Er.name,te.name);const tr=pi(Ru,Bn,X);lu(tr,te),Sc(tr,Qt),ks(tr,Ti);const da=Ji(Ru,hu,X);return lu(da,te),Qn(da,3072),ks(da,Ti),[Er,tr,da]}return Gt(u.updatePropertyDeclaration(te,we,de,void 0,void 0,Ct),te)}function ht(te){return B??te}function Ut(te){if(tf(te.expression)&&B){const we=yt(te.expression,ve,Wt),de=Fn(te.arguments,ve,Wt),Oe=u.createFunctionCallCall(we,B,de);return lu(Oe,te),Pt(Oe,te),Oe}return un(te,ve,t)}function Li(te){if(tf(te.tag)&&B){const we=yt(te.tag,ve,Wt),de=u.createFunctionBindCall(we,B,[]);lu(de,te),Pt(de,te);const Oe=yt(te.template,ve,L8);return u.updateTaggedTemplateExpression(te,de,void 0,Oe)}return un(te,ve,t)}function ji(te){if(tf(te)&&at(te.name)&&B&&k){const we=u.createStringLiteralFromNode(te.name),de=u.createReflectGetCall(k,we,B);return lu(de,te.expression),Pt(de,te.expression),de}return un(te,ve,t)}function xn(te){if(tf(te)&&B&&k){const we=yt(te.argumentExpression,ve,Wt),de=u.createReflectGetCall(k,we,B);return lu(de,te.expression),Pt(de,te.expression),de}return un(te,ve,t)}function Un(te){zf(te,rn)&&(te=jf(t,te,Ni(te.initializer)));const we=u.updateParameterDeclaration(te,void 0,te.dotDotDotToken,yt(te.name,ve,$y),void 0,void 0,yt(te.initializer,ve,Wt));return we!==te&&(Sc(we,te),Pt(we,tE(te)),ks(we,tE(te)),Qn(we.name,64)),we}function rn(te){return Qd(te)&&!te.name&&He(te)}function Ni(te){const we=_c(te);return Qd(we)&&!we.name&&!e5(!1,we)}function Fi(te){return u.updateForStatement(te,yt(te.initializer,fe,r4),yt(te.condition,ve,Wt),yt(te.incrementor,fe,Wt),Mh(te.statement,ve,t))}function Qu(te){return un(te,fe,t)}function aa(te,we){if(u5(te)){const de=Et(te.left),Oe=yt(te.right,ve,Wt);return u.updateBinaryExpression(te,de,te.operatorToken,Oe)}if(od(te)){if(zf(te,rn))return te=jf(t,te,Ni(te.right)),un(te,ve,t);if(tf(te.left)&&B&&k){let de=W0(te.left)?yt(te.left.argumentExpression,ve,Wt):at(te.left.name)?u.createStringLiteralFromNode(te.left.name):void 0;if(de){let Oe=yt(te.right,ve,Wt);if(fM(te.operatorToken.kind)){let it=de;oE(de)||(it=u.createTempVariable(p),de=u.createAssignment(it,de));const Ct=u.createReflectGetCall(k,it,B);lu(Ct,te.left),Pt(Ct,te.left),Oe=u.createBinaryExpression(Ct,mM(te.operatorToken.kind),Oe),Pt(Oe,te)}const X=we?void 0:u.createTempVariable(p);return X&&(Oe=u.createAssignment(X,Oe),Pt(X,te)),Oe=u.createReflectSetCall(k,de,Oe,B),lu(Oe,te),Pt(Oe,te),X&&(Oe=u.createComma(Oe,X),Pt(Oe,te)),Oe}}}if(te.operatorToken.kind===28){const de=yt(te.left,fe,Wt),Oe=yt(te.right,we?fe:ve,Wt);return u.updateBinaryExpression(te,de,te.operatorToken,Oe)}return un(te,ve,t)}function Fr(te,we){if(te.operator===46||te.operator===47){const de=s0(te.operand);if(tf(de)&&B&&k){let Oe=W0(de)?yt(de.argumentExpression,ve,Wt):at(de.name)?u.createStringLiteralFromNode(de.name):void 0;if(Oe){let X=Oe;oE(Oe)||(X=u.createTempVariable(p),Oe=u.createAssignment(X,Oe));let it=u.createReflectGetCall(k,X,B);lu(it,te),Pt(it,te);const Ct=we?void 0:u.createTempVariable(p);return it=pY(u,te,it,p,Ct),it=u.createReflectSetCall(k,Oe,it,B),lu(it,te),Pt(it,te),Ct&&(it=u.createComma(it,Ct),Pt(it,te)),it}}}return un(te,ve,t)}function Ba(te,we){const de=we?cH(te.elements,fe):cH(te.elements,ve,fe);return u.updateCommaListExpression(te,de)}function bt(te){if(Qg(te)||Xr(te)){const it=u.createStringLiteralFromNode(te),Ct=yt(te,ve,Ac);return{referencedName:it,name:Ct}}if(Qg(te.expression)&&!at(te.expression)){const it=u.createStringLiteralFromNode(te.expression),Ct=yt(te,ve,Ac);return{referencedName:it,name:Ct}}const we=u.getGeneratedNameForNode(te);p(we);const de=s().createPropKeyHelper(yt(te.expression,ve,Wt)),Oe=u.createAssignment(we,de),X=u.updateComputedPropertyName(te,Pe(Oe));return{referencedName:we,name:X}}function jn(te){return Ls(te)?Nn(te):yt(te,ve,Ac)}function Nn(te){let we=yt(te.expression,ve,Wt);return oE(we)||(we=Pe(we)),u.updateComputedPropertyName(te,we)}function Ai(te){return zf(te,rn)&&(te=jf(t,te,Ni(te.initializer))),un(te,ve,t)}function Dn(te){return zf(te,rn)&&(te=jf(t,te,Ni(te.initializer))),un(te,ve,t)}function bn(te){return zf(te,rn)&&(te=jf(t,te,Ni(te.initializer))),un(te,ve,t)}function iu(te){if(Cs(te)||_h(te))return Et(te);if(tf(te)&&B&&k){const we=W0(te)?yt(te.argumentExpression,ve,Wt):at(te.name)?u.createStringLiteralFromNode(te.name):void 0;if(we){const de=u.createTempVariable(void 0),Oe=u.createAssignmentTargetWrapper(de,u.createReflectSetCall(k,we,de,B));return lu(Oe,te),Pt(Oe,te),Oe}}return un(te,ve,t)}function oa(te){if(od(te,!0)){zf(te,rn)&&(te=jf(t,te,Ni(te.right)));const we=iu(te.left),de=yt(te.right,ve,Wt);return u.updateBinaryExpression(te,we,te.operatorToken,de)}else return iu(te)}function xa(te){if(_f(te.expression)){const we=iu(te.expression);return u.updateSpreadElement(te,we)}return un(te,ve,t)}function ra(te){return H.assertNode(te,UO),nE(te)?xa(te):kd(te)?un(te,ve,t):oa(te)}function wa(te){const we=yt(te.name,ve,Ac);if(od(te.initializer,!0)){const de=oa(te.initializer);return u.updatePropertyAssignment(te,we,de)}if(_f(te.initializer)){const de=iu(te.initializer);return u.updatePropertyAssignment(te,we,de)}return un(te,ve,t)}function Zo(te){return zf(te,rn)&&(te=jf(t,te,Ni(te.objectAssignmentInitializer))),un(te,ve,t)}function vo(te){if(_f(te.expression)){const we=iu(te.expression);return u.updateSpreadAssignment(te,we)}return un(te,ve,t)}function Qe(te){return H.assertNode(te,$O),c5(te)?vo(te):mm(te)?Zo(te):Gc(te)?wa(te):un(te,ve,t)}function Et(te){if(_h(te)){const we=Fn(te.elements,ra,Wt);return u.updateArrayLiteralExpression(te,we)}else{const we=Fn(te.properties,Qe,q3);return u.updateObjectLiteralExpression(te,we)}}function Mt(te){return zf(te,rn)&&(te=jf(t,te,Ni(te.expression))),un(te,ve,t)}function qt(te,we){const de=we?fe:ve,Oe=yt(te.expression,de,Wt);return u.updateParenthesizedExpression(te,Oe)}function Xt(te,we){const de=we?fe:ve,Oe=yt(te.expression,de,Wt);return u.updatePartiallyEmittedExpression(te,Oe)}function Pe(te){return qe(T)&&(vf(te)?(T.push(te.expression),te=u.updateParenthesizedExpression(te,u.inlineExpressions(T))):(T.push(te),te=u.inlineExpressions(T)),T=void 0),te}function et(te){if(!te)return;const we=[];return kn(we,Kt(te.decorators,gt)),we}function gt(te){const we=yt(te.expression,ve,Wt);Qn(we,3072);const de=_c(we);if(N0(de)){const{target:Oe,thisArg:X}=u.createCallBinding(we,p,E,!0);return u.restoreOuterExpressions(we,u.createFunctionBindCall(Oe,X,[]))}return we}function ii(te,we,de,Oe,X,it,Ct){const ct=u.createFunctionExpression(de,Oe,void 0,void 0,it,void 0,Ct??u.createBlock([]));lu(ct,te),ks(ct,a5(te)),Qn(ct,3072);const Qt=X==="get"||X==="set"?X:void 0,Ti=u.createStringLiteralFromNode(we,void 0),$i=s().createSetFunctionNameHelper(ct,Ti,Qt),Bn=u.createPropertyAssignment(u.createIdentifier(X),$i);return lu(Bn,te),ks(Bn,a5(te)),Qn(Bn,3072),Bn}function me(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,te.asteriskToken,"value",Fn(te.parameters,ve,eo),yt(te.body,ve,fo))])}function ni(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"get",[],yt(te.body,ve,fo))])}function _i(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"set",Fn(te.parameters,ve,eo),yt(te.body,ve,fo))])}function mt(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"get",[],u.createBlock([u.createReturnStatement(u.createPropertyAccessExpression(u.createThis(),u.getGeneratedPrivateNameForNode(te.name)))])),ii(te,te.name,we,void 0,"set",[u.createParameterDeclaration(void 0,void 0,"value")],u.createBlock([u.createExpressionStatement(u.createAssignment(u.createPropertyAccessExpression(u.createThis(),u.getGeneratedPrivateNameForNode(te.name)),u.createIdentifier("value")))]))])}function jt(te,we,de){return te=Fn(te,Oe=>T7(Oe)?Oe:void 0,Yo),u.createGetAccessorDeclaration(te,we,[],void 0,u.createBlock([u.createReturnStatement(u.createPropertyAccessExpression(de,u.createIdentifier("value")))]))}function pi(te,we,de){return te=Fn(te,Oe=>T7(Oe)?Oe:void 0,Yo),u.createGetAccessorDeclaration(te,we,[],void 0,u.createBlock([u.createReturnStatement(u.createFunctionCallCall(u.createPropertyAccessExpression(de,u.createIdentifier("get")),u.createThis(),[]))]))}function Ji(te,we,de){return te=Fn(te,Oe=>T7(Oe)?Oe:void 0,Yo),u.createSetAccessorDeclaration(te,we,[u.createParameterDeclaration(void 0,void 0,"value")],u.createBlock([u.createReturnStatement(u.createFunctionCallCall(u.createPropertyAccessExpression(de,u.createIdentifier("set")),u.createThis(),[u.createIdentifier("value")]))]))}function Yi(te,we){const de=u.createVariableDeclaration(te,void 0,void 0,u.createConditionalExpression(u.createLogicalAnd(u.createTypeCheck(u.createIdentifier("Symbol"),"function"),u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata")),u.createToken(58),u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"create"),void 0,[we?le(we):u.createNull()]),u.createToken(59),u.createVoidZero()));return u.createVariableStatement(void 0,u.createVariableDeclarationList([de],2))}function on(te,we){const de=u.createObjectDefinePropertyCall(te,u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata"),u.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:we},!0));return Qn(u.createIfStatement(we,u.createExpressionStatement(de)),1)}function le(te){return u.createBinaryExpression(u.createElementAccessExpression(te,u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata")),61,u.createNull())}}var FMt=o({"src/compiler/transformers/esDecorators.ts"(){Ao()}});function o7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=t.getEmitResolver(),v=t.getCompilerOptions(),b=Is(v);let B,k=0,T,M,z;const j=[];let J=0;const K=t.onEmitNode,Y=t.onSubstituteNode;return t.onEmitNode=Un,t.onSubstituteNode=rn,jp(t,oe);function oe(bt){if(bt.isDeclarationFile)return bt;se(1,!1),se(2,!g0e(bt,v));const jn=un(bt,Se,t);return tD(jn,t.readEmitHelpers()),jn}function se(bt,jn){J=jn?J|bt:J&~bt}function ge(bt){return(J&bt)!==0}function ae(){return!ge(1)}function Ce(){return ge(2)}function ne(bt,jn,Nn){const Ai=bt&~J;if(Ai){se(Ai,!0);const Dn=jn(Nn);return se(Ai,!1),Dn}return jn(Nn)}function ve(bt){return un(bt,Se,t)}function Se(bt){if(!(bt.transformFlags&256))return bt;switch(bt.kind){case 134:return;case 223:return Ae(bt);case 174:return ne(3,He,bt);case 262:return ne(3,Ze,bt);case 218:return ne(3,je,bt);case 219:return ne(1,Ke,bt);case 211:return M&&Iu(bt)&&bt.expression.kind===108&&M.add(bt.name.escapedText),un(bt,Se,t);case 212:return M&&bt.expression.kind===108&&(z=!0),un(bt,Se,t);case 177:return ne(3,Ge,bt);case 178:return ne(3,ft,bt);case 176:return ne(3,De,bt);case 263:case 231:return ne(3,ve,bt);default:return un(bt,Se,t)}}function Ne(bt){if(oye(bt))switch(bt.kind){case 243:return fe(bt);case 248:return We(bt);case 249:return xe(bt);case 250:return Be(bt);case 299:return pe(bt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return un(bt,Ne,t);default:return H.assertNever(bt,"Unhandled node.")}return Se(bt)}function pe(bt){const jn=new Set;Gt(bt.variableDeclaration,jn);let Nn;if(jn.forEach((Ai,Dn)=>{T.has(Dn)&&(Nn||(Nn=new Set(T)),Nn.delete(Dn))}),Nn){const Ai=T;T=Nn;const Dn=un(bt,Ne,t);return T=Ai,Dn}else return un(bt,Ne,t)}function fe(bt){if(Yt(bt.declarationList)){const jn=Ie(bt.declarationList,!1);return jn?u.createExpressionStatement(jn):void 0}return un(bt,Se,t)}function xe(bt){return u.updateForInStatement(bt,Yt(bt.initializer)?Ie(bt.initializer,!0):H.checkDefined(yt(bt.initializer,Se,r4)),H.checkDefined(yt(bt.expression,Se,Wt)),Mh(bt.statement,Ne,t))}function Be(bt){return u.updateForOfStatement(bt,yt(bt.awaitModifier,Se,Ece),Yt(bt.initializer)?Ie(bt.initializer,!0):H.checkDefined(yt(bt.initializer,Se,r4)),H.checkDefined(yt(bt.expression,Se,Wt)),Mh(bt.statement,Ne,t))}function We(bt){const jn=bt.initializer;return u.updateForStatement(bt,Yt(jn)?Ie(jn,!1):yt(bt.initializer,Se,r4),yt(bt.condition,Se,Wt),yt(bt.incrementor,Se,Wt),Mh(bt.statement,Ne,t))}function Ae(bt){return ae()?un(bt,Se,t):lu(Pt(u.createYieldExpression(void 0,yt(bt.expression,Se,Wt)),bt),bt)}function De(bt){return u.updateConstructorDeclaration(bt,Fn(bt.modifiers,Se,Yo),Dc(bt.parameters,Se,t),ht(bt))}function He(bt){return u.updateMethodDeclaration(bt,Fn(bt.modifiers,Se,rl),bt.asteriskToken,bt.name,void 0,void 0,Dc(bt.parameters,Se,t),void 0,yd(bt)&2?Ut(bt):ht(bt))}function Ge(bt){return u.updateGetAccessorDeclaration(bt,Fn(bt.modifiers,Se,rl),bt.name,Dc(bt.parameters,Se,t),void 0,ht(bt))}function ft(bt){return u.updateSetAccessorDeclaration(bt,Fn(bt.modifiers,Se,rl),bt.name,Dc(bt.parameters,Se,t),ht(bt))}function Ze(bt){return u.updateFunctionDeclaration(bt,Fn(bt.modifiers,Se,rl),bt.asteriskToken,bt.name,void 0,Dc(bt.parameters,Se,t),void 0,yd(bt)&2?Ut(bt):Rm(bt.body,Se,t))}function je(bt){return u.updateFunctionExpression(bt,Fn(bt.modifiers,Se,Yo),bt.asteriskToken,bt.name,void 0,Dc(bt.parameters,Se,t),void 0,yd(bt)&2?Ut(bt):Rm(bt.body,Se,t))}function Ke(bt){return u.updateArrowFunction(bt,Fn(bt.modifiers,Se,Yo),void 0,Dc(bt.parameters,Se,t),void 0,bt.equalsGreaterThanToken,yd(bt)&2?Ut(bt):Rm(bt.body,Se,t))}function Gt({name:bt},jn){if(at(bt))jn.add(bt.escapedText);else for(const Nn of bt.elements)kd(Nn)||Gt(Nn,jn)}function Yt(bt){return!!bt&&Fd(bt)&&!(bt.flags&7)&&bt.declarations.some(ti)}function Ie(bt,jn){st(bt);const Nn=_P(bt);return Nn.length===0?jn?yt(u.converters.convertToAssignmentElementTarget(bt.declarations[0].name),Se,Wt):void 0:u.inlineExpressions(Kt(Nn,It))}function st(bt){L(bt.declarations,St)}function St({name:bt}){if(at(bt))p(bt);else for(const jn of bt.elements)kd(jn)||St(jn)}function It(bt){const jn=ks(u.createAssignment(u.converters.convertToAssignmentElementTarget(bt.name),bt.initializer),bt);return H.checkDefined(yt(jn,Se,Wt))}function ti({name:bt}){if(at(bt))return T.has(bt.escapedText);for(const jn of bt.elements)if(!kd(jn)&&ti(jn))return!0;return!1}function ht(bt){H.assertIsDefined(bt.body);const jn=M,Nn=z;M=new Set,z=!1;let Ai=Rm(bt.body,Se,t);const Dn=Kl(bt,K0);if(b>=2&&E.getNodeCheckFlags(bt)&384&&(yd(Dn)&3)!==3){if(xn(),M.size){const iu=lQ(u,E,bt,M);j[Js(iu)]=!0;const oa=Ai.statements.slice();qE(oa,[iu]),Ai=u.updateBlock(Ai,oa)}z&&(E.getNodeCheckFlags(bt)&256?F7(Ai,vV):E.getNodeCheckFlags(bt)&128&&F7(Ai,xV))}return M=jn,z=Nn,Ai}function Ut(bt){d();const Nn=Kl(bt,xo).type,Ai=b<2?ji(Nn):void 0,Dn=bt.kind===219,bn=(E.getNodeCheckFlags(bt)&512)!==0,iu=T;T=new Set;for(const wa of bt.parameters)Gt(wa,T);const oa=M,xa=z;Dn||(M=new Set,z=!1);let ra;if(Dn){const wa=s().createAwaiterHelper(Ce(),bn,Ai,Li(bt.body)),Zo=f();if(qe(Zo)){const vo=u.converters.convertToFunctionBlock(wa);ra=u.updateBlock(vo,Pt(u.createNodeArray(an(Zo,vo.statements)),vo.statements))}else ra=wa}else{const wa=[],Zo=u.copyPrologue(bt.body.statements,wa,!1,Se);wa.push(u.createReturnStatement(s().createAwaiterHelper(Ce(),bn,Ai,Li(bt.body,Zo)))),qE(wa,f());const vo=b>=2&&E.getNodeCheckFlags(bt)&384;if(vo&&(xn(),M.size)){const Et=lQ(u,E,bt,M);j[Js(Et)]=!0,qE(wa,[Et])}const Qe=u.createBlock(wa,!0);Pt(Qe,bt.body),vo&&z&&(E.getNodeCheckFlags(bt)&256?F7(Qe,vV):E.getNodeCheckFlags(bt)&128&&F7(Qe,xV)),ra=Qe}return T=iu,Dn||(M=oa,z=xa),ra}function Li(bt,jn){return fo(bt)?u.updateBlock(bt,Fn(bt.statements,Ne,na,jn)):u.converters.convertToFunctionBlock(H.checkDefined(yt(bt,Ne,RU)))}function ji(bt){const jn=bt&&fj(bt);if(jn&&om(jn)){const Nn=E.getTypeReferenceSerializationKind(jn);if(Nn===1||Nn===0)return jn}}function xn(){B&1||(B|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function Un(bt,jn,Nn){if(B&1&&Fr(jn)){const Ai=E.getNodeCheckFlags(jn)&384;if(Ai!==k){const Dn=k;k=Ai,K(bt,jn,Nn),k=Dn;return}}else if(B&&j[Js(jn)]){const Ai=k;k=0,K(bt,jn,Nn),k=Ai;return}K(bt,jn,Nn)}function rn(bt,jn){return jn=Y(bt,jn),bt===1&&k?Ni(jn):jn}function Ni(bt){switch(bt.kind){case 211:return Fi(bt);case 212:return Qu(bt);case 213:return aa(bt)}return bt}function Fi(bt){return bt.expression.kind===108?Pt(u.createPropertyAccessExpression(u.createUniqueName("_super",48),bt.name),bt):bt}function Qu(bt){return bt.expression.kind===108?Ba(bt.argumentExpression,bt):bt}function aa(bt){const jn=bt.expression;if(tf(jn)){const Nn=Iu(jn)?Fi(jn):Qu(jn);return u.createCallExpression(u.createPropertyAccessExpression(Nn,"call"),void 0,[u.createThis(),...bt.arguments])}return bt}function Fr(bt){const jn=bt.kind;return jn===263||jn===176||jn===174||jn===177||jn===178}function Ba(bt,jn){return k&256?Pt(u.createPropertyAccessExpression(u.createCallExpression(u.createUniqueName("_superIndex",48),void 0,[bt]),"value"),jn):Pt(u.createCallExpression(u.createUniqueName("_superIndex",48),void 0,[bt]),jn)}}function lQ(t,u,s,d){const f=(u.getNodeCheckFlags(s)&256)!==0,p=[];return d.forEach((E,v)=>{const b=Yr(v),B=[];B.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,Qn(t.createPropertyAccessExpression(Qn(t.createSuper(),8),b),8)))),f&&B.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(Qn(t.createPropertyAccessExpression(Qn(t.createSuper(),8),b),8),t.createIdentifier("v"))))),p.push(t.createPropertyAssignment(b,t.createObjectLiteralExpression(B)))}),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(p,!0)]))],2))}var AMt=o({"src/compiler/transformers/es2017.ts"(){Ao()}});function s7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=t.getEmitResolver(),v=t.getCompilerOptions(),b=Is(v),B=t.onEmitNode;t.onEmitNode=wa;const k=t.onSubstituteNode;t.onSubstituteNode=Zo;let T=!1,M,z,j,J=0,K=0,Y,oe,se,ge;const ae=[];return jp(t,Ne);function Ce(Pe,et){return K!==(K&~Pe|et)}function ne(Pe,et){const gt=K;return K=(K&~Pe|et)&3,gt}function ve(Pe){K=Pe}function Se(Pe){oe=Ei(oe,u.createVariableDeclaration(Pe))}function Ne(Pe){if(Pe.isDeclarationFile)return Pe;Y=Pe;const et=Yt(Pe);return tD(et,t.readEmitHelpers()),Y=void 0,oe=void 0,et}function pe(Pe){return Ae(Pe,!1)}function fe(Pe){return Ae(Pe,!0)}function xe(Pe){if(Pe.kind!==134)return Pe}function Be(Pe,et,gt,ii){if(Ce(gt,ii)){const me=ne(gt,ii),ni=Pe(et);return ve(me),ni}return Pe(et)}function We(Pe){return un(Pe,pe,t)}function Ae(Pe,et){if(!(Pe.transformFlags&128))return Pe;switch(Pe.kind){case 223:return De(Pe);case 229:return He(Pe);case 253:return Ge(Pe);case 256:return ft(Pe);case 210:return je(Pe);case 226:return st(Pe,et);case 361:return St(Pe,et);case 299:return It(Pe);case 243:return ti(Pe);case 260:return ht(Pe);case 246:case 247:case 249:return Be(We,Pe,0,2);case 250:return xn(Pe,void 0);case 248:return Be(Li,Pe,0,2);case 222:return ji(Pe);case 176:return Be(Ba,Pe,2,1);case 174:return Be(Nn,Pe,2,1);case 177:return Be(bt,Pe,2,1);case 178:return Be(jn,Pe,2,1);case 262:return Be(Ai,Pe,2,1);case 218:return Be(bn,Pe,2,1);case 219:return Be(Dn,Pe,2,0);case 169:return aa(Pe);case 244:return Ke(Pe);case 217:return Gt(Pe,et);case 215:return Ie(Pe);case 211:return se&&Iu(Pe)&&Pe.expression.kind===108&&se.add(Pe.name.escapedText),un(Pe,pe,t);case 212:return se&&Pe.expression.kind===108&&(ge=!0),un(Pe,pe,t);case 263:case 231:return Be(We,Pe,2,1);default:return un(Pe,pe,t)}}function De(Pe){return z&2&&z&1?lu(Pt(u.createYieldExpression(void 0,s().createAwaitHelper(yt(Pe.expression,pe,Wt))),Pe),Pe):un(Pe,pe,t)}function He(Pe){if(z&2&&z&1){if(Pe.asteriskToken){const et=yt(H.checkDefined(Pe.expression),pe,Wt);return lu(Pt(u.createYieldExpression(void 0,s().createAwaitHelper(u.updateYieldExpression(Pe,Pe.asteriskToken,Pt(s().createAsyncDelegatorHelper(Pt(s().createAsyncValuesHelper(et),et)),et)))),Pe),Pe)}return lu(Pt(u.createYieldExpression(void 0,Ni(Pe.expression?yt(Pe.expression,pe,Wt):u.createVoidZero())),Pe),Pe)}return un(Pe,pe,t)}function Ge(Pe){return z&2&&z&1?u.updateReturnStatement(Pe,Ni(Pe.expression?yt(Pe.expression,pe,Wt):u.createVoidZero())):un(Pe,pe,t)}function ft(Pe){if(z&2){const et=F0e(Pe);return et.kind===250&&et.awaitModifier?xn(et,Pe):u.restoreEnclosingLabel(yt(et,pe,na,u.liftToBlock),Pe)}return un(Pe,pe,t)}function Ze(Pe){let et;const gt=[];for(const ii of Pe)if(ii.kind===305){et&&(gt.push(u.createObjectLiteralExpression(et)),et=void 0);const me=ii.expression;gt.push(yt(me,pe,Wt))}else et=Ei(et,ii.kind===303?u.createPropertyAssignment(ii.name,yt(ii.initializer,pe,Wt)):yt(ii,pe,q3));return et&>.push(u.createObjectLiteralExpression(et)),gt}function je(Pe){if(Pe.transformFlags&65536){const et=Ze(Pe.properties);et.length&&et[0].kind!==210&&et.unshift(u.createObjectLiteralExpression());let gt=et[0];if(et.length>1){for(let ii=1;ii=2&&E.getNodeCheckFlags(Pe)&384;if(_i){ra();const jt=lQ(u,E,Pe,se);ae[Js(jt)]=!0,qE(et,[jt])}et.push(ni),qE(et,f());const mt=u.updateBlock(Pe.body,et);return _i&&ge&&(E.getNodeCheckFlags(Pe)&256?F7(mt,vV):E.getNodeCheckFlags(Pe)&128&&F7(mt,xV)),se=ii,ge=me,mt}function oa(Pe){d();let et=0;const gt=[],ii=yt(Pe.body,pe,RU)??u.createBlock([]);fo(ii)&&(et=u.copyPrologue(ii.statements,gt,!1,pe)),kn(gt,xa(void 0,Pe));const me=f();if(et>0||qe(gt)||qe(me)){const ni=u.converters.convertToFunctionBlock(ii,!0);return qE(gt,me),kn(gt,ni.statements.slice(et)),u.updateBlock(ni,Pt(u.createNodeArray(gt),ni.statements))}return ii}function xa(Pe,et){let gt=!1;for(const ii of et.parameters)if(gt){if(Fo(ii.name)){if(ii.name.elements.length>0){const me=q2(ii,pe,t,0,u.getGeneratedNameForNode(ii));if(qe(me)){const ni=u.createVariableDeclarationList(me),_i=u.createVariableStatement(void 0,ni);Qn(_i,2097152),Pe=Ei(Pe,_i)}}else if(ii.initializer){const me=u.getGeneratedNameForNode(ii),ni=yt(ii.initializer,pe,Wt),_i=u.createAssignment(me,ni),mt=u.createExpressionStatement(_i);Qn(mt,2097152),Pe=Ei(Pe,mt)}}else if(ii.initializer){const me=u.cloneNode(ii.name);Pt(me,ii.name),Qn(me,96);const ni=yt(ii.initializer,pe,Wt);t_(ni,3168);const _i=u.createAssignment(me,ni);Pt(_i,ii),Qn(_i,3072);const mt=u.createBlock([u.createExpressionStatement(_i)]);Pt(mt,ii),Qn(mt,3905);const jt=u.createTypeCheck(u.cloneNode(ii.name),"undefined"),pi=u.createIfStatement(jt,mt);xh(pi),Pt(pi,ii),Qn(pi,2101056),Pe=Ei(Pe,pi)}}else if(ii.transformFlags&65536){gt=!0;const me=q2(ii,pe,t,1,u.getGeneratedNameForNode(ii),!1,!0);if(qe(me)){const ni=u.createVariableDeclarationList(me),_i=u.createVariableStatement(void 0,ni);Qn(_i,2097152),Pe=Ei(Pe,_i)}}return Pe}function ra(){M&1||(M|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function wa(Pe,et,gt){if(M&1&&qt(et)){const ii=E.getNodeCheckFlags(et)&384;if(ii!==J){const me=J;J=ii,B(Pe,et,gt),J=me;return}}else if(M&&ae[Js(et)]){const ii=J;J=0,B(Pe,et,gt),J=ii;return}B(Pe,et,gt)}function Zo(Pe,et){return et=k(Pe,et),Pe===1&&J?vo(et):et}function vo(Pe){switch(Pe.kind){case 211:return Qe(Pe);case 212:return Et(Pe);case 213:return Mt(Pe)}return Pe}function Qe(Pe){return Pe.expression.kind===108?Pt(u.createPropertyAccessExpression(u.createUniqueName("_super",48),Pe.name),Pe):Pe}function Et(Pe){return Pe.expression.kind===108?Xt(Pe.argumentExpression,Pe):Pe}function Mt(Pe){const et=Pe.expression;if(tf(et)){const gt=Iu(et)?Qe(et):Et(et);return u.createCallExpression(u.createPropertyAccessExpression(gt,"call"),void 0,[u.createThis(),...Pe.arguments])}return Pe}function qt(Pe){const et=Pe.kind;return et===263||et===176||et===174||et===177||et===178}function Xt(Pe,et){return J&256?Pt(u.createPropertyAccessExpression(u.createCallExpression(u.createIdentifier("_superIndex"),void 0,[Pe]),"value"),et):Pt(u.createCallExpression(u.createIdentifier("_superIndex"),void 0,[Pe]),et)}}var SMt=o({"src/compiler/transformers/es2018.ts"(){Ao()}});function l7e(t){const u=t.factory;return jp(t,s);function s(p){return p.isDeclarationFile?p:un(p,d,t)}function d(p){if(!(p.transformFlags&64))return p;switch(p.kind){case 299:return f(p);default:return un(p,d,t)}}function f(p){return p.variableDeclaration?un(p,d,t):u.updateCatchClause(p,u.createVariableDeclaration(u.createTempVariable(void 0)),yt(p.block,d,fo))}}var BMt=o({"src/compiler/transformers/es2019.ts"(){Ao()}});function c7e(t){const{factory:u,hoistVariableDeclaration:s}=t;return jp(t,d);function d(j){return j.isDeclarationFile?j:un(j,f,t)}function f(j){if(!(j.transformFlags&32))return j;switch(j.kind){case 213:{const J=b(j,!1);return H.assertNotNode(J,R7),J}case 211:case 212:if(Z1(j)){const J=k(j,!1,!1);return H.assertNotNode(J,R7),J}return un(j,f,t);case 226:return j.operatorToken.kind===61?M(j):un(j,f,t);case 220:return z(j);default:return un(j,f,t)}}function p(j){H.assertNotNode(j,LU);const J=[j];for(;!j.questionDotToken&&!Ek(j);)j=Lo(wp(j.expression),Z1),H.assertNotNode(j,LU),J.unshift(j);return{expression:j.expression,chain:J}}function E(j,J,K){const Y=B(j.expression,J,K);return R7(Y)?u.createSyntheticReferenceExpression(u.updateParenthesizedExpression(j,Y.expression),Y.thisArg):u.updateParenthesizedExpression(j,Y)}function v(j,J,K){if(Z1(j))return k(j,J,K);let Y=yt(j.expression,f,Wt);H.assertNotNode(Y,R7);let oe;return J&&(U2(Y)?oe=Y:(oe=u.createTempVariable(s),Y=u.createAssignment(oe,Y))),Y=j.kind===211?u.updatePropertyAccessExpression(j,Y,yt(j.name,f,at)):u.updateElementAccessExpression(j,Y,yt(j.argumentExpression,f,Wt)),oe?u.createSyntheticReferenceExpression(Y,oe):Y}function b(j,J){if(Z1(j))return k(j,J,!1);if(vf(j.expression)&&Z1(s0(j.expression))){const K=E(j.expression,!0,!1),Y=Fn(j.arguments,f,Wt);return R7(K)?Pt(u.createFunctionCallCall(K.expression,K.thisArg,Y),j):u.updateCallExpression(j,K,void 0,Y)}return un(j,f,t)}function B(j,J,K){switch(j.kind){case 217:return E(j,J,K);case 211:case 212:return v(j,J,K);case 213:return b(j,J);default:return yt(j,f,Wt)}}function k(j,J,K){const{expression:Y,chain:oe}=p(j),se=B(wp(Y),Gy(oe[0]),!1);let ge=R7(se)?se.thisArg:void 0,ae=R7(se)?se.expression:se,Ce=u.restoreOuterExpressions(Y,ae,8);U2(ae)||(ae=u.createTempVariable(s),Ce=u.createAssignment(ae,Ce));let ne=ae,ve;for(let Ne=0;NeAe&&kn(De,Fn(Be.statements,T,na,Ae,He-Ae));break}He++}H.assert(HeK(De,Ae))))],Ae,We===2)}return un(Be,T,t)}function oe(Be,We,Ae,De,He){const Ge=[];for(let je=We;jeu&&(u=d)}return u}function NMt(t){let u=0;for(const s of t){const d=n1e(s.statements);if(d===2)return 2;d>u&&(u=d)}return u}var PMt=o({"src/compiler/transformers/esnext.ts"(){Ao()}});function g7e(t){const{factory:u,getEmitHelperFactory:s}=t,d=t.getCompilerOptions();let f,p;return jp(t,T);function E(){if(p.filenameDeclaration)return p.filenameDeclaration.name;const Ie=u.createVariableDeclaration(u.createUniqueName("_jsxFileName",48),void 0,void 0,u.createStringLiteral(f.fileName));return p.filenameDeclaration=Ie,p.filenameDeclaration.name}function v(Ie){return d.jsx===5?"jsxDEV":Ie?"jsxs":"jsx"}function b(Ie){const st=v(Ie);return k(st)}function B(){return k("Fragment")}function k(Ie){var st,St;const It=Ie==="createElement"?p.importSpecifier:eZ(p.importSpecifier,d),ti=(St=(st=p.utilizedImplicitRuntimeImports)==null?void 0:st.get(It))==null?void 0:St.get(Ie);if(ti)return ti.name;p.utilizedImplicitRuntimeImports||(p.utilizedImplicitRuntimeImports=new Map);let ht=p.utilizedImplicitRuntimeImports.get(It);ht||(ht=new Map,p.utilizedImplicitRuntimeImports.set(It,ht));const Ut=u.createUniqueName(`_${Ie}`,112),Li=u.createImportSpecifier(!1,u.createIdentifier(Ie),Ut);return Kke(Ut,Li),ht.set(Ie,Li),Ut}function T(Ie){if(Ie.isDeclarationFile)return Ie;f=Ie,p={},p.importSpecifier=Xq(d,Ie);let st=un(Ie,M,t);tD(st,t.readEmitHelpers());let St=st.statements;if(p.filenameDeclaration&&(St=Yy(St.slice(),u.createVariableStatement(void 0,u.createVariableDeclarationList([p.filenameDeclaration],2)))),p.utilizedImplicitRuntimeImports){for(const[It,ti]of Ea(p.utilizedImplicitRuntimeImports.entries()))if(Bc(Ie)){const ht=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamedImports(Ea(ti.values()))),u.createStringLiteral(It),void 0);jx(ht,!1),St=Yy(St.slice(),ht)}else if(lm(Ie)){const ht=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createObjectBindingPattern(Ea(ti.values(),Ut=>u.createBindingElement(void 0,Ut.propertyName,Ut.name))),void 0,void 0,u.createCallExpression(u.createIdentifier("require"),void 0,[u.createStringLiteral(It)]))],2));jx(ht,!1),St=Yy(St.slice(),ht)}}return St!==st.statements&&(st=u.updateSourceFile(st,St)),p=void 0,st}function M(Ie){return Ie.transformFlags&2?z(Ie):Ie}function z(Ie){switch(Ie.kind){case 284:return oe(Ie,!1);case 285:return se(Ie,!1);case 288:return ge(Ie,!1);case 294:return Yt(Ie);default:return un(Ie,M,t)}}function j(Ie){switch(Ie.kind){case 12:return He(Ie);case 294:return Yt(Ie);case 284:return oe(Ie,!0);case 285:return se(Ie,!0);case 288:return ge(Ie,!0);default:return H.failBadSyntaxKind(Ie)}}function J(Ie){return Ie.properties.some(st=>Gc(st)&&(at(st.name)&&mu(st.name)==="__proto__"||ns(st.name)&&st.name.text==="__proto__"))}function K(Ie){let st=!1;for(const St of Ie.attributes.properties)if(j7(St)&&(!Cs(St.expression)||St.expression.properties.some(c5)))st=!0;else if(st&&aE(St)&&at(St.name)&&St.name.escapedText==="key")return!0;return!1}function Y(Ie){return p.importSpecifier===void 0||K(Ie)}function oe(Ie,st){return(Y(Ie.openingElement)?Se:ne)(Ie.openingElement,Ie.children,st,Ie)}function se(Ie,st){return(Y(Ie)?Se:ne)(Ie,void 0,st,Ie)}function ge(Ie,st){return(p.importSpecifier===void 0?pe:Ne)(Ie.openingFragment,Ie.children,st,Ie)}function ae(Ie){const st=Ce(Ie);return st&&u.createObjectLiteralExpression([st])}function Ce(Ie){const st=iB(Ie);if(S(st)===1&&!st[0].dotDotDotToken){const It=j(st[0]);return It&&u.createPropertyAssignment("children",It)}const St=Ui(Ie,j);return S(St)?u.createPropertyAssignment("children",u.createArrayLiteralExpression(St)):void 0}function ne(Ie,st,St,It){const ti=Ke(Ie),ht=st&&st.length?Ce(st):void 0,Ut=Le(Ie.attributes.properties,xn=>!!xn.name&&at(xn.name)&&xn.name.escapedText==="key"),Li=Ut?ei(Ie.attributes.properties,xn=>xn!==Ut):Ie.attributes.properties,ji=S(Li)?xe(Li,ht):u.createObjectLiteralExpression(ht?[ht]:_t);return ve(ti,ji,Ut,st||_t,St,It)}function ve(Ie,st,St,It,ti,ht){var Ut;const Li=iB(It),ji=S(Li)>1||!!((Ut=Li[0])!=null&&Ut.dotDotDotToken),xn=[Ie,st];if(St&&xn.push(De(St.initializer)),d.jsx===5){const rn=Kl(f);if(rn&&ca(rn)){St===void 0&&xn.push(u.createVoidZero()),xn.push(ji?u.createTrue():u.createFalse());const Ni=o0(rn,ht.pos);xn.push(u.createObjectLiteralExpression([u.createPropertyAssignment("fileName",E()),u.createPropertyAssignment("lineNumber",u.createNumericLiteral(Ni.line+1)),u.createPropertyAssignment("columnNumber",u.createNumericLiteral(Ni.character+1))])),xn.push(u.createThis())}}const Un=Pt(u.createCallExpression(b(ji),void 0,xn),ht);return ti&&xh(Un),Un}function Se(Ie,st,St,It){const ti=Ke(Ie),ht=Ie.attributes.properties,Ut=S(ht)?xe(ht):u.createNull(),Li=p.importSpecifier===void 0?Nce(u,t.getEmitResolver().getJsxFactoryEntity(f),d.reactNamespace,Ie):k("createElement"),ji=CFe(u,Li,ti,Ut,Ui(st,j),It);return St&&xh(ji),ji}function Ne(Ie,st,St,It){let ti;if(st&&st.length){const ht=ae(st);ht&&(ti=ht)}return ve(B(),ti||u.createObjectLiteralExpression([]),void 0,st,St,It)}function pe(Ie,st,St,It){const ti=bFe(u,t.getEmitResolver().getJsxFactoryEntity(f),t.getEmitResolver().getJsxFragmentFactoryEntity(f),d.reactNamespace,Ui(st,j),Ie,It);return St&&xh(ti),ti}function fe(Ie){return Cs(Ie.expression)&&!J(Ie.expression)?Mu(Ie.expression.properties,st=>H.checkDefined(yt(st,M,q3))):u.createSpreadAssignment(H.checkDefined(yt(Ie.expression,M,Wt)))}function xe(Ie,st){const St=Is(d);return St&&St>=5?u.createObjectLiteralExpression(Be(Ie,st)):We(Ie,st)}function Be(Ie,st){const St=Va(Xs(Ie,j7,(It,ti)=>Va(Kt(It,ht=>ti?fe(ht):Ae(ht)))));return st&&St.push(st),St}function We(Ie,st){const St=[];let It=[];for(const ht of Ie){if(j7(ht)){if(Cs(ht.expression)&&!J(ht.expression)){for(const Ut of ht.expression.properties){if(c5(Ut)){ti(),St.push(H.checkDefined(yt(Ut.expression,M,Wt)));continue}It.push(H.checkDefined(yt(Ut,M)))}continue}ti(),St.push(H.checkDefined(yt(ht.expression,M,Wt)));continue}It.push(Ae(ht))}return st&&It.push(st),ti(),St.length&&!Cs(St[0])&&St.unshift(u.createObjectLiteralExpression()),Aa(St)||s().createAssignHelper(St);function ti(){It.length&&(St.push(u.createObjectLiteralExpression(It)),It=[])}}function Ae(Ie){const st=Gt(Ie),St=De(Ie.initializer);return u.createPropertyAssignment(st,St)}function De(Ie){if(Ie===void 0)return u.createTrue();if(Ie.kind===11){const st=Ie.singleQuote!==void 0?Ie.singleQuote:!_q(Ie,f),St=u.createStringLiteral(je(Ie.text)||Ie.text,st);return Pt(St,Ie)}return Ie.kind===294?Ie.expression===void 0?u.createTrue():H.checkDefined(yt(Ie.expression,M,Wt)):u3(Ie)?oe(Ie,!1):vk(Ie)?se(Ie,!1):j2(Ie)?ge(Ie,!1):H.failBadSyntaxKind(Ie)}function He(Ie){const st=Ge(Ie.text);return st===void 0?void 0:u.createStringLiteral(st)}function Ge(Ie){let st,St=0,It=-1;for(let ti=0;ti{if(ht)return y8(parseInt(ht,10));if(Ut)return y8(parseInt(Ut,16));{const ji=Vet.get(Li);return ji?y8(ji):st}})}function je(Ie){const st=Ze(Ie);return st===Ie?void 0:st}function Ke(Ie){if(Ie.kind===284)return Ke(Ie.openingElement);{const st=Ie.tagName;return at(st)&&uB(st.escapedText)?u.createStringLiteral(mu(st)):mg(st)?u.createStringLiteral(mu(st.namespace)+":"+mu(st.name)):LV(u,st)}}function Gt(Ie){const st=Ie.name;if(at(st)){const St=mu(st);return/^[A-Za-z_]\w*$/.test(St)?st:u.createStringLiteral(St)}return u.createStringLiteral(mu(st.namespace)+":"+mu(st.name))}function Yt(Ie){const st=yt(Ie.expression,M,Wt);return Ie.dotDotDotToken?u.createSpreadElement(st):st}}var Vet,MMt=o({"src/compiler/transformers/jsx.ts"(){Ao(),Vet=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function E7e(t){const{factory:u,hoistVariableDeclaration:s}=t;return jp(t,d);function d(b){return b.isDeclarationFile?b:un(b,f,t)}function f(b){if(!(b.transformFlags&512))return b;switch(b.kind){case 226:return p(b);default:return un(b,f,t)}}function p(b){switch(b.operatorToken.kind){case 68:return E(b);case 43:return v(b);default:return un(b,f,t)}}function E(b){let B,k;const T=yt(b.left,f,Wt),M=yt(b.right,f,Wt);if(W0(T)){const z=u.createTempVariable(s),j=u.createTempVariable(s);B=Pt(u.createElementAccessExpression(Pt(u.createAssignment(z,T.expression),T.expression),Pt(u.createAssignment(j,T.argumentExpression),T.argumentExpression)),T),k=Pt(u.createElementAccessExpression(z,j),T)}else if(Iu(T)){const z=u.createTempVariable(s);B=Pt(u.createPropertyAccessExpression(Pt(u.createAssignment(z,T.expression),T.expression),T.name),T),k=Pt(u.createPropertyAccessExpression(z,T.name),T)}else B=T,k=T;return Pt(u.createAssignment(B,Pt(u.createGlobalMethodCall("Math","pow",[k,M]),b)),b)}function v(b){const B=yt(b.left,f,Wt),k=yt(b.right,f,Wt);return Pt(u.createGlobalMethodCall("Math","pow",[B,k]),b)}}var zMt=o({"src/compiler/transformers/es2016.ts"(){Ao()}});function Het(t,u){return{kind:t,expression:u}}function _7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,resumeLexicalEnvironment:f,endLexicalEnvironment:p,hoistVariableDeclaration:E}=t,v=t.getCompilerOptions(),b=t.getEmitResolver(),B=t.onSubstituteNode,k=t.onEmitNode;t.onEmitNode=ep,t.onSubstituteNode=h4;let T,M,z,j;function J(Ee){j=Ei(j,u.createVariableDeclaration(Ee))}let K,Y;return jp(t,oe);function oe(Ee){if(Ee.isDeclarationFile)return Ee;T=Ee,M=Ee.text;const Bt=xe(Ee);return tD(Bt,t.readEmitHelpers()),T=void 0,M=void 0,j=void 0,z=0,Bt}function se(Ee,Bt){const gi=z;return z=(z&~Ee|Bt)&32767,gi}function ge(Ee,Bt,gi){z=(z&~Bt|gi)&-32768|Ee}function ae(Ee){return(z&8192)!==0&&Ee.kind===253&&!Ee.expression}function Ce(Ee){return Ee.transformFlags&4194304&&(zp(Ee)||_k(Ee)||sFe(Ee)||AV(Ee)||qP(Ee)||AB(Ee)||BV(Ee)||xk(Ee)||H2(Ee)||R2(Ee)||wx(Ee,!1)||fo(Ee))}function ne(Ee){return(Ee.transformFlags&1024)!==0||K!==void 0||z&8192&&Ce(Ee)||wx(Ee,!1)&&so(Ee)||(Tp(Ee)&1)!==0}function ve(Ee){return ne(Ee)?fe(Ee,!1):Ee}function Se(Ee){return ne(Ee)?fe(Ee,!0):Ee}function Ne(Ee){if(ne(Ee)){const Bt=Kl(Ee);if(bo(Bt)&&Hc(Bt)){const gi=se(32670,16449),xi=fe(Ee,!1);return ge(gi,229376,0),xi}return fe(Ee,!1)}return Ee}function pe(Ee){return Ee.kind===108?Ul(Ee,!0):ve(Ee)}function fe(Ee,Bt){switch(Ee.kind){case 126:return;case 263:return Ke(Ee);case 231:return Gt(Ee);case 169:return vo(Ee);case 262:return Yi(Ee);case 219:return pi(Ee);case 218:return Ji(Ee);case 260:return Bn(Ee);case 80:return Ze(Ee);case 261:return ct(Ee);case 255:return Be(Ee);case 269:return We(Ee);case 241:return te(Ee,!1);case 252:case 251:return je(Ee);case 256:return Er(Ee);case 246:case 247:return Wu(Ee,void 0);case 248:return ja(Ee,void 0);case 249:return Rr(Ee,void 0);case 250:return rs(Ee,void 0);case 244:return we(Ee);case 210:return l0(Ee);case 299:return Pr(Ee);case 304:return id(Ee);case 167:return A0(Ee);case 209:return f0(Ee);case 213:return Sd(Ee);case 214:return d4(Ee);case 217:return de(Ee,Bt);case 226:return Oe(Ee,Bt);case 361:return X(Ee,Bt);case 15:case 16:case 17:case 18:return Bo(Ee);case 11:return ic(Ee);case 9:return hc(Ee);case 215:return xl(Ee);case 228:return Bl(Ee);case 229:return nd(Ee);case 230:return yo(Ee);case 108:return Ul(Ee,!1);case 110:return Ge(Ee);case 236:return Lc(Ee);case 174:return Fs(Ee);case 177:case 178:return tc(Ee);case 243:return Ct(Ee);case 253:return He(Ee);case 222:return ft(Ee);default:return un(Ee,ve,t)}}function xe(Ee){const Bt=se(8064,64),gi=[],xi=[];d();const Q=u.copyPrologue(Ee.statements,gi,!1,ve);return kn(xi,Fn(Ee.statements,ve,na,Q)),j&&xi.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(j))),u.mergeLexicalEnvironment(gi,p()),et(gi,Ee),ge(Bt,0,0),u.updateSourceFile(Ee,Pt(u.createNodeArray(an(gi,xi)),Ee.statements))}function Be(Ee){if(K!==void 0){const Bt=K.allowedNonLabeledJumps;K.allowedNonLabeledJumps|=2;const gi=un(Ee,ve,t);return K.allowedNonLabeledJumps=Bt,gi}return un(Ee,ve,t)}function We(Ee){const Bt=se(7104,0),gi=un(Ee,ve,t);return ge(Bt,0,0),gi}function Ae(Ee){return lu(u.createReturnStatement(De()),Ee)}function De(){return u.createUniqueName("_this",48)}function He(Ee){return K?(K.nonLocalJumps|=8,ae(Ee)&&(Ee=Ae(Ee)),u.createReturnStatement(u.createObjectLiteralExpression([u.createPropertyAssignment(u.createIdentifier("value"),Ee.expression?H.checkDefined(yt(Ee.expression,ve,Wt)):u.createVoidZero())]))):ae(Ee)?Ae(Ee):un(Ee,ve,t)}function Ge(Ee){return z|=65536,z&2&&!(z&16384)&&(z|=131072),K?z&2?(K.containsLexicalThis=!0,Ee):K.thisName||(K.thisName=u.createUniqueName("this")):Ee}function ft(Ee){return un(Ee,Se,t)}function Ze(Ee){return K&&b.isArgumentsLocalBinding(Ee)?K.argumentsName||(K.argumentsName=u.createUniqueName("arguments")):Ee.flags&256?lu(Pt(u.createIdentifier(Yr(Ee.escapedText)),Ee),Ee):Ee}function je(Ee){if(K){const Bt=Ee.kind===252?2:4;if(!(Ee.label&&K.labels&&K.labels.get(mu(Ee.label))||!Ee.label&&K.allowedNonLabeledJumps&Bt)){let xi;const Q=Ee.label;Q?Ee.kind===252?(xi=`break-${Q.escapedText}`,tt(K,!0,mu(Q),xi)):(xi=`continue-${Q.escapedText}`,tt(K,!1,mu(Q),xi)):Ee.kind===252?(K.nonLocalJumps|=2,xi="break"):(K.nonLocalJumps|=4,xi="continue");let Me=u.createStringLiteral(xi);if(K.loopOutParameters.length){const wt=K.loopOutParameters;let bi;for(let Rn=0;Rnat(Bt.name)&&!Bt.initializer)}function Ut(Ee){if(ek(Ee))return!0;if(!(Ee.transformFlags&134217728))return!1;switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const Bt=Ee;return Ls(Bt.name)?!!ro(Bt.name,Ut):!1}}return!!ro(Ee,Ut)}function Li(Ee,Bt,gi,xi){const Q=!!gi&&_c(gi.expression).kind!==106;if(!Ee)return ti(Bt,Q);const Me=[],wt=[];f();const bi=u.copyStandardPrologue(Ee.body.statements,Me,0);(xi||Ut(Ee.body))&&(z|=8192),kn(wt,Fn(Ee.body.statements,ve,na,bi));const Rn=Q||z&8192;Et(Me,Ee),Pe(Me,Ee,xi),ii(Me,Ee),Rn?gt(Me,Ee,wa()):et(Me,Ee),u.mergeLexicalEnvironment(Me,p()),Rn&&!ra(Ee.body)&&wt.push(u.createReturnStatement(De()));const nr=u.createBlock(Pt(u.createNodeArray([...Me,...wt]),Ee.body.statements),!0);return Pt(nr,Ee.body),xa(nr,Ee.body,xi)}function ji(Ee){return ul(Ee)&&mu(Ee)==="_this"}function xn(Ee){return ul(Ee)&&mu(Ee)==="_super"}function Un(Ee){return Gl(Ee)&&Ee.declarationList.declarations.length===1&&rn(Ee.declarationList.declarations[0])}function rn(Ee){return ua(Ee)&&ji(Ee.name)&&!!Ee.initializer}function Ni(Ee){return od(Ee,!0)&&ji(Ee.left)}function Fi(Ee){return No(Ee)&&Iu(Ee.expression)&&xn(Ee.expression.expression)&&at(Ee.expression.name)&&(mu(Ee.expression.name)==="call"||mu(Ee.expression.name)==="apply")&&Ee.arguments.length>=1&&Ee.arguments[0].kind===110}function Qu(Ee){return tu(Ee)&&Ee.operatorToken.kind===57&&Ee.right.kind===110&&Fi(Ee.left)}function aa(Ee){return tu(Ee)&&Ee.operatorToken.kind===56&&tu(Ee.left)&&Ee.left.operatorToken.kind===38&&xn(Ee.left.left)&&Ee.left.right.kind===106&&Fi(Ee.right)&&mu(Ee.right.expression.name)==="apply"}function Fr(Ee){return tu(Ee)&&Ee.operatorToken.kind===57&&Ee.right.kind===110&&aa(Ee.left)}function Ba(Ee){return Ni(Ee)&&Qu(Ee.right)}function bt(Ee){return Ni(Ee)&&Fr(Ee.right)}function jn(Ee){return Fi(Ee)||Qu(Ee)||Ba(Ee)||aa(Ee)||Fr(Ee)||bt(Ee)}function Nn(Ee){for(let Bt=0;Bt0;xi--){const Q=Ee.statements[xi];if(zp(Q)&&Q.expression&&ji(Q.expression)){const Me=Ee.statements[xi-1];let wt;if(Id(Me)&&Ba(_c(Me.expression)))wt=Me.expression;else if(gi&&Un(Me)){const nr=Me.declarationList.declarations[0];jn(_c(nr.initializer))&&(wt=u.createAssignment(De(),nr.initializer))}if(!wt)break;const bi=u.createReturnStatement(wt);lu(bi,Me),Pt(bi,Me);const Rn=u.createNodeArray([...Ee.statements.slice(0,xi-1),bi,...Ee.statements.slice(xi+1)]);return Pt(Rn,Ee.statements),u.updateBlock(Ee,Rn)}}return Ee}function Dn(Ee){if(Un(Ee)){if(Ee.declarationList.declarations[0].initializer.kind===110)return}else if(Ni(Ee))return u.createPartiallyEmittedExpression(Ee.right,Ee);switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return Ee;case 177:case 178:case 174:case 172:{const Bt=Ee;return Ls(Bt.name)?u.replacePropertyName(Bt,un(Bt.name,Dn,Eg)):Ee}}return un(Ee,Dn,Eg)}function bn(Ee,Bt){if(Bt.transformFlags&16384||z&65536||z&131072)return Ee;for(const gi of Bt.statements)if(gi.transformFlags&134217728&&!nQ(gi))return Ee;return u.updateBlock(Ee,Fn(Ee.statements,Dn,na))}function iu(Ee){if(Fi(Ee)&&Ee.arguments.length===2&&at(Ee.arguments[1])&&mu(Ee.arguments[1])==="arguments")return u.createLogicalAnd(u.createStrictInequality(Cc(),u.createNull()),Ee);switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return Ee;case 177:case 178:case 174:case 172:{const Bt=Ee;return Ls(Bt.name)?u.replacePropertyName(Bt,un(Bt.name,iu,Eg)):Ee}}return un(Ee,iu,Eg)}function oa(Ee){return u.updateBlock(Ee,Fn(Ee.statements,iu,na))}function xa(Ee,Bt,gi){const xi=Ee;return Ee=Nn(Ee),Ee=Ai(Ee,Bt),Ee!==xi&&(Ee=bn(Ee,Bt)),gi&&(Ee=oa(Ee)),Ee}function ra(Ee){if(Ee.kind===253)return!0;if(Ee.kind===245){const Bt=Ee;if(Bt.elseStatement)return ra(Bt.thenStatement)&&ra(Bt.elseStatement)}else if(Ee.kind===241){const Bt=Yu(Ee.statements);if(Bt&&ra(Bt))return!0}return!1}function wa(){return Qn(u.createThis(),8)}function Zo(){return u.createLogicalOr(u.createLogicalAnd(u.createStrictInequality(Cc(),u.createNull()),u.createFunctionApplyCall(Cc(),wa(),u.createIdentifier("arguments"))),wa())}function vo(Ee){if(!Ee.dotDotDotToken)return Fo(Ee.name)?lu(Pt(u.createParameterDeclaration(void 0,void 0,u.getGeneratedNameForNode(Ee),void 0,void 0,void 0),Ee),Ee):Ee.initializer?lu(Pt(u.createParameterDeclaration(void 0,void 0,Ee.name,void 0,void 0,void 0),Ee),Ee):Ee}function Qe(Ee){return Ee.initializer!==void 0||Fo(Ee.name)}function Et(Ee,Bt){if(!qe(Bt.parameters,Qe))return!1;let gi=!1;for(const xi of Bt.parameters){const{name:Q,initializer:Me,dotDotDotToken:wt}=xi;wt||(Fo(Q)?gi=Mt(Ee,xi,Q,Me)||gi:Me&&(qt(Ee,xi,Q,Me),gi=!0))}return gi}function Mt(Ee,Bt,gi,xi){return gi.elements.length>0?(Yy(Ee,Qn(u.createVariableStatement(void 0,u.createVariableDeclarationList(q2(Bt,ve,t,0,u.getGeneratedNameForNode(Bt)))),2097152)),!0):xi?(Yy(Ee,Qn(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(Bt),H.checkDefined(yt(xi,ve,Wt)))),2097152)),!0):!1}function qt(Ee,Bt,gi,xi){xi=H.checkDefined(yt(xi,ve,Wt));const Q=u.createIfStatement(u.createTypeCheck(u.cloneNode(gi),"undefined"),Qn(Pt(u.createBlock([u.createExpressionStatement(Qn(Pt(u.createAssignment(Qn(bs(Pt(u.cloneNode(gi),gi),gi.parent),96),Qn(xi,96|vs(xi)|3072)),Bt),3072))]),Bt),3905));xh(Q),Pt(Q,Bt),Qn(Q,2101056),Yy(Ee,Q)}function Xt(Ee,Bt){return!!(Ee&&Ee.dotDotDotToken&&!Bt)}function Pe(Ee,Bt,gi){const xi=[],Q=Yu(Bt.parameters);if(!Xt(Q,gi))return!1;const Me=Q.name.kind===80?bs(Pt(u.cloneNode(Q.name),Q.name),Q.name.parent):u.createTempVariable(void 0);Qn(Me,96);const wt=Q.name.kind===80?u.cloneNode(Q.name):Me,bi=Bt.parameters.length-1,Rn=u.createLoopVariable();xi.push(Qn(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(Me,void 0,void 0,u.createArrayLiteralExpression([]))])),Q),2097152));const nr=u.createForStatement(Pt(u.createVariableDeclarationList([u.createVariableDeclaration(Rn,void 0,void 0,u.createNumericLiteral(bi))]),Q),Pt(u.createLessThan(Rn,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),Q),Pt(u.createPostfixIncrement(Rn),Q),u.createBlock([xh(Pt(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(wt,bi===0?Rn:u.createSubtract(Rn,u.createNumericLiteral(bi))),u.createElementAccessExpression(u.createIdentifier("arguments"),Rn))),Q))]));return Qn(nr,2097152),xh(nr),xi.push(nr),Q.name.kind!==80&&xi.push(Qn(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList(q2(Q,ve,t,0,wt))),Q),2097152)),s0e(Ee,xi),!0}function et(Ee,Bt){return z&131072&&Bt.kind!==219?(gt(Ee,Bt,u.createThis()),!0):!1}function gt(Ee,Bt,gi){Rh();const xi=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(De(),void 0,void 0,gi)]));Qn(xi,2100224),ks(xi,Bt),Yy(Ee,xi)}function ii(Ee,Bt){if(z&32768){let gi;switch(Bt.kind){case 219:return Ee;case 174:case 177:case 178:gi=u.createVoidZero();break;case 176:gi=u.createPropertyAccessExpression(Qn(u.createThis(),8),"constructor");break;case 262:case 218:gi=u.createConditionalExpression(u.createLogicalAnd(Qn(u.createThis(),8),u.createBinaryExpression(Qn(u.createThis(),8),104,u.getLocalName(Bt))),void 0,u.createPropertyAccessExpression(Qn(u.createThis(),8),"constructor"),void 0,u.createVoidZero());break;default:return H.failBadSyntaxKind(Bt)}const xi=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,gi)]));Qn(xi,2100224),Yy(Ee,xi)}return Ee}function me(Ee,Bt){for(const gi of Bt.members)switch(gi.kind){case 240:Ee.push(ni(gi));break;case 174:Ee.push(_i(f4(Bt,gi),gi,Bt));break;case 177:case 178:const xi=lk(Bt.members,gi);gi===xi.firstAccessor&&Ee.push(mt(f4(Bt,gi),xi,Bt));break;case 176:case 175:break;default:H.failBadSyntaxKind(gi,T&&T.fileName);break}}function ni(Ee){return Pt(u.createEmptyStatement(),Ee)}function _i(Ee,Bt,gi){const xi=iE(Bt),Q=wv(Bt),Me=on(Bt,Bt,void 0,gi),wt=yt(Bt.name,ve,Ac);H.assert(wt);let bi;if(!Xr(wt)&&Qj(t.getCompilerOptions())){const nr=Ls(wt)?wt.expression:at(wt)?u.createStringLiteral(Yr(wt.escapedText)):wt;bi=u.createObjectDefinePropertyCall(Ee,nr,u.createPropertyDescriptor({value:Me,enumerable:!1,writable:!0,configurable:!0}))}else{const nr=yk(u,Ee,wt,Bt.name);bi=u.createAssignment(nr,Me)}Qn(Me,3072),ks(Me,Q);const Rn=Pt(u.createExpressionStatement(bi),Bt);return lu(Rn,Bt),Sc(Rn,xi),Qn(Rn,96),Rn}function mt(Ee,Bt,gi){const xi=u.createExpressionStatement(jt(Ee,Bt,gi,!1));return Qn(xi,3072),ks(xi,wv(Bt.firstAccessor)),xi}function jt(Ee,{firstAccessor:Bt,getAccessor:gi,setAccessor:xi},Q,Me){const wt=bs(Pt(u.cloneNode(Ee),Ee),Ee.parent);Qn(wt,3136),ks(wt,Bt.name);const bi=yt(Bt.name,ve,Ac);if(H.assert(bi),Xr(bi))return H.failBadSyntaxKind(bi,"Encountered unhandled private identifier while transforming ES2015.");const Rn=Mce(u,bi);Qn(Rn,3104),ks(Rn,Bt.name);const nr=[];if(gi){const ma=on(gi,void 0,void 0,Q);ks(ma,wv(gi)),Qn(ma,1024);const as=u.createPropertyAssignment("get",ma);Sc(as,iE(gi)),nr.push(as)}if(xi){const ma=on(xi,void 0,void 0,Q);ks(ma,wv(xi)),Qn(ma,1024);const as=u.createPropertyAssignment("set",ma);Sc(as,iE(xi)),nr.push(as)}nr.push(u.createPropertyAssignment("enumerable",gi||xi?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));const ur=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[wt,Rn,u.createObjectLiteralExpression(nr,!0)]);return Me&&xh(ur),ur}function pi(Ee){Ee.transformFlags&16384&&!(z&16384)&&(z|=131072);const Bt=K;K=void 0;const gi=se(15232,66),xi=u.createFunctionExpression(void 0,void 0,void 0,void 0,Dc(Ee.parameters,ve,t),void 0,le(Ee));return Pt(xi,Ee),lu(xi,Ee),Qn(xi,16),ge(gi,0,0),K=Bt,xi}function Ji(Ee){const Bt=vs(Ee)&524288?se(32662,69):se(32670,65),gi=K;K=void 0;const xi=Dc(Ee.parameters,ve,t),Q=le(Ee),Me=z&32768?u.getLocalName(Ee):Ee.name;return ge(Bt,229376,0),K=gi,u.updateFunctionExpression(Ee,void 0,Ee.asteriskToken,Me,void 0,xi,void 0,Q)}function Yi(Ee){const Bt=K;K=void 0;const gi=se(32670,65),xi=Dc(Ee.parameters,ve,t),Q=le(Ee),Me=z&32768?u.getLocalName(Ee):Ee.name;return ge(gi,229376,0),K=Bt,u.updateFunctionDeclaration(Ee,Fn(Ee.modifiers,ve,Yo),Ee.asteriskToken,Me,void 0,xi,void 0,Q)}function on(Ee,Bt,gi,xi){const Q=K;K=void 0;const Me=xi&&gr(xi)&&!To(Ee)?se(32670,73):se(32670,65),wt=Dc(Ee.parameters,ve,t),bi=le(Ee);return z&32768&&!gi&&(Ee.kind===262||Ee.kind===218)&&(gi=u.getGeneratedNameForNode(Ee)),ge(Me,229376,0),K=Q,lu(Pt(u.createFunctionExpression(void 0,Ee.asteriskToken,gi,void 0,wt,void 0,bi),Bt),Ee)}function le(Ee){let Bt=!1,gi=!1,xi,Q;const Me=[],wt=[],bi=Ee.body;let Rn;if(f(),fo(bi)&&(Rn=u.copyStandardPrologue(bi.statements,Me,0,!1),Rn=u.copyCustomPrologue(bi.statements,wt,Rn,ve,iq),Rn=u.copyCustomPrologue(bi.statements,wt,Rn,ve,nq)),Bt=Et(wt,Ee)||Bt,Bt=Pe(wt,Ee,!1)||Bt,fo(bi))Rn=u.copyCustomPrologue(bi.statements,wt,Rn,ve),xi=bi.statements,kn(wt,Fn(bi.statements,ve,na,Rn)),!Bt&&bi.multiLine&&(Bt=!0);else{H.assert(Ee.kind===219),xi=jq(bi,-1);const ur=Ee.equalsGreaterThanToken;!al(ur)&&!al(bi)&&($j(ur,bi,T)?gi=!0:Bt=!0);const ma=yt(bi,ve,Wt),as=u.createReturnStatement(ma);Pt(as,bi),Ike(as,bi),Qn(as,2880),wt.push(as),Q=bi}if(u.mergeLexicalEnvironment(Me,p()),ii(Me,Ee),et(Me,Ee),qe(Me)&&(Bt=!0),wt.unshift(...Me),fo(bi)&&Hn(wt,bi.statements))return bi;const nr=u.createBlock(Pt(u.createNodeArray(wt),xi),Bt);return Pt(nr,Ee.body),!Bt&&gi&&Qn(nr,1),Q&&zke(nr,20,Q),lu(nr,Ee.body),nr}function te(Ee,Bt){if(Bt)return un(Ee,ve,t);const gi=z&256?se(7104,512):se(6976,128),xi=un(Ee,ve,t);return ge(gi,0,0),xi}function we(Ee){return un(Ee,Se,t)}function de(Ee,Bt){return un(Ee,Bt?Se:ve,t)}function Oe(Ee,Bt){return u5(Ee)?Sk(Ee,ve,t,0,!Bt):Ee.operatorToken.kind===28?u.updateBinaryExpression(Ee,H.checkDefined(yt(Ee.left,Se,Wt)),Ee.operatorToken,H.checkDefined(yt(Ee.right,Bt?Se:ve,Wt))):un(Ee,ve,t)}function X(Ee,Bt){if(Bt)return un(Ee,Se,t);let gi;for(let Q=0;QRn.name)),bi=xi?u.createYieldExpression(u.createToken(42),Qn(wt,8388608)):wt;if(Me)Q.push(u.createExpressionStatement(bi)),U0(Bt.loopOutParameters,1,0,Q);else{const Rn=u.createUniqueName("state"),nr=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(Rn,void 0,void 0,bi)]));if(Q.push(nr),U0(Bt.loopOutParameters,1,0,Q),Bt.nonLocalJumps&8){let ur;gi?(gi.nonLocalJumps|=8,ur=u.createReturnStatement(Rn)):ur=u.createReturnStatement(u.createPropertyAccessExpression(Rn,"value")),Q.push(u.createIfStatement(u.createTypeCheck(Rn,"object"),ur))}if(Bt.nonLocalJumps&2&&Q.push(u.createIfStatement(u.createStrictEquality(Rn,u.createStringLiteral("break")),u.createBreakStatement())),Bt.labeledNonLocalBreaks||Bt.labeledNonLocalContinues){const ur=[];vt(Bt.labeledNonLocalBreaks,!0,Rn,gi,ur),vt(Bt.labeledNonLocalContinues,!1,Rn,gi,ur),Q.push(u.createSwitchStatement(Rn,u.createCaseBlock(ur)))}}return Q}function tt(Ee,Bt,gi,xi){Bt?(Ee.labeledNonLocalBreaks||(Ee.labeledNonLocalBreaks=new Map),Ee.labeledNonLocalBreaks.set(gi,xi)):(Ee.labeledNonLocalContinues||(Ee.labeledNonLocalContinues=new Map),Ee.labeledNonLocalContinues.set(gi,xi))}function vt(Ee,Bt,gi,xi,Q){Ee&&Ee.forEach((Me,wt)=>{const bi=[];if(!xi||xi.labels&&xi.labels.get(wt)){const Rn=u.createIdentifier(wt);bi.push(Bt?u.createBreakStatement(Rn):u.createContinueStatement(Rn))}else tt(xi,Bt,wt,Me),bi.push(u.createReturnStatement(gi));Q.push(u.createCaseClause(u.createStringLiteral(Me),bi))})}function hi(Ee,Bt,gi,xi,Q){const Me=Bt.name;if(Fo(Me))for(const wt of Me.elements)kd(wt)||hi(Ee,wt,gi,xi,Q);else{gi.push(u.createParameterDeclaration(void 0,void 0,Me));const wt=b.getNodeCheckFlags(Bt);if(wt&65536||Q){const bi=u.createUniqueName("out_"+mu(Me));let Rn=0;wt&65536&&(Rn|=1),Dk(Ee)&&(Ee.initializer&&b.isBindingCapturedByNode(Ee.initializer,Bt)&&(Rn|=2),(Ee.condition&&b.isBindingCapturedByNode(Ee.condition,Bt)||Ee.incrementor&&b.isBindingCapturedByNode(Ee.incrementor,Bt))&&(Rn|=1)),xi.push({flags:Rn,originalName:Me,outParamName:bi})}}}function fn(Ee,Bt,gi,xi){const Q=Bt.properties,Me=Q.length;for(let wt=xi;wtGl(gs)&&!!Mn(gs.declarationList.declarations).initializer,xi=K;K=void 0;const Q=Fn(Bt.statements,Ne,na);K=xi;const Me=ei(Q,gi),wt=ei(Q,gs=>!gi(gs)),Rn=Lo(Mn(Me),Gl).declarationList.declarations[0],nr=_c(Rn.initializer);let ur=ar(nr,od);!ur&&tu(nr)&&nr.operatorToken.kind===28&&(ur=ar(nr.left,od));const ma=Lo(ur?_c(ur.right):nr,No),as=Lo(_c(ma.expression),F0),os=as.body.statements;let Il=0,D1=-1;const dd=[];if(ur){const gs=ar(os[Il],Id);gs&&(dd.push(gs),Il++),dd.push(os[Il]),Il++,dd.push(u.createExpressionStatement(u.createAssignment(ur.left,Lo(Rn.name,at))))}for(;!zp(UD(os,D1));)D1--;kn(dd,os,Il,D1),D1<-1&&kn(dd,os,D1+1);const Jm=ar(UD(os,D1),zp);for(const gs of wt)zp(gs)&&(Jm!=null&&Jm.expression)&&!at(Jm.expression)?dd.push(Jm):dd.push(gs);return kn(dd,Me,1),u.restoreOuterExpressions(Ee.expression,u.restoreOuterExpressions(Rn.initializer,u.restoreOuterExpressions(ur&&ur.right,u.updateCallExpression(ma,u.restoreOuterExpressions(ma.expression,u.updateFunctionExpression(as,void 0,void 0,void 0,void 0,as.parameters,void 0,u.updateBlock(as.body,dd))),void 0,ma.arguments))))}function nh(Ee,Bt){if(Ee.transformFlags&32768||Ee.expression.kind===108||tf(_c(Ee.expression))){const{target:gi,thisArg:xi}=u.createCallBinding(Ee.expression,E);Ee.expression.kind===108&&Qn(xi,8);let Q;if(Ee.transformFlags&32768?Q=u.createFunctionApplyCall(H.checkDefined(yt(gi,pe,Wt)),Ee.expression.kind===108?xi:H.checkDefined(yt(xi,ve,Wt)),_1(Ee.arguments,!0,!1,!1)):Q=Pt(u.createFunctionCallCall(H.checkDefined(yt(gi,pe,Wt)),Ee.expression.kind===108?xi:H.checkDefined(yt(xi,ve,Wt)),Fn(Ee.arguments,ve,Wt)),Ee),Ee.expression.kind===108){const Me=u.createLogicalOr(Q,wa());Q=Bt?u.createAssignment(De(),Me):Me}return lu(Q,Ee)}return ek(Ee)&&(z|=131072),un(Ee,ve,t)}function d4(Ee){if(qe(Ee.arguments,nE)){const{target:Bt,thisArg:gi}=u.createCallBinding(u.createPropertyAccessExpression(Ee.expression,"bind"),E);return u.createNewExpression(u.createFunctionApplyCall(H.checkDefined(yt(Bt,ve,Wt)),gi,_1(u.createNodeArray([u.createVoidZero(),...Ee.arguments]),!0,!1,!1)),void 0,[])}return un(Ee,ve,t)}function _1(Ee,Bt,gi,xi){const Q=Ee.length,Me=Va(Xs(Ee,Ve,(nr,ur,ma,as)=>ur(nr,gi,xi&&as===Q)));if(Me.length===1){const nr=Me[0];if(Bt&&!v.downlevelIteration||Nle(nr.expression)||OP(nr.expression,"___spreadArray"))return nr.expression}const wt=s(),bi=Me[0].kind!==0;let Rn=bi?u.createArrayLiteralExpression():Me[0].expression;for(let nr=bi?0:1;nr0&&xi.push(u.createStringLiteral(gi.literal.text)),Bt=u.createCallExpression(u.createPropertyAccessExpression(Bt,"concat"),void 0,xi)}return Pt(Bt,Ee)}function Cc(){return u.createUniqueName("_super",48)}function Ul(Ee,Bt){const gi=z&8&&!Bt?u.createPropertyAccessExpression(lu(Cc(),Ee),"prototype"):Cc();return lu(gi,Ee),Sc(gi,Ee),ks(gi,Ee),gi}function Lc(Ee){return Ee.keywordToken===105&&Ee.name.escapedText==="target"?(z|=32768,u.createUniqueName("_newTarget",48)):Ee}function ep(Ee,Bt,gi){if(Y&1&&xo(Bt)){const xi=se(32670,vs(Bt)&16?81:65);k(Ee,Bt,gi),ge(xi,0,0);return}k(Ee,Bt,gi)}function Gm(){Y&2||(Y|=2,t.enableSubstitution(80))}function Rh(){Y&1||(Y|=1,t.enableSubstitution(110),t.enableEmitNotification(176),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(219),t.enableEmitNotification(218),t.enableEmitNotification(262))}function h4(Ee,Bt){return Bt=B(Ee,Bt),Ee===1?v5(Bt):at(Bt)?l3(Bt):Bt}function l3(Ee){if(Y&2&&!zce(Ee)){const Bt=Ua(Ee,at);if(Bt&&l_(Bt))return Pt(u.getGeneratedNameForNode(Bt),Ee)}return Ee}function l_(Ee){switch(Ee.parent.kind){case 208:case 263:case 266:case 260:return Ee.parent.name===Ee&&b.isDeclarationWithCollidingName(Ee.parent)}return!1}function v5(Ee){switch(Ee.kind){case 80:return I1(Ee);case 110:return Kf(Ee)}return Ee}function I1(Ee){if(Y&2&&!zce(Ee)){const Bt=b.getReferencedDeclarationWithCollidingName(Ee);if(Bt&&!(gr(Bt)&&c3(Bt,Ee)))return Pt(u.getGeneratedNameForNode(qa(Bt)),Ee)}return Ee}function c3(Ee,Bt){let gi=Ua(Bt);if(!gi||gi===Ee||gi.end<=Ee.pos||gi.pos>=Ee.end)return!1;const xi=ZE(Ee);for(;gi;){if(gi===xi||gi===Ee)return!1;if(qd(gi)&&gi.parent===Ee)return!0;gi=gi.parent}return!1}function Kf(Ee){return Y&1&&z&16?Pt(De(),Ee):Ee}function f4(Ee,Bt){return To(Bt)?u.getInternalName(Ee):u.createPropertyAccessExpression(u.getInternalName(Ee),"prototype")}function Oh(Ee,Bt){if(!Ee||!Bt||qe(Ee.parameters))return!1;const gi=Hi(Ee.body.statements);if(!gi||!al(gi)||gi.kind!==244)return!1;const xi=gi.expression;if(!al(xi)||xi.kind!==213)return!1;const Q=xi.expression;if(!al(Q)||Q.kind!==108)return!1;const Me=Aa(xi.arguments);if(!Me||!al(Me)||Me.kind!==230)return!1;const wt=Me.expression;return at(wt)&&wt.escapedText==="arguments"}}var IMt=o({"src/compiler/transformers/es2015.ts"(){Ao()}});function D7e(t){const{factory:u}=t,s=t.getCompilerOptions();let d,f;(s.jsx===1||s.jsx===3)&&(d=t.onEmitNode,t.onEmitNode=v,t.enableEmitNotification(286),t.enableEmitNotification(287),t.enableEmitNotification(285),f=[]);const p=t.onSubstituteNode;return t.onSubstituteNode=b,t.enableSubstitution(211),t.enableSubstitution(303),jp(t,E);function E(M){return M}function v(M,z,j){switch(z.kind){case 286:case 287:case 285:const J=z.tagName;f[P1(J)]=!0;break}d(M,z,j)}function b(M,z){return z.id&&f&&f[z.id]?p(M,z):(z=p(M,z),Iu(z)?B(z):Gc(z)?k(z):z)}function B(M){if(Xr(M.name))return M;const z=T(M.name);return z?Pt(u.createElementAccessExpression(M.expression,z),M):M}function k(M){const z=at(M.name)&&T(M.name);return z?u.updatePropertyAssignment(M,z,M.initializer):M}function T(M){const z=Ev(M);if(z!==void 0&&z>=83&&z<=118)return Pt(u.createStringLiteralFromNode(M),M)}}var RMt=o({"src/compiler/transformers/es5.ts"(){Ao()}});function OMt(t){switch(t){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function x7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistFunctionDeclaration:p,hoistVariableDeclaration:E}=t,v=t.getCompilerOptions(),b=Is(v),B=t.getEmitResolver(),k=t.onSubstituteNode;t.onSubstituteNode=we;let T,M,z,j,J,K,Y,oe,se,ge,ae=1,Ce,ne,ve,Se,Ne=0,pe=0,fe,xe,Be,We,Ae,De,He,Ge;return jp(t,ft);function ft(Ve){if(Ve.isDeclarationFile||!(Ve.transformFlags&2048))return Ve;const si=un(Ve,Ze,t);return tD(si,t.readEmitHelpers()),si}function Ze(Ve){const si=Ve.transformFlags;return j?je(Ve):z?Ke(Ve):K0(Ve)&&Ve.asteriskToken?Yt(Ve):si&2048?un(Ve,Ze,t):Ve}function je(Ve){switch(Ve.kind){case 246:return Zo(Ve);case 247:return Qe(Ve);case 255:return jt(Ve);case 256:return Ji(Ve);default:return Ke(Ve)}}function Ke(Ve){switch(Ve.kind){case 262:return Ie(Ve);case 218:return st(Ve);case 177:case 178:return St(Ve);case 243:return ti(Ve);case 248:return Mt(Ve);case 249:return Xt(Ve);case 252:return ii(Ve);case 251:return et(Ve);case 253:return ni(Ve);default:return Ve.transformFlags&1048576?Gt(Ve):Ve.transformFlags&4196352?un(Ve,Ze,t):Ve}}function Gt(Ve){switch(Ve.kind){case 226:return ht(Ve);case 361:return xn(Ve);case 227:return rn(Ve);case 229:return Ni(Ve);case 209:return Fi(Ve);case 210:return aa(Ve);case 212:return Fr(Ve);case 213:return Ba(Ve);case 214:return bt(Ve);default:return un(Ve,Ze,t)}}function Yt(Ve){switch(Ve.kind){case 262:return Ie(Ve);case 218:return st(Ve);default:return H.failBadSyntaxKind(Ve)}}function Ie(Ve){if(Ve.asteriskToken)Ve=lu(Pt(u.createFunctionDeclaration(Ve.modifiers,void 0,Ve.name,void 0,Dc(Ve.parameters,Ze,t),void 0,It(Ve.body)),Ve),Ve);else{const si=z,zn=j;z=!1,j=!1,Ve=un(Ve,Ze,t),z=si,j=zn}if(z){p(Ve);return}else return Ve}function st(Ve){if(Ve.asteriskToken)Ve=lu(Pt(u.createFunctionExpression(void 0,void 0,Ve.name,void 0,Dc(Ve.parameters,Ze,t),void 0,It(Ve.body)),Ve),Ve);else{const si=z,zn=j;z=!1,j=!1,Ve=un(Ve,Ze,t),z=si,j=zn}return Ve}function St(Ve){const si=z,zn=j;return z=!1,j=!1,Ve=un(Ve,Ze,t),z=si,j=zn,Ve}function It(Ve){const si=[],zn=z,ya=j,yo=J,Bo=K,ic=Y,hc=oe,xl=se,Bl=ge,Cc=ae,Ul=Ce,Lc=ne,ep=ve,Gm=Se;z=!0,j=!1,J=void 0,K=void 0,Y=void 0,oe=void 0,se=void 0,ge=void 0,ae=1,Ce=void 0,ne=void 0,ve=void 0,Se=u.createTempVariable(void 0),d();const Rh=u.copyPrologue(Ve.statements,si,!1,Ze);jn(Ve.statements,Rh);const h4=tt();return qE(si,f()),si.push(u.createReturnStatement(h4)),z=zn,j=ya,J=yo,K=Bo,Y=ic,oe=hc,se=xl,ge=Bl,ae=Cc,Ce=Ul,ne=Lc,ve=ep,Se=Gm,Pt(u.createBlock(si,Ve.multiLine),Ve)}function ti(Ve){if(Ve.transformFlags&1048576){oa(Ve.declarationList);return}else{if(vs(Ve)&2097152)return Ve;for(const zn of Ve.declarationList.declarations)E(zn.name);const si=_P(Ve.declarationList);return si.length===0?void 0:ks(u.createExpressionStatement(u.inlineExpressions(Kt(si,xa))),Ve)}}function ht(Ve){const si=U0e(Ve);switch(si){case 0:return Li(Ve);case 1:return Ut(Ve);default:return H.assertNever(si)}}function Ut(Ve){const{left:si,right:zn}=Ve;if(le(zn)){let ya;switch(si.kind){case 211:ya=u.updatePropertyAccessExpression(si,X(H.checkDefined(yt(si.expression,Ze,_f))),si.name);break;case 212:ya=u.updateElementAccessExpression(si,X(H.checkDefined(yt(si.expression,Ze,_f))),X(H.checkDefined(yt(si.argumentExpression,Ze,Wt))));break;default:ya=H.checkDefined(yt(si,Ze,Wt));break}const yo=Ve.operatorToken.kind;return fM(yo)?Pt(u.createAssignment(ya,Pt(u.createBinaryExpression(X(ya),mM(yo),H.checkDefined(yt(zn,Ze,Wt))),Ve)),Ve):u.updateBinaryExpression(Ve,ya,Ve.operatorToken,H.checkDefined(yt(zn,Ze,Wt)))}return un(Ve,Ze,t)}function Li(Ve){return le(Ve.right)?Lye(Ve.operatorToken.kind)?Un(Ve):Ve.operatorToken.kind===28?ji(Ve):u.updateBinaryExpression(Ve,X(H.checkDefined(yt(Ve.left,Ze,Wt))),Ve.operatorToken,H.checkDefined(yt(Ve.right,Ze,Wt))):un(Ve,Ze,t)}function ji(Ve){let si=[];return zn(Ve.left),zn(Ve.right),u.inlineExpressions(si);function zn(ya){tu(ya)&&ya.operatorToken.kind===28?(zn(ya.left),zn(ya.right)):(le(ya)&&si.length>0&&($(1,[u.createExpressionStatement(u.inlineExpressions(si))]),si=[]),si.push(H.checkDefined(yt(ya,Ze,Wt))))}}function xn(Ve){let si=[];for(const zn of Ve.elements)tu(zn)&&zn.operatorToken.kind===28?si.push(ji(zn)):(le(zn)&&si.length>0&&($(1,[u.createExpressionStatement(u.inlineExpressions(si))]),si=[]),si.push(H.checkDefined(yt(zn,Ze,Wt))));return u.inlineExpressions(si)}function Un(Ve){const si=Ct(),zn=it();return sl(zn,H.checkDefined(yt(Ve.left,Ze,Wt)),Ve.left),Ve.operatorToken.kind===56?ll(si,zn,Ve.left):Ri(si,zn,Ve.left),sl(zn,H.checkDefined(yt(Ve.right,Ze,Wt)),Ve.right),ct(si),zn}function rn(Ve){if(le(Ve.whenTrue)||le(Ve.whenFalse)){const si=Ct(),zn=Ct(),ya=it();return ll(si,H.checkDefined(yt(Ve.condition,Ze,Wt)),Ve.condition),sl(ya,H.checkDefined(yt(Ve.whenTrue,Ze,Wt)),Ve.whenTrue),Ka(zn),ct(si),sl(ya,H.checkDefined(yt(Ve.whenFalse,Ze,Wt)),Ve.whenFalse),ct(zn),ya}return un(Ve,Ze,t)}function Ni(Ve){const si=Ct(),zn=yt(Ve.expression,Ze,Wt);if(Ve.asteriskToken){const ya=vs(Ve.expression)&8388608?zn:Pt(s().createValuesHelper(zn),Ve);$c(ya,Ve)}else vh(zn,Ve);return ct(si),Kp(Ve)}function Fi(Ve){return Qu(Ve.elements,void 0,void 0,Ve.multiLine)}function Qu(Ve,si,zn,ya){const yo=te(Ve);let Bo;if(yo>0){Bo=it();const xl=Fn(Ve,Ze,Wt,0,yo);sl(Bo,u.createArrayLiteralExpression(si?[si,...xl]:xl)),si=void 0}const ic=tn(Ve,hc,[],yo);return Bo?u.createArrayConcatCall(Bo,[u.createArrayLiteralExpression(ic,ya)]):Pt(u.createArrayLiteralExpression(si?[si,...ic]:ic,ya),zn);function hc(xl,Bl){if(le(Bl)&&xl.length>0){const Cc=Bo!==void 0;Bo||(Bo=it()),sl(Bo,Cc?u.createArrayConcatCall(Bo,[u.createArrayLiteralExpression(xl,ya)]):u.createArrayLiteralExpression(si?[si,...xl]:xl,ya)),si=void 0,xl=[]}return xl.push(H.checkDefined(yt(Bl,Ze,Wt))),xl}}function aa(Ve){const si=Ve.properties,zn=Ve.multiLine,ya=te(si),yo=it();sl(yo,u.createObjectLiteralExpression(Fn(si,Ze,q3,0,ya),zn));const Bo=tn(si,ic,[],ya);return Bo.push(zn?xh(bs(Pt(u.cloneNode(yo),yo),yo.parent)):yo),u.inlineExpressions(Bo);function ic(hc,xl){le(xl)&&hc.length>0&&(zl(u.createExpressionStatement(u.inlineExpressions(hc))),hc=[]);const Bl=yFe(u,Ve,xl,yo),Cc=yt(Bl,Ze,Wt);return Cc&&(zn&&xh(Cc),hc.push(Cc)),hc}}function Fr(Ve){return le(Ve.argumentExpression)?u.updateElementAccessExpression(Ve,X(H.checkDefined(yt(Ve.expression,Ze,_f))),H.checkDefined(yt(Ve.argumentExpression,Ze,Wt))):un(Ve,Ze,t)}function Ba(Ve){if(!cm(Ve)&&L(Ve.arguments,le)){const{target:si,thisArg:zn}=u.createCallBinding(Ve.expression,E,b,!0);return lu(Pt(u.createFunctionApplyCall(X(H.checkDefined(yt(si,Ze,_f))),zn,Qu(Ve.arguments)),Ve),Ve)}return un(Ve,Ze,t)}function bt(Ve){if(L(Ve.arguments,le)){const{target:si,thisArg:zn}=u.createCallBinding(u.createPropertyAccessExpression(Ve.expression,"bind"),E);return lu(Pt(u.createNewExpression(u.createFunctionApplyCall(X(H.checkDefined(yt(si,Ze,Wt))),zn,Qu(Ve.arguments,u.createVoidZero())),void 0,[]),Ve),Ve)}return un(Ve,Ze,t)}function jn(Ve,si=0){const zn=Ve.length;for(let ya=si;ya0)break;yo.push(xa(ic))}yo.length&&(zl(u.createExpressionStatement(u.inlineExpressions(yo))),ya+=yo.length,yo=[])}}function xa(Ve){return ks(u.createAssignment(ks(u.cloneNode(Ve.name),Ve.name),H.checkDefined(yt(Ve.initializer,Ze,Wt))),Ve)}function ra(Ve){if(le(Ve))if(le(Ve.thenStatement)||le(Ve.elseStatement)){const si=Ct(),zn=Ve.elseStatement?Ct():void 0;ll(Ve.elseStatement?zn:si,H.checkDefined(yt(Ve.expression,Ze,Wt)),Ve.expression),Nn(Ve.thenStatement),Ve.elseStatement&&(Ka(si),ct(zn),Nn(Ve.elseStatement)),ct(si)}else zl(yt(Ve,Ze,na));else zl(yt(Ve,Ze,na))}function wa(Ve){if(le(Ve)){const si=Ct(),zn=Ct();Tn(si),ct(zn),Nn(Ve.statement),ct(si),Ri(zn,H.checkDefined(yt(Ve.expression,Ze,Wt))),Rr()}else zl(yt(Ve,Ze,na))}function Zo(Ve){return j?(ja(),Ve=un(Ve,Ze,t),Rr(),Ve):un(Ve,Ze,t)}function vo(Ve){if(le(Ve)){const si=Ct(),zn=Tn(si);ct(si),ll(zn,H.checkDefined(yt(Ve.expression,Ze,Wt))),Nn(Ve.statement),Ka(si),Rr()}else zl(yt(Ve,Ze,na))}function Qe(Ve){return j?(ja(),Ve=un(Ve,Ze,t),Rr(),Ve):un(Ve,Ze,t)}function Et(Ve){if(le(Ve)){const si=Ct(),zn=Ct(),ya=Tn(zn);if(Ve.initializer){const yo=Ve.initializer;Fd(yo)?oa(yo):zl(Pt(u.createExpressionStatement(H.checkDefined(yt(yo,Ze,Wt))),yo))}ct(si),Ve.condition&&ll(ya,H.checkDefined(yt(Ve.condition,Ze,Wt))),Nn(Ve.statement),ct(zn),Ve.incrementor&&zl(Pt(u.createExpressionStatement(H.checkDefined(yt(Ve.incrementor,Ze,Wt))),Ve.incrementor)),Ka(si),Rr()}else zl(yt(Ve,Ze,na))}function Mt(Ve){j&&ja();const si=Ve.initializer;if(si&&Fd(si)){for(const ya of si.declarations)E(ya.name);const zn=_P(si);Ve=u.updateForStatement(Ve,zn.length>0?u.inlineExpressions(Kt(zn,xa)):void 0,yt(Ve.condition,Ze,Wt),yt(Ve.incrementor,Ze,Wt),Mh(Ve.statement,Ze,t))}else Ve=un(Ve,Ze,t);return j&&Rr(),Ve}function qt(Ve){if(le(Ve)){const si=it(),zn=it(),ya=it(),yo=u.createLoopVariable(),Bo=Ve.initializer;E(yo),sl(si,H.checkDefined(yt(Ve.expression,Ze,Wt))),sl(zn,u.createArrayLiteralExpression()),zl(u.createForInStatement(ya,si,u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(zn,"push"),void 0,[ya])))),sl(yo,u.createNumericLiteral(0));const ic=Ct(),hc=Ct(),xl=Tn(hc);ct(ic),ll(xl,u.createLessThan(yo,u.createPropertyAccessExpression(zn,"length"))),sl(ya,u.createElementAccessExpression(zn,yo)),ll(hc,u.createBinaryExpression(ya,103,si));let Bl;if(Fd(Bo)){for(const Cc of Bo.declarations)E(Cc.name);Bl=u.cloneNode(Bo.declarations[0].name)}else Bl=H.checkDefined(yt(Bo,Ze,Wt)),H.assert(_f(Bl));sl(Bl,ya),Nn(Ve.statement),ct(hc),zl(u.createExpressionStatement(u.createPostfixIncrement(yo))),Ka(ic),Rr()}else zl(yt(Ve,Ze,na))}function Xt(Ve){j&&ja();const si=Ve.initializer;if(Fd(si)){for(const zn of si.declarations)E(zn.name);Ve=u.updateForInStatement(Ve,si.declarations[0].name,H.checkDefined(yt(Ve.expression,Ze,Wt)),H.checkDefined(yt(Ve.statement,Ze,na,u.liftToBlock)))}else Ve=un(Ve,Ze,t);return j&&Rr(),Ve}function Pe(Ve){const si=Vo(Ve.label?mu(Ve.label):void 0);si>0?Ka(si,Ve):zl(Ve)}function et(Ve){if(j){const si=Vo(Ve.label&&mu(Ve.label));if(si>0)return Ho(si,Ve)}return un(Ve,Ze,t)}function gt(Ve){const si=so(Ve.label?mu(Ve.label):void 0);si>0?Ka(si,Ve):zl(Ve)}function ii(Ve){if(j){const si=so(Ve.label&&mu(Ve.label));if(si>0)return Ho(si,Ve)}return un(Ve,Ze,t)}function me(Ve){of(yt(Ve.expression,Ze,Wt),Ve)}function ni(Ve){return wc(yt(Ve.expression,Ze,Wt),Ve)}function _i(Ve){le(Ve)?(hu(X(H.checkDefined(yt(Ve.expression,Ze,Wt)))),Nn(Ve.statement),Ru()):zl(yt(Ve,Ze,na))}function mt(Ve){if(le(Ve.caseBlock)){const si=Ve.caseBlock,zn=si.clauses.length,ya=So(),yo=X(H.checkDefined(yt(Ve.expression,Ze,Wt))),Bo=[];let ic=-1;for(let Bl=0;Bl0)break;xl.push(u.createCaseClause(H.checkDefined(yt(Ul.expression,Ze,Wt)),[Ho(Bo[Cc],Ul.expression)]))}else Bl++}xl.length&&(zl(u.createSwitchStatement(yo,u.createCaseBlock(xl))),hc+=xl.length,xl=[]),Bl>0&&(hc+=Bl,Bl=0)}ic>=0?Ka(Bo[ic]):Ka(ya);for(let Bl=0;Bl=0;zn--){const ya=oe[zn];if(Sl(ya)){if(ya.labelText===Ve)return!0}else break}return!1}function so(Ve){if(oe)if(Ve)for(let si=oe.length-1;si>=0;si--){const zn=oe[si];if(Sl(zn)&&zn.labelText===Ve)return zn.breakLabel;if($l(zn)&&Dl(Ve,si-1))return zn.breakLabel}else for(let si=oe.length-1;si>=0;si--){const zn=oe[si];if($l(zn))return zn.breakLabel}return 0}function Vo(Ve){if(oe)if(Ve)for(let si=oe.length-1;si>=0;si--){const zn=oe[si];if(cd(zn)&&Dl(Ve,si-1))return zn.continueLabel}else for(let si=oe.length-1;si>=0;si--){const zn=oe[si];if(cd(zn))return zn.continueLabel}return 0}function td(Ve){if(Ve!==void 0&&Ve>0){ge===void 0&&(ge=[]);const si=u.createNumericLiteral(-1);return ge[Ve]===void 0?ge[Ve]=[si]:ge[Ve].push(si),si}return u.createOmittedExpression()}function $0(Ve){const si=u.createNumericLiteral(Ve);return bZ(si,3,OMt(Ve)),si}function Ho(Ve,si){return H.assertLessThan(0,Ve,"Invalid label"),Pt(u.createReturnStatement(u.createArrayLiteralExpression([$0(3),td(Ve)])),si)}function wc(Ve,si){return Pt(u.createReturnStatement(u.createArrayLiteralExpression(Ve?[$0(2),Ve]:[$0(2)])),si)}function Kp(Ve){return Pt(u.createCallExpression(u.createPropertyAccessExpression(Se,"sent"),void 0,[]),Ve)}function Tc(){$(0)}function zl(Ve){Ve?$(1,[Ve]):Tc()}function sl(Ve,si,zn){$(2,[Ve,si],zn)}function Ka(Ve,si){$(3,[Ve],si)}function Ri(Ve,si,zn){$(4,[Ve,si],zn)}function ll(Ve,si,zn){$(5,[Ve,si],zn)}function $c(Ve,si){$(7,[Ve],si)}function vh(Ve,si){$(6,[Ve],si)}function of(Ve,si){$(8,[Ve],si)}function U0(Ve,si){$(9,[Ve],si)}function vc(){$(10)}function $(Ve,si,zn){Ce===void 0&&(Ce=[],ne=[],ve=[]),se===void 0&&ct(Ct());const ya=Ce.length;Ce[ya]=Ve,ne[ya]=si,ve[ya]=zn}function tt(){Ne=0,pe=0,fe=void 0,xe=!1,Be=!1,We=void 0,Ae=void 0,De=void 0,He=void 0,Ge=void 0;const Ve=vt();return s().createGeneratorHelper(Qn(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,Se)],void 0,u.createBlock(Ve,Ve.length>0)),1048576))}function vt(){if(Ce){for(let Ve=0;Ve=0;si--){const zn=Ge[si];Ae=[u.createWithStatement(zn.expression,u.createBlock(Ae))]}if(He){const{startLabel:si,catchLabel:zn,finallyLabel:ya,endLabel:yo}=He;Ae.unshift(u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(u.createPropertyAccessExpression(Se,"trys"),"push"),void 0,[u.createArrayLiteralExpression([td(si),td(zn),td(ya),td(yo)])]))),He=void 0}Ve&&Ae.push(u.createExpressionStatement(u.createAssignment(u.createPropertyAccessExpression(Se,"label"),u.createNumericLiteral(pe+1))))}We.push(u.createCaseClause(u.createNumericLiteral(pe),Ae||[])),Ae=void 0}function Tu(Ve){if(se)for(let si=0;sis.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(mu(ct))),Ct),s.createVoidZero())));Ei(te,yt(K.externalHelpersImportDeclaration,fe,na)),kn(te,Fn(le.statements,fe,na,de)),pe(te,!1),qE(te,p());const Oe=s.updateSourceFile(le,Pt(s.createNodeArray(te),le.statements));return tD(Oe,t.readEmitHelpers()),Oe}function Ce(le){const te=s.createIdentifier("define"),we=MV(s,le,B,v),de=H4(le)&&le,{aliasedModuleNames:Oe,unaliasedModuleNames:X,importAliasNames:it}=ve(le,!0),Ct=s.updateSourceFile(le,Pt(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(te,void 0,[...we?[we]:[],s.createArrayLiteralExpression(de?_t:[s.createStringLiteral("require"),s.createStringLiteral("exports"),...Oe,...X]),de?de.statements.length?de.statements[0].expression:s.createObjectLiteralExpression():s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"require"),s.createParameterDeclaration(void 0,void 0,"exports"),...it],void 0,Ne(le))]))]),le.statements));return tD(Ct,t.readEmitHelpers()),Ct}function ne(le){const{aliasedModuleNames:te,unaliasedModuleNames:we,importAliasNames:de}=ve(le,!1),Oe=MV(s,le,B,v),X=s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"factory")],void 0,Pt(s.createBlock([s.createIfStatement(s.createLogicalAnd(s.createTypeCheck(s.createIdentifier("module"),"object"),s.createTypeCheck(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),"object")),s.createBlock([s.createVariableStatement(void 0,[s.createVariableDeclaration("v",void 0,void 0,s.createCallExpression(s.createIdentifier("factory"),void 0,[s.createIdentifier("require"),s.createIdentifier("exports")]))]),Qn(s.createIfStatement(s.createStrictInequality(s.createIdentifier("v"),s.createIdentifier("undefined")),s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),s.createIdentifier("v")))),1)]),s.createIfStatement(s.createLogicalAnd(s.createTypeCheck(s.createIdentifier("define"),"function"),s.createPropertyAccessExpression(s.createIdentifier("define"),"amd")),s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("define"),void 0,[...Oe?[Oe]:[],s.createArrayLiteralExpression([s.createStringLiteral("require"),s.createStringLiteral("exports"),...te,...we]),s.createIdentifier("factory")]))])))],!0),void 0)),it=s.updateSourceFile(le,Pt(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(X,void 0,[s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"require"),s.createParameterDeclaration(void 0,void 0,"exports"),...de],void 0,Ne(le))]))]),le.statements));return tD(it,t.readEmitHelpers()),it}function ve(le,te){const we=[],de=[],Oe=[];for(const X of le.amdDependencies)X.name?(we.push(s.createStringLiteral(X.path)),Oe.push(s.createParameterDeclaration(void 0,void 0,X.name))):de.push(s.createStringLiteral(X.path));for(const X of K.externalImports){const it=H7(s,X,J,B,b,v),Ct=PB(s,X,J);it&&(te&&Ct?(Qn(Ct,8),we.push(it),Oe.push(s.createParameterDeclaration(void 0,void 0,Ct))):de.push(it))}return{aliasedModuleNames:we,unaliasedModuleNames:de,importAliasNames:Oe}}function Se(le){if(g1(le)||Wc(le)||!H7(s,le,J,B,b,v))return;const te=PB(s,le,J),we=Ba(le,te);if(we!==te)return s.createExpressionStatement(s.createAssignment(te,we))}function Ne(le){f();const te=[],we=s.copyPrologue(le.statements,te,!v.noImplicitUseStrict,fe);ge()&&Ei(te,Pe()),S(K.exportedNames)&&Ei(te,s.createExpressionStatement(tn(K.exportedNames,(Oe,X)=>s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(mu(X))),Oe),s.createVoidZero()))),Ei(te,yt(K.externalHelpersImportDeclaration,fe,na)),T===2&&kn(te,Ui(K.externalImports,Se)),kn(te,Fn(le.statements,fe,na,we)),pe(te,!0),qE(te,p());const de=s.createBlock(te,!0);return oe&&F7(de,Ket),de}function pe(le,te){if(K.exportEquals){const we=yt(K.exportEquals.expression,We,Wt);if(we)if(te){const de=s.createReturnStatement(we);Pt(de,K.exportEquals),Qn(de,3840),le.push(de)}else{const de=s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),we));Pt(de,K.exportEquals),Qn(de,3072),le.push(de)}}}function fe(le){switch(le.kind){case 272:return bt(le);case 271:return Nn(le);case 278:return Ai(le);case 277:return Dn(le);default:return xe(le)}}function xe(le){switch(le.kind){case 243:return oa(le);case 262:return bn(le);case 263:return iu(le);case 248:return Ge(le,!0);case 249:return ft(le);case 250:return Ze(le);case 246:return je(le);case 247:return Ke(le);case 256:return Gt(le);case 254:return Yt(le);case 245:return Ie(le);case 255:return st(le);case 269:return St(le);case 296:return It(le);case 297:return ti(le);case 258:return ht(le);case 299:return Ut(le);case 241:return Li(le);default:return We(le)}}function Be(le,te){if(!(le.transformFlags&276828160))return le;switch(le.kind){case 248:return Ge(le,!1);case 244:return ji(le);case 217:return xn(le,te);case 360:return Un(le,te);case 213:if(cm(le)&&J.impliedNodeFormat===void 0)return Ni(le);break;case 226:if(u5(le))return He(le,te);break;case 224:case 225:return rn(le,te)}return un(le,We,t)}function We(le){return Be(le,!1)}function Ae(le){return Be(le,!0)}function De(le){if(Cs(le))for(const te of le.properties)switch(te.kind){case 303:if(De(te.initializer))return!0;break;case 304:if(De(te.name))return!0;break;case 305:if(De(te.expression))return!0;break;case 174:case 177:case 178:return!1;default:H.assertNever(te,"Unhandled object member kind")}else if(_h(le)){for(const te of le.elements)if(nE(te)){if(De(te.expression))return!0}else if(De(te))return!0}else if(at(le))return S(on(le))>(gY(le)?1:0);return!1}function He(le,te){return De(le.left)?Sk(le,We,t,0,!te,xa):un(le,We,t)}function Ge(le,te){if(te&&le.initializer&&Fd(le.initializer)&&!(le.initializer.flags&7)){const we=Qe(void 0,le.initializer,!1);if(we){const de=[],Oe=yt(le.initializer,Ae,Fd),X=s.createVariableStatement(void 0,Oe);de.push(X),kn(de,we);const it=yt(le.condition,We,Wt),Ct=yt(le.incrementor,Ae,Wt),ct=Mh(le.statement,te?xe:We,t);return de.push(s.updateForStatement(le,void 0,it,Ct,ct)),de}}return s.updateForStatement(le,yt(le.initializer,Ae,r4),yt(le.condition,We,Wt),yt(le.incrementor,Ae,Wt),Mh(le.statement,te?xe:We,t))}function ft(le){if(Fd(le.initializer)&&!(le.initializer.flags&7)){const te=Qe(void 0,le.initializer,!0);if(qe(te)){const we=yt(le.initializer,Ae,r4),de=yt(le.expression,We,Wt),Oe=Mh(le.statement,xe,t),X=fo(Oe)?s.updateBlock(Oe,[...te,...Oe.statements]):s.createBlock([...te,Oe],!0);return s.updateForInStatement(le,we,de,X)}}return s.updateForInStatement(le,yt(le.initializer,Ae,r4),yt(le.expression,We,Wt),Mh(le.statement,xe,t))}function Ze(le){if(Fd(le.initializer)&&!(le.initializer.flags&7)){const te=Qe(void 0,le.initializer,!0),we=yt(le.initializer,Ae,r4),de=yt(le.expression,We,Wt);let Oe=Mh(le.statement,xe,t);return qe(te)&&(Oe=fo(Oe)?s.updateBlock(Oe,[...te,...Oe.statements]):s.createBlock([...te,Oe],!0)),s.updateForOfStatement(le,le.awaitModifier,we,de,Oe)}return s.updateForOfStatement(le,le.awaitModifier,yt(le.initializer,Ae,r4),yt(le.expression,We,Wt),Mh(le.statement,xe,t))}function je(le){return s.updateDoStatement(le,Mh(le.statement,xe,t),yt(le.expression,We,Wt))}function Ke(le){return s.updateWhileStatement(le,yt(le.expression,We,Wt),Mh(le.statement,xe,t))}function Gt(le){return s.updateLabeledStatement(le,le.label,H.checkDefined(yt(le.statement,xe,na,s.liftToBlock)))}function Yt(le){return s.updateWithStatement(le,yt(le.expression,We,Wt),H.checkDefined(yt(le.statement,xe,na,s.liftToBlock)))}function Ie(le){return s.updateIfStatement(le,yt(le.expression,We,Wt),H.checkDefined(yt(le.thenStatement,xe,na,s.liftToBlock)),yt(le.elseStatement,xe,na,s.liftToBlock))}function st(le){return s.updateSwitchStatement(le,yt(le.expression,We,Wt),H.checkDefined(yt(le.caseBlock,xe,qP)))}function St(le){return s.updateCaseBlock(le,Fn(le.clauses,xe,jU))}function It(le){return s.updateCaseClause(le,yt(le.expression,We,Wt),Fn(le.statements,xe,na))}function ti(le){return un(le,xe,t)}function ht(le){return un(le,xe,t)}function Ut(le){return s.updateCatchClause(le,le.variableDeclaration,H.checkDefined(yt(le.block,xe,fo)))}function Li(le){return le=un(le,xe,t),le}function ji(le){return s.updateExpressionStatement(le,yt(le.expression,Ae,Wt))}function xn(le,te){return s.updateParenthesizedExpression(le,yt(le.expression,te?Ae:We,Wt))}function Un(le,te){return s.updatePartiallyEmittedExpression(le,yt(le.expression,te?Ae:We,Wt))}function rn(le,te){if((le.operator===46||le.operator===47)&&at(le.operand)&&!ul(le.operand)&&!uD(le.operand)&&!mle(le.operand)){const we=on(le.operand);if(we){let de,Oe=yt(le.operand,We,Wt);Pv(le)?Oe=s.updatePrefixUnaryExpression(le,Oe):(Oe=s.updatePostfixUnaryExpression(le,Oe),te||(de=s.createTempVariable(E),Oe=s.createAssignment(de,Oe),Pt(Oe,le)),Oe=s.createComma(Oe,s.cloneNode(le.operand)),Pt(Oe,le));for(const X of we)Y[Js(Oe)]=!0,Oe=gt(X,Oe),Pt(Oe,le);return de&&(Y[Js(Oe)]=!0,Oe=s.createComma(Oe,de),Pt(Oe,le)),Oe}}return un(le,We,t)}function Ni(le){if(T===0&&k>=7)return un(le,We,t);const te=H7(s,le,J,B,b,v),we=yt(Hi(le.arguments),We,Wt),de=te&&(!we||!ns(we)||we.text!==te.text)?te:we,Oe=!!(le.transformFlags&16384);switch(v.module){case 2:return Qu(de,Oe);case 3:return Fi(de??s.createVoidZero(),Oe);case 1:default:return aa(de)}}function Fi(le,te){if(oe=!0,U2(le)){const we=ul(le)?le:ns(le)?s.createStringLiteralFromNode(le):Qn(Pt(s.cloneNode(le),le),3072);return s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,aa(le),void 0,Qu(we,te))}else{const we=s.createTempVariable(E);return s.createComma(s.createAssignment(we,le),s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,aa(we,!0),void 0,Qu(we,te)))}}function Qu(le,te){const we=s.createUniqueName("resolve"),de=s.createUniqueName("reject"),Oe=[s.createParameterDeclaration(void 0,void 0,we),s.createParameterDeclaration(void 0,void 0,de)],X=s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("require"),void 0,[s.createArrayLiteralExpression([le||s.createOmittedExpression()]),we,de]))]);let it;k>=2?it=s.createArrowFunction(void 0,void 0,Oe,void 0,void 0,X):(it=s.createFunctionExpression(void 0,void 0,void 0,void 0,Oe,void 0,X),te&&Qn(it,16));const Ct=s.createNewExpression(s.createIdentifier("Promise"),void 0,[it]);return XE(v)?s.createCallExpression(s.createPropertyAccessExpression(Ct,s.createIdentifier("then")),void 0,[d().createImportStarCallbackHelper()]):Ct}function aa(le,te){const we=le&&!oE(le)&&!te,de=s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Promise"),"resolve"),void 0,we?k>=2?[s.createTemplateExpression(s.createTemplateHead(""),[s.createTemplateSpan(le,s.createTemplateTail(""))])]:[s.createCallExpression(s.createPropertyAccessExpression(s.createStringLiteral(""),"concat"),void 0,[le])]:[]);let Oe=s.createCallExpression(s.createIdentifier("require"),void 0,we?[s.createIdentifier("s")]:le?[le]:[]);XE(v)&&(Oe=d().createImportStarHelper(Oe));const X=we?[s.createParameterDeclaration(void 0,void 0,"s")]:[];let it;return k>=2?it=s.createArrowFunction(void 0,void 0,X,void 0,void 0,Oe):it=s.createFunctionExpression(void 0,void 0,void 0,void 0,X,void 0,s.createBlock([s.createReturnStatement(Oe)])),s.createCallExpression(s.createPropertyAccessExpression(de,"then"),void 0,[it])}function Fr(le,te){return!XE(v)||Tp(le)&2?te:KAe(le)?d().createImportStarHelper(te):te}function Ba(le,te){return!XE(v)||Tp(le)&2?te:iQ(le)?d().createImportStarHelper(te):Jde(le)?d().createImportDefaultHelper(te):te}function bt(le){let te;const we=Z8(le);if(T!==2)if(le.importClause){const de=[];we&&!s7(le)?de.push(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,Ba(le,jn(le)))):(de.push(s.createVariableDeclaration(s.getGeneratedNameForNode(le),void 0,void 0,Ba(le,jn(le)))),we&&s7(le)&&de.push(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,s.getGeneratedNameForNode(le)))),te=Ei(te,lu(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList(de,k>=2?2:0)),le),le))}else return lu(Pt(s.createExpressionStatement(jn(le)),le),le);else we&&s7(le)&&(te=Ei(te,s.createVariableStatement(void 0,s.createVariableDeclarationList([lu(Pt(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,s.getGeneratedNameForNode(le)),le),le)],k>=2?2:0))));return te=wa(te,le),k0(te)}function jn(le){const te=H7(s,le,J,B,b,v),we=[];return te&&we.push(te),s.createCallExpression(s.createIdentifier("require"),void 0,we)}function Nn(le){H.assert(vv(le),"import= for internal module references should be handled in an earlier transformer.");let te;return T!==2?Xu(le,32)?te=Ei(te,lu(Pt(s.createExpressionStatement(gt(le.name,jn(le))),le),le)):te=Ei(te,lu(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(s.cloneNode(le.name),void 0,void 0,jn(le))],k>=2?2:0)),le),le)):Xu(le,32)&&(te=Ei(te,lu(Pt(s.createExpressionStatement(gt(s.getExportName(le),s.getLocalName(le))),le),le))),te=Zo(te,le),k0(te)}function Ai(le){if(!le.moduleSpecifier)return;const te=s.getGeneratedNameForNode(le);if(le.exportClause&&Q4(le.exportClause)){const we=[];T!==2&&we.push(lu(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(te,void 0,void 0,jn(le))])),le),le));for(const de of le.exportClause.elements)if(k===0)we.push(lu(Pt(s.createExpressionStatement(d().createCreateBindingHelper(te,s.createStringLiteralFromNode(de.propertyName||de.name),de.propertyName?s.createStringLiteralFromNode(de.name):void 0)),de),de));else{const Oe=!!XE(v)&&!(Tp(le)&2)&&mu(de.propertyName||de.name)==="default",X=s.createPropertyAccessExpression(Oe?d().createImportDefaultHelper(te):te,de.propertyName||de.name);we.push(lu(Pt(s.createExpressionStatement(gt(s.getExportName(de),X,void 0,!0)),de),de))}return k0(we)}else if(le.exportClause){const we=[];return we.push(lu(Pt(s.createExpressionStatement(gt(s.cloneNode(le.exportClause.name),Fr(le,T!==2?jn(le):ZU(le)?te:s.createIdentifier(mu(le.exportClause.name))))),le),le)),k0(we)}else return lu(Pt(s.createExpressionStatement(d().createExportStarHelper(T!==2?jn(le):te)),le),le)}function Dn(le){if(!le.isExportEquals)return et(s.createIdentifier("default"),yt(le.expression,We,Wt),le,!0)}function bn(le){let te;return Xu(le,32)?te=Ei(te,lu(Pt(s.createFunctionDeclaration(Fn(le.modifiers,ii,Yo),le.asteriskToken,s.getDeclarationName(le,!0,!0),void 0,Fn(le.parameters,We,eo),void 0,un(le.body,We,t)),le),le)):te=Ei(te,un(le,We,t)),te=Mt(te,le),k0(te)}function iu(le){let te;return Xu(le,32)?te=Ei(te,lu(Pt(s.createClassDeclaration(Fn(le.modifiers,ii,rl),s.getDeclarationName(le,!0,!0),void 0,Fn(le.heritageClauses,We,fm),Fn(le.members,We,qd)),le),le)):te=Ei(te,un(le,We,t)),te=Mt(te,le),k0(te)}function oa(le){let te,we,de;if(Xu(le,32)){let Oe,X=!1;for(const it of le.declarationList.declarations)if(at(it.name)&&uD(it.name))if(Oe||(Oe=Fn(le.modifiers,ii,Yo)),it.initializer){const Ct=s.updateVariableDeclaration(it,it.name,void 0,void 0,gt(it.name,yt(it.initializer,We,Wt)));we=Ei(we,Ct)}else we=Ei(we,it);else if(it.initializer)if(!Fo(it.name)&&(G0(it.initializer)||F0(it.initializer)||Qd(it.initializer))){const Ct=s.createAssignment(Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),it.name),it.name),s.createIdentifier(W4(it.name))),ct=s.createVariableDeclaration(it.name,it.exclamationToken,it.type,yt(it.initializer,We,Wt));we=Ei(we,ct),de=Ei(de,Ct),X=!0}else de=Ei(de,ra(it));if(we&&(te=Ei(te,s.updateVariableStatement(le,Oe,s.updateVariableDeclarationList(le.declarationList,we)))),de){const it=lu(Pt(s.createExpressionStatement(s.inlineExpressions(de)),le),le);X&&pV(it),te=Ei(te,it)}}else te=Ei(te,un(le,We,t));return te=vo(te,le),k0(te)}function xa(le,te,we){const de=on(le);if(de){let Oe=gY(le)?te:s.createAssignment(le,te);for(const X of de)Qn(Oe,8),Oe=gt(X,Oe,we);return Oe}return s.createAssignment(le,te)}function ra(le){return Fo(le.name)?Sk(yt(le,We,Uj),We,t,0,!1,xa):s.createAssignment(Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),le.name),le.name),le.initializer?yt(le.initializer,We,Wt):s.createVoidZero())}function wa(le,te){if(K.exportEquals)return le;const we=te.importClause;if(!we)return le;const de=new q7;we.name&&(le=qt(le,de,we));const Oe=we.namedBindings;if(Oe)switch(Oe.kind){case 274:le=qt(le,de,Oe);break;case 275:for(const X of Oe.elements)le=qt(le,de,X,!0);break}return le}function Zo(le,te){return K.exportEquals?le:qt(le,new q7,te)}function vo(le,te){return Qe(le,te.declarationList,!1)}function Qe(le,te,we){if(K.exportEquals)return le;for(const de of te.declarations)le=Et(le,de,we);return le}function Et(le,te,we){if(K.exportEquals)return le;if(Fo(te.name))for(const de of te.name.elements)kd(de)||(le=Et(le,de,we));else!ul(te.name)&&(!ua(te)||te.initializer||we)&&(le=qt(le,new q7,te));return le}function Mt(le,te){if(K.exportEquals)return le;const we=new q7;if(Xu(te,32)){const de=Xu(te,2048)?s.createIdentifier("default"):s.getDeclarationName(te);le=Xt(le,we,de,s.getLocalName(te),te)}return te.name&&(le=qt(le,we,te)),le}function qt(le,te,we,de){const Oe=s.getDeclarationName(we),X=K.exportSpecifiers.get(Oe);if(X)for(const it of X)le=Xt(le,te,it.name,Oe,it.name,void 0,de);return le}function Xt(le,te,we,de,Oe,X,it){return te.has(we)||(te.set(we,!0),le=Ei(le,et(we,de,Oe,X,it))),le}function Pe(){let le;return k===0?le=s.createExpressionStatement(gt(s.createIdentifier("__esModule"),s.createTrue())):le=s.createExpressionStatement(s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteral("__esModule"),s.createObjectLiteralExpression([s.createPropertyAssignment("value",s.createTrue())])])),Qn(le,2097152),le}function et(le,te,we,de,Oe){const X=Pt(s.createExpressionStatement(gt(le,te,void 0,Oe)),we);return xh(X),de||Qn(X,3072),X}function gt(le,te,we,de){return Pt(de&&k!==0?s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteralFromNode(le),s.createObjectLiteralExpression([s.createPropertyAssignment("enumerable",s.createTrue()),s.createPropertyAssignment("get",s.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,s.createBlock([s.createReturnStatement(te)])))])]):s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(le)),te),we)}function ii(le){switch(le.kind){case 95:case 90:return}return le}function me(le,te,we){te.kind===312?(J=te,K=j[P1(J)],z(le,te,we),J=void 0,K=void 0):z(le,te,we)}function ni(le,te){return te=M(le,te),te.id&&Y[te.id]?te:le===1?mt(te):mm(te)?_i(te):te}function _i(le){const te=le.name,we=Ji(te);if(we!==te){if(le.objectAssignmentInitializer){const de=s.createAssignment(we,le.objectAssignmentInitializer);return Pt(s.createPropertyAssignment(te,de),le)}return Pt(s.createPropertyAssignment(te,we),le)}return le}function mt(le){switch(le.kind){case 80:return Ji(le);case 213:return jt(le);case 215:return pi(le);case 226:return Yi(le)}return le}function jt(le){if(at(le.expression)){const te=Ji(le.expression);if(Y[Js(te)]=!0,!at(te)&&!(vs(le.expression)&8192))return y7(s.updateCallExpression(le,te,void 0,le.arguments),16)}return le}function pi(le){if(at(le.tag)){const te=Ji(le.tag);if(Y[Js(te)]=!0,!at(te)&&!(vs(le.tag)&8192))return y7(s.updateTaggedTemplateExpression(le,te,void 0,le.template),16)}return le}function Ji(le){var te,we;if(vs(le)&8192){const de=PV(J);return de?s.createPropertyAccessExpression(de,le):le}else if(!(ul(le)&&!(le.emitNode.autoGenerate.flags&64))&&!uD(le)){const de=b.getReferencedExportContainer(le,gY(le));if(de&&de.kind===312)return Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(le)),le);const Oe=b.getReferencedImportDeclaration(le);if(Oe){if(i_(Oe))return Pt(s.createPropertyAccessExpression(s.getGeneratedNameForNode(Oe.parent),s.createIdentifier("default")),le);if(Cf(Oe)){const X=Oe.propertyName||Oe.name;return Pt(s.createPropertyAccessExpression(s.getGeneratedNameForNode(((we=(te=Oe.parent)==null?void 0:te.parent)==null?void 0:we.parent)||Oe),s.cloneNode(X)),le)}}}return le}function Yi(le){if(n5(le.operatorToken.kind)&&at(le.left)&&(!ul(le.left)||WO(le.left))&&!uD(le.left)){const te=on(le.left);if(te){let we=le;for(const de of te)Y[Js(we)]=!0,we=gt(de,we,le);return we}}return le}function on(le){if(ul(le)){if(WO(le)){const te=K==null?void 0:K.exportSpecifiers.get(le);if(te){const we=[];for(const de of te)we.push(de.name);return we}}}else{const te=b.getReferencedImportDeclaration(le);if(te)return K==null?void 0:K.exportedBindings[P1(te)];const we=new Set,de=b.getReferencedValueDeclarations(le);if(de){for(const Oe of de){const X=K==null?void 0:K.exportedBindings[P1(Oe)];if(X)for(const it of X)we.add(it)}if(we.size)return Ea(we)}}}}var Ket,VMt=o({"src/compiler/transformers/module/module.ts"(){Ao(),Ket={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function v7e(t){const{factory:u,startLexicalEnvironment:s,endLexicalEnvironment:d,hoistVariableDeclaration:f}=t,p=t.getCompilerOptions(),E=t.getEmitResolver(),v=t.getEmitHost(),b=t.onSubstituteNode,B=t.onEmitNode;t.onSubstituteNode=gt,t.onEmitNode=et,t.enableSubstitution(80),t.enableSubstitution(304),t.enableSubstitution(226),t.enableSubstitution(236),t.enableEmitNotification(312);const k=[],T=[],M=[],z=[];let j,J,K,Y,oe,se,ge;return jp(t,ae);function ae(le){if(le.isDeclarationFile||!(a7(le,p)||le.transformFlags&8388608))return le;const te=P1(le);j=le,se=le,J=k[te]=$de(t,le),K=u.createUniqueName("exports"),T[te]=K,Y=z[te]=u.createUniqueName("context");const we=Ce(J.externalImports),de=ne(le,we),Oe=u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,K),u.createParameterDeclaration(void 0,void 0,Y)],void 0,de),X=MV(u,le,v,p),it=u.createArrayLiteralExpression(Kt(we,ct=>ct.name)),Ct=Qn(u.updateSourceFile(le,Pt(u.createNodeArray([u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("System"),"register"),void 0,X?[X,it,Oe]:[it,Oe]))]),le.statements)),2048);return b0(p)||jke(Ct,de,ct=>!ct.scoped),ge&&(M[te]=ge,ge=void 0),j=void 0,J=void 0,K=void 0,Y=void 0,oe=void 0,se=void 0,Ct}function Ce(le){const te=new Map,we=[];for(const de of le){const Oe=H7(u,de,j,v,E,p);if(Oe){const X=Oe.text,it=te.get(X);it!==void 0?we[it].externalImports.push(de):(te.set(X,we.length),we.push({name:Oe,externalImports:[de]}))}}return we}function ne(le,te){const we=[];s();const de=U4(p,"alwaysStrict")||!p.noImplicitUseStrict&&Bc(j),Oe=u.copyPrologue(le.statements,we,de,pe);we.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration("__moduleName",void 0,void 0,u.createLogicalAnd(Y,u.createPropertyAccessExpression(Y,"id")))]))),yt(J.externalHelpersImportDeclaration,pe,na);const X=Fn(le.statements,pe,na,Oe);kn(we,oe),qE(we,d());const it=ve(we),Ct=le.transformFlags&2097152?u.createModifiersFromModifierFlags(1024):void 0,ct=u.createObjectLiteralExpression([u.createPropertyAssignment("setters",Ne(it,te)),u.createPropertyAssignment("execute",u.createFunctionExpression(Ct,void 0,void 0,void 0,[],void 0,u.createBlock(X,!0)))],!0);return we.push(u.createReturnStatement(ct)),u.createBlock(we,!0)}function ve(le){if(!J.hasExportStarsToExportValues)return;if(!J.exportedNames&&J.exportSpecifiers.size===0){let Oe=!1;for(const X of J.externalImports)if(X.kind===278&&X.exportClause){Oe=!0;break}if(!Oe){const X=Se(void 0);return le.push(X),X.name}}const te=[];if(J.exportedNames)for(const Oe of J.exportedNames)Oe.escapedText!=="default"&&te.push(u.createPropertyAssignment(u.createStringLiteralFromNode(Oe),u.createTrue()));const we=u.createUniqueName("exportedNames");le.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(we,void 0,void 0,u.createObjectLiteralExpression(te,!0))])));const de=Se(we);return le.push(de),de.name}function Se(le){const te=u.createUniqueName("exportStar"),we=u.createIdentifier("m"),de=u.createIdentifier("n"),Oe=u.createIdentifier("exports");let X=u.createStrictInequality(de,u.createStringLiteral("default"));return le&&(X=u.createLogicalAnd(X,u.createLogicalNot(u.createCallExpression(u.createPropertyAccessExpression(le,"hasOwnProperty"),void 0,[de])))),u.createFunctionDeclaration(void 0,void 0,te,void 0,[u.createParameterDeclaration(void 0,void 0,we)],void 0,u.createBlock([u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(Oe,void 0,void 0,u.createObjectLiteralExpression([]))])),u.createForInStatement(u.createVariableDeclarationList([u.createVariableDeclaration(de)]),we,u.createBlock([Qn(u.createIfStatement(X,u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(Oe,de),u.createElementAccessExpression(we,de)))),1)])),u.createExpressionStatement(u.createCallExpression(K,void 0,[Oe]))],!0))}function Ne(le,te){const we=[];for(const de of te){const Oe=L(de.externalImports,Ct=>PB(u,Ct,j)),X=Oe?u.getGeneratedNameForNode(Oe):u.createUniqueName(""),it=[];for(const Ct of de.externalImports){const ct=PB(u,Ct,j);switch(Ct.kind){case 272:if(!Ct.importClause)break;case 271:H.assert(ct!==void 0),it.push(u.createExpressionStatement(u.createAssignment(ct,X))),Xu(Ct,32)&&it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createStringLiteral(mu(ct)),X])));break;case 278:if(H.assert(ct!==void 0),Ct.exportClause)if(Q4(Ct.exportClause)){const Qt=[];for(const Ti of Ct.exportClause.elements)Qt.push(u.createPropertyAssignment(u.createStringLiteral(mu(Ti.name)),u.createElementAccessExpression(X,u.createStringLiteral(mu(Ti.propertyName||Ti.name)))));it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createObjectLiteralExpression(Qt,!0)])))}else it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createStringLiteral(mu(Ct.exportClause.name)),X])));else it.push(u.createExpressionStatement(u.createCallExpression(le,void 0,[X])));break}}we.push(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,X)],void 0,u.createBlock(it,!0)))}return u.createArrayLiteralExpression(we,!0)}function pe(le){switch(le.kind){case 272:return fe(le);case 271:return Be(le);case 278:return xe(le);case 277:return We(le);default:return ji(le)}}function fe(le){let te;return le.importClause&&f(PB(u,le,j)),k0(Yt(te,le))}function xe(le){H.assertIsDefined(le)}function Be(le){H.assert(vv(le),"import= for internal module references should be handled in an earlier transformer.");let te;return f(PB(u,le,j)),k0(Ie(te,le))}function We(le){if(le.isExportEquals)return;const te=yt(le.expression,ra,Wt);return Ut(u.createIdentifier("default"),te,!0)}function Ae(le){Xu(le,32)?oe=Ei(oe,u.updateFunctionDeclaration(le,Fn(le.modifiers,Pe,rl),le.asteriskToken,u.getDeclarationName(le,!0,!0),void 0,Fn(le.parameters,ra,eo),void 0,yt(le.body,ra,fo))):oe=Ei(oe,un(le,ra,t)),oe=It(oe,le)}function De(le){let te;const we=u.getLocalName(le);return f(we),te=Ei(te,Pt(u.createExpressionStatement(u.createAssignment(we,Pt(u.createClassExpression(Fn(le.modifiers,Pe,rl),le.name,void 0,Fn(le.heritageClauses,ra,fm),Fn(le.members,ra,qd)),le))),le)),te=It(te,le),k0(te)}function He(le){if(!ft(le.declarationList))return yt(le,ra,na);let te;if(sj(le.declarationList)||oj(le.declarationList)){const we=Fn(le.modifiers,Pe,rl),de=[];for(const X of le.declarationList.declarations)de.push(u.updateVariableDeclaration(X,u.getGeneratedNameForNode(X.name),void 0,void 0,Ze(X,!1)));const Oe=u.updateVariableDeclarationList(le.declarationList,de);te=Ei(te,u.updateVariableStatement(le,we,Oe))}else{let we;const de=Xu(le,32);for(const Oe of le.declarationList.declarations)Oe.initializer?we=Ei(we,Ze(Oe,de)):Ge(Oe);we&&(te=Ei(te,Pt(u.createExpressionStatement(u.inlineExpressions(we)),le)))}return te=st(te,le,!1),k0(te)}function Ge(le){if(Fo(le.name))for(const te of le.name.elements)kd(te)||Ge(te);else f(u.cloneNode(le.name))}function ft(le){return(vs(le)&4194304)===0&&(se.kind===312||(Kl(le).flags&7)===0)}function Ze(le,te){const we=te?je:Ke;return Fo(le.name)?Sk(le,ra,t,0,!1,we):le.initializer?we(le.name,yt(le.initializer,ra,Wt)):le.name}function je(le,te,we){return Gt(le,te,we,!0)}function Ke(le,te,we){return Gt(le,te,we,!1)}function Gt(le,te,we,de){return f(u.cloneNode(le)),de?Li(le,Yi(Pt(u.createAssignment(le,te),we))):Yi(Pt(u.createAssignment(le,te),we))}function Yt(le,te){if(J.exportEquals)return le;const we=te.importClause;if(!we)return le;we.name&&(le=ti(le,we));const de=we.namedBindings;if(de)switch(de.kind){case 274:le=ti(le,de);break;case 275:for(const Oe of de.elements)le=ti(le,Oe);break}return le}function Ie(le,te){return J.exportEquals?le:ti(le,te)}function st(le,te,we){if(J.exportEquals)return le;for(const de of te.declarationList.declarations)(de.initializer||we)&&(le=St(le,de,we));return le}function St(le,te,we){if(J.exportEquals)return le;if(Fo(te.name))for(const de of te.name.elements)kd(de)||(le=St(le,de,we));else if(!ul(te.name)){let de;we&&(le=ht(le,te.name,u.getLocalName(te)),de=mu(te.name)),le=ti(le,te,de)}return le}function It(le,te){if(J.exportEquals)return le;let we;if(Xu(te,32)){const de=Xu(te,2048)?u.createStringLiteral("default"):te.name;le=ht(le,de,u.getLocalName(te)),we=W4(de)}return te.name&&(le=ti(le,te,we)),le}function ti(le,te,we){if(J.exportEquals)return le;const de=u.getDeclarationName(te),Oe=J.exportSpecifiers.get(de);if(Oe)for(const X of Oe)X.name.escapedText!==we&&(le=ht(le,X.name,de));return le}function ht(le,te,we,de){return le=Ei(le,Ut(te,we,de)),le}function Ut(le,te,we){const de=u.createExpressionStatement(Li(le,te));return xh(de),we||Qn(de,3072),de}function Li(le,te){const we=at(le)?u.createStringLiteralFromNode(le):le;return Qn(te,vs(te)|3072),Sc(u.createCallExpression(K,void 0,[we,te]),te)}function ji(le){switch(le.kind){case 243:return He(le);case 262:return Ae(le);case 263:return De(le);case 248:return xn(le,!0);case 249:return Un(le);case 250:return rn(le);case 246:return Qu(le);case 247:return aa(le);case 256:return Fr(le);case 254:return Ba(le);case 245:return bt(le);case 255:return jn(le);case 269:return Nn(le);case 296:return Ai(le);case 297:return Dn(le);case 258:return bn(le);case 299:return iu(le);case 241:return oa(le);default:return ra(le)}}function xn(le,te){const we=se;return se=le,le=u.updateForStatement(le,yt(le.initializer,te?Fi:wa,r4),yt(le.condition,ra,Wt),yt(le.incrementor,wa,Wt),Mh(le.statement,te?ji:ra,t)),se=we,le}function Un(le){const te=se;return se=le,le=u.updateForInStatement(le,Fi(le.initializer),yt(le.expression,ra,Wt),Mh(le.statement,ji,t)),se=te,le}function rn(le){const te=se;return se=le,le=u.updateForOfStatement(le,le.awaitModifier,Fi(le.initializer),yt(le.expression,ra,Wt),Mh(le.statement,ji,t)),se=te,le}function Ni(le){return Fd(le)&&ft(le)}function Fi(le){if(Ni(le)){let te;for(const we of le.declarations)te=Ei(te,Ze(we,!1)),we.initializer||Ge(we);return te?u.inlineExpressions(te):u.createOmittedExpression()}else return yt(le,wa,r4)}function Qu(le){return u.updateDoStatement(le,Mh(le.statement,ji,t),yt(le.expression,ra,Wt))}function aa(le){return u.updateWhileStatement(le,yt(le.expression,ra,Wt),Mh(le.statement,ji,t))}function Fr(le){return u.updateLabeledStatement(le,le.label,H.checkDefined(yt(le.statement,ji,na,u.liftToBlock)))}function Ba(le){return u.updateWithStatement(le,yt(le.expression,ra,Wt),H.checkDefined(yt(le.statement,ji,na,u.liftToBlock)))}function bt(le){return u.updateIfStatement(le,yt(le.expression,ra,Wt),H.checkDefined(yt(le.thenStatement,ji,na,u.liftToBlock)),yt(le.elseStatement,ji,na,u.liftToBlock))}function jn(le){return u.updateSwitchStatement(le,yt(le.expression,ra,Wt),H.checkDefined(yt(le.caseBlock,ji,qP)))}function Nn(le){const te=se;return se=le,le=u.updateCaseBlock(le,Fn(le.clauses,ji,jU)),se=te,le}function Ai(le){return u.updateCaseClause(le,yt(le.expression,ra,Wt),Fn(le.statements,ji,na))}function Dn(le){return un(le,ji,t)}function bn(le){return un(le,ji,t)}function iu(le){const te=se;return se=le,le=u.updateCatchClause(le,le.variableDeclaration,H.checkDefined(yt(le.block,ji,fo))),se=te,le}function oa(le){const te=se;return se=le,le=un(le,ji,t),se=te,le}function xa(le,te){if(!(le.transformFlags&276828160))return le;switch(le.kind){case 248:return xn(le,!1);case 244:return Zo(le);case 217:return vo(le,te);case 360:return Qe(le,te);case 226:if(u5(le))return Mt(le,te);break;case 213:if(cm(le))return Et(le);break;case 224:case 225:return Xt(le,te)}return un(le,ra,t)}function ra(le){return xa(le,!1)}function wa(le){return xa(le,!0)}function Zo(le){return u.updateExpressionStatement(le,yt(le.expression,wa,Wt))}function vo(le,te){return u.updateParenthesizedExpression(le,yt(le.expression,te?wa:ra,Wt))}function Qe(le,te){return u.updatePartiallyEmittedExpression(le,yt(le.expression,te?wa:ra,Wt))}function Et(le){const te=H7(u,le,j,v,E,p),we=yt(Hi(le.arguments),ra,Wt),de=te&&(!we||!ns(we)||we.text!==te.text)?te:we;return u.createCallExpression(u.createPropertyAccessExpression(Y,u.createIdentifier("import")),void 0,de?[de]:[])}function Mt(le,te){return qt(le.left)?Sk(le,ra,t,0,!te):un(le,ra,t)}function qt(le){if(od(le,!0))return qt(le.left);if(nE(le))return qt(le.expression);if(Cs(le))return qe(le.properties,qt);if(_h(le))return qe(le.elements,qt);if(mm(le))return qt(le.name);if(Gc(le))return qt(le.initializer);if(at(le)){const te=E.getReferencedExportContainer(le);return te!==void 0&&te.kind===312}else return!1}function Xt(le,te){if((le.operator===46||le.operator===47)&&at(le.operand)&&!ul(le.operand)&&!uD(le.operand)&&!mle(le.operand)){const we=pi(le.operand);if(we){let de,Oe=yt(le.operand,ra,Wt);Pv(le)?Oe=u.updatePrefixUnaryExpression(le,Oe):(Oe=u.updatePostfixUnaryExpression(le,Oe),te||(de=u.createTempVariable(f),Oe=u.createAssignment(de,Oe),Pt(Oe,le)),Oe=u.createComma(Oe,u.cloneNode(le.operand)),Pt(Oe,le));for(const X of we)Oe=Li(X,Yi(Oe));return de&&(Oe=u.createComma(Oe,de),Pt(Oe,le)),Oe}}return un(le,ra,t)}function Pe(le){switch(le.kind){case 95:case 90:return}return le}function et(le,te,we){if(te.kind===312){const de=P1(te);j=te,J=k[de],K=T[de],ge=M[de],Y=z[de],ge&&delete M[de],B(le,te,we),j=void 0,J=void 0,K=void 0,Y=void 0,ge=void 0}else B(le,te,we)}function gt(le,te){return te=b(le,te),on(te)?te:le===1?ni(te):le===4?ii(te):te}function ii(le){switch(le.kind){case 304:return me(le)}return le}function me(le){var te,we;const de=le.name;if(!ul(de)&&!uD(de)){const Oe=E.getReferencedImportDeclaration(de);if(Oe){if(i_(Oe))return Pt(u.createPropertyAssignment(u.cloneNode(de),u.createPropertyAccessExpression(u.getGeneratedNameForNode(Oe.parent),u.createIdentifier("default"))),le);if(Cf(Oe))return Pt(u.createPropertyAssignment(u.cloneNode(de),u.createPropertyAccessExpression(u.getGeneratedNameForNode(((we=(te=Oe.parent)==null?void 0:te.parent)==null?void 0:we.parent)||Oe),u.cloneNode(Oe.propertyName||Oe.name))),le)}}return le}function ni(le){switch(le.kind){case 80:return _i(le);case 226:return mt(le);case 236:return jt(le)}return le}function _i(le){var te,we;if(vs(le)&8192){const de=PV(j);return de?u.createPropertyAccessExpression(de,le):le}if(!ul(le)&&!uD(le)){const de=E.getReferencedImportDeclaration(le);if(de){if(i_(de))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(de.parent),u.createIdentifier("default")),le);if(Cf(de))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(((we=(te=de.parent)==null?void 0:te.parent)==null?void 0:we.parent)||de),u.cloneNode(de.propertyName||de.name)),le)}}return le}function mt(le){if(n5(le.operatorToken.kind)&&at(le.left)&&(!ul(le.left)||WO(le.left))&&!uD(le.left)){const te=pi(le.left);if(te){let we=le;for(const de of te)we=Li(de,Yi(we));return we}}return le}function jt(le){return H8(le)?u.createPropertyAccessExpression(Y,u.createIdentifier("meta")):le}function pi(le){let te;const we=Ji(le);if(we){const de=E.getReferencedExportContainer(le,!1);de&&de.kind===312&&(te=Ei(te,u.getDeclarationName(we))),te=kn(te,J==null?void 0:J.exportedBindings[P1(we)])}else if(ul(le)&&WO(le)){const de=J==null?void 0:J.exportSpecifiers.get(le);if(de){const Oe=[];for(const X of de)Oe.push(X.name);return Oe}}return te}function Ji(le){if(!ul(le)){const te=E.getReferencedImportDeclaration(le);if(te)return te;const we=E.getReferencedValueDeclaration(le);if(we&&(J!=null&&J.exportedBindings[P1(we)]))return we;const de=E.getReferencedValueDeclarations(le);if(de){for(const Oe of de)if(Oe!==we&&(J!=null&&J.exportedBindings[P1(Oe)]))return Oe}return we}}function Yi(le){return ge===void 0&&(ge=[]),ge[Js(le)]=!0,le}function on(le){return ge&&le.id&&ge[le.id]}}var HMt=o({"src/compiler/transformers/module/system.ts"(){Ao()}});function r1e(t){const{factory:u,getEmitHelperFactory:s}=t,d=t.getEmitHost(),f=t.getEmitResolver(),p=t.getCompilerOptions(),E=Is(p),v=t.onEmitNode,b=t.onSubstituteNode;t.onEmitNode=ge,t.onSubstituteNode=ae,t.enableEmitNotification(312),t.enableSubstitution(80);let B,k,T;return jp(t,M);function M(ne){if(ne.isDeclarationFile)return ne;if(Bc(ne)||hg(p)){k=ne,T=void 0;let ve=z(ne);return k=void 0,T&&(ve=u.updateSourceFile(ve,Pt(u.createNodeArray(s0e(ve.statements.slice(),T)),ve.statements))),!Bc(ne)||qe(ve.statements,qO)?ve:u.updateSourceFile(ve,Pt(u.createNodeArray([...ve.statements,TV(u)]),ve.statements))}return ne}function z(ne){const ve=Rce(u,s(),ne,p);if(ve){const Se=[],Ne=u.copyPrologue(ne.statements,Se);return Ei(Se,ve),kn(Se,Fn(ne.statements,j,na,Ne)),u.updateSourceFile(ne,Pt(u.createNodeArray(Se),ne.statements))}else return un(ne,j,t)}function j(ne){switch(ne.kind){case 271:return f1(p)>=100?K(ne):void 0;case 277:return oe(ne);case 278:return se(ne)}return ne}function J(ne){const ve=H7(u,ne,H.checkDefined(k),d,f,p),Se=[];if(ve&&Se.push(ve),!T){const pe=u.createUniqueName("_createRequire",48),fe=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamedImports([u.createImportSpecifier(!1,u.createIdentifier("createRequire"),pe)])),u.createStringLiteral("module"),void 0),xe=u.createUniqueName("__require",48),Be=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(xe,void 0,void 0,u.createCallExpression(u.cloneNode(pe),void 0,[u.createPropertyAccessExpression(u.createMetaProperty(102,u.createIdentifier("meta")),u.createIdentifier("url"))]))],E>=2?2:0));T=[fe,Be]}const Ne=T[1].declarationList.declarations[0].name;return H.assertNode(Ne,at),u.createCallExpression(u.cloneNode(Ne),void 0,Se)}function K(ne){H.assert(vv(ne),"import= for internal module references should be handled in an earlier transformer.");let ve;return ve=Ei(ve,lu(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.cloneNode(ne.name),void 0,void 0,J(ne))],E>=2?2:0)),ne),ne)),ve=Y(ve,ne),k0(ve)}function Y(ne,ve){return Xu(ve,32)&&(ne=Ei(ne,u.createExportDeclaration(void 0,ve.isTypeOnly,u.createNamedExports([u.createExportSpecifier(!1,void 0,mu(ve.name))])))),ne}function oe(ne){return ne.isExportEquals?void 0:ne}function se(ne){if(p.module!==void 0&&p.module>5||!ne.exportClause||!n_(ne.exportClause)||!ne.moduleSpecifier)return ne;const ve=ne.exportClause.name,Se=u.getGeneratedNameForNode(ve),Ne=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamespaceImport(Se)),ne.moduleSpecifier,ne.attributes);lu(Ne,ne.exportClause);const pe=ZU(ne)?u.createExportDefault(Se):u.createExportDeclaration(void 0,!1,u.createNamedExports([u.createExportSpecifier(!1,Se,ve)]));return lu(pe,ne),[Ne,pe]}function ge(ne,ve,Se){ca(ve)?((Bc(ve)||hg(p))&&p.importHelpers&&(B=new Map),v(ne,ve,Se),B=void 0):v(ne,ve,Se)}function ae(ne,ve){return ve=b(ne,ve),B&&at(ve)&&vs(ve)&8192?Ce(ve):ve}function Ce(ne){const ve=mu(ne);let Se=B.get(ve);return Se||B.set(ve,Se=u.createUniqueName(ve,48)),Se}}var KMt=o({"src/compiler/transformers/module/esnextAnd2015.ts"(){Ao()}});function C7e(t){const u=t.onSubstituteNode,s=t.onEmitNode,d=r1e(t),f=t.onSubstituteNode,p=t.onEmitNode;t.onSubstituteNode=u,t.onEmitNode=s;const E=u1e(t),v=t.onSubstituteNode,b=t.onEmitNode;t.onSubstituteNode=k,t.onEmitNode=T,t.enableSubstitution(312),t.enableEmitNotification(312);let B;return j;function k(K,Y){return ca(Y)?(B=Y,u(K,Y)):B?B.impliedNodeFormat===99?f(K,Y):v(K,Y):u(K,Y)}function T(K,Y,oe){return ca(Y)&&(B=Y),B?B.impliedNodeFormat===99?p(K,Y,oe):b(K,Y,oe):s(K,Y,oe)}function M(K){return K.impliedNodeFormat===99?d:E}function z(K){if(K.isDeclarationFile)return K;B=K;const Y=M(K)(K);return B=void 0,H.assert(ca(Y)),Y}function j(K){return K.kind===312?z(K):J(K)}function J(K){return t.factory.createBundle(Kt(K.sourceFiles,z),K.prepends)}}var WMt=o({"src/compiler/transformers/module/node.ts"(){Ao()}});function cQ(t){return ua(t)||bo(t)||Pm(t)||Rs(t)||XD(t)||Tx(t)||yV(t)||xB(t)||cc(t)||i3(t)||Xc(t)||eo(t)||Al(t)||l5(t)||g1(t)||Ip(t)||dc(t)||pk(t)||Iu(t)||W0(t)||tu(t)||K4(t)}function b7e(t){if(XD(t)||Tx(t))return u;return i3(t)||cc(t)?d:d5(t);function u(p){const E=s(p);return E!==void 0?{diagnosticMessage:E,errorNode:t,typeName:t.name}:void 0}function s(p){return To(t)?p.errorModuleName?p.accessibility===2?F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?p.errorModuleName?p.accessibility===2?F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_property_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?F.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Property_0_of_exported_interface_has_or_is_using_private_name_1}function d(p){const E=f(p);return E!==void 0?{diagnosticMessage:E,errorNode:t,typeName:t.name}:void 0}function f(p){return To(t)?p.errorModuleName?p.accessibility===2?F.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?p.errorModuleName?p.accessibility===2?F.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_method_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?F.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function d5(t){if(ua(t)||bo(t)||Pm(t)||Iu(t)||W0(t)||tu(t)||Rs(t)||dc(t))return s;return XD(t)||Tx(t)?d:yV(t)||xB(t)||cc(t)||i3(t)||Xc(t)||pk(t)?f:eo(t)?Pf(t,t.parent)&&Xu(t.parent,2)?s:p:Al(t)?v:l5(t)?b:g1(t)?B:Ip(t)||K4(t)?k:H.assertNever(t,`Attempted to set a declaration diagnostic context for unhandled node kind: ${H.formatSyntaxKind(t.kind)}`);function u(T){if(t.kind===260||t.kind===208)return T.errorModuleName?T.accessibility===2?F.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:F.Exported_variable_0_has_or_is_using_private_name_1;if(t.kind===172||t.kind===211||t.kind===212||t.kind===226||t.kind===171||t.kind===169&&Xu(t.parent,2))return To(t)?T.errorModuleName?T.accessibility===2?F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263||t.kind===169?T.errorModuleName?T.accessibility===2?F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_property_0_of_exported_class_has_or_is_using_private_name_1:T.errorModuleName?F.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Property_0_of_exported_interface_has_or_is_using_private_name_1}function s(T){const M=u(T);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function d(T){let M;return t.kind===178?To(t)?M=T.errorModuleName?F.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:M=T.errorModuleName?F.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:To(t)?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:M,errorNode:t.name,typeName:t.name}}function f(T){let M;switch(t.kind){case 180:M=T.errorModuleName?F.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:M=T.errorModuleName?F.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:M=T.errorModuleName?F.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:To(t)?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t.parent.kind===263?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:M=T.errorModuleName?F.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:M=T.errorModuleName?T.accessibility===2?F.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return H.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:M,errorNode:t.name||t}}function p(T){const M=E(T);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function E(T){switch(t.parent.kind){case 176:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return T.errorModuleName?F.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return T.errorModuleName?F.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return T.errorModuleName?F.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return To(t.parent)?T.errorModuleName?T.accessibility===2?F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?T.errorModuleName?T.accessibility===2?F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T.errorModuleName?F.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return H.fail(`Unknown parent for parameter: ${H.formatSyntaxKind(t.parent.kind)}`)}}function v(){let T;switch(t.parent.kind){case 263:T=F.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:T=F.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:T=F.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:T=F.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:T=F.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:To(t.parent)?T=F.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?T=F.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T=F.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:T=F.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:T=F.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:T=F.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return H.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:T,errorNode:t,typeName:t.name}}function b(){let T;return Kc(t.parent.parent)?T=fm(t.parent)&&t.parent.token===119?F.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?F.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:F.extends_clause_of_exported_class_has_or_is_using_private_name_0:T=F.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:t,typeName:qa(t.parent.parent)}}function B(){return{diagnosticMessage:F.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function k(T){return{diagnosticMessage:T.errorModuleName?F.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:F.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:K4(t)?H.checkDefined(t.typeExpression):t.type,typeName:K4(t)?qa(t):t.name}}}var GMt=o({"src/compiler/transformers/declarations/diagnostics.ts"(){Ao()}});function y7e(t,u,s){const d=t.getCompilerOptions();return fH(u,t,q,d,s?[s]:ei(t.getSourceFiles(),w0e),[o1e],!1).diagnostics}function Wet(t,u){return u.text.substring(t.pos,t.end).includes("@internal")}function a1e(t,u){const s=Ua(t);if(s&&s.kind===169){const f=s.parent.parameters.indexOf(s),p=f>0?s.parent.parameters[f-1]:void 0,E=u.text,v=p?an(mv(E,ms(E,p.end+1,!1,!0)),K_(E,t.pos)):mv(E,ms(E,t.pos,!1,!0));return v&&v.length&&Wet(Cr(v),u)}const d=s&&b0e(s,u);return!!L(d,f=>Wet(f,u))}function o1e(t){const u=()=>H.fail("Diagnostic emitted without context");let s=u,d=!0,f=!1,p=!1,E=!1,v=!1,b,B,k,T,M,z;const{factory:j}=t,J=t.getEmitHost(),K={trackSymbol:Ae,reportInaccessibleThisError:Ze,reportInaccessibleUniqueSymbolError:Ge,reportCyclicStructureError:ft,reportPrivateInBaseOfClassExpression:De,reportLikelyUnsafeImportRequiredError:je,reportTruncationError:Ke,moduleResolverHost:J,trackReferencedAmbientModule:fe,trackExternalModuleSymbolOfImportTypeNode:We,reportNonlocalAugmentation:Gt,reportNonSerializableProperty:Yt};let Y,oe,se,ge,ae,Ce;const ne=t.getEmitResolver(),ve=t.getCompilerOptions(),{noResolve:Se,stripInternal:Ne}=ve;return st;function pe(me){if(me){B=B||new Set;for(const ni of me)B.add(ni)}}function fe(me,ni){const _i=ne.getTypeReferenceDirectivesForSymbol(ni,67108863);if(S(_i))return pe(_i);const mt=In(me);ge.set(P1(mt),mt)}function xe(me){const ni=U8(me),_i=ni&&ne.tryFindAmbientModule(ni);if(_i!=null&&_i.declarations)for(const mt of _i.declarations)L1(mt)&&In(mt)!==se&&fe(mt,_i)}function Be(me){if(me.accessibility===0){if(me&&me.aliasesToMakeVisible)if(!k)k=me.aliasesToMakeVisible;else for(const ni of me.aliasesToMakeVisible)va(k,ni)}else{const ni=s(me);if(ni)return ni.typeName?t.addDiagnostic(Bu(me.errorNode||ni.errorNode,ni.diagnosticMessage,Vc(ni.typeName),me.errorSymbolName,me.errorModuleName)):t.addDiagnostic(Bu(me.errorNode||ni.errorNode,ni.diagnosticMessage,me.errorSymbolName,me.errorModuleName)),!0}return!1}function We(me){f||(z||(z=[])).push(me)}function Ae(me,ni,_i){if(me.flags&262144)return!1;const mt=Be(ne.isSymbolAccessible(me,ni,_i,!0));return pe(ne.getTypeReferenceDirectivesForSymbol(me,_i)),mt}function De(me){(Y||oe)&&t.addDiagnostic(Bu(Y||oe,F.Property_0_of_exported_class_expression_may_not_be_private_or_protected,me))}function He(){return Y?C0(Y):oe&&qa(oe)?C0(qa(oe)):oe&&ec(oe)?oe.isExportEquals?"export=":"default":"(Missing)"}function Ge(){(Y||oe)&&t.addDiagnostic(Bu(Y||oe,F.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,He(),"unique symbol"))}function ft(){(Y||oe)&&t.addDiagnostic(Bu(Y||oe,F.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,He()))}function Ze(){(Y||oe)&&t.addDiagnostic(Bu(Y||oe,F.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,He(),"this"))}function je(me){(Y||oe)&&t.addDiagnostic(Bu(Y||oe,F.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,He(),me))}function Ke(){(Y||oe)&&t.addDiagnostic(Bu(Y||oe,F.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Gt(me,ni,_i){var mt;const jt=(mt=ni.declarations)==null?void 0:mt.find(Ji=>In(Ji)===me),pi=ei(_i.declarations,Ji=>In(Ji)!==me);if(jt&&pi)for(const Ji of pi)t.addDiagnostic(ps(Bu(Ji,F.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Bu(jt,F.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Yt(me){(Y||oe)&&t.addDiagnostic(Bu(Y||oe,F.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,me))}function Ie(me,ni){const _i=s;s=jt=>jt.errorNode&&cQ(jt.errorNode)?d5(jt.errorNode)(jt):{diagnosticMessage:jt.errorModuleName?F.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:F.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:jt.errorNode||me};const mt=ne.getDeclarationStatementsForSourceFile(me,Bk,K,ni);return s=_i,mt}function st(me){if(me.kind===312&&me.isDeclarationFile)return me;if(me.kind===313){f=!0,ge=new Map,ae=new Map;let te=!1;const we=j.createBundle(Kt(me.sourceFiles,X=>{if(X.isDeclarationFile)return;if(te=te||X.hasNoDefaultLib,se=X,b=X,k=void 0,M=!1,T=new Map,s=u,E=!1,v=!1,St(X,ge),It(X,ae),lm(X)||H4(X)){p=!1,d=!1;const Ct=ph(X)?j.createNodeArray(Ie(X,!0)):Fn(X.statements,oa,na);return j.updateSourceFile(X,[j.createModuleDeclaration([j.createModifier(138)],j.createStringLiteral(wq(t.getEmitHost(),X)),j.createModuleBlock(Pt(j.createNodeArray(Dn(Ct)),X.statements)))],!0,[],[],!1,[])}d=!0;const it=ph(X)?j.createNodeArray(Ie(X)):Fn(X.statements,oa,na);return j.updateSourceFile(X,Dn(it),!0,[],[],!1,[])}),Ui(me.prepends,X=>{if(X.kind===315){const it=ice(X,"dts",Ne);return te=te||!!it.hasNoDefaultLib,St(it,ge),pe(Kt(it.typeReferenceDirectives,Ct=>[Ct.fileName,Ct.resolutionMode])),It(it,ae),it}return X}));we.syntheticFileReferences=[],we.syntheticTypeReferences=Yi(),we.syntheticLibReferences=Ji(),we.hasNoDefaultLib=te;const de=dr(U1(vM(me,J,!0).declarationFilePath)),Oe=le(we.syntheticFileReferences,de);return ge.forEach(Oe),we}d=!0,E=!1,v=!1,b=me,se=me,s=u,f=!1,p=!1,M=!1,k=void 0,T=new Map,B=void 0,ge=St(se,new Map),ae=It(se,new Map);const ni=[],_i=dr(U1(vM(me,J,!0).declarationFilePath)),mt=le(ni,_i);let jt;if(ph(se))jt=j.createNodeArray(Ie(me)),ge.forEach(mt),Ce=ei(jt,Xy);else{const te=Fn(me.statements,oa,na);jt=Pt(j.createNodeArray(Dn(te)),me.statements),ge.forEach(mt),Ce=ei(jt,Xy),Bc(me)&&(!p||E&&!v)&&(jt=Pt(j.createNodeArray([...jt,TV(j)]),jt))}const pi=j.updateSourceFile(me,jt,!0,ni,Yi(),me.hasNoDefaultLib,Ji());return pi.exportedModulesFromDeclarationEmit=z,pi;function Ji(){return Ea(ae.keys(),te=>({fileName:te,pos:-1,end:-1}))}function Yi(){return B?Ui(Ea(B.keys()),on):[]}function on([te,we]){if(Ce){for(const de of Ce)if(g1(de)&&u_(de.moduleReference)){const Oe=de.moduleReference.expression;if(t0(Oe)&&Oe.text===te)return}else if(Ad(de)&&ns(de.moduleSpecifier)&&de.moduleSpecifier.text===te)return}return{fileName:te,pos:-1,end:-1,...we?{resolutionMode:we}:void 0}}function le(te,we){return de=>{let Oe;if(de.isDeclarationFile)Oe=de.fileName;else{if(f&&Ft(me.sourceFiles,de))return;const X=vM(de,J,!0);Oe=X.declarationFilePath||X.jsFilePath||de.fileName}if(Oe){const X=GY(ve,se,H0(we,J.getCurrentDirectory(),J.getCanonicalFileName),H0(Oe,J.getCurrentDirectory(),J.getCanonicalFileName),J);if(!am(X)){pe([[X,void 0]]);return}let it=e7(we,Oe,J.getCurrentDirectory(),J.getCanonicalFileName,!1);if(Na(it,"./")&&XA(it)&&(it=it.substring(2)),Na(it,"node_modules/")||$7(it))return;te.push({pos:-1,end:-1,fileName:it})}}}}function St(me,ni){return Se||!Ck(me)&&ph(me)||L(me.referencedFiles,_i=>{const mt=J.getSourceFileFromReference(me,_i);mt&&ni.set(P1(mt),mt)}),ni}function It(me,ni){return L(me.libReferenceDirectives,_i=>{J.getLibFileFromReference(_i)&&ni.set(Jg(_i.fileName),!0)}),ni}function ti(me){if(me.kind===80)return me;return me.kind===207?j.updateArrayBindingPattern(me,Fn(me.elements,ni,zU)):j.updateObjectBindingPattern(me,Fn(me.elements,ni,Rs));function ni(_i){return _i.kind===232?_i:(_i.propertyName&&Ls(_i.propertyName)&&Xl(_i.propertyName.expression)&&Fr(_i.propertyName.expression,b),_i.propertyName&&at(_i.propertyName)&&at(_i.name)&&!_i.symbol.isReferenced&&!Fq(_i.propertyName)?j.updateBindingElement(_i,_i.dotDotDotToken,void 0,_i.propertyName,Ut(_i)?_i.initializer:void 0):j.updateBindingElement(_i,_i.dotDotDotToken,_i.propertyName,ti(_i.name),Ut(_i)?_i.initializer:void 0))}}function ht(me,ni,_i){let mt;M||(mt=s,s=d5(me));const jt=j.updateParameterDeclaration(me,$Mt(j,me,ni),me.dotDotDotToken,ti(me.name),ne.isOptionalParameter(me)?me.questionToken||j.createToken(58):void 0,ji(me,_i||me.type,!0),Li(me));return M||(s=mt),jt}function Ut(me){return UMt(me)&&ne.isLiteralConstDeclaration(Ua(me))}function Li(me){if(Ut(me))return ne.createLiteralConstValue(Ua(me),K)}function ji(me,ni,_i){if(!_i&&If(me,2)||Ut(me))return;const mt=me.kind===169&&(ne.isRequiredInitializedParameter(me)||ne.isOptionalUninitializedParameterProperty(me));if(ni&&!mt)return yt(ni,bn,Qr);if(!Ua(me))return ni?yt(ni,bn,Qr):j.createKeywordTypeNode(133);if(me.kind===178)return j.createKeywordTypeNode(133);Y=me.name;let jt;if(M||(jt=s,s=d5(me)),me.kind===260||me.kind===208)return pi(ne.createTypeOfDeclaration(me,b,Bk,K));if(me.kind===169||me.kind===172||me.kind===171)return Pm(me)||!me.initializer?pi(ne.createTypeOfDeclaration(me,b,Bk,K,mt)):pi(ne.createTypeOfDeclaration(me,b,Bk,K,mt)||ne.createTypeOfExpression(me.initializer,b,Bk,K));return pi(ne.createReturnTypeOfSignatureDeclaration(me,b,Bk,K));function pi(Ji){return Y=void 0,M||(s=jt),Ji||j.createKeywordTypeNode(133)}}function xn(me){switch(me=Ua(me),me.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!ne.isDeclarationVisible(me);case 260:return!rn(me);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Un(me){var ni;if(me.body)return!0;const _i=(ni=me.symbol.declarations)==null?void 0:ni.filter(mt=>Xc(mt)&&!mt.body);return!_i||_i.indexOf(me)===_i.length-1}function rn(me){return kd(me)?!1:Fo(me.name)?qe(me.name.elements,rn):ne.isDeclarationVisible(me)}function Ni(me,ni,_i){if(If(me,2))return j.createNodeArray();const mt=Kt(ni,jt=>ht(jt,_i));return mt?j.createNodeArray(mt,ni.hasTrailingComma):j.createNodeArray()}function Fi(me,ni){let _i;if(!ni){const mt=S2(me);mt&&(_i=[ht(mt)])}if(Of(me)){let mt;if(!ni){const jt=dP(me);if(jt){const pi=gt(me,ne.getAllAccessorDeclarations(me));mt=ht(jt,void 0,pi)}}mt||(mt=j.createParameterDeclaration(void 0,void 0,"value")),_i=Ei(_i,mt)}return j.createNodeArray(_i||_t)}function Qu(me,ni){return If(me,2)?void 0:Fn(ni,bn,Al)}function aa(me){return ca(me)||Ip(me)||Ec(me)||Kc(me)||Dh(me)||xo(me)||pk(me)||GP(me)}function Fr(me,ni){const _i=ne.isEntityNameVisible(me,ni);Be(_i),pe(ne.getTypeReferenceDirectivesForEntityName(me))}function Ba(me,ni){return sm(me)&&sm(ni)&&(me.jsDoc=ni.jsDoc),Sc(me,iE(ni))}function bt(me,ni){if(ni){if(p=p||me.kind!==267&&me.kind!==205,t0(ni))if(f){const _i=pye(t.getEmitHost(),ne,me);if(_i)return j.createStringLiteral(_i)}else{const _i=ne.getSymbolOfExternalModuleSpecifier(ni);_i&&(z||(z=[])).push(_i)}return ni}}function jn(me){if(ne.isDeclarationVisible(me))if(me.moduleReference.kind===283){const ni=QN(me);return j.updateImportEqualsDeclaration(me,me.modifiers,me.isTypeOnly,me.name,j.updateExternalModuleReference(me.moduleReference,bt(me,ni)))}else{const ni=s;return s=d5(me),Fr(me.moduleReference,b),s=ni,me}}function Nn(me){if(!me.importClause)return j.updateImportDeclaration(me,me.modifiers,me.importClause,bt(me,me.moduleSpecifier),Ai(me.attributes));const ni=me.importClause&&me.importClause.name&&ne.isDeclarationVisible(me.importClause)?me.importClause.name:void 0;if(!me.importClause.namedBindings)return ni&&j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,void 0),bt(me,me.moduleSpecifier),Ai(me.attributes));if(me.importClause.namedBindings.kind===274){const mt=ne.isDeclarationVisible(me.importClause.namedBindings)?me.importClause.namedBindings:void 0;return ni||mt?j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,mt),bt(me,me.moduleSpecifier),Ai(me.attributes)):void 0}const _i=Ui(me.importClause.namedBindings.elements,mt=>ne.isDeclarationVisible(mt)?mt:void 0);if(_i&&_i.length||ni)return j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,_i&&_i.length?j.updateNamedImports(me.importClause.namedBindings,_i):void 0),bt(me,me.moduleSpecifier),Ai(me.attributes));if(ne.isImportRequiredByAugmentation(me))return j.updateImportDeclaration(me,me.modifiers,void 0,bt(me,me.moduleSpecifier),Ai(me.attributes))}function Ai(me){const ni=$B(me);return me&&ni!==void 0?me:void 0}function Dn(me){for(;S(k);){const _i=k.shift();if(!QU(_i))return H.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${H.formatSyntaxKind(_i.kind)}`);const mt=d;d=_i.parent&&ca(_i.parent)&&!(Bc(_i.parent)&&f);const jt=wa(_i);d=mt,T.set(P1(_i),jt)}return Fn(me,ni,na);function ni(_i){if(QU(_i)){const mt=P1(_i);if(T.has(mt)){const jt=T.get(mt);return T.delete(mt),jt&&((Ha(jt)?qe(jt,IU):IU(jt))&&(E=!0),ca(_i.parent)&&(Ha(jt)?qe(jt,qO):qO(jt))&&(p=!0)),jt}}return _i}}function bn(me){if(Mt(me)||Y1(me)&&(xn(me)||zx(me)&&!ne.isLateBound(Ua(me)))||xo(me)&&ne.isImplementationOfOverload(me)||oFe(me))return;let ni;aa(me)&&(ni=b,b=me);const _i=s,mt=cQ(me),jt=M;let pi=(me.kind===187||me.kind===200)&&me.parent.kind!==265;if((cc(me)||i3(me))&&If(me,2))return me.symbol&&me.symbol.declarations&&me.symbol.declarations[0]!==me?void 0:Ji(j.createPropertyDeclaration(Pe(me),me.name,void 0,void 0,void 0));if(mt&&!M&&(s=d5(me)),vB(me)&&Fr(me.exprName,b),pi&&(M=!0),ZMt(me))switch(me.kind){case 233:{(om(me.expression)||Xl(me.expression))&&Fr(me.expression,b);const Yi=un(me,bn,t);return Ji(j.updateExpressionWithTypeArguments(Yi,Yi.expression,Yi.typeArguments))}case 183:{Fr(me.typeName,b);const Yi=un(me,bn,t);return Ji(j.updateTypeReferenceNode(Yi,Yi.typeName,Yi.typeArguments))}case 180:return Ji(j.updateConstructSignature(me,Qu(me,me.typeParameters),Ni(me,me.parameters),ji(me,me.type)));case 176:{const Yi=j.createConstructorDeclaration(Pe(me),Ni(me,me.parameters,0),void 0);return Ji(Yi)}case 174:{if(Xr(me.name))return Ji(void 0);const Yi=j.createMethodDeclaration(Pe(me),void 0,me.name,me.questionToken,Qu(me,me.typeParameters),Ni(me,me.parameters),ji(me,me.type),void 0);return Ji(Yi)}case 177:{if(Xr(me.name))return Ji(void 0);const Yi=gt(me,ne.getAllAccessorDeclarations(me));return Ji(j.updateGetAccessorDeclaration(me,Pe(me),me.name,Fi(me,If(me,2)),ji(me,Yi),void 0))}case 178:return Xr(me.name)?Ji(void 0):Ji(j.updateSetAccessorDeclaration(me,Pe(me),me.name,Fi(me,If(me,2)),void 0));case 172:return Xr(me.name)?Ji(void 0):Ji(j.updatePropertyDeclaration(me,Pe(me),me.name,me.questionToken,ji(me,me.type),Li(me)));case 171:return Xr(me.name)?Ji(void 0):Ji(j.updatePropertySignature(me,Pe(me),me.name,me.questionToken,ji(me,me.type)));case 173:return Xr(me.name)?Ji(void 0):Ji(j.updateMethodSignature(me,Pe(me),me.name,me.questionToken,Qu(me,me.typeParameters),Ni(me,me.parameters),ji(me,me.type)));case 179:return Ji(j.updateCallSignature(me,Qu(me,me.typeParameters),Ni(me,me.parameters),ji(me,me.type)));case 181:return Ji(j.updateIndexSignature(me,Pe(me),Ni(me,me.parameters),yt(me.type,bn,Qr)||j.createKeywordTypeNode(133)));case 260:return Fo(me.name)?vo(me.name):(pi=!0,M=!0,Ji(j.updateVariableDeclaration(me,me.name,void 0,ji(me,me.type),Li(me))));case 168:return iu(me)&&(me.default||me.constraint)?Ji(j.updateTypeParameterDeclaration(me,me.modifiers,me.name,void 0,void 0)):Ji(un(me,bn,t));case 194:{const Yi=yt(me.checkType,bn,Qr),on=yt(me.extendsType,bn,Qr),le=b;b=me.trueType;const te=yt(me.trueType,bn,Qr);b=le;const we=yt(me.falseType,bn,Qr);return H.assert(Yi),H.assert(on),H.assert(te),H.assert(we),Ji(j.updateConditionalTypeNode(me,Yi,on,te,we))}case 184:return Ji(j.updateFunctionTypeNode(me,Fn(me.typeParameters,bn,Al),Ni(me,me.parameters),H.checkDefined(yt(me.type,bn,Qr))));case 185:return Ji(j.updateConstructorTypeNode(me,Pe(me),Fn(me.typeParameters,bn,Al),Ni(me,me.parameters),H.checkDefined(yt(me.type,bn,Qr))));case 205:return Mx(me)?(xe(me),Ji(j.updateImportTypeNode(me,j.updateLiteralTypeNode(me.argument,bt(me,me.argument.literal)),me.attributes,me.qualifier,Fn(me.typeArguments,bn,Qr),me.isTypeOf))):Ji(me);default:H.assertNever(me,`Attempted to process unhandled node kind: ${H.formatSyntaxKind(me.kind)}`)}return CB(me)&&o0(se,me.pos).line===o0(se,me.end).line&&Qn(me,1),Ji(un(me,bn,t));function Ji(Yi){return Yi&&mt&&zx(me)&&Et(me),aa(me)&&(b=ni),mt&&!M&&(s=_i),pi&&(M=jt),Yi===me?Yi:Yi&&lu(Ba(Yi,me),me)}}function iu(me){return me.parent.kind===174&&If(me.parent,2)}function oa(me){if(!qMt(me)||Mt(me))return;switch(me.kind){case 278:return ca(me.parent)&&(p=!0),v=!0,xe(me),j.updateExportDeclaration(me,me.modifiers,me.isTypeOnly,me.exportClause,bt(me,me.moduleSpecifier),Ai(me.attributes));case 277:{if(ca(me.parent)&&(p=!0),v=!0,me.expression.kind===80)return me;{const _i=j.createUniqueName("_default",16);s=()=>({diagnosticMessage:F.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:me}),oe=me;const mt=j.createVariableDeclaration(_i,void 0,ne.createTypeOfExpression(me.expression,me,Bk,K),void 0);oe=void 0;const jt=j.createVariableStatement(d?[j.createModifier(138)]:[],j.createVariableDeclarationList([mt],2));return Ba(jt,me),pV(me),[jt,j.updateExportAssignment(me,me.modifiers,_i)]}}}const ni=wa(me);return T.set(P1(me),ni),me}function xa(me){if(g1(me)||If(me,2048)||!Op(me))return me;const ni=j.createModifiersFromModifierFlags(gh(me)&131039);return j.replaceModifiers(me,ni)}function ra(me,ni,_i,mt){const jt=j.updateModuleDeclaration(me,ni,_i,mt);if(L1(jt)||jt.flags&32)return jt;const pi=j.createModuleDeclaration(jt.modifiers,jt.name,jt.body,jt.flags|32);return lu(pi,jt),Pt(pi,jt),pi}function wa(me){if(k)for(;mO(k,me););if(Mt(me))return;switch(me.kind){case 271:{const Ji=jn(me);return Ji&&xe(me),Ji}case 272:{const Ji=Nn(me);return Ji&&xe(me),Ji}}if(Y1(me)&&xn(me)||xo(me)&&ne.isImplementationOfOverload(me))return;let ni;aa(me)&&(ni=b,b=me);const _i=cQ(me),mt=s;_i&&(s=d5(me));const jt=d;switch(me.kind){case 265:{d=!1;const Ji=pi(j.updateTypeAliasDeclaration(me,Pe(me),me.name,Fn(me.typeParameters,bn,Al),H.checkDefined(yt(me.type,bn,Qr))));return d=jt,Ji}case 264:return pi(j.updateInterfaceDeclaration(me,Pe(me),me.name,Qu(me,me.typeParameters),ii(me.heritageClauses),Fn(me.members,bn,Uy)));case 262:{const Ji=pi(j.updateFunctionDeclaration(me,Pe(me),void 0,me.name,Qu(me,me.typeParameters),Ni(me,me.parameters),ji(me,me.type),void 0));if(Ji&&ne.isExpandoFunctionDeclaration(me)&&Un(me)){const Yi=ne.getPropertiesOfContainerFunction(me),on=r_.createModuleDeclaration(void 0,Ji.name||j.createIdentifier("_default"),j.createModuleBlock([]),32);bs(on,b),on.locals=jo(Yi),on.symbol=Yi[0].parent;const le=[];let te=Ui(Yi,Ct=>{if(!fZ(Ct.valueDeclaration))return;const ct=Yr(Ct.escapedName);if(!Tm(ct,99))return;s=d5(Ct.valueDeclaration);const Qt=ne.createTypeOfDeclaration(Ct.valueDeclaration,on,Bk,K);s=mt;const Ti=h7(ct),$i=Ti?j.getGeneratedNameForNode(Ct.valueDeclaration):j.createIdentifier(ct);Ti&&le.push([$i,ct]);const Bn=j.createVariableDeclaration($i,void 0,Qt,void 0);return j.createVariableStatement(Ti?void 0:[j.createToken(95)],j.createVariableDeclarationList([Bn]))});le.length?te.push(j.createExportDeclaration(void 0,!1,j.createNamedExports(Kt(le,([Ct,ct])=>j.createExportSpecifier(!1,Ct,ct))))):te=Ui(te,Ct=>j.replaceModifiers(Ct,0));const we=j.createModuleDeclaration(Pe(me),me.name,j.createModuleBlock(te),32);if(!If(Ji,2048))return[Ji,we];const de=j.createModifiersFromModifierFlags(gh(Ji)&-2081|128),Oe=j.updateFunctionDeclaration(Ji,de,void 0,Ji.name,Ji.typeParameters,Ji.parameters,Ji.type,void 0),X=j.updateModuleDeclaration(we,de,we.name,we.body),it=j.createExportAssignment(void 0,!1,we.name);return ca(me.parent)&&(p=!0),v=!0,[Oe,X,it]}else return Ji}case 267:{d=!1;const Ji=me.body;if(Ji&&Ji.kind===268){const Yi=E,on=v;v=!1,E=!1;const le=Fn(Ji.statements,oa,na);let te=Dn(le);me.flags&33554432&&(E=!1),!Zg(me)&&!Xt(te)&&!v&&(E?te=j.createNodeArray([...te,TV(j)]):te=Fn(te,xa,na));const we=j.updateModuleBlock(Ji,te);d=jt,E=Yi,v=on;const de=Pe(me);return pi(ra(me,de,_2(me)?bt(me,me.name):me.name,we))}else{d=jt;const Yi=Pe(me);d=!1,yt(Ji,oa);const on=P1(Ji),le=T.get(on);return T.delete(on),pi(ra(me,Yi,me.name,le))}}case 263:{Y=me.name,oe=me;const Ji=j.createNodeArray(Pe(me)),Yi=Qu(me,me.typeParameters),on=Q_(me);let le;if(on){const it=s;le=kr(Ku(on.parameters,Ct=>{if(!Xu(Ct,31)||Mt(Ct))return;if(s=d5(Ct),Ct.name.kind===80)return Ba(j.createPropertyDeclaration(Pe(Ct),Ct.name,Ct.questionToken,ji(Ct,Ct.type),Li(Ct)),Ct);return ct(Ct.name);function ct(Qt){let Ti;for(const $i of Qt.elements)kd($i)||(Fo($i.name)&&(Ti=an(Ti,ct($i.name))),Ti=Ti||[],Ti.push(j.createPropertyDeclaration(Pe(Ct),$i.name,void 0,ji($i,void 0),void 0)));return Ti}})),s=it}const we=qe(me.members,it=>!!it.name&&Xr(it.name))?[j.createPropertyDeclaration(void 0,j.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,de=an(an(we,le),Fn(me.members,bn,qd)),Oe=j.createNodeArray(de),X=Yg(me);if(X&&!Xl(X.expression)&&X.expression.kind!==106){const it=me.name?Yr(me.name.escapedText):"default",Ct=j.createUniqueName(`${it}_base`,16);s=()=>({diagnosticMessage:F.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:X,typeName:me.name});const ct=j.createVariableDeclaration(Ct,void 0,ne.createTypeOfExpression(X.expression,me,Bk,K),void 0),Qt=j.createVariableStatement(d?[j.createModifier(138)]:[],j.createVariableDeclarationList([ct],2)),Ti=j.createNodeArray(Kt(me.heritageClauses,$i=>{if($i.token===96){const Bn=s;s=d5($i.types[0]);const hu=j.updateHeritageClause($i,Kt($i.types,Ru=>j.updateExpressionWithTypeArguments(Ru,Ct,Fn(Ru.typeArguments,bn,Qr))));return s=Bn,hu}return j.updateHeritageClause($i,Fn(j.createNodeArray(ei($i.types,Bn=>Xl(Bn.expression)||Bn.expression.kind===106)),bn,l5))}));return[Qt,pi(j.updateClassDeclaration(me,Ji,me.name,Yi,Ti,Oe))]}else{const it=ii(me.heritageClauses);return pi(j.updateClassDeclaration(me,Ji,me.name,Yi,it,Oe))}}case 243:return pi(Zo(me));case 266:return pi(j.updateEnumDeclaration(me,j.createNodeArray(Pe(me)),me.name,j.createNodeArray(Ui(me.members,Ji=>{if(Mt(Ji))return;const Yi=ne.getConstantValue(Ji);return Ba(j.updateEnumMember(Ji,Ji.name,Yi!==void 0?typeof Yi=="string"?j.createStringLiteral(Yi):j.createNumericLiteral(Yi):void 0),Ji)}))))}return H.assertNever(me,`Unhandled top-level node in declaration emit: ${H.formatSyntaxKind(me.kind)}`);function pi(Ji){return aa(me)&&(b=ni),_i&&(s=mt),me.kind===267&&(d=jt),Ji===me?Ji:(oe=void 0,Y=void 0,Ji&&lu(Ba(Ji,me),me))}}function Zo(me){if(!L(me.declarationList.declarations,rn))return;const ni=Fn(me.declarationList.declarations,bn,ua);if(!S(ni))return;const _i=j.createNodeArray(Pe(me));let mt;return sj(me.declarationList)||oj(me.declarationList)?(mt=j.createVariableDeclarationList(ni,2),lu(mt,me.declarationList),Pt(mt,me.declarationList),Sc(mt,me.declarationList)):mt=j.updateVariableDeclarationList(me.declarationList,ni),j.updateVariableStatement(me,_i,mt)}function vo(me){return Va(Ui(me.elements,ni=>Qe(ni)))}function Qe(me){if(me.kind!==232&&me.name)return rn(me)?Fo(me.name)?vo(me.name):j.createVariableDeclaration(me.name,void 0,ji(me,void 0),void 0):void 0}function Et(me){let ni;M||(ni=s,s=b7e(me)),Y=me.name,H.assert(ne.isLateBound(Ua(me)));const mt=me.name.expression;Fr(mt,b),M||(s=ni),Y=void 0}function Mt(me){return!!Ne&&!!me&&a1e(me,se)}function qt(me){return ec(me)||Wc(me)}function Xt(me){return qe(me,qt)}function Pe(me){const ni=gh(me),_i=et(me);return ni===_i?lH(me.modifiers,mt=>ar(mt,Yo),Yo):j.createModifiersFromModifierFlags(_i)}function et(me){let ni=130030,_i=d&&!JMt(me)?128:0;const mt=me.parent.kind===312;return(!mt||f&&mt&&Bc(me.parent))&&(ni^=128,_i=0),Get(me,ni,_i)}function gt(me,ni){let _i=k7e(me);return!_i&&me!==ni.firstAccessor&&(_i=k7e(ni.firstAccessor),s=d5(ni.firstAccessor)),!_i&&ni.secondAccessor&&me!==ni.secondAccessor&&(_i=k7e(ni.secondAccessor),s=d5(ni.secondAccessor)),_i}function ii(me){return j.createNodeArray(ei(Kt(me,ni=>j.updateHeritageClause(ni,Fn(j.createNodeArray(ei(ni.types,_i=>Xl(_i.expression)||ni.token===96&&_i.expression.kind===106)),bn,l5))),ni=>ni.types&&!!ni.types.length))}}function JMt(t){return t.kind===264}function $Mt(t,u,s,d){return t.createModifiersFromModifierFlags(Get(u,s,d))}function Get(t,u=131070,s=0){let d=gh(t)&u|s;return d&2048&&!(d&32)&&(d^=32),d&2048&&d&128&&(d^=128),d}function k7e(t){if(t)return t.kind===177?t.type:t.parameters.length>0?t.parameters[0].type:void 0}function UMt(t){switch(t.kind){case 172:case 171:return!If(t,2);case 169:case 260:return!0}return!1}function qMt(t){switch(t.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function ZMt(t){switch(t.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var Bk,YMt=o({"src/compiler/transformers/declarations.ts"(){Ao(),TAe(),Bk=531469}});function QMt(t){switch(t){case 99:case 7:case 6:case 5:return r1e;case 4:return v7e;case 100:case 199:return C7e;default:return u1e}}function s1e(t,u,s){return{scriptTransformers:XMt(t,u,s),declarationTransformers:ezt(u)}}function XMt(t,u,s){if(s)return _t;const d=Is(t),f=f1(t),p=Qj(t),E=[];return kn(E,u&&Kt(u.before,$et)),E.push(i7e),t.experimentalDecorators&&E.push(r7e),Qq(t)&&E.push(g7e),d<99&&E.push(h7e),!t.experimentalDecorators&&(d<99||!p)&&E.push(a7e),E.push(n7e),d<8&&E.push(d7e),d<7&&E.push(c7e),d<6&&E.push(l7e),d<5&&E.push(s7e),d<4&&E.push(o7e),d<3&&E.push(E7e),d<2&&(E.push(_7e),E.push(x7e)),E.push(QMt(f)),d<1&&E.push(D7e),kn(E,u&&Kt(u.after,$et)),E}function ezt(t){const u=[];return u.push(o1e),kn(u,t&&Kt(t.afterDeclarations,izt)),u}function tzt(t){return u=>yce(u)?t.transformBundle(u):t.transformSourceFile(u)}function Jet(t,u){return s=>{const d=t(s);return typeof d=="function"?u(s,d):tzt(d)}}function $et(t){return Jet(t,jp)}function izt(t){return Jet(t,(u,s)=>s)}function DM(t,u){return u}function hH(t,u,s){s(t,u)}function fH(t,u,s,d,f,p,E){var v,b;const B=new Array(363);let k,T,M,z=0,j=[],J=[],K=[],Y=[],oe=0,se=!1,ge=[],ae=0,Ce,ne,ve=DM,Se=hH,Ne=0;const pe=[],fe={factory:s,getCompilerOptions:()=>d,getEmitResolver:()=>t,getEmitHost:()=>u,getEmitHelperFactory:Nh(()=>Gke(fe)),startLexicalEnvironment:Ie,suspendLexicalEnvironment:st,resumeLexicalEnvironment:St,endLexicalEnvironment:It,setLexicalEnvironmentFlags:ti,getLexicalEnvironmentFlags:ht,hoistVariableDeclaration:Ke,hoistFunctionDeclaration:Gt,addInitializationStatement:Yt,startBlockScope:Ut,endBlockScope:Li,addBlockScopedVariable:ji,requestEmitHelper:xn,readEmitHelpers:Un,enableSubstitution:De,enableEmitNotification:ft,isSubstitutionEnabled:He,isEmitNotificationEnabled:Ze,get onSubstituteNode(){return ve},set onSubstituteNode(Ni){H.assert(Ne<1,"Cannot modify transformation hooks after initialization has completed."),H.assert(Ni!==void 0,"Value must not be 'undefined'"),ve=Ni},get onEmitNode(){return Se},set onEmitNode(Ni){H.assert(Ne<1,"Cannot modify transformation hooks after initialization has completed."),H.assert(Ni!==void 0,"Value must not be 'undefined'"),Se=Ni},addDiagnostic(Ni){pe.push(Ni)}};for(const Ni of f)ace(In(Ua(Ni)));il("beforeTransform");const xe=p.map(Ni=>Ni(fe)),Be=Ni=>{for(const Fi of xe)Ni=Fi(Ni);return Ni};Ne=1;const We=[];for(const Ni of f)(v=$n)==null||v.push($n.Phase.Emit,"transformNodes",Ni.kind===312?{path:Ni.path}:{kind:Ni.kind,pos:Ni.pos,end:Ni.end}),We.push((E?Be:Ae)(Ni)),(b=$n)==null||b.pop();return Ne=2,il("afterTransform"),wm("transformTime","beforeTransform","afterTransform"),{transformed:We,substituteNode:Ge,emitNodeWithNotification:je,isEmitNotificationEnabled:Ze,dispose:rn,diagnostics:pe};function Ae(Ni){return Ni&&(!ca(Ni)||!Ni.isDeclarationFile)?Be(Ni):Ni}function De(Ni){H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),B[Ni]|=1}function He(Ni){return(B[Ni.kind]&1)!==0&&(vs(Ni)&8)===0}function Ge(Ni,Fi){return H.assert(Ne<3,"Cannot substitute a node after the result is disposed."),Fi&&He(Fi)&&ve(Ni,Fi)||Fi}function ft(Ni){H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),B[Ni]|=2}function Ze(Ni){return(B[Ni.kind]&2)!==0||(vs(Ni)&4)!==0}function je(Ni,Fi,Qu){H.assert(Ne<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Fi&&(Ze(Fi)?Se(Ni,Fi,Qu):Qu(Ni,Fi))}function Ke(Ni){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed.");const Fi=Qn(s.createVariableDeclaration(Ni),128);k?k.push(Fi):k=[Fi],z&1&&(z|=2)}function Gt(Ni){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),Qn(Ni,2097152),T?T.push(Ni):T=[Ni]}function Yt(Ni){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),Qn(Ni,2097152),M?M.push(Ni):M=[Ni]}function Ie(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is suspended."),j[oe]=k,J[oe]=T,K[oe]=M,Y[oe]=z,oe++,k=void 0,T=void 0,M=void 0,z=0}function st(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is already suspended."),se=!0}function St(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(se,"Lexical environment is not suspended."),se=!1}function It(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is suspended.");let Ni;if(k||T||M){if(T&&(Ni=[...T]),k){const Fi=s.createVariableStatement(void 0,s.createVariableDeclarationList(k));Qn(Fi,2097152),Ni?Ni.push(Fi):Ni=[Fi]}M&&(Ni?Ni=[...Ni,...M]:Ni=[...M])}return oe--,k=j[oe],T=J[oe],M=K[oe],z=Y[oe],oe===0&&(j=[],J=[],K=[],Y=[]),Ni}function ti(Ni,Fi){z=Fi?z|Ni:z&~Ni}function ht(){return z}function Ut(){H.assert(Ne>0,"Cannot start a block scope during initialization."),H.assert(Ne<2,"Cannot start a block scope after transformation has completed."),ge[ae]=Ce,ae++,Ce=void 0}function Li(){H.assert(Ne>0,"Cannot end a block scope during initialization."),H.assert(Ne<2,"Cannot end a block scope after transformation has completed.");const Ni=qe(Ce)?[s.createVariableStatement(void 0,s.createVariableDeclarationList(Ce.map(Fi=>s.createVariableDeclaration(Fi)),1))]:void 0;return ae--,Ce=ge[ae],ae===0&&(ge=[]),Ni}function ji(Ni){H.assert(ae>0,"Cannot add a block scoped variable outside of an iteration body."),(Ce||(Ce=[])).push(Ni)}function xn(Ni){if(H.assert(Ne>0,"Cannot modify the transformation context during initialization."),H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),H.assert(!Ni.scoped,"Cannot request a scoped emit helper."),Ni.dependencies)for(const Fi of Ni.dependencies)xn(Fi);ne=Ei(ne,Ni)}function Un(){H.assert(Ne>0,"Cannot modify the transformation context during initialization."),H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed.");const Ni=ne;return ne=void 0,Ni}function rn(){if(Ne<3){for(const Ni of f)ace(In(Ua(Ni)));k=void 0,j=void 0,T=void 0,J=void 0,ve=void 0,Se=void 0,ne=void 0,Ne=3}}}var l1e,Eg,nzt=o({"src/compiler/transformer.ts"(){Ao(),Hy(),l1e={scriptTransformers:_t,declarationTransformers:_t},Eg={factory:q,getCompilerOptions:()=>({}),getEmitResolver:lo,getEmitHost:lo,getEmitHelperFactory:lo,startLexicalEnvironment:Ms,resumeLexicalEnvironment:Ms,suspendLexicalEnvironment:Ms,endLexicalEnvironment:cv,setLexicalEnvironmentFlags:Ms,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Ms,hoistFunctionDeclaration:Ms,addInitializationStatement:Ms,startBlockScope:Ms,endBlockScope:cv,addBlockScopedVariable:Ms,requestEmitHelper:Ms,readEmitHelpers:lo,enableSubstitution:Ms,enableEmitNotification:Ms,isSubstitutionEnabled:lo,isEmitNotificationEnabled:lo,onSubstituteNode:DM,onEmitNode:hH,addDiagnostic:Ms}}});function F7e(t){return Pl(t,".tsbuildinfo")}function c1e(t,u,s,d=!1,f,p){const E=Ha(s)?s:tle(t,s,d),v=t.getCompilerOptions();if(b0(v)){const b=t.getPrependNodes();if(E.length||b.length){const B=q.createBundle(E,b),k=u(vM(B,t,d),B);if(k)return k}}else{if(!f)for(const b of E){const B=u(vM(b,t,d),b);if(B)return B}if(p){const b=h5(v);if(b)return u({buildInfoPath:b},void 0)}}}function h5(t){const u=t.configFilePath;if(!Yj(t))return;if(t.tsBuildInfoFile)return t.tsBuildInfoFile;const s=b0(t);let d;if(s)d=Eh(s);else{if(!u)return;const f=Eh(u);d=t.outDir?t.rootDir?yx(t.outDir,GE(t.rootDir,f,!0)):hr(t.outDir,Fc(f)):f}return d+".tsbuildinfo"}function xM(t,u){const s=b0(t),d=t.emitDeclarationOnly?void 0:s,f=d&&Uet(d,t),p=u||l4(t)?Eh(s)+".d.ts":void 0,E=p&&qq(t)?p+".map":void 0,v=h5(t);return{jsFilePath:d,sourceMapFilePath:f,declarationFilePath:p,declarationMapPath:E,buildInfoPath:v}}function vM(t,u,s){const d=u.getCompilerOptions();if(t.kind===313)return xM(d,s);{const f=gye(t.fileName,u,dQ(t.fileName,d)),p=H4(t),E=p&&fv(t.fileName,f,u.getCurrentDirectory(),!u.useCaseSensitiveFileNames())===0,v=d.emitDeclarationOnly||E?void 0:f,b=!v||H4(t)?void 0:Uet(v,d),B=s||l4(d)&&!p?Eye(t.fileName,u):void 0,k=B&&qq(d)?B+".map":void 0;return{jsFilePath:v,sourceMapFilePath:b,declarationFilePath:B,declarationMapPath:k,buildInfoPath:void 0}}}function Uet(t,u){return u.sourceMap&&!u.inlineSourceMap?t+".map":void 0}function dQ(t,u){return Pl(t,".json")?".json":u.jsx===1&&Oc(t,[".jsx",".tsx"])?".jsx":Oc(t,[".mts",".mjs"])?".mjs":Oc(t,[".cts",".cjs"])?".cjs":".js"}function qet(t,u,s,d,f){return d?yx(d,GE(f?f():yM(u,s),t,s)):t}function CM(t,u,s,d){return Sv(qet(t,u,s,u.options.declarationDir||u.options.outDir,d),Vj(t))}function Zet(t,u,s,d){if(u.options.emitDeclarationOnly)return;const f=Pl(t,".json"),p=Sv(qet(t,u,s,u.options.outDir,d),dQ(t,u.options));return!f||fv(t,p,H.checkDefined(u.options.configFilePath),s)!==0?p:void 0}function Yet(){let t;return{addOutput:u,getOutputs:s};function u(d){d&&(t||(t=[])).push(d)}function s(){return t||_t}}function Qet(t,u){const{jsFilePath:s,sourceMapFilePath:d,declarationFilePath:f,declarationMapPath:p,buildInfoPath:E}=xM(t.options,!1);u(s),u(d),u(f),u(p),u(E)}function Xet(t,u,s,d,f){if(Xd(u))return;const p=Zet(u,t,s,f);if(d(p),!Pl(u,".json")&&(p&&t.options.sourceMap&&d(`${p}.map`),l4(t.options))){const E=CM(u,t,s,f);d(E),t.options.declarationMap&&d(`${E}.map`)}}function bM(t,u,s,d,f){let p;return t.rootDir?(p=$a(t.rootDir,s),f==null||f(t.rootDir)):t.composite&&t.configFilePath?(p=dr(U1(t.configFilePath)),f==null||f(p)):p=L7e(u(),s,d),p&&p[p.length-1]!==nl&&(p+=nl),p}function yM({options:t,fileNames:u},s){return bM(t,()=>ei(u,d=>!(t.noEmitForJsFiles&&Oc(d,gB))&&!Xd(d)),dr(U1(H.checkDefined(t.configFilePath))),T1(!s))}function hQ(t,u){const{addOutput:s,getOutputs:d}=Yet();if(b0(t.options))Qet(t,s);else{const f=Nh(()=>yM(t,u));for(const p of t.fileNames)Xet(t,p,u,s,f);s(h5(t.options))}return d()}function ett(t,u,s){u=Go(u),H.assert(Ft(t.fileNames,u),"Expected fileName to be present in command line");const{addOutput:d,getOutputs:f}=Yet();return b0(t.options)?Qet(t,d):Xet(t,u,s,d),f()}function d1e(t,u){if(b0(t.options)){const{jsFilePath:f,declarationFilePath:p}=xM(t.options,!1);return H.checkDefined(f||p,`project ${t.options.configFilePath} expected to have at least one output`)}const s=Nh(()=>yM(t,u));for(const f of t.fileNames){if(Xd(f))continue;const p=Zet(f,t,u,s);if(p)return p;if(!Pl(f,".json")&&l4(t.options))return CM(f,t,u,s)}const d=h5(t.options);return d||H.fail(`project ${t.options.configFilePath} expected to have at least one output`)}function fQ(t,u,s,{scriptTransformers:d,declarationTransformers:f},p,E,v){var b=u.getCompilerOptions(),B=b.sourceMap||b.inlineSourceMap||qq(b)?[]:void 0,k=b.listEmittedFiles?[]:void 0,T=nB(),M=r5(b),z=Oj(M),{enter:j,exit:J}=_oe("printTime","beforePrint","afterPrint"),K,Y=!1;return j(),c1e(u,oe,tle(u,s,v),v,E,!s),J(),{emitSkipped:Y,diagnostics:T.getDiagnostics(),emittedFiles:k,sourceMaps:B};function oe({jsFilePath:fe,sourceMapFilePath:xe,declarationFilePath:Be,declarationMapPath:We,buildInfoPath:Ae},De){var He,Ge,ft,Ze,je,Ke;let Gt;Ae&&De&&yce(De)&&(Gt=dr($a(Ae,u.getCurrentDirectory())),K={commonSourceDirectory:Yt(u.getCommonSourceDirectory()),sourceFiles:De.sourceFiles.map(Ie=>Yt($a(Ie.fileName,u.getCurrentDirectory())))}),(He=$n)==null||He.push($n.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:fe}),ge(De,fe,xe,Yt),(Ge=$n)==null||Ge.pop(),(ft=$n)==null||ft.push($n.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:Be}),ae(De,Be,We,Yt),(Ze=$n)==null||Ze.pop(),(je=$n)==null||je.push($n.Phase.Emit,"emitBuildInfo",{buildInfoPath:Ae}),se(K,Ae),(Ke=$n)==null||Ke.pop(),!Y&&k&&(p||(fe&&k.push(fe),xe&&k.push(xe),Ae&&k.push(Ae)),p!==0&&(Be&&k.push(Be),We&&k.push(We)));function Yt(Ie){return l2(GE(Gt,Ie,u.getCanonicalFileName))}}function se(fe,xe){if(!xe||s||Y)return;if(u.isEmitBlocked(xe)){Y=!0;return}const Be=u.getBuildInfo(fe)||mH(void 0,fe);lP(u,T,xe,A7e(Be),!1,void 0,{buildInfo:Be})}function ge(fe,xe,Be,We){if(!fe||p||!xe)return;if(u.isEmitBlocked(xe)||b.noEmit){Y=!0;return}const Ae=fH(t,u,q,b,[fe],d,!1),De={removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:b.noEmitHelpers,module:b.module,target:b.target,sourceMap:b.sourceMap,inlineSourceMap:b.inlineSourceMap,inlineSources:b.inlineSources,extendedDiagnostics:b.extendedDiagnostics,writeBundleFileInfo:!!K,relativeToBuildInfo:We},He=Kv(De,{hasGlobalName:t.hasGlobalName,onEmitNode:Ae.emitNodeWithNotification,isEmitNotificationEnabled:Ae.isEmitNotificationEnabled,substituteNode:Ae.substituteNode});H.assert(Ae.transformed.length===1,"Should only see one output from the transform"),ne(xe,Be,Ae,He,b),Ae.dispose(),K&&(K.js=He.bundleFileInfo)}function ae(fe,xe,Be,We){if(!fe||p===0)return;if(!xe){(p||b.emitDeclarationOnly)&&(Y=!0);return}const Ae=ca(fe)?[fe]:fe.sourceFiles,De=v?Ae:ei(Ae,w0e),He=b0(b)?[q.createBundle(De,ca(fe)?void 0:fe.prepends)]:De;p&&!l4(b)&&De.forEach(Ce);const Ge=fH(t,u,q,b,He,f,!1);if(S(Ge.diagnostics))for(const Ke of Ge.diagnostics)T.add(Ke);const ft={removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:!0,module:b.module,target:b.target,sourceMap:!v&&b.declarationMap,inlineSourceMap:b.inlineSourceMap,extendedDiagnostics:b.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!K,recordInternalSection:!!K,relativeToBuildInfo:We},Ze=Kv(ft,{hasGlobalName:t.hasGlobalName,onEmitNode:Ge.emitNodeWithNotification,isEmitNotificationEnabled:Ge.isEmitNotificationEnabled,substituteNode:Ge.substituteNode}),je=!!Ge.diagnostics&&!!Ge.diagnostics.length||!!u.isEmitBlocked(xe)||!!b.noEmit;Y=Y||je,(!je||v)&&(H.assert(Ge.transformed.length===1,"Should only see one output from the decl transform"),ne(xe,Be,Ge,Ze,{sourceMap:ft.sourceMap,sourceRoot:b.sourceRoot,mapRoot:b.mapRoot,extendedDiagnostics:b.extendedDiagnostics})),Ge.dispose(),K&&(K.dts=Ze.bundleFileInfo)}function Ce(fe){if(ec(fe)){fe.expression.kind===80&&t.collectLinkedAliases(fe.expression,!0);return}else if(X1(fe)){t.collectLinkedAliases(fe.propertyName||fe.name,!0);return}ro(fe,Ce)}function ne(fe,xe,Be,We,Ae){const De=Be.transformed[0],He=De.kind===313?De:void 0,Ge=De.kind===312?De:void 0,ft=He?He.sourceFiles:[Ge];let Ze;ve(Ae,De)&&(Ze=RAe(u,Fc(U1(fe)),Se(Ae),Ne(Ae,fe,Ge),Ae)),He?We.writeBundle(He,z,Ze):We.writeFile(Ge,z,Ze);let je;if(Ze){B&&B.push({inputSourceFileNames:Ze.getSources(),sourceMap:Ze.toJSON()});const Gt=pe(Ae,Ze,fe,xe,Ge);if(Gt&&(z.isAtStartOfLine()||z.rawWrite(M),je=z.getTextPos(),z.writeComment(`//# sourceMappingURL=${Gt}`)),xe){const Yt=Ze.toString();lP(u,T,xe,Yt,!1,ft),We.bundleFileInfo&&(We.bundleFileInfo.mapHash=Tk(Yt,u))}}else z.writeLine();const Ke=z.getText();lP(u,T,fe,Ke,!!b.emitBOM,ft,{sourceMapUrlPos:je,diagnostics:Be.diagnostics}),We.bundleFileInfo&&(We.bundleFileInfo.hash=Tk(Ke,u)),z.clear()}function ve(fe,xe){return(fe.sourceMap||fe.inlineSourceMap)&&(xe.kind!==312||!Pl(xe.fileName,".json"))}function Se(fe){const xe=U1(fe.sourceRoot||"");return xe&&Pd(xe)}function Ne(fe,xe,Be){if(fe.sourceRoot)return u.getCommonSourceDirectory();if(fe.mapRoot){let We=U1(fe.mapRoot);return Be&&(We=dr(Nq(Be.fileName,u,We))),KE(We)===0&&(We=hr(u.getCommonSourceDirectory(),We)),We}return dr(Go(xe))}function pe(fe,xe,Be,We,Ae){if(fe.inlineSourceMap){const He=xe.toString();return`data:application/json;base64,${Iye(l1,He)}`}const De=Fc(U1(H.checkDefined(We)));if(fe.mapRoot){let He=U1(fe.mapRoot);return Ae&&(He=dr(Nq(Ae.fileName,u,He))),KE(He)===0?(He=hr(u.getCommonSourceDirectory(),He),encodeURI(e7(dr(Go(Be)),hr(He,De),u.getCurrentDirectory(),u.getCanonicalFileName,!0))):encodeURI(hr(He,De))}return encodeURI(De)}}function mH(t,u){return{bundle:u,program:t,version:_}}function A7e(t){return JSON.stringify(t)}function mQ(t,u){return dle(t,u)}function uzt(t,u,s){var d;const f=H.checkDefined(t.js),p=((d=f.sources)==null?void 0:d.prologues)&&og(f.sources.prologues,E=>E.file);return t.sourceFiles.map((E,v)=>{const b=p==null?void 0:p.get(v),B=b==null?void 0:b.directives.map(M=>{const z=Pt(q.createStringLiteral(M.expression.text),M.expression),j=Pt(q.createExpressionStatement(z),M);return bs(z,j),j}),k=q.createToken(1),T=q.createSourceFile(B??[],k,0);return T.fileName=GE(s.getCurrentDirectory(),$a(E,u),!s.useCaseSensitiveFileNames()),T.text=(b==null?void 0:b.text)??"",BP(T,0,(b==null?void 0:b.text.length)??0),fB(T.statements,T),BP(k,T.end,0),bs(k,T),T})}function S7e(t,u,s,d){var f,p;(f=$n)==null||f.push($n.Phase.Emit,"emitUsingBuildInfo",{},!0),il("beforeEmit");const E=rzt(t,u,s,d);return il("afterEmit"),wm("Emit","beforeEmit","afterEmit"),(p=$n)==null||p.pop(),E}function rzt(t,u,s,d){const{buildInfoPath:f,jsFilePath:p,sourceMapFilePath:E,declarationFilePath:v,declarationMapPath:b}=xM(t.options,!1),B=u.getBuildInfo(f,t.options.configFilePath);if(!B||!B.bundle||!B.bundle.js||v&&!B.bundle.dts)return f;const k=u.readFile(H.checkDefined(p));if(!k||Tk(k,u)!==B.bundle.js.hash)return p;const T=E&&u.readFile(E);if(E&&!T||t.options.inlineSourceMap)return E||"inline sourcemap decoding";if(E&&Tk(T,u)!==B.bundle.js.mapHash)return E;const M=v&&u.readFile(v);if(v&&!M||v&&Tk(M,u)!==B.bundle.dts.hash)return v;const z=b&&u.readFile(b);if(b&&!z||t.options.inlineSourceMap)return b||"inline sourcemap decoding";if(b&&Tk(z,u)!==B.bundle.dts.mapHash)return b;const j=dr($a(f,u.getCurrentDirectory())),J=uce(p,k,E,T,v,M,b,z,f,B,!0),K=[],Y=L1e(t.projectReferences,s,Ce=>u.readFile(Ce),u),oe=uzt(B.bundle,j,u);let se,ge;const ae={getPrependNodes:Nh(()=>[...Y,J]),getCanonicalFileName:u.getCanonicalFileName,getCommonSourceDirectory:()=>$a(B.bundle.commonSourceDirectory,j),getCompilerOptions:()=>t.options,getCurrentDirectory:()=>u.getCurrentDirectory(),getSourceFile:cv,getSourceFileByPath:cv,getSourceFiles:()=>oe,getLibFileFromReference:lo,isSourceFileFromExternalLibrary:sg,getResolvedProjectReferenceToRedirect:cv,getProjectReferenceRedirect:cv,isSourceOfProjectReferenceRedirect:sg,writeFile:(Ce,ne,ve,Se,Ne,pe)=>{switch(Ce){case p:if(k===ne)return;break;case E:if(T===ne)return;break;case f:break;case v:if(M===ne)return;se=ne,ge=pe;break;case b:if(z===ne)return;break;default:H.fail(`Unexpected path: ${Ce}`)}K.push({name:Ce,text:ne,writeByteOrderMark:ve,data:pe})},isEmitBlocked:sg,readFile:Ce=>u.readFile(Ce),fileExists:Ce=>u.fileExists(Ce),useCaseSensitiveFileNames:()=>u.useCaseSensitiveFileNames(),getBuildInfo:Ce=>{const ne=B.program;ne&&se!==void 0&&t.options.composite&&(ne.outSignature=Tk(se,u,ge));const{js:ve,dts:Se,sourceFiles:Ne}=B.bundle;return Ce.js.sources=ve.sources,Se&&(Ce.dts.sources=Se.sources),Ce.sourceFiles=Ne,mH(ne,Ce)},getSourceFileFromReference:cv,redirectTargetsMap:Bm(),getFileIncludeReasons:lo,createHash:wo(u,u.createHash)};return fQ(pQ,ae,void 0,s1e(t.options,d)),K}function Kv(t={},u={}){var{hasGlobalName:s,onEmitNode:d=hH,isEmitNotificationEnabled:f,substituteNode:p=DM,onBeforeEmitNode:E,onAfterEmitNode:v,onBeforeEmitNodeArray:b,onAfterEmitNodeArray:B,onBeforeEmitToken:k,onAfterEmitToken:T}=u,M=!!t.extendedDiagnostics,z=!!t.omitBraceSourceMapPositions,j=r5(t),J=f1(t),K=new Map,Y,oe,se,ge,ae,Ce,ne,ve,Se,Ne,pe,fe,xe,Be,We,Ae=t.preserveSourceNewlines,De,He,Ge,ft=sz,Ze,je=t.writeBundleFileInfo?{sections:[]}:void 0,Ke=je?H.checkDefined(t.relativeToBuildInfo):void 0,Gt=t.recordInternalSection,Yt=0,Ie="text",st=!0,St,It,ti=-1,ht,Ut=-1,Li=-1,ji=-1,xn=-1,Un,rn,Ni=!1,Fi=!!t.removeComments,Qu,aa,{enter:Fr,exit:Ba}=Bqe(M,"commentTime","beforeComment","afterComment"),bt=q.parenthesizer,jn={select:O=>O===0?bt.parenthesizeLeadingTypeArgument:void 0},Nn=c3();return ni(),{printNode:Ai,printList:Dn,printFile:iu,printBundle:bn,writeNode:xa,writeList:ra,writeFile:Xt,writeBundle:Mt,bundleFileInfo:je};function Ai(O,be,Vt){switch(O){case 0:H.assert(ca(be),"Expected a SourceFile node.");break;case 2:H.assert(at(be),"Expected an Identifier node.");break;case 1:H.assert(Wt(be),"Expected an Expression node.");break}switch(be.kind){case 312:return iu(be);case 313:return bn(be);case 314:return oa(be)}return xa(O,be,Vt,Pe()),et()}function Dn(O,be,Vt){return ra(O,be,Vt,Pe()),et()}function bn(O){return Mt(O,Pe(),void 0),et()}function iu(O){return Xt(O,Pe(),void 0),et()}function oa(O){return qt(O,Pe()),et()}function xa(O,be,Vt,Oi){const ku=He;me(Oi,void 0),gt(O,be,Vt),ni(),He=ku}function ra(O,be,Vt,Oi){const ku=He;me(Oi,void 0),Vt&&ii(Vt),S0(void 0,be,O),ni(),He=ku}function wa(){return He.getTextPosWithWriteLine?He.getTextPosWithWriteLine():He.getTextPos()}function Zo(O,be,Vt){const Oi=Yu(je.sections);Oi&&Oi.kind===Vt?Oi.end=be:je.sections.push({pos:O,end:be,kind:Vt})}function vo(O){if(Gt&&je&&Y&&(Y1(O)||Gl(O))&&a1e(O,Y)&&Ie!=="internal"){const be=Ie;return Et(He.getTextPos()),Yt=wa(),Ie="internal",be}}function Qe(O){O&&(Et(He.getTextPos()),Yt=wa(),Ie=O)}function Et(O){return YtH.assert($ye(ko))),je.sections.push({pos:Jr,end:He.getTextPos(),kind:"prepend",data:Ke(ku.fileName),texts:_a}))}}Yt=wa();for(const ku of O.sourceFiles)gt(0,ku,ku);if(je&&O.sourceFiles.length){const ku=He.getTextPos();if(Et(ku)){const Jr=zw(O);Jr&&(je.sources||(je.sources={}),je.sources.prologues=Jr);const br=Ti(O);br&&(je.sources||(je.sources={}),je.sources.helpers=br)}}ni(),He=Oi}function qt(O,be){const Vt=He;me(be,void 0),gt(4,O,void 0),ni(),He=Vt}function Xt(O,be,Vt){Ze=!0;const Oi=He;me(be,Vt),fb(O),S5(O),gt(0,O,O),ni(),He=Oi}function Pe(){return Ge||(Ge=Oj(j))}function et(){const O=Ge.getText();return Ge.clear(),O}function gt(O,be,Vt){Vt&&ii(Vt),le(O,be,void 0)}function ii(O){Y=O,Un=void 0,rn=void 0,O&&gC(O)}function me(O,be){O&&t.omitTrailingSemicolon&&(O=X0e(O)),He=O,St=be,st=!He||!St}function ni(){oe=[],se=[],ge=[],ae=new Set,Ce=[],ne=new Map,ve=[],Se=0,Ne=[],pe=0,fe=[],xe=void 0,Be=[],We=void 0,Y=void 0,Un=void 0,rn=void 0,me(void 0,void 0)}function _i(){return Un||(Un=J3(H.checkDefined(Y)))}function mt(O,be){if(O===void 0)return;const Vt=vo(O);le(4,O,be),Qe(Vt)}function jt(O){O!==void 0&&le(2,O,void 0)}function pi(O,be){O!==void 0&&le(1,O,be)}function Ji(O){le(ns(O)?6:4,O)}function Yi(O){Ae&&Tp(O)&4&&(Ae=!1)}function on(O){Ae=O}function le(O,be,Vt){aa=Vt,de(0,O,be)(O,be),aa=void 0}function te(O){return!Fi&&!ca(O)}function we(O){return!st&&!ca(O)&&!pq(O)&&!Ck(O)&&!hFe(O)}function de(O,be,Vt){switch(O){case 0:if(d!==hH&&(!f||f(Vt)))return X;case 1:if(p!==DM&&(Qu=p(be,Vt)||Vt)!==Vt)return aa&&(Qu=aa(Qu)),Qt;case 2:if(te(Vt))return L9;case 3:if(we(Vt))return aF;case 4:return it;default:return H.assertNever(O)}}function Oe(O,be,Vt){return de(O+1,be,Vt)}function X(O,be){const Vt=Oe(0,O,be);d(O,be,Vt)}function it(O,be){if(E==null||E(be),Ae){const Vt=Ae;Yi(be),Ct(O,be),on(Vt)}else Ct(O,be);v==null||v(be),aa=void 0}function Ct(O,be,Vt=!0){if(Vt){const Oi=oce(be);if(Oi)return ja(O,be,Oi)}if(O===0)return Xk(Lo(be,ca));if(O===2)return rs(Lo(be,at));if(O===6)return Ru(Lo(be,ns),!0);if(O===3)return ct(Lo(be,Al));if(O===5)return H.assertNode(be,vce),ma(!0);if(O===4){switch(be.kind){case 16:case 17:case 18:return Ru(be,!1);case 80:return rs(be);case 81:return So(be);case 166:return An(be);case 167:return Za(be);case 168:return l0(be);case 169:return $l(be);case 170:return Sl(be);case 171:return cd(be);case 172:return Dl(be);case 173:return so(be);case 174:return Vo(be);case 175:return td(be);case 176:return $0(be);case 177:case 178:return Ho(be);case 179:return wc(be);case 180:return Kp(be);case 181:return Tc(be);case 182:return Ka(be);case 183:return Ri(be);case 184:return ll(be);case 185:return vc(be);case 186:return $(be);case 187:return tt(be);case 188:return vt(be);case 189:return fn(be);case 190:return ru(be);case 192:return Tu(be);case 193:return Pr(be);case 194:return Vu(be);case 195:return Fs(be);case 196:return tc(be);case 233:return gi(be);case 197:return id();case 198:return A0(be);case 199:return nd(be);case 200:return f0(be);case 201:return Sd(be);case 202:return Gu(be);case 203:return Ih(be);case 204:return zl(be);case 205:return nh(be);case 206:return d4(be);case 207:return _1(be);case 208:return Ve(be);case 239:return bi(be);case 240:return sl();case 241:return Rn(be);case 243:return ur(be);case 242:return ma(!1);case 244:return as(be);case 245:return os(be);case 246:return D1(be);case 247:return dd(be);case 248:return Jm(be);case 249:return gs(be);case 250:return tp(be);case 251:return d3(be);case 252:return c_(be);case 253:return C5(be);case 254:return Xe(be);case 255:return Dt(be);case 256:return ai(be);case 257:return wi(be);case 258:return Qi(be);case 259:return On(be);case 260:return en(be);case 261:return yn(be);case 262:return Ar(be);case 263:return Qv(be);case 264:return lD(be);case 265:return t6(be);case 266:return Kk(be);case 267:return ab(be);case 268:return Wk(be);case 269:return Gk(be);case 270:return $k(be);case 271:return rz(be);case 272:return Sw(be);case 273:return Xv(be);case 274:return _9(be);case 280:return ob(be);case 275:return D9(be);case 276:return Bw(be);case 277:return Jk(be);case 278:return ww(be);case 279:return sb(be);case 281:return eC(be);case 300:return x9(be);case 301:return v9(be);case 282:return;case 283:return hE(be);case 12:return y5(be);case 286:case 289:return i6(be);case 287:case 290:return d_(be);case 291:return Gf(be);case 292:return m4(be);case 293:return jh(be);case 294:return C9(be);case 295:return qk(be);case 296:return iC(be);case 297:return Zk(be);case 298:return Rd(be);case 299:return k5(be);case 303:return F5(be);case 304:return h3(be);case 305:return pt(be);case 306:return t1(be);case 307:return tr(be);case 314:case 308:return Er(be);case 309:case 310:return da(be);case 311:return Wu(be);case 312:return Xk(be);case 313:return H.fail("Bundles should be printed using printBundle");case 315:return H.fail("InputFiles should not be printed");case 316:return m3(be);case 317:return A5(be);case 319:return au("*");case 320:return au("?");case 321:return vh(be);case 322:return of(be);case 323:return U0(be);case 324:return $c(be);case 191:case 325:return hi(be);case 326:return;case 327:return p4(be);case 329:return Qk(be);case 330:return db(be);case 334:case 339:case 344:return Yk(be);case 335:case 336:return uC(be);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return js(be);case 346:return Cg(be);case 348:case 355:return hb(be);case 347:case 349:case 350:case 351:case 356:case 357:return Ch(be);case 352:return f3(be);case 353:return az(be);case 354:return Nw(be);case 359:return}if(Wt(be)&&(O=1,p!==DM)){const Oi=p(O,be)||be;Oi!==be&&(be=Oi,aa&&(be=aa(be)))}}if(O===1)switch(be.kind){case 9:case 10:return hu(be);case 11:case 14:case 15:return Ru(be,!1);case 80:return rs(be);case 81:return So(be);case 209:return si(be);case 210:return zn(be);case 211:return ya(be);case 212:return Bo(be);case 213:return ic(be);case 214:return hc(be);case 215:return xl(be);case 216:return Bl(be);case 217:return Cc(be);case 218:return Ul(be);case 219:return Lc(be);case 220:return Gm(be);case 221:return Rh(be);case 222:return h4(be);case 223:return l3(be);case 224:return l_(be);case 225:return I1(be);case 226:return Nn(be);case 227:return Kf(be);case 228:return f4(be);case 229:return Oh(be);case 230:return Ee(be);case 231:return Bt(be);case 232:return;case 234:return xi(be);case 235:return Q(be);case 233:return gi(be);case 238:return Me(be);case 236:return wt(be);case 237:return H.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Os(be);case 285:return Uk(be);case 288:return Tw(be);case 358:return H.fail("SyntaxList should not be printed");case 359:return;case 360:return sr(be);case 361:return mE(be);case 362:return H.fail("SyntheticReferenceExpression should not be printed")}if(nf(be.kind))return A9(be,Pa);if(Gse(be.kind))return A9(be,au);H.fail(`Unhandled SyntaxKind: ${H.formatSyntaxKind(be.kind)}.`)}function ct(O){mt(O.name),Zn(),Pa("in"),Zn(),mt(O.constraint)}function Qt(O,be){const Vt=Oe(1,O,be);H.assertIsDefined(Qu),be=Qu,Qu=void 0,Vt(O,be)}function Ti(O){let be;if(J===0||t.noEmitHelpers)return;const Vt=new Map;for(const Oi of O.sourceFiles){const ku=PV(Oi)!==void 0,Jr=Bn(Oi);if(Jr)for(const br of Jr)!br.scoped&&!ku&&!Vt.get(br.name)&&(Vt.set(br.name,!0),(be||(be=[])).push(br.name))}return be}function $i(O){let be=!1;const Vt=O.kind===313?O:void 0;if(Vt&&J===0)return;const Oi=Vt?Vt.prepends.length:0,ku=Vt?Vt.sourceFiles.length+Oi:1;for(let Jr=0;Jr"),Zn(),mt(O.type),kf(O)}function $c(O){Pa("function"),B5(O,O.parameters),au(":"),mt(O.type)}function vh(O){au("?"),mt(O.type)}function of(O){au("!"),mt(O.type)}function U0(O){mt(O.type),au("=")}function vc(O){R1(O),cD(O,O.modifiers),Pa("new"),Zn(),m_(O,O.typeParameters),B5(O,O.parameters),Zn(),au("=>"),Zn(),mt(O.type),kf(O)}function $(O){Pa("typeof"),Zn(),mt(O.exprName),pE(O,O.typeArguments)}function tt(O){E4(0,void 0),au("{");const be=vs(O)&1?768:32897;S0(O,O.members,be|524288),au("}"),dC()}function vt(O){mt(O.elementType,bt.parenthesizeNonArrayTypeOfPostfixType),au("["),au("]")}function hi(O){au("..."),mt(O.type)}function fn(O){ta(23,O.pos,au,O);const be=vs(O)&1?528:657;S0(O,O.elements,be|524288,bt.parenthesizeElementTypeOfTupleType),ta(24,O.elements.end,au,O)}function Gu(O){mt(O.dotDotDotToken),mt(O.name),mt(O.questionToken),ta(59,O.name.end,au,O),Zn(),mt(O.type)}function ru(O){mt(O.type,bt.parenthesizeTypeOfOptionalType),au("?")}function Tu(O){S0(O,O.types,516,bt.parenthesizeConstituentTypeOfUnionType)}function Pr(O){S0(O,O.types,520,bt.parenthesizeConstituentTypeOfIntersectionType)}function Vu(O){mt(O.checkType,bt.parenthesizeCheckTypeOfConditionalType),Zn(),Pa("extends"),Zn(),mt(O.extendsType,bt.parenthesizeExtendsTypeOfConditionalType),Zn(),au("?"),Zn(),mt(O.trueType),Zn(),au(":"),Zn(),mt(O.falseType)}function Fs(O){Pa("infer"),Zn(),mt(O.typeParameter)}function tc(O){au("("),mt(O.type),au(")")}function id(){Pa("this")}function A0(O){dD(O.operator,Pa),Zn();const be=O.operator===148?bt.parenthesizeOperandOfReadonlyTypeOperator:bt.parenthesizeOperandOfTypeOperator;mt(O.type,be)}function nd(O){mt(O.objectType,bt.parenthesizeNonArrayTypeOfPostfixType),au("["),mt(O.indexType),au("]")}function f0(O){const be=vs(O);au("{"),be&1?Zn():(Bd(),EE()),O.readonlyToken&&(mt(O.readonlyToken),O.readonlyToken.kind!==148&&Pa("readonly"),Zn()),au("["),le(3,O.typeParameter),O.nameType&&(Zn(),Pa("as"),Zn(),mt(O.nameType)),au("]"),O.questionToken&&(mt(O.questionToken),O.questionToken.kind!==58&&au("?")),au(":"),Zn(),mt(O.type),x1(),be&1?Zn():(Bd(),_E()),S0(O,O.members,2),au("}")}function Sd(O){pi(O.literal)}function Ih(O){mt(O.head),S0(O,O.templateSpans,262144)}function nh(O){if(O.isTypeOf&&(Pa("typeof"),Zn()),Pa("import"),au("("),mt(O.argument),O.attributes){au(","),Zn(),au("{"),Zn(),Pa(O.attributes.token===132?"assert":"with"),au(":"),Zn();const be=O.attributes.elements;S0(O.attributes,be,526226),Zn(),au("}")}au(")"),O.qualifier&&(au("."),mt(O.qualifier)),pE(O,O.typeArguments)}function d4(O){au("{"),S0(O,O.elements,525136),au("}")}function _1(O){au("["),S0(O,O.elements,524880),au("]")}function Ve(O){mt(O.dotDotDotToken),O.propertyName&&(mt(O.propertyName),au(":"),Zn()),mt(O.name),p3(O.initializer,O.name.end,O,bt.parenthesizeExpressionForDisallowedComma)}function si(O){const be=O.elements,Vt=O.multiLine?65536:0;mb(O,be,8914|Vt,bt.parenthesizeExpressionForDisallowedComma)}function zn(O){E4(0,void 0),L(O.properties,uF);const be=vs(O)&131072;be&&EE();const Vt=O.multiLine?65536:0,Oi=Y&&Y.languageVersion>=1&&!H4(Y)?64:0;S0(O,O.properties,526226|Oi|Vt),be&&_E(),dC()}function ya(O){pi(O.expression,bt.parenthesizeLeftSideOfAccess);const be=O.questionDotToken||e_(q.createToken(25),O.expression.end,O.name.pos),Vt=g4(O,O.expression,be),Oi=g4(O,be,O.name);E3(Vt,!1),be.kind!==29&&yo(O.expression)&&!He.hasTrailingComment()&&!He.hasTrailingWhitespace()&&au("."),O.questionDotToken?mt(be):ta(be.kind,O.expression.end,au,O),E3(Oi,!1),mt(O.name),p_(Vt,Oi)}function yo(O){if(O=wp(O),Rf(O)){const be=B9(O,!0,!1);return!(O.numericLiteralFlags&448)&&!be.includes(Jo(25))&&!be.includes("E")&&!be.includes("e")}else if(N0(O)){const be=Rke(O);return typeof be=="number"&&isFinite(be)&&be>=0&&Math.floor(be)===be}}function Bo(O){pi(O.expression,bt.parenthesizeLeftSideOfAccess),mt(O.questionDotToken),ta(23,O.expression.end,au,O),pi(O.argumentExpression),ta(24,O.argumentExpression.end,au,O)}function ic(O){const be=Tp(O)&16;be&&(au("("),aC("0"),au(","),Zn()),pi(O.expression,bt.parenthesizeLeftSideOfAccess),be&&au(")"),mt(O.questionDotToken),pE(O,O.typeArguments),mb(O,O.arguments,2576,bt.parenthesizeExpressionForDisallowedComma)}function hc(O){ta(105,O.pos,Pa,O),Zn(),pi(O.expression,bt.parenthesizeExpressionOfNew),pE(O,O.typeArguments),mb(O,O.arguments,18960,bt.parenthesizeExpressionForDisallowedComma)}function xl(O){const be=Tp(O)&16;be&&(au("("),aC("0"),au(","),Zn()),pi(O.tag,bt.parenthesizeLeftSideOfAccess),be&&au(")"),pE(O,O.typeArguments),Zn(),pi(O.template)}function Bl(O){au("<"),mt(O.type),au(">"),pi(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function Cc(O){const be=ta(21,O.pos,au,O),Vt=S9(O.expression,O);pi(O.expression,void 0),nF(O.expression,O),p_(Vt),ta(22,O.expression?O.expression.end:be,au,O)}function Ul(O){rp(O.name),bu(O)}function Lc(O){cD(O,O.modifiers),yu(O,ep)}function ep(O){m_(O,O.typeParameters),b9(O,O.parameters),h_(O.type),Zn(),mt(O.equalsGreaterThanToken)}function Gm(O){ta(91,O.pos,Pa,O),Zn(),pi(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function Rh(O){ta(114,O.pos,Pa,O),Zn(),pi(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function h4(O){ta(116,O.pos,Pa,O),Zn(),pi(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function l3(O){ta(135,O.pos,Pa,O),Zn(),pi(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function l_(O){dD(O.operator,sf),v5(O)&&Zn(),pi(O.operand,bt.parenthesizeOperandOfPrefixUnary)}function v5(O){const be=O.operand;return be.kind===224&&(O.operator===40&&(be.operator===40||be.operator===46)||O.operator===41&&(be.operator===41||be.operator===47))}function I1(O){pi(O.operand,bt.parenthesizeOperandOfPostfixUnary),dD(O.operator,sf)}function c3(){return vY(O,be,Vt,Oi,ku,void 0);function O(br,_a){if(_a){_a.stackIndex++,_a.preserveSourceNewlinesStack[_a.stackIndex]=Ae,_a.containerPosStack[_a.stackIndex]=Li,_a.containerEndStack[_a.stackIndex]=ji,_a.declarationListContainerEndStack[_a.stackIndex]=xn;const ko=_a.shouldEmitCommentsStack[_a.stackIndex]=te(br),Ff=_a.shouldEmitSourceMapsStack[_a.stackIndex]=we(br);E==null||E(br),ko&&N9(br),Ff&&Ww(br),Yi(br)}else _a={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return _a}function be(br,_a,ko){return Jr(br,ko,"left")}function Vt(br,_a,ko){const Ff=br.kind!==28,$f=g4(ko,ko.left,br),Sr=g4(ko,br,ko.right);E3($f,Ff),qm(br.pos),A9(br,br.kind===103?Pa:sf),Gp(br.end,!0),E3(Sr,!0)}function Oi(br,_a,ko){return Jr(br,ko,"right")}function ku(br,_a){const ko=g4(br,br.left,br.operatorToken),Ff=g4(br,br.operatorToken,br.right);if(p_(ko,Ff),_a.stackIndex>0){const $f=_a.preserveSourceNewlinesStack[_a.stackIndex],Sr=_a.containerPosStack[_a.stackIndex],xE=_a.containerEndStack[_a.stackIndex],gn=_a.declarationListContainerEndStack[_a.stackIndex],d6=_a.shouldEmitCommentsStack[_a.stackIndex],N5=_a.shouldEmitSourceMapsStack[_a.stackIndex];on($f),N5&&D4(br),d6&&P9(br,Sr,xE,gn),v==null||v(br),_a.stackIndex--}}function Jr(br,_a,ko){const Ff=ko==="left"?bt.getParenthesizeLeftSideOfBinaryForOperator(_a.operatorToken.kind):bt.getParenthesizeRightSideOfBinaryForOperator(_a.operatorToken.kind);let $f=de(0,1,br);if($f===Qt&&(H.assertIsDefined(Qu),br=Ff(Lo(Qu,Wt)),$f=Oe(1,1,br),Qu=void 0),($f===L9||$f===aF||$f===it)&&tu(br))return br;aa=Ff,$f(1,br)}}function Kf(O){const be=g4(O,O.condition,O.questionToken),Vt=g4(O,O.questionToken,O.whenTrue),Oi=g4(O,O.whenTrue,O.colonToken),ku=g4(O,O.colonToken,O.whenFalse);pi(O.condition,bt.parenthesizeConditionOfConditionalExpression),E3(be,!0),mt(O.questionToken),E3(Vt,!0),pi(O.whenTrue,bt.parenthesizeBranchOfConditionalExpression),p_(be,Vt),E3(Oi,!0),mt(O.colonToken),E3(ku,!0),pi(O.whenFalse,bt.parenthesizeBranchOfConditionalExpression),p_(Oi,ku)}function f4(O){mt(O.head),S0(O,O.templateSpans,262144)}function Oh(O){ta(127,O.pos,Pa,O),mt(O.asteriskToken),g3(O.expression&&vg(O.expression),rb)}function Ee(O){ta(26,O.pos,au,O),pi(O.expression,bt.parenthesizeExpressionForDisallowedComma)}function Bt(O){rp(O.name),e6(O)}function gi(O){pi(O.expression,bt.parenthesizeLeftSideOfAccess),pE(O,O.typeArguments)}function xi(O){pi(O.expression,void 0),O.type&&(Zn(),Pa("as"),Zn(),mt(O.type))}function Q(O){pi(O.expression,bt.parenthesizeLeftSideOfAccess),sf("!")}function Me(O){pi(O.expression,void 0),O.type&&(Zn(),Pa("satisfies"),Zn(),mt(O.type))}function wt(O){n6(O.keywordToken,O.pos,au),au("."),mt(O.name)}function bi(O){pi(O.expression),mt(O.literal)}function Rn(O){nr(O,!O.multiLine&&cC(O))}function nr(O,be){ta(19,O.pos,au,O);const Vt=be||vs(O)&1?768:129;S0(O,O.statements,Vt),ta(20,O.statements.end,au,O,!!(Vt&1))}function ur(O){bh(O,O.modifiers,!1),mt(O.declarationList),x1()}function ma(O){O?au(";"):x1()}function as(O){pi(O.expression,bt.parenthesizeExpressionOfExpressionStatement),(!Y||!H4(Y)||al(O.expression))&&x1()}function os(O){const be=ta(101,O.pos,Pa,O);Zn(),ta(21,be,au,O),pi(O.expression),ta(22,O.expression.end,au,O),f_(O,O.thenStatement),O.elseStatement&&(sC(O,O.thenStatement,O.elseStatement),ta(93,O.thenStatement.end,Pa,O),O.elseStatement.kind===245?(Zn(),mt(O.elseStatement)):f_(O,O.elseStatement))}function Il(O,be){const Vt=ta(117,be,Pa,O);Zn(),ta(21,Vt,au,O),pi(O.expression),ta(22,O.expression.end,au,O)}function D1(O){ta(92,O.pos,Pa,O),f_(O,O.statement),fo(O.statement)&&!Ae?Zn():sC(O,O.statement,O.expression),Il(O,O.statement.end),x1()}function dd(O){Il(O,O.pos),f_(O,O.statement)}function Jm(O){const be=ta(99,O.pos,Pa,O);Zn();let Vt=ta(21,be,au,O);$m(O.initializer),Vt=ta(27,O.initializer?O.initializer.end:Vt,au,O),g3(O.condition),Vt=ta(27,O.condition?O.condition.end:Vt,au,O),g3(O.incrementor),ta(22,O.incrementor?O.incrementor.end:Vt,au,O),f_(O,O.statement)}function gs(O){const be=ta(99,O.pos,Pa,O);Zn(),ta(21,be,au,O),$m(O.initializer),Zn(),ta(103,O.initializer.end,Pa,O),Zn(),pi(O.expression),ta(22,O.expression.end,au,O),f_(O,O.statement)}function tp(O){const be=ta(99,O.pos,Pa,O);Zn(),Iw(O.awaitModifier),ta(21,be,au,O),$m(O.initializer),Zn(),ta(165,O.initializer.end,Pa,O),Zn(),pi(O.expression),ta(22,O.expression.end,au,O),f_(O,O.statement)}function $m(O){O!==void 0&&(O.kind===261?mt(O):pi(O))}function d3(O){ta(88,O.pos,Pa,O),rC(O.label),x1()}function c_(O){ta(83,O.pos,Pa,O),rC(O.label),x1()}function ta(O,be,Vt,Oi,ku){const Jr=Ua(Oi),br=Jr&&Jr.kind===Oi.kind,_a=be;if(br&&Y&&(be=ms(Y.text,be)),br&&Oi.pos!==_a){const ko=ku&&Y&&!$4(_a,be,Y);ko&&EE(),qm(_a),ko&&_E()}if(!z&&(O===19||O===20)?be=n6(O,be,Vt,Oi):be=dD(O,Vt,be),br&&Oi.end!==be){const ko=Oi.kind===294;Gp(be,!ko,ko)}return be}function Qx(O){return O.kind===2||!!O.hasTrailingNewLine}function Xx(O){return Y?qe(K_(Y.text,O.pos),Qx)||qe(EB(O),Qx)?!0:oY(O)?O.pos!==O.expression.pos&&qe(mv(Y.text,O.expression.pos),Qx)?!0:Xx(O.expression):!1:!1}function vg(O){if(!Fi&&oY(O)&&Xx(O)){const be=Ua(O);if(be&&vf(be)){const Vt=q.createParenthesizedExpression(O.expression);return lu(Vt,O),Pt(Vt,be),Vt}return q.createParenthesizedExpression(O)}return O}function rb(O){return vg(bt.parenthesizeExpressionForDisallowedComma(O))}function C5(O){ta(107,O.pos,Pa,O),g3(O.expression&&vg(O.expression),vg),x1()}function Xe(O){const be=ta(118,O.pos,Pa,O);Zn(),ta(21,be,au,O),pi(O.expression),ta(22,O.expression.end,au,O),f_(O,O.statement)}function Dt(O){const be=ta(109,O.pos,Pa,O);Zn(),ta(21,be,au,O),pi(O.expression),ta(22,O.expression.end,au,O),Zn(),mt(O.caseBlock)}function ai(O){mt(O.label),ta(59,O.label.end,au,O),Zn(),mt(O.statement)}function wi(O){ta(111,O.pos,Pa,O),g3(vg(O.expression),vg),x1()}function Qi(O){ta(113,O.pos,Pa,O),Zn(),mt(O.tryBlock),O.catchClause&&(sC(O,O.tryBlock,O.catchClause),mt(O.catchClause)),O.finallyBlock&&(sC(O,O.catchClause||O.tryBlock,O.finallyBlock),ta(98,(O.catchClause||O.tryBlock).end,Pa,O),Zn(),mt(O.finallyBlock))}function On(O){n6(89,O.pos,Pa),x1()}function en(O){var be,Vt,Oi;mt(O.name),mt(O.exclamationToken),h_(O.type),p3(O.initializer,((be=O.type)==null?void 0:be.end)??((Oi=(Vt=O.name.emitNode)==null?void 0:Vt.typeNode)==null?void 0:Oi.end)??O.name.end,O,bt.parenthesizeExpressionForDisallowedComma)}function yn(O){if(oj(O))Pa("await"),Zn(),Pa("using");else{const be=tq(O)?"let":V8(O)?"const":sj(O)?"using":"var";Pa(be)}Zn(),S0(O,O.declarations,528)}function Ar(O){bu(O)}function bu(O){bh(O,O.modifiers,!1),Pa("function"),mt(O.asteriskToken),Zn(),jt(O.name),yu(O,_u)}function yu(O,be){const Vt=O.body;if(Vt)if(fo(Vt)){const Oi=vs(O)&131072;Oi&&EE(),R1(O),L(O.parameters,i1),i1(O.body),be(O),m0(Vt),kf(O),Oi&&_E()}else be(O),Zn(),pi(Vt,bt.parenthesizeConciseBodyOfArrowFunction);else be(O),x1()}function _u(O){m_(O,O.typeParameters),B5(O,O.parameters),h_(O.type)}function sa(O){if(vs(O)&1)return!0;if(O.multiLine||!al(O)&&Y&&!ck(O,Y)||iF(O,Hi(O.statements),2)||u6(O,Yu(O.statements),2,O.statements))return!1;let be;for(const Vt of O.statements){if(hD(be,Vt,2)>0)return!1;be=Vt}return!0}function m0(O){E==null||E(O),Zn(),au("{"),EE();const be=sa(O)?a0:Wf;Du(O,O.statements,be),_E(),n6(20,O.statements.end,au,O),v==null||v(O)}function a0(O){Wf(O,!0)}function Wf(O,be){const Vt=yf(O.statements),Oi=He.getTextPos();$i(O),Vt===0&&Oi===He.getTextPos()&&be?(_E(),S0(O,O.statements,768),EE()):S0(O,O.statements,1,void 0,Vt)}function Qv(O){e6(O)}function e6(O){E4(0,void 0),L(O.members,uF),bh(O,O.modifiers,!0),ta(86,tE(O).pos,Pa,O),O.name&&(Zn(),jt(O.name));const be=vs(O)&131072;be&&EE(),m_(O,O.typeParameters),S0(O,O.heritageClauses,0),Zn(),au("{"),S0(O,O.members,129),au("}"),be&&_E(),dC()}function lD(O){E4(0,void 0),bh(O,O.modifiers,!1),Pa("interface"),Zn(),mt(O.name),m_(O,O.typeParameters),S0(O,O.heritageClauses,512),Zn(),au("{"),S0(O,O.members,129),au("}"),dC()}function t6(O){bh(O,O.modifiers,!1),Pa("type"),Zn(),mt(O.name),m_(O,O.typeParameters),Zn(),au("="),Zn(),mt(O.type),x1()}function Kk(O){bh(O,O.modifiers,!1),Pa("enum"),Zn(),mt(O.name),Zn(),au("{"),S0(O,O.members,145),au("}")}function ab(O){bh(O,O.modifiers,!1),~O.flags&2048&&(Pa(O.flags&32?"namespace":"module"),Zn()),mt(O.name);let be=O.body;if(!be)return x1();for(;be&&Ec(be);)au("."),mt(be.name),be=be.body;Zn(),mt(be)}function Wk(O){R1(O),L(O.statements,i1),nr(O,cC(O)),kf(O)}function Gk(O){ta(19,O.pos,au,O),S0(O,O.clauses,129),ta(20,O.clauses.end,au,O,!0)}function rz(O){bh(O,O.modifiers,!1),ta(102,O.modifiers?O.modifiers.end:O.pos,Pa,O),Zn(),O.isTypeOnly&&(ta(156,O.pos,Pa,O),Zn()),mt(O.name),Zn(),ta(64,O.name.end,au,O),Zn(),E9(O.moduleReference),x1()}function E9(O){O.kind===80?pi(O):mt(O)}function Sw(O){bh(O,O.modifiers,!1),ta(102,O.modifiers?O.modifiers.end:O.pos,Pa,O),Zn(),O.importClause&&(mt(O.importClause),Zn(),ta(161,O.importClause.end,Pa,O),Zn()),pi(O.moduleSpecifier),O.attributes&&rC(O.attributes),x1()}function Xv(O){O.isTypeOnly&&(ta(156,O.pos,Pa,O),Zn()),mt(O.name),O.name&&O.namedBindings&&(ta(28,O.name.end,au,O),Zn()),mt(O.namedBindings)}function _9(O){const be=ta(42,O.pos,au,O);Zn(),ta(130,be,Pa,O),Zn(),mt(O.name)}function D9(O){b5(O)}function Bw(O){lb(O)}function Jk(O){const be=ta(95,O.pos,Pa,O);Zn(),O.isExportEquals?ta(64,be,sf,O):ta(90,be,Pa,O),Zn(),pi(O.expression,O.isExportEquals?bt.getParenthesizeRightSideOfBinaryForOperator(64):bt.parenthesizeExpressionOfExportDefault),x1()}function ww(O){bh(O,O.modifiers,!1);let be=ta(95,O.pos,Pa,O);if(Zn(),O.isTypeOnly&&(be=ta(156,be,Pa,O),Zn()),O.exportClause?mt(O.exportClause):be=ta(42,be,au,O),O.moduleSpecifier){Zn();const Vt=O.exportClause?O.exportClause.end:be;ta(161,Vt,Pa,O),Zn(),pi(O.moduleSpecifier)}O.attributes&&rC(O.attributes),x1()}function x9(O){ta(O.token,O.pos,Pa,O),Zn();const be=O.elements;S0(O,be,526226)}function v9(O){mt(O.name),au(":"),Zn();const be=O.value;if(!(vs(be)&1024)){const Vt=iE(be);Gp(Vt.pos)}mt(be)}function $k(O){let be=ta(95,O.pos,Pa,O);Zn(),be=ta(130,be,Pa,O),Zn(),be=ta(145,be,Pa,O),Zn(),mt(O.name),x1()}function ob(O){const be=ta(42,O.pos,au,O);Zn(),ta(130,be,Pa,O),Zn(),mt(O.name)}function sb(O){b5(O)}function eC(O){lb(O)}function b5(O){au("{"),S0(O,O.elements,525136),au("}")}function lb(O){O.isTypeOnly&&(Pa("type"),Zn()),O.propertyName&&(mt(O.propertyName),Zn(),ta(130,O.propertyName.end,Pa,O),Zn()),mt(O.name)}function hE(O){Pa("require"),au("("),pi(O.expression),au(")")}function Os(O){mt(O.openingElement),S0(O,O.children,262144),mt(O.closingElement)}function Uk(O){au("<"),cb(O.tagName),pE(O,O.typeArguments),Zn(),mt(O.attributes),au("/>")}function Tw(O){mt(O.openingFragment),S0(O,O.children,262144),mt(O.closingFragment)}function i6(O){if(au("<"),rE(O)){const be=S9(O.tagName,O);cb(O.tagName),pE(O,O.typeArguments),O.attributes.properties&&O.attributes.properties.length>0&&Zn(),mt(O.attributes),nF(O.attributes,O),p_(be)}au(">")}function y5(O){He.writeLiteral(O.text)}function d_(O){au("")}function m4(O){S0(O,O.properties,262656)}function Gf(O){mt(O.name),Wp("=",au,O.initializer,Ji)}function jh(O){au("{..."),pi(O.expression),au("}")}function gm(O){let be=!1;return LO((Y==null?void 0:Y.text)||"",O+1,()=>be=!0),be}function tC(O){let be=!1;return TO((Y==null?void 0:Y.text)||"",O+1,()=>be=!0),be}function Lw(O){return gm(O)||tC(O)}function C9(O){var be;if(O.expression||!Fi&&!al(O)&&Lw(O.pos)){const Vt=Y&&!al(O)&&o0(Y,O.pos).line!==o0(Y,O.end).line;Vt&&He.increaseIndent();const Oi=ta(19,O.pos,au,O);mt(O.dotDotDotToken),pi(O.expression),ta(20,((be=O.expression)==null?void 0:be.end)||Oi,au,O),Vt&&He.decreaseIndent()}}function qk(O){jt(O.namespace),au(":"),jt(O.name)}function cb(O){O.kind===80?pi(O):mt(O)}function iC(O){ta(84,O.pos,Pa,O),Zn(),pi(O.expression,bt.parenthesizeExpressionForDisallowedComma),nC(O,O.statements,O.expression.end)}function Zk(O){const be=ta(90,O.pos,Pa,O);nC(O,O.statements,be)}function nC(O,be,Vt){const Oi=be.length===1&&(!Y||al(O)||al(be[0])||Vq(O,be[0],Y));let ku=163969;Oi?(n6(59,Vt,au,O),Zn(),ku&=-130):ta(59,Vt,au,O),S0(O,be,ku)}function Rd(O){Zn(),dD(O.token,Pa),Zn(),S0(O,O.types,528)}function k5(O){const be=ta(85,O.pos,Pa,O);Zn(),O.variableDeclaration&&(ta(21,be,au,O),mt(O.variableDeclaration),ta(22,O.variableDeclaration.end,au,O),Zn()),mt(O.block)}function F5(O){mt(O.name),au(":"),Zn();const be=O.initializer;if(!(vs(be)&1024)){const Vt=iE(be);Gp(Vt.pos)}pi(be,bt.parenthesizeExpressionForDisallowedComma)}function h3(O){mt(O.name),O.objectAssignmentInitializer&&(Zn(),au("="),Zn(),pi(O.objectAssignmentInitializer,bt.parenthesizeExpressionForDisallowedComma))}function pt(O){O.expression&&(ta(26,O.pos,au,O),pi(O.expression,bt.parenthesizeExpressionForDisallowedComma))}function t1(O){mt(O.name),p3(O.initializer,O.name.end,O,bt.parenthesizeExpressionForDisallowedComma)}function p4(O){if(ft("/**"),O.comment){const be=VO(O.comment);if(be){const Vt=be.split(/\r\n?|\n/g);for(const Oi of Vt)Bd(),Zn(),au("*"),Zn(),ft(Oi)}}O.tags&&(O.tags.length===1&&O.tags[0].kind===351&&!O.comment?(Zn(),mt(O.tags[0])):S0(O,O.tags,33)),Zn(),ft("*/")}function Ch(O){ip(O.tagName),m3(O.typeExpression),bg(O.comment)}function Nw(O){ip(O.tagName),mt(O.name),bg(O.comment)}function A5(O){Zn(),au("{"),mt(O.name),au("}")}function uC(O){ip(O.tagName),Zn(),au("{"),mt(O.class),au("}"),bg(O.comment)}function f3(O){ip(O.tagName),m3(O.constraint),Zn(),S0(O,O.typeParameters,528),bg(O.comment)}function az(O){ip(O.tagName),O.typeExpression&&(O.typeExpression.kind===316?m3(O.typeExpression):(Zn(),au("{"),ft("Object"),O.typeExpression.isArrayType&&(au("["),au("]")),au("}"))),O.fullName&&(Zn(),mt(O.fullName)),bg(O.comment),O.typeExpression&&O.typeExpression.kind===329&&Qk(O.typeExpression)}function js(O){ip(O.tagName),O.name&&(Zn(),mt(O.name)),bg(O.comment),db(O.typeExpression)}function Cg(O){bg(O.comment),db(O.typeExpression)}function Yk(O){ip(O.tagName),bg(O.comment)}function Qk(O){S0(O,q.createNodeArray(O.jsDocPropertyTags),33)}function db(O){O.typeParameters&&S0(O,q.createNodeArray(O.typeParameters),33),O.parameters&&S0(O,q.createNodeArray(O.parameters),33),O.type&&(Bd(),Zn(),au("*"),Zn(),mt(O.type))}function hb(O){ip(O.tagName),m3(O.typeExpression),Zn(),O.isBracketed&&au("["),mt(O.name),O.isBracketed&&au("]"),bg(O.comment)}function ip(O){au("@"),mt(O)}function bg(O){const be=VO(O);be&&(Zn(),ft(be))}function m3(O){O&&(Zn(),au("{"),mt(O.type),au("}"))}function Xk(O){Bd();const be=O.statements;if(be.length===0||!Lp(be[0])||al(be[0])){Du(O,be,$r);return}$r(O)}function fE(O){Pw(!!O.hasNoDefaultLib,O.syntheticFileReferences||[],O.syntheticTypeReferences||[],O.syntheticLibReferences||[]);for(const be of O.prepends)if(Ck(be)&&be.syntheticReferences)for(const Vt of be.syntheticReferences)mt(Vt),Bd()}function eF(O){O.isDeclarationFile&&Pw(O.hasNoDefaultLib,O.referencedFiles,O.typeReferenceDirectives,O.libReferenceDirectives)}function Pw(O,be,Vt,Oi){if(O){const ku=He.getTextPos();up('/// '),je&&je.sections.push({pos:ku,end:He.getTextPos(),kind:"no-default-lib"}),Bd()}if(Y&&Y.moduleName&&(up(`/// `),Bd()),Y&&Y.amdDependencies)for(const ku of Y.amdDependencies)ku.name?up(`/// `):up(`/// `),Bd();for(const ku of be){const Jr=He.getTextPos();up(`/// `),je&&je.sections.push({pos:Jr,end:He.getTextPos(),kind:"reference",data:ku.fileName}),Bd()}for(const ku of Vt){const Jr=He.getTextPos(),br=ku.resolutionMode&&ku.resolutionMode!==(Y==null?void 0:Y.impliedNodeFormat)?`resolution-mode="${ku.resolutionMode===99?"import":"require"}"`:"";up(`/// `),je&&je.sections.push({pos:Jr,end:He.getTextPos(),kind:ku.resolutionMode?ku.resolutionMode===99?"type-import":"type-require":"type",data:ku.fileName}),Bd()}for(const ku of Oi){const Jr=He.getTextPos();up(`/// `),je&&je.sections.push({pos:Jr,end:He.getTextPos(),kind:"lib",data:ku.fileName}),Bd()}}function $r(O){const be=O.statements;R1(O),L(O.statements,i1),$i(O);const Vt=$e(be,Oi=>!Lp(Oi));eF(O),S0(O,be,1,void 0,Vt===-1?be.length:Vt),kf(O)}function sr(O){const be=vs(O);!(be&1024)&&O.pos!==O.expression.pos&&Gp(O.expression.pos),pi(O.expression),!(be&2048)&&O.end!==O.expression.end&&qm(O.expression.end)}function mE(O){mb(O,O.elements,528,void 0)}function yf(O,be,Vt,Oi){let ku=!!be;for(let Jr=0;Jr=Vt.length||br===0;if(ko&&Oi&32768){b==null||b(Vt),B==null||B(Vt);return}Oi&15360&&(au(ozt(Oi)),ko&&Vt&&Gp(Vt.pos,!0)),b==null||b(Vt),ko?Oi&1&&!(Ae&&(!be||Y&&ck(be,Y)))?Bd():Oi&256&&!(Oi&524288)&&Zn():np(O,be,Vt,Oi,ku,Jr,br,Vt.hasTrailingComma,Vt),B==null||B(Vt),Oi&15360&&(ko&&Vt&&qm(Vt.end),au(szt(Oi)))}function np(O,be,Vt,Oi,ku,Jr,br,_a,ko){const Ff=(Oi&262144)===0;let $f=Ff;const Sr=iF(be,Vt[Jr],Oi);Sr?(Bd(Sr),$f=!1):Oi&256&&Zn(),Oi&128&&EE();const xE=hzt(O,ku);let gn,d6,N5=!1;for(let g_=0;g_0){if(Oi&131||(EE(),N5=!0),$f&&Oi&60&&!fg(P5.pos)){const Jw=iE(P5);Gp(Jw.pos,!!(Oi&512),!0)}Bd(v3),$f=!1}else gn&&Oi&512&&Zn()}if(d6=vo(P5),$f){const v3=iE(P5);Gp(v3.pos)}else $f=Ff;De=P5.pos,xE(P5,O,ku,g_),N5&&(_E(),N5=!1),gn=P5}const oF=gn?vs(gn):0,EC=Fi||!!(oF&2048),I9=_a&&Oi&64&&Oi&16;I9&&(gn&&!EC?ta(28,gn.end,au,gn):au(",")),gn&&(be?be.end:-1)!==gn.end&&Oi&60&&!EC&&qm(I9&&(ko!=null&&ko.end)?ko.end:gn.end),Oi&128&&_E(),Qe(d6);const sF=u6(be,Vt[Jr+br-1],Oi,ko);sF?Bd(sF):Oi&2097408&&Zn()}function aC(O){He.writeLiteral(O)}function F9(O){He.writeStringLiteral(O)}function sz(O){He.write(O)}function tF(O,be){He.writeSymbol(O,be)}function au(O){He.writePunctuation(O)}function x1(){He.writeTrailingSemicolon(";")}function Pa(O){He.writeKeyword(O)}function sf(O){He.writeOperator(O)}function gE(O){He.writeParameter(O)}function up(O){He.writeComment(O)}function Zn(){He.writeSpace(" ")}function pb(O){He.writeProperty(O)}function oC(O){He.nonEscapingWrite?He.nonEscapingWrite(O):He.write(O)}function Bd(O=1){for(let be=0;be0)}function EE(){He.increaseIndent()}function _E(){He.decreaseIndent()}function n6(O,be,Vt,Oi){return st?dD(O,Vt,be):x3(Oi,O,Vt,be,dD)}function A9(O,be){k&&k(O),be(Jo(O.kind)),T&&T(O)}function dD(O,be,Vt){const Oi=Jo(O);return be(Oi),Vt<0?Vt:Vt+Oi.length}function sC(O,be,Vt){if(vs(O)&1)Zn();else if(Ae){const Oi=g4(O,be,Vt);Oi?Bd(Oi):Zn()}else Bd()}function lC(O){const be=O.split(/\r\n?|\n/g),Vt=Ebe(be);for(const Oi of be){const ku=Vt?Oi.slice(Vt):Oi;ku.length&&(Bd(),ft(ku))}}function E3(O,be){O?(EE(),Bd(O)):be&&Zn()}function p_(O,be){O&&_E(),be&&_E()}function iF(O,be,Vt){if(Vt&2||Ae){if(Vt&65536)return 1;if(be===void 0)return!O||Y&&ck(O,Y)?0:1;if(be.pos===De||be.kind===12)return 0;if(Y&&O&&!fg(O.pos)&&!al(be)&&(!be.parent||Kl(be.parent)===Kl(O)))return Ae?gb(Oi=>Hye(be.pos,O.pos,Y,Oi)):Vq(O,be,Y)?0:1;if(Eb(be,Vt))return 1}return Vt&1?1:0}function hD(O,be,Vt){if(Vt&2||Ae){if(O===void 0||be===void 0||be.kind===12)return 0;if(Y&&!al(O)&&!al(be))return Ae&&lf(O,be)?gb(Oi=>fle(O,be,Y,Oi)):!Ae&&_m(O,be)?$j(O,be,Y)?0:1:Vt&65536?1:0;if(Eb(O,Vt)||Eb(be,Vt))return 1}else if(IP(be))return 1;return Vt&1?1:0}function u6(O,be,Vt,Oi){if(Vt&2||Ae){if(Vt&65536)return 1;if(be===void 0)return!O||Y&&ck(O,Y)?0:1;if(Y&&O&&!fg(O.pos)&&!al(be)&&(!be.parent||be.parent===O)){if(Ae){const ku=Oi&&!fg(Oi.end)?Oi.end:be.end;return gb(Jr=>Kye(ku,O.end,Y,Jr))}return Oye(O,be,Y)?0:1}if(Eb(be,Vt))return 1}return Vt&1&&!(Vt&131072)?1:0}function gb(O){H.assert(!!Ae);const be=O(!0);return be===0?O(!1):be}function S9(O,be){const Vt=Ae&&iF(be,O,0);return Vt&&E3(Vt,!1),!!Vt}function nF(O,be){const Vt=Ae&&u6(be,O,0,void 0);Vt&&Bd(Vt)}function Eb(O,be){if(al(O)){const Vt=IP(O);return Vt===void 0?(be&65536)!==0:Vt}return(be&65536)!==0}function g4(O,be,Vt){return vs(O)&262144?0:(O=bc(O),be=bc(be),Vt=bc(Vt),IP(Vt)?1:Y&&!al(O)&&!al(be)&&!al(Vt)?Ae?gb(Oi=>fle(be,Vt,Y,Oi)):$j(be,Vt,Y)?0:1:0)}function cC(O){return O.statements.length===0&&(!Y||$j(O,O,Y))}function bc(O){for(;O.kind===217&&al(O);)O=O.expression;return O}function hd(O,be){if(ul(O)||Jy(O))return r6(O);if(ns(O)&&O.textSourceNode)return hd(O.textSourceNode,be);const Vt=Y,Oi=!!Vt&&!!O.parent&&!al(O);if(G_(O)){if(!Oi||In(O)!==Kl(Vt))return mu(O)}else if(mg(O)){if(!Oi||In(O)!==Kl(Vt))return MP(O)}else if(H.assertNode(O,m2),!Oi)return O.text;return E2(Vt,O,be)}function B9(O,be,Vt){if(O.kind===11&&O.textSourceNode){const ku=O.textSourceNode;if(at(ku)||Xr(ku)||Rf(ku)||mg(ku)){const Jr=Rf(ku)?ku.text:hd(ku);return Vt?`"${Q0e(Jr)}"`:be||vs(O)&16777216?`"${kv(Jr)}"`:`"${Rj(Jr)}"`}else return B9(ku,be,Vt)}const Oi=(be?1:0)|(Vt?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&t.target===99?8:0);return Sbe(O,Y,Oi)}function R1(O){O&&vs(O)&1048576||(Ne.push(pe),pe=0,Ce.push(ne),ne=void 0,fe.push(xe))}function kf(O){O&&vs(O)&1048576||(pe=Ne.pop(),ne=Ce.pop(),xe=fe.pop())}function _b(O){(!xe||xe===Yu(fe))&&(xe=new Set),xe.add(O)}function E4(O,be){ve.push(Se),Se=O,Be.push(xe),We=be}function dC(){Se=ve.pop(),We=Be.pop()}function w5(O){(!We||We===Yu(Be))&&(We=new Set),We.add(O)}function i1(O){if(O)switch(O.kind){case 241:L(O.statements,i1);break;case 256:case 254:case 246:case 247:i1(O.statement);break;case 245:i1(O.thenStatement),i1(O.elseStatement);break;case 248:case 250:case 249:i1(O.initializer),i1(O.statement);break;case 255:i1(O.caseBlock);break;case 269:L(O.clauses,i1);break;case 296:case 297:L(O.statements,i1);break;case 258:i1(O.tryBlock),i1(O.catchClause),i1(O.finallyBlock);break;case 299:i1(O.variableDeclaration),i1(O.block);break;case 243:i1(O.declarationList);break;case 261:L(O.declarations,i1);break;case 260:case 169:case 208:case 263:rp(O.name);break;case 262:rp(O.name),vs(O)&1048576&&(L(O.parameters,i1),i1(O.body));break;case 206:case 207:L(O.elements,i1);break;case 272:i1(O.importClause);break;case 273:rp(O.name),i1(O.namedBindings);break;case 274:rp(O.name);break;case 280:rp(O.name);break;case 275:L(O.elements,i1);break;case 276:rp(O.propertyName||O.name);break}}function uF(O){if(O)switch(O.kind){case 303:case 304:case 172:case 174:case 177:case 178:rp(O.name);break}}function rp(O){O&&(ul(O)||Jy(O)?r6(O):Fo(O)&&i1(O))}function r6(O){const be=O.emitNode.autoGenerate;if((be.flags&7)===4)return jw(RV(O),Xr(O),be.flags,be.prefix,be.suffix);{const Vt=be.id;return ge[Vt]||(ge[Vt]=lz(O))}}function jw(O,be,Vt,Oi,ku){const Jr=Js(O),br=be?se:oe;return br[Jr]||(br[Jr]=T5(O,be,Vt??0,zB(Oi,r6),zB(ku)))}function P0(O,be){return rF(O)&&!Vw(O,be)&&!ae.has(O)}function Vw(O,be){return be?!!(We!=null&&We.has(O)):!!(xe!=null&&xe.has(O))}function rF(O,be){return Y?UU(Y,O,s):!0}function hC(O,be){for(let Vt=be;Vt&&k2(Vt,be);Vt=Vt.nextContainer)if($E(Vt)&&Vt.locals){const Oi=Vt.locals.get(kl(O));if(Oi&&Oi.flags&3257279)return!1}return!0}function w9(O){switch(O){case"":return pe;case"#":return Se;default:return(ne==null?void 0:ne.get(O))??0}}function Vh(O,be){switch(O){case"":pe=be;break;case"#":Se=be;break;default:ne??(ne=new Map),ne.set(O,be);break}}function _3(O,be,Vt,Oi,ku){Oi.length>0&&Oi.charCodeAt(0)===35&&(Oi=Oi.slice(1));const Jr=Rv(Vt,Oi,"",ku);let br=w9(Jr);if(O&&!(br&O)){const ko=Rv(Vt,Oi,O===268435456?"_i":"_n",ku);if(P0(ko,Vt))return br|=O,Vt?w5(ko):be&&_b(ko),Vh(Jr,br),ko}for(;;){const _a=br&268435455;if(br++,_a!==8&&_a!==13){const ko=_a<26?"_"+String.fromCharCode(97+_a):"_"+(_a-26),Ff=Rv(Vt,Oi,ko,ku);if(P0(Ff,Vt))return Vt?w5(Ff):be&&_b(Ff),Vh(Jr,br),Ff}}}function fD(O,be=P0,Vt,Oi,ku,Jr,br){if(O.length>0&&O.charCodeAt(0)===35&&(O=O.slice(1)),Jr.length>0&&Jr.charCodeAt(0)===35&&(Jr=Jr.slice(1)),Vt){const ko=Rv(ku,Jr,O,br);if(be(ko,ku))return ku?w5(ko):Oi?_b(ko):ae.add(ko),ko}O.charCodeAt(O.length-1)!==95&&(O+="_");let _a=1;for(;;){const ko=Rv(ku,Jr,O+_a,br);if(be(ko,ku))return ku?w5(ko):Oi?_b(ko):ae.add(ko),ko;_a++}}function Db(O){return fD(O,rF,!0,!1,!1,"","")}function Em(O){const be=hd(O.name);return hC(be,ar(O,$E))?be:fD(be,P0,!1,!1,!1,"","")}function T9(O){const be=q8(O),Vt=ns(be)?wbe(be.text):"module";return fD(Vt,P0,!1,!1,!1,"","")}function a6(){return fD("default",P0,!1,!1,!1,"","")}function Um(){return fD("class",P0,!1,!1,!1,"","")}function xb(O,be,Vt,Oi){return at(O.name)?jw(O.name,be):_3(0,!1,be,Vt,Oi)}function T5(O,be,Vt,Oi,ku){switch(O.kind){case 80:case 81:return fD(hd(O),P0,!!(Vt&16),!!(Vt&8),be,Oi,ku);case 267:case 266:return H.assert(!Oi&&!ku&&!be),Em(O);case 272:case 278:return H.assert(!Oi&&!ku&&!be),T9(O);case 262:case 263:{H.assert(!Oi&&!ku&&!be);const Jr=O.name;return Jr&&!ul(Jr)?T5(Jr,!1,Vt,Oi,ku):a6()}case 277:return H.assert(!Oi&&!ku&&!be),a6();case 231:return H.assert(!Oi&&!ku&&!be),Um();case 174:case 177:case 178:return xb(O,be,Oi,ku);case 167:return _3(0,!0,be,Oi,ku);default:return _3(0,!1,be,Oi,ku)}}function lz(O){const be=O.emitNode.autoGenerate,Vt=zB(be.prefix,r6),Oi=zB(be.suffix);switch(be.flags&7){case 1:return _3(0,!!(be.flags&8),Xr(O),Vt,Oi);case 2:return H.assertNode(O,at),_3(268435456,!!(be.flags&8),!1,Vt,Oi);case 3:return fD(mu(O),be.flags&32?rF:P0,!!(be.flags&16),!!(be.flags&8),Xr(O),Vt,Oi)}return H.fail(`Unsupported GeneratedIdentifierKind: ${H.formatEnum(be.flags&7,uU,!0)}.`)}function L9(O,be){const Vt=Oe(2,O,be),Oi=Li,ku=ji,Jr=xn;N9(be),Vt(O,be),P9(be,Oi,ku,Jr)}function N9(O){const be=vs(O),Vt=iE(O);fC(O,be,Vt.pos,Vt.end),be&4096&&(Fi=!0)}function P9(O,be,Vt,Oi){const ku=vs(O),Jr=iE(O);ku&4096&&(Fi=!1),Jf(O,ku,Jr.pos,Jr.end,be,Vt,Oi);const br=Hke(O);br&&Jf(O,ku,br.pos,br.end,be,Vt,Oi)}function fC(O,be,Vt,Oi){Fr(),Ni=!1;const ku=Vt<0||(be&1024)!==0||O.kind===12,Jr=Oi<0||(be&2048)!==0||O.kind===12;(Vt>0||Oi>0)&&Vt!==Oi&&(ku||vb(Vt,O.kind!==359),(!ku||Vt>=0&&be&1024)&&(Li=Vt),(!Jr||Oi>=0&&be&2048)&&(ji=Oi,O.kind===261&&(xn=Oi))),L(EB(O),D3),Ba()}function Jf(O,be,Vt,Oi,ku,Jr,br){Fr();const _a=Oi<0||(be&2048)!==0||O.kind===12;L(EV(O),M9),(Vt>0||Oi>0)&&Vt!==Oi&&(Li=ku,ji=Jr,xn=br,!_a&&O.kind!==359&&ap(Oi)),Ba()}function D3(O){(O.hasLeadingNewline||O.kind===2)&&He.writeLine(),z9(O),O.hasTrailingNewLine||O.kind===2?He.writeLine():He.writeSpace(" ")}function M9(O){He.isAtStartOfLine()||He.writeSpace(" "),z9(O),O.hasTrailingNewLine&&He.writeLine()}function z9(O){const be=Vs(O),Vt=O.kind===3?t7(be):void 0;aB(be,Vt,He,0,be.length,j)}function Vs(O){return O.kind===3?`/*${O.text}*/`:`//${O.text}`}function Du(O,be,Vt){Fr();const{pos:Oi,end:ku}=be,Jr=vs(O),br=Oi<0||(Jr&1024)!==0,_a=Fi||ku<0||(Jr&2048)!==0;br||Kw(be),Ba(),Jr&4096&&!Fi?(Fi=!0,Vt(O),Fi=!1):Vt(O),Fr(),_a||(vb(be.end,!0),Ni&&!He.isAtStartOfLine()&&He.writeLine()),Ba()}function _m(O,be){return O=Kl(O),O.parent&&O.parent===Kl(be).parent}function lf(O,be){if(be.pos-1&&Oi.indexOf(be)===ku+1}function vb(O,be){Ni=!1,be?O===0&&(Y!=null&&Y.isDeclarationFile)?bb(O,mC):bb(O,o6):O===0&&bb(O,Hw)}function Hw(O,be,Vt,Oi,ku){pC(O,be)&&o6(O,be,Vt,Oi,ku)}function mC(O,be,Vt,Oi,ku){pC(O,be)||o6(O,be,Vt,Oi,ku)}function Cb(O,be){return t.onlyPrintJsDocStyle?Gce(O,be)||qU(O,be):!0}function o6(O,be,Vt,Oi,ku){!Y||!Cb(Y.text,O)||(Ni||(yye(_i(),He,ku,O),Ni=!0),DE(O),aB(Y.text,_i(),He,O,be,j),DE(be),Oi?He.writeLine():Vt===3&&He.writeSpace(" "))}function qm(O){Fi||O===-1||vb(O,!0)}function ap(O){Nc(O,s6)}function s6(O,be,Vt,Oi){!Y||!Cb(Y.text,O)||(He.isAtStartOfLine()||He.writeSpace(" "),DE(O),aB(Y.text,_i(),He,O,be,j),DE(be),Oi&&He.writeLine())}function Gp(O,be,Vt){Fi||(Fr(),Nc(O,be?s6:Vt?op:L5),Ba())}function op(O,be,Vt){Y&&(DE(O),aB(Y.text,_i(),He,O,be,j),DE(be),Vt===2&&He.writeLine())}function L5(O,be,Vt,Oi){Y&&(DE(O),aB(Y.text,_i(),He,O,be,j),DE(be),Oi?He.writeLine():He.writeSpace(" "))}function bb(O,be){Y&&(Li===-1||O!==Li)&&(cz(O)?_4(be):TO(Y.text,O,be,O))}function Nc(O,be){Y&&(ji===-1||O!==ji&&O!==xn)&&LO(Y.text,O,be)}function cz(O){return rn!==void 0&&Cr(rn).nodePos===O}function _4(O){if(!Y)return;const be=Cr(rn).detachedCommentEndPos;rn.length-1?rn.pop():rn=void 0,TO(Y.text,be,O,be)}function Kw(O){const be=Y&&Fye(Y.text,_i(),He,O1,O,j,Fi);be&&(rn?rn.push(be):rn=[be])}function O1(O,be,Vt,Oi,ku,Jr){!Y||!Cb(Y.text,Oi)||(DE(Oi),aB(O,be,Vt,Oi,ku,Jr),DE(ku))}function pC(O,be){return!!Y&&l0e(Y.text,O,be)}function yb(O){return O.parsedSourceMap===void 0&&O.sourceMapText!==void 0&&(O.parsedSourceMap=Kde(O.sourceMapText)||!1),O.parsedSourceMap||void 0}function aF(O,be){const Vt=Oe(3,O,be);Ww(be),Vt(O,be),D4(be)}function Ww(O){const be=vs(O),Vt=wv(O);if(Wse(O)){H.assertIsDefined(O.parent,"UnparsedNodes must have parent pointers");const Oi=yb(O.parent);Oi&&St&&St.appendSourceMap(He.getLine(),He.getColumn(),Oi,O.parent.sourceMapPath,O.parent.getLineAndCharacterOfPosition(O.pos),O.parent.getLineAndCharacterOfPosition(O.end))}else{const Oi=Vt.source||It;O.kind!==359&&!(be&32)&&Vt.pos>=0&&l6(Vt.source||It,Rl(Oi,Vt.pos)),be&128&&(st=!0)}}function D4(O){const be=vs(O),Vt=wv(O);Wse(O)||(be&128&&(st=!1),O.kind!==359&&!(be&64)&&Vt.end>=0&&l6(Vt.source||It,Vt.end))}function Rl(O,be){return O.skipTrivia?O.skipTrivia(be):ms(O.text,be)}function DE(O){if(st||fg(O)||c6(It))return;const{line:be,character:Vt}=o0(It,O);St.addMapping(He.getLine(),He.getColumn(),ti,be,Vt,void 0)}function l6(O,be){if(O!==It){const Vt=It,Oi=ti;gC(O),DE(be),Gw(Vt,Oi)}else DE(be)}function x3(O,be,Vt,Oi,ku){if(st||O&&pq(O))return ku(be,Vt,Oi);const Jr=O&&O.emitNode,br=Jr&&Jr.flags||0,_a=Jr&&Jr.tokenSourceMapRanges&&Jr.tokenSourceMapRanges[be],ko=_a&&_a.source||It;return Oi=Rl(ko,_a?_a.pos:Oi),!(br&256)&&Oi>=0&&l6(ko,Oi),Oi=ku(be,Vt,Oi),_a&&(Oi=_a.end),!(br&512)&&Oi>=0&&l6(ko,Oi),Oi}function gC(O){if(!st){if(It=O,O===ht){ti=Ut;return}c6(O)||(ti=St.addSource(O.fileName),t.inlineSources&&St.setSourceContent(ti,O.text),ht=O,Ut=ti)}}function Gw(O,be){It=O,ti=be}function c6(O){return Pl(O.fileName,".json")}}function azt(){const t=[];return t[1024]=["{","}"],t[2048]=["(",")"],t[4096]=["<",">"],t[8192]=["[","]"],t}function ozt(t){return B7e[t&15360][0]}function szt(t){return B7e[t&15360][1]}function lzt(t,u,s,d){u(t)}function czt(t,u,s,d){u(t,s.select(d))}function dzt(t,u,s,d){u(t,s)}function hzt(t,u){return t.length===1?lzt:typeof u=="object"?czt:dzt}var B7e,pQ,h1e,Z2,f1e,pH,fzt=o({"src/compiler/emitter.ts"(){Ao(),Ao(),Hy(),B7e=azt(),pQ={hasGlobalName:lo,getReferencedExportContainer:lo,getReferencedImportDeclaration:lo,getReferencedDeclarationWithCollidingName:lo,isDeclarationWithCollidingName:lo,isValueAliasDeclaration:lo,isReferencedAliasDeclaration:lo,isTopLevelValueImportEqualsWithEntityName:lo,getNodeCheckFlags:lo,isDeclarationVisible:lo,isLateBound:t=>!1,collectLinkedAliases:lo,isImplementationOfOverload:lo,isRequiredInitializedParameter:lo,isOptionalUninitializedParameterProperty:lo,isExpandoFunctionDeclaration:lo,getPropertiesOfContainerFunction:lo,createTypeOfDeclaration:lo,createReturnTypeOfSignatureDeclaration:lo,createTypeOfExpression:lo,createLiteralConstValue:lo,isSymbolAccessible:lo,isEntityNameVisible:lo,getConstantValue:lo,getReferencedValueDeclaration:lo,getReferencedValueDeclarations:lo,getTypeReferenceSerializationKind:lo,isOptionalParameter:lo,moduleExportsSomeValue:lo,isArgumentsLocalBinding:lo,getExternalModuleFileFromDeclaration:lo,getTypeReferenceDirectivesForEntityName:lo,getTypeReferenceDirectivesForSymbol:lo,isLiteralConstDeclaration:lo,getJsxFactoryEntity:lo,getJsxFragmentFactoryEntity:lo,getAllAccessorDeclarations:lo,getSymbolOfExternalModuleSpecifier:lo,isBindingCapturedByNode:lo,getDeclarationStatementsForSourceFile:lo,isImportRequiredByAugmentation:lo,tryFindAmbientModule:lo},h1e=Nh(()=>Kv({})),Z2=Nh(()=>Kv({removeComments:!0})),f1e=Nh(()=>Kv({removeComments:!0,neverAsciiEscape:!0})),pH=Nh(()=>Kv({removeComments:!0,omitTrailingSemicolon:!0}))}});function gQ(t,u,s){if(!t.getDirectories||!t.readDirectory)return;const d=new Map,f=T1(s);return{useCaseSensitiveFileNames:s,fileExists:z,readFile:(ne,ve)=>t.readFile(ne,ve),directoryExists:t.directoryExists&&j,getDirectories:K,readDirectory:Y,createDirectory:t.createDirectory&&J,writeFile:t.writeFile&&M,addOrDeleteFileOrDirectory:se,addOrDeleteFile:ge,clearCache:Ce,realpath:t.realpath&&oe};function p(ne){return H0(ne,u,f)}function E(ne){return d.get(Pd(ne))}function v(ne){const ve=E(dr(ne));return ve&&(ve.sortedAndCanonicalizedFiles||(ve.sortedAndCanonicalizedFiles=ve.files.map(f).sort(),ve.sortedAndCanonicalizedDirectories=ve.directories.map(f).sort()),ve)}function b(ne){return Fc(Go(ne))}function B(ne,ve){var Se;if(!t.realpath||Pd(p(t.realpath(ne)))===ve){const Ne={files:Kt(t.readDirectory(ne,void 0,void 0,["*.*"]),b)||[],directories:t.getDirectories(ne)||[]};return d.set(Pd(ve),Ne),Ne}if((Se=t.directoryExists)!=null&&Se.call(t,ne))return d.set(ve,!1),!1}function k(ne,ve){ve=Pd(ve);const Se=E(ve);if(Se)return Se;try{return B(ne,ve)}catch{H.assert(!d.has(Pd(ve)));return}}function T(ne,ve){return Hl(ne,ve,el,ch)>=0}function M(ne,ve,Se){const Ne=p(ne),pe=v(Ne);return pe&&ae(pe,b(ne),!0),t.writeFile(ne,ve,Se)}function z(ne){const ve=p(ne),Se=v(ve);return Se&&T(Se.sortedAndCanonicalizedFiles,f(b(ne)))||t.fileExists(ne)}function j(ne){const ve=p(ne);return d.has(Pd(ve))||t.directoryExists(ne)}function J(ne){const ve=p(ne),Se=v(ve);if(Se){const Ne=b(ne),pe=f(Ne),fe=Se.sortedAndCanonicalizedDirectories;Nt(fe,pe,ch)&&Se.directories.push(Ne)}t.createDirectory(ne)}function K(ne){const ve=p(ne),Se=k(ne,ve);return Se?Se.directories.slice():t.getDirectories(ne)}function Y(ne,ve,Se,Ne,pe){const fe=p(ne),xe=k(ne,fe);let Be;if(xe!==void 0)return Fle(ne,ve,Se,Ne,s,u,pe,We,oe);return t.readDirectory(ne,ve,Se,Ne,pe);function We(De){const He=p(De);if(He===fe)return xe||Ae(De,He);const Ge=k(De,He);return Ge!==void 0?Ge||Ae(De,He):DZ}function Ae(De,He){if(Be&&He===fe)return Be;const Ge={files:Kt(t.readDirectory(De,void 0,void 0,["*.*"]),b)||_t,directories:t.getDirectories(De)||_t};return He===fe&&(Be=Ge),Ge}}function oe(ne){return t.realpath?t.realpath(ne):ne}function se(ne,ve){if(E(ve)!==void 0){Ce();return}const Ne=v(ve);if(!Ne)return;if(!t.directoryExists){Ce();return}const pe=b(ne),fe={fileExists:t.fileExists(ve),directoryExists:t.directoryExists(ve)};return fe.directoryExists||T(Ne.sortedAndCanonicalizedDirectories,f(pe))?Ce():ae(Ne,pe,fe.fileExists),fe}function ge(ne,ve,Se){if(Se===1)return;const Ne=v(ve);Ne&&ae(Ne,b(ne),Se===0)}function ae(ne,ve,Se){const Ne=ne.sortedAndCanonicalizedFiles,pe=f(ve);if(Se)Nt(Ne,pe,ch)&&ne.files.push(ve);else{const fe=Hl(Ne,pe,el,ch);if(fe>=0){Ne.splice(fe,1);const xe=ne.files.findIndex(Be=>f(Be)===pe);ne.files.splice(xe,1)}}}function Ce(){d.clear()}}function EQ(t,u,s,d,f){var p;const E=og(((p=u==null?void 0:u.configFile)==null?void 0:p.extendedSourceFiles)||_t,f);s.forEach((v,b)=>{E.has(b)||(v.projects.delete(t),v.close())}),E.forEach((v,b)=>{const B=s.get(b);B?B.projects.add(t):s.set(b,{projects:new Set([t]),watcher:d(v,b),close:()=>{const k=s.get(b);!k||k.projects.size!==0||(k.watcher.close(),s.delete(b))}})})}function m1e(t,u){u.forEach(s=>{s.projects.delete(t)&&s.close()})}function _Q(t,u,s){t.delete(u)&&t.forEach(({extendedResult:d},f)=>{var p;(p=d.extendedSourceFiles)!=null&&p.some(E=>s(E)===u)&&_Q(t,f,s)})}function ttt(t,u,s){const d=new Map(t);sB(u,d,{createNewValue:s,onDeleteValue:dg})}function p1e(t,u,s){const d=t.getMissingFilePaths(),f=og(d,el,G3);sB(u,f,{createNewValue:s,onDeleteValue:dg})}function gH(t,u,s){sB(t,u,{createNewValue:d,onDeleteValue:Om,onExistingValue:f});function d(p,E){return{watcher:s(p,E),flags:E}}function f(p,E,v){p.flags!==E&&(p.watcher.close(),t.set(v,d(v,E)))}}function EH({watchedDirPath:t,fileOrDirectory:u,fileOrDirectoryPath:s,configFileName:d,options:f,program:p,extraFileExtensions:E,currentDirectory:v,useCaseSensitiveFileNames:b,writeLog:B,toPath:k,getScriptKind:T}){const M=LQ(s);if(!M)return B(`Project: ${d} Detected ignored path: ${u}`),!0;if(s=M,s===t)return!1;if(XA(s)&&!(cke(u,f,E)||Y()))return B(`Project: ${d} Detected file add/remove of non supported extension: ${u}`),!0;if(ZFe(u,f.configFile.configFileSpecs,$a(dr(d),v),b,v))return B(`Project: ${d} Detected excluded file: ${u}`),!0;if(!p||b0(f)||f.outDir)return!1;if(Xd(s)){if(f.declarationDir)return!1}else if(!Oc(s,gB))return!1;const z=Eh(s),j=Ha(p)?void 0:mzt(p)?p.getProgramOrUndefined():p,J=!j&&!Ha(p)?p:void 0;if(K(z+".ts")||K(z+".tsx"))return B(`Project: ${d} Detected output file: ${u}`),!0;return!1;function K(oe){return j?!!j.getSourceFileByPath(oe):J?J.getState().fileInfos.has(oe):!!Le(p,se=>k(se)===oe)}function Y(){if(!T)return!1;switch(T(u)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Av(f);case 6:return L2(f);case 0:return!1}}}function mzt(t){return!!t.getState}function w7e(t,u){return t?t.isEmittedFile(u):!1}function g1e(t,u,s,d){m2e(u===2?s:Ms);const f={watchFile:(J,K,Y,oe)=>t.watchFile(J,K,Y,oe),watchDirectory:(J,K,Y,oe)=>t.watchDirectory(J,K,(Y&1)!==0,oe)},p=u!==0?{watchFile:z("watchFile"),watchDirectory:z("watchDirectory")}:void 0,E=u===2?{watchFile:T,watchDirectory:M}:p||f,v=u===2?k:ew;return{watchFile:b("watchFile"),watchDirectory:b("watchDirectory")};function b(J){return(K,Y,oe,se,ge,ae)=>{var Ce;return AY(K,J==="watchFile"?se==null?void 0:se.excludeFiles:se==null?void 0:se.excludeDirectories,B(),((Ce=t.getCurrentDirectory)==null?void 0:Ce.call(t))||"")?v(K,oe,se,ge,ae):E[J].call(void 0,K,Y,oe,se,ge,ae)}}function B(){return typeof t.useCaseSensitiveFileNames=="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function k(J,K,Y,oe,se){return s(`ExcludeWatcher:: Added:: ${j(J,K,Y,oe,se,d)}`),{close:()=>s(`ExcludeWatcher:: Close:: ${j(J,K,Y,oe,se,d)}`)}}function T(J,K,Y,oe,se,ge){s(`FileWatcher:: Added:: ${j(J,Y,oe,se,ge,d)}`);const ae=p.watchFile(J,K,Y,oe,se,ge);return{close:()=>{s(`FileWatcher:: Close:: ${j(J,Y,oe,se,ge,d)}`),ae.close()}}}function M(J,K,Y,oe,se,ge){const ae=`DirectoryWatcher:: Added:: ${j(J,Y,oe,se,ge,d)}`;s(ae);const Ce=V0(),ne=p.watchDirectory(J,K,Y,oe,se,ge),ve=V0()-Ce;return s(`Elapsed:: ${ve}ms ${ae}`),{close:()=>{const Se=`DirectoryWatcher:: Close:: ${j(J,Y,oe,se,ge,d)}`;s(Se);const Ne=V0();ne.close();const pe=V0()-Ne;s(`Elapsed:: ${pe}ms ${Se}`)}}}function z(J){return(K,Y,oe,se,ge,ae)=>f[J].call(void 0,K,(...Ce)=>{const ne=`${J==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${Ce[0]} ${Ce[1]!==void 0?Ce[1]:""}:: ${j(K,oe,se,ge,ae,d)}`;s(ne);const ve=V0();Y.call(void 0,...Ce);const Se=V0()-ve;s(`Elapsed:: ${Se}ms ${ne}`)},oe,se,ge,ae)}function j(J,K,Y,oe,se,ge){return`WatchInfo: ${J} ${K} ${JSON.stringify(Y)} ${ge?ge(oe,se):se===void 0?oe:`${oe} ${se}`}`}}function _H(t){const u=t==null?void 0:t.fallbackPolling;return{watchFile:u!==void 0?u:1}}function Om(t){t.watcher.close()}var E1e,_1e,pzt=o({"src/compiler/watchUtilities.ts"(){Ao(),E1e=(t=>(t[t.Update=0]="Update",t[t.RootNamesAndUpdate=1]="RootNamesAndUpdate",t[t.Full=2]="Full",t))(E1e||{}),_1e=(t=>(t[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",t))(_1e||{})}});function T7e(t,u,s="tsconfig.json"){return $g(t,d=>{const f=hr(d,s);return u(f)?f:void 0})}function DQ(t,u){const s=dr(u),d=Nf(t)?t:hr(s,t);return Go(d)}function L7e(t,u,s){let d;return L(t,p=>{const E=yO(p,u);if(E.pop(),!d){d=E;return}const v=Math.min(d.length,E.length);for(let b=0;b{let E;try{il("beforeIORead"),E=t(d,u().charset),il("afterIORead"),wm("I/O Read","beforeIORead","afterIORead")}catch(v){p&&p(v.message),E=""}return E!==void 0?VV(d,E,f,s):void 0}}function x1e(t,u,s){return(d,f,p,E)=>{try{il("beforeIOWrite"),ile(d,f,p,t,u,s),il("afterIOWrite"),wm("I/O Write","beforeIOWrite","afterIOWrite")}catch(v){E&&E(v.message)}}}function v1e(t,u,s=l1){const d=new Map,f=T1(s.useCaseSensitiveFileNames);function p(k){return d.has(k)?!0:(B.directoryExists||s.directoryExists)(k)?(d.set(k,!0),!0):!1}function E(){return dr(Go(s.getExecutingFilePath()))}const v=r5(t),b=s.realpath&&(k=>s.realpath(k)),B={getSourceFile:D1e(k=>B.readFile(k),()=>t,u),getDefaultLibLocation:E,getDefaultLibFileName:k=>hr(E(),PO(k)),writeFile:x1e((k,T,M)=>s.writeFile(k,T,M),k=>(B.createDirectory||s.createDirectory)(k),k=>p(k)),getCurrentDirectory:Nh(()=>s.getCurrentDirectory()),useCaseSensitiveFileNames:()=>s.useCaseSensitiveFileNames,getCanonicalFileName:f,getNewLine:()=>v,fileExists:k=>s.fileExists(k),readFile:k=>s.readFile(k),trace:k=>s.write(k+v),directoryExists:k=>s.directoryExists(k),getEnvironmentVariable:k=>s.getEnvironmentVariable?s.getEnvironmentVariable(k):"",getDirectories:k=>s.getDirectories(k),realpath:b,readDirectory:(k,T,M,z,j)=>s.readDirectory(k,T,M,z,j),createDirectory:k=>s.createDirectory(k),createHash:wo(s,s.createHash)};return B}function DH(t,u,s){const d=t.readFile,f=t.fileExists,p=t.directoryExists,E=t.createDirectory,v=t.writeFile,b=new Map,B=new Map,k=new Map,T=new Map,M=J=>{const K=u(J),Y=b.get(K);return Y!==void 0?Y!==!1?Y:void 0:z(K,J)},z=(J,K)=>{const Y=d.call(t,K);return b.set(J,Y!==void 0?Y:!1),Y};t.readFile=J=>{const K=u(J),Y=b.get(K);return Y!==void 0?Y!==!1?Y:void 0:!Pl(J,".json")&&!F7e(J)?d.call(t,J):z(K,J)};const j=s?(J,K,Y,oe)=>{const se=u(J),ge=typeof K=="object"?K.impliedNodeFormat:void 0,ae=T.get(ge),Ce=ae==null?void 0:ae.get(se);if(Ce)return Ce;const ne=s(J,K,Y,oe);return ne&&(Xd(J)||Pl(J,".json"))&&T.set(ge,(ae||new Map).set(se,ne)),ne}:void 0;return t.fileExists=J=>{const K=u(J),Y=B.get(K);if(Y!==void 0)return Y;const oe=f.call(t,J);return B.set(K,!!oe),oe},v&&(t.writeFile=(J,K,...Y)=>{const oe=u(J);B.delete(oe);const se=b.get(oe);se!==void 0&&se!==K?(b.delete(oe),T.forEach(ge=>ge.delete(oe))):j&&T.forEach(ge=>{const ae=ge.get(oe);ae&&ae.text!==K&&ge.delete(oe)}),v.call(t,J,K,...Y)}),p&&(t.directoryExists=J=>{const K=u(J),Y=k.get(K);if(Y!==void 0)return Y;const oe=p.call(t,J);return k.set(K,!!oe),oe},E&&(t.createDirectory=J=>{const K=u(J);k.delete(K),E.call(t,J)})),{originalReadFile:d,originalFileExists:f,originalDirectoryExists:p,originalCreateDirectory:E,originalWriteFile:v,getSourceFileWithCache:j,readFileWithCache:M}}function itt(t,u,s){let d;return d=kn(d,t.getConfigFileParsingDiagnostics()),d=kn(d,t.getOptionsDiagnostics(s)),d=kn(d,t.getSyntacticDiagnostics(u,s)),d=kn(d,t.getGlobalDiagnostics(s)),d=kn(d,t.getSemanticDiagnostics(u,s)),l4(t.getCompilerOptions())&&(d=kn(d,t.getDeclarationDiagnostics(u,s))),k8(d||_t)}function ntt(t,u){let s="";for(const d of t)s+=C1e(d,u);return s}function C1e(t,u){const s=`${Ky(t)} TS${t.code}: ${sE(t.messageText,u.getNewLine())}${u.getNewLine()}`;if(t.file){const{line:d,character:f}=o0(t.file,t.start),p=t.file.fileName;return`${BN(p,u.getCurrentDirectory(),v=>u.getCanonicalFileName(v))}(${d+1},${f+1}): `+s}return s}function utt(t){switch(t){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return H.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function Y2(t,u){return u+t+I7e}function rtt(t,u,s,d,f,p){const{line:E,character:v}=o0(t,u),{line:b,character:B}=o0(t,u+s),k=o0(t,t.text.length).line,T=b-E>=4;let M=(b+1+"").length;T&&(M=Math.max(R7e.length,M));let z="";for(let j=E;j<=b;j++){z+=p.getNewLine(),T&&E+1s.getCanonicalFileName(b)):t.fileName;let v="";return v+=d(E,"\x1B[96m"),v+=":",v+=d(`${f+1}`,"\x1B[93m"),v+=":",v+=d(`${p+1}`,"\x1B[93m"),v}function P7e(t,u){let s="";for(const d of t){if(d.file){const{file:f,start:p}=d;s+=b1e(f,p,u),s+=" - "}if(s+=Y2(Ky(d),utt(d.category)),s+=Y2(` TS${d.code}: `,"\x1B[90m"),s+=sE(d.messageText,u.getNewLine()),d.file&&d.code!==F.File_appears_to_be_binary.code&&(s+=u.getNewLine(),s+=rtt(d.file,d.start,d.length,"",utt(d.category),u)),d.relatedInformation){s+=u.getNewLine();for(const{file:f,start:p,length:E,messageText:v}of d.relatedInformation)f&&(s+=u.getNewLine(),s+=stt+b1e(f,p,u),s+=rtt(f,p,E,O7e,"\x1B[96m",u)),s+=u.getNewLine(),s+=O7e+sE(v,u.getNewLine())}s+=u.getNewLine()}return s}function sE(t,u,s=0){if(Ja(t))return t;if(t===void 0)return"";let d="";if(s){d+=u;for(let f=0;fHB(p,t,s,d,f,u,E)}}function z7e(t){return Ja(t)?t:Jg(t.fileName)}function vQ(t,u,s,d,f){return{nameAndMode:SQ,resolve:(p,E)=>cAe(p,t,s,d,u,f,E)}}function xH(t,u,s,d,f,p,E,v){if(t.length===0)return _t;const b=[],B=new Map,k=v(u,s,d,p,E);for(const T of t){const M=k.nameAndMode.getName(T),z=k.nameAndMode.getMode(T,f),j=cM(M,z);let J=B.get(j);J||B.set(j,J=k.resolve(M,z)),b.push(J)}return b}function A1e(t,u){return CQ(void 0,t,(s,d)=>s&&u(s,d))}function CQ(t,u,s,d){let f;return p(t,u,void 0);function p(E,v,b){if(d){const B=d(E,b);if(B)return B}return L(v,(B,k)=>{if(B&&(f!=null&&f.has(B.sourceFile.path)))return;const T=s(B,b,k);return T||!B?T:((f||(f=new Set)).add(B.sourceFile.path),p(B.commandLine.projectReferences,B.references,B))})}}function bQ(t,u,s){const d=t.configFilePath?dr(t.configFilePath):u;return hr(d,`__lib_node_modules_lookup_${s}__.ts`)}function S1e(t){const u=t.split(".");let s=u[1],d=2;for(;u[d]&&u[d]!=="d";)s+=(d===2?"/":"-")+u[d],d++;return"@typescript/lib-"+s}function att(t){const u=Jg(t.fileName),s=SY.get(u);return{libName:u,libFileName:s}}function Wv(t){switch(t==null?void 0:t.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function UB(t){return t.pos!==void 0}function kM(t,u){var s,d,f,p;const E=H.checkDefined(t.getSourceFileByPath(u.file)),{kind:v,index:b}=u;let B,k,T,M;switch(v){case 3:const z=AQ(E,b);if(T=(d=(s=t.getResolvedModule(E,z.text,y1e(E,b)))==null?void 0:s.resolvedModule)==null?void 0:d.packageId,z.pos===-1)return{file:E,packageId:T,text:z.text};B=ms(E.text,z.pos),k=z.end;break;case 4:({pos:B,end:k}=E.referencedFiles[b]);break;case 5:({pos:B,end:k,resolutionMode:M}=E.typeReferenceDirectives[b]),T=(p=(f=t.getResolvedTypeReferenceDirective(E,Jg(E.typeReferenceDirectives[b].fileName),M||E.impliedNodeFormat))==null?void 0:f.resolvedTypeReferenceDirective)==null?void 0:p.packageId;break;case 7:({pos:B,end:k}=E.libReferenceDirectives[b]);break;default:return H.assertNever(v)}return{file:E,pos:B,end:k,packageId:T}}function B1e(t,u,s,d,f,p,E,v,b,B){if(!t||v!=null&&v()||!Hn(t.getRootFileNames(),u))return!1;let k;if(!Hn(t.getProjectReferences(),B,j)||t.getSourceFiles().some(M)||t.getMissingFilePaths().some(f))return!1;const T=t.getCompilerOptions();if(!ple(T,s)||t.resolvedLibReferences&&d1(t.resolvedLibReferences,(K,Y)=>E(Y)))return!1;if(T.configFile&&s.configFile)return T.configFile.text===s.configFile.text;return!0;function M(K){return!z(K)||p(K.path)}function z(K){return K.version===d(K.resolvedPath,K.fileName)}function j(K,Y,oe){return r0e(K,Y)&&J(t.getResolvedProjectReferences()[oe],K)}function J(K,Y){if(K){if(Ft(k,K))return!0;const se=qB(Y),ge=b(se);return!ge||K.commandLine.options.configFile!==ge.options.configFile||!Hn(K.commandLine.fileNames,ge.fileNames)?!1:((k||(k=[])).push(K),!L(K.references,(ae,Ce)=>!J(ae,K.commandLine.projectReferences[Ce])))}const oe=qB(Y);return!b(oe)}}function wk(t){return t.options.configFile?[...t.options.configFile.parseDiagnostics,...t.errors]:t.errors}function vH(t,u,s,d){const f=w1e(t,u,s,d);return typeof f=="object"?f.impliedNodeFormat:f}function w1e(t,u,s,d){switch(m1(d)){case 3:case 99:return Oc(t,[".d.mts",".mts",".mjs"])?99:Oc(t,[".d.cts",".cts",".cjs"])?1:Oc(t,[".d.ts",".ts",".tsx",".js",".jsx"])?f():void 0;default:return}function f(){const p=nH(u,s,d),E=[];p.failedLookupLocations=E,p.affectingLocations=E;const v=uH(t,p);return{impliedNodeFormat:(v==null?void 0:v.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:E,packageJsonScope:v}}}function gzt(t,u){return t?z8(t.getCompilerOptions(),u,wY):!1}function Ezt(t,u,s,d,f,p){return{rootNames:t,options:u,host:s,oldProgram:d,configFileParsingDiagnostics:f,typeScriptVersion:p}}function yQ(t,u,s,d,f){var p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge;const ae=Ha(t)?Ezt(t,u,s,d,f):t,{rootNames:Ce,options:ne,configFileParsingDiagnostics:ve,projectReferences:Se,typeScriptVersion:Ne}=ae;let{oldProgram:pe}=ae;const fe=Nh(()=>tp("ignoreDeprecations",F.Invalid_value_for_ignoreDeprecations));let xe,Be,We,Ae,De,He,Ge;const ft=new Map;let Ze=Bm();const je={},Ke={};let Gt=J7(),Yt,Ie,st,St,It,ti,ht,Ut,Li,ji;const xn=typeof ne.maxNodeModuleJsDepth=="number"?ne.maxNodeModuleJsDepth:0;let Un=0;const rn=new Map,Ni=new Map;(p=$n)==null||p.push($n.Phase.Program,"createProgram",{configFilePath:ne.configFilePath,rootDir:ne.rootDir},!0),il("beforeProgram");const Fi=ae.host||N7e(ne),Qu=FQ(Fi);let aa=ne.noLib;const Fr=Nh(()=>Fi.getDefaultLibFileName(ne)),Ba=Fi.getDefaultLibLocation?Fi.getDefaultLibLocation():dr(Fr()),bt=nB(),jn=Fi.getCurrentDirectory(),Nn=yP(ne),Ai=Xj(ne,Nn),Dn=new Map;let bn,iu,oa;const xa=Fi.hasInvalidatedResolutions||sg;Fi.resolveModuleNameLiterals?(oa=Fi.resolveModuleNameLiterals.bind(Fi),iu=(E=Fi.getModuleResolutionCache)==null?void 0:E.call(Fi)):Fi.resolveModuleNames?(oa=(Xe,Dt,ai,wi,Qi,On)=>Fi.resolveModuleNames(Xe.map(M7e),Dt,On==null?void 0:On.map(M7e),ai,wi,Qi).map(en=>en?en.extension!==void 0?{resolvedModule:en}:{resolvedModule:{...en,extension:C7(en.resolvedFileName)}}:j7e),iu=(v=Fi.getModuleResolutionCache)==null?void 0:v.call(Fi)):(iu=VB(jn,f4,ne),oa=(Xe,Dt,ai,wi,Qi)=>xH(Xe,Dt,ai,wi,Qi,Fi,iu,F1e));let ra;if(Fi.resolveTypeReferenceDirectiveReferences)ra=Fi.resolveTypeReferenceDirectiveReferences.bind(Fi);else if(Fi.resolveTypeReferenceDirectives)ra=(Xe,Dt,ai,wi,Qi)=>Fi.resolveTypeReferenceDirectives(Xe.map(z7e),Dt,ai,wi,Qi==null?void 0:Qi.impliedNodeFormat).map(On=>({resolvedTypeReferenceDirective:On}));else{const Xe=RY(jn,f4,void 0,iu==null?void 0:iu.getPackageJsonInfoCache(),iu==null?void 0:iu.optionsToRedirectsKey);ra=(Dt,ai,wi,Qi,On)=>xH(Dt,ai,wi,Qi,On,Fi,Xe,vQ)}const wa=Fi.hasInvalidatedLibResolutions||sg;let Zo;if(Fi.resolveLibrary)Zo=Fi.resolveLibrary.bind(Fi);else{const Xe=VB(jn,f4,ne,iu==null?void 0:iu.getPackageJsonInfoCache());Zo=(Dt,ai,wi)=>OY(Dt,ai,wi,Fi,Xe)}const vo=new Map;let Qe=new Map,Et=Bm(),Mt=!1;const qt=new Map;let Xt;const Pe=Fi.useCaseSensitiveFileNames()?new Map:void 0;let et,gt,ii,me;const ni=!!((b=Fi.useSourceOfProjectReferenceRedirect)!=null&&b.call(Fi))&&!ne.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:_i,fileExists:mt,directoryExists:jt}=_zt({compilerHost:Fi,getSymlinkCache:C5,useSourceOfProjectReferenceRedirect:ni,toPath:tr,getResolvedProjectReferences:Za,getSourceOfProjectReferenceRedirect:ep,forEachResolvedProjectReference:Lc}),pi=Fi.readFile.bind(Fi);(B=$n)==null||B.push($n.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!pe});const Ji=gzt(pe,ne);(k=$n)==null||k.pop();let Yi;if((T=$n)==null||T.push($n.Phase.Program,"tryReuseStructureFromOldProgram",{}),Yi=rs(),(M=$n)==null||M.pop(),Yi!==2){if(xe=[],Be=[],Se&&(et||(et=Se.map(Bt)),Ce.length&&(et==null||et.forEach((Xe,Dt)=>{if(!Xe)return;const ai=b0(Xe.commandLine.options);if(ni){if(ai||f1(Xe.commandLine.options)===0)for(const wi of Xe.commandLine.fileNames)Ve(wi,{kind:1,index:Dt})}else if(ai)Ve(Sv(ai,".d.ts"),{kind:2,index:Dt});else if(f1(Xe.commandLine.options)===0){const wi=Nh(()=>yM(Xe.commandLine,!Fi.useCaseSensitiveFileNames()));for(const Qi of Xe.commandLine.fileNames)!Xd(Qi)&&!Pl(Qi,".json")&&Ve(CM(Qi,Xe.commandLine,!Fi.useCaseSensitiveFileNames(),wi),{kind:2,index:Dt})}}))),(z=$n)==null||z.push($n.Phase.Program,"processRootFiles",{count:Ce.length}),L(Ce,(Xe,Dt)=>id(Xe,!1,!1,{kind:0,index:Dt})),(j=$n)==null||j.pop(),Ie??(Ie=Ce.length?IY(ne,Fi):_t),st=J7(),Ie.length){(J=$n)==null||J.push($n.Phase.Program,"processTypeReferences",{count:Ie.length});const Xe=ne.configFilePath?dr(ne.configFilePath):jn,Dt=hr(Xe,ZB),ai=Tn(Ie,Dt);for(let wi=0;wi{id(I1(Dt),!0,!1,{kind:6,index:ai})})}Xt=Ea(Uo(qt.entries(),([Xe,Dt])=>Dt===void 0?Xe:void 0)),We=ac(xe,Ru).concat(Be),xe=void 0,Be=void 0}if(H.assert(!!Xt),pe&&Fi.onReleaseOldSourceFile){const Xe=pe.getSourceFiles();for(const Dt of Xe){const ai=Ho(Dt.resolvedPath);(Ji||!ai||ai.impliedNodeFormat!==Dt.impliedNodeFormat||Dt.resolvedPath===Dt.path&&ai.resolvedPath!==Dt.path)&&Fi.onReleaseOldSourceFile(Dt,pe.getCompilerOptions(),!!Ho(Dt.path))}Fi.getParsedCommandLine||pe.forEachResolvedProjectReference(Dt=>{Rh(Dt.sourceFile.path)||Fi.onReleaseOldSourceFile(Dt.sourceFile,pe.getCompilerOptions(),!1)})}pe&&Fi.onReleaseParsedCommandLine&&CQ(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Xe,Dt,ai)=>{const wi=(Dt==null?void 0:Dt.commandLine.projectReferences[ai])||pe.getProjectReferences()[ai],Qi=qB(wi);gt!=null&>.has(tr(Qi))||Fi.onReleaseParsedCommandLine(Qi,Xe,pe.getCompilerOptions())}),pe=void 0,It=void 0,ht=void 0,Li=void 0;const on={getRootFileNames:()=>Ce,getSourceFile:$0,getSourceFileByPath:Ho,getSourceFiles:()=>We,getMissingFilePaths:()=>Xt,getModuleResolutionCache:()=>iu,getFilesByNameMap:()=>qt,getCompilerOptions:()=>ne,getSyntacticDiagnostics:Kp,getOptionsDiagnostics:Pr,getGlobalDiagnostics:Fs,getSemanticDiagnostics:Tc,getCachedSemanticDiagnostics:zl,getSuggestionDiagnostics:tt,getDeclarationDiagnostics:Ri,getBindAndCheckDiagnostics:sl,getProgramDiagnostics:Ka,getTypeChecker:Dl,getClassifiableNames:Wu,getCommonSourceDirectory:da,emit:so,getCurrentDirectory:()=>jn,getNodeCount:()=>Dl().getNodeCount(),getIdentifierCount:()=>Dl().getIdentifierCount(),getSymbolCount:()=>Dl().getSymbolCount(),getTypeCount:()=>Dl().getTypeCount(),getInstantiationCount:()=>Dl().getInstantiationCount(),getRelationCacheSizes:()=>Dl().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Yt,getResolvedTypeReferenceDirectives:()=>Gt,getAutomaticTypeDirectiveNames:()=>Ie,getAutomaticTypeDirectiveResolutions:()=>st,isSourceFileFromExternalLibrary:Sl,isSourceFileDefaultLibrary:cd,getSourceFileFromReference:nh,getLibFileFromReference:Ih,sourceFileToPackageName:Qe,redirectTargetsMap:Et,usesUriStyleNodeCoreModules:Mt,resolvedModules:ti,resolvedTypeReferenceDirectiveNames:Ut,resolvedLibReferences:St,getResolvedModule:le,getResolvedTypeReferenceDirective:te,forEachResolvedModule:we,forEachResolvedTypeReferenceDirective:de,getCurrentPackagesMap:()=>ji,typesPackageExists:it,packageBundlesTypes:Ct,isEmittedFile:vg,getConfigFileParsingDiagnostics:tc,getProjectReferences:l0,getResolvedProjectReferences:Za,getProjectReferenceRedirect:xl,getResolvedProjectReferenceToRedirect:Ul,getResolvedProjectReferenceByPath:Rh,forEachResolvedProjectReference:Lc,isSourceOfProjectReferenceRedirect:Gm,emitBuildInfo:xc,fileExists:mt,readFile:pi,directoryExists:jt,getSymlinkCache:C5,realpath:(se=Fi.realpath)==null?void 0:se.bind(Fi),useCaseSensitiveFileNames:()=>Fi.useCaseSensitiveFileNames(),getCanonicalFileName:f4,getFileIncludeReasons:()=>Ze,structureIsReused:Yi,writeFile:An};return _i(),Yt==null||Yt.forEach(Xe=>{switch(Xe.kind){case 1:return bt.add(bi(Xe.file&&Ho(Xe.file),Xe.fileProcessingReason,Xe.diagnostic,Xe.args||_t));case 0:const{file:Dt,pos:ai,end:wi}=kM(on,Xe.reason);return bt.add(zd(Dt,H.checkDefined(ai),H.checkDefined(wi)-ai,Xe.diagnostic,...Xe.args||_t));case 2:return Xe.diagnostics.forEach(Qi=>bt.add(Qi));default:H.assertNever(Xe)}}),gi(),il("afterProgram"),wm("Program","beforeProgram","afterProgram"),(ge=$n)==null||ge.pop(),on;function le(Xe,Dt,ai){var wi;return(wi=ti==null?void 0:ti.get(Xe.path))==null?void 0:wi.get(Dt,ai)}function te(Xe,Dt,ai){var wi;return(wi=Ut==null?void 0:Ut.get(Xe.path))==null?void 0:wi.get(Dt,ai)}function we(Xe,Dt){Oe(ti,Xe,Dt)}function de(Xe,Dt){Oe(Ut,Xe,Dt)}function Oe(Xe,Dt,ai){var wi;ai?(wi=Xe==null?void 0:Xe.get(ai.path))==null||wi.forEach((Qi,On,en)=>Dt(Qi,On,en,ai.path)):Xe==null||Xe.forEach((Qi,On)=>Qi.forEach((en,yn,Ar)=>Dt(en,yn,Ar,On)))}function X(){return ji||(ji=new Map,we(({resolvedModule:Xe})=>{Xe!=null&&Xe.packageId&&ji.set(Xe.packageId.name,Xe.extension===".d.ts"||!!ji.get(Xe.packageId.name))}),ji)}function it(Xe){return X().has(KY(Xe))}function Ct(Xe){return!!X().get(Xe)}function ct(Xe){var Dt;(Dt=Xe.resolutionDiagnostics)!=null&&Dt.length&&(Yt??(Yt=[])).push({kind:2,diagnostics:Xe.resolutionDiagnostics})}function Qt(Xe,Dt,ai,wi){if(Fi.resolveModuleNameLiterals||!Fi.resolveModuleNames)return ct(ai);if(!iu||Md(Dt))return;const Qi=$a(Xe.originalFileName,jn),On=dr(Qi),en=Bn(Xe),yn=iu.getFromNonRelativeNameCache(Dt,wi,On,en);yn&&ct(yn)}function Ti(Xe,Dt,ai){var wi,Qi;if(!Xe.length)return _t;const On=$a(Dt.originalFileName,jn),en=Bn(Dt);(wi=$n)==null||wi.push($n.Phase.Program,"resolveModuleNamesWorker",{containingFileName:On}),il("beforeResolveModule");const yn=oa(Xe,On,en,ne,Dt,ai);return il("afterResolveModule"),wm("ResolveModule","beforeResolveModule","afterResolveModule"),(Qi=$n)==null||Qi.pop(),yn}function $i(Xe,Dt,ai){var wi,Qi;if(!Xe.length)return[];const On=Ja(Dt)?void 0:Dt,en=Ja(Dt)?Dt:$a(Dt.originalFileName,jn),yn=On&&Bn(On);(wi=$n)==null||wi.push($n.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:en}),il("beforeResolveTypeReference");const Ar=ra(Xe,en,yn,ne,On,ai);return il("afterResolveTypeReference"),wm("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Qi=$n)==null||Qi.pop(),Ar}function Bn(Xe){const Dt=Ul(Xe.originalFileName);if(Dt||!Xd(Xe.originalFileName))return Dt;const ai=hu(Xe.path);if(ai)return ai;if(!Fi.realpath||!ne.preserveSymlinks||!Xe.originalFileName.includes(a_))return;const wi=tr(Fi.realpath(Xe.originalFileName));return wi===Xe.path?void 0:hu(wi)}function hu(Xe){const Dt=ep(Xe);if(Ja(Dt))return Ul(Dt);if(Dt)return Lc(ai=>{const wi=b0(ai.commandLine.options);if(wi)return tr(wi)===Xe?ai:void 0})}function Ru(Xe,Dt){return tl(Er(Xe),Er(Dt))}function Er(Xe){if(WE(Ba,Xe.fileName,!1)){const Dt=Fc(Xe.fileName);if(Dt==="lib.d.ts"||Dt==="lib.es6.d.ts")return 0;const ai=E8(bN(Dt,"lib."),".d.ts"),wi=qV.indexOf(ai);if(wi!==-1)return wi+1}return qV.length+2}function tr(Xe){return H0(Xe,jn,f4)}function da(){if(De===void 0){const Xe=ei(We,Dt=>f7(Dt,on));De=bM(ne,()=>Ui(Xe,Dt=>Dt.isDeclarationFile?void 0:Dt.fileName),jn,f4,Dt=>Ee(Xe,Dt))}return De}function Wu(){var Xe;if(!Ge){Dl(),Ge=new Set;for(const Dt of We)(Xe=Dt.classifiableNames)==null||Xe.forEach(ai=>Ge.add(ai))}return Ge}function ja(Xe,Dt){if(Yi===0&&!Dt.ambientModuleNames.length)return Ti(Xe,Dt,void 0);let ai,wi,Qi;const On=j7e,en=pe&&pe.getSourceFile(Dt.fileName);for(let yu=0;yu{const wi=(Dt?Dt.commandLine.projectReferences:Se)[ai],Qi=Bt(wi);return Xe?!Qi||Qi.sourceFile!==Xe.sourceFile||!Hn(Xe.commandLine.fileNames,Qi.commandLine.fileNames):Qi!==void 0},(Xe,Dt)=>{const ai=Dt?Rh(Dt.sourceFile.path).commandLine.projectReferences:Se;return!Hn(Xe,ai,r0e)})}function rs(){var Xe;if(!pe)return 0;const Dt=pe.getCompilerOptions();if(WU(Dt,ne))return 0;const ai=pe.getRootFileNames();if(!Hn(ai,Ce)||!Rr())return 0;Se&&(et=Se.map(Bt));const wi=[],Qi=[];if(Yi=2,pe.getMissingFilePaths().some(bu=>Fi.fileExists(bu)))return 0;const On=pe.getSourceFiles();let en;(bu=>{bu[bu.Exists=0]="Exists",bu[bu.Modified=1]="Modified"})(en||(en={}));const yn=new Map;for(const bu of On){const yu=yo(bu.fileName,iu,Fi,ne);let _u=Fi.getSourceFileByPath?Fi.getSourceFileByPath(bu.fileName,bu.resolvedPath,yu,void 0,Ji):Fi.getSourceFile(bu.fileName,yu,void 0,Ji);if(!_u)return 0;_u.packageJsonLocations=(Xe=yu.packageJsonLocations)!=null&&Xe.length?yu.packageJsonLocations:void 0,_u.packageJsonScope=yu.packageJsonScope,H.assert(!_u.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let sa;if(bu.redirectInfo){if(_u!==bu.redirectInfo.unredirected)return 0;sa=!1,_u=bu}else if(pe.redirectTargetsMap.has(bu.path)){if(_u!==bu)return 0;sa=!1}else sa=_u!==bu;_u.path=bu.path,_u.originalFileName=bu.originalFileName,_u.resolvedPath=bu.resolvedPath,_u.fileName=bu.fileName;const m0=pe.sourceFileToPackageName.get(bu.path);if(m0!==void 0){const a0=yn.get(m0),Wf=sa?1:0;if(a0!==void 0&&Wf===1||a0===1)return 0;yn.set(m0,Wf)}if(sa)bu.impliedNodeFormat!==_u.impliedNodeFormat?Yi=1:Hn(bu.libReferenceDirectives,_u.libReferenceDirectives,A0)?bu.hasNoDefaultLib!==_u.hasNoDefaultLib?Yi=1:Hn(bu.referencedFiles,_u.referencedFiles,A0)?(Sd(_u),Hn(bu.imports,_u.imports,nd)&&Hn(bu.moduleAugmentations,_u.moduleAugmentations,nd)?(bu.flags&12582912)!==(_u.flags&12582912)?Yi=1:Hn(bu.typeReferenceDirectives,_u.typeReferenceDirectives,A0)||(Yi=1):Yi=1):Yi=1:Yi=1,Qi.push(_u);else if(xa(bu.path))Yi=1,Qi.push(_u);else for(const a0 of bu.ambientModuleNames)ft.set(a0,bu.fileName);wi.push(_u)}if(Yi!==2)return Yi;for(const bu of Qi){const yu=ott(bu),_u=ja(yu,bu);(ht??(ht=new Map)).set(bu.path,_u),o0e(yu,bu,_u,(Qv,e6)=>pe.getResolvedModule(bu,Qv,e6),bbe,CH)&&(Yi=1);const m0=bu.typeReferenceDirectives,a0=Tn(m0,bu);(Li??(Li=new Map)).set(bu.path,a0),o0e(m0,bu,a0,(Qv,e6)=>pe==null?void 0:pe.getResolvedTypeReferenceDirective(bu,Qv,e6),ybe,SQ)&&(Yi=1)}if(Yi!==2)return Yi;if(vbe(Dt,ne)||pe.resolvedLibReferences&&d1(pe.resolvedLibReferences,(bu,yu)=>c3(yu).actual!==bu.actual))return 1;if(Fi.hasChangedAutomaticTypeDirectiveNames){if(Fi.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Ie=IY(ne,Fi),!Hn(pe.getAutomaticTypeDirectiveNames(),Ie))return 1;Xt=pe.getMissingFilePaths(),H.assert(wi.length===pe.getSourceFiles().length);for(const bu of wi)qt.set(bu.path,bu);return pe.getFilesByNameMap().forEach((bu,yu)=>{if(!bu){qt.set(yu,bu);return}if(bu.path===yu){pe.isSourceFileFromExternalLibrary(bu)&&Ni.set(bu.path,!0);return}qt.set(yu,qt.get(bu.path))}),We=wi,Ze=pe.getFileIncludeReasons(),Yt=pe.getFileProcessingDiagnostics(),Gt=pe.getResolvedTypeReferenceDirectives(),Ie=pe.getAutomaticTypeDirectiveNames(),st=pe.getAutomaticTypeDirectiveResolutions(),Qe=pe.sourceFileToPackageName,Et=pe.redirectTargetsMap,Mt=pe.usesUriStyleNodeCoreModules,ti=pe.resolvedModules,Ut=pe.resolvedTypeReferenceDirectiveNames,St=pe.resolvedLibReferences,ji=pe.getCurrentPackagesMap(),2}function So(Xe){return{getPrependNodes:$l,getCanonicalFileName:f4,getCommonSourceDirectory:on.getCommonSourceDirectory,getCompilerOptions:on.getCompilerOptions,getCurrentDirectory:()=>jn,getSourceFile:on.getSourceFile,getSourceFileByPath:on.getSourceFileByPath,getSourceFiles:on.getSourceFiles,getLibFileFromReference:on.getLibFileFromReference,isSourceFileFromExternalLibrary:Sl,getResolvedProjectReferenceToRedirect:Ul,getProjectReferenceRedirect:xl,isSourceOfProjectReferenceRedirect:Gm,getSymlinkCache:C5,writeFile:Xe||An,isEmitBlocked:Vo,readFile:Dt=>Fi.readFile(Dt),fileExists:Dt=>{const ai=tr(Dt);return Ho(ai)?!0:Ft(Xt,ai)?!1:Fi.fileExists(Dt)},useCaseSensitiveFileNames:()=>Fi.useCaseSensitiveFileNames(),getBuildInfo:Dt=>{var ai;return(ai=on.getBuildInfo)==null?void 0:ai.call(on,Dt)},getSourceFileFromReference:(Dt,ai)=>on.getSourceFileFromReference(Dt,ai),redirectTargetsMap:Et,getFileIncludeReasons:on.getFileIncludeReasons,createHash:wo(Fi,Fi.createHash)}}function An(Xe,Dt,ai,wi,Qi,On){Fi.writeFile(Xe,Dt,ai,wi,Qi,On)}function xc(Xe){var Dt,ai;H.assert(!b0(ne)),(Dt=$n)==null||Dt.push($n.Phase.Emit,"emitBuildInfo",{},!0),il("beforeEmit");const wi=fQ(pQ,So(Xe),void 0,l1e,!1,!0);return il("afterEmit"),wm("Emit","beforeEmit","afterEmit"),(ai=$n)==null||ai.pop(),wi}function Za(){return et}function l0(){return Se}function $l(){return L1e(Se,(Xe,Dt)=>{var ai;return(ai=et[Dt])==null?void 0:ai.commandLine},Xe=>{const Dt=tr(Xe),ai=Ho(Dt);return ai?ai.text:qt.has(Dt)?void 0:Fi.readFile(Dt)},Fi)}function Sl(Xe){return!!Ni.get(Xe.path)}function cd(Xe){if(!Xe.isDeclarationFile)return!1;if(Xe.hasNoDefaultLib)return!0;if(!ne.noLib)return!1;const Dt=Fi.useCaseSensitiveFileNames()?YA:ZA;return ne.lib?qe(ne.lib,ai=>Dt(Xe.fileName,St.get(ai).actual)):Dt(Xe.fileName,Fr())}function Dl(){return He||(He=LAe(on))}function so(Xe,Dt,ai,wi,Qi,On){var en,yn;(en=$n)==null||en.push($n.Phase.Emit,"emit",{path:Xe==null?void 0:Xe.path},!0);const Ar=$c(()=>td(on,Xe,Dt,ai,wi,Qi,On));return(yn=$n)==null||yn.pop(),Ar}function Vo(Xe){return Dn.has(tr(Xe))}function td(Xe,Dt,ai,wi,Qi,On,en){if(!en){const bu=T1e(Xe,Dt,ai,wi);if(bu)return bu}const yn=Dl().getEmitResolver(b0(ne)?void 0:Dt,wi);il("beforeEmit");const Ar=fQ(yn,So(ai),Dt,s1e(ne,On,Qi),Qi,!1,en);return il("afterEmit"),wm("Emit","beforeEmit","afterEmit"),Ar}function $0(Xe){return Ho(tr(Xe))}function Ho(Xe){return qt.get(Xe)||void 0}function wc(Xe,Dt,ai){return k8(Xe?Dt(Xe,ai):Ku(on.getSourceFiles(),wi=>(ai&&ai.throwIfCancellationRequested(),Dt(wi,ai))))}function Kp(Xe,Dt){return wc(Xe,ll,Dt)}function Tc(Xe,Dt){return wc(Xe,vh,Dt)}function zl(Xe){var Dt;return Xe?(Dt=je.perFile)==null?void 0:Dt.get(Xe.path):je.allDiagnostics}function sl(Xe,Dt){return of(Xe,Dt)}function Ka(Xe){var Dt;if(FP(Xe,ne,on))return _t;const ai=bt.getDiagnostics(Xe.fileName);return(Dt=Xe.commentDirectives)!=null&&Dt.length?$(Xe,Xe.commentDirectives,ai).diagnostics:ai}function Ri(Xe,Dt){const ai=on.getCompilerOptions();return!Xe||b0(ai)?fn(Xe,Dt):wc(Xe,Tu,Dt)}function ll(Xe){return ph(Xe)?(Xe.additionalSyntacticDiagnostics||(Xe.additionalSyntacticDiagnostics=hi(Xe)),an(Xe.additionalSyntacticDiagnostics,Xe.parseDiagnostics)):Xe.parseDiagnostics}function $c(Xe){try{return Xe()}catch(Dt){throw Dt instanceof v8&&(He=void 0),Dt}}function vh(Xe,Dt){return an(kQ(of(Xe,Dt),ne),Ka(Xe))}function of(Xe,Dt){return ru(Xe,Dt,je,U0)}function U0(Xe,Dt){return $c(()=>{if(FP(Xe,ne,on))return _t;const ai=Dl();H.assert(!!Xe.bindDiagnostics);const Qi=(Xe.scriptKind===1||Xe.scriptKind===2)&&iV(Xe,ne),On=tj(Xe,ne.checkJs),yn=!(!!Xe.checkJsDirective&&Xe.checkJsDirective.enabled===!1)&&(Xe.scriptKind===3||Xe.scriptKind===4||Xe.scriptKind===5||On||Qi||Xe.scriptKind===7);let Ar=yn?Xe.bindDiagnostics:_t,bu=yn?ai.getDiagnostics(Xe,Dt):_t;return On&&(Ar=ei(Ar,yu=>BQ.has(yu.code)),bu=ei(bu,yu=>BQ.has(yu.code))),vc(Xe,yn&&!On,Ar,bu,Qi?Xe.jsDocDiagnostics:void 0)})}function vc(Xe,Dt,...ai){var wi;const Qi=Va(ai);if(!Dt||!((wi=Xe.commentDirectives)!=null&&wi.length))return Qi;const{diagnostics:On,directives:en}=$(Xe,Xe.commentDirectives,Qi);for(const yn of en.getUnusedExpectations())On.push(Obe(Xe,yn.range,F.Unused_ts_expect_error_directive));return On}function $(Xe,Dt,ai){const wi=Abe(Xe,Dt);return{diagnostics:ai.filter(On=>vt(On,wi)===-1),directives:wi}}function tt(Xe,Dt){return $c(()=>Dl().getSuggestionDiagnostics(Xe,Dt))}function vt(Xe,Dt){const{file:ai,start:wi}=Xe;if(!ai)return-1;const Qi=J3(ai);let On=b8(Qi,wi).line-1;for(;On>=0;){if(Dt.markUsed(On))return On;const en=ai.text.slice(Qi[On],Qi[On+1]).trim();if(en!==""&&!/^(\s*)\/\/(.*)$/.test(en))return-1;On--}return-1}function hi(Xe){return $c(()=>{const Dt=[];return ai(Xe,Xe),nM(Xe,ai,wi),Dt;function ai(yn,Ar){switch(Ar.kind){case 169:case 172:case 174:if(Ar.questionToken===yn)return Dt.push(en(yn,F.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(Ar.type===yn)return Dt.push(en(yn,F.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(yn.kind){case 273:if(yn.isTypeOnly)return Dt.push(en(Ar,F._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(yn.isTypeOnly)return Dt.push(en(yn,F._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(yn.isTypeOnly)return Dt.push(en(yn,F._0_declarations_can_only_be_used_in_TypeScript_files,Cf(yn)?"import...type":"export...type")),"skip";break;case 271:return Dt.push(en(yn,F.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(yn.isExportEquals)return Dt.push(en(yn,F.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(yn.token===119)return Dt.push(en(yn,F.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const yu=Jo(120);return H.assertIsDefined(yu),Dt.push(en(yn,F._0_declarations_can_only_be_used_in_TypeScript_files,yu)),"skip";case 267:const _u=yn.flags&32?Jo(145):Jo(144);return H.assertIsDefined(_u),Dt.push(en(yn,F._0_declarations_can_only_be_used_in_TypeScript_files,_u)),"skip";case 265:return Dt.push(en(yn,F.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return yn.body?void 0:(Dt.push(en(yn,F.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const sa=H.checkDefined(Jo(94));return Dt.push(en(yn,F._0_declarations_can_only_be_used_in_TypeScript_files,sa)),"skip";case 235:return Dt.push(en(yn,F.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Dt.push(en(yn.type,F.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Dt.push(en(yn.type,F.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:H.fail()}}function wi(yn,Ar){if(Vce(Ar)){const bu=Le(Ar.modifiers,p1);bu&&Dt.push(en(bu,F.Decorators_are_not_valid_here))}else if(kk(Ar)&&Ar.modifiers){const bu=$e(Ar.modifiers,p1);if(bu>=0){if(eo(Ar)&&!ne.experimentalDecorators)Dt.push(en(Ar.modifiers[bu],F.Decorators_are_not_valid_here));else if(Kc(Ar)){const yu=$e(Ar.modifiers,w7);if(yu>=0){const _u=$e(Ar.modifiers,tY);if(bu>yu&&_u>=0&&bu<_u)Dt.push(en(Ar.modifiers[bu],F.Decorators_are_not_valid_here));else if(yu>=0&&bu=0&&Dt.push(ps(en(Ar.modifiers[sa],F.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),en(Ar.modifiers[bu],F.Decorator_used_before_export_here)))}}}}}switch(Ar.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(yn===Ar.typeParameters)return Dt.push(On(yn,F.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(yn===Ar.modifiers)return Qi(Ar.modifiers,Ar.kind===243),"skip";break;case 172:if(yn===Ar.modifiers){for(const bu of yn)Yo(bu)&&bu.kind!==126&&bu.kind!==129&&Dt.push(en(bu,F.The_0_modifier_can_only_be_used_in_TypeScript_files,Jo(bu.kind)));return"skip"}break;case 169:if(yn===Ar.modifiers&&qe(yn,Yo))return Dt.push(On(yn,F.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(yn===Ar.typeArguments)return Dt.push(On(yn,F.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Qi(yn,Ar){for(const bu of yn)switch(bu.kind){case 87:if(Ar)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Dt.push(en(bu,F.The_0_modifier_can_only_be_used_in_TypeScript_files,Jo(bu.kind)));break;case 126:case 95:case 90:case 129:}}function On(yn,Ar,...bu){const yu=yn.pos;return zd(Xe,yu,yn.end-yu,Ar,...bu)}function en(yn,Ar,...bu){return V4(Xe,yn,Ar,...bu)}})}function fn(Xe,Dt){return ru(Xe,Dt,Ke,Gu)}function Gu(Xe,Dt){return $c(()=>{const ai=Dl().getEmitResolver(Xe,Dt);return y7e(So(Ms),ai,Xe)||_t})}function ru(Xe,Dt,ai,wi){var Qi;const On=Xe?(Qi=ai.perFile)==null?void 0:Qi.get(Xe.path):ai.allDiagnostics;if(On)return On;const en=wi(Xe,Dt);return Xe?(ai.perFile||(ai.perFile=new Map)).set(Xe.path,en):ai.allDiagnostics=en,en}function Tu(Xe,Dt){return Xe.isDeclarationFile?[]:fn(Xe,Dt)}function Pr(){return k8(an(bt.getGlobalDiagnostics(),Vu()))}function Vu(){if(!ne.configFile)return _t;let Xe=bt.getDiagnostics(ne.configFile.fileName);return Lc(Dt=>{Xe=an(Xe,bt.getDiagnostics(Dt.sourceFile.fileName))}),Xe}function Fs(){return Ce.length?k8(Dl().getGlobalDiagnostics().slice()):_t}function tc(){return ve||_t}function id(Xe,Dt,ai,wi){_1(Go(Xe),Dt,ai,void 0,wi)}function A0(Xe,Dt){return Xe.fileName===Dt.fileName}function nd(Xe,Dt){return Xe.kind===80?Dt.kind===80&&Xe.escapedText===Dt.escapedText:Dt.kind===11&&Xe.text===Dt.text}function f0(Xe,Dt){const ai=q.createStringLiteral(Xe),wi=q.createImportDeclaration(void 0,void 0,ai,void 0);return y7(wi,2),bs(ai,wi),bs(wi,Dt),ai.flags&=-17,wi.flags&=-17,ai}function Sd(Xe){if(Xe.imports)return;const Dt=ph(Xe),ai=Bc(Xe);let wi,Qi,On;if((hg(ne)||ai)&&!Xe.isDeclarationFile){ne.importHelpers&&(wi=[f0(Vx,Xe)]);const yu=eZ(Xq(ne,Xe),ne);yu&&(wi||(wi=[])).push(f0(yu,Xe))}for(const yu of Xe.statements)yn(yu,!1);const en=Dt&&Zq(ne);(Xe.flags&4194304||en)&&Ar(Xe),Xe.imports=wi||_t,Xe.moduleAugmentations=Qi||_t,Xe.ambientModuleNames=On||_t;return;function yn(yu,_u){if(uj(yu)){const sa=q8(yu);sa&&ns(sa)&&sa.text&&(!_u||!Md(sa.text))&&(jx(yu,!1),wi=Ei(wi,sa),!Mt&&Un===0&&!Xe.isDeclarationFile&&(Mt=Na(sa.text,"node:")))}else if(Ec(yu)&&L1(yu)&&(_u||Xu(yu,128)||Xe.isDeclarationFile)){yu.name.parent=yu;const sa=W4(yu.name);if(ai||_u&&!Md(sa))(Qi||(Qi=[])).push(yu.name);else if(!_u){Xe.isDeclarationFile&&(On||(On=[])).push(sa);const m0=yu.body;if(m0)for(const a0 of m0.statements)yn(a0,!0)}}}function Ar(yu){const _u=/import|require/g;for(;_u.exec(yu.text)!==null;){const sa=bu(yu,_u.lastIndex);en&&Df(sa,!0)||cm(sa)&&sa.arguments.length>=1&&t0(sa.arguments[0])?(jx(sa,!1),wi=Ei(wi,sa.arguments[0])):Mx(sa)&&(jx(sa,!1),wi=Ei(wi,sa.argument.literal))}}function bu(yu,_u){let sa=yu;const m0=a0=>{if(a0.pos<=_u&&(_uPl(Qi,en))){ai&&(N2(Qi)?ai(F.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Xe):ai(F.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Xe,"'"+Va(Nn).join("', '")+"'"));return}const On=Dt(Xe);if(ai)if(On)Wv(wi)&&Qi===Fi.getCanonicalFileName(Ho(wi.file).fileName)&&ai(F.A_file_cannot_have_a_reference_to_itself);else{const en=xl(Xe);en?ai(F.Output_file_0_has_not_been_built_from_source_file_1,en,Xe):ai(F.File_0_not_found,Xe)}return On}else{const Qi=ne.allowNonTsExtensions&&Dt(Xe);if(Qi)return Qi;if(ai&&ne.allowNonTsExtensions){ai(F.File_0_not_found,Xe);return}const On=L(Nn[0],en=>Dt(Xe+en));return ai&&!On&&ai(F.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Xe,"'"+Va(Nn).join("', '")+"'"),On}}function _1(Xe,Dt,ai,wi,Qi){d4(Xe,On=>ya(On,Dt,ai,Qi,wi),(On,...en)=>Rn(void 0,Qi,On,en),Qi)}function Ve(Xe,Dt){return _1(Xe,!1,!1,void 0,Dt)}function si(Xe,Dt,ai){!Wv(ai)&&qe(Ze.get(Dt.path),Wv)?Rn(Dt,ai,F.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Dt.fileName,Xe]):Rn(Dt,ai,F.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Xe,Dt.fileName])}function zn(Xe,Dt,ai,wi,Qi,On,en){var yn;const Ar=r_.createRedirectedSourceFile({redirectTarget:Xe,unredirected:Dt});return Ar.fileName=ai,Ar.path=wi,Ar.resolvedPath=Qi,Ar.originalFileName=On,Ar.packageJsonLocations=(yn=en.packageJsonLocations)!=null&&yn.length?en.packageJsonLocations:void 0,Ar.packageJsonScope=en.packageJsonScope,Ni.set(wi,Un>0),Ar}function ya(Xe,Dt,ai,wi,Qi){var On,en;(On=$n)==null||On.push($n.Phase.Program,"findSourceFile",{fileName:Xe,isDefaultLib:Dt||void 0,fileIncludeKind:rU[wi.kind]});const yn=Bo(Xe,Dt,ai,wi,Qi);return(en=$n)==null||en.pop(),yn}function yo(Xe,Dt,ai,wi){const Qi=w1e($a(Xe,jn),Dt==null?void 0:Dt.getPackageJsonInfoCache(),ai,wi),On=Is(wi),en=Zj(wi);return typeof Qi=="object"?{...Qi,languageVersion:On,setExternalModuleIndicator:en,jsDocParsingMode:ai.jsDocParsingMode}:{languageVersion:On,impliedNodeFormat:Qi,setExternalModuleIndicator:en,jsDocParsingMode:ai.jsDocParsingMode}}function Bo(Xe,Dt,ai,wi,Qi){var On;const en=tr(Xe);if(ni){let _u=ep(en);if(!_u&&Fi.realpath&&ne.preserveSymlinks&&Xd(Xe)&&Xe.includes(a_)){const sa=tr(Fi.realpath(Xe));sa!==en&&(_u=ep(sa))}if(_u){const sa=Ja(_u)?ya(_u,Dt,ai,wi,Qi):void 0;return sa&&hc(sa,en,void 0),sa}}const yn=Xe;if(qt.has(en)){const _u=qt.get(en);if(ic(_u||void 0,wi),_u&&ne.forceConsistentCasingInFileNames!==!1){const sa=_u.fileName;tr(sa)!==tr(Xe)&&(Xe=xl(Xe)||Xe);const a0=kse(sa,jn),Wf=kse(Xe,jn);a0!==Wf&&si(Xe,_u,wi)}return _u&&Ni.get(_u.path)&&Un===0?(Ni.set(_u.path,!1),ne.noResolve||(h4(_u,Dt),l3(_u)),ne.noLib||Kf(_u),rn.set(_u.path,!1),Oh(_u)):_u&&rn.get(_u.path)&&UnRn(void 0,wi,F.Cannot_read_file_0_Colon_1,[Xe,_u]),Ji);if(Qi){const _u=Nx(Qi),sa=vo.get(_u);if(sa){const m0=zn(sa,yu,Xe,en,tr(Xe),yn,bu);return Et.add(sa.path,Xe),hc(m0,en,Ar),ic(m0,wi),Qe.set(en,JU(Qi)),Be.push(m0),m0}else yu&&(vo.set(_u,yu),Qe.set(en,JU(Qi)))}if(hc(yu,en,Ar),yu){if(Ni.set(en,Un>0),yu.fileName=Xe,yu.path=en,yu.resolvedPath=tr(Xe),yu.originalFileName=yn,yu.packageJsonLocations=(On=bu.packageJsonLocations)!=null&&On.length?bu.packageJsonLocations:void 0,yu.packageJsonScope=bu.packageJsonScope,ic(yu,wi),Fi.useCaseSensitiveFileNames()){const _u=Jg(en),sa=Pe.get(_u);sa?si(Xe,sa,wi):Pe.set(_u,yu)}aa=aa||yu.hasNoDefaultLib&&!ai,ne.noResolve||(h4(yu,Dt),l3(yu)),ne.noLib||Kf(yu),Oh(yu),Dt?xe.push(yu):Be.push(yu)}return yu}function ic(Xe,Dt){Xe&&Ze.add(Xe.path,Dt)}function hc(Xe,Dt,ai){ai?(qt.set(ai,Xe),qt.set(Dt,Xe||!1)):qt.set(Dt,Xe)}function xl(Xe){const Dt=Bl(Xe);return Dt&&Cc(Dt,Xe)}function Bl(Xe){if(!(!et||!et.length||Xd(Xe)||Pl(Xe,".json")))return Ul(Xe)}function Cc(Xe,Dt){const ai=b0(Xe.commandLine.options);return ai?Sv(ai,".d.ts"):CM(Dt,Xe.commandLine,!Fi.useCaseSensitiveFileNames())}function Ul(Xe){ii===void 0&&(ii=new Map,Lc(ai=>{tr(ne.configFilePath)!==ai.sourceFile.path&&ai.commandLine.fileNames.forEach(wi=>ii.set(tr(wi),ai.sourceFile.path))}));const Dt=ii.get(tr(Xe));return Dt&&Rh(Dt)}function Lc(Xe){return A1e(et,Xe)}function ep(Xe){if(Xd(Xe))return me===void 0&&(me=new Map,Lc(Dt=>{const ai=b0(Dt.commandLine.options);if(ai){const wi=Sv(ai,".d.ts");me.set(tr(wi),!0)}else{const wi=Nh(()=>yM(Dt.commandLine,!Fi.useCaseSensitiveFileNames()));L(Dt.commandLine.fileNames,Qi=>{if(!Xd(Qi)&&!Pl(Qi,".json")){const On=CM(Qi,Dt.commandLine,!Fi.useCaseSensitiveFileNames(),wi);me.set(tr(On),Qi)}})}})),me.get(Xe)}function Gm(Xe){return ni&&!!Ul(Xe)}function Rh(Xe){if(gt)return gt.get(Xe)||void 0}function h4(Xe,Dt){L(Xe.referencedFiles,(ai,wi)=>{_1(DQ(ai.fileName,Xe.fileName),Dt,!1,void 0,{kind:4,file:Xe.path,index:wi})})}function l3(Xe){const Dt=Xe.typeReferenceDirectives;if(!Dt.length)return;const ai=(Li==null?void 0:Li.get(Xe.path))||Tn(Dt,Xe),wi=J7();(Ut??(Ut=new Map)).set(Xe.path,wi);for(let Qi=0;Qi{const{libName:wi,libFileName:Qi}=att(Dt);if(Qi)id(I1(Qi),!0,!0,{kind:7,file:Xe.path,index:ai});else{const On=E8(bN(wi,"lib."),".d.ts"),en=CN(On,qV,el),yn=en?F.Cannot_find_lib_definition_for_0_Did_you_mean_1:F.Cannot_find_lib_definition_for_0,Ar=en?[wi,en]:[wi];(Yt||(Yt=[])).push({kind:0,reason:{kind:7,file:Xe.path,index:ai},diagnostic:yn,args:Ar})}})}function f4(Xe){return Fi.getCanonicalFileName(Xe)}function Oh(Xe){var Dt;if(Sd(Xe),Xe.imports.length||Xe.moduleAugmentations.length){const ai=ott(Xe),wi=(ht==null?void 0:ht.get(Xe.path))||ja(ai,Xe);H.assert(wi.length===ai.length);const Qi=(ni?(Dt=Bn(Xe))==null?void 0:Dt.commandLine.options:void 0)||ne,On=J7();(ti??(ti=new Map)).set(Xe.path,On);for(let en=0;enxn,Wf=m0&&!N1e(Qi,yn,Xe)&&!Qi.noResolve&&enBc(en)&&!en.isDeclarationFile);if(ne.isolatedModules||ne.verbatimModuleSyntax)ne.module===0&&Dt<2&&ne.isolatedModules&&gs(F.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ne.preserveConstEnums===!1&&gs(F.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,ne.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(ai&&Dt<2&&ne.module===0){const en=D2(ai,typeof ai.externalModuleIndicator=="boolean"?ai:ai.externalModuleIndicator);bt.add(zd(ai,en.start,en.length,F.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Xe&&!ne.emitDeclarationOnly){if(ne.module&&!(ne.module===2||ne.module===4))gs(F.Only_amd_and_system_modules_are_supported_alongside_0,ne.out?"out":"outFile","module");else if(ne.module===void 0&&ai){const en=D2(ai,typeof ai.externalModuleIndicator=="boolean"?ai:ai.externalModuleIndicator);bt.add(zd(ai,en.start,en.length,F.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,ne.out?"out":"outFile"))}}if(L2(ne)&&(m1(ne)===1?gs(F.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):Uq(ne)||gs(F.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),ne.outDir||ne.rootDir||ne.sourceRoot||ne.mapRoot){const en=da();ne.outDir&&en===""&&We.some(yn=>KE(yn.fileName)>1)&&gs(F.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}ne.useDefineForClassFields&&Dt===0&&gs(F.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),ne.checkJs&&!Av(ne)&&bt.add(lc(F.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),ne.emitDeclarationOnly&&(l4(ne)||gs(F.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),ne.noEmit&&gs(F.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),ne.emitDecoratorMetadata&&!ne.experimentalDecorators&&gs(F.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ne.jsxFactory?(ne.reactNamespace&&gs(F.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ne.jsx===4||ne.jsx===5)&&gs(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",oM.get(""+ne.jsx)),K7(ne.jsxFactory,Dt)||tp("jsxFactory",F.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ne.jsxFactory)):ne.reactNamespace&&!Tm(ne.reactNamespace,Dt)&&tp("reactNamespace",F.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ne.reactNamespace),ne.jsxFragmentFactory&&(ne.jsxFactory||gs(F.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ne.jsx===4||ne.jsx===5)&&gs(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",oM.get(""+ne.jsx)),K7(ne.jsxFragmentFactory,Dt)||tp("jsxFragmentFactory",F.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ne.jsxFragmentFactory)),ne.reactNamespace&&(ne.jsx===4||ne.jsx===5)&&gs(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",oM.get(""+ne.jsx)),ne.jsxImportSource&&ne.jsx===2&&gs(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",oM.get(""+ne.jsx)),ne.preserveValueImports&&f1(ne)<5&&gs(F.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const wi=f1(ne);ne.verbatimModuleSyntax&&((wi===2||wi===3||wi===4)&&gs(F.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),ne.preserveValueImports&&Qx("preserveValueImports","verbatimModuleSyntax"),ne.importsNotUsedAsValues&&Qx("importsNotUsedAsValues","verbatimModuleSyntax")),ne.allowImportingTsExtensions&&!(ne.noEmit||ne.emitDeclarationOnly)&&tp("allowImportingTsExtensions",F.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const Qi=m1(ne);if(ne.resolvePackageJsonExports&&!v7(Qi)&&gs(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),ne.resolvePackageJsonImports&&!v7(Qi)&&gs(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),ne.customConditions&&!v7(Qi)&&gs(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Qi===100&&!$q(wi)&&tp("moduleResolution",F.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),kN[wi]&&100<=wi&&wi<=199&&!(3<=Qi&&Qi<=99)){const en=kN[wi];tp("moduleResolution",F.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,en,en)}else if(C8[Qi]&&3<=Qi&&Qi<=99&&!(100<=wi&&wi<=199)){const en=C8[Qi];tp("module",F.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,en,en)}if(!ne.noEmit&&!ne.suppressOutputPathCheck){const en=So(),yn=new Set;c1e(en,Ar=>{ne.emitDeclarationOnly||On(Ar.jsFilePath,yn),On(Ar.declarationFilePath,yn)})}function On(en,yn){if(en){const Ar=tr(en);if(qt.has(Ar)){let yu;ne.configFilePath||(yu=uo(void 0,F.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),yu=uo(yu,F.Cannot_write_file_0_because_it_would_overwrite_input_file,en),Xx(en,Gq(yu))}const bu=Fi.useCaseSensitiveFileNames()?Ar:Jg(Ar);yn.has(bu)?Xx(en,lc(F.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,en)):yn.add(bu)}}}function xi(){const Xe=ne.ignoreDeprecations;if(Xe){if(Xe==="5.0")return new Bp(Xe);fe()}return Bp.zero}function Q(Xe,Dt,ai,wi){const Qi=new Bp(Xe),On=new Bp(Dt),en=new Bp(Ne||g),yn=xi(),Ar=On.compareTo(en)!==1,bu=!Ar&&yn.compareTo(Qi)===-1;(Ar||bu)&&wi((yu,_u,sa)=>{Ar?_u===void 0?ai(yu,_u,sa,F.Option_0_has_been_removed_Please_remove_it_from_your_configuration,yu):ai(yu,_u,sa,F.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,yu,_u):_u===void 0?ai(yu,_u,sa,F.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,yu,Dt,Xe):ai(yu,_u,sa,F.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,yu,_u,Dt,Xe)})}function Me(){function Xe(Dt,ai,wi,Qi,...On){if(wi){const en=uo(void 0,F.Use_0_instead,wi),yn=uo(en,Qi,...On);d3(!ai,Dt,void 0,yn)}else d3(!ai,Dt,void 0,Qi,...On)}Q("5.0","5.5",Xe,Dt=>{ne.target===0&&Dt("target","ES3"),ne.noImplicitUseStrict&&Dt("noImplicitUseStrict"),ne.keyofStringsOnly&&Dt("keyofStringsOnly"),ne.suppressExcessPropertyErrors&&Dt("suppressExcessPropertyErrors"),ne.suppressImplicitAnyIndexErrors&&Dt("suppressImplicitAnyIndexErrors"),ne.noStrictGenericChecks&&Dt("noStrictGenericChecks"),ne.charset&&Dt("charset"),ne.out&&Dt("out",void 0,"outFile"),ne.importsNotUsedAsValues&&Dt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),ne.preserveValueImports&&Dt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function wt(Xe,Dt,ai){function wi(Qi,On,en,yn,...Ar){$m(Dt,ai,yn,...Ar)}Q("5.0","5.5",wi,Qi=>{Xe.prepend&&Qi("prepend")})}function bi(Xe,Dt,ai,wi){var Qi;let On,en,yn=Wv(Dt)?Dt:void 0;Xe&&((Qi=Ze.get(Xe.path))==null||Qi.forEach(sa)),Dt&&sa(Dt),yn&&(On==null?void 0:On.length)===1&&(On=void 0);const Ar=yn&&kM(on,yn),bu=On&&uo(On,F.The_file_is_in_the_program_because_Colon),yu=Xe&&Z1e(Xe),_u=uo(yu?bu?[bu,...yu]:yu:bu,ai,...wi||_t);return Ar&&UB(Ar)?XU(Ar.file,Ar.pos,Ar.end-Ar.pos,_u,en):Gq(_u,en);function sa(m0){(On||(On=[])).push(X1e(on,m0)),!yn&&Wv(m0)?yn=m0:yn!==m0&&(en=Ei(en,ur(m0))),m0===Dt&&(Dt=void 0)}}function Rn(Xe,Dt,ai,wi){(Yt||(Yt=[])).push({kind:1,file:Xe&&Xe.path,fileProcessingReason:Dt,diagnostic:ai,args:wi})}function nr(Xe,Dt,ai){bt.add(bi(Xe,void 0,Dt,ai))}function ur(Xe){if(Wv(Xe)){const wi=kM(on,Xe);let Qi;switch(Xe.kind){case 3:Qi=F.File_is_included_via_import_here;break;case 4:Qi=F.File_is_included_via_reference_here;break;case 5:Qi=F.File_is_included_via_type_library_reference_here;break;case 7:Qi=F.File_is_included_via_library_reference_here;break;default:H.assertNever(Xe)}return UB(wi)?zd(wi.file,wi.pos,wi.end-wi.pos,Qi):void 0}if(!ne.configFile)return;let Dt,ai;switch(Xe.kind){case 0:if(!ne.configFile.configFileSpecs)return;const wi=$a(Ce[Xe.index],jn),Qi=Y1e(on,wi);if(Qi){Dt=aq(ne.configFile,"files",Qi),ai=F.File_is_matched_by_files_list_specified_here;break}const On=Q1e(on,wi);if(!On||!Ja(On))return;Dt=aq(ne.configFile,"include",On),ai=F.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const en=H.checkDefined(et==null?void 0:et[Xe.index]),yn=CQ(Se,et,(sa,m0,a0)=>sa===en?{sourceFile:(m0==null?void 0:m0.sourceFile)||ne.configFile,index:a0}:void 0);if(!yn)return;const{sourceFile:Ar,index:bu}=yn,yu=cj(Ar,"references",sa=>_h(sa.initializer)?sa.initializer:void 0);return yu&&yu.elements.length>bu?V4(Ar,yu.elements[bu],Xe.kind===2?F.File_is_output_from_referenced_project_specified_here:F.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!ne.types)return;Dt=Jm("types",Xe.typeReference),ai=F.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Xe.index!==void 0){Dt=Jm("lib",ne.lib[Xe.index]),ai=F.File_is_library_specified_here;break}const _u=d1(YV.type,(sa,m0)=>sa===Is(ne)?m0:void 0);Dt=_u?dd("target",_u):void 0,ai=F.File_is_default_library_for_target_specified_here;break;default:H.assertNever(Xe)}return Dt&&V4(ne.configFile,Dt,ai)}function ma(){const Xe=ne.suppressOutputPathCheck?void 0:h5(ne);CQ(Se,et,(Dt,ai,wi)=>{const Qi=(ai?ai.commandLine.projectReferences:Se)[wi],On=ai&&ai.sourceFile;if(wt(Qi,On,wi),!Dt){$m(On,wi,F.File_0_not_found,Qi.path);return}const en=Dt.commandLine.options;if((!en.composite||en.noEmit)&&(ai?ai.commandLine.fileNames:Ce).length&&(en.composite||$m(On,wi,F.Referenced_project_0_must_have_setting_composite_Colon_true,Qi.path),en.noEmit&&$m(On,wi,F.Referenced_project_0_may_not_disable_emit,Qi.path)),Qi.prepend){const yn=b0(en);yn?Fi.fileExists(yn)||$m(On,wi,F.Output_file_0_from_project_1_does_not_exist,yn,Qi.path):$m(On,wi,F.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Qi.path)}!ai&&Xe&&Xe===h5(en)&&($m(On,wi,F.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Xe,Qi.path),Dn.set(tr(Xe),!0))})}function as(Xe,Dt,ai,...wi){let Qi=!0;D1(On=>{Cs(On.initializer)&&W8(On.initializer,Xe,en=>{const yn=en.initializer;_h(yn)&&yn.elements.length>Dt&&(bt.add(V4(ne.configFile,yn.elements[Dt],ai,...wi)),Qi=!1)})}),Qi&&bt.add(lc(ai,...wi))}function os(Xe,Dt,ai,...wi){let Qi=!0;D1(On=>{Cs(On.initializer)&&ta(On.initializer,Xe,Dt,void 0,ai,...wi)&&(Qi=!1)}),Qi&&bt.add(lc(ai,...wi))}function Il(Xe,Dt){return W8(c_(),Xe,Dt)}function D1(Xe){return Il("paths",Xe)}function dd(Xe,Dt){return Il(Xe,ai=>ns(ai.initializer)&&ai.initializer.text===Dt?ai.initializer:void 0)}function Jm(Xe,Dt){const ai=c_();return ai&&Ube(ai,Xe,Dt)}function gs(Xe,Dt,ai,wi){d3(!0,Dt,ai,Xe,Dt,ai,wi)}function tp(Xe,Dt,...ai){d3(!1,Xe,void 0,Dt,...ai)}function $m(Xe,Dt,ai,...wi){const Qi=cj(Xe||ne.configFile,"references",On=>_h(On.initializer)?On.initializer:void 0);Qi&&Qi.elements.length>Dt?bt.add(V4(Xe||ne.configFile,Qi.elements[Dt],ai,...wi)):bt.add(lc(ai,...wi))}function d3(Xe,Dt,ai,wi,...Qi){const On=c_();(!On||!ta(On,Xe,Dt,ai,wi,...Qi))&&("messageText"in wi?bt.add(Gq(wi)):bt.add(lc(wi,...Qi)))}function c_(){return bn===void 0&&(bn=W8(qN(ne.configFile),"compilerOptions",Xe=>Cs(Xe.initializer)?Xe.initializer:void 0)||!1),bn||void 0}function ta(Xe,Dt,ai,wi,Qi,...On){let en=!1;return W8(Xe,ai,yn=>{"messageText"in Qi?bt.add(Z3(ne.configFile,Dt?yn.name:yn.initializer,Qi)):bt.add(V4(ne.configFile,Dt?yn.name:yn.initializer,Qi,...On)),en=!0},wi),en}function Qx(Xe,Dt){const ai=c_();ai?ta(ai,!0,Xe,void 0,F.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Xe,Dt):gs(F.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Xe,Dt)}function Xx(Xe,Dt){Dn.set(tr(Xe),!0),bt.add(Dt)}function vg(Xe){if(ne.noEmit)return!1;const Dt=tr(Xe);if(Ho(Dt))return!1;const ai=b0(ne);if(ai)return rb(Dt,ai)||rb(Dt,Eh(ai)+".d.ts");if(ne.declarationDir&&WE(ne.declarationDir,Dt,jn,!Fi.useCaseSensitiveFileNames()))return!0;if(ne.outDir)return WE(ne.outDir,Dt,jn,!Fi.useCaseSensitiveFileNames());if(Oc(Dt,gB)||Xd(Dt)){const wi=Eh(Dt);return!!Ho(wi+".ts")||!!Ho(wi+".tsx")}return!1}function rb(Xe,Dt){return fv(Xe,Dt,jn,!Fi.useCaseSensitiveFileNames())===0}function C5(){return Fi.getSymlinkCache?Fi.getSymlinkCache():(Ae||(Ae=Cle(jn,f4)),We&&!Ae.hasProcessedResolutions()&&Ae.setSymlinksFromResolutions(we,de,st),Ae)}}function _zt(t){let u;const s=t.compilerHost.fileExists,d=t.compilerHost.directoryExists,f=t.compilerHost.getDirectories,p=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Ms,fileExists:b};t.compilerHost.fileExists=b;let E;return d&&(E=t.compilerHost.directoryExists=z=>d.call(t.compilerHost,z)?(T(z),!0):t.getResolvedProjectReferences()?(u||(u=new Set,t.forEachResolvedProjectReference(j=>{const J=b0(j.commandLine.options);if(J)u.add(dr(t.toPath(J)));else{const K=j.commandLine.options.declarationDir||j.commandLine.options.outDir;K&&u.add(t.toPath(K))}})),M(z,!1)):!1),f&&(t.compilerHost.getDirectories=z=>!t.getResolvedProjectReferences()||d&&d.call(t.compilerHost,z)?f.call(t.compilerHost,z):[]),p&&(t.compilerHost.realpath=z=>{var j;return((j=t.getSymlinkCache().getSymlinkedFiles())==null?void 0:j.get(t.toPath(z)))||p.call(t.compilerHost,z)}),{onProgramCreateComplete:v,fileExists:b,directoryExists:E};function v(){t.compilerHost.fileExists=s,t.compilerHost.directoryExists=d,t.compilerHost.getDirectories=f}function b(z){return s.call(t.compilerHost,z)?!0:!t.getResolvedProjectReferences()||!Xd(z)?!1:M(z,!0)}function B(z){const j=t.getSourceOfProjectReferenceRedirect(t.toPath(z));return j!==void 0?Ja(j)?s.call(t.compilerHost,j):!0:void 0}function k(z){const j=t.toPath(z),J=`${j}${nl}`;return $_(u,K=>j===K||Na(K,J)||Na(j,`${K}/`))}function T(z){var j;if(!t.getResolvedProjectReferences()||wP(z)||!p||!z.includes(a_))return;const J=t.getSymlinkCache(),K=Pd(t.toPath(z));if((j=J.getSymlinkedDirectories())!=null&&j.has(K))return;const Y=Go(p.call(t.compilerHost,z));let oe;if(Y===z||(oe=Pd(t.toPath(Y)))===K){J.setSymlinkedDirectory(K,!1);return}J.setSymlinkedDirectory(z,{real:Pd(Y),realPath:oe})}function M(z,j){var J;const K=j?ae=>B(ae):ae=>k(ae),Y=K(z);if(Y!==void 0)return Y;const oe=t.getSymlinkCache(),se=oe.getSymlinkedDirectories();if(!se)return!1;const ge=t.toPath(z);return ge.includes(a_)?j&&((J=oe.getSymlinkedFiles())!=null&&J.has(ge))?!0:ie(se.entries(),([ae,Ce])=>{if(!Ce||!Na(ge,ae))return;const ne=K(ge.replace(ae,Ce.realPath));if(j&&ne){const ve=$a(z,t.compilerHost.getCurrentDirectory());oe.setSymlinkedFile(ge,`${Ce.real}${ve.replace(new RegExp(ae,"i"),"")}`)}return ne})||!1:!1}}function T1e(t,u,s,d){const f=t.getCompilerOptions();if(f.noEmit)return t.getSemanticDiagnostics(u,d),u||b0(f)?wQ:t.emitBuildInfo(s,d);if(!f.noEmitOnError)return;let p=[...t.getOptionsDiagnostics(d),...t.getSyntacticDiagnostics(u,d),...t.getGlobalDiagnostics(d),...t.getSemanticDiagnostics(u,d)];if(p.length===0&&l4(t.getCompilerOptions())&&(p=t.getDeclarationDiagnostics(void 0,d)),!p.length)return;let E;if(!u&&!b0(f)){const v=t.emitBuildInfo(s,d);v.diagnostics&&(p=[...p,...v.diagnostics]),E=v.emittedFiles}return{diagnostics:p,sourceMaps:void 0,emittedFiles:E,emitSkipped:!0}}function kQ(t,u){return ei(t,s=>!s.skippedOn||!u[s.skippedOn])}function FQ(t,u=t){return{fileExists:s=>u.fileExists(s),readDirectory(s,d,f,p,E){return H.assertIsDefined(u.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),u.readDirectory(s,d,f,p,E)},readFile:s=>u.readFile(s),directoryExists:wo(u,u.directoryExists),getDirectories:wo(u,u.getDirectories),realpath:wo(u,u.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||cv,trace:t.trace?s=>t.trace(s):void 0}}function L1e(t,u,s,d){if(!t)return _t;let f;for(let p=0;pd);for(const d of u)d.kind===11&&s.push(d);return s}function AQ({imports:t,moduleAugmentations:u},s){if(s(t.Grey="\x1B[90m",t.Red="\x1B[91m",t.Yellow="\x1B[93m",t.Blue="\x1B[94m",t.Cyan="\x1B[96m",t))(P1e||{}),M1e="\x1B[7m",z1e=" ",I7e="\x1B[0m",R7e="...",stt=" ",O7e=" ",j7e={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},CH={getName:M7e,getMode:(t,u)=>_g(u,t)},SQ={getName:z7e,getMode:(t,u)=>xQ(t,u==null?void 0:u.impliedNodeFormat)},ZB="__inferred type names__.ts",BQ=new Set([F.Cannot_redeclare_block_scoped_variable_0.code,F.A_module_cannot_have_multiple_default_exports.code,F.Another_export_default_is_here.code,F.The_first_export_default_is_here.code,F.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,F.constructor_is_a_reserved_word.code,F.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,F.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,F.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,F.Invalid_use_of_0_in_strict_mode.code,F.A_label_is_not_allowed_here.code,F.with_statements_are_not_allowed_in_strict_mode.code,F.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,F.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,F.A_class_declaration_without_the_default_modifier_must_have_a_name.code,F.A_class_member_cannot_have_the_0_keyword.code,F.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,F.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,F.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,F.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,F.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,F.A_destructuring_declaration_must_have_an_initializer.code,F.A_get_accessor_cannot_have_parameters.code,F.A_rest_element_cannot_contain_a_binding_pattern.code,F.A_rest_element_cannot_have_a_property_name.code,F.A_rest_element_cannot_have_an_initializer.code,F.A_rest_element_must_be_last_in_a_destructuring_pattern.code,F.A_rest_parameter_cannot_have_an_initializer.code,F.A_rest_parameter_must_be_last_in_a_parameter_list.code,F.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,F.A_return_statement_cannot_be_used_inside_a_class_static_block.code,F.A_set_accessor_cannot_have_rest_parameter.code,F.A_set_accessor_must_have_exactly_one_parameter.code,F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,F.An_export_declaration_cannot_have_modifiers.code,F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,F.An_import_declaration_cannot_have_modifiers.code,F.An_object_member_cannot_be_declared_optional.code,F.Argument_of_dynamic_import_cannot_be_spread_element.code,F.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,F.Cannot_redeclare_identifier_0_in_catch_clause.code,F.Catch_clause_variable_cannot_have_an_initializer.code,F.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,F.Classes_can_only_extend_a_single_class.code,F.Classes_may_not_have_a_field_named_constructor.code,F.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,F.Duplicate_label_0.code,F.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,F.for_await_loops_cannot_be_used_inside_a_class_static_block.code,F.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,F.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,F.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,F.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,F.Jump_target_cannot_cross_function_boundary.code,F.Line_terminator_not_permitted_before_arrow.code,F.Modifiers_cannot_appear_here.code,F.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,F.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,F.Private_identifiers_are_not_allowed_outside_class_bodies.code,F.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,F.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,F.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,F.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,F.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,F.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,F.Trailing_comma_not_allowed.code,F.Variable_declaration_list_cannot_be_empty.code,F._0_and_1_operations_cannot_be_mixed_without_parentheses.code,F._0_expected.code,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,F._0_list_cannot_be_empty.code,F._0_modifier_already_seen.code,F._0_modifier_cannot_appear_on_a_constructor_declaration.code,F._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,F._0_modifier_cannot_appear_on_a_parameter.code,F._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,F._0_modifier_cannot_be_used_here.code,F._0_modifier_must_precede_1_modifier.code,F._0_declarations_can_only_be_declared_inside_a_block.code,F._0_declarations_must_be_initialized.code,F.extends_clause_already_seen.code,F.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,F.Class_constructor_may_not_be_a_generator.code,F.Class_constructor_may_not_be_an_accessor.code,F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.Private_field_0_must_be_declared_in_an_enclosing_class.code,F.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),wQ={diagnostics:_t,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),xzt=o({"src/compiler/builderStatePublic.ts"(){}});function V7e(t,u,s,d,f,p){const E=[],{emitSkipped:v,diagnostics:b}=t.emit(u,B,d,s,f,p);return{outputFiles:E,emitSkipped:v,diagnostics:b};function B(k,T,M){E.push({name:k,writeByteOrderMark:M,text:T})}}var Vp,vzt=o({"src/compiler/builderState.ts"(){Ao(),(t=>{function u(){function pe(fe,xe,Be){const We={getKeys:Ae=>xe.get(Ae),getValues:Ae=>fe.get(Ae),keys:()=>fe.keys(),deleteKey:Ae=>{(Be||(Be=new Set)).add(Ae);const De=fe.get(Ae);return De?(De.forEach(He=>d(xe,He,Ae)),fe.delete(Ae),!0):!1},set:(Ae,De)=>{Be==null||Be.delete(Ae);const He=fe.get(Ae);return fe.set(Ae,De),He==null||He.forEach(Ge=>{De.has(Ge)||d(xe,Ge,Ae)}),De.forEach(Ge=>{He!=null&&He.has(Ge)||s(xe,Ge,Ae)}),We}};return We}return pe(new Map,new Map,void 0)}t.createManyToManyPathMap=u;function s(pe,fe,xe){let Be=pe.get(fe);Be||(Be=new Set,pe.set(fe,Be)),Be.add(xe)}function d(pe,fe,xe){const Be=pe.get(fe);return Be!=null&&Be.delete(xe)?(Be.size||pe.delete(fe),!0):!1}function f(pe){return Ui(pe.declarations,fe=>{var xe;return(xe=In(fe))==null?void 0:xe.resolvedPath})}function p(pe,fe){const xe=pe.getSymbolAtLocation(fe);return xe&&f(xe)}function E(pe,fe,xe,Be){return H0(pe.getProjectReferenceRedirect(fe)||fe,xe,Be)}function v(pe,fe,xe){let Be;if(fe.imports&&fe.imports.length>0){const He=pe.getTypeChecker();for(const Ge of fe.imports){const ft=p(He,Ge);ft==null||ft.forEach(De)}}const We=dr(fe.resolvedPath);if(fe.referencedFiles&&fe.referencedFiles.length>0)for(const He of fe.referencedFiles){const Ge=E(pe,He.fileName,We,xe);De(Ge)}if(pe.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:He})=>{if(!He)return;const Ge=He.resolvedFileName,ft=E(pe,Ge,We,xe);De(ft)},fe),fe.moduleAugmentations.length){const He=pe.getTypeChecker();for(const Ge of fe.moduleAugmentations){if(!ns(Ge))continue;const ft=He.getSymbolAtLocation(Ge);ft&&Ae(ft)}}for(const He of pe.getTypeChecker().getAmbientModules())He.declarations&&He.declarations.length>1&&Ae(He);return Be;function Ae(He){if(He.declarations)for(const Ge of He.declarations){const ft=In(Ge);ft&&ft!==fe&&De(ft.resolvedPath)}}function De(He){(Be||(Be=new Set)).add(He)}}function b(pe,fe){return fe&&!fe.referencedMap==!pe}t.canReuseOldState=b;function B(pe,fe,xe){var Be,We,Ae;const De=new Map,He=pe.getCompilerOptions(),Ge=b0(He),ft=He.module!==0&&!Ge?u():void 0,Ze=ft?u():void 0,je=b(ft,fe);pe.getTypeChecker();for(const Ke of pe.getSourceFiles()){const Gt=H.checkDefined(Ke.version,"Program intended to be used with Builder should have source files with versions set"),Yt=je?(Be=fe.oldSignatures)==null?void 0:Be.get(Ke.resolvedPath):void 0,Ie=Yt===void 0?je?(We=fe.fileInfos.get(Ke.resolvedPath))==null?void 0:We.signature:void 0:Yt||void 0;if(ft){const st=v(pe,Ke,pe.getCanonicalFileName);if(st&&ft.set(Ke.resolvedPath,st),je){const St=(Ae=fe.oldExportedModulesMap)==null?void 0:Ae.get(Ke.resolvedPath),It=St===void 0?fe.exportedModulesMap.getValues(Ke.resolvedPath):St||void 0;It&&Ze.set(Ke.resolvedPath,It)}}De.set(Ke.resolvedPath,{version:Gt,signature:Ie,affectsGlobalScope:Ge?void 0:ne(Ke)||void 0,impliedFormat:Ke.impliedNodeFormat})}return{fileInfos:De,referencedMap:ft,exportedModulesMap:Ze,useFileVersionAsSignature:!xe&&!je}}t.create=B;function k(pe){pe.allFilesExcludingDefaultLibraryFile=void 0,pe.allFileNames=void 0}t.releaseCache=k;function T(pe,fe,xe,Be,We){var Ae,De;const He=M(pe,fe,xe,Be,We);return(Ae=pe.oldSignatures)==null||Ae.clear(),(De=pe.oldExportedModulesMap)==null||De.clear(),He}t.getFilesAffectedBy=T;function M(pe,fe,xe,Be,We){const Ae=fe.getSourceFileByPath(xe);return Ae?J(pe,fe,Ae,Be,We)?(pe.referencedMap?Ne:Se)(pe,fe,Ae,Be,We):[Ae]:_t}t.getFilesAffectedByWithOldState=M;function z(pe,fe,xe){pe.fileInfos.get(xe).signature=fe,(pe.hasCalledUpdateShapeSignature||(pe.hasCalledUpdateShapeSignature=new Set)).add(xe)}t.updateSignatureOfFile=z;function j(pe,fe,xe,Be,We){pe.emit(fe,(Ae,De,He,Ge,ft,Ze)=>{H.assert(Xd(Ae),`File extension for signature expected to be dts: Got:: ${Ae}`),We(R1e(pe,fe,De,Be,Ze),ft)},xe,!0,void 0,!0)}t.computeDtsSignature=j;function J(pe,fe,xe,Be,We,Ae=pe.useFileVersionAsSignature){var De;if((De=pe.hasCalledUpdateShapeSignature)!=null&&De.has(xe.resolvedPath))return!1;const He=pe.fileInfos.get(xe.resolvedPath),Ge=He.signature;let ft;if(!xe.isDeclarationFile&&!Ae&&j(fe,xe,Be,We,(Ze,je)=>{ft=Ze,ft!==Ge&&K(pe,xe,je[0].exportedModulesFromDeclarationEmit)}),ft===void 0&&(ft=xe.version,pe.exportedModulesMap&&ft!==Ge)){(pe.oldExportedModulesMap||(pe.oldExportedModulesMap=new Map)).set(xe.resolvedPath,pe.exportedModulesMap.getValues(xe.resolvedPath)||!1);const Ze=pe.referencedMap?pe.referencedMap.getValues(xe.resolvedPath):void 0;Ze?pe.exportedModulesMap.set(xe.resolvedPath,Ze):pe.exportedModulesMap.deleteKey(xe.resolvedPath)}return(pe.oldSignatures||(pe.oldSignatures=new Map)).set(xe.resolvedPath,Ge||!1),(pe.hasCalledUpdateShapeSignature||(pe.hasCalledUpdateShapeSignature=new Set)).add(xe.resolvedPath),He.signature=ft,ft!==Ge}t.updateShapeSignature=J;function K(pe,fe,xe){if(!pe.exportedModulesMap)return;(pe.oldExportedModulesMap||(pe.oldExportedModulesMap=new Map)).set(fe.resolvedPath,pe.exportedModulesMap.getValues(fe.resolvedPath)||!1);const Be=Y(xe);Be?pe.exportedModulesMap.set(fe.resolvedPath,Be):pe.exportedModulesMap.deleteKey(fe.resolvedPath)}t.updateExportedModules=K;function Y(pe){let fe;return pe==null||pe.forEach(xe=>f(xe).forEach(Be=>(fe??(fe=new Set)).add(Be))),fe}t.getExportedModules=Y;function oe(pe,fe,xe){const Be=fe.getCompilerOptions();if(b0(Be)||!pe.referencedMap||ne(xe))return se(pe,fe);const We=new Set,Ae=[xe.resolvedPath];for(;Ae.length;){const De=Ae.pop();if(!We.has(De)){We.add(De);const He=pe.referencedMap.getValues(De);if(He)for(const Ge of He.keys())Ae.push(Ge)}}return Ea(Uo(We.keys(),De=>{var He;return((He=fe.getSourceFileByPath(De))==null?void 0:He.fileName)??De}))}t.getAllDependencies=oe;function se(pe,fe){if(!pe.allFileNames){const xe=fe.getSourceFiles();pe.allFileNames=xe===_t?_t:xe.map(Be=>Be.fileName)}return pe.allFileNames}function ge(pe,fe){const xe=pe.referencedMap.getKeys(fe);return xe?Ea(xe.keys()):[]}t.getReferencedByPaths=ge;function ae(pe){for(const fe of pe.statements)if(!YU(fe))return!1;return!0}function Ce(pe){return qe(pe.moduleAugmentations,fe=>Zg(fe.parent))}function ne(pe){return Ce(pe)||!lm(pe)&&!H4(pe)&&!ae(pe)}function ve(pe,fe,xe){if(pe.allFilesExcludingDefaultLibraryFile)return pe.allFilesExcludingDefaultLibraryFile;let Be;xe&&We(xe);for(const Ae of fe.getSourceFiles())Ae!==xe&&We(Ae);return pe.allFilesExcludingDefaultLibraryFile=Be||_t,pe.allFilesExcludingDefaultLibraryFile;function We(Ae){fe.isSourceFileDefaultLibrary(Ae)||(Be||(Be=[])).push(Ae)}}t.getAllFilesExcludingDefaultLibraryFile=ve;function Se(pe,fe,xe){const Be=fe.getCompilerOptions();return Be&&b0(Be)?[xe]:ve(pe,fe,xe)}function Ne(pe,fe,xe,Be,We){if(ne(xe))return ve(pe,fe,xe);const Ae=fe.getCompilerOptions();if(Ae&&(hg(Ae)||b0(Ae)))return[xe];const De=new Map;De.set(xe.resolvedPath,xe);const He=ge(pe,xe.resolvedPath);for(;He.length>0;){const Ge=He.pop();if(!De.has(Ge)){const ft=fe.getSourceFileByPath(Ge);De.set(Ge,ft),ft&&J(pe,fe,ft,Be,We)&&He.push(...ge(pe,ft.resolvedPath))}}return Ea(Uo(De.values(),Ge=>Ge))}})(Vp||(Vp={}))}});function $x(t){let u=1;return t.sourceMap&&(u=u|2),t.inlineSourceMap&&(u=u|4),l4(t)&&(u=u|8),t.declarationMap&&(u=u|16),t.emitDeclarationOnly&&(u=u&24),u}function YB(t,u){const s=u&&($D(u)?u:$x(u)),d=$D(t)?t:$x(t);if(s===d)return 0;if(!s||!d)return d;const f=s^d;let p=0;return f&7&&(p=d&7),f&24&&(p=p|d&24),p}function Czt(t,u){return t===u||t!==void 0&&u!==void 0&&t.size===u.size&&!$_(t,s=>!u.has(s))}function bzt(t,u){var s,d;const f=Vp.create(t,u,!1);f.program=t;const p=t.getCompilerOptions();f.compilerOptions=p;const E=b0(p);E?p.composite&&(u!=null&&u.outSignature)&&E===b0(u==null?void 0:u.compilerOptions)&&(f.outSignature=u.outSignature&&ctt(p,u.compilerOptions,u.outSignature)):f.semanticDiagnosticsPerFile=new Map,f.changedFilesSet=new Set,f.latestChangedDtsFile=p.composite?u==null?void 0:u.latestChangedDtsFile:void 0;const v=Vp.canReuseOldState(f.referencedMap,u),b=v?u.compilerOptions:void 0,B=v&&u.semanticDiagnosticsPerFile&&!!f.semanticDiagnosticsPerFile&&!rke(p,b),k=p.composite&&(u==null?void 0:u.emitSignatures)&&!E&&!oke(p,u.compilerOptions);v?((s=u.changedFilesSet)==null||s.forEach(J=>f.changedFilesSet.add(J)),!E&&((d=u.affectedFilesPendingEmit)!=null&&d.size)&&(f.affectedFilesPendingEmit=new Map(u.affectedFilesPendingEmit),f.seenAffectedFiles=new Set),f.programEmitPending=u.programEmitPending):f.buildInfoEmitPending=!0;const T=f.referencedMap,M=v?u.referencedMap:void 0,z=B&&!p.skipLibCheck==!b.skipLibCheck,j=z&&!p.skipDefaultLibCheck==!b.skipDefaultLibCheck;if(f.fileInfos.forEach((J,K)=>{let Y,oe;if(!v||!(Y=u.fileInfos.get(K))||Y.version!==J.version||Y.impliedFormat!==J.impliedFormat||!Czt(oe=T&&T.getValues(K),M&&M.getValues(K))||oe&&$_(oe,se=>!f.fileInfos.has(se)&&u.fileInfos.has(se)))ltt(f,K);else if(B){const se=t.getSourceFileByPath(K);if(se.isDeclarationFile&&!z||se.hasNoDefaultLib&&!j)return;const ge=u.semanticDiagnosticsPerFile.get(K);ge&&(f.semanticDiagnosticsPerFile.set(K,u.hasReusableDiagnostic?kzt(ge,t):yzt(ge,t)),f.semanticDiagnosticsFromOldState||(f.semanticDiagnosticsFromOldState=new Set),f.semanticDiagnosticsFromOldState.add(K))}if(k){const se=u.emitSignatures.get(K);se&&(f.emitSignatures??(f.emitSignatures=new Map)).set(K,ctt(p,u.compilerOptions,se))}}),v&&d1(u.fileInfos,(J,K)=>f.fileInfos.has(K)?!1:E||J.affectsGlobalScope?!0:(f.buildInfoEmitPending=!0,!1)))Vp.getAllFilesExcludingDefaultLibraryFile(f,t,void 0).forEach(J=>ltt(f,J.resolvedPath));else if(b){const J=ake(p,b)?$x(p):YB(p,b);J!==0&&(E?f.programEmitPending=f.programEmitPending?f.programEmitPending|J:J:(t.getSourceFiles().forEach(K=>{f.changedFilesSet.has(K.resolvedPath)||U7e(f,K.resolvedPath,J)}),H.assert(!f.seenAffectedFiles||!f.seenAffectedFiles.size),f.seenAffectedFiles=f.seenAffectedFiles||new Set,f.buildInfoEmitPending=!0))}return E&&!f.changedFilesSet.size&&(v&&(f.bundle=u.bundle),qe(t.getProjectReferences(),J=>!!J.prepend)&&(f.programEmitPending=$x(p))),f}function ltt(t,u){t.changedFilesSet.add(u),t.buildInfoEmitPending=!0,t.programEmitPending=void 0}function ctt(t,u,s){return!!t.declarationMap==!!u.declarationMap?s:Ja(s)?[s]:s[0]}function yzt(t,u){return t.length?Mu(t,s=>{if(Ja(s.messageText))return s;const d=H7e(s.messageText,s.file,u,f=>{var p;return(p=f.repopulateInfo)==null?void 0:p.call(f)});return d===s.messageText?s:{...s,messageText:d}}):t}function H7e(t,u,s,d){const f=d(t);if(f)return{...a0e(u,s,f.moduleReference,f.mode,f.packageName||f.moduleReference),next:dtt(t.next,u,s,d)};const p=dtt(t.next,u,s,d);return p===t.next?t:{...t,next:p}}function dtt(t,u,s,d){return Mu(t,f=>H7e(f,u,s,d))}function kzt(t,u){if(!t.length)return _t;let s;return t.map(f=>{const p=htt(f,u,d);p.reportsUnnecessary=f.reportsUnnecessary,p.reportsDeprecated=f.reportDeprecated,p.source=f.source,p.skippedOn=f.skippedOn;const{relatedInformation:E}=f;return p.relatedInformation=E?E.length?E.map(v=>htt(v,u,d)):[]:void 0,p});function d(f){return s??(s=dr($a(h5(u.getCompilerOptions()),u.getCurrentDirectory()))),H0(f,s,u.getCanonicalFileName)}}function htt(t,u,s){const{file:d}=t,f=d?u.getSourceFileByPath(s(d)):void 0;return{...t,file:f,messageText:Ja(t.messageText)?t.messageText:H7e(t.messageText,f,u,p=>p.info)}}function Fzt(t){Vp.releaseCache(t),t.program=void 0}function Azt(t){const u=b0(t.compilerOptions);return H.assert(!t.changedFilesSet.size||u),{affectedFilesPendingEmit:t.affectedFilesPendingEmit&&new Map(t.affectedFilesPendingEmit),seenEmittedFiles:t.seenEmittedFiles&&new Map(t.seenEmittedFiles),programEmitPending:t.programEmitPending,emitSignatures:t.emitSignatures&&new Map(t.emitSignatures),outSignature:t.outSignature,latestChangedDtsFile:t.latestChangedDtsFile,hasChangedEmitSignature:t.hasChangedEmitSignature,changedFilesSet:u?new Set(t.changedFilesSet):void 0}}function Szt(t,u){t.affectedFilesPendingEmit=u.affectedFilesPendingEmit,t.seenEmittedFiles=u.seenEmittedFiles,t.programEmitPending=u.programEmitPending,t.emitSignatures=u.emitSignatures,t.outSignature=u.outSignature,t.latestChangedDtsFile=u.latestChangedDtsFile,t.hasChangedEmitSignature=u.hasChangedEmitSignature,u.changedFilesSet&&(t.changedFilesSet=u.changedFilesSet)}function ftt(t,u){H.assert(!u||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==u||!t.semanticDiagnosticsPerFile.has(u.resolvedPath))}function mtt(t,u,s){for(var d,f;;){const{affectedFiles:p}=t;if(p){const B=t.seenAffectedFiles;let k=t.affectedFilesIndex;for(;k{const p=d&7;p?t.affectedFilesPendingEmit.set(f,p):t.affectedFilesPendingEmit.delete(f)})}}function wzt(t,u){var s;if((s=t.affectedFilesPendingEmit)!=null&&s.size)return d1(t.affectedFilesPendingEmit,(d,f)=>{var p;const E=t.program.getSourceFileByPath(f);if(!E||!f7(E,t.program)){t.affectedFilesPendingEmit.delete(f);return}const v=(p=t.seenEmittedFiles)==null?void 0:p.get(E.resolvedPath);let b=YB(d,v);if(u&&(b=b&24),b)return{affectedFile:E,emitKind:b}})}function ptt(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;const u=H.checkDefined(t.program),s=u.getCompilerOptions();L(u.getSourceFiles(),d=>u.isSourceFileDefaultLibrary(d)&&!FP(d,s,u)&&K7e(t,d.resolvedPath))}}function Tzt(t,u,s,d){if(K7e(t,u.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){ptt(t),Vp.updateShapeSignature(t,H.checkDefined(t.program),u,s,d);return}t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Lzt(t,u,s,d)}function I1e(t,u,s,d){if(K7e(t,u),!t.changedFilesSet.has(u)){const f=H.checkDefined(t.program),p=f.getSourceFileByPath(u);p&&(Vp.updateShapeSignature(t,f,p,s,d,!0),l4(t.compilerOptions)&&U7e(t,u,t.compilerOptions.declarationMap?24:8))}}function K7e(t,u){return t.semanticDiagnosticsFromOldState?(t.semanticDiagnosticsFromOldState.delete(u),t.semanticDiagnosticsPerFile.delete(u),!t.semanticDiagnosticsFromOldState.size):!0}function gtt(t,u){const s=H.checkDefined(t.oldSignatures).get(u)||void 0;return H.checkDefined(t.fileInfos.get(u)).signature!==s}function W7e(t,u,s,d){var f;return(f=t.fileInfos.get(u))!=null&&f.affectsGlobalScope?(Vp.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(p=>I1e(t,p.resolvedPath,s,d)),ptt(t),!0):!1}function Lzt(t,u,s,d){var f;if(!t.exportedModulesMap||!t.changedFilesSet.has(u.resolvedPath)||!gtt(t,u.resolvedPath))return;if(hg(t.compilerOptions)){const E=new Map;E.set(u.resolvedPath,!0);const v=Vp.getReferencedByPaths(t,u.resolvedPath);for(;v.length>0;){const b=v.pop();if(!E.has(b)){if(E.set(b,!0),W7e(t,b,s,d))return;if(I1e(t,b,s,d),gtt(t,b)){const B=H.checkDefined(t.program).getSourceFileByPath(b);v.push(...Vp.getReferencedByPaths(t,B.resolvedPath))}}}}const p=new Set;(f=t.exportedModulesMap.getKeys(u.resolvedPath))==null||f.forEach(E=>{if(W7e(t,E,s,d))return!0;const v=t.referencedMap.getKeys(E);return v&&$_(v,b=>Ett(t,b,p,s,d))})}function Ett(t,u,s,d,f){var p,E;if(Ll(s,u)){if(W7e(t,u,d,f))return!0;I1e(t,u,d,f),(p=t.exportedModulesMap.getKeys(u))==null||p.forEach(v=>Ett(t,v,s,d,f)),(E=t.referencedMap.getKeys(u))==null||E.forEach(v=>!s.has(v)&&I1e(t,v,d,f))}}function G7e(t,u,s){return an(Nzt(t,u,s),H.checkDefined(t.program).getProgramDiagnostics(u))}function Nzt(t,u,s){const d=u.resolvedPath;if(t.semanticDiagnosticsPerFile){const p=t.semanticDiagnosticsPerFile.get(d);if(p)return kQ(p,t.compilerOptions)}const f=H.checkDefined(t.program).getBindAndCheckDiagnostics(u,s);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(d,f),kQ(f,t.compilerOptions)}function J7e(t){return!!b0(t.options||{})}function Pzt(t,u){var s,d,f;const p=H.checkDefined(t.program).getCurrentDirectory(),E=dr($a(h5(t.compilerOptions),p)),v=t.latestChangedDtsFile?ae(t.latestChangedDtsFile):void 0,b=[],B=new Map,k=[];if(b0(t.compilerOptions)){const pe=Ea(t.fileInfos.entries(),([De,He])=>{const Ge=ne(De);return Se(De,Ge),He.impliedFormat?{version:He.version,impliedFormat:He.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:He.version}),fe={fileNames:b,fileInfos:pe,root:k,options:Ne(t.compilerOptions),outSignature:t.outSignature,latestChangedDtsFile:v,pendingEmit:t.programEmitPending?t.programEmitPending===$x(t.compilerOptions)?!1:t.programEmitPending:void 0},{js:xe,dts:Be,commonSourceDirectory:We,sourceFiles:Ae}=u;return t.bundle=u={commonSourceDirectory:We,sourceFiles:Ae,js:xe||(t.compilerOptions.emitDeclarationOnly||(s=t.bundle)==null?void 0:s.js),dts:Be||(l4(t.compilerOptions)?(d=t.bundle)==null?void 0:d.dts:void 0)},mH(fe,u)}let T,M,z;const j=Ea(t.fileInfos.entries(),([pe,fe])=>{var xe,Be;const We=ne(pe);Se(pe,We),H.assert(b[We-1]===Ce(pe));const Ae=(xe=t.oldSignatures)==null?void 0:xe.get(pe),De=Ae!==void 0?Ae||void 0:fe.signature;if(t.compilerOptions.composite){const He=t.program.getSourceFileByPath(pe);if(!H4(He)&&f7(He,t.program)){const Ge=(Be=t.emitSignatures)==null?void 0:Be.get(pe);Ge!==De&&(z||(z=[])).push(Ge===void 0?We:[We,!Ja(Ge)&&Ge[0]===De?_t:Ge])}}return fe.version===De?fe.affectsGlobalScope||fe.impliedFormat?{version:fe.version,signature:void 0,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}:fe.version:De!==void 0?Ae===void 0?fe:{version:fe.version,signature:De,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}:{version:fe.version,signature:!1,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}});let J;t.referencedMap&&(J=Ea(t.referencedMap.keys()).sort(ch).map(pe=>[ne(pe),ve(t.referencedMap.getValues(pe))]));let K;t.exportedModulesMap&&(K=Ui(Ea(t.exportedModulesMap.keys()).sort(ch),pe=>{var fe;const xe=(fe=t.oldExportedModulesMap)==null?void 0:fe.get(pe);if(xe===void 0)return[ne(pe),ve(t.exportedModulesMap.getValues(pe))];if(xe)return[ne(pe),ve(xe)]}));let Y;if(t.semanticDiagnosticsPerFile)for(const pe of Ea(t.semanticDiagnosticsPerFile.keys()).sort(ch)){const fe=t.semanticDiagnosticsPerFile.get(pe);(Y||(Y=[])).push(fe.length?[ne(pe),zzt(fe,Ce)]:ne(pe))}let oe;if((f=t.affectedFilesPendingEmit)!=null&&f.size){const pe=$x(t.compilerOptions),fe=new Set;for(const xe of Ea(t.affectedFilesPendingEmit.keys()).sort(ch))if(Ll(fe,xe)){const Be=t.program.getSourceFileByPath(xe);if(!Be||!f7(Be,t.program))continue;const We=ne(xe),Ae=t.affectedFilesPendingEmit.get(xe);(oe||(oe=[])).push(Ae===pe?We:Ae===8?[We]:[We,Ae])}}let se;if(t.changedFilesSet.size)for(const pe of Ea(t.changedFilesSet.keys()).sort(ch))(se||(se=[])).push(ne(pe));const ge={fileNames:b,fileInfos:j,root:k,options:Ne(t.compilerOptions),fileIdsList:T,referencedMap:J,exportedModulesMap:K,semanticDiagnosticsPerFile:Y,affectedFilesPendingEmit:oe,changeFileSet:se,emitSignatures:z,latestChangedDtsFile:v};return mH(ge,u);function ae(pe){return Ce($a(pe,p))}function Ce(pe){return l2(GE(E,pe,t.program.getCanonicalFileName))}function ne(pe){let fe=B.get(pe);return fe===void 0&&(b.push(Ce(pe)),B.set(pe,fe=b.length)),fe}function ve(pe){const fe=Ea(pe.keys(),ne).sort(tl),xe=fe.join();let Be=M==null?void 0:M.get(xe);return Be===void 0&&((T||(T=[])).push(fe),(M||(M=new Map)).set(xe,Be=T.length)),Be}function Se(pe,fe){const xe=t.program.getSourceFile(pe);if(!t.program.getFileIncludeReasons().get(xe.path).some(De=>De.kind===0))return;if(!k.length)return k.push(fe);const Be=k[k.length-1],We=Ha(Be);if(We&&Be[1]===fe-1)return Be[1]=fe;if(We||k.length===1||Be!==fe-1)return k.push(fe);const Ae=k[k.length-2];return!$D(Ae)||Ae!==Be-1?k.push(fe):(k[k.length-2]=[Ae,fe],k.length=k.length-1)}function Ne(pe){let fe;const{optionsNameMap:xe}=RB();for(const Be of Ts(pe).sort(ch)){const We=xe.get(Be.toLowerCase());We!=null&&We.affectsBuildInfo&&((fe||(fe={}))[Be]=Mzt(We,pe[Be],ae))}return fe}}function Mzt(t,u,s){if(t){if(H.assert(t.type!=="listOrElement"),t.type==="list"){const d=u;if(t.element.isFilePath&&d.length)return d.map(s)}else if(t.isFilePath)return s(u)}return u}function zzt(t,u){return H.assert(!!t.length),t.map(s=>{const d=_tt(s,u);d.reportsUnnecessary=s.reportsUnnecessary,d.reportDeprecated=s.reportsDeprecated,d.source=s.source,d.skippedOn=s.skippedOn;const{relatedInformation:f}=s;return d.relatedInformation=f?f.length?f.map(p=>_tt(p,u)):[]:void 0,d})}function _tt(t,u){const{file:s}=t;return{...t,file:s?u(s.resolvedPath):void 0,messageText:Ja(t.messageText)?t.messageText:$7e(t.messageText)}}function $7e(t){if(t.repopulateInfo)return{info:t.repopulateInfo(),next:Dtt(t.next)};const u=Dtt(t.next);return u===t.next?t:{...t,next:u}}function Dtt(t){return t&&(L(t,(u,s)=>{const d=$7e(u);if(u===d)return;const f=s>0?t.slice(0,s-1):[];f.push(d);for(let p=s+1;p`${b(B)}${DO[B.category]}${B.code}: ${v(B.messageText)}`).join(` -`)),(d.createHash??FN)(s);function v(B){return Ja(B)?B:B===void 0?"":B.next?B.messageText+B.next.map(v).join(` -`):B.messageText}function b(B){return B.file.resolvedPath===u.resolvedPath?`(${B.start},${B.length})`:(E===void 0&&(E=dr(u.resolvedPath)),`${l2(GE(E,B.file.resolvedPath,t.getCanonicalFileName))}(${B.start},${B.length})`)}}function Tk(t,u,s){return(u.createHash??FN)(xtt(t,s))}function O1e(t,{newProgram:u,host:s,oldProgram:d,configFileParsingDiagnostics:f}){let p=d&&d.getState();if(p&&u===p.program&&f===u.getConfigFileParsingDiagnostics())return u=void 0,p=void 0,d;const E=bzt(u,p);u.getBuildInfo=J=>Pzt(E,J),u=void 0,d=void 0,p=void 0;const v=()=>E,b=V1e(v,f);return b.getState=v,b.saveEmitState=()=>Azt(E),b.restoreEmitState=J=>Szt(E,J),b.hasChangedEmitSignature=()=>!!E.hasChangedEmitSignature,b.getAllDependencies=J=>Vp.getAllDependencies(E,H.checkDefined(E.program),J),b.getSemanticDiagnostics=j,b.emit=M,b.releaseProgram=()=>Fzt(E),t===0?b.getSemanticDiagnosticsOfNextAffectedFile=z:t===1?(b.getSemanticDiagnosticsOfNextAffectedFile=z,b.emitNextAffectedFile=k,b.emitBuildInfo=B):lo(),b;function B(J,K){if(E.buildInfoEmitPending){const Y=H.checkDefined(E.program).emitBuildInfo(J||wo(s,s.writeFile),K);return E.buildInfoEmitPending=!1,Y}return wQ}function k(J,K,Y,oe){var se,ge,ae;let Ce=mtt(E,K,s);const ne=$x(E.compilerOptions);let ve=Y?ne&24:ne;if(!Ce)if(b0(E.compilerOptions)){if(!E.programEmitPending||(ve=E.programEmitPending,Y&&(ve=ve&24),!ve))return;Ce=E.program}else{const pe=wzt(E,Y);if(!pe){if(!E.buildInfoEmitPending)return;const fe=E.program,xe=fe.emitBuildInfo(J||wo(s,s.writeFile),K);return E.buildInfoEmitPending=!1,{result:xe,affected:fe}}({affectedFile:Ce,emitKind:ve}=pe)}let Se;ve&7&&(Se=0),ve&24&&(Se=Se===void 0?1:void 0),Ce===E.program&&(E.programEmitPending=E.changedFilesSet.size?YB(ne,ve):E.programEmitPending?YB(E.programEmitPending,ve):void 0);const Ne=E.program.emit(Ce===E.program?void 0:Ce,T(J,oe),K,Se,oe);if(Ce!==E.program){const pe=Ce;E.seenAffectedFiles.add(pe.resolvedPath),E.affectedFilesIndex!==void 0&&E.affectedFilesIndex++,E.buildInfoEmitPending=!0;const fe=((se=E.seenEmittedFiles)==null?void 0:se.get(pe.resolvedPath))||0;(E.seenEmittedFiles??(E.seenEmittedFiles=new Map)).set(pe.resolvedPath,ve|fe);const xe=((ge=E.affectedFilesPendingEmit)==null?void 0:ge.get(pe.resolvedPath))||ne,Be=YB(xe,ve|fe);Be?(E.affectedFilesPendingEmit??(E.affectedFilesPendingEmit=new Map)).set(pe.resolvedPath,Be):(ae=E.affectedFilesPendingEmit)==null||ae.delete(pe.resolvedPath)}else E.changedFilesSet.clear();return{result:Ne,affected:Ce}}function T(J,K){return l4(E.compilerOptions)?(Y,oe,se,ge,ae,Ce)=>{var ne,ve,Se,Ne;if(Xd(Y))if(b0(E.compilerOptions)){if(E.compilerOptions.composite){const fe=pe(E.outSignature,void 0);if(!fe)return;E.outSignature=fe}}else{H.assert((ae==null?void 0:ae.length)===1);let fe;if(!K){const xe=ae[0],Be=E.fileInfos.get(xe.resolvedPath);if(Be.signature===xe.version){const We=R1e(E.program,xe,oe,s,Ce);(ne=Ce==null?void 0:Ce.diagnostics)!=null&&ne.length||(fe=We),We!==xe.version&&(s.storeFilesChangingSignatureDuringEmit&&(E.filesChangingSignature??(E.filesChangingSignature=new Set)).add(xe.resolvedPath),E.exportedModulesMap&&Vp.updateExportedModules(E,xe,xe.exportedModulesFromDeclarationEmit),E.affectedFiles?(((ve=E.oldSignatures)==null?void 0:ve.get(xe.resolvedPath))===void 0&&(E.oldSignatures??(E.oldSignatures=new Map)).set(xe.resolvedPath,Be.signature||!1),Be.signature=We):(Be.signature=We,(Se=E.oldExportedModulesMap)==null||Se.clear()))}}if(E.compilerOptions.composite){const xe=ae[0].resolvedPath;if(fe=pe((Ne=E.emitSignatures)==null?void 0:Ne.get(xe),fe),!fe)return;(E.emitSignatures??(E.emitSignatures=new Map)).set(xe,fe)}}J?J(Y,oe,se,ge,ae,Ce):s.writeFile?s.writeFile(Y,oe,se,ge,ae,Ce):E.program.writeFile(Y,oe,se,ge,ae,Ce);function pe(fe,xe){const Be=!fe||Ja(fe)?fe:fe[0];if(xe??(xe=Tk(oe,s,Ce)),xe===Be){if(fe===Be)return;Ce?Ce.differsOnlyInMap=!0:Ce={differsOnlyInMap:!0}}else E.hasChangedEmitSignature=!0,E.latestChangedDtsFile=Y;return xe}}:J||wo(s,s.writeFile)}function M(J,K,Y,oe,se){t===1&&ftt(E,J);const ge=T1e(b,J,K,Y);if(ge)return ge;if(!J)if(t===1){let ae=[],Ce=!1,ne,ve=[],Se;for(;Se=k(K,Y,oe,se);)Ce=Ce||Se.result.emitSkipped,ne=kn(ne,Se.result.diagnostics),ve=kn(ve,Se.result.emittedFiles),ae=kn(ae,Se.result.sourceMaps);return{emitSkipped:Ce,diagnostics:ne||_t,emittedFiles:ve,sourceMaps:ae}}else Bzt(E,oe);return H.checkDefined(E.program).emit(J,T(K,se),Y,oe,se)}function z(J,K){for(;;){const Y=mtt(E,J,s);let oe;if(Y)if(Y!==E.program){const se=Y;if((!K||!K(se))&&(oe=G7e(E,se,J)),E.seenAffectedFiles.add(se.resolvedPath),E.affectedFilesIndex++,E.buildInfoEmitPending=!0,!oe)continue}else oe=E.program.getSemanticDiagnostics(void 0,J),E.changedFilesSet.clear(),E.programEmitPending=$x(E.compilerOptions);else return;return{result:oe,affected:Y}}}function j(J,K){ftt(E,J);const Y=H.checkDefined(E.program).getCompilerOptions();if(b0(Y))return H.assert(!E.semanticDiagnosticsPerFile),H.checkDefined(E.program).getSemanticDiagnostics(J,K);if(J)return G7e(E,J,K);for(;z(K););let oe;for(const se of H.checkDefined(E.program).getSourceFiles())oe=kn(oe,G7e(E,se,K));return oe||_t}}function U7e(t,u,s){var d;const f=((d=t.affectedFilesPendingEmit)==null?void 0:d.get(u))||0;(t.affectedFilesPendingEmit??(t.affectedFilesPendingEmit=new Map)).set(u,f|s)}function q7e(t){return Ja(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:Ja(t.signature)?t:{version:t.version,signature:t.signature===!1?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function Z7e(t,u){return $D(t)?u:t[1]||8}function Y7e(t,u){return t||$x(u||{})}function Q7e(t,u,s){var d,f,p,E;const v=t.program,b=dr($a(u,s.getCurrentDirectory())),B=T1(s.useCaseSensitiveFileNames());let k;const T=(d=v.fileNames)==null?void 0:d.map(j);let M;const z=v.latestChangedDtsFile?J(v.latestChangedDtsFile):void 0;if(J7e(v)){const se=new Map;v.fileInfos.forEach((ge,ae)=>{const Ce=K(ae+1);se.set(Ce,Ja(ge)?{version:ge,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:ge)}),k={fileInfos:se,compilerOptions:v.options?ade(v.options,J):{},latestChangedDtsFile:z,outSignature:v.outSignature,programEmitPending:v.pendingEmit===void 0?void 0:Y7e(v.pendingEmit,v.options),bundle:t.bundle}}else{M=(f=v.fileIdsList)==null?void 0:f.map(Ce=>new Set(Ce.map(K)));const se=new Map,ge=(p=v.options)!=null&&p.composite&&!b0(v.options)?new Map:void 0;v.fileInfos.forEach((Ce,ne)=>{const ve=K(ne+1),Se=q7e(Ce);se.set(ve,Se),ge&&Se.signature&&ge.set(ve,Se.signature)}),(E=v.emitSignatures)==null||E.forEach(Ce=>{if($D(Ce))ge.delete(K(Ce));else{const ne=K(Ce[0]);ge.set(ne,!Ja(Ce[1])&&!Ce[1].length?[ge.get(ne)]:Ce[1])}});const ae=v.affectedFilesPendingEmit?$x(v.options||{}):void 0;k={fileInfos:se,compilerOptions:v.options?ade(v.options,J):{},referencedMap:oe(v.referencedMap),exportedModulesMap:oe(v.exportedModulesMap),semanticDiagnosticsPerFile:v.semanticDiagnosticsPerFile&&og(v.semanticDiagnosticsPerFile,Ce=>K($D(Ce)?Ce:Ce[0]),Ce=>$D(Ce)?_t:Ce[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:v.affectedFilesPendingEmit&&og(v.affectedFilesPendingEmit,Ce=>K($D(Ce)?Ce:Ce[0]),Ce=>Z7e(Ce,ae)),changedFilesSet:new Set(Kt(v.changeFileSet,K)),latestChangedDtsFile:z,emitSignatures:ge!=null&&ge.size?ge:void 0}}return{getState:()=>k,saveEmitState:Ms,restoreEmitState:Ms,getProgram:lo,getProgramOrUndefined:cv,releaseProgram:Ms,getCompilerOptions:()=>k.compilerOptions,getSourceFile:lo,getSourceFiles:lo,getOptionsDiagnostics:lo,getGlobalDiagnostics:lo,getConfigFileParsingDiagnostics:lo,getSyntacticDiagnostics:lo,getDeclarationDiagnostics:lo,getSemanticDiagnostics:lo,emit:lo,getAllDependencies:lo,getCurrentDirectory:lo,emitNextAffectedFile:lo,getSemanticDiagnosticsOfNextAffectedFile:lo,emitBuildInfo:lo,close:Ms,hasChangedEmitSignature:sg};function j(se){return H0(se,b,B)}function J(se){return $a(se,b)}function K(se){return T[se-1]}function Y(se){return M[se-1]}function oe(se){if(!se)return;const ge=Vp.createManyToManyPathMap();return se.forEach(([ae,Ce])=>ge.set(K(ae),Y(Ce))),ge}}function j1e(t,u,s){const d=dr($a(u,s.getCurrentDirectory())),f=T1(s.useCaseSensitiveFileNames()),p=new Map;let E=0;const v=[];return t.fileInfos.forEach((b,B)=>{const k=H0(t.fileNames[B],d,f),T=Ja(b)?b:b.version;if(p.set(k,T),Et().program,releaseProgram:()=>t().program=void 0,getCompilerOptions:()=>t().compilerOptions,getSourceFile:d=>s().getSourceFile(d),getSourceFiles:()=>s().getSourceFiles(),getOptionsDiagnostics:d=>s().getOptionsDiagnostics(d),getGlobalDiagnostics:d=>s().getGlobalDiagnostics(d),getConfigFileParsingDiagnostics:()=>u,getSyntacticDiagnostics:(d,f)=>s().getSyntacticDiagnostics(d,f),getDeclarationDiagnostics:(d,f)=>s().getDeclarationDiagnostics(d,f),getSemanticDiagnostics:(d,f)=>s().getSemanticDiagnostics(d,f),emit:(d,f,p,E,v)=>s().emit(d,f,p,E,v),emitBuildInfo:(d,f)=>s().emitBuildInfo(d,f),getAllDependencies:lo,getCurrentDirectory:()=>s().getCurrentDirectory(),close:Ms};function s(){return H.checkDefined(t().program)}}var H1e,K1e,Izt=o({"src/compiler/builder.ts"(){Ao(),H1e=(t=>(t[t.None=0]="None",t[t.Js=1]="Js",t[t.JsMap=2]="JsMap",t[t.JsInlineMap=4]="JsInlineMap",t[t.Dts=8]="Dts",t[t.DtsMap=16]="DtsMap",t[t.AllJs=7]="AllJs",t[t.AllDts=24]="AllDts",t[t.All=31]="All",t))(H1e||{}),K1e=(t=>(t[t.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",t[t.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",t))(K1e||{})}});function vtt(t,u,s,d,f,p){return O1e(0,TQ(t,u,s,d,f,p))}function W1e(t,u,s,d,f,p){return O1e(1,TQ(t,u,s,d,f,p))}function Ctt(t,u,s,d,f,p){const{newProgram:E,configFileParsingDiagnostics:v}=TQ(t,u,s,d,f,p);return V1e(()=>({program:E,compilerOptions:E.getCompilerOptions()}),v)}var Rzt=o({"src/compiler/builderPublic.ts"(){Ao()}});function LQ(t){return oc(t,"/node_modules/.staging")?E8(t,"/.staging"):qe(bO,u=>t.includes(u))?void 0:t}function X7e(t,u){if(u<=1)return 1;let s=1,d=t[0].search(/[a-zA-Z]:/)===0;if(t[0]!==nl&&!d&&t[1].search(/[a-zA-Z]\$$/)===0){if(u===2)return 2;s=2,d=!0}return d&&!t[s].match(/^users$/i)?s:t[s].match(/^workspaces$/i)?s+1:s+2}function NQ(t,u){if(u===void 0&&(u=t.length),u<=2)return!1;const s=X7e(t,u);return u>s+1}function e9e(t){return ytt(dr(t))}function btt(t,u){if(u.lengthf.length+1?i9e(v,E,Math.max(f.length+1,b+1)):{dir:s,dirPath:d,nonRecursive:!0}:ktt(v,E,E.length-1,b,B,f)}function ktt(t,u,s,d,f,p){if(f!==-1)return i9e(t,u,f+1);let E=!0,v=s;for(let b=0;bOzt(d,f,p,t,s,u,E)}}function Ozt(t,u,s,d,f,p,E){const v=PQ(t),b=HB(s,d,f,v,u,p,E);if(!t.getGlobalCache)return b;const B=t.getGlobalCache();if(B!==void 0&&!Md(s)&&!(b.resolvedModule&&aZ(b.resolvedModule.extension))){const{resolvedModule:k,failedLookupLocations:T,affectingLocations:M,resolutionDiagnostics:z}=bAe(H.checkDefined(t.globalCacheResolutionModuleName)(s),t.projectName,f,v,B,u);if(k)return b.resolvedModule=k,b.failedLookupLocations=jB(b.failedLookupLocations,T),b.affectingLocations=jB(b.affectingLocations,M),b.resolutionDiagnostics=jB(b.resolutionDiagnostics,z),b}return b}function J1e(t,u,s){let d,f,p;const E=Bm(),v=new Set,b=new Set,B=new Map,k=new Map;let T=!1,M,z,j,J,K,Y=!1;const oe=Nh(()=>t.getCurrentDirectory()),se=t.getCachedDirectoryStructureHost(),ge=new Map,ae=VB(oe(),t.getCanonicalFileName,t.getCompilationSettings()),Ce=new Map,ne=RY(oe(),t.getCanonicalFileName,t.getCompilationSettings(),ae.getPackageJsonInfoCache(),ae.optionsToRedirectsKey),ve=new Map,Se=VB(oe(),t.getCanonicalFileName,Cde(t.getCompilationSettings()),ae.getPackageJsonInfoCache()),Ne=new Map,pe=new Map,fe=u9e(u,oe),xe=t.toPath(fe),Be=bd(xe),We=new Map;return{rootDirForResolution:u,resolvedModuleNames:ge,resolvedTypeReferenceDirectives:Ce,resolvedLibraries:ve,resolvedFileToResolution:B,resolutionsWithFailedLookups:v,resolutionsWithOnlyAffectingLocations:b,directoryWatchesOfFailedLookups:Ne,fileWatchesOfAffectingLocations:pe,watchFailedLookupLocationsOfExternalModuleResolutions:xn,getModuleResolutionCache:()=>ae,startRecordingFilesWithChangedResolutions:ft,finishRecordingFilesWithChangedResolutions:Ze,startCachingPerDirectoryResolution:Gt,finishCachingPerDirectoryResolution:Ie,resolveModuleNameLiterals:ht,resolveTypeReferenceDirectiveReferences:ti,resolveLibrary:Ut,resolveSingleModuleNameWithoutWatching:Li,removeResolutionsFromProjectReferenceRedirects:Dn,removeResolutionsOfFile:bn,hasChangedAutomaticTypeDirectiveNames:()=>T,invalidateResolutionOfFile:oa,invalidateResolutionsOfFailedLookupLocations:Zo,setFilesWithInvalidatedNonRelativeUnresolvedImports:xa,createHasInvalidatedResolutions:Ke,isFileWithInvalidatedNonRelativeUnresolvedImports:je,updateTypeRootsWatch:Xt,closeTypeRootsWatch:Mt,clear:He,onChangesAffectModuleResolution:Ge};function Ae(et){return et.resolvedModule}function De(et){return et.resolvedTypeReferenceDirective}function He(){uf(Ne,Om),uf(pe,Om),E.clear(),Mt(),ge.clear(),Ce.clear(),B.clear(),v.clear(),b.clear(),j=void 0,J=void 0,K=void 0,z=void 0,M=void 0,Y=!1,ae.clear(),ne.clear(),ae.update(t.getCompilationSettings()),ne.update(t.getCompilationSettings()),Se.clear(),k.clear(),ve.clear(),T=!1}function Ge(){Y=!0,ae.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),ae.update(t.getCompilationSettings()),ne.update(t.getCompilationSettings())}function ft(){d=[]}function Ze(){const et=d;return d=void 0,et}function je(et){if(!p)return!1;const gt=p.get(et);return!!gt&&!!gt.length}function Ke(et,gt){Zo();const ii=f;return f=void 0,{hasInvalidatedResolutions:me=>et(me)||Y||!!(ii!=null&&ii.has(me))||je(me),hasInvalidatedLibResolutions:me=>{var ni;return gt(me)||!!((ni=ve==null?void 0:ve.get(me))!=null&&ni.isInvalidated)}}}function Gt(){ae.isReadonly=void 0,ne.isReadonly=void 0,Se.isReadonly=void 0,ae.getPackageJsonInfoCache().isReadonly=void 0,ae.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),Se.clearAllExceptPackageJsonInfoCache(),E.forEach(aa),E.clear()}function Yt(et){ve.forEach((gt,ii)=>{var me;(me=et==null?void 0:et.resolvedLibReferences)!=null&&me.has(ii)||(bt(gt,t.toPath(bQ(t.getCompilationSettings(),oe(),ii)),Ae),ve.delete(ii))})}function Ie(et,gt){p=void 0,Y=!1,E.forEach(aa),E.clear(),et!==gt&&(Yt(et),et==null||et.getSourceFiles().forEach(ii=>{var me;const ni=lm(ii)?((me=ii.packageJsonLocations)==null?void 0:me.length)??0:0,_i=k.get(ii.path)??_t;for(let mt=_i.length;mtni)for(let mt=ni;mt<_i.length;mt++)pe.get(_i[mt]).files--;ni?k.set(ii.path,ii.packageJsonLocations):k.delete(ii.path)}),k.forEach((ii,me)=>{et!=null&&et.getSourceFileByPath(me)||(ii.forEach(ni=>pe.get(ni).files--),k.delete(me))})),Ne.forEach(st),pe.forEach(St),T=!1,ae.isReadonly=!0,ne.isReadonly=!0,Se.isReadonly=!0,ae.getPackageJsonInfoCache().isReadonly=!0}function st(et,gt){et.refCount===0&&(Ne.delete(gt),et.watcher.close())}function St(et,gt){var ii;et.files===0&&et.resolutions===0&&!((ii=et.symlinks)!=null&&ii.size)&&(pe.delete(gt),et.watcher.close())}function It({entries:et,containingFile:gt,containingSourceFile:ii,redirectedReference:me,options:ni,perFileCache:_i,reusedNames:mt,loader:jt,getResolutionWithResolvedFileName:pi,deferWatchingNonRelativeResolution:Ji,shouldRetryResolution:Yi,logChanges:on}){const le=t.toPath(gt),te=_i.get(le)||_i.set(le,J7()).get(le),we=[],de=on&&je(le),Oe=t.getCurrentProgram(),X=Oe&&Oe.getResolvedProjectReferenceToRedirect(gt),it=X?!me||me.sourceFile.path!==X.sourceFile.path:!!me,Ct=J7();for(const Qt of et){const Ti=jt.nameAndMode.getName(Qt),$i=jt.nameAndMode.getMode(Qt,ii);let Bn=te.get(Ti,$i);if(!Ct.has(Ti,$i)&&(Y||it||!Bn||Bn.isInvalidated||de&&!Md(Ti)&&Yi(Bn))){const hu=Bn;Bn=jt.resolve(Ti,$i),t.onDiscoveredSymlink&&jzt(Bn)&&t.onDiscoveredSymlink(),te.set(Ti,$i,Bn),Bn!==hu&&(xn(Ti,Bn,le,pi,Ji),hu&&bt(hu,le,pi)),on&&d&&!ct(hu,Bn)&&(d.push(le),on=!1)}else{const hu=PQ(t);if(rD(ni,hu)&&!Ct.has(Ti,$i)){const Ru=pi(Bn);Sa(hu,_i===ge?Ru!=null&&Ru.resolvedFileName?Ru.packageId?F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Ru!=null&&Ru.resolvedFileName?Ru.packageId?F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ti,gt,Ru==null?void 0:Ru.resolvedFileName,(Ru==null?void 0:Ru.packageId)&&Nx(Ru.packageId))}}H.assert(Bn!==void 0&&!Bn.isInvalidated),Ct.set(Ti,$i,!0),we.push(Bn)}return mt==null||mt.forEach(Qt=>Ct.set(jt.nameAndMode.getName(Qt),jt.nameAndMode.getMode(Qt,ii),!0)),te.size()!==Ct.size()&&te.forEach((Qt,Ti,$i)=>{Ct.has(Ti,$i)||(bt(Qt,le,pi),te.delete(Ti,$i))}),we;function ct(Qt,Ti){if(Qt===Ti)return!0;if(!Qt||!Ti)return!1;const $i=pi(Qt),Bn=pi(Ti);return $i===Bn?!0:!$i||!Bn?!1:$i.resolvedFileName===Bn.resolvedFileName}}function ti(et,gt,ii,me,ni,_i){return It({entries:et,containingFile:gt,containingSourceFile:ni,redirectedReference:ii,options:me,reusedNames:_i,perFileCache:Ce,loader:vQ(gt,ii,me,PQ(t),ne),getResolutionWithResolvedFileName:De,shouldRetryResolution:mt=>mt.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function ht(et,gt,ii,me,ni,_i){return It({entries:et,containingFile:gt,containingSourceFile:ni,redirectedReference:ii,options:me,reusedNames:_i,perFileCache:ge,loader:r9e(gt,ii,me,t,ae),getResolutionWithResolvedFileName:Ae,shouldRetryResolution:mt=>!mt.resolvedModule||!kP(mt.resolvedModule.extension),logChanges:s,deferWatchingNonRelativeResolution:!0})}function Ut(et,gt,ii,me){const ni=PQ(t);let _i=ve==null?void 0:ve.get(me);if(!_i||_i.isInvalidated){const mt=_i;_i=OY(et,gt,ii,ni,Se);const jt=t.toPath(gt);xn(et,_i,jt,Ae,!1),ve.set(me,_i),mt&&bt(mt,jt,Ae)}else if(rD(ii,ni)){const mt=Ae(_i);Sa(ni,mt!=null&&mt.resolvedFileName?mt.packageId?F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,et,gt,mt==null?void 0:mt.resolvedFileName,(mt==null?void 0:mt.packageId)&&Nx(mt.packageId))}return _i}function Li(et,gt){var ii,me;const ni=t.toPath(gt),_i=ge.get(ni),mt=_i==null?void 0:_i.get(et,void 0);if(mt&&!mt.isInvalidated)return mt;const jt=(ii=t.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:ii.call(t,ae),pi=PQ(t),Ji=HB(et,gt,t.getCompilationSettings(),pi,ae);return(me=t.afterResolveSingleModuleNameWithoutWatching)==null||me.call(t,ae,et,gt,Ji,jt),Ji}function ji(et){return oc(et,"/node_modules/@types")}function xn(et,gt,ii,me,ni){var _i;if(gt.refCount)gt.refCount++,H.assertIsDefined(gt.files);else{gt.refCount=1,H.assert(!((_i=gt.files)!=null&&_i.size)),!ni||Md(et)?rn(gt):E.add(et,gt);const mt=me(gt);if(mt&&mt.resolvedFileName){const jt=t.toPath(mt.resolvedFileName);let pi=B.get(jt);pi||B.set(jt,pi=new Set),pi.add(gt)}}(gt.files??(gt.files=new Set)).add(ii)}function Un(et,gt){const ii=t.toPath(et),me=G1e(et,ii,fe,xe,Be,oe);if(me){const{dir:ni,dirPath:_i,nonRecursive:mt}=me;_i===xe?(H.assert(mt),gt=!0):Fr(ni,_i,mt)}return gt}function rn(et){H.assert(!!et.refCount);const{failedLookupLocations:gt,affectingLocations:ii,node10Result:me}=et;if(!(gt!=null&>.length)&&!(ii!=null&&ii.length)&&!me)return;(gt!=null&>.length||me)&&v.add(et);let ni=!1;if(gt)for(const _i of gt)ni=Un(_i,ni);me&&(ni=Un(me,ni)),ni&&Fr(fe,xe,!0),Ni(et,!(gt!=null&>.length)&&!me)}function Ni(et,gt){H.assert(!!et.refCount);const{affectingLocations:ii}=et;if(ii!=null&&ii.length){gt&&b.add(et);for(const me of ii)Fi(me,!0)}}function Fi(et,gt){const ii=pe.get(et);if(ii){gt?ii.resolutions++:ii.files++;return}let me=et,ni=!1,_i;t.realpath&&(me=t.realpath(et),et!==me&&(ni=!0,_i=pe.get(me)));const mt=gt?1:0,jt=gt?0:1;if(!ni||!_i){const pi={watcher:t9e(t.toPath(me))?t.watchAffectingFileLocation(me,(Ji,Yi)=>{se==null||se.addOrDeleteFile(Ji,t.toPath(me),Yi),Qu(me,ae.getPackageJsonInfoCache().getInternalMap()),t.scheduleInvalidateResolutionsOfFailedLookupLocations()}):XB,resolutions:ni?0:mt,files:ni?0:jt,symlinks:void 0};pe.set(me,pi),ni&&(_i=pi)}if(ni){H.assert(!!_i);const pi={watcher:{close:()=>{var Ji;const Yi=pe.get(me);(Ji=Yi==null?void 0:Yi.symlinks)!=null&&Ji.delete(et)&&!Yi.symlinks.size&&!Yi.resolutions&&!Yi.files&&(pe.delete(me),Yi.watcher.close())}},resolutions:mt,files:jt,symlinks:void 0};pe.set(et,pi),(_i.symlinks??(_i.symlinks=new Set)).add(et)}}function Qu(et,gt){var ii;const me=pe.get(et);me!=null&&me.resolutions&&(z??(z=new Set)).add(et),me!=null&&me.files&&(M??(M=new Set)).add(et),(ii=me==null?void 0:me.symlinks)==null||ii.forEach(ni=>Qu(ni,gt)),gt==null||gt.delete(t.toPath(et))}function aa(et,gt){const ii=t.getCurrentProgram();!ii||!ii.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(gt)?et.forEach(rn):et.forEach(me=>Ni(me,!0))}function Fr(et,gt,ii){const me=Ne.get(gt);me?(H.assert(!!ii==!!me.nonRecursive),me.refCount++):Ne.set(gt,{watcher:Nn(et,gt,ii),refCount:1,nonRecursive:ii})}function Ba(et,gt,ii){const me=t.toPath(et),ni=G1e(et,me,fe,xe,Be,oe);if(ni){const{dirPath:_i}=ni;_i===xe?gt=!0:jn(_i,ii)}return gt}function bt(et,gt,ii,me){if(H.checkDefined(et.files).delete(gt),et.refCount--,et.refCount)return;const ni=ii(et);if(ni&&ni.resolvedFileName){const pi=t.toPath(ni.resolvedFileName),Ji=B.get(pi);Ji!=null&&Ji.delete(et)&&!Ji.size&&B.delete(pi)}const{failedLookupLocations:_i,affectingLocations:mt,node10Result:jt}=et;if(v.delete(et)){let pi=!1;if(_i)for(const Ji of _i)pi=Ba(Ji,pi,me);jt&&(pi=Ba(jt,pi,me)),pi&&jn(xe,me)}else mt!=null&&mt.length&&b.delete(et);if(mt)for(const pi of mt){const Ji=pe.get(pi);Ji.resolutions--,me&&St(Ji,pi)}}function jn(et,gt){const ii=Ne.get(et);ii.refCount--,gt&&st(ii,et)}function Nn(et,gt,ii){return t.watchDirectoryOfFailedLookupLocation(et,me=>{const ni=t.toPath(me);se&&se.addOrDeleteFileOrDirectory(me,ni),ra(ni,gt===ni)},ii?0:1)}function Ai(et,gt,ii,me){const ni=et.get(gt);ni&&(ni.forEach(_i=>bt(_i,gt,ii,me)),et.delete(gt))}function Dn(et){if(!Pl(et,".json"))return;const gt=t.getCurrentProgram();if(!gt)return;const ii=gt.getResolvedProjectReferenceByPath(et);ii&&ii.commandLine.fileNames.forEach(me=>bn(t.toPath(me)))}function bn(et,gt){Ai(ge,et,Ae,gt),Ai(Ce,et,De,gt)}function iu(et,gt){if(!et)return!1;let ii=!1;return et.forEach(me=>{if(!(me.isInvalidated||!gt(me))){me.isInvalidated=ii=!0;for(const ni of H.checkDefined(me.files))(f??(f=new Set)).add(ni),T=T||oc(ni,ZB)}}),ii}function oa(et){bn(et);const gt=T;iu(B.get(et),G3)&&T&&!gt&&t.onChangedAutomaticTypeDirectiveNames()}function xa(et){H.assert(p===et||p===void 0),p=et}function ra(et,gt){if(gt)(K||(K=new Set)).add(et);else{const ii=LQ(et);if(!ii||(et=ii,t.fileIsOpen(et)))return!1;const me=dr(et);if(ji(et)||DU(et)||ji(me)||DU(me))(j||(j=new Set)).add(et),(J||(J=new Set)).add(et);else{if(w7e(t.getCurrentProgram(),et)||Pl(et,".map"))return!1;(j||(j=new Set)).add(et);const ni=iH(et,!0);ni&&(J||(J=new Set)).add(ni)}}t.scheduleInvalidateResolutionsOfFailedLookupLocations()}function wa(){const et=ae.getPackageJsonInfoCache().getInternalMap();et&&(j||J||K)&&et.forEach((gt,ii)=>Qe(ii)?et.delete(ii):void 0)}function Zo(){var et;if(Y)return M=void 0,wa(),(j||J||K||z)&&iu(ve,vo),j=void 0,J=void 0,K=void 0,z=void 0,!0;let gt=!1;return M&&((et=t.getCurrentProgram())==null||et.getSourceFiles().forEach(ii=>{qe(ii.packageJsonLocations,me=>M.has(me))&&((f??(f=new Set)).add(ii.path),gt=!0)}),M=void 0),!j&&!J&&!K&&!z||(gt=iu(v,vo)||gt,wa(),j=void 0,J=void 0,K=void 0,gt=iu(b,Et)||gt,z=void 0),gt}function vo(et){var gt;return Et(et)?!0:!j&&!J&&!K?!1:((gt=et.failedLookupLocations)==null?void 0:gt.some(ii=>Qe(t.toPath(ii))))||!!et.node10Result&&Qe(t.toPath(et.node10Result))}function Qe(et){return(j==null?void 0:j.has(et))||ie((J==null?void 0:J.keys())||[],gt=>Na(et,gt)?!0:void 0)||ie((K==null?void 0:K.keys())||[],gt=>et.length>gt.length&&Na(et,gt)&&(bse(gt)||et[gt.length]===nl)?!0:void 0)}function Et(et){var gt;return!!z&&((gt=et.affectingLocations)==null?void 0:gt.some(ii=>z.has(ii)))}function Mt(){uf(We,dg)}function qt(et,gt){return Pe(et)?t.watchTypeRootsDirectory(gt,ii=>{const me=t.toPath(ii);se&&se.addOrDeleteFileOrDirectory(ii,me),T=!0,t.onChangedAutomaticTypeDirectiveNames();const ni=n9e(gt,et,xe,Be,oe,_i=>Ne.has(_i));ni&&ra(me,ni===me)},1):XB}function Xt(){const et=t.getCompilationSettings();if(et.types){Mt();return}const gt=lM(et,{getCurrentDirectory:oe});gt?sB(We,og(gt,ii=>t.toPath(ii)),{createNewValue:qt,onDeleteValue:dg}):Mt()}function Pe(et){return t.getCompilationSettings().typeRoots?!0:e9e(t.toPath(et))}}function jzt(t){var u,s;return!!((u=t.resolvedModule)!=null&&u.originalPath||(s=t.resolvedTypeReferenceDirective)!=null&&s.originalPath)}var Vzt=o({"src/compiler/resolutionCache.ts"(){Ao()}});function bH(t,u){const s=t===l1&&h9e?h9e:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:T1(t.useCaseSensitiveFileNames)};if(!u)return f=>t.write(C1e(f,s));const d=new Array(1);return f=>{d[0]=f,t.write(P7e(d,s)+s.getNewLine()),d[0]=void 0}}function Att(t,u,s){return t.clearScreen&&!s.preserveWatchOutput&&!s.extendedDiagnostics&&!s.diagnostics&&Ft(jQ,u.code)?(t.clearScreen(),!0):!1}function Hzt(t,u){return Ft(jQ,t.code)?u+u:u}function yH(t){return t.now?t.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function a9e(t,u){return u?(s,d,f)=>{Att(t,s,f);let p=`[${Y2(yH(t),"\x1B[90m")}] `;p+=`${sE(s.messageText,t.newLine)}${d+d}`,t.write(p)}:(s,d,f)=>{let p="";Att(t,s,f)||(p+=d),p+=`${yH(t)} - `,p+=`${sE(s.messageText,t.newLine)}${Hzt(s,d)}`,t.write(p)}}function Stt(t,u,s,d,f,p){const E=f;E.onUnRecoverableConfigFileDiagnostic=b=>Ttt(f,p,b);const v=KV(t,u,E,s,d);return E.onUnRecoverableConfigFileDiagnostic=void 0,v}function MQ(t){return ui(t,u=>u.category===1)}function zQ(t){return ei(t,s=>s.category===1).map(s=>{if(s.file!==void 0)return`${s.file.fileName}`}).map(s=>{if(s===void 0)return;const d=Le(t,f=>f.file!==void 0&&f.file.fileName===s);if(d!==void 0){const{line:f}=o0(d.file,d.start);return{fileName:s,line:f+1}}})}function $1e(t){return t===1?F.Found_1_error_Watching_for_file_changes:F.Found_0_errors_Watching_for_file_changes}function Btt(t,u){const s=Y2(":"+t.line,"\x1B[90m");return AN(t.fileName)&&AN(u)?GE(u,t.fileName,!1)+s:t.fileName+s}function o9e(t,u,s,d){if(t===0)return"";const f=u.filter(k=>k!==void 0),p=f.map(k=>`${k.fileName}:${k.line}`).filter((k,T,M)=>M.indexOf(k)===T),E=f[0]&&Btt(f[0],d.getCurrentDirectory());let v;t===1?v=u[0]!==void 0?[F.Found_1_error_in_0,E]:[F.Found_1_error]:v=p.length===0?[F.Found_0_errors,t]:p.length===1?[F.Found_0_errors_in_the_same_file_starting_at_Colon_1,t,E]:[F.Found_0_errors_in_1_files,t,p.length];const b=lc(...v),B=p.length>1?Kzt(f,d):"";return`${s}${sE(b.messageText,s)}${s}${s}${B}`}function Kzt(t,u){const s=t.filter((T,M,z)=>M===z.findIndex(j=>(j==null?void 0:j.fileName)===(T==null?void 0:T.fileName)));if(s.length===0)return"";const d=T=>Math.log(T)*Math.LOG10E+1,f=s.map(T=>[T,ui(t,M=>M.fileName===T.fileName)]),p=f.reduce((T,M)=>Math.max(T,M[1]||0),0),E=F.Errors_Files.message,v=E.split(" ")[0].length,b=Math.max(v,d(p)),B=Math.max(d(p)-v,0);let k="";return k+=" ".repeat(B)+E+` -`,f.forEach(T=>{const[M,z]=T,j=Math.log(z)*Math.LOG10E+1|0,J=j{u(d.fileName)})}function q1e(t,u){var s,d;const f=t.getFileIncludeReasons(),p=E=>BN(E,t.getCurrentDirectory(),t.getCanonicalFileName);for(const E of t.getSourceFiles())u(`${QB(E,p)}`),(s=f.get(E.path))==null||s.forEach(v=>u(` ${X1e(t,v,p).messageText}`)),(d=Z1e(E,p))==null||d.forEach(v=>u(` ${v.messageText}`))}function Z1e(t,u){var s;let d;if(t.path!==t.resolvedPath&&(d??(d=[])).push(uo(void 0,F.File_is_output_of_project_reference_source_0,QB(t.originalFileName,u))),t.redirectInfo&&(d??(d=[])).push(uo(void 0,F.File_redirects_to_file_0,QB(t.redirectInfo.redirectTarget,u))),lm(t))switch(t.impliedNodeFormat){case 99:t.packageJsonScope&&(d??(d=[])).push(uo(void 0,F.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,QB(Cr(t.packageJsonLocations),u)));break;case 1:t.packageJsonScope?(d??(d=[])).push(uo(void 0,t.packageJsonScope.contents.packageJsonContent.type?F.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:F.File_is_CommonJS_module_because_0_does_not_have_field_type,QB(Cr(t.packageJsonLocations),u))):(s=t.packageJsonLocations)!=null&&s.length&&(d??(d=[])).push(uo(void 0,F.File_is_CommonJS_module_because_package_json_was_not_found));break}return d}function Y1e(t,u){var s;const d=t.getCompilerOptions().configFile;if(!((s=d==null?void 0:d.configFileSpecs)!=null&&s.validatedFilesSpec))return;const f=t.getCanonicalFileName(u),p=dr($a(d.fileName,t.getCurrentDirectory()));return Le(d.configFileSpecs.validatedFilesSpec,E=>t.getCanonicalFileName($a(E,p))===f)}function Q1e(t,u){var s,d;const f=t.getCompilerOptions().configFile;if(!((s=f==null?void 0:f.configFileSpecs)!=null&&s.validatedIncludeSpecs))return;if(f.configFileSpecs.isDefaultIncludeSpec)return!0;const p=Pl(u,".json"),E=dr($a(f.fileName,t.getCurrentDirectory())),v=t.useCaseSensitiveFileNames();return Le((d=f==null?void 0:f.configFileSpecs)==null?void 0:d.validatedIncludeSpecs,b=>{if(p&&!oc(b,".json"))return!1;const B=kle(b,E,"files");return!!B&&Ox(`(${B})$`,v).test(u)})}function X1e(t,u,s){var d,f;const p=t.getCompilerOptions();if(Wv(u)){const E=kM(t,u),v=UB(E)?E.file.text.substring(E.pos,E.end):`"${E.text}"`;let b;switch(H.assert(UB(E)||u.kind===3,"Only synthetic references are imports"),u.kind){case 3:UB(E)?b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2:F.Imported_via_0_from_file_1:E.text===Vx?b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:F.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:F.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:H.assert(!E.packageId),b=F.Referenced_via_0_from_file_1;break;case 5:b=E.packageId?F.Type_library_referenced_via_0_from_file_1_with_packageId_2:F.Type_library_referenced_via_0_from_file_1;break;case 7:H.assert(!E.packageId),b=F.Library_referenced_via_0_from_file_1;break;default:H.assertNever(u)}return uo(void 0,b,v,QB(E.file,s),E.packageId&&Nx(E.packageId))}switch(u.kind){case 0:if(!((d=p.configFile)!=null&&d.configFileSpecs))return uo(void 0,F.Root_file_specified_for_compilation);const E=$a(t.getRootFileNames()[u.index],t.getCurrentDirectory());if(Y1e(t,E))return uo(void 0,F.Part_of_files_list_in_tsconfig_json);const b=Q1e(t,E);return Ja(b)?uo(void 0,F.Matched_by_include_pattern_0_in_1,b,QB(p.configFile,s)):uo(void 0,b?F.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:F.Root_file_specified_for_compilation);case 1:case 2:const B=u.kind===2,k=H.checkDefined((f=t.getResolvedProjectReferences())==null?void 0:f[u.index]);return uo(void 0,b0(p)?B?F.Output_from_referenced_project_0_included_because_1_specified:F.Source_from_referenced_project_0_included_because_1_specified:B?F.Output_from_referenced_project_0_included_because_module_is_specified_as_none:F.Source_from_referenced_project_0_included_because_module_is_specified_as_none,QB(k.sourceFile.fileName,s),p.outFile?"--outFile":"--out");case 8:{const T=p.types?u.packageId?[F.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,u.typeReference,Nx(u.packageId)]:[F.Entry_point_of_type_library_0_specified_in_compilerOptions,u.typeReference]:u.packageId?[F.Entry_point_for_implicit_type_library_0_with_packageId_1,u.typeReference,Nx(u.packageId)]:[F.Entry_point_for_implicit_type_library_0,u.typeReference];return uo(void 0,...T)}case 6:{if(u.index!==void 0)return uo(void 0,F.Library_0_specified_in_compilerOptions,p.lib[u.index]);const T=d1(YV.type,(z,j)=>z===Is(p)?j:void 0),M=T?[F.Default_library_for_target_0,T]:[F.Default_library];return uo(void 0,...M)}default:H.assertNever(u)}}function QB(t,u){const s=Ja(t)?t:t.fileName;return u?u(s):s}function IQ(t,u,s,d,f,p,E,v){const b=!!t.getCompilerOptions().listFilesOnly,B=t.getConfigFileParsingDiagnostics().slice(),k=B.length;kn(B,t.getSyntacticDiagnostics(void 0,p)),B.length===k&&(kn(B,t.getOptionsDiagnostics(p)),b||(kn(B,t.getGlobalDiagnostics(p)),B.length===k&&kn(B,t.getSemanticDiagnostics(void 0,p))));const T=b?{emitSkipped:!0,diagnostics:_t}:t.emit(void 0,f,p,E,v),{emittedFiles:M,diagnostics:z}=T;kn(B,z);const j=k8(B);if(j.forEach(u),s){const J=t.getCurrentDirectory();L(M,K=>{const Y=$a(K,J);s(`TSFILE: ${Y}`)}),U1e(t,s)}return d&&d(MQ(j),zQ(j)),{emitResult:T,diagnostics:j}}function l9e(t,u,s,d,f,p,E,v){const{emitResult:b,diagnostics:B}=IQ(t,u,s,d,f,p,E,v);return b.emitSkipped&&B.length>0?1:B.length>0?2:0}function ehe(t=l1,u){return{onWatchStatusChange:u||a9e(t),watchFile:wo(t,t.watchFile)||ew,watchDirectory:wo(t,t.watchDirectory)||ew,setTimeout:wo(t,t.setTimeout)||Ms,clearTimeout:wo(t,t.clearTimeout)||Ms}}function the(t,u){const s=t.trace?u.extendedDiagnostics?2:u.diagnostics?1:0:0,d=s!==0?p=>t.trace(p):Ms,f=g1e(t,s,d);return f.writeLog=d,f}function ihe(t,u,s=t){const d=t.useCaseSensitiveFileNames(),f={getSourceFile:D1e((p,E)=>E?t.readFile(p,E):f.readFile(p),u,void 0),getDefaultLibLocation:wo(t,t.getDefaultLibLocation),getDefaultLibFileName:p=>t.getDefaultLibFileName(p),writeFile:x1e((p,E,v)=>t.writeFile(p,E,v),p=>t.createDirectory(p),p=>t.directoryExists(p)),getCurrentDirectory:Nh(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>d,getCanonicalFileName:T1(d),getNewLine:()=>r5(u()),fileExists:p=>t.fileExists(p),readFile:p=>t.readFile(p),trace:wo(t,t.trace),directoryExists:wo(s,s.directoryExists),getDirectories:wo(s,s.getDirectories),realpath:wo(t,t.realpath),getEnvironmentVariable:wo(t,t.getEnvironmentVariable)||(()=>""),createHash:wo(t,t.createHash),readDirectory:wo(t,t.readDirectory),storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:t.jsDocParsingMode};return f}function RQ(t,u){if(u.match(Gde)){let s=u.length,d=s;for(let f=s-1;f>=0;f--){const p=u.charCodeAt(f);switch(p){case 10:f&&u.charCodeAt(f-1)===13&&f--;case 13:break;default:if(p<127||!q1(p)){d=f;continue}break}const E=u.substring(d,s);if(E.match(XY)){u=u.substring(0,d);break}else if(!E.match(eQ))break;s=d}}return(t.createHash||FN)(u)}function OQ(t){const u=t.getSourceFile;t.getSourceFile=(...s)=>{const d=u.call(t,...s);return d&&(d.version=RQ(t,d.text)),d}}function nhe(t,u){const s=Nh(()=>dr(Go(t.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:Nh(()=>t.getCurrentDirectory()),getDefaultLibLocation:s,getDefaultLibFileName:d=>hr(s(),PO(d)),fileExists:d=>t.fileExists(d),readFile:(d,f)=>t.readFile(d,f),directoryExists:d=>t.directoryExists(d),getDirectories:d=>t.getDirectories(d),readDirectory:(d,f,p,E,v)=>t.readDirectory(d,f,p,E,v),realpath:wo(t,t.realpath),getEnvironmentVariable:wo(t,t.getEnvironmentVariable),trace:d=>t.write(d+t.newLine),createDirectory:d=>t.createDirectory(d),writeFile:(d,f,p)=>t.writeFile(d,f,p),createHash:wo(t,t.createHash),createProgram:u||W1e,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:wo(t,t.now)}}function wtt(t=l1,u,s,d){const f=E=>t.write(E+t.newLine),p=nhe(t,u);return uoe(p,ehe(t,d)),p.afterProgramCreate=E=>{const v=E.getCompilerOptions(),b=r5(v);IQ(E,s,f,B=>p.onWatchStatusChange(lc($1e(B),B),b,v,B))},p}function Ttt(t,u,s){u(s),t.exit(1)}function c9e({configFileName:t,optionsToExtend:u,watchOptionsToExtend:s,extraFileExtensions:d,system:f,createProgram:p,reportDiagnostic:E,reportWatchStatus:v}){const b=E||bH(f),B=wtt(f,p,b,v);return B.onUnRecoverableConfigFileDiagnostic=k=>Ttt(f,b,k),B.configFileName=t,B.optionsToExtend=u,B.watchOptionsToExtend=s,B.extraFileExtensions=d,B}function d9e({rootFiles:t,options:u,watchOptions:s,projectReferences:d,system:f,createProgram:p,reportDiagnostic:E,reportWatchStatus:v}){const b=wtt(f,p,E||bH(f),v);return b.rootFiles=t,b.options=u,b.watchOptions=s,b.projectReferences=d,b}function Ltt(t){const u=t.system||l1,s=t.host||(t.host=uhe(t.options,u)),d=f9e(t),f=l9e(d,t.reportDiagnostic||bH(u),p=>s.trace&&s.trace(p),t.reportErrorSummary||t.options.pretty?(p,E)=>u.write(o9e(p,E,u.newLine,s)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(d),f}var h9e,jQ,XB,ew,sd,Wzt=o({"src/compiler/watch.ts"(){Ao(),h9e=l1?{getCurrentDirectory:()=>l1.getCurrentDirectory(),getNewLine:()=>l1.newLine,getCanonicalFileName:T1(l1.useCaseSensitiveFileNames)}:void 0,jQ=[F.Starting_compilation_in_watch_mode.code,F.File_change_detected_Starting_incremental_compilation.code],XB={close:Ms},ew=()=>XB,sd={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function VQ(t,u){const s=h5(t);if(!s)return;let d;if(u.getBuildInfo)d=u.getBuildInfo(s,t.configFilePath);else{const f=u.readFile(s);if(!f)return;d=mQ(s,f)}if(!(!d||d.version!==_||!d.program))return Q7e(d,s,u)}function uhe(t,u=l1){const s=v1e(t,void 0,u);return s.createHash=wo(u,u.createHash),s.storeFilesChangingSignatureDuringEmit=u.storeFilesChangingSignatureDuringEmit,OQ(s),DH(s,d=>H0(d,s.getCurrentDirectory(),s.getCanonicalFileName)),s}function f9e({rootNames:t,options:u,configFileParsingDiagnostics:s,projectReferences:d,host:f,createProgram:p}){f=f||uhe(u),p=p||W1e;const E=VQ(u,f);return p(t,u,f,E,s,d)}function Ntt(t,u,s,d,f,p,E,v){return Ha(t)?d9e({rootFiles:t,options:u,watchOptions:v,projectReferences:E,system:s,createProgram:d,reportDiagnostic:f,reportWatchStatus:p}):c9e({configFileName:t,optionsToExtend:u,watchOptionsToExtend:E,extraFileExtensions:v,system:s,createProgram:d,reportDiagnostic:f,reportWatchStatus:p})}function Ptt(t){let u,s,d,f,p,E,v,b,B=t.extendedConfigCache,k=!1;const T=new Map;let M,z=!1;const j=t.useCaseSensitiveFileNames(),J=t.getCurrentDirectory(),{configFileName:K,optionsToExtend:Y={},watchOptionsToExtend:oe,extraFileExtensions:se,createProgram:ge}=t;let{rootFiles:ae,options:Ce,watchOptions:ne,projectReferences:ve}=t,Se,Ne,pe=!1,fe=!1;const xe=K===void 0?void 0:gQ(t,J,j),Be=xe||t,We=FQ(t,Be);let Ae=xn();K&&t.configFileParsingResult&&(vo(t.configFileParsingResult),Ae=xn()),bt(F.Starting_compilation_in_watch_mode),K&&!t.configFileParsingResult&&(Ae=r5(Y),H.assert(!ae),Zo(),Ae=xn()),H.assert(Ce),H.assert(ae);const{watchFile:De,watchDirectory:He,writeLog:Ge}=the(t,Ce),ft=T1(j);Ge(`Current directory: ${J} CaseSensitiveFileNames: ${j}`);let Ze;K&&(Ze=De(K,iu,2e3,ne,sd.ConfigFile));const je=ihe(t,()=>Ce,Be);OQ(je);const Ke=je.getSourceFile;je.getSourceFile=(mt,...jt)=>Qu(mt,Un(mt),...jt),je.getSourceFileByPath=Qu,je.getNewLine=()=>Ae,je.fileExists=Fi,je.onReleaseOldSourceFile=Ba,je.onReleaseParsedCommandLine=Mt,je.toPath=Un,je.getCompilationSettings=()=>Ce,je.useSourceOfProjectReferenceRedirect=wo(t,t.useSourceOfProjectReferenceRedirect),je.watchDirectoryOfFailedLookupLocation=(mt,jt,pi)=>He(mt,jt,pi,ne,sd.FailedLookupLocations),je.watchAffectingFileLocation=(mt,jt)=>De(mt,jt,2e3,ne,sd.AffectingFileLocation),je.watchTypeRootsDirectory=(mt,jt,pi)=>He(mt,jt,pi,ne,sd.TypeRoots),je.getCachedDirectoryStructureHost=()=>xe,je.scheduleInvalidateResolutionsOfFailedLookupLocations=Ai,je.onInvalidatedResolution=bn,je.onChangedAutomaticTypeDirectiveNames=bn,je.fileIsOpen=sg,je.getCurrentProgram=ht,je.writeLog=Ge,je.getParsedCommandLine=Qe;const Gt=J1e(je,K?dr($a(K,J)):J,!1);je.resolveModuleNameLiterals=wo(t,t.resolveModuleNameLiterals),je.resolveModuleNames=wo(t,t.resolveModuleNames),!je.resolveModuleNameLiterals&&!je.resolveModuleNames&&(je.resolveModuleNameLiterals=Gt.resolveModuleNameLiterals.bind(Gt)),je.resolveTypeReferenceDirectiveReferences=wo(t,t.resolveTypeReferenceDirectiveReferences),je.resolveTypeReferenceDirectives=wo(t,t.resolveTypeReferenceDirectives),!je.resolveTypeReferenceDirectiveReferences&&!je.resolveTypeReferenceDirectives&&(je.resolveTypeReferenceDirectiveReferences=Gt.resolveTypeReferenceDirectiveReferences.bind(Gt)),je.resolveLibrary=t.resolveLibrary?t.resolveLibrary.bind(t):Gt.resolveLibrary.bind(Gt),je.getModuleResolutionCache=t.resolveModuleNameLiterals||t.resolveModuleNames?wo(t,t.getModuleResolutionCache):()=>Gt.getModuleResolutionCache();const Ie=!!t.resolveModuleNameLiterals||!!t.resolveTypeReferenceDirectiveReferences||!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives?wo(t,t.hasInvalidatedResolutions)||G3:sg,st=t.resolveLibrary?wo(t,t.hasInvalidatedLibResolutions)||G3:sg;return u=VQ(Ce,je),Ut(),ii(),K&&ni(Un(K),Ce,ne,sd.ExtendedConfigFile),K?{getCurrentProgram:ti,getProgram:xa,close:St,getResolutionCache:It}:{getCurrentProgram:ti,getProgram:xa,updateRootFileNames:ji,close:St,getResolutionCache:It};function St(){Nn(),Gt.clear(),uf(T,mt=>{mt&&mt.fileWatcher&&(mt.fileWatcher.close(),mt.fileWatcher=void 0)}),Ze&&(Ze.close(),Ze=void 0),B==null||B.clear(),B=void 0,b&&(uf(b,Om),b=void 0),f&&(uf(f,Om),f=void 0),d&&(uf(d,dg),d=void 0),v&&(uf(v,mt=>{var jt;(jt=mt.watcher)==null||jt.close(),mt.watcher=void 0,mt.watchedDirectories&&uf(mt.watchedDirectories,Om),mt.watchedDirectories=void 0}),v=void 0)}function It(){return Gt}function ti(){return u}function ht(){return u&&u.getProgramOrUndefined()}function Ut(){Ge("Synchronizing program"),H.assert(Ce),H.assert(ae),Nn();const mt=ti();z&&(Ae=xn(),mt&&WU(mt.getCompilerOptions(),Ce)&&Gt.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:jt,hasInvalidatedLibResolutions:pi}=Gt.createHasInvalidatedResolutions(Ie,st),{originalReadFile:Ji,originalFileExists:Yi,originalDirectoryExists:on,originalCreateDirectory:le,originalWriteFile:te,readFileWithCache:we}=DH(je,Un);return B1e(ht(),ae,Ce,de=>Fr(de,we),de=>je.fileExists(de),jt,pi,jn,Qe,ve)?fe&&(k&&bt(F.File_change_detected_Starting_incremental_compilation),u=ge(void 0,void 0,je,u,Ne,ve),fe=!1):(k&&bt(F.File_change_detected_Starting_incremental_compilation),Li(jt,pi)),k=!1,t.afterProgramCreate&&mt!==u&&t.afterProgramCreate(u),je.readFile=Ji,je.fileExists=Yi,je.directoryExists=on,je.createDirectory=le,je.writeFile=te,u}function Li(mt,jt){Ge("CreatingProgramWith::"),Ge(` roots: ${JSON.stringify(ae)}`),Ge(` options: ${JSON.stringify(Ce)}`),ve&&Ge(` projectReferences: ${JSON.stringify(ve)}`);const pi=z||!ht();z=!1,fe=!1,Gt.startCachingPerDirectoryResolution(),je.hasInvalidatedResolutions=mt,je.hasInvalidatedLibResolutions=jt,je.hasChangedAutomaticTypeDirectiveNames=jn;const Ji=ht();if(u=ge(ae,Ce,je,u,Ne,ve),Gt.finishCachingPerDirectoryResolution(u.getProgram(),Ji),p1e(u.getProgram(),d||(d=new Map),et),pi&&Gt.updateTypeRootsWatch(),M){for(const Yi of M)d.has(Yi)||T.delete(Yi);M=void 0}}function ji(mt){H.assert(!K,"Cannot update root file names with config file watch mode"),ae=mt,bn()}function xn(){return r5(Ce||Y)}function Un(mt){return H0(mt,J,ft)}function rn(mt){return typeof mt=="boolean"}function Ni(mt){return typeof mt.version=="boolean"}function Fi(mt){const jt=Un(mt);return rn(T.get(jt))?!1:Be.fileExists(mt)}function Qu(mt,jt,pi,Ji,Yi){const on=T.get(jt);if(rn(on))return;const le=typeof pi=="object"?pi.impliedNodeFormat:void 0;if(on===void 0||Yi||Ni(on)||on.sourceFile.impliedNodeFormat!==le){const te=Ke(mt,pi,Ji);if(on)te?(on.sourceFile=te,on.version=te.version,on.fileWatcher||(on.fileWatcher=qt(jt,mt,Xt,250,ne,sd.SourceFile))):(on.fileWatcher&&on.fileWatcher.close(),T.set(jt,!1));else if(te){const we=qt(jt,mt,Xt,250,ne,sd.SourceFile);T.set(jt,{sourceFile:te,version:te.version,fileWatcher:we})}else T.set(jt,!1);return te}return on.sourceFile}function aa(mt){const jt=T.get(mt);jt!==void 0&&(rn(jt)?T.set(mt,{version:!1}):jt.version=!1)}function Fr(mt,jt){const pi=T.get(mt);if(!pi)return;if(pi.version)return pi.version;const Ji=jt(mt);return Ji!==void 0?RQ(je,Ji):void 0}function Ba(mt,jt,pi){const Ji=T.get(mt.resolvedPath);Ji!==void 0&&(rn(Ji)?(M||(M=[])).push(mt.path):Ji.sourceFile===mt&&(Ji.fileWatcher&&Ji.fileWatcher.close(),T.delete(mt.resolvedPath),pi||Gt.removeResolutionsOfFile(mt.path)))}function bt(mt){t.onWatchStatusChange&&t.onWatchStatusChange(lc(mt),Ae,Ce||Y)}function jn(){return Gt.hasChangedAutomaticTypeDirectiveNames()}function Nn(){return E?(t.clearTimeout(E),E=void 0,!0):!1}function Ai(){if(!t.setTimeout||!t.clearTimeout)return Gt.invalidateResolutionsOfFailedLookupLocations();const mt=Nn();Ge(`Scheduling invalidateFailedLookup${mt?", Cancelled earlier one":""}`),E=t.setTimeout(Dn,250,"timerToInvalidateFailedLookupResolutions")}function Dn(){E=void 0,Gt.invalidateResolutionsOfFailedLookupLocations()&&bn()}function bn(){!t.setTimeout||!t.clearTimeout||(p&&t.clearTimeout(p),Ge("Scheduling update"),p=t.setTimeout(oa,250,"timerToUpdateProgram"))}function iu(){H.assert(!!K),s=2,bn()}function oa(){p=void 0,k=!0,xa()}function xa(){var mt,jt,pi,Ji;switch(s){case 1:(mt=dh)==null||mt.logStartUpdateProgram("PartialConfigReload"),ra();break;case 2:(jt=dh)==null||jt.logStartUpdateProgram("FullConfigReload"),wa();break;default:(pi=dh)==null||pi.logStartUpdateProgram("SynchronizeProgram"),Ut();break}return(Ji=dh)==null||Ji.logStopUpdateProgram("Done"),ti()}function ra(){Ge("Reloading new file names and options"),H.assert(Ce),H.assert(K),s=0,ae=aM(Ce.configFile.configFileSpecs,$a(dr(K),J),Ce,We,se),FY(ae,$a(K,J),Ce.configFile.configFileSpecs,Ne,pe)&&(fe=!0),Ut()}function wa(){H.assert(K),Ge(`Reloading config file: ${K}`),s=0,xe&&xe.clearCache(),Zo(),z=!0,Ut(),ii(),ni(Un(K),Ce,ne,sd.ExtendedConfigFile)}function Zo(){H.assert(K),vo(KV(K,Y,We,B||(B=new Map),oe,se))}function vo(mt){ae=mt.fileNames,Ce=mt.options,ne=mt.watchOptions,ve=mt.projectReferences,Se=mt.wildcardDirectories,Ne=wk(mt).slice(),pe=rM(mt.raw),fe=!0}function Qe(mt){const jt=Un(mt);let pi=v==null?void 0:v.get(jt);if(pi){if(!pi.updateLevel)return pi.parsedCommandLine;if(pi.parsedCommandLine&&pi.updateLevel===1&&!t.getParsedCommandLine){Ge("Reloading new file names and options"),H.assert(Ce);const Yi=aM(pi.parsedCommandLine.options.configFile.configFileSpecs,$a(dr(mt),J),Ce,We);return pi.parsedCommandLine={...pi.parsedCommandLine,fileNames:Yi},pi.updateLevel=void 0,pi.parsedCommandLine}}Ge(`Loading config file: ${mt}`);const Ji=t.getParsedCommandLine?t.getParsedCommandLine(mt):Et(mt);return pi?(pi.parsedCommandLine=Ji,pi.updateLevel=void 0):(v||(v=new Map)).set(jt,pi={parsedCommandLine:Ji}),_i(mt,jt,pi),Ji}function Et(mt){const jt=We.onUnRecoverableConfigFileDiagnostic;We.onUnRecoverableConfigFileDiagnostic=Ms;const pi=KV(mt,void 0,We,B||(B=new Map),oe);return We.onUnRecoverableConfigFileDiagnostic=jt,pi}function Mt(mt){var jt;const pi=Un(mt),Ji=v==null?void 0:v.get(pi);Ji&&(v.delete(pi),Ji.watchedDirectories&&uf(Ji.watchedDirectories,Om),(jt=Ji.watcher)==null||jt.close(),m1e(pi,b))}function qt(mt,jt,pi,Ji,Yi,on){return De(jt,(le,te)=>pi(le,te,mt),Ji,Yi,on)}function Xt(mt,jt,pi){Pe(mt,pi,jt),jt===2&&T.has(pi)&&Gt.invalidateResolutionOfFile(pi),aa(pi),bn()}function Pe(mt,jt,pi){xe&&xe.addOrDeleteFile(mt,jt,pi)}function et(mt){return v!=null&&v.has(mt)?XB:qt(mt,mt,gt,500,ne,sd.MissingFile)}function gt(mt,jt,pi){Pe(mt,pi,jt),jt===0&&d.has(pi)&&(d.get(pi).close(),d.delete(pi),aa(pi),bn())}function ii(){Se?gH(f||(f=new Map),new Map(Object.entries(Se)),me):f&&uf(f,Om)}function me(mt,jt){return He(mt,pi=>{H.assert(K),H.assert(Ce);const Ji=Un(pi);xe&&xe.addOrDeleteFileOrDirectory(pi,Ji),aa(Ji),!EH({watchedDirPath:Un(mt),fileOrDirectory:pi,fileOrDirectoryPath:Ji,configFileName:K,extraFileExtensions:se,options:Ce,program:ti()||ae,currentDirectory:J,useCaseSensitiveFileNames:j,writeLog:Ge,toPath:Un})&&s!==2&&(s=1,bn())},jt,ne,sd.WildcardDirectory)}function ni(mt,jt,pi,Ji){EQ(mt,jt,b||(b=new Map),(Yi,on)=>De(Yi,(le,te)=>{var we;Pe(Yi,on,te),B&&_Q(B,on,Un);const de=(we=b.get(on))==null?void 0:we.projects;de!=null&&de.size&&de.forEach(Oe=>{if(K&&Un(K)===Oe)s=2;else{const X=v==null?void 0:v.get(Oe);X&&(X.updateLevel=2),Gt.removeResolutionsFromProjectReferenceRedirects(Oe)}bn()})},2e3,pi,Ji),Un)}function _i(mt,jt,pi){var Ji,Yi,on,le,te;pi.watcher||(pi.watcher=De(mt,(we,de)=>{Pe(mt,jt,de);const Oe=v==null?void 0:v.get(jt);Oe&&(Oe.updateLevel=2),Gt.removeResolutionsFromProjectReferenceRedirects(jt),bn()},2e3,((Ji=pi.parsedCommandLine)==null?void 0:Ji.watchOptions)||ne,sd.ConfigFileOfReferencedProject)),(Yi=pi.parsedCommandLine)!=null&&Yi.wildcardDirectories?gH(pi.watchedDirectories||(pi.watchedDirectories=new Map),new Map(Object.entries((on=pi.parsedCommandLine)==null?void 0:on.wildcardDirectories)),(we,de)=>{var Oe;return He(we,X=>{const it=Un(X);xe&&xe.addOrDeleteFileOrDirectory(X,it),aa(it);const Ct=v==null?void 0:v.get(jt);Ct!=null&&Ct.parsedCommandLine&&(EH({watchedDirPath:Un(we),fileOrDirectory:X,fileOrDirectoryPath:it,configFileName:mt,options:Ct.parsedCommandLine.options,program:Ct.parsedCommandLine.fileNames,currentDirectory:J,useCaseSensitiveFileNames:j,writeLog:Ge,toPath:Un})||Ct.updateLevel!==2&&(Ct.updateLevel=1,bn()))},de,((Oe=pi.parsedCommandLine)==null?void 0:Oe.watchOptions)||ne,sd.WildcardDirectoryOfReferencedProject)}):pi.watchedDirectories&&(uf(pi.watchedDirectories,Om),pi.watchedDirectories=void 0),ni(jt,(le=pi.parsedCommandLine)==null?void 0:le.options,((te=pi.parsedCommandLine)==null?void 0:te.watchOptions)||ne,sd.ExtendedConfigOfReferencedProject)}}var Gzt=o({"src/compiler/watchPublic.ts"(){Ao()}});function rhe(t){return Pl(t,".json")?t:hr(t,"tsconfig.json")}var ahe,Jzt=o({"src/compiler/tsbuild.ts"(){Ao(),ahe=(t=>(t[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",t[t.OutputMissing=4]="OutputMissing",t[t.ErrorReadingFile=5]="ErrorReadingFile",t[t.OutOfDateWithSelf=6]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",t[t.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",t[t.OutOfDateOptions=9]="OutOfDateOptions",t[t.OutOfDateRoots=10]="OutOfDateRoots",t[t.UpstreamOutOfDate=11]="UpstreamOutOfDate",t[t.UpstreamBlocked=12]="UpstreamBlocked",t[t.ComputingUpstream=13]="ComputingUpstream",t[t.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",t[t.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",t[t.ContainerOnly=16]="ContainerOnly",t[t.ForceBuild=17]="ForceBuild",t))(ahe||{})}});function $zt(t,u,s){const d=t.get(u);let f;return d||(f=s(),t.set(u,f)),d||f}function m9e(t,u){return $zt(t,u,()=>new Map)}function kH(t){return t.now?t.now():new Date}function Q7(t){return!!t&&!!t.buildOrder}function HQ(t){return Q7(t)?t.buildOrder:t}function p9e(t,u){return s=>{let d=u?`[${Y2(yH(t),"\x1B[90m")}] `:`${yH(t)} - `;d+=`${sE(s.messageText,t.newLine)}${t.newLine+t.newLine}`,t.write(d)}}function Mtt(t,u,s,d){const f=nhe(t,u);return f.getModifiedTime=t.getModifiedTime?p=>t.getModifiedTime(p):cv,f.setModifiedTime=t.setModifiedTime?(p,E)=>t.setModifiedTime(p,E):Ms,f.deleteFile=t.deleteFile?p=>t.deleteFile(p):Ms,f.reportDiagnostic=s||bH(t),f.reportSolutionBuilderStatus=d||p9e(t),f.now=wo(t,t.now),f}function ztt(t=l1,u,s,d,f){const p=Mtt(t,u,s,d);return p.reportErrorSummary=f,p}function Itt(t=l1,u,s,d,f){const p=Mtt(t,u,s,d),E=ehe(t,f);return uoe(p,E),p}function Uzt(t){const u={};return ZV.forEach(s=>{Eu(t,s.name)&&(u[s.name]=t[s.name])}),u}function Rtt(t,u,s){return sit(!1,t,u,s)}function Ott(t,u,s,d){return sit(!0,t,u,s,d)}function qzt(t,u,s,d,f){const p=u,E=u,v=Uzt(d),b=ihe(p,()=>J.projectCompilerOptions);OQ(b),b.getParsedCommandLine=K=>X7(J,K,lE(J,K)),b.resolveModuleNameLiterals=wo(p,p.resolveModuleNameLiterals),b.resolveTypeReferenceDirectiveReferences=wo(p,p.resolveTypeReferenceDirectiveReferences),b.resolveLibrary=wo(p,p.resolveLibrary),b.resolveModuleNames=wo(p,p.resolveModuleNames),b.resolveTypeReferenceDirectives=wo(p,p.resolveTypeReferenceDirectives),b.getModuleResolutionCache=wo(p,p.getModuleResolutionCache);let B,k;!b.resolveModuleNameLiterals&&!b.resolveModuleNames&&(B=VB(b.getCurrentDirectory(),b.getCanonicalFileName),b.resolveModuleNameLiterals=(K,Y,oe,se,ge)=>xH(K,Y,oe,se,ge,p,B,F1e),b.getModuleResolutionCache=()=>B),!b.resolveTypeReferenceDirectiveReferences&&!b.resolveTypeReferenceDirectives&&(k=RY(b.getCurrentDirectory(),b.getCanonicalFileName,void 0,B==null?void 0:B.getPackageJsonInfoCache(),B==null?void 0:B.optionsToRedirectsKey),b.resolveTypeReferenceDirectiveReferences=(K,Y,oe,se,ge)=>xH(K,Y,oe,se,ge,p,k,vQ));let T;b.resolveLibrary||(T=VB(b.getCurrentDirectory(),b.getCanonicalFileName,void 0,B==null?void 0:B.getPackageJsonInfoCache()),b.resolveLibrary=(K,Y,oe)=>OY(K,Y,oe,p,T)),b.getBuildInfo=(K,Y)=>Xtt(J,K,lE(J,Y),void 0);const{watchFile:M,watchDirectory:z,writeLog:j}=the(E,d),J={host:p,hostWithWatch:E,parseConfigFileHost:FQ(p),write:wo(p,p.trace),options:d,baseCompilerOptions:v,rootNames:s,baseWatchOptions:f,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:b,moduleResolutionCache:B,typeReferenceDirectiveResolutionCache:k,libraryResolutionCache:T,buildOrder:void 0,readFileWithCache:K=>p.readFile(K),projectCompilerOptions:v,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,watch:t,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:M,watchDirectory:z,writeLog:j};return J}function pm(t,u){return H0(u,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function lE(t,u){const{resolvedConfigFilePaths:s}=t,d=s.get(u);if(d!==void 0)return d;const f=pm(t,u);return s.set(u,f),f}function jtt(t){return!!t.options}function Zzt(t,u){const s=t.configFileCache.get(u);return s&&jtt(s)?s:void 0}function X7(t,u,s){const{configFileCache:d}=t,f=d.get(s);if(f)return jtt(f)?f:void 0;il("SolutionBuilder::beforeConfigFileParsing");let p;const{parseConfigFileHost:E,baseCompilerOptions:v,baseWatchOptions:b,extendedConfigCache:B,host:k}=t;let T;return k.getParsedCommandLine?(T=k.getParsedCommandLine(u),T||(p=lc(F.File_0_not_found,u))):(E.onUnRecoverableConfigFileDiagnostic=M=>p=M,T=KV(u,v,E,B,b),E.onUnRecoverableConfigFileDiagnostic=Ms),d.set(s,T||p),il("SolutionBuilder::afterConfigFileParsing"),wm("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),T}function FM(t,u){return rhe(yx(t.compilerHost.getCurrentDirectory(),u))}function Vtt(t,u){const s=new Map,d=new Map,f=[];let p,E;for(const b of u)v(b);return E?{buildOrder:p||_t,circularDiagnostics:E}:p||_t;function v(b,B){const k=lE(t,b);if(d.has(k))return;if(s.has(k)){B||(E||(E=[])).push(lc(F.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,f.join(`\r -`)));return}s.set(k,!0),f.push(b);const T=X7(t,b,k);if(T&&T.projectReferences)for(const M of T.projectReferences){const z=FM(t,M.path);v(z,B||M.circular)}f.pop(),d.set(k,!0),(p||(p=[])).push(b)}}function KQ(t){return t.buildOrder||Yzt(t)}function Yzt(t){const u=Vtt(t,t.rootNames.map(f=>FM(t,f)));t.resolvedConfigFilePaths.clear();const s=new Map(HQ(u).map(f=>[lE(t,f),!0])),d={onDeleteValue:Ms};return X3(t.configFileCache,s,d),X3(t.projectStatus,s,d),X3(t.builderPrograms,s,d),X3(t.diagnostics,s,d),X3(t.projectPendingBuild,s,d),X3(t.projectErrorsReported,s,d),X3(t.buildInfoCache,s,d),X3(t.outputTimeStamps,s,d),t.watch&&(X3(t.allWatchedConfigFiles,s,{onDeleteValue:dg}),t.allWatchedExtendedConfigFiles.forEach(f=>{f.projects.forEach(p=>{s.has(p)||f.projects.delete(p)}),f.close()}),X3(t.allWatchedWildcardDirectories,s,{onDeleteValue:f=>f.forEach(Om)}),X3(t.allWatchedInputFiles,s,{onDeleteValue:f=>f.forEach(dg)}),X3(t.allWatchedPackageJsonFiles,s,{onDeleteValue:f=>f.forEach(dg)})),t.buildOrder=u}function Htt(t,u,s){const d=u&&FM(t,u),f=KQ(t);if(Q7(f))return f;if(d){const E=lE(t,d);if($e(f,b=>lE(t,b)===E)===-1)return}const p=d?Vtt(t,[d]):f;return H.assert(!Q7(p)),H.assert(!s||d!==void 0),H.assert(!s||p[p.length-1]===d),s?p.slice(0,p.length-1):p}function Ktt(t){t.cache&&g9e(t);const{compilerHost:u,host:s}=t,d=t.readFileWithCache,f=u.getSourceFile,{originalReadFile:p,originalFileExists:E,originalDirectoryExists:v,originalCreateDirectory:b,originalWriteFile:B,getSourceFileWithCache:k,readFileWithCache:T}=DH(s,M=>pm(t,M),(...M)=>f.call(u,...M));t.readFileWithCache=T,u.getSourceFile=k,t.cache={originalReadFile:p,originalFileExists:E,originalDirectoryExists:v,originalCreateDirectory:b,originalWriteFile:B,originalReadFileWithCache:d,originalGetSourceFile:f}}function g9e(t){if(!t.cache)return;const{cache:u,host:s,compilerHost:d,extendedConfigCache:f,moduleResolutionCache:p,typeReferenceDirectiveResolutionCache:E,libraryResolutionCache:v}=t;s.readFile=u.originalReadFile,s.fileExists=u.originalFileExists,s.directoryExists=u.originalDirectoryExists,s.createDirectory=u.originalCreateDirectory,s.writeFile=u.originalWriteFile,d.getSourceFile=u.originalGetSourceFile,t.readFileWithCache=u.originalReadFileWithCache,f.clear(),p==null||p.clear(),E==null||E.clear(),v==null||v.clear(),t.cache=void 0}function Wtt(t,u){t.projectStatus.delete(u),t.diagnostics.delete(u)}function Gtt({projectPendingBuild:t},u,s){const d=t.get(u);(d===void 0||dt.projectPendingBuild.set(lE(t,d),0)),u&&u.throwIfCancellationRequested()}function $tt(t,u){return t.projectPendingBuild.delete(u),t.diagnostics.has(u)?1:0}function Qzt(t,u,s,d,f){let p=!0;return{kind:2,project:u,projectPath:s,buildOrder:f,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{tit(t,d,s),p=!1},done:()=>(p&&tit(t,d,s),il("SolutionBuilder::Timestamps only updates"),$tt(t,s))}}function Utt(t,u,s,d,f,p,E){let v=t===0?0:4,b,B,k;return t===0?{kind:t,project:s,projectPath:d,buildOrder:E,getCompilerOptions:()=>p.options,getCurrentDirectory:()=>u.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>M(el),getProgram:()=>M(ne=>ne.getProgramOrUndefined()),getSourceFile:ne=>M(ve=>ve.getSourceFile(ne)),getSourceFiles:()=>z(ne=>ne.getSourceFiles()),getOptionsDiagnostics:ne=>z(ve=>ve.getOptionsDiagnostics(ne)),getGlobalDiagnostics:ne=>z(ve=>ve.getGlobalDiagnostics(ne)),getConfigFileParsingDiagnostics:()=>z(ne=>ne.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(ne,ve)=>z(Se=>Se.getSyntacticDiagnostics(ne,ve)),getAllDependencies:ne=>z(ve=>ve.getAllDependencies(ne)),getSemanticDiagnostics:(ne,ve)=>z(Se=>Se.getSemanticDiagnostics(ne,ve)),getSemanticDiagnosticsOfNextAffectedFile:(ne,ve)=>M(Se=>Se.getSemanticDiagnosticsOfNextAffectedFile&&Se.getSemanticDiagnosticsOfNextAffectedFile(ne,ve)),emit:(ne,ve,Se,Ne,pe)=>{if(ne||Ne)return M(fe=>{var xe,Be;return fe.emit(ne,ve,Se,Ne,pe||((Be=(xe=u.host).getCustomTransformers)==null?void 0:Be.call(xe,s)))});if(Ce(2,Se),v===5)return se(ve,Se);if(v===3)return oe(ve,Se,pe)},done:T}:{kind:t,project:s,projectPath:d,buildOrder:E,getCompilerOptions:()=>p.options,getCurrentDirectory:()=>u.compilerHost.getCurrentDirectory(),emit:(ne,ve)=>v!==4?k:ae(ne,ve),done:T};function T(ne,ve,Se){return Ce(8,ne,ve,Se),il(t===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),$tt(u,d)}function M(ne){return Ce(0),b&&ne(b)}function z(ne){return M(ne)||_t}function j(){var ne,ve;if(H.assert(b===void 0),u.options.dry){zh(u,F.A_non_dry_build_would_build_project_0,s),B=1,v=7;return}if(u.options.verbose&&zh(u,F.Building_project_0,s),p.fileNames.length===0){AM(u,d,wk(p)),B=0,v=7;return}const{host:Se,compilerHost:Ne}=u;u.projectCompilerOptions=p.options,(ne=u.moduleResolutionCache)==null||ne.update(p.options),(ve=u.typeReferenceDirectiveResolutionCache)==null||ve.update(p.options),b=Se.createProgram(p.fileNames,p.options,Ne,eIt(u,d,p),wk(p),p.projectReferences),u.watch&&(u.lastCachedPackageJsonLookups.set(d,u.moduleResolutionCache&&Kt(u.moduleResolutionCache.getPackageJsonInfoCache().entries(),([pe,fe])=>[u.host.realpath&&fe?pm(u,u.host.realpath(pe)):pe,fe])),u.builderPrograms.set(d,b)),v++}function J(ne,ve,Se){ne.length?{buildResult:B,step:v}=D9e(u,d,b,p,ne,ve,Se):v++}function K(ne){H.assertIsDefined(b),J([...b.getConfigFileParsingDiagnostics(),...b.getOptionsDiagnostics(ne),...b.getGlobalDiagnostics(ne),...b.getSyntacticDiagnostics(void 0,ne)],8,"Syntactic")}function Y(ne){J(H.checkDefined(b).getSemanticDiagnostics(void 0,ne),16,"Semantic")}function oe(ne,ve,Se){var Ne,pe,fe;H.assertIsDefined(b),H.assert(v===3);const xe=b.saveEmitState();let Be;const We=st=>(Be||(Be=[])).push(st),Ae=[],{emitResult:De}=IQ(b,We,void 0,void 0,(st,St,It,ti,ht,Ut)=>Ae.push({name:st,text:St,writeByteOrderMark:It,data:Ut}),ve,!1,Se||((pe=(Ne=u.host).getCustomTransformers)==null?void 0:pe.call(Ne,s)));if(Be)return b.restoreEmitState(xe),{buildResult:B,step:v}=D9e(u,d,b,p,Be,32,"Declaration file"),{emitSkipped:!0,diagnostics:De.diagnostics};const{host:He,compilerHost:Ge}=u,ft=(fe=b.hasChangedEmitSignature)!=null&&fe.call(b)?0:2,Ze=nB(),je=new Map,Ke=b.getCompilerOptions(),Gt=Yj(Ke);let Yt,Ie;return Ae.forEach(({name:st,text:St,writeByteOrderMark:It,data:ti})=>{const ht=pm(u,st);je.set(pm(u,st),st),ti!=null&&ti.buildInfo&&v9e(u,ti.buildInfo,d,Ke,ft);const Ut=ti!=null&&ti.differsOnlyInMap?QA(u.host,st):void 0;lP(ne?{writeFile:ne}:Ge,Ze,st,St,It),ti!=null&&ti.differsOnlyInMap?u.host.setModifiedTime(st,Ut):!Gt&&u.watch&&(Yt||(Yt=x9e(u,d))).set(ht,Ie||(Ie=kH(u.host)))}),ge(Ze,je,Ae.length?Ae[0].name:d1e(p,!He.useCaseSensitiveFileNames()),ft),De}function se(ne,ve){H.assertIsDefined(b),H.assert(v===5);const Se=b.emitBuildInfo((Ne,pe,fe,xe,Be,We)=>{We!=null&&We.buildInfo&&v9e(u,We.buildInfo,d,b.getCompilerOptions(),2),ne?ne(Ne,pe,fe,xe,Be,We):u.compilerHost.writeFile(Ne,pe,fe,xe,Be,We)},ve);return Se.diagnostics.length&&(GQ(u,Se.diagnostics),u.diagnostics.set(d,[...u.diagnostics.get(d),...Se.diagnostics]),B=64&B),Se.emittedFiles&&u.write&&Se.emittedFiles.forEach(Ne=>Ytt(u,p,Ne)),_9e(u,b,p),v=7,Se}function ge(ne,ve,Se,Ne){const pe=ne.getDiagnostics();return pe.length?({buildResult:B,step:v}=D9e(u,d,b,p,pe,64,"Emit"),pe):(u.write&&ve.forEach(fe=>Ytt(u,p,fe)),eit(u,p,d,F.Updating_unchanged_output_timestamps_of_project_0,ve),u.diagnostics.delete(d),u.projectStatus.set(d,{type:1,oldestOutputFileName:Se}),_9e(u,b,p),v=7,B=Ne,pe)}function ae(ne,ve){var Se,Ne,pe,fe;if(H.assert(t===1),u.options.dry){zh(u,F.A_non_dry_build_would_update_output_of_project_0,s),B=1,v=7;return}u.options.verbose&&zh(u,F.Updating_output_of_project_0,s);const{compilerHost:xe}=u;u.projectCompilerOptions=p.options,(Ne=(Se=u.host).beforeEmitBundle)==null||Ne.call(Se,p);const Be=S7e(p,xe,ft=>{const Ze=FM(u,ft.path);return X7(u,Ze,lE(u,Ze))},ve||((fe=(pe=u.host).getCustomTransformers)==null?void 0:fe.call(pe,s)));if(Ja(Be))return zh(u,F.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,s,e1(u,Be)),v=6,k=Utt(0,u,s,d,f,p,E);H.assert(!!Be.length);const We=nB(),Ae=new Map;let De=2;const He=u.buildInfoCache.get(d).buildInfo||void 0;return Be.forEach(({name:ft,text:Ze,writeByteOrderMark:je,data:Ke})=>{var Gt,Yt;Ae.set(pm(u,ft),ft),Ke!=null&&Ke.buildInfo&&(((Gt=Ke.buildInfo.program)==null?void 0:Gt.outSignature)!==((Yt=He==null?void 0:He.program)==null?void 0:Yt.outSignature)&&(De&=-3),v9e(u,Ke.buildInfo,d,p.options,De)),lP(ne?{writeFile:ne}:xe,We,ft,Ze,je)}),{emitSkipped:!1,diagnostics:ge(We,Ae,Be[0].name,De)}}function Ce(ne,ve,Se,Ne){for(;v<=ne&&v<8;){const pe=v;switch(v){case 0:j();break;case 1:K(ve);break;case 2:Y(ve);break;case 3:oe(Se,ve,Ne);break;case 5:se(Se,ve);break;case 4:ae(Se,Ne);break;case 6:H.checkDefined(k).done(ve,Se,Ne),v=8;break;case 7:uIt(u,s,d,f,p,E,H.checkDefined(B)),v++;break}H.assert(v>pe)}}}function Xzt({options:t},u,s){return u.type!==3||t.force?!0:s.fileNames.length===0||!!wk(s).length||!Yj(s.options)}function qtt(t,u,s){if(!t.projectPendingBuild.size||Q7(u))return;const{options:d,projectPendingBuild:f}=t;for(let p=0;p{const z=H.checkDefined(t.filesWatched.get(v));H.assert(ohe(z)),z.modifiedTime=M,z.callbacks.forEach(j=>j(k,T,M))},d,f,p,E);t.filesWatched.set(v,{callbacks:[s],watcher:B,modifiedTime:b})}return{close:()=>{const B=H.checkDefined(t.filesWatched.get(v));H.assert(ohe(B)),B.callbacks.length===1?(t.filesWatched.delete(v),Om(B)):Oy(B.callbacks,s)}}}function x9e(t,u){if(!t.watch)return;let s=t.outputTimeStamps.get(u);return s||t.outputTimeStamps.set(u,s=new Map),s}function v9e(t,u,s,d,f){const p=h5(d),E=C9e(t,p,s),v=kH(t.host);E?(E.buildInfo=u,E.modifiedTime=v,f&2||(E.latestChangedDtsTime=v)):t.buildInfoCache.set(s,{path:pm(t,p),buildInfo:u,modifiedTime:v,latestChangedDtsTime:f&2?void 0:v})}function C9e(t,u,s){const d=pm(t,u),f=t.buildInfoCache.get(s);return(f==null?void 0:f.path)===d?f:void 0}function Xtt(t,u,s,d){const f=pm(t,u),p=t.buildInfoCache.get(s);if(p!==void 0&&p.path===f)return p.buildInfo||void 0;const E=t.readFileWithCache(u),v=E?mQ(u,E):void 0;return t.buildInfoCache.set(s,{path:f,buildInfo:v||!1,modifiedTime:d||H_}),v}function b9e(t,u,s,d){const f=Qtt(t,u);if(sJ&&(j=Se,J=Ne),M&&Y.add(pm(t,Se))}if(M){z||(z=j1e(M,b,v));for(const Se of z.roots)if(!Y.has(Se))return{type:10,buildInfoFile:b,inputFile:Se}}if(!b){const Se=hQ(u,!v.useCaseSensitiveFileNames()),Ne=x9e(t,s);for(const pe of Se){const fe=pm(t,pe);let xe=Ne==null?void 0:Ne.get(fe);if(xe||(xe=QA(t.host,pe),Ne==null||Ne.set(fe,xe)),xe===H_)return{type:4,missingOutputFileName:pe};if(xeb9e(t,Se,k,B));if(ne)return ne;const ve=L(t.lastCachedPackageJsonLookups.get(s)||_t,([Se])=>b9e(t,Se,k,B));return ve||(ge&&se?{type:3,outOfDateOutputFileName:B,newerProjectName:ae}:{type:se?2:K?15:1,newestInputFileTime:J,newestInputFileName:j,oldestOutputFileName:B})}function iIt(t,u,s){return t.buildInfoCache.get(s).path===u.path}function y9e(t,u,s){if(u===void 0)return{type:0,reason:"File deleted mid-build"};const d=t.projectStatus.get(s);if(d!==void 0)return d;il("SolutionBuilder::beforeUpToDateCheck");const f=tIt(t,u,s);return il("SolutionBuilder::afterUpToDateCheck"),wm("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),t.projectStatus.set(s,f),f}function eit(t,u,s,d,f){if(u.options.noEmit)return;let p;const E=h5(u.options);if(E){f!=null&&f.has(pm(t,E))||(t.options.verbose&&zh(t,d,u.options.configFilePath),t.host.setModifiedTime(E,p=kH(t.host)),C9e(t,E,s).modifiedTime=p),t.outputTimeStamps.delete(s);return}const{host:v}=t,b=hQ(u,!v.useCaseSensitiveFileNames()),B=x9e(t,s),k=B?new Set:void 0;if(!f||b.length!==f.size){let T=!!t.options.verbose;for(const M of b){const z=pm(t,M);f!=null&&f.has(z)||(T&&(T=!1,zh(t,d,u.options.configFilePath)),v.setModifiedTime(M,p||(p=kH(t.host))),B&&(B.set(z,p),k.add(z)))}}B==null||B.forEach((T,M)=>{!(f!=null&&f.has(M))&&!k.has(M)&&B.delete(M)})}function nIt(t,u,s){if(!u.composite)return;const d=H.checkDefined(t.buildInfoCache.get(s));if(d.latestChangedDtsTime!==void 0)return d.latestChangedDtsTime||void 0;const f=d.buildInfo&&d.buildInfo.program&&d.buildInfo.program.latestChangedDtsFile?t.host.getModifiedTime($a(d.buildInfo.program.latestChangedDtsFile,dr(d.path))):void 0;return d.latestChangedDtsTime=f||!1,f}function tit(t,u,s){if(t.options.dry)return zh(t,F.A_non_dry_build_would_update_timestamps_for_output_of_project_0,u.options.configFilePath);eit(t,u,s,F.Updating_output_timestamps_of_project_0),t.projectStatus.set(s,{type:1,oldestOutputFileName:d1e(u,!t.host.useCaseSensitiveFileNames())})}function uIt(t,u,s,d,f,p,E){if(!(E&124)&&f.options.composite)for(let v=d+1;vt.diagnostics.has(lE(t,B)))?b?2:1:0}function nit(t,u,s){il("SolutionBuilder::beforeClean");const d=aIt(t,u,s);return il("SolutionBuilder::afterClean"),wm("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),d}function aIt(t,u,s){const d=Htt(t,u,s);if(!d)return 3;if(Q7(d))return GQ(t,d.circularDiagnostics),4;const{options:f,host:p}=t,E=f.dry?[]:void 0;for(const v of d){const b=lE(t,v),B=X7(t,v,b);if(B===void 0){lit(t,b);continue}const k=hQ(B,!p.useCaseSensitiveFileNames());if(!k.length)continue;const T=new Set(B.fileNames.map(M=>pm(t,M)));for(const M of k)T.has(pm(t,M))||p.fileExists(M)&&(E?E.push(M):(p.deleteFile(M),k9e(t,b,0)))}return E&&zh(t,F.A_non_dry_build_would_delete_the_following_files_Colon_0,E.map(v=>`\r - * ${v}`).join("")),0}function k9e(t,u,s){t.host.getParsedCommandLine&&s===1&&(s=2),s===2&&(t.configFileCache.delete(u),t.buildOrder=void 0),t.needsSummary=!0,Wtt(t,u),Gtt(t,u,s),Ktt(t)}function WQ(t,u,s){t.reportFileChangeDetected=!0,k9e(t,u,s),uit(t,250,!0)}function uit(t,u,s){const{hostWithWatch:d}=t;!d.setTimeout||!d.clearTimeout||(t.timerToBuildInvalidatedProject&&d.clearTimeout(t.timerToBuildInvalidatedProject),t.timerToBuildInvalidatedProject=d.setTimeout(oIt,u,"timerToBuildInvalidatedProject",t,s))}function oIt(t,u,s){il("SolutionBuilder::beforeBuild");const d=sIt(u,s);il("SolutionBuilder::afterBuild"),wm("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),d&&cit(u,d)}function sIt(t,u){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),S9e(t,F.File_change_detected_Starting_incremental_compilation));let s=0;const d=KQ(t),f=E9e(t,d,!1);if(f)for(f.done(),s++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;const p=qtt(t,d,!1);if(!p)break;if(p.kind!==2&&(u||s===5)){uit(t,100,!1);return}Ztt(t,p,d).done(),p.kind!==2&&s++}return g9e(t),d}function rit(t,u,s,d){!t.watch||t.allWatchedConfigFiles.has(s)||t.allWatchedConfigFiles.set(s,she(t,u,()=>WQ(t,s,2),2e3,d==null?void 0:d.watchOptions,sd.ConfigFile,u))}function ait(t,u,s){EQ(u,s==null?void 0:s.options,t.allWatchedExtendedConfigFiles,(d,f)=>she(t,d,()=>{var p;return(p=t.allWatchedExtendedConfigFiles.get(f))==null?void 0:p.projects.forEach(E=>WQ(t,E,2))},2e3,s==null?void 0:s.watchOptions,sd.ExtendedConfigFile),d=>pm(t,d))}function oit(t,u,s,d){t.watch&&gH(m9e(t.allWatchedWildcardDirectories,s),new Map(Object.entries(d.wildcardDirectories)),(f,p)=>t.watchDirectory(f,E=>{var v;EH({watchedDirPath:pm(t,f),fileOrDirectory:E,fileOrDirectoryPath:pm(t,E),configFileName:u,currentDirectory:t.compilerHost.getCurrentDirectory(),options:d.options,program:t.builderPrograms.get(s)||((v=Zzt(t,s))==null?void 0:v.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:b=>t.writeLog(b),toPath:b=>pm(t,b)})||WQ(t,s,1)},p,d==null?void 0:d.watchOptions,sd.WildcardDirectory,u))}function F9e(t,u,s,d){t.watch&&sB(m9e(t.allWatchedInputFiles,s),og(d.fileNames,f=>pm(t,f)),{createNewValue:(f,p)=>she(t,p,()=>WQ(t,s,0),250,d==null?void 0:d.watchOptions,sd.SourceFile,u),onDeleteValue:dg})}function A9e(t,u,s,d){!t.watch||!t.lastCachedPackageJsonLookups||sB(m9e(t.allWatchedPackageJsonFiles,s),new Map(t.lastCachedPackageJsonLookups.get(s)),{createNewValue:(f,p)=>she(t,f,()=>WQ(t,s,0),2e3,d==null?void 0:d.watchOptions,sd.PackageJson,u),onDeleteValue:dg})}function lIt(t,u){if(t.watchAllProjectsPending){il("SolutionBuilder::beforeWatcherCreation"),t.watchAllProjectsPending=!1;for(const s of HQ(u)){const d=lE(t,s),f=X7(t,s,d);rit(t,s,d,f),ait(t,d,f),f&&(oit(t,s,d,f),F9e(t,s,d,f),A9e(t,s,d,f))}il("SolutionBuilder::afterWatcherCreation"),wm("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function cIt(t){uf(t.allWatchedConfigFiles,dg),uf(t.allWatchedExtendedConfigFiles,Om),uf(t.allWatchedWildcardDirectories,u=>uf(u,Om)),uf(t.allWatchedInputFiles,u=>uf(u,dg)),uf(t.allWatchedPackageJsonFiles,u=>uf(u,dg))}function sit(t,u,s,d,f){const p=qzt(t,u,s,d,f);return{build:(E,v,b,B)=>iit(p,E,v,b,B),clean:E=>nit(p,E),buildReferences:(E,v,b,B)=>iit(p,E,v,b,B,!0),cleanReferences:E=>nit(p,E,!0),getNextInvalidatedProject:E=>(Jtt(p,E),E9e(p,KQ(p),!1)),getBuildOrder:()=>KQ(p),getUpToDateStatusOfProject:E=>{const v=FM(p,E),b=lE(p,v);return y9e(p,X7(p,v,b),b)},invalidateProject:(E,v)=>k9e(p,E,v||0),close:()=>cIt(p)}}function e1(t,u){return BN(u,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function zh(t,u,...s){t.host.reportSolutionBuilderStatus(lc(u,...s))}function S9e(t,u,...s){var d,f;(f=(d=t.hostWithWatch).onWatchStatusChange)==null||f.call(d,lc(u,...s),t.host.getNewLine(),t.baseCompilerOptions)}function GQ({host:t},u){u.forEach(s=>t.reportDiagnostic(s))}function AM(t,u,s){GQ(t,s),t.projectErrorsReported.set(u,!0),s.length&&t.diagnostics.set(u,s)}function lit(t,u){AM(t,u,[t.configFileCache.get(u)])}function cit(t,u){if(!t.needsSummary)return;t.needsSummary=!1;const s=t.watch||!!t.host.reportErrorSummary,{diagnostics:d}=t;let f=0,p=[];Q7(u)?(dit(t,u.buildOrder),GQ(t,u.circularDiagnostics),s&&(f+=MQ(u.circularDiagnostics)),s&&(p=[...p,...zQ(u.circularDiagnostics)])):(u.forEach(E=>{const v=lE(t,E);t.projectErrorsReported.has(v)||GQ(t,d.get(v)||_t)}),s&&d.forEach(E=>f+=MQ(E)),s&&d.forEach(E=>[...p,...zQ(E)])),t.watch?S9e(t,$1e(f),f):t.host.reportErrorSummary&&t.host.reportErrorSummary(f,p)}function dit(t,u){t.options.verbose&&zh(t,F.Projects_in_this_build_Colon_0,u.map(s=>`\r - * `+e1(t,s)).join(""))}function dIt(t,u,s){switch(s.type){case 6:return zh(t,F.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,e1(t,u),e1(t,s.outOfDateOutputFileName),e1(t,s.newerInputFileName));case 7:return zh(t,F.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,e1(t,u),e1(t,s.outOfDateOutputFileName),e1(t,s.newerProjectName));case 4:return zh(t,F.Project_0_is_out_of_date_because_output_file_1_does_not_exist,e1(t,u),e1(t,s.missingOutputFileName));case 5:return zh(t,F.Project_0_is_out_of_date_because_there_was_error_reading_file_1,e1(t,u),e1(t,s.fileName));case 8:return zh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,e1(t,u),e1(t,s.buildInfoFile));case 9:return zh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,e1(t,u),e1(t,s.buildInfoFile));case 10:return zh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,e1(t,u),e1(t,s.buildInfoFile),e1(t,s.inputFile));case 1:if(s.newestInputFileTime!==void 0)return zh(t,F.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,e1(t,u),e1(t,s.newestInputFileName||""),e1(t,s.oldestOutputFileName||""));break;case 3:return zh(t,F.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,e1(t,u),e1(t,s.newerProjectName));case 2:return zh(t,F.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,e1(t,u));case 15:return zh(t,F.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,e1(t,u));case 11:return zh(t,F.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,e1(t,u),e1(t,s.upstreamProjectName));case 12:return zh(t,s.upstreamProjectBlocked?F.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:F.Project_0_can_t_be_built_because_its_dependency_1_has_errors,e1(t,u),e1(t,s.upstreamProjectName));case 0:return zh(t,F.Failed_to_parse_file_0_Colon_1,e1(t,u),s.reason);case 14:return zh(t,F.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,e1(t,u),s.version,_);case 17:return zh(t,F.Project_0_is_being_forcibly_rebuilt,e1(t,u))}}function lhe(t,u,s){t.options.verbose&&dIt(t,u,s)}var hit,fit,che,hIt=o({"src/compiler/tsbuildPublic.ts"(){Ao(),Hy(),hit=new Date(-864e13),fit=new Date(864e13),che=(t=>(t[t.Build=0]="Build",t[t.UpdateBundle=1]="UpdateBundle",t[t.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",t))(che||{})}}),Ao=o({"src/compiler/_namespaces/ts.ts"(){y(),xwt(),vwt(),Twt(),Pwt(),Mwt(),Jwt(),wqe(),tTt(),aTt(),oTt(),hTt(),_Tt(),gLt(),ELt(),_Lt(),DLt(),SLt(),BLt(),wLt(),TLt(),uNt(),rNt(),pNt(),NNt(),aPt(),hPt(),fPt(),yPt(),wPt(),RPt(),GPt(),uMt(),rMt(),mMt(),pMt(),gMt(),bMt(),yMt(),kMt(),FMt(),AMt(),SMt(),BMt(),wMt(),TMt(),PMt(),MMt(),zMt(),IMt(),RMt(),jMt(),VMt(),HMt(),KMt(),WMt(),GMt(),YMt(),nzt(),fzt(),pzt(),Dzt(),xzt(),vzt(),Izt(),Rzt(),Vzt(),Wzt(),Gzt(),Jzt(),hIt(),TAe(),Hy()}});function mit(t){return l1.args.includes(t)}function pit(t){const u=l1.args.indexOf(t);return u>=0&&u{t.GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(fhe||(fhe={})),L9e=` - `}}),mIt=o({"src/jsTyping/types.ts"(){}}),UQ=o({"src/jsTyping/_namespaces/ts.server.ts"(){fIt(),mIt()}});function Eit(t,u){return new Bp(no(u,`ts${g}`)||no(u,"latest")).compareTo(t.version)<=0}function _it(t){return I9e.has(t)?"node":t}function pIt(t,u){const s=WV(u,d=>t.readFile(d));return new Map(Object.entries(s.config))}function gIt(t,u){var s;const d=WV(u,f=>t.readFile(f));if((s=d.config)!=null&&s.simpleMap)return new Map(Object.entries(d.config.simpleMap))}function EIt(t,u,s,d,f,p,E,v,b,B){if(!E||!E.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const k=new Map;s=Ui(s,ge=>{const ae=Go(ge);if(N2(ae))return ae});const T=[];E.include&&Y(E.include,"Explicitly included types");const M=E.exclude||[];if(!B.types){const ge=new Set(s.map(dr));ge.add(d),ge.forEach(ae=>{oe(ae,"bower.json","bower_components",T),oe(ae,"package.json","node_modules",T)})}if(E.disableFilenameBasedTypeAcquisition||se(s),v){const ge=li(v.map(_it),YA,ch);Y(ge,"Inferred typings from unresolved imports")}for(const ge of M)k.delete(ge)&&u&&u(`Typing for ${ge} is in exclude list, will be ignored.`);p.forEach((ge,ae)=>{const Ce=b.get(ae);k.get(ae)===!1&&Ce!==void 0&&Eit(ge,Ce)&&k.set(ae,ge.typingLocation)});const z=[],j=[];k.forEach((ge,ae)=>{ge?j.push(ge):z.push(ae)});const J={cachedTypingPaths:j,newTypingNames:z,filesToWatch:T};return u&&u(`Finished typings discovery:${tw(J)}`),J;function K(ge){k.has(ge)||k.set(ge,!1)}function Y(ge,ae){u&&u(`${ae}: ${JSON.stringify(ge)}`),L(ge,K)}function oe(ge,ae,Ce,ne){const ve=hr(ge,ae);let Se,Ne;t.fileExists(ve)&&(ne.push(ve),Se=WV(ve,Be=>t.readFile(Be)).config,Ne=Ku([Se.dependencies,Se.devDependencies,Se.optionalDependencies,Se.peerDependencies],Ts),Y(Ne,`Typing names in '${ve}' dependencies`));const pe=hr(ge,Ce);if(ne.push(pe),!t.directoryExists(pe))return;const fe=[],xe=Ne?Ne.map(Be=>hr(pe,Be,ae)):t.readDirectory(pe,[".json"],void 0,void 0,3).filter(Be=>{if(Fc(Be)!==ae)return!1;const We=bd(Go(Be)),Ae=We[We.length-3][0]==="@";return Ae&&Jg(We[We.length-4])===Ce||!Ae&&Jg(We[We.length-3])===Ce});u&&u(`Searching for typing names in ${pe}; all files: ${JSON.stringify(xe)}`);for(const Be of xe){const We=Go(Be),De=WV(We,Ge=>t.readFile(Ge)).config;if(!De.name)continue;const He=De.types||De.typings;if(He){const Ge=$a(He,dr(We));t.fileExists(Ge)?(u&&u(` Package '${De.name}' provides its own types.`),k.set(De.name,Ge)):u&&u(` Package '${De.name}' provides its own types but they are missing.`)}else fe.push(De.name)}Y(fe," Found package names")}function se(ge){const ae=Ui(ge,ne=>{if(!N2(ne))return;const ve=Eh(Jg(Fc(ne))),Se=ooe(ve);return f.get(Se)});ae.length&&Y(ae,"Inferred typings from file names"),qe(ge,ne=>Pl(ne,".jsx"))&&(u&&u("Inferred 'react' typings due to presence of '.jsx' extension"),K("react"))}}function _It(t){return N9e(t,!0)}function N9e(t,u){if(!t)return 1;if(t.length>O9e)return 2;if(t.charCodeAt(0)===46)return 3;if(t.charCodeAt(0)===95)return 4;if(u){const s=/^@([^/]+)\/([^/]+)$/.exec(t);if(s){const d=N9e(s[1],!1);if(d!==0)return{name:s[1],isScopeName:!0,result:d};const f=N9e(s[2],!1);return f!==0?{name:s[2],isScopeName:!1,result:f}:0}}return encodeURIComponent(t)!==t?5:0}function DIt(t,u){return typeof t=="object"?Dit(u,t.result,t.name,t.isScopeName):Dit(u,t,u,!1)}function Dit(t,u,s,d){const f=d?"Scope":"Package";switch(u){case 1:return`'${t}':: ${f} name '${s}' cannot be empty`;case 2:return`'${t}':: ${f} name '${s}' should be less than ${O9e} characters`;case 3:return`'${t}':: ${f} name '${s}' cannot start with '.'`;case 4:return`'${t}':: ${f} name '${s}' cannot start with '_'`;case 5:return`'${t}':: ${f} name '${s}' contains non URI safe characters`;case 0:return H.fail();default:H.assertNever(u)}}var P9e,M9e,z9e,I9e,R9e,O9e,xIt=o({"src/jsTyping/jsTyping.ts"(){AH(),UQ(),P9e=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],M9e=P9e.map(t=>`node:${t}`),z9e=[...P9e,...M9e],I9e=new Set(z9e),R9e=(t=>(t[t.Ok=0]="Ok",t[t.EmptyName=1]="EmptyName",t[t.NameTooLong=2]="NameTooLong",t[t.NameStartsWithDot=3]="NameStartsWithDot",t[t.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",t[t.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t))(R9e||{}),O9e=214}}),a3={};h(a3,{NameValidationResult:()=>R9e,discoverTypings:()=>EIt,isTypingUpToDate:()=>Eit,loadSafeList:()=>pIt,loadTypesMap:()=>gIt,nodeCoreModuleList:()=>z9e,nodeCoreModules:()=>I9e,nonRelativeModuleNameForTypingCache:()=>_it,prefixedNodeCoreModuleList:()=>M9e,renderPackageNameValidationFailure:()=>DIt,validatePackageName:()=>_It});var vIt=o({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){xIt()}}),AH=o({"src/jsTyping/_namespaces/ts.ts"(){Ao(),vIt(),UQ()}});function qQ(t){return{indentSize:4,tabSize:4,newLineCharacter:t||` -`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var ZQ,mhe,phe,ghe,c4,Ehe,_he,Dhe,xhe,vhe,Che,bhe,j9e,SH,yhe,khe,Fhe,Ahe,She,Bhe,whe,The,Lhe,CIt=o({"src/services/types.ts"(){(t=>{class u{constructor(f){this.text=f}getText(f,p){return f===0&&p===this.text.length?this.text:this.text.substring(f,p)}getLength(){return this.text.length}getChangeRange(){}}function s(d){return new u(d)}t.fromString=s})(ZQ||(ZQ={})),mhe=(t=>(t[t.Dependencies=1]="Dependencies",t[t.DevDependencies=2]="DevDependencies",t[t.PeerDependencies=4]="PeerDependencies",t[t.OptionalDependencies=8]="OptionalDependencies",t[t.All=15]="All",t))(mhe||{}),phe=(t=>(t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto",t))(phe||{}),ghe=(t=>(t[t.Semantic=0]="Semantic",t[t.PartialSemantic=1]="PartialSemantic",t[t.Syntactic=2]="Syntactic",t))(ghe||{}),c4={},Ehe=(t=>(t.Original="original",t.TwentyTwenty="2020",t))(Ehe||{}),_he=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(_he||{}),Dhe=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(Dhe||{}),xhe=(t=>(t.Type="Type",t.Parameter="Parameter",t.Enum="Enum",t))(xhe||{}),vhe=(t=>(t.none="none",t.definition="definition",t.reference="reference",t.writtenReference="writtenReference",t))(vhe||{}),Che=(t=>(t[t.None=0]="None",t[t.Block=1]="Block",t[t.Smart=2]="Smart",t))(Che||{}),bhe=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(bhe||{}),j9e=qQ(` -`),SH=(t=>(t[t.aliasName=0]="aliasName",t[t.className=1]="className",t[t.enumName=2]="enumName",t[t.fieldName=3]="fieldName",t[t.interfaceName=4]="interfaceName",t[t.keyword=5]="keyword",t[t.lineBreak=6]="lineBreak",t[t.numericLiteral=7]="numericLiteral",t[t.stringLiteral=8]="stringLiteral",t[t.localName=9]="localName",t[t.methodName=10]="methodName",t[t.moduleName=11]="moduleName",t[t.operator=12]="operator",t[t.parameterName=13]="parameterName",t[t.propertyName=14]="propertyName",t[t.punctuation=15]="punctuation",t[t.space=16]="space",t[t.text=17]="text",t[t.typeParameterName=18]="typeParameterName",t[t.enumMemberName=19]="enumMemberName",t[t.functionName=20]="functionName",t[t.regularExpressionLiteral=21]="regularExpressionLiteral",t[t.link=22]="link",t[t.linkName=23]="linkName",t[t.linkText=24]="linkText",t))(SH||{}),yhe=(t=>(t[t.None=0]="None",t[t.MayIncludeAutoImports=1]="MayIncludeAutoImports",t[t.IsImportStatementCompletion=2]="IsImportStatementCompletion",t[t.IsContinuation=4]="IsContinuation",t[t.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",t[t.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",t[t.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",t))(yhe||{}),khe=(t=>(t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports",t))(khe||{}),Fhe=(t=>(t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration",t))(Fhe||{}),Ahe=(t=>(t[t.None=0]="None",t[t.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",t[t.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",t[t.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",t[t.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",t[t.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",t[t.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",t))(Ahe||{}),She=(t=>(t[t.Punctuation=0]="Punctuation",t[t.Keyword=1]="Keyword",t[t.Operator=2]="Operator",t[t.Comment=3]="Comment",t[t.Whitespace=4]="Whitespace",t[t.Identifier=5]="Identifier",t[t.NumberLiteral=6]="NumberLiteral",t[t.BigIntLiteral=7]="BigIntLiteral",t[t.StringLiteral=8]="StringLiteral",t[t.RegExpLiteral=9]="RegExpLiteral",t))(She||{}),Bhe=(t=>(t.unknown="",t.warning="warning",t.keyword="keyword",t.scriptElement="script",t.moduleElement="module",t.classElement="class",t.localClassElement="local class",t.interfaceElement="interface",t.typeElement="type",t.enumElement="enum",t.enumMemberElement="enum member",t.variableElement="var",t.localVariableElement="local var",t.variableUsingElement="using",t.variableAwaitUsingElement="await using",t.functionElement="function",t.localFunctionElement="local function",t.memberFunctionElement="method",t.memberGetAccessorElement="getter",t.memberSetAccessorElement="setter",t.memberVariableElement="property",t.memberAccessorVariableElement="accessor",t.constructorImplementationElement="constructor",t.callSignatureElement="call",t.indexSignatureElement="index",t.constructSignatureElement="construct",t.parameterElement="parameter",t.typeParameterElement="type parameter",t.primitiveType="primitive type",t.label="label",t.alias="alias",t.constElement="const",t.letElement="let",t.directory="directory",t.externalModuleName="external module name",t.jsxAttribute="JSX attribute",t.string="string",t.link="link",t.linkName="link name",t.linkText="link text",t))(Bhe||{}),whe=(t=>(t.none="",t.publicMemberModifier="public",t.privateMemberModifier="private",t.protectedMemberModifier="protected",t.exportedModifier="export",t.ambientModifier="declare",t.staticModifier="static",t.abstractModifier="abstract",t.optionalModifier="optional",t.deprecatedModifier="deprecated",t.dtsModifier=".d.ts",t.tsModifier=".ts",t.tsxModifier=".tsx",t.jsModifier=".js",t.jsxModifier=".jsx",t.jsonModifier=".json",t.dmtsModifier=".d.mts",t.mtsModifier=".mts",t.mjsModifier=".mjs",t.dctsModifier=".d.cts",t.ctsModifier=".cts",t.cjsModifier=".cjs",t))(whe||{}),The=(t=>(t.comment="comment",t.identifier="identifier",t.keyword="keyword",t.numericLiteral="number",t.bigintLiteral="bigint",t.operator="operator",t.stringLiteral="string",t.whiteSpace="whitespace",t.text="text",t.punctuation="punctuation",t.className="class name",t.enumName="enum name",t.interfaceName="interface name",t.moduleName="module name",t.typeParameterName="type parameter name",t.typeAliasName="type alias name",t.parameterName="parameter name",t.docCommentTagName="doc comment tag name",t.jsxOpenTagName="jsx open tag name",t.jsxCloseTagName="jsx close tag name",t.jsxSelfClosingTagName="jsx self closing tag name",t.jsxAttribute="jsx attribute",t.jsxText="jsx text",t.jsxAttributeStringLiteralValue="jsx attribute string literal value",t))(The||{}),Lhe=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(Lhe||{})}});function BH(t){switch(t.kind){case 260:return eu(t)&&Rse(t)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return t.name===void 0?3:2;case 306:case 263:return 3;case 267:return L1(t)||aD(t)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function Lk(t){t=Ghe(t);const u=t.parent;return t.kind===312?1:ec(u)||X1(u)||u_(u)||Cf(u)||i_(u)||g1(u)&&t===u.name?7:YQ(t)?bIt(t):Q3(t)?BH(u):om(t)&&Ln(t,lg(YP,r7,zv))?7:AIt(t)?2:yIt(t)?4:Al(u)?(H.assert(gg(u.parent)),2):Nv(u)?3:1}function bIt(t){const u=t.kind===166?t:xf(t.parent)&&t.parent.right===t?t.parent:void 0;return u&&u.parent.kind===271?7:4}function YQ(t){for(;t.parent.kind===166;)t=t.parent;return J8(t.parent)&&t.parent.moduleReference===t}function yIt(t){return kIt(t)||FIt(t)}function kIt(t){let u=t,s=!0;if(u.parent.kind===166){for(;u.parent&&u.parent.kind===166;)u=u.parent;s=u.right===t}return u.parent.kind===183&&!s}function FIt(t){let u=t,s=!0;if(u.parent.kind===211){for(;u.parent&&u.parent.kind===211;)u=u.parent;s=u.name===t}if(!s&&u.parent.kind===233&&u.parent.parent.kind===298){const d=u.parent.parent.parent;return d.kind===263&&u.parent.parent.token===119||d.kind===264&&u.parent.parent.token===96}return!1}function AIt(t){switch(pP(t)&&(t=t.parent),t.kind){case 110:return!q_(t);case 197:return!0}switch(t.parent.kind){case 183:return!0;case 205:return!t.parent.isTypeOf;case 233:return U_(t.parent)}return!1}function Nhe(t,u=!1,s=!1){return wH(t,No,Mhe,u,s)}function BM(t,u=!1,s=!1){return wH(t,I2,Mhe,u,s)}function Phe(t,u=!1,s=!1){return wH(t,JE,Mhe,u,s)}function V9e(t,u=!1,s=!1){return wH(t,Ek,SIt,u,s)}function H9e(t,u=!1,s=!1){return wH(t,p1,Mhe,u,s)}function K9e(t,u=!1,s=!1){return wH(t,Ph,BIt,u,s)}function Mhe(t){return t.expression}function SIt(t){return t.tag}function BIt(t){return t.tagName}function wH(t,u,s,d,f){let p=d?W9e(t):QQ(t);return f&&(p=_c(p)),!!p&&!!p.parent&&u(p.parent)&&s(p.parent)===p}function QQ(t){return iw(t)?t.parent:t}function W9e(t){return iw(t)||Ohe(t)?t.parent:t}function XQ(t,u){for(;t;){if(t.kind===256&&t.label.escapedText===u)return t.label;t=t.parent}}function TH(t,u){return Iu(t.expression)?t.expression.name.text===u:!1}function LH(t){var u;return at(t)&&((u=ar(t.parent,RN))==null?void 0:u.label)===t}function zhe(t){var u;return at(t)&&((u=ar(t.parent,R2))==null?void 0:u.label)===t}function Ihe(t){return zhe(t)||LH(t)}function Rhe(t){var u;return((u=ar(t.parent,M8))==null?void 0:u.tagName)===t}function G9e(t){var u;return((u=ar(t.parent,xf))==null?void 0:u.right)===t}function iw(t){var u;return((u=ar(t.parent,Iu))==null?void 0:u.name)===t}function Ohe(t){var u;return((u=ar(t.parent,W0))==null?void 0:u.argumentExpression)===t}function jhe(t){var u;return((u=ar(t.parent,Ec))==null?void 0:u.name)===t}function Vhe(t){var u;return at(t)&&((u=ar(t.parent,xo))==null?void 0:u.name)===t}function eX(t){switch(t.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return qa(t.parent)===t;case 212:return t.parent.argumentExpression===t;case 167:return!0;case 201:return t.parent.parent.kind===199;default:return!1}}function J9e(t){return vv(t.parent.parent)&&QN(t.parent.parent)===t}function Nk(t){for(K4(t)&&(t=t.parent.parent);;){if(t=t.parent,!t)return;switch(t.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return t}}}function Q2(t){switch(t.kind){case 312:return Bc(t)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return u(t);case 208:return u(QE(t));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:s}=t;return xo(s)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Xu(t,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const d=Ql(t),{right:f}=t;switch(d){case 7:case 8:case 9:case 0:return"";case 1:case 2:const E=Q2(f);return E===""?"const":E;case 3:return F0(f)?"method":"property";case 4:return"property";case 5:return F0(f)?"method":"property";case 6:return"local class";default:return""}case 80:return i_(t.parent)?"alias":"";case 277:const p=Q2(t.expression);return p===""?"const":p;default:return""}function u(s){return V8(s)?"const":tq(s)?"let":"var"}}function nw(t){switch(t.kind){case 110:return!0;case 80:return nle(t)&&t.parent.kind===169;default:return!1}}function X4(t,u){const s=J3(u),d=u.getLineAndCharacterOfPosition(t).line;return s[d]}function jm(t,u){return Hhe(t.pos,t.end,u)}function $9e(t,u){return PH(t,u.pos)&&PH(t,u.end)}function NH(t,u){return t.pos<=u&&u<=t.end}function PH(t,u){return t.pos=s.end}function MH(t,u,s){return t.pos<=u&&t.end>=s}function wM(t,u,s){return iX(t.pos,t.end,u,s)}function tX(t,u,s,d){return iX(t.getStart(u),t.end,s,d)}function iX(t,u,s,d){const f=Math.max(t,s),p=Math.min(u,d);return fd.kind===u)}function nX(t){const u=Le(t.parent.getChildren(),s=>NB(s)&&jm(s,t));return H.assert(!u||Ft(u.getChildren(),t)),u}function xit(t){return t.kind===90}function wIt(t){return t.kind===86}function TIt(t){return t.kind===100}function LIt(t){if(fh(t))return t.name;if(Kc(t)){const u=t.modifiers&&Le(t.modifiers,xit);if(u)return u}if(Qd(t)){const u=Le(t.getChildren(),wIt);if(u)return u}}function NIt(t){if(fh(t))return t.name;if(Xc(t)){const u=Le(t.modifiers,xit);if(u)return u}if(F0(t)){const u=Le(t.getChildren(),TIt);if(u)return u}}function PIt(t){let u;return Ln(t,s=>(Qr(s)&&(u=s),!xf(s.parent)&&!Qr(s.parent)&&!Uy(s.parent))),u}function uX(t,u){if(t.flags&16777216)return;const s=yX(t,u);if(s)return s;const d=PIt(t);return d&&u.getTypeAtLocation(d)}function MIt(t,u){if(!u)switch(t.kind){case 263:case 231:return LIt(t);case 262:case 218:return NIt(t);case 176:return t}if(fh(t))return t.name}function vit(t,u){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(nD(t.importClause.namedBindings)){const s=Aa(t.importClause.namedBindings.elements);return s?s.name:void 0}else if(Gx(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!u)return t.moduleSpecifier}function Cit(t,u){if(t.exportClause){if(Q4(t.exportClause))return Aa(t.exportClause.elements)?t.exportClause.elements[0].name:void 0;if(n_(t.exportClause))return t.exportClause.name}if(!u)return t.moduleSpecifier}function zIt(t){if(t.types.length===1)return t.types[0].expression}function bit(t,u){const{parent:s}=t;if(Yo(t)&&(u||t.kind!==90)?Op(s)&&Ft(s.modifiers,t):t.kind===86?Kc(s)||Qd(t):t.kind===100?Xc(s)||F0(t):t.kind===120?Dh(s):t.kind===94?Mv(s):t.kind===156?Ip(s):t.kind===145||t.kind===144?Ec(s):t.kind===102?g1(s):t.kind===139?Mm(s):t.kind===153&&Of(s)){const d=MIt(s,u);if(d)return d}if((t.kind===115||t.kind===87||t.kind===121)&&Fd(s)&&s.declarations.length===1){const d=s.declarations[0];if(at(d.name))return d.name}if(t.kind===156){if(i_(s)&&s.isTypeOnly){const d=vit(s.parent,u);if(d)return d}if(Wc(s)&&s.isTypeOnly){const d=Cit(s,u);if(d)return d}}if(t.kind===130){if(Cf(s)&&s.propertyName||X1(s)&&s.propertyName||Gx(s)||n_(s))return s.name;if(Wc(s)&&s.exportClause&&n_(s.exportClause))return s.exportClause.name}if(t.kind===102&&Ad(s)){const d=vit(s,u);if(d)return d}if(t.kind===95){if(Wc(s)){const d=Cit(s,u);if(d)return d}if(ec(s))return _c(s.expression)}if(t.kind===149&&u_(s))return s.expression;if(t.kind===161&&(Ad(s)||Wc(s))&&s.moduleSpecifier)return s.moduleSpecifier;if((t.kind===96||t.kind===119)&&fm(s)&&s.token===t.kind){const d=zIt(s);if(d)return d}if(t.kind===96){if(Al(s)&&s.constraint&&Y4(s.constraint))return s.constraint.typeName;if(yB(s)&&Y4(s.extendsType))return s.extendsType.typeName}if(t.kind===140&&L7(s))return s.typeParameter.name;if(t.kind===103&&Al(s)&&GP(s.parent))return s.name;if(t.kind===143&&P7(s)&&s.operator===143&&Y4(s.type))return s.type.typeName;if(t.kind===148&&P7(s)&&s.operator===148&&nY(s.type)&&Y4(s.type.elementType))return s.type.elementType.typeName;if(!u){if((t.kind===105&&I2(s)||t.kind===116&&z7(s)||t.kind===114&&kB(s)||t.kind===135&&Wx(s)||t.kind===127&&aY(s)||t.kind===91&&rFe(s))&&s.expression)return _c(s.expression);if((t.kind===103||t.kind===104)&&tu(s)&&s.operatorToken===t)return _c(s.right);if(t.kind===130&&kV(s)&&Y4(s.type))return s.type.typeName;if(t.kind===103&&sY(s)||t.kind===165&&FV(s))return _c(s.expression)}return t}function Ghe(t){return bit(t,!1)}function rX(t){return bit(t,!0)}function rf(t,u){return TM(t,u,s=>Qg(s)||nf(s.kind)||Xr(s))}function TM(t,u,s){return yit(t,u,!1,s,!1)}function ba(t,u){return yit(t,u,!0,void 0,!1)}function yit(t,u,s,d,f){let p=t,E;e:for(;;){const b=p.getChildren(t),B=Ca(b,u,(k,T)=>T,(k,T)=>{const M=b[k].getEnd();if(Mu?1:v(b[k],z,M)?b[k-1]&&v(b[k-1])?1:0:d&&z===u&&b[k-1]&&b[k-1].getEnd()===u&&v(b[k-1])?1:-1});if(E)return E;if(B>=0&&b[B]){p=b[B];continue e}return p}function v(b,B,k){if(k??(k=b.getEnd()),ku))return!1;if(us.getStart(t)&&u(p.pos<=t.pos&&p.end>t.end||p.pos===t.end)&&iSe(p,s)?d(p):void 0)}}function ed(t,u,s,d){const f=p(s||u);return H.assert(!(f&&oX(f))),f;function p(E){if(kit(E)&&E.kind!==1)return E;const v=E.getChildren(u),b=Ca(v,t,(k,T)=>T,(k,T)=>t=v[k-1].end?0:1:-1);if(b>=0&&v[b]){const k=v[b];if(t=t||!iSe(k,u)||oX(k)){const z=Y9e(v,b,u,E.kind);return z?!d&&VU(z)&&z.getChildren(u).length?p(z):Z9e(z,u):void 0}else return p(k)}H.assert(s!==void 0||E.kind===312||E.kind===1||VU(E));const B=Y9e(v,v.length,u,E.kind);return B&&Z9e(B,u)}}function kit(t){return i7(t)&&!oX(t)}function Z9e(t,u){if(kit(t))return t;const s=t.getChildren(u);if(s.length===0)return t;const d=Y9e(s,s.length,u,t.kind);return d&&Z9e(d,u)}function Y9e(t,u,s,d){for(let f=u-1;f>=0;f--){const p=t[f];if(oX(p))f===0&&(d===12||d===285)&&H.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(iSe(t[f],s))return t[f]}}function Pk(t,u,s=ed(u,t)){if(s&&$se(s)){const d=s.getStart(t),f=s.getEnd();if(ds.getStart(t)}function X9e(t,u){const s=ba(t,u);return!!(S7(s)||s.kind===19&&ZP(s.parent)&&u3(s.parent.parent)||s.kind===30&&Ph(s.parent)&&u3(s.parent.parent))}function sX(t,u){function s(d){for(;d;)if(d.kind>=285&&d.kind<=294||d.kind===12||d.kind===30||d.kind===32||d.kind===80||d.kind===20||d.kind===19||d.kind===44)d=d.parent;else if(d.kind===284){if(u>d.getStart(t))return!0;d=d.parent}else return!1;return!1}return s(ba(t,u))}function lX(t,u,s){const d=Jo(t.kind),f=Jo(u),p=t.getFullStart(),E=s.text.lastIndexOf(f,p);if(E===-1)return;if(s.text.lastIndexOf(d,p-1)!!p.typeParameters&&p.typeParameters.length>=u)}function Uhe(t,u){if(u.text.lastIndexOf("<",t?t.pos:u.text.length)===-1)return;let s=t,d=0,f=0;for(;s;){switch(s.kind){case 30:if(s=ed(s.getFullStart(),u),s&&s.kind===29&&(s=ed(s.getFullStart(),u)),!s||!at(s))return;if(!d)return Q3(s)?void 0:{called:s,nTypeArguments:f};d--;break;case 50:d=3;break;case 49:d=2;break;case 32:d++;break;case 20:if(s=lX(s,19,u),!s)return;break;case 22:if(s=lX(s,21,u),!s)return;break;case 24:if(s=lX(s,23,u),!s)return;break;case 28:f++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Qr(s))break;return}s=ed(s.getFullStart(),u)}}function f5(t,u,s){return ld.getRangeOfEnclosingComment(t,u,void 0,s)}function tSe(t,u){const s=ba(t,u);return!!Ln(s,Rp)}function iSe(t,u){return t.kind===1?!!t.jsDoc:t.getWidth(u)!==0}function LM(t,u=0){const s=[],d=Y1(t)?Nse(t)&~u:0;return d&2&&s.push("private"),d&4&&s.push("protected"),d&1&&s.push("public"),(d&256||Ml(t))&&s.push("static"),d&64&&s.push("abstract"),d&32&&s.push("export"),d&65536&&s.push("deprecated"),t.flags&33554432&&s.push("declare"),t.kind===277&&s.push("export"),s.length>0?s.join(","):""}function nSe(t){if(t.kind===183||t.kind===213)return t.typeArguments;if(xo(t)||t.kind===263||t.kind===264)return t.typeParameters}function cX(t){return t===2||t===3}function qhe(t){return!!(t===11||t===14||Sx(t))}function Fit(t,u,s){return!!(u.flags&4)&&t.isEmptyAnonymousObjectType(s)}function uSe(t){if(!t.isIntersection())return!1;const{types:u,checker:s}=t;return u.length===2&&(Fit(s,u[0],u[1])||Fit(s,u[1],u[0]))}function RH(t,u,s){return Sx(t.kind)&&t.getStart(s){const s=Js(u);return!t[s]&&(t[s]=!0)}}function uw(t){return t.getText(0,t.getLength())}function VH(t,u){let s="";for(let d=0;d!u.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(u)&&!!(u.externalModuleIndicator||u.commonJsModuleIndicator))}function sSe(t){return t.getSourceFiles().some(u=>!u.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(u)&&!!u.externalModuleIndicator)}function nfe(t){return!!t.module||Is(t)>=2||!!t.noEmit}function Mk(t,u){return{fileExists:s=>t.fileExists(s),getCurrentDirectory:()=>u.getCurrentDirectory(),readFile:wo(u,u.readFile),useCaseSensitiveFileNames:wo(u,u.useCaseSensitiveFileNames),getSymlinkCache:wo(u,u.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:wo(u,u.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var s;return(s=t.getModuleResolutionCache())==null?void 0:s.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:wo(u,u.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:s=>t.getProjectReferenceRedirect(s),isSourceOfProjectReferenceRedirect:s=>t.isSourceOfProjectReferenceRedirect(s),getNearestAncestorDirectoryWithPackageJson:wo(u,u.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons()}}function ufe(t,u){return{...Mk(t,u),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function mX(t){return t===2||t>=3&&t<=99||t===100}function lSe(t,u,s,d){return t||u&&u.length?p5(t,u,s,d):void 0}function p5(t,u,s,d,f){return q.createImportDeclaration(void 0,t||u?q.createImportClause(!!f,t,u&&u.length?q.createNamedImports(u):void 0):void 0,typeof s=="string"?t9(s,d):s,void 0)}function t9(t,u){return q.createStringLiteral(t,u===0)}function rfe(t,u){return _q(t,u)?1:0}function Vm(t,u){if(u.quotePreference&&u.quotePreference!=="auto")return u.quotePreference==="single"?0:1;{const s=t.imports&&Le(t.imports,d=>ns(d)&&!al(d.parent));return s?rfe(s,t):1}}function afe(t){switch(t){case 0:return"'";case 1:return'"';default:return H.assertNever(t)}}function pX(t){const u=gX(t);return u===void 0?void 0:Yr(u)}function gX(t){return t.escapedName!=="default"?t.escapedName:G(t.declarations,u=>{const s=qa(u);return s&&s.kind===80?s.escapedText:void 0})}function EX(t){return t0(t)&&(u_(t.parent)||Ad(t.parent)||Df(t.parent,!1)&&t.parent.arguments[0]===t||cm(t.parent)&&t.parent.arguments[0]===t)}function KH(t){return Rs(t)&&Mp(t.parent)&&at(t.name)&&!t.propertyName}function _X(t,u){const s=t.getTypeAtLocation(u.parent);return s&&t.getPropertyOfType(s,u.name.text)}function WH(t,u,s){if(t)for(;t.parent;){if(ca(t.parent)||!IIt(s,t.parent,u))return t;t=t.parent}}function IIt(t,u,s){return Lse(t,u.getStart(s))&&u.getEnd()<=gc(t)}function rw(t,u){return Op(t)?Le(t.modifiers,s=>s.kind===u):void 0}function PM(t,u,s,d,f){const E=(Ha(s)?s[0]:s).kind===243?T0e:Xy,v=ei(u.statements,E);let b=Ha(s)?Hp.detectImportDeclarationSorting(s,f):3;const B=Hp.getOrganizeImportsComparer(f,b===2),k=Ha(s)?ac(s,(T,M)=>Hp.compareImportsOrRequireStatements(T,M,B)):[s];if(!v.length)t.insertNodesAtTopOfFile(u,k,d);else if(v&&(b=Hp.detectImportDeclarationSorting(v,f))){const T=Hp.getOrganizeImportsComparer(f,b===2);for(const M of k){const z=Hp.getImportDeclarationInsertionIndex(v,M,T);if(z===0){const j=v[0]===u.statements[0]?{leadingTriviaOption:nu.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(u,v[0],M,!1,j)}else{const j=v[z-1];t.insertNodeAfter(u,j,M)}}}else{const T=Yu(v);T?t.insertNodesAfter(u,T,k):t.insertNodesAtTopOfFile(u,k,d)}}function ofe(t,u){return H.assert(t.isTypeOnly),Lo(t.getChildAt(0,u),tfe)}function aw(t,u){return!!t&&!!u&&t.start===u.start&&t.length===u.length}function DX(t,u){return t.fileName===u.fileName&&aw(t.textSpan,u.textSpan)}function sfe(t,u){if(t){for(let s=0;seo(s)?!0:Rs(s)||Mp(s)||gk(s)?!1:"quit")}function RIt(){const t=oV*10;let u,s,d,f;k();const p=T=>v(T,17);return{displayParts:()=>{const T=u.length&&u[u.length-1].text;return f>t&&T&&T!=="..."&&($3(T.charCodeAt(T.length-1))||u.push(bf(" ",16)),u.push(bf("...",15))),u},writeKeyword:T=>v(T,5),writeOperator:T=>v(T,12),writePunctuation:T=>v(T,15),writeTrailingSemicolon:T=>v(T,15),writeSpace:T=>v(T,16),writeStringLiteral:T=>v(T,8),writeParameter:T=>v(T,13),writeProperty:T=>v(T,14),writeLiteral:T=>v(T,8),writeSymbol:b,writeLine:B,write:p,writeComment:p,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:lo,getIndent:()=>d,increaseIndent:()=>{d++},decreaseIndent:()=>{d--},clear:k};function E(){if(!(f>t)&&s){const T=Bq(d);T&&(f+=T.length,u.push(bf(T,16))),s=!1}}function v(T,M){f>t||(E(),f+=T.length,u.push(bf(T,M)))}function b(T,M){f>t||(E(),f+=T.length,u.push(dSe(T,M)))}function B(){f>t||(f+=1,u.push(ow()),s=!0)}function k(){u=[],s=!0,d=0,f=0}}function dSe(t,u){return bf(t,s(u));function s(d){const f=d.flags;return f&3?cfe(d)?13:9:f&4||f&32768||f&65536?14:f&8?19:f&16?20:f&32?1:f&64?4:f&384?2:f&1536?11:f&8192?10:f&262144?18:f&524288||f&2097152?0:17}}function bf(t,u){return{text:t,kind:SH[u]}}function Jl(){return bf(" ",16)}function Vf(t){return bf(Jo(t),5)}function th(t){return bf(Jo(t),15)}function zM(t){return bf(Jo(t),12)}function hSe(t){return bf(t,13)}function fSe(t){return bf(t,14)}function dfe(t){const u=c2(t);return u===void 0?Hm(t):Vf(u)}function Hm(t){return bf(t,17)}function mSe(t){return bf(t,0)}function pSe(t){return bf(t,18)}function vX(t){return bf(t,24)}function gSe(t,u){return{text:t,kind:SH[23],target:{fileName:In(u).fileName,textSpan:af(u)}}}function hfe(t){return bf(t,22)}function ESe(t,u){var s;const d=fFe(t)?"link":mFe(t)?"linkcode":"linkplain",f=[hfe(`{@${d} `)];if(!t.name)t.text&&f.push(vX(t.text));else{const p=u==null?void 0:u.getSymbolAtLocation(t.name),E=jIt(t.text),v=Vc(t.name)+t.text.slice(0,E),b=OIt(t.text.slice(E)),B=(p==null?void 0:p.valueDeclaration)||((s=p==null?void 0:p.declarations)==null?void 0:s[0]);B?(f.push(gSe(v,B)),b&&f.push(vX(b))):f.push(vX(v+(E?"":" ")+b))}return f.push(hfe("}")),f}function OIt(t){let u=0;if(t.charCodeAt(u++)===124){for(;u"&&s--,d++,!s)return d}return 0}function g5(t,u){var s;return(u==null?void 0:u.newLineCharacter)||((s=t.getNewLine)==null?void 0:s.call(t))||zit}function ow(){return bf(` -`,6)}function qx(t){try{return t(Tfe),Tfe.displayParts()}finally{Tfe.clear()}}function GH(t,u,s,d=0){return qx(f=>{t.writeType(u,s,d|1024|16384,f)})}function IM(t,u,s,d,f=0){return qx(p=>{t.writeSymbol(u,s,d,f|8,p)})}function ffe(t,u,s,d=0){return d|=25632,qx(f=>{t.writeSignature(u,s,d,void 0,f)})}function Sit(t,u){const s=u.getSourceFile();return qx(d=>{pH().writeNode(4,t,s,d)})}function _Se(t){return!!t.parent&&n7(t.parent)&&t.parent.propertyName===t}function mfe(t,u){return nZ(t,u.getScriptKind&&u.getScriptKind(t))}function DSe(t,u){let s=t;for(;VIt(s)||UE(s)&&s.links.target;)UE(s)&&s.links.target?s=s.links.target:s=Q1(s,u);return s}function VIt(t){return(t.flags&2097152)!==0}function xSe(t,u){return qo(Q1(t,u))}function vSe(t,u){for(;$3(t.charCodeAt(u));)u+=1;return u}function CX(t,u){for(;u>-1&&Ug(t.charCodeAt(u));)u-=1;return u+1}function ol(t,u=!0){const s=t&&Bit(t);return s&&!u&&Hf(s),s}function JH(t,u,s){let d=s(t);return d?lu(d,t):d=Bit(t,s),d&&!u&&Hf(d),d}function Bit(t,u){const s=u?p=>JH(p,!0,u):ol,f=un(t,s,Eg,u?p=>p&&pfe(p,!0,u):p=>p&&eb(p),s);if(f===t){const p=ns(t)?lu(q.createStringLiteralFromNode(t),t):Rf(t)?lu(q.createNumericLiteral(t.text,t.numericLiteralFlags),t):q.cloneNode(t);return Pt(p,t)}return f.parent=void 0,f}function eb(t,u=!0){if(t){const s=q.createNodeArray(t.map(d=>ol(d,u)),t.hasTrailingComma);return Pt(s,t),s}return t}function pfe(t,u,s){return q.createNodeArray(t.map(d=>JH(d,u,s)),t.hasTrailingComma)}function Hf(t){gfe(t),CSe(t)}function gfe(t){bSe(t,1024,KIt)}function CSe(t){bSe(t,2048,gle)}function zk(t,u){const s=t.getSourceFile(),d=s.text;HIt(t,d)?sw(t,u,s):UH(t,u,s),RM(t,u,s)}function HIt(t,u){const s=t.getFullStart(),d=t.getStart();for(let f=s;fu)}function Ik(t,u){let s=t;for(let d=1;!UU(u,s);d++)s=`${t}_${d}`;return s}function $H(t,u,s,d){let f=0,p=-1;for(const{fileName:E,textChanges:v}of t){H.assert(E===u);for(const b of v){const{span:B,newText:k}=b,T=WIt(k,kv(s));if(T!==-1&&(p=B.start+f+T,!d))return p;f+=k.length-B.length}}return H.assert(d),H.assert(p>=0),p}function sw(t,u,s,d,f){TO(s.text,t.pos,ySe(u,s,d,f,RP))}function RM(t,u,s,d,f){LO(s.text,t.end,ySe(u,s,d,f,bZ))}function UH(t,u,s,d,f){LO(s.text,t.pos,ySe(u,s,d,f,RP))}function ySe(t,u,s,d,f){return(p,E,v,b)=>{v===3?(p+=2,E-=2):p+=2,f(t,s||v,u.text.slice(p,E),d!==void 0?d:b)}}function WIt(t,u){if(Na(t,u))return 0;let s=t.indexOf(" "+u);return s===-1&&(s=t.indexOf("."+u)),s===-1&&(s=t.indexOf('"'+u)),s===-1?-1:s+1}function bX(t){return tu(t)&&t.operatorToken.kind===28||Cs(t)||(kV(t)||aFe(t))&&Cs(t.expression)}function yX(t,u,s){const d=t5(t.parent);switch(d.kind){case 214:return u.getContextualType(d,s);case 226:{const{left:f,operatorToken:p,right:E}=d;return kX(p.kind)?u.getTypeAtLocation(t===E?f:E):u.getContextualType(t,s)}case 296:return _fe(d,u);default:return u.getContextualType(t,s)}}function OM(t,u,s){const d=Vm(t,u),f=JSON.stringify(s);return d===0?`'${G4(f).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:f}function kX(t){switch(t){case 37:case 35:case 38:case 36:return!0;default:return!1}}function kSe(t){switch(t.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function Efe(t){return!!t.getStringIndexType()||!!t.getNumberIndexType()}function _fe(t,u){return u.getTypeAtLocation(t.parent.parent.expression)}function jM(t,u,s,d){const f=s.getTypeChecker();let p=!0;const E=()=>p=!1,v=f.typeToTypeNode(t,u,1,{trackSymbol:(b,B,k)=>(p=p&&f.isSymbolAccessible(b,B,k,!1).accessibility===0,!p),reportInaccessibleThisError:E,reportPrivateInBaseOfClassExpression:E,reportInaccessibleUniqueSymbolError:E,moduleResolverHost:ufe(s,d)});return p?v:void 0}function FSe(t){return t===179||t===180||t===181||t===171||t===173}function wit(t){return t===262||t===176||t===174||t===177||t===178}function Tit(t){return t===267}function FX(t){return t===243||t===244||t===246||t===251||t===252||t===253||t===257||t===259||t===172||t===265||t===272||t===271||t===278||t===270||t===277}function GIt(t,u){const s=t.getLastToken(u);if(s&&s.kind===27)return!1;if(FSe(t.kind)){if(s&&s.kind===28)return!1}else if(Tit(t.kind)){const v=Cr(t.getChildren(u));if(v&&uE(v))return!1}else if(wit(t.kind)){const v=Cr(t.getChildren(u));if(v&&C2(v))return!1}else if(!FX(t.kind))return!1;if(t.kind===246)return!0;const d=Ln(t,v=>!v.parent),f=X2(t,d,u);if(!f||f.kind===20)return!0;const p=u.getLineAndCharacterOfPosition(t.getEnd()).line,E=u.getLineAndCharacterOfPosition(f.getStart(u)).line;return p!==E}function AX(t,u,s){const d=Ln(u,f=>f.end!==t?"quit":Lfe(f.kind));return!!d&&GIt(d,s)}function qH(t){let u=0,s=0;const d=5;return ro(t,function f(p){if(FX(p.kind)){const E=p.getLastToken(t);(E==null?void 0:E.kind)===27?u++:s++}else if(FSe(p.kind)){const E=p.getLastToken(t);if((E==null?void 0:E.kind)===27)u++;else if(E&&E.kind!==28){const v=o0(t,E.getStart(t)).line,b=o0(t,YE(t,E.end).start).line;v!==b&&s++}}return u+s>=d?!0:ro(p,f)}),u===0&&s<=1?!0:u/s>1/d}function SX(t,u){return TX(t,t.getDirectories,u)||[]}function Dfe(t,u,s,d,f){return TX(t,t.readDirectory,u,s,d,f)||_t}function ZH(t,u){return TX(t,t.fileExists,u)}function BX(t,u){return wX(()=>cg(u,t))||!1}function wX(t){try{return t()}catch{return}}function TX(t,u,...s){return wX(()=>u&&u.apply(t,s))}function xfe(t,u,s){const d=[];return $g(t,f=>{if(f===s)return!0;const p=hr(f,"package.json");ZH(u,p)&&d.push(p)}),d}function ASe(t,u){let s;return $g(t,d=>{if(d==="node_modules"||(s=T7e(d,f=>ZH(u,f),"package.json"),s))return!0}),s}function SSe(t,u){if(!u.fileExists)return[];const s=[];return $g(dr(t),d=>{const f=hr(d,"package.json");if(u.fileExists(f)){const p=vfe(f,u);p&&s.push(p)}}),s}function vfe(t,u){if(!u.readFile)return;const s=["dependencies","devDependencies","optionalDependencies","peerDependencies"],d=u.readFile(t)||"",f=JIt(d),p={};if(f)for(const b of s){const B=f[b];if(!B)continue;const k=new Map;for(const T in B)k.set(T,B[T]);p[b]=k}const E=[[1,p.dependencies],[2,p.devDependencies],[8,p.optionalDependencies],[4,p.peerDependencies]];return{...p,parseable:!!f,fileName:t,get:v,has(b,B){return!!v(b,B)}};function v(b,B=15){for(const[k,T]of E)if(T&&B&k){const M=T.get(b);if(M!==void 0)return M}}}function VM(t,u,s){const d=(s.getPackageJsonsVisibleToFile&&s.getPackageJsonsVisibleToFile(t.fileName)||SSe(t.fileName,s)).filter(j=>j.parseable);let f,p,E;return{allowsImportingAmbientModule:b,allowsImportingSourceFile:B,allowsImportingSpecifier:k};function v(j){const J=z(j);for(const K of d)if(K.has(J)||K.has(KY(J)))return!0;return!1}function b(j,J){if(!d.length||!j.valueDeclaration)return!0;if(!p)p=new Map;else{const ge=p.get(j);if(ge!==void 0)return ge}const K=G4(j.getName());if(T(K))return p.set(j,!0),!0;const Y=j.valueDeclaration.getSourceFile(),oe=M(Y.fileName,J);if(typeof oe>"u")return p.set(j,!0),!0;const se=v(oe)||v(K);return p.set(j,se),se}function B(j,J){if(!d.length)return!0;if(!E)E=new Map;else{const oe=E.get(j);if(oe!==void 0)return oe}const K=M(j.fileName,J);if(!K)return E.set(j,!0),!0;const Y=v(K);return E.set(j,Y),Y}function k(j){return!d.length||T(j)||am(j)||Nf(j)?!0:v(j)}function T(j){return!!(ph(t)&&a3.nodeCoreModules.has(j)&&(f===void 0&&(f=LX(t)),f))}function M(j,J){if(!j.includes("node_modules"))return;const K=$2.getNodeModulesPackageName(s.getCompilationSettings(),t,j,J,u);if(K&&!am(K)&&!Nf(K))return z(K)}function z(j){const J=bd(dM(j)).slice(1);return Na(J[0],"@")?`${J[0]}/${J[1]}`:J[0]}}function JIt(t){try{return JSON.parse(t)}catch{return}}function LX(t){return qe(t.imports,({text:u})=>a3.nodeCoreModules.has(u))}function YH(t){return Ft(bd(t),"node_modules")}function Cfe(t){return t.file!==void 0&&t.start!==void 0&&t.length!==void 0}function BSe(t,u){const s=af(t),d=Ca(u,s,el,G$);if(d>=0){const f=u[d];return H.assertEqual(f.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Lo(f,Cfe)}}function wSe(t,u){var s;let d=Ca(u,t.start,E=>E.start,tl);for(d<0&&(d=~d);((s=u[d-1])==null?void 0:s.start)===t.start;)d--;const f=[],p=gc(t);for(;;){const E=ar(u[d],Cfe);if(!E||E.start>p)break;A2e(t,E)&&f.push(E),d++}return f}function i9({startPosition:t,endPosition:u}){return jc(t,u===void 0?t:u)}function bfe(t,u){const s=ba(t,u.start);return Ln(s,f=>f.getStart(t)gc(u)?"quit":Wt(f)&&aw(u,af(f,t)))}function yfe(t,u,s=el){return t?Ha(t)?s(Kt(t,u)):u(t,0):void 0}function kfe(t){return Ha(t)?Mn(t):t}function TSe(t,u){if(Lit(t)){const s=Nit(t);if(s)return s;const d=M1.moduleSymbolToValidIdentifier(LSe(t),u,!1),f=M1.moduleSymbolToValidIdentifier(LSe(t),u,!0);return d===f?d:[d,f]}return t.name}function NX(t,u,s){return Lit(t)?Nit(t)||M1.moduleSymbolToValidIdentifier(LSe(t),u,!!s):t.name}function Lit(t){return!(t.flags&33554432)&&(t.escapedName==="export="||t.escapedName==="default")}function Nit(t){return G(t.declarations,u=>{var s,d,f;return ec(u)?(s=ar(_c(u.expression),at))==null?void 0:s.text:X1(u)&&u.symbol.flags===2097152?(d=ar(u.propertyName,at))==null?void 0:d.text:(f=ar(qa(u),at))==null?void 0:f.text})}function LSe(t){var u;return H.checkDefined(t.parent,`Symbol parent was undefined. Flags: ${H.formatSymbolFlags(t.flags)}. Declarations: ${(u=t.declarations)==null?void 0:u.map(s=>{const d=H.formatSyntaxKind(s.kind),f=eu(s),{expression:p}=s;return(f?"[JS]":"")+d+(p?` (expression: ${H.formatSyntaxKind(p.kind)})`:"")}).join(", ")}.`)}function NSe(t,u,s){const d=u.length;if(d+s>t.length)return!1;for(let f=0;fEc(s)&&Zg(s))}function PX(t){return!!(Nse(t)&65536)}function MX(t,u){return G(t.imports,d=>{if(a3.nodeCoreModules.has(d.text))return Na(d.text,"node:")})??u.usesUriStyleNodeCoreModules}function QH(t){return t===` -`?1:0}function Rk(t){return Ha(t)?X_(Xa(t[0]),t.slice(1)):Xa(t)}function zX({options:t},u){const s=!t.semicolons||t.semicolons==="ignore",d=t.semicolons==="remove"||s&&!qH(u);return{...t,semicolons:d?"remove":"ignore"}}function Afe(t){return t===2||t===3}function HM(t,u){return t.isSourceFileFromExternalLibrary(u)||t.isSourceFileDefaultLibrary(u)}function IX(t,u){const s=new Set,d=new Set,f=new Set;for(const v of u)if(!BV(v)){const b=s0(v.expression);if(m2(b))switch(b.kind){case 15:case 11:s.add(b.text);break;case 9:d.add(parseInt(b.text));break;case 10:const B=fke(oc(b.text,"n")?b.text.slice(0,-1):b.text);B&&f.add(P2(B));break}else{const B=t.getSymbolAtLocation(v.expression);if(B&&B.valueDeclaration&&K2(B.valueDeclaration)){const k=t.getConstantValue(B.valueDeclaration);k!==void 0&&p(k)}}}return{addValue:p,hasValue:E};function p(v){switch(typeof v){case"string":s.add(v);break;case"number":d.add(v)}}function E(v){switch(typeof v){case"string":return s.has(v);case"number":return d.has(v);case"object":return f.has(P2(v))}}}function Sfe(t,u,s,d){var f;const p=typeof t=="string"?t:t.fileName;if(!N2(p))return!1;const E=u.getCompilerOptions(),v=f1(E),b=typeof t=="string"?vH(H0(t,s.getCurrentDirectory(),i5(s)),(f=u.getPackageJsonInfoCache)==null?void 0:f.call(u),s,E):t.impliedNodeFormat;if(b===99)return!1;if(b===1||E.verbatimModuleSyntax&&v===1)return!0;if(E.verbatimModuleSyntax&&$q(v))return!1;if(typeof t=="object"){if(t.commonJsModuleIndicator)return!0;if(t.externalModuleIndicator)return!1}return d}var ih,Bfe,Mit,RX,wfe,Tfe,zit,OX,Lfe,$It=o({"src/services/utilities.ts"(){or(),ih=ZD(99,!0),Bfe=(t=>(t[t.None=0]="None",t[t.Value=1]="Value",t[t.Type=2]="Type",t[t.Namespace=4]="Namespace",t[t.All=7]="All",t))(Bfe||{}),Mit=/^\/\/\/\s*(t[t.Single=0]="Single",t[t.Double=1]="Double",t))(wfe||{}),Tfe=RIt(),zit=` -`,OX="anonymous function",Lfe=lg(FSe,wit,Tit,FX)}});function Nfe(t){let u=1;const s=Bm(),d=new Map,f=new Map;let p;const E={isUsableByFile:z=>z===p,isEmpty:()=>!s.size,clear:()=>{s.clear(),d.clear(),p=void 0},add:(z,j,J,K,Y,oe,se,ge)=>{z!==p&&(E.clear(),p=z);let ae;if(Y){const Ae=dZ(Y.fileName);if(Ae){const{topLevelNodeModulesIndex:De,topLevelPackageNameIndex:He,packageRootIndex:Ge}=Ae;if(ae=oH(dM(Y.fileName.substring(He+1,Ge))),Na(z,Y.path.substring(0,De))){const ft=f.get(ae),Ze=Y.fileName.substring(0,He+1);if(ft){const je=ft.indexOf(a_);De>je&&f.set(ae,Ze)}else f.set(ae,Ze)}}}const ne=oe===1&&oB(j)||j,ve=oe===0||jH(ne)?Yr(J):TSe(ne,void 0),Se=typeof ve=="string"?ve:ve[0],Ne=typeof ve=="string"?void 0:ve[1],pe=G4(K.name),fe=u++,xe=Q1(j,ge),Be=j.flags&33554432?void 0:j,We=K.flags&33554432?void 0:K;(!Be||!We)&&d.set(fe,[j,K]),s.add(b(Se,j,Md(pe)?void 0:pe,ge),{id:fe,symbolTableKey:J,symbolName:Se,capitalizedSymbolName:Ne,moduleName:pe,moduleFile:Y,moduleFileName:Y==null?void 0:Y.fileName,packageName:ae,exportKind:oe,targetFlags:xe.flags,isFromPackageJson:se,symbol:Be,moduleSymbol:We})},get:(z,j)=>{if(z!==p)return;const J=s.get(j);return J==null?void 0:J.map(v)},search:(z,j,J,K)=>{if(z===p)return d1(s,(Y,oe)=>{const{symbolName:se,ambientModuleName:ge}=B(oe),ae=j&&Y[0].capitalizedSymbolName||se;if(J(ae,Y[0].targetFlags)){const ne=Y.map(v).filter((ve,Se)=>M(ve,Y[Se].packageName));if(ne.length){const ve=K(ne,ae,!!ge,oe);if(ve!==void 0)return ve}}})},releaseSymbols:()=>{d.clear()},onFileChanged:(z,j,J)=>k(z)&&k(j)?!1:p&&p!==j.path||J&&LX(z)!==LX(j)||!Hn(z.moduleAugmentations,j.moduleAugmentations)||!T(z,j)?(E.clear(),!0):(p=j.path,!1)};return H.isDebugging&&Object.defineProperty(E,"__cache",{value:s}),E;function v(z){if(z.symbol&&z.moduleSymbol)return z;const{id:j,exportKind:J,targetFlags:K,isFromPackageJson:Y,moduleFileName:oe}=z,[se,ge]=d.get(j)||_t;if(se&&ge)return{symbol:se,moduleSymbol:ge,moduleFileName:oe,exportKind:J,targetFlags:K,isFromPackageJson:Y};const ae=(Y?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),Ce=z.moduleSymbol||ge||H.checkDefined(z.moduleFile?ae.getMergedSymbol(z.moduleFile.symbol):ae.tryFindAmbientModule(z.moduleName)),ne=z.symbol||se||H.checkDefined(J===2?ae.resolveExternalModuleSymbol(Ce):ae.tryGetMemberInModuleExportsAndProperties(Yr(z.symbolTableKey),Ce),`Could not find symbol '${z.symbolName}' by key '${z.symbolTableKey}' in module ${Ce.name}`);return d.set(j,[ne,Ce]),{symbol:ne,moduleSymbol:Ce,moduleFileName:oe,exportKind:J,targetFlags:K,isFromPackageJson:Y}}function b(z,j,J,K){const Y=J||"";return`${z.length} ${qo(Q1(j,K))} ${z} ${Y}`}function B(z){const j=z.indexOf(" "),J=z.indexOf(" ",j+1),K=parseInt(z.substring(0,j),10),Y=z.substring(J+1),oe=Y.substring(0,K),se=Y.substring(K+1);return{symbolName:oe,ambientModuleName:se===""?void 0:se}}function k(z){return!z.commonJsModuleIndicator&&!z.externalModuleIndicator&&!z.moduleAugmentations&&!z.ambientModuleNames}function T(z,j){if(!Hn(z.ambientModuleNames,j.ambientModuleNames))return!1;let J=-1,K=-1;for(const Y of j.ambientModuleNames){const oe=se=>f0e(se)&&se.name.text===Y;if(J=$e(z.statements,oe,J+1),K=$e(j.statements,oe,K+1),z.statements[J]!==j.statements[K])return!1}return!0}function M(z,j){if(!j||!z.moduleFileName)return!0;const J=t.getGlobalTypingsCacheLocation();if(J&&Na(z.moduleFileName,J))return!0;const K=f.get(j);return!K||Na(z.moduleFileName,K)}}function Pfe(t,u,s,d,f,p,E){var v;if(u===s)return!1;const b=E==null?void 0:E.get(u.path,s.path,d,{});if((b==null?void 0:b.isBlockedByPackageJsonDependencies)!==void 0)return!b.isBlockedByPackageJsonDependencies;const B=i5(p),k=(v=p.getGlobalTypingsCacheLocation)==null?void 0:v.call(p),T=!!$2.forEachFileNameOfModule(u.fileName,s.fileName,p,!1,M=>{const z=t.getSourceFile(M);return(z===s||!z)&&UIt(u.fileName,M,B,k)});if(f){const M=T&&f.allowsImportingSourceFile(s,p);return E==null||E.setBlockedByPackageJsonDependencies(u.path,s.path,d,{},!M),M}return T}function UIt(t,u,s,d){const f=$g(u,E=>Fc(E)==="node_modules"?E:void 0),p=f&&dr(s(f));return p===void 0||Na(s(t),p)||!!d&&Na(s(d),p)}function Mfe(t,u,s,d,f){var p,E;const v=jj(u),b=s.autoImportFileExcludePatterns&&Ui(s.autoImportFileExcludePatterns,k=>{const T=kle(k,"","exclude");return T?Ox(T,v):void 0});Iit(t.getTypeChecker(),t.getSourceFiles(),b,(k,T)=>f(k,T,t,!1));const B=d&&((p=u.getPackageJsonAutoImportProvider)==null?void 0:p.call(u));if(B){const k=V0(),T=t.getTypeChecker();Iit(B.getTypeChecker(),B.getSourceFiles(),b,(M,z)=>{(z&&!t.getSourceFile(z.fileName)||!z&&!T.resolveName(M.name,void 0,1536,!1))&&f(M,z,B,!0)}),(E=u.log)==null||E.call(u,`forEachExternalModuleToImportFrom autoImportProvider: ${V0()-k}`)}}function Iit(t,u,s,d){var f;const p=s&&(E=>s.some(v=>v.test(E)));for(const E of t.getAmbientModules())!E.name.includes("*")&&!(s&&((f=E.declarations)!=null&&f.every(v=>p(v.getSourceFile().fileName))))&&d(E,void 0);for(const E of u)lm(E)&&!(p!=null&&p(E.fileName))&&d(t.getMergedSymbol(E.symbol),E)}function XH(t,u,s,d,f){var p,E,v,b,B;const k=V0();(p=u.getPackageJsonAutoImportProvider)==null||p.call(u);const T=((E=u.getCachedExportInfoMap)==null?void 0:E.call(u))||Nfe({getCurrentProgram:()=>s,getPackageJsonAutoImportProvider:()=>{var j;return(j=u.getPackageJsonAutoImportProvider)==null?void 0:j.call(u)},getGlobalTypingsCacheLocation:()=>{var j;return(j=u.getGlobalTypingsCacheLocation)==null?void 0:j.call(u)}});if(T.isUsableByFile(t.path))return(v=u.log)==null||v.call(u,"getExportInfoMap: cache hit"),T;(b=u.log)==null||b.call(u,"getExportInfoMap: cache miss or empty; calculating new results");const M=s.getCompilerOptions();let z=0;try{Mfe(s,u,d,!0,(j,J,K,Y)=>{++z%100===0&&(f==null||f.throwIfCancellationRequested());const oe=new Map,se=K.getTypeChecker(),ge=jX(j,se,M);ge&&Rit(ge.symbol,se)&&T.add(t.path,ge.symbol,ge.exportKind===1?"default":"export=",j,J,ge.exportKind,Y,se),se.forEachExportAndPropertyOfModule(j,(ae,Ce)=>{ae!==(ge==null?void 0:ge.symbol)&&Rit(ae,se)&&Pp(oe,Ce)&&T.add(t.path,ae,Ce,j,J,0,Y,se)})})}catch(j){throw T.clear(),j}return(B=u.log)==null||B.call(u,`getExportInfoMap: done in ${V0()-k} ms`),T}function jX(t,u,s){const d=qIt(t,u);if(!d)return;const{symbol:f,exportKind:p}=d,E=VX(f,u,s);return E&&{symbol:f,exportKind:p,...E}}function Rit(t,u){return!u.isUndefinedSymbol(t)&&!u.isUnknownSymbol(t)&&!Mj(t)&&!hye(t)}function qIt(t,u){const s=u.resolveExternalModuleSymbol(t);if(s!==t)return{symbol:s,exportKind:2};const d=u.tryGetMemberInModuleExports("default",t);if(d)return{symbol:d,exportKind:1}}function VX(t,u,s){const d=oB(t);if(d)return{resolvedSymbol:d,name:d.name};const f=ZIt(t);if(f!==void 0)return{resolvedSymbol:t,name:f};if(t.flags&2097152){const p=u.getImmediateAliasedSymbol(t);if(p&&p.parent)return VX(p,u,s)}return t.escapedName!=="default"&&t.escapedName!=="export="?{resolvedSymbol:t,name:t.getName()}:{resolvedSymbol:t,name:NX(t,s.target)}}function ZIt(t){return t.declarations&&G(t.declarations,u=>{var s;if(ec(u))return(s=ar(_c(u.expression),at))==null?void 0:s.text;if(X1(u))return H.assert(u.name.text==="default","Expected the specifier to be a default export"),u.propertyName&&u.propertyName.text})}var zfe,Ife,YIt=o({"src/services/exportInfoMap.ts"(){or(),zfe=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.CommonJS=3]="CommonJS",t))(zfe||{}),Ife=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",t))(Ife||{})}});function Oit(){const t=ZD(99,!1);function u(d,f,p){return eRt(s(d,f,p),d)}function s(d,f,p){let E=0,v=0;const b=[],{prefix:B,pushTemplate:k}=nRt(f);d=B+d;const T=B.length;k&&b.push(16),t.setText(d);let M=0;const z=[];let j=0;do{E=t.scan(),tB(E)||(J(),v=E);const K=t.getTokenEnd();if(XIt(t.getTokenStart(),K,T,aRt(E),z),K>=d.length){const Y=QIt(t,E,Yu(b));Y!==void 0&&(M=Y)}}while(E!==1);function J(){switch(E){case 44:case 69:!Kit[v]&&t.reScanSlashToken()===14&&(E=14);break;case 30:v===80&&j++;break;case 32:j>0&&j--;break;case 133:case 154:case 150:case 136:case 155:j>0&&!p&&(E=80);break;case 16:b.push(E);break;case 19:b.length>0&&b.push(E);break;case 20:if(b.length>0){const K=Yu(b);K===16?(E=t.reScanTemplateToken(!1),E===18?b.pop():H.assertEqual(E,17,"Should have been a template middle.")):(H.assertEqual(K,19,"Should have been an open brace"),b.pop())}break;default:if(!nf(E))break;(v===25||nf(v)&&nf(E)&&!iRt(v,E))&&(E=80)}}return{endOfLineState:M,spans:z}}return{getClassificationsForLine:u,getEncodedLexicalClassifications:s}}function QIt(t,u,s){switch(u){case 11:{if(!t.isUnterminated())return;const d=t.getTokenText(),f=d.length-1;let p=0;for(;d.charCodeAt(f-p)===92;)p++;return p&1?d.charCodeAt(0)===34?3:2:void 0}case 3:return t.isUnterminated()?1:void 0;default:if(Sx(u)){if(!t.isUnterminated())return;switch(u){case 18:return 5;case 15:return 4;default:return H.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+u)}}return s===16?6:void 0}}function XIt(t,u,s,d,f){if(d===8)return;t===0&&s>0&&(t+=s);const p=u-t;p>0&&f.push(t-s,p,d)}function eRt(t,u){const s=[],d=t.spans;let f=0;for(let E=0;E=0){const k=v-f;k>0&&s.push({length:k,classification:4})}s.push({length:b,classification:tRt(B)}),f=v+b}const p=u.length-f;return p>0&&s.push({length:p,classification:4}),{entries:s,finalLexState:t.endOfLineState}}function tRt(t){switch(t){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function iRt(t,u){if(!Zhe(t))return!0;switch(u){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function nRt(t){switch(t){case 3:return{prefix:`"\\ + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),dr),ze.flags=Xs,ze.enclosingDeclaration=L0}function $t(ai,Bu,dr){const nr=b4(ai),hr=sn(ai),Qs=Vt(hr,W1=>zt(W1,ze)),zo=Zc(nr),so=S(zo)?Ds(zo):void 0,ts=ju(n0(nr),W1=>BE(W1,so)),Xs=wE(0,nr,so,179),L0=wE(1,nr,so,180),$h=Jb(nr,so),K1=S(zo)?[q.createHeritageClause(96,qi(zo,W1=>nS(W1,111551)))]:void 0;yl(q.createInterfaceDeclaration(void 0,Zf(ai,Bu),Qs,K1,[...$h,...L0,...Xs,...ts]),dr)}function Mi(ai){const Bu=$f(ai);return Bu?ti(ga(Bu.values()),dr=>Qa(dr)&&Lm(dr.escapedName,99)):[]}function Bn(ai){return ye(Mi(ai),Bu=>!(O1(yc(Bu))&111551))}function Du(ai,Bu,dr){const nr=Mi(ai),hr=mO(nr,so=>so.parent&&so.parent===ai?"real":"merged"),Qs=hr.get("real")||_t,zo=hr.get("merged")||_t;if(S(Qs)){const so=Zf(ai,Bu);Br(Qs,so,dr,!!(ai.flags&67108880))}if(S(zo)){const so=zn(ze.enclosingDeclaration),ts=Zf(ai,Bu),Xs=q.createModuleBlock([q.createExportDeclaration(void 0,!1,q.createNamedExports(qi(ti(zo,L0=>L0.escapedName!=="export="),L0=>{var $h,K1;const W1=Yr(L0.escapedName),ml=Zf(L0,W1),y1=L0.declarations&&rp(L0);if(so&&(y1?so!==zn(y1):!Oe(L0.declarations,Yf=>zn(Yf)===so))){(K1=($h=ze.tracker)==null?void 0:$h.reportNonlocalAugmentation)==null||K1.call($h,so,ai,L0);return}const B3=y1&&E4(y1,!0);fl(B3||L0);const k1=B3?Zf(B3,Yr(B3.escapedName)):ml;return q.createExportSpecifier(!1,W1===k1?void 0:k1,W1)})))]);yl(q.createModuleDeclaration(void 0,q.createIdentifier(ts),Xs,32),0)}}function un(ai,Bu,dr){yl(q.createEnumDeclaration(q.createModifiersFromModifierFlags(pze(ai)?4096:0),Zf(ai,Bu),Vt(ti(n0(Wn(ai)),nr=>!!(nr.flags&8)),nr=>{const hr=nr.declarations&&nr.declarations[0]&&J2(nr.declarations[0])?Jze(nr.declarations[0]):void 0;return q.createEnumMember(Yr(nr.escapedName),hr===void 0?void 0:typeof hr=="string"?q.createStringLiteral(hr):q.createNumericLiteral(hr))})),dr)}function lu(ai,Bu,dr,nr){const hr=go(ai,0);for(const Qs of hr){const zo=Te(Qs,262,ze,{name:q.createIdentifier(dr),privateSymbolVisitor:fl,bundledImports:Yn});yl(Pt(zo,_r(Qs)),nr)}if(!(Bu.flags&1536&&Bu.exports&&Bu.exports.size)){const Qs=ti(n0(ai),Qa);Br(Qs,dr,nr,!0)}}function _r(ai){if(ai.declaration&&ai.declaration.parent){if(Xn(ai.declaration.parent)&&Xl(ai.declaration.parent)===5)return ai.declaration.parent;if(na(ai.declaration.parent)&&ai.declaration.parent.parent)return ai.declaration.parent.parent}return ai.declaration}function Br(ai,Bu,dr,nr){if(S(ai)){const Qs=mO(ai,ml=>!S(ml.declarations)||Oe(ml.declarations,y1=>zn(y1)===zn(ze.enclosingDeclaration))?"local":"remote").get("local")||_t;let zo=a_.createModuleDeclaration(void 0,q.createIdentifier(Bu),q.createModuleBlock([]),32);ks(zo,Mr),zo.locals=Vo(ai),zo.symbol=ai[0].parent;const so=Ou;Ou=[];const ts=yi;yi=!1;const Xs={...ze,enclosingDeclaration:zo},L0=ze;ze=Xs,cs(Vo(Qs),nr,!0),ze=L0,yi=ts;const $h=Ou;Ou=so;const K1=Vt($h,ml=>tc(ml)&&!ml.isExportEquals&&at(ml.expression)?q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,ml.expression,q.createIdentifier("default"))])):ml),W1=ye(K1,ml=>Yu(ml,32))?Vt(K1,La):K1;zo=q.updateModuleDeclaration(zo,zo.modifiers,zo.name,q.createModuleBlock(W1)),yl(zo,dr)}}function Qa(ai){return!!(ai.flags&2887656)||!(ai.flags&4194304||ai.escapedName==="prototype"||ai.valueDeclaration&&No(ai.valueDeclaration)&&mr(ai.valueDeclaration.parent))}function Oo(ai){const Bu=qi(ai,dr=>{const nr=ze.enclosingDeclaration;ze.enclosingDeclaration=dr;let hr=dr.expression;if(ec(hr)){if(at(hr)&&fu(hr)==="")return Qs(void 0);let zo;if({introducesError:zo,node:hr}=kc(hr,ze,fl),zo)return Qs(void 0)}return Qs(q.createExpressionWithTypeArguments(hr,Vt(dr.typeArguments,zo=>el(ze,zo,fl,Yn)||C(Ar(zo),ze))));function Qs(zo){return ze.enclosingDeclaration=nr,zo}});if(Bu.length===ai.length)return Bu}function Wo(ai,Bu,dr){var nr,hr;const Qs=(nr=ai.declarations)==null?void 0:nr.find(mr),zo=ze.enclosingDeclaration;ze.enclosingDeclaration=Qs||zo;const so=sn(ai),ts=Vt(so,LE=>zt(LE,ze)),Xs=xm(b4(ai)),L0=Zc(Xs),$h=Qs&&iB(Qs),K1=$h&&Oo($h)||qi(_D(Xs),BD),W1=Wn(ai),ml=!!((hr=W1.symbol)!=null&&hr.valueDeclaration)&&mr(W1.symbol.valueDeclaration),y1=ml?qc(W1):me,B3=[...S(L0)?[q.createHeritageClause(96,Vt(L0,LE=>xT(LE,y1,Bu)))]:[],...S(K1)?[q.createHeritageClause(119,K1)]:[]],k1=i0i(Xs,L0,n0(Xs)),Yf=ti(k1,LE=>{const $z=LE.valueDeclaration;return!!$z&&!(mh($z)&&Xr($z.name))}),TE=Oe(k1,LE=>{const $z=LE.valueDeclaration;return!!$z&&mh($z)&&Xr($z.name)})?[q.createPropertyDeclaration(void 0,q.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:_t,L6=ju(Yf,LE=>Er(LE,!1,L0[0])),N6=ju(ti(n0(W1),LE=>!(LE.flags&4194304)&&LE.escapedName!=="prototype"&&!Qa(LE)),LE=>Er(LE,!0,y1)),_ci=!ml&&!!ai.valueDeclaration&&Qn(ai.valueDeclaration)&&!Oe(go(W1,1))?[q.createConstructorDeclaration(q.createModifiersFromModifierFlags(2),[],void 0)]:wE(1,W1,y1,176),Dci=Jb(Xs,L0[0]);ze.enclosingDeclaration=zo,yl(Pt(q.createClassDeclaration(void 0,Bu,ts,B3,[...Dci,...N6,..._ci,...L6,...TE]),ai.declarations&&ti(ai.declarations,LE=>Wc(LE)||Xd(LE))[0]),dr)}function xr(ai){return G(ai,Bu=>{if(bf(Bu)||eh(Bu))return fu(Bu.propertyName||Bu.name);if(Xn(Bu)||tc(Bu)){const dr=tc(Bu)?Bu.expression:Bu.right;if(Iu(dr))return fu(dr.name)}if(sC(Bu)){const dr=Za(Bu);if(dr&&at(dr))return fu(dr)}})}function mo(ai,Bu,dr){var nr,hr,Qs,zo,so;const ts=rp(ai);if(!ts)return H.fail();const Xs=Ks(E4(ts,!0));if(!Xs)return;let L0=$N(Xs)&&xr(ai.declarations)||Yr(Xs.escapedName);L0==="export="&&pe&&(L0="default");const $h=Zf(Xs,L0);switch(fl(Xs),ts.kind){case 208:if(((hr=(nr=ts.parent)==null?void 0:nr.parent)==null?void 0:hr.kind)===260){const ml=_n(Xs.parent||Xs,ze),{propertyName:y1}=ts;yl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamedImports([q.createImportSpecifier(!1,y1&&at(y1)?q.createIdentifier(fu(y1)):void 0,q.createIdentifier(Bu))])),q.createStringLiteral(ml),void 0),0);break}H.failBadSyntaxKind(((Qs=ts.parent)==null?void 0:Qs.parent)||ts,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((so=(zo=ts.parent)==null?void 0:zo.parent)==null?void 0:so.kind)===226&&es(Yr(ai.escapedName),$h);break;case 260:if(Iu(ts.initializer)){const ml=ts.initializer,y1=q.createUniqueName(Bu),B3=_n(Xs.parent||Xs,ze);yl(q.createImportEqualsDeclaration(void 0,!1,y1,q.createExternalModuleReference(q.createStringLiteral(B3))),0),yl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(Bu),q.createQualifiedName(y1,ml.name)),dr);break}case 271:if(Xs.escapedName==="export="&&Oe(Xs.declarations,ml=>la(ml)&&W4(ml))){T0(ai);break}const K1=!(Xs.flags&512)&&!na(ts);yl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(Bu),K1?ka(Xs,ze,67108863,!1):q.createExternalModuleReference(q.createStringLiteral(_n(Xs,ze)))),K1?dr:0);break;case 270:yl(q.createNamespaceExportDeclaration(fu(ts.name)),0);break;case 273:{const ml=_n(Xs.parent||Xs,ze),y1=Yn?q.createStringLiteral(ml):ts.parent.moduleSpecifier;yl(q.createImportDeclaration(void 0,q.createImportClause(!1,q.createIdentifier(Bu),void 0),y1,ts.parent.attributes),0);break}case 274:{const ml=_n(Xs.parent||Xs,ze),y1=Yn?q.createStringLiteral(ml):ts.parent.parent.moduleSpecifier;yl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamespaceImport(q.createIdentifier(Bu))),y1,ts.parent.attributes),0);break}case 280:yl(q.createExportDeclaration(void 0,!1,q.createNamespaceExport(q.createIdentifier(Bu)),q.createStringLiteral(_n(Xs,ze))),0);break;case 276:{const ml=_n(Xs.parent||Xs,ze),y1=Yn?q.createStringLiteral(ml):ts.parent.parent.parent.moduleSpecifier;yl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamedImports([q.createImportSpecifier(!1,Bu!==L0?q.createIdentifier(L0):void 0,q.createIdentifier(Bu))])),y1,ts.parent.parent.parent.attributes),0);break}case 281:const W1=ts.parent.parent.moduleSpecifier;es(Yr(ai.escapedName),W1?L0:$h,W1&&t0(W1)?q.createStringLiteral(W1.text):void 0);break;case 277:T0(ai);break;case 226:case 211:case 212:ai.escapedName==="default"||ai.escapedName==="export="?T0(ai):es(Bu,$h);break;default:return H.failBadSyntaxKind(ts,"Unhandled alias declaration kind in symbol serializer!")}}function es(ai,Bu,dr){yl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,ai!==Bu?Bu:void 0,ai)]),dr),0)}function T0(ai){var Bu;if(ai.flags&4194304)return!1;const dr=Yr(ai.escapedName),nr=dr==="export=",Qs=nr||dr==="default",zo=ai.declarations&&rp(ai),so=zo&&E4(zo,!0);if(so&&S(so.declarations)&&Oe(so.declarations,ts=>zn(ts)===zn(Mr))){const ts=zo&&(tc(zo)||Xn(zo)?K0e(zo):fye(zo)),Xs=ts&&ec(ts)?g0i(ts):void 0,L0=Xs&&R0(Xs,67108863,!0,!0,Mr);(L0||so)&&fl(L0||so);const $h=ze.tracker.disableTrackSymbol;if(ze.tracker.disableTrackSymbol=!0,Qs)Ou.push(q.createExportAssignment(void 0,nr,ah(so,ze,67108863)));else if(Xs===ts&&Xs)es(dr,fu(Xs));else if(ts&&Xd(ts))es(dr,Zf(so,lc(so)));else{const K1=zC(dr,ai);yl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(K1),ka(so,ze,67108863,!1)),0),es(dr,K1)}return ze.tracker.disableTrackSymbol=$h,!0}else{const ts=zC(dr,ai),Xs=vm(Wn(Ks(ai)));if(Gs(Xs,ai))lu(Xs,ai,ts,Qs?0:32);else{const L0=((Bu=ze.enclosingDeclaration)==null?void 0:Bu.kind)===267&&(!(ai.flags&98304)||ai.flags&65536)?1:2,$h=q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ts,void 0,ad(ze,Xs,ai,Mr,fl,Yn))],L0));yl($h,so&&so.flags&4&&so.escapedName==="export="?128:dr===ts?32:0)}return Qs?(Ou.push(q.createExportAssignment(void 0,nr,q.createIdentifier(ts))),!0):dr!==ts?(es(dr,ts),!0):!1}}function Gs(ai,Bu){const dr=zn(ze.enclosingDeclaration);return Gu(ai)&48&&!S(kh(ai))&&!O9(ai)&&!!(S(ti(n0(ai),Qa))||S(go(ai,0)))&&!S(go(ai,1))&&!$n(Bu,Mr)&&!(ai.symbol&&Oe(ai.symbol.declarations,nr=>zn(nr)!==dr))&&!Oe(n0(ai),nr=>XK(nr.escapedName))&&!Oe(n0(ai),nr=>Oe(nr.declarations,hr=>zn(hr)!==dr))&&ye(n0(ai),nr=>Lm(lc(nr),Ce)?nr.flags&98304?E6(nr)===mF(nr):!0:!1)}function Hd(ai,Bu,dr){return function(hr,Qs,zo){var so,ts,Xs,L0,$h;const K1=l4(hr),W1=!!(K1&2);if(Qs&&hr.flags&2887656)return[];if(hr.flags&4194304||hr.escapedName==="constructor"||zo&&qo(zo,hr.escapedName)&&Ng(qo(zo,hr.escapedName))===Ng(hr)&&(hr.flags&16777216)===(qo(zo,hr.escapedName).flags&16777216)&&CD(Wn(hr),he(zo,hr.escapedName)))return[];const ml=K1&-1025|(Qs?256:0),y1=Kn(hr,ze),B3=(so=hr.declarations)==null?void 0:so.find(dg(ko,wx,na,Mm,Xn,Iu));if(hr.flags&98304&&dr){const k1=[];if(hr.flags&65536){const Yf=hr.declarations&&L(hr.declarations,TE=>{if(TE.kind===178)return TE;if(Mo(TE)&&rk(TE))return L(TE.arguments[2].properties,L6=>{const N6=Za(L6);if(N6&&at(N6)&&fu(N6)==="set")return L6})});H.assert(!!Yf);const uS=$0(Yf)?dp(Yf).parameters[0]:void 0;k1.push(Pt(q.createSetAccessorDeclaration(q.createModifiersFromModifierFlags(ml),y1,[q.createParameterDeclaration(void 0,void 0,uS?dn(uS,gi(uS),ze):"value",void 0,W1?void 0:ad(ze,Wn(hr),hr,Mr,fl,Yn))],void 0),((ts=hr.declarations)==null?void 0:ts.find(e5))||B3))}if(hr.flags&32768){const Yf=K1&2;k1.push(Pt(q.createGetAccessorDeclaration(q.createModifiersFromModifierFlags(ml),y1,[],Yf?void 0:ad(ze,Wn(hr),hr,Mr,fl,Yn),void 0),((Xs=hr.declarations)==null?void 0:Xs.find(Lx))||B3))}return k1}else if(hr.flags&98311)return Pt(ai(q.createModifiersFromModifierFlags((Ng(hr)?8:0)|ml),y1,hr.flags&16777216?q.createToken(58):void 0,W1?void 0:ad(ze,mF(hr),hr,Mr,fl,Yn),void 0),((L0=hr.declarations)==null?void 0:L0.find(dg(ko,na)))||B3);if(hr.flags&8208){const k1=Wn(hr),Yf=go(k1,0);if(ml&2)return Pt(ai(q.createModifiersFromModifierFlags((Ng(hr)?8:0)|ml),y1,hr.flags&16777216?q.createToken(58):void 0,void 0,void 0),(($h=hr.declarations)==null?void 0:$h.find($0))||Yf[0]&&Yf[0].declaration||hr.declarations&&hr.declarations[0]);const uS=[];for(const TE of Yf){const L6=Te(TE,Bu,ze,{name:y1,questionToken:hr.flags&16777216?q.createToken(58):void 0,modifiers:ml?q.createModifiersFromModifierFlags(ml):void 0}),N6=TE.declaration&&kj(TE.declaration.parent)?TE.declaration.parent:TE.declaration;uS.push(Pt(L6,N6))}return uS}return H.fail(`Unhandled class member kind! ${hr.__debugFlags||hr.flags}`)}}function BE(ai,Bu){return fr(ai,!1,Bu)}function wE(ai,Bu,dr,nr){const hr=go(Bu,ai);if(ai===1){if(!dr&&ye(hr,so=>S(so.parameters)===0))return[];if(dr){const so=go(dr,1);if(!S(so)&&ye(hr,ts=>S(ts.parameters)===0))return[];if(so.length===hr.length){let ts=!1;for(let Xs=0;XsC(hr,ze)),nr=ah(ai.target.symbol,ze,788968)):ai.symbol&&Ht(ai.symbol,Mr,Bu)&&(nr=ah(ai.symbol,ze,788968)),nr)return q.createExpressionWithTypeArguments(nr,dr)}function BD(ai){const Bu=nS(ai,788968);if(Bu)return Bu;if(ai.symbol)return q.createExpressionWithTypeArguments(ah(ai.symbol,ze,788968),void 0)}function zC(ai,Bu){var dr,nr;const hr=Bu?Zo(Bu):void 0;if(hr&&ze.remappedSymbolNames.has(hr))return ze.remappedSymbolNames.get(hr);Bu&&(ai=Sie(Bu,ai));let Qs=0;const zo=ai;for(;(dr=ze.usedSymbolNames)!=null&&dr.has(ai);)Qs++,ai=`${zo}_${Qs}`;return(nr=ze.usedSymbolNames)==null||nr.add(ai),hr&&ze.remappedSymbolNames.set(hr,ai),ai}function Sie(ai,Bu){if(Bu==="default"||Bu==="__class"||Bu==="__function"){const dr=ze.flags;ze.flags|=16777216;const nr=__(ai,ze);ze.flags=dr,Bu=nr.length>0&&_j(nr.charCodeAt(0))?$4(nr):nr}return Bu==="default"?Bu="_default":Bu==="export="&&(Bu="_exports"),Bu=Lm(Bu,Ce)&&!m7(Bu)?Bu:"_"+Bu.replace(/[^a-zA-Z0-9]/g,"_"),Bu}function Zf(ai,Bu){const dr=Zo(ai);return ze.remappedSymbolNames.has(dr)?ze.remappedSymbolNames.get(dr):(Bu=Sie(ai,Bu),ze.remappedSymbolNames.set(dr,Bu),Bu)}}}function E_(l,m,D=16384,C){return C?A(C).getText():GN(A);function A(w){const I=q.createTypePredicateNode(l.kind===2||l.kind===3?q.createToken(131):void 0,l.kind===1||l.kind===3?q.createIdentifier(l.parameterName):q.createThisTypeNode(),l.type&&Yt.typeToTypeNode(l.type,m,DC(D)|70221824|512)),U=X2(),Z=m&&zn(m);return U.writeNode(4,I,Z,w),w}}function M5(l){const m=[];let D=0;for(let C=0;CZa(I)?I:void 0);const w=A&&Za(A);if(A&&w){if(Mo(A)&&rk(A))return lc(l);if(Ps(w)&&!(Gl(l)&4096)){const I=Ur(l).nameType;if(I&&I.flags&384){const U=hz(l,m);if(U!==void 0)return U}}return b0(w)}if(A||(A=l.declarations[0]),A.parent&&A.parent.kind===260)return b0(A.parent.name);switch(A.kind){case 231:case 218:case 219:return m&&!m.encounteredError&&!(m.flags&131072)&&(m.encounteredError=!0),A.kind===231?"(Anonymous class)":"(Anonymous function)"}}const C=hz(l,m);return C!==void 0?C:lc(l)}function pD(l){if(l){const D=ar(l);return D.isVisible===void 0&&(D.isVisible=!!m()),D.isVisible}return!1;function m(){switch(l.kind){case 345:case 353:case 347:return!!(l.parent&&l.parent.parent&&l.parent.parent.parent&&la(l.parent.parent.parent));case 208:return pD(l.parent.parent);case 260:if(So(l.name)&&!l.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(v2(l))return!0;const D=dF(l);return!(f_e(l)&32)&&!(l.kind!==271&&D.kind!==312&&D.flags&33554432)?pE(D):pD(D);case 172:case 171:case 177:case 178:case 174:case 173:if(Rf(l,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return pD(l.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function qw(l,m){let D;l.parent&&l.parent.kind===277?D=uc(l,l.escapedText,2998271,void 0,l,!1):l.parent.kind===281&&(D=Db(l.parent,2998271));let C,A;return D&&(A=new Set,A.add(Zo(D)),w(D.declarations)),C;function w(I){L(I,U=>{const Z=A9(U)||U;if(m?ar(U).isVisible=!0:(C=C||[],xa(C,Z)),U8(U)){const ce=U.moduleReference,Fe=hm(ce),Te=uc(U,Fe.escapedText,901119,void 0,void 0,!1);Te&&A&&r0(A,Zo(Te))&&w(Te.declarations)}})}}function D_(l,m){const D=xC(l,m);if(D>=0){const{length:C}=cD;for(let A=D;A=lb;D--){if(mte(cD[D],Gk[D]))return-1;if(cD[D]===l&&Gk[D]===m)return D}return-1}function mte(l,m){switch(m){case 0:return!!Ur(l).type;case 5:return!!ar(l).resolvedEnumType;case 2:return!!Ur(l).declaredType;case 1:return!!l.resolvedBaseConstructorType;case 3:return!!l.resolvedReturnType;case 4:return!!l.immediateBaseConstraint;case 6:return!!l.resolvedTypeArguments;case 7:return!!l.baseTypesResolved;case 8:return!!Ur(l).writeType;case 9:return ar(l).parameterInitializerContainsUndefined!==void 0}return H.assertNever(m)}function CE(){return cD.pop(),Gk.pop(),i6.pop()}function dF(l){return Tn(XE(l),m=>{switch(m.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function YK(l){const m=X0(cf(l));return m.typeParameters?R5(m,Vt(m.typeParameters,D=>me)):m}function he(l,m){const D=qo(l,m);return D?Wn(D):void 0}function Re(l,m){var D;let C;return he(l,m)||(C=(D=G9(l,m))==null?void 0:D.type)&&Vd(C,!0,!0)}function nt(l){return l&&(l.flags&1)!==0}function Nt(l){return l===Ot||!!(l.flags&1&&l.aliasSymbol)}function bi(l,m){if(m!==0)return gD(l,!1,m);const D=_u(l);return D&&Ur(D).type||gD(l,!1,m)}function en(l,m,D){if(l=Ic(l,Z=>!(Z.flags&98304)),l.flags&131072)return Ko;if(l.flags&1048576)return hl(l,Z=>en(Z,m,D));let C=er(Vt(m,j5));const A=[],w=[];for(const Z of n0(l)){const ce=yz(Z,8576);!ms(ce,C)&&!(l4(Z)&6)&&Oge(Z)?A.push(Z):w.push(ce)}if(Lb(l)||AC(C)){if(w.length&&(C=er([C,...w])),C.flags&131072)return l;const Z=Sei();return Z?aT(Z,[l,C]):Ot}const I=Vo();for(const Z of A)I.set(Z.escapedName,APe(Z,!1));const U=Ol(D,I,_t,_t,kh(l));return U.objectFlags|=4194304,U}function zu(l){return!!(l.flags&465829888)&&jl(Wh(l)||on,32768)}function Hr(l){const m=yE(l,zu)?hl(l,D=>D.flags&465829888?xD(D):D):l;return mp(m,524288)}function Lr(l,m){const D=gr(l);return D?w6(D,m):m}function gr(l){const m=fa(l);if(m&&Bj(m)&&m.flowNode){const D=_0(l);if(D){const C=Pt(a_.createStringLiteral(D),l),A=Df(m)?m:a_.createParenthesizedExpression(m),w=Pt(a_.createElementAccessExpression(A,C),l);return ks(C,w),ks(w,l),A!==m&&ks(A,w),w.flowNode=m.flowNode,w}}}function fa(l){const m=l.parent.parent;switch(m.kind){case 208:case 303:return gr(m);case 209:return gr(l.parent);case 260:return m.initializer;case 226:return m.right}}function _0(l){const m=l.parent;return l.kind===208&&m.kind===206?qs(l.propertyName||l.name):l.kind===303||l.kind===304?qs(l.name):""+m.elements.indexOf(l)}function qs(l){const m=j5(l);return m.flags&384?""+m.value:void 0}function Ws(l){const m=l.dotDotDotToken?32:0,D=bi(l.parent.parent,m);return D&&v4(l,D,!1)}function v4(l,m,D){if(nt(m))return m;const C=l.parent;fe&&l.flags&33554432&&w2(l)?m=FD(m):fe&&C.parent.initializer&&!fp(Iht(C.parent.initializer),65536)&&(m=mp(m,524288));let A;if(C.kind===206)if(l.dotDotDotToken){if(m=Sg(m),m.flags&2||!Yte(m))return pt(l,F.Rest_types_may_only_be_created_from_object_types),Ot;const w=[];for(const I of C.elements)I.dotDotDotToken||w.push(I.propertyName||I.name);A=en(m,w,l.symbol)}else{const w=l.propertyName||l.name,I=j5(w),U=qf(m,I,32,w);A=Lr(l,U)}else{const w=G5(65|(l.dotDotDotToken?0:128),m,te,C),I=C.elements.indexOf(l);if(l.dotDotDotToken){const U=hl(m,Z=>Z.flags&58982400?xD(Z):Z);A=e4(U,xs)?hl(U,Z=>bz(Z,I)):V1(w)}else if(H5(m)){const U=wg(I),Z=32|(D||zz(l)?16:0),ce=b6(m,U,Z,l.name)||Ot;A=Lr(l,ce)}else A=w}return l.initializer?f1(S8(l))?fe&&!fp(wW(l,0),16777216)?Hr(A):A:_ze(l,er([Hr(A),wW(l,0)],2)):A}function qp(l){const m=vv(l);if(m)return Ar(m)}function f6(l){const m=l0(l,!0);return m.kind===106||m.kind===80&&Zp(m)===st}function b3(l){const m=l0(l,!0);return m.kind===209&&m.elements.length===0}function Vd(l,m=!1,D=!0){return fe&&D?S6(l,m):l}function gD(l,m,D){if(na(l)&&l.parent.parent.kind===249){const I=k_(HMe(ya(l.parent.parent.expression,D)));return I.flags&4456448?x1t(I):ct}if(na(l)&&l.parent.parent.kind===250){const I=l.parent.parent;return Cie(I)||me}if(So(l.parent))return Ws(l);const C=ko(l)&&!eE(l)||Mm(l)||vFe(l),A=m&&PP(l),w=dt(l);if(f0e(l))return w?nt(w)||w===on?w:Ot:Ke?on:me;if(w)return Vd(w,C,A);if((Ae||Qn(l))&&na(l)&&!So(l.name)&&!(f_e(l)&32)&&!(l.flags&33554432)){if(!(Gb(l)&6)&&(!l.initializer||f6(l.initializer)))return ni;if(l.initializer&&b3(l.initializer))return Nc}if(io(l)){const I=l.parent;if(I.kind===178&&iT(I)){const ce=Sl(_u(l.parent),177);if(ce){const Fe=dp(ce),Te=Qze(I);return Te&&l===Te?(H.assert(!Te.type),Wn(Fe.thisParameter)):Zs(Fe)}}const U=eei(I,l);if(U)return U;const Z=l.symbol.escapedName==="this"?nft(I):uft(l);if(Z)return Vd(Z,!1,A)}if(Qy(l)&&l.initializer){if(Qn(l)&&!io(l)){const U=gz(l,_u(l),xj(l));if(U)return U}const I=_ze(l,wW(l,D));return Vd(I,C,A)}if(ko(l)&&(Ae||Qn(l)))if(Kc(l)){const I=ti(l.parent.members,zl),U=I.length?pte(l.symbol,I):Eh(l)&128?tEe(l.symbol):void 0;return U&&Vd(U,!0,A)}else{const I=Up(l.parent),U=I?pz(l.symbol,I):Eh(l)&128?tEe(l.symbol):void 0;return U&&Vd(U,!0,A)}if(oE(l))return du;if(So(l.name))return V9(l.name,!1,!0)}function fz(l){if(l.valueDeclaration&&Xn(l.valueDeclaration)){const m=Ur(l);return m.isConstructorDeclaredProperty===void 0&&(m.isConstructorDeclaredProperty=!1,m.isConstructorDeclaredProperty=!!Yw(l)&&ye(l.declarations,D=>Xn(D)&&kEe(D)&&(D.left.kind!==212||Pm(D.left.argumentExpression))&&!C4(void 0,D,l,D))),m.isConstructorDeclaredProperty}return!1}function Zw(l){const m=l.valueDeclaration;return m&&ko(m)&&!f1(m)&&!m.initializer&&(Ae||Qn(m))}function Yw(l){if(l.declarations)for(const m of l.declarations){const D=tf(m,!1,!1);if(D&&(D.kind===176||AE(D)))return D}}function mz(l){const m=zn(l.declarations[0]),D=Yr(l.escapedName),C=l.declarations.every(w=>Qn(w)&&I0(w)&&Y_(w.expression)),A=C?q.createPropertyAccessExpression(q.createPropertyAccessExpression(q.createIdentifier("module"),q.createIdentifier("exports")),D):q.createPropertyAccessExpression(q.createIdentifier("exports"),D);return C&&ks(A.expression.expression,A.expression),ks(A.expression,A),ks(A,m),A.flowNode=m.endFlowNode,w6(A,ni,te)}function pte(l,m){const D=Pa(l.escapedName,"__#")?q.createPrivateIdentifier(l.escapedName.split("@")[1]):Yr(l.escapedName);for(const C of m){const A=q.createPropertyAccessExpression(q.createThis(),D);ks(A.expression,A),ks(A,C),A.flowNode=C.returnFlowNode;const w=Ym(A,l);if(Ae&&(w===ni||w===Nc)&&pt(l.valueDeclaration,F.Member_0_implicitly_has_an_1_type,Fr(l),gn(w)),!e4(w,tie))return RW(w)}}function pz(l,m){const D=Pa(l.escapedName,"__#")?q.createPrivateIdentifier(l.escapedName.split("@")[1]):Yr(l.escapedName),C=q.createPropertyAccessExpression(q.createThis(),D);ks(C.expression,C),ks(C,m),C.flowNode=m.returnFlowNode;const A=Ym(C,l);return Ae&&(A===ni||A===Nc)&&pt(l.valueDeclaration,F.Member_0_implicitly_has_an_1_type,Fr(l),gn(A)),e4(A,tie)?void 0:RW(A)}function Ym(l,m){const D=(m==null?void 0:m.valueDeclaration)&&(!Zw(m)||Eh(m.valueDeclaration)&128)&&tEe(m)||te;return w6(l,ni,D)}function ED(l,m){const D=l7(l.valueDeclaration);if(D){const U=Qn(D)?xv(D):void 0;return U&&U.typeExpression?Ar(U.typeExpression):l.valueDeclaration&&gz(l.valueDeclaration,l,D)||Ib(Rc(D))}let C,A=!1,w=!1;if(fz(l)&&(C=pz(l,Yw(l))),!C){let U;if(l.declarations){let Z;for(const ce of l.declarations){const Fe=Xn(ce)||Mo(ce)?ce:I0(ce)?Xn(ce.parent)?ce.parent:ce:void 0;if(!Fe)continue;const Te=I0(Fe)?yj(Fe):Xl(Fe);(Te===4||Xn(Fe)&&kEe(Fe,Te))&&(Mc(Fe)?A=!0:w=!0),Mo(Fe)||(Z=C4(Z,Fe,l,ce)),Z||(U||(U=[])).push(Xn(Fe)||Mo(Fe)?Qw(l,m,Fe,Te):Ku)}C=Z}if(!C){if(!S(U))return Ot;let Z=A&&l.declarations?m6(U,l.declarations):void 0;if(w){const Fe=tEe(l);Fe&&((Z||(Z=[])).push(Fe),A=!0)}const ce=Oe(Z,Fe=>!!(Fe.flags&-98305))?Z:U;C=er(ce)}}const I=vm(Vd(C,!1,w&&!A));return l.valueDeclaration&&Qn(l.valueDeclaration)&&Ic(I,U=>!!(U.flags&-98305))===Ku?(LC(l.valueDeclaration,me),me):I}function gz(l,m,D){var C,A;if(!Qn(l)||!D||!ys(D)||D.properties.length)return;const w=Vo();for(;Xn(l)||Iu(l);){const Z=Dm(l);(C=Z==null?void 0:Z.exports)!=null&&C.size&&mE(w,Z.exports),l=Xn(l)?l.parent:l.parent.parent}const I=Dm(l);(A=I==null?void 0:I.exports)!=null&&A.size&&mE(w,I.exports);const U=Ol(m,w,_t,_t,_t);return U.objectFlags|=4096,U}function C4(l,m,D,C){var A;const w=f1(m.parent);if(w){const I=vm(Ar(w));if(l)!Nt(l)&&!Nt(I)&&!CD(l,I)&&a4t(void 0,l,C,I);else return I}if((A=D.parent)!=null&&A.valueDeclaration){const I=f1(D.parent.valueDeclaration);if(I){const U=qo(Ar(I),D.escapedName);if(U)return E6(U)}}return l}function Qw(l,m,D,C){if(Mo(D)){if(m)return Wn(m);const I=Rc(D.arguments[2]),U=he(I,"value");if(U)return U;const Z=he(I,"get");if(Z){const Fe=wF(Z);if(Fe)return Zs(Fe)}const ce=he(I,"set");if(ce){const Fe=wF(ce);if(Fe)return lze(Fe)}return me}if(Ms(D.left,D.right))return me;const A=C===1&&(Iu(D.left)||U0(D.left))&&(Y_(D.left.expression)||at(D.left.expression)&&uk(D.left.expression)),w=m?Wn(m):A?Jh(Rc(D.right)):Ib(Rc(D.right));if(w.flags&524288&&C===2&&l.escapedName==="export="){const I=Ag(w),U=Vo();qU(I.members,U);const Z=U.size;m&&!m.exports&&(m.exports=Vo()),(m||l).exports.forEach((Fe,Te)=>{var $e;const ut=U.get(Te);if(ut&&ut!==Fe&&!(Fe.flags&2097152))if(Fe.flags&111551&&ut.flags&111551){if(Fe.valueDeclaration&&ut.valueDeclaration&&zn(Fe.valueDeclaration)!==zn(ut.valueDeclaration)){const gi=Yr(Fe.escapedName),Wi=(($e=ur(ut.valueDeclaration,mh))==null?void 0:$e.name)||ut.valueDeclaration;Es(pt(Fe.valueDeclaration,F.Duplicate_identifier_0,gi),Su(Wi,F._0_was_also_declared_here,gi)),Es(pt(Wi,F.Duplicate_identifier_0,gi),Su(Fe.valueDeclaration,F._0_was_also_declared_here,gi))}const zt=Hs(Fe.flags|ut.flags,Te);zt.links.type=er([Wn(Fe),Wn(ut)]),zt.valueDeclaration=ut.valueDeclaration,zt.declarations=Hi(ut.declarations,Fe.declarations),U.set(Te,zt)}else U.set(Te,up(Fe,ut));else U.set(Te,Fe)});const ce=Ol(Z!==U.size?void 0:I.symbol,U,I.callSignatures,I.constructSignatures,I.indexInfos);if(Z===U.size&&(w.aliasSymbol&&(ce.aliasSymbol=w.aliasSymbol,ce.aliasTypeArguments=w.aliasTypeArguments),Gu(w)&4)){ce.aliasSymbol=w.symbol;const Fe=O0(w);ce.aliasTypeArguments=S(Fe)?Fe:void 0}return ce.objectFlags|=Gu(w)&4096,ce.symbol&&ce.symbol.flags&32&&w===b4(ce.symbol)&&(ce.objectFlags|=16777216),ce}return nEe(w)?(LC(D,ql),ql):w}function Ms(l,m){return Iu(l)&&l.expression.kind===110&&uM(m,D=>C1(l,D))}function Mc(l){const m=tf(l,!1,!1);return m.kind===176||m.kind===262||m.kind===218&&!kj(m.parent)}function m6(l,m){return H.assert(l.length===m.length),l.filter((D,C)=>{const A=m[C],w=Xn(A)?A:Xn(A.parent)?A.parent:void 0;return w&&Mc(w)})}function hF(l,m,D){if(l.initializer){const C=So(l.name)?V9(l.name,!0,!1):on;return Vd(_ze(l,wW(l,0,C)))}return So(l.name)?V9(l.name,m,D):(D&&!ke(l)&&LC(l,me),m?$i:me)}function gte(l,m,D){const C=Vo();let A,w=131200;L(l.elements,U=>{const Z=U.propertyName||U.name;if(U.dotDotDotToken){A=y_(ct,me,!1);return}const ce=j5(Z);if(!Y4(ce)){w|=512;return}const Fe=Q4(ce),Te=4|(U.initializer?16777216:0),$e=Hs(Te,Fe);$e.links.type=hF(U,m,D),$e.links.bindingElement=U,C.set($e.escapedName,$e)});const I=Ol(void 0,C,_t,_t,A?[A]:_t);return I.objectFlags|=w,m&&(I.pattern=l,I.objectFlags|=131072),I}function x_(l,m,D){const C=l.elements,A=qu(C),w=A&&A.kind===208&&A.dotDotDotToken?A:void 0;if(C.length===0||C.length===1&&w)return Ce>=2?u1t(me):ql;const I=Vt(C,Fe=>Fd(Fe)?me:hF(Fe,m,D)),U=Ze(C,Fe=>!(Fe===w||Fd(Fe)||zz(Fe)),C.length-1)+1,Z=Vt(C,(Fe,Te)=>Fe===w?4:Te>=U?2:1);let ce=Bg(I,Z);return m&&(ce=Odt(ce),ce.pattern=l,ce.objectFlags|=131072),ce}function V9(l,m=!1,D=!1){return l.kind===206?gte(l,m,D):x_(l,m,D)}function N(l,m){return ee(gD(l,!0,0),l,m)}function W(l){const m=Dm(l),D=gei(!1);return D&&m&&m===D}function ee(l,m,D){return l?(l.flags&4096&&W(m.parent)&&(l=SPe(m)),D&&hEe(m,l),l.flags&8192&&(js(m)||!m.type)&&l.symbol!==_u(m)&&(l=Xu),vm(l)):(l=io(m)&&m.dotDotDotToken?ql:me,D&&(ke(m)||LC(m,l)),l)}function ke(l){const m=XE(l),D=m.kind===169?m.parent:m;return Eie(D)}function dt(l){const m=f1(l);if(m)return Ar(m)}function Bi(l){let m=l.valueDeclaration;return m?(js(m)&&(m=S8(m)),io(m)?Uge(m.parent):!1):!1}function au(l){const m=Ur(l);if(!m.type){const D=za(l);return!m.type&&!Bi(l)&&(m.type=D),D}return m.type}function za(l){if(l.flags&4194304)return YK(l);if(l===ei)return me;if(l.flags&134217728&&l.valueDeclaration){const C=_u(zn(l.valueDeclaration)),A=Hs(C.flags,"exports");A.declarations=C.declarations?C.declarations.slice():[],A.parent=l,A.links.target=C,C.valueDeclaration&&(A.valueDeclaration=C.valueDeclaration),C.members&&(A.members=new Map(C.members)),C.exports&&(A.exports=new Map(C.exports));const w=Vo();return w.set("exports",A),Ol(l,w,_t,_t,_t)}H.assertIsDefined(l.valueDeclaration);const m=l.valueDeclaration;if(la(m)&&W4(m))return m.statements.length?vm(Ib(ya(m.statements[0].expression))):Ko;if(wx(m))return vC(l);if(!D_(l,0))return l.flags&512&&!(l.flags&67108864)?Ez(l):Xw(l);let D;if(m.kind===277)D=ee(dt(m)||Rc(m.expression),m);else if(Xn(m)||Qn(m)&&(Mo(m)||(Iu(m)||yq(m))&&Xn(m.parent)))D=ED(l);else if(Iu(m)||U0(m)||at(m)||t0(m)||Of(m)||Wc(m)||ed(m)||dc(m)&&!zp(m)||n3(m)||la(m)){if(l.flags&9136)return Ez(l);D=Xn(m.parent)?ED(l):dt(m)||me}else if(Jc(m))D=dt(m)||Lmt(m);else if(oE(m))D=dt(m)||gft(m);else if(pm(m))D=dt(m)||Oz(m.name,0);else if(zp(m))D=dt(m)||Nmt(m,0);else if(io(m)||ko(m)||Mm(m)||na(m)||js(m)||WO(m))D=N(m,!0);else if(Iv(m))D=Ez(l);else if(J2(m))D=xge(l);else return H.fail("Unhandled declaration kind! "+H.formatSyntaxKind(m.kind)+" for "+H.formatSymbol(l));return CE()?D:l.flags&512&&!(l.flags&67108864)?Ez(l):Xw(l)}function i0(l){if(l)switch(l.kind){case 177:return U4(l);case 178:return bye(l);case 172:return H.assert(eE(l)),f1(l)}}function Qm(l){const m=i0(l);return m&&Ar(m)}function p6(l){const m=Qze(l);return m&&m.symbol}function g6(l){return kC(dp(l))}function vC(l){const m=Ur(l);if(!m.type){if(!D_(l,0))return Ot;const D=Sl(l,177),C=Sl(l,178),A=ur(Sl(l,172),ef);let w=D&&Qn(D)&&qp(D)||Qm(D)||Qm(C)||Qm(A)||D&&D.body&&HEe(D)||A&&A.initializer&&N(A,!0);w||(C&&!Eie(C)?g4(Ae,C,F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Fr(l)):D&&!Eie(D)?g4(Ae,D,F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Fr(l)):A&&!Eie(A)&&g4(Ae,A,F.Member_0_implicitly_has_an_1_type,Fr(l),"any"),w=me),CE()||(i0(D)?pt(D,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Fr(l)):i0(C)||i0(A)?pt(C,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Fr(l)):D&&Ae&&pt(D,F._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,Fr(l)),w=me),m.type=w}return m.type}function Dge(l){const m=Ur(l);if(!m.writeType){if(!D_(l,8))return Ot;const D=Sl(l,178)??ur(Sl(l,172),ef);let C=Qm(D);CE()||(i0(D)&&pt(D,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Fr(l)),C=me),m.writeType=C||vC(l)}return m.writeType}function fF(l){const m=qc(b4(l));return m.flags&8650752?m:m.flags&2097152?Le(m.types,D=>!!(D.flags&8650752)):void 0}function Ez(l){let m=Ur(l);const D=m;if(!m.type){const C=l.valueDeclaration&&jEe(l.valueDeclaration,!1);if(C){const A=nze(l,C);A&&(l=A,m=A.links)}D.type=m.type=BNe(l)}return m.type}function BNe(l){const m=l.valueDeclaration;if(l.flags&1536&&$N(l))return me;if(m&&(m.kind===226||I0(m)&&m.parent.kind===226))return ED(l);if(l.flags&512&&m&&la(m)&&m.commonJsModuleIndicator){const C=_m(l);if(C!==l){if(!D_(l,0))return Ot;const A=Ks(l.exports.get("export=")),w=ED(A,A===C?void 0:C);return CE()?w:Xw(l)}}const D=D4(16,l);if(l.flags&32){const C=fF(l);return C?Ds([D,C]):D}else return fe&&l.flags&16777216?S6(D,!0):D}function xge(l){const m=Ur(l);return m.type||(m.type=udt(l))}function Ete(l){const m=Ur(l);if(!m.type){if(!D_(l,0))return Ot;const D=md(l),C=l.declarations&&E4(rp(l),!0),A=G(C==null?void 0:C.declarations,w=>tc(w)?dt(w):void 0);if(m.type=C!=null&&C.declarations&&u_e(C.declarations)&&l.declarations.length?mz(C):u_e(l.declarations)?ni:A||(O1(D)&111551?Wn(D):Ot),!CE())return Xw(C??l),m.type=Ot}return m.type}function wNe(l){const m=Ur(l);return m.type||(m.type=_a(Wn(m.target),m.mapper))}function vge(l){const m=Ur(l);return m.writeType||(m.writeType=_a(mF(m.target),m.mapper))}function Xw(l){const m=l.valueDeclaration;if(m){if(f1(m))return pt(l.valueDeclaration,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Fr(l)),Ot;Ae&&(m.kind!==169||m.initializer)&&pt(l.valueDeclaration,F._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Fr(l))}else if(l.flags&2097152){const D=rp(l);D&&pt(D,F.Circular_definition_of_import_alias_0,Fr(l))}return me}function Cge(l){const m=Ur(l);return m.type||(H.assertIsDefined(m.deferralParent),H.assertIsDefined(m.deferralConstituents),m.type=m.deferralParent.flags&1048576?er(m.deferralConstituents):Ds(m.deferralConstituents)),m.type}function TNe(l){const m=Ur(l);return!m.writeType&&m.deferralWriteConstituents&&(H.assertIsDefined(m.deferralParent),H.assertIsDefined(m.deferralConstituents),m.writeType=m.deferralParent.flags&1048576?er(m.deferralWriteConstituents):Ds(m.deferralWriteConstituents)),m.writeType}function mF(l){const m=Gl(l);return l.flags&4?m&2?m&65536?TNe(l)||Cge(l):l.links.writeType||l.links.type:B6(Wn(l),!!(l.flags&16777216)):l.flags&98304?m&1?vge(l):Dge(l):Wn(l)}function Wn(l){const m=Gl(l);return m&65536?Cge(l):m&1?wNe(l):m&262144?MXt(l):m&8192?qii(l):l.flags&7?au(l):l.flags&9136?Ez(l):l.flags&8?xge(l):l.flags&98304?vC(l):l.flags&2097152?Ete(l):Ot}function E6(l){return B6(Wn(l),!!(l.flags&16777216))}function CC(l,m){return l!==void 0&&m!==void 0&&(Gu(l)&4)!==0&&l.target===m}function eT(l){return Gu(l)&4?l.target:l}function H9(l,m){return D(l);function D(C){if(Gu(C)&7){const A=eT(C);return A===m||Oe(Zc(A),D)}else if(C.flags&2097152)return Oe(C.types,D);return!1}}function Sb(l,m){for(const D of m)l=e0(l,gF(_u(D)));return l}function _z(l,m){for(;;){if(l=l.parent,l&&Xn(l)){const D=Xl(l);if(D===6||D===3){const C=_u(l.left);C&&C.parent&&!Tn(C.parent.valueDeclaration,A=>l===A)&&(l=C.parent.valueDeclaration)}}if(!l)return;switch(l.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const C=_z(l,m);if(l.kind===200)return xi(C,gF(_u(l.typeParameter)));if(l.kind===194)return Hi(C,w1t(l));const A=Sb(C,Sx(l)),w=m&&(l.kind===263||l.kind===231||l.kind===264||AE(l))&&b4(_u(l)).thisType;return w?xi(A,w):A}case 348:const D=Tj(l);D&&(l=D.valueDeclaration);break;case 327:{const C=_z(l,m);return l.tags?Sb(C,ju(l.tags,A=>_g(A)?A.typeParameters:void 0)):C}}}}function Bb(l){var m;const D=l.flags&32||l.flags&16?l.valueDeclaration:(m=l.declarations)==null?void 0:m.find(C=>{if(C.kind===264)return!0;if(C.kind!==260)return!1;const A=C.initializer;return!!A&&(A.kind===218||A.kind===219)});return H.assert(!!D,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),_z(D)}function sn(l){if(!l.declarations)return;let m;for(const D of l.declarations)(D.kind===264||D.kind===263||D.kind===231||AE(D)||Sj(D))&&(m=Sb(m,Sx(D)));return m}function Qu(l){return Hi(Bb(l),sn(l))}function Hu(l){const m=go(l,1);if(m.length===1){const D=m[0];if(!D.typeParameters&&D.parameters.length===1&&th(D)){const C=lie(D.parameters[0]);return nt(C)||WPe(C)===me}}return!1}function Or(l){if(go(l,1).length>0)return!0;if(l.flags&8650752){const m=Wh(l);return!!m&&Hu(m)}return!1}function Vr(l){const m=tD(l.symbol);return m&&Qg(m)}function Rs(l,m,D){const C=S(m),A=Qn(D);return ti(go(l,1),w=>(A||C>=b_(w.typeParameters))&&C<=S(w.typeParameters))}function D0(l,m,D){const C=Rs(l,m,D),A=Vt(m,Ar);return Lu(C,w=>Oe(w.typeParameters)?rW(w,A,Qn(D)):w)}function qc(l){if(!l.resolvedBaseConstructorType){const m=tD(l.symbol),D=m&&Qg(m),C=Vr(l);if(!C)return l.resolvedBaseConstructorType=te;if(!D_(l,1))return Ot;const A=ya(C.expression);if(D&&C!==D&&(H.assert(!D.typeArguments),ya(D.expression)),A.flags&2621440&&Ag(A),!CE())return pt(l.symbol.valueDeclaration,F._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Fr(l.symbol)),l.resolvedBaseConstructorType=Ot;if(!(A.flags&1)&&A!==Ct&&!Or(A)){const w=pt(C.expression,F.Type_0_is_not_a_constructor_function_type,gn(A));if(A.flags&262144){const I=vz(A);let U=on;if(I){const Z=go(I,1);Z[0]&&(U=Zs(Z[0]))}A.symbol.declarations&&Es(w,Su(A.symbol.declarations[0],F.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Fr(A.symbol),gn(U)))}return l.resolvedBaseConstructorType=Ot}l.resolvedBaseConstructorType=A}return l.resolvedBaseConstructorType}function _D(l){let m=_t;if(l.symbol.declarations)for(const D of l.symbol.declarations){const C=iB(D);if(C)for(const A of C){const w=Ar(A);Nt(w)||(m===_t?m=[w]:m.push(w))}}return m}function v_(l,m){pt(l,F.Type_0_recursively_references_itself_as_a_base_type,gn(m,void 0,2))}function Zc(l){if(!l.baseTypesResolved){if(D_(l,7)&&(l.objectFlags&8?l.resolvedBaseTypes=[z5(l)]:l.symbol.flags&96?(l.symbol.flags&32&&QK(l),l.symbol.flags&64&&dXt(l)):H.fail("type must be class or interface"),!CE()&&l.symbol.declarations))for(const m of l.symbol.declarations)(m.kind===263||m.kind===264)&&v_(m,l);l.baseTypesResolved=!0}return l.resolvedBaseTypes}function z5(l){const m=Lu(l.typeParameters,(D,C)=>l.elementFlags[C]&8?qf(D,Qt):D);return V1(er(m||_t),l.readonly)}function QK(l){l.resolvedBaseTypes=_Z;const m=Gh(qc(l));if(!(m.flags&2621441))return l.resolvedBaseTypes=_t;const D=Vr(l);let C;const A=m.symbol?X0(m.symbol):void 0;if(m.symbol&&m.symbol.flags&32&&tT(A))C=jdt(D,m.symbol);else if(m.flags&1)C=m;else{const I=D0(m,D.typeArguments,D);if(!I.length)return pt(D.expression,F.No_base_constructor_has_the_specified_number_of_type_arguments),l.resolvedBaseTypes=_t;C=Zs(I[0])}if(Nt(C))return l.resolvedBaseTypes=_t;const w=Sg(C);if(!pF(w)){const I=$Ne(void 0,C),U=ro(I,F.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,gn(w));return Vs.add(Y3(zn(D.expression),D.expression,U)),l.resolvedBaseTypes=_t}return l===w||H9(w,l)?(pt(l.symbol.valueDeclaration,F.Type_0_recursively_references_itself_as_a_base_type,gn(l,void 0,2)),l.resolvedBaseTypes=_t):(l.resolvedBaseTypes===_Z&&(l.members=void 0),l.resolvedBaseTypes=[w])}function tT(l){const m=l.outerTypeParameters;if(m){const D=m.length-1,C=O0(l);return m[D].symbol!==C[D].symbol}return!0}function pF(l){if(l.flags&262144){const m=Wh(l);if(m)return pF(m)}return!!(l.flags&67633153&&!Xm(l)||l.flags&2097152&&ye(l.types,pF))}function dXt(l){if(l.resolvedBaseTypes=l.resolvedBaseTypes||_t,l.symbol.declarations){for(const m of l.symbol.declarations)if(m.kind===264&&rP(m))for(const D of rP(m)){const C=Sg(Ar(D));Nt(C)||(pF(C)?l!==C&&!H9(C,l)?l.resolvedBaseTypes===_t?l.resolvedBaseTypes=[C]:l.resolvedBaseTypes.push(C):v_(m,l):pt(D,F.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function hXt(l){if(!l.declarations)return!0;for(const m of l.declarations)if(m.kind===264){if(m.flags&256)return!1;const D=rP(m);if(D){for(const C of D)if(ec(C.expression)){const A=R0(C.expression,788968,!0);if(!A||!(A.flags&64)||b4(A).thisType)return!1}}}return!0}function b4(l){let m=Ur(l);const D=m;if(!m.declaredType){const C=l.flags&32?1:2,A=nze(l,l.valueDeclaration&&qri(l.valueDeclaration));A&&(l=A,m=A.links);const w=D.declaredType=m.declaredType=D4(C,l),I=Bb(l),U=sn(l);(I||U||C===1||!hXt(l))&&(w.objectFlags|=4,w.typeParameters=Hi(I,U),w.outerTypeParameters=I,w.localTypeParameters=U,w.instantiations=new Map,w.instantiations.set(hp(w.typeParameters),w),w.target=w,w.resolvedTypeArguments=w.typeParameters,w.thisType=j1(l),w.thisType.isThisType=!0,w.thisType.constraint=w)}return m.declaredType}function tdt(l){var m;const D=Ur(l);if(!D.declaredType){if(!D_(l,2))return Ot;const C=H.checkDefined((m=l.declarations)==null?void 0:m.find(Sj),"Type alias symbol with no valid declaration found"),A=G4(C)?C.typeExpression:C.type;let w=A?Ar(A):Ot;if(CE()){const I=sn(l);I&&(D.typeParameters=I,D.instantiations=new Map,D.instantiations.set(hp(I),w))}else w=Ot,C.kind===347?pt(C.typeExpression.type,F.Type_alias_0_circularly_references_itself,Fr(l)):pt(mh(C)&&C.name||C,F.Type_alias_0_circularly_references_itself,Fr(l));D.declaredType=w}return D.declaredType}function bge(l){return l.flags&1056&&l.symbol.flags&8?X0(cf(l.symbol)):l}function idt(l){const m=Ur(l);if(!m.declaredType){const D=[];if(l.declarations){for(const A of l.declarations)if(A.kind===266){for(const w of A.members)if(iT(w)){const I=_u(w),U=jW(w),Z=Z9(U!==void 0?wti(U,Zo(l),I):ndt(I));Ur(I).declaredType=Z,D.push(Jh(Z))}}}const C=D.length?er(D,1,l,void 0):ndt(l);C.flags&1048576&&(C.flags|=1024,C.symbol=l),m.declaredType=C}return m.declaredType}function ndt(l){const m=N5(32,l),D=N5(32,l);return m.regularType=m,m.freshType=D,D.regularType=m,D.freshType=D,m}function udt(l){const m=Ur(l);if(!m.declaredType){const D=idt(cf(l));m.declaredType||(m.declaredType=D)}return m.declaredType}function gF(l){const m=Ur(l);return m.declaredType||(m.declaredType=j1(l))}function fXt(l){const m=Ur(l);return m.declaredType||(m.declaredType=X0(md(l)))}function X0(l){return rdt(l)||Ot}function rdt(l){if(l.flags&96)return b4(l);if(l.flags&524288)return tdt(l);if(l.flags&262144)return gF(l);if(l.flags&384)return idt(l);if(l.flags&8)return udt(l);if(l.flags&2097152)return fXt(l)}function _te(l){switch(l.kind){case 133:case 159:case 154:case 150:case 163:case 136:case 155:case 151:case 116:case 157:case 146:case 201:return!0;case 188:return _te(l.elementType);case 183:return!l.typeArguments||l.typeArguments.every(_te)}return!1}function mXt(l){const m=w8(l);return!m||_te(m)}function adt(l){const m=f1(l);return m?_te(m):!Nx(l)}function pXt(l){const m=U4(l),D=Sx(l);return(l.kind===176||!!m&&_te(m))&&l.parameters.every(adt)&&D.every(mXt)}function gXt(l){if(l.declarations&&l.declarations.length===1){const m=l.declarations[0];if(m)switch(m.kind){case 172:case 171:return adt(m);case 174:case 173:case 176:case 177:case 178:return pXt(m)}}return!1}function odt(l,m,D){const C=Vo();for(const A of l)C.set(A.escapedName,D&&gXt(A)?A:wPe(A,m));return C}function sdt(l,m){for(const D of m){if(ldt(D))continue;const C=l.get(D.escapedName);(!C||C.valueDeclaration&&Xn(C.valueDeclaration)&&!fz(C)&&!Qbe(C.valueDeclaration))&&(l.set(D.escapedName,D),l.set(D.escapedName,D))}}function ldt(l){return!!l.valueDeclaration&&ph(l.valueDeclaration)&&No(l.valueDeclaration)}function LNe(l){if(!l.declaredProperties){const m=l.symbol,D=_6(m);l.declaredProperties=Ab(D),l.declaredCallSignatures=_t,l.declaredConstructSignatures=_t,l.declaredIndexInfos=_t,l.declaredCallSignatures=wb(D.get("__call")),l.declaredConstructSignatures=wb(D.get("__new")),l.declaredIndexInfos=zdt(m)}return l}function NNe(l){if(!Ps(l)&&!U0(l))return!1;const m=Ps(l)?l.expression:l.argumentExpression;return ec(m)&&Y4(Ps(l)?F3(l):Rc(m))}function XK(l){return l.charCodeAt(0)===95&&l.charCodeAt(1)===95&&l.charCodeAt(2)===64}function Dte(l){const m=Za(l);return!!m&&NNe(m)}function iT(l){return!Ix(l)||Dte(l)}function EXt(l){return Lq(l)&&!NNe(l)}function _Xt(l,m,D){H.assert(!!(Gl(l)&4096),"Expected a late-bound symbol."),l.flags|=D,Ur(m.symbol).lateSymbol=l,l.declarations?m.symbol.isReplaceableByMethod||l.declarations.push(m):l.declarations=[m],D&111551&&(!l.valueDeclaration||l.valueDeclaration.kind!==m.kind)&&(l.valueDeclaration=m)}function cdt(l,m,D,C){H.assert(!!C.symbol,"The member is expected to have a symbol.");const A=ar(C);if(!A.resolvedSymbol){A.resolvedSymbol=C.symbol;const w=Xn(C)?C.left:C.name,I=U0(w)?Rc(w.argumentExpression):F3(w);if(Y4(I)){const U=Q4(I),Z=C.symbol.flags;let ce=D.get(U);ce||D.set(U,ce=Hs(0,U,4096));const Fe=m&&m.get(U);if(!(l.flags&32)&&(ce.flags&eF(Z)||Fe)){const Te=Fe?Hi(Fe.declarations,ce.declarations):ce.declarations,$e=!(I.flags&8192)&&Yr(U)||b0(w);L(Te,ut=>pt(Za(ut)||ut,F.Property_0_was_also_declared_here,$e)),pt(w||C,F.Duplicate_property_0,$e),ce=Hs(0,U,4096)}return ce.links.nameType=I,_Xt(ce,C,Z),ce.parent?H.assert(ce.parent===l,"Existing symbol parent should match new one"):ce.parent=l,A.resolvedSymbol=ce}}return A.resolvedSymbol}function PNe(l,m){var D,C,A;const w=Ur(l);if(!w[m]){const I=m==="resolvedExports",U=I?l.flags&1536?R9(l).exports:l.exports:l.members;w[m]=U||se;const Z=Vo();for(const Te of l.declarations||_t){const $e=Wbe(Te);if($e)for(const ut of $e)I===Kc(ut)&&Dte(ut)&&cdt(l,U,Z,ut)}const ce=(((D=l.valueDeclaration)==null?void 0:D.kind)===219||((C=l.valueDeclaration)==null?void 0:C.kind)===218)&&((A=Dm(l.valueDeclaration.parent))==null?void 0:A.assignmentDeclarationMembers)||l.assignmentDeclarationMembers;if(ce){const Te=ga(ce.values());for(const $e of Te){const ut=Xl($e),zt=ut===3||Xn($e)&&kEe($e,ut)||ut===9||ut===6;I===!zt&&Dte($e)&&cdt(l,U,Z,$e)}}let Fe=tF(U,Z);if(l.flags&33554432&&w.cjsExportMerged&&l.declarations)for(const Te of l.declarations){const $e=Ur(Te.symbol)[m];if(!Fe){Fe=$e;continue}$e&&$e.forEach((ut,zt)=>{const gi=Fe.get(zt);if(!gi)Fe.set(zt,ut);else{if(gi===ut)return;Fe.set(zt,up(gi,ut))}})}w[m]=Fe||se}return w[m]}function _6(l){return l.flags&6256?PNe(l,"resolvedMembers"):l.members||se}function yge(l){if(l.flags&106500&&l.escapedName==="__computed"){const m=Ur(l);if(!m.lateSymbol&&Oe(l.declarations,Dte)){const D=Ks(l.parent);Oe(l.declarations,Kc)?$f(D):_6(D)}return m.lateSymbol||(m.lateSymbol=l)}return l}function xm(l,m,D){if(Gu(l)&4){const C=l.target,A=O0(l);return S(C.typeParameters)===S(A)?R5(C,Hi(A,[m||C.thisType])):l}else if(l.flags&2097152){const C=Lu(l.types,A=>xm(A,m,D));return C!==l.types?Ds(C):l}return D?Gh(l):l}function ddt(l,m,D,C){let A,w,I,U,Z;zi(D,C,0,D.length)?(w=m.symbol?_6(m.symbol):Vo(m.declaredProperties),I=m.declaredCallSignatures,U=m.declaredConstructSignatures,Z=m.declaredIndexInfos):(A=Sf(D,C),w=odt(m.declaredProperties,A,D.length===1),I=Kge(m.declaredCallSignatures,A),U=Kge(m.declaredConstructSignatures,A),Z=z1t(m.declaredIndexInfos,A));const ce=Zc(m);if(ce.length){if(m.symbol&&w===_6(m.symbol)){const Te=Vo();for(const $e of w.values())$e.flags&262144||Te.set($e.escapedName,$e);w=Te}x4(l,w,I,U,Z);const Fe=qu(C);for(const Te of ce){const $e=Fe?xm(_a(Te,A),Fe):Te;sdt(w,n0($e)),I=Hi(I,go($e,0)),U=Hi(U,go($e,1));const ut=$e!==me?kh($e):[y_(ct,me,!1)];Z=Hi(Z,ti(ut,zt=>!UNe(Z,zt.keyType)))}}x4(l,w,I,U,Z)}function DXt(l){ddt(l,LNe(l),_t,_t)}function xXt(l){const m=LNe(l.target),D=Hi(m.typeParameters,[m.thisType]),C=O0(l),A=C.length===D.length?C:Hi(C,[l]);ddt(l,m,D,A)}function y3(l,m,D,C,A,w,I,U){const Z=new B(Pi,U);return Z.declaration=l,Z.typeParameters=m,Z.parameters=C,Z.thisParameter=D,Z.resolvedReturnType=A,Z.resolvedTypePredicate=w,Z.minArgumentCount=I,Z.resolvedMinArgumentCount=void 0,Z.target=void 0,Z.mapper=void 0,Z.compositeSignatures=void 0,Z.compositeKind=void 0,Z}function eW(l){const m=y3(l.declaration,l.typeParameters,l.thisParameter,l.parameters,void 0,void 0,l.minArgumentCount,l.flags&167);return m.target=l.target,m.mapper=l.mapper,m.compositeSignatures=l.compositeSignatures,m.compositeKind=l.compositeKind,m}function hdt(l,m){const D=eW(l);return D.compositeSignatures=m,D.compositeKind=1048576,D.target=void 0,D.mapper=void 0,D}function vXt(l,m){if((l.flags&24)===m)return l;l.optionalCallSignatureCache||(l.optionalCallSignatureCache={});const D=m===8?"inner":"outer";return l.optionalCallSignatureCache[D]||(l.optionalCallSignatureCache[D]=CXt(l,m))}function CXt(l,m){H.assert(m===8||m===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const D=eW(l);return D.flags|=m,D}function fdt(l,m){if(th(l)){const A=l.parameters.length-1,w=l.parameters[A].escapedName,I=Wn(l.parameters[A]);if(xs(I))return[D(I,A,w)];if(!m&&I.flags&1048576&&ye(I.types,xs))return Vt(I.types,U=>D(U,A,w))}return[l.parameters];function D(A,w,I){const U=O0(A),Z=C(A,I),ce=Vt(U,(Fe,Te)=>{const $e=Z&&Z[Te]?Z[Te]:Iz(l,w+Te,A),ut=A.target.elementFlags[Te],zt=ut&12?32768:ut&2?16384:0,gi=Hs(1,$e,zt);return gi.links.type=ut&4?V1(Fe):Fe,gi});return Hi(l.parameters.slice(0,w),ce)}function C(A,w){const I=new Map;return Vt(A.target.labeledElementDeclarations,(U,Z)=>{const ce=sze(U,Z,w),Fe=I.get(ce);return Fe===void 0?(I.set(ce,1),ce):(I.set(ce,Fe+1),`${ce}_${Fe}`)})}}function bXt(l){const m=qc(l),D=go(m,1),C=tD(l.symbol),A=!!C&&Yu(C,64);if(D.length===0)return[y3(void 0,l.localTypeParameters,void 0,_t,l,void 0,0,A?4:0)];const w=Vr(l),I=Qn(w),U=kte(w),Z=S(U),ce=[];for(const Fe of D){const Te=b_(Fe.typeParameters),$e=S(Fe.typeParameters);if(I||Z>=Te&&Z<=$e){const ut=$e?Age(Fe,x6(U,Fe.typeParameters,Te,I)):eW(Fe);ut.typeParameters=l.localTypeParameters,ut.resolvedReturnType=l,ut.flags=A?ut.flags|4:ut.flags&-5,ce.push(ut)}}return ce}function MNe(l,m,D,C,A){for(const w of l)if(Rte(w,m,D,C,A,D?qti:hW))return w}function yXt(l,m,D){if(m.typeParameters){if(D>0)return;for(let A=1;A1&&(D=D===void 0?C:-1);for(const A of l[C])if(!m||!MNe(m,A,!1,!1,!0)){const w=yXt(l,A,C);if(w){let I=A;if(w.length>1){let U=A.thisParameter;const Z=L(w,ce=>ce.thisParameter);if(Z){const ce=Ds(qi(w,Fe=>Fe.thisParameter&&Wn(Fe.thisParameter)));U=CF(Z,ce)}I=hdt(A,w),I.thisParameter=U}(m||(m=[])).push(I)}}}if(!S(m)&&D!==-1){const C=l[D!==void 0?D:0];let A=C.slice();for(const w of l)if(w!==C){const I=w[0];if(H.assert(!!I,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),A=I.typeParameters&&Oe(A,U=>!!U.typeParameters&&!mdt(I.typeParameters,U.typeParameters))?void 0:Vt(A,U=>AXt(U,I)),!A)break}m=A}return m||_t}function mdt(l,m){if(S(l)!==S(m))return!1;if(!l||!m)return!0;const D=Sf(m,l);for(let C=0;C=A?l:m,I=w===l?m:l,U=w===l?C:A,Z=F_(l)||F_(m),ce=Z&&!F_(w),Fe=new Array(U+(ce?1:0));for(let Te=0;Te=SE(w)&&Te>=SE(I),dn=Te>=C?void 0:Iz(l,Te),nu=Te>=A?void 0:Iz(m,Te),En=dn===nu?dn:dn?nu?void 0:dn:nu,Ii=Hs(1|(Wi&&!gi?16777216:0),En||`arg${Te}`,gi?32768:Wi?16384:0);Ii.links.type=gi?V1(zt):zt,Fe[Te]=Ii}if(ce){const Te=Hs(1,"args",32768);Te.links.type=V1(Lg(I,U)),I===m&&(Te.links.type=_a(Te.links.type,D)),Fe[U]=Te}return Fe}function AXt(l,m){const D=l.typeParameters||m.typeParameters;let C;l.typeParameters&&m.typeParameters&&(C=Sf(m.typeParameters,l.typeParameters));const A=l.declaration,w=FXt(l,m,C),I=kXt(l.thisParameter,m.thisParameter,C),U=Math.max(l.minArgumentCount,m.minArgumentCount),Z=y3(A,D,I,w,void 0,void 0,U,(l.flags|m.flags)&167);return Z.compositeKind=1048576,Z.compositeSignatures=Hi(l.compositeKind!==2097152&&l.compositeSignatures||[l],[m]),C&&(Z.mapper=l.compositeKind!==2097152&&l.mapper&&l.compositeSignatures?wC(l.mapper,C):C),Z}function pdt(l){const m=kh(l[0]);if(m){const D=[];for(const C of m){const A=C.keyType;ye(l,w=>!!k3(w,A))&&D.push(y_(A,er(Vt(l,w=>yC(w,A))),Oe(l,w=>k3(w,A).isReadonly)))}return D}return _t}function SXt(l){const m=zNe(Vt(l.types,A=>A===di?[fn]:go(A,0))),D=zNe(Vt(l.types,A=>go(A,1))),C=pdt(l.types);x4(l,se,m,D,C)}function xte(l,m){return l?m?Ds([l,m]):l:m}function gdt(l){const m=ui(l,C=>go(C,1).length>0),D=Vt(l,Hu);if(m>0&&m===ui(D,C=>C)){const C=D.indexOf(!0);D[C]=!1}return D}function BXt(l,m,D,C){const A=[];for(let w=0;wU);for(let U=0;U0&&(ce=Vt(ce,Fe=>{const Te=eW(Fe);return Te.resolvedReturnType=BXt(Zs(Fe),A,w,U),Te})),D=Edt(D,ce)}m=Edt(m,go(Z,0)),C=nn(kh(Z),(ce,Fe)=>_dt(ce,Fe,!1),C)}x4(l,se,m||_t,D||_t,C||_t)}function Edt(l,m){for(const D of m)(!l||ye(l,C=>!Rte(C,D,!1,!1,!1,hW)))&&(l=xi(l,D));return l}function _dt(l,m,D){if(l)for(let C=0;C{var Z;!(U.flags&418)&&!(U.flags&512&&((Z=U.declarations)!=null&&Z.length)&&ye(U.declarations,N1))&&I.set(U.escapedName,U)}),D=I}let A;if(x4(l,D,_t,_t,_t),m.flags&32){const I=b4(m),U=qc(I);U.flags&11272192?(D=Vo(Jw(D)),sdt(D,n0(U))):U===me&&(A=y_(ct,me,!1))}const w=Sge(D);if(w?C=tPe(w):(A&&(C=xi(C,A)),m.flags&384&&(X0(m).flags&32||Oe(l.properties,I=>!!(Wn(I).flags&296)))&&(C=xi(C,Tu))),x4(l,D,_t,_t,C||_t),m.flags&8208&&(l.callSignatures=wb(m)),m.flags&32){const I=b4(m);let U=m.members?wb(m.members.get("__constructor")):_t;m.flags&16&&(U=yn(U.slice(),qi(l.callSignatures,Z=>AE(Z.declaration)?y3(Z.declaration,Z.typeParameters,Z.thisParameter,Z.parameters,I,void 0,Z.minArgumentCount,Z.flags&167):void 0))),U.length||(U=bXt(I)),l.constructSignatures=U}}function LXt(l,m,D){return _a(l,Sf([m.indexType,m.objectType],[wg(0),Bg([D])]))}function NXt(l){const m=k3(l.source,ct),D=C_(l.mappedType),C=!(D&1),A=D&4?0:16777216,w=m?[y_(ct,mEe(m.type,l.mappedType,l.constraintType),C&&m.isReadonly)]:_t,I=Vo();for(const U of n0(l.source)){const Z=8192|(C&&Ng(U)?8:0),ce=Hs(4|U.flags&A,U.escapedName,Z);if(ce.declarations=U.declarations,ce.links.nameType=Ur(U).nameType,ce.links.propertyType=Wn(U),l.constraintType.type.flags&8388608&&l.constraintType.type.objectType.flags&262144&&l.constraintType.type.indexType.flags&262144){const Fe=l.constraintType.type.objectType,Te=LXt(l.mappedType,l.constraintType.type,Fe);ce.links.mappedType=Te,ce.links.constraintType=k_(Fe)}else ce.links.mappedType=l.mappedType,ce.links.constraintType=l.constraintType;I.set(U.escapedName,ce)}x4(l,I,_t,_t,w)}function vte(l){if(l.flags&4194304){const m=Gh(l.type);return K5(m)?s1t(m):k_(m)}if(l.flags&16777216){if(l.root.isDistributive){const m=l.checkType,D=vte(m);if(D!==m)return NPe(l,Y9(l.root.checkType,D,l.mapper))}return l}if(l.flags&1048576)return hl(l,vte,!0);if(l.flags&2097152){const m=l.types;return m.length===2&&m[0].flags&76&&m[1]===Lc?l:Ds(Lu(l.types,vte))}return l}function INe(l){return Gl(l)&4096}function RNe(l,m,D,C){for(const A of n0(l))C(yz(A,m));if(l.flags&1)C(ct);else for(const A of kh(l))(!D||A.keyType.flags&134217732)&&C(A.keyType)}function PXt(l){const m=Vo();let D;x4(l,se,_t,_t,_t);const C=Fg(l),A=cp(l),w=l.target||l,I=I5(w),U=!I||vdt(w),Z=DD(w),ce=Gh(K9(l)),Fe=C_(l),Te=Je?128:8576;tW(l)?RNe(ce,Te,Je,$e):FF(vte(A),$e),x4(l,m,_t,_t,D||_t);function $e(zt){const gi=I?_a(I,dW(l.mapper,C,zt)):zt;FF(gi,Wi=>ut(zt,Wi))}function ut(zt,gi){if(Y4(gi)){const Wi=Q4(gi),dn=m.get(Wi);if(dn)dn.links.nameType=er([dn.links.nameType,gi]),dn.links.keyType=er([dn.links.keyType,zt]);else{const nu=Y4(zt)?qo(ce,Q4(zt)):void 0,En=!!(Fe&4||!(Fe&8)&&nu&&nu.flags&16777216),Ii=!!(Fe&1||!(Fe&2)&&nu&&Ng(nu)),Nn=fe&&!En&&nu&&nu.flags&16777216,vn=nu?INe(nu):0,An=Hs(4|(En?16777216:0),Wi,vn|262144|(Ii?8:0)|(Nn?524288:0));An.links.mappedType=l,An.links.nameType=gi,An.links.keyType=zt,nu&&(An.links.syntheticOrigin=nu,An.declarations=U?nu.declarations:void 0),m.set(Wi,An)}}else if(Bge(gi)||gi.flags&33){const Wi=gi.flags&5?ct:gi.flags&40?Qt:gi,dn=_a(Z,dW(l.mapper,C,zt)),nu=nW(ce,gi),En=!!(Fe&1||!(Fe&2)&&(nu!=null&&nu.isReadonly)),Ii=y_(Wi,dn,En);D=_dt(D,Ii,!0)}}}function MXt(l){if(!l.links.type){const m=l.links.mappedType;if(!D_(l,0))return m.containsError=!0,Ot;const D=DD(m.target||m),C=dW(m.mapper,Fg(m),l.links.keyType),A=_a(D,C);let w=fe&&l.flags&16777216&&!jl(A,49152)?S6(A,!0):l.links.checkFlags&524288?lEe(A):A;CE()||(pt(K,F.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Fr(l),gn(m)),w=Ot),l.links.type=w}return l.links.type}function Fg(l){return l.typeParameter||(l.typeParameter=gF(_u(l.declaration.typeParameter)))}function cp(l){return l.constraintType||(l.constraintType=rh(Fg(l))||Ot)}function I5(l){return l.declaration.nameType?l.nameType||(l.nameType=_a(Ar(l.declaration.nameType),l.mapper)):void 0}function DD(l){return l.templateType||(l.templateType=l.declaration.type?_a(Vd(Ar(l.declaration.type),!0,!!(C_(l)&4)),l.mapper):Ot)}function Ddt(l){return w8(l.declaration.typeParameter)}function tW(l){const m=Ddt(l);return m.kind===198&&m.operator===143}function K9(l){if(!l.modifiersType)if(tW(l))l.modifiersType=_a(Ar(Ddt(l).type),l.mapper);else{const m=bPe(l.declaration),D=cp(m),C=D&&D.flags&262144?rh(D):D;l.modifiersType=C&&C.flags&4194304?_a(C.type,l.mapper):on}return l.modifiersType}function C_(l){const m=l.declaration;return(m.readonlyToken?m.readonlyToken.kind===41?2:1:0)|(m.questionToken?m.questionToken.kind===41?8:4:0)}function xdt(l){const m=C_(l);return m&8?-1:m&4?1:0}function ONe(l){const m=xdt(l),D=K9(l);return m||(Xm(D)?xdt(D):0)}function zXt(l){return!!(Gu(l)&32&&C_(l)&4)}function Xm(l){if(Gu(l)&32){const m=cp(l);if(AC(m))return!0;const D=I5(l);if(D&&AC(_a(D,Mb(Fg(l),m))))return!0}return!1}function vdt(l){const m=I5(l);return!!m&&ms(m,Fg(l))}function Ag(l){return l.members||(l.flags&524288?l.objectFlags&4?xXt(l):l.objectFlags&3?DXt(l):l.objectFlags&1024?NXt(l):l.objectFlags&16?TXt(l):l.objectFlags&32?PXt(l):H.fail("Unhandled object type "+H.formatObjectFlags(l.objectFlags)):l.flags&1048576?SXt(l):l.flags&2097152?wXt(l):H.fail("Unhandled type "+H.formatTypeFlags(l.flags))),l}function D6(l){return l.flags&524288?Ag(l).properties:_t}function bC(l,m){if(l.flags&524288){const C=Ag(l).members.get(m);if(C&&l6(C))return C}}function Cte(l){if(!l.resolvedProperties){const m=Vo();for(const D of l.types){for(const C of n0(D))if(!m.has(C.escapedName)){const A=GNe(l,C.escapedName);A&&m.set(C.escapedName,A)}if(l.flags&1048576&&kh(D).length===0)break}l.resolvedProperties=Ab(m)}return l.resolvedProperties}function n0(l){return l=Dz(l),l.flags&3145728?Cte(l):D6(l)}function IXt(l,m){l=Dz(l),l.flags&3670016&&Ag(l).members.forEach((D,C)=>{sF(D,C)&&m(D,C)})}function RXt(l,m){return m.properties.some(C=>{const A=C.name&&(gg(C.name)?df(sV(C.name)):j5(C.name)),w=A&&Y4(A)?Q4(A):void 0,I=w===void 0?void 0:he(l,w);return!!I&&pW(I)&&!ms(tS(C),I)})}function OXt(l){const m=er(l);if(!(m.flags&1048576))return Gze(m);const D=Vo();for(const C of l)for(const{escapedName:A}of Gze(C))if(!D.has(A)){const w=Fdt(m,A);w&&D.set(A,w)}return ga(D.values())}function EF(l){return l.flags&262144?rh(l):l.flags&8388608?jXt(l):l.flags&16777216?ydt(l):Wh(l)}function rh(l){return iW(l)?vz(l):void 0}function W9(l,m=0){var D;return m<5&&!!(l&&(l.flags&262144&&Oe((D=l.symbol)==null?void 0:D.declarations,C=>Yu(C,4096))||l.flags&3145728&&Oe(l.types,C=>W9(C,m))||l.flags&8388608&&W9(l.objectType,m+1)||l.flags&16777216&&W9(ydt(l),m+1)||l.flags&33554432&&W9(l.baseType,m)||K5(l)&&Ue(FC(l),(C,A)=>!!(l.target.elementFlags[A]&8)&&W9(C,m))>=0))}function jXt(l){return iW(l)?VXt(l):void 0}function jNe(l){const m=vD(l,!1);return m!==l?m:EF(l)}function VXt(l){if(WNe(l)||Xm(l.objectType))return Ige(l.objectType,l.indexType);const m=jNe(l.indexType);if(m&&m!==l.indexType){const C=b6(l.objectType,m,l.accessFlags);if(C)return C}const D=jNe(l.objectType);if(D&&D!==l.objectType)return b6(D,l.indexType,l.accessFlags)}function VNe(l){if(!l.resolvedDefaultConstraint){const m=yti(l),D=BC(l);l.resolvedDefaultConstraint=nt(m)?D:nt(D)?m:er([m,D])}return l.resolvedDefaultConstraint}function Cdt(l){if(l.resolvedConstraintOfDistributive!==void 0)return l.resolvedConstraintOfDistributive||void 0;if(l.root.isDistributive&&l.restrictiveInstantiation!==l){const m=vD(l.checkType,!1),D=m===l.checkType?EF(m):m;if(D&&D!==l.checkType){const C=NPe(l,Y9(l.root.checkType,D,l.mapper));if(!(C.flags&131072))return l.resolvedConstraintOfDistributive=C,C}}l.resolvedConstraintOfDistributive=!1}function bdt(l){return Cdt(l)||VNe(l)}function ydt(l){return iW(l)?bdt(l):void 0}function HXt(l,m){let D,C=!1;for(const A of l)if(A.flags&465829888){let w=EF(A);for(;w&&w.flags&21233664;)w=EF(w);w&&(D=xi(D,w),m&&(D=xi(D,A)))}else(A.flags&469892092||yD(A))&&(C=!0);if(D&&(m||C)){if(C)for(const A of l)(A.flags&469892092||yD(A))&&(D=xi(D,A));return Mte(Ds(D),!1)}}function Wh(l){if(l.flags&464781312||K5(l)){const m=HNe(l);return m!==dl&&m!==Uc?m:void 0}return l.flags&4194304?vc:void 0}function xD(l){return Wh(l)||l}function iW(l){return HNe(l)!==Uc}function HNe(l){if(l.resolvedBaseConstraint)return l.resolvedBaseConstraint;const m=[];return l.resolvedBaseConstraint=D(l);function D(w){if(!w.immediateBaseConstraint){if(!D_(w,4))return Uc;let I;const U=iEe(w);if((m.length<10||m.length<50&&!kt(m,U))&&(m.push(U),I=A(vD(w,!1)),m.pop()),!CE()){if(w.flags&262144){const Z=iPe(w);if(Z){const ce=pt(Z,F.Type_parameter_0_has_a_circular_constraint,gn(w));K&&!S2(Z,K)&&!S2(K,Z)&&Es(ce,Su(K,F.Circularity_originates_in_type_at_this_location))}}I=Uc}w.immediateBaseConstraint=I||dl}return w.immediateBaseConstraint}function C(w){const I=D(w);return I!==dl&&I!==Uc?I:void 0}function A(w){if(w.flags&262144){const I=vz(w);return w.isThisType||!I?I:C(I)}if(w.flags&3145728){const I=w.types,U=[];let Z=!1;for(const ce of I){const Fe=C(ce);Fe?(Fe!==ce&&(Z=!0),U.push(Fe)):Z=!0}return Z?w.flags&1048576&&U.length===I.length?er(U):w.flags&2097152&&U.length?Ds(U):void 0:w}if(w.flags&4194304)return vc;if(w.flags&134217728){const I=w.types,U=qi(I,C);return U.length===I.length?xF(w.texts,U):ct}if(w.flags&268435456){const I=C(w.type);return I&&I!==w.type?$9(w.symbol,I):ct}if(w.flags&8388608){if(WNe(w))return C(Ige(w.objectType,w.indexType));const I=C(w.objectType),U=C(w.indexType),Z=I&&U&&b6(I,U,w.accessFlags);return Z&&C(Z)}if(w.flags&16777216){const I=bdt(w);return I&&C(I)}if(w.flags&33554432)return C(rPe(w));if(K5(w)){const I=Vt(FC(w),(U,Z)=>{const ce=U.flags&262144&&w.target.elementFlags[Z]&8&&C(U)||U;return ce!==U&&e4(ce,Fe=>zb(Fe)&&!K5(Fe))?ce:U});return Bg(I,w.target.elementFlags,w.target.readonly,w.target.labeledElementDeclarations)}return w}}function KXt(l,m){return l.resolvedApparentType||(l.resolvedApparentType=xm(l,m,!0))}function KNe(l){if(l.default)l.default===Ch&&(l.default=Uc);else if(l.target){const m=KNe(l.target);l.default=m?_a(m,l.mapper):dl}else{l.default=Ch;const m=l.symbol&&L(l.symbol.declarations,C=>Bl(C)&&C.default),D=m?Ar(m):dl;l.default===Ch&&(l.default=D)}return l.default}function _F(l){const m=KNe(l);return m!==dl&&m!==Uc?m:void 0}function WXt(l){return KNe(l)!==Uc}function kdt(l){return!!(l.symbol&&L(l.symbol.declarations,m=>Bl(m)&&m.default))}function GXt(l){return l.resolvedApparentType||(l.resolvedApparentType=JXt(l))}function JXt(l){const m=Jge(l);if(m&&!l.declaration.nameType){const D=rh(m);if(D&&e4(D,zb))return _a(l,Y9(m,D,l.mapper))}return l}function WNe(l){let m;return!!(l.flags&8388608&&Gu(m=l.objectType)&32&&!Xm(m)&&AC(l.indexType)&&!(C_(m)&8)&&!m.declaration.nameType)}function Gh(l){const m=l.flags&465829888?Wh(l)||on:l,D=Gu(m);return D&32?GXt(m):D&4&&m!==l?xm(m,l):m.flags&2097152?KXt(m,l):m.flags&402653316?nc:m.flags&296?fc:m.flags&2112?Bei():m.flags&528?Cl:m.flags&12288?Xdt():m.flags&67108864?Ko:m.flags&4194304?vc:m.flags&2&&!fe?Ko:m}function Dz(l){return Sg(Gh(Sg(l)))}function Fdt(l,m,D){var C,A,w;let I,U,Z;const ce=l.flags&1048576;let Fe,Te=4,$e=ce?0:8,ut=!1;for(const An of l.types){const _n=Gh(An);if(!(Nt(_n)||_n.flags&131072)){const hu=qo(_n,m,D),oo=hu?l4(hu):0;if(hu){if(hu.flags&106500&&(Fe??(Fe=ce?0:16777216),ce?Fe|=hu.flags&16777216:Fe&=hu.flags),!I)I=hu;else if(hu!==I)if((_T(hu)||hu)===(_T(I)||I)&&KPe(I,hu,(fo,ka)=>fo===ka?-1:0)===-1)ut=!!I.parent&&!!S(sn(I.parent));else{U||(U=new Map,U.set(Zo(I),I));const fo=Zo(hu);U.has(fo)||U.set(fo,hu)}ce&&Ng(hu)?$e|=8:!ce&&!Ng(hu)&&($e&=-9),$e|=(oo&6?0:256)|(oo&4?512:0)|(oo&2?1024:0)|(oo&256?2048:0),jMe(hu)||(Te=2)}else if(ce){const Eo=!XK(m)&&G9(_n,m);Eo?($e|=32|(Eo.isReadonly?8:0),Z=xi(Z,xs(_n)?rEe(_n)||te:Eo.type)):PC(_n)&&!(Gu(_n)&2097152)?($e|=32,Z=xi(Z,te)):$e|=16}}}if(!I||ce&&(U||$e&48)&&$e&1536&&!(U&&$Xt(U.values())))return;if(!U&&!($e&16)&&!Z)if(ut){const An=(C=ur(I,qE))==null?void 0:C.links,_n=CF(I,An==null?void 0:An.type);return _n.parent=(w=(A=I.valueDeclaration)==null?void 0:A.symbol)==null?void 0:w.parent,_n.links.containingType=l,_n.links.mapper=An==null?void 0:An.mapper,_n}else return I;const zt=U?ga(U.values()):[I];let gi,Wi,dn;const nu=[];let En,Ii,Nn=!1;for(const An of zt){Ii?An.valueDeclaration&&An.valueDeclaration!==Ii&&(Nn=!0):Ii=An.valueDeclaration,gi=yn(gi,An.declarations);const _n=Wn(An);Wi||(Wi=_n,dn=Ur(An).nameType);const hu=mF(An);(En||hu!==_n)&&(En=xi(En||nu.slice(),hu)),_n!==Wi&&($e|=64),(pW(_n)||U9(_n))&&($e|=128),_n.flags&131072&&_n!==vl&&($e|=131072),nu.push(_n)}yn(nu,Z);const vn=Hs(4|(Fe??0),m,Te|$e);return vn.links.containingType=l,!Nn&&Ii&&(vn.valueDeclaration=Ii,Ii.symbol.parent&&(vn.parent=Ii.symbol.parent)),vn.declarations=gi,vn.links.nameType=dn,nu.length>2?(vn.links.checkFlags|=65536,vn.links.deferralParent=l,vn.links.deferralConstituents=nu,vn.links.deferralWriteConstituents=En):(vn.links.type=ce?er(nu):Ds(nu),En&&(vn.links.writeType=ce?er(En):Ds(En))),vn}function Adt(l,m,D){var C,A;let w=(C=l.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&C.get(m)||!D?(A=l.propertyCache)==null?void 0:A.get(m):void 0;return w||(w=Fdt(l,m,D),w&&(D?l.propertyCacheWithoutObjectFunctionPropertyAugment||(l.propertyCacheWithoutObjectFunctionPropertyAugment=Vo()):l.propertyCache||(l.propertyCache=Vo())).set(m,w)),w}function $Xt(l){let m;for(const D of l){if(!D.declarations)return;if(!m){m=new Set(D.declarations);continue}if(m.forEach(C=>{kt(D.declarations,C)||m.delete(C)}),m.size===0)return}return m}function GNe(l,m,D){const C=Adt(l,m,D);return C&&!(Gl(C)&16)?C:void 0}function Sg(l){return l.flags&1048576&&l.objectFlags&16777216?l.resolvedReducedType||(l.resolvedReducedType=UXt(l)):l.flags&2097152?(l.objectFlags&16777216||(l.objectFlags|=16777216|(Oe(Cte(l),qXt)?33554432:0)),l.objectFlags&33554432?Ku:l):l}function UXt(l){const m=Lu(l.types,Sg);if(m===l.types)return l;const D=er(m);return D.flags&1048576&&(D.resolvedReducedType=D),D}function qXt(l){return Sdt(l)||Bdt(l)}function Sdt(l){return!(l.flags&16777216)&&(Gl(l)&131264)===192&&!!(Wn(l).flags&131072)}function Bdt(l){return!l.valueDeclaration&&!!(Gl(l)&1024)}function JNe(l){return!!(l.flags&1048576&&l.objectFlags&16777216&&Oe(l.types,JNe)||l.flags&2097152&&ZXt(l))}function ZXt(l){const m=l.uniqueLiteralFilledInstantiation||(l.uniqueLiteralFilledInstantiation=_a(l,co));return Sg(m)!==m}function $Ne(l,m){if(m.flags&2097152&&Gu(m)&33554432){const D=Le(Cte(m),Sdt);if(D)return ro(l,F.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,gn(m,void 0,536870912),Fr(D));const C=Le(Cte(m),Bdt);if(C)return ro(l,F.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,gn(m,void 0,536870912),Fr(C))}return l}function qo(l,m,D,C){if(l=Dz(l),l.flags&524288){const A=Ag(l),w=A.members.get(m);if(w&&l6(w,C))return w;if(D)return;const I=A===Ri?di:A.callSignatures.length?Mn:A.constructSignatures.length?ba:void 0;if(I){const U=bC(I,m);if(U)return U}return bC(He,m)}if(l.flags&3145728)return GNe(l,m,D)}function bte(l,m){if(l.flags&3670016){const D=Ag(l);return m===0?D.callSignatures:D.constructSignatures}return _t}function go(l,m){const D=bte(Dz(l),m);if(m===0&&!S(D)&&l.flags&1048576){if(l.arrayFallbackSignatures)return l.arrayFallbackSignatures;let C;if(e4(l,A=>{var w;return!!((w=A.symbol)!=null&&w.parent)&&YXt(A.symbol.parent)&&(C?C===A.symbol.escapedName:(C=A.symbol.escapedName,!0))})){const A=hl(l,I=>k6((wdt(I.symbol.parent)?To:Fo).typeParameters[0],I.mapper)),w=V1(A,yE(l,I=>wdt(I.symbol.parent)));return l.arrayFallbackSignatures=go(he(w,C),m)}l.arrayFallbackSignatures=D}return D}function YXt(l){return!l||!Fo.symbol||!To.symbol?!1:!!Zm(l,Fo.symbol)||!!Zm(l,To.symbol)}function wdt(l){return!l||!To.symbol?!1:!!Zm(l,To.symbol)}function UNe(l,m){return Le(l,D=>D.keyType===m)}function qNe(l,m){let D,C,A;for(const w of l)w.keyType===ct?D=w:nT(m,w.keyType)&&(C?(A||(A=[C])).push(w):C=w);return A?y_(on,Ds(Vt(A,w=>w.type)),nn(A,(w,I)=>w&&I.isReadonly,!0)):C||(D&&nT(m,ct)?D:void 0)}function nT(l,m){return ms(l,m)||m===ct&&ms(l,Qt)||m===Qt&&(l===Ul||!!(l.flags&128)&&i3(l.value))}function ZNe(l){return l.flags&3670016?Ag(l).indexInfos:_t}function kh(l){return ZNe(Dz(l))}function k3(l,m){return UNe(kh(l),m)}function yC(l,m){var D;return(D=k3(l,m))==null?void 0:D.type}function YNe(l,m){return kh(l).filter(D=>nT(m,D.keyType))}function nW(l,m){return qNe(kh(l),m)}function G9(l,m){return nW(l,XK(m)?Xu:df(Yr(m)))}function Tdt(l){var m;let D;for(const C of Sx(l))D=e0(D,gF(C.symbol));return D!=null&&D.length?D:ed(l)?(m=xz(l))==null?void 0:m.typeParameters:void 0}function QNe(l){const m=[];return l.forEach((D,C)=>{EC(C)||m.push(D)}),m}function kge(l,m){if(Id(l))return;const D=kf(Ie,'"'+l+'"',512);return D&&m?Ks(D):D}function uW(l){if(d7(l)||aV(l)||oV(l))return!0;if(l.initializer){const D=dp(l.parent),C=l.parent.parameters.indexOf(l);return H.assert(C>=0),C>=SE(D,3)}const m=nk(l.parent);return m?!l.type&&!l.dotDotDotToken&&l.parent.parameters.indexOf(l)>=REe(m).length:!1}function QXt(l){return ko(l)&&!eE(l)&&l.questionToken}function yte(l,m,D,C){return{kind:l,parameterName:m,parameterIndex:D,type:C}}function b_(l){let m=0;if(l)for(let D=0;D=D&&w<=A){const I=l?l.slice():[];for(let Z=w;ZU.arguments.length&&!Wi||oV(zt)||(A=D.length)}if((l.kind===177||l.kind===178)&&iT(l)&&(!I||!w)){const ut=l.kind===177?178:177,zt=Sl(_u(l),ut);zt&&(w=p6(zt))}if(Qn(l)){const ut=LU(l);ut&&ut.typeExpression&&(w=CF(Hs(1,"this"),Ar(ut.typeExpression)))}const Fe=Ov(l)?ok(l):l,Te=Fe&&hc(Fe)?b4(Ks(Fe.parent.symbol)):void 0,$e=Te?Te.localTypeParameters:Tdt(l);(u0e(l)||Qn(l)&&XXt(l,D))&&(C|=1),(WP(l)&&Yu(l,64)||hc(l)&&Yu(l.parent,64))&&(C|=4),m.resolvedSignature=y3(l,$e,w,D,void 0,void 0,A,C)}return m.resolvedSignature}function XXt(l,m){if(Ov(l)||!XNe(l))return!1;const D=qu(l.parameters),C=D?B8(D):Cv(l).filter(Eg),A=G(C,I=>I.typeExpression&&pY(I.typeExpression.type)?I.typeExpression.type:void 0),w=Hs(3,"args",32768);return A?w.links.type=V1(Ar(A.type)):(w.links.checkFlags|=65536,w.links.deferralParent=Ku,w.links.deferralConstituents=[ql],w.links.deferralWriteConstituents=[ql]),A&&m.pop(),m.push(w),!0}function xz(l){if(!(Qn(l)&&$0(l)))return;const m=xv(l);return(m==null?void 0:m.typeExpression)&&wF(Ar(m.typeExpression))}function eei(l,m){const D=xz(l);if(!D)return;const C=l.parameters.indexOf(m);return m.dotDotDotToken?FW(D,C):Lg(D,C)}function tei(l){const m=xz(l);return m&&Zs(m)}function XNe(l){const m=ar(l);return m.containsArgumentsReference===void 0&&(m.flags&512?m.containsArgumentsReference=!0:m.containsArgumentsReference=D(l.body)),m.containsArgumentsReference;function D(C){if(!C)return!1;switch(C.kind){case 80:return C.escapedText===It.escapedName&&VW(C)===It;case 172:case 174:case 177:case 178:return C.name.kind===167&&D(C.name);case 211:case 212:return D(C.expression);case 303:return D(C.initializer);default:return!U0e(C)&&!q_(C)&&!!ao(C,D)}}}function wb(l){if(!l||!l.declarations)return _t;const m=[];for(let D=0;D0&&C.body){const A=l.declarations[D-1];if(C.parent===A.parent&&C.kind===A.kind&&C.pos===A.end)continue}if(Qn(C)&&C.jsDoc){let A=!1;for(const w of C.jsDoc)if(w.tags){for(const I of w.tags)if(NB(I)){const U=I.typeExpression;U.type===void 0&&!hc(C)&&LC(U,me),m.push(dp(U)),A=!0}}if(A)continue}m.push(!R2(C)&&!zp(C)&&xz(C)||dp(C))}}return m}function Ldt(l){const m=Kh(l,l);if(m){const D=_m(m);if(D)return Wn(D)}return me}function kC(l){if(l.thisParameter)return Wn(l.thisParameter)}function y4(l){if(!l.resolvedTypePredicate){if(l.target){const m=y4(l.target);l.resolvedTypePredicate=m?Oti(m,l.mapper):vt}else if(l.compositeSignatures)l.resolvedTypePredicate=Qei(l.compositeSignatures,l.compositeKind)||vt;else{const m=l.declaration&&U4(l.declaration);let D;if(!m){const C=xz(l.declaration);C&&l!==C&&(D=y4(C))}l.resolvedTypePredicate=m&&aY(m)?iei(m,l):D||vt}H.assert(!!l.resolvedTypePredicate)}return l.resolvedTypePredicate===vt?void 0:l.resolvedTypePredicate}function iei(l,m){const D=l.parameterName,C=l.type&&Ar(l.type);return D.kind===197?yte(l.assertsModifier?2:0,void 0,void 0,C):yte(l.assertsModifier?3:1,D.escapedText,Ue(m.parameters,A=>A.escapedName===D.escapedText),C)}function Ndt(l,m,D){return m!==2097152?er(l,D):Ds(l)}function Zs(l){if(!l.resolvedReturnType){if(!D_(l,3))return Ot;let m=l.target?_a(Zs(l.target),l.mapper):l.compositeSignatures?_a(Ndt(Vt(l.compositeSignatures,Zs),l.compositeKind,2),l.mapper):uT(l.declaration)||(Ql(l.declaration.body)?me:HEe(l.declaration));if(l.flags&8?m=mht(m):l.flags&16&&(m=S6(m)),!CE()){if(l.declaration){const D=U4(l.declaration);if(D)pt(D,F.Return_type_annotation_circularly_references_itself);else if(Ae){const C=l.declaration,A=Za(C);A?pt(A,F._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions,b0(A)):pt(C,F.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions)}}m=me}l.resolvedReturnType=m}return l.resolvedReturnType}function uT(l){if(l.kind===176)return b4(Ks(l.parent.symbol));const m=U4(l);if(Ov(l)){const D=iP(l);if(D&&hc(D.parent)&&!m)return b4(Ks(D.parent.parent.symbol))}if(X8(l))return Ar(l.parameters[0].type);if(m)return Ar(m);if(l.kind===177&&iT(l)){const D=Qn(l)&&qp(l);if(D)return D;const C=Sl(_u(l),178),A=Qm(C);if(A)return A}return tei(l)}function Fge(l){return l.compositeSignatures&&Oe(l.compositeSignatures,Fge)||!l.resolvedReturnType&&xC(l,3)>=0}function nei(l){return Pdt(l)||me}function Pdt(l){if(th(l)){const m=Wn(l.parameters[l.parameters.length-1]),D=xs(m)?rEe(m):m;return D&&yC(D,Qt)}}function rW(l,m,D,C){const A=ePe(l,x6(m,l.typeParameters,b_(l.typeParameters),D));if(C){const w=Kft(Zs(A));if(w){const I=eW(w);I.typeParameters=C;const U=eW(A);return U.resolvedReturnType=DF(I),U}}return A}function ePe(l,m){const D=l.instantiations||(l.instantiations=new Map),C=hp(m);let A=D.get(C);return A||D.set(C,A=Age(l,m)),A}function Age(l,m){return lT(l,uei(l,m),!0)}function uei(l,m){return Sf(l.typeParameters,m)}function aW(l){return l.typeParameters?l.erasedSignatureCache||(l.erasedSignatureCache=rei(l)):l}function rei(l){return lT(l,I1t(l.typeParameters),!0)}function aei(l){return l.typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=oei(l)):l}function oei(l){return rW(l,Vt(l.typeParameters,m=>m.target&&!rh(m.target)?m.target:m),Qn(l.declaration))}function sei(l){const m=l.typeParameters;if(m){if(l.baseSignatureCache)return l.baseSignatureCache;const D=I1t(m),C=Sf(m,Vt(m,w=>rh(w)||on));let A=Vt(m,w=>_a(w,C)||on);for(let w=0;w{Bge(A)&&!UNe(m,A)&&m.push(y_(A,D.type?Ar(D.type):me,Rf(D,8),D))})}return m}return _t}function Bge(l){return!!(l.flags&4108)||U9(l)||!!(l.flags&2097152)&&!kz(l)&&Oe(l.types,Bge)}function iPe(l){return qi(ti(l.symbol&&l.symbol.declarations,Bl),w8)[0]}function Idt(l,m){var D;let C;if((D=l.symbol)!=null&&D.declarations){for(const A of l.symbol.declarations)if(A.parent.kind===195){const[w=A.parent,I]=dye(A.parent.parent);if(I.kind===183&&!m){const U=I,Z=yze(U);if(Z){const ce=U.typeArguments.indexOf(w);if(ce()=>Doi(U,Z,zt))),$e=_a(Fe,Te);$e!==l&&(C=xi(C,$e))}}}}else if(I.kind===169&&I.dotDotDotToken||I.kind===191||I.kind===202&&I.dotDotDotToken)C=xi(C,V1(on));else if(I.kind===204)C=xi(C,ct);else if(I.kind===168&&I.parent.kind===200)C=xi(C,vc);else if(I.kind===200&&I.type&&l0(I.type)===A.parent&&I.parent.kind===194&&I.parent.extendsType===I&&I.parent.checkType.kind===200&&I.parent.checkType.type){const U=I.parent.checkType,Z=Ar(U.type);C=xi(C,_a(Z,Mb(gF(_u(U.typeParameter)),U.typeParameter.constraint?Ar(U.typeParameter.constraint):vc)))}}}return C&&Ds(C)}function vz(l){if(!l.constraint)if(l.target){const m=rh(l.target);l.constraint=m?_a(m,l.mapper):dl}else{const m=iPe(l);if(!m)l.constraint=Idt(l)||dl;else{let D=Ar(m);D.flags&1&&!Nt(D)&&(D=m.parent.parent.kind===200?vc:on),l.constraint=D}}return l.constraint===dl?void 0:l.constraint}function Rdt(l){const m=Sl(l.symbol,168),D=_g(m.parent)?Aq(m.parent):m.parent;return D&&Dm(D)}function hp(l){let m="";if(l){const D=l.length;let C=0;for(;C1&&(m+=":"+w),C+=w}}return m}function J9(l,m){return l?`@${Zo(l)}`+(m?`:${hp(m)}`:""):""}function wge(l,m){let D=0;for(const C of l)(m===void 0||!(C.flags&m))&&(D|=Gu(C));return D&458752}function rT(l,m){return Oe(m)&&l===Ka?on:R5(l,m)}function R5(l,m){const D=hp(m);let C=l.instantiations.get(D);return C||(C=D4(4,l.symbol),l.instantiations.set(D,C),C.objectFlags|=m?wge(m):0,C.target=l,C.resolvedTypeArguments=m),C}function Odt(l){const m=N5(l.flags,l.symbol);return m.objectFlags=l.objectFlags,m.target=l.target,m.resolvedTypeArguments=l.resolvedTypeArguments,m}function nPe(l,m,D,C,A){if(!C){C=q9(m);const I=sT(C);A=D?V5(I,D):I}const w=D4(4,l.symbol);return w.target=l,w.node=m,w.mapper=D,w.aliasSymbol=C,w.aliasTypeArguments=A,w}function O0(l){var m,D;if(!l.resolvedTypeArguments){if(!D_(l,6))return((m=l.target.localTypeParameters)==null?void 0:m.map(()=>Ot))||_t;const C=l.node,A=C?C.kind===183?Hi(l.target.outerTypeParameters,JEe(C,l.target.localTypeParameters)):C.kind===188?[Ar(C.elementType)]:Vt(C.elements,Ar):_t;CE()?l.resolvedTypeArguments=l.mapper?V5(A,l.mapper):A:(l.resolvedTypeArguments=((D=l.target.localTypeParameters)==null?void 0:D.map(()=>Ot))||_t,pt(l.node||K,l.target.symbol?F.Type_arguments_for_0_circularly_reference_themselves:F.Tuple_type_arguments_circularly_reference_themselves,l.target.symbol&&Fr(l.target.symbol)))}return l.resolvedTypeArguments}function O5(l){return S(l.target.typeParameters)}function jdt(l,m){const D=X0(Ks(m)),C=D.localTypeParameters;if(C){const A=S(l.typeArguments),w=b_(C),I=Qn(l);if(!(!Ae&&I)&&(AC.length)){const ce=I&&c5(l)&&!LB(l.parent),Fe=w===C.length?ce?F.Expected_0_type_arguments_provide_these_with_an_extends_tag:F.Generic_type_0_requires_1_type_argument_s:ce?F.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:F.Generic_type_0_requires_between_1_and_2_type_arguments,Te=gn(D,void 0,2);if(pt(l,Fe,Te,w,C.length),!I)return Ot}if(l.kind===183&&a1t(l,S(l.typeArguments)!==C.length))return nPe(D,l,void 0);const Z=Hi(D.outerTypeParameters,x6(kte(l),C,w,I));return R5(D,Z)}return Tb(l,m)?D:Ot}function aT(l,m,D,C){const A=X0(l);if(A===Qi&&tQ.has(l.escapedName)&&m&&m.length===1)return $9(l,m[0]);const w=Ur(l),I=w.typeParameters,U=hp(m)+J9(D,C);let Z=w.instantiations.get(U);return Z||w.instantiations.set(U,Z=j1t(A,Sf(I,x6(m,I,b_(I),Qn(l.valueDeclaration))),D,C)),Z}function lei(l,m){if(Gl(m)&1048576){const A=kte(l),w=J9(m,A);let I=gt.get(w);return I||(I=Pc(1,"error",void 0,`alias ${w}`),I.aliasSymbol=m,I.aliasTypeArguments=A,gt.set(w,I)),I}const D=X0(m),C=Ur(m).typeParameters;if(C){const A=S(l.typeArguments),w=b_(C);if(AC.length)return pt(l,w===C.length?F.Generic_type_0_requires_1_type_argument_s:F.Generic_type_0_requires_between_1_and_2_type_arguments,Fr(m),w,C.length),Ot;const I=q9(l);let U=I&&(Vdt(m)||!Vdt(I))?I:void 0,Z;if(U)Z=sT(U);else if($U(l)){const ce=oT(l,2097152,!0);if(ce&&ce!==Xt){const Fe=md(ce);Fe&&Fe.flags&524288&&(U=Fe,Z=kte(l)||(C?[]:void 0))}}return aT(m,kte(l),U,Z)}return Tb(l,m)?D:Ot}function Vdt(l){var m;const D=(m=l.declarations)==null?void 0:m.find(Sj);return!!(D&&Nm(D))}function cei(l){switch(l.kind){case 183:return l.typeName;case 233:const m=l.expression;if(ec(m))return m}}function Hdt(l){return l.parent?`${Hdt(l.parent)}.${l.escapedName}`:l.escapedName}function Tge(l){const D=(l.kind===166?l.right:l.kind===211?l.name:l).escapedText;if(D){const C=l.kind===166?Tge(l.left):l.kind===211?Tge(l.expression):void 0,A=C?`${Hdt(C)}.${D}`:D;let w=et.get(A);return w||(et.set(A,w=Hs(524288,D,1048576)),w.parent=C,w.links.declaredType=Ei),w}return Xt}function oT(l,m,D){const C=cei(l);if(!C)return Xt;const A=R0(C,m,D);return A&&A!==Xt?A:D?Xt:Tge(C)}function Lge(l,m){if(m===Xt)return Ot;if(m=L9(m)||m,m.flags&96)return jdt(l,m);if(m.flags&524288)return lei(l,m);const D=rdt(m);if(D)return Tb(l,m)?Jh(D):Ot;if(m.flags&111551&&Nge(l)){const C=dei(l,m);return C||(oT(l,788968),Wn(m))}return Ot}function dei(l,m){const D=ar(l);if(!D.resolvedJSDocType){const C=Wn(m);let A=C;if(m.valueDeclaration){const w=l.kind===205&&l.qualifier;C.symbol&&C.symbol!==m&&w&&(A=Lge(l,C.symbol))}D.resolvedJSDocType=A}return D.resolvedJSDocType}function uPe(l,m){if(m.flags&3||m===l||l.flags&1)return l;const D=`${Fh(l)}>${Fh(m)}`,C=Ta.get(D);if(C)return C;const A=lp(33554432);return A.baseType=l,A.constraint=m,Ta.set(D,A),A}function rPe(l){return Ds([l.constraint,l.baseType])}function Kdt(l){return l.kind===189&&l.elements.length===1}function Wdt(l,m,D){return Kdt(m)&&Kdt(D)?Wdt(l,m.elements[0],D.elements[0]):y6(Ar(m))===y6(l)?Ar(D):void 0}function hei(l,m){let D,C=!0;for(;m&&!ia(m)&&m.kind!==327;){const A=m.parent;if(A.kind===169&&(C=!C),(C||l.flags&8650752)&&A.kind===194&&m===A.trueType){const w=Wdt(l,A.checkType,A.extendsType);w&&(D=xi(D,w))}else if(l.flags&262144&&A.kind===200&&m===A.type){const w=Ar(A);if(Fg(w)===y6(l)){const I=Jge(w);if(I){const U=rh(I);U&&e4(U,zb)&&(D=xi(D,er([Qt,Ul])))}}}m=A}return D?uPe(l,Ds(D)):l}function Nge(l){return!!(l.flags&16777216)&&(l.kind===183||l.kind===205)}function Tb(l,m){return l.typeArguments?(pt(l,F.Type_0_is_not_generic,m?Fr(m):l.typeName?b0(l.typeName):YY),!1):!0}function Gdt(l){if(at(l.typeName)){const m=l.typeArguments;switch(l.typeName.escapedText){case"String":return Tb(l),ct;case"Number":return Tb(l),Qt;case"Boolean":return Tb(l),pr;case"Void":return Tb(l),ca;case"Undefined":return Tb(l),te;case"Null":return Tb(l),it;case"Function":case"function":return Tb(l),di;case"array":return(!m||!m.length)&&!Ae?ql:void 0;case"promise":return(!m||!m.length)&&!Ae?die(me):void 0;case"Object":if(m&&m.length===2){if(xq(l)){const D=Ar(m[0]),C=Ar(m[1]),A=D===ct||D===Qt?[y_(D,C,!1)]:_t;return Ol(void 0,se,_t,_t,A)}return me}return Tb(l),Ae?void 0:me}}}function fei(l){const m=Ar(l.type);return fe?aEe(m,65536):m}function aPe(l){const m=ar(l);if(!m.resolvedType){if(q3(l)&&Yy(l.parent))return m.resolvedSymbol=Xt,m.resolvedType=Rc(l.parent.expression);let D,C;const A=788968;Nge(l)&&(C=Gdt(l),C||(D=oT(l,A,!0),D===Xt?D=oT(l,A|111551):oT(l,A),C=Lge(l,D))),C||(D=oT(l,A),C=Lge(l,D)),m.resolvedSymbol=D,m.resolvedType=C}return m.resolvedType}function kte(l){return Vt(l.typeArguments,Ar)}function Jdt(l){const m=ar(l);if(!m.resolvedType){const D=lmt(l);m.resolvedType=Jh(vm(D))}return m.resolvedType}function $dt(l,m){function D(A){const w=A.declarations;if(w)for(const I of w)switch(I.kind){case 263:case 264:case 266:return I}}if(!l)return m?Ka:Ko;const C=X0(l);return C.flags&524288?S(C.typeParameters)!==m?(pt(D(l),F.Global_type_0_must_have_1_type_parameter_s,lc(l),m),m?Ka:Ko):C:(pt(D(l),F.Global_type_0_must_be_a_class_or_interface_type,lc(l)),m?Ka:Ko)}function oPe(l,m){return Cz(l,111551,m?F.Cannot_find_global_value_0:void 0)}function Udt(l,m){return Cz(l,788968,m?F.Cannot_find_global_type_0:void 0)}function Pge(l,m,D){const C=Cz(l,788968,D?F.Cannot_find_global_type_0:void 0);if(C&&(X0(C),S(Ur(C).typeParameters)!==m)){const A=C.declarations&&Le(C.declarations,jp);pt(A,F.Global_type_0_must_have_1_type_parameter_s,lc(C),m);return}return C}function Cz(l,m,D){return uc(void 0,l,m,D,l,!1,!1,!1)}function zc(l,m,D){const C=Udt(l,D);return C||D?$dt(C,m):void 0}function mei(){return c_||(c_=zc("TypedPropertyDescriptor",1,!0)||Ka)}function pei(){return In||(In=zc("TemplateStringsArray",0,!0)||Ko)}function qdt(){return tr||(tr=zc("ImportMeta",0,!0)||Ko)}function Zdt(){if(!ir){const l=Hs(0,"ImportMetaExpression"),m=qdt(),D=Hs(4,"meta",8);D.parent=l,D.links.type=m;const C=Vo([D]);l.members=C,ir=Ol(l,C,_t,_t,_t)}return ir}function Ydt(l){return ha||(ha=zc("ImportCallOptions",0,l))||Ko}function Qdt(l){return jh||(jh=oPe("Symbol",l))}function gei(l){return f4||(f4=Udt("SymbolConstructor",l))}function Xdt(){return c3||(c3=zc("Symbol",0,!1))||Ko}function Fte(l){return C5||(C5=zc("Promise",1,l))||Ka}function e1t(l){return R1||(R1=zc("PromiseLike",1,l))||Ka}function sPe(l){return d3||(d3=oPe("Promise",l))}function Eei(l){return Wf||(Wf=zc("PromiseConstructorLike",0,l))||Ko}function Mge(l){return Q||(Q=zc("AsyncIterable",1,l))||Ka}function _ei(l){return Me||(Me=zc("AsyncIterator",3,l))||Ka}function Dei(l){return wt||(wt=zc("AsyncIterableIterator",1,l))||Ka}function xei(l){return ki||(ki=zc("AsyncGenerator",3,l))||Ka}function lPe(l){return m4||(m4=zc("Iterable",1,l))||Ka}function vei(l){return Vh||(Vh=zc("Iterator",3,l))||Ka}function Cei(l){return Ee||(Ee=zc("IterableIterator",1,l))||Ka}function bei(l){return Bt||(Bt=zc("Generator",3,l))||Ka}function yei(l){return Di||(Di=zc("IteratorYieldResult",1,l))||Ka}function kei(l){return Ci||(Ci=zc("IteratorReturnResult",1,l))||Ka}function t1t(l){return os||(os=zc("Disposable",0,l))||Ko}function Fei(l){return ss||(ss=zc("AsyncDisposable",0,l))||Ko}function i1t(l,m=0){const D=Cz(l,788968,void 0);return D&&$dt(D,m)}function Aei(){return Rl||(Rl=Pge("Extract",2,!0)||Xt),Rl===Xt?void 0:Rl}function Sei(){return x1||(x1=Pge("Omit",2,!0)||Xt),x1===Xt?void 0:x1}function cPe(l){return fd||(fd=Pge("Awaited",1,l)||(l?Xt:void 0)),fd===Xt?void 0:fd}function Bei(){return $m||($m=zc("BigInt",0,!1))||Ko}function wei(l){return Um??(Um=zc("ClassDecoratorContext",1,l))??Ka}function Tei(l){return h3??(h3=zc("ClassMethodDecoratorContext",2,l))??Ka}function Lei(l){return d_??(d_=zc("ClassGetterDecoratorContext",2,l))??Ka}function Nei(l){return ta??(ta=zc("ClassSetterDecoratorContext",2,l))??Ka}function Pei(l){return Xx??(Xx=zc("ClassAccessorDecoratorContext",2,l))??Ka}function Mei(l){return e6??(e6=zc("ClassAccessorDecoratorTarget",2,l))??Ka}function zei(l){return bg??(bg=zc("ClassAccessorDecoratorResult",2,l))??Ka}function Iei(l){return sb??(sb=zc("ClassFieldDecoratorContext",2,l))??Ka}function Rei(){return _s||(_s=oPe("NaN",!1))}function Oei(){return np||(np=Pge("Record",2,!0)||Xt),np===Xt?void 0:np}function oW(l,m){return l!==Ka?R5(l,m):Ko}function n1t(l){return oW(mei(),[l])}function u1t(l){return oW(lPe(!0),[l])}function V1(l,m){return oW(m?To:Fo,[l])}function dPe(l){switch(l.kind){case 190:return 2;case 191:return r1t(l);case 202:return l.questionToken?2:l.dotDotDotToken?r1t(l):1;default:return 1}}function r1t(l){return wte(l.type)?4:8}function jei(l){const m=Kei(l.parent);if(wte(l))return m?To:Fo;const C=Vt(l.elements,dPe);return hPe(C,m,Vt(l.elements,Vei))}function Vei(l){return GP(l)||io(l)?l:void 0}function a1t(l,m){return!!q9(l)||o1t(l)&&(l.kind===188?v6(l.elementType):l.kind===189?Oe(l.elements,v6):m||Oe(l.typeArguments,v6))}function o1t(l){const m=l.parent;switch(m.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return o1t(m);case 265:return!0}return!1}function v6(l){switch(l.kind){case 183:return Nge(l)||!!(oT(l,788968).flags&524288);case 186:return!0;case 198:return l.operator!==158&&v6(l.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return v6(l.type);case 191:return l.type.kind!==188||v6(l.type.elementType);case 192:case 193:return Oe(l.types,v6);case 199:return v6(l.objectType)||v6(l.indexType);case 194:return v6(l.checkType)||v6(l.extendsType)||v6(l.trueType)||v6(l.falseType)}return!1}function Hei(l){const m=ar(l);if(!m.resolvedType){const D=jei(l);if(D===Ka)m.resolvedType=Ko;else if(!(l.kind===189&&Oe(l.elements,C=>!!(dPe(C)&8)))&&a1t(l))m.resolvedType=l.kind===189&&l.elements.length===0?D:nPe(D,l,void 0);else{const C=l.kind===188?[Ar(l.elementType)]:Vt(l.elements,Ar);m.resolvedType=fPe(D,C)}}return m.resolvedType}function Kei(l){return z7(l)&&l.operator===148}function Bg(l,m,D=!1,C=[]){const A=hPe(m||Vt(l,w=>1),D,C);return A===Ka?Ko:l.length?fPe(A,l):A}function hPe(l,m,D){if(l.length===1&&l[0]&4)return m?To:Fo;const C=Vt(l,w=>w&1?"#":w&2?"?":w&4?".":"*").join()+(m?"R":"")+(Oe(D,w=>!!w)?","+Vt(D,w=>w?$s(w):"_").join(","):"");let A=Ba.get(C);return A||Ba.set(C,A=Wei(l,m,D)),A}function Wei(l,m,D){const C=l.length,A=ui(l,Te=>!!(Te&9));let w;const I=[];let U=0;if(C){w=new Array(C);for(let Te=0;Te!!(l.elementFlags[gi]&8&&zt.flags&1179648));if(ut>=0)return Ate(Vt(m,(zt,gi)=>l.elementFlags[gi]&8?zt:on))?hl(m[ut],zt=>mPe(l,qd(m,ut,zt))):Ot}const w=[],I=[],U=[];let Z=-1,ce=-1,Fe=-1;for(let ut=0;ut=1e4)return pt(K,q_(K)?F.Type_produces_a_tuple_type_that_is_too_large_to_represent:F.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ot;L(Wi,(dn,nu)=>{var En;return $e(dn,zt.target.elementFlags[nu],(En=zt.target.labeledElementDeclarations)==null?void 0:En[nu])})}else $e(H5(zt)&&yC(zt,Qt)||Ot,4,(C=l.labeledElementDeclarations)==null?void 0:C[ut]);else $e(zt,gi,(A=l.labeledElementDeclarations)==null?void 0:A[ut])}for(let ut=0;ut=0&&ceI[ce+zt]&8?qf(ut,Qt):ut)),w.splice(ce+1,Fe-ce),I.splice(ce+1,Fe-ce),U.splice(ce+1,Fe-ce));const Te=hPe(I,l.readonly,U);return Te===Ka?Ko:I.length?R5(Te,w):Te;function $e(ut,zt,gi){zt&1&&(Z=I.length),zt&4&&ce<0&&(ce=I.length),zt&6&&(Fe=I.length),w.push(zt&2?Vd(ut,!0):ut),I.push(zt),U.push(gi)}}function bz(l,m,D=0){const C=l.target,A=O5(l)-D;return m>C.fixedLength?wii(l)||Bg(_t):Bg(O0(l).slice(m,A),C.elementFlags.slice(m,A),!1,C.labeledElementDeclarations&&C.labeledElementDeclarations.slice(m,A))}function s1t(l){return er(xi(am(l.target.fixedLength,m=>df(""+m)),k_(l.target.readonly?To:Fo)))}function Gei(l,m){const D=Ue(l.elementFlags,C=>!(C&m));return D>=0?D:l.elementFlags.length}function sW(l,m){return l.elementFlags.length-Ze(l.elementFlags,D=>!(D&m))-1}function pPe(l){return l.fixedLength+sW(l,3)}function FC(l){const m=O0(l),D=O5(l);return m.length===D?m:m.slice(0,D)}function Jei(l){return Vd(Ar(l.type),!0)}function Fh(l){return l.id}function C6(l,m){return Kl(l,m,Fh,nl)>=0}function gPe(l,m){const D=Kl(l,m,Fh,nl);return D<0?(l.splice(~D,0,m),!0):!1}function $ei(l,m,D){const C=D.flags;if(!(C&131072))if(m|=C&473694207,C&465829888&&(m|=33554432),D===vi&&(m|=8388608),!fe&&C&98304)Gu(D)&65536||(m|=4194304);else{const A=l.length,w=A&&D.id>l[A-1].id?~A:Kl(l,D,Fh,nl);w<0&&l.splice(~w,0,D)}return m}function l1t(l,m,D){let C;for(const A of D)A!==C&&(m=A.flags&1048576?l1t(l,m|(Yei(A)?1048576:0),A.types):$ei(l,m,A),C=A);return m}function Uei(l,m){var D;if(l.length<2)return l;const C=hp(l),A=Yo.get(C);if(A)return A;const w=m&&Oe(l,ce=>!!(ce.flags&524288)&&!Xm(ce)&&IPe(Ag(ce))),I=l.length;let U=I,Z=0;for(;U>0;){U--;const ce=l[U];if(w||ce.flags&469499904){if(ce.flags&262144&&xD(ce).flags&1048576){bE(ce,er(Vt(l,$e=>$e===ce?Ku:$e)),p4)&&fv(l,U);continue}const Fe=ce.flags&61603840?Le(n0(ce),$e=>Tg(Wn($e))):void 0,Te=Fe&&Jh(Wn(Fe));for(const $e of l)if(ce!==$e){if(Z===1e5&&Z/(I-U)*I>1e6){(D=Gn)==null||D.instant(Gn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:l.map(zt=>zt.id)}),pt(K,F.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(Z++,Fe&&$e.flags&61603840){const ut=he($e,Fe.escapedName);if(ut&&Tg(ut)&&Jh(ut)!==Te)continue}if(bE(ce,$e,p4)&&(!(Gu(eT(ce))&1)||!(Gu(eT($e))&1)||TC(ce,$e))){fv(l,U);break}}}}return Yo.set(C,l),l}function qei(l,m,D){let C=l.length;for(;C>0;){C--;const A=l[C],w=A.flags;(w&402653312&&m&4||w&256&&m&8||w&2048&&m&64||w&8192&&m&4096||D&&w&32768&&m&16384||Pb(A)&&C6(l,A.regularType))&&fv(l,C)}}function Zei(l){const m=ti(l,D=>!!(D.flags&134217728)&&U9(D));if(m.length){let D=l.length;for(;D>0;){D--;const C=l[D];C.flags&128&&Oe(m,A=>pEe(C,A))&&fv(l,D)}}}function Yei(l){return!!(l.flags&1048576&&(l.aliasSymbol||l.origin))}function c1t(l,m){for(const D of m)if(D.flags&1048576){const C=D.origin;D.aliasSymbol||C&&!(C.flags&1048576)?xa(l,D):C&&C.flags&1048576&&c1t(l,C.types)}}function EPe(l,m){const D=Fb(l);return D.types=m,D}function er(l,m=1,D,C,A){if(l.length===0)return Ku;if(l.length===1)return l[0];if(l.length===2&&!A&&(l[0].flags&1048576||l[1].flags&1048576)){const w=m===0?"N":m===2?"S":"L",I=l[0].id=2&&w[0]===te&&w[1]===de&&fv(w,1),(I&402664352||I&16384&&I&32768)&&qei(w,I,!!(m&2)),I&128&&I&134217728&&Zei(w),m===2&&(w=Uei(w,!!(I&524288)),!w))return Ot;if(w.length===0)return I&65536?I&4194304?it:Ct:I&32768?I&4194304?te:we:Ku}if(!A&&I&1048576){const Z=[];c1t(Z,l);const ce=[];for(const Te of w)Oe(Z,$e=>C6($e.types,Te))||ce.push(Te);if(!D&&Z.length===1&&ce.length===0)return Z[0];if(nn(Z,(Te,$e)=>Te+$e.types.length,0)+ce.length===w.length){for(const Te of Z)gPe(ce,Te);A=EPe(1048576,ce)}}const U=(I&36323331?0:32768)|(I&2097152?16777216:0);return DPe(w,U,D,C,A)}function Qei(l,m){let D;const C=[];for(const w of l){const I=y4(w);if(I){if(I.kind!==0&&I.kind!==1||D&&!_Pe(D,I))return;D=I,C.push(I.type)}else{const U=m!==2097152?Zs(w):void 0;if(U!==Ui&&U!==Sn)return}}if(!D)return;const A=Ndt(C,m);return yte(D.kind,D.parameterName,D.parameterIndex,A)}function _Pe(l,m){return l.kind===m.kind&&l.parameterIndex===m.parameterIndex}function DPe(l,m,D,C,A){if(l.length===0)return Ku;if(l.length===1)return l[0];const I=(A?A.flags&1048576?`|${hp(A.types)}`:A.flags&2097152?`&${hp(A.types)}`:`#${A.type.id}|${hp(l)}`:hp(l))+J9(D,C);let U=bt.get(I);return U||(U=lp(1048576),U.objectFlags=m|wge(l,98304),U.types=l,U.origin=A,U.aliasSymbol=D,U.aliasTypeArguments=C,l.length===2&&l[0].flags&512&&l[1].flags&512&&(U.flags|=16,U.intrinsicName="boolean"),bt.set(I,U)),U}function Xei(l){const m=ar(l);if(!m.resolvedType){const D=q9(l);m.resolvedType=er(Vt(l.types,Ar),1,D,sT(D))}return m.resolvedType}function eti(l,m,D){const C=D.flags;return C&2097152?h1t(l,m,D.types):(yD(D)?m&16777216||(m|=16777216,l.set(D.id.toString(),D)):(C&3?D===vi&&(m|=8388608):(fe||!(C&98304))&&(D===de&&(m|=262144,D=te),l.has(D.id.toString())||(D.flags&109472&&m&109472&&(m|=67108864),l.set(D.id.toString(),D))),m|=C&473694207),m)}function h1t(l,m,D){for(const C of D)m=eti(l,m,Jh(C));return m}function tti(l,m){let D=l.length;for(;D>0;){D--;const C=l[D];(C.flags&4&&m&402653312||C.flags&8&&m&256||C.flags&64&&m&2048||C.flags&4096&&m&8192||C.flags&16384&&m&32768||yD(C)&&m&470302716)&&fv(l,D)}}function iti(l,m){for(const D of l)if(!C6(D.types,m)){const C=m.flags&128?ct:m.flags&288?Qt:m.flags&2048?Li:m.flags&8192?Xu:void 0;if(!C||!C6(D.types,C))return!1}return!0}function nti(l){let m=l.length;const D=ti(l,C=>!!(C.flags&128));for(;m>0;){m--;const C=l[m];if(C.flags&134217728){for(const A of D)if(F6(A,C)){fv(l,m);break}else if(U9(C))return!0}}return!1}function f1t(l,m){for(let D=0;D!(C.flags&m))}function uti(l){let m;const D=Ue(l,I=>!!(Gu(I)&32768));if(D<0)return!1;let C=D+1;for(;C!!(ce.flags&1048576&&ce.types[0].flags&32768))){const ce=Oe(I,EW)?de:te;f1t(I,32768),Z=er([Ds(I),ce],1,m,D)}else if(ye(I,ce=>!!(ce.flags&1048576&&(ce.types[0].flags&65536||ce.types[1].flags&65536))))f1t(I,65536),Z=er([Ds(I),it],1,m,D);else{if(!Ate(I))return Ot;const ce=ati(I),Fe=Oe(ce,Te=>!!(Te.flags&2097152))&&xPe(ce)>xPe(I)?EPe(2097152,I):void 0;Z=er(ce,1,m,D,Fe)}else Z=rti(I,m,D);Ln.set(U,Z)}return Z}function m1t(l){return nn(l,(m,D)=>D.flags&1048576?m*D.types.length:D.flags&131072?0:m,1)}function Ate(l){var m;const D=m1t(l);return D>=1e5?((m=Gn)==null||m.instant(Gn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:l.map(C=>C.id),size:D}),pt(K,F.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function ati(l){const m=m1t(l),D=[];for(let C=0;C=0;U--)if(l[U].flags&1048576){const Z=l[U].types,ce=Z.length;A[U]=Z[w%ce],w=Math.floor(w/ce)}const I=Ds(A);I.flags&131072||D.push(I)}return D}function p1t(l){return!(l.flags&3145728)||l.aliasSymbol?1:l.flags&1048576&&l.origin?p1t(l.origin):xPe(l.types)}function xPe(l){return nn(l,(m,D)=>m+p1t(D),0)}function oti(l){const m=ar(l);if(!m.resolvedType){const D=q9(l),C=Vt(l.types,Ar),A=C.length===2?C.indexOf(Lc):-1,w=A>=0?C[1-A]:on,I=!!(w.flags&76||w.flags&134217728&&U9(w));m.resolvedType=Ds(C,D,sT(D),I)}return m.resolvedType}function g1t(l,m){const D=lp(4194304);return D.type=l,D.indexFlags=m,D}function sti(l){const m=Fb(4194304);return m.type=l,m}function E1t(l,m){return m&1?l.resolvedStringIndexType||(l.resolvedStringIndexType=g1t(l,1)):l.resolvedIndexType||(l.resolvedIndexType=g1t(l,0))}function lti(l,m){const D=Fg(l),C=cp(l),A=I5(l.target||l);if(!A&&!(m&2))return C;const w=[];if(tW(l)){if(AC(C))return E1t(l,m);{const Z=Gh(K9(l));RNe(Z,8576,!!(m&1),U)}}else FF(vte(C),U);AC(C)&&FF(C,U);const I=m&2?Ic(er(w),Z=>!(Z.flags&5)):er(w);if(I.flags&1048576&&C.flags&1048576&&hp(I.types)===hp(C.types))return C;return I;function U(Z){const ce=A?_a(A,dW(l.mapper,D,Z)):Z;w.push(ce===ct?wo:ce)}}function cti(l){const m=Fg(l);return D(I5(l)||m);function D(C){return C.flags&470810623?!0:C.flags&16777216?C.root.isDistributive&&C.checkType===m:C.flags&137363456?ye(C.types,D):C.flags&8388608?D(C.objectType)&&D(C.indexType):C.flags&33554432?D(C.baseType)&&D(C.constraint):C.flags&268435456?D(C.type):!1}}function j5(l){if(Xr(l))return Ku;if(Of(l))return Jh(ya(l));if(Ps(l))return Jh(F3(l));const m=sk(l);return m!==void 0?df(Yr(m)):Wt(l)?Jh(ya(l)):Ku}function yz(l,m,D){if(D||!(l4(l)&6)){let C=Ur(yge(l)).nameType;if(!C){const A=Za(l.valueDeclaration);C=l.escapedName==="default"?df("default"):A&&j5(A)||(Ij(l)?void 0:df(lc(l)))}if(C&&C.flags&m)return C}return Ku}function _1t(l,m){return!!(l.flags&m||l.flags&2097152&&Oe(l.types,D=>_1t(D,m)))}function dti(l,m,D){const C=D&&(Gu(l)&7||l.aliasSymbol)?sti(l):void 0,A=Vt(n0(l),I=>yz(I,m)),w=Vt(kh(l),I=>I!==Tu&&_1t(I.keyType,m)?I.keyType===ct&&m&8?wo:I.keyType:Ku);return er(Hi(A,w),1,void 0,void 0,C)}function D1t(l,m=0){return!!(l.flags&58982400||K5(l)||Xm(l)&&!cti(l)||l.flags&1048576&&!(m&4)&&JNe(l)||l.flags&2097152&&jl(l,465829888)&&Oe(l.types,yD))}function k_(l,m=ft){return l=Sg(l),D1t(l,m)?E1t(l,m):l.flags&1048576?Ds(Vt(l.types,D=>k_(D,m))):l.flags&2097152?er(Vt(l.types,D=>k_(D,m))):Gu(l)&32?lti(l,m):l===vi?vi:l.flags&2?Ku:l.flags&131073?vc:dti(l,(m&2?128:402653316)|(m&1?0:12584),m===ft)}function x1t(l){if(Je)return l;const m=Aei();return m?aT(m,[l,ct]):ct}function hti(l){const m=x1t(k_(l));return m.flags&131072?ct:m}function fti(l){const m=ar(l);if(!m.resolvedType)switch(l.operator){case 143:m.resolvedType=k_(Ar(l.type));break;case 158:m.resolvedType=l.type.kind===155?SPe(Lj(l.parent)):Ot;break;case 148:m.resolvedType=Ar(l.type);break;default:H.assertNever(l.operator)}return m.resolvedType}function mti(l){const m=ar(l);return m.resolvedType||(m.resolvedType=xF([l.head.text,...Vt(l.templateSpans,D=>D.literal.text)],Vt(l.templateSpans,D=>Ar(D.type)))),m.resolvedType}function xF(l,m){const D=Ue(m,ce=>!!(ce.flags&1179648));if(D>=0)return Ate(m)?hl(m[D],ce=>xF(l,qd(m,D,ce))):Ot;if(kt(m,vi))return vi;const C=[],A=[];let w=l[0];if(!Z(l,m))return ct;if(C.length===0)return df(w);if(A.push(w),ye(A,ce=>ce==="")){if(ye(C,ce=>!!(ce.flags&4)))return ct;if(C.length===1&&U9(C[0]))return C[0]}const I=`${hp(C)}|${Vt(A,ce=>ce.length).join(",")}|${A.join("")}`;let U=Da.get(I);return U||Da.set(I,U=gti(A,C)),U;function Z(ce,Fe){for(let Te=0;Te$9(l,D)):m.flags&128?df(v1t(l,m.value)):m.flags&134217728?xF(...Eti(l,m.texts,m.types)):m.flags&268435456&&l===m.symbol?m:m.flags&268435461||AC(m)?C1t(l,m):Ste(m)?C1t(l,xF(["",""],[m])):m}function v1t(l,m){switch(tQ.get(l.escapedName)){case 0:return m.toUpperCase();case 1:return m.toLowerCase();case 2:return m.charAt(0).toUpperCase()+m.slice(1);case 3:return m.charAt(0).toLowerCase()+m.slice(1)}return m}function Eti(l,m,D){switch(tQ.get(l.escapedName)){case 0:return[m.map(C=>C.toUpperCase()),D.map(C=>$9(l,C))];case 1:return[m.map(C=>C.toLowerCase()),D.map(C=>$9(l,C))];case 2:return[m[0]===""?m:[m[0].charAt(0).toUpperCase()+m[0].slice(1),...m.slice(1)],m[0]===""?[$9(l,D[0]),...D.slice(1)]:D];case 3:return[m[0]===""?m:[m[0].charAt(0).toLowerCase()+m[0].slice(1),...m.slice(1)],m[0]===""?[$9(l,D[0]),...D.slice(1)]:D]}return[m,D]}function C1t(l,m){const D=`${Zo(l)},${Fh(m)}`;let C=ua.get(D);return C||ua.set(D,C=_ti(l,m)),C}function _ti(l,m){const D=N5(268435456,l);return D.type=m,D}function Dti(l,m,D,C,A){const w=lp(8388608);return w.objectType=l,w.indexType=m,w.accessFlags=D,w.aliasSymbol=C,w.aliasTypeArguments=A,w}function lW(l){if(Ae)return!1;if(Gu(l)&4096)return!0;if(l.flags&1048576)return ye(l.types,lW);if(l.flags&2097152)return Oe(l.types,lW);if(l.flags&465829888){const m=HNe(l);return m!==l&&lW(m)}return!1}function zge(l,m){return Y4(l)?Q4(l):m&&Sc(m)?sk(m):void 0}function vPe(l,m){if(m.flags&8208){const D=Tn(l.parent,C=>!I0(C))||l.parent;return D2(D)?$E(D)&&at(l)&&Tht(D,l):ye(m.declarations,C=>!Co(C)||aC(C))}return!0}function b1t(l,m,D,C,A,w){const I=A&&A.kind===212?A:void 0,U=A&&Xr(A)?void 0:zge(D,A);if(U!==void 0){if(w&256)return Ob(m,U)||me;const ce=qo(m,U);if(ce){if(w&64&&A&&ce.declarations&&S5(ce)&&vPe(A,ce)){const Te=(I==null?void 0:I.argumentExpression)??(I7(A)?A.indexType:A);m3(Te,ce.declarations,U)}if(I){if(nie(ce,I,Rft(I.expression,m.symbol)),kmt(I,ce,f7(I))){pt(I.argumentExpression,F.Cannot_assign_to_0_because_it_is_a_read_only_property,Fr(ce));return}if(w&8&&(ar(A).resolvedSymbol=ce),Tft(I,ce))return ni}const Fe=w&4?mF(ce):Wn(ce);return I&&f7(I)!==1?w6(I,Fe):A&&I7(A)&&EW(Fe)?er([Fe,te]):Fe}if(e4(m,xs)&&i3(U)){const Fe=+U;if(A&&e4(m,Te=>!Te.target.hasRestElement)&&!(w&16)){const Te=CPe(A);if(xs(m)){if(Fe<0)return pt(Te,F.A_tuple_type_cannot_be_indexed_with_a_negative_value),te;pt(Te,F.Tuple_type_0_of_length_1_has_no_element_at_index_2,gn(m),O5(m),Yr(U))}else pt(Te,F.Property_0_does_not_exist_on_type_1,Yr(U),gn(m))}if(Fe>=0)return Z(k3(m,Qt)),dht(m,Fe,w&1?de:void 0)}}if(!(D.flags&98304)&&u1(D,402665900)){if(m.flags&131073)return m;const ce=nW(m,D)||k3(m,ct);if(ce){if(w&2&&ce.keyType!==Qt){I&&(w&4?pt(I,F.Type_0_is_generic_and_can_only_be_indexed_for_reading,gn(l)):pt(I,F.Type_0_cannot_be_used_to_index_type_1,gn(D),gn(l)));return}if(A&&ce.keyType===ct&&!u1(D,12)){const Fe=CPe(A);return pt(Fe,F.Type_0_cannot_be_used_as_an_index_type,gn(D)),w&1?er([ce.type,de]):ce.type}return Z(ce),w&1&&!(m.symbol&&m.symbol.flags&384&&D.symbol&&D.flags&1024&&cf(D.symbol)===m.symbol)?er([ce.type,de]):ce.type}if(D.flags&131072)return Ku;if(lW(m))return me;if(I&&!WEe(m)){if(PC(m)){if(Ae&&D.flags&384)return Vs.add(Su(I,F.Property_0_does_not_exist_on_type_1,D.value,gn(m))),te;if(D.flags&12){const Fe=Vt(m.properties,Te=>Wn(Te));return er(xi(Fe,te))}}if(m.symbol===St&&U!==void 0&&St.exports.has(U)&&St.exports.get(U).flags&418)pt(I,F.Property_0_does_not_exist_on_type_1,Yr(U),gn(m));else if(Ae&&!ae.suppressImplicitAnyIndexErrors&&!(w&128))if(U!==void 0&&Mft(U,m)){const Fe=gn(m);pt(I,F.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,U,Fe,Fe+"["+Hc(I.argumentExpression)+"]")}else if(yC(m,Qt))pt(I.argumentExpression,F.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Fe;if(U!==void 0&&(Fe=$Me(U,m)))Fe!==void 0&&pt(I.argumentExpression,F.Property_0_does_not_exist_on_type_1_Did_you_mean_2,U,gn(m),Fe);else{const Te=pri(m,I,D);if(Te!==void 0)pt(I,F.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,gn(m),Te);else{let $e;if(D.flags&1024)$e=ro(void 0,F.Property_0_does_not_exist_on_type_1,"["+gn(D)+"]",gn(m));else if(D.flags&8192){const ut=op(D.symbol,I);$e=ro(void 0,F.Property_0_does_not_exist_on_type_1,"["+ut+"]",gn(m))}else D.flags&128||D.flags&256?$e=ro(void 0,F.Property_0_does_not_exist_on_type_1,D.value,gn(m)):D.flags&12&&($e=ro(void 0,F.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,gn(D),gn(m)));$e=ro($e,F.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,gn(C),gn(m)),Vs.add(Y3(zn(I),I,$e))}}}return}}if(lW(m))return me;if(A){const ce=CPe(A);D.flags&384?pt(ce,F.Property_0_does_not_exist_on_type_1,""+D.value,gn(m)):D.flags&12?pt(ce,F.Type_0_has_no_matching_index_signature_for_type_1,gn(m),gn(D)):pt(ce,F.Type_0_cannot_be_used_as_an_index_type,gn(D))}if(nt(D))return D;return;function Z(ce){ce&&ce.isReadonly&&I&&(Q_(I)||V0e(I))&&pt(I,F.Index_signature_in_type_0_only_permits_reading,gn(m))}}function CPe(l){return l.kind===212?l.argumentExpression:l.kind===199?l.indexType:l.kind===167?l.expression:l}function Ste(l){if(l.flags&2097152){let m=!1;for(const D of l.types)if(D.flags&101248||Ste(D))m=!0;else if(!(D.flags&524288))return!1;return m}return!!(l.flags&77)||U9(l)}function U9(l){return!!(l.flags&134217728)&&ye(l.types,Ste)||!!(l.flags&268435456)&&Ste(l.type)}function kz(l){return!!cW(l)}function Lb(l){return!!(cW(l)&4194304)}function AC(l){return!!(cW(l)&8388608)}function cW(l){return l.flags&3145728?(l.objectFlags&2097152||(l.objectFlags|=2097152|nn(l.types,(m,D)=>m|cW(D),0)),l.objectFlags&12582912):l.flags&33554432?(l.objectFlags&2097152||(l.objectFlags|=2097152|cW(l.baseType)|cW(l.constraint)),l.objectFlags&12582912):(l.flags&58982400||Xm(l)||K5(l)?4194304:0)|(l.flags&465829888&&!U9(l)?8388608:0)}function vD(l,m){return l.flags&8388608?vti(l,m):l.flags&16777216?Cti(l,m):l}function y1t(l,m,D){if(l.flags&1048576||l.flags&2097152&&!D1t(l)){const C=Vt(l.types,A=>vD(qf(A,m),D));return l.flags&2097152||D?Ds(C):er(C)}}function xti(l,m,D){if(m.flags&1048576){const C=Vt(m.types,A=>vD(qf(l,A),D));return D?Ds(C):er(C)}}function vti(l,m){const D=m?"simplifiedForWriting":"simplifiedForReading";if(l[D])return l[D]===Uc?l:l[D];l[D]=Uc;const C=vD(l.objectType,m),A=vD(l.indexType,m),w=xti(C,A,m);if(w)return l[D]=w;if(!(A.flags&465829888)){const I=y1t(C,A,m);if(I)return l[D]=I}if(K5(C)&&A.flags&296){const I=wz(C,A.flags&8?0:C.target.fixedLength,0,m);if(I)return l[D]=I}return Xm(C)&&(!I5(C)||vdt(C))?l[D]=hl(Ige(C,l.indexType),I=>vD(I,m)):l[D]=l}function Cti(l,m){const D=l.checkType,C=l.extendsType,A=SC(l),w=BC(l);if(w.flags&131072&&y6(A)===y6(D)){if(D.flags&1||ms(vF(D),vF(C)))return vD(A,m);if(k1t(D,C))return Ku}else if(A.flags&131072&&y6(w)===y6(D)){if(!(D.flags&1)&&ms(vF(D),vF(C)))return Ku;if(D.flags&1||k1t(D,C))return vD(w,m)}return l}function k1t(l,m){return!!(er([xte(l,m),Ku]).flags&131072)}function Ige(l,m){const D=Sf([Fg(l)],[m]),C=wC(l.mapper,D);return _a(DD(l.target||l),C)}function qf(l,m,D=0,C,A,w){return b6(l,m,D,C,A,w)||(C?Ot:on)}function F1t(l,m){return e4(l,D=>{if(D.flags&384){const C=Q4(D);if(i3(C)){const A=+C;return A>=0&&A0&&!Oe(l.elements,m=>Dce(m)||xce(m)||GP(m)&&!!(m.questionToken||m.dotDotDotToken))}function B1t(l,m){return kz(l)||m&&xs(l)&&Oe(FC(l),kz)}function yPe(l,m,D,C){let A,w,I=0;for(;;){if(I===1e3)return pt(K,F.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ot;const Z=_a(y6(l.checkType),m),ce=_a(l.extendsType,m);if(Z===Ot||ce===Ot)return Ot;if(Z===vi||ce===vi)return vi;const Fe=S1t(l.node.checkType)&&S1t(l.node.extendsType)&&S(l.node.checkType.elements)===S(l.node.extendsType.elements),Te=B1t(Z,Fe);let $e;if(l.inferTypeParameters){const zt=Lu(l.inferTypeParameters,bti),gi=zt!==l.inferTypeParameters?Sf(l.inferTypeParameters,zt):void 0,Wi=DW(zt,void 0,0);if(gi){const nu=wC(m,gi);for(let En=0;Enk6(gi,Te)),ut=Sf(Fe.outerTypeParameters,$e),zt=Fe.isDistributive?k6(Fe.checkType,ut):void 0;if(!zt||zt===Fe.checkType||!(zt.flags&1179648))return l=Fe,m=ut,D=void 0,C=void 0,Fe.aliasSymbol&&I++,!0}}return!1}}function SC(l){return l.resolvedTrueType||(l.resolvedTrueType=_a(Ar(l.root.node.trueType),l.mapper))}function BC(l){return l.resolvedFalseType||(l.resolvedFalseType=_a(Ar(l.root.node.falseType),l.mapper))}function yti(l){return l.resolvedInferredTrueType||(l.resolvedInferredTrueType=l.combinedMapper?_a(Ar(l.root.node.trueType),l.combinedMapper):SC(l))}function w1t(l){let m;return l.locals&&l.locals.forEach(D=>{D.flags&262144&&(m=xi(m,X0(D)))}),m}function kti(l){return l.isDistributive&&(Lte(l.checkType,l.node.trueType)||Lte(l.checkType,l.node.falseType))}function Fti(l){const m=ar(l);if(!m.resolvedType){const D=Ar(l.checkType),C=q9(l),A=sT(C),w=_z(l,!0),I=A?w:ti(w,Z=>Lte(Z,l)),U={node:l,checkType:D,extendsType:Ar(l.extendsType),isDistributive:!!(D.flags&262144),inferTypeParameters:w1t(l),outerTypeParameters:I,instantiations:void 0,aliasSymbol:C,aliasTypeArguments:A};m.resolvedType=yPe(U,void 0),I&&(U.instantiations=new Map,U.instantiations.set(hp(I),m.resolvedType))}return m.resolvedType}function Ati(l){const m=ar(l);return m.resolvedType||(m.resolvedType=gF(_u(l.typeParameter))),m.resolvedType}function T1t(l){return at(l)?[l]:xi(T1t(l.left),l.right)}function Sti(l){var m;const D=ar(l);if(!D.resolvedType){if(!zx(l))return pt(l.argument,F.String_literal_expected),D.resolvedSymbol=Xt,D.resolvedType=Ot;const C=l.isTypeOf?111551:l.flags&16777216?900095:788968,A=Kh(l,l.argument.literal);if(!A)return D.resolvedSymbol=Xt,D.resolvedType=Ot;const w=!!((m=A.exports)!=null&&m.get("export=")),I=_m(A,!1);if(Ql(l.qualifier))if(I.flags&C)D.resolvedType=L1t(l,D,I,C);else{const U=C===111551?F.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:F.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;pt(l,U,l.argument.literal.text),D.resolvedSymbol=Xt,D.resolvedType=Ot}else{const U=T1t(l.qualifier);let Z=I,ce;for(;ce=U.shift();){const Fe=U.length?1920:C,Te=Ks(yc(Z)),$e=l.isTypeOf||Qn(l)&&w?qo(Wn(Te),ce.escapedText,!1,!0):void 0,zt=(l.isTypeOf?void 0:kf($f(Te),ce.escapedText,Fe))??$e;if(!zt)return pt(ce,F.Namespace_0_has_no_exported_member_1,op(Z),b0(ce)),D.resolvedType=Ot;ar(ce).resolvedSymbol=zt,ar(ce.parent).resolvedSymbol=zt,Z=zt}D.resolvedType=L1t(l,D,Z,C)}}return D.resolvedType}function L1t(l,m,D,C){const A=yc(D);return m.resolvedSymbol=A,C===111551?cmt(Wn(D),l):Lge(l,A)}function N1t(l){const m=ar(l);if(!m.resolvedType){const D=q9(l);if(_6(l.symbol).size===0&&!D)m.resolvedType=Lc;else{let C=D4(16,l.symbol);C.aliasSymbol=D,C.aliasTypeArguments=sT(D),K7(l)&&l.isArrayType&&(C=V1(C)),m.resolvedType=C}}return m.resolvedType}function q9(l){let m=l.parent;for(;M7(m)||kk(m)||z7(m)&&m.operator===148;)m=m.parent;return Sj(m)?_u(m):void 0}function sT(l){return l?sn(l):void 0}function Rge(l){return!!(l.flags&524288)&&!Xm(l)}function kPe(l){return bD(l)||!!(l.flags&474058748)}function FPe(l,m){if(!(l.flags&1048576))return l;if(ye(l.types,kPe))return Le(l.types,bD)||Ko;const D=Le(l.types,w=>!kPe(w));if(!D||Le(l.types,w=>w!==D&&!kPe(w)))return l;return A(D);function A(w){const I=Vo();for(const Z of n0(w))if(!(l4(Z)&6)){if(Oge(Z)){const ce=Z.flags&65536&&!(Z.flags&32768),Te=Hs(16777220,Z.escapedName,INe(Z)|(m?8:0));Te.links.type=ce?te:Vd(Wn(Z),!0),Te.declarations=Z.declarations,Te.links.nameType=Ur(Z).nameType,Te.links.syntheticOrigin=Z,I.set(Z.escapedName,Te)}}const U=Ol(w.symbol,I,_t,_t,kh(w));return U.objectFlags|=131200,U}}function Nb(l,m,D,C,A){if(l.flags&1||m.flags&1)return me;if(l.flags&2||m.flags&2)return on;if(l.flags&131072)return m;if(m.flags&131072)return l;if(l=FPe(l,A),l.flags&1048576)return Ate([l,m])?hl(l,ce=>Nb(ce,m,D,C,A)):Ot;if(m=FPe(m,A),m.flags&1048576)return Ate([l,m])?hl(m,ce=>Nb(l,ce,D,C,A)):Ot;if(m.flags&473960444)return l;if(Lb(l)||Lb(m)){if(bD(l))return m;if(l.flags&2097152){const ce=l.types,Fe=ce[ce.length-1];if(Rge(Fe)&&Rge(m))return Ds(Hi(ce.slice(0,ce.length-1),[Nb(Fe,m,D,C,A)]))}return Ds([l,m])}const w=Vo(),I=new Set,U=l===Ko?kh(m):pdt([l,m]);for(const ce of n0(m))l4(ce)&6?I.add(ce.escapedName):Oge(ce)&&w.set(ce.escapedName,APe(ce,A));for(const ce of n0(l))if(!(I.has(ce.escapedName)||!Oge(ce)))if(w.has(ce.escapedName)){const Fe=w.get(ce.escapedName),Te=Wn(Fe);if(Fe.flags&16777216){const $e=Hi(ce.declarations,Fe.declarations),ut=4|ce.flags&16777216,zt=Hs(ut,ce.escapedName),gi=Wn(ce),Wi=lEe(gi),dn=lEe(Te);zt.links.type=Wi===dn?gi:er([gi,dn],2),zt.links.leftSpread=ce,zt.links.rightSpread=Fe,zt.declarations=$e,zt.links.nameType=Ur(ce).nameType,w.set(ce.escapedName,zt)}}else w.set(ce.escapedName,APe(ce,A));const Z=Ol(D,w,_t,_t,Lu(U,ce=>Bti(ce,A)));return Z.objectFlags|=2228352|C,Z}function Oge(l){var m;return!Oe(l.declarations,ph)&&(!(l.flags&106496)||!((m=l.declarations)!=null&&m.some(D=>mr(D.parent))))}function APe(l,m){const D=l.flags&65536&&!(l.flags&32768);if(!D&&m===Ng(l))return l;const C=4|l.flags&16777216,A=Hs(C,l.escapedName,INe(l)|(m?8:0));return A.links.type=D?te:Wn(l),A.declarations=l.declarations,A.links.nameType=Ur(l).nameType,A.links.syntheticOrigin=l,A}function Bti(l,m){return l.isReadonly!==m?y_(l.keyType,l.type,m,l.declaration):l}function Bte(l,m,D,C){const A=N5(l,D);return A.value=m,A.regularType=C||A,A}function Z9(l){if(l.flags&2976){if(!l.freshType){const m=Bte(l.flags,l.value,l.symbol,l);m.freshType=m,l.freshType=m}return l.freshType}return l}function Jh(l){return l.flags&2976?l.regularType:l.flags&1048576?l.regularType||(l.regularType=hl(l,Jh)):l}function Pb(l){return!!(l.flags&2976)&&l.freshType===l}function df(l){let m;return Si.get(l)||(Si.set(l,m=Bte(128,l)),m)}function wg(l){let m;return Dn.get(l)||(Dn.set(l,m=Bte(256,l)),m)}function jge(l){let m;const D=I2(l);return Cn.get(D)||(Cn.set(D,m=Bte(2048,l)),m)}function wti(l,m,D){let C;const A=`${m}${typeof l=="string"?"@":"#"}${l}`,w=1024|(typeof l=="string"?128:256);return tu.get(A)||(tu.set(A,C=Bte(w,l,D)),C)}function Tti(l){if(l.literal.kind===106)return it;const m=ar(l);return m.resolvedType||(m.resolvedType=Jh(ya(l.literal))),m.resolvedType}function Lti(l){const m=N5(8192,l);return m.escapedName=`__@${m.symbol.escapedName}@${Zo(m.symbol)}`,m}function SPe(l){if($be(l)){const m=sq(l)?Dm(l.left):Dm(l);if(m){const D=Ur(m);return D.uniqueESSymbolType||(D.uniqueESSymbolType=Lti(m))}}return Xu}function Nti(l){const m=tf(l,!1,!1),D=m&&m.parent;if(D&&(mr(D)||D.kind===264)&&!No(m)&&(!hc(m)||S2(l,m.body)))return b4(_u(D)).thisType;if(D&&ys(D)&&Xn(D.parent)&&Xl(D.parent)===6)return b4(Dm(D.parent.left).parent).thisType;const C=l.flags&16777216?kv(l):void 0;return C&&A0(C)&&Xn(C.parent)&&Xl(C.parent)===3?b4(Dm(C.parent.left).parent).thisType:AE(m)&&S2(l,m.body)?b4(_u(m)).thisType:(pt(l,F.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ot)}function Vge(l){const m=ar(l);return m.resolvedType||(m.resolvedType=Nti(l)),m.resolvedType}function P1t(l){return Ar(wte(l.type)||l.type)}function wte(l){switch(l.kind){case 196:return wte(l.type);case 189:if(l.elements.length===1&&(l=l.elements[0],l.kind===191||l.kind===202&&l.dotDotDotToken))return wte(l.type);break;case 188:return l.elementType}}function Pti(l){const m=ar(l);return m.resolvedType||(m.resolvedType=l.dotDotDotToken?P1t(l):Vd(Ar(l.type),!0,!!l.questionToken))}function Ar(l){return hei(M1t(l),l)}function M1t(l){switch(l.kind){case 133:case 319:case 320:return me;case 159:return on;case 154:return ct;case 150:return Qt;case 163:return Li;case 136:return pr;case 155:return Xu;case 116:return ca;case 157:return te;case 106:return it;case 146:return Ku;case 151:return l.flags&524288&&!Ae?me:as;case 141:return Qi;case 197:case 110:return Vge(l);case 201:return Tti(l);case 183:return aPe(l);case 182:return l.assertsModifier?ca:pr;case 233:return aPe(l);case 186:return Jdt(l);case 188:case 189:return Hei(l);case 190:return Jei(l);case 192:return Xei(l);case 193:return oti(l);case 321:return fei(l);case 323:return Vd(Ar(l.type));case 202:return Pti(l);case 196:case 322:case 316:return Ar(l.type);case 191:return P1t(l);case 325:return T0i(l);case 184:case 185:case 187:case 329:case 324:case 330:return N1t(l);case 198:return fti(l);case 199:return A1t(l);case 200:return bPe(l);case 194:return Fti(l);case 195:return Ati(l);case 203:return mti(l);case 205:return Sti(l);case 80:case 166:case 211:const m=Yp(l);return m?X0(m):Ot;default:return Ot}}function Hge(l,m,D){if(l&&l.length)for(let C=0;CC.typeParameter),Vt(D,()=>on))}function wC(l,m){return l?Wge(4,l,m):m}function Iti(l,m){return l?Wge(5,l,m):m}function Y9(l,m,D){return D?Wge(5,Mb(l,m),D):Mb(l,m)}function dW(l,m,D){return l?Wge(5,l,Mb(m,D)):Mb(m,D)}function Rti(l){return!l.constraint&&!iPe(l)||l.constraint===dl?l:l.restrictiveInstantiation||(l.restrictiveInstantiation=j1(l.symbol),l.restrictiveInstantiation.constraint=dl,l.restrictiveInstantiation)}function Gge(l){const m=j1(l.symbol);return m.target=l,m}function Oti(l,m){return yte(l.kind,l.parameterName,l.parameterIndex,_a(l.type,m))}function lT(l,m,D){let C;if(l.typeParameters&&!D){C=Vt(l.typeParameters,Gge),m=wC(Sf(l.typeParameters,C),m);for(const w of C)w.mapper=m}const A=y3(l.declaration,C,l.thisParameter&&wPe(l.thisParameter,m),Hge(l.parameters,m,wPe),void 0,void 0,l.minArgumentCount,l.flags&167);return A.target=l,A.mapper=m,A}function wPe(l,m){const D=Ur(l);if(D.type&&!NC(D.type)&&(!(l.flags&65536)||D.writeType&&!NC(D.writeType)))return l;Gl(l)&1&&(l=D.target,m=wC(D.mapper,m));const C=Hs(l.flags,l.escapedName,1|Gl(l)&53256);return C.declarations=l.declarations,C.parent=l.parent,C.links.target=l,C.links.mapper=m,l.valueDeclaration&&(C.valueDeclaration=l.valueDeclaration),D.nameType&&(C.links.nameType=D.nameType),C}function jti(l,m,D,C){const A=l.objectFlags&4||l.objectFlags&8388608?l.node:l.symbol.declarations[0],w=ar(A),I=l.objectFlags&4?w.resolvedType:l.objectFlags&64?l.target:l;let U=w.outerTypeParameters;if(!U){let Z=_z(A,!0);if(AE(A)){const Fe=Tdt(A);Z=yn(Z,Fe)}U=Z||_t;const ce=l.objectFlags&8388612?[A]:l.symbol.declarations;U=(I.objectFlags&8388612||I.symbol.flags&8192||I.symbol.flags&2048)&&!I.aliasTypeArguments?ti(U,Fe=>Oe(ce,Te=>Lte(Fe,Te))):U,w.outerTypeParameters=U}if(U.length){const Z=wC(l.mapper,m),ce=Vt(U,zt=>k6(zt,Z)),Fe=D||l.aliasSymbol,Te=D?C:V5(l.aliasTypeArguments,m),$e=hp(ce)+J9(Fe,Te);I.instantiations||(I.instantiations=new Map,I.instantiations.set(hp(U)+J9(I.aliasSymbol,I.aliasTypeArguments),I));let ut=I.instantiations.get($e);if(!ut){const zt=Sf(U,ce);ut=I.objectFlags&4?nPe(l.target,l.node,zt,Fe,Te):I.objectFlags&32?R1t(I,zt,Fe,Te):LPe(I,zt,Fe,Te),I.instantiations.set($e,ut);const gi=Gu(ut);if(ut.flags&3899393&&!(gi&524288)){const Wi=Oe(ce,NC);Gu(ut)&524288||(gi&52?ut.objectFlags|=524288|(Wi?1048576:0):ut.objectFlags|=Wi?0:524288)}}return ut}return l}function Vti(l){return!(l.parent.kind===183&&l.parent.typeArguments&&l===l.parent.typeName||l.parent.kind===205&&l.parent.typeArguments&&l===l.parent.qualifier)}function Lte(l,m){if(l.symbol&&l.symbol.declarations&&l.symbol.declarations.length===1){const C=l.symbol.declarations[0].parent;for(let A=m;A!==C;A=A.parent)if(!A||A.kind===241||A.kind===194&&ao(A.extendsType,D))return!0;return D(m)}return!0;function D(C){switch(C.kind){case 197:return!!l.isThisType;case 80:return!l.isThisType&&q_(C)&&Vti(C)&&M1t(C)===l;case 186:const A=C.exprName,w=hm(A);if(!N2(w)){const I=Zp(w),U=l.symbol.declarations[0],Z=U.kind===168?U.parent:l.isThisType?U:void 0;if(I.declarations&&Z)return Oe(I.declarations,ce=>S2(ce,Z))||Oe(C.typeArguments,D)}return!0;case 174:case 173:return!C.type&&!!C.body||Oe(C.typeParameters,D)||Oe(C.parameters,D)||!!C.type&&D(C.type)}return!!ao(C,D)}}function Jge(l){const m=cp(l);if(m.flags&4194304){const D=y6(m.type);if(D.flags&262144)return D}}function R1t(l,m,D,C){const A=Jge(l);if(A){const w=_a(A,m);if(A!==w)return Vht(Sg(w),I=>{if(I.flags&61603843&&I!==vi&&!Nt(I)){if(!l.declaration.nameType){let U;if(A4(I)||I.flags&1&&xC(A,4)<0&&(U=rh(A))&&e4(U,zb))return Kti(I,l,Y9(A,I,m));if(K5(I))return Hti(I,l,A,m);if(xs(I))return Wti(I,l,Y9(A,I,m))}return LPe(l,Y9(A,I,m))}return I},D,C)}return _a(cp(l),m)===vi?vi:LPe(l,m,D,C)}function TPe(l,m){return m&1?!0:m&2?!1:l}function Hti(l,m,D,C){const A=l.target.elementFlags,w=Vt(FC(l),(U,Z)=>{const ce=A[Z]&8?U:A[Z]&4?V1(U):Bg([U],[A[Z]]);return ce===D?m:R1t(m,Y9(D,ce,C))}),I=TPe(l.target.readonly,C_(m));return Bg(w,Vt(w,U=>8),I)}function Kti(l,m,D){const C=O1t(m,Qt,!0,D);return Nt(C)?Ot:V1(C,TPe(Sz(l),C_(m)))}function Wti(l,m,D){const C=l.target.elementFlags,A=Vt(FC(l),(Z,ce)=>O1t(m,df(""+ce),!!(C[ce]&2),D)),w=C_(m),I=w&4?Vt(C,Z=>Z&1?2:Z):w&8?Vt(C,Z=>Z&2?1:Z):C,U=TPe(l.target.readonly,w);return kt(A,Ot)?Ot:Bg(A,I,U,l.target.labeledElementDeclarations)}function O1t(l,m,D,C){const A=dW(C,Fg(l),m),w=_a(DD(l.target||l),A),I=C_(l);return fe&&I&4&&!jl(w,49152)?S6(w,!0):fe&&I&8&&D?mp(w,524288):w}function LPe(l,m,D,C){const A=D4(l.objectFlags&-1572865|64,l.symbol);if(l.objectFlags&32){A.declaration=l.declaration;const w=Fg(l),I=Gge(w);A.typeParameter=I,m=wC(Mb(w,I),m),I.mapper=m}return l.objectFlags&8388608&&(A.node=l.node),A.target=l,A.mapper=m,A.aliasSymbol=D||l.aliasSymbol,A.aliasTypeArguments=D?C:V5(l.aliasTypeArguments,m),A.objectFlags|=A.aliasTypeArguments?wge(A.aliasTypeArguments):0,A}function NPe(l,m,D,C){const A=l.root;if(A.outerTypeParameters){const w=Vt(A.outerTypeParameters,Z=>k6(Z,m)),I=hp(w)+J9(D,C);let U=A.instantiations.get(I);if(!U){const Z=Sf(A.outerTypeParameters,w),ce=A.checkType,Fe=A.isDistributive?k6(ce,Z):void 0;U=Fe&&ce!==Fe&&Fe.flags&1179648?Vht(Sg(Fe),Te=>yPe(A,Y9(ce,Te,Z)),D,C):yPe(A,Z,D,C),A.instantiations.set(I,U)}return U}return l}function _a(l,m){return l&&m?j1t(l,m,void 0,void 0):l}function j1t(l,m,D,C){var A;if(!NC(l))return l;if(j===100||z>=5e6)return(A=Gn)==null||A.instant(Gn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:l.id,instantiationDepth:j,instantiationCount:z}),pt(K,F.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ot;M++,z++,j++;const w=Gti(l,m,D,C);return j--,w}function Gti(l,m,D,C){const A=l.flags;if(A&262144)return k6(l,m);if(A&524288){const w=l.objectFlags;if(w&52){if(w&4&&!l.node){const I=l.resolvedTypeArguments,U=V5(I,m);return U!==I?fPe(l.target,U):l}return w&1024?Jti(l,m):jti(l,m,D,C)}return l}if(A&3145728){const w=l.flags&1048576?l.origin:void 0,I=w&&w.flags&3145728?w.types:l.types,U=V5(I,m);if(U===I&&D===l.aliasSymbol)return l;const Z=D||l.aliasSymbol,ce=D?C:V5(l.aliasTypeArguments,m);return A&2097152||w&&w.flags&2097152?Ds(U,Z,ce):er(U,1,Z,ce)}if(A&4194304)return k_(_a(l.type,m));if(A&134217728)return xF(l.texts,V5(l.types,m));if(A&268435456)return $9(l.symbol,_a(l.type,m));if(A&8388608){const w=D||l.aliasSymbol,I=D?C:V5(l.aliasTypeArguments,m);return qf(_a(l.objectType,m),_a(l.indexType,m),l.accessFlags,void 0,w,I)}if(A&16777216)return NPe(l,wC(l.mapper,m),D,C);if(A&33554432){const w=_a(l.baseType,m),I=_a(l.constraint,m);return w.flags&8650752&&kz(I)?uPe(w,I):I.flags&3||ms(vF(w),vF(I))?w:w.flags&8650752?uPe(w,I):Ds([I,w])}return l}function Jti(l,m){const D=_a(l.mappedType,m);if(!(Gu(D)&32))return l;const C=_a(l.constraintType,m);if(!(C.flags&4194304))return l;const A=Dht(_a(l.source,m),D,C);return A||l}function $ge(l){return l.flags&402915327?l:l.permissiveInstantiation||(l.permissiveInstantiation=_a(l,hd))}function vF(l){return l.flags&402915327?l:(l.restrictiveInstantiation||(l.restrictiveInstantiation=_a(l,wl),l.restrictiveInstantiation.restrictiveInstantiation=l.restrictiveInstantiation),l.restrictiveInstantiation)}function $ti(l,m){return y_(l.keyType,_a(l.type,m),l.isReadonly,l.declaration)}function k4(l){switch(H.assert(l.kind!==174||zp(l)),l.kind){case 218:case 219:case 174:case 262:return V1t(l);case 210:return Oe(l.properties,k4);case 209:return Oe(l.elements,k4);case 227:return k4(l.whenTrue)||k4(l.whenFalse);case 226:return(l.operatorToken.kind===57||l.operatorToken.kind===61)&&(k4(l.left)||k4(l.right));case 303:return k4(l.initializer);case 217:return k4(l.expression);case 292:return Oe(l.properties,k4)||aE(l.parent)&&Oe(l.parent.parent.children,k4);case 291:{const{initializer:m}=l;return!!m&&k4(m)}case 294:{const{expression:m}=l;return!!m&&k4(m)}}return!1}function V1t(l){return fZ(l)||Uti(l)}function Uti(l){return l.typeParameters||U4(l)||!l.body?!1:l.body.kind!==241?k4(l.body):!!y2(l.body,m=>!!m.expression&&k4(m.expression))}function Uge(l){return(R2(l)||zp(l))&&V1t(l)}function H1t(l){if(l.flags&524288){const m=Ag(l);if(m.constructSignatures.length||m.callSignatures.length){const D=D4(16,l.symbol);return D.members=m.members,D.properties=m.properties,D.callSignatures=_t,D.constructSignatures=_t,D.indexInfos=_t,D}}else if(l.flags&2097152)return Ds(Vt(l.types,H1t));return l}function CD(l,m){return bE(l,m,Em)}function hW(l,m){return bE(l,m,Em)?-1:0}function PPe(l,m){return bE(l,m,Jf)?-1:0}function qti(l,m){return bE(l,m,h_)?-1:0}function F6(l,m){return bE(l,m,h_)}function K1t(l,m){return bE(l,m,p4)}function ms(l,m){return bE(l,m,Jf)}function TC(l,m){return l.flags&1048576?ye(l.types,D=>TC(D,m)):m.flags&1048576?Oe(m.types,D=>TC(l,D)):l.flags&2097152?Oe(l.types,D=>TC(D,m)):l.flags&58982400?TC(Wh(l)||on,m):yD(m)?!!(l.flags&67633152):m===He?!!(l.flags&67633152)&&!yD(l):m===di?!!(l.flags&524288)&&pMe(l):H9(l,eT(m))||A4(m)&&!Sz(m)&&TC(l,To)}function qge(l,m){return bE(l,m,Hh)}function Nte(l,m){return qge(l,m)||qge(m,l)}function Ah(l,m,D,C,A,w){return F4(l,m,Jf,D,C,A,w)}function A6(l,m,D,C,A,w){return MPe(l,m,Jf,D,C,A,w,void 0)}function MPe(l,m,D,C,A,w,I,U){return bE(l,m,D)?!0:!C||!fW(A,l,m,D,w,I,U)?F4(l,m,D,C,w,I,U):!1}function W1t(l){return!!(l.flags&16777216||l.flags&2097152&&Oe(l.types,W1t))}function fW(l,m,D,C,A,w,I){if(!l||W1t(D))return!1;if(!F4(m,D,C,void 0)&&Zti(l,m,D,C,A,w,I))return!0;switch(l.kind){case 234:if(!gb(l))break;case 294:case 217:return fW(l.expression,m,D,C,A,w,I);case 226:switch(l.operatorToken.kind){case 64:case 28:return fW(l.right,m,D,C,A,w,I)}break;case 210:return uii(l,m,D,C,w,I);case 209:return iii(l,m,D,C,w,I);case 292:return tii(l,m,D,C,w,I);case 219:return Yti(l,m,D,C,w,I)}return!1}function Zti(l,m,D,C,A,w,I){const U=go(m,0),Z=go(m,1);for(const ce of[Z,U])if(Oe(ce,Fe=>{const Te=Zs(Fe);return!(Te.flags&131073)&&F4(Te,D,C,void 0)})){const Fe=I||{};Ah(m,D,l,A,w,Fe);const Te=Fe.errors[Fe.errors.length-1];return Es(Te,Su(l,ce===Z?F.Did_you_mean_to_use_new_with_this_expression:F.Did_you_mean_to_call_this_expression)),!0}return!1}function Yti(l,m,D,C,A,w){if(po(l.body)||Oe(l.parameters,JU))return!1;const I=wF(m);if(!I)return!1;const U=go(D,0);if(!S(U))return!1;const Z=l.body,ce=Zs(I),Fe=er(Vt(U,Zs));if(!F4(ce,Fe,C,void 0)){const Te=Z&&fW(Z,ce,Fe,C,void 0,A,w);if(Te)return Te;const $e=w||{};if(F4(ce,Fe,C,Z,void 0,A,$e),$e.errors)return D.symbol&&S(D.symbol.declarations)&&Es($e.errors[$e.errors.length-1],Su(D.symbol.declarations[0],F.The_expected_type_comes_from_the_return_type_of_this_signature)),!(kd(l)&2)&&!he(ce,"then")&&F4(die(ce),Fe,C,void 0)&&Es($e.errors[$e.errors.length-1],Su(l,F.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function G1t(l,m,D){const C=b6(m,D);if(C)return C;if(m.flags&1048576){const A=X1t(l,m);if(A)return b6(A,D)}}function J1t(l,m){Zte(l,m,!1);const D=Oz(l,1);return bW(),D}function Pte(l,m,D,C,A,w){let I=!1;for(const U of l){const{errorNode:Z,innerExpression:ce,nameType:Fe,errorMessage:Te}=U;let $e=G1t(m,D,Fe);if(!$e||$e.flags&8388608)continue;let ut=b6(m,Fe);if(!ut)continue;const zt=zge(Fe,void 0);if(!F4(ut,$e,C,void 0)){const gi=ce&&fW(ce,ut,$e,C,void 0,A,w);if(I=!0,!gi){const Wi=w||{},dn=ce?J1t(ce,ut):ut;if(Ve&&Yge(dn,$e)){const nu=Su(Z,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(dn),gn($e));Vs.add(nu),Wi.errors=[nu]}else{const nu=!!(zt&&(qo(D,zt)||Xt).flags&16777216),En=!!(zt&&(qo(m,zt)||Xt).flags&16777216);$e=B6($e,nu),ut=B6(ut,nu&&En),F4(dn,$e,C,Z,Te,A,Wi)&&dn!==ut&&F4(ut,$e,C,Z,Te,A,Wi)}if(Wi.errors){const nu=Wi.errors[Wi.errors.length-1],En=Y4(Fe)?Q4(Fe):void 0,Ii=En!==void 0?qo(D,En):void 0;let Nn=!1;if(!Ii){const vn=nW(D,Fe);vn&&vn.declaration&&!zn(vn.declaration).hasNoDefaultLib&&(Nn=!0,Es(nu,Su(vn.declaration,F.The_expected_type_comes_from_this_index_signature)))}if(!Nn&&(Ii&&S(Ii.declarations)||D.symbol&&S(D.symbol.declarations))){const vn=Ii&&S(Ii.declarations)?Ii.declarations[0]:D.symbol.declarations[0];zn(vn).hasNoDefaultLib||Es(nu,Su(vn,F.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,En&&!(Fe.flags&8192)?Yr(En):gn(Fe),gn(D)))}}}}}return I}function Qti(l,m,D,C,A,w){const I=Ic(D,uEe),U=Ic(D,Fe=>!uEe(Fe)),Z=U!==Ku?Nze(13,0,U,void 0):void 0;let ce=!1;for(let Fe=l.next();!Fe.done;Fe=l.next()){const{errorNode:Te,innerExpression:$e,nameType:ut,errorMessage:zt}=Fe.value;let gi=Z;const Wi=I!==Ku?G1t(m,I,ut):void 0;if(Wi&&!(Wi.flags&8388608)&&(gi=Z?er([Z,Wi]):Wi),!gi)continue;let dn=b6(m,ut);if(!dn)continue;const nu=zge(ut,void 0);if(!F4(dn,gi,C,void 0)){const En=$e&&fW($e,dn,gi,C,void 0,A,w);if(ce=!0,!En){const Ii=w||{},Nn=$e?J1t($e,dn):dn;if(Ve&&Yge(Nn,gi)){const vn=Su(Te,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(Nn),gn(gi));Vs.add(vn),Ii.errors=[vn]}else{const vn=!!(nu&&(qo(I,nu)||Xt).flags&16777216),An=!!(nu&&(qo(m,nu)||Xt).flags&16777216);gi=B6(gi,vn),dn=B6(dn,vn&&An),F4(Nn,gi,C,Te,zt,A,Ii)&&Nn!==dn&&F4(dn,gi,C,Te,zt,A,Ii)}}}}return ce}function*Xti(l){if(S(l.properties))for(const m of l.properties)H7(m)||MMe(sV(m.name))||(yield{errorNode:m.name,innerExpression:m.initializer,nameType:df(sV(m.name))})}function*eii(l,m){if(!S(l.children))return;let D=0;for(let C=0;C1;let Wi,dn;if(lPe(!1)!==Ka){const En=u1t(me);Wi=Ic(ut,Ii=>ms(Ii,En)),dn=Ic(ut,Ii=>!ms(Ii,En))}else Wi=Ic(ut,uEe),dn=Ic(ut,En=>!uEe(En));if(gi){if(Wi!==Ku){const En=Bg(BEe(ce,0)),Ii=eii(ce,Z);I=Qti(Ii,En,Wi,C,A,w)||I}else if(!bE(qf(m,$e),ut,C)){I=!0;const En=pt(ce.openingElement.tagName,F.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Te,gn(ut));w&&w.skipLogging&&(w.errors||(w.errors=[])).push(En)}}else if(dn!==Ku){const En=zt[0],Ii=$1t(En,$e,Z);Ii&&(I=Pte(function*(){yield Ii}(),m,D,C,A,w)||I)}else if(!bE(qf(m,$e),ut,C)){I=!0;const En=pt(ce.openingElement.tagName,F.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Te,gn(ut));w&&w.skipLogging&&(w.errors||(w.errors=[])).push(En)}}return I;function Z(){if(!U){const ce=Hc(l.parent.tagName),Fe=Qte(SF(l)),Te=Fe===void 0?"children":Yr(Fe),$e=qf(D,df(Te)),ut=F._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;U={...ut,key:"!!ALREADY FORMATTED!!",message:Dle(ut,ce,Te,gn($e))}}return U}}function*U1t(l,m){const D=S(l.elements);if(D)for(let C=0;CZ:SE(l)>Z))return C&&!(D&8)&&A(F.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,SE(l),Z),0;l.typeParameters&&l.typeParameters!==m.typeParameters&&(m=aei(m),l=Wft(l,m,void 0,I));const Fe=Cm(l),Te=SW(l),$e=SW(m);(Te||$e)&&_a(Te||$e,U);const ut=m.declaration?m.declaration.kind:0,zt=!(D&3)&&xe&&ut!==174&&ut!==173&&ut!==176;let gi=-1;const Wi=kC(l);if(Wi&&Wi!==ca){const En=kC(m);if(En){const Ii=!zt&&I(Wi,En,!1)||I(En,Wi,C);if(!Ii)return C&&A(F.The_this_types_of_each_signature_are_incompatible),0;gi&=Ii}}const dn=Te||$e?Math.min(Fe,Z):Math.max(Fe,Z),nu=Te||$e?dn-1:-1;for(let En=0;En=SE(l)&&En=3&&m[0].flags&32768&&m[1].flags&65536&&Oe(m,yD)?67108864:0)}return!!(l.objectFlags&67108864)}return!1}function Fz(l){return!!((l.flags&1048576?l.types[0]:l).flags&32768)}function Z1t(l){return l.flags&524288&&!Xm(l)&&n0(l).length===0&&kh(l).length===1&&!!k3(l,ct)||l.flags&3145728&&ye(l.types,Z1t)||!1}function RPe(l,m,D){const C=l.flags&8?cf(l):l,A=m.flags&8?cf(m):m;if(C===A)return!0;if(C.escapedName!==A.escapedName||!(C.flags&256)||!(A.flags&256))return!1;const w=Zo(C)+","+Zo(A),I=nC.get(w);if(I!==void 0&&!(!(I&4)&&I&2&&D))return!!(I&1);const U=Wn(A);for(const Z of n0(Wn(C)))if(Z.flags&8){const ce=qo(U,Z.escapedName);if(!ce||!(ce.flags&8))return D?(D(F.Property_0_is_missing_in_type_1,lc(Z),gn(X0(A),void 0,64)),nC.set(w,6)):nC.set(w,2),!1}return nC.set(w,1),!0}function mW(l,m,D,C){const A=l.flags,w=m.flags;return w&1||A&131072||l===vi||w&2&&!(D===p4&&A&1)?!0:w&131072?!1:!!(A&402653316&&w&4||A&128&&A&1024&&w&128&&!(w&1024)&&l.value===m.value||A&296&&w&8||A&256&&A&1024&&w&256&&!(w&1024)&&l.value===m.value||A&2112&&w&64||A&528&&w&16||A&12288&&w&4096||A&32&&w&32&&l.symbol.escapedName===m.symbol.escapedName&&RPe(l.symbol,m.symbol,C)||A&1024&&w&1024&&(A&1048576&&w&1048576&&RPe(l.symbol,m.symbol,C)||A&2944&&w&2944&&l.value===m.value&&RPe(l.symbol,m.symbol,C))||A&32768&&(!fe&&!(w&3145728)||w&49152)||A&65536&&(!fe&&!(w&3145728)||w&65536)||A&524288&&w&67108864&&!(D===p4&&yD(l)&&!(Gu(l)&8192))||(D===Jf||D===Hh)&&(A&1||A&8&&(w&32||w&256&&w&1024)||A&256&&!(A&1024)&&(w&32||w&256&&w&1024&&l.value===m.value)||sii(m)))}function bE(l,m,D){if(Pb(l)&&(l=l.regularType),Pb(m)&&(m=m.regularType),l===m)return!0;if(D!==Em){if(D===Hh&&!(m.flags&131072)&&mW(m,l,D)||mW(l,m,D))return!0}else if(!((l.flags|m.flags)&61865984)){if(l.flags!==m.flags)return!1;if(l.flags&67358815)return!0}if(l.flags&524288&&m.flags&524288){const C=D.get(eEe(l,m,0,D,!1));if(C!==void 0)return!!(C&1)}return l.flags&469499904||m.flags&469499904?F4(l,m,D,void 0):!1}function Y1t(l,m){return Gu(l)&2048&&MMe(m.escapedName)}function Mte(l,m){for(;;){const D=Pb(l)?l.regularType:K5(l)?cii(l,m):Gu(l)&4?l.node?R5(l.target,O0(l)):JPe(l)||l:l.flags&3145728?lii(l,m):l.flags&33554432?m?l.baseType:rPe(l):l.flags&25165824?vD(l,m):l;if(D===l)return D;l=D}}function lii(l,m){const D=Sg(l);if(D!==l)return D;if(l.flags&2097152&&Oe(l.types,yD)){const C=Lu(l.types,A=>Mte(A,m));if(C!==l.types)return Ds(C)}return l}function cii(l,m){const D=FC(l),C=Lu(D,A=>A.flags&25165824?vD(A,m):A);return D!==C?mPe(l.target,C):l}function F4(l,m,D,C,A,w,I){var U;let Z,ce,Fe,Te,$e,ut,zt=0,gi=0,Wi=0,dn=0,nu=!1,En=0,Ii=0,Nn,vn,An=16e6-D.size>>3;H.assert(D!==Em||!C,"no error reporting in identity checking");const _n=$n(l,m,3,!!C,A);if(vn&&fo(),nu){const Ft=eEe(l,m,0,D,!1);D.set(Ft,6),(U=Gn)==null||U.instant(Gn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:l.id,targetId:m.id,depth:gi,targetDepth:Wi});const $t=An<=0?F.Excessive_complexity_comparing_types_0_and_1:F.Excessive_stack_depth_comparing_types_0_and_1,Mi=pt(C||K,$t,gn(l),gn(m));I&&(I.errors||(I.errors=[])).push(Mi)}else if(Z){if(w){const Mi=w();Mi&&(ike(Mi,Z),Z=Mi)}let Ft;if(A&&C&&!_n&&l.symbol){const Mi=Ur(l.symbol);if(Mi.originatingImport&&!dm(Mi.originatingImport)&&F4(Wn(Mi.target),m,D,void 0)){const Du=Su(Mi.originatingImport,F.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);Ft=xi(Ft,Du)}}const $t=Y3(zn(C),C,Z,Ft);ce&&Es($t,...ce),I&&(I.errors||(I.errors=[])).push($t),(!I||!I.skipLogging)&&Vs.add($t)}return C&&I&&I.skipLogging&&_n===0&&H.assert(!!I.errors,"missed opportunity to interact with error."),_n!==0;function hu(Ft){Z=Ft.errorInfo,Nn=Ft.lastSkippedInfo,vn=Ft.incompatibleStack,En=Ft.overrideNextErrorInfo,Ii=Ft.skipParentCounter,ce=Ft.relatedInfo}function oo(){return{errorInfo:Z,lastSkippedInfo:Nn,incompatibleStack:vn==null?void 0:vn.slice(),overrideNextErrorInfo:En,skipParentCounter:Ii,relatedInfo:ce==null?void 0:ce.slice()}}function Eo(Ft,...$t){En++,Nn=void 0,(vn||(vn=[])).push([Ft,...$t])}function fo(){const Ft=vn||[];vn=void 0;const $t=Nn;if(Nn=void 0,Ft.length===1){ka(...Ft[0]),$t&&hn(void 0,...$t);return}let Mi="";const Bn=[];for(;Ft.length;){const[Du,...un]=Ft.pop();switch(Du.code){case F.Types_of_property_0_are_incompatible.code:{Mi.indexOf("new ")===0&&(Mi=`(${Mi})`);const lu=""+un[0];Mi.length===0?Mi=`${lu}`:Lm(lu,Os(ae))?Mi=`${Mi}.${lu}`:lu[0]==="["&&lu[lu.length-1]==="]"?Mi=`${Mi}${lu}`:Mi=`${Mi}[${lu}]`;break}case F.Call_signature_return_types_0_and_1_are_incompatible.code:case F.Construct_signature_return_types_0_and_1_are_incompatible.code:case F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Mi.length===0){let lu=Du;Du.code===F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?lu=F.Call_signature_return_types_0_and_1_are_incompatible:Du.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(lu=F.Construct_signature_return_types_0_and_1_are_incompatible),Bn.unshift([lu,un[0],un[1]])}else{const lu=Du.code===F.Construct_signature_return_types_0_and_1_are_incompatible.code||Du.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",_r=Du.code===F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Du.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Mi=`${lu}${Mi}(${_r})`}break}case F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Bn.unshift([F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,un[0],un[1]]);break}case F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Bn.unshift([F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,un[0],un[1],un[2]]);break}default:return H.fail(`Unhandled Diagnostic: ${Du.code}`)}}Mi?ka(Mi[Mi.length-1]===")"?F.The_types_returned_by_0_are_incompatible_between_these_types:F.The_types_of_0_are_incompatible_between_these_types,Mi):Bn.shift();for(const[Du,...un]of Bn){const lu=Du.elidedInCompatabilityPyramid;Du.elidedInCompatabilityPyramid=!1,ka(Du,...un),Du.elidedInCompatabilityPyramid=lu}$t&&hn(void 0,...$t)}function ka(Ft,...$t){H.assert(!!C),vn&&fo(),!Ft.elidedInCompatabilityPyramid&&(Ii===0?Z=ro(Z,Ft,...$t):Ii--)}function ah(Ft,...$t){ka(Ft,...$t),Ii++}function t4(Ft){H.assert(!!Z),ce?ce.push(Ft):ce=[Ft]}function hn(Ft,$t,Mi){vn&&fo();const[Bn,Du]=h6($t,Mi);let un=$t,lu=Bn;if(pW($t)&&!OPe(Mi)&&(un=kD($t),H.assert(!ms(un,Mi),"generalized source shouldn't be assignable"),lu=P5(un)),(Mi.flags&8388608&&!($t.flags&8388608)?Mi.objectType.flags:Mi.flags)&262144&&Mi!==$&&Mi!==tt){const Br=Wh(Mi);let Qa;Br&&(ms(un,Br)||(Qa=ms($t,Br)))?ka(F._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Qa?Bn:lu,Du,gn(Br)):(Z=void 0,ka(F._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Du,lu))}if(Ft)Ft===F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ve&&Q1t($t,Mi).length&&(Ft=F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties);else if(D===Hh)Ft=F.Type_0_is_not_comparable_to_type_1;else if(Bn===Du)Ft=F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ve&&Q1t($t,Mi).length)Ft=F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties;else{if($t.flags&128&&Mi.flags&1048576){const Br=gri($t,Mi);if(Br){ka(F.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,lu,Du,gn(Br));return}}Ft=F.Type_0_is_not_assignable_to_type_1}ka(Ft,lu,Du)}function Kn(Ft,$t){const Mi=lF(Ft.symbol)?gn(Ft,Ft.symbol.valueDeclaration):gn(Ft),Bn=lF($t.symbol)?gn($t,$t.symbol.valueDeclaration):gn($t);(nc===Ft&&ct===$t||fc===Ft&&Qt===$t||Cl===Ft&&pr===$t||Xdt()===Ft&&Xu===$t)&&ka(F._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Bn,Mi)}function Zr(Ft,$t,Mi){return xs(Ft)?Ft.target.readonly&&Ote($t)?(Mi&&ka(F.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Ft),gn($t)),!1):zb($t):Sz(Ft)&&Ote($t)?(Mi&&ka(F.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Ft),gn($t)),!1):xs($t)?A4(Ft):!0}function yo(Ft,$t,Mi){return $n(Ft,$t,3,Mi)}function $n(Ft,$t,Mi=3,Bn=!1,Du,un=0){if(Ft===$t)return-1;if(Ft.flags&524288&&$t.flags&402784252)return D===Hh&&!($t.flags&131072)&&mW($t,Ft,D)||mW(Ft,$t,D,Bn?ka:void 0)?-1:(Bn&&Bs(Ft,$t,Ft,$t,Du),0);const lu=Mte(Ft,!1);let _r=Mte($t,!0);if(lu===_r)return-1;if(D===Em)return lu.flags!==_r.flags?0:lu.flags&67358815?-1:(w0(lu,_r),fr(lu,_r,!1,0,Mi));if(lu.flags&262144&&EF(lu)===_r)return-1;if(lu.flags&470302716&&_r.flags&1048576){const Br=_r.types,Qa=Br.length===2&&Br[0].flags&98304?Br[1]:Br.length===3&&Br[0].flags&98304&&Br[1].flags&98304?Br[2]:void 0;if(Qa&&!(Qa.flags&98304)&&(_r=Mte(Qa,!0),lu===_r))return-1}if(D===Hh&&!(_r.flags&131072)&&mW(_r,lu,D)||mW(lu,_r,D,Bn?ka:void 0))return-1;if(lu.flags&469499904||_r.flags&469499904){if(!(un&2)&&PC(lu)&&Gu(lu)&8192&&Ys(lu,_r,Bn))return Bn&&hn(Du,lu,$t.aliasSymbol?$t:_r),0;const Qa=(D!==Hh||Tg(lu))&&!(un&2)&&lu.flags&405405692&&lu!==He&&_r.flags&2621440&&eht(_r)&&(n0(lu).length>0||o_e(lu)),Oo=!!(Gu(lu)&2048);if(Qa&&!hii(lu,_r,Oo)){if(Bn){const mo=gn(Ft.aliasSymbol?Ft:lu),es=gn($t.aliasSymbol?$t:_r),T0=go(lu,0),Gs=go(lu,1);T0.length>0&&$n(Zs(T0[0]),_r,1,!1)||Gs.length>0&&$n(Zs(Gs[0]),_r,1,!1)?ka(F.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,mo,es):ka(F.Type_0_has_no_properties_in_common_with_type_1,mo,es)}return 0}w0(lu,_r);const xr=lu.flags&1048576&&lu.types.length<4&&!(_r.flags&1048576)||_r.flags&1048576&&_r.types.length<4&&!(lu.flags&469499904)?kc(lu,_r,Bn,un):fr(lu,_r,Bn,un,Mi);if(xr)return xr}return Bn&&Bs(Ft,$t,lu,_r,Du),0}function Bs(Ft,$t,Mi,Bn,Du){var un,lu;const _r=!!JPe(Ft),Br=!!JPe($t);Mi=Ft.aliasSymbol||_r?Ft:Mi,Bn=$t.aliasSymbol||Br?$t:Bn;let Qa=En>0;if(Qa&&En--,Mi.flags&524288&&Bn.flags&524288){const Oo=Z;Zr(Mi,Bn,!0),Z!==Oo&&(Qa=!!Z)}if(Mi.flags&524288&&Bn.flags&402784252)Kn(Mi,Bn);else if(Mi.symbol&&Mi.flags&524288&&He===Mi)ka(F.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Gu(Mi)&2048&&Bn.flags&2097152){const Oo=Bn.types,Wo=Vb(Rm.IntrinsicAttributes,C),xr=Vb(Rm.IntrinsicClassAttributes,C);if(!Nt(Wo)&&!Nt(xr)&&(kt(Oo,Wo)||kt(Oo,xr)))return}else Z=$Ne(Z,$t);if(!Du&&Qa){Nn=[Mi,Bn];return}if(hn(Du,Mi,Bn),Mi.flags&262144&&((lu=(un=Mi.symbol)==null?void 0:un.declarations)!=null&&lu[0])&&!EF(Mi)){const Oo=Gge(Mi);if(Oo.constraint=_a(Bn,Mb(Mi,Oo)),iW(Oo)){const Wo=gn(Bn,Mi.symbol.declarations[0]);t4(Su(Mi.symbol.declarations[0],F.This_type_parameter_might_need_an_extends_0_constraint,Wo))}}}function w0(Ft,$t){if(Gn&&Ft.flags&3145728&&$t.flags&3145728){const Mi=Ft,Bn=$t;if(Mi.objectFlags&Bn.objectFlags&32768)return;const Du=Mi.types.length,un=Bn.types.length;Du*un>1e6&&Gn.instant(Gn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Ft.id,sourceSize:Du,targetId:$t.id,targetSize:un,pos:C==null?void 0:C.pos,end:C==null?void 0:C.end})}}function ad(Ft,$t){return er(nn(Ft,(Bn,Du)=>{var un;Du=Gh(Du);const lu=Du.flags&3145728?GNe(Du,$t):bC(Du,$t),_r=lu&&Wn(lu)||((un=G9(Du,$t))==null?void 0:un.type)||te;return xi(Bn,_r)},void 0)||_t)}function Ys(Ft,$t,Mi){var Bn;if(!eie($t)||!Ae&&Gu($t)&4096)return!1;const Du=!!(Gu(Ft)&2048);if((D===Jf||D===Hh)&&(Nz(He,$t)||!Du&&bD($t)))return!1;let un=$t,lu;$t.flags&1048576&&(un=hpt(Ft,$t,$n)||Eci($t),lu=un.flags&1048576?un.types:[un]);for(const _r of n0(Ft))if(Td(_r,Ft.symbol)&&!Y1t(Ft,_r)){if(!RMe(un,_r.escapedName,Du)){if(Mi){const Br=Ic(un,eie);if(!C)return H.fail();if(W2(C)||zh(C)||zh(C.parent)){_r.valueDeclaration&&oE(_r.valueDeclaration)&&zn(C)===zn(_r.valueDeclaration.name)&&(C=_r.valueDeclaration.name);const Qa=Fr(_r),Oo=Ift(Qa,Br),Wo=Oo?Fr(Oo):void 0;Wo?ka(F.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Qa,gn(Br),Wo):ka(F.Property_0_does_not_exist_on_type_1,Qa,gn(Br))}else{const Qa=((Bn=Ft.symbol)==null?void 0:Bn.declarations)&&Ki(Ft.symbol.declarations);let Oo;if(_r.valueDeclaration&&Tn(_r.valueDeclaration,Wo=>Wo===Qa)&&zn(Qa)===zn(C)){const Wo=_r.valueDeclaration;H.assertNode(Wo,Z3);const xr=Wo.name;C=xr,at(xr)&&(Oo=$Me(xr,Br))}Oo!==void 0?ah(F.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Fr(_r),gn(Br),Oo):ah(F.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Fr(_r),gn(Br))}}return!0}if(lu&&!$n(Wn(_r),ad(lu,_r.escapedName),3,Mi))return Mi&&Eo(F.Types_of_property_0_are_incompatible,Fr(_r)),!0}return!1}function Td(Ft,$t){return Ft.valueDeclaration&&$t.valueDeclaration&&Ft.valueDeclaration.parent===$t.valueDeclaration}function kc(Ft,$t,Mi,Bn){if(Ft.flags&1048576){if($t.flags&1048576){const Du=Ft.origin;if(Du&&Du.flags&2097152&&$t.aliasSymbol&&kt(Du.types,$t))return-1;const un=$t.origin;if(un&&un.flags&1048576&&Ft.aliasSymbol&&kt(un.types,Ft))return-1}return D===Hh?ze(Ft,$t,Mi&&!(Ft.flags&402784252),Bn):Fu(Ft,$t,Mi&&!(Ft.flags&402784252),Bn)}if($t.flags&1048576)return bm(_W(Ft),$t,Mi&&!(Ft.flags&402784252)&&!($t.flags&402784252));if($t.flags&2097152)return At(Ft,$t,Mi,2);if(D===Hh&&$t.flags&402784252){const Du=Lu(Ft.types,un=>un.flags&465829888?Wh(un)||on:un);if(Du!==Ft.types){if(Ft=Ds(Du),Ft.flags&131072)return 0;if(!(Ft.flags&2097152))return $n(Ft,$t,1,!1)||$n($t,Ft,1,!1)}}return ze(Ft,$t,!1,1)}function el(Ft,$t){let Mi=-1;const Bn=Ft.types;for(const Du of Bn){const un=bm(Du,$t,!1);if(!un)return 0;Mi&=un}return Mi}function bm(Ft,$t,Mi){const Bn=$t.types;if($t.flags&1048576){if(C6(Bn,Ft))return-1;if(D!==Hh&&Gu($t)&32768&&!(Ft.flags&1024)&&(Ft.flags&2688||(D===h_||D===p4)&&Ft.flags&256)){const un=Ft===Ft.regularType?Ft.freshType:Ft.regularType,lu=Ft.flags&128?ct:Ft.flags&256?Qt:Ft.flags&2048?Li:void 0;return lu&&C6(Bn,lu)||un&&C6(Bn,un)?-1:0}const Du=Bht($t,Ft);if(Du){const un=$n(Ft,Du,2,!1);if(un)return un}}for(const Du of Bn){const un=$n(Ft,Du,2,!1);if(un)return un}if(Mi){const Du=X1t(Ft,$t,$n);Du&&$n(Ft,Du,2,!0)}return 0}function At(Ft,$t,Mi,Bn){let Du=-1;const un=$t.types;for(const lu of un){const _r=$n(Ft,lu,2,Mi,void 0,Bn);if(!_r)return 0;Du&=_r}return Du}function ze(Ft,$t,Mi,Bn){const Du=Ft.types;if(Ft.flags&1048576&&C6(Du,$t))return-1;const un=Du.length;for(let lu=0;lu=lu.types.length&&un.length%lu.types.length===0){const Oo=$n(Br,lu.types[_r%lu.types.length],3,!1,void 0,Bn);if(Oo){Du&=Oo;continue}}const Qa=$n(Br,$t,1,Mi,void 0,Bn);if(!Qa)return 0;Du&=Qa}return Du}function Er(Ft=_t,$t=_t,Mi=_t,Bn,Du){if(Ft.length!==$t.length&&D===Em)return 0;const un=Ft.length<=$t.length?Ft.length:$t.length;let lu=-1;for(let _r=0;_r(mo|=Gs?16:8,xr(Gs)));let es;return dn===3?((un=Gn)==null||un.instant(Gn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Ft.id,sourceIdStack:$e.map(Gs=>Gs.id),targetId:$t.id,targetIdStack:ut.map(Gs=>Gs.id),depth:gi,targetDepth:Wi}),es=3):((lu=Gn)==null||lu.push(Gn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Ft.id,targetId:$t.id}),es=Mr(Ft,$t,Mi,Bn),(_r=Gn)==null||_r.pop()),Ho&&(Ho=xr),Du&1&&gi--,Du&2&&Wi--,dn=Wo,es?(es===-1||gi===0&&Wi===0)&&T0(es===-1||es===3):(D.set(Br,(Mi?4:0)|2|mo),An--,T0(!1)),es;function T0(Gs){for(let Hd=Oo;Hd_r!==Ft)&&(un=$n(lu,$t,1,!1,void 0,Bn))}un&&!(Bn&2)&&$t.flags&2097152&&!Lb($t)&&Ft.flags&2621440?(un&=mn(Ft,$t,Mi,void 0,!1,0),un&&PC(Ft)&&Gu(Ft)&8192&&(un&=bl(Ft,$t,!1,Mi,0))):un&&Rge($t)&&!zb($t)&&Ft.flags&2097152&&Gh(Ft).flags&3670016&&!Oe(Ft.types,lu=>lu===$t||!!(Gu(lu)&262144))&&(un&=mn(Ft,$t,Mi,void 0,!0,Bn))}return un&&hu(Du),un}function Ou(Ft,$t,Mi,Bn,Du){let un,lu,_r=!1,Br=Ft.flags;const Qa=$t.flags;if(D===Em){if(Br&3145728){let xr=el(Ft,$t);return xr&&(xr&=el($t,Ft)),xr}if(Br&4194304)return $n(Ft.type,$t.type,3,!1);if(Br&8388608&&(un=$n(Ft.objectType,$t.objectType,3,!1))&&(un&=$n(Ft.indexType,$t.indexType,3,!1))||Br&16777216&&Ft.root.isDistributive===$t.root.isDistributive&&(un=$n(Ft.checkType,$t.checkType,3,!1))&&(un&=$n(Ft.extendsType,$t.extendsType,3,!1))&&(un&=$n(SC(Ft),SC($t),3,!1))&&(un&=$n(BC(Ft),BC($t),3,!1))||Br&33554432&&(un=$n(Ft.baseType,$t.baseType,3,!1))&&(un&=$n(Ft.constraint,$t.constraint,3,!1)))return un;if(!(Br&524288))return 0}else if(Br&3145728||Qa&3145728){if(un=kc(Ft,$t,Mi,Bn))return un;if(!(Br&465829888||Br&524288&&Qa&1048576||Br&2097152&&Qa&467402752))return 0}if(Br&17301504&&Ft.aliasSymbol&&Ft.aliasTypeArguments&&Ft.aliasSymbol===$t.aliasSymbol&&!(Qge(Ft)||Qge($t))){const xr=tht(Ft.aliasSymbol);if(xr===_t)return 1;const mo=Ur(Ft.aliasSymbol).typeParameters,es=b_(mo),T0=x6(Ft.aliasTypeArguments,mo,es,Qn(Ft.aliasSymbol.valueDeclaration)),Gs=x6($t.aliasTypeArguments,mo,es,Qn(Ft.aliasSymbol.valueDeclaration)),Hd=Wo(T0,Gs,xr,Bn);if(Hd!==void 0)return Hd}if(cht(Ft)&&!Ft.target.readonly&&(un=$n(O0(Ft)[0],$t,1))||cht($t)&&($t.target.readonly||Ote(Wh(Ft)||Ft))&&(un=$n(Ft,O0($t)[0],2)))return un;if(Qa&262144){if(Gu(Ft)&32&&!Ft.declaration.nameType&&$n(k_($t),cp(Ft),3)&&!(C_(Ft)&4)){const xr=DD(Ft),mo=qf($t,Fg(Ft));if(un=$n(xr,mo,3,Mi))return un}if(D===Hh&&Br&262144){let xr=rh(Ft);if(xr&&iW(Ft))for(;xr&&yE(xr,mo=>!!(mo.flags&262144));){if(un=$n(xr,$t,1,!1))return un;xr=rh(xr)}return 0}}else if(Qa&4194304){const xr=$t.type;if(Br&4194304&&(un=$n(xr,Ft.type,3,!1)))return un;if(xs(xr)){if(un=$n(Ft,s1t(xr),2,Mi))return un}else{const mo=jNe(xr);if(mo){if($n(Ft,k_(mo,$t.indexFlags|4),2,Mi)===-1)return-1}else if(Xm(xr)){const es=I5(xr),T0=cp(xr);let Gs;if(es&&tW(xr)){const Hd=Gh(K9(xr)),BE=[];RNe(Hd,8576,!1,wE=>void BE.push(_a(es,dW(xr.mapper,Fg(xr),wE)))),Gs=er([...BE,es])}else Gs=es||T0;if($n(Ft,Gs,2,Mi)===-1)return-1}}}else if(Qa&8388608){if(Br&8388608){if((un=$n(Ft.objectType,$t.objectType,3,Mi))&&(un&=$n(Ft.indexType,$t.indexType,3,Mi)),un)return un;Mi&&(lu=Z)}if(D===Jf||D===Hh){const xr=$t.objectType,mo=$t.indexType,es=Wh(xr)||xr,T0=Wh(mo)||mo;if(!Lb(es)&&!AC(T0)){const Gs=4|(es!==xr?2:0),Hd=b6(es,T0,Gs);if(Hd){if(Mi&&lu&&hu(Du),un=$n(Ft,Hd,2,Mi,void 0,Bn))return un;Mi&&lu&&Z&&(Z=Oo([lu])<=Oo([Z])?lu:Z)}}}Mi&&(lu=void 0)}else if(Xm($t)&&D!==Em){const xr=!!$t.declaration.nameType,mo=DD($t),es=C_($t);if(!(es&8)){if(!xr&&mo.flags&8388608&&mo.objectType===Ft&&mo.indexType===Fg($t))return-1;if(!Xm(Ft)){const T0=xr?I5($t):cp($t),Gs=k_(Ft,2),Hd=es&4,BE=Hd?xte(T0,Gs):void 0;if(Hd?!(BE.flags&131072):$n(T0,Gs,3)){const wE=DD($t),Jb=Fg($t),xT=Pz(wE,-98305);if(!xr&&xT.flags&8388608&&xT.indexType===Jb){if(un=$n(Ft,xT.objectType,2,Mi))return un}else{const nS=xr?BE||T0:BE?Ds([BE,Jb]):Jb,BD=qf(Ft,nS);if(un=$n(BD,wE,3,Mi))return un}}lu=Z,hu(Du)}}}else if(Qa&16777216){if(Az($t,ut,Wi,10))return 3;const xr=$t;if(!xr.root.inferTypeParameters&&!kti(xr.root)&&!(Ft.flags&16777216&&Ft.root===xr.root)){const mo=!ms($ge(xr.checkType),$ge(xr.extendsType)),es=!mo&&ms(vF(xr.checkType),vF(xr.extendsType));if((un=mo?-1:$n(Ft,SC(xr),2,!1,void 0,Bn))&&(un&=es?-1:$n(Ft,BC(xr),2,!1,void 0,Bn),un))return un}}else if(Qa&134217728){if(Br&134217728){if(D===Hh)return Qii(Ft,$t)?0:-1;_a(Ft,id)}if(pEe(Ft,$t))return-1}else if($t.flags&268435456&&!(Ft.flags&268435456)&&oMe(Ft,$t))return-1;if(Br&8650752){if(!(Br&8388608&&Qa&8388608)){const xr=EF(Ft)||on;if(un=$n(xr,$t,1,!1,void 0,Bn))return un;if(un=$n(xm(xr,Ft),$t,1,Mi&&xr!==on&&!(Qa&Br&262144),void 0,Bn))return un;if(WNe(Ft)){const mo=EF(Ft.indexType);if(mo&&(un=$n(qf(Ft.objectType,mo),$t,1,Mi)))return un}}}else if(Br&4194304){if(un=$n(vc,$t,1,Mi))return un}else if(Br&134217728&&!(Qa&524288)){if(!(Qa&134217728)){const xr=Wh(Ft);if(xr&&xr!==Ft&&(un=$n(xr,$t,1,Mi)))return un}}else if(Br&268435456)if(Qa&268435456){if(Ft.symbol!==$t.symbol)return 0;if(un=$n(Ft.type,$t.type,3,Mi))return un}else{const xr=Wh(Ft);if(xr&&(un=$n(xr,$t,1,Mi)))return un}else if(Br&16777216){if(Az(Ft,$e,gi,10))return 3;if(Qa&16777216){const mo=Ft.root.inferTypeParameters;let es=Ft.extendsType,T0;if(mo){const Gs=DW(mo,void 0,0,yo);AD(Gs.inferences,$t.extendsType,es,1536),es=_a(es,Gs.mapper),T0=Gs.mapper}if(CD(es,$t.extendsType)&&($n(Ft.checkType,$t.checkType,3)||$n($t.checkType,Ft.checkType,3))&&((un=$n(_a(SC(Ft),T0),SC($t),3,Mi))&&(un&=$n(BC(Ft),BC($t),3,Mi)),un))return un}else{const mo=iW(Ft)?Cdt(Ft):void 0;if(mo&&(un=$n(mo,$t,1,Mi)))return un}const xr=VNe(Ft);if(xr&&(un=$n(xr,$t,1,Mi)))return un}else{if(D!==h_&&D!==p4&&zXt($t)&&bD(Ft))return-1;if(Xm($t))return Xm(Ft)&&(un=xu(Ft,$t,Mi))?un:0;const xr=!!(Br&402784252);if(D!==Em)Ft=Gh(Ft),Br=Ft.flags;else if(Xm(Ft))return 0;if(Gu(Ft)&4&&Gu($t)&4&&Ft.target===$t.target&&!xs(Ft)&&!(Qge(Ft)||Qge($t))){if(nEe(Ft))return-1;const mo=VPe(Ft.target);if(mo===_t)return 1;const es=Wo(O0(Ft),O0($t),mo,Bn);if(es!==void 0)return es}else{if(Sz($t)?e4(Ft,zb):A4($t)&&e4(Ft,mo=>xs(mo)&&!mo.target.readonly))return D!==Em?$n(yC(Ft,Qt)||me,yC($t,Qt)||me,3,Mi):0;if(K5(Ft)&&xs($t)&&!K5($t)){const mo=xD(Ft);if(mo!==Ft)return $n(mo,$t,1,Mi)}else if((D===h_||D===p4)&&bD($t)&&Gu($t)&8192&&!bD(Ft))return 0}if(Br&2621440&&Qa&524288){const mo=Mi&&Z===Du.errorInfo&&!xr;if(un=mn(Ft,$t,mo,void 0,!1,Bn),un&&(un&=ku(Ft,$t,0,mo,Bn),un&&(un&=ku(Ft,$t,1,mo,Bn),un&&(un&=bl(Ft,$t,xr,mo,Bn)))),_r&&un)Z=lu||Z||Du.errorInfo;else if(un)return un}if(Br&2621440&&Qa&1048576){const mo=Pz($t,36175872);if(mo.flags&1048576){const es=Lt(Ft,mo);if(es)return es}}}return 0;function Oo(xr){return xr?nn(xr,(mo,es)=>mo+1+Oo(es.next),0):0}function Wo(xr,mo,es,T0){if(un=Er(xr,mo,es,Mi,T0))return un;if(Oe(es,Hd=>!!(Hd&24))){lu=void 0,hu(Du);return}const Gs=mo&&fii(mo,es);if(_r=!Gs,es!==_t&&!Gs){if(_r&&!(Mi&&Oe(es,Hd=>(Hd&7)===0)))return 0;lu=Z,hu(Du)}}}function xu(Ft,$t,Mi){if(D===Hh||(D===Em?C_(Ft)===C_($t):ONe(Ft)<=ONe($t))){let Du;const un=cp($t),lu=_a(cp(Ft),ONe(Ft)<0?Y0:id);if(Du=$n(un,lu,3,Mi)){const _r=Sf([Fg(Ft)],[Fg($t)]);if(_a(I5(Ft),_r)===_a(I5($t),_r))return Du&$n(_a(DD(Ft),_r),DD($t),3,Mi)}}return 0}function Lt(Ft,$t){var Mi;const Bn=n0(Ft),Du=Sht(Bn,$t);if(!Du)return 0;let un=1;for(const Wo of Du)if(un*=Fni(E6(Wo)),un>25)return(Mi=Gn)==null||Mi.instant(Gn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Ft.id,targetId:$t.id,numCombinations:un}),0;const lu=new Array(Du.length),_r=new Set;for(let Wo=0;WoWo[es],!1,0,fe||D===Hh))continue e}xa(Qa,mo,Cx),xr=!0}if(!xr)return 0}let Oo=-1;for(const Wo of Qa)if(Oo&=mn(Ft,Wo,!1,_r,!1,0),Oo&&(Oo&=ku(Ft,Wo,0,!1,0),Oo&&(Oo&=ku(Ft,Wo,1,!1,0),Oo&&!(xs(Ft)&&xs(Wo))&&(Oo&=bl(Ft,Wo,!1,!1,0)))),!Oo)return Oo;return Oo}function li(Ft,$t){if(!$t||Ft.length===0)return Ft;let Mi;for(let Bn=0;Bn5?ka(F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,gn(Ft),gn($t),Vt(un.slice(0,4),lu=>Fr(lu)).join(", "),un.length-4):ka(F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,gn(Ft),gn($t),Vt(un,lu=>Fr(lu)).join(", ")),Du&&Z&&En++)}function mn(Ft,$t,Mi,Bn,Du,un){if(D===Em)return Kr(Ft,$t,Bn);let lu=-1;if(xs($t)){if(zb(Ft)){if(!$t.target.readonly&&(Sz(Ft)||xs(Ft)&&Ft.target.readonly))return 0;const Wo=O5(Ft),xr=O5($t),mo=xs(Ft)?Ft.target.combinedFlags&4:4,es=$t.target.combinedFlags&4,T0=xs(Ft)?Ft.target.minLength:0,Gs=$t.target.minLength;if(!mo&&Wo=wE?xr-1-Math.min(Sie,Jb):BD,ai=$t.target.elementFlags[Zf];if(ai&8&&!(zC&8))return Mi&&ka(F.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Zf),0;if(zC&8&&!(ai&12))return Mi&&ka(F.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,BD,Zf),0;if(ai&1&&!(zC&1))return Mi&&ka(F.Source_provides_no_match_for_required_element_at_position_0_in_target,Zf),0;if(nS&&((zC&12||ai&12)&&(nS=!1),nS&&(Bn!=null&&Bn.has(""+BD))))continue;const Bu=B6(Hd[BD],!!(zC&ai&2)),dr=BE[Zf],nr=zC&8&&ai&4?V1(dr):B6(dr,!!(ai&2)),hr=$n(Bu,nr,3,Mi,void 0,un);if(!hr)return Mi&&(xr>1||Wo>1)&&(xT&&BD>=wE&&Sie>=Jb&&wE!==Wo-Jb-1?Eo(F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,wE,Wo-Jb-1,Zf):Eo(F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,BD,Zf)),0;lu&=hr}return lu}if($t.target.combinedFlags&12)return 0}const _r=(D===h_||D===p4)&&!PC(Ft)&&!nEe(Ft)&&!xs(Ft),Br=rMe(Ft,$t,_r,!1);if(Br)return Mi&&_o(Ft,$t)&&Ji(Ft,$t,Br,_r),0;if(PC($t)){for(const Wo of li(n0(Ft),Bn))if(!bC($t,Wo.escapedName)&&!(Wn(Wo).flags&32768))return Mi&&ka(F.Property_0_does_not_exist_on_type_1,Fr(Wo),gn($t)),0}const Qa=n0($t),Oo=xs(Ft)&&xs($t);for(const Wo of li(Qa,Bn)){const xr=Wo.escapedName;if(!(Wo.flags&4194304)&&(!Oo||i3(xr)||xr==="length")&&(!Du||Wo.flags&16777216)){const mo=qo(Ft,xr);if(mo&&mo!==Wo){const es=yi(Ft,$t,mo,Wo,E6,Mi,un,D===Hh);if(!es)return 0;lu&=es}}}return lu}function Kr(Ft,$t,Mi){if(!(Ft.flags&524288&&$t.flags&524288))return 0;const Bn=li(D6(Ft),Mi),Du=li(D6($t),Mi);if(Bn.length!==Du.length)return 0;let un=-1;for(const lu of Bn){const _r=bC($t,lu.escapedName);if(!_r)return 0;const Br=KPe(lu,_r,$n);if(!Br)return 0;un&=Br}return un}function ku(Ft,$t,Mi,Bn,Du){var un,lu;if(D===Em)return La(Ft,$t,Mi);if($t===Ri||Ft===Ri)return-1;const _r=Ft.symbol&&AE(Ft.symbol.valueDeclaration),Br=$t.symbol&&AE($t.symbol.valueDeclaration),Qa=go(Ft,_r&&Mi===1?0:Mi),Oo=go($t,Br&&Mi===1?0:Mi);if(Mi===1&&Qa.length&&Oo.length){const T0=!!(Qa[0].flags&4),Gs=!!(Oo[0].flags&4);if(T0&&!Gs)return Bn&&ka(F.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!yl(Qa[0],Oo[0],Bn))return 0}let Wo=-1;const xr=Mi===1?or:pn,mo=Gu(Ft),es=Gu($t);if(mo&64&&es&64&&Ft.symbol===$t.symbol||mo&4&&es&4&&Ft.target===$t.target)for(let T0=0;T0vE(wE,void 0,262144,Mi);return ka(F.Type_0_is_not_assignable_to_type_1,BE(Gs),BE(Hd)),ka(F.Types_of_construct_signatures_are_incompatible),Wo}}else e:for(const T0 of Oo){const Gs=oo();let Hd=Bn;for(const BE of Qa){const wE=qr(BE,T0,!0,Hd,Du,xr(BE,T0));if(wE){Wo&=wE,hu(Gs);continue e}Hd=!1}return Hd&&ka(F.Type_0_provides_no_match_for_the_signature_1,gn(Ft),vE(T0,void 0,void 0,Mi)),0}return Wo}function _o(Ft,$t){const Mi=bte(Ft,0),Bn=bte(Ft,1),Du=D6(Ft);return(Mi.length||Bn.length)&&!Du.length?!!(go($t,0).length&&Mi.length||go($t,1).length&&Bn.length):!0}function pn(Ft,$t){return Ft.parameters.length===0&&$t.parameters.length===0?(Mi,Bn)=>Eo(F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(Mi),gn(Bn)):(Mi,Bn)=>Eo(F.Call_signature_return_types_0_and_1_are_incompatible,gn(Mi),gn(Bn))}function or(Ft,$t){return Ft.parameters.length===0&&$t.parameters.length===0?(Mi,Bn)=>Eo(F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(Mi),gn(Bn)):(Mi,Bn)=>Eo(F.Construct_signature_return_types_0_and_1_are_incompatible,gn(Mi),gn(Bn))}function qr(Ft,$t,Mi,Bn,Du,un){const lu=D===h_?16:D===p4?24:0;return zPe(Mi?aW(Ft):Ft,Mi?aW($t):$t,lu,Bn,ka,un,_r,id);function _r(Br,Qa,Oo){return $n(Br,Qa,3,Oo,void 0,Du)}}function La(Ft,$t,Mi){const Bn=go(Ft,Mi),Du=go($t,Mi);if(Bn.length!==Du.length)return 0;let un=-1;for(let lu=0;luBr.keyType===ct);let _r=-1;for(const Br of un){const Qa=D!==p4&&!Mi&&lu&&Br.type.flags&1?-1:Xm(Ft)&&lu?$n(DD(Ft),Br.type,3,Bn):fl(Ft,Br,Bn,Du);if(!Qa)return 0;_r&=Qa}return _r}function fl(Ft,$t,Mi,Bn){const Du=nW(Ft,$t.keyType);return Du?pd(Du,$t,Mi,Bn):!(Bn&1)&&(D!==p4||Gu(Ft)&8192)&&cEe(Ft)?cs(Ft,$t,Mi,Bn):(Mi&&ka(F.Index_signature_for_type_0_is_missing_in_type_1,gn($t.keyType),gn(Ft)),0)}function H1(Ft,$t){const Mi=kh(Ft),Bn=kh($t);if(Mi.length!==Bn.length)return 0;for(const Du of Bn){const un=k3(Ft,Du.keyType);if(!(un&&$n(un.type,Du.type,3)&&un.isReadonly===Du.isReadonly))return 0}return-1}function yl(Ft,$t,Mi){if(!Ft.declaration||!$t.declaration)return!0;const Bn=E7(Ft.declaration,6),Du=E7($t.declaration,6);return Du===2||Du===4&&Bn!==2||Du!==4&&!Bn?!0:(Mi&&ka(F.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,C3(Bn),C3(Du)),!1)}}function OPe(l){if(l.flags&16)return!1;if(l.flags&3145728)return!!L(l.types,OPe);if(l.flags&465829888){const m=EF(l);if(m&&m!==l)return OPe(m)}return Tg(l)||!!(l.flags&134217728)||!!(l.flags&268435456)}function Q1t(l,m){return xs(l)&&xs(m)?_t:n0(m).filter(D=>Yge(he(l,D.escapedName),Wn(D)))}function Yge(l,m){return!!l&&!!m&&jl(l,32768)&&!!EW(m)}function dii(l){return n0(l).filter(m=>EW(Wn(m)))}function X1t(l,m,D=PPe){return hpt(l,m,D)||fci(l,m)||mci(l,m)||pci(l,m)||gci(l,m)}function jPe(l,m,D){const C=l.types,A=C.map(I=>I.flags&402784252?0:-1);for(const[I,U]of m){let Z=!1;for(let ce=0;ceA[U]),0):l;return w.flags&131072?l:w}function eht(l){if(l.flags&524288){const m=Ag(l);return m.callSignatures.length===0&&m.constructSignatures.length===0&&m.indexInfos.length===0&&m.properties.length>0&&ye(m.properties,D=>!!(D.flags&16777216))}return l.flags&2097152?ye(l.types,eht):!1}function hii(l,m,D){for(const C of n0(l))if(RMe(m,C.escapedName,D))return!0;return!1}function VPe(l){return l===Fo||l===To||l.objectFlags&8?ge:iht(l.symbol,l.typeParameters)}function tht(l){return iht(l,Ur(l).typeParameters)}function iht(l,m=_t){var D,C;const A=Ur(l);if(!A.variances){(D=Gn)==null||D.push(Gn.Phase.CheckTypes,"getVariancesWorker",{arity:m.length,id:Fh(X0(l))});const w=Jk;Jk||(Jk=!0,lb=cD.length),A.variances=_t;const I=[];for(const U of m){const Z=HPe(U);let ce=Z&16384?Z&8192?0:1:Z&8192?2:void 0;if(ce===void 0){let Fe=!1,Te=!1;const $e=Ho;Ho=gi=>gi?Te=!0:Fe=!0;const ut=zte(l,U,sf),zt=zte(l,U,Q0);ce=(ms(zt,ut)?1:0)|(ms(ut,zt)?2:0),ce===3&&ms(zte(l,U,Cc),ut)&&(ce=4),Ho=$e,(Fe||Te)&&(Fe&&(ce|=8),Te&&(ce|=16))}I.push(ce)}w||(Jk=!1,lb=0),A.variances=I,(C=Gn)==null||C.pop({variances:I.map(H.formatVariance)})}return A.variances}function zte(l,m,D){const C=Mb(m,D),A=X0(l);if(Nt(A))return A;const w=l.flags&524288?aT(l,V5(Ur(l).typeParameters,C)):R5(A,V5(A.typeParameters,C));return qt.add(Fh(w)),w}function Qge(l){return qt.has(Fh(l))}function HPe(l){var m;return nn((m=l.symbol)==null?void 0:m.declarations,(D,C)=>D|Eh(C),0)&28672}function fii(l,m){for(let D=0;D!!(m.flags&262144)||Xge(m))}function gii(l,m,D,C){const A=[];let w="";const I=Z(l,0),U=Z(m,0);return`${w}${I},${U}${D}`;function Z(ce,Fe=0){let Te=""+ce.target.id;for(const $e of O0(ce)){if($e.flags&262144){if(C||mii($e)){let ut=A.indexOf($e);ut<0&&(ut=A.length,A.push($e)),Te+="="+ut;continue}w="*"}else if(Fe<4&&Xge($e)){Te+="<"+Z($e,Fe+1)+">";continue}Te+="-"+$e.id}return Te}}function eEe(l,m,D,C,A){if(C===Em&&l.id>m.id){const I=l;l=m,m=I}const w=D?":"+D:"";return Xge(l)&&Xge(m)?gii(l,m,w,A):`${l.id},${m.id}${w}`}function Ite(l,m){if(Gl(l)&6){for(const D of l.links.containingType.types){const C=qo(D,l.escapedName),A=C&&Ite(C,m);if(A)return A}return}return m(l)}function Q9(l){return l.parent&&l.parent.flags&32?X0(cf(l)):void 0}function tEe(l){const m=Q9(l),D=m&&Zc(m)[0];return D&&he(D,l.escapedName)}function Eii(l,m){return Ite(l,D=>{const C=Q9(D);return C?H9(C,m):!1})}function _ii(l,m){return!Ite(m,D=>l4(D)&4?!Eii(l,Q9(D)):!1)}function nht(l,m,D){return Ite(m,C=>l4(C,D)&4?!H9(l,Q9(C)):!1)?void 0:l}function Az(l,m,D,C=3){if(D>=C){if((Gu(l)&96)===96&&(l=uht(l)),l.flags&2097152)return Oe(l.types,U=>Az(U,m,D,C));const A=iEe(l);let w=0,I=0;for(let U=0;U=I&&(w++,w>=C))return!0;I=Z.id}}}return!1}function uht(l){let m;for(;(Gu(l)&96)===96&&(m=K9(l))&&(m.symbol||m.flags&2097152&&Oe(m.types,D=>!!D.symbol));)l=m;return l}function rht(l,m){return(Gu(l)&96)===96&&(l=uht(l)),l.flags&2097152?Oe(l.types,D=>rht(D,m)):iEe(l)===m}function iEe(l){if(l.flags&524288&&!sMe(l)){if(Gu(l)&4&&l.node)return l.node;if(l.symbol&&!(Gu(l)&16&&l.symbol.flags&32))return l.symbol;if(xs(l))return l.target}if(l.flags&262144)return l.symbol;if(l.flags&8388608){do l=l.objectType;while(l.flags&8388608);return l}return l.flags&16777216?l.root:l}function Dii(l,m){return KPe(l,m,hW)!==0}function KPe(l,m,D){if(l===m)return-1;const C=l4(l)&6,A=l4(m)&6;if(C!==A)return 0;if(C){if(_T(l)!==_T(m))return 0}else if((l.flags&16777216)!==(m.flags&16777216))return 0;return Ng(l)!==Ng(m)?0:D(Wn(l),Wn(m))}function xii(l,m,D){const C=Cm(l),A=Cm(m),w=SE(l),I=SE(m),U=F_(l),Z=F_(m);return!!(C===A&&w===I&&U===Z||D&&w<=I)}function Rte(l,m,D,C,A,w){if(l===m)return-1;if(!xii(l,m,D)||S(l.typeParameters)!==S(m.typeParameters))return 0;if(m.typeParameters){const Z=Sf(l.typeParameters,m.typeParameters);for(let ce=0;cem|(D.flags&1048576?aht(D.types):D.flags),0)}function bii(l){if(l.length===1)return l[0];const m=fe?Lu(l,C=>Ic(C,A=>!(A.flags&98304))):l,D=Cii(m)?er(m):nn(m,(C,A)=>F6(C,A)?A:C);return m===l?D:aEe(D,aht(l)&98304)}function yii(l){return nn(l,(m,D)=>F6(D,m)?D:m)}function A4(l){return!!(Gu(l)&4)&&(l.target===Fo||l.target===To)}function Sz(l){return!!(Gu(l)&4)&&l.target===To}function zb(l){return A4(l)||xs(l)}function Ote(l){return A4(l)&&!Sz(l)||xs(l)&&!l.target.readonly}function WPe(l){return A4(l)?O0(l)[0]:void 0}function H5(l){return A4(l)||!(l.flags&98304)&&ms(l,ip)}function GPe(l){return Ote(l)||!(l.flags&98305)&&ms(l,ql)}function JPe(l){if(!(Gu(l)&4)||!(Gu(l.target)&3))return;if(Gu(l)&33554432)return Gu(l)&67108864?l.cachedEquivalentBaseType:void 0;l.objectFlags|=33554432;const m=l.target;if(Gu(m)&1){const A=Vr(m);if(A&&A.expression.kind!==80&&A.expression.kind!==211)return}const D=Zc(m);if(D.length!==1||_6(l.symbol).size)return;let C=S(m.typeParameters)?_a(D[0],Sf(m.typeParameters,O0(l).slice(0,m.typeParameters.length))):D[0];return S(O0(l))>S(m.typeParameters)&&(C=xm(C,Cr(O0(l)))),l.objectFlags|=67108864,l.cachedEquivalentBaseType=C}function oht(l){return fe?l===wn:l===we}function nEe(l){const m=WPe(l);return!!m&&oht(m)}function Bz(l){let m;return xs(l)||!!qo(l,"0")||H5(l)&&!!(m=he(l,"length"))&&e4(m,D=>!!(D.flags&256))}function uEe(l){return H5(l)||Bz(l)}function kii(l,m){const D=he(l,""+m);if(D)return D;if(e4(l,xs))return dht(l,m,ae.noUncheckedIndexedAccess?te:void 0)}function Fii(l){return!(l.flags&240544)}function Tg(l){return!!(l.flags&109472)}function sht(l){const m=xD(l);return m.flags&2097152?Oe(m.types,Tg):Tg(m)}function Aii(l){return l.flags&2097152&&Le(l.types,Tg)||l}function pW(l){return l.flags&16?!0:l.flags&1048576?l.flags&1024?!0:ye(l.types,Tg):Tg(l)}function kD(l){return l.flags&1056?bge(l):l.flags&402653312?ct:l.flags&256?Qt:l.flags&2048?Li:l.flags&512?pr:l.flags&1048576?Sii(l):l}function Sii(l){const m=`B${Fh(l)}`;return Yk(m)??fb(m,hl(l,kD))}function $Pe(l){return l.flags&402653312?ct:l.flags&288?Qt:l.flags&2048?Li:l.flags&512?pr:l.flags&1048576?hl(l,$Pe):l}function Ib(l){return l.flags&1056&&Pb(l)?bge(l):l.flags&128&&Pb(l)?ct:l.flags&256&&Pb(l)?Qt:l.flags&2048&&Pb(l)?Li:l.flags&512&&Pb(l)?pr:l.flags&1048576?hl(l,Ib):l}function lht(l){return l.flags&8192?Xu:l.flags&1048576?hl(l,lht):l}function UPe(l,m){return GEe(l,m)||(l=lht(Ib(l))),Jh(l)}function Bii(l,m,D){if(l&&Tg(l)){const C=m?D?NW(m):m:void 0;l=UPe(l,C)}return l}function qPe(l,m,D,C){if(l&&Tg(l)){const A=m?Hb(D,m,C):void 0;l=UPe(l,A)}return l}function xs(l){return!!(Gu(l)&4&&l.target.objectFlags&8)}function K5(l){return xs(l)&&!!(l.target.combinedFlags&8)}function cht(l){return K5(l)&&l.target.elementFlags.length===1}function rEe(l){return wz(l,l.target.fixedLength)}function dht(l,m,D){return hl(l,C=>{const A=C,w=rEe(A);return w?D&&m>=pPe(A.target)?er([w,D]):w:te})}function wii(l){const m=rEe(l);return m&&V1(m)}function wz(l,m,D=0,C=!1,A=!1){const w=O5(l)-D;if(m(D&12)===(m.target.elementFlags[C]&12))}function hht({value:l}){return l.base10Value==="0"}function fht(l){return Ic(l,m=>fp(m,4194304))}function Lii(l){return hl(l,Nii)}function Nii(l){return l.flags&4?Gf:l.flags&8?eC:l.flags&64?t6:l===Sn||l===Ui||l.flags&114691||l.flags&128&&l.value===""||l.flags&256&&l.value===0||l.flags&2048&&hht(l)?l:Ku}function aEe(l,m){const D=m&~l.flags&98304;return D===0?l:er(D===32768?[l,te]:D===65536?[l,it]:[l,te,it])}function S6(l,m=!1){H.assert(fe);const D=m?je:te;return l===D||l.flags&1048576&&l.types[0]===D?l:er([l,D])}function Pii(l){return Jm||(Jm=Cz("NonNullable",524288,void 0)||Xt),Jm!==Xt?aT(Jm,[l]):Ds([l,Ko])}function FD(l){return fe?kF(l,2097152):l}function mht(l){return fe?er([l,X]):l}function oEe(l){return fe?_Ee(l,X):l}function sEe(l,m,D){return D?RN(m)?S6(l):mht(l):l}function gW(l,m){return MU(m)?FD(l):Y1(m)?oEe(l):l}function B6(l,m){return Ve&&m?_Ee(l,de):l}function EW(l){return l===de||!!(l.flags&1048576)&&l.types[0]===de}function lEe(l){return Ve?_Ee(l,de):mp(l,524288)}function Mii(l,m){return(l.flags&524)!==0&&(m.flags&28)!==0}function cEe(l){const m=Gu(l);return l.flags&2097152?ye(l.types,cEe):!!(l.symbol&&l.symbol.flags&7040&&!(l.symbol.flags&32)&&!o_e(l))||!!(m&4194304)||!!(m&1024&&cEe(l.source))}function CF(l,m){const D=Hs(l.flags,l.escapedName,Gl(l)&8);D.declarations=l.declarations,D.parent=l.parent,D.links.type=m,D.links.target=l,l.valueDeclaration&&(D.valueDeclaration=l.valueDeclaration);const C=Ur(l).nameType;return C&&(D.links.nameType=C),D}function zii(l,m){const D=Vo();for(const C of D6(l)){const A=Wn(C),w=m(A);D.set(C.escapedName,w===A?C:CF(C,w))}return D}function _W(l){if(!(PC(l)&&Gu(l)&8192))return l;const m=l.regularType;if(m)return m;const D=l,C=zii(l,_W),A=Ol(D.symbol,C,D.callSignatures,D.constructSignatures,D.indexInfos);return A.flags=D.flags,A.objectFlags|=D.objectFlags&-8193,l.regularType=A,A}function pht(l,m,D){return{parent:l,propertyName:m,siblings:D,resolvedProperties:void 0}}function ght(l){if(!l.siblings){const m=[];for(const D of ght(l.parent))if(PC(D)){const C=bC(D,l.propertyName);C&&FF(Wn(C),A=>{m.push(A)})}l.siblings=m}return l.siblings}function Iii(l){if(!l.resolvedProperties){const m=new Map;for(const D of ght(l))if(PC(D)&&!(Gu(D)&2097152))for(const C of n0(D))m.set(C.escapedName,C);l.resolvedProperties=ga(m.values())}return l.resolvedProperties}function Rii(l,m){if(!(l.flags&4))return l;const D=Wn(l),C=m&&pht(m,l.escapedName,void 0),A=ZPe(D,C);return A===D?l:CF(l,A)}function Oii(l){const m=Mt.get(l.escapedName);if(m)return m;const D=CF(l,je);return D.flags|=16777216,Mt.set(l.escapedName,D),D}function jii(l,m){const D=Vo();for(const A of D6(l))D.set(A.escapedName,Rii(A,m));if(m)for(const A of Iii(m))D.has(A.escapedName)||D.set(A.escapedName,Oii(A));const C=Ol(l.symbol,D,_t,_t,Lu(kh(l),A=>y_(A.keyType,vm(A.type),A.isReadonly)));return C.objectFlags|=Gu(l)&266240,C}function vm(l){return ZPe(l,void 0)}function ZPe(l,m){if(Gu(l)&196608){if(m===void 0&&l.widened)return l.widened;let D;if(l.flags&98305)D=me;else if(PC(l))D=jii(l,m);else if(l.flags&1048576){const C=m||pht(void 0,void 0,l.types),A=Lu(l.types,w=>w.flags&98304?w:ZPe(w,C));D=er(A,Oe(A,bD)?2:1)}else l.flags&2097152?D=Ds(Lu(l.types,vm)):zb(l)&&(D=R5(l.target,Lu(O0(l),vm)));return D&&m===void 0&&(l.widened=D),D||l}return l}function dEe(l){let m=!1;if(Gu(l)&65536){if(l.flags&1048576)if(Oe(l.types,bD))m=!0;else for(const D of l.types)dEe(D)&&(m=!0);if(zb(l))for(const D of O0(l))dEe(D)&&(m=!0);if(PC(l))for(const D of D6(l)){const C=Wn(D);Gu(C)&65536&&(dEe(C)||pt(D.valueDeclaration,F.Object_literal_s_property_0_implicitly_has_an_1_type,Fr(D),gn(vm(C))),m=!0)}}return m}function LC(l,m,D){const C=gn(vm(m));if(Qn(l)&&!uV(zn(l),ae))return;let A;switch(l.kind){case 226:case 172:case 171:A=Ae?F.Member_0_implicitly_has_an_1_type:F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const w=l;if(at(w.name)){const I=Dv(w.name);if((CB(w.parent)||n3(w.parent)||u3(w.parent))&&w.parent.parameters.includes(w)&&(uc(w,w.name.escapedText,788968,void 0,w.name.escapedText,!0)||I&&_le(I))){const U="arg"+w.parent.parameters.indexOf(w),Z=b0(w.name)+(w.dotDotDotToken?"[]":"");g4(Ae,l,F.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,U,Z);return}}A=l.dotDotDotToken?Ae?F.Rest_parameter_0_implicitly_has_an_any_type:F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ae?F.Parameter_0_implicitly_has_an_1_type:F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(A=F.Binding_element_0_implicitly_has_an_1_type,!Ae)return;break;case 324:pt(l,F.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return;case 330:Ae&&NB(l.parent)&&pt(l.parent.tagName,F.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,C);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Ae&&!l.name){D===3?pt(l,F.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,C):pt(l,F.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return}A=Ae?D===3?F._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Ae&&pt(l,F.Mapped_object_type_implicitly_has_an_any_template_type);return;default:A=Ae?F.Variable_0_implicitly_has_an_1_type:F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}g4(Ae,l,A,b0(Za(l)),C)}function hEe(l,m,D){s(()=>{Ae&&Gu(m)&65536&&(!D||!LMe(l))&&(dEe(m)||LC(l,m,D))})}function YPe(l,m,D){const C=Cm(l),A=Cm(m),w=AW(l),I=AW(m),U=I?A-1:A,Z=w?U:Math.min(C,U),ce=kC(l);if(ce){const Fe=kC(m);Fe&&D(ce,Fe)}for(let Fe=0;Fem.typeParameter),Vt(l.inferences,(m,D)=>()=>(m.isFixed||(Wii(l),fEe(l.inferences),m.isFixed=!0),lMe(l,D))))}function Kii(l){return BPe(Vt(l.inferences,m=>m.typeParameter),Vt(l.inferences,(m,D)=>()=>lMe(l,D)))}function fEe(l){for(const m of l)m.isFixed||(m.inferredType=void 0)}function eMe(l,m,D){(l.intraExpressionInferenceSites??(l.intraExpressionInferenceSites=[])).push({node:m,type:D})}function Wii(l){if(l.intraExpressionInferenceSites){for(const{node:m,type:D}of l.intraExpressionInferenceSites){const C=m.kind===174?sft(m,2):hf(m,2);C&&AD(l.inferences,D,C)}l.intraExpressionInferenceSites=void 0}}function tMe(l){return{typeParameter:l,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Eht(l){return{typeParameter:l.typeParameter,candidates:l.candidates&&l.candidates.slice(),contraCandidates:l.contraCandidates&&l.contraCandidates.slice(),inferredType:l.inferredType,priority:l.priority,topLevel:l.topLevel,isFixed:l.isFixed,impliedArity:l.impliedArity}}function Gii(l){const m=ti(l.inferences,gT);return m.length?XPe(Vt(m,Eht),l.signature,l.flags,l.compareTypes):void 0}function iMe(l){return l&&l.mapper}function NC(l){const m=Gu(l);if(m&524288)return!!(m&1048576);const D=!!(l.flags&465829888||l.flags&524288&&!_ht(l)&&(m&4&&(l.node||Oe(O0(l),NC))||m&16&&l.symbol&&l.symbol.flags&14384&&l.symbol.declarations||m&12583968)||l.flags&3145728&&!(l.flags&1024)&&!_ht(l)&&Oe(l.types,NC));return l.flags&3899393&&(l.objectFlags|=524288|(D?1048576:0)),D}function _ht(l){if(l.aliasSymbol&&!l.aliasTypeArguments){const m=Sl(l.aliasSymbol,265);return!!(m&&Tn(m.parent,D=>D.kind===312?!0:D.kind===267?!1:"quit"))}return!1}function xW(l,m,D=0){return!!(l===m||l.flags&3145728&&Oe(l.types,C=>xW(C,m,D))||D<3&&l.flags&16777216&&(xW(SC(l),m,D+1)||xW(BC(l),m,D+1)))}function Jii(l,m){const D=y4(l);return D?!!D.type&&xW(D.type,m):xW(Zs(l),m)}function $ii(l){const m=Vo();FF(l,C=>{if(!(C.flags&128))return;const A=Al(C.value),w=Hs(4,A);w.links.type=me,C.symbol&&(w.declarations=C.symbol.declarations,w.valueDeclaration=C.symbol.valueDeclaration),m.set(A,w)});const D=l.flags&4?[y_(ct,Ko,!1)]:_t;return Ol(void 0,m,_t,_t,D)}function Dht(l,m,D){const C=l.id+","+m.id+","+D.id;if(Bd.has(C))return Bd.get(C);const A=l.id+","+(m.target||m).id;if(kt(Oh,A))return;Oh.push(A);const w=Uii(l,m,D);return Oh.pop(),Bd.set(C,w),w}function nMe(l){return!(Gu(l)&262144)||PC(l)&&Oe(n0(l),m=>nMe(Wn(m)))||xs(l)&&Oe(FC(l),nMe)}function Uii(l,m,D){if(!(k3(l,ct)||n0(l).length!==0&&nMe(l)))return;if(A4(l))return V1(mEe(O0(l)[0],m,D),Sz(l));if(xs(l)){const A=Vt(FC(l),I=>mEe(I,m,D)),w=C_(m)&4?Lu(l.target.elementFlags,I=>I&2?1:I):l.target.elementFlags;return Bg(A,w,l.target.readonly,l.target.labeledElementDeclarations)}const C=D4(1040,void 0);return C.source=l,C.mappedType=m,C.constraintType=D,C}function qii(l){const m=Ur(l);return m.type||(m.type=mEe(l.links.propertyType,l.links.mappedType,l.links.constraintType)),m.type}function mEe(l,m,D){const C=qf(D.type,Fg(m)),A=DD(m),w=tMe(C);return AD([w],l,A),xht(w)||on}function*uMe(l,m,D,C){const A=n0(m);for(const w of A)if(!ldt(w)&&(D||!(w.flags&16777216||Gl(w)&48))){const I=qo(l,w.escapedName);if(!I)yield w;else if(C){const U=Wn(w);if(U.flags&109472){const Z=Wn(I);Z.flags&1||Jh(Z)===Jh(U)||(yield w)}}}}function rMe(l,m,D,C){return Hn(uMe(l,m,D,C))}function Zii(l,m){return!(m.target.combinedFlags&8)&&m.target.minLength>l.target.minLength||!m.target.hasRestElement&&(l.target.hasRestElement||m.target.fixedLength$9(w,A),l)===l&&oMe(l,m)}return!1}function bht(l,m){if(l===m||m.flags&5)return!0;if(m.flags&2097152)return ye(m.types,D=>D===Lc||bht(l,D));if(l.flags&128){const D=l.value;return!!(m.flags&8&&Cht(D,!1)||m.flags&64&&hZ(D,!1)||m.flags&98816&&D===m.intrinsicName||m.flags&268435456&&oMe(df(D),m)||m.flags&134217728&&pEe(l,m))}if(l.flags&134217728){const D=l.texts;return D.length===2&&D[0]===""&&D[1]===""&&ms(l.types[0],m)}return ms(l,m)}function yht(l,m){return l.flags&128?kht([l.value],_t,m):l.flags&134217728?Zt(l.texts,m.texts)?Vt(l.types,eni):kht(l.texts,l.types,m):void 0}function pEe(l,m){const D=yht(l,m);return!!D&&ye(D,(C,A)=>bht(C,m.types[A]))}function eni(l){return l.flags&402653317?l:xF(["",""],[l])}function kht(l,m,D){const C=l.length-1,A=l[0],w=l[C],I=D.texts,U=I.length-1,Z=I[0],ce=I[U];if(C===0&&A.length0){let nu=$e,En=ut;for(;En=zt(nu).indexOf(dn,En),!(En>=0);){if(nu++,nu===l.length)return;En=0}gi(nu,En),ut+=dn.length}else if(ut!kt(yo,Bs)):hn,$n?ti(Kn,Bs=>!kt($n,Bs)):Kn]}function nu(hn,Kn,Zr){const yo=hn.length!!Nn($n));if(!yo||Kn&&yo!==Kn)return;Kn=yo}return Kn}function An(hn,Kn,Zr){let yo=0;if(Zr&1048576){let $n;const Bs=hn.flags&1048576?hn.types:[hn],w0=new Array(Bs.length);let ad=!1;for(const Ys of Kn)if(Nn(Ys))$n=Ys,yo++;else for(let Td=0;Tdw0[kc]?void 0:Td);if(Ys.length){$e(er(Ys),$n);return}}}else for(const $n of Kn)Nn($n)?yo++:$e(hn,$n);if(Zr&2097152?yo===1:yo>0)for(const $n of Kn)Nn($n)&&ut(hn,$n,1)}function _n(hn,Kn,Zr){if(Zr.flags&1048576){let yo=!1;for(const $n of Zr.types)yo=_n(hn,Kn,$n)||yo;return yo}if(Zr.flags&4194304){const yo=Nn(Zr.type);if(yo&&!yo.isFixed&&!vht(hn)){const $n=Dht(hn,Kn,Zr);$n&&ut($n,yo.typeParameter,Gu(hn)&262144?16:8)}return!0}if(Zr.flags&262144){ut(k_(hn,hn.pattern?2:0),Zr,32);const yo=EF(Zr);if(yo&&_n(hn,Kn,yo))return!0;const $n=Vt(n0(hn),Wn),Bs=Vt(kh(hn),w0=>w0!==Tu?w0.type:Ku);return $e(er(Hi($n,Bs)),DD(Kn)),!0}return!1}function hu(hn,Kn){if(hn.flags&16777216)$e(hn.checkType,Kn.checkType),$e(hn.extendsType,Kn.extendsType),$e(SC(hn),SC(Kn)),$e(BC(hn),BC(Kn));else{const Zr=[SC(Kn),BC(Kn)];gi(hn,Zr,Kn.flags,A?64:0)}}function oo(hn,Kn){const Zr=yht(hn,Kn),yo=Kn.types;if(Zr||ye(Kn.texts,$n=>$n.length===0))for(let $n=0;$nel|bm.flags,0);if(!(kc&4)){const el=Bs.value;kc&296&&!Cht(el,!0)&&(kc&=-297),kc&2112&&!hZ(el,!0)&&(kc&=-2113);const bm=nn(Td,(At,ze)=>ze.flags&kc?At.flags&4?At:ze.flags&4?Bs:At.flags&134217728?At:ze.flags&134217728&&pEe(Bs,ze)?Bs:At.flags&268435456?At:ze.flags&268435456&&el===v1t(ze.symbol,el)?Bs:At.flags&128?At:ze.flags&128&&ze.value===el?ze:At.flags&8?At:ze.flags&8?wg(+el):At.flags&32?At:ze.flags&32?wg(+el):At.flags&256?At:ze.flags&256&&ze.value===+el?ze:At.flags&64?At:ze.flags&64?Xii(el):At.flags&2048?At:ze.flags&2048&&I2(ze.value)===el?ze:At.flags&16?At:ze.flags&16?el==="true"?du:el==="false"?Ui:pr:At.flags&512?At:ze.flags&512&&ze.intrinsicName===el?ze:At.flags&32768?At:ze.flags&32768&&ze.intrinsicName===el?ze:At.flags&65536?At:ze.flags&65536&&ze.intrinsicName===el?ze:At:At,Ku);if(!(bm.flags&131072)){$e(bm,w0);continue}}}}$e(Bs,w0)}}function Eo(hn,Kn){var Zr,yo;if(Gu(hn)&4&&Gu(Kn)&4&&(hn.target===Kn.target||A4(hn)&&A4(Kn))){nu(O0(hn),O0(Kn),VPe(hn.target));return}if(Xm(hn)&&Xm(Kn)){$e(cp(hn),cp(Kn)),$e(DD(hn),DD(Kn));const $n=I5(hn),Bs=I5(Kn);$n&&Bs&&$e($n,Bs)}if(Gu(Kn)&32&&!Kn.declaration.nameType){const $n=cp(Kn);if(_n(hn,Kn,$n))return}if(!Yii(hn,Kn)){if(zb(hn)){if(xs(Kn)){const $n=O5(hn),Bs=O5(Kn),w0=O0(Kn),ad=Kn.target.elementFlags;if(xs(hn)&&Tii(hn,Kn)){for(let kc=0;kc0){const Bs=go(Kn,Zr),w0=Bs.length;for(let ad=0;ad1){const m=ti(l,sMe);if(m.length){const D=er(m,2);return Hi(ti(l,C=>!sMe(C)),[D])}}return l}function rni(l){return l.priority&416?Ds(l.contraCandidates):yii(l.contraCandidates)}function ani(l,m){const D=uni(l.candidates),C=nni(l.typeParameter)||W9(l.typeParameter),A=!C&&l.topLevel&&(l.isFixed||!Jii(m,l.typeParameter)),w=C?Lu(D,Jh):A?Lu(D,Ib):D,I=l.priority&416?er(w,2):bii(w);return vm(I)}function lMe(l,m){const D=l.inferences[m];if(!D.inferredType){let C,A;if(l.signature){const I=D.candidates?ani(D,l.signature):void 0,U=D.contraCandidates?rni(D):void 0;if(I||U){const Z=I&&(!U||!(I.flags&131072)&&Oe(D.contraCandidates,ce=>F6(I,ce))&&ye(l.inferences,ce=>ce!==D&&rh(ce.typeParameter)!==D.typeParameter||ye(ce.candidates,Fe=>F6(Fe,I))));C=Z?I:U,A=Z?U:I}else if(l.flags&1)C=ja;else{const Z=_F(D.typeParameter);Z&&(C=_a(Z,Iti(zti(l,m),l.nonFixingMapper)))}}else C=xht(D);D.inferredType=C||cMe(!!(l.flags&2));const w=rh(D.typeParameter);if(w){const I=_a(w,l.nonFixingMapper);(!C||!l.compareTypes(C,xm(I,C)))&&(D.inferredType=A&&l.compareTypes(A,xm(I,A))?A:I)}}return D.inferredType}function cMe(l){return l?me:on}function dMe(l){const m=[];for(let D=0;Dxh(m)||jp(m)||fm(m)))}function gEe(l,m,D,C){switch(l.kind){case 80:if(!g7(l)){const I=Zp(l);return I!==Xt?`${C?$s(C):"-1"}|${Fh(m)}|${Fh(D)}|${Zo(I)}`:void 0}case 110:return`0|${C?$s(C):"-1"}|${Fh(m)}|${Fh(D)}`;case 235:case 217:return gEe(l.expression,m,D,C);case 166:const A=gEe(l.left,m,D,C);return A&&A+"."+l.right.escapedText;case 211:case 212:const w=bF(l);if(w!==void 0){const I=gEe(l.expression,m,D,C);return I&&I+"."+w}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${$s(l)}#${Fh(m)}`}}function C1(l,m){switch(m.kind){case 217:case 235:return C1(l,m.expression);case 226:return ld(m)&&C1(l,m.left)||Xn(m)&&m.operatorToken.kind===28&&C1(l,m.right)}switch(l.kind){case 236:return m.kind===236&&l.keywordToken===m.keywordToken&&l.name.escapedText===m.name.escapedText;case 80:case 81:return g7(l)?m.kind===110:m.kind===80&&Zp(l)===Zp(m)||(na(m)||js(m))&&sp(Zp(l))===_u(m);case 110:return m.kind===110;case 108:return m.kind===108;case 235:case 217:return C1(l.expression,m);case 211:case 212:const D=bF(l),C=I0(m)?bF(m):void 0;return D!==void 0&&C!==void 0&&C===D&&C1(l.expression,m.expression);case 166:return I0(m)&&l.right.escapedText===bF(m)&&C1(l.left,m.expression);case 226:return Xn(l)&&l.operatorToken.kind===28&&C1(l.right,m)}return!1}function bF(l){if(Iu(l))return l.name.escapedText;if(U0(l))return oni(l);if(js(l)){const m=_0(l);return m?Al(m):void 0}if(io(l))return""+l.parent.parameters.indexOf(l)}function fMe(l){return l.flags&8192?l.escapedName:l.flags&384?Al(""+l.value):void 0}function oni(l){return Pm(l.argumentExpression)?Al(l.argumentExpression.text):ec(l.argumentExpression)?sni(l.argumentExpression):void 0}function sni(l){const m=R0(l,111551,!0);if(!m||!(Mz(m)||m.flags&8))return;const D=m.valueDeclaration;if(D===void 0)return;const C=dt(D);if(C){const A=fMe(C);if(A!==void 0)return A}if(Qy(D)&&B5(D,l)){const A=Dj(D);if(A)return fMe(b1(A));if(J2(D))return V8(D.name)}}function Aht(l,m){for(;I0(l);)if(l=l.expression,C1(l,m))return!0;return!1}function yF(l,m){for(;Y1(l);)if(l=l.expression,C1(l,m))return!0;return!1}function Tz(l,m){if(l&&l.flags&1048576){const D=Adt(l,m);if(D&&Gl(D)&2)return D.links.isDiscriminantProperty===void 0&&(D.links.isDiscriminantProperty=(D.links.checkFlags&192)===192&&!kz(Wn(D))),!!D.links.isDiscriminantProperty}return!1}function Sht(l,m){let D;for(const C of l)if(Tz(m,C.escapedName)){if(D){D.push(C);continue}D=[C]}return D}function lni(l,m){const D=new Map;let C=0;for(const A of l)if(A.flags&61603840){const w=he(A,m);if(w){if(!pW(w))return;let I=!1;FF(w,U=>{const Z=Fh(Jh(U)),ce=D.get(Z);ce?ce!==on&&(D.set(Z,on),I=!0):D.set(Z,A)}),I||C++}}return C>=10&&C*2>=l.length?D:void 0}function jte(l){const m=l.types;if(!(m.length<10||Gu(l)&32768||ui(m,D=>!!(D.flags&59506688))<10)){if(l.keyPropertyName===void 0){const D=L(m,A=>A.flags&59506688?L(n0(A),w=>Tg(Wn(w))?w.escapedName:void 0):void 0),C=D&&lni(m,D);l.keyPropertyName=C?D:"",l.constituentMap=C}return l.keyPropertyName.length?l.keyPropertyName:void 0}}function Vte(l,m){var D;const C=(D=l.constituentMap)==null?void 0:D.get(Fh(Jh(m)));return C!==on?C:void 0}function Bht(l,m){const D=jte(l),C=D&&he(m,D);return C&&Vte(l,C)}function cni(l,m){const D=jte(l),C=D&&Le(m.properties,w=>w.symbol&&w.kind===303&&w.symbol.escapedName===D&&qte(w.initializer)),A=C&&gie(C.initializer);return A&&Vte(l,A)}function wht(l,m){return C1(l,m)||Aht(l,m)}function Tht(l,m){if(l.arguments){for(const D of l.arguments)if(wht(m,D)||yF(D,m))return!0}return!!(l.expression.kind===211&&wht(m,l.expression.expression))}function mMe(l){return(!l.id||l.id<0)&&(l.id=RAe,RAe++),l.id}function dni(l,m){if(!(l.flags&1048576))return ms(l,m);for(const D of l.types)if(ms(D,m))return!0;return!1}function hni(l,m){if(l===m)return l;if(m.flags&131072)return m;const D=`A${Fh(l)},${Fh(m)}`;return Yk(D)??fb(D,fni(l,m))}function fni(l,m){const D=Ic(l,A=>dni(m,A)),C=m.flags&512&&Pb(m)?hl(D,Z9):D;return ms(m,C)?C:l}function pMe(l){const m=Ag(l);return!!(m.callSignatures.length||m.constructSignatures.length||m.members.get("bind")&&F6(l,di))}function Lz(l,m){return gMe(l,m)&m}function fp(l,m){return Lz(l,m)!==0}function gMe(l,m){l.flags&467927040&&(l=Wh(l)||on);const D=l.flags;if(D&268435460)return fe?16317953:16776705;if(D&134217856){const C=D&128&&l.value==="";return fe?C?12123649:7929345:C?12582401:16776705}if(D&40)return fe?16317698:16776450;if(D&256){const C=l.value===0;return fe?C?12123394:7929090:C?12582146:16776450}if(D&64)return fe?16317188:16775940;if(D&2048){const C=hht(l);return fe?C?12122884:7928580:C?12581636:16775940}return D&16?fe?16316168:16774920:D&528?fe?l===Ui||l===Sn?12121864:7927560:l===Ui||l===Sn?12580616:16774920:D&524288?m&(fe?83427327:83886079)?Gu(l)&16&&bD(l)?fe?83427327:83886079:pMe(l)?fe?7880640:16728e3:fe?7888800:16736160:0:D&16384?9830144:D&32768?26607360:D&65536?42917664:D&12288?fe?7925520:16772880:D&67108864?fe?7888800:16736160:D&131072?0:D&1048576?nn(l.types,(C,A)=>C|gMe(A,m),0):D&2097152?mni(l,m):83886079}function mni(l,m){const D=jl(l,402784252);let C=0,A=134217727;for(const w of l.types)if(!(D&&w.flags&524288)){const I=gMe(w,m);C|=I,A&=I}return C&8256|A&134209471}function mp(l,m){return Ic(l,D=>fp(D,m))}function kF(l,m){const D=Lht(mp(fe&&l.flags&2?cl:l,m));if(fe)switch(m){case 524288:return hl(D,C=>fp(C,65536)?Ds([C,fp(C,131072)&&!jl(D,65536)?er([Ko,it]):Ko]):C);case 1048576:return hl(D,C=>fp(C,131072)?Ds([C,fp(C,65536)&&!jl(D,32768)?er([Ko,te]):Ko]):C);case 2097152:case 4194304:return hl(D,C=>fp(C,262144)?Pii(C):C)}return D}function Lht(l){return l===cl?on:l}function EMe(l,m){return m?er([Hr(l),b1(m)]):l}function Nht(l,m){var D;const C=j5(m);if(!Y4(C))return Ot;const A=Q4(C);return he(l,A)||vW((D=G9(l,A))==null?void 0:D.type)||Ot}function Pht(l,m){return e4(l,Bz)&&kii(l,m)||vW(G5(65,l,te,void 0))||Ot}function vW(l){return l&&(ae.noUncheckedIndexedAccess?er([l,de]):l)}function Mht(l){return V1(G5(65,l,te,void 0)||Ot)}function pni(l){return l.parent.kind===209&&_Me(l.parent)||l.parent.kind===303&&_Me(l.parent.parent)?EMe(Hte(l),l.right):b1(l.right)}function _Me(l){return l.parent.kind===226&&l.parent.left===l||l.parent.kind===250&&l.parent.initializer===l}function gni(l,m){return Pht(Hte(l),l.elements.indexOf(m))}function Eni(l){return Mht(Hte(l.parent))}function zht(l){return Nht(Hte(l.parent),l.name)}function _ni(l){return EMe(zht(l),l.objectAssignmentInitializer)}function Hte(l){const{parent:m}=l;switch(m.kind){case 249:return ct;case 250:return Cie(m)||Ot;case 226:return pni(m);case 220:return te;case 209:return gni(m,l);case 230:return Eni(m);case 303:return zht(m);case 304:return _ni(m)}return Ot}function Dni(l){const m=l.parent,D=Rht(m.parent),C=m.kind===206?Nht(D,l.propertyName||l.name):l.dotDotDotToken?Mht(D):Pht(D,m.elements.indexOf(l));return EMe(C,l.initializer)}function Iht(l){return ar(l).resolvedType||b1(l)}function xni(l){return l.initializer?Iht(l.initializer):l.parent.parent.kind===249?ct:l.parent.parent.kind===250&&Cie(l.parent.parent)||Ot}function Rht(l){return l.kind===260?xni(l):Dni(l)}function vni(l){return l.kind===260&&l.initializer&&b3(l.initializer)||l.kind!==208&&l.parent.kind===226&&b3(l.parent.right)}function Rb(l){switch(l.kind){case 217:return Rb(l.expression);case 226:switch(l.operatorToken.kind){case 64:case 76:case 77:case 78:return Rb(l.left);case 28:return Rb(l.right)}}return l}function Oht(l){const{parent:m}=l;return m.kind===217||m.kind===226&&m.operatorToken.kind===64&&m.left===l||m.kind===226&&m.operatorToken.kind===28&&m.right===l?Oht(m):l}function Cni(l){return l.kind===296?Jh(b1(l.expression)):Ku}function EEe(l){const m=ar(l);if(!m.switchTypes){m.switchTypes=[];for(const D of l.caseBlock.clauses)m.switchTypes.push(Cni(D))}return m.switchTypes}function jht(l){if(Oe(l.caseBlock.clauses,D=>D.kind===296&&!t0(D.expression)))return;const m=[];for(const D of l.caseBlock.clauses){const C=D.kind===296?D.expression.text:void 0;m.push(C&&!kt(m,C)?C:void 0)}return m}function bni(l,m){return l.flags&1048576?!L(l.types,D=>!kt(m,D)):kt(m,l)}function Nz(l,m){return!!(l===m||l.flags&131072||m.flags&1048576&&yni(l,m))}function yni(l,m){if(l.flags&1048576){for(const D of l.types)if(!C6(m.types,D))return!1;return!0}return l.flags&1056&&bge(l)===m?!0:C6(m.types,l)}function FF(l,m){return l.flags&1048576?L(l.types,m):m(l)}function yE(l,m){return l.flags&1048576?Oe(l.types,m):m(l)}function e4(l,m){return l.flags&1048576?ye(l.types,m):m(l)}function kni(l,m){return l.flags&3145728?ye(l.types,m):m(l)}function Ic(l,m){if(l.flags&1048576){const D=l.types,C=ti(D,m);if(C===D)return l;const A=l.origin;let w;if(A&&A.flags&1048576){const I=A.types,U=ti(I,Z=>!!(Z.flags&1048576)||m(Z));if(I.length-U.length===D.length-C.length){if(U.length===1)return U[0];w=EPe(1048576,U)}}return DPe(C,l.objectFlags&16809984,void 0,void 0,w)}return l.flags&131072||m(l)?l:Ku}function _Ee(l,m){return Ic(l,D=>D!==m)}function Fni(l){return l.flags&1048576?l.types.length:1}function hl(l,m,D){if(l.flags&131072)return l;if(!(l.flags&1048576))return m(l);const C=l.origin,A=C&&C.flags&1048576?C.types:l.types;let w,I=!1;for(const U of A){const Z=U.flags&1048576?hl(U,m,D):m(U);I||(I=U!==Z),Z&&(w?w.push(Z):w=[Z])}return I?w&&er(w,D?0:1):l}function Vht(l,m,D,C){return l.flags&1048576&&D?er(Vt(l.types,m),1,D,C):hl(l,m)}function Pz(l,m){return Ic(l,D=>(D.flags&m)!==0)}function Hht(l,m){return jl(l,134217804)&&jl(m,402655616)?hl(l,D=>D.flags&4?Pz(m,402653316):U9(D)&&!jl(m,402653188)?Pz(m,128):D.flags&8?Pz(m,264):D.flags&64?Pz(m,2112):D):l}function cT(l){return l.flags===0}function AF(l){return l.flags===0?l.type:l}function dT(l,m){return m?{flags:0,type:l.flags&131072?ja:l}:l}function Ani(l){const m=D4(256);return m.elementType=l,m}function DMe(l){return Et[l.id]||(Et[l.id]=Ani(l))}function Kht(l,m){const D=_W(kD(gie(m)));return Nz(D,l.elementType)?l:DMe(er([l.elementType,D]))}function Sni(l){return l.flags&131072?Nc:V1(l.flags&1048576?er(l.types,2):l)}function Bni(l){return l.finalArrayType||(l.finalArrayType=Sni(l.elementType))}function Kte(l){return Gu(l)&256?Bni(l):l}function wni(l){return Gu(l)&256?l.elementType:Ku}function Tni(l){let m=!1;for(const D of l)if(!(D.flags&131072)){if(!(Gu(D)&256))return!1;m=!0}return m}function Wht(l){const m=Oht(l),D=m.parent,C=Iu(D)&&(D.name.escapedText==="length"||D.parent.kind===213&&at(D.name)&&$0e(D.name)),A=D.kind===212&&D.expression===m&&D.parent.kind===226&&D.parent.operatorToken.kind===64&&D.parent.left===D&&!Q_(D.parent)&&u1(b1(D.argumentExpression),296);return C||A}function Lni(l){return(na(l)||ko(l)||Mm(l)||io(l))&&!!(f1(l)||Qn(l)&&Nx(l)&&l.initializer&&R2(l.initializer)&&U4(l.initializer))}function DEe(l,m){if(l=yc(l),l.flags&8752)return Wn(l);if(l.flags&7){if(Gl(l)&262144){const C=l.links.syntheticOrigin;if(C&&DEe(C))return Wn(l)}const D=l.valueDeclaration;if(D){if(Lni(D))return Wn(l);if(na(D)&&D.parent.parent.kind===250){const C=D.parent.parent,A=Wte(C.expression,void 0);if(A){const w=C.awaitModifier?15:13;return G5(w,A,te,void 0)}}m&&Es(m,Su(D,F._0_needs_an_explicit_type_annotation,Fr(l)))}}}function Wte(l,m){if(!(l.flags&67108864))switch(l.kind){case 80:const D=sp(Zp(l));return DEe(D,m);case 110:return Yni(l);case 108:return kMe(l);case 211:{const C=Wte(l.expression,m);if(C){const A=l.name;let w;if(Xr(A)){if(!C.symbol)return;w=qo(C,zj(C.symbol,A.escapedText))}else w=qo(C,A.escapedText);return w&&DEe(w,m)}return}case 217:return Wte(l.expression,m)}}function Gte(l){const m=ar(l);let D=m.effectsSignature;if(D===void 0){let C;if(Xn(l)){const I=hT(l.right);C=gze(I)}else l.parent.kind===244?C=Wte(l.expression,void 0):l.expression.kind!==108&&(Y1(l)?C=kE(gW(ya(l.expression),l.expression),l.expression):C=hT(l.expression));const A=go(C&&Gh(C)||on,0),w=A.length===1&&!A[0].typeParameters?A[0]:Oe(A,Ght)?mT(l):void 0;D=m.effectsSignature=w&&Ght(w)?w:fn}return D===fn?void 0:D}function Ght(l){return!!(y4(l)||l.declaration&&(uT(l.declaration)||on).flags&131072)}function Nni(l,m){if(l.kind===1||l.kind===3)return m.arguments[l.parameterIndex];const D=l0(m.expression);return I0(D)?l0(D.expression):void 0}function Pni(l){const m=Tn(l,Zse),D=zn(l),C=QE(D,m.statements.pos);Vs.add(Rd(D,C.start,C.length,F.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Jte(l){const m=xEe(l,!1);return Rn=l,tn=m,m}function $te(l){const m=l0(l,!0);return m.kind===97||m.kind===226&&(m.operatorToken.kind===56&&($te(m.left)||$te(m.right))||m.operatorToken.kind===57&&$te(m.left)&&$te(m.right))}function xEe(l,m){for(;;){if(l===Rn)return tn;const D=l.flags;if(D&4096){if(!m){const C=mMe(l),A=b9[C];return A!==void 0?A:b9[C]=xEe(l,!0)}m=!1}if(D&368)l=l.antecedent;else if(D&512){const C=Gte(l.node);if(C){const A=y4(C);if(A&&A.kind===3&&!A.type){const w=l.node.arguments[A.parameterIndex];if(w&&$te(w))return!1}if(Zs(C).flags&131072)return!1}l=l.antecedent}else{if(D&4)return Oe(l.antecedents,C=>xEe(C,!1));if(D&8){const C=l.antecedents;if(C===void 0||C.length===0)return!1;l=C[0]}else if(D&128){if(l.clauseStart===l.clauseEnd&&vmt(l.switchStatement))return!1;l=l.antecedent}else if(D&1024){Rn=void 0;const C=l.target,A=C.antecedents;C.antecedents=l.antecedents;const w=xEe(l.antecedent,!1);return C.antecedents=A,w}else return!(D&1)}}}function vEe(l,m){for(;;){const D=l.flags;if(D&4096){if(!m){const C=mMe(l),A=qk[C];return A!==void 0?A:qk[C]=vEe(l,!0)}m=!1}if(D&496)l=l.antecedent;else if(D&512){if(l.node.expression.kind===108)return!0;l=l.antecedent}else{if(D&4)return ye(l.antecedents,C=>vEe(C,!1));if(D&8)l=l.antecedents[0];else if(D&1024){const C=l.target,A=C.antecedents;C.antecedents=l.antecedents;const w=vEe(l.antecedent,!1);return C.antecedents=A,w}else return!!(D&1)}}}function Jht(l){switch(l.kind){case 110:return!0;case 80:if(!g7(l)){const m=Zp(l);return Mz(m)||Mle(m)&&!CEe(m)}break;case 211:case 212:return Jht(l.expression)&&Ng(ar(l).resolvedSymbol||Xt)}return!1}function w6(l,m,D=m,C,A=(w=>(w=ur(l,Bj))==null?void 0:w.flowNode)()){let w,I=!1,U=0;if(Ti)return Ot;if(!A)return m;Xi++;const Z=oi,ce=AF($e(A));oi=Z;const Fe=Gu(ce)&256&&Wht(l)?Nc:Kte(ce);if(Fe===Ir||l.parent&&l.parent.kind===235&&!(Fe.flags&131072)&&mp(Fe,2097152).flags&131072)return m;return Fe===le?on:Fe;function Te(){return I?w:(I=!0,w=gEe(l,m,D,C))}function $e(Lt){var li;if(U===2e3)return(li=Gn)==null||li.instant(Gn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Lt.id}),Ti=!0,Pni(l),Ot;U++;let Gi;for(;;){const yi=Lt.flags;if(yi&4096){for(let mn=Z;mn=0&&Gi.parameterIndex!(mn.flags&163840)):li.kind===221&&yF(li.expression,l)&&(yi=w0(yi,Lt.switchStatement,Lt.clauseStart,Lt.clauseEnd,mn=>!(mn.flags&131072||mn.flags&128&&mn.value==="undefined"))));const Ji=_n(li,yi);Ji&&(yi=Eo(yi,Ji,Lt.switchStatement,Lt.clauseStart,Lt.clauseEnd))}return dT(yi,cT(Gi))}function Ii(Lt){const li=[];let Gi=!1,yi=!1,Ji;for(const mn of Lt.antecedents){if(!Ji&&mn.flags&128&&mn.clauseStart===mn.clauseEnd){Ji=mn;continue}const Kr=$e(mn),ku=AF(Kr);if(ku===m&&m===D)return ku;xa(li,ku),Nz(ku,D)||(Gi=!0),cT(Kr)&&(yi=!0)}if(Ji){const mn=$e(Ji),Kr=AF(mn);if(!(Kr.flags&131072)&&!kt(li,Kr)&&!vmt(Ji.switchStatement)){if(Kr===m&&m===D)return Kr;li.push(Kr),Nz(Kr,D)||(Gi=!0),cT(mn)&&(yi=!0)}}return dT(vn(li,Gi?2:1),yi)}function Nn(Lt){const li=mMe(Lt),Gi=x9[li]||(x9[li]=new Map),yi=Te();if(!yi)return m;const Ji=Gi.get(yi);if(Ji)return Ji;for(let pn=Xe;pn{const pn=Re(_o,yi)||on;return!(pn.flags&131072)&&!(ku.flags&131072)&&Nte(ku,pn)})}function oo(Lt,li,Gi,yi,Ji){if((Gi===37||Gi===38)&&Lt.flags&1048576){const mn=jte(Lt);if(mn&&mn===bF(li)){const Kr=Vte(Lt,b1(yi));if(Kr)return Gi===(Ji?37:38)?Kr:Tg(he(Kr,mn)||on)?_Ee(Lt,Kr):Lt}}return hu(Lt,li,mn=>yo(mn,Gi,yi,Ji))}function Eo(Lt,li,Gi,yi,Ji){if(yiVte(Lt,ku)||on));if(Kr!==on)return Kr}return hu(Lt,li,mn=>ad(mn,Gi,yi,Ji))}function fo(Lt,li,Gi){if(C1(l,li))return kF(Lt,Gi?4194304:8388608);fe&&Gi&&yF(li,l)&&(Lt=kF(Lt,2097152));const yi=_n(li,Lt);return yi?hu(Lt,yi,Ji=>mp(Ji,Gi?4194304:8388608)):Lt}function ka(Lt,li,Gi){const yi=qo(Lt,li);return yi?!!(yi.flags&16777216||Gl(yi)&48)||Gi:!!G9(Lt,li)||!Gi}function ah(Lt,li,Gi){const yi=Q4(li);if(yE(Lt,mn=>ka(mn,yi,!0)))return Ic(Lt,mn=>ka(mn,yi,Gi));if(Gi){const mn=Oei();if(mn)return Ds([Lt,aT(mn,[li,on])])}return Lt}function t4(Lt,li,Gi,yi,Ji){return Ji=Ji!==(Gi.kind===112)!=(yi!==38&&yi!==36),Ou(Lt,li,Ji)}function hn(Lt,li,Gi){switch(li.operatorToken.kind){case 64:case 76:case 77:case 78:return fo(Ou(Lt,li.right,Gi),li.left,Gi);case 35:case 36:case 37:case 38:const yi=li.operatorToken.kind,Ji=Rb(li.left),mn=Rb(li.right);if(Ji.kind===221&&t0(mn))return $n(Lt,Ji,yi,mn,Gi);if(mn.kind===221&&t0(Ji))return $n(Lt,mn,yi,Ji,Gi);if(C1(l,Ji))return yo(Lt,yi,mn,Gi);if(C1(l,mn))return yo(Lt,yi,Ji,Gi);fe&&(yF(Ji,l)?Lt=Zr(Lt,yi,mn,Gi):yF(mn,l)&&(Lt=Zr(Lt,yi,Ji,Gi)));const Kr=_n(Ji,Lt);if(Kr)return oo(Lt,Kr,yi,mn,Gi);const ku=_n(mn,Lt);if(ku)return oo(Lt,ku,yi,Ji,Gi);if(bm(Ji))return At(Lt,yi,mn,Gi);if(bm(mn))return At(Lt,yi,Ji,Gi);if(HN(mn)&&!I0(Ji))return t4(Lt,Ji,mn,yi,Gi);if(HN(Ji)&&!I0(mn))return t4(Lt,mn,Ji,yi,Gi);break;case 104:return ze(Lt,li,Gi);case 103:if(Xr(li.left))return Kn(Lt,li,Gi);const _o=Rb(li.right);if(EW(Lt)&&I0(l)&&C1(l.expression,_o)){const pn=b1(li.left);if(Y4(pn)&&bF(l)===Q4(pn))return mp(Lt,Gi?524288:65536)}if(C1(l,_o)){const pn=b1(li.left);if(Y4(pn))return ah(Lt,pn,Gi)}break;case 28:return Ou(Lt,li.right,Gi);case 56:return Gi?Ou(Ou(Lt,li.left,!0),li.right,!0):er([Ou(Lt,li.left,!1),Ou(Lt,li.right,!1)]);case 57:return Gi?er([Ou(Lt,li.left,!0),Ou(Lt,li.right,!0)]):Ou(Ou(Lt,li.left,!1),li.right,!1)}return Lt}function Kn(Lt,li,Gi){const yi=Rb(li.right);if(!C1(l,yi))return Lt;H.assertNode(li.left,Xr);const Ji=NEe(li.left);if(Ji===void 0)return Lt;const mn=Ji.parent,Kr=Kc(H.checkDefined(Ji.valueDeclaration,"should always have a declaration"))?Wn(mn):X0(mn);return Fu(Lt,Kr,Gi,!0)}function Zr(Lt,li,Gi,yi){const Ji=li===35||li===37,mn=li===35||li===36?98304:32768,Kr=b1(Gi);return Ji!==yi&&e4(Kr,_o=>!!(_o.flags&mn))||Ji===yi&&e4(Kr,_o=>!(_o.flags&(3|mn)))?kF(Lt,2097152):Lt}function yo(Lt,li,Gi,yi){if(Lt.flags&1)return Lt;(li===36||li===38)&&(yi=!yi);const Ji=b1(Gi),mn=li===35||li===36;if(Ji.flags&98304){if(!fe)return Lt;const Kr=mn?yi?262144:2097152:Ji.flags&65536?yi?131072:1048576:yi?65536:524288;return kF(Lt,Kr)}if(yi){if(!mn&&(Lt.flags&2||yE(Lt,yD))){if(Ji.flags&469893116||yD(Ji))return Ji;if(Ji.flags&524288)return as}const Kr=Ic(Lt,ku=>Nte(ku,Ji)||mn&&Mii(ku,Ji));return Hht(Kr,Ji)}return Tg(Ji)?Ic(Lt,Kr=>!(sht(Kr)&&Nte(Kr,Ji))):Lt}function $n(Lt,li,Gi,yi,Ji){(Gi===36||Gi===38)&&(Ji=!Ji);const mn=Rb(li.expression);if(!C1(l,mn)){fe&&yF(mn,l)&&Ji===(yi.text!=="undefined")&&(Lt=kF(Lt,2097152));const Kr=_n(mn,Lt);return Kr?hu(Lt,Kr,ku=>Bs(ku,yi,Ji)):Lt}return Bs(Lt,yi,Ji)}function Bs(Lt,li,Gi){return Gi?Ys(Lt,li.text):kF(Lt,Vde.get(li.text)||32768)}function w0(Lt,li,Gi,yi,Ji){return Gi!==yi&&ye(EEe(li).slice(Gi,yi),Ji)?mp(Lt,2097152):Lt}function ad(Lt,li,Gi,yi){const Ji=EEe(li);if(!Ji.length)return Lt;const mn=Ji.slice(Gi,yi),Kr=Gi===yi||kt(mn,Ku);if(Lt.flags&2&&!Kr){let or;for(let qr=0;qrNte(ku,or)),ku);if(!Kr)return _o;const pn=Ic(Lt,or=>!(sht(or)&&kt(Ji,Jh(Aii(or)))));return _o.flags&131072?pn:er([_o,pn])}function Ys(Lt,li){switch(li){case"string":return Td(Lt,ct,1);case"number":return Td(Lt,Qt,2);case"bigint":return Td(Lt,Li,4);case"boolean":return Td(Lt,pr,8);case"symbol":return Td(Lt,Xu,16);case"object":return Lt.flags&1?Lt:er([Td(Lt,as,32),Td(Lt,it,131072)]);case"function":return Lt.flags&1?Lt:Td(Lt,di,64);case"undefined":return Td(Lt,te,65536)}return Td(Lt,as,128)}function Td(Lt,li,Gi){return hl(Lt,yi=>bE(yi,li,p4)?fp(yi,Gi)?yi:Ku:F6(li,yi)?li:fp(yi,Gi)?Ds([yi,li]):Ku)}function kc(Lt,li,Gi,yi){const Ji=jht(li);if(!Ji)return Lt;const mn=Ue(li.caseBlock.clauses,_o=>_o.kind===297);if(Gi===yi||mn>=Gi&&mnLz(pn,_o)===_o)}const ku=Ji.slice(Gi,yi);return er(Vt(ku,_o=>_o?Ys(Lt,_o):Ku))}function el(Lt,li,Gi,yi){const Ji=Ue(li.caseBlock.clauses,ku=>ku.kind===297),mn=Gi===yi||Ji>=Gi&&Jiku.kind===296?Ou(Lt,ku.expression,!0):Ku))}function bm(Lt){return(Iu(Lt)&&fu(Lt.name)==="constructor"||U0(Lt)&&t0(Lt.argumentExpression)&&Lt.argumentExpression.text==="constructor")&&C1(l,Lt.expression)}function At(Lt,li,Gi,yi){if(yi?li!==35&&li!==37:li!==36&&li!==38)return Lt;const Ji=b1(Gi);if(!$ze(Ji)&&!Or(Ji))return Lt;const mn=qo(Ji,"prototype");if(!mn)return Lt;const Kr=Wn(mn),ku=nt(Kr)?void 0:Kr;if(!ku||ku===He||ku===di)return Lt;if(nt(Lt))return ku;return Ic(Lt,pn=>_o(pn,ku));function _o(pn,or){return pn.flags&524288&&Gu(pn)&1||or.flags&524288&&Gu(or)&1?pn.symbol===or.symbol:F6(pn,or)}}function ze(Lt,li,Gi){const yi=Rb(li.left);if(!C1(l,yi))return Gi&&fe&&yF(yi,l)?kF(Lt,2097152):Lt;const Ji=li.right,mn=b1(Ji);if(!TC(mn,He))return Lt;const Kr=Gte(li),ku=Kr&&y4(Kr);if(ku&&ku.kind===1&&ku.parameterIndex===0)return Fu(Lt,ku.type,Gi,!0);if(!TC(mn,di))return Lt;const _o=hl(mn,Yn);return nt(Lt)&&(_o===He||_o===di)||!Gi&&!(_o.flags&524288&&!yD(_o))?Lt:Fu(Lt,_o,Gi,!0)}function Yn(Lt){const li=he(Lt,"prototype");if(li&&!nt(li))return li;const Gi=go(Lt,1);return Gi.length?er(Vt(Gi,yi=>Zs(aW(yi)))):Ko}function Fu(Lt,li,Gi,yi){const Ji=Lt.flags&1048576?`N${Fh(Lt)},${Fh(li)},${(Gi?1:0)|(yi?2:0)}`:void 0;return Yk(Ji)??fb(Ji,Er(Lt,li,Gi,yi))}function Er(Lt,li,Gi,yi){if(!Gi){if(yi)return Ic(Lt,_o=>!TC(_o,li));const ku=Fu(Lt,li,!0,!1);return Ic(Lt,_o=>!Nz(_o,ku))}if(Lt.flags&3)return li;const Ji=yi?TC:F6,mn=Lt.flags&1048576?jte(Lt):void 0,Kr=hl(li,ku=>{const _o=mn&&he(ku,mn),pn=_o&&Vte(Lt,_o),or=hl(pn||Lt,yi?qr=>TC(qr,ku)?qr:TC(ku,qr)?ku:Ku:qr=>K1t(qr,ku)?qr:K1t(ku,qr)?ku:F6(qr,ku)?qr:F6(ku,qr)?ku:Ku);return or.flags&131072?hl(Lt,qr=>jl(qr,465829888)&&Ji(ku,Wh(qr)||on)?Ds([qr,ku]):Ku):or});return Kr.flags&131072?F6(li,Lt)?li:ms(Lt,li)?Lt:ms(li,Lt)?li:Ds([Lt,li]):Kr}function fr(Lt,li,Gi){if(Tht(li,l)){const yi=Gi||!$y(li)?Gte(li):void 0,Ji=yi&&y4(yi);if(Ji&&(Ji.kind===0||Ji.kind===1))return Mr(Lt,Ji,li,Gi)}if(EW(Lt)&&I0(l)&&Iu(li.expression)){const yi=li.expression;if(C1(l.expression,Rb(yi.expression))&&at(yi.name)&&yi.name.escapedText==="hasOwnProperty"&&li.arguments.length===1){const Ji=li.arguments[0];if(t0(Ji)&&bF(l)===Al(Ji.text))return mp(Lt,Gi?524288:65536)}}return Lt}function Mr(Lt,li,Gi,yi){if(li.type&&!(nt(Lt)&&(li.type===He||li.type===di))){const Ji=Nni(li,Gi);if(Ji){if(C1(l,Ji))return Fu(Lt,li.type,yi,!1);fe&&yF(Ji,l)&&(yi&&!fp(li.type,65536)||!yi&&e4(li.type,tie))&&(Lt=kF(Lt,2097152));const mn=_n(Ji,Lt);if(mn)return hu(Lt,mn,Kr=>Fu(Kr,li.type,yi,!1))}}return Lt}function Ou(Lt,li,Gi){if(MU(li)||Xn(li.parent)&&(li.parent.operatorToken.kind===61||li.parent.operatorToken.kind===78)&&li.parent.left===li)return xu(Lt,li,Gi);switch(li.kind){case 80:if(!C1(l,li)&&J<5){const yi=Zp(li);if(Mz(yi)){const Ji=yi.valueDeclaration;if(Ji&&na(Ji)&&!Ji.type&&Ji.initializer&&Jht(l)){J++;const mn=Ou(Lt,Ji.initializer,Gi);return J--,mn}}}case 110:case 108:case 211:case 212:return fo(Lt,li,Gi);case 213:return fr(Lt,li,Gi);case 217:case 235:return Ou(Lt,li.expression,Gi);case 226:return hn(Lt,li,Gi);case 224:if(li.operator===54)return Ou(Lt,li.operand,!Gi);break}return Lt}function xu(Lt,li,Gi){if(C1(l,li))return kF(Lt,Gi?2097152:262144);const yi=_n(li,Lt);return yi?hu(Lt,yi,Ji=>mp(Ji,Gi?2097152:262144)):Lt}}function Mni(l,m){if(l=sp(l),(m.kind===80||m.kind===81)&&(gP(m)&&(m=m.parent),Z_(m)&&(!Q_(m)||D7(m)))){const D=oEe(D7(m)&&m.kind===211?TEe(m,void 0,!0):b1(m));if(sp(ar(m).resolvedSymbol)===l)return D}return X3(m)&&e5(m.parent)&&i0(m.parent)?Dge(m.parent.symbol):cle(m)&&D7(m.parent)?mF(l):E6(l)}function CW(l){return Tn(l.parent,m=>Co(m)&&!nk(m)||m.kind===268||m.kind===312||m.kind===172)}function CEe(l){if(!l.valueDeclaration)return!1;const m=XE(l.valueDeclaration).parent,D=ar(m);return D.flags&131072||(D.flags|=131072,zni(m)||$ht(m)),l.isAssigned||!1}function zni(l){return!!Tn(l.parent,m=>(Co(m)||G2(m))&&!!(ar(m).flags&131072))}function $ht(l){if(l.kind===80){if(Q_(l)){const m=Zp(l);Mle(m)&&(m.isAssigned=!0)}}else ao(l,$ht)}function Mz(l){return l.flags&3&&(OMe(l)&6)!==0}function Ini(l){const m=ar(l);if(m.parameterInitializerContainsUndefined===void 0){if(!D_(l,9))return Xw(l.symbol),!0;const D=!!fp(wW(l,0),16777216);if(!CE())return Xw(l.symbol),!0;m.parameterInitializerContainsUndefined=D}return m.parameterInitializerContainsUndefined}function Rni(l,m){return fe&&m.kind===169&&m.initializer&&fp(l,16777216)&&!Ini(m)?mp(l,524288):l}function Oni(l,m){const D=m.parent;return D.kind===211||D.kind===166||D.kind===213&&D.expression===m||D.kind===212&&D.expression===m&&!(yE(l,qht)&&AC(b1(D.argumentExpression)))}function Uht(l){return l.flags&2097152?Oe(l.types,Uht):!!(l.flags&465829888&&xD(l).flags&1146880)}function qht(l){return l.flags&2097152?Oe(l.types,qht):!!(l.flags&465829888&&!jl(xD(l),98304))}function jni(l,m){const D=(at(l)||Iu(l)||U0(l))&&!((aE(l.parent)||bk(l.parent))&&l.parent.tagName===l)&&(m&&m&32?hf(l,8):hf(l,void 0));return D&&!kz(D)}function xMe(l,m,D){return!(D&&D&2)&&yE(l,Uht)&&(Oni(l,m)||jni(m,D))?hl(l,xD):l}function Zht(l){return!!Tn(l,m=>{const D=m.parent;return D===void 0?"quit":tc(D)?D.expression===m&&ec(m):eh(D)?D.name===m||D.propertyName===m:!1})}function bEe(l,m){if(Ut&&hC(l,111551)&&!ck(m)){const D=md(l);O1(l,!0)&1160127&&(mg(ae)||fk(ae)&&Zht(m)||!OW(sp(D))?T5(l):n1(l))}}function Vni(l,m){var D;const C=Wn(l),A=l.valueDeclaration;if(A){if(js(A)&&!A.initializer&&!A.dotDotDotToken&&A.parent.elements.length>=2){const w=A.parent.parent;if(w.kind===260&&Gb(A)&6||w.kind===169){const I=ar(w);if(!(I.flags&4194304)){I.flags|=4194304;const U=bi(w,0),Z=U&&hl(U,xD);if(I.flags&=-4194305,Z&&Z.flags&1048576&&!(w.kind===169&&CEe(l))){const ce=A.parent,Fe=w6(ce,Z,Z,void 0,m.flowNode);return Fe.flags&131072?Ku:v4(A,Fe,!0)}}}}if(io(A)&&!A.type&&!A.initializer&&!A.dotDotDotToken){const w=A.parent;if(w.parameters.length>=2&&Uge(w)){const I=yW(w);if(I&&I.parameters.length===1&&th(I)){const U=Dz(_a(Wn(I.parameters[0]),(D=jb(w))==null?void 0:D.nonFixingMapper));if(U.flags&1048576&&e4(U,xs)&&!CEe(l)){const Z=w6(w,U,U,void 0,m.flowNode),ce=w.parameters.indexOf(A)-(T2(w)?1:0);return qf(Z,wg(ce))}}}}}return C}function Hni(l,m){if(g7(l))return Ute(l);const D=Zp(l);if(D===Xt)return Ot;if(D===It){if(Nft(l))return pt(l,F.arguments_cannot_be_referenced_in_property_initializers),Ot;const Ii=Nm(l);return Ce<2&&(Ii.kind===219?pt(l,F.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Yu(Ii,1024)&&pt(l,F.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ar(Ii).flags|=512,Wn(D)}Wni(l)&&bEe(D,l);const C=sp(D),A=Vze(C,l);S5(A)&&vPe(l,A)&&A.declarations&&m3(l,A.declarations,l.escapedText);let w=C.valueDeclaration;if(w&&C.flags&32&&mr(w)&&w.name!==l){let Ii=tf(l,!1,!1);for(;Ii.kind!==312&&Ii.parent!==w;)Ii=tf(Ii,!1,!1);Ii.kind!==312&&(ar(w).flags|=262144,ar(Ii).flags|=262144,ar(l).flags|=536870912)}$ni(l,D);let I=Vni(C,l);const U=f7(l);if(U){if(!(C.flags&3)&&!(Qn(l)&&C.flags&512)){const Ii=C.flags&384?F.Cannot_assign_to_0_because_it_is_an_enum:C.flags&32?F.Cannot_assign_to_0_because_it_is_a_class:C.flags&1536?F.Cannot_assign_to_0_because_it_is_a_namespace:C.flags&16?F.Cannot_assign_to_0_because_it_is_a_function:C.flags&2097152?F.Cannot_assign_to_0_because_it_is_an_import:F.Cannot_assign_to_0_because_it_is_not_a_variable;return pt(l,Ii,Fr(D)),Ot}if(Ng(C))return C.flags&3?pt(l,F.Cannot_assign_to_0_because_it_is_a_constant,Fr(D)):pt(l,F.Cannot_assign_to_0_because_it_is_a_read_only_property,Fr(D)),Ot}const Z=C.flags&2097152;if(C.flags&3){if(U===1)return O0e(l)?kD(I):I}else if(Z)w=rp(D);else return I;if(!w)return I;I=xMe(I,l,m);const ce=XE(w).kind===169,Fe=CW(w);let Te=CW(l);const $e=Te!==Fe,ut=l.parent&&l.parent.parent&&d5(l.parent)&&_Me(l.parent.parent),zt=D.flags&134217728,gi=I===ni||I===Nc,Wi=gi&&l.parent.kind===235;for(;Te!==Fe&&(Te.kind===218||Te.kind===219||lq(Te))&&(Mz(C)&&I!==Nc||ce&&!CEe(C));)Te=CW(Te);const dn=ce||Z||$e||ut||zt||Kni(l,w)||I!==ni&&I!==Nc&&(!fe||(I.flags&16387)!==0||ck(l)||hMe(l)||l.parent.kind===281)||l.parent.kind===235||w.kind===260&&w.exclamationToken||w.flags&33554432,nu=Wi?te:dn?ce?Rni(I,w):I:gi?te:S6(I),En=Wi?FD(w6(l,I,nu,Te)):w6(l,I,nu,Te);if(!Wht(l)&&(I===ni||I===Nc)){if(En===ni||En===Nc)return Ae&&(pt(Za(w),F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Fr(D),gn(En)),pt(l,F.Variable_0_implicitly_has_an_1_type,Fr(D),gn(En))),RW(En)}else if(!dn&&!Fz(I)&&Fz(En))return pt(l,F.Variable_0_is_used_before_being_assigned,Fr(D)),I;return U?kD(En):En}function Kni(l,m){if(js(m)){const D=Tn(l,js);return D&&XE(D)===XE(m)}}function Wni(l){var m;const D=l.parent;if(D){if(Iu(D)&&D.expression===l||eh(D)&&D.isTypeOnly)return!1;const C=(m=D.parent)==null?void 0:m.parent;if(C&&Gc(C)&&C.isTypeOnly)return!1}return!0}function Gni(l,m){return!!Tn(l,D=>D===m?"quit":Co(D)||D.parent&&ko(D.parent)&&!Kc(D.parent)&&D.parent.initializer===D)}function Jni(l,m){return Tn(l,D=>D===m?"quit":D===m.initializer||D===m.condition||D===m.incrementor||D===m.statement)}function vMe(l){return Tn(l,m=>!m||U0e(m)?"quit":Tx(m,!1))}function $ni(l,m){if(Ce>=2||!(m.flags&34)||!m.valueDeclaration||la(m.valueDeclaration)||m.valueDeclaration.parent.kind===299)return;const D=YE(m.valueDeclaration),C=Gni(l,D),A=vMe(D);if(A){if(C){let w=!0;if(vk(D)){const I=Fv(m.valueDeclaration,261);if(I&&I.parent===D){const U=Jni(l.parent,D);if(U){const Z=ar(U);Z.flags|=8192;const ce=Z.capturedBlockScopeBindings||(Z.capturedBlockScopeBindings=[]);xa(ce,m),U===D.initializer&&(w=!1)}}}w&&(ar(A).flags|=4096)}if(vk(D)){const w=Fv(m.valueDeclaration,261);w&&w.parent===D&&qni(l,D)&&(ar(m.valueDeclaration).flags|=65536)}ar(m.valueDeclaration).flags|=32768}C&&(ar(m.valueDeclaration).flags|=16384)}function Uni(l,m){const D=ar(l);return!!D&&kt(D.capturedBlockScopeBindings,_u(m))}function qni(l,m){let D=l;for(;D.parent.kind===217;)D=D.parent;let C=!1;if(Q_(D))C=!0;else if(D.parent.kind===224||D.parent.kind===225){const A=D.parent;C=A.operator===46||A.operator===47}return C?!!Tn(D,A=>A===m?"quit":A===m.statement):!1}function CMe(l,m){if(ar(l).flags|=2,m.kind===172||m.kind===176){const D=m.parent;ar(D).flags|=4}else ar(m).flags|=4}function Yht(l){return ik(l)?l:Co(l)?void 0:ao(l,Yht)}function bMe(l){const m=_u(l),D=X0(m);return qc(D)===Ct}function Qht(l,m,D){const C=m.parent;B2(C)&&!bMe(C)&&Bj(l)&&l.flowNode&&!vEe(l.flowNode,!1)&&pt(l,D)}function Zni(l,m){ko(m)&&Kc(m)&&ve&&m.initializer&&IO(m.initializer,l.pos)&&o4(m.parent)&&pt(l,F.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Ute(l){const m=ck(l);let D=tf(l,!0,!0),C=!1,A=!1;for(D.kind===176&&Qht(l,D,F.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(D.kind===219&&(D=tf(D,!1,!A),C=!0),D.kind===167){D=tf(D,!C,!1),A=!0;continue}break}if(Zni(l,D),A)pt(l,F.this_cannot_be_referenced_in_a_computed_property_name);else switch(D.kind){case 267:pt(l,F.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:pt(l,F.this_cannot_be_referenced_in_current_location);break;case 176:Xht(l,D)&&pt(l,F.this_cannot_be_referenced_in_constructor_arguments);break}!m&&C&&Ce<2&&CMe(l,D);const w=yMe(l,!0,D);if(De){const I=Wn(St);if(w===I&&C)pt(l,F.The_containing_arrow_function_captures_the_global_value_of_this);else if(!w){const U=pt(l,F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!la(D)){const Z=yMe(D);Z&&Z!==I&&Es(U,Su(D,F.An_outer_value_of_this_is_shadowed_by_this_container))}}}return w||me}function yMe(l,m=!0,D=tf(l,!1,!1)){const C=Qn(l);if(Co(D)&&(!AMe(l)||T2(D))){let A=g6(D)||C&&Xni(D);if(!A){const w=Qni(D);if(C&&w){const I=ya(w).symbol;I&&I.members&&I.flags&16&&(A=X0(I).thisType)}else AE(D)&&(A=X0(Ks(D.symbol)).thisType);A||(A=nft(D))}if(A)return w6(l,A)}if(mr(D.parent)){const A=_u(D.parent),w=No(D)?Wn(A):X0(A).thisType;return w6(l,w)}if(la(D))if(D.commonJsModuleIndicator){const A=_u(D);return A&&Wn(A)}else{if(D.externalModuleIndicator)return te;if(m)return Wn(St)}}function Yni(l){const m=tf(l,!1,!1);if(Co(m)){const D=dp(m);if(D.thisParameter)return DEe(D.thisParameter)}if(mr(m.parent)){const D=_u(m.parent);return No(m)?Wn(D):X0(D).thisType}}function Qni(l){if(l.kind===218&&Xn(l.parent)&&Xl(l.parent)===3)return l.parent.left.expression.expression;if(l.kind===174&&l.parent.kind===210&&Xn(l.parent.parent)&&Xl(l.parent.parent)===6)return l.parent.parent.left.expression;if(l.kind===218&&l.parent.kind===303&&l.parent.parent.kind===210&&Xn(l.parent.parent.parent)&&Xl(l.parent.parent.parent)===6)return l.parent.parent.parent.left.expression;if(l.kind===218&&Jc(l.parent)&&at(l.parent.name)&&(l.parent.name.escapedText==="value"||l.parent.name.escapedText==="get"||l.parent.name.escapedText==="set")&&ys(l.parent.parent)&&Mo(l.parent.parent.parent)&&l.parent.parent.parent.arguments[2]===l.parent.parent&&Xl(l.parent.parent.parent)===9)return l.parent.parent.parent.arguments[0].expression;if(dc(l)&&at(l.name)&&(l.name.escapedText==="value"||l.name.escapedText==="get"||l.name.escapedText==="set")&&ys(l.parent)&&Mo(l.parent.parent)&&l.parent.parent.arguments[2]===l.parent&&Xl(l.parent.parent)===9)return l.parent.parent.arguments[0].expression}function Xni(l){const m=LU(l);if(m&&m.typeExpression)return Ar(m.typeExpression);const D=xz(l);if(D)return kC(D)}function Xht(l,m){return!!Tn(l,D=>$0(D)?"quit":D.kind===169&&D.parent===m)}function kMe(l){const m=l.parent.kind===213&&l.parent.expression===l,D=fj(l,!0);let C=D,A=!1,w=!1;if(!m){for(;C&&C.kind===219;)Yu(C,1024)&&(w=!0),C=fj(C,!0),A=Ce<2;C&&Yu(C,1024)&&(w=!0)}let I=0;if(!C||!Fe(C)){const Te=Tn(l,$e=>$e===C?"quit":$e.kind===167);return Te&&Te.kind===167?pt(l,F.super_cannot_be_referenced_in_a_computed_property_name):m?pt(l,F.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!C||!C.parent||!(mr(C.parent)||C.parent.kind===210)?pt(l,F.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):pt(l,F.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Ot}if(!m&&D.kind===176&&Qht(l,C,F.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),No(C)||m?(I=32,!m&&Ce>=2&&Ce<=8&&(ko(C)||zl(C))&&Ibe(l.parent,Te=>{(!la(Te)||cm(Te))&&(ar(Te).flags|=2097152)})):I=16,ar(l).flags|=I,C.kind===174&&w&&(nf(l.parent)&&Q_(l.parent)?ar(C).flags|=256:ar(C).flags|=128),A&&CMe(l.parent,C),C.parent.kind===210)return Ce<2?(pt(l,F.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ot):me;const U=C.parent;if(!B2(U))return pt(l,F.super_can_only_be_referenced_in_a_derived_class),Ot;if(bMe(U))return m?Ot:Ct;const Z=X0(_u(U)),ce=Z&&Zc(Z)[0];if(!ce)return Ot;if(C.kind===176&&Xht(l,C))return pt(l,F.super_cannot_be_referenced_in_constructor_arguments),Ot;return I===32?qc(Z):xm(ce,Z.thisType);function Fe(Te){return m?Te.kind===176:mr(Te.parent)||Te.parent.kind===210?No(Te)?Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===175:Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===171||Te.kind===176:!1}}function eft(l){return(l.kind===174||l.kind===177||l.kind===178)&&l.parent.kind===210?l.parent:l.kind===218&&l.parent.kind===303?l.parent.parent:void 0}function tft(l){return Gu(l)&4&&l.target===bc?O0(l)[0]:void 0}function eui(l){return hl(l,m=>m.flags&2097152?L(m.types,tft):tft(m))}function ift(l,m){let D=l,C=m;for(;C;){const A=eui(C);if(A)return A;if(D.parent.kind!==303)break;D=D.parent.parent,C=MC(D,void 0)}}function nft(l){if(l.kind===219)return;if(Uge(l)){const D=yW(l);if(D){const C=D.thisParameter;if(C)return Wn(C)}}const m=Qn(l);if(De||m){const D=eft(l);if(D){const A=MC(D,void 0),w=ift(D,A);return w?_a(w,iMe(jb(D))):vm(A?FD(A):Rc(D))}const C=i5(l.parent);if(ld(C)){const A=C.left;if(I0(A)){const{expression:w}=A;if(m&&at(w)){const I=zn(C);if(I.commonJsModuleIndicator&&Zp(w)===I.symbol)return}return vm(Rc(w))}}}}function uft(l){const m=l.parent;if(!Uge(m))return;const D=nk(m);if(D&&D.arguments){const A=REe(D),w=m.parameters.indexOf(l);if(l.dotDotDotToken)return XMe(A,w,A.length,me,void 0,0);const I=ar(D),U=I.resolvedSignature;I.resolvedSignature=mi;const Z=w0)return V9(D.name,!0,!1)}}function uui(l,m){const D=Nm(l);if(D){let C=yEe(D,m);if(C){const A=kd(D);if(A&1){const w=(A&2)!==0;C.flags&1048576&&(C=Ic(C,U=>!!Hb(1,U,w)));const I=Hb(1,C,(A&2)!==0);if(!I)return;C=I}if(A&2){const w=hl(C,W5);return w&&er([w,Emt(w)])}return C}}}function rui(l,m){const D=hf(l,m);if(D){const C=W5(D);return C&&er([C,Emt(C)])}}function aui(l,m){const D=Nm(l);if(D){const C=kd(D);let A=yEe(D,m);if(A){const w=(C&2)!==0;return!l.asteriskToken&&A.flags&1048576&&(A=Ic(A,I=>!!Hb(1,I,w))),l.asteriskToken?A:Hb(0,A,w)}}}function AMe(l){let m=!1;for(;l.parent&&!Co(l.parent);){if(io(l.parent)&&(m||l.parent.initializer===l))return!0;js(l.parent)&&l.parent.initializer===l&&(m=!0),l=l.parent}return!1}function rft(l,m){const D=!!(kd(m)&2),C=yEe(m,void 0);if(C)return Hb(l,C,D)||void 0}function yEe(l,m){const D=uT(l);if(D)return D;const C=LMe(l);if(C&&!Fge(C)){const w=Zs(C),I=kd(l);return I&1?Ic(w,U=>!!(U.flags&58998787)||vze(U,I,void 0)):I&2?Ic(w,U=>!!(U.flags&58998787)||!!jz(U)):w}const A=nk(l);if(A)return hf(A,m)}function aft(l,m){const C=REe(l).indexOf(m);return C===-1?void 0:SMe(l,C)}function SMe(l,m){if(dm(l))return m===0?ct:m===1?Ydt(!1):me;const D=ar(l).resolvedSignature===Wu?Wu:mT(l);if(zh(l)&&m===0)return SEe(D,l);const C=D.parameters.length-1;return th(D)&&m>=C?qf(Wn(D.parameters[C]),wg(m-C),256):Lg(D,m)}function oui(l){const m=hze(l);return m?DF(m):void 0}function sui(l,m){if(l.parent.kind===215)return aft(l.parent,m)}function lui(l,m){const D=l.parent,{left:C,operatorToken:A,right:w}=D;switch(A.kind){case 64:case 77:case 76:case 78:return l===w?dui(D):void 0;case 57:case 61:const I=hf(D,m);return l===w&&(I&&I.pattern||!I&&!uye(D))?b1(C):I;case 56:case 28:return l===w?hf(D,m):void 0;default:return}}function cui(l){if(Zg(l)&&l.symbol)return l.symbol;if(at(l))return Zp(l);if(Iu(l)){const D=b1(l.expression);return Xr(l.name)?m(D,l.name):qo(D,l.name.escapedText)}if(U0(l)){const D=Rc(l.argumentExpression);if(!Y4(D))return;const C=b1(l.expression);return qo(C,Q4(D))}return;function m(D,C){const A=LEe(C.escapedText,C);return A&&KMe(D,A)}}function dui(l){var m,D;const C=Xl(l);switch(C){case 0:case 4:const A=cui(l.left),w=A&&A.valueDeclaration;if(w&&(ko(w)||Mm(w))){const Z=f1(w);return Z&&_a(Ar(Z),Ur(A).mapper)||(ko(w)?w.initializer&&b1(l.left):void 0)}return C===0?b1(l.left):oft(l);case 5:if(kEe(l,C))return oft(l);if(!Zg(l.left)||!l.left.symbol)return b1(l.left);{const Z=l.left.symbol.valueDeclaration;if(!Z)return;const ce=Po(l.left,I0),Fe=f1(Z);if(Fe)return Ar(Fe);if(at(ce.expression)){const Te=ce.expression,$e=uc(Te,Te.escapedText,111551,void 0,Te.escapedText,!0);if($e){const ut=$e.valueDeclaration&&f1($e.valueDeclaration);if(ut){const zt=Q3(ce);if(zt!==void 0)return Ob(Ar(ut),zt)}return}}return Qn(Z)||Z===l.left?void 0:b1(l.left)}case 1:case 6:case 3:case 2:let I;C!==2&&(I=Zg(l.left)?(m=l.left.symbol)==null?void 0:m.valueDeclaration:void 0),I||(I=(D=l.symbol)==null?void 0:D.valueDeclaration);const U=I&&f1(I);return U?Ar(U):void 0;case 7:case 8:case 9:return H.fail("Does not apply");default:return H.assertNever(C)}}function kEe(l,m=Xl(l)){if(m===4)return!0;if(!Qn(l)||m!==5||!at(l.left.expression))return!1;const D=l.left.expression.escapedText,C=uc(l.left,D,111551,void 0,void 0,!0,!0);return mq(C==null?void 0:C.valueDeclaration)}function oft(l){if(!l.symbol)return b1(l.left);if(l.symbol.valueDeclaration){const A=f1(l.symbol.valueDeclaration);if(A){const w=Ar(A);if(w)return w}}const m=Po(l.left,I0);if(!zp(tf(m.expression,!1,!1)))return;const D=Ute(m.expression),C=Q3(m);return C!==void 0&&Ob(D,C)||void 0}function hui(l){return!!(Gl(l)&262144&&!l.links.type&&xC(l,0)>=0)}function Ob(l,m,D){return hl(l,C=>{var A;if(Xm(C)&&!C.declaration.nameType){const w=cp(C),I=Wh(w)||w,U=D||df(Yr(m));if(ms(U,I))return Ige(C,U)}else if(C.flags&3670016){const w=qo(C,m);if(w)return hui(w)?void 0:B6(Wn(w),!!(w&&w.flags&16777216));if(xs(C)&&i3(m)&&+m>=0){const I=wz(C,C.target.fixedLength,0,!1,!0);if(I)return I}return(A=qNe(ZNe(C),D||df(Yr(m))))==null?void 0:A.type}},!0)}function sft(l,m){if(H.assert(zp(l)),!(l.flags&67108864))return BMe(l,m)}function BMe(l,m){const D=l.parent,C=Jc(l)&&FMe(l,m);if(C)return C;const A=MC(D,m);if(A){if(iT(l)){const w=_u(l);return Ob(A,w.escapedName,Ur(w).nameType)}if(Ix(l)){const w=Za(l);if(w&&Ps(w)){const I=ya(w.expression),U=Y4(I)&&Ob(A,Q4(I));if(U)return U}}if(l.name){const w=j5(l.name);return hl(A,I=>{var U;return(U=qNe(ZNe(I),w))==null?void 0:U.type},!0)}}}function fui(l){let m,D;for(let C=0;C{if(xs(w)){if((C===void 0||mA)?D-m:0,U=I>0&&w.target.hasRestElement?sW(w.target,3):0;return I>0&&I<=U?O0(w)[O5(w)-I]:wz(w,C===void 0?w.target.fixedLength:Math.min(w.target.fixedLength,C),D===void 0||A===void 0?U:Math.min(U,D-A),!1,!0)}return(!C||mH5(Z)?qf(Z,wg(I)):Z,!0))}function gui(l,m){const D=l.parent;return KU(D)?hf(l,m):r3(D)?pui(D,l,m):void 0}function lft(l,m){if(oE(l)){const D=MC(l.parent,m);return!D||nt(D)?void 0:Ob(D,MP(l.name))}else return hf(l.parent,m)}function qte(l){switch(l.kind){case 11:case 9:case 10:case 15:case 228:case 112:case 97:case 106:case 80:case 157:return!0;case 211:case 217:return qte(l.expression);case 294:return!l.expression||qte(l.expression)}return!1}function Eui(l,m){return cni(m,l)||jPe(m,Hi(Vt(ti(l.properties,D=>D.symbol?D.kind===303?qte(D.initializer)&&Tz(m,D.symbol.escapedName):D.kind===304?Tz(m,D.symbol.escapedName):!1:!1),D=>[()=>gie(D.kind===303?D.initializer:D.name),D.symbol.escapedName]),Vt(ti(n0(m),D=>{var C;return!!(D.flags&16777216)&&!!((C=l==null?void 0:l.symbol)!=null&&C.members)&&!l.symbol.members.has(D.escapedName)&&Tz(m,D.escapedName)}),D=>[()=>te,D.escapedName])),ms)}function _ui(l,m){const D=Qte(SF(l));return jPe(m,Hi(Vt(ti(l.properties,C=>!!C.symbol&&C.kind===291&&Tz(m,C.symbol.escapedName)&&(!C.initializer||qte(C.initializer))),C=>[C.initializer?()=>gie(C.initializer):()=>du,C.symbol.escapedName]),Vt(ti(n0(m),C=>{var A;if(!(C.flags&16777216)||!((A=l==null?void 0:l.symbol)!=null&&A.members))return!1;const w=l.parent.parent;return C.escapedName===D&&r3(w)&&uB(w.children).length?!1:!l.symbol.members.has(C.escapedName)&&Tz(m,C.escapedName)}),C=>[()=>te,C.escapedName])),ms)}function MC(l,m){const D=zp(l)?sft(l,m):hf(l,m),C=FEe(D,l,m);if(C&&!(m&&m&2&&C.flags&8650752)){const A=hl(C,w=>Gu(w)&32?w:Gh(w),!0);return A.flags&1048576&&ys(l)?Eui(l,A):A.flags&1048576&&W2(l)?_ui(l,A):A}}function FEe(l,m,D){if(l&&jl(l,465829888)){const C=jb(m);if(C&&D&1&&Oe(C.inferences,Xai))return AEe(l,C.nonFixingMapper);if(C!=null&&C.returnMapper){const A=AEe(l,C.returnMapper);return A.flags&1048576&&C6(A.types,Sn)&&C6(A.types,Ru)?Ic(A,w=>w!==Sn&&w!==Ru):A}}return l}function AEe(l,m){return l.flags&465829888?_a(l,m):l.flags&1048576?er(Vt(l.types,D=>AEe(D,m)),0):l.flags&2097152?Ds(Vt(l.types,D=>AEe(D,m))):l}function hf(l,m){var D;if(l.flags&67108864)return;const C=dft(l,!m);if(C>=0)return Cu[C];const{parent:A}=l;switch(A.kind){case 260:case 169:case 172:case 171:case 208:return nui(l,m);case 219:case 253:return uui(l,m);case 229:return aui(A,m);case 223:return rui(A,m);case 213:case 214:return aft(A,l);case 170:return oui(A);case 216:case 234:return q3(A.type)?hf(A,m):Ar(A.type);case 226:return lui(l,m);case 303:case 304:return BMe(A,m);case 305:return hf(A.parent,m);case 209:{const w=A,I=MC(w,m),U=j8(w.elements,l),Z=(D=ar(w)).spreadIndices??(D.spreadIndices=fui(w.elements));return wMe(I,U,w.elements.length,Z.first,Z.last)}case 227:return mui(l,m);case 239:return H.assert(A.parent.kind===228),sui(A.parent,l);case 217:{if(Qn(A)){if(Ile(A))return Ar(Rle(A));const w=xv(A);if(w&&!q3(w.typeExpression.type))return Ar(w.typeExpression.type)}return hf(A,m)}case 235:return hf(A,m);case 238:return Ar(A.type);case 277:return dt(A);case 294:return gui(A,m);case 291:case 293:return lft(A,m);case 286:case 285:return vui(A,m)}}function cft(l){Zte(l,hf(l,void 0),!0)}function Zte(l,m,D){kr[Eu]=l,Cu[Eu]=m,bu[Eu]=D,Eu++}function bW(){Eu--}function dft(l,m){for(let D=Eu-1;D>=0;D--)if(l===kr[D]&&(m||!bu[D]))return D;return-1}function Dui(l,m){sa[o0]=l,p0[o0]=m,o0++}function xui(){o0--}function jb(l){for(let m=o0-1;m>=0;m--)if(S2(l,sa[m]))return p0[m]}function vui(l,m){if(aE(l)&&m!==4){const D=dft(l.parent,!m);if(D>=0)return Cu[D]}return SMe(l,0)}function SEe(l,m){return $ft(m)!==0?Cui(l,m):kui(l,m)}function Cui(l,m){let D=cze(l,on);D=hft(m,SF(m),D);const C=Vb(Rm.IntrinsicAttributes,m);return Nt(C)||(D=xte(C,D)),D}function bui(l,m){if(l.compositeSignatures){const C=[];for(const A of l.compositeSignatures){const w=Zs(A);if(nt(w))return w;const I=he(w,m);if(!I)return;C.push(I)}return Ds(C)}const D=Zs(l);return nt(D)?D:he(D,m)}function yui(l){if(X9(l.tagName)){const D=vft(l),C=OEe(l,D);return DF(C)}const m=Rc(l.tagName);if(m.flags&128){const D=xft(m,l);if(!D)return Ot;const C=OEe(l,D);return DF(C)}return m}function hft(l,m,D){const C=Gui(m);if(C){const A=yui(l),w=yft(C,Qn(l),A,D);if(w)return w}return D}function kui(l,m){const D=SF(m),C=$ui(D);let A=C===void 0?cze(l,on):C===""?Zs(l):bui(l,C);if(!A)return C&&S(m.attributes.properties)&&pt(m,F.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Yr(C)),on;if(A=hft(m,D,A),nt(A))return A;{let w=A;const I=Vb(Rm.IntrinsicClassAttributes,m);if(!Nt(I)){const Z=sn(I.symbol),ce=Zs(l);let Fe;if(Z){const Te=x6([ce],Z,b_(Z),Qn(m));Fe=_a(I,Sf(Z,Te))}else Fe=I;w=xte(Fe,w)}const U=Vb(Rm.IntrinsicAttributes,m);return Nt(U)||(w=xte(U,w)),w}}function Fui(l){return Z4(ae,"noImplicitAny")?nn(l,(m,D)=>m===D||!m?m:mdt(m.typeParameters,D.typeParameters)?Bui(m,D):void 0):void 0}function Aui(l,m,D){if(!l||!m)return l||m;const C=er([Wn(l),_a(Wn(m),D)]);return CF(l,C)}function Sui(l,m,D){const C=Cm(l),A=Cm(m),w=C>=A?l:m,I=w===l?m:l,U=w===l?C:A,Z=F_(l)||F_(m),ce=Z&&!F_(w),Fe=new Array(U+(ce?1:0));for(let Te=0;Te=SE(w)&&Te>=SE(I),dn=Te>=C?void 0:Iz(l,Te),nu=Te>=A?void 0:Iz(m,Te),En=dn===nu?dn:dn?nu?void 0:dn:nu,Ii=Hs(1|(Wi&&!gi?16777216:0),En||`arg${Te}`);Ii.links.type=gi?V1(zt):zt,Fe[Te]=Ii}if(ce){const Te=Hs(1,"args");Te.links.type=V1(Lg(I,U)),I===m&&(Te.links.type=_a(Te.links.type,D)),Fe[U]=Te}return Fe}function Bui(l,m){const D=l.typeParameters||m.typeParameters;let C;l.typeParameters&&m.typeParameters&&(C=Sf(m.typeParameters,l.typeParameters));const A=l.declaration,w=Sui(l,m,C),I=Aui(l.thisParameter,m.thisParameter,C),U=Math.max(l.minArgumentCount,m.minArgumentCount),Z=y3(A,D,I,w,void 0,void 0,U,(l.flags|m.flags)&167);return Z.compositeKind=2097152,Z.compositeSignatures=Hi(l.compositeKind===2097152&&l.compositeSignatures||[l],[m]),C&&(Z.mapper=l.compositeKind===2097152&&l.mapper&&l.compositeSignatures?wC(l.mapper,C):C),Z}function TMe(l,m){const D=go(l,0),C=ti(D,A=>!wui(A,m));return C.length===1?C[0]:Fui(C)}function wui(l,m){let D=0;for(;DI[ut]&8?b6($e,Qt)||me:$e),2):fe?wn:we,Z))}function mft(l){if(!(Gu(l)&4))return l;let m=l.literalType;return m||(m=l.literalType=Odt(l),m.objectFlags|=147456),m}function Pui(l){switch(l.kind){case 167:return Mui(l);case 80:return i3(l.escapedText);case 9:case 11:return i3(l.text);default:return!1}}function Mui(l){return u1(F3(l),296)}function F3(l){const m=ar(l.expression);if(!m.resolvedType){if((fm(l.parent.parent)||mr(l.parent.parent)||xh(l.parent.parent))&&Xn(l.expression)&&l.expression.operatorToken.kind===103&&l.parent.kind!==177&&l.parent.kind!==178)return m.resolvedType=Ot;if(m.resolvedType=ya(l.expression),ko(l.parent)&&!Kc(l.parent)&&Xd(l.parent.parent)){const D=YE(l.parent.parent),C=vMe(D);C&&(ar(C).flags|=4096,ar(l).flags|=32768,ar(l.parent.parent).flags|=32768)}(m.resolvedType.flags&98304||!u1(m.resolvedType,402665900)&&!ms(m.resolvedType,Fn))&&pt(l,F.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return m.resolvedType}function zui(l){var m;const D=(m=l.declarations)==null?void 0:m[0];return i3(l.escapedName)||D&&mh(D)&&Pui(D.name)}function pft(l){var m;const D=(m=l.declarations)==null?void 0:m[0];return Ij(l)||D&&mh(D)&&Ps(D.name)&&u1(F3(D.name),4096)}function NMe(l,m,D,C){const A=[];for(let I=m;I0&&(U=Nb(U,Nn(),l.symbol,gi,Fe),I=[],w=Vo(),dn=!1,nu=!1,En=!1);const hu=Sg(ya(vn.expression,m&2));if(Yte(hu)){const oo=FPe(hu,Fe);if(A&&Eft(oo,A,vn),Ii=I.length,Nt(U))continue;U=Nb(U,oo,l.symbol,gi,Fe)}else pt(vn,F.Spread_types_may_only_be_created_from_object_types),U=Ot;continue}else H.assert(vn.kind===177||vn.kind===178),eS(vn);_n&&!(_n.flags&8576)?ms(_n,Fn)&&(ms(_n,Qt)?nu=!0:ms(_n,Xu)?En=!0:dn=!0,C&&(Wi=!0)):w.set(An.escapedName,An),I.push(An)}if(bW(),ce){const vn=Tn(Z.pattern.parent,_n=>_n.kind===260||_n.kind===226||_n.kind===169);if(Tn(l,_n=>_n===vn||_n.kind===305).kind!==305)for(const _n of n0(Z))!w.get(_n.escapedName)&&!qo(U,_n.escapedName)&&(_n.flags&16777216||pt(_n.valueDeclaration||((D=ur(_n,qE))==null?void 0:D.links.bindingElement),F.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),w.set(_n.escapedName,_n),I.push(_n))}if(Nt(U))return Ot;if(U!==Ko)return I.length>0&&(U=Nb(U,Nn(),l.symbol,gi,Fe),I=[],w=Vo(),dn=!1,nu=!1),hl(U,vn=>vn===Ko?Nn():vn);return Nn();function Nn(){const vn=[];dn&&vn.push(NMe(l,Ii,I,ct)),nu&&vn.push(NMe(l,Ii,I,Qt)),En&&vn.push(NMe(l,Ii,I,Xu));const An=Ol(l.symbol,w,_t,_t,vn);return An.objectFlags|=gi|128|131072,zt&&(An.objectFlags|=4096),Wi&&(An.objectFlags|=512),C&&(An.pattern=l),An}}function Yte(l){const m=fht(hl(l,xD));return!!(m.flags&126615553||m.flags&3145728&&ye(m.types,Yte))}function Rui(l){IMe(l)}function Oui(l,m){return eS(l),Xte(l)||me}function jui(l){IMe(l.openingElement),X9(l.closingElement.tagName)?wEe(l.closingElement):ya(l.closingElement.tagName),BEe(l)}function Vui(l,m){return eS(l),Xte(l)||me}function Hui(l){IMe(l.openingFragment);const m=zn(l);return iZ(ae)&&(ae.jsxFactory||m.pragmas.has("jsx"))&&!ae.jsxFragmentFactory&&!m.pragmas.has("jsxfrag")&&pt(l,ae.jsxFactory?F.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:F.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),BEe(l),Xte(l)||me}function MMe(l){return l.includes("-")}function X9(l){return at(l)&&aB(l.escapedText)||gg(l)}function gft(l,m){return l.initializer?Oz(l.initializer,m):du}function Kui(l,m=0){const D=l.attributes,C=hf(D,0),A=fe?Vo():void 0;let w=Vo(),I=Tc,U=!1,Z,ce=!1,Fe=2048;const Te=Qte(SF(l));for(const zt of D.properties){const gi=zt.symbol;if(oE(zt)){const Wi=gft(zt,m);Fe|=Gu(Wi)&458752;const dn=Hs(4|gi.flags,gi.escapedName);if(dn.declarations=gi.declarations,dn.parent=gi.parent,gi.valueDeclaration&&(dn.valueDeclaration=gi.valueDeclaration),dn.links.type=Wi,dn.links.target=gi,w.set(dn.escapedName,dn),A==null||A.set(dn.escapedName,dn),MP(zt.name)===Te&&(ce=!0),C){const nu=qo(C,gi.escapedName);nu&&nu.declarations&&S5(nu)&&at(zt.name)&&m3(zt.name,nu.declarations,zt.name.escapedText)}if(C&&m&2&&!(m&4)&&k4(zt)){const nu=jb(D);H.assert(nu);const En=zt.initializer.expression;eMe(nu,En,Wi)}}else{H.assert(zt.kind===293),w.size>0&&(I=Nb(I,ut(),D.symbol,Fe,!1),w=Vo());const Wi=Sg(ya(zt.expression,m&2));nt(Wi)&&(U=!0),Yte(Wi)?(I=Nb(I,Wi,D.symbol,Fe,!1),A&&Eft(Wi,A,zt)):(pt(zt.expression,F.Spread_types_may_only_be_created_from_object_types),Z=Z?Ds([Z,Wi]):Wi)}}U||w.size>0&&(I=Nb(I,ut(),D.symbol,Fe,!1));const $e=l.parent.kind===284?l.parent:void 0;if($e&&$e.openingElement===l&&uB($e.children).length>0){const zt=BEe($e,m);if(!U&&Te&&Te!==""){ce&&pt(D,F._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Yr(Te));const gi=MC(l.attributes,void 0),Wi=gi&&Ob(gi,Te),dn=Hs(4,Te);dn.links.type=zt.length===1?zt[0]:Wi&&yE(Wi,Bz)?Bg(zt):V1(er(zt)),dn.valueDeclaration=q.createPropertySignature(void 0,Yr(Te),void 0,void 0),ks(dn.valueDeclaration,D),dn.valueDeclaration.symbol=dn;const nu=Vo();nu.set(Te,dn),I=Nb(I,Ol(D.symbol,nu,_t,_t,_t),D.symbol,Fe,!1)}}if(U)return me;if(Z&&I!==Tc)return Ds([Z,I]);return Z||(I===Tc?ut():I);function ut(){Fe|=Ye;const zt=Ol(D.symbol,w,_t,_t,_t);return zt.objectFlags|=Fe|128|131072,zt}}function BEe(l,m){const D=[];for(const C of l.children)if(C.kind===12)C.containsOnlyTriviaWhiteSpaces||D.push(ct);else{if(C.kind===294&&!C.expression)continue;D.push(Oz(C,m))}return D}function Eft(l,m,D){for(const C of n0(l))if(!(C.flags&16777216)){const A=m.get(C.escapedName);if(A){const w=pt(A.valueDeclaration,F._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Yr(A.escapedName));Es(w,Su(D,F.This_spread_always_overwrites_this_property))}}}function Wui(l,m){return Kui(l.parent,m)}function Vb(l,m){const D=SF(m),C=D&&$f(D),A=C&&kf(C,l,788968);return A?X0(A):Ot}function wEe(l){const m=ar(l);if(!m.resolvedSymbol){const D=Vb(Rm.IntrinsicElements,l);if(Nt(D))return Ae&&pt(l,F.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Yr(Rm.IntrinsicElements)),m.resolvedSymbol=Xt;{if(!at(l.tagName)&&!gg(l.tagName))return H.fail();const C=gg(l.tagName)?k7(l.tagName):l.tagName.escapedText,A=qo(D,C);if(A)return m.jsxFlags|=1,m.resolvedSymbol=A;const w=K4t(D,df(Yr(C)));return w?(m.jsxFlags|=2,m.resolvedSymbol=w):Re(D,C)?(m.jsxFlags|=2,m.resolvedSymbol=D.symbol):(pt(l,F.Property_0_does_not_exist_on_type_1,Ole(l.tagName),"JSX."+Rm.IntrinsicElements),m.resolvedSymbol=Xt)}}return m.resolvedSymbol}function zMe(l){const m=l&&zn(l),D=m&&ar(m);if(D&&D.jsxImplicitImportContainer===!1)return;if(D&&D.jsxImplicitImportContainer)return D.jsxImplicitImportContainer;const C=uZ(nZ(ae,m),ae);if(!C)return;const w=p1(ae)===1?F.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:F.Cannot_find_module_0_or_its_corresponding_type_declarations,I=mD(l,C,w,l),U=I&&I!==Xt?Ks(yc(I)):void 0;return D&&(D.jsxImplicitImportContainer=U||!1),U}function SF(l){const m=l&&ar(l);if(m&&m.jsxNamespace)return m.jsxNamespace;if(!m||m.jsxNamespace!==!1){let C=zMe(l);if(!C||C===Xt){const A=uC(l);C=uc(l,A,1920,void 0,A,!1)}if(C){const A=yc(kf($f(yc(C)),Rm.JSX,1920));if(A&&A!==Xt)return m&&(m.jsxNamespace=A),A}m&&(m.jsxNamespace=!1)}const D=yc(Cz(Rm.JSX,1920,void 0));if(D!==Xt)return D}function _ft(l,m){const D=m&&kf(m.exports,l,788968),C=D&&X0(D),A=C&&n0(C);if(A){if(A.length===0)return"";if(A.length===1)return A[0].escapedName;A.length>1&&D.declarations&&pt(D.declarations[0],F.The_global_type_JSX_0_may_not_have_more_than_one_property,Yr(l))}}function Gui(l){return l&&kf(l.exports,Rm.LibraryManagedAttributes,788968)}function Jui(l){return l&&kf(l.exports,Rm.ElementType,788968)}function $ui(l){return _ft(Rm.ElementAttributesPropertyNameContainer,l)}function Qte(l){return _ft(Rm.ElementChildrenAttributeNameContainer,l)}function Dft(l,m){if(l.flags&4)return[mi];if(l.flags&128){const A=xft(l,m);return A?[OEe(m,A)]:(pt(m,F.Property_0_does_not_exist_on_type_1,l.value,"JSX."+Rm.IntrinsicElements),_t)}const D=Gh(l);let C=go(D,1);return C.length===0&&(C=go(D,0)),C.length===0&&D.flags&1048576&&(C=zNe(Vt(D.types,A=>Dft(A,m)))),C}function xft(l,m){const D=Vb(Rm.IntrinsicElements,m);if(!Nt(D)){const C=l.value,A=qo(D,Al(C));if(A)return Wn(A);const w=yC(D,ct);return w||void 0}return me}function Uui(l,m,D){if(l===1){const A=bft(D);A&&F4(m,A,Jf,D.tagName,F.Its_return_type_0_is_not_a_valid_JSX_element,C)}else if(l===0){const A=Cft(D);A&&F4(m,A,Jf,D.tagName,F.Its_instance_type_0_is_not_a_valid_JSX_element,C)}else{const A=bft(D),w=Cft(D);if(!A||!w)return;const I=er([A,w]);F4(m,I,Jf,D.tagName,F.Its_element_type_0_is_not_a_valid_JSX_element,C)}function C(){const A=Hc(D.tagName);return ro(void 0,F._0_cannot_be_used_as_a_JSX_component,A)}}function vft(l){var m;H.assert(X9(l.tagName));const D=ar(l);if(!D.resolvedJsxElementAttributesType){const C=wEe(l);if(D.jsxFlags&1)return D.resolvedJsxElementAttributesType=Wn(C)||Ot;if(D.jsxFlags&2){const A=gg(l.tagName)?k7(l.tagName):l.tagName.escapedText;return D.resolvedJsxElementAttributesType=((m=G9(Vb(Rm.IntrinsicElements,l),A))==null?void 0:m.type)||Ot}else return D.resolvedJsxElementAttributesType=Ot}return D.resolvedJsxElementAttributesType}function Cft(l){const m=Vb(Rm.ElementClass,l);if(!Nt(m))return m}function Xte(l){return Vb(Rm.Element,l)}function bft(l){const m=Xte(l);if(m)return er([m,it])}function qui(l){const m=SF(l);if(!m)return;const D=Jui(m);if(!D)return;const C=yft(D,Qn(l));if(!(!C||Nt(C)))return C}function yft(l,m,...D){const C=X0(l);if(l.flags&524288){const A=Ur(l).typeParameters;if(S(A)>=D.length){const w=x6(D,A,D.length,m);return S(w)===0?C:aT(l,w)}}if(S(C.typeParameters)>=D.length){const A=x6(D,C.typeParameters,D.length,m);return R5(C,A)}}function Zui(l){const m=Vb(Rm.IntrinsicElements,l);return m?n0(m):_t}function Yui(l){(ae.jsx||0)===0&&pt(l,F.Cannot_use_JSX_unless_the_jsx_flag_is_provided),Xte(l)===void 0&&Ae&&pt(l,F.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function IMe(l){const m=zh(l);if(m&&Hli(l),Yui(l),!zMe(l)){const D=Vs&&ae.jsx===2?F.Cannot_find_name_0:void 0,C=uC(l),A=m?l.tagName:l;let w;if(V7(l)&&C==="null"||(w=uc(A,C,111551,D,C,!0)),w&&(w.isReferenced=67108863,Ut&&w.flags&2097152&&!_4(w)&&T5(w)),V7(l)){const I=zn(l),U=Qk(I);U&&uc(A,U,111551,D,U,!0)}}if(m){const D=l,C=mT(D);VEe(C,l);const A=qui(D);if(A!==void 0){const w=D.tagName,I=X9(w)?df(Ole(w)):ya(w);F4(I,A,Jf,w,F.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const U=Hc(w);return ro(void 0,F._0_cannot_be_used_as_a_JSX_component,U)})}else Uui($ft(D),Zs(C),D)}}function RMe(l,m,D){if(l.flags&524288){if(bC(l,m)||G9(l,m)||XK(m)&&k3(l,ct)||D&&MMe(m))return!0}else if(l.flags&3145728&&eie(l)){for(const C of l.types)if(RMe(C,m,D))return!0}return!1}function eie(l){return!!(l.flags&524288&&!(Gu(l)&512)||l.flags&67108864||l.flags&1048576&&Oe(l.types,eie)||l.flags&2097152&&ye(l.types,eie))}function Qui(l,m){if(Wli(l),l.expression){const D=ya(l.expression,m);return l.dotDotDotToken&&D!==me&&!A4(D)&&pt(l,F.JSX_spread_child_must_be_an_array_type),D}else return Ot}function OMe(l){return l.valueDeclaration?Gb(l.valueDeclaration):0}function jMe(l){if(l.flags&8192||Gl(l)&4)return!0;if(Qn(l.valueDeclaration)){const m=l.valueDeclaration.parent;return m&&Xn(m)&&Xl(m)===3}}function VMe(l,m,D,C,A,w=!0){const I=w?l.kind===166?l.right:l.kind===205?l:l.kind===208&&l.propertyName?l.propertyName:l.name:void 0;return kft(l,m,D,C,A,I)}function kft(l,m,D,C,A,w){var I;const U=l4(A,D);if(m){if(Ce<2&&Fft(A))return w&&pt(w,F.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(U&64)return w&&pt(w,F.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Fr(A),gn(Q9(A))),!1;if(!(U&256)&&((I=A.declarations)!=null&&I.some(ibe)))return w&&pt(w,F.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Fr(A)),!1}if(U&64&&Fft(A)&&(mj(l)||tye(l)||Rp(l.parent)&&mq(l.parent.parent))){const ce=tD(cf(A));if(ce&&V0i(l))return w&&pt(w,F.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Fr(A),J4(ce.name)),!1}if(!(U&6))return!0;if(U&2){const ce=tD(cf(A));return Wze(l,ce)?!0:(w&&pt(w,F.Property_0_is_private_and_only_accessible_within_class_1,Fr(A),gn(Q9(A))),!1)}if(m)return!0;let Z=V4t(l,ce=>{const Fe=X0(_u(ce));return nht(Fe,A,D)});return!Z&&(Z=Xui(l),Z=Z&&nht(Z,A,D),U&256||!Z)?(w&&pt(w,F.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Fr(A),gn(Q9(A)||C)),!1):U&256?!0:(C.flags&262144&&(C=C.isThisType?rh(C):Wh(C)),!C||!H9(C,Z)?(w&&pt(w,F.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Fr(A),gn(Z),gn(C)),!1):!0)}function Xui(l){const m=eri(l);let D=(m==null?void 0:m.type)&&Ar(m.type);if(D&&D.flags&262144&&(D=rh(D)),D&&Gu(D)&7)return eT(D)}function eri(l){const m=tf(l,!1,!1);return m&&Co(m)?T2(m):void 0}function Fft(l){return!!Ite(l,m=>!(m.flags&8192))}function hT(l){return kE(ya(l),l)}function tie(l){return fp(l,50331648)}function HMe(l){return tie(l)?FD(l):l}function tri(l,m){const D=ec(l)?zf(l):void 0;if(l.kind===106){pt(l,F.The_value_0_cannot_be_used_here,"null");return}if(D!==void 0&&D.length<100){if(at(l)&&D==="undefined"){pt(l,F.The_value_0_cannot_be_used_here,"undefined");return}pt(l,m&16777216?m&33554432?F._0_is_possibly_null_or_undefined:F._0_is_possibly_undefined:F._0_is_possibly_null,D)}else pt(l,m&16777216?m&33554432?F.Object_is_possibly_null_or_undefined:F.Object_is_possibly_undefined:F.Object_is_possibly_null)}function iri(l,m){pt(l,m&16777216?m&33554432?F.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:F.Cannot_invoke_an_object_which_is_possibly_undefined:F.Cannot_invoke_an_object_which_is_possibly_null)}function Aft(l,m,D){if(fe&&l.flags&2){if(ec(m)){const A=zf(m);if(A.length<100)return pt(m,F._0_is_of_type_unknown,A),Ot}return pt(m,F.Object_is_of_type_unknown),Ot}const C=Lz(l,50331648);if(C&50331648){D(m,C);const A=FD(l);return A.flags&229376?Ot:A}return l}function kE(l,m){return Aft(l,m,tri)}function Sft(l,m){const D=kE(l,m);if(D.flags&16384){if(ec(m)){const C=zf(m);if(at(m)&&C==="undefined")return pt(m,F.The_value_0_cannot_be_used_here,C),D;if(C.length<100)return pt(m,F._0_is_possibly_undefined,C),D}pt(m,F.Object_is_possibly_undefined)}return D}function TEe(l,m,D){return l.flags&64?nri(l,m):WMe(l,l.expression,hT(l.expression),l.name,m,D)}function nri(l,m){const D=ya(l.expression),C=gW(D,l.expression);return sEe(WMe(l,l.expression,kE(C,l.expression),l.name,m),l,C!==D)}function Bft(l,m){const D=_q(l)&&N2(l.left)?kE(Ute(l.left),l.left):hT(l.left);return WMe(l,l.left,D,l.right,m)}function wft(l){for(;l.parent.kind===217;)l=l.parent;return $E(l.parent)&&l.parent.expression===l}function LEe(l,m){for(let D=hq(m);D;D=Yd(D)){const{symbol:C}=D,A=zj(C,l),w=C.members&&C.members.get(A)||C.exports&&C.exports.get(A);if(w)return w}}function uri(l){if(!Yd(l))return Zi(l,F.Private_identifiers_are_not_allowed_outside_class_bodies);if(!hY(l.parent)){if(!Z_(l))return Zi(l,F.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const m=Xn(l.parent)&&l.parent.operatorToken.kind===103;if(!NEe(l)&&!m)return Zi(l,F.Cannot_find_name_0,fu(l))}return!1}function rri(l){uri(l);const m=NEe(l);return m&&nie(m,void 0,!1),me}function NEe(l){if(!Z_(l))return;const m=ar(l);return m.resolvedSymbol===void 0&&(m.resolvedSymbol=LEe(l.escapedText,l)),m.resolvedSymbol}function KMe(l,m){return qo(l,m.escapedName)}function ari(l,m,D){let C;const A=n0(l);A&&L(A,I=>{const U=I.valueDeclaration;if(U&&mh(U)&&Xr(U.name)&&U.name.escapedText===m.escapedText)return C=I,!0});const w=$p(m);if(C){const I=H.checkDefined(C.valueDeclaration),U=H.checkDefined(Yd(I));if(D!=null&&D.valueDeclaration){const Z=D.valueDeclaration,ce=Yd(Z);if(H.assert(!!ce),Tn(ce,Fe=>U===Fe)){const Fe=pt(m,F.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,w,gn(l));return Es(Fe,Su(Z,F.The_shadowing_declaration_of_0_is_defined_here,w),Su(I,F.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,w)),!0}}return pt(m,F.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,w,$p(U.name||YY)),!0}return!1}function Tft(l,m){return(fz(m)||mj(l)&&Zw(m))&&tf(l,!0,!1)===Yw(m)}function WMe(l,m,D,C,A,w){const I=ar(m).resolvedSymbol,U=f7(l),Z=Gh(U!==0||wft(l)?vm(D):D),ce=nt(Z)||Z===ja;let Fe;if(Xr(C)){Ce<99&&(U!==0&&rd(l,1048576),U!==1&&rd(l,524288));const $e=LEe(C.escapedText,C);if(U&&$e&&$e.valueDeclaration&&dc($e.valueDeclaration)&&Zi(C,F.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,fu(C)),ce){if($e)return Nt(Z)?Ot:Z;if(hq(C)===void 0)return Zi(C,F.Private_identifiers_are_not_allowed_outside_class_bodies),me}if(Fe=$e&&KMe(D,$e),Fe===void 0){if(ari(D,C,$e))return Ot;const ut=hq(C);ut&&nj(zn(ut),ae.checkJs)&&Zi(C,F.Private_field_0_must_be_declared_in_an_enclosing_class,fu(C))}else Fe.flags&65536&&!(Fe.flags&32768)&&U!==1&&pt(l,F.Private_accessor_was_defined_without_a_getter)}else{if(ce)return at(m)&&I&&bEe(I,l),Nt(Z)?Ot:Z;Fe=qo(Z,C.escapedText,WEe(Z),l.kind===166)}at(m)&&I&&(mg(ae)||!(Fe&&(OW(Fe)||Fe.flags&8&&l.parent.kind===306))||fk(ae)&&Zht(l))&&bEe(I,l);let Te;if(Fe){const $e=Vze(Fe,C);if(S5($e)&&vPe(l,$e)&&$e.declarations&&m3(C,$e.declarations,C.escapedText),ori(Fe,l,C),nie(Fe,l,Rft(m,I)),ar(l).resolvedSymbol=Fe,VMe(l,m.kind===108,D7(l),Z,Fe),kmt(l,Fe,U))return pt(C,F.Cannot_assign_to_0_because_it_is_a_read_only_property,fu(C)),Ot;Te=Tft(l,Fe)?ni:w||Jq(l)?mF(Fe):Wn(Fe)}else{const $e=!Xr(C)&&(U===0||!Lb(D)||NP(D))?G9(Z,C.escapedText):void 0;if(!($e&&$e.type)){const ut=GMe(l,D.symbol,!0);return!ut&&lW(D)?me:D.symbol===St?(St.exports.has(C.escapedText)&&St.exports.get(C.escapedText).flags&418?pt(C,F.Property_0_does_not_exist_on_type_1,Yr(C.escapedText),gn(D)):Ae&&pt(C,F.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,gn(D)),me):(C.escapedText&&!Ow(l)&&Pft(C,NP(D)?Z:D,ut),Ot)}$e.isReadonly&&(Q_(l)||V0e(l))&&pt(l,F.Index_signature_in_type_0_only_permits_reading,gn(Z)),Te=ae.noUncheckedIndexedAccess&&!Q_(l)?er([$e.type,de]):$e.type,ae.noPropertyAccessFromIndexSignature&&Iu(l)&&pt(C,F.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Yr(C.escapedText)),$e.declaration&&aC($e.declaration)&&m3(C,[$e.declaration],C.escapedText)}return Lft(l,Fe,Te,C,A)}function GMe(l,m,D){var C;const A=zn(l);if(A&&ae.checkJs===void 0&&A.checkJsDirective===void 0&&(A.scriptKind===1||A.scriptKind===2)){const w=L(m==null?void 0:m.declarations,zn),I=!(m!=null&&m.valueDeclaration)||!mr(m.valueDeclaration)||((C=m.valueDeclaration.heritageClauses)==null?void 0:C.length)||t5(!1,m.valueDeclaration);return!(A!==w&&w&&pE(w))&&!(D&&m&&m.flags&32&&I)&&!(l&&D&&Iu(l)&&l.expression.kind===110&&I)}return!1}function Lft(l,m,D,C,A){const w=f7(l);if(w===1)return B6(D,!!(m&&m.flags&16777216));if(m&&!(m.flags&98311)&&!(m.flags&8192&&D.flags&1048576)&&!u_e(m.declarations))return D;if(D===ni)return Ym(l,m);D=xMe(D,l,A);let I=!1;if(fe&&Ge&&I0(l)&&l.expression.kind===110){const Z=m&&m.valueDeclaration;if(Z&&S4t(Z)&&!No(Z)){const ce=CW(l);ce.kind===176&&ce.parent===Z.parent&&!(Z.flags&33554432)&&(I=!0)}}else fe&&m&&m.valueDeclaration&&Iu(m.valueDeclaration)&&yj(m.valueDeclaration)&&CW(l)===CW(m.valueDeclaration)&&(I=!0);const U=w6(l,D,I?S6(D):D);return I&&!Fz(D)&&Fz(U)?(pt(C,F.Property_0_is_used_before_being_assigned,Fr(m)),D):w?kD(U):U}function ori(l,m,D){const{valueDeclaration:C}=l;if(!C||zn(m).isDeclarationFile)return;let A;const w=fu(D);Nft(m)&&!QXt(C)&&!(I0(m)&&I0(m.expression))&&!B5(C,D)&&!(dc(C)&&f_e(C)&256)&&(Se||!sri(l))?A=pt(D,F.Property_0_is_used_before_its_initialization,w):C.kind===263&&m.parent.kind!==183&&!(C.flags&33554432)&&!B5(C,D)&&(A=pt(D,F.Class_0_used_before_its_declaration,w)),A&&Es(A,Su(C,F._0_is_declared_here,w))}function Nft(l){return!!Tn(l,m=>{switch(m.kind){case 172:return!0;case 303:case 174:case 177:case 178:case 305:case 167:case 239:case 294:case 291:case 292:case 293:case 286:case 233:case 298:return!1;case 219:case 244:return po(m.parent)&&zl(m.parent.parent)?!0:"quit";default:return Z_(m)?!1:"quit"}})}function sri(l){if(!(l.parent.flags&32))return!1;let m=Wn(l.parent);for(;;){if(m=m.symbol&&lri(m),!m)return!1;const D=qo(m,l.escapedName);if(D&&D.valueDeclaration)return!0}}function lri(l){const m=Zc(l);if(m.length!==0)return Ds(m)}function Pft(l,m,D){let C,A;if(!Xr(l)&&m.flags&1048576&&!(m.flags&402784252)){for(const I of m.types)if(!qo(I,l.escapedText)&&!G9(I,l.escapedText)){C=ro(C,F.Property_0_does_not_exist_on_type_1,b0(l),gn(I));break}}if(Mft(l.escapedText,m)){const I=b0(l),U=gn(m);C=ro(C,F.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,I,U,U+"."+I)}else{const I=NW(m);if(I&&qo(I,l.escapedText))C=ro(C,F.Property_0_does_not_exist_on_type_1,b0(l),gn(m)),A=Su(l,F.Did_you_forget_to_use_await);else{const U=b0(l),Z=gn(m),ce=hri(U,m);if(ce!==void 0)C=ro(C,F.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later,U,Z,ce);else{const Fe=JMe(l,m);if(Fe!==void 0){const Te=lc(Fe),$e=D?F.Property_0_may_not_exist_on_type_1_Did_you_mean_2:F.Property_0_does_not_exist_on_type_1_Did_you_mean_2;C=ro(C,$e,U,Z,Te),A=Fe.valueDeclaration&&Su(Fe.valueDeclaration,F._0_is_declared_here,Te)}else{const Te=cri(m)?F.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:F.Property_0_does_not_exist_on_type_1;C=ro($Ne(C,m),Te,U,Z)}}}}const w=Y3(zn(l),l,C);A&&Es(w,A),i1(!D||C.code!==F.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,w)}function cri(l){return ae.lib&&!ae.lib.includes("dom")&&kni(l,m=>m.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Yr(m.symbol.escapedName)))&&bD(l)}function Mft(l,m){const D=m.symbol&&qo(Wn(m.symbol),l);return D!==void 0&&!!D.valueDeclaration&&No(D.valueDeclaration)}function dri(l){const m=$p(l),C=xZ().get(m);return C&&Oa(C.keys())}function hri(l,m){const D=Gh(m).symbol;if(!D)return;const C=lc(D),w=xZ().get(C);if(w){for(const[I,U]of w)if(kt(U,l))return I}}function zft(l,m){return iie(l,n0(m),106500)}function JMe(l,m){let D=n0(m);if(typeof l!="string"){const C=l.parent;Iu(C)&&(D=ti(D,A=>Oft(C,m,A))),l=fu(l)}return iie(l,D,111551)}function Ift(l,m){const D=Ja(l)?l:fu(l),C=n0(m);return(D==="for"?Le(C,w=>lc(w)==="htmlFor"):D==="class"?Le(C,w=>lc(w)==="className"):void 0)??iie(D,C,111551)}function $Me(l,m){const D=JMe(l,m);return D&&lc(D)}function UMe(l,m,D){return H.assert(m!==void 0,"outername should always be defined"),yh(l,m,D,void 0,m,!1,!1,!0,(A,w,I)=>{H.assertEqual(m,w,"name should equal outerName");const U=kf(A,w,I);if(U)return U;let Z;return A===Ie?Z=qi(["string","number","boolean","object","bigint","symbol"],Fe=>A.has(Fe.charAt(0).toUpperCase()+Fe.slice(1))?Hs(524288,Fe):void 0).concat(ga(A.values())):Z=ga(A.values()),iie(Yr(w),Z,I)})}function fri(l,m,D){const C=UMe(l,m,D);return C&&lc(C)}function PEe(l,m){return m.exports&&iie(fu(l),L5(m),2623475)}function mri(l,m){const D=PEe(l,m);return D&&lc(D)}function pri(l,m,D){function C(I){const U=bC(l,I);if(U){const Z=wF(Wn(U));return!!Z&&SE(Z)>=1&&ms(D,Lg(Z,0))}return!1}const A=Q_(m)?"set":"get";if(!C(A))return;let w=Uj(m.expression);return w===void 0?w=A:w+="."+A,w}function gri(l,m){const D=m.types.filter(C=>!!(C.flags&128));return bN(l.value,D,C=>C.value)}function iie(l,m,D){return bN(l,m,C);function C(A){const w=lc(A);if(!Pa(w,'"')){if(A.flags&D)return w;if(A.flags&2097152){const I=T9(A);if(I&&I.flags&D)return w}}}}function nie(l,m,D){const C=l&&l.flags&106500&&l.valueDeclaration;if(!C)return;const A=Rf(C,2),w=l.valueDeclaration&&mh(l.valueDeclaration)&&Xr(l.valueDeclaration.name);if(!(!A&&!w)&&!(m&&Jq(m)&&!(l.flags&65536))){if(D){const I=Tn(m,$0);if(I&&I.symbol===l)return}(Gl(l)&1?Ur(l).target:l).isReferenced=67108863}}function Rft(l,m){return l.kind===110||!!m&&ec(l)&&m===Zp(hm(l))}function Eri(l,m){switch(l.kind){case 211:return qMe(l,l.expression.kind===108,m,vm(ya(l.expression)));case 166:return qMe(l,!1,m,vm(ya(l.left)));case 205:return qMe(l,!1,m,Ar(l))}}function Oft(l,m,D){return ZMe(l,l.kind===211&&l.expression.kind===108,!1,m,D)}function qMe(l,m,D,C){if(nt(C))return!0;const A=qo(C,D);return!!A&&ZMe(l,m,!1,C,A)}function ZMe(l,m,D,C,A){if(nt(C))return!0;if(A.valueDeclaration&&ph(A.valueDeclaration)){const w=Yd(A.valueDeclaration);return!Y1(l)&&!!Tn(l,I=>I===w)}return kft(l,m,D,C,A)}function _ri(l){const m=l.initializer;if(m.kind===261){const D=m.declarations[0];if(D&&!So(D.name))return _u(D)}else if(m.kind===80)return Zp(m)}function Dri(l){return kh(l).length===1&&!!k3(l,Qt)}function xri(l){const m=l0(l);if(m.kind===80){const D=Zp(m);if(D.flags&3){let C=l,A=l.parent;for(;A;){if(A.kind===249&&C===A.statement&&_ri(A)===D&&Dri(b1(A.expression)))return!0;C=A,A=A.parent}}}return!1}function vri(l,m){return l.flags&64?Cri(l,m):jft(l,hT(l.expression),m)}function Cri(l,m){const D=ya(l.expression),C=gW(D,l.expression);return sEe(jft(l,kE(C,l.expression),m),l,C!==D)}function jft(l,m,D){const C=f7(l)!==0||wft(l)?vm(m):m,A=l.argumentExpression,w=ya(A);if(Nt(C)||C===ja)return C;if(WEe(C)&&!t0(A))return pt(A,F.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ot;const I=xri(A)?Qt:w,U=Q_(l)?4|(Lb(C)&&!NP(C)?2:0):32,Z=b6(C,I,U,l)||Ot;return Jmt(Lft(l,ar(l).resolvedSymbol,Z,A,D),l)}function Vft(l){return $E(l)||Dk(l)||zh(l)}function BF(l){return Vft(l)&&L(l.typeArguments,ls),l.kind===215?ya(l.template):zh(l)?ya(l.attributes):Xn(l)?ya(l.left):$E(l)&&L(l.arguments,m=>{ya(m)}),mi}function FE(l){return BF(l),fn}function bri(l,m,D){let C,A,w=0,I,U=-1,Z;H.assert(!m.length);for(const ce of l){const Fe=ce.declaration&&_u(ce.declaration),Te=ce.declaration&&ce.declaration.parent;!A||Fe===A?C&&Te===C?I=I+1:(C=Te,I=w):(I=w=m.length,C=Te),A=Fe,Ode(ce)?(U++,Z=U,w++):Z=I,m.splice(Z,0,D?vXt(ce,D):ce)}}function MEe(l){return!!l&&(l.kind===230||l.kind===237&&l.isSpread)}function zEe(l){return Ue(l,MEe)}function Hft(l){return!!(l.flags&16384)}function yri(l){return!!(l.flags&49155)}function IEe(l,m,D,C=!1){let A,w=!1,I=Cm(D),U=SE(D);if(l.kind===215)if(A=m.length,l.template.kind===228){const Z=Cr(l.template.templateSpans);w=Ql(Z.literal)||!!Z.literal.isUnterminated}else{const Z=l.template;H.assert(Z.kind===15),w=!!Z.isUnterminated}else if(l.kind===170)A=qft(l,D);else if(l.kind===226)A=1;else if(zh(l)){if(w=l.attributes.end===l.end,w)return!0;A=U===0?m.length:1,I=m.length===0?I:1,U=Math.min(U,1)}else if(l.arguments){A=C?m.length+1:m.length,w=l.arguments.end===l.end;const Z=zEe(m);if(Z>=0)return Z>=SE(D)&&(F_(D)||ZI)return!1;if(w||A>=U)return!0;for(let Z=A;Z=C&&m.length<=D}function wF(l){return kW(l,0,!1)}function Kft(l){return kW(l,0,!1)||kW(l,1,!1)}function kW(l,m,D){if(l.flags&524288){const C=Ag(l);if(D||C.properties.length===0&&C.indexInfos.length===0){if(m===0&&C.callSignatures.length===1&&C.constructSignatures.length===0)return C.callSignatures[0];if(m===1&&C.constructSignatures.length===1&&C.callSignatures.length===0)return C.constructSignatures[0]}}}function Wft(l,m,D,C){const A=DW(l.typeParameters,l,0,C),w=AW(m),I=D&&(w&&w.flags&262144?D.nonFixingMapper:D.mapper),U=I?lT(m,I):m;return YPe(U,l,(Z,ce)=>{AD(A.inferences,Z,ce)}),D||QPe(m,l,(Z,ce)=>{AD(A.inferences,Z,ce,128)}),rW(l,dMe(A),Qn(m.declaration))}function kri(l,m,D,C){const A=SEe(m,l),w=pT(l.attributes,A,C,D);return AD(C.inferences,w,A),dMe(C)}function Gft(l){if(!l)return ca;const m=ya(l);return zye(l)?m:IN(l.parent)?FD(m):Y1(l.parent)?oEe(m):m}function QMe(l,m,D,C,A){if(zh(l))return kri(l,m,C,A);if(l.kind!==170&&l.kind!==226){const Z=ye(m.typeParameters,Fe=>!!_F(Fe)),ce=hf(l,Z?8:0);if(ce){const Fe=Zs(m);if(NC(Fe)){const Te=jb(l);if(!(!Z&&hf(l,8)!==ce)){const gi=iMe(Vii(Te,1)),Wi=_a(ce,gi),dn=wF(Wi),nu=dn&&dn.typeParameters?DF(ePe(dn,dn.typeParameters)):Wi;AD(A.inferences,nu,Fe,128)}const ut=DW(m.typeParameters,m,A.flags),zt=_a(ce,Te&&Te.returnMapper);AD(ut.inferences,zt,Fe),A.returnMapper=Oe(ut.inferences,gT)?iMe(Gii(ut)):void 0}}}const w=SW(m),I=w?Math.min(Cm(m)-1,D.length):D.length;if(w&&w.flags&262144){const Z=Le(A.inferences,ce=>ce.typeParameter===w);Z&&(Z.impliedArity=Ue(D,MEe,I)<0?D.length-I:void 0)}const U=kC(m);if(U&&NC(U)){const Z=Uft(l);AD(A.inferences,Gft(Z),U)}for(let Z=0;Z=D-1){const Fe=l[D-1];if(MEe(Fe)){const Te=Fe.kind===237?Fe.type:pT(Fe.expression,C,A,w);return H5(Te)?Jft(Te):V1(G5(33,Te,te,Fe.kind===230?Fe.expression:Fe),I)}}const U=[],Z=[],ce=[];for(let Fe=m;Fero(void 0,F.Type_0_does_not_satisfy_the_constraint_1):void 0,Te=C||F.Type_0_does_not_satisfy_the_constraint_1;U||(U=Sf(w,I));const $e=I[Z];if(!Ah($e,xm(_a(ce,U),$e),D?m[Z]:void 0,Te,Fe))return}}return I}function $ft(l){if(X9(l.tagName))return 2;const m=Gh(ya(l.tagName));return S(go(m,1))?0:S(go(m,0))?1:2}function Fri(l,m,D,C,A,w,I){const U=SEe(m,l),Z=pT(l.attributes,U,void 0,C),ce=C&4?_W(Z):Z;return Fe()&&MPe(ce,U,D,A?l.tagName:void 0,l.attributes,void 0,w,I);function Fe(){var Te;if(zMe(l))return!0;const $e=(aE(l)||bk(l))&&!(X9(l.tagName)||gg(l.tagName))?ya(l.tagName):void 0;if(!$e)return!0;const ut=go($e,0);if(!S(ut))return!0;const zt=X4t(l);if(!zt)return!0;const gi=R0(zt,111551,!0,!1,l);if(!gi)return!0;const Wi=Wn(gi),dn=go(Wi,0);if(!S(dn))return!0;let nu=!1,En=0;for(const Nn of dn){const vn=Lg(Nn,0),An=go(vn,0);if(S(An))for(const _n of An){if(nu=!0,F_(_n))return!0;const hu=Cm(_n);hu>En&&(En=hu)}}if(!nu)return!0;let Ii=1/0;for(const Nn of ut){const vn=SE(Nn);vn{A.push(w.expression)}),A}if(l.kind===170)return Ari(l);if(l.kind===226)return[l.left];if(zh(l))return l.attributes.properties.length>0||aE(l)&&l.parent.children.length>0?[l.attributes]:_t;const m=l.arguments||_t,D=zEe(m);if(D>=0){const C=m.slice(0,D);for(let A=D;A{var ce;const Fe=I.target.elementFlags[Z],Te=rie(w,Fe&4?V1(U):U,!!(Fe&12),(ce=I.target.labeledElementDeclarations)==null?void 0:ce[Z]);C.push(Te)}):C.push(w)}return C}return m}function Ari(l){const m=l.expression,D=hze(l);if(D){const C=[];for(const A of D.parameters){const w=Wn(A);C.push(rie(m,w))}return C}return H.fail()}function qft(l,m){return ae.experimentalDecorators?Sri(l,m):2}function Sri(l,m){switch(l.parent.kind){case 263:case 231:return 1;case 172:return eE(l.parent)?3:2;case 174:case 177:case 178:return Ce===0||m.parameters.length<=2?2:3;case 169:return 3;default:return H.fail()}}function Zft(l,m){let D,C;const A=zn(l);if(Iu(l.expression)){const w=C2(A,l.expression.name);D=w.start,C=m?w.length:l.end-D}else{const w=C2(A,l.expression);D=w.start,C=m?w.length:l.end-D}return{start:D,length:C,sourceFile:A}}function aie(l,m,...D){if(Mo(l)){const{sourceFile:C,start:A,length:w}=Zft(l);return"message"in m?Rd(C,A,w,m,...D):b0e(C,m)}else return"message"in m?Su(l,m,...D):Y3(zn(l),l,m)}function Bri(l){if(!Mo(l)||!at(l.expression))return!1;const m=uc(l.expression,l.expression.escapedText,111551,void 0,void 0,!1),D=m==null?void 0:m.valueDeclaration;if(!D||!io(D)||!R2(D.parent)||!j2(D.parent.parent)||!at(D.parent.parent.expression))return!1;const C=sPe(!1);return C?Yp(D.parent.parent.expression,!0)===C:!1}function Yft(l,m,D,C){var A;const w=zEe(D);if(w>-1)return Su(D[w],F.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let I=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,ce=Number.POSITIVE_INFINITY,Fe;for(const gi of m){const Wi=SE(gi),dn=Cm(gi);WiZ&&(Z=Wi),D.lengthA?I=Math.min(I,Z):ce1&&(En=vn($e,h_,zt,Ii)),En||(En=vn($e,Jf,zt,Ii)),En)return En;if(En=Tri(l,$e,ut,!!D,C),ar(l).resolvedSignature=En,Fe)if(!w&&ce&&(w=F.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),Wi)if(Wi.length===1||Wi.length>3){const An=Wi[Wi.length-1];let _n;Wi.length>3&&(_n=ro(_n,F.The_last_overload_gave_the_following_error),_n=ro(_n,F.No_overload_matches_this_call)),w&&(_n=ro(_n,w));const hu=uie(l,ut,An,Jf,0,!0,()=>_n);if(hu)for(const oo of hu)An.declaration&&Wi.length>3&&Es(oo,Su(An.declaration,F.The_last_overload_is_declared_here)),Nn(An,oo),Vs.add(oo);else H.fail("No error for last overload signature")}else{const An=[];let _n=0,hu=Number.MAX_VALUE,oo=0,Eo=0;for(const hn of Wi){const Zr=uie(l,ut,hn,Jf,0,!0,()=>ro(void 0,F.Overload_0_of_1_2_gave_the_following_error,Eo+1,$e.length,vE(hn)));Zr?(Zr.length<=hu&&(hu=Zr.length,oo=Eo),_n=Math.max(_n,Zr.length),An.push(Zr)):H.fail("No error for 3 or fewer overload signatures"),Eo++}const fo=_n>1?An[oo]:Va(An);H.assert(fo.length>0,"No errors reported for 3 or fewer overload signatures");let ka=ro(Vt(fo,jbe),F.No_overload_matches_this_call);w&&(ka=ro(ka,w));const ah=[...ju(fo,hn=>hn.relatedInformation)];let t4;if(ye(fo,hn=>hn.start===fo[0].start&&hn.length===fo[0].length&&hn.file===fo[0].file)){const{file:hn,start:Kn,length:Zr}=fo[0];t4={file:hn,start:Kn,length:Zr,code:ka.code,category:ka.category,messageText:ka,relatedInformation:ah}}else t4=Y3(zn(l),l,ka,ah);Nn(Wi[0],t4),Vs.add(t4)}else if(dn)Vs.add(Yft(l,[dn],ut,w));else if(nu)eze(nu,l.typeArguments,!0,w);else{const An=ti(m,_n=>YMe(_n,Te));An.length===0?Vs.add(wri(l,m,Te,w)):Vs.add(Yft(l,An,ut,w))}return En;function Nn(An,_n){var hu,oo;const Eo=Wi,fo=dn,ka=nu,ah=((oo=(hu=An.declaration)==null?void 0:hu.symbol)==null?void 0:oo.declarations)||_t,hn=ah.length>1?Le(ah,Kn=>$0(Kn)&&H4(Kn.body)):void 0;if(hn){const Kn=dp(hn),Zr=!Kn.typeParameters;vn([Kn],Jf,Zr)&&Es(_n,Su(hn,F.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Wi=Eo,dn=fo,nu=ka}function vn(An,_n,hu,oo=!1){if(Wi=void 0,dn=void 0,nu=void 0,hu){const Eo=An[0];if(Oe(Te)||!IEe(l,ut,Eo,oo))return;if(uie(l,ut,Eo,_n,0,!1,void 0)){Wi=[Eo];return}return Eo}for(let Eo=0;Eo0),eS(l),C||m.length===1||m.some(w=>!!w.typeParameters)?Pri(l,m,D,A):Lri(m)}function Lri(l){const m=qi(l,Z=>Z.thisParameter);let D;m.length&&(D=Qft(m,m.map(lie)));const{min:C,max:A}=mke(l,Nri),w=[];for(let Z=0;Zth(Fe)?ZTF(Fe,Z))))}const I=qi(l,Z=>th(Z)?Cr(Z.parameters):void 0);let U=128;if(I.length!==0){const Z=V1(er(qi(l,Pdt),2));w.push(Xft(I,Z)),U|=1}return l.some(Ode)&&(U|=2),y3(l[0].declaration,void 0,D,w,Ds(l.map(Zs)),void 0,C,U)}function Nri(l){const m=l.parameters.length;return th(l)?m-1:m}function Qft(l,m){return Xft(l,er(m,2))}function Xft(l,m){return CF(Pn(l),m)}function Pri(l,m,D,C){const A=Iri(m,Ni===void 0?D.length:Ni),w=m[A],{typeParameters:I}=w;if(!I)return w;const U=Vft(l)?l.typeArguments:void 0,Z=U?Age(w,Mri(U,I,Qn(l))):zri(l,I,w,D,C);return m[A]=Z,Z}function Mri(l,m,D){const C=l.map(tS);for(;C.length>m.length;)C.pop();for(;C.length=m)return A;I>C&&(C=I,D=A)}return D}function Rri(l,m,D){if(l.expression.kind===108){const Z=kMe(l.expression);if(nt(Z)){for(const ce of l.arguments)ya(ce);return mi}if(!Nt(Z)){const ce=Qg(Yd(l));if(ce){const Fe=D0(Z,ce.typeArguments,ce);return fT(l,Fe,m,D,0)}}return BF(l)}let C,A=ya(l.expression);if($y(l)){const Z=gW(A,l.expression);C=Z===A?0:RN(l)?16:8,A=Z}else C=0;if(A=Aft(A,l.expression,iri),A===ja)return uu;const w=Gh(A);if(Nt(w))return FE(l);const I=go(w,0),U=go(w,1).length;if(oie(A,w,I.length,U))return!Nt(A)&&l.typeArguments&&pt(l,F.Untyped_function_calls_may_not_accept_type_arguments),BF(l);if(!I.length){if(U)pt(l,F.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(A));else{let Z;if(l.arguments.length===1){const ce=zn(l).text;Z1(ce.charCodeAt(gs(ce,l.expression.end,!0)-1))&&(Z=Su(l.expression,F.Are_you_missing_a_semicolon))}ize(l.expression,w,0,Z)}return FE(l)}return D&8&&!l.typeArguments&&I.some(Ori)?(Mmt(l,D),Wu):I.some(Z=>Qn(Z.declaration)&&!!Ise(Z.declaration))?(pt(l,F.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(A)),FE(l)):fT(l,I,m,D,C)}function Ori(l){return!!(l.typeParameters&&$ze(Zs(l)))}function oie(l,m,D,C){return nt(l)||nt(m)&&!!(l.flags&262144)||!D&&!C&&!(m.flags&1048576)&&!(Sg(m).flags&131072)&&ms(l,di)}function jri(l,m,D){if(l.arguments&&Ce<1){const I=zEe(l.arguments);I>=0&&pt(l.arguments[I],F.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let C=hT(l.expression);if(C===ja)return uu;if(C=Gh(C),Nt(C))return FE(l);if(nt(C))return l.typeArguments&&pt(l,F.Untyped_function_calls_may_not_accept_type_arguments),BF(l);const A=go(C,1);if(A.length){if(!Vri(l,A[0]))return FE(l);if(emt(A,U=>!!(U.flags&4)))return pt(l,F.Cannot_create_an_instance_of_an_abstract_class),FE(l);const I=C.symbol&&tD(C.symbol);return I&&Yu(I,64)?(pt(l,F.Cannot_create_an_instance_of_an_abstract_class),FE(l)):fT(l,A,m,D,0)}const w=go(C,0);if(w.length){const I=fT(l,w,m,D,0);return Ae||(I.declaration&&!AE(I.declaration)&&Zs(I)!==ca&&pt(l,F.Only_a_void_function_can_be_called_with_the_new_keyword),kC(I)===ca&&pt(l,F.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),I}return ize(l.expression,C,1),FE(l)}function emt(l,m){return Ha(l)?Oe(l,D=>emt(D,m)):l.compositeKind===1048576?Oe(l.compositeSignatures,m):m(l)}function tze(l,m){const D=Zc(m);if(!S(D))return!1;const C=D[0];if(C.flags&2097152){const A=C.types,w=gdt(A);let I=0;for(const U of C.types){if(!w[I]&&Gu(U)&3&&(U.symbol===l||tze(l,U)))return!0;I++}return!1}return C.symbol===l?!0:tze(l,C)}function Vri(l,m){if(!m||!m.declaration)return!0;const D=m.declaration,C=E7(D,6);if(!C||D.kind!==176)return!0;const A=tD(D.parent.symbol),w=X0(D.parent.symbol);if(!Wze(l,A)){const I=Yd(l);if(I&&C&4){const U=tS(I);if(tze(D.parent.symbol,U))return!0}return C&2&&pt(l,F.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,gn(w)),C&4&&pt(l,F.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,gn(w)),!1}return!0}function tmt(l,m,D){let C;const A=D===0,w=NF(m),I=w&&go(w,D).length>0;if(m.flags&1048576){const Z=m.types;let ce=!1;for(const Fe of Z)if(go(Fe,D).length!==0){if(ce=!0,C)break}else if(C||(C=ro(C,A?F.Type_0_has_no_call_signatures:F.Type_0_has_no_construct_signatures,gn(Fe)),C=ro(C,A?F.Not_all_constituents_of_type_0_are_callable:F.Not_all_constituents_of_type_0_are_constructable,gn(m))),ce)break;ce||(C=ro(void 0,A?F.No_constituent_of_type_0_is_callable:F.No_constituent_of_type_0_is_constructable,gn(m))),C||(C=ro(C,A?F.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:F.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,gn(m)))}else C=ro(C,A?F.Type_0_has_no_call_signatures:F.Type_0_has_no_construct_signatures,gn(m));let U=A?F.This_expression_is_not_callable:F.This_expression_is_not_constructable;if(Mo(l.parent)&&l.parent.arguments.length===0){const{resolvedSymbol:Z}=ar(l);Z&&Z.flags&32768&&(U=F.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:ro(C,U),relatedMessage:I?F.Did_you_forget_to_use_await:void 0}}function ize(l,m,D,C){const{messageChain:A,relatedMessage:w}=tmt(l,m,D),I=Y3(zn(l),l,A);if(w&&Es(I,Su(l,w)),Mo(l.parent)){const{start:U,length:Z}=Zft(l.parent,!0);I.start=U,I.length=Z}Vs.add(I),imt(m,D,C?Es(I,C):I)}function imt(l,m,D){if(!l.symbol)return;const C=Ur(l.symbol).originatingImport;if(C&&!dm(C)){const A=go(Wn(Ur(l.symbol).target),m);if(!A||!A.length)return;Es(D,Su(C,F.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function Hri(l,m,D){const C=ya(l.tag),A=Gh(C);if(Nt(A))return FE(l);const w=go(A,0),I=go(A,1).length;if(oie(C,A,w.length,I))return BF(l);if(!w.length){if(Dh(l.parent)){const U=Su(l.tag,F.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Vs.add(U),FE(l)}return ize(l.tag,A,0),FE(l)}return fT(l,w,m,D,0)}function Kri(l){switch(l.parent.kind){case 263:case 231:return F.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return F.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return F.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return F.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return H.fail()}}function Wri(l,m,D){const C=ya(l.expression),A=Gh(C);if(Nt(A))return FE(l);const w=go(A,0),I=go(A,1).length;if(oie(C,A,w.length,I))return BF(l);if($ri(l,w)&&!Cf(l.expression)){const Z=Hc(l.expression,!1);return pt(l,F._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,Z),FE(l)}const U=Kri(l);if(!w.length){const Z=tmt(l.expression,A,0),ce=ro(Z.messageChain,U),Fe=Y3(zn(l.expression),l.expression,ce);return Z.relatedMessage&&Es(Fe,Su(l.expression,Z.relatedMessage)),Vs.add(Fe),imt(A,0,Fe),FE(l)}return fT(l,w,m,D,0,U)}function OEe(l,m){const D=SF(l),C=D&&$f(D),A=C&&kf(C,Rm.Element,788968),w=A&&Yt.symbolToEntityName(A,788968,l),I=q.createFunctionTypeNode(void 0,[q.createParameterDeclaration(void 0,void 0,"props",void 0,Yt.typeToTypeNode(m,l))],w?q.createTypeReferenceNode(w,void 0):q.createKeywordTypeNode(133)),U=Hs(1,"props");return U.links.type=m,y3(I,void 0,void 0,[U],A?X0(A):Ot,void 0,1,0)}function Gri(l,m,D){if(X9(l.tagName)){const I=vft(l),U=OEe(l,I);return A6(pT(l.attributes,SEe(U,l),void 0,0),I,l.tagName,l.attributes),S(l.typeArguments)&&(L(l.typeArguments,ls),Vs.add(H8(zn(l),l.typeArguments,F.Expected_0_type_arguments_but_got_1,0,S(l.typeArguments)))),U}const C=ya(l.tagName),A=Gh(C);if(Nt(A))return FE(l);const w=Dft(C,l);return oie(C,A,w.length,0)?BF(l):w.length===0?(pt(l.tagName,F.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Hc(l.tagName)),FE(l)):fT(l,w,m,D,0)}function Jri(l,m,D){const C=ya(l.right);if(!nt(C)){const A=gze(C);if(A){const w=Gh(A);if(Nt(w))return FE(l);const I=go(w,0),U=go(w,1);if(oie(A,w,I.length,U.length))return BF(l);if(I.length)return fT(l,I,m,D,0)}else if(!(o_e(C)||F6(C,di)))return pt(l.right,F.The_right_hand_side_of_an_instanceof_expression_must_be_either_of_type_any_a_class_function_or_other_type_assignable_to_the_Function_interface_type_or_an_object_type_with_a_Symbol_hasInstance_method),FE(l)}return mi}function $ri(l,m){return m.length&&ye(m,D=>D.minArgumentCount===0&&!th(D)&&D.parameters.length1?Rc(l.arguments[1]):void 0;for(let w=2;w{const I=vm(A);qge(w,I)||q1t(A,w,D,F.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first)})}function iai(l){const m=ya(l.expression),D=gW(m,l.expression);return sEe(FD(D),l,D!==m)}function nai(l){return l.flags&64?iai(l):FD(ya(l.expression))}function lmt(l){if(ipt(l),L(l.typeArguments,ls),l.kind===233){const D=i5(l.parent);D.kind===226&&D.operatorToken.kind===104&&S2(l,D.right)&&pt(l,F.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const m=l.kind===233?ya(l.expression):N2(l.exprName)?Ute(l.exprName):ya(l.exprName);return cmt(m,l)}function cmt(l,m){const D=m.typeArguments;if(l===ja||Nt(l)||!Oe(D))return l;let C=!1,A;const w=U(l),I=C?A:l;return I&&Vs.add(H8(zn(m),D,F.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,gn(I))),w;function U(ce){let Fe=!1,Te=!1;const $e=ut(ce);return C||(C=Te),Fe&&!Te&&(A??(A=ce)),$e;function ut(zt){if(zt.flags&524288){const gi=Ag(zt),Wi=Z(gi.callSignatures),dn=Z(gi.constructSignatures);if(Fe||(Fe=gi.callSignatures.length!==0||gi.constructSignatures.length!==0),Te||(Te=Wi.length!==0||dn.length!==0),Wi!==gi.callSignatures||dn!==gi.constructSignatures){const nu=Ol(void 0,gi.members,Wi,dn,gi.indexInfos);return nu.objectFlags|=8388608,nu.node=m,nu}}else if(zt.flags&58982400){const gi=Wh(zt);if(gi){const Wi=ut(gi);if(Wi!==gi)return Wi}}else{if(zt.flags&1048576)return hl(zt,U);if(zt.flags&2097152)return Ds(Lu(zt.types,ut))}return zt}}function Z(ce){const Fe=ti(ce,Te=>!!Te.typeParameters&&YMe(Te,D));return Lu(Fe,Te=>{const $e=eze(Te,D,!0);return $e?rW(Te,$e,Qn(Te.declaration)):Te})}}function uai(l){return ls(l.type),aze(l.expression,l.type)}function aze(l,m,D){const C=ya(l,D),A=Ar(m);if(Nt(A))return A;const w=Tn(m.parent,I=>I.kind===238||I.kind===357);return A6(C,A,w,l,F.Type_0_does_not_satisfy_the_expected_type_1),C}function rai(l){return eci(l),l.keywordToken===105?oze(l):l.keywordToken===102?aai(l):H.assertNever(l.keywordToken)}function dmt(l){switch(l.keywordToken){case 102:return Zdt();case 105:const m=oze(l);return Nt(m)?Ot:bai(m);default:H.assertNever(l.keywordToken)}}function oze(l){const m=eye(l);if(m)if(m.kind===176){const D=_u(m.parent);return Wn(D)}else{const D=_u(m);return Wn(D)}else return pt(l,F.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ot}function aai(l){ne===100||ne===199?zn(l).impliedNodeFormat!==99&&pt(l,F.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ne<6&&ne!==4&&pt(l,F.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const m=zn(l);return H.assert(!!(m.flags&8388608),"Containing file is missing import meta node flag."),l.name.escapedText==="meta"?qdt():Ot}function lie(l){const m=l.valueDeclaration;return Vd(Wn(l),!1,!!m&&(Nx(m)||PP(m)))}function sze(l,m,D="arg"){return l?(H.assert(at(l.name)),l.name.escapedText):`${D}_${m}`}function Iz(l,m,D){const C=l.parameters.length-(th(l)?1:0);if(m=C-1)return m===C-1?w:V1(qf(w,Qt));const I=[],U=[],Z=[];for(let ce=m;ce!(Z&1)),U=I<0?w.target.fixedLength:I;U>0&&(A=l.parameters.length-1+U)}}if(A===void 0){if(!D&&l.flags&32)return 0;A=l.minArgumentCount}if(C)return A;for(let w=A-1;w>=0;w--){const I=Lg(l,w);if(Ic(I,Hft).flags&131072)break;A=w}l.resolvedMinArgumentCount=A}return l.resolvedMinArgumentCount}function F_(l){if(th(l)){const m=Wn(l.parameters[l.parameters.length-1]);return!xs(m)||m.target.hasRestElement}return!1}function AW(l){if(th(l)){const m=Wn(l.parameters[l.parameters.length-1]);if(!xs(m))return m;if(m.target.hasRestElement)return bz(m,m.target.fixedLength)}}function SW(l){const m=AW(l);return m&&!A4(m)&&!nt(m)?m:void 0}function lze(l){return cze(l,Ku)}function cze(l,m){return l.parameters.length>0?Lg(l,0):m}function mmt(l,m,D){const C=l.parameters.length-(th(l)?1:0);for(let A=0;A=0);const w=hc(C.parent)?Wn(_u(C.parent.parent)):G4t(C.parent),I=hc(C.parent)?te:J4t(C.parent),U=wg(A),Z=yg("target",w),ce=yg("propertyKey",I),Fe=yg("parameterIndex",U);D.decoratorSignature=MW(void 0,void 0,[Z,ce,Fe],ca);break}case 174:case 177:case 178:case 172:{const C=m;if(!mr(C.parent))break;const A=G4t(C),w=yg("target",A),I=J4t(C),U=yg("propertyKey",I),Z=ko(C)?ca:n1t(tS(C));if(Ce!==0&&(!ko(m)||eE(m))){const Fe=n1t(tS(C)),Te=yg("descriptor",Fe);D.decoratorSignature=MW(void 0,void 0,[w,U,Te],er([Z,ca]))}else D.decoratorSignature=MW(void 0,void 0,[w,U],er([Z,ca]));break}}return D.decoratorSignature===mi?void 0:D.decoratorSignature}function hze(l){return ve?Cai(l):vai(l)}function die(l){const m=Fte(!0);return m!==Ka?(l=W5(Vz(l))||on,R5(m,[l])):on}function Emt(l){const m=e1t(!0);return m!==Ka?(l=W5(Vz(l))||on,R5(m,[l])):on}function hie(l,m){const D=die(m);return D===on?(pt(l,dm(l)?F.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:F.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ot):(sPe(!0)||pt(l,dm(l)?F.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:F.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),D)}function bai(l){const m=Hs(0,"NewTargetExpression"),D=Hs(4,"target",8);D.parent=m,D.links.type=l;const C=Vo([D]);return m.members=C,Ol(m,C,_t,_t,_t)}function HEe(l,m){if(!l.body)return Ot;const D=kd(l),C=(D&2)!==0,A=(D&1)!==0;let w,I,U,Z=ca;if(l.body.kind!==241)w=Rc(l.body,m&&m&-9),C&&(w=Vz(PW(w,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(A){const ce=bmt(l,m);ce?ce.length>0&&(w=er(ce,2)):Z=Ku;const{yieldTypes:Fe,nextTypes:Te}=yai(l,m);I=Oe(Fe)?er(Fe,2):void 0,U=Oe(Te)?Ds(Te):void 0}else{const ce=bmt(l,m);if(!ce)return D&2?hie(l,Ku):Ku;if(ce.length===0){const Fe=yEe(l,void 0),Te=Fe&&(bie(Fe,D)||ca).flags&32768?te:ca;return D&2?hie(l,Te):Te}w=er(ce,2)}if(w||I||U){if(I&&hEe(l,I,3),w&&hEe(l,w,1),U&&hEe(l,U,2),w&&Tg(w)||I&&Tg(I)||U&&Tg(U)){const ce=LMe(l),Fe=ce?ce===dp(l)?A?void 0:w:FEe(Zs(ce),l,void 0):void 0;A?(I=qPe(I,Fe,0,C),w=qPe(w,Fe,1,C),U=qPe(U,Fe,2,C)):w=Bii(w,Fe,C)}I&&(I=vm(I)),w&&(w=vm(w)),U&&(U=vm(U))}return A?_mt(I||Ku,w||Z,U||rft(2,l)||on,C):C?die(w||Z):w||Z}function _mt(l,m,D,C){const A=C?S0:ud,w=A.getGlobalGeneratorType(!1);if(l=A.resolveIterationType(l,void 0)||on,m=A.resolveIterationType(m,void 0)||on,D=A.resolveIterationType(D,void 0)||on,w===Ka){const I=A.getGlobalIterableIteratorType(!1),U=I!==Ka?c4t(I,A):void 0,Z=U?U.returnType:me,ce=U?U.nextType:te;return ms(m,Z)&&ms(ce,D)?I!==Ka?oW(I,[l]):(A.getGlobalIterableIteratorType(!0),Ko):(A.getGlobalGeneratorType(!0),Ko)}return oW(w,[l,m,D])}function yai(l,m){const D=[],C=[],A=(kd(l)&2)!==0;return Kbe(l.body,w=>{const I=w.expression?ya(w.expression,m):we;xa(D,Dmt(w,I,me,A));let U;if(w.asteriskToken){const Z=e_e(I,A?19:17,w.expression);U=Z&&Z.nextType}else U=hf(w,void 0);U&&xa(C,U)}),{yieldTypes:D,nextTypes:C}}function Dmt(l,m,D,C){const A=l.expression||l,w=l.asteriskToken?G5(C?19:17,m,D,A):m;return C?NF(w,A,l.asteriskToken?F.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:F.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):w}function xmt(l,m,D){let C=0;for(let A=0;A=m?D[A]:void 0;C|=w!==void 0?Vde.get(w)||32768:0}return C}function vmt(l){const m=ar(l);if(m.isExhaustive===void 0){m.isExhaustive=0;const D=kai(l);m.isExhaustive===0&&(m.isExhaustive=D)}else m.isExhaustive===0&&(m.isExhaustive=!1);return m.isExhaustive}function kai(l){if(l.expression.kind===221){const C=jht(l);if(!C)return!1;const A=xD(Rc(l.expression.expression)),w=xmt(0,0,C);return A.flags&3?(556800&w)===556800:!yE(A,I=>Lz(I,w)===w)}const m=Rc(l.expression);if(!pW(m))return!1;const D=EEe(l);return!D.length||Oe(D,Fii)?!1:bni(hl(m,Jh),D)}function Cmt(l){return l.endFlowNode&&Jte(l.endFlowNode)}function bmt(l,m){const D=kd(l),C=[];let A=Cmt(l),w=!1;if(y2(l.body,I=>{let U=I.expression;if(U){if(U=l0(U,!0),D&2&&U.kind===223&&(U=l0(U.expression,!0)),U.kind===213&&U.expression.kind===80&&Rc(U.expression).symbol===l.symbol){w=!0;return}let Z=Rc(U,m&&m&-9);D&2&&(Z=Vz(PW(Z,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Z.flags&131072&&(w=!0),xa(C,Z)}else A=!0}),!(C.length===0&&!A&&(w||Fai(l))))return fe&&C.length&&A&&!(AE(l)&&C.some(I=>I.symbol===l.symbol))&&xa(C,te),C}function Fai(l){switch(l.kind){case 218:case 219:return!0;case 174:return l.parent.kind===210;default:return!1}}function fze(l,m){s(D);return;function D(){const C=kd(l),A=m&&bie(m,C);if(A&&(jl(A,16384)||A.flags&32769)||l.kind===173||Ql(l.body)||l.body.kind!==241||!Cmt(l))return;const w=l.flags&1024,I=U4(l)||l;if(A&&A.flags&131072)pt(I,F.A_function_returning_never_cannot_have_a_reachable_end_point);else if(A&&!w)pt(I,F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(A&&fe&&!ms(te,A))pt(I,F.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(ae.noImplicitReturns){if(!A){if(!w)return;const U=Zs(dp(l));if(_4t(l,U))return}pt(I,F.Not_all_code_paths_return_a_value)}}}function ymt(l,m){if(H.assert(l.kind!==174||zp(l)),eS(l),A0(l)&&Hz(l,l.name),m&&m&4&&k4(l)){if(!U4(l)&&!fZ(l)){const C=yW(l);if(C&&NC(Zs(C))){const A=ar(l);if(A.contextFreeType)return A.contextFreeType;const w=HEe(l,m),I=y3(void 0,void 0,void 0,_t,w,void 0,0,64),U=Ol(l.symbol,se,[I],_t,_t);return U.objectFlags|=262144,A.contextFreeType=U}}return Ri}return!d_e(l)&&l.kind===218&&Zze(l),Aai(l,m),Wn(_u(l))}function Aai(l,m){const D=ar(l);if(!(D.flags&64)){const C=yW(l);if(!(D.flags&64)){D.flags|=64;const A=Ki(go(Wn(_u(l)),0));if(!A)return;if(k4(l))if(C){const w=jb(l);let I;if(m&&m&2){mmt(A,C,w);const U=AW(C);U&&U.flags&262144&&(I=lT(C,w.nonFixingMapper))}I||(I=w?lT(C,w.mapper):C),lai(A,I)}else cai(A);else if(C&&!l.typeParameters&&C.parameters.length>l.parameters.length){const w=jb(l);m&&m&2&&mmt(A,C,w)}if(C&&!uT(l)&&!A.resolvedReturnType){const w=HEe(l,m);A.resolvedReturnType||(A.resolvedReturnType=w)}TW(l)}}}function Sai(l){H.assert(l.kind!==174||zp(l));const m=kd(l),D=uT(l);if(fze(l,D),l.body)if(U4(l)||Zs(dp(l)),l.body.kind===241)ls(l.body);else{const C=ya(l.body),A=D&&bie(D,m);if(A)if((m&3)===2){const w=PW(C,!1,l.body,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);A6(w,A,l.body,l.body)}else A6(C,A,l.body,l.body)}}function KEe(l,m,D,C=!1){if(!ms(m,Ya)){const A=C&&jz(m);return bh(l,!!A&&ms(A,Ya),D),!1}return!0}function Bai(l){if(!Mo(l)||!rk(l))return!1;const m=Rc(l.arguments[2]);if(he(m,"value")){const A=qo(m,"writable"),w=A&&Wn(A);if(!w||w===Ui||w===Sn)return!0;if(A&&A.valueDeclaration&&Jc(A.valueDeclaration)){const I=A.valueDeclaration.initializer,U=ya(I);if(U===Ui||U===Sn)return!0}return!1}return!qo(m,"set")}function Ng(l){return!!(Gl(l)&8||l.flags&4&&l4(l)&8||l.flags&3&&OMe(l)&6||l.flags&98304&&!(l.flags&65536)||l.flags&8||Oe(l.declarations,Bai))}function kmt(l,m,D){var C,A;if(D===0)return!1;if(Ng(m)){if(m.flags&4&&I0(l)&&l.expression.kind===110){const w=Nm(l);if(!(w&&(w.kind===176||AE(w))))return!0;if(m.valueDeclaration){const I=Xn(m.valueDeclaration),U=w.parent===m.valueDeclaration.parent,Z=w===m.valueDeclaration.parent,ce=I&&((C=m.parent)==null?void 0:C.valueDeclaration)===w.parent,Fe=I&&((A=m.parent)==null?void 0:A.valueDeclaration)===w;return!(U||Z||ce||Fe)}}return!0}if(I0(l)){const w=l0(l.expression);if(w.kind===80){const I=ar(w).resolvedSymbol;if(I.flags&2097152){const U=rp(I);return!!U&&U.kind===274}}}return!1}function BW(l,m,D){const C=Dc(l,7);return C.kind!==80&&!I0(C)?(pt(l,m),!1):C.flags&64?(pt(l,D),!1):!0}function wai(l){ya(l.expression);const m=l0(l.expression);if(!I0(m))return pt(m,F.The_operand_of_a_delete_operator_must_be_a_property_reference),pr;Iu(m)&&Xr(m.name)&&pt(m,F.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const D=ar(m),C=sp(D.resolvedSymbol);return C&&(Ng(C)?pt(m,F.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Tai(m,C)),pr}function Tai(l,m){const D=Wn(m);fe&&!(D.flags&131075)&&!(Ve?m.flags&16777216:fp(D,16777216))&&pt(l,F.The_operand_of_a_delete_operator_must_be_optional)}function Lai(l){return ya(l.expression),Nw}function Nai(l){return eS(l),we}function Fmt(l){let m=!1;const D=dq(l);if(D&&zl(D)){const C=Gx(l)?F.await_expression_cannot_be_used_inside_a_class_static_block:F.await_using_statements_cannot_be_used_inside_a_class_static_block;pt(l,C),m=!0}else if(!(l.flags&65536))if(fq(l)){const C=zn(l);if(!Kb(C)){let A;if(!s7(C,ae)){A??(A=QE(C,l.pos));const w=Gx(l)?F.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module:F.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module,I=Rd(C,A.start,A.length,w);Vs.add(I),m=!0}switch(ne){case 100:case 199:if(C.impliedNodeFormat===1){A??(A=QE(C,l.pos)),Vs.add(Rd(C,A.start,A.length,F.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),m=!0;break}case 7:case 99:case 4:if(Ce>=4)break;default:A??(A=QE(C,l.pos));const w=Gx(l)?F.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:F.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher;Vs.add(Rd(C,A.start,A.length,w)),m=!0;break}}}else{const C=zn(l);if(!Kb(C)){const A=QE(C,l.pos),w=Gx(l)?F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,I=Rd(C,A.start,A.length,w);if(D&&D.kind!==176&&!(kd(D)&2)){const U=Su(D,F.Did_you_mean_to_mark_this_function_as_async);Es(I,U)}Vs.add(I),m=!0}}return Gx(l)&&AMe(l)&&(pt(l,F.await_expressions_cannot_be_used_in_a_parameter_initializer),m=!0),m}function Pai(l){s(()=>Fmt(l));const m=ya(l.expression),D=PW(m,!0,l,F.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return D===m&&!Nt(D)&&!(m.flags&3)&&i1(!1,Su(l,F.await_has_no_effect_on_the_type_of_this_expression)),D}function Mai(l){const m=ya(l.operand);if(m===ja)return ja;switch(l.operand.kind){case 9:switch(l.operator){case 41:return Z9(wg(-l.operand.text));case 40:return Z9(wg(+l.operand.text))}break;case 10:if(l.operator===41)return Z9(jge({negative:!0,base10Value:SP(l.operand.text)}))}switch(l.operator){case 40:case 41:case 55:return kE(m,l.operand),fie(m,12288)&&pt(l.operand,F.The_0_operator_cannot_be_applied_to_type_symbol,Uo(l.operator)),l.operator===40?(fie(m,2112)&&pt(l.operand,F.Operator_0_cannot_be_applied_to_type_1,Uo(l.operator),gn(kD(m))),Qt):mze(m);case 54:Tze(m,l.operand);const D=Lz(m,12582912);return D===4194304?Ui:D===8388608?du:pr;case 46:case 47:return KEe(l.operand,kE(m,l.operand),F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&BW(l.operand,F.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,F.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),mze(m)}return Ot}function zai(l){const m=ya(l.operand);return m===ja?ja:(KEe(l.operand,kE(m,l.operand),F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&BW(l.operand,F.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,F.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),mze(m))}function mze(l){return jl(l,2112)?u1(l,3)||jl(l,296)?Ya:Li:Qt}function fie(l,m){if(jl(l,m))return!0;const D=xD(l);return!!D&&jl(D,m)}function jl(l,m){if(l.flags&m)return!0;if(l.flags&3145728){const D=l.types;for(const C of D)if(jl(C,m))return!0}return!1}function u1(l,m,D){return l.flags&m?!0:D&&l.flags&114691?!1:!!(m&296)&&ms(l,Qt)||!!(m&2112)&&ms(l,Li)||!!(m&402653316)&&ms(l,ct)||!!(m&528)&&ms(l,pr)||!!(m&16384)&&ms(l,ca)||!!(m&131072)&&ms(l,Ku)||!!(m&65536)&&ms(l,it)||!!(m&32768)&&ms(l,te)||!!(m&4096)&&ms(l,Xu)||!!(m&67108864)&&ms(l,as)}function mie(l,m,D){return l.flags&1048576?ye(l.types,C=>mie(C,m,D)):u1(l,m,D)}function WEe(l){return!!(Gu(l)&16)&&!!l.symbol&&pze(l.symbol)}function pze(l){return(l.flags&128)!==0}function gze(l){const m=h4t("hasInstance"),D=bC(l,m);if(D){const C=Wn(D);if(C&&go(C,0).length!==0)return C}}function Iai(l,m,D,C,A){if(D===ja||C===ja)return ja;!nt(D)&&mie(D,402784252)&&pt(l,F.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),H.assert(Hq(l.parent));const w=mT(l.parent,void 0,A);if(w===Wu)return ja;const I=Zs(w);return Ah(I,pr,m,F.An_object_s_Symbol_hasInstance_method_must_return_a_boolean_value_for_it_to_be_used_on_the_right_hand_side_of_an_instanceof_expression),pr}function Rai(l){return yE(l,m=>m===Il||!!(m.flags&2097152)&&yD(xD(m)))}function Oai(l,m,D,C){if(D===ja||C===ja)return ja;if(Xr(l)){if(Ce<99&&rd(l,2097152),!ar(l).resolvedSymbol&&Yd(l)){const A=GMe(l,C.symbol,!0);Pft(l,C,A)}}else Ah(kE(D,l),Fn,l);return Ah(kE(C,m),as,m)&&Rai(C)&&pt(m,F.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,gn(C)),pr}function jai(l,m,D){const C=l.properties;if(fe&&C.length===0)return kE(m,l);for(let A=0;Abz(ce,D)):V1(C);return LF(U,Z,A)}}}}function LF(l,m,D,C){let A;if(l.kind===304){const w=l;w.objectAssignmentInitializer&&(fe&&!fp(ya(w.objectAssignmentInitializer),16777216)&&(m=mp(m,524288)),Gai(w.name,w.equalsToken,w.objectAssignmentInitializer,D)),A=l.name}else A=l;return A.kind===226&&A.operatorToken.kind===64&&(We(A,D),A=A.left,fe&&(m=mp(m,524288))),A.kind===210?jai(A,m,C):A.kind===209?Vai(A,m,D):Hai(A,m,D)}function Hai(l,m,D){const C=ya(l,D),A=l.parent.kind===305?F.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:F.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,w=l.parent.kind===305?F.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:F.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return BW(l,A,w)&&A6(m,C,l,l),T8(l)&&rd(l.parent,1048576),m}function pie(l){switch(l=l0(l),l.kind){case 80:case 11:case 14:case 215:case 228:case 15:case 9:case 10:case 112:case 97:case 106:case 157:case 218:case 231:case 219:case 209:case 210:case 221:case 235:case 285:case 284:return!0;case 227:return pie(l.whenTrue)&&pie(l.whenFalse);case 226:return u5(l.operatorToken.kind)?!1:pie(l.left)&&pie(l.right);case 224:case 225:switch(l.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Eze(l,m){return(m.flags&98304)!==0||qge(l,m)}function Kai(){const l=kY(m,D,C,A,w,I);return($e,ut)=>{const zt=l($e,ut);return H.assertIsDefined(zt),zt};function m($e,ut,zt){return ut?(ut.stackIndex++,ut.skip=!1,ce(ut,void 0),Te(ut,void 0)):ut={checkMode:zt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Qn($e)&&l7($e)?(ut.skip=!0,Te(ut,ya($e.right,zt)),ut):(Wai($e),$e.operatorToken.kind===64&&($e.left.kind===210||$e.left.kind===209)&&(ut.skip=!0,Te(ut,LF($e.left,ya($e.right,zt),zt,$e.right.kind===110))),ut)}function D($e,ut,zt){if(!ut.skip)return U(ut,$e)}function C($e,ut,zt){if(!ut.skip){const gi=Fe(ut);H.assertIsDefined(gi),ce(ut,gi),Te(ut,void 0);const Wi=$e.kind;if(Wj(Wi)){let dn=zt.parent;for(;dn.kind===217||Gj(dn);)dn=dn.parent;(Wi===56||xk(dn))&&wze(zt.left,gi,xk(dn)?dn.thenStatement:void 0),Tze(gi,zt.left)}}}function A($e,ut,zt){if(!ut.skip)return U(ut,$e)}function w($e,ut){let zt;if(ut.skip)zt=Fe(ut);else{const gi=Z(ut);H.assertIsDefined(gi);const Wi=Fe(ut);H.assertIsDefined(Wi),zt=Bmt($e.left,$e.operatorToken,$e.right,gi,Wi,ut.checkMode,$e)}return ut.skip=!1,ce(ut,void 0),Te(ut,void 0),ut.stackIndex--,zt}function I($e,ut,zt){return Te($e,ut),$e}function U($e,ut){if(Xn(ut))return ut;Te($e,ya(ut,$e.checkMode))}function Z($e){return $e.typeStack[$e.stackIndex]}function ce($e,ut){$e.typeStack[$e.stackIndex]=ut}function Fe($e){return $e.typeStack[$e.stackIndex+1]}function Te($e,ut){$e.typeStack[$e.stackIndex+1]=ut}}function Wai(l){const{left:m,operatorToken:D,right:C}=l;D.kind===61&&(Xn(m)&&(m.operatorToken.kind===57||m.operatorToken.kind===56)&&Zi(m,F._0_and_1_operations_cannot_be_mixed_without_parentheses,Uo(m.operatorToken.kind),Uo(D.kind)),Xn(C)&&(C.operatorToken.kind===57||C.operatorToken.kind===56)&&Zi(C,F._0_and_1_operations_cannot_be_mixed_without_parentheses,Uo(C.operatorToken.kind),Uo(D.kind)))}function Gai(l,m,D,C,A){const w=m.kind;if(w===64&&(l.kind===210||l.kind===209))return LF(l,ya(D,C),C,D.kind===110);let I;Wj(w)?I=Kz(l,C):I=ya(l,C);const U=ya(D,C);return Bmt(l,m,D,I,U,C,A)}function Bmt(l,m,D,C,A,w,I){const U=m.kind;switch(U){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(C===ja||A===ja)return ja;C=kE(C,l),A=kE(A,D);let Ii;if(C.flags&528&&A.flags&528&&(Ii=$e(m.kind))!==void 0)return pt(I||m,F.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Uo(m.kind),Uo(Ii)),Qt;{const An=KEe(l,C,F.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),_n=KEe(D,A,F.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let hu;if(u1(C,3)&&u1(A,3)||!(jl(C,2112)||jl(A,2112)))hu=Qt;else if(Z(C,A)){switch(U){case 50:case 73:Wi();break;case 43:case 68:Ce<3&&pt(I,F.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}hu=Li}else Wi(Z),hu=Ot;return An&&_n&&ut(hu),hu}case 40:case 65:if(C===ja||A===ja)return ja;!u1(C,402653316)&&!u1(A,402653316)&&(C=kE(C,l),A=kE(A,D));let Nn;return u1(C,296,!0)&&u1(A,296,!0)?Nn=Qt:u1(C,2112,!0)&&u1(A,2112,!0)?Nn=Li:u1(C,402653316,!0)||u1(A,402653316,!0)?Nn=ct:(nt(C)||nt(A))&&(Nn=Nt(C)||Nt(A)?Ot:me),Nn&&!Te(U)?Nn:Nn?(U===65&&ut(Nn),Nn):(Wi((_n,hu)=>u1(_n,402655727)&&u1(hu,402655727)),me);case 30:case 32:case 33:case 34:return Te(U)&&(C=$Pe(kE(C,l)),A=$Pe(kE(A,D)),gi((An,_n)=>{if(nt(An)||nt(_n))return!0;const hu=ms(An,Ya),oo=ms(_n,Ya);return hu&&oo||!hu&&!oo&&Nte(An,_n)})),pr;case 35:case 36:case 37:case 38:if(!(w&&w&64)){if(($se(l)||$se(D))&&(!Qn(l)||U===37||U===38)){const An=U===35||U===37;pt(I,F.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,An?"false":"true")}nu(I,U,l,D),gi((An,_n)=>Eze(An,_n)||Eze(_n,An))}return pr;case 104:return Iai(l,D,C,A,w);case 103:return Oai(l,D,C,A);case 56:case 77:{const An=fp(C,4194304)?er([Lii(fe?C:kD(A)),A]):C;return U===77&&ut(A),An}case 57:case 76:{const An=fp(C,8388608)?er([FD(fht(C)),A],2):C;return U===76&&ut(A),An}case 61:case 78:{const An=fp(C,262144)?er([FD(C),A],2):C;return U===78&&ut(A),An}case 64:const vn=Xn(l.parent)?Xl(l.parent):0;return ce(vn,A),zt(vn)?((!(A.flags&524288)||vn!==2&&vn!==6&&!bD(A)&&!pMe(A)&&!(Gu(A)&1))&&ut(A),C):(ut(A),A);case 28:if(!ae.allowUnreachableCode&&pie(l)&&!Fe(l.parent)){const An=zn(l),_n=An.text,hu=gs(_n,l.pos);An.parseDiagnostics.some(Eo=>Eo.code!==F.JSX_expressions_must_have_one_parent_element.code?!1:Nse(Eo,hu))||pt(l,F.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return A;default:return H.fail()}function Z(Ii,Nn){return u1(Ii,2112)&&u1(Nn,2112)}function ce(Ii,Nn){if(Ii===2)for(const vn of D6(Nn)){const An=Wn(vn);if(An.symbol&&An.symbol.flags&32){const _n=vn.escapedName,hu=uc(vn.valueDeclaration,_n,788968,void 0,_n,!1);hu!=null&&hu.declarations&&hu.declarations.some(PB)&&(kg(hu,F.Duplicate_identifier_0,Yr(_n),vn),kg(vn,F.Duplicate_identifier_0,Yr(_n),hu))}}}function Fe(Ii){return Ii.parent.kind===217&&Of(Ii.left)&&Ii.left.text==="0"&&(Mo(Ii.parent.parent)&&Ii.parent.parent.expression===Ii.parent||Ii.parent.parent.kind===215)&&(I0(Ii.right)||at(Ii.right)&&Ii.right.escapedText==="eval")}function Te(Ii){const Nn=fie(C,12288)?l:fie(A,12288)?D:void 0;return Nn?(pt(Nn,F.The_0_operator_cannot_be_applied_to_type_symbol,Uo(Ii)),!1):!0}function $e(Ii){switch(Ii){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function ut(Ii){u5(U)&&s(Nn);function Nn(){let vn=C;if(mM(m.kind)&&l.kind===211&&(vn=TEe(l,void 0,!0)),BW(l,F.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let An;if(Ve&&Iu(l)&&jl(Ii,32768)){const _n=he(b1(l.expression),l.name.escapedText);Yge(Ii,_n)&&(An=F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}A6(Ii,vn,l,D,An)}}}function zt(Ii){var Nn;switch(Ii){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const vn=Dm(l),An=l7(D);return!!An&&ys(An)&&!!((Nn=vn==null?void 0:vn.exports)!=null&&Nn.size);default:return!1}}function gi(Ii){return Ii(C,A)?!1:(Wi(Ii),!0)}function Wi(Ii){let Nn=!1;const vn=I||m;if(Ii){const Eo=W5(C),fo=W5(A);Nn=!(Eo===C&&fo===A)&&!!(Eo&&fo)&&Ii(Eo,fo)}let An=C,_n=A;!Nn&&Ii&&([An,_n]=Jai(C,A,Ii));const[hu,oo]=h6(An,_n);dn(vn,Nn,hu,oo)||bh(vn,Nn,F.Operator_0_cannot_be_applied_to_types_1_and_2,Uo(m.kind),hu,oo)}function dn(Ii,Nn,vn,An){switch(m.kind){case 37:case 35:case 38:case 36:return bh(Ii,Nn,F.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,vn,An);default:return}}function nu(Ii,Nn,vn,An){const _n=En(l0(vn)),hu=En(l0(An));if(_n||hu){const oo=pt(Ii,F.This_condition_will_always_return_0,Uo(Nn===37||Nn===35?97:112));if(_n&&hu)return;const Eo=Nn===38||Nn===36?Uo(54):"",fo=_n?An:vn,ka=l0(fo);Es(oo,Su(fo,F.Did_you_mean_0,`${Eo}Number.isNaN(${ec(ka)?zf(ka):"..."})`))}}function En(Ii){if(at(Ii)&&Ii.escapedText==="NaN"){const Nn=Rei();return!!Nn&&Nn===Zp(Ii)}return!1}}function Jai(l,m,D){let C=l,A=m;const w=kD(l),I=kD(m);return D(w,I)||(C=w,A=I),[C,A]}function $ai(l){s($e);const m=Nm(l);if(!m)return me;const D=kd(m);if(!(D&1))return me;const C=(D&2)!==0;l.asteriskToken&&(C&&Ce<99&&rd(l,26624),!C&&Ce<2&&ae.downlevelIteration&&rd(l,256));let A=uT(m);A&&A.flags&1048576&&(A=Ic(A,ut=>vze(ut,D,void 0)));const w=A&&E4t(A,C),I=w&&w.yieldType||me,U=w&&w.nextType||me,Z=C?NF(U)||me:U,ce=l.expression?ya(l.expression):we,Fe=Dmt(l,ce,Z,C);if(A&&Fe&&A6(Fe,I,l.expression||l,l.expression),l.asteriskToken)return Nze(C?19:17,1,ce,l.expression)||me;if(A)return Hb(2,A,C)||me;let Te=rft(2,m);return Te||(Te=me,s(()=>{if(Ae&&!Dke(l)){const ut=hf(l,void 0);(!ut||nt(ut))&&pt(l,F.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Te;function $e(){l.flags&16384||r1(l,F.A_yield_expression_is_only_allowed_in_a_generator_body),AMe(l)&&pt(l,F.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Uai(l,m){const D=Kz(l.condition,m);wze(l.condition,D,l.whenTrue);const C=ya(l.whenTrue,m),A=ya(l.whenFalse,m);return er([C,A],2)}function wmt(l){const m=l.parent;return Cf(m)&&wmt(m)||U0(m)&&m.argumentExpression===l}function qai(l){const m=[l.head.text],D=[];for(const A of l.templateSpans){const w=ya(A.expression);fie(w,12288)&&pt(A.expression,F.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),m.push(A.literal.text),D.push(ms(w,c0)?w:ct)}if(Rz(l)||wmt(l)||yE(hf(l,void 0)||on,Zai))return xF(m,D);const C=l.parent.kind!==215&&L4t(l);return C?Z9(df(C)):ct}function Zai(l){return!!(l.flags&134217856||l.flags&58982400&&jl(Wh(l)||on,402653316))}function Yai(l){return W2(l)&&!bk(l.parent)?l.parent.parent:l}function pT(l,m,D,C){const A=Yai(l);Zte(A,m,!1),Dui(A,D);const w=ya(l,C|1|(D?2:0));D&&D.intraExpressionInferenceSites&&(D.intraExpressionInferenceSites=void 0);const I=jl(w,2944)&&GEe(w,FEe(m,l,void 0))?Jh(w):w;return xui(),bW(),I}function Rc(l,m){if(m)return ya(l,m);const D=ar(l);if(!D.resolvedType){const C=Xe,A=bn;Xe=Dt,bn=void 0,D.resolvedType=ya(l,m),bn=A,Xe=C}return D.resolvedType}function Tmt(l){return l=l0(l,!0),l.kind===216||l.kind===234||tM(l)}function wW(l,m,D){const C=Dj(l);if(Qn(l)){const w=gZ(l);if(w)return aze(C,w,m)}const A=xze(C)||(D?pT(C,D,void 0,m||0):Rc(C,m));return io(l)&&l.name.kind===207&&xs(A)&&!A.target.hasRestElement&&O5(A)GEe(l,C))}if(m.flags&58982400){const D=Wh(m)||on;return jl(D,4)&&jl(l,128)||jl(D,8)&&jl(l,256)||jl(D,64)&&jl(l,2048)||jl(D,4096)&&jl(l,8192)||GEe(l,D)}return!!(m.flags&406847616&&jl(l,128)||m.flags&256&&jl(l,256)||m.flags&2048&&jl(l,2048)||m.flags&512&&jl(l,512)||m.flags&8192&&jl(l,8192))}return!1}function Rz(l){const m=l.parent;return Yy(m)&&q3(m.type)||tM(m)&&q3(vY(m))||rze(l)&&W9(hf(l,0))||(Cf(m)||Dh(m)||uE(m))&&Rz(m)||(Jc(m)||pm(m)||qP(m))&&Rz(m.parent)}function Oz(l,m,D){const C=ya(l,m,D);return Rz(l)||Jbe(l)?Jh(C):Tmt(l)?C:UPe(C,FEe(hf(l,void 0),l,void 0))}function Lmt(l,m){return l.name.kind===167&&F3(l.name),Oz(l.initializer,m)}function Nmt(l,m){rpt(l),l.name.kind===167&&F3(l.name);const D=ymt(l,m);return Pmt(l,D,m)}function Pmt(l,m,D){if(D&&D&10){const C=kW(m,0,!0),A=kW(m,1,!0),w=C||A;if(w&&w.typeParameters){const I=MC(l,2);if(I){const U=kW(FD(I),C?0:1,!1);if(U&&!U.typeParameters){if(D&8)return Mmt(l,D),Ri;const Z=jb(l),ce=Z.signature&&Zs(Z.signature),Fe=ce&&Kft(ce);if(Fe&&!Fe.typeParameters&&!ye(Z.inferences,gT)){const Te=ioi(Z,w.typeParameters),$e=ePe(w,Te),ut=Vt(Z.inferences,zt=>tMe(zt.typeParameter));if(YPe($e,U,(zt,gi)=>{AD(ut,zt,gi,0,!0)}),Oe(ut,gT)&&(QPe($e,U,(zt,gi)=>{AD(ut,zt,gi)}),!eoi(Z.inferences,ut)))return toi(Z.inferences,ut),Z.inferredTypeParameters=Hi(Z.inferredTypeParameters,Te),DF($e)}return DF(Wft(w,U,Z))}}}}return m}function Mmt(l,m){if(m&2){const D=jb(l);D.flags|=4}}function gT(l){return!!(l.candidates||l.contraCandidates)}function Xai(l){return!!(l.candidates||l.contraCandidates||kdt(l.typeParameter))}function eoi(l,m){for(let D=0;DD.symbol.escapedName===m)}function noi(l,m){let D=m.length;for(;D>1&&m.charCodeAt(D-1)>=48&&m.charCodeAt(D-1)<=57;)D--;const C=m.slice(0,D);for(let A=1;;A++){const w=C+A;if(!Dze(l,w))return w}}function zmt(l){const m=wF(l);if(m&&!m.typeParameters)return Zs(m)}function uoi(l){const m=ya(l.expression),D=gW(m,l.expression),C=zmt(m);return C&&sEe(C,l,D!==m)}function b1(l){const m=xze(l);if(m)return m;if(l.flags&268435456&&bn){const A=bn[$s(l)];if(A)return A}const D=Xi,C=ya(l,64);if(Xi!==D){const A=bn||(bn=[]);A[$s(l)]=C,_ke(l,l.flags|268435456)}return C}function xze(l){let m=l0(l,!0);if(tM(m)){const D=vY(m);if(!q3(D))return Ar(D)}if(m=l0(l),Gx(m)){const D=xze(m.expression);return D?NF(D):void 0}if(Mo(m)&&m.expression.kind!==108&&!xf(m,!0)&&!nmt(m))return $y(m)?uoi(m):zmt(hT(m.expression));if(Yy(m)&&!q3(m.type))return Ar(m.type);if(E2(l)||HN(l))return ya(l)}function gie(l){const m=ar(l);if(m.contextFreeType)return m.contextFreeType;Zte(l,me,!1);const D=m.contextFreeType=ya(l,4);return bW(),D}function ya(l,m,D){var C,A;(C=Gn)==null||C.push(Gn.Phase.Check,"checkExpression",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath});const w=K;K=l,z=0;const I=ooi(l,m,D),U=Pmt(l,I,m);return WEe(U)&&roi(l,U),K=w,(A=Gn)==null||A.pop(),U}function roi(l,m){l.parent.kind===211&&l.parent.expression===l||l.parent.kind===212&&l.parent.expression===l||(l.kind===80||l.kind===166)&&r_e(l)||l.parent.kind===186&&l.parent.exprName===l||l.parent.kind===281||pt(l,F.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query),mg(ae)&&(H.assert(!!(m.symbol.flags&128)),m.symbol.valueDeclaration.flags&33554432&&!Tv(l)&&pt(l,F.Cannot_access_ambient_const_enums_when_0_is_enabled,ht))}function aoi(l,m){if(lm(l)){if(Ile(l))return aze(l.expression,Rle(l),m);if(tM(l))return omt(l,m)}return ya(l.expression,m)}function ooi(l,m,D){const C=l.kind;if(d)switch(C){case 231:case 218:case 219:d.throwIfCancellationRequested()}switch(C){case 80:return Hni(l,m);case 81:return rri(l);case 110:return Ute(l);case 108:return kMe(l);case 106:return Ct;case 15:case 11:return aMe(l)?mt:Z9(df(l.text));case 9:return eIe(l),Z9(wg(+l.text));case 10:return sci(l),Z9(jge({negative:!1,base10Value:SP(l.text)}));case 112:return du;case 97:return Ui;case 228:return qai(l);case 14:return Tl;case 209:return fft(l,m,D);case 210:return Iui(l,m);case 211:return TEe(l,m);case 166:return Bft(l,m);case 212:return vri(l,m);case 213:if(l.expression.kind===102)return Qri(l);case 214:return Yri(l,m);case 215:return Xri(l);case 217:return aoi(l,m);case 231:return Usi(l);case 218:case 219:return ymt(l,m);case 221:return Lai(l);case 216:case 234:return eai(l,m);case 235:return nai(l);case 233:return lmt(l);case 238:return uai(l);case 236:return rai(l);case 220:return wai(l);case 222:return Nai(l);case 223:return Pai(l);case 224:return Mai(l);case 225:return zai(l);case 226:return We(l,m);case 227:return Uai(l,m);case 230:return Tui(l,m);case 232:return we;case 229:return $ai(l);case 237:return Lui(l);case 294:return Qui(l,m);case 284:return Vui(l);case 285:return Oui(l);case 288:return Hui(l);case 292:return Wui(l,m);case 286:H.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ot}function Imt(l){S3(l),l.expression&&r1(l.expression,F.Type_expected),ls(l.constraint),ls(l.default);const m=gF(_u(l));Wh(m),WXt(m)||pt(l.default,F.Type_parameter_0_has_a_circular_default,gn(m));const D=rh(m),C=_F(m);D&&C&&Ah(C,xm(_a(D,Mb(m,C)),C),l.default,F.Type_0_does_not_satisfy_the_constraint_1),eS(l),s(()=>Wz(l.name,F.Type_parameter_name_cannot_be_0))}function soi(l){var m,D;if(xh(l.parent)||mr(l.parent)||jp(l.parent)){const C=gF(_u(l)),A=HPe(C)&24576;if(A){const w=_u(l.parent);if(jp(l.parent)&&!(Gu(X0(w))&48))pt(l,F.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(A===8192||A===16384){(m=Gn)==null||m.push(Gn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Fh(X0(w)),id:Fh(C)});const I=zte(w,C,A===16384?tt:$),U=zte(w,C,A===16384?$:tt),Z=C;Y=C,Ah(I,U,l,F.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),Y=Z,(D=Gn)==null||D.pop()}}}}function Rmt(l){S3(l),vie(l);const m=Nm(l);Yu(l,31)&&(m.kind===176&&H4(m.body)||pt(l,F.A_parameter_property_is_only_allowed_in_a_constructor_implementation),m.kind===176&&at(l.name)&&l.name.escapedText==="constructor"&&pt(l.name,F.constructor_cannot_be_used_as_a_parameter_property_name)),!l.initializer&&PP(l)&&So(l.name)&&m.body&&pt(l,F.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),l.name&&at(l.name)&&(l.name.escapedText==="this"||l.name.escapedText==="new")&&(m.parameters.indexOf(l)!==0&&pt(l,F.A_0_parameter_must_be_the_first_parameter,l.name.escapedText),(m.kind===176||m.kind===180||m.kind===185)&&pt(l,F.A_constructor_cannot_have_a_this_parameter),m.kind===219&&pt(l,F.An_arrow_function_cannot_have_a_this_parameter),(m.kind===177||m.kind===178)&&pt(l,F.get_and_set_accessors_cannot_declare_this_parameters)),l.dotDotDotToken&&!So(l.name)&&!ms(Sg(Wn(l.symbol)),ip)&&pt(l,F.A_rest_parameter_must_be_of_an_array_type)}function loi(l){const m=coi(l);if(!m){pt(l,F.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const D=dp(m),C=y4(D);if(!C)return;ls(l.type);const{parameterName:A}=l;if(C.kind===0||C.kind===2)Vge(A);else if(C.parameterIndex>=0){if(th(D)&&C.parameterIndex===D.parameters.length-1)pt(A,F.A_type_predicate_cannot_reference_a_rest_parameter);else if(C.type){const w=()=>ro(void 0,F.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Ah(C.type,Wn(D.parameters[C.parameterIndex]),l.type,void 0,w)}}else if(A){let w=!1;for(const{name:I}of m.parameters)if(So(I)&&Omt(I,A,C.parameterName)){w=!0;break}w||pt(l.parameterName,F.Cannot_find_parameter_0,C.parameterName)}}function coi(l){switch(l.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const m=l.parent;if(l===m.type)return m}}function Omt(l,m,D){for(const C of l.elements){if(Fd(C))continue;const A=C.name;if(A.kind===80&&A.escapedText===D)return pt(m,F.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,D),!0;if((A.kind===207||A.kind===206)&&Omt(A,m,D))return!0}}function TW(l){l.kind===181?zli(l):(l.kind===184||l.kind===262||l.kind===185||l.kind===179||l.kind===176||l.kind===180)&&d_e(l);const m=kd(l);m&4||((m&3)===3&&Ce<99&&rd(l,6144),(m&3)===2&&Ce<4&&rd(l,64),m&3&&Ce<2&&rd(l,128)),yie(Sx(l)),Gsi(l),L(l.parameters,Rmt),l.type&&ls(l.type),s(D);function D(){ssi(l);let C=U4(l),A=C;if(Qn(l)){const w=xv(l);if(w&&w.typeExpression&&X4(w.typeExpression.type)){const I=wF(Ar(w.typeExpression));I&&I.declaration&&(C=U4(I.declaration),A=w.typeExpression.type)}}if(Ae&&!C)switch(l.kind){case 180:pt(l,F.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:pt(l,F.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(C&&A){const w=kd(l);if((w&5)===1){const I=Ar(C);I===ca?pt(A,F.A_generator_cannot_have_a_void_type_annotation):vze(I,w,A)}else(w&3)===2&&Voi(l,C,A)}l.kind!==181&&l.kind!==324&&T6(l)}}function vze(l,m,D){const C=Hb(0,l,(m&2)!==0)||me,A=Hb(1,l,(m&2)!==0)||C,w=Hb(2,l,(m&2)!==0)||on,I=_mt(C,A,w,!!(m&2));return Ah(I,l,D)}function doi(l){const m=new Map,D=new Map,C=new Map;for(const w of l.members)if(w.kind===176)for(const I of w.parameters)Mf(I,w)&&!So(I.name)&&A(m,I.name,I.name.escapedText,3);else{const I=No(w),U=w.name;if(!U)continue;const Z=Xr(U),ce=Z&&I?16:0,Fe=Z?C:I?D:m,Te=U&&tIe(U);if(Te)switch(w.kind){case 177:A(Fe,U,Te,1|ce);break;case 178:A(Fe,U,Te,2|ce);break;case 172:A(Fe,U,Te,3|ce);break;case 174:A(Fe,U,Te,8|ce);break}}function A(w,I,U,Z){const ce=w.get(U);if(ce)if((ce&16)!==(Z&16))pt(I,F.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Hc(I));else{const Fe=!!(ce&8),Te=!!(Z&8);Fe||Te?Fe!==Te&&pt(I,F.Duplicate_identifier_0,Hc(I)):ce&Z&-17?pt(I,F.Duplicate_identifier_0,Hc(I)):w.set(U,ce|Z)}else w.set(U,Z)}}function hoi(l){for(const m of l.members){const D=m.name;if(No(m)&&D){const A=tIe(D);switch(A){case"name":case"length":case"caller":case"arguments":if(Se)break;case"prototype":const w=F.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,I=__(_u(l));pt(D,w,A,I);break}}}}function jmt(l){const m=new Map;for(const D of l.members)if(D.kind===171){let C;const A=D.name;switch(A.kind){case 11:case 9:C=A.text;break;case 80:C=fu(A);break;default:continue}m.get(C)?(pt(Za(D.symbol.valueDeclaration),F.Duplicate_identifier_0,C),pt(D.name,F.Duplicate_identifier_0,C)):m.set(C,!0)}}function Cze(l){if(l.kind===264){const D=_u(l);if(D.declarations&&D.declarations.length>0&&D.declarations[0]!==l)return}const m=Mdt(_u(l));if(m!=null&&m.declarations){const D=new Map;for(const C of m.declarations)C.parameters.length===1&&C.parameters[0].type&&FF(Ar(C.parameters[0].type),A=>{const w=D.get(Fh(A));w?w.declarations.push(C):D.set(Fh(A),{type:A,declarations:[C]})});D.forEach(C=>{if(C.declarations.length>1)for(const A of C.declarations)pt(A,F.Duplicate_index_signature_for_type_0,gn(C.type))})}}function Vmt(l){!S3(l)&&!uci(l)&&h_e(l.name),vie(l),bze(l),Yu(l,64)&&l.kind===172&&l.initializer&&pt(l,F.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,b0(l.name))}function foi(l){return Xr(l.name)&&pt(l,F.Private_identifiers_are_not_allowed_outside_class_bodies),Vmt(l)}function moi(l){rpt(l)||h_e(l.name),dc(l)&&l.asteriskToken&&at(l.name)&&fu(l.name)==="constructor"&&pt(l.name,F.Class_constructor_may_not_be_a_generator),e4t(l),Yu(l,64)&&l.kind===174&&l.body&&pt(l,F.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,b0(l.name)),Xr(l.name)&&!Yd(l)&&pt(l,F.Private_identifiers_are_not_allowed_outside_class_bodies),bze(l)}function bze(l){if(Xr(l.name)&&Ce<99){for(let m=YE(l);m;m=YE(m))ar(m).flags|=1048576;if(Xd(l.parent)){const m=vMe(l.parent);m&&(ar(l.name).flags|=32768,ar(m).flags|=4096)}}}function poi(l){S3(l),ao(l,ls)}function goi(l){TW(l),ici(l)||nci(l),ls(l.body);const m=_u(l),D=Sl(m,l.kind);if(l===D&&UEe(m),Ql(l.body))return;s(A);return;function C(w){return ph(w)?!0:w.kind===172&&!No(w)&&!!w.initializer}function A(){const w=l.parent;if(B2(w)){CMe(l.parent,w);const I=bMe(w),U=Yht(l.body);if(U){if(I&&pt(U,F.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!Ne&&(Oe(l.parent.members,C)||Oe(l.parameters,ce=>Yu(ce,31))))if(!Eoi(U,l.body))pt(U,F.A_super_call_must_be_a_root_level_statement_within_a_constructor_of_a_derived_class_that_contains_initialized_properties_parameter_properties_or_private_identifiers);else{let ce;for(const Fe of l.body.statements){if(Od(Fe)&&ik(Dc(Fe.expression))){ce=Fe;break}if(Hmt(Fe))break}ce===void 0&&pt(l,F.A_super_call_must_be_the_first_statement_in_the_constructor_to_refer_to_super_or_this_when_a_derived_class_contains_initialized_properties_parameter_properties_or_private_identifiers)}}else I||pt(l,F.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Eoi(l,m){const D=i5(l.parent);return Od(D)&&D.parent===m}function Hmt(l){return l.kind===108||l.kind===110?!0:Xbe(l)?!1:!!ao(l,Hmt)}function Kmt(l){at(l.name)&&fu(l.name)==="constructor"&&mr(l.parent)&&pt(l.name,F.Class_constructor_may_not_be_an_accessor),s(m),ls(l.body),bze(l);function m(){if(!d_e(l)&&!Gli(l)&&h_e(l.name),_ie(l),TW(l),l.kind===177&&!(l.flags&33554432)&&H4(l.body)&&l.flags&512&&(l.flags&1024||pt(l.name,F.A_get_accessor_must_return_a_value)),l.name.kind===167&&F3(l.name),iT(l)){const C=_u(l),A=Sl(C,177),w=Sl(C,178);if(A&&w&&!(DT(A)&1)){ar(A).flags|=1;const I=Eh(A),U=Eh(w);(I&64)!==(U&64)&&(pt(A.name,F.Accessors_must_both_be_abstract_or_non_abstract),pt(w.name,F.Accessors_must_both_be_abstract_or_non_abstract)),(I&4&&!(U&6)||I&2&&!(U&2))&&(pt(A.name,F.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),pt(w.name,F.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const D=vC(_u(l));l.kind===177&&fze(l,D)}}function _oi(l){_ie(l)}function Doi(l,m,D){return l.typeArguments&&D{const C=yze(l);C&&Wmt(l,C)});const D=ar(l).resolvedSymbol;D&&Oe(D.declarations,C=>gB(C)&&!!(C.flags&536870912))&&m3(sie(l),D.declarations,D.escapedName)}}function voi(l){const m=ur(l.parent,$U);if(!m)return;const D=yze(m);if(!D)return;const C=rh(D[m.typeArguments.indexOf(l)]);return C&&_a(C,Sf(D,JEe(m,D)))}function Coi(l){Jdt(l)}function boi(l){L(l.members,ls),s(m);function m(){const D=N1t(l);t_e(D,D.symbol),Cze(l),jmt(l)}}function yoi(l){ls(l.elementType)}function koi(l){const m=l.elements;let D=!1,C=!1;for(const A of m){const w=dPe(A);if(w&8){const I=Ar(A.type);if(!H5(I)){pt(A,F.A_rest_element_type_must_be_an_array_type);break}(A4(I)||xs(I)&&I.target.combinedFlags&4)&&(C=!0)}else if(w&4){if(C){Zi(A,F.A_rest_element_cannot_follow_another_rest_element);break}C=!0}else if(w&2){if(C){Zi(A,F.An_optional_element_cannot_follow_a_rest_element);break}D=!0}else if(D){Zi(A,F.A_required_element_cannot_follow_an_optional_element);break}}L(l.elements,ls),Ar(l)}function Foi(l){L(l.types,ls),Ar(l)}function Jmt(l,m){if(!(l.flags&8388608))return l;const D=l.objectType,C=l.indexType;if(ms(C,k_(D,0)))return m.kind===212&&Q_(m)&&Gu(D)&32&&C_(D)&1&&pt(m,F.Index_signature_in_type_0_only_permits_reading,gn(D)),l;const A=Gh(D);if(k3(A,Qt)&&u1(C,296))return l;if(Lb(D)){const w=zge(C,m);if(w){const I=FF(A,U=>qo(U,w));if(I&&l4(I)&6)return pt(m,F.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Yr(w)),Ot}}return pt(m,F.Type_0_cannot_be_used_to_index_type_1,gn(C),gn(D)),Ot}function Aoi(l){ls(l.objectType),ls(l.indexType),Jmt(A1t(l),l)}function Soi(l){Boi(l),ls(l.typeParameter),ls(l.nameType),ls(l.type),l.type||LC(l,me);const m=bPe(l),D=I5(m);if(D)Ah(D,vc,l.nameType);else{const C=cp(m);Ah(C,vc,w8(l.typeParameter))}}function Boi(l){var m;if((m=l.members)!=null&&m.length)return Zi(l.members[0],F.A_mapped_type_may_not_declare_properties_or_methods)}function woi(l){Vge(l)}function Toi(l){$li(l),ls(l.type)}function Loi(l){ao(l,ls)}function Noi(l){Tn(l,D=>D.parent&&D.parent.kind===194&&D.parent.extendsType===D)||Zi(l,F.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),ls(l.typeParameter);const m=_u(l.typeParameter);if(m.declarations&&m.declarations.length>1){const D=Ur(m);if(!D.typeParametersChecked){D.typeParametersChecked=!0;const C=gF(m),A=vbe(m,168);if(!v4t(A,[C],w=>[w])){const w=Fr(m);for(const I of A)pt(I.name,F.All_declarations_of_0_must_have_identical_constraints,w)}}}T6(l)}function Poi(l){for(const m of l.templateSpans){ls(m.type);const D=Ar(m.type);Ah(D,c0,m.type)}Ar(l)}function Moi(l){ls(l.argument),l.attributes&&qB(l.attributes,Zi),Gmt(l)}function zoi(l){l.dotDotDotToken&&l.questionToken&&Zi(l,F.A_tuple_member_cannot_be_both_optional_and_rest),l.type.kind===190&&Zi(l.type,F.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),l.type.kind===191&&Zi(l.type,F.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),ls(l.type),Ar(l)}function Eie(l){return(Rf(l,2)||ph(l))&&!!(l.flags&33554432)}function $Ee(l,m){let D=f_e(l);if(l.parent.kind!==264&&l.parent.kind!==263&&l.parent.kind!==231&&l.flags&33554432){const C=C0e(l);C&&C.flags&128&&!(D&128)&&!(rE(l.parent)&&_c(l.parent.parent)&&Yg(l.parent.parent))&&(D|=32),D|=128}return D&m}function UEe(l){s(()=>Ioi(l))}function Ioi(l){function m(Ii,Nn){return Nn!==void 0&&Nn.parent===Ii[0].parent?Nn:Ii[0]}function D(Ii,Nn,vn,An,_n){if((An^_n)!==0){const oo=$Ee(m(Ii,Nn),vn);L(Ii,Eo=>{const fo=$Ee(Eo,vn)^oo;fo&32?pt(Za(Eo),F.Overload_signatures_must_all_be_exported_or_non_exported):fo&128?pt(Za(Eo),F.Overload_signatures_must_all_be_ambient_or_non_ambient):fo&6?pt(Za(Eo)||Eo,F.Overload_signatures_must_all_be_public_private_or_protected):fo&64&&pt(Za(Eo),F.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function C(Ii,Nn,vn,An){if(vn!==An){const _n=d7(m(Ii,Nn));L(Ii,hu=>{d7(hu)!==_n&&pt(Za(hu),F.Overload_signatures_must_all_be_optional_or_required)})}}const A=230;let w=0,I=A,U=!1,Z=!0,ce=!1,Fe,Te,$e;const ut=l.declarations,zt=(l.flags&16384)!==0;function gi(Ii){if(Ii.name&&Ql(Ii.name))return;let Nn=!1;const vn=ao(Ii.parent,_n=>{if(Nn)return _n;Nn=_n===Ii});if(vn&&vn.pos===Ii.end&&vn.kind===Ii.kind){const _n=vn.name||vn,hu=vn.name;if(Ii.name&&hu&&(Xr(Ii.name)&&Xr(hu)&&Ii.name.escapedText===hu.escapedText||Ps(Ii.name)&&Ps(hu)&&CD(F3(Ii.name),F3(hu))||Xg(Ii.name)&&Xg(hu)&&oP(Ii.name)===oP(hu))){if((Ii.kind===174||Ii.kind===173)&&No(Ii)!==No(vn)){const Eo=No(Ii)?F.Function_overload_must_be_static:F.Function_overload_must_not_be_static;pt(_n,Eo)}return}if(H4(vn.body)){pt(_n,F.Function_implementation_name_must_be_0,b0(Ii.name));return}}const An=Ii.name||Ii;zt?pt(An,F.Constructor_implementation_is_missing):Yu(Ii,64)?pt(An,F.All_declarations_of_an_abstract_method_must_be_consecutive):pt(An,F.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Wi=!1,dn=!1,nu=!1;const En=[];if(ut)for(const Ii of ut){const Nn=Ii,vn=Nn.flags&33554432,An=Nn.parent&&(Nn.parent.kind===264||Nn.parent.kind===187)||vn;if(An&&($e=void 0),(Nn.kind===263||Nn.kind===231)&&!vn&&(nu=!0),Nn.kind===262||Nn.kind===174||Nn.kind===173||Nn.kind===176){En.push(Nn);const _n=$Ee(Nn,A);w|=_n,I&=_n,U=U||d7(Nn),Z=Z&&d7(Nn);const hu=H4(Nn.body);hu&&Fe?zt?dn=!0:Wi=!0:($e==null?void 0:$e.parent)===Nn.parent&&$e.end!==Nn.pos&&gi($e),hu?Fe||(Fe=Nn):ce=!0,$e=Nn,An||(Te=Nn)}if(Qn(Ii)&&Co(Ii)&&Ii.jsDoc){for(const _n of Ii.jsDoc)if(_n.tags)for(const hu of _n.tags)NB(hu)&&(ce=!0)}}if(dn&&L(En,Ii=>{pt(Ii,F.Multiple_constructor_implementations_are_not_allowed)}),Wi&&L(En,Ii=>{pt(Za(Ii)||Ii,F.Duplicate_function_implementation)}),nu&&!zt&&l.flags&16&&ut){const Ii=ti(ut,Nn=>Nn.kind===263).map(Nn=>Su(Nn,F.Consider_adding_a_declare_modifier_to_this_class));L(ut,Nn=>{const vn=Nn.kind===263?F.Class_declaration_cannot_implement_overload_list_for_0:Nn.kind===262?F.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;vn&&Es(pt(Za(Nn)||Nn,vn,lc(l)),...Ii)})}if(Te&&!Te.body&&!Yu(Te,64)&&!Te.questionToken&&gi(Te),ce&&(ut&&(D(ut,Fe,A,w,I),C(ut,Fe,U,Z)),Fe)){const Ii=wb(l),Nn=dp(Fe);for(const vn of Ii)if(!oii(Nn,vn)){const An=vn.declaration&&Ov(vn.declaration)?vn.declaration.parent.tagName:vn.declaration;Es(pt(An,F.This_overload_signature_is_not_compatible_with_its_implementation_signature),Su(Fe,F.The_implementation_signature_is_declared_here));break}}}function LW(l){s(()=>Roi(l))}function Roi(l){let m=l.localSymbol;if(!m&&(m=_u(l),!m.exportSymbol)||Sl(m,l.kind)!==l)return;let D=0,C=0,A=0;for(const ce of m.declarations){const Fe=Z(ce),Te=$Ee(ce,2080);Te&32?Te&2048?A|=Fe:D|=Fe:C|=Fe}const w=D|C,I=D&C,U=A&w;if(I||U)for(const ce of m.declarations){const Fe=Z(ce),Te=Za(ce);Fe&U?pt(Te,F.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,b0(Te)):Fe&I&&pt(Te,F.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,b0(Te))}function Z(ce){let Fe=ce;switch(Fe.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return N1(Fe)||oD(Fe)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Te=Fe,$e=tc(Te)?Te.expression:Te.right;if(!ec($e))return 1;Fe=$e;case 271:case 274:case 273:let ut=0;const zt=md(_u(Fe));return L(zt.declarations,gi=>{ut|=Z(gi)}),ut;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return H.failBadSyntaxKind(Fe)}}}function jz(l,m,D,...C){const A=NW(l,m);return A&&NF(A,m,D,...C)}function NW(l,m,D){if(nt(l))return;const C=l;if(C.promisedTypeOfPromise)return C.promisedTypeOfPromise;if(CC(l,Fte(!1)))return C.promisedTypeOfPromise=O0(l)[0];if(mie(xD(l),402915324))return;const A=he(l,"then");if(nt(A))return;const w=A?go(A,0):_t;if(w.length===0){m&&pt(m,F.A_promise_must_have_a_then_method);return}let I,U;for(const Fe of w){const Te=kC(Fe);Te&&Te!==ca&&!bE(l,Te,h_)?I=Te:U=xi(U,Fe)}if(!U){H.assertIsDefined(I),D&&(D.value=I),m&&pt(m,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,gn(l),gn(I));return}const Z=mp(er(Vt(U,lze)),2097152);if(nt(Z))return;const ce=go(Z,0);if(ce.length===0){m&&pt(m,F.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return C.promisedTypeOfPromise=er(Vt(ce,lze),2)}function PW(l,m,D,C,...A){return(m?NF(l,D,C,...A):W5(l,D,C,...A))||Ot}function $mt(l){if(mie(xD(l),402915324))return!1;const m=he(l,"then");return!!m&&go(mp(m,2097152),0).length>0}function qEe(l){var m;if(l.flags&16777216){const D=cPe(!1);return!!D&&l.aliasSymbol===D&&((m=l.aliasTypeArguments)==null?void 0:m.length)===1}return!1}function Vz(l){return l.flags&1048576?hl(l,Vz):qEe(l)?l.aliasTypeArguments[0]:l}function Umt(l){if(nt(l)||qEe(l))return!1;if(Lb(l)){const m=Wh(l);if(m?m.flags&3||bD(m)||yE(m,$mt):jl(l,8650752))return!0}return!1}function Ooi(l){const m=cPe(!0);if(m)return aT(m,[Vz(l)])}function joi(l){if(Umt(l)){const m=Ooi(l);if(m)return m}return H.assert(qEe(l)||NW(l)===void 0,"type provided should not be a non-generic 'promise'-like."),l}function NF(l,m,D,...C){const A=W5(l,m,D,...C);return A&&joi(A)}function W5(l,m,D,...C){if(nt(l)||qEe(l))return l;const A=l;if(A.awaitedTypeOfType)return A.awaitedTypeOfType;if(l.flags&1048576){if(fE.lastIndexOf(l.id)>=0){m&&pt(m,F.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const U=m?ce=>W5(ce,m,D,...C):W5;fE.push(l.id);const Z=hl(l,U);return fE.pop(),A.awaitedTypeOfType=Z}if(Umt(l))return A.awaitedTypeOfType=l;const w={value:void 0},I=NW(l,void 0,w);if(I){if(l.id===I.id||fE.lastIndexOf(I.id)>=0){m&&pt(m,F.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}fE.push(l.id);const U=W5(I,m,D,...C);return fE.pop(),U?A.awaitedTypeOfType=U:void 0}if($mt(l)){if(m){H.assertIsDefined(D);let U;w.value&&(U=ro(U,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,gn(l),gn(w.value))),U=ro(U,D,...C),Vs.add(Y3(zn(m),m,U))}return}return A.awaitedTypeOfType=l}function Voi(l,m,D){const C=Ar(m);if(Ce>=2){if(Nt(C))return;const w=Fte(!0);if(w!==Ka&&!CC(C,w)){A(F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,m,D,gn(W5(C)||ca));return}}else{if(Koi(m),Nt(C))return;const w=pj(m);if(w===void 0){A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,gn(C));return}const I=R0(w,111551,!0),U=I?Wn(I):Ot;if(Nt(U)){w.kind===80&&w.escapedText==="Promise"&&eT(C)===Fte(!1)?pt(D,F.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,zf(w));return}const Z=Eei(!0);if(Z===Ko){A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,zf(w));return}const ce=F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Ah(U,Z,D,ce,()=>m===D?void 0:ro(void 0,F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Te=w&&hm(w),$e=kf(l.locals,Te.escapedText,111551);if($e){pt($e.valueDeclaration,F.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,fu(Te),zf(w));return}}PW(C,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function A(w,I,U,Z){if(I===U)pt(U,w,Z);else{const ce=pt(U,F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Es(ce,Su(I,w,Z))}}}function Hoi(l){const m=mT(l);VEe(m,l);const D=Zs(m);if(D.flags&1)return;const C=hze(l);if(!(C!=null&&C.resolvedReturnType))return;let A;const w=C.resolvedReturnType;switch(l.parent.kind){case 263:case 231:A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ve){A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:A=F.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return H.failBadSyntaxKind(l.parent)}Ah(D,w,l.expression,A)}function MW(l,m,D,C,A,w=D.length,I=0){const U=q.createFunctionTypeNode(void 0,_t,q.createKeywordTypeNode(133));return y3(U,l,m,D,C,A,w,I)}function Fze(l,m,D,C,A,w,I){const U=MW(l,m,D,C,A,w,I);return DF(U)}function qmt(l){return Fze(void 0,void 0,_t,l)}function Zmt(l){const m=yg("value",l);return Fze(void 0,void 0,[m],ca)}function Koi(l){Ymt(l&&pj(l),!1)}function Ymt(l,m){if(!l)return;const D=hm(l),C=(l.kind===80?788968:1920)|2097152,A=uc(D,D.escapedText,C,void 0,void 0,!0);if(A&&A.flags&2097152){if(Ut&&l6(A)&&!OW(md(A))&&!_4(A))T5(A);else if(m&&mg(ae)&&m1(ae)>=5&&!l6(A)&&!Oe(A.declarations,_2)){const w=pt(l,F.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),I=Le(A.declarations||_t,sC);I&&Es(w,Su(I,F._0_was_imported_here,fu(D)))}}}function ET(l){const m=Aze(l);m&&sm(m)&&Ymt(m,!0)}function Aze(l){if(l)switch(l.kind){case 193:case 192:return Qmt(l.types);case 194:return Qmt([l.trueType,l.falseType]);case 196:case 202:return Aze(l.type);case 183:return l.typeName}}function Qmt(l){let m;for(let D of l){for(;D.kind===196||D.kind===202;)D=D.type;if(D.kind===146||!fe&&(D.kind===201&&D.literal.kind===106||D.kind===157))continue;const C=Aze(D);if(!C)return;if(m){if(!at(m)||!at(C)||m.escapedText!==C.escapedText)return}else m=C}return m}function ZEe(l){const m=f1(l);return $_(l)?F0e(m):m}function _ie(l){if(!Ak(l)||!o4(l)||!l.modifiers||!gq(ve,l,l.parent,l.parent.parent))return;const m=Le(l.modifiers,g1);if(m){if(ve?(rd(m,8),l.kind===169&&rd(m,32)):Ce<99&&(rd(m,8),Wc(l)?l.name?C4t(l)&&rd(m,8388608):rd(m,8388608):Xd(l)||(Xr(l.name)&&(dc(l)||wx(l)||ef(l))&&rd(m,8388608),Ps(l.name)&&rd(m,16777216))),ae.emitDecoratorMetadata)switch(rd(m,16),l.kind){case 263:const D=X_(l);if(D)for(const I of D.parameters)ET(ZEe(I));break;case 177:case 178:const C=l.kind===177?178:177,A=Sl(_u(l),C);ET(i0(l)||A&&i0(A));break;case 174:for(const I of l.parameters)ET(ZEe(I));ET(U4(l));break;case 172:ET(f1(l));break;case 169:ET(ZEe(l));const w=l.parent;for(const I of w.parameters)ET(ZEe(I));ET(U4(w));break}for(const D of l.modifiers)g1(D)&&Hoi(D)}}function Woi(l){s(m);function m(){e4t(l),Zze(l),Hz(l,l.name)}}function Goi(l){l.typeExpression||pt(l.name,F.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),l.name&&Wz(l.name,F.Type_alias_name_cannot_be_0),ls(l.typeExpression),yie(Sx(l))}function Joi(l){ls(l.constraint);for(const m of l.typeParameters)ls(m)}function $oi(l){ls(l.typeExpression)}function Uoi(l){ls(l.typeExpression);const m=ok(l);if(m){const D=Vse(m,_Y);if(S(D)>1)for(let C=1;C0),D.length>1&&pt(D[1],F.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const C=Xmt(l.class.expression),A=B2(m);if(A){const w=Xmt(A.expression);w&&C.escapedText!==w.escapedText&&pt(C,F.JSDoc_0_1_does_not_match_the_extends_2_clause,fu(l.tagName),fu(C),fu(w))}}function isi(l){const m=h7(l);m&&ph(m)&&pt(l,F.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Xmt(l){switch(l.kind){case 80:return l;case 211:return l.name;default:return}}function e4t(l){var m;_ie(l),TW(l);const D=kd(l);if(l.name&&l.name.kind===167&&F3(l.name),iT(l)){const w=_u(l),I=l.localSymbol||w,U=(m=I.declarations)==null?void 0:m.find(Z=>Z.kind===l.kind&&!(Z.flags&524288));l===U&&UEe(I),w.parent&&UEe(w)}const C=l.kind===173?void 0:l.body;if(ls(C),fze(l,uT(l)),s(A),Qn(l)){const w=xv(l);w&&w.typeExpression&&!TMe(Ar(w.typeExpression),l)&&pt(w.typeExpression.type,F.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function A(){U4(l)||(Ql(C)&&!Eie(l)&&LC(l,me),D&1&&H4(C)&&Zs(dp(l)))}}function T6(l){s(m);function m(){const D=zn(l);let C=b5.get(D.path);C||(C=[],b5.set(D.path,C)),C.push(l)}}function t4t(l,m){for(const D of l)switch(D.kind){case 263:case 231:nsi(D,m),Sze(D,m);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:u4t(D,m);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:D.body&&u4t(D,m),Sze(D,m);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Sze(D,m);break;case 195:usi(D,m);break;default:H.assertNever(D,"Node should not have been registered for unused identifiers check")}}function i4t(l,m,D){const C=Za(l)||l,A=gB(l)?F._0_is_declared_but_never_used:F._0_is_declared_but_its_value_is_never_read;D(l,0,Su(C,A,m))}function zW(l){return at(l)&&fu(l).charCodeAt(0)===95}function nsi(l,m){for(const D of l.members)switch(D.kind){case 174:case 172:case 177:case 178:if(D.kind===178&&D.symbol.flags&32768)break;const C=_u(D);!C.isReferenced&&(Rf(D,2)||mh(D)&&Xr(D.name))&&!(D.flags&33554432)&&m(D,0,Su(D.name,F._0_is_declared_but_its_value_is_never_read,Fr(C)));break;case 176:for(const A of D.parameters)!A.symbol.isReferenced&&Yu(A,2)&&m(A,0,Su(A.name,F.Property_0_is_declared_but_its_value_is_never_read,lc(A.symbol)));break;case 181:case 240:case 175:break;default:H.fail("Unexpected class member")}}function usi(l,m){const{typeParameter:D}=l;Bze(D)&&m(l,1,Su(l,F._0_is_declared_but_its_value_is_never_read,fu(D.name)))}function Sze(l,m){const D=_u(l).declarations;if(!D||Cr(D)!==l)return;const C=Sx(l),A=new Set;for(const w of C){if(!Bze(w))continue;const I=fu(w.name),{parent:U}=w;if(U.kind!==195&&U.typeParameters.every(Bze)){if(r0(A,U)){const Z=zn(U),ce=_g(U)?Tle(U):Lle(Z,U.typeParameters),Te=U.typeParameters.length===1?[F._0_is_declared_but_its_value_is_never_read,I]:[F.All_type_parameters_are_unused];m(w,1,Rd(Z,ce.pos,ce.end-ce.pos,...Te))}}else m(w,1,Su(w,F._0_is_declared_but_its_value_is_never_read,I))}}function Bze(l){return!(Ks(l.symbol).isReferenced&262144)&&!zW(l.name)}function Die(l,m,D,C){const A=String(C(m)),w=l.get(A);w?w[1].push(D):l.set(A,[m,[D]])}function n4t(l){return ur(XE(l),io)}function rsi(l){return js(l)?Rp(l.parent)?!!(l.propertyName&&zW(l.name)):zW(l.name):N1(l)||(na(l)&&M8(l.parent.parent)||r4t(l))&&zW(l.name)}function u4t(l,m){const D=new Map,C=new Map,A=new Map;l.locals.forEach(w=>{if(!(w.flags&262144?!(w.flags&3&&!(w.isReferenced&3)):w.isReferenced||w.exportSymbol)&&w.declarations){for(const I of w.declarations)if(!rsi(I))if(r4t(I))Die(D,osi(I),I,$s);else if(js(I)&&Rp(I.parent)){const U=Cr(I.parent.elements);(I===U||!Cr(I.parent.elements).dotDotDotToken)&&Die(C,I.parent,I,$s)}else if(na(I)){const U=Gb(I)&7,Z=Za(I);(U!==4&&U!==6||!Z||!zW(Z))&&Die(A,I.parent,I,$s)}else{const U=w.valueDeclaration&&n4t(w.valueDeclaration),Z=w.valueDeclaration&&Za(w.valueDeclaration);U&&Z?!Mf(U,U.parent)&&!L2(U)&&!zW(Z)&&(js(I)&&_k(I.parent)?Die(C,I.parent,I,$s):m(U,1,Su(Z,F._0_is_declared_but_its_value_is_never_read,lc(w)))):i4t(I,lc(w),m)}}}),D.forEach(([w,I])=>{const U=w.parent;if((w.name?1:0)+(w.namedBindings?w.namedBindings.kind===274?1:w.namedBindings.elements.length:0)===I.length)m(U,0,I.length===1?Su(U,F._0_is_declared_but_its_value_is_never_read,fu(Pn(I).name)):Su(U,F.All_imports_in_import_declaration_are_unused));else for(const ce of I)i4t(ce,fu(ce.name),m)}),C.forEach(([w,I])=>{const U=n4t(w.parent)?1:0;if(w.elements.length===I.length)I.length===1&&w.parent.kind===260&&w.parent.parent.kind===261?Die(A,w.parent.parent,w.parent,$s):m(w,U,I.length===1?Su(w,F._0_is_declared_but_its_value_is_never_read,xie(Pn(I).name)):Su(w,F.All_destructured_elements_are_unused));else for(const Z of I)m(Z,U,Su(Z,F._0_is_declared_but_its_value_is_never_read,xie(Z.name)))}),A.forEach(([w,I])=>{if(w.declarations.length===I.length)m(w,0,I.length===1?Su(Pn(I).name,F._0_is_declared_but_its_value_is_never_read,xie(Pn(I).name)):Su(w.parent.kind===243?w.parent:w,F.All_variables_are_unused));else for(const U of I)m(U,0,Su(U,F._0_is_declared_but_its_value_is_never_read,xie(U.name)))})}function asi(){var l;for(const m of hb)if(!((l=_u(m))!=null&&l.isReferenced)){const D=S8(m);H.assert(w2(D),"Only parameter declaration should be checked here");const C=Su(m.name,F._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,b0(m.name),b0(m.propertyName));D.type||Es(C,Rd(zn(D),D.end,1,F.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,b0(m.propertyName))),Vs.add(C)}}function xie(l){switch(l.kind){case 80:return fu(l);case 207:case 206:return xie(Po(Pn(l.elements),js).name);default:return H.assertNever(l)}}function r4t(l){return l.kind===273||l.kind===276||l.kind===274}function osi(l){return l.kind===273?l:l.kind===274?l.parent:l.parent.parent}function YEe(l){if(l.kind===241&&SD(l),Zse(l)){const m=Ti;L(l.statements,ls),Ti=m}else L(l.statements,ls);l.locals&&T6(l)}function ssi(l){Ce>=2||!u0e(l)||l.flags&33554432||Ql(l.body)||L(l.parameters,m=>{m.name&&!So(m.name)&&m.name.escapedText===It.escapedName&&A5("noEmit",m,F.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function IW(l,m,D){if((m==null?void 0:m.escapedText)!==D||l.kind===172||l.kind===171||l.kind===174||l.kind===173||l.kind===177||l.kind===178||l.kind===303||l.flags&33554432||(n_(l)||E1(l)||bf(l))&&_2(l))return!1;const C=XE(l);return!(io(C)&&Ql(C.parent.body))}function lsi(l){Tn(l,m=>DT(m)&4?(l.kind!==80?pt(Za(l),F.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):pt(l,F.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function csi(l){Tn(l,m=>DT(m)&8?(l.kind!==80?pt(Za(l),F.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):pt(l,F.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function dsi(l,m){if(ne>=5&&!(ne>=100&&zn(l).impliedNodeFormat===1)||!m||!IW(l,m,"require")&&!IW(l,m,"exports")||_c(l)&&oD(l)!==1)return;const D=dF(l);D.kind===312&&cm(D)&&A5("noEmit",m,F.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,b0(m),b0(m))}function hsi(l,m){if(!m||Ce>=4||!IW(l,m,"Promise")||_c(l)&&oD(l)!==1)return;const D=dF(l);D.kind===312&&cm(D)&&D.flags&4096&&A5("noEmit",m,F.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,b0(m),b0(m))}function fsi(l,m){Ce<=8&&(IW(l,m,"WeakMap")||IW(l,m,"WeakSet"))&&iC.push(l)}function msi(l){const m=YE(l);DT(m)&1048576&&(H.assert(mh(l)&&at(l.name)&&typeof l.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),A5("noEmit",l,F.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,l.name.escapedText))}function psi(l,m){m&&Ce>=2&&Ce<=8&&IW(l,m,"Reflect")&&y5.push(l)}function gsi(l){let m=!1;if(Xd(l)){for(const D of l.members)if(DT(D)&2097152){m=!0;break}}else if(A0(l))DT(l)&2097152&&(m=!0);else{const D=YE(l);D&&DT(D)&2097152&&(m=!0)}m&&(H.assert(mh(l)&&at(l.name),"The target of a Reflect collision check should be an identifier"),A5("noEmit",l,F.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,b0(l.name),"Reflect"))}function Hz(l,m){m&&(dsi(l,m),hsi(l,m),fsi(l,m),psi(l,m),mr(l)?(Wz(m,F.Class_name_cannot_be_0),l.flags&33554432||Wsi(m)):Iv(l)&&Wz(m,F.Enum_name_cannot_be_0))}function Esi(l){if(Gb(l)&7||w2(l))return;const m=_u(l);if(m.flags&1){if(!at(l.name))return H.fail();const D=uc(l,l.name.escapedText,3,void 0,void 0,!1);if(D&&D!==m&&D.flags&2&&OMe(D)&7){const C=Fv(D.valueDeclaration,261),A=C.parent.kind===243&&C.parent.parent?C.parent.parent:void 0;if(!(A&&(A.kind===241&&Co(A.parent)||A.kind===268||A.kind===267||A.kind===312))){const I=Fr(D);pt(l,F.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,I,I)}}}}function RW(l){return l===ni?me:l===Nc?ql:l}function vie(l){var m;if(_ie(l),js(l)||ls(l.type),!l.name)return;if(l.name.kind===167&&(F3(l.name),Qy(l)&&l.initializer&&Rc(l.initializer)),js(l)){if(l.propertyName&&at(l.name)&&w2(l)&&Ql(Nm(l).body)){hb.push(l);return}Rp(l.parent)&&l.dotDotDotToken&&Ce<5&&rd(l,4),l.propertyName&&l.propertyName.kind===167&&F3(l.propertyName);const A=l.parent.parent,w=l.dotDotDotToken?32:0,I=bi(A,w),U=l.propertyName||l.name;if(I&&!So(U)){const Z=j5(U);if(Y4(Z)){const ce=Q4(Z),Fe=qo(I,ce);Fe&&(nie(Fe,void 0,!1),VMe(l,!!A.initializer&&A.initializer.kind===108,!1,I,Fe))}}}if(So(l.name)&&(l.name.kind===207&&Ce<2&&ae.downlevelIteration&&rd(l,512),L(l.name.elements,ls)),l.initializer&&w2(l)&&Ql(Nm(l).body)){pt(l,F.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(So(l.name)){if(hMe(l))return;const A=Qy(l)&&l.initializer&&l.parent.parent.kind!==249,w=!Oe(l.name.elements,X$(Fd));if(A||w){const I=N(l);if(A){const U=Rc(l.initializer);fe&&w?Sft(U,l):A6(U,N(l),l,l.initializer)}w&&(_k(l.name)?G5(65,I,te,l):fe&&Sft(I,l))}return}const D=_u(l);if(D.flags&2097152&&(F2(l)||nye(l))){i_e(l);return}const C=RW(Wn(D));if(l===D.valueDeclaration){const A=Qy(l)&&Dj(l);if(A&&!(Qn(l)&&ys(A)&&(A.properties.length===0||Ox(l.name))&&!!((m=D.exports)!=null&&m.size))&&l.parent.parent.kind!==249){const I=Rc(A);A6(I,C,l,A,void 0);const U=Gb(l)&7;if(U===6){const Z=Fei(!0),ce=t1t(!0);if(Z!==Ko&&ce!==Ko){const Fe=er([Z,ce,it,te]);Ah(I,Fe,A,F.The_initializer_of_an_await_using_declaration_must_be_either_an_object_with_a_Symbol_asyncDispose_or_Symbol_dispose_method_or_be_null_or_undefined)}}else if(U===4){const Z=t1t(!0);if(Z!==Ko){const ce=er([Z,it,te]);Ah(I,ce,A,F.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}D.declarations&&D.declarations.length>1&&Oe(D.declarations,w=>w!==l&&G8(w)&&!o4t(w,l))&&pt(l.name,F.All_declarations_of_0_must_have_identical_modifiers,b0(l.name))}else{const A=RW(N(l));!Nt(C)&&!Nt(A)&&!CD(C,A)&&!(D.flags&67108864)&&a4t(D.valueDeclaration,C,l,A),Qy(l)&&l.initializer&&A6(Rc(l.initializer),A,l,l.initializer,void 0),D.valueDeclaration&&!o4t(l,D.valueDeclaration)&&pt(l.name,F.All_declarations_of_0_must_have_identical_modifiers,b0(l.name))}l.kind!==172&&l.kind!==171&&(LW(l),(l.kind===260||l.kind===208)&&Esi(l),Hz(l,l.name))}function a4t(l,m,D,C){const A=Za(D),w=D.kind===172||D.kind===171?F.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:F.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,I=b0(A),U=pt(A,w,I,gn(m),gn(C));l&&Es(U,Su(l,F._0_was_also_declared_here,I))}function o4t(l,m){if(l.kind===169&&m.kind===260||l.kind===260&&m.kind===169)return!0;if(d7(l)!==d7(m))return!1;const D=1358;return E7(l,D)===E7(m,D)}function _si(l){var m,D;(m=Gn)==null||m.push(Gn.Phase.Check,"checkVariableDeclaration",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath}),Qli(l),vie(l),(D=Gn)==null||D.pop()}function Dsi(l){return qli(l),vie(l)}function QEe(l){const m=QD(l)&7;(m===4||m===6)&&rd(l,33554432),L(l.declarations,ls)}function xsi(l){!S3(l)&&!Xze(l.declarationList)&&Xli(l),QEe(l.declarationList)}function vsi(l){SD(l),ya(l.expression)}function Csi(l){SD(l);const m=Kz(l.expression);wze(l.expression,m,l.thenStatement),ls(l.thenStatement),l.thenStatement.kind===242&&pt(l.thenStatement,F.The_body_of_an_if_statement_cannot_be_the_empty_statement),ls(l.elseStatement)}function wze(l,m,D){if(!fe)return;C(l,D);function C(w,I){for(w=l0(w),A(w,I);Xn(w)&&(w.operatorToken.kind===57||w.operatorToken.kind===61);)w=l0(w.left),A(w,I)}function A(w,I){const U=Gj(w)?l0(w.right):w;if(Y_(U))return;if(Gj(U)){C(U,I);return}const Z=U===w?m:Kz(U),ce=Iu(U)&&Tmt(U.expression);if(!fp(Z,4194304)||ce)return;const Fe=go(Z,0),Te=!!jz(Z);if(Fe.length===0&&!Te)return;const $e=at(U)?U:Iu(U)?U.name:void 0,ut=$e&&Yp($e);if(!ut&&!Te)return;ut&&Xn(w.parent)&&ysi(w.parent,ut)||ut&&I&&bsi(w,I,$e,ut)||(Te?bh(U,!0,F.This_condition_will_always_return_true_since_this_0_is_always_defined,P5(Z)):pt(U,F.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function bsi(l,m,D,C){return!!ao(m,function A(w){if(at(w)){const I=Yp(w);if(I&&I===C){if(at(l)||at(D)&&Xn(D.parent))return!0;let U=D.parent,Z=w.parent;for(;U&&Z;){if(at(U)&&at(Z)||U.kind===110&&Z.kind===110)return Yp(U)===Yp(Z);if(Iu(U)&&Iu(Z)){if(Yp(U.name)!==Yp(Z.name))return!1;Z=Z.expression,U=U.expression}else if(Mo(U)&&Mo(Z))Z=Z.expression,U=U.expression;else return!1}}}return ao(w,A)})}function ysi(l,m){for(;Xn(l)&&l.operatorToken.kind===56;){if(ao(l.right,function C(A){if(at(A)){const w=Yp(A);if(w&&w===m)return!0}return ao(A,C)}))return!0;l=l.parent}return!1}function ksi(l){SD(l),ls(l.statement),Kz(l.expression)}function Fsi(l){SD(l),Kz(l.expression),ls(l.statement)}function Tze(l,m){return l.flags&16384&&pt(m,F.An_expression_of_type_void_cannot_be_tested_for_truthiness),l}function Kz(l,m){return Tze(ya(l,m),l)}function Asi(l){SD(l)||l.initializer&&l.initializer.kind===261&&Xze(l.initializer),l.initializer&&(l.initializer.kind===261?QEe(l.initializer):ya(l.initializer)),l.condition&&Kz(l.condition),l.incrementor&&ya(l.incrementor),ls(l.statement),l.locals&&T6(l)}function Ssi(l){upt(l);const m=dq(l);if(l.awaitModifier?m&&zl(m)?Zi(l.awaitModifier,F.for_await_loops_cannot_be_used_inside_a_class_static_block):(kd(m)&6)===2&&Ce<99&&rd(l,16384):ae.downlevelIteration&&Ce<2&&rd(l,256),l.initializer.kind===261)QEe(l.initializer);else{const D=l.initializer,C=Cie(l);if(D.kind===209||D.kind===210)LF(D,C||Ot);else{const A=ya(D);BW(D,F.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),C&&A6(C,A,D,l.expression)}}ls(l.statement),l.locals&&T6(l)}function Bsi(l){upt(l);const m=HMe(ya(l.expression));if(l.initializer.kind===261){const D=l.initializer.declarations[0];D&&So(D.name)&&pt(D.name,F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),QEe(l.initializer)}else{const D=l.initializer,C=ya(D);D.kind===209||D.kind===210?pt(D,F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ms(hti(m),C)?BW(D,F.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):pt(D,F.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(m===Ku||!u1(m,126091264))&&pt(l.expression,F.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0,gn(m)),ls(l.statement),l.locals&&T6(l)}function Cie(l){const m=l.awaitModifier?15:13;return G5(m,hT(l.expression),te,l.expression)}function G5(l,m,D,C){return nt(m)?m:Lze(l,m,D,C,!0)||me}function Lze(l,m,D,C,A){const w=(l&2)!==0;if(m===Ku){Ize(C,m,w);return}const I=Ce>=2,U=!I&&ae.downlevelIteration,Z=ae.noUncheckedIndexedAccess&&!!(l&128);if(I||U||w){const zt=e_e(m,l,I?C:void 0);if(A&&zt){const gi=l&8?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:l&32?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:l&64?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:l&16?F.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0:void 0;gi&&Ah(D,zt.nextType,C,gi)}if(zt||I)return Z?vW(zt&&zt.yieldType):zt&&zt.yieldType}let ce=m,Fe=!1,Te=!1;if(l&4){if(ce.flags&1048576){const zt=m.types,gi=ti(zt,Wi=>!(Wi.flags&402653316));gi!==zt&&(ce=er(gi,2))}else ce.flags&402653316&&(ce=Ku);if(Te=ce!==m,Te&&(Ce<1&&C&&(pt(C,F.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Fe=!0),ce.flags&131072))return Z?vW(ct):ct}if(!H5(ce)){if(C&&!Fe){const zt=!!(l&4)&&!Te,[gi,Wi]=ut(zt,U);bh(C,Wi&&!!jz(ce),gi,gn(ce))}return Te?Z?vW(ct):ct:void 0}const $e=yC(ce,Qt);if(Te&&$e)return $e.flags&402653316&&!ae.noUncheckedIndexedAccess?ct:er(Z?[$e,ct,te]:[$e,ct],2);return l&128?vW($e):$e;function ut(zt,gi){var Wi;return gi?zt?[F.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[F.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Nze(l,0,m,void 0)?[F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:wsi((Wi=m.symbol)==null?void 0:Wi.escapedName)?[F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:zt?[F.Type_0_is_not_an_array_type_or_a_string_type,!0]:[F.Type_0_is_not_an_array_type,!0]}}function wsi(l){switch(l){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Nze(l,m,D,C){if(nt(D))return;const A=e_e(D,l,C);return A&&A[Bet(m)]}function J5(l=Ku,m=Ku,D=on){if(l.flags&67359327&&m.flags&180227&&D.flags&180227){const C=hp([l,m,D]);let A=Nr.get(C);return A||(A={yieldType:l,returnType:m,nextType:D},Nr.set(C,A)),A}return{yieldType:l,returnType:m,nextType:D}}function s4t(l){let m,D,C;for(const A of l)if(!(A===void 0||A===Vu)){if(A===Ss)return Ss;m=xi(m,A.yieldType),D=xi(D,A.returnType),C=xi(C,A.nextType)}return m||D||C?J5(m&&er(m),D&&er(D),C&&Ds(C)):Vu}function XEe(l,m){return l[m]}function A3(l,m,D){return l[m]=D}function e_e(l,m,D){var C,A;if(nt(l))return Ss;if(!(l.flags&1048576)){const ce=D?{errors:void 0}:void 0,Fe=l4t(l,m,D,ce);if(Fe===Vu){if(D){const Te=Ize(D,l,!!(m&2));ce!=null&&ce.errors&&Es(Te,...ce.errors)}return}else if((C=ce==null?void 0:ce.errors)!=null&&C.length)for(const Te of ce.errors)Vs.add(Te);return Fe}const w=m&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",I=XEe(l,w);if(I)return I===Vu?void 0:I;let U;for(const ce of l.types){const Fe=D?{errors:void 0}:void 0,Te=l4t(ce,m,D,Fe);if(Te===Vu){if(D){const $e=Ize(D,l,!!(m&2));Fe!=null&&Fe.errors&&Es($e,...Fe.errors)}A3(l,w,Vu);return}else if((A=Fe==null?void 0:Fe.errors)!=null&&A.length)for(const $e of Fe.errors)Vs.add($e);U=xi(U,Te)}const Z=U?s4t(U):Vu;return A3(l,w,Z),Z===Vu?void 0:Z}function Pze(l,m){if(l===Vu)return Vu;if(l===Ss)return Ss;const{yieldType:D,returnType:C,nextType:A}=l;return m&&cPe(!0),J5(NF(D,m)||me,NF(C,m)||me,A)}function l4t(l,m,D,C){if(nt(l))return Ss;let A=!1;if(m&2){const w=Mze(l,S0)||d4t(l,S0);if(w)if(w===Vu&&D)A=!0;else return m&8?Pze(w,D):w}if(m&1){let w=Mze(l,ud)||d4t(l,ud);if(w)if(w===Vu&&D)A=!0;else if(m&2){if(w!==Vu)return w=Pze(w,D),A?w:A3(l,"iterationTypesOfAsyncIterable",w)}else return w}if(m&2){const w=zze(l,S0,D,C,A);if(w!==Vu)return w}if(m&1){let w=zze(l,ud,D,C,A);if(w!==Vu)return m&2?(w=Pze(w,D),A?w:A3(l,"iterationTypesOfAsyncIterable",w)):w}return Vu}function Mze(l,m){return XEe(l,m.iterableCacheKey)}function c4t(l,m){const D=Mze(l,m)||zze(l,m,void 0,void 0,!1);return D===Vu?nd:D}function d4t(l,m){let D;if(CC(l,D=m.getGlobalIterableType(!1))||CC(l,D=m.getGlobalIterableIteratorType(!1))){const[C]=O0(l),{returnType:A,nextType:w}=c4t(D,m);return A3(l,m.iterableCacheKey,J5(m.resolveIterationType(C,void 0)||C,m.resolveIterationType(A,void 0)||A,w))}if(CC(l,m.getGlobalGeneratorType(!1))){const[C,A,w]=O0(l);return A3(l,m.iterableCacheKey,J5(m.resolveIterationType(C,void 0)||C,m.resolveIterationType(A,void 0)||A,w))}}function h4t(l){const m=Qdt(!1),D=m&&he(Wn(m),Al(l));return D&&Y4(D)?Q4(D):`__@${l}`}function zze(l,m,D,C,A){const w=qo(l,h4t(m.iteratorSymbolName)),I=w&&!(w.flags&16777216)?Wn(w):void 0;if(nt(I))return A?Ss:A3(l,m.iterableCacheKey,Ss);const U=I?go(I,0):void 0;if(!Oe(U))return A?Vu:A3(l,m.iterableCacheKey,Vu);const Z=Ds(Vt(U,Zs)),ce=f4t(Z,m,D,C,A)??Vu;return A?ce:A3(l,m.iterableCacheKey,ce)}function Ize(l,m,D){const C=D?F.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:F.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,A=!!jz(m)||!D&&SV(l.parent)&&l.parent.expression===l&&Mge(!1)!==Ka&&ms(m,Mge(!1));return bh(l,A,C,gn(m))}function Tsi(l,m,D,C){return f4t(l,m,D,C,!1)}function f4t(l,m,D,C,A){if(nt(l))return Ss;let w=m4t(l,m)||Lsi(l,m);return w===Vu&&D&&(w=void 0,A=!0),w??(w=g4t(l,m,D,C,A)),w===Vu?void 0:w}function m4t(l,m){return XEe(l,m.iteratorCacheKey)}function Lsi(l,m){const D=m.getGlobalIterableIteratorType(!1);if(CC(l,D)){const[C]=O0(l),A=m4t(D,m)||g4t(D,m,void 0,void 0,!1),{returnType:w,nextType:I}=A===Vu?nd:A;return A3(l,m.iteratorCacheKey,J5(C,w,I))}if(CC(l,m.getGlobalIteratorType(!1))||CC(l,m.getGlobalGeneratorType(!1))){const[C,A,w]=O0(l);return A3(l,m.iteratorCacheKey,J5(C,A,w))}}function p4t(l,m){const D=he(l,"done")||Ui;return ms(m===0?Ui:du,D)}function Nsi(l){return p4t(l,0)}function Psi(l){return p4t(l,1)}function Msi(l){if(nt(l))return Ss;const m=XEe(l,"iterationTypesOfIteratorResult");if(m)return m;if(CC(l,yei(!1))){const I=O0(l)[0];return A3(l,"iterationTypesOfIteratorResult",J5(I,void 0,void 0))}if(CC(l,kei(!1))){const I=O0(l)[0];return A3(l,"iterationTypesOfIteratorResult",J5(void 0,I,void 0))}const D=Ic(l,Nsi),C=D!==Ku?he(D,"value"):void 0,A=Ic(l,Psi),w=A!==Ku?he(A,"value"):void 0;return!C&&!w?A3(l,"iterationTypesOfIteratorResult",Vu):A3(l,"iterationTypesOfIteratorResult",J5(C,w||ca,void 0))}function Rze(l,m,D,C,A){var w,I,U,Z;const ce=qo(l,D);if(!ce&&D!=="next")return;const Fe=ce&&!(D==="next"&&ce.flags&16777216)?D==="next"?Wn(ce):mp(Wn(ce),2097152):void 0;if(nt(Fe))return D==="next"?Ss:ic;const Te=Fe?go(Fe,0):_t;if(Te.length===0){if(C){const Ii=D==="next"?m.mustHaveANextMethodDiagnostic:m.mustBeAMethodDiagnostic;A?(A.errors??(A.errors=[]),A.errors.push(Su(C,Ii,D))):pt(C,Ii,D)}return D==="next"?Vu:void 0}if(Fe!=null&&Fe.symbol&&Te.length===1){const Ii=m.getGlobalGeneratorType(!1),Nn=m.getGlobalIteratorType(!1),vn=((I=(w=Ii.symbol)==null?void 0:w.members)==null?void 0:I.get(D))===Fe.symbol,An=!vn&&((Z=(U=Nn.symbol)==null?void 0:U.members)==null?void 0:Z.get(D))===Fe.symbol;if(vn||An){const _n=vn?Ii:Nn,{mapper:hu}=Fe;return J5(k6(_n.typeParameters[0],hu),k6(_n.typeParameters[1],hu),D==="next"?k6(_n.typeParameters[2],hu):void 0)}}let $e,ut;for(const Ii of Te)D!=="throw"&&Oe(Ii.parameters)&&($e=xi($e,Lg(Ii,0))),ut=xi(ut,Zs(Ii));let zt,gi;if(D!=="throw"){const Ii=$e?er($e):on;if(D==="next")gi=Ii;else if(D==="return"){const Nn=m.resolveIterationType(Ii,C)||me;zt=xi(zt,Nn)}}let Wi;const dn=ut?Ds(ut):Ku,nu=m.resolveIterationType(dn,C)||me,En=Msi(nu);return En===Vu?(C&&(A?(A.errors??(A.errors=[]),A.errors.push(Su(C,m.mustHaveAValueDiagnostic,D))):pt(C,m.mustHaveAValueDiagnostic,D)),Wi=me,zt=xi(zt,me)):(Wi=En.yieldType,zt=xi(zt,En.returnType)),J5(Wi,er(zt),gi)}function g4t(l,m,D,C,A){const w=s4t([Rze(l,m,"next",D,C),Rze(l,m,"return",D,C),Rze(l,m,"throw",D,C)]);return A?w:A3(l,m.iteratorCacheKey,w)}function Hb(l,m,D){if(nt(m))return;const C=E4t(m,D);return C&&C[Bet(l)]}function E4t(l,m){if(nt(l))return Ss;const D=m?2:1,C=m?S0:ud;return e_e(l,D,void 0)||Tsi(l,C,void 0,void 0)}function zsi(l){SD(l)||Uli(l)}function bie(l,m){const D=!!(m&1),C=!!(m&2);if(D){const A=Hb(1,l,C);return A?C?W5(Vz(A)):A:Ot}return C?W5(l)||Ot:l}function _4t(l,m){const D=bie(m,kd(l));return!!(D&&(jl(D,16384)||D.flags&32769))}function Isi(l){if(SD(l))return;const m=dq(l);if(m&&zl(m)){r1(l,F.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!m){r1(l,F.A_return_statement_can_only_be_used_within_a_function_body);return}const D=dp(m),C=Zs(D),A=kd(m);if(fe||l.expression||C.flags&131072){const w=l.expression?Rc(l.expression):te;if(m.kind===178)l.expression&&pt(l,F.Setters_cannot_return_a_value);else if(m.kind===176)l.expression&&!A6(w,C,l,l.expression)&&pt(l,F.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(uT(m)){const I=bie(C,A)??C,U=A&2?PW(w,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):w;I&&A6(U,I,l,l.expression)}}else m.kind!==176&&ae.noImplicitReturns&&!_4t(m,C)&&pt(l,F.Not_all_code_paths_return_a_value)}function Rsi(l){SD(l)||l.flags&65536&&r1(l,F.with_statements_are_not_allowed_in_an_async_function_block),ya(l.expression);const m=zn(l);if(!Kb(m)){const D=QE(m,l.pos).start,C=l.statement.pos;Wb(m,D,C-D,F.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Osi(l){SD(l);let m,D=!1;const C=ya(l.expression);L(l.caseBlock.clauses,A=>{A.kind===297&&!D&&(m===void 0?m=A:(Zi(A,F.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),D=!0)),A.kind===296&&s(w(A)),L(A.statements,ls),ae.noFallthroughCasesInSwitch&&A.fallthroughFlowNode&&Jte(A.fallthroughFlowNode)&&pt(A,F.Fallthrough_case_in_switch);function w(I){return()=>{const U=ya(I.expression);Eze(C,U)||q1t(U,C,I.expression,void 0)}}}),l.caseBlock.locals&&T6(l.caseBlock)}function jsi(l){SD(l)||Tn(l.parent,m=>Co(m)?"quit":m.kind===256&&m.label.escapedText===l.label.escapedText?(Zi(l.label,F.Duplicate_label_0,Hc(l.label)),!0):!1),ls(l.statement)}function Vsi(l){SD(l)||at(l.expression)&&!l.expression.escapedText&&lci(l,F.Line_break_not_permitted_here),l.expression&&ya(l.expression)}function Hsi(l){SD(l),YEe(l.tryBlock);const m=l.catchClause;if(m){if(m.variableDeclaration){const D=m.variableDeclaration;vie(D);const C=f1(D);if(C){const A=Ar(C);A&&!(A.flags&3)&&r1(C,F.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(D.initializer)r1(D.initializer,F.Catch_clause_variable_cannot_have_an_initializer);else{const A=m.block.locals;A&&U_(m.locals,w=>{const I=A.get(w);I!=null&&I.valueDeclaration&&I.flags&2&&Zi(I.valueDeclaration,F.Cannot_redeclare_identifier_0_in_catch_clause,Yr(w))})}}YEe(m.block)}l.finallyBlock&&YEe(l.finallyBlock)}function t_e(l,m,D){const C=kh(l);if(C.length===0)return;for(const w of D6(l))D&&w.flags&4194304||D4t(l,w,yz(w,8576,!0),E6(w));const A=m.valueDeclaration;if(A&&mr(A)){for(const w of A.members)if(!No(w)&&!iT(w)){const I=_u(w);D4t(l,I,b1(w.name.expression),E6(I))}}if(C.length>1)for(const w of C)Ksi(l,w)}function D4t(l,m,D,C){const A=m.valueDeclaration,w=Za(A);if(w&&Xr(w))return;const I=YNe(l,D),U=Gu(l)&2?Sl(l.symbol,264):void 0,Z=A&&A.kind===226||w&&w.kind===167?A:void 0,ce=cf(m)===l.symbol?A:void 0;for(const Fe of I){const Te=Fe.declaration&&cf(_u(Fe.declaration))===l.symbol?Fe.declaration:void 0,$e=ce||Te||(U&&!Oe(Zc(l),ut=>!!bC(ut,m.escapedName)&&!!yC(ut,Fe.keyType))?U:void 0);if($e&&!ms(C,Fe.type)){const ut=f3($e,F.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Fr(m),gn(C),gn(Fe.keyType),gn(Fe.type));Z&&$e!==Z&&Es(ut,Su(Z,F._0_is_declared_here,Fr(m))),Vs.add(ut)}}}function Ksi(l,m){const D=m.declaration,C=YNe(l,m.keyType),A=Gu(l)&2?Sl(l.symbol,264):void 0,w=D&&cf(_u(D))===l.symbol?D:void 0;for(const I of C){if(I===m)continue;const U=I.declaration&&cf(_u(I.declaration))===l.symbol?I.declaration:void 0,Z=w||U||(A&&!Oe(Zc(l),ce=>!!k3(ce,m.keyType)&&!!yC(ce,I.keyType))?A:void 0);Z&&!ms(m.type,I.type)&&pt(Z,F._0_index_type_1_is_not_assignable_to_2_index_type_3,gn(m.keyType),gn(m.type),gn(I.keyType),gn(I.type))}}function Wz(l,m){switch(l.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":pt(l,m,l.escapedText)}}function Wsi(l){Ce>=1&&l.escapedText==="Object"&&(ne<5||zn(l).impliedNodeFormat===1)&&pt(l,F.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,FN[ne])}function Gsi(l){const m=ti(Cv(l),Eg);if(!S(m))return;const D=Qn(l),C=new Set,A=new Set;if(L(l.parameters,({name:I},U)=>{at(I)&&C.add(I.escapedText),So(I)&&A.add(U)}),XNe(l)){const I=m.length-1,U=m[I];D&&U&&at(U.name)&&U.typeExpression&&U.typeExpression.type&&!C.has(U.name.escapedText)&&!A.has(I)&&!A4(Ar(U.typeExpression.type))&&pt(U.name,F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,fu(U.name))}else L(m,({name:I,isNameFirst:U},Z)=>{A.has(Z)||at(I)&&C.has(I.escapedText)||(vf(I)?D&&pt(I,F.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,zf(I),zf(I.left)):U||g4(D,I,F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,fu(I)))})}function yie(l){let m=!1;if(l)for(let C=0;C{C.default?(m=!0,Jsi(C.default,l,A)):m&&pt(C,F.Required_type_parameters_may_not_follow_optional_type_parameters);for(let w=0;wC)return!1;for(let Z=0;ZKc(D)&&ph(D))&&Zi(m,F.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!l.name&&!Yu(l,2048)&&r1(l,F.A_class_declaration_without_the_default_modifier_must_have_a_name),b4t(l),L(l.members,ls),T6(l)}function b4t(l){Nli(l),_ie(l),Hz(l,l.name),yie(Sx(l)),LW(l);const m=_u(l),D=X0(m),C=xm(D),A=Wn(m);x4t(m),UEe(m),doi(l),!!(l.flags&33554432)||hoi(l);const I=Qg(l);if(I){L(I.typeArguments,ls),Ce<2&&rd(I.parent,1);const ce=B2(l);ce&&ce!==I&&ya(ce.expression);const Fe=Zc(D);Fe.length&&s(()=>{const Te=Fe[0],$e=qc(D),ut=Gh($e);if(Qsi(ut,I),ls(I.expression),Oe(I.typeArguments)){L(I.typeArguments,ls);for(const gi of Rs(ut,I.typeArguments,I))if(!Wmt(I,gi.typeParameters))break}const zt=xm(Te,D.thisType);if(Ah(C,zt,void 0)?Ah(A,H1t(ut),l.name||l,F.Class_static_side_0_incorrectly_extends_base_class_static_side_1):F4t(l,C,zt,F.Class_0_incorrectly_extends_base_class_1),$e.flags&8650752&&(Hu(A)?go($e,1).some(Wi=>Wi.flags&4)&&!Yu(l,64)&&pt(l.name||l,F.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):pt(l.name||l,F.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(ut.symbol&&ut.symbol.flags&32)&&!($e.flags&8650752)){const gi=D0(ut,I.typeArguments,I);L(gi,Wi=>!AE(Wi.declaration)&&!CD(Zs(Wi),Te))&&pt(I.expression,F.Base_constructors_must_all_have_the_same_return_type)}t0i(D,Te)})}Ysi(l,D,C,A);const U=iB(l);if(U)for(const ce of U)(!ec(ce.expression)||Y1(ce.expression))&&pt(ce.expression,F.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),kze(ce),s(Z(ce));s(()=>{t_e(D,m),t_e(A,m,!0),Cze(l),u0i(l)});function Z(ce){return()=>{const Fe=Sg(Ar(ce));if(!Nt(Fe))if(pF(Fe)){const Te=Fe.symbol&&Fe.symbol.flags&32?F.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:F.Class_0_incorrectly_implements_interface_1,$e=xm(Fe,D.thisType);Ah(C,$e,void 0)||F4t(l,C,$e,Te)}else pt(ce,F.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Ysi(l,m,D,C){const w=Qg(l)&&Zc(m),I=w!=null&&w.length?xm(Pn(w),m.thisType):void 0,U=qc(m);for(const Z of l.members)rle(Z)||(hc(Z)&&L(Z.parameters,ce=>{Mf(ce,Z)&&y4t(l,C,U,I,m,D,ce,!0)}),y4t(l,C,U,I,m,D,Z,!1))}function y4t(l,m,D,C,A,w,I,U,Z=!0){const ce=I.name&&Yp(I.name)||Yp(I);return ce?k4t(l,m,D,C,A,w,Vq(I),P2(I),No(I),U,lc(ce),Z?I:void 0):0}function k4t(l,m,D,C,A,w,I,U,Z,ce,Fe,Te){const $e=Qn(l),ut=!!(l.flags&33554432);if(C&&(I||ae.noImplicitOverride)){const zt=Al(Fe),gi=Z?m:w,Wi=Z?D:C,dn=qo(gi,zt),nu=qo(Wi,zt),En=gn(C);if(dn&&!nu&&I){if(Te){const Ii=zft(Fe,Wi);Ii?pt(Te,$e?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1:F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,En,Fr(Ii)):pt(Te,$e?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,En)}return 2}else if(dn&&(nu!=null&&nu.declarations)&&ae.noImplicitOverride&&!ut){const Ii=Oe(nu.declarations,P2);if(I)return 0;if(Ii){if(U&&Ii)return Te&&pt(Te,F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,En),1}else{if(Te){const Nn=ce?$e?F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:$e?F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;pt(Te,Nn,En)}return 1}}}else if(I){if(Te){const zt=gn(A);pt(Te,$e?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,zt)}return 2}return 0}function F4t(l,m,D,C){let A=!1;for(const w of l.members){if(No(w))continue;const I=w.name&&Yp(w.name)||Yp(w);if(I){const U=qo(m,I.escapedName),Z=qo(D,I.escapedName);if(U&&Z){const ce=()=>ro(void 0,F.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Fr(I),gn(m),gn(D));Ah(Wn(U),Wn(Z),w.name||w,void 0,ce)||(A=!0)}}}A||Ah(m,D,l.name||l,C)}function Qsi(l,m){const D=go(l,1);if(D.length){const C=D[0].declaration;if(C&&Rf(C,2)){const A=tD(l.symbol);Wze(m,A)||pt(m,F.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,op(l.symbol))}}}function Xsi(l,m,D){if(!m.name)return 0;const C=_u(l),A=X0(C),w=xm(A),I=Wn(C),Z=Qg(l)&&Zc(A),ce=Z!=null&&Z.length?xm(Pn(Z),A.thisType):void 0,Fe=qc(A),Te=m.parent?Vq(m):Yu(m,16);return k4t(l,I,Fe,ce,A,w,Te,P2(m),No(m),!1,lc(D))}function _T(l){return Gl(l)&1?l.links.target:l}function e0i(l){return ti(l.declarations,m=>m.kind===263||m.kind===264)}function t0i(l,m){var D,C,A,w;const I=n0(m);let U;e:for(const Z of I){const ce=_T(Z);if(ce.flags&4194304)continue;const Fe=bC(l,ce.escapedName);if(!Fe)continue;const Te=_T(Fe),$e=l4(ce);if(H.assert(!!Te,"derived should point to something, even if it is the base class' declaration."),Te===ce){const ut=tD(l.symbol);if($e&64&&(!ut||!Yu(ut,64))){for(const zt of Zc(l)){if(zt===m)continue;const gi=bC(zt,ce.escapedName),Wi=gi&&_T(gi);if(Wi&&Wi!==ce)continue e}U||(U=pt(ut,F.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,gn(l),gn(m))),ut.kind===231?Es(U,Su(Z.valueDeclaration??(Z.declarations&&Pn(Z.declarations))??ut,F.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Fr(Z),gn(m))):Es(U,Su(Z.valueDeclaration??(Z.declarations&&Pn(Z.declarations))??ut,F.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,gn(l),Fr(Z),gn(m)))}}else{const ut=l4(Te);if($e&2||ut&2)continue;let zt;const gi=ce.flags&98308,Wi=Te.flags&98308;if(gi&&Wi){if((Gl(ce)&6?(D=ce.declarations)!=null&&D.some(En=>A4t(En,$e)):(C=ce.declarations)!=null&&C.every(En=>A4t(En,$e)))||Gl(ce)&262144||Te.valueDeclaration&&Xn(Te.valueDeclaration))continue;const dn=gi!==4&&Wi===4;if(dn||gi===4&&Wi!==4){const En=dn?F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;pt(Za(Te.valueDeclaration)||Te.valueDeclaration,En,Fr(ce),gn(m),gn(l))}else if(Se){const En=(A=Te.declarations)==null?void 0:A.find(Ii=>Ii.kind===172&&!Ii.initializer);if(En&&!(Te.flags&33554432)&&!($e&64)&&!(ut&64)&&!((w=Te.declarations)!=null&&w.some(Ii=>!!(Ii.flags&33554432)))){const Ii=Up(tD(l.symbol)),Nn=En.name;if(En.exclamationToken||!Ii||!at(Nn)||!fe||!B4t(Nn,l,Ii)){const vn=F.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;pt(Za(Te.valueDeclaration)||Te.valueDeclaration,vn,Fr(ce),gn(m))}}}continue}else if(jMe(ce)){if(jMe(Te)||Te.flags&4)continue;H.assert(!!(Te.flags&98304)),zt=F.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ce.flags&98304?zt=F.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:zt=F.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;pt(Za(Te.valueDeclaration)||Te.valueDeclaration,zt,gn(m),Fr(ce),gn(l))}}}function A4t(l,m){return m&64&&(!ko(l)||!l.initializer)||xh(l.parent)}function i0i(l,m,D){if(!S(m))return D;const C=new Map;L(D,A=>{C.set(A.escapedName,A)});for(const A of m){const w=n0(xm(A,l.thisType));for(const I of w){const U=C.get(I.escapedName);U&&I.parent===U.parent&&C.delete(I.escapedName)}}return ga(C.values())}function n0i(l,m){const D=Zc(l);if(D.length<2)return!0;const C=new Map;L(LNe(l).declaredProperties,w=>{C.set(w.escapedName,{prop:w,containingType:l})});let A=!0;for(const w of D){const I=n0(xm(w,l.thisType));for(const U of I){const Z=C.get(U.escapedName);if(!Z)C.set(U.escapedName,{prop:U,containingType:w});else if(Z.containingType!==l&&!Dii(Z.prop,U)){A=!1;const Fe=gn(Z.containingType),Te=gn(w);let $e=ro(void 0,F.Named_property_0_of_types_1_and_2_are_not_identical,Fr(U),Fe,Te);$e=ro($e,F.Interface_0_cannot_simultaneously_extend_types_1_and_2,gn(l),Fe,Te),Vs.add(Y3(zn(m),m,$e))}}}return A}function u0i(l){if(!fe||!Ge||l.flags&33554432)return;const m=Up(l);for(const D of l.members)if(!(Eh(D)&128)&&!No(D)&&S4t(D)){const C=D.name;if(at(C)||Xr(C)||Ps(C)){const A=Wn(_u(D));A.flags&3||Fz(A)||(!m||!B4t(C,A,m))&&pt(D.name,F.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,b0(C))}}}function S4t(l){return l.kind===172&&!P2(l)&&!l.exclamationToken&&!l.initializer}function r0i(l,m,D,C,A){for(const w of D)if(w.pos>=C&&w.pos<=A){const I=q.createPropertyAccessExpression(q.createThis(),l);ks(I.expression,I),ks(I,w),I.flowNode=w.returnFlowNode;const U=w6(I,m,S6(m));if(!Fz(U))return!0}return!1}function B4t(l,m,D){const C=Ps(l)?q.createElementAccessExpression(q.createThis(),l.expression):q.createPropertyAccessExpression(q.createThis(),l);ks(C.expression,C),ks(C,D),C.flowNode=D.returnFlowNode;const A=w6(C,m,S6(m));return!Fz(A)}function a0i(l){S3(l)||jli(l),yie(l.typeParameters),s(()=>{Wz(l.name,F.Interface_name_cannot_be_0),LW(l);const m=_u(l);x4t(m);const D=Sl(m,264);if(l===D){const C=X0(m),A=xm(C);if(n0i(C,l.name)){for(const w of Zc(C))Ah(A,xm(w,C.thisType),l.name,F.Interface_0_incorrectly_extends_interface_1);t_e(C,m)}}jmt(l)}),L(rP(l),m=>{(!ec(m.expression)||Y1(m.expression))&&pt(m.expression,F.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),kze(m)}),L(l.members,ls),s(()=>{Cze(l),T6(l)})}function o0i(l){S3(l),Wz(l.name,F.Type_alias_name_cannot_be_0),LW(l),yie(l.typeParameters),l.type.kind===141?(!tQ.has(l.name.escapedText)||S(l.typeParameters)!==1)&&pt(l.type,F.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(ls(l.type),T6(l))}function w4t(l){const m=ar(l);if(!(m.flags&1024)){m.flags|=1024;let D=0;for(const C of l.members){const A=s0i(C,D);ar(C).enumMemberValue=A,D=typeof A=="number"?A+1:void 0}}}function s0i(l,m){if(oj(l.name))pt(l.name,F.Computed_property_names_are_not_allowed_in_enums);else{const D=V8(l.name);i3(D)&&!LP(D)&&pt(l.name,F.An_enum_member_cannot_have_a_numeric_name)}if(l.initializer)return l0i(l);if(!(l.parent.flags&33554432&&!b2(l.parent))){if(m!==void 0)return m;pt(l.name,F.Enum_member_must_have_initializer)}}function l0i(l){const m=b2(l.parent),D=l.initializer,C=Gz(D,l);return C!==void 0?m&&typeof C=="number"&&!isFinite(C)&&pt(D,isNaN(C)?F.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:F.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):m?pt(D,F.const_enum_member_initializers_must_be_constant_expressions):l.parent.flags&33554432?pt(D,F.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Ah(ya(D),Qt,D,F.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),C}function Gz(l,m){switch(l.kind){case 224:const D=Gz(l.operand,m);if(typeof D=="number")switch(l.operator){case 40:return D;case 41:return-D;case 55:return~D}break;case 226:const C=Gz(l.left,m),A=Gz(l.right,m);if(typeof C=="number"&&typeof A=="number")switch(l.operatorToken.kind){case 52:return C|A;case 51:return C&A;case 49:return C>>A;case 50:return C>>>A;case 48:return C<d0i(l))}function d0i(l){S3(l),Hz(l,l.name),LW(l),l.members.forEach(h0i),w4t(l);const m=_u(l),D=Sl(m,l.kind);if(l===D){if(m.declarations&&m.declarations.length>1){const A=b2(l);L(m.declarations,w=>{Iv(w)&&b2(w)!==A&&pt(Za(w),F.Enum_declarations_must_all_be_const_or_non_const)})}let C=!1;L(m.declarations,A=>{if(A.kind!==266)return!1;const w=A;if(!w.members.length)return!1;const I=w.members[0];I.initializer||(C?pt(I.name,F.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):C=!0)})}}function h0i(l){Xr(l.name)&&pt(l,F.An_enum_member_cannot_be_named_with_a_private_identifier),l.initializer&&ya(l.initializer)}function f0i(l){const m=l.declarations;if(m){for(const D of m)if((D.kind===263||D.kind===262&&H4(D.body))&&!(D.flags&33554432))return D}}function m0i(l,m){const D=YE(l),C=YE(m);return pE(D)?pE(C):pE(C)?!1:D===C}function p0i(l){l.body&&(ls(l.body),Yg(l)||T6(l)),s(m);function m(){var D,C;const A=Yg(l),w=l.flags&33554432;A&&!w&&pt(l.name,F.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const I=N1(l),U=I?F.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:F.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(kie(l,U))return;S3(l)||!w&&l.name.kind===11&&Zi(l.name,F.Only_ambient_modules_can_use_quoted_names),at(l.name)&&Hz(l,l.name),LW(l);const Z=_u(l);if(Z.flags&512&&!w&&Rde(l,fk(ae))){if(mg(ae)&&!zn(l).externalModuleIndicator&&pt(l.name,F.Namespaces_are_not_allowed_in_global_script_files_when_0_is_enabled_If_this_file_is_not_intended_to_be_a_global_script_set_moduleDetection_to_force_or_add_an_empty_export_statement,ht),((D=Z.declarations)==null?void 0:D.length)>1){const ce=f0i(Z);ce&&(zn(l)!==zn(ce)?pt(l.name,F.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):l.posFe.kind===95);ce&&pt(ce,F.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(I)if(v2(l)){if((A||_u(l).flags&33554432)&&l.body)for(const Fe of l.body.statements)Oze(Fe,A)}else pE(l.parent)?A?pt(l.name,F.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Id(J4(l.name))&&pt(l.name,F.Ambient_module_declaration_cannot_specify_relative_module_name):A?pt(l.name,F.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):pt(l.name,F.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Oze(l,m){switch(l.kind){case 243:for(const C of l.declarationList.declarations)Oze(C,m);break;case 277:case 278:r1(l,F.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:r1(l,F.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const D=l.name;if(So(D)){for(const C of D.elements)Oze(C,m);break}case 263:case 266:case 262:case 264:case 267:case 265:if(m)return;break}}function g0i(l){switch(l.kind){case 80:return l;case 166:do l=l.left;while(l.kind!==80);return l;case 211:do{if(Y_(l.expression)&&!Xr(l.name))return l.name;l=l.expression}while(l.kind!==80);return l}}function jze(l){const m=Y8(l);if(!m||Ql(m))return!1;if(!us(m))return pt(m,F.String_literal_expected),!1;const D=l.parent.kind===268&&N1(l.parent.parent);if(l.parent.kind!==312&&!D)return pt(m,l.kind===278?F.Export_declarations_are_not_permitted_in_a_namespace:F.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(D&&Id(m.text)&&!j9(l))return pt(l,F.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!E1(l)&&l.attributes){const C=l.attributes.token===118?F.Import_attribute_values_must_be_string_literal_expressions:F.Import_assertion_values_must_be_string_literal_expressions;let A=!1;for(const w of l.attributes.elements)us(w.value)||(A=!0,pt(w.value,C));return!A}return!0}function i_e(l){var m,D,C,A;let w=_u(l);const I=md(w);if(I!==Xt){if(w=Ks(w.exportSymbol||w),Qn(l)&&!(I.flags&111551)&&!_2(l)){const ce=r7(l)?l.propertyName||l.name:mh(l)?l.name:l;if(H.assert(l.kind!==280),l.kind===281){const Fe=pt(ce,F.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Te=(D=(m=zn(l).symbol)==null?void 0:m.exports)==null?void 0:D.get((l.propertyName||l.name).escapedText);if(Te===I){const $e=(C=Te.declarations)==null?void 0:C.find(z8);$e&&Es(Fe,Su($e,F._0_is_automatically_exported_here,Yr(Te.escapedName)))}}else{H.assert(l.kind!==260);const Fe=Tn(l,dg(Sd,E1)),Te=(Fe&&((A=Z8(Fe))==null?void 0:A.text))??"...",$e=Yr(at(ce)?ce.escapedText:w.escapedName);pt(ce,F._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,$e,`import("${Te}").${$e}`)}return}const U=O1(I),Z=(w.flags&1160127?111551:0)|(w.flags&788968?788968:0)|(w.flags&1920?1920:0);if(U&Z){const ce=l.kind===281?F.Export_declaration_conflicts_with_exported_declaration_of_0:F.Import_declaration_conflicts_with_local_declaration_of_0;pt(l,ce,Fr(w))}if(mg(ae)&&!_2(l)&&!(l.flags&33554432)){const ce=_4(w),Fe=!(U&111551);if(Fe||ce)switch(l.kind){case 273:case 276:case 271:{if(ae.preserveValueImports||ae.verbatimModuleSyntax){H.assertIsDefined(l.name,"An ImportClause with a symbol should have a name");const Te=ae.verbatimModuleSyntax&&U8(l)?F.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Fe?ae.verbatimModuleSyntax?F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:ae.verbatimModuleSyntax?F._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:F._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,$e=fu(l.kind===276&&l.propertyName||l.name);dD(pt(l,Te,$e),Fe?void 0:ce,$e)}Fe&&l.kind===271&&Rf(l,32)&&pt(l,F.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,ht);break}case 281:if(ae.verbatimModuleSyntax||zn(ce)!==zn(l)){const Te=fu(l.propertyName||l.name),$e=Fe?pt(l,F.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,ht):pt(l,F._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Te,ht);dD($e,Fe?void 0:ce,Te);break}}ae.verbatimModuleSyntax&&l.kind!==271&&!Qn(l)&&(ne===1||zn(l).impliedNodeFormat===1)&&pt(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(bf(l)){const ce=Vze(w,l);S5(ce)&&ce.declarations&&m3(l,ce.declarations,ce.escapedName)}}}function Vze(l,m){if(!(l.flags&2097152)||S5(l)||!rp(l))return l;const D=md(l);if(D===Xt)return D;for(;l.flags&2097152;){const C=PMe(l);if(C){if(C===D)break;if(C.declarations&&S(C.declarations))if(S5(C)){m3(m,C.declarations,C.escapedName);break}else{if(l===D)break;l=C}}else break}return D}function n_e(l){Hz(l,l.name),i_e(l),l.kind===276&&fu(l.propertyName||l.name)==="default"&&e_(ae)&&ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&rd(l,131072)}function N4t(l){var m;const D=l.attributes;if(D){const C=F1e(l),A=qB(D,C?Zi:void 0),w=l.attributes.token===118;if(C&&A)return;if((ne===199&&l.moduleSpecifier&&Ma(l.moduleSpecifier))!==99&&ne!==99){const U=w?ne===199?F.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:F.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:ne===199?F.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:F.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext;return Zi(D,U)}if(Sd(l)?(m=l.importClause)!=null&&m.isTypeOnly:l.isTypeOnly)return Zi(D,w?F.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:F.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(A)return Zi(D,F.resolution_mode_can_only_be_set_for_type_only_imports)}}function E0i(l){if(!kie(l,Qn(l)?F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!S3(l)&&jq(l)&&r1(l,F.An_import_declaration_cannot_have_modifiers),jze(l)){const m=l.importClause;m&&!dci(m)&&(m.name&&n_e(m),m.namedBindings&&(m.namedBindings.kind===274?(n_e(m.namedBindings),ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&e_(ae)&&rd(l,65536)):Kh(l,l.moduleSpecifier)&&L(m.namedBindings.elements,n_e)))}N4t(l)}}function _0i(l){if(!kie(l,Qn(l)?F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(S3(l),U8(l)||jze(l)))if(n_e(l),Yu(l,32)&&fC(l),l.moduleReference.kind!==283){const m=md(_u(l));if(m!==Xt){const D=O1(m);if(D&111551){const C=hm(l.moduleReference);R0(C,112575).flags&1920||pt(C,F.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,b0(C))}D&788968&&Wz(l.name,F.Import_name_cannot_be_0)}l.isTypeOnly&&Zi(l,F.An_import_alias_cannot_use_import_type)}else ne>=5&&zn(l).impliedNodeFormat===void 0&&!l.isTypeOnly&&!(l.flags&33554432)&&Zi(l,F.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead)}function D0i(l){if(!kie(l,Qn(l)?F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!S3(l)&&Bye(l)&&r1(l,F.An_export_declaration_cannot_have_modifiers),l.moduleSpecifier&&l.exportClause&&ep(l.exportClause)&&S(l.exportClause.elements)&&Ce===0&&rd(l,4194304),x0i(l),!l.moduleSpecifier||jze(l))if(l.exportClause&&!u_(l.exportClause)){L(l.exportClause.elements,F0i);const m=l.parent.kind===268&&N1(l.parent.parent),D=!m&&l.parent.kind===268&&!l.moduleSpecifier&&l.flags&33554432;l.parent.kind!==312&&!m&&!D&&pt(l,F.Export_declarations_are_not_permitted_in_a_namespace)}else{const m=Kh(l,l.moduleSpecifier);m&&bb(m)?pt(l.moduleSpecifier,F.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Fr(m)):l.exportClause&&i_e(l.exportClause),ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&(l.exportClause?e_(ae)&&rd(l,65536):rd(l,32768))}N4t(l)}}function x0i(l){var m;return l.isTypeOnly&&((m=l.exportClause)==null?void 0:m.kind)===279?dpt(l.exportClause):!1}function kie(l,m){const D=l.parent.kind===312||l.parent.kind===268||l.parent.kind===267;return D||r1(l,m),!D}function v0i(l){return Fq(l,m=>!!_u(m).isReferenced)}function C0i(l){return Fq(l,m=>!!Ur(_u(m)).constEnumReferenced)}function b0i(l){return Sd(l)&&l.importClause&&!l.importClause.isTypeOnly&&v0i(l.importClause)&&!l_e(l.importClause,!0)&&!C0i(l.importClause)}function y0i(l){return E1(l)&&r_(l.moduleReference)&&!l.isTypeOnly&&_u(l).isReferenced&&!l_e(l,!1)&&!Ur(_u(l)).constEnumReferenced}function k0i(l){if(Ut)for(const m of l.statements)(b0i(m)||y0i(m))&&pt(m,F.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function F0i(l){if(i_e(l),c4(ae)&&qw(l.propertyName||l.name,!0),l.parent.parent.moduleSpecifier)e_(ae)&&ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&fu(l.propertyName||l.name)==="default"&&rd(l,131072);else{const m=l.propertyName||l.name,D=uc(m,m.escapedText,2998271,void 0,void 0,!0);if(D&&(D===st||D===St||D.declarations&&pE(dF(D.declarations[0]))))pt(m,F.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,fu(m));else{!l.isTypeOnly&&!l.parent.parent.isTypeOnly&&fC(l);const C=D&&(D.flags&2097152?md(D):D);(!C||O1(C)&111551)&&Rc(l.propertyName||l.name)}}}function A0i(l){const m=l.isExportEquals?F.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:F.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(kie(l,m))return;const D=l.parent.kind===312?l.parent:l.parent.parent;if(D.kind===267&&!N1(D)){l.isExportEquals?pt(l,F.An_export_assignment_cannot_be_used_in_a_namespace):pt(l,F.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!S3(l)&&jq(l)&&r1(l,F.An_export_assignment_cannot_have_modifiers);const C=f1(l);C&&Ah(Rc(l.expression),Ar(C),l.expression);const A=!l.isExportEquals&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&(ne===1||zn(l).impliedNodeFormat===1);if(l.expression.kind===80){const w=l.expression,I=sp(R0(w,67108863,!0,!0,l));I?(bEe(I,w),O1(I)&111551?(Rc(w),!A&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&_4(I,111551)&&pt(w,l.isExportEquals?F.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:F.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,fu(w))):!A&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&pt(w,l.isExportEquals?F.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:F.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,fu(w))):Rc(w),c4(ae)&&qw(w,!0)}else Rc(l.expression);A&&pt(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),P4t(D),l.flags&33554432&&!ec(l.expression)&&Zi(l.expression,F.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),l.isExportEquals&&(ne>=5&&(l.flags&33554432&&zn(l).impliedNodeFormat===99||!(l.flags&33554432)&&zn(l).impliedNodeFormat!==1)?Zi(l,F.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ne===4&&!(l.flags&33554432)&&Zi(l,F.Export_assignment_is_not_supported_when_module_flag_is_system))}function S0i(l){return h1(l.exports,(m,D)=>D!=="export=")}function P4t(l){const m=_u(l),D=Ur(m);if(!D.exportsChecked){const C=m.exports.get("export=");if(C&&S0i(m)){const w=rp(C)||C.valueDeclaration;w&&!j9(w)&&!Qn(w)&&pt(w,F.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const A=x3(m);A&&A.forEach(({declarations:w,flags:I},U)=>{if(U==="__export"||I&1920)return;const Z=ui(w,Q$(wet,X$(xh)));if(!(I&524288&&Z<=2)&&Z>1&&!u_e(w))for(const ce of w)Fet(ce)&&Vs.add(Su(ce,F.Cannot_redeclare_exported_variable_0,Yr(U)))}),D.exportsChecked=!0}}function u_e(l){return l&&l.length>1&&l.every(m=>Qn(m)&&I0(m)&&(uk(m.expression)||Y_(m.expression)))}function ls(l){if(l){const m=K;K=l,z=0,B0i(l),K=m}}function B0i(l){wj(l)&&L(l.jsDoc,({comment:D,tags:C})=>{M4t(D),L(C,A=>{M4t(A.comment),Qn(l)&&ls(A)})});const m=l.kind;if(d)switch(m){case 267:case 263:case 264:case 262:d.throwIfCancellationRequested()}switch(m>=243&&m<=259&&Bj(l)&&l.flowNode&&!Jte(l.flowNode)&&g4(ae.allowUnreachableCode===!1,l,F.Unreachable_code_detected),m){case 168:return Imt(l);case 169:return Rmt(l);case 172:return Vmt(l);case 171:return foi(l);case 185:case 184:case 179:case 180:case 181:return TW(l);case 174:case 173:return moi(l);case 175:return poi(l);case 176:return goi(l);case 177:case 178:return Kmt(l);case 183:return kze(l);case 182:return loi(l);case 186:return Coi(l);case 187:return boi(l);case 188:return yoi(l);case 189:return koi(l);case 192:case 193:return Foi(l);case 196:case 190:case 191:return ls(l.type);case 197:return woi(l);case 198:return Toi(l);case 194:return Loi(l);case 195:return Noi(l);case 203:return Poi(l);case 205:return Moi(l);case 202:return zoi(l);case 335:return tsi(l);case 336:return esi(l);case 353:case 345:case 347:return Goi(l);case 352:return Joi(l);case 351:return $oi(l);case 331:case 332:case 333:return qoi(l);case 348:return Zoi(l);case 355:return Yoi(l);case 324:Qoi(l);case 322:case 321:case 319:case 320:case 329:z4t(l),ao(l,ls);return;case 325:w0i(l);return;case 316:return ls(l.type);case 340:case 342:case 341:return isi(l);case 357:return Uoi(l);case 350:return Xoi(l);case 199:return Aoi(l);case 200:return Soi(l);case 262:return Woi(l);case 241:case 268:return YEe(l);case 243:return xsi(l);case 244:return vsi(l);case 245:return Csi(l);case 246:return ksi(l);case 247:return Fsi(l);case 248:return Asi(l);case 249:return Bsi(l);case 250:return Ssi(l);case 251:case 252:return zsi(l);case 253:return Isi(l);case 254:return Rsi(l);case 255:return Osi(l);case 256:return jsi(l);case 257:return Vsi(l);case 258:return Hsi(l);case 260:return _si(l);case 208:return Dsi(l);case 263:return Zsi(l);case 264:return a0i(l);case 265:return o0i(l);case 266:return c0i(l);case 267:return p0i(l);case 272:return E0i(l);case 271:return _0i(l);case 278:return D0i(l);case 277:return A0i(l);case 242:case 259:SD(l);return;case 282:return _oi(l)}}function M4t(l){Ha(l)&&L(l,m=>{o7(m)&&ls(m)})}function z4t(l){if(!Qn(l))if(mY(l)||wB(l)){const m=Uo(mY(l)?54:58),D=l.postfix?F._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:F._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,C=l.type,A=Ar(C);Zi(l,D,m,gn(wB(l)&&!(A===Ku||A===ca)?er(xi([A,te],l.postfix?void 0:it)):A))}else Zi(l,F.JSDoc_types_can_only_be_used_inside_documentation_comments)}function w0i(l){z4t(l),ls(l.type);const{parent:m}=l;if(io(m)&&TB(m.parent)){Cr(m.parent.parameters)!==m&&pt(l,F.A_rest_parameter_must_be_last_in_a_parameter_list);return}kk(m)||pt(l,F.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const D=l.parent.parent;if(!Eg(D)){pt(l,F.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const C=Tj(D);if(!C)return;const A=kv(D);(!A||Cr(A.parameters).symbol!==C)&&pt(l,F.A_rest_parameter_must_be_last_in_a_parameter_list)}function T0i(l){const m=Ar(l.type),{parent:D}=l,C=l.parent.parent;if(kk(l.parent)&&Eg(C)){const A=kv(C),w=Ace(C.parent.parent);if(A||w){const I=qu(w?C.parent.parent.typeExpression.parameters:A.parameters),U=Tj(C);if(!I||U&&I.symbol===U&&$_(I))return V1(m)}}return io(D)&&TB(D.parent)?V1(m):Vd(m)}function eS(l){const m=zn(l),D=ar(m);D.flags&1?H.assert(!D.deferredNodes,"A type-checked file should have no deferred nodes."):(D.deferredNodes||(D.deferredNodes=new Set),D.deferredNodes.add(l))}function L0i(l){const m=ar(l);m.deferredNodes&&m.deferredNodes.forEach(N0i),m.deferredNodes=void 0}function N0i(l){var m,D;(m=Gn)==null||m.push(Gn.Phase.Check,"checkDeferredNode",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath});const C=K;switch(K=l,z=0,l.kind){case 213:case 214:case 215:case 170:case 286:BF(l);break;case 218:case 219:case 174:case 173:Sai(l);break;case 177:case 178:Kmt(l);break;case 231:qsi(l);break;case 168:soi(l);break;case 285:Rui(l);break;case 284:jui(l);break;case 216:case 234:case 217:tai(l);break;case 222:ya(l.expression);break;case 226:Hq(l)&&BF(l);break}K=C,(D=Gn)==null||D.pop()}function P0i(l){var m,D;(m=Gn)==null||m.push(Gn.Phase.Check,"checkSourceFile",{path:l.path},!0),ul("beforeCheck"),M0i(l),ul("afterCheck"),Tm("Check","beforeCheck","afterCheck"),(D=Gn)==null||D.pop()}function I4t(l,m){if(m)return!1;switch(l){case 0:return!!ae.noUnusedLocals;case 1:return!!ae.noUnusedParameters;default:return H.assertNever(l)}}function R4t(l){return b5.get(l.path)||_t}function M0i(l){const m=ar(l);if(!(m.flags&1)){if(AP(l,ae,t))return;oci(l),pu(cb),pu(db),pu(iC),pu(y5),pu(hb),L(l.statements,ls),ls(l.endOfFileToken),L0i(l),cm(l)&&T6(l),s(()=>{!l.isDeclarationFile&&(ae.noUnusedLocals||ae.noUnusedParameters)&&t4t(R4t(l),(D,C,A)=>{!O8(D)&&I4t(C,!!(D.flags&33554432))&&Vs.add(A)}),l.isDeclarationFile||asi()}),ae.importsNotUsedAsValues===2&&!l.isDeclarationFile&&wc(l)&&k0i(l),cm(l)&&P4t(l),cb.length&&(L(cb,lsi),pu(cb)),db.length&&(L(db,csi),pu(db)),iC.length&&(L(iC,msi),pu(iC)),y5.length&&(L(y5,gsi),pu(y5)),m.flags|=1}}function O4t(l,m){try{return d=m,z0i(l)}finally{d=void 0}}function Hze(){for(const l of u)l();u=[]}function Kze(l){Hze();const m=s;s=D=>D(),P0i(l),s=m}function z0i(l){if(l){Hze();const m=Vs.getGlobalDiagnostics(),D=m.length;Kze(l);const C=Vs.getDiagnostics(l.fileName),A=Vs.getGlobalDiagnostics();if(A!==m){const w=Wr(m,A,bP);return Hi(w,C)}else if(D===0&&A.length>0)return Hi(A,C);return C}return L(t.getSourceFiles(),Kze),Vs.getDiagnostics()}function I0i(){return Hze(),Vs.getGlobalDiagnostics()}function R0i(l,m){if(l.flags&67108864)return[];const D=Vo();let C=!1;return A(),D.delete("this"),QNe(D);function A(){for(;l;){switch(UE(l)&&l.locals&&!pE(l)&&I(l.locals,m),l.kind){case 312:if(!wc(l))break;case 267:U(_u(l).exports,m&2623475);break;case 266:I(_u(l).exports,m&8);break;case 231:l.name&&w(l.symbol,m);case 263:case 264:C||I(_6(_u(l)),m&788968);break;case 218:l.name&&w(l.symbol,m);break}Ube(l)&&w(It,m),C=No(l),l=l.parent}I(Ie,m)}function w(Z,ce){if(xP(Z)&ce){const Fe=Z.escapedName;D.has(Fe)||D.set(Fe,Z)}}function I(Z,ce){ce&&Z.forEach(Fe=>{w(Fe,ce)})}function U(Z,ce){ce&&Z.forEach(Fe=>{!Sl(Fe,281)&&!Sl(Fe,280)&&Fe.escapedName!=="default"&&w(Fe,ce)})}}function O0i(l){return l.kind===80&&gB(l.parent)&&Za(l.parent)===l}function j4t(l){for(;l.parent.kind===166;)l=l.parent;return l.parent.kind===183}function j0i(l){for(;l.parent.kind===211;)l=l.parent;return l.parent.kind===233}function V4t(l,m){let D,C=Yd(l);for(;C&&!(D=m(C));)C=Yd(C);return D}function V0i(l){return!!Tn(l,m=>hc(m)&&H4(m.body)||ko(m)?!0:mr(m)||$0(m)?"quit":!1)}function Wze(l,m){return!!V4t(l,D=>D===m)}function H0i(l){for(;l.parent.kind===166;)l=l.parent;if(l.parent.kind===271)return l.parent.moduleReference===l?l.parent:void 0;if(l.parent.kind===277)return l.parent.expression===l?l.parent:void 0}function r_e(l){return H0i(l)!==void 0}function K0i(l){switch(Xl(l.parent.parent)){case 1:case 3:return Dm(l.parent);case 4:case 2:case 5:return _u(l.parent.parent)}}function W0i(l){let m=l.parent;for(;vf(m);)l=m,m=m.parent;if(m&&m.kind===205&&m.qualifier===l)return m}function G0i(l){if(l.expression.kind===110){const m=tf(l,!1,!1);if(Co(m)){const D=eft(m);if(D){const C=MC(D,void 0),A=ift(D,C);return A&&!nt(A)}}}}function H4t(l){if(X3(l))return Dm(l.parent);if(Qn(l)&&l.parent.kind===211&&l.parent===l.parent.parent.left&&!Xr(l)&&!Rv(l)&&!G0i(l.parent)){const m=K0i(l);if(m)return m}if(l.parent.kind===277&&ec(l)){const m=R0(l,2998271,!0);if(m&&m!==Xt)return m}else if(sm(l)&&r_e(l)){const m=Fv(l,271);return H.assert(m!==void 0),aF(l,!0)}if(sm(l)){const m=W0i(l);if(m){Ar(m);const D=ar(l).resolvedSymbol;return D===Xt?void 0:D}}for(;Mye(l);)l=l.parent;if(j0i(l)){let m=0;l.parent.kind===233?(m=q_(l)?788968:111551,Jj(l.parent)&&(m|=111551)):m=1920,m|=2097152;const D=ec(l)?R0(l,m,!0):void 0;if(D)return D}if(l.parent.kind===348)return Tj(l.parent);if(l.parent.kind===168&&l.parent.parent.kind===352){H.assert(!Qn(l));const m=oye(l.parent);return m&&m.symbol}if(Z_(l)){if(Ql(l))return;const m=Tn(l,dg(o7,QP,Rv)),D=m?901119:111551;if(l.kind===80){if($8(l)&&X9(l)){const A=wEe(l.parent);return A===Xt?void 0:A}const C=R0(l,D,!0,!0,kv(l));if(!C&&m){const A=Tn(l,dg(mr,xh));if(A)return Fie(l,!0,_u(A))}if(C&&m){const A=h7(l);if(A&&J2(A)&&A===C.valueDeclaration)return R0(l,D,!0,!0,zn(A))||C}return C}else{if(Xr(l))return NEe(l);if(l.kind===211||l.kind===166){const C=ar(l);return C.resolvedSymbol?C.resolvedSymbol:(l.kind===211?(TEe(l,0),C.resolvedSymbol||(C.resolvedSymbol=K4t(Rc(l.expression),j5(l.name)))):Bft(l,0),!C.resolvedSymbol&&m&&vf(l)?Fie(l):C.resolvedSymbol)}else if(Rv(l))return Fie(l)}}else if(j4t(l)){const m=l.parent.kind===183?788968:1920,D=R0(l,m,!1,!0);return D&&D!==Xt?D:Tge(l)}if(l.parent.kind===182)return R0(l,1)}function K4t(l,m){const D=YNe(l,m);if(D.length&&l.members){const C=Sge(Ag(l).members);if(D===kh(l))return C;if(C){const A=Ur(C),w=qi(D,U=>U.declaration),I=Vt(w,$s).join(",");if(A.filteredIndexSymbolCache||(A.filteredIndexSymbolCache=new Map),A.filteredIndexSymbolCache.has(I))return A.filteredIndexSymbolCache.get(I);{const U=Hs(131072,"__index");return U.declarations=qi(D,Z=>Z.declaration),U.parent=l.aliasSymbol?l.aliasSymbol:l.symbol?l.symbol:Yp(U.declarations[0].parent),A.filteredIndexSymbolCache.set(I,U),U}}}}function Fie(l,m,D){if(sm(l)){let I=R0(l,901119,m,!0,kv(l));if(!I&&at(l)&&D&&(I=Ks(kf($f(D),l.escapedText,901119))),I)return I}const C=at(l)?D:Fie(l.left,m,D),A=at(l)?l.escapedText:l.right.escapedText;if(C){const w=C.flags&111551&&qo(Wn(C),"prototype"),I=w?Wn(w):X0(C);return qo(I,A)}}function Yp(l,m){if(la(l))return wc(l)?Ks(l.symbol):void 0;const{parent:D}=l,C=D.parent;if(!(l.flags&67108864)){if(Aet(l)){const A=_u(D);return r7(l.parent)&&l.parent.propertyName===l?PMe(A):A}else if(Nj(l))return _u(D.parent);if(l.kind===80){if(r_e(l))return H4t(l);if(D.kind===208&&C.kind===206&&l===D.propertyName){const A=tS(C),w=qo(A,l.escapedText);if(w)return w}else if($P(D)&&D.name===l)return D.keywordToken===105&&fu(l)==="target"?oze(D).symbol:D.keywordToken===102&&fu(l)==="meta"?Zdt().members.get("meta"):void 0}switch(l.kind){case 80:case 81:case 211:case 166:if(!g7(l))return H4t(l);case 110:const A=tf(l,!1,!1);if(Co(A)){const U=dp(A);if(U.thisParameter)return U.thisParameter}if(Eq(l))return ya(l).symbol;case 197:return Vge(l).symbol;case 108:return ya(l).symbol;case 137:const w=l.parent;return w&&w.kind===176?w.parent.symbol:void 0;case 11:case 15:if(bv(l.parent.parent)&&XN(l.parent.parent)===l||(l.parent.kind===272||l.parent.kind===278)&&l.parent.moduleSpecifier===l||Qn(l)&&p1(ae)!==100&&xf(l.parent,!1)||dm(l.parent)||Mv(l.parent)&&zx(l.parent.parent)&&l.parent.parent.argument===l.parent)return Kh(l,l,m);if(Mo(D)&&rk(D)&&D.arguments[1]===l)return _u(D);case 9:const I=U0(D)?D.argumentExpression===l?b1(D.expression):void 0:Mv(D)&&I7(C)?Ar(C.objectType):void 0;return I&&qo(I,Al(l.text));case 90:case 100:case 39:case 86:return Dm(l.parent);case 205:return zx(l)?Yp(l.argument.literal,m):void 0;case 95:return tc(l.parent)?H.checkDefined(l.parent.symbol):void 0;case 102:case 105:return $P(l.parent)?dmt(l.parent).symbol:void 0;case 104:if(Xn(l.parent)){const U=b1(l.parent.right),Z=gze(U);return(Z==null?void 0:Z.symbol)??U.symbol}return;case 236:return ya(l).symbol;case 295:if($8(l)&&X9(l)){const U=wEe(l.parent);return U===Xt?void 0:U}default:return}}}function J0i(l){if(at(l)&&Iu(l.parent)&&l.parent.name===l){const m=j5(l),D=b1(l.parent.expression),C=D.flags&1048576?D.types:[D];return ju(C,A=>ti(kh(A),w=>nT(m,w.keyType)))}}function $0i(l){if(l&&l.kind===304)return R0(l.name,2208703)}function U0i(l){return eh(l)?l.parent.parent.moduleSpecifier?cC(l.parent.parent,l):R0(l.propertyName||l.name,2998271):R0(l,2998271)}function tS(l){if(la(l)&&!wc(l)||l.flags&67108864)return Ot;const m=lle(l),D=m&&b4(_u(m.class));if(q_(l)){const C=Ar(l);return D?xm(C,D.thisType):C}if(Z_(l))return W4t(l);if(D&&!m.isImplements){const C=Ki(Zc(D));return C?xm(C,D.thisType):Ot}if(gB(l)){const C=_u(l);return X0(C)}if(O0i(l)){const C=Yp(l);return C?X0(C):Ot}if(js(l))return gD(l,!0,0)||Ot;if(Q1(l)){const C=_u(l);return C?Wn(C):Ot}if(Aet(l)){const C=Yp(l);return C?Wn(C):Ot}if(So(l))return gD(l.parent,!0,0)||Ot;if(r_e(l)){const C=Yp(l);if(C){const A=X0(C);return Nt(A)?Wn(C):A}}return $P(l.parent)&&l.parent.keywordToken===l.kind?dmt(l.parent):Ot}function a_e(l){if(H.assert(l.kind===210||l.kind===209),l.parent.kind===250){const A=Cie(l.parent);return LF(l,A||Ot)}if(l.parent.kind===226){const A=b1(l.parent.right);return LF(l,A||Ot)}if(l.parent.kind===303){const A=Po(l.parent.parent,ys),w=a_e(A)||Ot,I=j8(A.properties,l.parent);return Amt(A,w,I)}const m=Po(l.parent,Dh),D=a_e(m)||Ot,C=G5(65,D,te,l.parent)||Ot;return Smt(m,D,m.elements.indexOf(l),C)}function q0i(l){const m=a_e(Po(l.parent.parent,KN));return m&&qo(m,l.escapedText)}function W4t(l){return gP(l)&&(l=l.parent),Jh(b1(l))}function G4t(l){const m=Dm(l.parent);return No(l)?Wn(m):X0(m)}function J4t(l){const m=l.name;switch(m.kind){case 80:return df(fu(m));case 9:case 11:return df(m.text);case 167:const D=F3(m);return u1(D,12288)?D:ct;default:return H.fail("Unsupported property name.")}}function Gze(l){l=Gh(l);const m=Vo(n0(l)),D=go(l,0).length?Mn:go(l,1).length?ba:void 0;return D&&L(n0(D),C=>{m.has(C.escapedName)||m.set(C.escapedName,C)}),Ab(m)}function o_e(l){return go(l,0).length!==0||go(l,1).length!==0}function $4t(l){const m=Z0i(l);return m?ju(m,$4t):[l]}function Z0i(l){if(Gl(l)&6)return qi(Ur(l).containingType.types,m=>qo(m,l.escapedName));if(l.flags&33554432){const{links:{leftSpread:m,rightSpread:D,syntheticOrigin:C}}=l;return m?[m,D]:C?[C]:Hy(Y0i(l))}}function Y0i(l){let m,D=l;for(;D=Ur(D).target;)m=D;return m}function Q0i(l){if(al(l))return!1;const m=Ua(l,at);if(!m)return!1;const D=m.parent;return D?!((Iu(D)||Jc(D))&&D.name===m)&&VW(m)===It:!1}function X0i(l){let m=Kh(l.parent,l);if(!m||$N(m))return!0;const D=bb(m);m=_m(m);const C=Ur(m);return C.exportsSomeValue===void 0&&(C.exportsSomeValue=D?!!(m.flags&111551):h1(x3(m),A)),C.exportsSomeValue;function A(w){return w=yc(w),w&&!!(O1(w)&111551)}}function eli(l){return QO(l.parent)&&l===l.parent.name}function tli(l,m){var D;const C=Ua(l,at);if(C){let A=VW(C,eli(C));if(A){if(A.flags&1048576){const I=Ks(A.exportSymbol);if(!m&&I.flags&944&&!(I.flags&3))return;A=I}const w=cf(A);if(w){if(w.flags&512&&((D=w.valueDeclaration)==null?void 0:D.kind)===312){const I=w.valueDeclaration,U=zn(C);return I!==U?void 0:I}return Tn(C.parent,I=>QO(I)&&_u(I)===w)}}}}function ili(l){const m=Jke(l);if(m)return m;const D=Ua(l,at);if(D){const C=pli(D);if(hC(C,111551)&&!_4(C,111551))return rp(C)}}function nli(l){return l.valueDeclaration&&js(l.valueDeclaration)&&S8(l.valueDeclaration).parent.kind===299}function U4t(l){if(l.flags&418&&l.valueDeclaration&&!la(l.valueDeclaration)){const m=Ur(l);if(m.isDeclarationWithCollidingName===void 0){const D=YE(l.valueDeclaration);if(Abe(D)||nli(l)){const C=ar(l.valueDeclaration);if(uc(D.parent,l.escapedName,111551,void 0,void 0,!1))m.isDeclarationWithCollidingName=!0;else if(C.flags&16384){const A=C.flags&32768,w=Tx(D,!1),I=D.kind===241&&Tx(D.parent,!1);m.isDeclarationWithCollidingName=!Pbe(D)&&(!A||!w&&!I)}else m.isDeclarationWithCollidingName=!1}}return m.isDeclarationWithCollidingName}return!1}function uli(l){if(!al(l)){const m=Ua(l,at);if(m){const D=VW(m);if(D&&U4t(D))return D.valueDeclaration}}}function rli(l){const m=Ua(l,Q1);if(m){const D=_u(m);if(D)return U4t(D)}return!1}function q4t(l){switch(H.assert(Ut),l.kind){case 271:return s_e(_u(l));case 273:case 274:case 276:case 281:const m=_u(l);return!!m&&s_e(m,!0);case 278:const D=l.exportClause;return!!D&&(u_(D)||Oe(D.elements,q4t));case 277:return l.expression&&l.expression.kind===80?s_e(_u(l)):!0}return!1}function ali(l){const m=Ua(l,E1);return m===void 0||m.parent.kind!==312||!U8(m)?!1:s_e(_u(m))&&m.moduleReference&&!Ql(m.moduleReference)}function s_e(l,m){if(!l)return!1;const D=sp(md(l));return D===Xt?!m||!_4(l):!!(O1(l,m,!0)&111551)&&(fk(ae)||!OW(D))}function OW(l){return pze(l)||!!l.constEnumOnlyModule}function l_e(l,m){if(H.assert(Ut),sC(l)){const D=_u(l),C=D&&Ur(D);if(C!=null&&C.referenced)return!0;const A=Ur(D).aliasTarget;if(A&&Eh(l)&32&&O1(A)&111551&&(fk(ae)||!OW(A)))return!0}return m?!!ao(l,D=>l_e(D,m)):!1}function Z4t(l){if(H4(l.body)){if(Lx(l)||e5(l))return!1;const m=_u(l),D=wb(m);return D.length>1||D.length===1&&D[0].declaration!==l}return!1}function Y4t(l){return!!fe&&!uW(l)&&!Eg(l)&&!!l.initializer&&!Yu(l,31)}function oli(l){return fe&&uW(l)&&!l.initializer&&Yu(l,31)}function sli(l){const m=Ua(l,ed);if(!m)return!1;const D=_u(m);return!D||!(D.flags&16)?!1:!!h1($f(D),C=>C.flags&111551&&EZ(C.valueDeclaration))}function lli(l){const m=Ua(l,ed);if(!m)return _t;const D=_u(m);return D&&n0(Wn(D))||_t}function DT(l){var m;const D=l.id||0;return D<0||D>=tC.length?0:((m=tC[D])==null?void 0:m.flags)||0}function jW(l){return w4t(l.parent),ar(l).enumMemberValue}function Q4t(l){switch(l.kind){case 306:case 211:case 212:return!0}return!1}function Jze(l){if(l.kind===306)return jW(l);const m=ar(l).resolvedSymbol;if(m&&m.flags&8){const D=m.valueDeclaration;if(b2(D.parent))return jW(D)}}function $ze(l){return!!(l.flags&524288)&&go(l,0).length>0}function cli(l,m){var D;const C=Ua(l,sm);if(!C||m&&(m=Ua(m),!m))return 0;let A=!1;if(vf(C)){const ce=R0(hm(C),111551,!0,!0,m);A=!!((D=ce==null?void 0:ce.declarations)!=null&&D.every(_2))}const w=R0(C,111551,!0,!0,m),I=w&&w.flags&2097152?md(w):w;A||(A=!!(w&&_4(w,111551)));const U=R0(C,788968,!0,!1,m);if(I&&I===U){const ce=sPe(!1);if(ce&&I===ce)return 9;const Fe=Wn(I);if(Fe&&Or(Fe))return A?10:1}if(!U)return A?11:0;const Z=X0(U);return Nt(Z)?A?11:0:Z.flags&3?11:u1(Z,245760)?2:u1(Z,528)?6:u1(Z,296)?3:u1(Z,2112)?4:u1(Z,402653316)?5:xs(Z)?7:u1(Z,12288)?8:$ze(Z)?10:A4(Z)?7:11}function dli(l,m,D,C,A){const w=Ua(l,Gbe);if(!w)return q.createToken(133);const I=_u(w);let U=I&&!(I.flags&133120)?Ib(Wn(I)):Ot;return U.flags&8192&&U.symbol===I&&(D|=1048576),A&&(U=S6(U)),Yt.typeToTypeNode(U,m,D|1024,C)}function hli(l,m,D,C){const A=Ua(l,Co);if(!A)return q.createToken(133);const w=dp(A);return Yt.typeToTypeNode(Zs(w),m,D|1024,C)}function fli(l,m,D,C){const A=Ua(l,Wt);if(!A)return q.createToken(133);const w=vm(W4t(A));return Yt.typeToTypeNode(w,m,D|1024,C)}function mli(l){return Ie.has(Al(l))}function VW(l,m){const D=ar(l).resolvedSymbol;if(D)return D;let C=l;if(m){const A=l.parent;Q1(A)&&l===A.name&&(C=dF(A))}return uc(C,l.escapedText,3257279,void 0,void 0,!0)}function pli(l){const m=ar(l).resolvedSymbol;return m&&m!==Xt?m:uc(l,l.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function gli(l){if(!al(l)){const m=Ua(l,at);if(m){const D=VW(m);if(D)return sp(D).valueDeclaration}}}function Eli(l){if(!al(l)){const m=Ua(l,at);if(m){const D=VW(m);if(D)return ti(sp(D).declarations,C=>{switch(C.kind){case 260:case 169:case 208:case 172:case 303:case 304:case 306:case 210:case 262:case 218:case 219:case 263:case 231:case 266:case 174:case 177:case 178:case 267:return!0}return!1})}}}function _li(l){return uq(l)||na(l)&&m_e(l)?Pb(Wn(_u(l))):!1}function Dli(l,m,D){const C=l.flags&1056?Yt.symbolToExpression(l.symbol,111551,m,void 0,D):l===du?q.createTrue():l===Ui&&q.createFalse();if(C)return C;const A=l.value;return typeof A=="object"?q.createBigIntLiteral(A):typeof A=="number"?q.createNumericLiteral(A):q.createStringLiteral(A)}function xli(l,m){const D=Wn(_u(l));return Dli(D,l,m)}function X4t(l){return l?(uC(l),zn(l).localJsxFactory||k5):k5}function Uze(l){if(l){const m=zn(l);if(m){if(m.localJsxFragmentFactory)return m.localJsxFragmentFactory;const D=m.pragmas.get("jsxfrag"),C=Ha(D)?D[0]:D;if(C)return m.localJsxFragmentFactory=G7(C.arguments.factory,Ce),m.localJsxFragmentFactory}}if(ae.jsxFragmentFactory)return G7(ae.jsxFragmentFactory,Ce)}function vli(){const l=t.getResolvedTypeReferenceDirectives();let m;return l&&(m=new Map,l.forEach(({resolvedTypeReferenceDirective:Z},ce,Fe)=>{if(!(Z!=null&&Z.resolvedFileName))return;const Te=t.getSourceFile(Z.resolvedFileName);Te&&U(Te,ce,Fe)})),{getReferencedExportContainer:tli,getReferencedImportDeclaration:ili,getReferencedDeclarationWithCollidingName:uli,isDeclarationWithCollidingName:rli,isValueAliasDeclaration:Z=>{const ce=Ua(Z);return ce&&Ut?q4t(ce):!0},hasGlobalName:mli,isReferencedAliasDeclaration:(Z,ce)=>{const Fe=Ua(Z);return Fe&&Ut?l_e(Fe,ce):!0},getNodeCheckFlags:Z=>{const ce=Ua(Z);return ce?DT(ce):0},isTopLevelValueImportEqualsWithEntityName:ali,isDeclarationVisible:pD,isImplementationOfOverload:Z4t,isRequiredInitializedParameter:Y4t,isOptionalUninitializedParameterProperty:oli,isExpandoFunctionDeclaration:sli,getPropertiesOfContainerFunction:lli,createTypeOfDeclaration:dli,createReturnTypeOfSignatureDeclaration:hli,createTypeOfExpression:fli,createLiteralConstValue:xli,isSymbolAccessible:yu,isEntityNameVisible:Uf,getConstantValue:Z=>{const ce=Ua(Z,Q4t);return ce?Jze(ce):void 0},collectLinkedAliases:qw,getReferencedValueDeclaration:gli,getReferencedValueDeclarations:Eli,getTypeReferenceSerializationKind:cli,isOptionalParameter:uW,moduleExportsSomeValue:X0i,isArgumentsLocalBinding:Q0i,getExternalModuleFileFromDeclaration:Z=>{const ce=Ua(Z,zbe);return ce&&qze(ce)},getTypeReferenceDirectivesForEntityName:A,getTypeReferenceDirectivesForSymbol:w,isLiteralConstDeclaration:_li,isLateBound:Z=>{const ce=Ua(Z,Q1),Fe=ce&&_u(ce);return!!(Fe&&Gl(Fe)&4096)},getJsxFactoryEntity:X4t,getJsxFragmentFactoryEntity:Uze,getAllAccessorDeclarations(Z){Z=Ua(Z,NU);const ce=Z.kind===178?177:178,Fe=Sl(_u(Z),ce),Te=Fe&&Fe.posD3(Z,Z,void 0),isBindingCapturedByNode:(Z,ce)=>{const Fe=Ua(Z),Te=Ua(ce);return!!Fe&&!!Te&&(na(Te)||js(Te))&&Uni(Fe,Te)},getDeclarationStatementsForSourceFile:(Z,ce,Fe,Te)=>{const $e=Ua(Z);H.assert($e&&$e.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const ut=_u(Z);return ut?ut.exports?Yt.symbolTableToDeclarationStatements(ut.exports,Z,ce,Fe,Te):[]:Z.locals?Yt.symbolTableToDeclarationStatements(Z.locals,Z,ce,Fe,Te):[]},isImportRequiredByAugmentation:D,tryFindAmbientModule:Z=>{const ce=Ua(Z),Fe=ce&&t0(ce)?ce.text:void 0;return Fe!==void 0?kge(Fe,!0):void 0}};function D(Z){const ce=zn(Z);if(!ce.symbol)return!1;const Fe=qze(Z);if(!Fe||Fe===ce)return!1;const Te=x3(ce.symbol);for(const $e of ga(Te.values()))if($e.mergeId){const ut=Ks($e);if(ut.declarations){for(const zt of ut.declarations)if(zn(zt)===Fe)return!0}}return!1}function C(Z){return Z.parent&&Z.parent.kind===233&&Z.parent.parent&&Z.parent.parent.kind===298}function A(Z){if(!m)return;let ce;Z.parent.kind===167?ce=1160127:(ce=790504,(Z.kind===80&&ck(Z)||Z.kind===211&&!C(Z))&&(ce=1160127));const Fe=R0(Z,ce,!0);return Fe&&Fe!==Xt?w(Fe,ce):void 0}function w(Z,ce){if(!m||!I(Z))return;let Fe;for(const Te of Z.declarations)if(Te.symbol&&Te.symbol.flags&ce){const $e=zn(Te),ut=m.get($e.path);if(ut)(Fe||(Fe=[])).push(ut);else return}return Fe}function I(Z){if(!Z.declarations)return!1;let ce=Z;for(;;){const Fe=cf(ce);if(Fe)ce=Fe;else break}if(ce.valueDeclaration&&ce.valueDeclaration.kind===312&&ce.flags&512)return!1;for(const Fe of Z.declarations){const Te=zn(Fe);if(m.has(Te.path))return!0}return!1}function U(Z,ce,Fe){if(!m.has(Z.path)){m.set(Z.path,[ce,Fe]);for(const{fileName:Te}of Z.referencedFiles){const $e=bQ(Te,Z.fileName),ut=t.getSourceFile($e);ut&&U(ut,ce,Fe||Z.impliedNodeFormat)}}}}function qze(l){const m=l.kind===267?ur(l.name,us):Y8(l),D=D3(m,m,void 0);if(D)return Sl(D,312)}function Cli(){for(const m of t.getSourceFiles())SAe(m,ae);m0=new Map;let l;for(const m of t.getSourceFiles())if(!m.redirectInfo){if(!cm(m)){const D=m.locals.get("globalThis");if(D!=null&&D.declarations)for(const C of D.declarations)Vs.add(Su(C,F.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));mE(Ie,m.locals)}m.jsGlobalAugmentations&&mE(Ie,m.jsGlobalAugmentations),m.patternAmbientModules&&m.patternAmbientModules.length&&(h4=Hi(h4,m.patternAmbientModules)),m.moduleAugmentations.length&&(l||(l=[])).push(m.moduleAugmentations),m.symbol&&m.symbol.globalExports&&m.symbol.globalExports.forEach((C,A)=>{Ie.has(A)||Ie.set(A,C)})}if(l)for(const m of l)for(const D of m)Yg(D.parent)&&iF(D);if(zw(Ie,Pw,F.Declaration_name_conflicts_with_built_in_global_identifier_0),Ur(st).type=we,Ur(It).type=zc("IArguments",0,!0),Ur(Xt).type=Ot,Ur(St).type=D4(16,St),Fo=zc("Array",1,!0),He=zc("Object",0,!0),di=zc("Function",0,!0),Mn=Be&&zc("CallableFunction",0,!0)||di,ba=Be&&zc("NewableFunction",0,!0)||di,nc=zc("String",0,!0),fc=zc("Number",0,!0),Cl=zc("Boolean",0,!0),Tl=zc("RegExp",0,!0),ql=V1(me),Nc=V1(ni),Nc===Ko&&(Nc=Ol(void 0,se,_t,_t,_t)),To=i1t("ReadonlyArray",1)||Fo,ip=To?oW(To,[me]):ql,bc=i1t("ThisType",1),l)for(const m of l)for(const D of m)Yg(D.parent)||iF(D);m0.forEach(({firstFile:m,secondFile:D,conflictingSymbols:C})=>{if(C.size<8)C.forEach(({isBlockScoped:A,firstFileLocations:w,secondFileLocations:I},U)=>{const Z=A?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0;for(const ce of w)p3(ce,Z,U,I);for(const ce of I)p3(ce,Z,U,w)});else{const A=ga(C.keys()).join(", ");Vs.add(Es(Su(m,F.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,A),Su(D,F.Conflicts_are_in_this_file))),Vs.add(Es(Su(D,F.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,A),Su(m,F.Conflicts_are_in_this_file)))}}),m0=void 0}function rd(l,m){if((p&m)!==m&&ae.importHelpers){const D=zn(l);if(s7(D,ae)&&!(l.flags&33554432)){const C=yli(D,l);if(C!==Xt){const A=m&~p;for(let w=1;w<=33554432;w<<=1)if(A&w)for(const I of bli(w)){if(f.has(I))continue;f.add(I);const U=yc(kf(x3(C),Al(I),111551));U?w&524288?Oe(wb(U),Z=>Cm(Z)>3)||pt(l,F.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Hx,I,4):w&1048576?Oe(wb(U),Z=>Cm(Z)>4)||pt(l,F.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Hx,I,5):w&1024&&(Oe(wb(U),Z=>Cm(Z)>2)||pt(l,F.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0,Hx,I,3)):pt(l,F.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Hx,I)}}p|=m}}}function bli(l){switch(l){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ve?["__decorate"]:["__esDecorate","__runInitializers"];case 16:return["__metadata"];case 32:return["__param"];case 64:return["__awaiter"];case 128:return["__generator"];case 256:return["__values"];case 512:return["__read"];case 1024:return["__spreadArray"];case 2048:return["__await"];case 4096:return["__asyncGenerator"];case 8192:return["__asyncDelegator"];case 16384:return["__asyncValues"];case 32768:return["__exportStar"];case 65536:return["__importStar"];case 131072:return["__importDefault"];case 262144:return["__makeTemplateObject"];case 524288:return["__classPrivateFieldGet"];case 1048576:return["__classPrivateFieldSet"];case 2097152:return["__classPrivateFieldIn"];case 4194304:return["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return H.fail("Unrecognized helper")}}function yli(l,m){return E||(E=mD(l,Hx,F.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,m)||Xt),E}function S3(l){const m=Ali(l)||kli(l);if(m!==void 0)return m;if(io(l)&&L2(l))return r1(l,F.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const D=Jl(l)?l.declarationList.flags&7:0;let C,A,w,I,U,Z=0,ce=!1,Fe=!1;for(const Te of l.modifiers)if(g1(Te)){if(gq(ve,l,l.parent,l.parent.parent)){if(ve&&(l.kind===177||l.kind===178)){const $e=dk(l.parent.members,l);if(o4($e.firstAccessor)&&l===$e.secondAccessor)return r1(l,F.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return l.kind===174&&!H4(l.body)?r1(l,F.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):r1(l,F.Decorators_are_not_valid_here);if(Z&-34849)return Zi(Te,F.Decorators_are_not_valid_here);if(Fe&&Z&98303){H.assertIsDefined(U);const $e=zn(Te);return Kb($e)?!1:(Es(pt(Te,F.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Su(U,F.Decorator_used_before_export_here)),!0)}Z|=32768,Z&98303?Z&32&&(ce=!0):Fe=!0,U??(U=Te)}else{if(Te.kind!==148){if(l.kind===171||l.kind===173)return Zi(Te,F._0_modifier_cannot_appear_on_a_type_member,Uo(Te.kind));if(l.kind===181&&(Te.kind!==126||!mr(l.parent)))return Zi(Te,F._0_modifier_cannot_appear_on_an_index_signature,Uo(Te.kind))}if(Te.kind!==103&&Te.kind!==147&&Te.kind!==87&&l.kind===168)return Zi(Te,F._0_modifier_cannot_appear_on_a_type_parameter,Uo(Te.kind));switch(Te.kind){case 87:if(l.kind!==266&&l.kind!==168)return Zi(l,F.A_class_member_cannot_have_the_0_keyword,Uo(87));const $e=l.parent;if(l.kind===168&&!($0($e)||mr($e)||u3($e)||WP($e)||CB($e)||FV($e)||n3($e)))return Zi(Te,F._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Uo(Te.kind));break;case 164:if(Z&16)return Zi(Te,F._0_modifier_already_seen,"override");if(Z&128)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(Z&8)return Zi(Te,F._0_modifier_must_precede_1_modifier,"override","readonly");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,"override","accessor");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,"override","async");Z|=16,I=Te;break;case 125:case 124:case 123:const ut=C3(_7(Te.kind));if(Z&7)return Zi(Te,F.Accessibility_modifier_already_seen);if(Z&16)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"override");if(Z&256)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"static");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"accessor");if(Z&8)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"readonly");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"async");if(l.parent.kind===268||l.parent.kind===312)return Zi(Te,F._0_modifier_cannot_appear_on_a_module_or_namespace_element,ut);if(Z&64)return Te.kind===123?Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,ut,"abstract"):Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"abstract");if(ph(l))return Zi(Te,F.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);Z|=_7(Te.kind);break;case 126:if(Z&256)return Zi(Te,F._0_modifier_already_seen,"static");if(Z&8)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","readonly");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","async");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","accessor");if(l.parent.kind===268||l.parent.kind===312)return Zi(Te,F._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"static");if(Z&64)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Z&16)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","override");Z|=256,C=Te;break;case 129:if(Z&512)return Zi(Te,F._0_modifier_already_seen,"accessor");if(Z&8)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(Z&128)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(l.kind!==172)return Zi(Te,F.accessor_modifier_can_only_appear_on_a_property_declaration);Z|=512;break;case 148:if(Z&8)return Zi(Te,F._0_modifier_already_seen,"readonly");if(l.kind!==172&&l.kind!==171&&l.kind!==181&&l.kind!==169)return Zi(Te,F.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(Z&512)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");Z|=8;break;case 95:if(ae.verbatimModuleSyntax&&!(l.flags&33554432)&&l.kind!==265&&l.kind!==264&&l.kind!==267&&l.parent.kind===312&&(ne===1||zn(l).impliedNodeFormat===1))return Zi(Te,F.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Z&32)return Zi(Te,F._0_modifier_already_seen,"export");if(Z&128)return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","declare");if(Z&64)return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","abstract");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","async");if(mr(l.parent))return Zi(Te,F._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"export");if(D===4)return Zi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"export");if(D===6)return Zi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"export");Z|=32;break;case 90:const zt=l.parent.kind===312?l.parent:l.parent.parent;if(zt.kind===267&&!N1(zt))return Zi(Te,F.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(D===4)return Zi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"default");if(D===6)return Zi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(Z&32){if(ce)return Zi(U,F.Decorators_are_not_valid_here)}else return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","default");Z|=2048;break;case 138:if(Z&128)return Zi(Te,F._0_modifier_already_seen,"declare");if(Z&1024)return Zi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Z&16)return Zi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(mr(l.parent)&&!ko(l))return Zi(Te,F._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"declare");if(D===4)return Zi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(D===6)return Zi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(l.parent.flags&33554432&&l.parent.kind===268)return Zi(Te,F.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ph(l))return Zi(Te,F._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(Z&512)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");Z|=128,A=Te;break;case 128:if(Z&64)return Zi(Te,F._0_modifier_already_seen,"abstract");if(l.kind!==263&&l.kind!==185){if(l.kind!==174&&l.kind!==172&&l.kind!==177&&l.kind!==178)return Zi(Te,F.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(l.parent.kind===263&&Yu(l.parent,64))){const dn=l.kind===172?F.Abstract_properties_can_only_appear_within_an_abstract_class:F.Abstract_methods_can_only_appear_within_an_abstract_class;return Zi(Te,dn)}if(Z&256)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Z&2)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(Z&1024&&w)return Zi(w,F._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(Z&16)return Zi(Te,F._0_modifier_must_precede_1_modifier,"abstract","override");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(mh(l)&&l.name.kind===81)return Zi(Te,F._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");Z|=64;break;case 134:if(Z&1024)return Zi(Te,F._0_modifier_already_seen,"async");if(Z&128||l.parent.flags&33554432)return Zi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"async");if(Z&64)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");Z|=1024,w=Te;break;case 103:case 147:const gi=Te.kind===103?8192:16384,Wi=Te.kind===103?"in":"out";if(l.kind!==168||!(xh(l.parent)||mr(l.parent)||jp(l.parent)))return Zi(Te,F._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Wi);if(Z&gi)return Zi(Te,F._0_modifier_already_seen,Wi);if(gi&8192&&Z&16384)return Zi(Te,F._0_modifier_must_precede_1_modifier,"in","out");Z|=gi;break}}return l.kind===176?Z&256?Zi(C,F._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):Z&16?Zi(I,F._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):Z&1024?Zi(w,F._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(l.kind===272||l.kind===271)&&Z&128?Zi(A,F.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):l.kind===169&&Z&31&&So(l.name)?Zi(l,F.A_parameter_property_may_not_be_declared_using_a_binding_pattern):l.kind===169&&Z&31&&l.dotDotDotToken?Zi(l,F.A_parameter_property_cannot_be_declared_using_a_rest_parameter):Z&1024?Bli(l,w):!1}function kli(l){if(!l.modifiers)return!1;const m=Fli(l);return m&&r1(m,F.Modifiers_cannot_appear_here)}function c_e(l,m){const D=Le(l.modifiers,Qo);return D&&D.kind!==m?D:void 0}function Fli(l){switch(l.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Le(l.modifiers,Qo);default:if(l.parent.kind===268||l.parent.kind===312)return;switch(l.kind){case 262:return c_e(l,134);case 263:case 185:return c_e(l,128);case 231:case 264:case 265:return Le(l.modifiers,Qo);case 243:return l.declarationList.flags&4?c_e(l,135):Le(l.modifiers,Qo);case 266:return c_e(l,87);default:H.assertNever(l)}}}function Ali(l){const m=Sli(l);return m&&r1(m,F.Decorators_are_not_valid_here)}function Sli(l){return Hce(l)?Le(l.modifiers,g1):void 0}function Bli(l,m){switch(l.kind){case 174:case 262:case 218:case 219:return!1}return Zi(m,F._0_modifier_cannot_be_used_here,"async")}function iS(l,m=F.Trailing_comma_not_allowed){return l&&l.hasTrailingComma?Wb(l[0],l.end-1,1,m):!1}function ept(l,m){if(l&&l.length===0){const D=l.pos-1,C=gs(m.text,l.end)+1;return Wb(m,D,C-D,F.Type_parameter_list_cannot_be_empty)}return!1}function wli(l){let m=!1;const D=l.length;for(let C=0;C!!m.initializer||So(m.name)||$_(m))}function Lli(l){if(Ce>=3){const m=l.body&&po(l.body)&&Rce(l.body.statements);if(m){const D=Tli(l.parameters);if(S(D)){L(D,A=>{Es(pt(A,F.This_parameter_is_not_allowed_with_use_strict_directive),Su(m,F.use_strict_directive_used_here))});const C=D.map((A,w)=>w===0?Su(A,F.Non_simple_parameter_declared_here):Su(A,F.and_here));return Es(pt(m,F.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...C),!0}}}return!1}function d_e(l){const m=zn(l);return S3(l)||ept(l.typeParameters,m)||wli(l.parameters)||Pli(l,m)||$0(l)&&Lli(l)}function Nli(l){const m=zn(l);return Oli(l)||ept(l.typeParameters,m)}function Pli(l,m){if(!q0(l))return!1;l.typeParameters&&!(S(l.typeParameters)>1||l.typeParameters.hasTrailingComma||l.typeParameters[0].constraint)&&m&&jc(m.fileName,[".mts",".cts"])&&Zi(l.typeParameters[0],F.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:D}=l,C=s0(m,D.pos).line,A=s0(m,D.end).line;return C!==A&&Zi(D,F.Line_terminator_not_permitted_before_arrow)}function Mli(l){const m=l.parameters[0];if(l.parameters.length!==1)return Zi(m?m.name:l,F.An_index_signature_must_have_exactly_one_parameter);if(iS(l.parameters,F.An_index_signature_cannot_have_a_trailing_comma),m.dotDotDotToken)return Zi(m.dotDotDotToken,F.An_index_signature_cannot_have_a_rest_parameter);if(jq(m))return Zi(m.name,F.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(m.questionToken)return Zi(m.questionToken,F.An_index_signature_parameter_cannot_have_a_question_mark);if(m.initializer)return Zi(m.name,F.An_index_signature_parameter_cannot_have_an_initializer);if(!m.type)return Zi(m.name,F.An_index_signature_parameter_must_have_a_type_annotation);const D=Ar(m.type);return yE(D,C=>!!(C.flags&8576))||kz(D)?Zi(m.name,F.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):e4(D,Bge)?l.type?!1:Zi(l,F.An_index_signature_must_have_a_type_annotation):Zi(m.name,F.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function zli(l){return S3(l)||Mli(l)}function Ili(l,m){if(m&&m.length===0){const D=zn(l),C=m.pos-1,A=gs(D.text,m.end)+1;return Wb(D,C,A-C,F.Type_argument_list_cannot_be_empty)}return!1}function Aie(l,m){return iS(m)||Ili(l,m)}function Rli(l){return l.questionDotToken||l.flags&64?Zi(l.template,F.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function tpt(l){const m=l.types;if(iS(m))return!0;if(m&&m.length===0){const D=Uo(l.token);return Wb(l,m.pos,0,F._0_list_cannot_be_empty,D)}return Oe(m,ipt)}function ipt(l){return c5(l)&&KP(l.expression)&&l.typeArguments?Zi(l,F.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Aie(l,l.typeArguments)}function Oli(l){let m=!1,D=!1;if(!S3(l)&&l.heritageClauses)for(const C of l.heritageClauses){if(C.token===96){if(m)return r1(C,F.extends_clause_already_seen);if(D)return r1(C,F.extends_clause_must_precede_implements_clause);if(C.types.length>1)return r1(C.types[1],F.Classes_can_only_extend_a_single_class);m=!0}else{if(H.assert(C.token===119),D)return r1(C,F.implements_clause_already_seen);D=!0}tpt(C)}}function jli(l){let m=!1;if(l.heritageClauses)for(const D of l.heritageClauses){if(D.token===96){if(m)return r1(D,F.extends_clause_already_seen);m=!0}else return H.assert(D.token===119),r1(D,F.Interface_declaration_cannot_have_implements_clause);tpt(D)}return!1}function h_e(l){if(l.kind!==167)return!1;const m=l;return m.expression.kind===226&&m.expression.operatorToken.kind===28?Zi(m.expression,F.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Zze(l){if(l.asteriskToken){if(H.assert(l.kind===262||l.kind===218||l.kind===174),l.flags&33554432)return Zi(l.asteriskToken,F.Generators_are_not_allowed_in_an_ambient_context);if(!l.body)return Zi(l.asteriskToken,F.An_overload_signature_cannot_be_declared_as_a_generator)}}function Yze(l,m){return!!l&&Zi(l,m)}function npt(l,m){return!!l&&Zi(l,m)}function Vli(l,m){const D=new Map;for(const C of l.properties){if(C.kind===305){if(m){const I=l0(C.expression);if(Dh(I)||ys(I))return Zi(C.expression,F.A_rest_element_cannot_contain_a_binding_pattern)}continue}const A=C.name;if(A.kind===167&&h_e(A),C.kind===304&&!m&&C.objectAssignmentInitializer&&Zi(C.equalsToken,F.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern),A.kind===81&&Zi(A,F.Private_identifiers_are_not_allowed_outside_class_bodies),Hp(C)&&C.modifiers)for(const I of C.modifiers)Qo(I)&&(I.kind!==134||C.kind!==174)&&Zi(I,F._0_modifier_cannot_be_used_here,Hc(I));else if(LFe(C)&&C.modifiers)for(const I of C.modifiers)Qo(I)&&Zi(I,F._0_modifier_cannot_be_used_here,Hc(I));let w;switch(C.kind){case 304:case 303:npt(C.exclamationToken,F.A_definite_assignment_assertion_is_not_permitted_in_this_context),Yze(C.questionToken,F.An_object_member_cannot_be_declared_optional),A.kind===9&&eIe(A),w=4;break;case 174:w=8;break;case 177:w=1;break;case 178:w=2;break;default:H.assertNever(C,"Unexpected syntax kind:"+C.kind)}if(!m){const I=tIe(A);if(I===void 0)continue;const U=D.get(I);if(!U)D.set(I,w);else if(w&8&&U&8)Zi(A,F.Duplicate_identifier_0,Hc(A));else if(w&4&&U&4)Zi(A,F.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Hc(A));else if(w&3&&U&3)if(U!==3&&w!==U)D.set(I,w|U);else return Zi(A,F.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Zi(A,F.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Hli(l){Kli(l.tagName),Aie(l,l.typeArguments);const m=new Map;for(const D of l.attributes.properties){if(D.kind===293)continue;const{name:C,initializer:A}=D,w=MP(C);if(!m.get(w))m.set(w,!0);else return Zi(C,F.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(A&&A.kind===294&&!A.expression)return Zi(A,F.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Kli(l){if(Iu(l)&&gg(l.expression))return Zi(l.expression,F.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(gg(l)&&iZ(ae)&&!aB(l.namespace.escapedText))return Zi(l,F.React_components_cannot_include_JSX_namespace_names)}function Wli(l){if(l.expression&&eM(l.expression))return Zi(l.expression,F.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function upt(l){if(SD(l))return!0;if(l.kind===250&&l.awaitModifier&&!(l.flags&65536)){const m=zn(l);if(fq(l)){if(!Kb(m))switch(s7(m,ae)||Vs.add(Su(l.awaitModifier,F.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module)),ne){case 100:case 199:if(m.impliedNodeFormat===1){Vs.add(Su(l.awaitModifier,F.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(Ce>=4)break;default:Vs.add(Su(l.awaitModifier,F.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!Kb(m)){const D=Su(l.awaitModifier,F.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),C=Nm(l);if(C&&C.kind!==176){H.assert((kd(C)&2)===0,"Enclosing function should never be an async function.");const A=Su(C,F.Did_you_mean_to_mark_this_function_as_async);Es(D,A)}return Vs.add(D),!0}return!1}if(SV(l)&&!(l.flags&65536)&&at(l.initializer)&&l.initializer.escapedText==="async")return Zi(l.initializer,F.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(l.initializer.kind===261){const m=l.initializer;if(!Xze(m)){const D=m.declarations;if(!D.length)return!1;if(D.length>1){const A=l.kind===249?F.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:F.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return r1(m.declarations[1],A)}const C=D[0];if(C.initializer){const A=l.kind===249?F.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:F.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Zi(C.name,A)}if(C.type){const A=l.kind===249?F.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:F.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Zi(C,A)}}}return!1}function Gli(l){if(!(l.flags&33554432)&&l.parent.kind!==187&&l.parent.kind!==264){if(Ce<1)return Zi(l.name,F.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(Ce<2&&Xr(l.name))return Zi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(l.body===void 0&&!Yu(l,64))return Wb(l,l.end-1,1,F._0_expected,"{")}if(l.body){if(Yu(l,64))return Zi(l,F.An_abstract_accessor_cannot_have_an_implementation);if(l.parent.kind===187||l.parent.kind===264)return Zi(l.body,F.An_implementation_cannot_be_declared_in_ambient_contexts)}if(l.typeParameters)return Zi(l.name,F.An_accessor_cannot_have_type_parameters);if(!Jli(l))return Zi(l.name,l.kind===177?F.A_get_accessor_cannot_have_parameters:F.A_set_accessor_must_have_exactly_one_parameter);if(l.kind===178){if(l.type)return Zi(l.name,F.A_set_accessor_cannot_have_a_return_type_annotation);const m=H.checkDefined(hP(l),"Return value does not match parameter count assertion.");if(m.dotDotDotToken)return Zi(m.dotDotDotToken,F.A_set_accessor_cannot_have_rest_parameter);if(m.questionToken)return Zi(m.questionToken,F.A_set_accessor_cannot_have_an_optional_parameter);if(m.initializer)return Zi(l.name,F.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Jli(l){return Qze(l)||l.parameters.length===(l.kind===177?0:1)}function Qze(l){if(l.parameters.length===(l.kind===177?1:2))return T2(l)}function $li(l){if(l.operator===158){if(l.type.kind!==155)return Zi(l.type,F._0_expected,Uo(155));let m=Lj(l.parent);if(Qn(m)&&kk(m)){const D=h7(m);D&&(m=eB(D)||D)}switch(m.kind){case 260:const D=m;if(D.name.kind!==80)return Zi(l,F.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!qN(D))return Zi(l,F.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(D.parent.flags&2))return Zi(m.name,F.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!No(m)||!fP(m))return Zi(m.name,F.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Yu(m,8))return Zi(m.name,F.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Zi(l,F.unique_symbol_types_are_not_allowed_here)}}else if(l.operator===148&&l.type.kind!==188&&l.type.kind!==189)return r1(l,F.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Uo(155))}function Jz(l,m){if(EXt(l))return Zi(l,m)}function rpt(l){if(d_e(l))return!0;if(l.kind===174){if(l.parent.kind===210){if(l.modifiers&&!(l.modifiers.length===1&&Pn(l.modifiers).kind===134))return r1(l,F.Modifiers_cannot_appear_here);if(Yze(l.questionToken,F.An_object_member_cannot_be_declared_optional))return!0;if(npt(l.exclamationToken,F.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(l.body===void 0)return Wb(l,l.end-1,1,F._0_expected,"{")}if(Zze(l))return!0}if(mr(l.parent)){if(Ce<2&&Xr(l.name))return Zi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(l.flags&33554432)return Jz(l.name,F.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(l.kind===174&&!l.body)return Jz(l.name,F.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(l.parent.kind===264)return Jz(l.name,F.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(l.parent.kind===187)return Jz(l.name,F.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Uli(l){let m=l;for(;m;){if(L8(m))return Zi(l,F.Jump_target_cannot_cross_function_boundary);switch(m.kind){case 256:if(l.label&&m.label.escapedText===l.label.escapedText)return l.kind===251&&!Tx(m.statement,!0)?Zi(l,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(l.kind===252&&!l.label)return!1;break;default:if(Tx(m,!1)&&!l.label)return!1;break}m=m.parent}if(l.label){const D=l.kind===252?F.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Zi(l,D)}else{const D=l.kind===252?F.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:F.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Zi(l,D)}}function qli(l){if(l.dotDotDotToken){const m=l.parent.elements;if(l!==Cr(m))return Zi(l,F.A_rest_element_must_be_last_in_a_destructuring_pattern);if(iS(m,F.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),l.propertyName)return Zi(l.name,F.A_rest_element_cannot_have_a_property_name)}if(l.dotDotDotToken&&l.initializer)return Wb(l,l.initializer.pos-1,1,F.A_rest_element_cannot_have_an_initializer)}function apt(l){return Pm(l)||l.kind===224&&l.operator===41&&l.operand.kind===9}function Zli(l){return l.kind===10||l.kind===224&&l.operator===41&&l.operand.kind===10}function Yli(l){if((Iu(l)||U0(l)&&apt(l.argumentExpression))&&ec(l.expression))return!!(Rc(l).flags&1056)}function opt(l){const m=l.initializer;if(m){const D=!(apt(m)||Yli(m)||m.kind===112||m.kind===97||Zli(m));if((uq(l)||na(l)&&m_e(l))&&!l.type){if(D)return Zi(m,F.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Zi(m,F.Initializers_are_not_allowed_in_ambient_contexts)}}function Qli(l){const m=Gb(l),D=m&7;if(So(l.name))switch(D){case 6:return Zi(l,F._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Zi(l,F._0_declarations_may_not_have_binding_patterns,"using")}if(l.parent.parent.kind!==249&&l.parent.parent.kind!==250){if(m&33554432)opt(l);else if(!l.initializer){if(So(l.name)&&!So(l.parent))return Zi(l,F.A_destructuring_declaration_must_have_an_initializer);switch(D){case 6:return Zi(l,F._0_declarations_must_be_initialized,"await using");case 4:return Zi(l,F._0_declarations_must_be_initialized,"using");case 2:return Zi(l,F._0_declarations_must_be_initialized,"const")}}}if(l.exclamationToken&&(l.parent.parent.kind!==243||!l.type||l.initializer||m&33554432)){const C=l.initializer?F.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:l.type?F.A_definite_assignment_assertion_is_not_permitted_in_this_context:F.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Zi(l.exclamationToken,C)}return(ne<5||zn(l).impliedNodeFormat===1)&&ne!==4&&!(l.parent.parent.flags&33554432)&&Yu(l.parent.parent,32)&&spt(l.name),!!D&&lpt(l.name)}function spt(l){if(l.kind===80){if(fu(l)==="__esModule")return tci("noEmit",l,F.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const m=l.elements;for(const D of m)if(!Fd(D))return spt(D.name)}return!1}function lpt(l){if(l.kind===80){if(l.escapedText==="let")return Zi(l,F.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const m=l.elements;for(const D of m)Fd(D)||lpt(D.name)}return!1}function Xze(l){const m=l.declarations;if(iS(l.declarations))return!0;if(!l.declarations.length)return Wb(l,m.pos,m.end-m.pos,F.Variable_declaration_list_cannot_be_empty);const D=l.flags&7;return(D===4||D===6)&&hY(l.parent)?Zi(l,D===4?F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:F.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):D===6?Fmt(l):!1}function cpt(l){switch(l.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return cpt(l.parent)}return!0}function Xli(l){if(!cpt(l.parent)){const m=Gb(l.declarationList)&7;if(m){const D=m===1?"let":m===2?"const":m===4?"using":m===6?"await using":H.fail("Unknown BlockScope flag");return Zi(l,F._0_declarations_can_only_be_declared_inside_a_block,D)}}}function eci(l){const m=l.name.escapedText;switch(l.keywordToken){case 105:if(m!=="target")return Zi(l.name,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Yr(l.name.escapedText),Uo(l.keywordToken),"target");break;case 102:if(m!=="meta")return Zi(l.name,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Yr(l.name.escapedText),Uo(l.keywordToken),"meta");break}}function Kb(l){return l.parseDiagnostics.length>0}function r1(l,m,...D){const C=zn(l);if(!Kb(C)){const A=QE(C,l.pos);return Vs.add(Rd(C,A.start,A.length,m,...D)),!0}return!1}function Wb(l,m,D,C,...A){const w=zn(l);return Kb(w)?!1:(Vs.add(Rd(w,m,D,C,...A)),!0)}function tci(l,m,D,...C){const A=zn(m);return Kb(A)?!1:(A5(l,m,D,...C),!0)}function Zi(l,m,...D){const C=zn(l);return Kb(C)?!1:(Vs.add(Su(l,m,...D)),!0)}function ici(l){const m=Qn(l)?Oq(l):void 0,D=l.typeParameters||m&&Ki(m);if(D){const C=D.pos===D.end?D.pos:gs(zn(l).text,D.pos);return Wb(l,C,D.end-C,F.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function nci(l){const m=l.type||U4(l);if(m)return Zi(m,F.Type_annotation_cannot_appear_on_a_constructor_declaration)}function uci(l){if(Ps(l.name)&&Xn(l.name.expression)&&l.name.expression.operatorToken.kind===103)return Zi(l.parent.members[0],F.A_mapped_type_may_not_declare_properties_or_methods);if(mr(l.parent)){if(us(l.name)&&l.name.text==="constructor")return Zi(l.name,F.Classes_may_not_have_a_field_named_constructor);if(Jz(l.name,F.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(Ce<2&&Xr(l.name))return Zi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Ce<2&&ef(l))return Zi(l.name,F.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ef(l)&&Yze(l.questionToken,F.An_accessor_property_cannot_be_declared_optional))return!0}else if(l.parent.kind===264){if(Jz(l.name,F.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(H.assertNode(l,Mm),l.initializer)return Zi(l.initializer,F.An_interface_property_cannot_have_an_initializer)}else if(fm(l.parent)){if(Jz(l.name,F.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(H.assertNode(l,Mm),l.initializer)return Zi(l.initializer,F.A_type_literal_property_cannot_have_an_initializer)}if(l.flags&33554432&&opt(l),ko(l)&&l.exclamationToken&&(!mr(l.parent)||!l.type||l.initializer||l.flags&33554432||No(l)||P2(l))){const m=l.initializer?F.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:l.type?F.A_definite_assignment_assertion_is_not_permitted_in_this_context:F.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Zi(l.exclamationToken,m)}}function rci(l){return l.kind===264||l.kind===265||l.kind===272||l.kind===271||l.kind===278||l.kind===277||l.kind===270||Yu(l,2208)?!1:r1(l,F.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function aci(l){for(const m of l.statements)if((Q1(m)||m.kind===243)&&rci(m))return!0;return!1}function oci(l){return!!(l.flags&33554432)&&aci(l)}function SD(l){if(l.flags&33554432){if(!ar(l).hasReportedStatementInAmbientContext&&(Co(l.parent)||wx(l.parent)))return ar(l).hasReportedStatementInAmbientContext=r1(l,F.An_implementation_cannot_be_declared_in_ambient_contexts);if(l.parent.kind===241||l.parent.kind===268||l.parent.kind===312){const D=ar(l.parent);if(!D.hasReportedStatementInAmbientContext)return D.hasReportedStatementInAmbientContext=r1(l,F.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function eIe(l){const m=Hc(l).includes("."),D=l.numericLiteralFlags&16;m||D||+l.text<=9007199254740991||i1(!1,Su(l,F.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function sci(l){return!!(!(Mv(l.parent)||zv(l.parent)&&Mv(l.parent.parent))&&Ce<7&&Zi(l,F.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function lci(l,m,...D){const C=zn(l);if(!Kb(C)){const A=QE(C,l.pos);return Vs.add(Rd(C,Ec(A),0,m,...D)),!0}return!1}function cci(){return uh||(uh=[],Ie.forEach((l,m)=>{jde.test(m)&&uh.push(l)})),uh}function dci(l){var m;return l.isTypeOnly&&l.name&&l.namedBindings?Zi(l,F.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):l.isTypeOnly&&((m=l.namedBindings)==null?void 0:m.kind)===275?dpt(l.namedBindings):!1}function dpt(l){return!!L(l.elements,m=>{if(m.isTypeOnly)return r1(m,m.kind===276?F.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:F.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function hci(l){if(ae.verbatimModuleSyntax&&ne===1)return Zi(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ne===5)return Zi(l,F.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(l.typeArguments)return Zi(l,F.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const m=l.arguments;if(ne!==99&&ne!==199&&ne!==100&&(iS(m),m.length>1)){const C=m[1];return Zi(C,F.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(m.length===0||m.length>2)return Zi(l,F.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const D=Le(m,uE);return D?Zi(D,F.Argument_of_dynamic_import_cannot_be_spread_element):!1}function fci(l,m){const D=Gu(l);if(D&20&&m.flags&1048576)return Le(m.types,C=>{if(C.flags&524288){const A=D&Gu(C);if(A&4)return l.target===C.target;if(A&16)return!!l.aliasSymbol&&l.aliasSymbol===C.aliasSymbol}return!1})}function mci(l,m){if(Gu(l)&128&&yE(m,H5))return Le(m.types,D=>!H5(D))}function pci(l,m){let D=0;if(go(l,D).length>0||(D=1,go(l,D).length>0))return Le(m.types,A=>go(A,D).length>0)}function gci(l,m){let D;if(!(l.flags&406978556)){let C=0;for(const A of m.types)if(!(A.flags&406978556)){const w=Ds([k_(l),k_(A)]);if(w.flags&4194304)return A;if(Tg(w)||w.flags&1048576){const I=w.flags&1048576?ui(w.types,Tg):1;I>=C&&(D=A,C=I)}}}return D}function Eci(l){if(jl(l,67108864)){const m=Ic(l,D=>!(D.flags&402784252));if(!(m.flags&131072))return m}return l}function hpt(l,m,D){if(m.flags&1048576&&l.flags&2621440){const C=Bht(m,l);if(C)return C;const A=n0(l);if(A){const w=Sht(A,m);if(w){const I=jPe(m,Vt(w,U=>[()=>Wn(U),U.escapedName]),D);if(I!==m)return I}}}}function tIe(l){const m=sk(l);return m||(Ps(l)?fMe(b1(l.expression)):void 0)}function f_e(l){return Jn===l||(Jn=l,an=m2(l)),an}function Gb(l){return ji===l||(ji=l,xn=QD(l)),xn}function m_e(l){const m=Gb(l)&7;return m===2||m===4||m===6}}function kPt(t){return!wx(t)}function Fet(t){return t.kind!==262&&t.kind!==174||!!t.body}function Aet(t){switch(t.parent.kind){case 276:case 281:return at(t);default:return X3(t)}}function Bet(t){switch(t){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function th(t){return!!(t.flags&1)}function Ode(t){return!!(t.flags&2)}function FPt(t){return{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:Lo(t,t.getSymlinkCache),getPackageJsonInfoCache:()=>{var u;return(u=t.getPackageJsonInfoCache)==null?void 0:u.call(t)},useCaseSensitiveFileNames:Lo(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:u=>t.getProjectReferenceRedirect(u),isSourceOfProjectReferenceRedirect:u=>t.isSourceOfProjectReferenceRedirect(u),fileExists:u=>t.fileExists(u),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?u=>t.readFile(u):void 0}}var jde,YY,MAe,zAe,IAe,RAe,QY,Vde,XY,eQ,wet,tQ,OAe,Rm,Hde,APt=o({"src/compiler/checker.ts"(){Bo(),NAe(),Wy(),jde=/^".+"$/,YY="(anonymous)",MAe=1,zAe=1,IAe=1,RAe=1,QY=(t=>(t[t.None=0]="None",t[t.TypeofEQString=1]="TypeofEQString",t[t.TypeofEQNumber=2]="TypeofEQNumber",t[t.TypeofEQBigInt=4]="TypeofEQBigInt",t[t.TypeofEQBoolean=8]="TypeofEQBoolean",t[t.TypeofEQSymbol=16]="TypeofEQSymbol",t[t.TypeofEQObject=32]="TypeofEQObject",t[t.TypeofEQFunction=64]="TypeofEQFunction",t[t.TypeofEQHostObject=128]="TypeofEQHostObject",t[t.TypeofNEString=256]="TypeofNEString",t[t.TypeofNENumber=512]="TypeofNENumber",t[t.TypeofNEBigInt=1024]="TypeofNEBigInt",t[t.TypeofNEBoolean=2048]="TypeofNEBoolean",t[t.TypeofNESymbol=4096]="TypeofNESymbol",t[t.TypeofNEObject=8192]="TypeofNEObject",t[t.TypeofNEFunction=16384]="TypeofNEFunction",t[t.TypeofNEHostObject=32768]="TypeofNEHostObject",t[t.EQUndefined=65536]="EQUndefined",t[t.EQNull=131072]="EQNull",t[t.EQUndefinedOrNull=262144]="EQUndefinedOrNull",t[t.NEUndefined=524288]="NEUndefined",t[t.NENull=1048576]="NENull",t[t.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",t[t.Truthy=4194304]="Truthy",t[t.Falsy=8388608]="Falsy",t[t.IsUndefined=16777216]="IsUndefined",t[t.IsNull=33554432]="IsNull",t[t.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",t[t.All=134217727]="All",t[t.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",t[t.BaseStringFacts=12582401]="BaseStringFacts",t[t.StringStrictFacts=16317953]="StringStrictFacts",t[t.StringFacts=16776705]="StringFacts",t[t.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",t[t.EmptyStringFacts=12582401]="EmptyStringFacts",t[t.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",t[t.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",t[t.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",t[t.BaseNumberFacts=12582146]="BaseNumberFacts",t[t.NumberStrictFacts=16317698]="NumberStrictFacts",t[t.NumberFacts=16776450]="NumberFacts",t[t.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",t[t.ZeroNumberFacts=12582146]="ZeroNumberFacts",t[t.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",t[t.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",t[t.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",t[t.BaseBigIntFacts=12581636]="BaseBigIntFacts",t[t.BigIntStrictFacts=16317188]="BigIntStrictFacts",t[t.BigIntFacts=16775940]="BigIntFacts",t[t.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",t[t.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",t[t.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",t[t.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",t[t.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",t[t.BaseBooleanFacts=12580616]="BaseBooleanFacts",t[t.BooleanStrictFacts=16316168]="BooleanStrictFacts",t[t.BooleanFacts=16774920]="BooleanFacts",t[t.FalseStrictFacts=12121864]="FalseStrictFacts",t[t.FalseFacts=12580616]="FalseFacts",t[t.TrueStrictFacts=7927560]="TrueStrictFacts",t[t.TrueFacts=16774920]="TrueFacts",t[t.SymbolStrictFacts=7925520]="SymbolStrictFacts",t[t.SymbolFacts=16772880]="SymbolFacts",t[t.ObjectStrictFacts=7888800]="ObjectStrictFacts",t[t.ObjectFacts=16736160]="ObjectFacts",t[t.FunctionStrictFacts=7880640]="FunctionStrictFacts",t[t.FunctionFacts=16728e3]="FunctionFacts",t[t.VoidFacts=9830144]="VoidFacts",t[t.UndefinedFacts=26607360]="UndefinedFacts",t[t.NullFacts=42917664]="NullFacts",t[t.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",t[t.EmptyObjectFacts=83886079]="EmptyObjectFacts",t[t.UnknownFacts=83886079]="UnknownFacts",t[t.AllTypeofNE=556800]="AllTypeofNE",t[t.OrFactsMask=8256]="OrFactsMask",t[t.AndFactsMask=134209471]="AndFactsMask",t))(QY||{}),Vde=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),XY=(t=>(t[t.Normal=0]="Normal",t[t.Contextual=1]="Contextual",t[t.Inferential=2]="Inferential",t[t.SkipContextSensitive=4]="SkipContextSensitive",t[t.SkipGenericFunctions=8]="SkipGenericFunctions",t[t.IsForSignatureHelp=16]="IsForSignatureHelp",t[t.RestBindingElement=32]="RestBindingElement",t[t.TypeOnly=64]="TypeOnly",t))(XY||{}),eQ=(t=>(t[t.None=0]="None",t[t.BivariantCallback=1]="BivariantCallback",t[t.StrictCallback=2]="StrictCallback",t[t.IgnoreReturnTypes=4]="IgnoreReturnTypes",t[t.StrictArity=8]="StrictArity",t[t.StrictTopSignature=16]="StrictTopSignature",t[t.Callback=3]="Callback",t))(eQ||{}),wet=Q$(Fet,kPt),tQ=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),OAe=class{},(t=>{t.JSX="JSX",t.IntrinsicElements="IntrinsicElements",t.ElementClass="ElementClass",t.ElementAttributesPropertyNameContainer="ElementAttributesProperty",t.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",t.Element="Element",t.ElementType="ElementType",t.IntrinsicAttributes="IntrinsicAttributes",t.IntrinsicClassAttributes="IntrinsicClassAttributes",t.LibraryManagedAttributes="LibraryManagedAttributes"})(Rm||(Rm={})),Hde=class V6t{constructor(u,s,d){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var f;s instanceof V6t;)s=s.inner;this.inner=s,this.moduleResolverHost=d,this.context=u,this.canTrackSymbol=!!((f=this.inner)!=null&&f.trackSymbol)}trackSymbol(u,s,d){var f,p;if((f=this.inner)!=null&&f.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(u,s,d))return this.onDiagnosticReported(),!0;u.flags&262144||((p=this.context).trackedSymbols??(p.trackedSymbols=[])).push([u,s,d])}return!1}reportInaccessibleThisError(){var u;(u=this.inner)!=null&&u.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(u){var s;(s=this.inner)!=null&&s.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(u))}reportInaccessibleUniqueSymbolError(){var u;(u=this.inner)!=null&&u.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var u;(u=this.inner)!=null&&u.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(u){var s;(s=this.inner)!=null&&s.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(u))}reportTruncationError(){var u;(u=this.inner)!=null&&u.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(u,s){var d;(d=this.inner)!=null&&d.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(u,s))}trackExternalModuleSymbolOfImportTypeNode(u){var s;(s=this.inner)!=null&&s.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(u))}reportNonlocalAugmentation(u,s,d){var f;(f=this.inner)!=null&&f.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(u,s,d))}reportNonSerializableProperty(u){var s;(s=this.inner)!=null&&s.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(u))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function yt(t,u,s,d){if(t===void 0)return t;const f=u(t);let p;if(f!==void 0)return Ha(f)?p=(d||LPt)(f):p=f,H.assertNode(p,s),p}function kn(t,u,s,d,f){if(t===void 0)return t;const p=t.length;(d===void 0||d<0)&&(d=0),(f===void 0||f>p-d)&&(f=p-d);let E,v=-1,b=-1;d>0||fp-d)&&(f=p-d),Tet(t,u,s,d,f)}function Tet(t,u,s,d,f){let p;const E=t.length;(d>0||f=2&&(f=SPt(f,s)),s.setLexicalEnvironmentFlags(1,!1)),s.suspendLexicalEnvironment(),f}function SPt(t,u){let s;for(let d=0;d{const E=dv,addSource:Ge,setSourceContent:Ae,addName:De,addMapping:ft,appendSourceMap:Ye,toJSON:Ie,toString:()=>JSON.stringify(Ie())};function Ge(St){p();const It=i7(d,St,t.getCurrentDirectory(),t.getCanonicalFileName,!0);let ei=B.get(It);return ei===void 0&&(ei=b.length,b.push(It),v.push(St),B.set(It,ei)),E(),ei}function Ae(St,It){if(p(),It!==null){for(k||(k=[]);k.lengthIt||Se===It&&Ne>ei)}function ft(St,It,ei,ht,Ut,Ni){H.assert(St>=Ce,"generatedLine cannot backtrack"),H.assert(It>=0,"generatedCharacter cannot be negative"),H.assert(ei===void 0||ei>=0,"sourceIndex cannot be negative"),H.assert(ht===void 0||ht>=0,"sourceLine cannot be negative"),H.assert(Ut===void 0||Ut>=0,"sourceCharacter cannot be negative"),p(),(Ke(St,It)||Je(ei,ht,Ut))&&(Gt(),Ce=St,ne=It,xe=!1,Be=!1,fe=!0),ei!==void 0&&ht!==void 0&&Ut!==void 0&&(ve=ei,Se=ht,Ne=Ut,xe=!0,Ni!==void 0&&(pe=Ni,Be=!0)),E()}function Ye(St,It,ei,ht,Ut,Ni){H.assert(St>=Ce,"generatedLine cannot backtrack"),H.assert(It>=0,"generatedCharacter cannot be negative"),p();const ji=[];let xn;const Jn=Gde(ei.mappings);for(const an of Jn){if(Ni&&(an.generatedLine>Ni.line||an.generatedLine===Ni.line&&an.generatedCharacter>Ni.character))break;if(Ut&&(an.generatedLine=1024&&Yt()}function Gt(){if(!(!fe||!Ve())){if(p(),J0&&(j+=String.fromCharCode.apply(void 0,z),z.length=0)}function Ie(){return Gt(),Yt(),{version:3,file:u,sourceRoot:s,sources:b,names:T,mappings:j,sourcesContent:k}}function st(St){St<0?St=(-St<<1)+1:St=St<<1;do{let It=St&31;St=St>>5,St>0&&(It=It|32),We(MPt(It))}while(St>0)}}function Kde(t,u){return{getLineCount:()=>u.length,getLineText:s=>t.substring(u[s],u[s+1])}}function VAe(t){for(let u=t.getLineCount()-1;u>=0;u--){const s=t.getLineText(u),d=nQ.exec(s);if(d)return d[1].trimEnd();if(!s.match(uQ))break}}function PPt(t){return typeof t=="string"||t===null}function HAe(t){return t!==null&&typeof t=="object"&&t.version===3&&typeof t.file=="string"&&typeof t.mappings=="string"&&Ha(t.sources)&&ye(t.sources,Ja)&&(t.sourceRoot===void 0||t.sourceRoot===null||typeof t.sourceRoot=="string")&&(t.sourcesContent===void 0||t.sourcesContent===null||Ha(t.sourcesContent)&&ye(t.sourcesContent,PPt))&&(t.names===void 0||t.names===null||Ha(t.names)&&ye(t.names,Ja))}function Wde(t){try{const u=JSON.parse(t);if(HAe(u))return u}catch{}}function Gde(t){let u=!1,s=0,d=0,f=0,p=0,E=0,v=0,b=0,B;return{get pos(){return s},get error(){return B},get state(){return k(!0,!0)},next(){for(;!u&&s=t.length)return M("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const ge=zPt(t.charCodeAt(s));if(ge===-1)return M("Invalid character in VLQ"),-1;Y=(ge&32)!==0,se=se|(ge&31)<>1,se=-se):se=se>>1,se}}function Net(t,u){return t===u||t.generatedLine===u.generatedLine&&t.generatedCharacter===u.generatedCharacter&&t.sourceIndex===u.sourceIndex&&t.sourceLine===u.sourceLine&&t.sourceCharacter===u.sourceCharacter&&t.nameIndex===u.nameIndex}function KAe(t){return t.sourceIndex!==void 0&&t.sourceLine!==void 0&&t.sourceCharacter!==void 0}function MPt(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:t===62?43:t===63?47:H.fail(`${t}: not a base64 value`)}function zPt(t){return t>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:t===43?62:t===47?63:-1}function Pet(t){return t.sourceIndex!==void 0&&t.sourcePosition!==void 0}function Met(t,u){return t.generatedPosition===u.generatedPosition&&t.sourceIndex===u.sourceIndex&&t.sourcePosition===u.sourcePosition}function IPt(t,u){return H.assert(t.sourceIndex===u.sourceIndex),nl(t.sourcePosition,u.sourcePosition)}function RPt(t,u){return nl(t.generatedPosition,u.generatedPosition)}function OPt(t){return t.sourcePosition}function jPt(t){return t.generatedPosition}function WAe(t,u,s){const d=lr(s),f=u.sourceRoot?$a(u.sourceRoot,d):d,p=$a(u.file,d),E=t.getSourceFileLike(p),v=u.sources.map(oe=>$a(oe,f)),b=new Map(v.map((oe,se)=>[t.getCanonicalFileName(oe),se]));let B,k,T;return{getSourcePosition:Y,getGeneratedPosition:K};function M(oe){const se=E!==void 0?TO(E,oe.generatedLine,oe.generatedCharacter,!0):-1;let ge,ae;if(KAe(oe)){const Ce=t.getSourceFileLike(v[oe.sourceIndex]);ge=u.sources[oe.sourceIndex],ae=Ce!==void 0?TO(Ce,oe.sourceLine,oe.sourceCharacter,!0):-1}return{generatedPosition:se,source:ge,sourceIndex:oe.sourceIndex,sourcePosition:ae,nameIndex:oe.nameIndex}}function z(){if(B===void 0){const oe=Gde(u.mappings),se=ga(oe,M);oe.error!==void 0?(t.log&&t.log(`Encountered error while decoding sourcemap: ${oe.error}`),B=_t):B=se}return B}function j(oe){if(T===void 0){const se=[];for(const ge of z()){if(!Pet(ge))continue;let ae=se[ge.sourceIndex];ae||(se[ge.sourceIndex]=ae=[]),ae.push(ge)}T=se.map(ge=>pi(ge,IPt,Met))}return T[oe]}function J(){if(k===void 0){const oe=[];for(const se of z())oe.push(se);k=pi(oe,RPt,Met)}return k}function K(oe){const se=b.get(t.getCanonicalFileName(oe.fileName));if(se===void 0)return oe;const ge=j(se);if(!Oe(ge))return oe;let ae=va(ge,oe.pos,OPt,nl);ae<0&&(ae=~ae);const Ce=ge[ae];return Ce===void 0||Ce.sourceIndex!==se?oe:{fileName:p,pos:Ce.generatedPosition}}function Y(oe){const se=J();if(!Oe(se))return oe;let ge=va(se,oe.pos,jPt,nl);ge<0&&(ge=~ge);const ae=se[ge];return ae===void 0||!Pet(ae)?oe:{fileName:v[ae.sourceIndex],pos:ae.sourcePosition}}}var Jde,nQ,uQ,rQ,VPt=o({"src/compiler/sourcemap.ts"(){Bo(),Wy(),Jde=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,nQ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,uQ=/^\s*(\/\/[@#] .*)?$/,rQ={getSourcePosition:il,getGeneratedPosition:il}}});function M1(t){return t=Wl(t),t?$s(t):0}function HPt(t){return!t||!uD(t)?!1:Oe(t.elements,zet)}function zet(t){return t.propertyName!==void 0&&t.propertyName.escapedText==="default"}function Kp(t,u){return s;function s(f){return f.kind===312?u(f):d(f)}function d(f){return t.factory.createBundle(Vt(f.sourceFiles,u),f.prepends)}}function GAe(t){return!!Q8(t)}function aQ(t){if(Q8(t))return!0;const u=t.importClause&&t.importClause.namedBindings;if(!u||!uD(u))return!1;let s=0;for(const d of u.elements)zet(d)&&s++;return s>0&&s!==u.elements.length||!!(u.elements.length-s)&&c7(t)}function $de(t){return!aQ(t)&&(c7(t)||!!t.importClause&&uD(t.importClause.namedBindings)&&HPt(t.importClause.namedBindings))}function Ude(t,u){const s=t.getEmitResolver(),d=t.getCompilerOptions(),f=[],p=new Qde,E=[],v=new Map;let b,B=!1,k,T=!1,M=!1,z=!1;for(const K of u.statements)switch(K.kind){case 272:f.push(K),!M&&aQ(K)&&(M=!0),!z&&$de(K)&&(z=!0);break;case 271:K.moduleReference.kind===283&&f.push(K);break;case 278:if(K.moduleSpecifier)if(!K.exportClause)f.push(K),T=!0;else if(f.push(K),ep(K.exportClause))J(K);else{const Y=K.exportClause.name;v.get(fu(Y))||(fM(E,M1(K),Y),v.set(fu(Y),!0),b=xi(b,Y)),M=!0}else J(K);break;case 277:K.isExportEquals&&!k&&(k=K);break;case 243:if(Yu(K,32))for(const Y of K.declarationList.declarations)b=Iet(Y,v,b,E);break;case 262:if(Yu(K,32))if(Yu(K,2048))B||(fM(E,M1(K),t.factory.getDeclarationName(K)),B=!0);else{const Y=K.name;v.get(fu(Y))||(fM(E,M1(K),Y),v.set(fu(Y),!0),b=xi(b,Y))}break;case 263:if(Yu(K,32))if(Yu(K,2048))B||(fM(E,M1(K),t.factory.getDeclarationName(K)),B=!0);else{const Y=K.name;Y&&!v.get(fu(Y))&&(fM(E,M1(K),Y),v.set(fu(Y),!0),b=xi(b,Y))}break}const j=Oce(t.factory,t.getEmitHelperFactory(),u,d,T,M,z);return j&&f.unshift(j),{externalImports:f,exportSpecifiers:p,exportEquals:k,hasExportStarsToExportValues:T,exportedBindings:E,exportedNames:b,externalHelpersImportDeclaration:j};function J(K){for(const Y of Po(K.exportClause,ep).elements)if(!v.get(fu(Y.name))){const oe=Y.propertyName||Y.name;K.moduleSpecifier||p.add(oe,Y);const se=s.getReferencedImportDeclaration(oe)||s.getReferencedValueDeclaration(oe);se&&fM(E,M1(se),Y.name),v.set(fu(Y.name),!0),b=xi(b,Y.name)}}}function Iet(t,u,s,d){if(So(t.name))for(const f of t.name.elements)Fd(f)||(s=Iet(f,u,s,d));else if(!al(t.name)){const f=fu(t.name);u.get(f)||(u.set(f,!0),s=xi(s,t.name),rD(t.name)&&fM(d,M1(t),t.name))}return s}function fM(t,u,s){let d=t[u];return d?d.push(s):t[u]=d=[s],d}function Y2(t){return t0(t)||t.kind===9||uf(t.kind)||at(t)}function sE(t){return!at(t)&&Y2(t)}function mM(t){return t>=65&&t<=79}function pM(t){switch(t){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function oQ(t){if(!Od(t))return;const u=l0(t.expression);return ik(u)?u:void 0}function Ret(t,u,s){for(let d=u;dWPt(d,u,s))}function KPt(t){return GPt(t)||zl(t)}function lQ(t){return ti(t.members,KPt)}function WPt(t,u,s){return ko(t)&&(!!t.initializer||!u)&&Kc(t)===s}function GPt(t){return ko(t)&&Kc(t)}function fH(t){return t.kind===172&&t.initializer!==void 0}function JAe(t){return!No(t)&&(N8(t)||ef(t))&&Xr(t.name)}function $Ae(t){let u;if(t){const s=t.parameters,d=s.length>0&&L2(s[0]),f=d?1:0,p=d?s.length-1:s.length;for(let E=0;EYde(s.privateEnv,u))}var Y7,Qde,UPt=o({"src/compiler/transformers/utilities.ts"(){Bo(),Y7=class LT{constructor(){this._map=new Map}get size(){return this._map.size}has(u){return this._map.has(LT.toKey(u))}get(u){return this._map.get(LT.toKey(u))}set(u,s){return this._map.set(LT.toKey(u),s),this}delete(u){var s;return((s=this._map)==null?void 0:s.delete(LT.toKey(u)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(u){if(Uy(u)||al(u)){const s=u.emitNode.autoGenerate;if((s.flags&7)===4){const d=jV(u),f=J_(d)&&d!==u?LT.toKey(d):`(generated@${$s(d)})`;return jv(!1,s.prefix,f,s.suffix,LT.toKey)}else{const d=`(auto@${s.id})`;return jv(!1,s.prefix,d,s.suffix,LT.toKey)}}return Xr(u)?fu(u).slice(1):fu(u)}},Qde=class extends Y7{add(t,u){let s=this.get(t);return s?s.push(u):this.set(t,s=[u]),s}remove(t,u){const s=this.get(t);s&&(Vy(s,u),s.length||this.delete(t))}}}});function wk(t,u,s,d,f,p){let E=t,v;if(r5(t))for(v=t.right;Iye(t.left)||dle(t.left);)if(r5(v))E=t=v,v=t.right;else return H.checkDefined(yt(v,u,Wt));let b;const B={context:s,level:d,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:k,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:M=>iMt(s.factory,M),createObjectBindingOrAssignmentPattern:M=>uMt(s.factory,M),createArrayBindingOrAssignmentElement:aMt,visitor:u};if(v&&(v=yt(v,u,Wt),H.assert(v),at(v)&&YAe(t,v.escapedText)||QAe(t)?v=Q7(B,v,!1,E):f?v=Q7(B,v,!0,E):sl(t)&&(E=v)),gM(B,t,v,E,r5(t)),v&&f){if(!Oe(b))return v;b.push(v)}return s.factory.inlineExpressions(b)||s.factory.createOmittedExpression();function k(M){b=xi(b,M)}function T(M,z,j,J){H.assertNode(M,p?at:Wt);const K=p?p(M,z,j):Pt(s.factory.createAssignment(H.checkDefined(yt(M,u,Wt)),z),j);K.original=J,k(K)}}function YAe(t,u){const s=$x(t);return UO(s)?qPt(s,u):at(s)?s.escapedText===u:!1}function qPt(t,u){const s=IB(t);for(const d of s)if(YAe(d,u))return!0;return!1}function QAe(t){const u=yY(t);if(u&&Ps(u)&&!E2(u.expression))return!0;const s=$x(t);return!!s&&UO(s)&&ZPt(s)}function ZPt(t){return!!L(IB(t),QAe)}function Q2(t,u,s,d,f,p=!1,E){let v;const b=[],B=[],k={context:s,level:d,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:p,emitExpression:T,emitBindingOrAssignment:M,createArrayBindingOrAssignmentPattern:z=>tMt(s.factory,z),createObjectBindingOrAssignmentPattern:z=>nMt(s.factory,z),createArrayBindingOrAssignmentElement:z=>rMt(s.factory,z),visitor:u};if(na(t)){let z=RV(t);z&&(at(z)&&YAe(t,z.escapedText)||QAe(t))&&(z=Q7(k,H.checkDefined(yt(z,k.visitor,Wt)),!1,z),t=s.factory.updateVariableDeclaration(t,t.name,void 0,void 0,z))}if(gM(k,t,f,t,E),v){const z=s.factory.createTempVariable(void 0);if(p){const j=s.factory.inlineExpressions(v);v=void 0,M(z,j,void 0,void 0)}else{s.hoistVariableDeclaration(z);const j=Cr(b);j.pendingExpressions=xi(j.pendingExpressions,s.factory.createAssignment(z,j.value)),yn(j.pendingExpressions,v),j.value=z}}for(const{pendingExpressions:z,name:j,value:J,location:K,original:Y}of b){const oe=s.factory.createVariableDeclaration(j,void 0,void 0,z?s.factory.inlineExpressions(xi(z,J)):J);oe.original=Y,Pt(oe,K),B.push(oe)}return B;function T(z){v=xi(v,z)}function M(z,j,J,K){H.assertNode(z,qy),v&&(j=s.factory.inlineExpressions(xi(v,j)),v=void 0),b.push({pendingExpressions:v,name:z,value:j,location:J,original:K})}}function gM(t,u,s,d,f){const p=$x(u);if(!f){const E=yt(RV(u),t.visitor,Wt);E?s?(s=XPt(t,s,E,d),!sE(E)&&UO(p)&&(s=Q7(t,s,!0,d))):s=E:s||(s=t.context.factory.createVoidZero())}Yse(p)?YPt(t,u,p,s,d):Qse(p)?QPt(t,u,p,s,d):t.emitBindingOrAssignment(p,s,d,u)}function YPt(t,u,s,d,f){const p=IB(s),E=p.length;if(E!==1){const B=!$O(u)||E!==0;d=Q7(t,d,B,f)}let v,b;for(let B=0;B=1&&!(k.transformFlags&98304)&&!($x(k).transformFlags&98304)&&!Ps(T))v=xi(v,yt(k,t.visitor,rbe));else{v&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(v),d,f,s),v=void 0);const M=eMt(t,d,T);Ps(T)&&(b=xi(b,M.argumentExpression)),gM(t,k,M,k)}}}v&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(v),d,f,s)}function QPt(t,u,s,d,f){const p=IB(s),E=p.length;if(t.level<1&&t.downlevelIteration)d=Q7(t,Pt(t.context.getEmitHelperFactory().createReadHelper(d,E>0&&bY(p[E-1])?void 0:E),f),!1,f);else if(E!==1&&(t.level<1||E===0)||ye(p,Fd)){const B=!$O(u)||E!==0;d=Q7(t,d,B,f)}let v,b;for(let B=0;B=1)if(k.transformFlags&65536||t.hasTransformedPriorElement&&!jet(k)){t.hasTransformedPriorElement=!0;const T=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(T),b=xi(b,[T,k]),v=xi(v,t.createArrayBindingOrAssignmentElement(T))}else v=xi(v,k);else{if(Fd(k))continue;if(bY(k)){if(B===E-1){const T=t.context.factory.createArraySliceCall(d,B);gM(t,k,T,k)}}else{const T=t.context.factory.createElementAccessExpression(d,B);gM(t,k,T,k)}}}if(v&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(v),d,f,s),b)for(const[B,k]of b)gM(t,k,B,k)}function jet(t){const u=$x(t);if(!u||Fd(u))return!0;const s=yY(t);if(s&&!Xg(s))return!1;const d=RV(t);return d&&!sE(d)?!1:UO(u)?ye(IB(u),jet):at(u)}function XPt(t,u,s,d){return u=Q7(t,u,!0,d),t.context.factory.createConditionalExpression(t.context.factory.createTypeCheck(u,"undefined"),void 0,s,void 0,u)}function eMt(t,u,s){const{factory:d}=t.context;if(Ps(s)){const f=Q7(t,H.checkDefined(yt(s.expression,t.visitor,Wt)),!1,s);return t.context.factory.createElementAccessExpression(u,f)}else if(Pm(s)){const f=d.cloneNode(s);return t.context.factory.createElementAccessExpression(u,f)}else{const f=t.context.factory.createIdentifier(fu(s));return t.context.factory.createPropertyAccessExpression(u,f)}}function Q7(t,u,s,d){if(at(u)&&s)return u;{const f=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(f),t.emitExpression(Pt(t.context.factory.createAssignment(f,u),d))):t.emitBindingOrAssignment(f,u,d,void 0),f}}function tMt(t,u){return H.assertEachNode(u,jU),t.createArrayBindingPattern(u)}function iMt(t,u){return H.assertEachNode(u,ZO),t.createArrayLiteralExpression(Vt(u,t.converters.convertToArrayAssignmentElement))}function nMt(t,u){return H.assertEachNode(u,js),t.createObjectBindingPattern(u)}function uMt(t,u){return H.assertEachNode(u,qO),t.createObjectLiteralExpression(Vt(u,t.converters.convertToObjectAssignmentElement))}function rMt(t,u){return t.createBindingElement(void 0,void 0,u)}function aMt(t){return t}var Xde,oMt=o({"src/compiler/transformers/destructuring.ts"(){Bo(),Xde=(t=>(t[t.All=0]="All",t[t.ObjectRest=1]="ObjectRest",t))(Xde||{})}});function XAe(t,u,s=t.createThis()){const d=t.createAssignment(u,s),f=t.createExpressionStatement(d),p=t.createBlock([f],!1),E=t.createClassStaticBlockDeclaration(p);return P1(E).classThis=u,E}function EM(t){var u;if(!zl(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Od(s)&&ld(s.expression,!0)&&at(s.expression.left)&&((u=t.emitNode)==null?void 0:u.classThis)===s.expression.left&&s.expression.right.kind===110}function e1e(t){var u;return!!((u=t.emitNode)!=null&&u.classThis)&&Oe(t.members,EM)}function e7e(t,u,s,d){if(e1e(u))return u;const f=XAe(t,s,d);u.name&&As(f.body.statements[0],u.name);const p=t.createNodeArray([f,...u.members]);Pt(p,u.members);const E=Wc(u)?t.updateClassDeclaration(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,p):t.updateClassExpression(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,p);return P1(E).classThis=s,E}var sMt=o({"src/compiler/transformers/classThis.ts"(){Bo()}});function _M(t,u,s){const d=Wl(Dc(s));return(Wc(d)||ed(d))&&!d.name&&Yu(d,2048)?t.createStringLiteral("default"):t.createStringLiteralFromNode(u)}function Vet(t,u,s){const{factory:d}=t;if(s!==void 0)return{assignedName:d.createStringLiteral(s),name:u};if(Xg(u)||Xr(u))return{assignedName:d.createStringLiteralFromNode(u),name:u};if(Xg(u.expression)&&!at(u.expression))return{assignedName:d.createStringLiteralFromNode(u.expression),name:u};const f=d.getGeneratedNameForNode(u);t.hoistVariableDeclaration(f);const p=t.getEmitHelperFactory().createPropKeyHelper(u.expression),E=d.createAssignment(f,p),v=d.updateComputedPropertyName(u,E);return{assignedName:f,name:v}}function t7e(t,u,s=t.factory.createThis()){const{factory:d}=t,f=t.getEmitHelperFactory().createSetFunctionNameHelper(s,u),p=d.createExpressionStatement(f),E=d.createBlock([p],!1),v=d.createClassStaticBlockDeclaration(E);return P1(v).assignedName=u,v}function X7(t){var u;if(!zl(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Od(s)&&jP(s.expression,"___setFunctionName")&&s.expression.arguments.length>=2&&s.expression.arguments[1]===((u=t.emitNode)==null?void 0:u.assignedName)}function dQ(t){var u;return!!((u=t.emitNode)!=null&&u.assignedName)&&Oe(t.members,X7)}function t1e(t){return!!t.name||dQ(t)}function hQ(t,u,s,d){if(dQ(u))return u;const{factory:f}=t,p=t7e(t,s,d);u.name&&As(p.body.statements[0],u.name);const E=Ue(u.members,EM)+1,v=u.members.slice(0,E),b=u.members.slice(E),B=f.createNodeArray([...v,p,...b]);return Pt(B,u.members),u=Wc(u)?f.updateClassDeclaration(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,B):f.updateClassExpression(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,B),P1(u).assignedName=s,u}function UB(t,u,s,d){if(d&&us(s)&&B0e(s))return u;const{factory:f}=t,p=Dc(u),E=Xd(p)?Po(hQ(t,p,s),Xd):t.getEmitHelperFactory().createSetFunctionNameHelper(p,s);return f.restoreOuterExpressions(u,E)}function lMt(t,u,s,d){const{factory:f}=t,{assignedName:p,name:E}=Vet(t,u.name,d),v=UB(t,u.initializer,p,s);return f.updatePropertyAssignment(u,E,v)}function cMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.name,u.objectAssignmentInitializer),E=UB(t,u.objectAssignmentInitializer,p,s);return f.updateShorthandPropertyAssignment(u,u.name,E)}function dMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.name,u.initializer),E=UB(t,u.initializer,p,s);return f.updateVariableDeclaration(u,u.name,u.exclamationToken,u.type,E)}function hMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.name,u.initializer),E=UB(t,u.initializer,p,s);return f.updateParameterDeclaration(u,u.modifiers,u.dotDotDotToken,u.name,u.questionToken,u.type,E)}function fMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.name,u.initializer),E=UB(t,u.initializer,p,s);return f.updateBindingElement(u,u.dotDotDotToken,u.propertyName,u.name,E)}function mMt(t,u,s,d){const{factory:f}=t,{assignedName:p,name:E}=Vet(t,u.name,d),v=UB(t,u.initializer,p,s);return f.updatePropertyDeclaration(u,u.modifiers,E,u.questionToken??u.exclamationToken,u.type,v)}function pMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.left,u.right),E=UB(t,u.right,p,s);return f.updateBinaryExpression(u,u.left,u.operatorToken,E)}function gMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):f.createStringLiteral(u.isExportEquals?"":"default"),E=UB(t,u.expression,p,s);return f.updateExportAssignment(u,u.modifiers,E)}function Vf(t,u,s,d){switch(u.kind){case 303:return lMt(t,u,s,d);case 304:return cMt(t,u,s,d);case 260:return dMt(t,u,s,d);case 169:return hMt(t,u,s,d);case 208:return fMt(t,u,s,d);case 172:return mMt(t,u,s,d);case 226:return pMt(t,u,s,d);case 277:return gMt(t,u,s,d)}}var EMt=o({"src/compiler/transformers/namedEvaluation.ts"(){Bo()}});function i1e(t,u,s,d,f,p){const E=yt(u.tag,s,Wt);H.assert(E);const v=[void 0],b=[],B=[],k=u.template;if(p===0&&!Q0e(k))return rn(u,s,t);const{factory:T}=t;if(T7(k))b.push(i7e(T,k)),B.push(n7e(T,k,d));else{b.push(i7e(T,k.head)),B.push(n7e(T,k.head,d));for(const z of k.templateSpans)b.push(i7e(T,z.literal)),B.push(n7e(T,z.literal,d)),v.push(H.checkDefined(yt(z.expression,s,Wt)))}const M=t.getEmitHelperFactory().createTemplateObjectHelper(T.createArrayLiteralExpression(b),T.createArrayLiteralExpression(B));if(wc(d)){const z=T.createUniqueName("templateObject");f(z),v[0]=T.createLogicalOr(z,T.createAssignment(z,M))}else v[0]=M;return T.createCallExpression(E,void 0,v)}function i7e(t,u){return u.templateFlags&26656?t.createVoidZero():t.createStringLiteral(u.text)}function n7e(t,u,s){let d=u.rawText;if(d===void 0){H.assertIsDefined(s,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),d=x2(s,u);const f=u.kind===15||u.kind===18;d=d.substring(1,d.length-(f?1:2))}return d=d.replace(/\r\n?/g,` +`),Pt(t.createStringLiteral(d),u)}var n1e,_Mt=o({"src/compiler/transformers/taggedTemplate.ts"(){Bo(),n1e=(t=>(t[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",t))(n1e||{})}});function u7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,resumeLexicalEnvironment:f,endLexicalEnvironment:p,hoistVariableDeclaration:E}=t,v=t.getEmitResolver(),b=t.getCompilerOptions(),B=Os(b),k=m1(b),T=!!b.experimentalDecorators,M=b.emitDecoratorMetadata?a7e(t):void 0,z=t.onEmitNode,j=t.onSubstituteNode;t.onEmitNode=Jp,t.onSubstituteNode=Lc,t.enableSubstitution(211),t.enableSubstitution(212);let J,K,Y,oe,se,ge,ae,Ce;return ne;function ne($){return $.kind===313?ve($):Se($)}function ve($){return u.createBundle($.sourceFiles.map(Se),qi($.prepends,tt=>tt.kind===315?nce(tt,"js"):tt))}function Se($){if($.isDeclarationFile)return $;J=$;const tt=Ne($,st);return iD(tt,t.readEmitHelpers()),J=void 0,tt}function Ne($,tt){const vt=oe,mi=se,fn=ge;pe($);const Wu=tt($);return oe!==vt&&(se=mi),oe=vt,ge=fn,Wu}function pe($){switch($.kind){case 312:case 269:case 268:case 241:oe=$,se=void 0;break;case 263:case 262:if(Yu($,128))break;$.name?je($):H.assert($.kind===263||Yu($,2048));break}}function fe($){return Ne($,xe)}function xe($){return $.transformFlags&1?Ie($):$}function Be($){return Ne($,Ge)}function Ge($){switch($.kind){case 272:case 271:case 277:case 278:return Ae($);default:return xe($)}}function Ae($){if(Ua($)!==$)return $.transformFlags&1?rn($,fe,t):$;switch($.kind){case 272:return Ui($);case 271:return as($);case 277:return pr($);case 278:return Xu($);default:H.fail("Unhandled ellided statement")}}function De($){return Ne($,Ke)}function Ke($){if(!($.kind===278||$.kind===272||$.kind===273||$.kind===271&&$.moduleReference.kind===283))return $.transformFlags&1||Yu($,32)?Ie($):$}function Je($){return tt=>Ne(tt,vt=>ft(vt,$))}function ft($,tt){switch($.kind){case 176:return Cn($);case 172:return Dn($,tt);case 177:return Yo($,tt);case 178:return bo($,tt);case 174:return ua($,tt);case 175:return rn($,fe,t);case 240:return $;case 181:return;default:return H.failBadSyntaxKind($)}}function Ye($){return tt=>Ne(tt,vt=>Ve(vt,$))}function Ve($,tt){switch($.kind){case 303:case 304:case 305:return fe($);case 177:return Yo($,tt);case 178:return bo($,tt);case 174:return ua($,tt);default:return H.failBadSyntaxKind($)}}function We($){return g1($)?void 0:fe($)}function Gt($){return Qo($)?void 0:fe($)}function Yt($){if(!g1($)&&!(_7($.kind)&28895)&&!(K&&$.kind===95))return $}function Ie($){if(ia($)&&Yu($,128))return u.createNotEmittedStatement($);switch($.kind){case 95:case 90:return K?void 0:$;case 125:case 123:case 124:case 128:case 164:case 87:case 138:case 148:case 103:case 147:case 188:case 189:case 190:case 191:case 187:case 182:case 168:case 133:case 159:case 136:case 154:case 150:case 146:case 116:case 155:case 185:case 184:case 186:case 183:case 192:case 193:case 194:case 196:case 197:case 198:case 199:case 200:case 201:case 181:return;case 265:return u.createNotEmittedStatement($);case 270:return;case 264:return u.createNotEmittedStatement($);case 263:return Ut($);case 231:return Ni($);case 298:return jn($);case 233:return Ln($);case 210:return St($);case 176:case 172:case 174:case 177:case 178:case 175:return H.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Qe($);case 218:return Et($);case 219:return Mt($);case 169:return qt($);case 217:return gt($);case 216:case 234:return ii($);case 238:return ni($);case 213:return vi($);case 214:return mt($);case 215:return Ot($);case 235:return me($);case 266:return on($);case 243:return Xt($);case 260:return et($);case 267:return ct($);case 271:return as($);case 285:return Ei($);case 286:return $i($);default:return rn($,fe,t)}}function st($){const tt=Z4(b,"alwaysStrict")&&!(wc($)&&k>=5)&&!W4($);return u.updateSourceFile($,iQ($.statements,Be,t,0,tt))}function St($){return u.updateObjectLiteralExpression($,kn($.properties,Ye($),Z3))}function It($){let tt=0;Oe(qde($,!0,!0))&&(tt|=1);const vt=Qg($);return vt&&Dc(vt.expression).kind!==106&&(tt|=64),t5(T,$)&&(tt|=2),QN(T,$)&&(tt|=4),wo($)?tt|=8:Ya($)?tt|=32:vc($)&&(tt|=16),tt}function ei($){return!!($.transformFlags&8192)}function ht($){return o4($)||Oe($.typeParameters)||Oe($.heritageClauses,ei)||Oe($.members,ei)}function Ut($){const tt=It($),vt=B<=1&&!!(tt&7);if(!ht($)&&!t5(T,$)&&!wo($))return u.updateClassDeclaration($,kn($.modifiers,Yt,Qo),$.name,void 0,kn($.heritageClauses,fe,mm),kn($.members,Je($),Zd));vt&&t.startLexicalEnvironment();const mi=vt||tt&8;let fn=mi?kn($.modifiers,Gt,ol):kn($.modifiers,fe,ol);tt&2&&(fn=xn(fn,$));const uu=mi&&!$.name||tt&4||tt&1?$.name??u.getGeneratedNameForNode($):$.name,Tu=u.updateClassDeclaration($,fn,uu,void 0,kn($.heritageClauses,fe,mm),ji($));let Nr=bs($);tt&1&&(Nr|=64),Zn(Tu,Nr);let Vu;if(vt){const Ss=[Tu],ic=fle(gs(J.text,$.members.end),20),nd=u.getInternalName($),S0=u.createPartiallyEmittedExpression(nd);mB(S0,ic.end),Zn(S0,3072);const ud=u.createReturnStatement(S0);BP(ud,ic.pos),Zn(ud,3840),Ss.push(ud),ZE(Ss,t.endLexicalEnvironment());const m0=u.createImmediatelyInvokedArrowFunction(Ss);_V(m0,1);const Bd=u.createVariableDeclaration(u.getLocalName($,!1,!1),void 0,void 0,m0);su(Bd,$);const Oh=u.createVariableStatement(void 0,u.createVariableDeclarationList([Bd],1));su(Oh,$),Bc(Oh,$),As(Oh,o5($)),vh(Oh),Vu=Oh}else Vu=Tu;if(mi){if(tt&8)return[Vu,c0($)];if(tt&32)return[Vu,u.createExportDefault(u.getLocalName($,!1,!0))];if(tt&16)return[Vu,u.createExternalModuleExport(u.getDeclarationName($,!1,!0))]}return Vu}function Ni($){let tt=kn($.modifiers,Gt,ol);return t5(T,$)&&(tt=xn(tt,$)),u.updateClassExpression($,tt,$.name,void 0,kn($.heritageClauses,fe,mm),ji($))}function ji($){const tt=kn($.members,Je($),Zd);let vt;const mi=X_($),fn=mi&&ti(mi.parameters,Wu=>Mf(Wu,mi));if(fn)for(const Wu of fn){const uu=u.createPropertyDeclaration(void 0,Wu.name,void 0,void 0,void 0);su(uu,Wu),vt=xi(vt,uu)}return vt?(vt=yn(vt,tt),Pt(u.createNodeArray(vt),$.members)):tt}function xn($,tt){const vt=an(tt,tt);if(Oe(vt)){const mi=[];yn(mi,tU($,OV)),yn(mi,ti($,g1)),yn(mi,vt),yn(mi,ti(n2e($,OV),Qo)),$=Pt(u.createNodeArray(mi),$)}return $}function Jn($,tt,vt){if(mr(vt)&&S0e(T,tt,vt)){const mi=an(tt,vt);if(Oe(mi)){const fn=[];yn(fn,ti($,g1)),yn(fn,mi),yn(fn,ti($,Qo)),$=Pt(u.createNodeArray(fn),$)}}return $}function an($,tt){if(T)return Het?Ai($,tt):Pi($,tt)}function Pi($,tt){if(M){let vt;if(Zu($)){const mi=s().createMetadataHelper("design:type",M.serializeTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$));vt=xi(vt,u.createDecorator(mi))}if(yr($)){const mi=s().createMetadataHelper("design:paramtypes",M.serializeParameterTypesOfNode({currentLexicalScope:oe,currentNameScope:tt},$,tt));vt=xi(vt,u.createDecorator(mi))}if(aa($)){const mi=s().createMetadataHelper("design:returntype",M.serializeReturnTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$));vt=xi(vt,u.createDecorator(mi))}return vt}}function Ai($,tt){if(M){let vt;if(Zu($)){const mi=u.createPropertyAssignment("type",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$)));vt=xi(vt,mi)}if(yr($)){const mi=u.createPropertyAssignment("paramTypes",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeParameterTypesOfNode({currentLexicalScope:oe,currentNameScope:tt},$,tt)));vt=xi(vt,mi)}if(aa($)){const mi=u.createPropertyAssignment("returnType",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeReturnTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$)));vt=xi(vt,mi)}if(vt){const mi=s().createMetadataHelper("design:typeinfo",u.createObjectLiteralExpression(vt,!0));return[u.createDecorator(mi)]}}}function Zu($){const tt=$.kind;return tt===174||tt===177||tt===178||tt===172}function aa($){return $.kind===174}function yr($){switch($.kind){case 263:case 231:return X_($)!==void 0;case 174:case 177:case 178:return!0}return!1}function Ba($,tt){const vt=$.name;return Xr(vt)?u.createIdentifier(""):Ps(vt)?tt&&!sE(vt.expression)?u.getGeneratedNameForNode(vt):vt.expression:at(vt)?u.createStringLiteral(fu(vt)):u.cloneNode(vt)}function bt($){const tt=$.name;if(Ps(tt)&&(!Kc($)&&ge||o4($)&&T)){const vt=yt(tt.expression,fe,Wt);H.assert(vt);const mi=Np(vt);if(!sE(mi)){const fn=u.getGeneratedNameForNode(tt);return E(fn),u.updateComputedPropertyName(tt,u.createAssignment(fn,vt))}}return H.checkDefined(yt(tt,fe,Sc))}function jn($){if($.token!==119)return rn($,fe,t)}function Ln($){return u.updateExpressionWithTypeArguments($,H.checkDefined(yt($.expression,fe,Df)),void 0)}function Si($){return!Ql($.body)}function Dn($,tt){const vt=$.flags&33554432||Yu($,64);if(vt&&!(T&&o4($)))return;let mi=mr(tt)?vt?kn($.modifiers,Gt,ol):kn($.modifiers,fe,ol):kn($.modifiers,We,ol);return mi=Jn(mi,$,tt),vt?u.updatePropertyDeclaration($,Hi(mi,u.createModifiersFromModifierFlags(128)),H.checkDefined(yt($.name,fe,Sc)),void 0,void 0,void 0):u.updatePropertyDeclaration($,mi,bt($),void 0,void 0,yt($.initializer,fe,Wt))}function Cn($){if(Si($))return u.updateConstructorDeclaration($,void 0,xc($.parameters,fe,t),oa($.body,$))}function tu($,tt,vt,mi,fn,Wu){const uu=mi[fn],Tu=tt[uu];if(yn($,kn(tt,fe,ia,vt,uu-vt)),Ck(Tu)){const Nr=[];tu(Nr,Tu.tryBlock.statements,0,mi,fn+1,Wu);const Vu=u.createNodeArray(Nr);Pt(Vu,Tu.tryBlock.statements),$.push(u.updateTryStatement(Tu,u.updateBlock(Tu.tryBlock,Nr),yt(Tu.catchClause,fe,G2),yt(Tu.finallyBlock,fe,po)))}else yn($,kn(tt,fe,ia,uu,1)),yn($,Wu);yn($,kn(tt,fe,ia,uu+1))}function oa($,tt){const vt=tt&&ti(tt.parameters,Nr=>Mf(Nr,tt));if(!Oe(vt))return Om($,fe,t);let mi=[];f();const fn=u.copyPrologue($.statements,mi,!1,fe),Wu=sQ($.statements,fn),uu=qi(vt,Da);Wu.length?tu(mi,$.statements,fn,Wu,0,uu):(yn(mi,uu),yn(mi,kn($.statements,fe,ia,fn))),mi=u.mergeLexicalEnvironment(mi,p());const Tu=u.createBlock(Pt(u.createNodeArray(mi),$.statements),!0);return Pt(Tu,$),su(Tu,$),Tu}function Da($){const tt=$.name;if(!at(tt))return;const vt=ks(Pt(u.cloneNode(tt),tt),tt.parent);Zn(vt,3168);const mi=ks(Pt(u.cloneNode(tt),tt),tt.parent);return Zn(mi,3072),vh(EV(Pt(su(u.createExpressionStatement(u.createAssignment(Pt(u.createPropertyAccessExpression(u.createThis(),vt),$.name),mi)),$),Sv($,-1))))}function ua($,tt){if(!($.transformFlags&1))return $;if(!Si($))return;let vt=mr(tt)?kn($.modifiers,fe,ol):kn($.modifiers,We,ol);return vt=Jn(vt,$,tt),u.updateMethodDeclaration($,vt,$.asteriskToken,bt($),void 0,void 0,xc($.parameters,fe,t),void 0,Om($.body,fe,t))}function Ta($){return!(Ql($.body)&&Yu($,64))}function Yo($,tt){if(!($.transformFlags&1))return $;if(!Ta($))return;let vt=mr(tt)?kn($.modifiers,fe,ol):kn($.modifiers,We,ol);return vt=Jn(vt,$,tt),u.updateGetAccessorDeclaration($,vt,bt($),xc($.parameters,fe,t),void 0,Om($.body,fe,t)||u.createBlock([]))}function bo($,tt){if(!($.transformFlags&1))return $;if(!Ta($))return;let vt=mr(tt)?kn($.modifiers,fe,ol):kn($.modifiers,We,ol);return vt=Jn(vt,$,tt),u.updateSetAccessorDeclaration($,vt,bt($),xc($.parameters,fe,t),Om($.body,fe,t)||u.createBlock([]))}function Qe($){if(!Si($))return u.createNotEmittedStatement($);const tt=u.updateFunctionDeclaration($,kn($.modifiers,Yt,Qo),$.asteriskToken,$.name,void 0,xc($.parameters,fe,t),void 0,Om($.body,fe,t)||u.createBlock([]));if(wo($)){const vt=[tt];return Ul(vt,$),vt}return tt}function Et($){return Si($)?u.updateFunctionExpression($,kn($.modifiers,Yt,Qo),$.asteriskToken,$.name,void 0,xc($.parameters,fe,t),void 0,Om($.body,fe,t)||u.createBlock([])):u.createOmittedExpression()}function Mt($){return u.updateArrowFunction($,kn($.modifiers,Yt,Qo),void 0,xc($.parameters,fe,t),void 0,$.equalsGreaterThanToken,Om($.body,fe,t))}function qt($){if(L2($))return;const tt=u.updateParameterDeclaration($,kn($.modifiers,vt=>g1(vt)?fe(vt):void 0,ol),$.dotDotDotToken,H.checkDefined(yt($.name,fe,qy)),void 0,void 0,yt($.initializer,fe,Wt));return tt!==$&&(Bc(tt,$),Pt(tt,iE($)),As(tt,iE($)),Zn(tt.name,64)),tt}function Xt($){if(wo($)){const tt=DP($.declarationList);return tt.length===0?void 0:Pt(u.createExpressionStatement(u.inlineExpressions(Vt(tt,Pe))),$)}else return rn($,fe,t)}function Pe($){const tt=$.name;return So(tt)?wk($,fe,t,0,!1,hd):Pt(u.createAssignment(vl(tt),H.checkDefined(yt($.initializer,fe,Wt))),$)}function et($){const tt=u.updateVariableDeclaration($,H.checkDefined(yt($.name,fe,qy)),void 0,void 0,yt($.initializer,fe,Wt));return $.type&&Kke(tt.name,$.type),tt}function gt($){const tt=Dc($.expression,-7);if(Yy(tt)){const vt=yt($.expression,fe,Wt);return H.assert(vt),u.createPartiallyEmittedExpression(vt,$)}return rn($,fe,t)}function ii($){const tt=yt($.expression,fe,Wt);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function me($){const tt=yt($.expression,fe,Df);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function ni($){const tt=yt($.expression,fe,Wt);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function vi($){return u.updateCallExpression($,H.checkDefined(yt($.expression,fe,Wt)),void 0,kn($.arguments,fe,Wt))}function mt($){return u.updateNewExpression($,H.checkDefined(yt($.expression,fe,Wt)),void 0,kn($.arguments,fe,Wt))}function Ot($){return u.updateTaggedTemplateExpression($,H.checkDefined(yt($.tag,fe,Wt)),void 0,H.checkDefined(yt($.template,fe,P8)))}function Ei($){return u.updateJsxSelfClosingElement($,H.checkDefined(yt($.tagName,fe,WN)),void 0,H.checkDefined(yt($.attributes,fe,W2)))}function $i($){return u.updateJsxOpeningElement($,H.checkDefined(yt($.tagName,fe,WN)),void 0,H.checkDefined(yt($.attributes,fe,W2)))}function Qi($){return!b2($)||fk(b)}function on($){if(!Qi($))return u.createNotEmittedStatement($);const tt=[];let vt=4;const mi=Ct(tt,$);mi&&(k!==4||oe!==J)&&(vt|=1024);const fn=co($),Wu=Ho($),uu=wo($)?u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0):u.getDeclarationName($,!1,!0);let Tu=u.createLogicalOr(uu,u.createAssignment(uu,u.createObjectLiteralExpression()));if(wo($)){const Vu=u.getLocalName($,!1,!0);Tu=u.createAssignment(Vu,Tu)}const Nr=u.createExpressionStatement(u.createCallExpression(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,fn)],void 0,le($,Wu)),void 0,[Tu]));return su(Nr,$),mi&&(Nv(Nr,void 0),A7(Nr,void 0)),Pt(Nr,$),i_(Nr,vt),tt.push(Nr),tt}function le($,tt){const vt=Y;Y=tt;const mi=[];d();const fn=Vt($.members,te);return ZE(mi,p()),yn(mi,fn),Y=vt,u.createBlock(Pt(u.createNodeArray(mi),$.members),!0)}function te($){const tt=Ba($,!1),vt=we($),mi=u.createAssignment(u.createElementAccessExpression(Y,tt),vt),fn=vt.kind===11?mi:u.createAssignment(u.createElementAccessExpression(Y,mi),tt);return Pt(u.createExpressionStatement(Pt(fn,$)),$)}function we($){const tt=v.getConstantValue($);return tt!==void 0?typeof tt=="string"?u.createStringLiteral(tt):u.createNumericLiteral(tt):(id(),$.initializer?H.checkDefined(yt($.initializer,fe,Wt)):u.createVoidZero())}function de($){const tt=Ua($,_c);return tt?Rde(tt,fk(b)):!0}function je($){se||(se=new Map);const tt=it($);se.has(tt)||se.set(tt,$)}function X($){if(se){const tt=it($);return se.get(tt)===$}return!0}function it($){return H.assertNode($.name,at),$.name.escapedText}function Ct($,tt){const vt=u.createVariableDeclaration(u.getLocalName(tt,!1,!0)),mi=oe.kind===312?0:1,fn=u.createVariableStatement(kn(tt.modifiers,Yt,Qo),u.createVariableDeclarationList([vt],mi));return su(vt,tt),Nv(vt,void 0),A7(vt,void 0),su(fn,tt),je(tt),X(tt)?(tt.kind===266?As(fn.declarationList,tt):As(fn,tt),Bc(fn,tt),i_(fn,2048),$.push(fn),!0):!1}function ct($){if(!de($))return u.createNotEmittedStatement($);H.assertNode($.name,at,"A TypeScript namespace should have an Identifier name."),Y0();const tt=[];let vt=4;const mi=Ct(tt,$);mi&&(k!==4||oe!==J)&&(vt|=1024);const fn=co($),Wu=Ho($),uu=wo($)?u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0):u.getDeclarationName($,!1,!0);let Tu=u.createLogicalOr(uu,u.createAssignment(uu,u.createObjectLiteralExpression()));if(wo($)){const Vu=u.getLocalName($,!1,!0);Tu=u.createAssignment(Vu,Tu)}const Nr=u.createExpressionStatement(u.createCallExpression(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,fn)],void 0,Qt($,Wu)),void 0,[Tu]));return su(Nr,$),mi&&(Nv(Nr,void 0),A7(Nr,void 0)),Pt(Nr,$),i_(Nr,vt),tt.push(Nr),tt}function Qt($,tt){const vt=Y,mi=K,fn=se;Y=tt,K=$,se=void 0;const Wu=[];d();let uu,Tu;if($.body)if($.body.kind===268)Ne($.body,Vu=>yn(Wu,kn(Vu.statements,De,ia))),uu=$.body.statements,Tu=$.body;else{const Vu=ct($.body);Vu&&(Ha(Vu)?yn(Wu,Vu):Wu.push(Vu));const Ss=Li($).body;uu=Sv(Ss.statements,-1)}ZE(Wu,p()),Y=vt,K=mi,se=fn;const Nr=u.createBlock(Pt(u.createNodeArray(Wu),uu),!0);return Pt(Nr,Tu),(!$.body||$.body.kind!==268)&&Zn(Nr,bs(Nr)|3072),Nr}function Li($){if($.body.kind===267)return Li($.body)||$.body}function Ui($){if(!$.importClause)return $;if($.importClause.isTypeOnly)return;const tt=yt($.importClause,Sn,n_);return tt||b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2?u.updateImportDeclaration($,void 0,tt,$.moduleSpecifier,$.attributes):void 0}function Sn($){H.assert(!$.isTypeOnly);const tt=Cc($)?$.name:void 0,vt=yt($.namedBindings,du,i0e);return tt||vt?u.updateImportClause($,!1,tt,vt):void 0}function du($){if($.kind===274)return Cc($)?$:void 0;{const tt=b.verbatimModuleSyntax||b.preserveValueImports&&(b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2),vt=kn($.elements,Ru,bf);return tt||Oe(vt)?u.updateNamedImports($,vt):void 0}}function Ru($){return!$.isTypeOnly&&Cc($)?$:void 0}function pr($){return b.verbatimModuleSyntax||v.isValueAliasDeclaration($)?rn($,fe,t):void 0}function Xu($){if($.isTypeOnly)return;if(!$.exportClause||u_($.exportClause))return $;const tt=b.verbatimModuleSyntax||!!$.moduleSpecifier&&(b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2),vt=yt($.exportClause,mi=>ja(mi,tt),Wse);return vt?u.updateExportDeclaration($,void 0,$.isTypeOnly,vt,$.moduleSpecifier,$.attributes):void 0}function ca($,tt){const vt=kn($.elements,wn,eh);return tt||Oe(vt)?u.updateNamedExports($,vt):void 0}function Ku($){return u.updateNamespaceExport($,H.checkDefined(yt($.name,fe,at)))}function ja($,tt){return u_($)?Ku($):ca($,tt)}function wn($){return!$.isTypeOnly&&(b.verbatimModuleSyntax||v.isValueAliasDeclaration($))?$:void 0}function Ir($){return Cc($)||!wc(J)&&v.isTopLevelValueImportEqualsWithEntityName($)}function as($){if($.isTypeOnly)return;if(bv($)){const vt=Cc($);return!vt&&b.importsNotUsedAsValues===1?su(Pt(u.createImportDeclaration(void 0,void 0,$.moduleReference.expression,void 0),$),$):vt?rn($,fe,t):void 0}if(!Ir($))return;const tt=PV(u,$.moduleReference);return Zn(tt,7168),vc($)||!wo($)?su(Pt(u.createVariableStatement(kn($.modifiers,Yt,Qo),u.createVariableDeclarationList([su(u.createVariableDeclaration($.name,void 0,void 0,tt),$)])),$),$):su(wl($.name,tt,$),$)}function wo($){return K!==void 0&&Yu($,32)}function Fn($){return K===void 0&&Yu($,32)}function vc($){return Fn($)&&!Yu($,2048)}function Ya($){return Fn($)&&Yu($,2048)}function c0($){const tt=u.createAssignment(u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0),u.getLocalName($));As(tt,s4($.name?$.name.pos:$.pos,$.end));const vt=u.createExpressionStatement(tt);return As(vt,s4(-1,$.end)),vt}function Ul($,tt){$.push(c0(tt))}function wl($,tt,vt){return Pt(u.createExpressionStatement(u.createAssignment(u.getNamespaceMemberName(Y,$,!1,!0),tt)),vt)}function hd($,tt,vt){return Pt(u.createAssignment(vl($),tt),vt)}function vl($){return u.getNamespaceMemberName(Y,$,!1,!0)}function co($){const tt=u.getGeneratedNameForNode($);return As(tt,$.name),tt}function Ho($){return u.getGeneratedNameForNode($)}function id(){ae&8||(ae|=8,t.enableSubstitution(80))}function Y0(){ae&2||(ae|=2,t.enableSubstitution(80),t.enableSubstitution(304),t.enableEmitNotification(267))}function Ko($){return Wl($).kind===267}function Tc($){return Wl($).kind===266}function Jp($,tt,vt){const mi=Ce,fn=J;la(tt)&&(J=tt),ae&2&&Ko(tt)&&(Ce|=2),ae&8&&Tc(tt)&&(Ce|=8),z($,tt,vt),Ce=mi,J=fn}function Lc($,tt){return tt=j($,tt),$===1?cl(tt):pm(tt)?Il(tt):tt}function Il($){if(ae&2){const tt=$.name,vt=Ri(tt);if(vt){if($.objectAssignmentInitializer){const mi=u.createAssignment(vt,$.objectAssignmentInitializer);return Pt(u.createPropertyAssignment(tt,mi),$)}return Pt(u.createPropertyAssignment(tt,vt),$)}}return $}function cl($){switch($.kind){case 80:return Ka($);case 211:return dl($);case 212:return Uc($)}return $}function Ka($){return Ri($)||$}function Ri($){if(ae&Ce&&!al($)&&!rD($)){const tt=v.getReferencedExportContainer($,!1);if(tt&&tt.kind!==312&&(Ce&2&&tt.kind===267||Ce&8&&tt.kind===266))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(tt),$),$)}}function dl($){return sf($)}function Uc($){return sf($)}function Ch($){return $.replace(/\*\//g,"*_/")}function sf($){const tt=Q0($);if(tt!==void 0){Vke($,tt);const vt=typeof tt=="string"?u.createStringLiteral(tt):tt<0?u.createPrefixUnaryExpression(41,u.createNumericLiteral(Math.abs(tt))):u.createNumericLiteral(tt);if(!b.removeComments){const mi=Wl($,I0);AZ(vt,3,` ${Ch(Hc(mi))} `)}return vt}return $}function Q0($){if(!mg(b))return Iu($)||U0($)?v.getConstantValue($):void 0}function Cc($){return b.verbatimModuleSyntax||Qn($)||(b.preserveValueImports?v.isValueAliasDeclaration($):v.isReferencedAliasDeclaration($))}}var Het,DMt=o({"src/compiler/transformers/ts.ts"(){Bo(),Het=!1}});function r7e(t){const{factory:u,getEmitHelperFactory:s,hoistVariableDeclaration:d,endLexicalEnvironment:f,startLexicalEnvironment:p,resumeLexicalEnvironment:E,addBlockScopedVariable:v}=t,b=t.getEmitResolver(),B=t.getCompilerOptions(),k=Os(B),T=eV(B),M=!!B.experimentalDecorators,z=!T,j=T&&k<9,J=z||j,K=k<9,Y=k<99?-1:T?0:3,oe=k<9,se=oe&&k>=2,ge=J||K||Y===-1,ae=t.onSubstituteNode;t.onSubstituteNode=Uc;const Ce=t.onEmitNode;t.onEmitNode=dl;let ne=!1,ve,Se,Ne,pe,fe;const xe=new Map,Be=new Set;let Ge,Ae,De=!1,Ke=!1;return Kp(t,Je);function Je($){if($.isDeclarationFile||(fe=void 0,ne=!!(Pp($)&32),!ge&&!ne))return $;const tt=rn($,Ye,t);return iD(tt,t.readEmitHelpers()),tt}function ft($){switch($.kind){case 129:return Cn()?void 0:$;default:return ur($,Qo)}}function Ye($){if(!($.transformFlags&16777216)&&!($.transformFlags&134234112))return $;switch($.kind){case 129:return H.fail("Use `modifierVisitor` instead.");case 263:return Qi($);case 231:return le($);case 175:case 172:return H.fail("Use `classElementVisitor` instead.");case 303:return ht($);case 243:return Ut($);case 260:return Ni($);case 169:return ji($);case 208:return xn($);case 277:return Jn($);case 81:return It($);case 211:return Yo($);case 212:return bo($);case 224:case 225:return Qe($,!1);case 226:return ii($,!1);case 217:return ni($,!1);case 213:return Xt($);case 244:return Mt($);case 215:return Pe($);case 248:return Et($);case 110:return de($);case 262:case 218:return yr(void 0,Ve,$);case 176:case 174:case 177:case 178:return yr($,Ve,$);default:return Ve($)}}function Ve($){return rn($,Ye,t)}function We($){switch($.kind){case 224:case 225:return Qe($,!0);case 226:return ii($,!0);case 361:return me($,!0);case 217:return ni($,!0);default:return Ye($)}}function Gt($){switch($.kind){case 298:return rn($,Gt,t);case 233:return Ei($);default:return Ye($)}}function Yt($){switch($.kind){case 210:case 209:return Ri($);default:return Ye($)}}function Ie($){switch($.kind){case 176:return yr($,Ai,$);case 177:case 178:case 174:return yr($,aa,$);case 172:return yr($,tu,$);case 175:return yr($,we,$);case 167:return Pi($);case 240:return $;default:return ol($)?ft($):Ye($)}}function st($){switch($.kind){case 167:return Pi($);default:return Ye($)}}function St($){switch($.kind){case 172:return Dn($);case 177:case 178:return Ie($);default:H.assertMissingNode($,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function It($){return!K||ia($.parent)?$:su(u.createIdentifier(""),$)}function ei($){const tt=Ho($.left);if(tt){const vt=yt($.right,Ye,Wt);return su(s().createClassPrivateFieldInHelper(tt.brandCheckIdentifier,vt),$)}return rn($,Ye,t)}function ht($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function Ut($){const tt=pe;pe=[];const vt=rn($,Ye,t),mi=Oe(pe)?[vt,...pe]:vt;return pe=tt,mi}function Ni($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function ji($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function xn($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function Jn($){return If($,gt)&&($=Vf(t,$,!0,$.isExportEquals?"":"default")),rn($,Ye,t)}function an($){return Oe(Ne)&&(Cf($)?(Ne.push($.expression),$=u.updateParenthesizedExpression($,u.inlineExpressions(Ne))):(Ne.push($),$=u.inlineExpressions(Ne)),Ne=void 0),$}function Pi($){const tt=yt($.expression,Ye,Wt);return u.updateComputedPropertyName($,an(tt))}function Ai($){return Ge?it($,Ge):Ve($)}function Zu($){return!!(K||Kc($)&&Pp($)&32)}function aa($){if(H.assert(!o4($)),!ph($)||!Zu($))return rn($,Ie,t);const tt=Ho($.name);if(H.assert(tt,"Undeclared private name for property declaration."),!tt.isValid)return $;const vt=Ba($);vt&&wo().push(u.createAssignment(vt,u.createFunctionExpression(ti($.modifiers,mi=>Qo(mi)&&!N7(mi)&&!nFe(mi)),$.asteriskToken,vt,void 0,xc($.parameters,Ye,t),void 0,Om($.body,Ye,t))))}function yr($,tt,vt){if($!==Ae){const mi=Ae;Ae=$;const fn=tt(vt);return Ae=mi,fn}return tt(vt)}function Ba($){H.assert(Xr($.name));const tt=Ho($.name);if(H.assert(tt,"Undeclared private name for property declaration."),tt.kind==="m")return tt.methodName;if(tt.kind==="a"){if(Lx($))return tt.getterName;if(e5($))return tt.setterName}}function bt(){const $=Ir(),tt=$.classThis??$.classConstructor??(Ge==null?void 0:Ge.name);return H.checkDefined(tt)}function jn($){const tt=nE($),vt=Lv($),mi=$.name;let fn=mi,Wu=mi;if(Ps(mi)&&!sE(mi.expression)){const nd=FY(mi);if(nd)fn=u.updateComputedPropertyName(mi,yt(mi.expression,Ye,Wt)),Wu=u.updateComputedPropertyName(mi,nd.left);else{const S0=u.createTempVariable(d);As(S0,mi.expression);const ud=yt(mi.expression,Ye,Wt),m0=u.createAssignment(S0,ud);As(m0,mi.expression),fn=u.updateComputedPropertyName(mi,m0),Wu=u.updateComputedPropertyName(mi,S0)}}const uu=kn($.modifiers,ft,Qo),Tu=Wce(u,$,uu,$.initializer);su(Tu,$),Zn(Tu,3072),As(Tu,vt);const Nr=No($)?bt():u.createThis(),Vu=jFe(u,$,uu,fn,Nr);su(Vu,$),Bc(Vu,tt),As(Vu,vt);const Ss=u.createModifiersFromModifierFlags(tE(uu)),ic=VFe(u,$,Ss,Wu,Nr);return su(ic,$),Zn(ic,3072),As(ic,vt),dH([Tu,Vu,ic],St,Zd)}function Ln($){if(Zu($)){const tt=Ho($.name);if(H.assert(tt,"Undeclared private name for property declaration."),!tt.isValid)return $;if(tt.isStatic&&!K){const vt=Li($,u.createThis());if(vt)return u.createClassStaticBlockDeclaration(u.createBlock([vt],!0))}return}return z&&!No($)&&(fe!=null&&fe.data)&&fe.data.facts&16?u.updatePropertyDeclaration($,kn($.modifiers,Ye,ol),$.name,void 0,void 0,void 0):(If($,gt)&&($=Vf(t,$)),u.updatePropertyDeclaration($,kn($.modifiers,ft,Qo),yt($.name,st,Sc),void 0,void 0,yt($.initializer,Ye,Wt)))}function Si($){if(J&&!ef($)){const tt=Ku($.name,!!$.initializer||T);if(tt&&wo().push(...HFe(tt)),No($)&&!K){const vt=Li($,u.createThis());if(vt){const mi=u.createClassStaticBlockDeclaration(u.createBlock([vt]));return su(mi,$),Bc(mi,$),Bc(vt,{pos:-1,end:-1}),Nv(vt,void 0),A7(vt,void 0),mi}}return}return u.updatePropertyDeclaration($,kn($.modifiers,ft,Qo),yt($.name,st,Sc),void 0,void 0,yt($.initializer,Ye,Wt))}function Dn($){return H.assert(!o4($),"Decorators should already have been transformed and elided."),ph($)?Ln($):Si($)}function Cn(){return Y===-1||Y===3&&!!(fe!=null&&fe.data)&&!!(fe.data.facts&16)}function tu($){return ef($)&&(Cn()||Kc($)&&Pp($)&32)?jn($):Dn($)}function oa(){return!!Ae&&Kc(Ae)&&wx(Ae)&&ef(Wl(Ae))}function Da($){if(oa()){const tt=Dc($);tt.kind===110&&Be.add(tt)}}function ua($,tt){return tt=yt(tt,Ye,Wt),Da(tt),Ta($,tt)}function Ta($,tt){switch(Bc(tt,Sv(tt,-1)),$.kind){case"a":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.getterName);case"m":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.methodName);case"f":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return H.fail("Access helpers should not be created for untransformed private elements");default:H.assertNever($,"Unknown private element type")}}function Yo($){if(Xr($.name)){const tt=Ho($.name);if(tt)return Pt(su(ua(tt,$.expression),$),$)}if(se&&Ae&&nf($)&&at($.name)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:mi}=fe.data;if(mi&1)return ca($);if(tt&&vt){const fn=u.createReflectGetCall(vt,u.createStringLiteralFromNode($.name),tt);return su(fn,$.expression),Pt(fn,$.expression),fn}}return rn($,Ye,t)}function bo($){if(se&&Ae&&nf($)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:mi}=fe.data;if(mi&1)return ca($);if(tt&&vt){const fn=u.createReflectGetCall(vt,yt($.argumentExpression,Ye,Wt),tt);return su(fn,$.expression),Pt(fn,$.expression),fn}}return rn($,Ye,t)}function Qe($,tt){if($.operator===46||$.operator===47){const vt=l0($.operand);if(T8(vt)){let mi;if(mi=Ho(vt.name)){const fn=yt(vt.expression,Ye,Wt);Da(fn);const{readExpression:Wu,initializeExpression:uu}=qt(fn);let Tu=ua(mi,Wu);const Nr=zv($)||tt?void 0:u.createTempVariable(d);return Tu=DY(u,$,Tu,d,Nr),Tu=vi(mi,uu||Wu,Tu,64),su(Tu,$),Pt(Tu,$),Nr&&(Tu=u.createComma(Tu,Nr),Pt(Tu,$)),Tu}}else if(se&&Ae&&nf(vt)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:mi,superClassReference:fn,facts:Wu}=fe.data;if(Wu&1){const uu=ca(vt);return zv($)?u.updatePrefixUnaryExpression($,uu):u.updatePostfixUnaryExpression($,uu)}if(mi&&fn){let uu,Tu;if(Iu(vt)?at(vt.name)&&(Tu=uu=u.createStringLiteralFromNode(vt.name)):sE(vt.argumentExpression)?Tu=uu=vt.argumentExpression:(Tu=u.createTempVariable(d),uu=u.createAssignment(Tu,yt(vt.argumentExpression,Ye,Wt))),uu&&Tu){let Nr=u.createReflectGetCall(fn,Tu,mi);Pt(Nr,vt);const Vu=tt?void 0:u.createTempVariable(d);return Nr=DY(u,$,Nr,d,Vu),Nr=u.createReflectSetCall(fn,uu,Nr,mi),su(Nr,$),Pt(Nr,$),Vu&&(Nr=u.createComma(Nr,Vu),Pt(Nr,$)),Nr}}}}return rn($,Ye,t)}function Et($){return u.updateForStatement($,yt($.initializer,We,a4),yt($.condition,Ye,Wt),yt($.incrementor,We,Wt),Ih($.statement,Ye,t))}function Mt($){return u.updateExpressionStatement($,yt($.expression,We,Wt))}function qt($){const tt=sl($)?$:u.cloneNode($);if($.kind===110&&Be.has($)&&Be.add(tt),sE($))return{readExpression:tt,initializeExpression:void 0};const vt=u.createTempVariable(d),mi=u.createAssignment(vt,tt);return{readExpression:vt,initializeExpression:mi}}function Xt($){var tt;if(T8($.expression)&&Ho($.expression.name)){const{thisArg:vt,target:mi}=u.createCallBinding($.expression,d,k);return $y($)?u.updateCallChain($,u.createPropertyAccessChain(yt(mi,Ye,Wt),$.questionDotToken,"call"),void 0,void 0,[yt(vt,Ye,Wt),...kn($.arguments,Ye,Wt)]):u.updateCallExpression($,u.createPropertyAccessExpression(yt(mi,Ye,Wt),"call"),void 0,[yt(vt,Ye,Wt),...kn($.arguments,Ye,Wt)])}if(se&&Ae&&nf($.expression)&&DM(Ae)&&((tt=fe==null?void 0:fe.data)!=null&&tt.classConstructor)){const vt=u.createFunctionCallCall(yt($.expression,Ye,Wt),fe.data.classConstructor,kn($.arguments,Ye,Wt));return su(vt,$),Pt(vt,$),vt}return rn($,Ye,t)}function Pe($){var tt;if(T8($.tag)&&Ho($.tag.name)){const{thisArg:vt,target:mi}=u.createCallBinding($.tag,d,k);return u.updateTaggedTemplateExpression($,u.createCallExpression(u.createPropertyAccessExpression(yt(mi,Ye,Wt),"bind"),void 0,[yt(vt,Ye,Wt)]),void 0,yt($.template,Ye,P8))}if(se&&Ae&&nf($.tag)&&DM(Ae)&&((tt=fe==null?void 0:fe.data)!=null&&tt.classConstructor)){const vt=u.createFunctionBindCall(yt($.tag,Ye,Wt),fe.data.classConstructor,[]);return su(vt,$),Pt(vt,$),u.updateTaggedTemplateExpression($,vt,void 0,yt($.template,Ye,P8))}return rn($,Ye,t)}function et($){if(fe&&xe.set(Wl($),fe),K){if(EM($)){const mi=yt($.body.statements[0].expression,Ye,Wt);return ld(mi,!0)&&mi.left===mi.right?void 0:mi}if(X7($))return yt($.body.statements[0].expression,Ye,Wt);p();let tt=yr($,mi=>kn(mi,Ye,ia),$.body.statements);tt=u.mergeLexicalEnvironment(tt,f());const vt=u.createImmediatelyInvokedArrowFunction(tt);return su(l0(vt.expression),$),i_(l0(vt.expression),4),su(vt,$),Pt(vt,$),vt}}function gt($){if(Xd($)&&!$.name){const tt=lQ($);return Oe(tt,X7)?!1:(K||!!Pp($))&&Oe(tt,mi=>zl(mi)||ph(mi)||J&&fH(mi))}return!1}function ii($,tt){if(r5($)){const vt=Ne;Ne=void 0,$=u.updateBinaryExpression($,yt($.left,Yt,Wt),$.operatorToken,yt($.right,Ye,Wt));const mi=Oe(Ne)?u.inlineExpressions(Dr([...Ne,$])):$;return Ne=vt,mi}if(ld($)){If($,gt)&&($=Vf(t,$),H.assertNode($,ld));const vt=Dc($.left,9);if(T8(vt)){const mi=Ho(vt.name);if(mi)return Pt(su(vi(mi,vt.expression,$.right,$.operatorToken.kind),$),$)}else if(se&&Ae&&nf($.left)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:mi,superClassReference:fn,facts:Wu}=fe.data;if(Wu&1)return u.updateBinaryExpression($,ca($.left),$.operatorToken,yt($.right,Ye,Wt));if(mi&&fn){let uu=U0($.left)?yt($.left.argumentExpression,Ye,Wt):at($.left.name)?u.createStringLiteralFromNode($.left.name):void 0;if(uu){let Tu=yt($.right,Ye,Wt);if(mM($.operatorToken.kind)){let Vu=uu;sE(uu)||(Vu=u.createTempVariable(d),uu=u.createAssignment(Vu,uu));const Ss=u.createReflectGetCall(fn,Vu,mi);su(Ss,$.left),Pt(Ss,$.left),Tu=u.createBinaryExpression(Ss,pM($.operatorToken.kind),Tu),Pt(Tu,$)}const Nr=tt?void 0:u.createTempVariable(d);return Nr&&(Tu=u.createAssignment(Nr,Tu),Pt(Nr,$)),Tu=u.createReflectSetCall(fn,uu,Tu,mi),su(Tu,$),Pt(Tu,$),Nr&&(Tu=u.createComma(Tu,Nr),Pt(Tu,$)),Tu}}}}return yMt($)?ei($):rn($,Ye,t)}function me($,tt){const vt=tt?hH($.elements,We):hH($.elements,Ye,We);return u.updateCommaListExpression($,vt)}function ni($,tt){const vt=tt?We:Ye,mi=yt($.expression,vt,Wt);return u.updateParenthesizedExpression($,mi)}function vi($,tt,vt,mi){if(tt=yt(tt,Ye,Wt),vt=yt(vt,Ye,Wt),Da(tt),mM(mi)){const{readExpression:fn,initializeExpression:Wu}=qt(tt);tt=Wu||fn,vt=u.createBinaryExpression(Ta($,fn),pM(mi),vt)}switch(Bc(tt,Sv(tt,-1)),$.kind){case"a":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,$.setterName);case"m":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,void 0);case"f":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return H.fail("Access helpers should not be created for untransformed private elements");default:H.assertNever($,"Unknown private element type")}}function mt($){return ti($.members,JAe)}function Ot($){var tt;let vt=0;const mi=Wl($);Wc(mi)&&t5(M,mi)&&(vt|=1),K&&(e1e($)||dQ($))&&(vt|=2);let fn=!1,Wu=!1,uu=!1,Tu=!1;for(const Vu of $.members)No(Vu)?((Vu.name&&(Xr(Vu.name)||ef(Vu))&&K||ef(Vu)&&Y===-1&&!$.name&&!((tt=$.emitNode)!=null&&tt.classThis))&&(vt|=2),(ko(Vu)||zl(Vu))&&(oe&&Vu.transformFlags&16384&&(vt|=8,vt&1||(vt|=2)),se&&Vu.transformFlags&134217728&&(vt&1||(vt|=6)))):P2(Wl(Vu))||(ef(Vu)?(Tu=!0,uu||(uu=ph(Vu))):ph(Vu)?(uu=!0,b.getNodeCheckFlags(Vu)&262144&&(vt|=2)):ko(Vu)&&(fn=!0,Wu||(Wu=!!Vu.initializer)));return(j&&fn||z&&Wu||K&&uu||K&&Tu&&Y===-1)&&(vt|=16),vt}function Ei($){var tt;if((((tt=fe==null?void 0:fe.data)==null?void 0:tt.facts)||0)&4){const mi=u.createTempVariable(d,!0);return Ir().superClassReference=mi,u.updateExpressionWithTypeArguments($,u.createAssignment(mi,yt($.expression,Ye,Wt)),void 0)}return rn($,Ye,t)}function $i($,tt){var vt;const mi=Ge,fn=Ne,Wu=fe;Ge=$,Ne=void 0,ja();const uu=Pp($)&32;if(K||uu){const Vu=Za($);if(Vu&&at(Vu))as().data.className=Vu;else if((vt=$.emitNode)!=null&&vt.assignedName&&us($.emitNode.assignedName)){if($.emitNode.assignedName.textSourceNode&&at($.emitNode.assignedName.textSourceNode))as().data.className=$.emitNode.assignedName.textSourceNode;else if(Lm($.emitNode.assignedName.text,k)){const Ss=u.createIdentifier($.emitNode.assignedName.text);as().data.className=Ss}}}if(K){const Vu=mt($);Oe(Vu)&&(as().data.weakSetName=vl("instances",Vu[0].name))}const Tu=Ot($);Tu&&(Ir().facts=Tu),Tu&8&&pr();const Nr=tt($,Tu);return wn(),H.assert(fe===Wu),Ge=mi,Ne=fn,Nr}function Qi($){return $i($,on)}function on($,tt){var vt,mi;let fn;if(tt&2)if(K&&((vt=$.emitNode)!=null&&vt.classThis))Ir().classConstructor=$.emitNode.classThis,fn=u.createAssignment($.emitNode.classThis,u.getInternalName($));else{const m0=u.createTempVariable(d,!0);Ir().classConstructor=u.cloneNode(m0),fn=u.createAssignment(m0,u.getInternalName($))}(mi=$.emitNode)!=null&&mi.classThis&&(Ir().classThis=$.emitNode.classThis);const Wu=b.getNodeCheckFlags($)&262144,uu=Yu($,32),Tu=Yu($,2048);let Nr=kn($.modifiers,ft,Qo);const Vu=kn($.heritageClauses,Gt,mm),{members:Ss,prologue:ic}=je($),nd=[];if(fn&&wo().unshift(fn),Oe(Ne)&&nd.push(u.createExpressionStatement(u.inlineExpressions(Ne))),z||K||Pp($)&32){const m0=lQ($);Oe(m0)&&Qt(nd,m0,u.getInternalName($))}nd.length>0&&uu&&Tu&&(Nr=kn(Nr,m0=>OV(m0)?void 0:m0,Qo),nd.push(u.createExportAssignment(void 0,!1,u.getLocalName($,!1,!0))));const S0=Ir().classConstructor;Wu&&S0&&(Ru(),Se[M1($)]=S0);const ud=u.updateClassDeclaration($,Nr,$.name,void 0,Vu,Ss);return nd.unshift(ud),ic&&nd.unshift(u.createExpressionStatement(ic)),nd}function le($){return $i($,te)}function te($,tt){var vt,mi,fn;const Wu=!!(tt&1),uu=lQ($),Tu=b.getNodeCheckFlags($),Nr=Tu&262144;let Vu;function Ss(){var uh;if(K&&((uh=$.emitNode)!=null&&uh.classThis))return Ir().classConstructor=$.emitNode.classThis;const h4=Tu&32768,D1=u.createTempVariable(h4?v:d,!0);return Ir().classConstructor=u.cloneNode(D1),D1}(vt=$.emitNode)!=null&&vt.classThis&&(Ir().classThis=$.emitNode.classThis),tt&2&&(Vu??(Vu=Ss()));const ic=kn($.modifiers,ft,Qo),nd=kn($.heritageClauses,Gt,mm),{members:S0,prologue:ud}=je($),m0=u.updateClassExpression($,ic,$.name,void 0,nd,S0),Bd=[];if(ud&&Bd.push(ud),(K||Pp($)&32)&&Oe(uu,uh=>zl(uh)||ph(uh)||J&&fH(uh))||Oe(Ne))if(Wu)H.assertIsDefined(pe,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Oe(Ne)&&yn(pe,Vt(Ne,u.createExpressionStatement)),Oe(uu)&&Qt(pe,uu,((mi=$.emitNode)==null?void 0:mi.classThis)??u.getInternalName($)),Vu?Bd.push(u.createAssignment(Vu,m0)):K&&((fn=$.emitNode)!=null&&fn.classThis)?Bd.push(u.createAssignment($.emitNode.classThis,m0)):Bd.push(m0);else{if(Vu??(Vu=Ss()),Nr){Ru();const uh=u.cloneNode(Vu);uh.emitNode.autoGenerate.flags&=-9,Se[M1($)]=uh}Bd.push(u.createAssignment(Vu,m0)),yn(Bd,Ne),yn(Bd,Ui(uu,Vu)),Bd.push(u.cloneNode(Vu))}else Bd.push(m0);return Bd.length>1&&(i_(m0,131072),Bd.forEach(vh)),u.inlineExpressions(Bd)}function we($){if(!K)return rn($,Ye,t)}function de($){if(oe&&Ae&&zl(Ae)&&(fe!=null&&fe.data)){const{classThis:tt,classConstructor:vt}=fe.data;return tt??vt??$}return $}function je($){const tt=!!(Pp($)&32);if(K||ne){for(const uu of $.members)if(ph(uu))if(Zu(uu))hd(uu,uu.name,Fn);else{const Tu=as();Bk(Tu,uu.name,{kind:"untransformed"})}if(K&&Oe(mt($))&&X(),Cn()){for(const uu of $.members)if(ef(uu)){const Tu=u.getGeneratedPrivateNameForNode(uu.name,void 0,"_accessor_storage");if(K||tt&&Kc(uu))hd(uu,Tu,vc);else{const Nr=as();Bk(Nr,Tu,{kind:"untransformed"})}}}}let vt=kn($.members,Ie,Zd),mi;Oe(vt,hc)||(mi=it(void 0,$));let fn,Wu;if(!K&&Oe(Ne)){let uu=u.createExpressionStatement(u.inlineExpressions(Ne));if(uu.transformFlags&134234112){const Nr=u.createTempVariable(d),Vu=u.createArrowFunction(void 0,void 0,[],void 0,void 0,u.createBlock([uu]));fn=u.createAssignment(Nr,Vu),uu=u.createExpressionStatement(u.createCallExpression(Nr,void 0,[]))}const Tu=u.createBlock([uu]);Wu=u.createClassStaticBlockDeclaration(Tu),Ne=void 0}if(mi||Wu){let uu;const Tu=Le(vt,EM),Nr=Le(vt,X7);uu=xi(uu,Tu),uu=xi(uu,Nr),uu=xi(uu,mi),uu=xi(uu,Wu);const Vu=Tu||Nr?ti(vt,Ss=>Ss!==Tu&&Ss!==Nr):vt;uu=yn(uu,Vu),vt=Pt(u.createNodeArray(uu),$.members)}return{members:vt,prologue:fn}}function X(){const{weakSetName:$}=as().data;H.assert($,"weakSetName should be set in private identifier environment"),wo().push(u.createAssignment($,u.createNewExpression(u.createIdentifier("WeakSet"),void 0,[])))}function it($,tt){if($=yt($,Ye,hc),!(fe!=null&&fe.data)||!(fe.data.facts&16))return $;const vt=Qg(tt),mi=!!(vt&&Dc(vt.expression).kind!==106),fn=xc($?$.parameters:void 0,Ye,t),Wu=ct(tt,$,mi);return Wu?$?(H.assert(fn),u.updateConstructorDeclaration($,void 0,fn,Wu)):vh(su(Pt(u.createConstructorDeclaration(void 0,fn??[],Wu),$||tt),$)):$}function Ct($,tt,vt,mi,fn,Wu,uu){const Tu=mi[fn],Nr=tt[Tu];if(yn($,kn(tt,Ye,ia,vt,Tu-vt)),vt=Tu+1,Ck(Nr)){const Vu=[];Ct(Vu,Nr.tryBlock.statements,0,mi,fn+1,Wu,uu);const Ss=u.createNodeArray(Vu);Pt(Ss,Nr.tryBlock.statements),$.push(u.updateTryStatement(Nr,u.updateBlock(Nr.tryBlock,Vu),yt(Nr.catchClause,Ye,G2),yt(Nr.finallyBlock,Ye,po)))}else{for(yn($,kn(tt,Ye,ia,Tu,1));vt!!S0.initializer||Xr(S0.name)||eE(S0)));const Wu=mt($),uu=Oe(fn)||Oe(Wu);if(!tt&&!uu)return Om(void 0,Ye,t);E();const Tu=!tt&&vt;let Nr=0,Vu=[];const Ss=[],ic=u.createThis();if(Xu(Ss,Wu,ic),tt){const S0=ti(mi,m0=>Mf(Wl(m0),tt)),ud=ti(fn,m0=>!Mf(Wl(m0),tt));Qt(Ss,S0,ic),Qt(Ss,ud,ic)}else Qt(Ss,fn,ic);if(tt!=null&&tt.body){Nr=u.copyPrologue(tt.body.statements,Vu,!1,Ye);const S0=sQ(tt.body.statements,Nr);if(S0.length)Ct(Vu,tt.body.statements,Nr,S0,0,Ss,tt);else{for(;Nr=Vu.length?tt.body.multiLine??Vu.length>0:Vu.length>0;return Pt(u.createBlock(Pt(u.createNodeArray(Vu),tt?tt.body.statements:$.members),nd),tt?tt.body:void 0)}function Qt($,tt,vt){for(const mi of tt){if(No(mi)&&!K)continue;const fn=Li(mi,vt);fn&&$.push(fn)}}function Li($,tt){const vt=zl($)?yr($,et,$):Sn($,tt);if(!vt)return;const mi=u.createExpressionStatement(vt);su(mi,$),i_(mi,bs($)&3072),Bc(mi,$);const fn=Wl($);return io(fn)?(As(mi,fn),EV(mi)):As(mi,iE($)),Nv(vt,void 0),A7(vt,void 0),eE(fn)&&i_(mi,3072),mi}function Ui($,tt){const vt=[];for(const mi of $){const fn=zl(mi)?yr(mi,et,mi):yr(mi,()=>Sn(mi,tt),void 0);fn&&(vh(fn),su(fn,mi),i_(fn,bs(mi)&3072),As(fn,iE(mi)),Bc(fn,mi),vt.push(fn))}return vt}function Sn($,tt){var vt;const mi=Ae,fn=du($,tt);return fn&&Kc($)&&((vt=fe==null?void 0:fe.data)!=null&&vt.facts)&&(su(fn,$),i_(fn,4),As(fn,Lv($.name)),xe.set(Wl($),fe)),Ae=mi,fn}function du($,tt){const vt=!T;If($,gt)&&($=Vf(t,$));const mi=eE($)?u.getGeneratedPrivateNameForNode($.name):Ps($.name)&&!sE($.name.expression)?u.updateComputedPropertyName($.name,u.getGeneratedNameForNode($.name)):$.name;if(Kc($)&&(Ae=$),Xr(mi)&&Zu($)){const uu=Ho(mi);if(uu)return uu.kind==="f"?uu.isStatic?xMt(u,uu.variableName,yt($.initializer,Ye,Wt)):vMt(u,tt,yt($.initializer,Ye,Wt),uu.brandCheckIdentifier):void 0;H.fail("Undeclared private name for property declaration.")}if((Xr(mi)||Kc($))&&!$.initializer)return;const fn=Wl($);if(Yu(fn,64))return;let Wu=yt($.initializer,Ye,Wt);if(Mf(fn,fn.parent)&&at(mi)){const uu=u.cloneNode(mi);Wu?(Cf(Wu)&&MV(Wu.expression)&&jP(Wu.expression.left,"___runInitializers")&&R7(Wu.expression.right)&&Of(Wu.expression.right.expression)&&(Wu=Wu.expression.left),Wu=u.inlineExpressions([Wu,uu])):Wu=uu,Zn(mi,3168),As(uu,fn.name),Zn(uu,3072)}else Wu??(Wu=u.createVoidZero());if(vt||Xr(mi)){const uu=Fk(u,tt,mi,mi);return i_(uu,1024),u.createAssignment(uu,Wu)}else{const uu=Ps(mi)?mi.expression:at(mi)?u.createStringLiteral(Yr(mi.escapedText)):mi,Tu=u.createPropertyDescriptor({value:Wu,configurable:!0,writable:!0,enumerable:!0});return u.createObjectDefinePropertyCall(tt,uu,Tu)}}function Ru(){ve&1||(ve|=1,t.enableSubstitution(80),Se=[])}function pr(){ve&2||(ve|=2,t.enableSubstitution(110),t.enableEmitNotification(262),t.enableEmitNotification(218),t.enableEmitNotification(176),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(174),t.enableEmitNotification(172),t.enableEmitNotification(167))}function Xu($,tt,vt){if(!K||!Oe(tt))return;const{weakSetName:mi}=as().data;H.assert(mi,"weakSetName should be set in private identifier environment"),$.push(u.createExpressionStatement(CMt(u,vt,mi)))}function ca($){return Iu($)?u.updatePropertyAccessExpression($,u.createVoidZero(),$.name):u.updateElementAccessExpression($,u.createVoidZero(),yt($.argumentExpression,Ye,Wt))}function Ku($,tt){if(Ps($)){const vt=FY($),mi=yt($.expression,Ye,Wt),fn=Np(mi),Wu=sE(fn);if(!(!!vt||ld(fn)&&al(fn.left))&&!Wu&&tt){const Tu=u.getGeneratedNameForNode($);return b.getNodeCheckFlags($)&32768?v(Tu):d(Tu),u.createAssignment(Tu,mi)}return Wu||at(fn)?void 0:mi}}function ja(){fe={previous:fe,data:void 0}}function wn(){fe=fe==null?void 0:fe.previous}function Ir(){return H.assert(fe),fe.data??(fe.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function as(){return H.assert(fe),fe.privateEnv??(fe.privateEnv=qAe({className:void 0,weakSetName:void 0}))}function wo(){return Ne??(Ne=[])}function Fn($,tt,vt,mi,fn,Wu,uu){ef($)?wl($,tt,vt,mi,fn,Wu):ko($)?vc($,tt,vt,mi,fn,Wu):dc($)?Ya($,tt,vt,mi,fn,Wu):zm($)?c0($,tt,vt,mi,fn,Wu,uu):jf($)&&Ul($,tt,vt,mi,fn,Wu,uu)}function vc($,tt,vt,mi,fn,Wu,uu){if(fn){const Tu=H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"),Nr=co(tt);Bk(mi,tt,{kind:"f",isStatic:!0,brandCheckIdentifier:Tu,variableName:Nr,isValid:Wu})}else{const Tu=co(tt);Bk(mi,tt,{kind:"f",isStatic:!1,brandCheckIdentifier:Tu,isValid:Wu}),wo().push(u.createAssignment(Tu,u.createNewExpression(u.createIdentifier("WeakMap"),void 0,[])))}}function Ya($,tt,vt,mi,fn,Wu,uu){const Tu=co(tt),Nr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(mi.data.weakSetName,"weakSetName should be set in private identifier environment");Bk(mi,tt,{kind:"m",methodName:Tu,brandCheckIdentifier:Nr,isStatic:fn,isValid:Wu})}function c0($,tt,vt,mi,fn,Wu,uu){const Tu=co(tt,"_get"),Nr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(mi.data.weakSetName,"weakSetName should be set in private identifier environment");(uu==null?void 0:uu.kind)==="a"&&uu.isStatic===fn&&!uu.getterName?uu.getterName=Tu:Bk(mi,tt,{kind:"a",getterName:Tu,setterName:void 0,brandCheckIdentifier:Nr,isStatic:fn,isValid:Wu})}function Ul($,tt,vt,mi,fn,Wu,uu){const Tu=co(tt,"_set"),Nr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(mi.data.weakSetName,"weakSetName should be set in private identifier environment");(uu==null?void 0:uu.kind)==="a"&&uu.isStatic===fn&&!uu.setterName?uu.setterName=Tu:Bk(mi,tt,{kind:"a",getterName:void 0,setterName:Tu,brandCheckIdentifier:Nr,isStatic:fn,isValid:Wu})}function wl($,tt,vt,mi,fn,Wu,uu){const Tu=co(tt,"_get"),Nr=co(tt,"_set"),Vu=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(mi.data.weakSetName,"weakSetName should be set in private identifier environment");Bk(mi,tt,{kind:"a",getterName:Tu,setterName:Nr,brandCheckIdentifier:Vu,isStatic:fn,isValid:Wu})}function hd($,tt,vt){const mi=Ir(),fn=as(),Wu=Yde(fn,tt),uu=Kc($),Tu=!bMt(tt)&&Wu===void 0;vt($,tt,mi,fn,uu,Tu,Wu)}function vl($,tt,vt){const{className:mi}=as().data,fn=mi?{prefix:"_",node:mi,suffix:"_"}:"_",Wu=typeof $=="object"?u.getGeneratedNameForNode($,24,fn,vt):typeof $=="string"?u.createUniqueName($,16,fn,vt):u.createTempVariable(void 0,!0,fn,vt);return b.getNodeCheckFlags(tt)&32768?v(Wu):d(Wu),Wu}function co($,tt){const vt=UN($);return vl((vt==null?void 0:vt.substring(1))??$,$,tt)}function Ho($){const tt=ZAe(fe,$);return(tt==null?void 0:tt.kind)==="untransformed"?void 0:tt}function id($){const tt=u.getGeneratedNameForNode($),vt=Ho($.name);if(!vt)return rn($,Ye,t);let mi=$.expression;return(mj($)||nf($)||!Y2($.expression))&&(mi=u.createTempVariable(d,!0),wo().push(u.createBinaryExpression(mi,64,yt($.expression,Ye,Wt)))),u.createAssignmentTargetWrapper(tt,vi(vt,mi,tt,64))}function Y0($){if(ys($)||Dh($))return Ri($);if(T8($))return id($);if(se&&Ae&&nf($)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:mi}=fe.data;if(mi&1)return ca($);if(tt&&vt){const fn=U0($)?yt($.argumentExpression,Ye,Wt):at($.name)?u.createStringLiteralFromNode($.name):void 0;if(fn){const Wu=u.createTempVariable(void 0);return u.createAssignmentTargetWrapper(Wu,u.createReflectSetCall(vt,fn,Wu,tt))}}}return rn($,Ye,t)}function Ko($){if(If($,gt)&&($=Vf(t,$)),ld($,!0)){const tt=Y0($.left),vt=yt($.right,Ye,Wt);return u.updateBinaryExpression($,tt,$.operatorToken,vt)}return Y0($)}function Tc($){if(Df($.expression)){const tt=Y0($.expression);return u.updateSpreadElement($,tt)}return rn($,Ye,t)}function Jp($){if(ZO($)){if(uE($))return Tc($);if(!Fd($))return Ko($)}return rn($,Ye,t)}function Lc($){const tt=yt($.name,Ye,Sc);if(ld($.initializer,!0)){const vt=Ko($.initializer);return u.updatePropertyAssignment($,tt,vt)}if(Df($.initializer)){const vt=Y0($.initializer);return u.updatePropertyAssignment($,tt,vt)}return rn($,Ye,t)}function Il($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function cl($){if(Df($.expression)){const tt=Y0($.expression);return u.updateSpreadAssignment($,tt)}return rn($,Ye,t)}function Ka($){return H.assertNode($,qO),d5($)?cl($):pm($)?Il($):Jc($)?Lc($):rn($,Ye,t)}function Ri($){return Dh($)?u.updateArrayLiteralExpression($,kn($.elements,Jp,Wt)):u.updateObjectLiteralExpression($,kn($.properties,Ka,Z3))}function dl($,tt,vt){const mi=Wl(tt),fn=xe.get(mi);if(fn){const Wu=fe,uu=Ke;fe=fn,Ke=De,De=!zl(mi)||!(Pp(mi)&32),Ce($,tt,vt),De=Ke,Ke=uu,fe=Wu;return}switch(tt.kind){case 218:if(q0(mi)||bs(tt)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Wu=fe,uu=Ke;fe=void 0,Ke=De,De=!1,Ce($,tt,vt),De=Ke,Ke=uu,fe=Wu;return}case 167:{const Wu=fe,uu=De;fe=fe==null?void 0:fe.previous,De=Ke,Ce($,tt,vt),De=uu,fe=Wu;return}}Ce($,tt,vt)}function Uc($,tt){return tt=ae($,tt),$===1?Ch(tt):tt}function Ch($){switch($.kind){case 80:return Q0($);case 110:return sf($)}return $}function sf($){if(ve&2&&(fe!=null&&fe.data)&&!Be.has($)){const{facts:tt,classConstructor:vt,classThis:mi}=fe.data,fn=De?mi??vt:vt;if(fn)return Pt(su(u.cloneNode(fn),$),$);if(tt&1&&M)return u.createParenthesizedExpression(u.createVoidZero())}return $}function Q0($){return Cc($)||$}function Cc($){if(ve&1&&b.getNodeCheckFlags($)&536870912){const tt=b.getReferencedValueDeclaration($);if(tt){const vt=Se[tt.id];if(vt){const mi=u.cloneNode(vt);return As(mi,$),Bc(mi,$),mi}}}}}function xMt(t,u,s){return t.createAssignment(u,t.createObjectLiteralExpression([t.createPropertyAssignment("value",s||t.createVoidZero())]))}function vMt(t,u,s,d){return t.createCallExpression(t.createPropertyAccessExpression(d,"set"),void 0,[u,s||t.createVoidZero()])}function CMt(t,u,s){return t.createCallExpression(t.createPropertyAccessExpression(s,"add"),void 0,[u])}function bMt(t){return!Uy(t)&&t.escapedText==="#constructor"}function yMt(t){return Xr(t.left)&&t.operatorToken.kind===103}function kMt(t){return ko(t)&&Kc(t)}function DM(t){return zl(t)||kMt(t)}var FMt=o({"src/compiler/transformers/classFields.ts"(){Bo()}});function a7e(t){const{factory:u,hoistVariableDeclaration:s}=t,d=t.getEmitResolver(),f=t.getCompilerOptions(),p=Os(f),E=Z4(f,"strictNullChecks");let v,b;return{serializeTypeNode:(Ne,pe)=>B(Ne,J,pe),serializeTypeOfNode:(Ne,pe)=>B(Ne,T,pe),serializeParameterTypesOfNode:(Ne,pe,fe)=>B(Ne,M,pe,fe),serializeReturnTypeOfNode:(Ne,pe)=>B(Ne,j,pe)};function B(Ne,pe,fe,xe){const Be=v,Ge=b;v=Ne.currentLexicalScope,b=Ne.currentNameScope;const Ae=xe===void 0?pe(fe):pe(fe,xe);return v=Be,b=Ge,Ae}function k(Ne){const pe=d.getAllAccessorDeclarations(Ne);return pe.setAccessor&&vye(pe.setAccessor)||pe.getAccessor&&U4(pe.getAccessor)}function T(Ne){switch(Ne.kind){case 172:case 169:return J(Ne.type);case 178:case 177:return J(k(Ne));case 263:case 231:case 174:return u.createIdentifier("Function");default:return u.createVoidZero()}}function M(Ne,pe){const fe=mr(Ne)?X_(Ne):Co(Ne)&&H4(Ne.body)?Ne:void 0,xe=[];if(fe){const Be=z(fe,pe),Ge=Be.length;for(let Ae=0;AeBe.parent&&FB(Be.parent)&&(Be.parent.trueType===Be||Be.parent.falseType===Be)))return u.createIdentifier("Object");const fe=ae(Ne.typeName),xe=u.createTempVariable(s);return u.createConditionalExpression(u.createTypeCheck(u.createAssignment(xe,fe),"function"),void 0,xe,void 0,u.createIdentifier("Object"));case 1:return Ce(Ne.typeName);case 2:return u.createVoidZero();case 4:return Se("BigInt",7);case 6:return u.createIdentifier("Boolean");case 3:return u.createIdentifier("Number");case 5:return u.createIdentifier("String");case 7:return u.createIdentifier("Array");case 8:return Se("Symbol",2);case 10:return u.createIdentifier("Function");case 9:return u.createIdentifier("Promise");case 11:return u.createIdentifier("Object");default:return H.assertNever(pe)}}function ge(Ne,pe){return u.createLogicalAnd(u.createStrictInequality(u.createTypeOfExpression(Ne),u.createStringLiteral("undefined")),pe)}function ae(Ne){if(Ne.kind===80){const xe=Ce(Ne);return ge(xe,xe)}if(Ne.left.kind===80)return ge(Ce(Ne.left),Ce(Ne));const pe=ae(Ne.left),fe=u.createTempVariable(s);return u.createLogicalAnd(u.createLogicalAnd(pe.left,u.createStrictInequality(u.createAssignment(fe,pe.right),u.createVoidZero())),u.createPropertyAccessExpression(fe,Ne.right))}function Ce(Ne){switch(Ne.kind){case 80:const pe=ks(Pt(a_.cloneNode(Ne),Ne),Ne.parent);return pe.original=void 0,ks(pe,Ua(v)),pe;case 166:return ne(Ne)}}function ne(Ne){return u.createPropertyAccessExpression(Ce(Ne.left),Ne.right)}function ve(Ne){return u.createConditionalExpression(u.createTypeCheck(u.createIdentifier(Ne),"function"),void 0,u.createIdentifier(Ne),void 0,u.createIdentifier("Object"))}function Se(Ne,pe){return pOV(Cn)||g1(Cn)?void 0:Cn,ol),Jn=iE(ht),an=Gt(ht),Pi=E<2?u.getInternalName(ht,!1,!0):u.getLocalName(ht,!1,!0),Ai=kn(ht.heritageClauses,T,mm);let Zu=kn(ht.members,T,Zd),aa=[];({members:Zu,decorationStatements:aa}=K(ht,Zu));const yr=E>=9&&!!an&&Oe(Zu,Cn=>ko(Cn)&&Yu(Cn,256)||zl(Cn));yr&&(Zu=Pt(u.createNodeArray([u.createClassStaticBlockDeclaration(u.createBlock([u.createExpressionStatement(u.createAssignment(an,u.createThis()))])),...Zu]),Zu));const Ba=u.createClassExpression(xn,Ut&&al(Ut)?void 0:Ut,void 0,Ai,Zu);su(Ba,ht),Pt(Ba,Jn);const bt=an&&!yr?u.createAssignment(an,Ba):Ba,jn=u.createVariableDeclaration(Pi,void 0,void 0,bt);su(jn,ht);const Ln=u.createVariableDeclarationList([jn],1),Si=u.createVariableStatement(void 0,Ln);su(Si,ht),Pt(Si,Jn),Bc(Si,ht);const Dn=[Si];if(yn(Dn,aa),Ke(Dn,ht),Ni)if(ji){const Cn=u.createExportDefault(Pi);Dn.push(Cn)}else{const Cn=u.createExternalModuleExport(u.getDeclarationName(ht));Dn.push(Cn)}return Dn}function se(ht){return u.updateClassExpression(ht,kn(ht.modifiers,k,Qo),ht.name,void 0,kn(ht.heritageClauses,T,mm),kn(ht.members,T,Zd))}function ge(ht){return u.updateConstructorDeclaration(ht,kn(ht.modifiers,k,Qo),kn(ht.parameters,T,io),yt(ht.body,T,po))}function ae(ht,Ut){return ht!==Ut&&(Bc(ht,Ut),As(ht,iE(Ut))),ht}function Ce(ht){return ae(u.updateMethodDeclaration(ht,kn(ht.modifiers,k,Qo),ht.asteriskToken,H.checkDefined(yt(ht.name,T,Sc)),void 0,void 0,kn(ht.parameters,T,io),void 0,yt(ht.body,T,po)),ht)}function ne(ht){return ae(u.updateGetAccessorDeclaration(ht,kn(ht.modifiers,k,Qo),H.checkDefined(yt(ht.name,T,Sc)),kn(ht.parameters,T,io),void 0,yt(ht.body,T,po)),ht)}function ve(ht){return ae(u.updateSetAccessorDeclaration(ht,kn(ht.modifiers,k,Qo),H.checkDefined(yt(ht.name,T,Sc)),kn(ht.parameters,T,io),yt(ht.body,T,po)),ht)}function Se(ht){if(!(ht.flags&33554432||Yu(ht,128)))return ae(u.updatePropertyDeclaration(ht,kn(ht.modifiers,k,Qo),H.checkDefined(yt(ht.name,T,Sc)),void 0,void 0,yt(ht.initializer,T,Wt)),ht)}function Ne(ht){const Ut=u.updateParameterDeclaration(ht,OFe(u,ht.modifiers),ht.dotDotDotToken,H.checkDefined(yt(ht.name,T,qy)),void 0,void 0,yt(ht.initializer,T,Wt));return Ut!==ht&&(Bc(Ut,ht),Pt(Ut,iE(ht)),As(Ut,iE(ht)),Zn(Ut.name,64)),Ut}function pe(ht){return jP(ht.expression,"___metadata")}function fe(ht){if(!ht)return;const{false:Ut,true:Ni}=JCe(ht.decorators,pe),ji=[];return yn(ji,Vt(Ut,ft)),yn(ji,ju(ht.parameters,Ye)),yn(ji,Vt(Ni,ft)),ji}function xe(ht,Ut,Ni){yn(ht,Vt(Ae(Ut,Ni),ji=>u.createExpressionStatement(ji)))}function Be(ht,Ut,Ni){return gj(!0,ht,Ni)&&Ut===No(ht)}function Ge(ht,Ut){return ti(ht.members,Ni=>Be(Ni,Ut,ht))}function Ae(ht,Ut){const Ni=Ge(ht,Ut);let ji;for(const xn of Ni)ji=xi(ji,De(ht,xn));return ji}function De(ht,Ut){const Ni=cQ(Ut,ht,!0),ji=fe(Ni);if(!ji)return;const xn=Ie(ht,Ut),Jn=Ve(Ut,!Yu(Ut,128)),an=E>0?ko(Ut)&&!eE(Ut)?u.createVoidZero():u.createNull():void 0,Pi=s().createDecorateHelper(ji,xn,Jn,an);return Zn(Pi,3072),As(Pi,iE(Ut)),Pi}function Ke(ht,Ut){const Ni=Je(Ut);Ni&&ht.push(su(u.createExpressionStatement(Ni),Ut))}function Je(ht){const Ut=Zde(ht),Ni=fe(Ut);if(!Ni)return;const ji=b&&b[M1(ht)],xn=E<2?u.getInternalName(ht,!1,!0):u.getDeclarationName(ht,!1,!0),Jn=s().createDecorateHelper(Ni,xn),an=u.createAssignment(xn,ji?u.createAssignment(ji,Jn):Jn);return Zn(an,3072),As(an,iE(ht)),an}function ft(ht){return H.checkDefined(yt(ht.expression,T,Wt))}function Ye(ht,Ut){let Ni;if(ht){Ni=[];for(const ji of ht){const xn=s().createParamHelper(ft(ji),Ut);Pt(xn,ji.expression),Zn(xn,3072),Ni.push(xn)}}return Ni}function Ve(ht,Ut){const Ni=ht.name;return Xr(Ni)?u.createIdentifier(""):Ps(Ni)?Ut&&!sE(Ni.expression)?u.getGeneratedNameForNode(Ni):Ni.expression:at(Ni)?u.createStringLiteral(fu(Ni)):u.cloneNode(Ni)}function We(){b||(t.enableSubstitution(80),b=[])}function Gt(ht){if(f.getNodeCheckFlags(ht)&262144){We();const Ut=u.createUniqueName(ht.name&&!al(ht.name)?fu(ht.name):"default");return b[M1(ht)]=Ut,d(Ut),Ut}}function Yt(ht){return u.createPropertyAccessExpression(u.getDeclarationName(ht),"prototype")}function Ie(ht,Ut){return No(Ut)?u.getDeclarationName(ht):Yt(ht)}function st(ht,Ut){return Ut=v(ht,Ut),ht===1?St(Ut):Ut}function St(ht){switch(ht.kind){case 80:return It(ht)}return ht}function It(ht){return ei(ht)??ht}function ei(ht){if(b&&f.getNodeCheckFlags(ht)&536870912){const Ut=f.getReferencedValueDeclaration(ht);if(Ut){const Ni=b[Ut.id];if(Ni){const ji=u.cloneNode(Ni);return As(ji,ht),Bc(ji,ht),ji}}}}}var SMt=o({"src/compiler/transformers/legacyDecorators.ts"(){Bo()}});function s7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=Os(t.getCompilerOptions());let v,b,B,k,T,M;return Kp(t,z);function z(te){v=void 0,M=!1;const we=rn(te,ve,t);return iD(we,t.readEmitHelpers()),M&&(F7(we,32),M=!1),we}function j(){switch(b=void 0,B=void 0,k=void 0,v==null?void 0:v.kind){case"class":b=v.classInfo;break;case"class-element":b=v.next.classInfo,B=v.classThis,k=v.classSuper;break;case"name":const te=v.next.next.next;(te==null?void 0:te.kind)==="class-element"&&(b=te.next.classInfo,B=te.classThis,k=te.classSuper);break}}function J(te){v={kind:"class",next:v,classInfo:te,savedPendingExpressions:T},T=void 0,j()}function K(){H.assert((v==null?void 0:v.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${v==null?void 0:v.kind}' instead.`),T=v.savedPendingExpressions,v=v.next,j()}function Y(te){var we,de;H.assert((v==null?void 0:v.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${v==null?void 0:v.kind}' instead.`),v={kind:"class-element",next:v},(zl(te)||ko(te)&&Kc(te))&&(v.classThis=(we=v.next.classInfo)==null?void 0:we.classThis,v.classSuper=(de=v.next.classInfo)==null?void 0:de.classSuper),j()}function oe(){var te;H.assert((v==null?void 0:v.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${v==null?void 0:v.kind}' instead.`),H.assert(((te=v.next)==null?void 0:te.kind)==="class","Incorrect value for top.next.kind.",()=>{var we;return`Expected top.next.kind to be 'class' but got '${(we=v.next)==null?void 0:we.kind}' instead.`}),v=v.next,j()}function se(){H.assert((v==null?void 0:v.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${v==null?void 0:v.kind}' instead.`),v={kind:"name",next:v},j()}function ge(){H.assert((v==null?void 0:v.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${v==null?void 0:v.kind}' instead.`),v=v.next,j()}function ae(){(v==null?void 0:v.kind)==="other"?(H.assert(!T),v.depth++):(v={kind:"other",next:v,depth:0,savedPendingExpressions:T},T=void 0,j())}function Ce(){H.assert((v==null?void 0:v.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${v==null?void 0:v.kind}' instead.`),v.depth>0?(H.assert(!T),v.depth--):(T=v.savedPendingExpressions,v=v.next,j())}function ne(te){return!!(te.transformFlags&33554432)||!!B&&!!(te.transformFlags&16384)||!!B&&!!k&&!!(te.transformFlags&134217728)}function ve(te){if(!ne(te))return te;switch(te.kind){case 170:return H.fail("Use `modifierVisitor` instead.");case 263:return Je(te);case 231:return ft(te);case 176:case 172:case 175:return H.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Jn(te);case 226:return aa(te,!1);case 303:return Si(te);case 260:return Dn(te);case 208:return Cn(te);case 277:return Mt(te);case 110:return ht(te);case 248:return Ai(te);case 244:return Zu(te);case 361:return Ba(te,!1);case 217:return qt(te,!1);case 360:return Xt(te,!1);case 213:return Ut(te);case 215:return Ni(te);case 224:case 225:return yr(te,!1);case 211:return ji(te);case 212:return xn(te);case 167:return Ln(te);case 174:case 178:case 177:case 218:case 262:{ae();const we=rn(te,Se,t);return Ce(),we}default:return rn(te,Se,t)}}function Se(te){switch(te.kind){case 170:return;default:return ve(te)}}function Ne(te){switch(te.kind){case 170:return;default:return te}}function pe(te){switch(te.kind){case 176:return We(te);case 174:return Ie(te);case 177:return st(te);case 178:return St(te);case 172:return ei(te);case 175:return It(te);default:return ve(te)}}function fe(te){switch(te.kind){case 224:case 225:return yr(te,!0);case 226:return aa(te,!0);case 361:return Ba(te,!0);case 217:return qt(te,!0);default:return ve(te)}}function xe(te){let we=te.name&&at(te.name)&&!al(te.name)?fu(te.name):te.name&&Xr(te.name)&&!al(te.name)?fu(te.name).slice(1):te.name&&us(te.name)&&Lm(te.name.text,99)?te.name.text:mr(te)?"class":"member";return Lx(te)&&(we=`get_${we}`),e5(te)&&(we=`set_${we}`),te.name&&Xr(te.name)&&(we=`private_${we}`),No(te)&&(we=`static_${we}`),"_"+we}function Be(te,we){return u.createUniqueName(`${xe(te)}_${we}`,24)}function Ge(te,we){return u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(te,void 0,void 0,we)],1))}function Ae(te){const we=u.createUniqueName("_metadata",48);let de,je,X=!1,it=!1,Ct=!1;for(const ct of te.members)if(nbe(ct)&&gj(!1,ct,te)&&(Kc(ct)?je??(je=u.createUniqueName("_staticExtraInitializers",48)):de??(de=u.createUniqueName("_instanceExtraInitializers",48))),zl(ct)?X7(ct)||(X=!0):ko(ct)&&(Kc(ct)?X||(X=!!ct.initializer||o4(ct)):it||(it=!_0e(ct))),(ph(ct)||ef(ct))&&Kc(ct)&&(Ct=!0),je&&de&&X&&it&&Ct)break;return{class:te,metadataReference:we,instanceExtraInitializersName:de,staticExtraInitializersName:je,hasStaticInitializers:X,hasNonAmbientInstanceFields:it,hasStaticPrivateClassElements:Ct}}function De(te){d(),!t1e(te)&&t5(!1,te)&&(te=hQ(t,te,u.createStringLiteral("")));const we=u.getLocalName(te,!1,!1,!0),de=Ae(te),je=[];let X,it,Ct,ct,Qt=!1;const Li=et(Zde(te));if(Li){de.classDecoratorsName=u.createUniqueName("_classDecorators",48),de.classDescriptorName=u.createUniqueName("_classDescriptor",48),de.classExtraInitializersName=u.createUniqueName("_classExtraInitializers",48);const wn=Oe(te.members,Ir=>(ph(Ir)||ef(Ir))&&Kc(Ir));de.classThis=u.createUniqueName("_classThis",wn?24:48),je.push(Ge(de.classDecoratorsName,u.createArrayLiteralExpression(Li)),Ge(de.classDescriptorName),Ge(de.classExtraInitializersName,u.createArrayLiteralExpression()),Ge(de.classThis)),de.hasStaticPrivateClassElements&&(Qt=!0,M=!0)}const Ui=Mj(te.heritageClauses,96),Sn=Ui&&Ki(Ui.types),du=Sn&&yt(Sn.expression,ve,Wt);if(du){de.classSuper=u.createUniqueName("_classSuper",48);const wn=Dc(du),Ir=Xd(wn)&&!wn.name||A0(wn)&&!wn.name||q0(wn)?u.createComma(u.createNumericLiteral(0),du):du;je.push(Ge(de.classSuper,Ir));const as=u.updateExpressionWithTypeArguments(Sn,de.classSuper,void 0),wo=u.updateHeritageClause(Ui,[as]);ct=u.createNodeArray([wo])}const Ru=de.classThis??u.createThis();J(de),X=xi(X,Qi(de.metadataReference,de.classSuper));let pr=kn(te.members,pe,Zd);if(T){let wn;for(let Ir of T){Ir=yt(Ir,function wo(Fn){if(!(Fn.transformFlags&16384))return Fn;switch(Fn.kind){case 110:return wn||(wn=u.createUniqueName("_outerThis",16),je.unshift(Ge(wn,u.createThis()))),wn;default:return rn(Fn,wo,t)}},Wt);const as=u.createExpressionStatement(Ir);X=xi(X,as)}T=void 0}if(K(),de.instanceExtraInitializersName&&!X_(te)){const wn=Ye(te,de);if(wn){const Ir=Qg(te),as=!!(Ir&&Dc(Ir.expression).kind!==106),wo=[];if(as){const vc=u.createSpreadElement(u.createIdentifier("arguments")),Ya=u.createCallExpression(u.createSuper(),void 0,[vc]);wo.push(u.createExpressionStatement(Ya))}yn(wo,wn);const Fn=u.createBlock(wo,!0);Ct=u.createConstructorDeclaration(void 0,[],Fn)}}if(de.staticExtraInitializersName&&je.push(Ge(de.staticExtraInitializersName,u.createArrayLiteralExpression())),de.instanceExtraInitializersName&&je.push(Ge(de.instanceExtraInitializersName,u.createArrayLiteralExpression())),de.memberInfos&&h1(de.memberInfos,(wn,Ir)=>{No(Ir)&&(je.push(Ge(wn.memberDecoratorsName)),wn.memberInitializersName&&je.push(Ge(wn.memberInitializersName,u.createArrayLiteralExpression())),wn.memberDescriptorName&&je.push(Ge(wn.memberDescriptorName)))}),de.memberInfos&&h1(de.memberInfos,(wn,Ir)=>{No(Ir)||(je.push(Ge(wn.memberDecoratorsName)),wn.memberInitializersName&&je.push(Ge(wn.memberInitializersName,u.createArrayLiteralExpression())),wn.memberDescriptorName&&je.push(Ge(wn.memberDescriptorName)))}),X=yn(X,de.staticNonFieldDecorationStatements),X=yn(X,de.nonStaticNonFieldDecorationStatements),X=yn(X,de.staticFieldDecorationStatements),X=yn(X,de.nonStaticFieldDecorationStatements),de.classDescriptorName&&de.classDecoratorsName&&de.classExtraInitializersName&&de.classThis){X??(X=[]);const wn=u.createPropertyAssignment("value",Ru),Ir=u.createObjectLiteralExpression([wn]),as=u.createAssignment(de.classDescriptorName,Ir),wo=u.createPropertyAccessExpression(Ru,"name"),Fn=s().createESDecorateHelper(u.createNull(),as,de.classDecoratorsName,{kind:"class",name:wo,metadata:de.metadataReference},u.createNull(),de.classExtraInitializersName),vc=u.createExpressionStatement(Fn);As(vc,o5(te)),X.push(vc);const Ya=u.createPropertyAccessExpression(de.classDescriptorName,"value"),c0=u.createAssignment(de.classThis,Ya),Ul=u.createAssignment(we,c0);X.push(u.createExpressionStatement(Ul))}if(X.push(on(Ru,de.metadataReference)),de.staticExtraInitializersName){const wn=s().createRunInitializersHelper(Ru,de.staticExtraInitializersName),Ir=u.createExpressionStatement(wn);As(Ir,te.name??o5(te)),X=xi(X,Ir)}if(de.classExtraInitializersName){const wn=s().createRunInitializersHelper(Ru,de.classExtraInitializersName),Ir=u.createExpressionStatement(wn);As(Ir,te.name??o5(te)),it=xi(it,Ir)}X&&it&&!de.hasStaticInitializers&&(yn(X,it),it=void 0);const Xu=X&&u.createClassStaticBlockDeclaration(u.createBlock(X,!0));Xu&&Qt&&_V(Xu,32);const ca=it&&u.createClassStaticBlockDeclaration(u.createBlock(it,!0));if(Xu||Ct||ca){const wn=[],Ir=pr.findIndex(X7);Xu?(yn(wn,pr,0,Ir+1),wn.push(Xu),yn(wn,pr,Ir+1)):yn(wn,pr),Ct&&wn.push(Ct),ca&&wn.push(ca),pr=Pt(u.createNodeArray(wn),pr)}const Ku=f();let ja;if(Li){ja=u.createClassExpression(void 0,void 0,void 0,ct,pr),de.classThis&&(ja=e7e(u,ja,de.classThis));const wn=u.createVariableDeclaration(we,void 0,void 0,ja),Ir=u.createVariableDeclarationList([wn]),as=de.classThis?u.createAssignment(we,de.classThis):we;je.push(u.createVariableStatement(void 0,Ir),u.createReturnStatement(as))}else ja=u.createClassExpression(void 0,te.name,void 0,ct,pr),je.push(u.createReturnStatement(ja));if(Qt){F7(ja,32);for(const wn of ja.members)(ph(wn)||ef(wn))&&Kc(wn)&&F7(wn,32)}return su(ja,te),u.createImmediatelyInvokedArrowFunction(u.mergeLexicalEnvironment(je,Ku))}function Ke(te){return t5(!1,te)||QN(!1,te)}function Je(te){if(Ke(te)){const we=[],de=Wl(te,mr)??te,je=de.name?u.createStringLiteralFromNode(de.name):u.createStringLiteral("default"),X=Yu(te,32),it=Yu(te,2048);if(te.name||(te=hQ(t,te,je)),X&&it){const Ct=De(te);if(te.name){const ct=u.createVariableDeclaration(u.getLocalName(te),void 0,void 0,Ct);su(ct,te);const Qt=u.createVariableDeclarationList([ct],1),Li=u.createVariableStatement(void 0,Qt);we.push(Li);const Ui=u.createExportDefault(u.getDeclarationName(te));su(Ui,te),Bc(Ui,nE(te)),As(Ui,o5(te)),we.push(Ui)}else{const ct=u.createExportDefault(Ct);su(ct,te),Bc(ct,nE(te)),As(ct,o5(te)),we.push(ct)}}else{H.assertIsDefined(te.name,"A class declaration that is not a default export must have a name.");const Ct=De(te),ct=X?Ru=>L7(Ru)?void 0:Ne(Ru):Ne,Qt=kn(te.modifiers,ct,Qo),Li=u.getLocalName(te,!1,!0),Ui=u.createVariableDeclaration(Li,void 0,void 0,Ct);su(Ui,te);const Sn=u.createVariableDeclarationList([Ui],1),du=u.createVariableStatement(Qt,Sn);if(su(du,te),Bc(du,nE(te)),we.push(du),X){const Ru=u.createExternalModuleExport(Li);su(Ru,te),we.push(Ru)}}return F0(we)}else{const we=kn(te.modifiers,Ne,Qo),de=kn(te.heritageClauses,ve,mm);J(void 0);const je=kn(te.members,pe,Zd);return K(),u.updateClassDeclaration(te,we,te.name,void 0,de,je)}}function ft(te){if(Ke(te)){const we=De(te);return su(we,te),we}else{const we=kn(te.modifiers,Ne,Qo),de=kn(te.heritageClauses,ve,mm);J(void 0);const je=kn(te.members,pe,Zd);return K(),u.updateClassExpression(te,we,te.name,void 0,de,je)}}function Ye(te,we){if(we.instanceExtraInitializersName&&!we.hasNonAmbientInstanceFields){const de=[];return de.push(u.createExpressionStatement(s().createRunInitializersHelper(u.createThis(),we.instanceExtraInitializersName))),de}}function Ve(te,we,de,je,X,it){const Ct=je[X],ct=we[Ct];if(yn(te,kn(we,ve,ia,de,Ct-de)),Ck(ct)){const Qt=[];Ve(Qt,ct.tryBlock.statements,0,je,X+1,it);const Li=u.createNodeArray(Qt);Pt(Li,ct.tryBlock.statements),te.push(u.updateTryStatement(ct,u.updateBlock(ct.tryBlock,Qt),yt(ct.catchClause,ve,G2),yt(ct.finallyBlock,ve,po)))}else yn(te,kn(we,ve,ia,Ct,1)),yn(te,it);yn(te,kn(we,ve,ia,Ct+1))}function We(te){Y(te);const we=kn(te.modifiers,Ne,Qo),de=kn(te.parameters,ve,io);let je;if(te.body&&b){const X=Ye(b.class,b);if(X){const it=[],Ct=u.copyPrologue(te.body.statements,it,!1,ve),ct=sQ(te.body.statements,Ct);ct.length>0?Ve(it,te.body.statements,Ct,ct,0,X):(yn(it,X),yn(it,kn(te.body.statements,ve,ia))),je=u.createBlock(it,!0),su(je,te.body),Pt(je,te.body)}}return je??(je=yt(te.body,ve,po)),oe(),u.updateConstructorDeclaration(te,we,de,je)}function Gt(te,we){return te!==we&&(Bc(te,we),As(te,o5(we))),te}function Yt(te,we,de){let je,X,it,Ct,ct;if(!we){const Ui=kn(te.modifiers,Ne,Qo);return se(),X=jn(te.name),ge(),{modifiers:Ui,referencedName:je,name:X,initializersName:it,descriptorName:ct,thisArg:Ct}}const Qt=et(cQ(te,we.class,!1)),Li=kn(te.modifiers,Ne,Qo);if(Qt){const Ui=Be(te,"decorators"),Sn=u.createArrayLiteralExpression(Qt),du=u.createAssignment(Ui,Sn),Ru={memberDecoratorsName:Ui};we.memberInfos??(we.memberInfos=new Map),we.memberInfos.set(te,Ru),T??(T=[]),T.push(du);const pr=N8(te)||ef(te)?No(te)?we.staticNonFieldDecorationStatements??(we.staticNonFieldDecorationStatements=[]):we.nonStaticNonFieldDecorationStatements??(we.nonStaticNonFieldDecorationStatements=[]):ko(te)&&!ef(te)?No(te)?we.staticFieldDecorationStatements??(we.staticFieldDecorationStatements=[]):we.nonStaticFieldDecorationStatements??(we.nonStaticFieldDecorationStatements=[]):H.fail(),Xu=zm(te)?"getter":jf(te)?"setter":dc(te)?"method":ef(te)?"accessor":ko(te)?"field":H.fail();let ca;if(at(te.name)||Xr(te.name))ca={computed:!1,name:te.name};else if(Xg(te.name))ca={computed:!0,name:u.createStringLiteralFromNode(te.name)};else{const wn=te.name.expression;Xg(wn)&&!at(wn)?ca={computed:!0,name:u.createStringLiteralFromNode(wn)}:(se(),{referencedName:je,name:X}=bt(te.name),ca={computed:!0,name:je},ge())}const Ku={kind:Xu,name:ca,static:No(te),private:Xr(te.name),access:{get:ko(te)||zm(te)||dc(te),set:ko(te)||jf(te)},metadata:we.metadataReference},ja=No(te)?we.staticExtraInitializersName??(we.staticExtraInitializersName=u.createUniqueName("_staticExtraInitializers",48)):we.instanceExtraInitializersName??(we.instanceExtraInitializersName=u.createUniqueName("_instanceExtraInitializers",48));if(N8(te)){let wn;ph(te)&&de&&(wn=de(te,kn(Li,wo=>ur(wo,VP),Qo)),Ru.memberDescriptorName=ct=Be(te,"descriptor"),wn=u.createAssignment(ct,wn));const Ir=s().createESDecorateHelper(u.createThis(),wn??u.createNull(),Ui,Ku,u.createNull(),ja),as=u.createExpressionStatement(Ir);As(as,o5(te)),pr.push(as)}else if(ko(te)){it=Ru.memberInitializersName??(Ru.memberInitializersName=Be(te,"initializers")),No(te)&&(Ct=we.classThis);let wn;ph(te)&&eE(te)&&de&&(wn=de(te,void 0),Ru.memberDescriptorName=ct=Be(te,"descriptor"),wn=u.createAssignment(ct,wn));const Ir=s().createESDecorateHelper(ef(te)?u.createThis():u.createNull(),wn??u.createNull(),Ui,Ku,it,ja),as=u.createExpressionStatement(Ir);As(as,o5(te)),pr.push(as)}}return X===void 0&&(se(),X=jn(te.name),ge()),!Oe(Li)&&(dc(te)||ko(te))&&Zn(X,1024),{modifiers:Li,referencedName:je,name:X,initializersName:it,descriptorName:ct,thisArg:Ct}}function Ie(te){Y(te);const{modifiers:we,name:de,descriptorName:je}=Yt(te,b,me);if(je)return oe(),Gt(Ot(we,de,je),te);{const X=kn(te.parameters,ve,io),it=yt(te.body,ve,po);return oe(),Gt(u.updateMethodDeclaration(te,we,te.asteriskToken,de,void 0,void 0,X,void 0,it),te)}}function st(te){Y(te);const{modifiers:we,name:de,descriptorName:je}=Yt(te,b,ni);if(je)return oe(),Gt(Ei(we,de,je),te);{const X=kn(te.parameters,ve,io),it=yt(te.body,ve,po);return oe(),Gt(u.updateGetAccessorDeclaration(te,we,de,X,void 0,it),te)}}function St(te){Y(te);const{modifiers:we,name:de,descriptorName:je}=Yt(te,b,vi);if(je)return oe(),Gt($i(we,de,je),te);{const X=kn(te.parameters,ve,io),it=yt(te.body,ve,po);return oe(),Gt(u.updateSetAccessorDeclaration(te,we,de,X,it),te)}}function It(te){Y(te);let we;if(X7(te))we=rn(te,ve,t);else if(EM(te)){const de=B;B=void 0,we=rn(te,ve,t),B=de}else b&&(b.hasStaticInitializers=!0),we=rn(te,ve,t);return oe(),we}function ei(te){If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),Y(te),H.assert(!_0e(te),"Not yet implemented.");const{modifiers:we,name:de,initializersName:je,descriptorName:X,thisArg:it}=Yt(te,b,eE(te)?mt:void 0);d();let Ct=yt(te.initializer,ve,Wt);je&&(Ct=s().createRunInitializersHelper(it??u.createThis(),je,Ct??u.createVoidZero())),!No(te)&&(b!=null&&b.instanceExtraInitializersName)&&!(b!=null&&b.hasInjectedInstanceInitializers)&&(b.hasInjectedInstanceInitializers=!0,Ct??(Ct=u.createVoidZero()),Ct=u.createParenthesizedExpression(u.createComma(s().createRunInitializersHelper(u.createThis(),b.instanceExtraInitializersName),Ct))),No(te)&&b&&Ct&&(b.hasStaticInitializers=!0);const ct=f();if(Oe(ct)&&(Ct=u.createImmediatelyInvokedArrowFunction([...ct,u.createReturnStatement(Ct)])),oe(),eE(te)&&X){const Qt=nE(te),Li=Lv(te),Ui=te.name;let Sn=Ui,du=Ui;if(Ps(Ui)&&!sE(Ui.expression)){const Ku=FY(Ui);if(Ku)Sn=u.updateComputedPropertyName(Ui,yt(Ui.expression,ve,Wt)),du=u.updateComputedPropertyName(Ui,Ku.left);else{const ja=u.createTempVariable(p);As(ja,Ui.expression);const wn=yt(Ui.expression,ve,Wt),Ir=u.createAssignment(ja,wn);As(Ir,Ui.expression),Sn=u.updateComputedPropertyName(Ui,Ir),du=u.updateComputedPropertyName(Ui,ja)}}const Ru=kn(we,Ku=>Ku.kind!==129?Ku:void 0,Qo),pr=Wce(u,te,Ru,Ct);su(pr,te),Zn(pr,3072),As(pr,Li),As(pr.name,te.name);const Xu=Ei(Ru,Sn,X);su(Xu,te),Bc(Xu,Qt),As(Xu,Li);const ca=$i(Ru,du,X);return su(ca,te),Zn(ca,3072),As(ca,Li),[pr,Xu,ca]}return Gt(u.updatePropertyDeclaration(te,we,de,void 0,void 0,Ct),te)}function ht(te){return B??te}function Ut(te){if(nf(te.expression)&&B){const we=yt(te.expression,ve,Wt),de=kn(te.arguments,ve,Wt),je=u.createFunctionCallCall(we,B,de);return su(je,te),Pt(je,te),je}return rn(te,ve,t)}function Ni(te){if(nf(te.tag)&&B){const we=yt(te.tag,ve,Wt),de=u.createFunctionBindCall(we,B,[]);su(de,te),Pt(de,te);const je=yt(te.template,ve,P8);return u.updateTaggedTemplateExpression(te,de,void 0,je)}return rn(te,ve,t)}function ji(te){if(nf(te)&&at(te.name)&&B&&k){const we=u.createStringLiteralFromNode(te.name),de=u.createReflectGetCall(k,we,B);return su(de,te.expression),Pt(de,te.expression),de}return rn(te,ve,t)}function xn(te){if(nf(te)&&B&&k){const we=yt(te.argumentExpression,ve,Wt),de=u.createReflectGetCall(k,we,B);return su(de,te.expression),Pt(de,te.expression),de}return rn(te,ve,t)}function Jn(te){If(te,an)&&(te=Vf(t,te,Pi(te.initializer)));const we=u.updateParameterDeclaration(te,void 0,te.dotDotDotToken,yt(te.name,ve,qy),void 0,void 0,yt(te.initializer,ve,Wt));return we!==te&&(Bc(we,te),Pt(we,iE(te)),As(we,iE(te)),Zn(we.name,64)),we}function an(te){return Xd(te)&&!te.name&&Ke(te)}function Pi(te){const we=Dc(te);return Xd(we)&&!we.name&&!t5(!1,we)}function Ai(te){return u.updateForStatement(te,yt(te.initializer,fe,a4),yt(te.condition,ve,Wt),yt(te.incrementor,fe,Wt),Ih(te.statement,ve,t))}function Zu(te){return rn(te,fe,t)}function aa(te,we){if(r5(te)){const de=Et(te.left),je=yt(te.right,ve,Wt);return u.updateBinaryExpression(te,de,te.operatorToken,je)}if(ld(te)){if(If(te,an))return te=Vf(t,te,Pi(te.right)),rn(te,ve,t);if(nf(te.left)&&B&&k){let de=U0(te.left)?yt(te.left.argumentExpression,ve,Wt):at(te.left.name)?u.createStringLiteralFromNode(te.left.name):void 0;if(de){let je=yt(te.right,ve,Wt);if(mM(te.operatorToken.kind)){let it=de;sE(de)||(it=u.createTempVariable(p),de=u.createAssignment(it,de));const Ct=u.createReflectGetCall(k,it,B);su(Ct,te.left),Pt(Ct,te.left),je=u.createBinaryExpression(Ct,pM(te.operatorToken.kind),je),Pt(je,te)}const X=we?void 0:u.createTempVariable(p);return X&&(je=u.createAssignment(X,je),Pt(X,te)),je=u.createReflectSetCall(k,de,je,B),su(je,te),Pt(je,te),X&&(je=u.createComma(je,X),Pt(je,te)),je}}}if(te.operatorToken.kind===28){const de=yt(te.left,fe,Wt),je=yt(te.right,we?fe:ve,Wt);return u.updateBinaryExpression(te,de,te.operatorToken,je)}return rn(te,ve,t)}function yr(te,we){if(te.operator===46||te.operator===47){const de=l0(te.operand);if(nf(de)&&B&&k){let je=U0(de)?yt(de.argumentExpression,ve,Wt):at(de.name)?u.createStringLiteralFromNode(de.name):void 0;if(je){let X=je;sE(je)||(X=u.createTempVariable(p),je=u.createAssignment(X,je));let it=u.createReflectGetCall(k,X,B);su(it,te),Pt(it,te);const Ct=we?void 0:u.createTempVariable(p);return it=DY(u,te,it,p,Ct),it=u.createReflectSetCall(k,je,it,B),su(it,te),Pt(it,te),Ct&&(it=u.createComma(it,Ct),Pt(it,te)),it}}}return rn(te,ve,t)}function Ba(te,we){const de=we?hH(te.elements,fe):hH(te.elements,ve,fe);return u.updateCommaListExpression(te,de)}function bt(te){if(Xg(te)||Xr(te)){const it=u.createStringLiteralFromNode(te),Ct=yt(te,ve,Sc);return{referencedName:it,name:Ct}}if(Xg(te.expression)&&!at(te.expression)){const it=u.createStringLiteralFromNode(te.expression),Ct=yt(te,ve,Sc);return{referencedName:it,name:Ct}}const we=u.getGeneratedNameForNode(te);p(we);const de=s().createPropKeyHelper(yt(te.expression,ve,Wt)),je=u.createAssignment(we,de),X=u.updateComputedPropertyName(te,Pe(je));return{referencedName:we,name:X}}function jn(te){return Ps(te)?Ln(te):yt(te,ve,Sc)}function Ln(te){let we=yt(te.expression,ve,Wt);return sE(we)||(we=Pe(we)),u.updateComputedPropertyName(te,we)}function Si(te){return If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),rn(te,ve,t)}function Dn(te){return If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),rn(te,ve,t)}function Cn(te){return If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),rn(te,ve,t)}function tu(te){if(ys(te)||Dh(te))return Et(te);if(nf(te)&&B&&k){const we=U0(te)?yt(te.argumentExpression,ve,Wt):at(te.name)?u.createStringLiteralFromNode(te.name):void 0;if(we){const de=u.createTempVariable(void 0),je=u.createAssignmentTargetWrapper(de,u.createReflectSetCall(k,we,de,B));return su(je,te),Pt(je,te),je}}return rn(te,ve,t)}function oa(te){if(ld(te,!0)){If(te,an)&&(te=Vf(t,te,Pi(te.right)));const we=tu(te.left),de=yt(te.right,ve,Wt);return u.updateBinaryExpression(te,we,te.operatorToken,de)}else return tu(te)}function Da(te){if(Df(te.expression)){const we=tu(te.expression);return u.updateSpreadElement(te,we)}return rn(te,ve,t)}function ua(te){return H.assertNode(te,ZO),uE(te)?Da(te):Fd(te)?rn(te,ve,t):oa(te)}function Ta(te){const we=yt(te.name,ve,Sc);if(ld(te.initializer,!0)){const de=oa(te.initializer);return u.updatePropertyAssignment(te,we,de)}if(Df(te.initializer)){const de=tu(te.initializer);return u.updatePropertyAssignment(te,we,de)}return rn(te,ve,t)}function Yo(te){return If(te,an)&&(te=Vf(t,te,Pi(te.objectAssignmentInitializer))),rn(te,ve,t)}function bo(te){if(Df(te.expression)){const we=tu(te.expression);return u.updateSpreadAssignment(te,we)}return rn(te,ve,t)}function Qe(te){return H.assertNode(te,qO),d5(te)?bo(te):pm(te)?Yo(te):Jc(te)?Ta(te):rn(te,ve,t)}function Et(te){if(Dh(te)){const we=kn(te.elements,ua,Wt);return u.updateArrayLiteralExpression(te,we)}else{const we=kn(te.properties,Qe,Z3);return u.updateObjectLiteralExpression(te,we)}}function Mt(te){return If(te,an)&&(te=Vf(t,te,Pi(te.expression))),rn(te,ve,t)}function qt(te,we){const de=we?fe:ve,je=yt(te.expression,de,Wt);return u.updateParenthesizedExpression(te,je)}function Xt(te,we){const de=we?fe:ve,je=yt(te.expression,de,Wt);return u.updatePartiallyEmittedExpression(te,je)}function Pe(te){return Oe(T)&&(Cf(te)?(T.push(te.expression),te=u.updateParenthesizedExpression(te,u.inlineExpressions(T))):(T.push(te),te=u.inlineExpressions(T)),T=void 0),te}function et(te){if(!te)return;const we=[];return yn(we,Vt(te.decorators,gt)),we}function gt(te){const we=yt(te.expression,ve,Wt);Zn(we,3072);const de=Dc(we);if(I0(de)){const{target:je,thisArg:X}=u.createCallBinding(we,p,E,!0);return u.restoreOuterExpressions(we,u.createFunctionBindCall(je,X,[]))}return we}function ii(te,we,de,je,X,it,Ct){const ct=u.createFunctionExpression(de,je,void 0,void 0,it,void 0,Ct??u.createBlock([]));su(ct,te),As(ct,o5(te)),Zn(ct,3072);const Qt=X==="get"||X==="set"?X:void 0,Li=u.createStringLiteralFromNode(we,void 0),Ui=s().createSetFunctionNameHelper(ct,Li,Qt),Sn=u.createPropertyAssignment(u.createIdentifier(X),Ui);return su(Sn,te),As(Sn,o5(te)),Zn(Sn,3072),Sn}function me(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,te.asteriskToken,"value",kn(te.parameters,ve,io),yt(te.body,ve,po))])}function ni(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"get",[],yt(te.body,ve,po))])}function vi(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"set",kn(te.parameters,ve,io),yt(te.body,ve,po))])}function mt(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"get",[],u.createBlock([u.createReturnStatement(u.createPropertyAccessExpression(u.createThis(),u.getGeneratedPrivateNameForNode(te.name)))])),ii(te,te.name,we,void 0,"set",[u.createParameterDeclaration(void 0,void 0,"value")],u.createBlock([u.createExpressionStatement(u.createAssignment(u.createPropertyAccessExpression(u.createThis(),u.getGeneratedPrivateNameForNode(te.name)),u.createIdentifier("value")))]))])}function Ot(te,we,de){return te=kn(te,je=>N7(je)?je:void 0,Qo),u.createGetAccessorDeclaration(te,we,[],void 0,u.createBlock([u.createReturnStatement(u.createPropertyAccessExpression(de,u.createIdentifier("value")))]))}function Ei(te,we,de){return te=kn(te,je=>N7(je)?je:void 0,Qo),u.createGetAccessorDeclaration(te,we,[],void 0,u.createBlock([u.createReturnStatement(u.createFunctionCallCall(u.createPropertyAccessExpression(de,u.createIdentifier("get")),u.createThis(),[]))]))}function $i(te,we,de){return te=kn(te,je=>N7(je)?je:void 0,Qo),u.createSetAccessorDeclaration(te,we,[u.createParameterDeclaration(void 0,void 0,"value")],u.createBlock([u.createReturnStatement(u.createFunctionCallCall(u.createPropertyAccessExpression(de,u.createIdentifier("set")),u.createThis(),[u.createIdentifier("value")]))]))}function Qi(te,we){const de=u.createVariableDeclaration(te,void 0,void 0,u.createConditionalExpression(u.createLogicalAnd(u.createTypeCheck(u.createIdentifier("Symbol"),"function"),u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata")),u.createToken(58),u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"create"),void 0,[we?le(we):u.createNull()]),u.createToken(59),u.createVoidZero()));return u.createVariableStatement(void 0,u.createVariableDeclarationList([de],2))}function on(te,we){const de=u.createObjectDefinePropertyCall(te,u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata"),u.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:we},!0));return Zn(u.createIfStatement(we,u.createExpressionStatement(de)),1)}function le(te){return u.createBinaryExpression(u.createElementAccessExpression(te,u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata")),61,u.createNull())}}var BMt=o({"src/compiler/transformers/esDecorators.ts"(){Bo()}});function l7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=t.getEmitResolver(),v=t.getCompilerOptions(),b=Os(v);let B,k=0,T,M,z;const j=[];let J=0;const K=t.onEmitNode,Y=t.onSubstituteNode;return t.onEmitNode=Jn,t.onSubstituteNode=an,Kp(t,oe);function oe(bt){if(bt.isDeclarationFile)return bt;se(1,!1),se(2,!E0e(bt,v));const jn=rn(bt,Se,t);return iD(jn,t.readEmitHelpers()),jn}function se(bt,jn){J=jn?J|bt:J&~bt}function ge(bt){return(J&bt)!==0}function ae(){return!ge(1)}function Ce(){return ge(2)}function ne(bt,jn,Ln){const Si=bt&~J;if(Si){se(Si,!0);const Dn=jn(Ln);return se(Si,!1),Dn}return jn(Ln)}function ve(bt){return rn(bt,Se,t)}function Se(bt){if(!(bt.transformFlags&256))return bt;switch(bt.kind){case 134:return;case 223:return Ae(bt);case 174:return ne(3,Ke,bt);case 262:return ne(3,Ye,bt);case 218:return ne(3,Ve,bt);case 219:return ne(1,We,bt);case 211:return M&&Iu(bt)&&bt.expression.kind===108&&M.add(bt.name.escapedText),rn(bt,Se,t);case 212:return M&&bt.expression.kind===108&&(z=!0),rn(bt,Se,t);case 177:return ne(3,Je,bt);case 178:return ne(3,ft,bt);case 176:return ne(3,De,bt);case 263:case 231:return ne(3,ve,bt);default:return rn(bt,Se,t)}}function Ne(bt){if(lye(bt))switch(bt.kind){case 243:return fe(bt);case 248:return Ge(bt);case 249:return xe(bt);case 250:return Be(bt);case 299:return pe(bt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return rn(bt,Ne,t);default:return H.assertNever(bt,"Unhandled node.")}return Se(bt)}function pe(bt){const jn=new Set;Gt(bt.variableDeclaration,jn);let Ln;if(jn.forEach((Si,Dn)=>{T.has(Dn)&&(Ln||(Ln=new Set(T)),Ln.delete(Dn))}),Ln){const Si=T;T=Ln;const Dn=rn(bt,Ne,t);return T=Si,Dn}else return rn(bt,Ne,t)}function fe(bt){if(Yt(bt.declarationList)){const jn=Ie(bt.declarationList,!1);return jn?u.createExpressionStatement(jn):void 0}return rn(bt,Se,t)}function xe(bt){return u.updateForInStatement(bt,Yt(bt.initializer)?Ie(bt.initializer,!0):H.checkDefined(yt(bt.initializer,Se,a4)),H.checkDefined(yt(bt.expression,Se,Wt)),Ih(bt.statement,Ne,t))}function Be(bt){return u.updateForOfStatement(bt,yt(bt.awaitModifier,Se,_ce),Yt(bt.initializer)?Ie(bt.initializer,!0):H.checkDefined(yt(bt.initializer,Se,a4)),H.checkDefined(yt(bt.expression,Se,Wt)),Ih(bt.statement,Ne,t))}function Ge(bt){const jn=bt.initializer;return u.updateForStatement(bt,Yt(jn)?Ie(jn,!1):yt(bt.initializer,Se,a4),yt(bt.condition,Se,Wt),yt(bt.incrementor,Se,Wt),Ih(bt.statement,Ne,t))}function Ae(bt){return ae()?rn(bt,Se,t):su(Pt(u.createYieldExpression(void 0,yt(bt.expression,Se,Wt)),bt),bt)}function De(bt){return u.updateConstructorDeclaration(bt,kn(bt.modifiers,Se,Qo),xc(bt.parameters,Se,t),ht(bt))}function Ke(bt){return u.updateMethodDeclaration(bt,kn(bt.modifiers,Se,ol),bt.asteriskToken,bt.name,void 0,void 0,xc(bt.parameters,Se,t),void 0,kd(bt)&2?Ut(bt):ht(bt))}function Je(bt){return u.updateGetAccessorDeclaration(bt,kn(bt.modifiers,Se,ol),bt.name,xc(bt.parameters,Se,t),void 0,ht(bt))}function ft(bt){return u.updateSetAccessorDeclaration(bt,kn(bt.modifiers,Se,ol),bt.name,xc(bt.parameters,Se,t),ht(bt))}function Ye(bt){return u.updateFunctionDeclaration(bt,kn(bt.modifiers,Se,ol),bt.asteriskToken,bt.name,void 0,xc(bt.parameters,Se,t),void 0,kd(bt)&2?Ut(bt):Om(bt.body,Se,t))}function Ve(bt){return u.updateFunctionExpression(bt,kn(bt.modifiers,Se,Qo),bt.asteriskToken,bt.name,void 0,xc(bt.parameters,Se,t),void 0,kd(bt)&2?Ut(bt):Om(bt.body,Se,t))}function We(bt){return u.updateArrowFunction(bt,kn(bt.modifiers,Se,Qo),void 0,xc(bt.parameters,Se,t),void 0,bt.equalsGreaterThanToken,kd(bt)&2?Ut(bt):Om(bt.body,Se,t))}function Gt({name:bt},jn){if(at(bt))jn.add(bt.escapedText);else for(const Ln of bt.elements)Fd(Ln)||Gt(Ln,jn)}function Yt(bt){return!!bt&&Ad(bt)&&!(bt.flags&7)&&bt.declarations.some(ei)}function Ie(bt,jn){st(bt);const Ln=DP(bt);return Ln.length===0?jn?yt(u.converters.convertToAssignmentElementTarget(bt.declarations[0].name),Se,Wt):void 0:u.inlineExpressions(Vt(Ln,It))}function st(bt){L(bt.declarations,St)}function St({name:bt}){if(at(bt))p(bt);else for(const jn of bt.elements)Fd(jn)||St(jn)}function It(bt){const jn=As(u.createAssignment(u.converters.convertToAssignmentElementTarget(bt.name),bt.initializer),bt);return H.checkDefined(yt(jn,Se,Wt))}function ei({name:bt}){if(at(bt))return T.has(bt.escapedText);for(const jn of bt.elements)if(!Fd(jn)&&ei(jn))return!0;return!1}function ht(bt){H.assertIsDefined(bt.body);const jn=M,Ln=z;M=new Set,z=!1;let Si=Om(bt.body,Se,t);const Dn=Wl(bt,$0);if(b>=2&&E.getNodeCheckFlags(bt)&384&&(kd(Dn)&3)!==3){if(xn(),M.size){const tu=fQ(u,E,bt,M);j[$s(tu)]=!0;const oa=Si.statements.slice();ZE(oa,[tu]),Si=u.updateBlock(Si,oa)}z&&(E.getNodeCheckFlags(bt)&256?S7(Si,bV):E.getNodeCheckFlags(bt)&128&&S7(Si,CV))}return M=jn,z=Ln,Si}function Ut(bt){d();const Ln=Wl(bt,Co).type,Si=b<2?ji(Ln):void 0,Dn=bt.kind===219,Cn=(E.getNodeCheckFlags(bt)&512)!==0,tu=T;T=new Set;for(const Ta of bt.parameters)Gt(Ta,T);const oa=M,Da=z;Dn||(M=new Set,z=!1);let ua;if(Dn){const Ta=s().createAwaiterHelper(Ce(),Cn,Si,Ni(bt.body)),Yo=f();if(Oe(Yo)){const bo=u.converters.convertToFunctionBlock(Ta);ua=u.updateBlock(bo,Pt(u.createNodeArray(Hi(Yo,bo.statements)),bo.statements))}else ua=Ta}else{const Ta=[],Yo=u.copyPrologue(bt.body.statements,Ta,!1,Se);Ta.push(u.createReturnStatement(s().createAwaiterHelper(Ce(),Cn,Si,Ni(bt.body,Yo)))),ZE(Ta,f());const bo=b>=2&&E.getNodeCheckFlags(bt)&384;if(bo&&(xn(),M.size)){const Et=fQ(u,E,bt,M);j[$s(Et)]=!0,ZE(Ta,[Et])}const Qe=u.createBlock(Ta,!0);Pt(Qe,bt.body),bo&&z&&(E.getNodeCheckFlags(bt)&256?S7(Qe,bV):E.getNodeCheckFlags(bt)&128&&S7(Qe,CV)),ua=Qe}return T=tu,Dn||(M=oa,z=Da),ua}function Ni(bt,jn){return po(bt)?u.updateBlock(bt,kn(bt.statements,Ne,ia,jn)):u.converters.convertToFunctionBlock(H.checkDefined(yt(bt,Ne,HU)))}function ji(bt){const jn=bt&&pj(bt);if(jn&&sm(jn)){const Ln=E.getTypeReferenceSerializationKind(jn);if(Ln===1||Ln===0)return jn}}function xn(){B&1||(B|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function Jn(bt,jn,Ln){if(B&1&&yr(jn)){const Si=E.getNodeCheckFlags(jn)&384;if(Si!==k){const Dn=k;k=Si,K(bt,jn,Ln),k=Dn;return}}else if(B&&j[$s(jn)]){const Si=k;k=0,K(bt,jn,Ln),k=Si;return}K(bt,jn,Ln)}function an(bt,jn){return jn=Y(bt,jn),bt===1&&k?Pi(jn):jn}function Pi(bt){switch(bt.kind){case 211:return Ai(bt);case 212:return Zu(bt);case 213:return aa(bt)}return bt}function Ai(bt){return bt.expression.kind===108?Pt(u.createPropertyAccessExpression(u.createUniqueName("_super",48),bt.name),bt):bt}function Zu(bt){return bt.expression.kind===108?Ba(bt.argumentExpression,bt):bt}function aa(bt){const jn=bt.expression;if(nf(jn)){const Ln=Iu(jn)?Ai(jn):Zu(jn);return u.createCallExpression(u.createPropertyAccessExpression(Ln,"call"),void 0,[u.createThis(),...bt.arguments])}return bt}function yr(bt){const jn=bt.kind;return jn===263||jn===176||jn===174||jn===177||jn===178}function Ba(bt,jn){return k&256?Pt(u.createPropertyAccessExpression(u.createCallExpression(u.createUniqueName("_superIndex",48),void 0,[bt]),"value"),jn):Pt(u.createCallExpression(u.createUniqueName("_superIndex",48),void 0,[bt]),jn)}}function fQ(t,u,s,d){const f=(u.getNodeCheckFlags(s)&256)!==0,p=[];return d.forEach((E,v)=>{const b=Yr(v),B=[];B.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,Zn(t.createPropertyAccessExpression(Zn(t.createSuper(),8),b),8)))),f&&B.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(Zn(t.createPropertyAccessExpression(Zn(t.createSuper(),8),b),8),t.createIdentifier("v"))))),p.push(t.createPropertyAssignment(b,t.createObjectLiteralExpression(B)))}),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(p,!0)]))],2))}var wMt=o({"src/compiler/transformers/es2017.ts"(){Bo()}});function c7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=t.getEmitResolver(),v=t.getCompilerOptions(),b=Os(v),B=t.onEmitNode;t.onEmitNode=Ta;const k=t.onSubstituteNode;t.onSubstituteNode=Yo;let T=!1,M,z,j,J=0,K=0,Y,oe,se,ge;const ae=[];return Kp(t,Ne);function Ce(Pe,et){return K!==(K&~Pe|et)}function ne(Pe,et){const gt=K;return K=(K&~Pe|et)&3,gt}function ve(Pe){K=Pe}function Se(Pe){oe=xi(oe,u.createVariableDeclaration(Pe))}function Ne(Pe){if(Pe.isDeclarationFile)return Pe;Y=Pe;const et=Yt(Pe);return iD(et,t.readEmitHelpers()),Y=void 0,oe=void 0,et}function pe(Pe){return Ae(Pe,!1)}function fe(Pe){return Ae(Pe,!0)}function xe(Pe){if(Pe.kind!==134)return Pe}function Be(Pe,et,gt,ii){if(Ce(gt,ii)){const me=ne(gt,ii),ni=Pe(et);return ve(me),ni}return Pe(et)}function Ge(Pe){return rn(Pe,pe,t)}function Ae(Pe,et){if(!(Pe.transformFlags&128))return Pe;switch(Pe.kind){case 223:return De(Pe);case 229:return Ke(Pe);case 253:return Je(Pe);case 256:return ft(Pe);case 210:return Ve(Pe);case 226:return st(Pe,et);case 361:return St(Pe,et);case 299:return It(Pe);case 243:return ei(Pe);case 260:return ht(Pe);case 246:case 247:case 249:return Be(Ge,Pe,0,2);case 250:return xn(Pe,void 0);case 248:return Be(Ni,Pe,0,2);case 222:return ji(Pe);case 176:return Be(Ba,Pe,2,1);case 174:return Be(Ln,Pe,2,1);case 177:return Be(bt,Pe,2,1);case 178:return Be(jn,Pe,2,1);case 262:return Be(Si,Pe,2,1);case 218:return Be(Cn,Pe,2,1);case 219:return Be(Dn,Pe,2,0);case 169:return aa(Pe);case 244:return We(Pe);case 217:return Gt(Pe,et);case 215:return Ie(Pe);case 211:return se&&Iu(Pe)&&Pe.expression.kind===108&&se.add(Pe.name.escapedText),rn(Pe,pe,t);case 212:return se&&Pe.expression.kind===108&&(ge=!0),rn(Pe,pe,t);case 263:case 231:return Be(Ge,Pe,2,1);default:return rn(Pe,pe,t)}}function De(Pe){return z&2&&z&1?su(Pt(u.createYieldExpression(void 0,s().createAwaitHelper(yt(Pe.expression,pe,Wt))),Pe),Pe):rn(Pe,pe,t)}function Ke(Pe){if(z&2&&z&1){if(Pe.asteriskToken){const et=yt(H.checkDefined(Pe.expression),pe,Wt);return su(Pt(u.createYieldExpression(void 0,s().createAwaitHelper(u.updateYieldExpression(Pe,Pe.asteriskToken,Pt(s().createAsyncDelegatorHelper(Pt(s().createAsyncValuesHelper(et),et)),et)))),Pe),Pe)}return su(Pt(u.createYieldExpression(void 0,Pi(Pe.expression?yt(Pe.expression,pe,Wt):u.createVoidZero())),Pe),Pe)}return rn(Pe,pe,t)}function Je(Pe){return z&2&&z&1?u.updateReturnStatement(Pe,Pi(Pe.expression?yt(Pe.expression,pe,Wt):u.createVoidZero())):rn(Pe,pe,t)}function ft(Pe){if(z&2){const et=A0e(Pe);return et.kind===250&&et.awaitModifier?xn(et,Pe):u.restoreEnclosingLabel(yt(et,pe,ia,u.liftToBlock),Pe)}return rn(Pe,pe,t)}function Ye(Pe){let et;const gt=[];for(const ii of Pe)if(ii.kind===305){et&&(gt.push(u.createObjectLiteralExpression(et)),et=void 0);const me=ii.expression;gt.push(yt(me,pe,Wt))}else et=xi(et,ii.kind===303?u.createPropertyAssignment(ii.name,yt(ii.initializer,pe,Wt)):yt(ii,pe,Z3));return et&>.push(u.createObjectLiteralExpression(et)),gt}function Ve(Pe){if(Pe.transformFlags&65536){const et=Ye(Pe.properties);et.length&&et[0].kind!==210&&et.unshift(u.createObjectLiteralExpression());let gt=et[0];if(et.length>1){for(let ii=1;ii=2&&E.getNodeCheckFlags(Pe)&384;if(vi){ua();const Ot=fQ(u,E,Pe,se);ae[$s(Ot)]=!0,ZE(et,[Ot])}et.push(ni),ZE(et,f());const mt=u.updateBlock(Pe.body,et);return vi&&ge&&(E.getNodeCheckFlags(Pe)&256?S7(mt,bV):E.getNodeCheckFlags(Pe)&128&&S7(mt,CV)),se=ii,ge=me,mt}function oa(Pe){d();let et=0;const gt=[],ii=yt(Pe.body,pe,HU)??u.createBlock([]);po(ii)&&(et=u.copyPrologue(ii.statements,gt,!1,pe)),yn(gt,Da(void 0,Pe));const me=f();if(et>0||Oe(gt)||Oe(me)){const ni=u.converters.convertToFunctionBlock(ii,!0);return ZE(gt,me),yn(gt,ni.statements.slice(et)),u.updateBlock(ni,Pt(u.createNodeArray(gt),ni.statements))}return ii}function Da(Pe,et){let gt=!1;for(const ii of et.parameters)if(gt){if(So(ii.name)){if(ii.name.elements.length>0){const me=Q2(ii,pe,t,0,u.getGeneratedNameForNode(ii));if(Oe(me)){const ni=u.createVariableDeclarationList(me),vi=u.createVariableStatement(void 0,ni);Zn(vi,2097152),Pe=xi(Pe,vi)}}else if(ii.initializer){const me=u.getGeneratedNameForNode(ii),ni=yt(ii.initializer,pe,Wt),vi=u.createAssignment(me,ni),mt=u.createExpressionStatement(vi);Zn(mt,2097152),Pe=xi(Pe,mt)}}else if(ii.initializer){const me=u.cloneNode(ii.name);Pt(me,ii.name),Zn(me,96);const ni=yt(ii.initializer,pe,Wt);i_(ni,3168);const vi=u.createAssignment(me,ni);Pt(vi,ii),Zn(vi,3072);const mt=u.createBlock([u.createExpressionStatement(vi)]);Pt(mt,ii),Zn(mt,3905);const Ot=u.createTypeCheck(u.cloneNode(ii.name),"undefined"),Ei=u.createIfStatement(Ot,mt);vh(Ei),Pt(Ei,ii),Zn(Ei,2101056),Pe=xi(Pe,Ei)}}else if(ii.transformFlags&65536){gt=!0;const me=Q2(ii,pe,t,1,u.getGeneratedNameForNode(ii),!1,!0);if(Oe(me)){const ni=u.createVariableDeclarationList(me),vi=u.createVariableStatement(void 0,ni);Zn(vi,2097152),Pe=xi(Pe,vi)}}return Pe}function ua(){M&1||(M|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function Ta(Pe,et,gt){if(M&1&&qt(et)){const ii=E.getNodeCheckFlags(et)&384;if(ii!==J){const me=J;J=ii,B(Pe,et,gt),J=me;return}}else if(M&&ae[$s(et)]){const ii=J;J=0,B(Pe,et,gt),J=ii;return}B(Pe,et,gt)}function Yo(Pe,et){return et=k(Pe,et),Pe===1&&J?bo(et):et}function bo(Pe){switch(Pe.kind){case 211:return Qe(Pe);case 212:return Et(Pe);case 213:return Mt(Pe)}return Pe}function Qe(Pe){return Pe.expression.kind===108?Pt(u.createPropertyAccessExpression(u.createUniqueName("_super",48),Pe.name),Pe):Pe}function Et(Pe){return Pe.expression.kind===108?Xt(Pe.argumentExpression,Pe):Pe}function Mt(Pe){const et=Pe.expression;if(nf(et)){const gt=Iu(et)?Qe(et):Et(et);return u.createCallExpression(u.createPropertyAccessExpression(gt,"call"),void 0,[u.createThis(),...Pe.arguments])}return Pe}function qt(Pe){const et=Pe.kind;return et===263||et===176||et===174||et===177||et===178}function Xt(Pe,et){return J&256?Pt(u.createPropertyAccessExpression(u.createCallExpression(u.createIdentifier("_superIndex"),void 0,[Pe]),"value"),et):Pt(u.createCallExpression(u.createIdentifier("_superIndex"),void 0,[Pe]),et)}}var TMt=o({"src/compiler/transformers/es2018.ts"(){Bo()}});function d7e(t){const u=t.factory;return Kp(t,s);function s(p){return p.isDeclarationFile?p:rn(p,d,t)}function d(p){if(!(p.transformFlags&64))return p;switch(p.kind){case 299:return f(p);default:return rn(p,d,t)}}function f(p){return p.variableDeclaration?rn(p,d,t):u.updateCatchClause(p,u.createVariableDeclaration(u.createTempVariable(void 0)),yt(p.block,d,po))}}var LMt=o({"src/compiler/transformers/es2019.ts"(){Bo()}});function h7e(t){const{factory:u,hoistVariableDeclaration:s}=t;return Kp(t,d);function d(j){return j.isDeclarationFile?j:rn(j,f,t)}function f(j){if(!(j.transformFlags&32))return j;switch(j.kind){case 213:{const J=b(j,!1);return H.assertNotNode(J,j7),J}case 211:case 212:if(Y1(j)){const J=k(j,!1,!1);return H.assertNotNode(J,j7),J}return rn(j,f,t);case 226:return j.operatorToken.kind===61?M(j):rn(j,f,t);case 220:return z(j);default:return rn(j,f,t)}}function p(j){H.assertNotNode(j,zU);const J=[j];for(;!j.questionDotToken&&!Dk(j);)j=Po(Np(j.expression),Y1),H.assertNotNode(j,zU),J.unshift(j);return{expression:j.expression,chain:J}}function E(j,J,K){const Y=B(j.expression,J,K);return j7(Y)?u.createSyntheticReferenceExpression(u.updateParenthesizedExpression(j,Y.expression),Y.thisArg):u.updateParenthesizedExpression(j,Y)}function v(j,J,K){if(Y1(j))return k(j,J,K);let Y=yt(j.expression,f,Wt);H.assertNotNode(Y,j7);let oe;return J&&(Y2(Y)?oe=Y:(oe=u.createTempVariable(s),Y=u.createAssignment(oe,Y))),Y=j.kind===211?u.updatePropertyAccessExpression(j,Y,yt(j.name,f,at)):u.updateElementAccessExpression(j,Y,yt(j.argumentExpression,f,Wt)),oe?u.createSyntheticReferenceExpression(Y,oe):Y}function b(j,J){if(Y1(j))return k(j,J,!1);if(Cf(j.expression)&&Y1(l0(j.expression))){const K=E(j.expression,!0,!1),Y=kn(j.arguments,f,Wt);return j7(K)?Pt(u.createFunctionCallCall(K.expression,K.thisArg,Y),j):u.updateCallExpression(j,K,void 0,Y)}return rn(j,f,t)}function B(j,J,K){switch(j.kind){case 217:return E(j,J,K);case 211:case 212:return v(j,J,K);case 213:return b(j,J);default:return yt(j,f,Wt)}}function k(j,J,K){const{expression:Y,chain:oe}=p(j),se=B(Np(Y),$y(oe[0]),!1);let ge=j7(se)?se.thisArg:void 0,ae=j7(se)?se.expression:se,Ce=u.restoreOuterExpressions(Y,ae,8);Y2(ae)||(ae=u.createTempVariable(s),Ce=u.createAssignment(ae,Ce));let ne=ae,ve;for(let Ne=0;NeAe&&yn(De,kn(Be.statements,T,ia,Ae,Ke-Ae));break}Ke++}H.assert(KeK(De,Ae))))],Ae,Ge===2)}return rn(Be,T,t)}function oe(Be,Ge,Ae,De,Ke){const Je=[];for(let Ve=Ge;Veu&&(u=d)}return u}function zMt(t){let u=0;for(const s of t){const d=u1e(s.statements);if(d===2)return 2;d>u&&(u=d)}return u}var IMt=o({"src/compiler/transformers/esnext.ts"(){Bo()}});function _7e(t){const{factory:u,getEmitHelperFactory:s}=t,d=t.getCompilerOptions();let f,p;return Kp(t,T);function E(){if(p.filenameDeclaration)return p.filenameDeclaration.name;const Ie=u.createVariableDeclaration(u.createUniqueName("_jsxFileName",48),void 0,void 0,u.createStringLiteral(f.fileName));return p.filenameDeclaration=Ie,p.filenameDeclaration.name}function v(Ie){return d.jsx===5?"jsxDEV":Ie?"jsxs":"jsx"}function b(Ie){const st=v(Ie);return k(st)}function B(){return k("Fragment")}function k(Ie){var st,St;const It=Ie==="createElement"?p.importSpecifier:uZ(p.importSpecifier,d),ei=(St=(st=p.utilizedImplicitRuntimeImports)==null?void 0:st.get(It))==null?void 0:St.get(Ie);if(ei)return ei.name;p.utilizedImplicitRuntimeImports||(p.utilizedImplicitRuntimeImports=new Map);let ht=p.utilizedImplicitRuntimeImports.get(It);ht||(ht=new Map,p.utilizedImplicitRuntimeImports.set(It,ht));const Ut=u.createUniqueName(`_${Ie}`,112),Ni=u.createImportSpecifier(!1,u.createIdentifier(Ie),Ut);return Gke(Ut,Ni),ht.set(Ie,Ni),Ut}function T(Ie){if(Ie.isDeclarationFile)return Ie;f=Ie,p={},p.importSpecifier=nZ(d,Ie);let st=rn(Ie,M,t);iD(st,t.readEmitHelpers());let St=st.statements;if(p.filenameDeclaration&&(St=Xy(St.slice(),u.createVariableStatement(void 0,u.createVariableDeclarationList([p.filenameDeclaration],2)))),p.utilizedImplicitRuntimeImports){for(const[It,ei]of ga(p.utilizedImplicitRuntimeImports.entries()))if(wc(Ie)){const ht=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamedImports(ga(ei.values()))),u.createStringLiteral(It),void 0);Vx(ht,!1),St=Xy(St.slice(),ht)}else if(cm(Ie)){const ht=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createObjectBindingPattern(ga(ei.values(),Ut=>u.createBindingElement(void 0,Ut.propertyName,Ut.name))),void 0,void 0,u.createCallExpression(u.createIdentifier("require"),void 0,[u.createStringLiteral(It)]))],2));Vx(ht,!1),St=Xy(St.slice(),ht)}}return St!==st.statements&&(st=u.updateSourceFile(st,St)),p=void 0,st}function M(Ie){return Ie.transformFlags&2?z(Ie):Ie}function z(Ie){switch(Ie.kind){case 284:return oe(Ie,!1);case 285:return se(Ie,!1);case 288:return ge(Ie,!1);case 294:return Yt(Ie);default:return rn(Ie,M,t)}}function j(Ie){switch(Ie.kind){case 12:return Ke(Ie);case 294:return Yt(Ie);case 284:return oe(Ie,!0);case 285:return se(Ie,!0);case 288:return ge(Ie,!0);default:return H.failBadSyntaxKind(Ie)}}function J(Ie){return Ie.properties.some(st=>Jc(st)&&(at(st.name)&&fu(st.name)==="__proto__"||us(st.name)&&st.name.text==="__proto__"))}function K(Ie){let st=!1;for(const St of Ie.attributes.properties)if(H7(St)&&(!ys(St.expression)||St.expression.properties.some(d5)))st=!0;else if(st&&oE(St)&&at(St.name)&&St.name.escapedText==="key")return!0;return!1}function Y(Ie){return p.importSpecifier===void 0||K(Ie)}function oe(Ie,st){return(Y(Ie.openingElement)?Se:ne)(Ie.openingElement,Ie.children,st,Ie)}function se(Ie,st){return(Y(Ie)?Se:ne)(Ie,void 0,st,Ie)}function ge(Ie,st){return(p.importSpecifier===void 0?pe:Ne)(Ie.openingFragment,Ie.children,st,Ie)}function ae(Ie){const st=Ce(Ie);return st&&u.createObjectLiteralExpression([st])}function Ce(Ie){const st=uB(Ie);if(S(st)===1&&!st[0].dotDotDotToken){const It=j(st[0]);return It&&u.createPropertyAssignment("children",It)}const St=qi(Ie,j);return S(St)?u.createPropertyAssignment("children",u.createArrayLiteralExpression(St)):void 0}function ne(Ie,st,St,It){const ei=We(Ie),ht=st&&st.length?Ce(st):void 0,Ut=Le(Ie.attributes.properties,xn=>!!xn.name&&at(xn.name)&&xn.name.escapedText==="key"),Ni=Ut?ti(Ie.attributes.properties,xn=>xn!==Ut):Ie.attributes.properties,ji=S(Ni)?xe(Ni,ht):u.createObjectLiteralExpression(ht?[ht]:_t);return ve(ei,ji,Ut,st||_t,St,It)}function ve(Ie,st,St,It,ei,ht){var Ut;const Ni=uB(It),ji=S(Ni)>1||!!((Ut=Ni[0])!=null&&Ut.dotDotDotToken),xn=[Ie,st];if(St&&xn.push(De(St.initializer)),d.jsx===5){const an=Wl(f);if(an&&la(an)){St===void 0&&xn.push(u.createVoidZero()),xn.push(ji?u.createTrue():u.createFalse());const Pi=s0(an,ht.pos);xn.push(u.createObjectLiteralExpression([u.createPropertyAssignment("fileName",E()),u.createPropertyAssignment("lineNumber",u.createNumericLiteral(Pi.line+1)),u.createPropertyAssignment("columnNumber",u.createNumericLiteral(Pi.character+1))])),xn.push(u.createThis())}}const Jn=Pt(u.createCallExpression(b(ji),void 0,xn),ht);return ei&&vh(Jn),Jn}function Se(Ie,st,St,It){const ei=We(Ie),ht=Ie.attributes.properties,Ut=S(ht)?xe(ht):u.createNull(),Ni=p.importSpecifier===void 0?Pce(u,t.getEmitResolver().getJsxFactoryEntity(f),d.reactNamespace,Ie):k("createElement"),ji=yFe(u,Ni,ei,Ut,qi(st,j),It);return St&&vh(ji),ji}function Ne(Ie,st,St,It){let ei;if(st&&st.length){const ht=ae(st);ht&&(ei=ht)}return ve(B(),ei||u.createObjectLiteralExpression([]),void 0,st,St,It)}function pe(Ie,st,St,It){const ei=kFe(u,t.getEmitResolver().getJsxFactoryEntity(f),t.getEmitResolver().getJsxFragmentFactoryEntity(f),d.reactNamespace,qi(st,j),Ie,It);return St&&vh(ei),ei}function fe(Ie){return ys(Ie.expression)&&!J(Ie.expression)?Lu(Ie.expression.properties,st=>H.checkDefined(yt(st,M,Z3))):u.createSpreadAssignment(H.checkDefined(yt(Ie.expression,M,Wt)))}function xe(Ie,st){const St=Os(d);return St&&St>=5?u.createObjectLiteralExpression(Be(Ie,st)):Ge(Ie,st)}function Be(Ie,st){const St=Va(Hl(Ie,H7,(It,ei)=>Va(Vt(It,ht=>ei?fe(ht):Ae(ht)))));return st&&St.push(st),St}function Ge(Ie,st){const St=[];let It=[];for(const ht of Ie){if(H7(ht)){if(ys(ht.expression)&&!J(ht.expression)){for(const Ut of ht.expression.properties){if(d5(Ut)){ei(),St.push(H.checkDefined(yt(Ut.expression,M,Wt)));continue}It.push(H.checkDefined(yt(Ut,M)))}continue}ei(),St.push(H.checkDefined(yt(ht.expression,M,Wt)));continue}It.push(Ae(ht))}return st&&It.push(st),ei(),St.length&&!ys(St[0])&&St.unshift(u.createObjectLiteralExpression()),Aa(St)||s().createAssignHelper(St);function ei(){It.length&&(St.push(u.createObjectLiteralExpression(It)),It=[])}}function Ae(Ie){const st=Gt(Ie),St=De(Ie.initializer);return u.createPropertyAssignment(st,St)}function De(Ie){if(Ie===void 0)return u.createTrue();if(Ie.kind===11){const st=Ie.singleQuote!==void 0?Ie.singleQuote:!Cq(Ie,f),St=u.createStringLiteral(Ve(Ie.text)||Ie.text,st);return Pt(St,Ie)}return Ie.kind===294?Ie.expression===void 0?u.createTrue():H.checkDefined(yt(Ie.expression,M,Wt)):r3(Ie)?oe(Ie,!1):bk(Ie)?se(Ie,!1):K2(Ie)?ge(Ie,!1):H.failBadSyntaxKind(Ie)}function Ke(Ie){const st=Je(Ie.text);return st===void 0?void 0:u.createStringLiteral(st)}function Je(Ie){let st,St=0,It=-1;for(let ei=0;ei{if(ht)return F8(parseInt(ht,10));if(Ut)return F8(parseInt(Ut,16));{const ji=Wet.get(Ni);return ji?F8(ji):st}})}function Ve(Ie){const st=Ye(Ie);return st===Ie?void 0:st}function We(Ie){if(Ie.kind===284)return We(Ie.openingElement);{const st=Ie.tagName;return at(st)&&aB(st.escapedText)?u.createStringLiteral(fu(st)):gg(st)?u.createStringLiteral(fu(st.namespace)+":"+fu(st.name)):PV(u,st)}}function Gt(Ie){const st=Ie.name;if(at(st)){const St=fu(st);return/^[A-Za-z_]\w*$/.test(St)?st:u.createStringLiteral(St)}return u.createStringLiteral(fu(st.namespace)+":"+fu(st.name))}function Yt(Ie){const st=yt(Ie.expression,M,Wt);return Ie.dotDotDotToken?u.createSpreadElement(st):st}}var Wet,RMt=o({"src/compiler/transformers/jsx.ts"(){Bo(),Wet=new Map(Object.entries({quot:34,amp:38,apos:39,lt:60,gt:62,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,copy:169,ordf:170,laquo:171,not:172,shy:173,reg:174,macr:175,deg:176,plusmn:177,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,sup1:185,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,Agrave:192,Aacute:193,Acirc:194,Atilde:195,Auml:196,Aring:197,AElig:198,Ccedil:199,Egrave:200,Eacute:201,Ecirc:202,Euml:203,Igrave:204,Iacute:205,Icirc:206,Iuml:207,ETH:208,Ntilde:209,Ograve:210,Oacute:211,Ocirc:212,Otilde:213,Ouml:214,times:215,Oslash:216,Ugrave:217,Uacute:218,Ucirc:219,Uuml:220,Yacute:221,THORN:222,szlig:223,agrave:224,aacute:225,acirc:226,atilde:227,auml:228,aring:229,aelig:230,ccedil:231,egrave:232,eacute:233,ecirc:234,euml:235,igrave:236,iacute:237,icirc:238,iuml:239,eth:240,ntilde:241,ograve:242,oacute:243,ocirc:244,otilde:245,ouml:246,divide:247,oslash:248,ugrave:249,uacute:250,ucirc:251,uuml:252,yacute:253,thorn:254,yuml:255,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830}))}});function D7e(t){const{factory:u,hoistVariableDeclaration:s}=t;return Kp(t,d);function d(b){return b.isDeclarationFile?b:rn(b,f,t)}function f(b){if(!(b.transformFlags&512))return b;switch(b.kind){case 226:return p(b);default:return rn(b,f,t)}}function p(b){switch(b.operatorToken.kind){case 68:return E(b);case 43:return v(b);default:return rn(b,f,t)}}function E(b){let B,k;const T=yt(b.left,f,Wt),M=yt(b.right,f,Wt);if(U0(T)){const z=u.createTempVariable(s),j=u.createTempVariable(s);B=Pt(u.createElementAccessExpression(Pt(u.createAssignment(z,T.expression),T.expression),Pt(u.createAssignment(j,T.argumentExpression),T.argumentExpression)),T),k=Pt(u.createElementAccessExpression(z,j),T)}else if(Iu(T)){const z=u.createTempVariable(s);B=Pt(u.createPropertyAccessExpression(Pt(u.createAssignment(z,T.expression),T.expression),T.name),T),k=Pt(u.createPropertyAccessExpression(z,T.name),T)}else B=T,k=T;return Pt(u.createAssignment(B,Pt(u.createGlobalMethodCall("Math","pow",[k,M]),b)),b)}function v(b){const B=yt(b.left,f,Wt),k=yt(b.right,f,Wt);return Pt(u.createGlobalMethodCall("Math","pow",[B,k]),b)}}var OMt=o({"src/compiler/transformers/es2016.ts"(){Bo()}});function Get(t,u){return{kind:t,expression:u}}function x7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,resumeLexicalEnvironment:f,endLexicalEnvironment:p,hoistVariableDeclaration:E}=t,v=t.getCompilerOptions(),b=t.getEmitResolver(),B=t.onSubstituteNode,k=t.onEmitNode;t.onEmitNode=ip,t.onSubstituteNode=f4;let T,M,z,j;function J(Ee){j=xi(j,u.createVariableDeclaration(Ee))}let K,Y;return Kp(t,oe);function oe(Ee){if(Ee.isDeclarationFile)return Ee;T=Ee,M=Ee.text;const Bt=xe(Ee);return iD(Bt,t.readEmitHelpers()),T=void 0,M=void 0,j=void 0,z=0,Bt}function se(Ee,Bt){const Di=z;return z=(z&~Ee|Bt)&32767,Di}function ge(Ee,Bt,Di){z=(z&~Bt|Di)&-32768|Ee}function ae(Ee){return(z&8192)!==0&&Ee.kind===253&&!Ee.expression}function Ce(Ee){return Ee.transformFlags&4194304&&(Op(Ee)||xk(Ee)||cFe(Ee)||BV(Ee)||ZP(Ee)||BB(Ee)||TV(Ee)||Ck(Ee)||G2(Ee)||V2(Ee)||Tx(Ee,!1)||po(Ee))}function ne(Ee){return(Ee.transformFlags&1024)!==0||K!==void 0||z&8192&&Ce(Ee)||Tx(Ee,!1)&&co(Ee)||(Pp(Ee)&1)!==0}function ve(Ee){return ne(Ee)?fe(Ee,!1):Ee}function Se(Ee){return ne(Ee)?fe(Ee,!0):Ee}function Ne(Ee){if(ne(Ee)){const Bt=Wl(Ee);if(ko(Bt)&&Kc(Bt)){const Di=se(32670,16449),Ci=fe(Ee,!1);return ge(Di,229376,0),Ci}return fe(Ee,!1)}return Ee}function pe(Ee){return Ee.kind===108?ql(Ee,!0):ve(Ee)}function fe(Ee,Bt){switch(Ee.kind){case 126:return;case 263:return We(Ee);case 231:return Gt(Ee);case 169:return bo(Ee);case 262:return Qi(Ee);case 219:return Ei(Ee);case 218:return $i(Ee);case 260:return Sn(Ee);case 80:return Ye(Ee);case 261:return ct(Ee);case 255:return Be(Ee);case 269:return Ge(Ee);case 241:return te(Ee,!1);case 252:case 251:return Ve(Ee);case 256:return pr(Ee);case 246:case 247:return Ku(Ee,void 0);case 248:return ja(Ee,void 0);case 249:return Ir(Ee,void 0);case 250:return as(Ee,void 0);case 244:return we(Ee);case 210:return c0(Ee);case 299:return Nr(Ee);case 304:return nd(Ee);case 167:return S0(Ee);case 209:return m0(Ee);case 213:return Bd(Ee);case 214:return h4(Ee);case 217:return de(Ee,Bt);case 226:return je(Ee,Bt);case 361:return X(Ee,Bt);case 15:case 16:case 17:case 18:return To(Ee);case 11:return nc(Ee);case 9:return fc(Ee);case 215:return Cl(Ee);case 228:return Tl(Ee);case 229:return ud(Ee);case 230:return Fo(Ee);case 108:return ql(Ee,!1);case 110:return Je(Ee);case 236:return Nc(Ee);case 174:return Ss(Ee);case 177:case 178:return ic(Ee);case 243:return Ct(Ee);case 253:return Ke(Ee);case 222:return ft(Ee);default:return rn(Ee,ve,t)}}function xe(Ee){const Bt=se(8064,64),Di=[],Ci=[];d();const Q=u.copyPrologue(Ee.statements,Di,!1,ve);return yn(Ci,kn(Ee.statements,ve,ia,Q)),j&&Ci.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(j))),u.mergeLexicalEnvironment(Di,p()),et(Di,Ee),ge(Bt,0,0),u.updateSourceFile(Ee,Pt(u.createNodeArray(Hi(Di,Ci)),Ee.statements))}function Be(Ee){if(K!==void 0){const Bt=K.allowedNonLabeledJumps;K.allowedNonLabeledJumps|=2;const Di=rn(Ee,ve,t);return K.allowedNonLabeledJumps=Bt,Di}return rn(Ee,ve,t)}function Ge(Ee){const Bt=se(7104,0),Di=rn(Ee,ve,t);return ge(Bt,0,0),Di}function Ae(Ee){return su(u.createReturnStatement(De()),Ee)}function De(){return u.createUniqueName("_this",48)}function Ke(Ee){return K?(K.nonLocalJumps|=8,ae(Ee)&&(Ee=Ae(Ee)),u.createReturnStatement(u.createObjectLiteralExpression([u.createPropertyAssignment(u.createIdentifier("value"),Ee.expression?H.checkDefined(yt(Ee.expression,ve,Wt)):u.createVoidZero())]))):ae(Ee)?Ae(Ee):rn(Ee,ve,t)}function Je(Ee){return z|=65536,z&2&&!(z&16384)&&(z|=131072),K?z&2?(K.containsLexicalThis=!0,Ee):K.thisName||(K.thisName=u.createUniqueName("this")):Ee}function ft(Ee){return rn(Ee,Se,t)}function Ye(Ee){return K&&b.isArgumentsLocalBinding(Ee)?K.argumentsName||(K.argumentsName=u.createUniqueName("arguments")):Ee.flags&256?su(Pt(u.createIdentifier(Yr(Ee.escapedText)),Ee),Ee):Ee}function Ve(Ee){if(K){const Bt=Ee.kind===252?2:4;if(!(Ee.label&&K.labels&&K.labels.get(fu(Ee.label))||!Ee.label&&K.allowedNonLabeledJumps&Bt)){let Ci;const Q=Ee.label;Q?Ee.kind===252?(Ci=`break-${Q.escapedText}`,tt(K,!0,fu(Q),Ci)):(Ci=`continue-${Q.escapedText}`,tt(K,!1,fu(Q),Ci)):Ee.kind===252?(K.nonLocalJumps|=2,Ci="break"):(K.nonLocalJumps|=4,Ci="continue");let Me=u.createStringLiteral(Ci);if(K.loopOutParameters.length){const wt=K.loopOutParameters;let ki;for(let In=0;Inat(Bt.name)&&!Bt.initializer)}function Ut(Ee){if(ik(Ee))return!0;if(!(Ee.transformFlags&134217728))return!1;switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const Bt=Ee;return Ps(Bt.name)?!!ao(Bt.name,Ut):!1}}return!!ao(Ee,Ut)}function Ni(Ee,Bt,Di,Ci){const Q=!!Di&&Dc(Di.expression).kind!==106;if(!Ee)return ei(Bt,Q);const Me=[],wt=[];f();const ki=u.copyStandardPrologue(Ee.body.statements,Me,0);(Ci||Ut(Ee.body))&&(z|=8192),yn(wt,kn(Ee.body.statements,ve,ia,ki));const In=Q||z&8192;Et(Me,Ee),Pe(Me,Ee,Ci),ii(Me,Ee),In?gt(Me,Ee,Ta()):et(Me,Ee),u.mergeLexicalEnvironment(Me,p()),In&&!ua(Ee.body)&&wt.push(u.createReturnStatement(De()));const tr=u.createBlock(Pt(u.createNodeArray([...Me,...wt]),Ee.body.statements),!0);return Pt(tr,Ee.body),Da(tr,Ee.body,Ci)}function ji(Ee){return al(Ee)&&fu(Ee)==="_this"}function xn(Ee){return al(Ee)&&fu(Ee)==="_super"}function Jn(Ee){return Jl(Ee)&&Ee.declarationList.declarations.length===1&&an(Ee.declarationList.declarations[0])}function an(Ee){return na(Ee)&&ji(Ee.name)&&!!Ee.initializer}function Pi(Ee){return ld(Ee,!0)&&ji(Ee.left)}function Ai(Ee){return Mo(Ee)&&Iu(Ee.expression)&&xn(Ee.expression.expression)&&at(Ee.expression.name)&&(fu(Ee.expression.name)==="call"||fu(Ee.expression.name)==="apply")&&Ee.arguments.length>=1&&Ee.arguments[0].kind===110}function Zu(Ee){return Xn(Ee)&&Ee.operatorToken.kind===57&&Ee.right.kind===110&&Ai(Ee.left)}function aa(Ee){return Xn(Ee)&&Ee.operatorToken.kind===56&&Xn(Ee.left)&&Ee.left.operatorToken.kind===38&&xn(Ee.left.left)&&Ee.left.right.kind===106&&Ai(Ee.right)&&fu(Ee.right.expression.name)==="apply"}function yr(Ee){return Xn(Ee)&&Ee.operatorToken.kind===57&&Ee.right.kind===110&&aa(Ee.left)}function Ba(Ee){return Pi(Ee)&&Zu(Ee.right)}function bt(Ee){return Pi(Ee)&&yr(Ee.right)}function jn(Ee){return Ai(Ee)||Zu(Ee)||Ba(Ee)||aa(Ee)||yr(Ee)||bt(Ee)}function Ln(Ee){for(let Bt=0;Bt0;Ci--){const Q=Ee.statements[Ci];if(Op(Q)&&Q.expression&&ji(Q.expression)){const Me=Ee.statements[Ci-1];let wt;if(Od(Me)&&Ba(Dc(Me.expression)))wt=Me.expression;else if(Di&&Jn(Me)){const tr=Me.declarationList.declarations[0];jn(Dc(tr.initializer))&&(wt=u.createAssignment(De(),tr.initializer))}if(!wt)break;const ki=u.createReturnStatement(wt);su(ki,Me),Pt(ki,Me);const In=u.createNodeArray([...Ee.statements.slice(0,Ci-1),ki,...Ee.statements.slice(Ci+1)]);return Pt(In,Ee.statements),u.updateBlock(Ee,In)}}return Ee}function Dn(Ee){if(Jn(Ee)){if(Ee.declarationList.declarations[0].initializer.kind===110)return}else if(Pi(Ee))return u.createPartiallyEmittedExpression(Ee.right,Ee);switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return Ee;case 177:case 178:case 174:case 172:{const Bt=Ee;return Ps(Bt.name)?u.replacePropertyName(Bt,rn(Bt.name,Dn,Dg)):Ee}}return rn(Ee,Dn,Dg)}function Cn(Ee,Bt){if(Bt.transformFlags&16384||z&65536||z&131072)return Ee;for(const Di of Bt.statements)if(Di.transformFlags&134217728&&!oQ(Di))return Ee;return u.updateBlock(Ee,kn(Ee.statements,Dn,ia))}function tu(Ee){if(Ai(Ee)&&Ee.arguments.length===2&&at(Ee.arguments[1])&&fu(Ee.arguments[1])==="arguments")return u.createLogicalAnd(u.createStrictInequality(bc(),u.createNull()),Ee);switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return Ee;case 177:case 178:case 174:case 172:{const Bt=Ee;return Ps(Bt.name)?u.replacePropertyName(Bt,rn(Bt.name,tu,Dg)):Ee}}return rn(Ee,tu,Dg)}function oa(Ee){return u.updateBlock(Ee,kn(Ee.statements,tu,ia))}function Da(Ee,Bt,Di){const Ci=Ee;return Ee=Ln(Ee),Ee=Si(Ee,Bt),Ee!==Ci&&(Ee=Cn(Ee,Bt)),Di&&(Ee=oa(Ee)),Ee}function ua(Ee){if(Ee.kind===253)return!0;if(Ee.kind===245){const Bt=Ee;if(Bt.elseStatement)return ua(Bt.thenStatement)&&ua(Bt.elseStatement)}else if(Ee.kind===241){const Bt=qu(Ee.statements);if(Bt&&ua(Bt))return!0}return!1}function Ta(){return Zn(u.createThis(),8)}function Yo(){return u.createLogicalOr(u.createLogicalAnd(u.createStrictInequality(bc(),u.createNull()),u.createFunctionApplyCall(bc(),Ta(),u.createIdentifier("arguments"))),Ta())}function bo(Ee){if(!Ee.dotDotDotToken)return So(Ee.name)?su(Pt(u.createParameterDeclaration(void 0,void 0,u.getGeneratedNameForNode(Ee),void 0,void 0,void 0),Ee),Ee):Ee.initializer?su(Pt(u.createParameterDeclaration(void 0,void 0,Ee.name,void 0,void 0,void 0),Ee),Ee):Ee}function Qe(Ee){return Ee.initializer!==void 0||So(Ee.name)}function Et(Ee,Bt){if(!Oe(Bt.parameters,Qe))return!1;let Di=!1;for(const Ci of Bt.parameters){const{name:Q,initializer:Me,dotDotDotToken:wt}=Ci;wt||(So(Q)?Di=Mt(Ee,Ci,Q,Me)||Di:Me&&(qt(Ee,Ci,Q,Me),Di=!0))}return Di}function Mt(Ee,Bt,Di,Ci){return Di.elements.length>0?(Xy(Ee,Zn(u.createVariableStatement(void 0,u.createVariableDeclarationList(Q2(Bt,ve,t,0,u.getGeneratedNameForNode(Bt)))),2097152)),!0):Ci?(Xy(Ee,Zn(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(Bt),H.checkDefined(yt(Ci,ve,Wt)))),2097152)),!0):!1}function qt(Ee,Bt,Di,Ci){Ci=H.checkDefined(yt(Ci,ve,Wt));const Q=u.createIfStatement(u.createTypeCheck(u.cloneNode(Di),"undefined"),Zn(Pt(u.createBlock([u.createExpressionStatement(Zn(Pt(u.createAssignment(Zn(ks(Pt(u.cloneNode(Di),Di),Di.parent),96),Zn(Ci,96|bs(Ci)|3072)),Bt),3072))]),Bt),3905));vh(Q),Pt(Q,Bt),Zn(Q,2101056),Xy(Ee,Q)}function Xt(Ee,Bt){return!!(Ee&&Ee.dotDotDotToken&&!Bt)}function Pe(Ee,Bt,Di){const Ci=[],Q=qu(Bt.parameters);if(!Xt(Q,Di))return!1;const Me=Q.name.kind===80?ks(Pt(u.cloneNode(Q.name),Q.name),Q.name.parent):u.createTempVariable(void 0);Zn(Me,96);const wt=Q.name.kind===80?u.cloneNode(Q.name):Me,ki=Bt.parameters.length-1,In=u.createLoopVariable();Ci.push(Zn(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(Me,void 0,void 0,u.createArrayLiteralExpression([]))])),Q),2097152));const tr=u.createForStatement(Pt(u.createVariableDeclarationList([u.createVariableDeclaration(In,void 0,void 0,u.createNumericLiteral(ki))]),Q),Pt(u.createLessThan(In,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),Q),Pt(u.createPostfixIncrement(In),Q),u.createBlock([vh(Pt(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(wt,ki===0?In:u.createSubtract(In,u.createNumericLiteral(ki))),u.createElementAccessExpression(u.createIdentifier("arguments"),In))),Q))]));return Zn(tr,2097152),vh(tr),Ci.push(tr),Q.name.kind!==80&&Ci.push(Zn(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList(Q2(Q,ve,t,0,wt))),Q),2097152)),l0e(Ee,Ci),!0}function et(Ee,Bt){return z&131072&&Bt.kind!==219?(gt(Ee,Bt,u.createThis()),!0):!1}function gt(Ee,Bt,Di){jh();const Ci=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(De(),void 0,void 0,Di)]));Zn(Ci,2100224),As(Ci,Bt),Xy(Ee,Ci)}function ii(Ee,Bt){if(z&32768){let Di;switch(Bt.kind){case 219:return Ee;case 174:case 177:case 178:Di=u.createVoidZero();break;case 176:Di=u.createPropertyAccessExpression(Zn(u.createThis(),8),"constructor");break;case 262:case 218:Di=u.createConditionalExpression(u.createLogicalAnd(Zn(u.createThis(),8),u.createBinaryExpression(Zn(u.createThis(),8),104,u.getLocalName(Bt))),void 0,u.createPropertyAccessExpression(Zn(u.createThis(),8),"constructor"),void 0,u.createVoidZero());break;default:return H.failBadSyntaxKind(Bt)}const Ci=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,Di)]));Zn(Ci,2100224),Xy(Ee,Ci)}return Ee}function me(Ee,Bt){for(const Di of Bt.members)switch(Di.kind){case 240:Ee.push(ni(Di));break;case 174:Ee.push(vi(m4(Bt,Di),Di,Bt));break;case 177:case 178:const Ci=dk(Bt.members,Di);Di===Ci.firstAccessor&&Ee.push(mt(m4(Bt,Di),Ci,Bt));break;case 176:case 175:break;default:H.failBadSyntaxKind(Di,T&&T.fileName);break}}function ni(Ee){return Pt(u.createEmptyStatement(),Ee)}function vi(Ee,Bt,Di){const Ci=nE(Bt),Q=Lv(Bt),Me=on(Bt,Bt,void 0,Di),wt=yt(Bt.name,ve,Sc);H.assert(wt);let ki;if(!Xr(wt)&&eV(t.getCompilerOptions())){const tr=Ps(wt)?wt.expression:at(wt)?u.createStringLiteral(Yr(wt.escapedText)):wt;ki=u.createObjectDefinePropertyCall(Ee,tr,u.createPropertyDescriptor({value:Me,enumerable:!1,writable:!0,configurable:!0}))}else{const tr=Fk(u,Ee,wt,Bt.name);ki=u.createAssignment(tr,Me)}Zn(Me,3072),As(Me,Q);const In=Pt(u.createExpressionStatement(ki),Bt);return su(In,Bt),Bc(In,Ci),Zn(In,96),In}function mt(Ee,Bt,Di){const Ci=u.createExpressionStatement(Ot(Ee,Bt,Di,!1));return Zn(Ci,3072),As(Ci,Lv(Bt.firstAccessor)),Ci}function Ot(Ee,{firstAccessor:Bt,getAccessor:Di,setAccessor:Ci},Q,Me){const wt=ks(Pt(u.cloneNode(Ee),Ee),Ee.parent);Zn(wt,3136),As(wt,Bt.name);const ki=yt(Bt.name,ve,Sc);if(H.assert(ki),Xr(ki))return H.failBadSyntaxKind(ki,"Encountered unhandled private identifier while transforming ES2015.");const In=zce(u,ki);Zn(In,3104),As(In,Bt.name);const tr=[];if(Di){const ha=on(Di,void 0,void 0,Q);As(ha,Lv(Di)),Zn(ha,1024);const os=u.createPropertyAssignment("get",ha);Bc(os,nE(Di)),tr.push(os)}if(Ci){const ha=on(Ci,void 0,void 0,Q);As(ha,Lv(Ci)),Zn(ha,1024);const os=u.createPropertyAssignment("set",ha);Bc(os,nE(Ci)),tr.push(os)}tr.push(u.createPropertyAssignment("enumerable",Di||Ci?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));const ir=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[wt,In,u.createObjectLiteralExpression(tr,!0)]);return Me&&vh(ir),ir}function Ei(Ee){Ee.transformFlags&16384&&!(z&16384)&&(z|=131072);const Bt=K;K=void 0;const Di=se(15232,66),Ci=u.createFunctionExpression(void 0,void 0,void 0,void 0,xc(Ee.parameters,ve,t),void 0,le(Ee));return Pt(Ci,Ee),su(Ci,Ee),Zn(Ci,16),ge(Di,0,0),K=Bt,Ci}function $i(Ee){const Bt=bs(Ee)&524288?se(32662,69):se(32670,65),Di=K;K=void 0;const Ci=xc(Ee.parameters,ve,t),Q=le(Ee),Me=z&32768?u.getLocalName(Ee):Ee.name;return ge(Bt,229376,0),K=Di,u.updateFunctionExpression(Ee,void 0,Ee.asteriskToken,Me,void 0,Ci,void 0,Q)}function Qi(Ee){const Bt=K;K=void 0;const Di=se(32670,65),Ci=xc(Ee.parameters,ve,t),Q=le(Ee),Me=z&32768?u.getLocalName(Ee):Ee.name;return ge(Di,229376,0),K=Bt,u.updateFunctionDeclaration(Ee,kn(Ee.modifiers,ve,Qo),Ee.asteriskToken,Me,void 0,Ci,void 0,Q)}function on(Ee,Bt,Di,Ci){const Q=K;K=void 0;const Me=Ci&&mr(Ci)&&!No(Ee)?se(32670,73):se(32670,65),wt=xc(Ee.parameters,ve,t),ki=le(Ee);return z&32768&&!Di&&(Ee.kind===262||Ee.kind===218)&&(Di=u.getGeneratedNameForNode(Ee)),ge(Me,229376,0),K=Q,su(Pt(u.createFunctionExpression(void 0,Ee.asteriskToken,Di,void 0,wt,void 0,ki),Bt),Ee)}function le(Ee){let Bt=!1,Di=!1,Ci,Q;const Me=[],wt=[],ki=Ee.body;let In;if(f(),po(ki)&&(In=u.copyStandardPrologue(ki.statements,Me,0,!1),In=u.copyCustomPrologue(ki.statements,wt,In,ve,aq),In=u.copyCustomPrologue(ki.statements,wt,In,ve,oq)),Bt=Et(wt,Ee)||Bt,Bt=Pe(wt,Ee,!1)||Bt,po(ki))In=u.copyCustomPrologue(ki.statements,wt,In,ve),Ci=ki.statements,yn(wt,kn(ki.statements,ve,ia,In)),!Bt&&ki.multiLine&&(Bt=!0);else{H.assert(Ee.kind===219),Ci=Wq(ki,-1);const ir=Ee.equalsGreaterThanToken;!sl(ir)&&!sl(ki)&&(qj(ir,ki,T)?Di=!0:Bt=!0);const ha=yt(ki,ve,Wt),os=u.createReturnStatement(ha);Pt(os,ki),Oke(os,ki),Zn(os,2880),wt.push(os),Q=ki}if(u.mergeLexicalEnvironment(Me,p()),ii(Me,Ee),et(Me,Ee),Oe(Me)&&(Bt=!0),wt.unshift(...Me),po(ki)&&On(wt,ki.statements))return ki;const tr=u.createBlock(Pt(u.createNodeArray(wt),Ci),Bt);return Pt(tr,Ee.body),!Bt&&Di&&Zn(tr,1),Q&&Rke(tr,20,Q),su(tr,Ee.body),tr}function te(Ee,Bt){if(Bt)return rn(Ee,ve,t);const Di=z&256?se(7104,512):se(6976,128),Ci=rn(Ee,ve,t);return ge(Di,0,0),Ci}function we(Ee){return rn(Ee,Se,t)}function de(Ee,Bt){return rn(Ee,Bt?Se:ve,t)}function je(Ee,Bt){return r5(Ee)?wk(Ee,ve,t,0,!Bt):Ee.operatorToken.kind===28?u.updateBinaryExpression(Ee,H.checkDefined(yt(Ee.left,Se,Wt)),Ee.operatorToken,H.checkDefined(yt(Ee.right,Bt?Se:ve,Wt))):rn(Ee,ve,t)}function X(Ee,Bt){if(Bt)return rn(Ee,Se,t);let Di;for(let Q=0;QIn.name)),ki=Ci?u.createYieldExpression(u.createToken(42),Zn(wt,8388608)):wt;if(Me)Q.push(u.createExpressionStatement(ki)),Q0(Bt.loopOutParameters,1,0,Q);else{const In=u.createUniqueName("state"),tr=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(In,void 0,void 0,ki)]));if(Q.push(tr),Q0(Bt.loopOutParameters,1,0,Q),Bt.nonLocalJumps&8){let ir;Di?(Di.nonLocalJumps|=8,ir=u.createReturnStatement(In)):ir=u.createReturnStatement(u.createPropertyAccessExpression(In,"value")),Q.push(u.createIfStatement(u.createTypeCheck(In,"object"),ir))}if(Bt.nonLocalJumps&2&&Q.push(u.createIfStatement(u.createStrictEquality(In,u.createStringLiteral("break")),u.createBreakStatement())),Bt.labeledNonLocalBreaks||Bt.labeledNonLocalContinues){const ir=[];vt(Bt.labeledNonLocalBreaks,!0,In,Di,ir),vt(Bt.labeledNonLocalContinues,!1,In,Di,ir),Q.push(u.createSwitchStatement(In,u.createCaseBlock(ir)))}}return Q}function tt(Ee,Bt,Di,Ci){Bt?(Ee.labeledNonLocalBreaks||(Ee.labeledNonLocalBreaks=new Map),Ee.labeledNonLocalBreaks.set(Di,Ci)):(Ee.labeledNonLocalContinues||(Ee.labeledNonLocalContinues=new Map),Ee.labeledNonLocalContinues.set(Di,Ci))}function vt(Ee,Bt,Di,Ci,Q){Ee&&Ee.forEach((Me,wt)=>{const ki=[];if(!Ci||Ci.labels&&Ci.labels.get(wt)){const In=u.createIdentifier(wt);ki.push(Bt?u.createBreakStatement(In):u.createContinueStatement(In))}else tt(Ci,Bt,wt,Me),ki.push(u.createReturnStatement(Di));Q.push(u.createCaseClause(u.createStringLiteral(Me),ki))})}function mi(Ee,Bt,Di,Ci,Q){const Me=Bt.name;if(So(Me))for(const wt of Me.elements)Fd(wt)||mi(Ee,wt,Di,Ci,Q);else{Di.push(u.createParameterDeclaration(void 0,void 0,Me));const wt=b.getNodeCheckFlags(Bt);if(wt&65536||Q){const ki=u.createUniqueName("out_"+fu(Me));let In=0;wt&65536&&(In|=1),vk(Ee)&&(Ee.initializer&&b.isBindingCapturedByNode(Ee.initializer,Bt)&&(In|=2),(Ee.condition&&b.isBindingCapturedByNode(Ee.condition,Bt)||Ee.incrementor&&b.isBindingCapturedByNode(Ee.incrementor,Bt))&&(In|=1)),Ci.push({flags:In,originalName:Me,outParamName:ki})}}}function fn(Ee,Bt,Di,Ci){const Q=Bt.properties,Me=Q.length;for(let wt=Ci;wtJl(_s)&&!!Pn(_s.declarationList.declarations).initializer,Ci=K;K=void 0;const Q=kn(Bt.statements,Ne,ia);K=Ci;const Me=ti(Q,Di),wt=ti(Q,_s=>!Di(_s)),In=Po(Pn(Me),Jl).declarationList.declarations[0],tr=Dc(In.initializer);let ir=ur(tr,ld);!ir&&Xn(tr)&&tr.operatorToken.kind===28&&(ir=ur(tr.left,ld));const ha=Po(ir?Dc(ir.right):tr,Mo),os=Po(Dc(ha.expression),A0),ss=os.body.statements;let Rl=0,x1=-1;const fd=[];if(ir){const _s=ur(ss[Rl],Od);_s&&(fd.push(_s),Rl++),fd.push(ss[Rl]),Rl++,fd.push(u.createExpressionStatement(u.createAssignment(ir.left,Po(In.name,at))))}for(;!Op(qD(ss,x1));)x1--;yn(fd,ss,Rl,x1),x1<-1&&yn(fd,ss,x1+1);const $m=ur(qD(ss,x1),Op);for(const _s of wt)Op(_s)&&($m!=null&&$m.expression)&&!at($m.expression)?fd.push($m):fd.push(_s);return yn(fd,Me,1),u.restoreOuterExpressions(Ee.expression,u.restoreOuterExpressions(In.initializer,u.restoreOuterExpressions(ir&&ir.right,u.updateCallExpression(ha,u.restoreOuterExpressions(ha.expression,u.updateFunctionExpression(os,void 0,void 0,void 0,void 0,os.parameters,void 0,u.updateBlock(os.body,fd))),void 0,ha.arguments))))}function uh(Ee,Bt){if(Ee.transformFlags&32768||Ee.expression.kind===108||nf(Dc(Ee.expression))){const{target:Di,thisArg:Ci}=u.createCallBinding(Ee.expression,E);Ee.expression.kind===108&&Zn(Ci,8);let Q;if(Ee.transformFlags&32768?Q=u.createFunctionApplyCall(H.checkDefined(yt(Di,pe,Wt)),Ee.expression.kind===108?Ci:H.checkDefined(yt(Ci,ve,Wt)),D1(Ee.arguments,!0,!1,!1)):Q=Pt(u.createFunctionCallCall(H.checkDefined(yt(Di,pe,Wt)),Ee.expression.kind===108?Ci:H.checkDefined(yt(Ci,ve,Wt)),kn(Ee.arguments,ve,Wt)),Ee),Ee.expression.kind===108){const Me=u.createLogicalOr(Q,Ta());Q=Bt?u.createAssignment(De(),Me):Me}return su(Q,Ee)}return ik(Ee)&&(z|=131072),rn(Ee,ve,t)}function h4(Ee){if(Oe(Ee.arguments,uE)){const{target:Bt,thisArg:Di}=u.createCallBinding(u.createPropertyAccessExpression(Ee.expression,"bind"),E);return u.createNewExpression(u.createFunctionApplyCall(H.checkDefined(yt(Bt,ve,Wt)),Di,D1(u.createNodeArray([u.createVoidZero(),...Ee.arguments]),!0,!1,!1)),void 0,[])}return rn(Ee,ve,t)}function D1(Ee,Bt,Di,Ci){const Q=Ee.length,Me=Va(Hl(Ee,He,(tr,ir,ha,os)=>ir(tr,Di,Ci&&os===Q)));if(Me.length===1){const tr=Me[0];if(Bt&&!v.downlevelIteration||Ple(tr.expression)||jP(tr.expression,"___spreadArray"))return tr.expression}const wt=s(),ki=Me[0].kind!==0;let In=ki?u.createArrayLiteralExpression():Me[0].expression;for(let tr=ki?0:1;tr0&&Ci.push(u.createStringLiteral(Di.literal.text)),Bt=u.createCallExpression(u.createPropertyAccessExpression(Bt,"concat"),void 0,Ci)}return Pt(Bt,Ee)}function bc(){return u.createUniqueName("_super",48)}function ql(Ee,Bt){const Di=z&8&&!Bt?u.createPropertyAccessExpression(su(bc(),Ee),"prototype"):bc();return su(Di,Ee),Bc(Di,Ee),As(Di,Ee),Di}function Nc(Ee){return Ee.keywordToken===105&&Ee.name.escapedText==="target"?(z|=32768,u.createUniqueName("_newTarget",48)):Ee}function ip(Ee,Bt,Di){if(Y&1&&Co(Bt)){const Ci=se(32670,bs(Bt)&16?81:65);k(Ee,Bt,Di),ge(Ci,0,0);return}k(Ee,Bt,Di)}function Jm(){Y&2||(Y|=2,t.enableSubstitution(80))}function jh(){Y&1||(Y|=1,t.enableSubstitution(110),t.enableEmitNotification(176),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(219),t.enableEmitNotification(218),t.enableEmitNotification(262))}function f4(Ee,Bt){return Bt=B(Ee,Bt),Ee===1?C5(Bt):at(Bt)?c3(Bt):Bt}function c3(Ee){if(Y&2&&!Ice(Ee)){const Bt=Ua(Ee,at);if(Bt&&c_(Bt))return Pt(u.getGeneratedNameForNode(Bt),Ee)}return Ee}function c_(Ee){switch(Ee.parent.kind){case 208:case 263:case 266:case 260:return Ee.parent.name===Ee&&b.isDeclarationWithCollidingName(Ee.parent)}return!1}function C5(Ee){switch(Ee.kind){case 80:return R1(Ee);case 110:return Wf(Ee)}return Ee}function R1(Ee){if(Y&2&&!Ice(Ee)){const Bt=b.getReferencedDeclarationWithCollidingName(Ee);if(Bt&&!(mr(Bt)&&d3(Bt,Ee)))return Pt(u.getGeneratedNameForNode(Za(Bt)),Ee)}return Ee}function d3(Ee,Bt){let Di=Ua(Bt);if(!Di||Di===Ee||Di.end<=Ee.pos||Di.pos>=Ee.end)return!1;const Ci=YE(Ee);for(;Di;){if(Di===Ci||Di===Ee)return!1;if(Zd(Di)&&Di.parent===Ee)return!0;Di=Di.parent}return!1}function Wf(Ee){return Y&1&&z&16?Pt(De(),Ee):Ee}function m4(Ee,Bt){return No(Bt)?u.getInternalName(Ee):u.createPropertyAccessExpression(u.getInternalName(Ee),"prototype")}function Vh(Ee,Bt){if(!Ee||!Bt||Oe(Ee.parameters))return!1;const Di=Ki(Ee.body.statements);if(!Di||!sl(Di)||Di.kind!==244)return!1;const Ci=Di.expression;if(!sl(Ci)||Ci.kind!==213)return!1;const Q=Ci.expression;if(!sl(Q)||Q.kind!==108)return!1;const Me=Aa(Ci.arguments);if(!Me||!sl(Me)||Me.kind!==230)return!1;const wt=Me.expression;return at(wt)&&wt.escapedText==="arguments"}}var jMt=o({"src/compiler/transformers/es2015.ts"(){Bo()}});function v7e(t){const{factory:u}=t,s=t.getCompilerOptions();let d,f;(s.jsx===1||s.jsx===3)&&(d=t.onEmitNode,t.onEmitNode=v,t.enableEmitNotification(286),t.enableEmitNotification(287),t.enableEmitNotification(285),f=[]);const p=t.onSubstituteNode;return t.onSubstituteNode=b,t.enableSubstitution(211),t.enableSubstitution(303),Kp(t,E);function E(M){return M}function v(M,z,j){switch(z.kind){case 286:case 287:case 285:const J=z.tagName;f[M1(J)]=!0;break}d(M,z,j)}function b(M,z){return z.id&&f&&f[z.id]?p(M,z):(z=p(M,z),Iu(z)?B(z):Jc(z)?k(z):z)}function B(M){if(Xr(M.name))return M;const z=T(M.name);return z?Pt(u.createElementAccessExpression(M.expression,z),M):M}function k(M){const z=at(M.name)&&T(M.name);return z?u.updatePropertyAssignment(M,z,M.initializer):M}function T(M){const z=Dv(M);if(z!==void 0&&z>=83&&z<=118)return Pt(u.createStringLiteralFromNode(M),M)}}var VMt=o({"src/compiler/transformers/es5.ts"(){Bo()}});function HMt(t){switch(t){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function C7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistFunctionDeclaration:p,hoistVariableDeclaration:E}=t,v=t.getCompilerOptions(),b=Os(v),B=t.getEmitResolver(),k=t.onSubstituteNode;t.onSubstituteNode=we;let T,M,z,j,J,K,Y,oe,se,ge,ae=1,Ce,ne,ve,Se,Ne=0,pe=0,fe,xe,Be,Ge,Ae,De,Ke,Je;return Kp(t,ft);function ft(He){if(He.isDeclarationFile||!(He.transformFlags&2048))return He;const di=rn(He,Ye,t);return iD(di,t.readEmitHelpers()),di}function Ye(He){const di=He.transformFlags;return j?Ve(He):z?We(He):$0(He)&&He.asteriskToken?Yt(He):di&2048?rn(He,Ye,t):He}function Ve(He){switch(He.kind){case 246:return Yo(He);case 247:return Qe(He);case 255:return Ot(He);case 256:return $i(He);default:return We(He)}}function We(He){switch(He.kind){case 262:return Ie(He);case 218:return st(He);case 177:case 178:return St(He);case 243:return ei(He);case 248:return Mt(He);case 249:return Xt(He);case 252:return ii(He);case 251:return et(He);case 253:return ni(He);default:return He.transformFlags&1048576?Gt(He):He.transformFlags&4196352?rn(He,Ye,t):He}}function Gt(He){switch(He.kind){case 226:return ht(He);case 361:return xn(He);case 227:return an(He);case 229:return Pi(He);case 209:return Ai(He);case 210:return aa(He);case 212:return yr(He);case 213:return Ba(He);case 214:return bt(He);default:return rn(He,Ye,t)}}function Yt(He){switch(He.kind){case 262:return Ie(He);case 218:return st(He);default:return H.failBadSyntaxKind(He)}}function Ie(He){if(He.asteriskToken)He=su(Pt(u.createFunctionDeclaration(He.modifiers,void 0,He.name,void 0,xc(He.parameters,Ye,t),void 0,It(He.body)),He),He);else{const di=z,Mn=j;z=!1,j=!1,He=rn(He,Ye,t),z=di,j=Mn}if(z){p(He);return}else return He}function st(He){if(He.asteriskToken)He=su(Pt(u.createFunctionExpression(void 0,void 0,He.name,void 0,xc(He.parameters,Ye,t),void 0,It(He.body)),He),He);else{const di=z,Mn=j;z=!1,j=!1,He=rn(He,Ye,t),z=di,j=Mn}return He}function St(He){const di=z,Mn=j;return z=!1,j=!1,He=rn(He,Ye,t),z=di,j=Mn,He}function It(He){const di=[],Mn=z,ba=j,Fo=J,To=K,nc=Y,fc=oe,Cl=se,Tl=ge,bc=ae,ql=Ce,Nc=ne,ip=ve,Jm=Se;z=!0,j=!1,J=void 0,K=void 0,Y=void 0,oe=void 0,se=void 0,ge=void 0,ae=1,Ce=void 0,ne=void 0,ve=void 0,Se=u.createTempVariable(void 0),d();const jh=u.copyPrologue(He.statements,di,!1,Ye);jn(He.statements,jh);const f4=tt();return ZE(di,f()),di.push(u.createReturnStatement(f4)),z=Mn,j=ba,J=Fo,K=To,Y=nc,oe=fc,se=Cl,ge=Tl,ae=bc,Ce=ql,ne=Nc,ve=ip,Se=Jm,Pt(u.createBlock(di,He.multiLine),He)}function ei(He){if(He.transformFlags&1048576){oa(He.declarationList);return}else{if(bs(He)&2097152)return He;for(const Mn of He.declarationList.declarations)E(Mn.name);const di=DP(He.declarationList);return di.length===0?void 0:As(u.createExpressionStatement(u.inlineExpressions(Vt(di,Da))),He)}}function ht(He){const di=q0e(He);switch(di){case 0:return Ni(He);case 1:return Ut(He);default:return H.assertNever(di)}}function Ut(He){const{left:di,right:Mn}=He;if(le(Mn)){let ba;switch(di.kind){case 211:ba=u.updatePropertyAccessExpression(di,X(H.checkDefined(yt(di.expression,Ye,Df))),di.name);break;case 212:ba=u.updateElementAccessExpression(di,X(H.checkDefined(yt(di.expression,Ye,Df))),X(H.checkDefined(yt(di.argumentExpression,Ye,Wt))));break;default:ba=H.checkDefined(yt(di,Ye,Wt));break}const Fo=He.operatorToken.kind;return mM(Fo)?Pt(u.createAssignment(ba,Pt(u.createBinaryExpression(X(ba),pM(Fo),H.checkDefined(yt(Mn,Ye,Wt))),He)),He):u.updateBinaryExpression(He,ba,He.operatorToken,H.checkDefined(yt(Mn,Ye,Wt)))}return rn(He,Ye,t)}function Ni(He){return le(He.right)?Pye(He.operatorToken.kind)?Jn(He):He.operatorToken.kind===28?ji(He):u.updateBinaryExpression(He,X(H.checkDefined(yt(He.left,Ye,Wt))),He.operatorToken,H.checkDefined(yt(He.right,Ye,Wt))):rn(He,Ye,t)}function ji(He){let di=[];return Mn(He.left),Mn(He.right),u.inlineExpressions(di);function Mn(ba){Xn(ba)&&ba.operatorToken.kind===28?(Mn(ba.left),Mn(ba.right)):(le(ba)&&di.length>0&&($(1,[u.createExpressionStatement(u.inlineExpressions(di))]),di=[]),di.push(H.checkDefined(yt(ba,Ye,Wt))))}}function xn(He){let di=[];for(const Mn of He.elements)Xn(Mn)&&Mn.operatorToken.kind===28?di.push(ji(Mn)):(le(Mn)&&di.length>0&&($(1,[u.createExpressionStatement(u.inlineExpressions(di))]),di=[]),di.push(H.checkDefined(yt(Mn,Ye,Wt))));return u.inlineExpressions(di)}function Jn(He){const di=Ct(),Mn=it();return cl(Mn,H.checkDefined(yt(He.left,Ye,Wt)),He.left),He.operatorToken.kind===56?dl(di,Mn,He.left):Ri(di,Mn,He.left),cl(Mn,H.checkDefined(yt(He.right,Ye,Wt)),He.right),ct(di),Mn}function an(He){if(le(He.whenTrue)||le(He.whenFalse)){const di=Ct(),Mn=Ct(),ba=it();return dl(di,H.checkDefined(yt(He.condition,Ye,Wt)),He.condition),cl(ba,H.checkDefined(yt(He.whenTrue,Ye,Wt)),He.whenTrue),Ka(Mn),ct(di),cl(ba,H.checkDefined(yt(He.whenFalse,Ye,Wt)),He.whenFalse),ct(Mn),ba}return rn(He,Ye,t)}function Pi(He){const di=Ct(),Mn=yt(He.expression,Ye,Wt);if(He.asteriskToken){const ba=bs(He.expression)&8388608?Mn:Pt(s().createValuesHelper(Mn),He);Uc(ba,He)}else Ch(Mn,He);return ct(di),Jp(He)}function Ai(He){return Zu(He.elements,void 0,void 0,He.multiLine)}function Zu(He,di,Mn,ba){const Fo=te(He);let To;if(Fo>0){To=it();const Cl=kn(He,Ye,Wt,0,Fo);cl(To,u.createArrayLiteralExpression(di?[di,...Cl]:Cl)),di=void 0}const nc=nn(He,fc,[],Fo);return To?u.createArrayConcatCall(To,[u.createArrayLiteralExpression(nc,ba)]):Pt(u.createArrayLiteralExpression(di?[di,...nc]:nc,ba),Mn);function fc(Cl,Tl){if(le(Tl)&&Cl.length>0){const bc=To!==void 0;To||(To=it()),cl(To,bc?u.createArrayConcatCall(To,[u.createArrayLiteralExpression(Cl,ba)]):u.createArrayLiteralExpression(di?[di,...Cl]:Cl,ba)),di=void 0,Cl=[]}return Cl.push(H.checkDefined(yt(Tl,Ye,Wt))),Cl}}function aa(He){const di=He.properties,Mn=He.multiLine,ba=te(di),Fo=it();cl(Fo,u.createObjectLiteralExpression(kn(di,Ye,Z3,0,ba),Mn));const To=nn(di,nc,[],ba);return To.push(Mn?vh(ks(Pt(u.cloneNode(Fo),Fo),Fo.parent)):Fo),u.inlineExpressions(To);function nc(fc,Cl){le(Cl)&&fc.length>0&&(Il(u.createExpressionStatement(u.inlineExpressions(fc))),fc=[]);const Tl=FFe(u,He,Cl,Fo),bc=yt(Tl,Ye,Wt);return bc&&(Mn&&vh(bc),fc.push(bc)),fc}}function yr(He){return le(He.argumentExpression)?u.updateElementAccessExpression(He,X(H.checkDefined(yt(He.expression,Ye,Df))),H.checkDefined(yt(He.argumentExpression,Ye,Wt))):rn(He,Ye,t)}function Ba(He){if(!dm(He)&&L(He.arguments,le)){const{target:di,thisArg:Mn}=u.createCallBinding(He.expression,E,b,!0);return su(Pt(u.createFunctionApplyCall(X(H.checkDefined(yt(di,Ye,Df))),Mn,Zu(He.arguments)),He),He)}return rn(He,Ye,t)}function bt(He){if(L(He.arguments,le)){const{target:di,thisArg:Mn}=u.createCallBinding(u.createPropertyAccessExpression(He.expression,"bind"),E);return su(Pt(u.createNewExpression(u.createFunctionApplyCall(X(H.checkDefined(yt(di,Ye,Wt))),Mn,Zu(He.arguments,u.createVoidZero())),void 0,[]),He),He)}return rn(He,Ye,t)}function jn(He,di=0){const Mn=He.length;for(let ba=di;ba0)break;Fo.push(Da(nc))}Fo.length&&(Il(u.createExpressionStatement(u.inlineExpressions(Fo))),ba+=Fo.length,Fo=[])}}function Da(He){return As(u.createAssignment(As(u.cloneNode(He.name),He.name),H.checkDefined(yt(He.initializer,Ye,Wt))),He)}function ua(He){if(le(He))if(le(He.thenStatement)||le(He.elseStatement)){const di=Ct(),Mn=He.elseStatement?Ct():void 0;dl(He.elseStatement?Mn:di,H.checkDefined(yt(He.expression,Ye,Wt)),He.expression),Ln(He.thenStatement),He.elseStatement&&(Ka(di),ct(Mn),Ln(He.elseStatement)),ct(di)}else Il(yt(He,Ye,ia));else Il(yt(He,Ye,ia))}function Ta(He){if(le(He)){const di=Ct(),Mn=Ct();wn(di),ct(Mn),Ln(He.statement),ct(di),Ri(Mn,H.checkDefined(yt(He.expression,Ye,Wt))),Ir()}else Il(yt(He,Ye,ia))}function Yo(He){return j?(ja(),He=rn(He,Ye,t),Ir(),He):rn(He,Ye,t)}function bo(He){if(le(He)){const di=Ct(),Mn=wn(di);ct(di),dl(Mn,H.checkDefined(yt(He.expression,Ye,Wt))),Ln(He.statement),Ka(di),Ir()}else Il(yt(He,Ye,ia))}function Qe(He){return j?(ja(),He=rn(He,Ye,t),Ir(),He):rn(He,Ye,t)}function Et(He){if(le(He)){const di=Ct(),Mn=Ct(),ba=wn(Mn);if(He.initializer){const Fo=He.initializer;Ad(Fo)?oa(Fo):Il(Pt(u.createExpressionStatement(H.checkDefined(yt(Fo,Ye,Wt))),Fo))}ct(di),He.condition&&dl(ba,H.checkDefined(yt(He.condition,Ye,Wt))),Ln(He.statement),ct(Mn),He.incrementor&&Il(Pt(u.createExpressionStatement(H.checkDefined(yt(He.incrementor,Ye,Wt))),He.incrementor)),Ka(di),Ir()}else Il(yt(He,Ye,ia))}function Mt(He){j&&ja();const di=He.initializer;if(di&&Ad(di)){for(const ba of di.declarations)E(ba.name);const Mn=DP(di);He=u.updateForStatement(He,Mn.length>0?u.inlineExpressions(Vt(Mn,Da)):void 0,yt(He.condition,Ye,Wt),yt(He.incrementor,Ye,Wt),Ih(He.statement,Ye,t))}else He=rn(He,Ye,t);return j&&Ir(),He}function qt(He){if(le(He)){const di=it(),Mn=it(),ba=it(),Fo=u.createLoopVariable(),To=He.initializer;E(Fo),cl(di,H.checkDefined(yt(He.expression,Ye,Wt))),cl(Mn,u.createArrayLiteralExpression()),Il(u.createForInStatement(ba,di,u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(Mn,"push"),void 0,[ba])))),cl(Fo,u.createNumericLiteral(0));const nc=Ct(),fc=Ct(),Cl=wn(fc);ct(nc),dl(Cl,u.createLessThan(Fo,u.createPropertyAccessExpression(Mn,"length"))),cl(ba,u.createElementAccessExpression(Mn,Fo)),dl(fc,u.createBinaryExpression(ba,103,di));let Tl;if(Ad(To)){for(const bc of To.declarations)E(bc.name);Tl=u.cloneNode(To.declarations[0].name)}else Tl=H.checkDefined(yt(To,Ye,Wt)),H.assert(Df(Tl));cl(Tl,ba),Ln(He.statement),ct(fc),Il(u.createExpressionStatement(u.createPostfixIncrement(Fo))),Ka(nc),Ir()}else Il(yt(He,Ye,ia))}function Xt(He){j&&ja();const di=He.initializer;if(Ad(di)){for(const Mn of di.declarations)E(Mn.name);He=u.updateForInStatement(He,di.declarations[0].name,H.checkDefined(yt(He.expression,Ye,Wt)),H.checkDefined(yt(He.statement,Ye,ia,u.liftToBlock)))}else He=rn(He,Ye,t);return j&&Ir(),He}function Pe(He){const di=Ho(He.label?fu(He.label):void 0);di>0?Ka(di,He):Il(He)}function et(He){if(j){const di=Ho(He.label&&fu(He.label));if(di>0)return Ko(di,He)}return rn(He,Ye,t)}function gt(He){const di=co(He.label?fu(He.label):void 0);di>0?Ka(di,He):Il(He)}function ii(He){if(j){const di=co(He.label&&fu(He.label));if(di>0)return Ko(di,He)}return rn(He,Ye,t)}function me(He){sf(yt(He.expression,Ye,Wt),He)}function ni(He){return Tc(yt(He.expression,Ye,Wt),He)}function vi(He){le(He)?(du(X(H.checkDefined(yt(He.expression,Ye,Wt)))),Ln(He.statement),Ru()):Il(yt(He,Ye,ia))}function mt(He){if(le(He.caseBlock)){const di=He.caseBlock,Mn=di.clauses.length,ba=wo(),Fo=X(H.checkDefined(yt(He.expression,Ye,Wt))),To=[];let nc=-1;for(let Tl=0;Tl0)break;Cl.push(u.createCaseClause(H.checkDefined(yt(ql.expression,Ye,Wt)),[Ko(To[bc],ql.expression)]))}else Tl++}Cl.length&&(Il(u.createSwitchStatement(Fo,u.createCaseBlock(Cl))),fc+=Cl.length,Cl=[]),Tl>0&&(fc+=Tl,Tl=0)}nc>=0?Ka(To[nc]):Ka(ba);for(let Tl=0;Tl=0;Mn--){const ba=oe[Mn];if(wl(ba)){if(ba.labelText===He)return!0}else break}return!1}function co(He){if(oe)if(He)for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(wl(Mn)&&Mn.labelText===He)return Mn.breakLabel;if(Ul(Mn)&&vl(He,di-1))return Mn.breakLabel}else for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(Ul(Mn))return Mn.breakLabel}return 0}function Ho(He){if(oe)if(He)for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(hd(Mn)&&vl(He,di-1))return Mn.continueLabel}else for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(hd(Mn))return Mn.continueLabel}return 0}function id(He){if(He!==void 0&&He>0){ge===void 0&&(ge=[]);const di=u.createNumericLiteral(-1);return ge[He]===void 0?ge[He]=[di]:ge[He].push(di),di}return u.createOmittedExpression()}function Y0(He){const di=u.createNumericLiteral(He);return AZ(di,3,HMt(He)),di}function Ko(He,di){return H.assertLessThan(0,He,"Invalid label"),Pt(u.createReturnStatement(u.createArrayLiteralExpression([Y0(3),id(He)])),di)}function Tc(He,di){return Pt(u.createReturnStatement(u.createArrayLiteralExpression(He?[Y0(2),He]:[Y0(2)])),di)}function Jp(He){return Pt(u.createCallExpression(u.createPropertyAccessExpression(Se,"sent"),void 0,[]),He)}function Lc(){$(0)}function Il(He){He?$(1,[He]):Lc()}function cl(He,di,Mn){$(2,[He,di],Mn)}function Ka(He,di){$(3,[He],di)}function Ri(He,di,Mn){$(4,[He,di],Mn)}function dl(He,di,Mn){$(5,[He,di],Mn)}function Uc(He,di){$(7,[He],di)}function Ch(He,di){$(6,[He],di)}function sf(He,di){$(8,[He],di)}function Q0(He,di){$(9,[He],di)}function Cc(){$(10)}function $(He,di,Mn){Ce===void 0&&(Ce=[],ne=[],ve=[]),se===void 0&&ct(Ct());const ba=Ce.length;Ce[ba]=He,ne[ba]=di,ve[ba]=Mn}function tt(){Ne=0,pe=0,fe=void 0,xe=!1,Be=!1,Ge=void 0,Ae=void 0,De=void 0,Ke=void 0,Je=void 0;const He=vt();return s().createGeneratorHelper(Zn(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,Se)],void 0,u.createBlock(He,He.length>0)),1048576))}function vt(){if(Ce){for(let He=0;He=0;di--){const Mn=Je[di];Ae=[u.createWithStatement(Mn.expression,u.createBlock(Ae))]}if(Ke){const{startLabel:di,catchLabel:Mn,finallyLabel:ba,endLabel:Fo}=Ke;Ae.unshift(u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(u.createPropertyAccessExpression(Se,"trys"),"push"),void 0,[u.createArrayLiteralExpression([id(di),id(Mn),id(ba),id(Fo)])]))),Ke=void 0}He&&Ae.push(u.createExpressionStatement(u.createAssignment(u.createPropertyAccessExpression(Se,"label"),u.createNumericLiteral(pe+1))))}Ge.push(u.createCaseClause(u.createNumericLiteral(pe),Ae||[])),Ae=void 0}function Tu(He){if(se)for(let di=0;dis.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(fu(ct))),Ct),s.createVoidZero())));xi(te,yt(K.externalHelpersImportDeclaration,fe,ia)),yn(te,kn(le.statements,fe,ia,de)),pe(te,!1),ZE(te,p());const je=s.updateSourceFile(le,Pt(s.createNodeArray(te),le.statements));return iD(je,t.readEmitHelpers()),je}function Ce(le){const te=s.createIdentifier("define"),we=IV(s,le,B,v),de=W4(le)&&le,{aliasedModuleNames:je,unaliasedModuleNames:X,importAliasNames:it}=ve(le,!0),Ct=s.updateSourceFile(le,Pt(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(te,void 0,[...we?[we]:[],s.createArrayLiteralExpression(de?_t:[s.createStringLiteral("require"),s.createStringLiteral("exports"),...je,...X]),de?de.statements.length?de.statements[0].expression:s.createObjectLiteralExpression():s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"require"),s.createParameterDeclaration(void 0,void 0,"exports"),...it],void 0,Ne(le))]))]),le.statements));return iD(Ct,t.readEmitHelpers()),Ct}function ne(le){const{aliasedModuleNames:te,unaliasedModuleNames:we,importAliasNames:de}=ve(le,!1),je=IV(s,le,B,v),X=s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"factory")],void 0,Pt(s.createBlock([s.createIfStatement(s.createLogicalAnd(s.createTypeCheck(s.createIdentifier("module"),"object"),s.createTypeCheck(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),"object")),s.createBlock([s.createVariableStatement(void 0,[s.createVariableDeclaration("v",void 0,void 0,s.createCallExpression(s.createIdentifier("factory"),void 0,[s.createIdentifier("require"),s.createIdentifier("exports")]))]),Zn(s.createIfStatement(s.createStrictInequality(s.createIdentifier("v"),s.createIdentifier("undefined")),s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),s.createIdentifier("v")))),1)]),s.createIfStatement(s.createLogicalAnd(s.createTypeCheck(s.createIdentifier("define"),"function"),s.createPropertyAccessExpression(s.createIdentifier("define"),"amd")),s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("define"),void 0,[...je?[je]:[],s.createArrayLiteralExpression([s.createStringLiteral("require"),s.createStringLiteral("exports"),...te,...we]),s.createIdentifier("factory")]))])))],!0),void 0)),it=s.updateSourceFile(le,Pt(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(X,void 0,[s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"require"),s.createParameterDeclaration(void 0,void 0,"exports"),...de],void 0,Ne(le))]))]),le.statements));return iD(it,t.readEmitHelpers()),it}function ve(le,te){const we=[],de=[],je=[];for(const X of le.amdDependencies)X.name?(we.push(s.createStringLiteral(X.path)),je.push(s.createParameterDeclaration(void 0,void 0,X.name))):de.push(s.createStringLiteral(X.path));for(const X of K.externalImports){const it=W7(s,X,J,B,b,v),Ct=zB(s,X,J);it&&(te&&Ct?(Zn(Ct,8),we.push(it),je.push(s.createParameterDeclaration(void 0,void 0,Ct))):de.push(it))}return{aliasedModuleNames:we,unaliasedModuleNames:de,importAliasNames:je}}function Se(le){if(E1(le)||Gc(le)||!W7(s,le,J,B,b,v))return;const te=zB(s,le,J),we=Ba(le,te);if(we!==te)return s.createExpressionStatement(s.createAssignment(te,we))}function Ne(le){f();const te=[],we=s.copyPrologue(le.statements,te,!v.noImplicitUseStrict,fe);ge()&&xi(te,Pe()),S(K.exportedNames)&&xi(te,s.createExpressionStatement(nn(K.exportedNames,(je,X)=>s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(fu(X))),je),s.createVoidZero()))),xi(te,yt(K.externalHelpersImportDeclaration,fe,ia)),T===2&&yn(te,qi(K.externalImports,Se)),yn(te,kn(le.statements,fe,ia,we)),pe(te,!0),ZE(te,p());const de=s.createBlock(te,!0);return oe&&S7(de,Jet),de}function pe(le,te){if(K.exportEquals){const we=yt(K.exportEquals.expression,Ge,Wt);if(we)if(te){const de=s.createReturnStatement(we);Pt(de,K.exportEquals),Zn(de,3840),le.push(de)}else{const de=s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),we));Pt(de,K.exportEquals),Zn(de,3072),le.push(de)}}}function fe(le){switch(le.kind){case 272:return bt(le);case 271:return Ln(le);case 278:return Si(le);case 277:return Dn(le);default:return xe(le)}}function xe(le){switch(le.kind){case 243:return oa(le);case 262:return Cn(le);case 263:return tu(le);case 248:return Je(le,!0);case 249:return ft(le);case 250:return Ye(le);case 246:return Ve(le);case 247:return We(le);case 256:return Gt(le);case 254:return Yt(le);case 245:return Ie(le);case 255:return st(le);case 269:return St(le);case 296:return It(le);case 297:return ei(le);case 258:return ht(le);case 299:return Ut(le);case 241:return Ni(le);default:return Ge(le)}}function Be(le,te){if(!(le.transformFlags&276828160))return le;switch(le.kind){case 248:return Je(le,!1);case 244:return ji(le);case 217:return xn(le,te);case 360:return Jn(le,te);case 213:if(dm(le)&&J.impliedNodeFormat===void 0)return Pi(le);break;case 226:if(r5(le))return Ke(le,te);break;case 224:case 225:return an(le,te)}return rn(le,Ge,t)}function Ge(le){return Be(le,!1)}function Ae(le){return Be(le,!0)}function De(le){if(ys(le))for(const te of le.properties)switch(te.kind){case 303:if(De(te.initializer))return!0;break;case 304:if(De(te.name))return!0;break;case 305:if(De(te.expression))return!0;break;case 174:case 177:case 178:return!1;default:H.assertNever(te,"Unhandled object member kind")}else if(Dh(le)){for(const te of le.elements)if(uE(te)){if(De(te.expression))return!0}else if(De(te))return!0}else if(at(le))return S(on(le))>(xY(le)?1:0);return!1}function Ke(le,te){return De(le.left)?wk(le,Ge,t,0,!te,Da):rn(le,Ge,t)}function Je(le,te){if(te&&le.initializer&&Ad(le.initializer)&&!(le.initializer.flags&7)){const we=Qe(void 0,le.initializer,!1);if(we){const de=[],je=yt(le.initializer,Ae,Ad),X=s.createVariableStatement(void 0,je);de.push(X),yn(de,we);const it=yt(le.condition,Ge,Wt),Ct=yt(le.incrementor,Ae,Wt),ct=Ih(le.statement,te?xe:Ge,t);return de.push(s.updateForStatement(le,void 0,it,Ct,ct)),de}}return s.updateForStatement(le,yt(le.initializer,Ae,a4),yt(le.condition,Ge,Wt),yt(le.incrementor,Ae,Wt),Ih(le.statement,te?xe:Ge,t))}function ft(le){if(Ad(le.initializer)&&!(le.initializer.flags&7)){const te=Qe(void 0,le.initializer,!0);if(Oe(te)){const we=yt(le.initializer,Ae,a4),de=yt(le.expression,Ge,Wt),je=Ih(le.statement,xe,t),X=po(je)?s.updateBlock(je,[...te,...je.statements]):s.createBlock([...te,je],!0);return s.updateForInStatement(le,we,de,X)}}return s.updateForInStatement(le,yt(le.initializer,Ae,a4),yt(le.expression,Ge,Wt),Ih(le.statement,xe,t))}function Ye(le){if(Ad(le.initializer)&&!(le.initializer.flags&7)){const te=Qe(void 0,le.initializer,!0),we=yt(le.initializer,Ae,a4),de=yt(le.expression,Ge,Wt);let je=Ih(le.statement,xe,t);return Oe(te)&&(je=po(je)?s.updateBlock(je,[...te,...je.statements]):s.createBlock([...te,je],!0)),s.updateForOfStatement(le,le.awaitModifier,we,de,je)}return s.updateForOfStatement(le,le.awaitModifier,yt(le.initializer,Ae,a4),yt(le.expression,Ge,Wt),Ih(le.statement,xe,t))}function Ve(le){return s.updateDoStatement(le,Ih(le.statement,xe,t),yt(le.expression,Ge,Wt))}function We(le){return s.updateWhileStatement(le,yt(le.expression,Ge,Wt),Ih(le.statement,xe,t))}function Gt(le){return s.updateLabeledStatement(le,le.label,H.checkDefined(yt(le.statement,xe,ia,s.liftToBlock)))}function Yt(le){return s.updateWithStatement(le,yt(le.expression,Ge,Wt),H.checkDefined(yt(le.statement,xe,ia,s.liftToBlock)))}function Ie(le){return s.updateIfStatement(le,yt(le.expression,Ge,Wt),H.checkDefined(yt(le.thenStatement,xe,ia,s.liftToBlock)),yt(le.elseStatement,xe,ia,s.liftToBlock))}function st(le){return s.updateSwitchStatement(le,yt(le.expression,Ge,Wt),H.checkDefined(yt(le.caseBlock,xe,ZP)))}function St(le){return s.updateCaseBlock(le,kn(le.clauses,xe,WU))}function It(le){return s.updateCaseClause(le,yt(le.expression,Ge,Wt),kn(le.statements,xe,ia))}function ei(le){return rn(le,xe,t)}function ht(le){return rn(le,xe,t)}function Ut(le){return s.updateCatchClause(le,le.variableDeclaration,H.checkDefined(yt(le.block,xe,po)))}function Ni(le){return le=rn(le,xe,t),le}function ji(le){return s.updateExpressionStatement(le,yt(le.expression,Ae,Wt))}function xn(le,te){return s.updateParenthesizedExpression(le,yt(le.expression,te?Ae:Ge,Wt))}function Jn(le,te){return s.updatePartiallyEmittedExpression(le,yt(le.expression,te?Ae:Ge,Wt))}function an(le,te){if((le.operator===46||le.operator===47)&&at(le.operand)&&!al(le.operand)&&!rD(le.operand)&&!ple(le.operand)){const we=on(le.operand);if(we){let de,je=yt(le.operand,Ge,Wt);zv(le)?je=s.updatePrefixUnaryExpression(le,je):(je=s.updatePostfixUnaryExpression(le,je),te||(de=s.createTempVariable(E),je=s.createAssignment(de,je),Pt(je,le)),je=s.createComma(je,s.cloneNode(le.operand)),Pt(je,le));for(const X of we)Y[$s(je)]=!0,je=gt(X,je),Pt(je,le);return de&&(Y[$s(je)]=!0,je=s.createComma(je,de),Pt(je,le)),je}}return rn(le,Ge,t)}function Pi(le){if(T===0&&k>=7)return rn(le,Ge,t);const te=W7(s,le,J,B,b,v),we=yt(Ki(le.arguments),Ge,Wt),de=te&&(!we||!us(we)||we.text!==te.text)?te:we,je=!!(le.transformFlags&16384);switch(v.module){case 2:return Zu(de,je);case 3:return Ai(de??s.createVoidZero(),je);case 1:default:return aa(de)}}function Ai(le,te){if(oe=!0,Y2(le)){const we=al(le)?le:us(le)?s.createStringLiteralFromNode(le):Zn(Pt(s.cloneNode(le),le),3072);return s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,aa(le),void 0,Zu(we,te))}else{const we=s.createTempVariable(E);return s.createComma(s.createAssignment(we,le),s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,aa(we,!0),void 0,Zu(we,te)))}}function Zu(le,te){const we=s.createUniqueName("resolve"),de=s.createUniqueName("reject"),je=[s.createParameterDeclaration(void 0,void 0,we),s.createParameterDeclaration(void 0,void 0,de)],X=s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("require"),void 0,[s.createArrayLiteralExpression([le||s.createOmittedExpression()]),we,de]))]);let it;k>=2?it=s.createArrowFunction(void 0,void 0,je,void 0,void 0,X):(it=s.createFunctionExpression(void 0,void 0,void 0,void 0,je,void 0,X),te&&Zn(it,16));const Ct=s.createNewExpression(s.createIdentifier("Promise"),void 0,[it]);return e_(v)?s.createCallExpression(s.createPropertyAccessExpression(Ct,s.createIdentifier("then")),void 0,[d().createImportStarCallbackHelper()]):Ct}function aa(le,te){const we=le&&!sE(le)&&!te,de=s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Promise"),"resolve"),void 0,we?k>=2?[s.createTemplateExpression(s.createTemplateHead(""),[s.createTemplateSpan(le,s.createTemplateTail(""))])]:[s.createCallExpression(s.createPropertyAccessExpression(s.createStringLiteral(""),"concat"),void 0,[le])]:[]);let je=s.createCallExpression(s.createIdentifier("require"),void 0,we?[s.createIdentifier("s")]:le?[le]:[]);e_(v)&&(je=d().createImportStarHelper(je));const X=we?[s.createParameterDeclaration(void 0,void 0,"s")]:[];let it;return k>=2?it=s.createArrowFunction(void 0,void 0,X,void 0,void 0,je):it=s.createFunctionExpression(void 0,void 0,void 0,void 0,X,void 0,s.createBlock([s.createReturnStatement(je)])),s.createCallExpression(s.createPropertyAccessExpression(de,"then"),void 0,[it])}function yr(le,te){return!e_(v)||Pp(le)&2?te:GAe(le)?d().createImportStarHelper(te):te}function Ba(le,te){return!e_(v)||Pp(le)&2?te:aQ(le)?d().createImportStarHelper(te):$de(le)?d().createImportDefaultHelper(te):te}function bt(le){let te;const we=Q8(le);if(T!==2)if(le.importClause){const de=[];we&&!c7(le)?de.push(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,Ba(le,jn(le)))):(de.push(s.createVariableDeclaration(s.getGeneratedNameForNode(le),void 0,void 0,Ba(le,jn(le)))),we&&c7(le)&&de.push(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,s.getGeneratedNameForNode(le)))),te=xi(te,su(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList(de,k>=2?2:0)),le),le))}else return su(Pt(s.createExpressionStatement(jn(le)),le),le);else we&&c7(le)&&(te=xi(te,s.createVariableStatement(void 0,s.createVariableDeclarationList([su(Pt(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,s.getGeneratedNameForNode(le)),le),le)],k>=2?2:0))));return te=Ta(te,le),F0(te)}function jn(le){const te=W7(s,le,J,B,b,v),we=[];return te&&we.push(te),s.createCallExpression(s.createIdentifier("require"),void 0,we)}function Ln(le){H.assert(bv(le),"import= for internal module references should be handled in an earlier transformer.");let te;return T!==2?Yu(le,32)?te=xi(te,su(Pt(s.createExpressionStatement(gt(le.name,jn(le))),le),le)):te=xi(te,su(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(s.cloneNode(le.name),void 0,void 0,jn(le))],k>=2?2:0)),le),le)):Yu(le,32)&&(te=xi(te,su(Pt(s.createExpressionStatement(gt(s.getExportName(le),s.getLocalName(le))),le),le))),te=Yo(te,le),F0(te)}function Si(le){if(!le.moduleSpecifier)return;const te=s.getGeneratedNameForNode(le);if(le.exportClause&&ep(le.exportClause)){const we=[];T!==2&&we.push(su(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(te,void 0,void 0,jn(le))])),le),le));for(const de of le.exportClause.elements)if(k===0)we.push(su(Pt(s.createExpressionStatement(d().createCreateBindingHelper(te,s.createStringLiteralFromNode(de.propertyName||de.name),de.propertyName?s.createStringLiteralFromNode(de.name):void 0)),de),de));else{const je=!!e_(v)&&!(Pp(le)&2)&&fu(de.propertyName||de.name)==="default",X=s.createPropertyAccessExpression(je?d().createImportDefaultHelper(te):te,de.propertyName||de.name);we.push(su(Pt(s.createExpressionStatement(gt(s.getExportName(de),X,void 0,!0)),de),de))}return F0(we)}else if(le.exportClause){const we=[];return we.push(su(Pt(s.createExpressionStatement(gt(s.cloneNode(le.exportClause.name),yr(le,T!==2?jn(le):eq(le)?te:s.createIdentifier(fu(le.exportClause.name))))),le),le)),F0(we)}else return su(Pt(s.createExpressionStatement(d().createExportStarHelper(T!==2?jn(le):te)),le),le)}function Dn(le){if(!le.isExportEquals)return et(s.createIdentifier("default"),yt(le.expression,Ge,Wt),le,!0)}function Cn(le){let te;return Yu(le,32)?te=xi(te,su(Pt(s.createFunctionDeclaration(kn(le.modifiers,ii,Qo),le.asteriskToken,s.getDeclarationName(le,!0,!0),void 0,kn(le.parameters,Ge,io),void 0,rn(le.body,Ge,t)),le),le)):te=xi(te,rn(le,Ge,t)),te=Mt(te,le),F0(te)}function tu(le){let te;return Yu(le,32)?te=xi(te,su(Pt(s.createClassDeclaration(kn(le.modifiers,ii,ol),s.getDeclarationName(le,!0,!0),void 0,kn(le.heritageClauses,Ge,mm),kn(le.members,Ge,Zd)),le),le)):te=xi(te,rn(le,Ge,t)),te=Mt(te,le),F0(te)}function oa(le){let te,we,de;if(Yu(le,32)){let je,X=!1;for(const it of le.declarationList.declarations)if(at(it.name)&&rD(it.name))if(je||(je=kn(le.modifiers,ii,Qo)),it.initializer){const Ct=s.updateVariableDeclaration(it,it.name,void 0,void 0,gt(it.name,yt(it.initializer,Ge,Wt)));we=xi(we,Ct)}else we=xi(we,it);else if(it.initializer)if(!So(it.name)&&(q0(it.initializer)||A0(it.initializer)||Xd(it.initializer))){const Ct=s.createAssignment(Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),it.name),it.name),s.createIdentifier(J4(it.name))),ct=s.createVariableDeclaration(it.name,it.exclamationToken,it.type,yt(it.initializer,Ge,Wt));we=xi(we,ct),de=xi(de,Ct),X=!0}else de=xi(de,ua(it));if(we&&(te=xi(te,s.updateVariableStatement(le,je,s.updateVariableDeclarationList(le.declarationList,we)))),de){const it=su(Pt(s.createExpressionStatement(s.inlineExpressions(de)),le),le);X&&EV(it),te=xi(te,it)}}else te=xi(te,rn(le,Ge,t));return te=bo(te,le),F0(te)}function Da(le,te,we){const de=on(le);if(de){let je=xY(le)?te:s.createAssignment(le,te);for(const X of de)Zn(je,8),je=gt(X,je,we);return je}return s.createAssignment(le,te)}function ua(le){return So(le.name)?wk(yt(le,Ge,Zj),Ge,t,0,!1,Da):s.createAssignment(Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),le.name),le.name),le.initializer?yt(le.initializer,Ge,Wt):s.createVoidZero())}function Ta(le,te){if(K.exportEquals)return le;const we=te.importClause;if(!we)return le;const de=new Y7;we.name&&(le=qt(le,de,we));const je=we.namedBindings;if(je)switch(je.kind){case 274:le=qt(le,de,je);break;case 275:for(const X of je.elements)le=qt(le,de,X,!0);break}return le}function Yo(le,te){return K.exportEquals?le:qt(le,new Y7,te)}function bo(le,te){return Qe(le,te.declarationList,!1)}function Qe(le,te,we){if(K.exportEquals)return le;for(const de of te.declarations)le=Et(le,de,we);return le}function Et(le,te,we){if(K.exportEquals)return le;if(So(te.name))for(const de of te.name.elements)Fd(de)||(le=Et(le,de,we));else!al(te.name)&&(!na(te)||te.initializer||we)&&(le=qt(le,new Y7,te));return le}function Mt(le,te){if(K.exportEquals)return le;const we=new Y7;if(Yu(te,32)){const de=Yu(te,2048)?s.createIdentifier("default"):s.getDeclarationName(te);le=Xt(le,we,de,s.getLocalName(te),te)}return te.name&&(le=qt(le,we,te)),le}function qt(le,te,we,de){const je=s.getDeclarationName(we),X=K.exportSpecifiers.get(je);if(X)for(const it of X)le=Xt(le,te,it.name,je,it.name,void 0,de);return le}function Xt(le,te,we,de,je,X,it){return te.has(we)||(te.set(we,!0),le=xi(le,et(we,de,je,X,it))),le}function Pe(){let le;return k===0?le=s.createExpressionStatement(gt(s.createIdentifier("__esModule"),s.createTrue())):le=s.createExpressionStatement(s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteral("__esModule"),s.createObjectLiteralExpression([s.createPropertyAssignment("value",s.createTrue())])])),Zn(le,2097152),le}function et(le,te,we,de,je){const X=Pt(s.createExpressionStatement(gt(le,te,void 0,je)),we);return vh(X),de||Zn(X,3072),X}function gt(le,te,we,de){return Pt(de&&k!==0?s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteralFromNode(le),s.createObjectLiteralExpression([s.createPropertyAssignment("enumerable",s.createTrue()),s.createPropertyAssignment("get",s.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,s.createBlock([s.createReturnStatement(te)])))])]):s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(le)),te),we)}function ii(le){switch(le.kind){case 95:case 90:return}return le}function me(le,te,we){te.kind===312?(J=te,K=j[M1(J)],z(le,te,we),J=void 0,K=void 0):z(le,te,we)}function ni(le,te){return te=M(le,te),te.id&&Y[te.id]?te:le===1?mt(te):pm(te)?vi(te):te}function vi(le){const te=le.name,we=$i(te);if(we!==te){if(le.objectAssignmentInitializer){const de=s.createAssignment(we,le.objectAssignmentInitializer);return Pt(s.createPropertyAssignment(te,de),le)}return Pt(s.createPropertyAssignment(te,we),le)}return le}function mt(le){switch(le.kind){case 80:return $i(le);case 213:return Ot(le);case 215:return Ei(le);case 226:return Qi(le)}return le}function Ot(le){if(at(le.expression)){const te=$i(le.expression);if(Y[$s(te)]=!0,!at(te)&&!(bs(le.expression)&8192))return F7(s.updateCallExpression(le,te,void 0,le.arguments),16)}return le}function Ei(le){if(at(le.tag)){const te=$i(le.tag);if(Y[$s(te)]=!0,!at(te)&&!(bs(le.tag)&8192))return F7(s.updateTaggedTemplateExpression(le,te,void 0,le.template),16)}return le}function $i(le){var te,we;if(bs(le)&8192){const de=zV(J);return de?s.createPropertyAccessExpression(de,le):le}else if(!(al(le)&&!(le.emitNode.autoGenerate.flags&64))&&!rD(le)){const de=b.getReferencedExportContainer(le,xY(le));if(de&&de.kind===312)return Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(le)),le);const je=b.getReferencedImportDeclaration(le);if(je){if(n_(je))return Pt(s.createPropertyAccessExpression(s.getGeneratedNameForNode(je.parent),s.createIdentifier("default")),le);if(bf(je)){const X=je.propertyName||je.name;return Pt(s.createPropertyAccessExpression(s.getGeneratedNameForNode(((we=(te=je.parent)==null?void 0:te.parent)==null?void 0:we.parent)||je),s.cloneNode(X)),le)}}}return le}function Qi(le){if(u5(le.operatorToken.kind)&&at(le.left)&&(!al(le.left)||JO(le.left))&&!rD(le.left)){const te=on(le.left);if(te){let we=le;for(const de of te)Y[$s(we)]=!0,we=gt(de,we,le);return we}}return le}function on(le){if(al(le)){if(JO(le)){const te=K==null?void 0:K.exportSpecifiers.get(le);if(te){const we=[];for(const de of te)we.push(de.name);return we}}}else{const te=b.getReferencedImportDeclaration(le);if(te)return K==null?void 0:K.exportedBindings[M1(te)];const we=new Set,de=b.getReferencedValueDeclarations(le);if(de){for(const je of de){const X=K==null?void 0:K.exportedBindings[M1(je)];if(X)for(const it of X)we.add(it)}if(we.size)return ga(we)}}}}var Jet,WMt=o({"src/compiler/transformers/module/module.ts"(){Bo(),Jet={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function b7e(t){const{factory:u,startLexicalEnvironment:s,endLexicalEnvironment:d,hoistVariableDeclaration:f}=t,p=t.getCompilerOptions(),E=t.getEmitResolver(),v=t.getEmitHost(),b=t.onSubstituteNode,B=t.onEmitNode;t.onSubstituteNode=gt,t.onEmitNode=et,t.enableSubstitution(80),t.enableSubstitution(304),t.enableSubstitution(226),t.enableSubstitution(236),t.enableEmitNotification(312);const k=[],T=[],M=[],z=[];let j,J,K,Y,oe,se,ge;return Kp(t,ae);function ae(le){if(le.isDeclarationFile||!(s7(le,p)||le.transformFlags&8388608))return le;const te=M1(le);j=le,se=le,J=k[te]=Ude(t,le),K=u.createUniqueName("exports"),T[te]=K,Y=z[te]=u.createUniqueName("context");const we=Ce(J.externalImports),de=ne(le,we),je=u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,K),u.createParameterDeclaration(void 0,void 0,Y)],void 0,de),X=IV(u,le,v,p),it=u.createArrayLiteralExpression(Vt(we,ct=>ct.name)),Ct=Zn(u.updateSourceFile(le,Pt(u.createNodeArray([u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("System"),"register"),void 0,X?[X,it,je]:[it,je]))]),le.statements)),2048);return y0(p)||Hke(Ct,de,ct=>!ct.scoped),ge&&(M[te]=ge,ge=void 0),j=void 0,J=void 0,K=void 0,Y=void 0,oe=void 0,se=void 0,Ct}function Ce(le){const te=new Map,we=[];for(const de of le){const je=W7(u,de,j,v,E,p);if(je){const X=je.text,it=te.get(X);it!==void 0?we[it].externalImports.push(de):(te.set(X,we.length),we.push({name:je,externalImports:[de]}))}}return we}function ne(le,te){const we=[];s();const de=Z4(p,"alwaysStrict")||!p.noImplicitUseStrict&&wc(j),je=u.copyPrologue(le.statements,we,de,pe);we.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration("__moduleName",void 0,void 0,u.createLogicalAnd(Y,u.createPropertyAccessExpression(Y,"id")))]))),yt(J.externalHelpersImportDeclaration,pe,ia);const X=kn(le.statements,pe,ia,je);yn(we,oe),ZE(we,d());const it=ve(we),Ct=le.transformFlags&2097152?u.createModifiersFromModifierFlags(1024):void 0,ct=u.createObjectLiteralExpression([u.createPropertyAssignment("setters",Ne(it,te)),u.createPropertyAssignment("execute",u.createFunctionExpression(Ct,void 0,void 0,void 0,[],void 0,u.createBlock(X,!0)))],!0);return we.push(u.createReturnStatement(ct)),u.createBlock(we,!0)}function ve(le){if(!J.hasExportStarsToExportValues)return;if(!J.exportedNames&&J.exportSpecifiers.size===0){let je=!1;for(const X of J.externalImports)if(X.kind===278&&X.exportClause){je=!0;break}if(!je){const X=Se(void 0);return le.push(X),X.name}}const te=[];if(J.exportedNames)for(const je of J.exportedNames)je.escapedText!=="default"&&te.push(u.createPropertyAssignment(u.createStringLiteralFromNode(je),u.createTrue()));const we=u.createUniqueName("exportedNames");le.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(we,void 0,void 0,u.createObjectLiteralExpression(te,!0))])));const de=Se(we);return le.push(de),de.name}function Se(le){const te=u.createUniqueName("exportStar"),we=u.createIdentifier("m"),de=u.createIdentifier("n"),je=u.createIdentifier("exports");let X=u.createStrictInequality(de,u.createStringLiteral("default"));return le&&(X=u.createLogicalAnd(X,u.createLogicalNot(u.createCallExpression(u.createPropertyAccessExpression(le,"hasOwnProperty"),void 0,[de])))),u.createFunctionDeclaration(void 0,void 0,te,void 0,[u.createParameterDeclaration(void 0,void 0,we)],void 0,u.createBlock([u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(je,void 0,void 0,u.createObjectLiteralExpression([]))])),u.createForInStatement(u.createVariableDeclarationList([u.createVariableDeclaration(de)]),we,u.createBlock([Zn(u.createIfStatement(X,u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(je,de),u.createElementAccessExpression(we,de)))),1)])),u.createExpressionStatement(u.createCallExpression(K,void 0,[je]))],!0))}function Ne(le,te){const we=[];for(const de of te){const je=L(de.externalImports,Ct=>zB(u,Ct,j)),X=je?u.getGeneratedNameForNode(je):u.createUniqueName(""),it=[];for(const Ct of de.externalImports){const ct=zB(u,Ct,j);switch(Ct.kind){case 272:if(!Ct.importClause)break;case 271:H.assert(ct!==void 0),it.push(u.createExpressionStatement(u.createAssignment(ct,X))),Yu(Ct,32)&&it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createStringLiteral(fu(ct)),X])));break;case 278:if(H.assert(ct!==void 0),Ct.exportClause)if(ep(Ct.exportClause)){const Qt=[];for(const Li of Ct.exportClause.elements)Qt.push(u.createPropertyAssignment(u.createStringLiteral(fu(Li.name)),u.createElementAccessExpression(X,u.createStringLiteral(fu(Li.propertyName||Li.name)))));it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createObjectLiteralExpression(Qt,!0)])))}else it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createStringLiteral(fu(Ct.exportClause.name)),X])));else it.push(u.createExpressionStatement(u.createCallExpression(le,void 0,[X])));break}}we.push(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,X)],void 0,u.createBlock(it,!0)))}return u.createArrayLiteralExpression(we,!0)}function pe(le){switch(le.kind){case 272:return fe(le);case 271:return Be(le);case 278:return xe(le);case 277:return Ge(le);default:return ji(le)}}function fe(le){let te;return le.importClause&&f(zB(u,le,j)),F0(Yt(te,le))}function xe(le){H.assertIsDefined(le)}function Be(le){H.assert(bv(le),"import= for internal module references should be handled in an earlier transformer.");let te;return f(zB(u,le,j)),F0(Ie(te,le))}function Ge(le){if(le.isExportEquals)return;const te=yt(le.expression,ua,Wt);return Ut(u.createIdentifier("default"),te,!0)}function Ae(le){Yu(le,32)?oe=xi(oe,u.updateFunctionDeclaration(le,kn(le.modifiers,Pe,ol),le.asteriskToken,u.getDeclarationName(le,!0,!0),void 0,kn(le.parameters,ua,io),void 0,yt(le.body,ua,po))):oe=xi(oe,rn(le,ua,t)),oe=It(oe,le)}function De(le){let te;const we=u.getLocalName(le);return f(we),te=xi(te,Pt(u.createExpressionStatement(u.createAssignment(we,Pt(u.createClassExpression(kn(le.modifiers,Pe,ol),le.name,void 0,kn(le.heritageClauses,ua,mm),kn(le.members,ua,Zd)),le))),le)),te=It(te,le),F0(te)}function Ke(le){if(!ft(le.declarationList))return yt(le,ua,ia);let te;if(cj(le.declarationList)||lj(le.declarationList)){const we=kn(le.modifiers,Pe,ol),de=[];for(const X of le.declarationList.declarations)de.push(u.updateVariableDeclaration(X,u.getGeneratedNameForNode(X.name),void 0,void 0,Ye(X,!1)));const je=u.updateVariableDeclarationList(le.declarationList,de);te=xi(te,u.updateVariableStatement(le,we,je))}else{let we;const de=Yu(le,32);for(const je of le.declarationList.declarations)je.initializer?we=xi(we,Ye(je,de)):Je(je);we&&(te=xi(te,Pt(u.createExpressionStatement(u.inlineExpressions(we)),le)))}return te=st(te,le,!1),F0(te)}function Je(le){if(So(le.name))for(const te of le.name.elements)Fd(te)||Je(te);else f(u.cloneNode(le.name))}function ft(le){return(bs(le)&4194304)===0&&(se.kind===312||(Wl(le).flags&7)===0)}function Ye(le,te){const we=te?Ve:We;return So(le.name)?wk(le,ua,t,0,!1,we):le.initializer?we(le.name,yt(le.initializer,ua,Wt)):le.name}function Ve(le,te,we){return Gt(le,te,we,!0)}function We(le,te,we){return Gt(le,te,we,!1)}function Gt(le,te,we,de){return f(u.cloneNode(le)),de?Ni(le,Qi(Pt(u.createAssignment(le,te),we))):Qi(Pt(u.createAssignment(le,te),we))}function Yt(le,te){if(J.exportEquals)return le;const we=te.importClause;if(!we)return le;we.name&&(le=ei(le,we));const de=we.namedBindings;if(de)switch(de.kind){case 274:le=ei(le,de);break;case 275:for(const je of de.elements)le=ei(le,je);break}return le}function Ie(le,te){return J.exportEquals?le:ei(le,te)}function st(le,te,we){if(J.exportEquals)return le;for(const de of te.declarationList.declarations)(de.initializer||we)&&(le=St(le,de,we));return le}function St(le,te,we){if(J.exportEquals)return le;if(So(te.name))for(const de of te.name.elements)Fd(de)||(le=St(le,de,we));else if(!al(te.name)){let de;we&&(le=ht(le,te.name,u.getLocalName(te)),de=fu(te.name)),le=ei(le,te,de)}return le}function It(le,te){if(J.exportEquals)return le;let we;if(Yu(te,32)){const de=Yu(te,2048)?u.createStringLiteral("default"):te.name;le=ht(le,de,u.getLocalName(te)),we=J4(de)}return te.name&&(le=ei(le,te,we)),le}function ei(le,te,we){if(J.exportEquals)return le;const de=u.getDeclarationName(te),je=J.exportSpecifiers.get(de);if(je)for(const X of je)X.name.escapedText!==we&&(le=ht(le,X.name,de));return le}function ht(le,te,we,de){return le=xi(le,Ut(te,we,de)),le}function Ut(le,te,we){const de=u.createExpressionStatement(Ni(le,te));return vh(de),we||Zn(de,3072),de}function Ni(le,te){const we=at(le)?u.createStringLiteralFromNode(le):le;return Zn(te,bs(te)|3072),Bc(u.createCallExpression(K,void 0,[we,te]),te)}function ji(le){switch(le.kind){case 243:return Ke(le);case 262:return Ae(le);case 263:return De(le);case 248:return xn(le,!0);case 249:return Jn(le);case 250:return an(le);case 246:return Zu(le);case 247:return aa(le);case 256:return yr(le);case 254:return Ba(le);case 245:return bt(le);case 255:return jn(le);case 269:return Ln(le);case 296:return Si(le);case 297:return Dn(le);case 258:return Cn(le);case 299:return tu(le);case 241:return oa(le);default:return ua(le)}}function xn(le,te){const we=se;return se=le,le=u.updateForStatement(le,yt(le.initializer,te?Ai:Ta,a4),yt(le.condition,ua,Wt),yt(le.incrementor,Ta,Wt),Ih(le.statement,te?ji:ua,t)),se=we,le}function Jn(le){const te=se;return se=le,le=u.updateForInStatement(le,Ai(le.initializer),yt(le.expression,ua,Wt),Ih(le.statement,ji,t)),se=te,le}function an(le){const te=se;return se=le,le=u.updateForOfStatement(le,le.awaitModifier,Ai(le.initializer),yt(le.expression,ua,Wt),Ih(le.statement,ji,t)),se=te,le}function Pi(le){return Ad(le)&&ft(le)}function Ai(le){if(Pi(le)){let te;for(const we of le.declarations)te=xi(te,Ye(we,!1)),we.initializer||Je(we);return te?u.inlineExpressions(te):u.createOmittedExpression()}else return yt(le,Ta,a4)}function Zu(le){return u.updateDoStatement(le,Ih(le.statement,ji,t),yt(le.expression,ua,Wt))}function aa(le){return u.updateWhileStatement(le,yt(le.expression,ua,Wt),Ih(le.statement,ji,t))}function yr(le){return u.updateLabeledStatement(le,le.label,H.checkDefined(yt(le.statement,ji,ia,u.liftToBlock)))}function Ba(le){return u.updateWithStatement(le,yt(le.expression,ua,Wt),H.checkDefined(yt(le.statement,ji,ia,u.liftToBlock)))}function bt(le){return u.updateIfStatement(le,yt(le.expression,ua,Wt),H.checkDefined(yt(le.thenStatement,ji,ia,u.liftToBlock)),yt(le.elseStatement,ji,ia,u.liftToBlock))}function jn(le){return u.updateSwitchStatement(le,yt(le.expression,ua,Wt),H.checkDefined(yt(le.caseBlock,ji,ZP)))}function Ln(le){const te=se;return se=le,le=u.updateCaseBlock(le,kn(le.clauses,ji,WU)),se=te,le}function Si(le){return u.updateCaseClause(le,yt(le.expression,ua,Wt),kn(le.statements,ji,ia))}function Dn(le){return rn(le,ji,t)}function Cn(le){return rn(le,ji,t)}function tu(le){const te=se;return se=le,le=u.updateCatchClause(le,le.variableDeclaration,H.checkDefined(yt(le.block,ji,po))),se=te,le}function oa(le){const te=se;return se=le,le=rn(le,ji,t),se=te,le}function Da(le,te){if(!(le.transformFlags&276828160))return le;switch(le.kind){case 248:return xn(le,!1);case 244:return Yo(le);case 217:return bo(le,te);case 360:return Qe(le,te);case 226:if(r5(le))return Mt(le,te);break;case 213:if(dm(le))return Et(le);break;case 224:case 225:return Xt(le,te)}return rn(le,ua,t)}function ua(le){return Da(le,!1)}function Ta(le){return Da(le,!0)}function Yo(le){return u.updateExpressionStatement(le,yt(le.expression,Ta,Wt))}function bo(le,te){return u.updateParenthesizedExpression(le,yt(le.expression,te?Ta:ua,Wt))}function Qe(le,te){return u.updatePartiallyEmittedExpression(le,yt(le.expression,te?Ta:ua,Wt))}function Et(le){const te=W7(u,le,j,v,E,p),we=yt(Ki(le.arguments),ua,Wt),de=te&&(!we||!us(we)||we.text!==te.text)?te:we;return u.createCallExpression(u.createPropertyAccessExpression(Y,u.createIdentifier("import")),void 0,de?[de]:[])}function Mt(le,te){return qt(le.left)?wk(le,ua,t,0,!te):rn(le,ua,t)}function qt(le){if(ld(le,!0))return qt(le.left);if(uE(le))return qt(le.expression);if(ys(le))return Oe(le.properties,qt);if(Dh(le))return Oe(le.elements,qt);if(pm(le))return qt(le.name);if(Jc(le))return qt(le.initializer);if(at(le)){const te=E.getReferencedExportContainer(le);return te!==void 0&&te.kind===312}else return!1}function Xt(le,te){if((le.operator===46||le.operator===47)&&at(le.operand)&&!al(le.operand)&&!rD(le.operand)&&!ple(le.operand)){const we=Ei(le.operand);if(we){let de,je=yt(le.operand,ua,Wt);zv(le)?je=u.updatePrefixUnaryExpression(le,je):(je=u.updatePostfixUnaryExpression(le,je),te||(de=u.createTempVariable(f),je=u.createAssignment(de,je),Pt(je,le)),je=u.createComma(je,u.cloneNode(le.operand)),Pt(je,le));for(const X of we)je=Ni(X,Qi(je));return de&&(je=u.createComma(je,de),Pt(je,le)),je}}return rn(le,ua,t)}function Pe(le){switch(le.kind){case 95:case 90:return}return le}function et(le,te,we){if(te.kind===312){const de=M1(te);j=te,J=k[de],K=T[de],ge=M[de],Y=z[de],ge&&delete M[de],B(le,te,we),j=void 0,J=void 0,K=void 0,Y=void 0,ge=void 0}else B(le,te,we)}function gt(le,te){return te=b(le,te),on(te)?te:le===1?ni(te):le===4?ii(te):te}function ii(le){switch(le.kind){case 304:return me(le)}return le}function me(le){var te,we;const de=le.name;if(!al(de)&&!rD(de)){const je=E.getReferencedImportDeclaration(de);if(je){if(n_(je))return Pt(u.createPropertyAssignment(u.cloneNode(de),u.createPropertyAccessExpression(u.getGeneratedNameForNode(je.parent),u.createIdentifier("default"))),le);if(bf(je))return Pt(u.createPropertyAssignment(u.cloneNode(de),u.createPropertyAccessExpression(u.getGeneratedNameForNode(((we=(te=je.parent)==null?void 0:te.parent)==null?void 0:we.parent)||je),u.cloneNode(je.propertyName||je.name))),le)}}return le}function ni(le){switch(le.kind){case 80:return vi(le);case 226:return mt(le);case 236:return Ot(le)}return le}function vi(le){var te,we;if(bs(le)&8192){const de=zV(j);return de?u.createPropertyAccessExpression(de,le):le}if(!al(le)&&!rD(le)){const de=E.getReferencedImportDeclaration(le);if(de){if(n_(de))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(de.parent),u.createIdentifier("default")),le);if(bf(de))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(((we=(te=de.parent)==null?void 0:te.parent)==null?void 0:we.parent)||de),u.cloneNode(de.propertyName||de.name)),le)}}return le}function mt(le){if(u5(le.operatorToken.kind)&&at(le.left)&&(!al(le.left)||JO(le.left))&&!rD(le.left)){const te=Ei(le.left);if(te){let we=le;for(const de of te)we=Ni(de,Qi(we));return we}}return le}function Ot(le){return W8(le)?u.createPropertyAccessExpression(Y,u.createIdentifier("meta")):le}function Ei(le){let te;const we=$i(le);if(we){const de=E.getReferencedExportContainer(le,!1);de&&de.kind===312&&(te=xi(te,u.getDeclarationName(we))),te=yn(te,J==null?void 0:J.exportedBindings[M1(we)])}else if(al(le)&&JO(le)){const de=J==null?void 0:J.exportSpecifiers.get(le);if(de){const je=[];for(const X of de)je.push(X.name);return je}}return te}function $i(le){if(!al(le)){const te=E.getReferencedImportDeclaration(le);if(te)return te;const we=E.getReferencedValueDeclaration(le);if(we&&(J!=null&&J.exportedBindings[M1(we)]))return we;const de=E.getReferencedValueDeclarations(le);if(de){for(const je of de)if(je!==we&&(J!=null&&J.exportedBindings[M1(je)]))return je}return we}}function Qi(le){return ge===void 0&&(ge=[]),ge[$s(le)]=!0,le}function on(le){return ge&&le.id&&ge[le.id]}}var GMt=o({"src/compiler/transformers/module/system.ts"(){Bo()}});function a1e(t){const{factory:u,getEmitHelperFactory:s}=t,d=t.getEmitHost(),f=t.getEmitResolver(),p=t.getCompilerOptions(),E=Os(p),v=t.onEmitNode,b=t.onSubstituteNode;t.onEmitNode=ge,t.onSubstituteNode=ae,t.enableEmitNotification(312),t.enableSubstitution(80);let B,k,T;return Kp(t,M);function M(ne){if(ne.isDeclarationFile)return ne;if(wc(ne)||mg(p)){k=ne,T=void 0;let ve=z(ne);return k=void 0,T&&(ve=u.updateSourceFile(ve,Pt(u.createNodeArray(l0e(ve.statements.slice(),T)),ve.statements))),!wc(ne)||Oe(ve.statements,YO)?ve:u.updateSourceFile(ve,Pt(u.createNodeArray([...ve.statements,NV(u)]),ve.statements))}return ne}function z(ne){const ve=Oce(u,s(),ne,p);if(ve){const Se=[],Ne=u.copyPrologue(ne.statements,Se);return xi(Se,ve),yn(Se,kn(ne.statements,j,ia,Ne)),u.updateSourceFile(ne,Pt(u.createNodeArray(Se),ne.statements))}else return rn(ne,j,t)}function j(ne){switch(ne.kind){case 271:return m1(p)>=100?K(ne):void 0;case 277:return oe(ne);case 278:return se(ne)}return ne}function J(ne){const ve=W7(u,ne,H.checkDefined(k),d,f,p),Se=[];if(ve&&Se.push(ve),!T){const pe=u.createUniqueName("_createRequire",48),fe=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamedImports([u.createImportSpecifier(!1,u.createIdentifier("createRequire"),pe)])),u.createStringLiteral("module"),void 0),xe=u.createUniqueName("__require",48),Be=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(xe,void 0,void 0,u.createCallExpression(u.cloneNode(pe),void 0,[u.createPropertyAccessExpression(u.createMetaProperty(102,u.createIdentifier("meta")),u.createIdentifier("url"))]))],E>=2?2:0));T=[fe,Be]}const Ne=T[1].declarationList.declarations[0].name;return H.assertNode(Ne,at),u.createCallExpression(u.cloneNode(Ne),void 0,Se)}function K(ne){H.assert(bv(ne),"import= for internal module references should be handled in an earlier transformer.");let ve;return ve=xi(ve,su(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.cloneNode(ne.name),void 0,void 0,J(ne))],E>=2?2:0)),ne),ne)),ve=Y(ve,ne),F0(ve)}function Y(ne,ve){return Yu(ve,32)&&(ne=xi(ne,u.createExportDeclaration(void 0,ve.isTypeOnly,u.createNamedExports([u.createExportSpecifier(!1,void 0,fu(ve.name))])))),ne}function oe(ne){return ne.isExportEquals?void 0:ne}function se(ne){if(p.module!==void 0&&p.module>5||!ne.exportClause||!u_(ne.exportClause)||!ne.moduleSpecifier)return ne;const ve=ne.exportClause.name,Se=u.getGeneratedNameForNode(ve),Ne=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamespaceImport(Se)),ne.moduleSpecifier,ne.attributes);su(Ne,ne.exportClause);const pe=eq(ne)?u.createExportDefault(Se):u.createExportDeclaration(void 0,!1,u.createNamedExports([u.createExportSpecifier(!1,Se,ve)]));return su(pe,ne),[Ne,pe]}function ge(ne,ve,Se){la(ve)?((wc(ve)||mg(p))&&p.importHelpers&&(B=new Map),v(ne,ve,Se),B=void 0):v(ne,ve,Se)}function ae(ne,ve){return ve=b(ne,ve),B&&at(ve)&&bs(ve)&8192?Ce(ve):ve}function Ce(ne){const ve=fu(ne);let Se=B.get(ve);return Se||B.set(ve,Se=u.createUniqueName(ve,48)),Se}}var JMt=o({"src/compiler/transformers/module/esnextAnd2015.ts"(){Bo()}});function y7e(t){const u=t.onSubstituteNode,s=t.onEmitNode,d=a1e(t),f=t.onSubstituteNode,p=t.onEmitNode;t.onSubstituteNode=u,t.onEmitNode=s;const E=r1e(t),v=t.onSubstituteNode,b=t.onEmitNode;t.onSubstituteNode=k,t.onEmitNode=T,t.enableSubstitution(312),t.enableEmitNotification(312);let B;return j;function k(K,Y){return la(Y)?(B=Y,u(K,Y)):B?B.impliedNodeFormat===99?f(K,Y):v(K,Y):u(K,Y)}function T(K,Y,oe){return la(Y)&&(B=Y),B?B.impliedNodeFormat===99?p(K,Y,oe):b(K,Y,oe):s(K,Y,oe)}function M(K){return K.impliedNodeFormat===99?d:E}function z(K){if(K.isDeclarationFile)return K;B=K;const Y=M(K)(K);return B=void 0,H.assert(la(Y)),Y}function j(K){return K.kind===312?z(K):J(K)}function J(K){return t.factory.createBundle(Vt(K.sourceFiles,z),K.prepends)}}var $Mt=o({"src/compiler/transformers/module/node.ts"(){Bo()}});function mQ(t){return na(t)||ko(t)||Mm(t)||js(t)||e5(t)||Lx(t)||FV(t)||CB(t)||dc(t)||n3(t)||ed(t)||io(t)||Bl(t)||c5(t)||E1(t)||jp(t)||hc(t)||Ek(t)||Iu(t)||U0(t)||Xn(t)||G4(t)}function k7e(t){if(e5(t)||Lx(t))return u;return n3(t)||dc(t)?d:h5(t);function u(p){const E=s(p);return E!==void 0?{diagnosticMessage:E,errorNode:t,typeName:t.name}:void 0}function s(p){return No(t)?p.errorModuleName?p.accessibility===2?F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?p.errorModuleName?p.accessibility===2?F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_property_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?F.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Property_0_of_exported_interface_has_or_is_using_private_name_1}function d(p){const E=f(p);return E!==void 0?{diagnosticMessage:E,errorNode:t,typeName:t.name}:void 0}function f(p){return No(t)?p.errorModuleName?p.accessibility===2?F.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?p.errorModuleName?p.accessibility===2?F.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_method_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?F.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function h5(t){if(na(t)||ko(t)||Mm(t)||Iu(t)||U0(t)||Xn(t)||js(t)||hc(t))return s;return e5(t)||Lx(t)?d:FV(t)||CB(t)||dc(t)||n3(t)||ed(t)||Ek(t)?f:io(t)?Mf(t,t.parent)&&Yu(t.parent,2)?s:p:Bl(t)?v:c5(t)?b:E1(t)?B:jp(t)||G4(t)?k:H.assertNever(t,`Attempted to set a declaration diagnostic context for unhandled node kind: ${H.formatSyntaxKind(t.kind)}`);function u(T){if(t.kind===260||t.kind===208)return T.errorModuleName?T.accessibility===2?F.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:F.Exported_variable_0_has_or_is_using_private_name_1;if(t.kind===172||t.kind===211||t.kind===212||t.kind===226||t.kind===171||t.kind===169&&Yu(t.parent,2))return No(t)?T.errorModuleName?T.accessibility===2?F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263||t.kind===169?T.errorModuleName?T.accessibility===2?F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_property_0_of_exported_class_has_or_is_using_private_name_1:T.errorModuleName?F.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Property_0_of_exported_interface_has_or_is_using_private_name_1}function s(T){const M=u(T);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function d(T){let M;return t.kind===178?No(t)?M=T.errorModuleName?F.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:M=T.errorModuleName?F.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:No(t)?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:M,errorNode:t.name,typeName:t.name}}function f(T){let M;switch(t.kind){case 180:M=T.errorModuleName?F.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:M=T.errorModuleName?F.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:M=T.errorModuleName?F.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:No(t)?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t.parent.kind===263?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:M=T.errorModuleName?F.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:M=T.errorModuleName?T.accessibility===2?F.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return H.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:M,errorNode:t.name||t}}function p(T){const M=E(T);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function E(T){switch(t.parent.kind){case 176:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return T.errorModuleName?F.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return T.errorModuleName?F.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return T.errorModuleName?F.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return No(t.parent)?T.errorModuleName?T.accessibility===2?F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?T.errorModuleName?T.accessibility===2?F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T.errorModuleName?F.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return H.fail(`Unknown parent for parameter: ${H.formatSyntaxKind(t.parent.kind)}`)}}function v(){let T;switch(t.parent.kind){case 263:T=F.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:T=F.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:T=F.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:T=F.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:T=F.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:No(t.parent)?T=F.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?T=F.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T=F.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:T=F.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:T=F.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:T=F.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return H.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:T,errorNode:t,typeName:t.name}}function b(){let T;return Wc(t.parent.parent)?T=mm(t.parent)&&t.parent.token===119?F.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?F.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:F.extends_clause_of_exported_class_has_or_is_using_private_name_0:T=F.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:t,typeName:Za(t.parent.parent)}}function B(){return{diagnosticMessage:F.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function k(T){return{diagnosticMessage:T.errorModuleName?F.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:F.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:G4(t)?H.checkDefined(t.typeExpression):t.type,typeName:G4(t)?Za(t):t.name}}}var UMt=o({"src/compiler/transformers/declarations/diagnostics.ts"(){Bo()}});function F7e(t,u,s){const d=t.getCompilerOptions();return pH(u,t,q,d,s?[s]:ti(t.getSourceFiles(),T0e),[s1e],!1).diagnostics}function $et(t,u){return u.text.substring(t.pos,t.end).includes("@internal")}function o1e(t,u){const s=Ua(t);if(s&&s.kind===169){const f=s.parent.parameters.indexOf(s),p=f>0?s.parent.parameters[f-1]:void 0,E=u.text,v=p?Hi(gv(E,gs(E,p.end+1,!1,!0)),W_(E,t.pos)):gv(E,gs(E,t.pos,!1,!0));return v&&v.length&&$et(Cr(v),u)}const d=s&&y0e(s,u);return!!L(d,f=>$et(f,u))}function s1e(t){const u=()=>H.fail("Diagnostic emitted without context");let s=u,d=!0,f=!1,p=!1,E=!1,v=!1,b,B,k,T,M,z;const{factory:j}=t,J=t.getEmitHost(),K={trackSymbol:Ae,reportInaccessibleThisError:Ye,reportInaccessibleUniqueSymbolError:Je,reportCyclicStructureError:ft,reportPrivateInBaseOfClassExpression:De,reportLikelyUnsafeImportRequiredError:Ve,reportTruncationError:We,moduleResolverHost:J,trackReferencedAmbientModule:fe,trackExternalModuleSymbolOfImportTypeNode:Ge,reportNonlocalAugmentation:Gt,reportNonSerializableProperty:Yt};let Y,oe,se,ge,ae,Ce;const ne=t.getEmitResolver(),ve=t.getCompilerOptions(),{noResolve:Se,stripInternal:Ne}=ve;return st;function pe(me){if(me){B=B||new Set;for(const ni of me)B.add(ni)}}function fe(me,ni){const vi=ne.getTypeReferenceDirectivesForSymbol(ni,67108863);if(S(vi))return pe(vi);const mt=zn(me);ge.set(M1(mt),mt)}function xe(me){const ni=Z8(me),vi=ni&&ne.tryFindAmbientModule(ni);if(vi!=null&&vi.declarations)for(const mt of vi.declarations)N1(mt)&&zn(mt)!==se&&fe(mt,vi)}function Be(me){if(me.accessibility===0){if(me&&me.aliasesToMakeVisible)if(!k)k=me.aliasesToMakeVisible;else for(const ni of me.aliasesToMakeVisible)xa(k,ni)}else{const ni=s(me);if(ni)return ni.typeName?t.addDiagnostic(Su(me.errorNode||ni.errorNode,ni.diagnosticMessage,Hc(ni.typeName),me.errorSymbolName,me.errorModuleName)):t.addDiagnostic(Su(me.errorNode||ni.errorNode,ni.diagnosticMessage,me.errorSymbolName,me.errorModuleName)),!0}return!1}function Ge(me){f||(z||(z=[])).push(me)}function Ae(me,ni,vi){if(me.flags&262144)return!1;const mt=Be(ne.isSymbolAccessible(me,ni,vi,!0));return pe(ne.getTypeReferenceDirectivesForSymbol(me,vi)),mt}function De(me){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.Property_0_of_exported_class_expression_may_not_be_private_or_protected,me))}function Ke(){return Y?b0(Y):oe&&Za(oe)?b0(Za(oe)):oe&&tc(oe)?oe.isExportEquals?"export=":"default":"(Missing)"}function Je(){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ke(),"unique symbol"))}function ft(){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Ke()))}function Ye(){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ke(),"this"))}function Ve(me){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Ke(),me))}function We(){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Gt(me,ni,vi){var mt;const Ot=(mt=ni.declarations)==null?void 0:mt.find($i=>zn($i)===me),Ei=ti(vi.declarations,$i=>zn($i)!==me);if(Ot&&Ei)for(const $i of Ei)t.addDiagnostic(Es(Su($i,F.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Su(Ot,F.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Yt(me){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,me))}function Ie(me,ni){const vi=s;s=Ot=>Ot.errorNode&&mQ(Ot.errorNode)?h5(Ot.errorNode)(Ot):{diagnosticMessage:Ot.errorModuleName?F.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:F.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Ot.errorNode||me};const mt=ne.getDeclarationStatementsForSourceFile(me,Tk,K,ni);return s=vi,mt}function st(me){if(me.kind===312&&me.isDeclarationFile)return me;if(me.kind===313){f=!0,ge=new Map,ae=new Map;let te=!1;const we=j.createBundle(Vt(me.sourceFiles,X=>{if(X.isDeclarationFile)return;if(te=te||X.hasNoDefaultLib,se=X,b=X,k=void 0,M=!1,T=new Map,s=u,E=!1,v=!1,St(X,ge),It(X,ae),cm(X)||W4(X)){p=!1,d=!1;const Ct=gh(X)?j.createNodeArray(Ie(X,!0)):kn(X.statements,oa,ia);return j.updateSourceFile(X,[j.createModuleDeclaration([j.createModifier(138)],j.createStringLiteral(Pq(t.getEmitHost(),X)),j.createModuleBlock(Pt(j.createNodeArray(Dn(Ct)),X.statements)))],!0,[],[],!1,[])}d=!0;const it=gh(X)?j.createNodeArray(Ie(X)):kn(X.statements,oa,ia);return j.updateSourceFile(X,Dn(it),!0,[],[],!1,[])}),qi(me.prepends,X=>{if(X.kind===315){const it=nce(X,"dts",Ne);return te=te||!!it.hasNoDefaultLib,St(it,ge),pe(Vt(it.typeReferenceDirectives,Ct=>[Ct.fileName,Ct.resolutionMode])),It(it,ae),it}return X}));we.syntheticFileReferences=[],we.syntheticTypeReferences=Qi(),we.syntheticLibReferences=$i(),we.hasNoDefaultLib=te;const de=lr(q1(CM(me,J,!0).declarationFilePath)),je=le(we.syntheticFileReferences,de);return ge.forEach(je),we}d=!0,E=!1,v=!1,b=me,se=me,s=u,f=!1,p=!1,M=!1,k=void 0,T=new Map,B=void 0,ge=St(se,new Map),ae=It(se,new Map);const ni=[],vi=lr(q1(CM(me,J,!0).declarationFilePath)),mt=le(ni,vi);let Ot;if(gh(se))Ot=j.createNodeArray(Ie(me)),ge.forEach(mt),Ce=ti(Ot,tk);else{const te=kn(me.statements,oa,ia);Ot=Pt(j.createNodeArray(Dn(te)),me.statements),ge.forEach(mt),Ce=ti(Ot,tk),wc(me)&&(!p||E&&!v)&&(Ot=Pt(j.createNodeArray([...Ot,NV(j)]),Ot))}const Ei=j.updateSourceFile(me,Ot,!0,ni,Qi(),me.hasNoDefaultLib,$i());return Ei.exportedModulesFromDeclarationEmit=z,Ei;function $i(){return ga(ae.keys(),te=>({fileName:te,pos:-1,end:-1}))}function Qi(){return B?qi(ga(B.keys()),on):[]}function on([te,we]){if(Ce){for(const de of Ce)if(E1(de)&&r_(de.moduleReference)){const je=de.moduleReference.expression;if(t0(je)&&je.text===te)return}else if(Sd(de)&&us(de.moduleSpecifier)&&de.moduleSpecifier.text===te)return}return{fileName:te,pos:-1,end:-1,...we?{resolutionMode:we}:void 0}}function le(te,we){return de=>{let je;if(de.isDeclarationFile)je=de.fileName;else{if(f&&kt(me.sourceFiles,de))return;const X=CM(de,J,!0);je=X.declarationFilePath||X.jsFilePath||de.fileName}if(je){const X=qY(ve,se,J0(we,J.getCurrentDirectory(),J.getCanonicalFileName),J0(je,J.getCurrentDirectory(),J.getCanonicalFileName),J);if(!om(X)){pe([[X,void 0]]);return}let it=i7(we,je,J.getCurrentDirectory(),J.getCanonicalFileName,!1);if(Pa(it,"./")&&t7(it)&&(it=it.substring(2)),Pa(it,"node_modules/")||q7(it))return;te.push({pos:-1,end:-1,fileName:it})}}}}function St(me,ni){return Se||!yk(me)&&gh(me)||L(me.referencedFiles,vi=>{const mt=J.getSourceFileFromReference(me,vi);mt&&ni.set(M1(mt),mt)}),ni}function It(me,ni){return L(me.libReferenceDirectives,vi=>{J.getLibFileFromReference(vi)&&ni.set($g(vi.fileName),!0)}),ni}function ei(me){if(me.kind===80)return me;return me.kind===207?j.updateArrayBindingPattern(me,kn(me.elements,ni,jU)):j.updateObjectBindingPattern(me,kn(me.elements,ni,js));function ni(vi){return vi.kind===232?vi:(vi.propertyName&&Ps(vi.propertyName)&&ec(vi.propertyName.expression)&&yr(vi.propertyName.expression,b),vi.propertyName&&at(vi.propertyName)&&at(vi.name)&&!vi.symbol.isReferenced&&!wq(vi.propertyName)?j.updateBindingElement(vi,vi.dotDotDotToken,void 0,vi.propertyName,Ut(vi)?vi.initializer:void 0):j.updateBindingElement(vi,vi.dotDotDotToken,vi.propertyName,ei(vi.name),Ut(vi)?vi.initializer:void 0))}}function ht(me,ni,vi){let mt;M||(mt=s,s=h5(me));const Ot=j.updateParameterDeclaration(me,ZMt(j,me,ni),me.dotDotDotToken,ei(me.name),ne.isOptionalParameter(me)?me.questionToken||j.createToken(58):void 0,ji(me,vi||me.type,!0),Ni(me));return M||(s=mt),Ot}function Ut(me){return YMt(me)&&ne.isLiteralConstDeclaration(Ua(me))}function Ni(me){if(Ut(me))return ne.createLiteralConstValue(Ua(me),K)}function ji(me,ni,vi){if(!vi&&Rf(me,2)||Ut(me))return;const mt=me.kind===169&&(ne.isRequiredInitializedParameter(me)||ne.isOptionalUninitializedParameterProperty(me));if(ni&&!mt)return yt(ni,Cn,Qr);if(!Ua(me))return ni?yt(ni,Cn,Qr):j.createKeywordTypeNode(133);if(me.kind===178)return j.createKeywordTypeNode(133);Y=me.name;let Ot;if(M||(Ot=s,s=h5(me)),me.kind===260||me.kind===208)return Ei(ne.createTypeOfDeclaration(me,b,Tk,K));if(me.kind===169||me.kind===172||me.kind===171)return Mm(me)||!me.initializer?Ei(ne.createTypeOfDeclaration(me,b,Tk,K,mt)):Ei(ne.createTypeOfDeclaration(me,b,Tk,K,mt)||ne.createTypeOfExpression(me.initializer,b,Tk,K));return Ei(ne.createReturnTypeOfSignatureDeclaration(me,b,Tk,K));function Ei($i){return Y=void 0,M||(s=Ot),$i||j.createKeywordTypeNode(133)}}function xn(me){switch(me=Ua(me),me.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!ne.isDeclarationVisible(me);case 260:return!an(me);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Jn(me){var ni;if(me.body)return!0;const vi=(ni=me.symbol.declarations)==null?void 0:ni.filter(mt=>ed(mt)&&!mt.body);return!vi||vi.indexOf(me)===vi.length-1}function an(me){return Fd(me)?!1:So(me.name)?Oe(me.name.elements,an):ne.isDeclarationVisible(me)}function Pi(me,ni,vi){if(Rf(me,2))return j.createNodeArray();const mt=Vt(ni,Ot=>ht(Ot,vi));return mt?j.createNodeArray(mt,ni.hasTrailingComma):j.createNodeArray()}function Ai(me,ni){let vi;if(!ni){const mt=T2(me);mt&&(vi=[ht(mt)])}if(jf(me)){let mt;if(!ni){const Ot=hP(me);if(Ot){const Ei=gt(me,ne.getAllAccessorDeclarations(me));mt=ht(Ot,void 0,Ei)}}mt||(mt=j.createParameterDeclaration(void 0,void 0,"value")),vi=xi(vi,mt)}return j.createNodeArray(vi||_t)}function Zu(me,ni){return Rf(me,2)?void 0:kn(ni,Cn,Bl)}function aa(me){return la(me)||jp(me)||_c(me)||Wc(me)||xh(me)||Co(me)||Ek(me)||JP(me)}function yr(me,ni){const vi=ne.isEntityNameVisible(me,ni);Be(vi),pe(ne.getTypeReferenceDirectivesForEntityName(me))}function Ba(me,ni){return lm(me)&&lm(ni)&&(me.jsDoc=ni.jsDoc),Bc(me,nE(ni))}function bt(me,ni){if(ni){if(p=p||me.kind!==267&&me.kind!==205,t0(ni))if(f){const vi=Eye(t.getEmitHost(),ne,me);if(vi)return j.createStringLiteral(vi)}else{const vi=ne.getSymbolOfExternalModuleSpecifier(ni);vi&&(z||(z=[])).push(vi)}return ni}}function jn(me){if(ne.isDeclarationVisible(me))if(me.moduleReference.kind===283){const ni=XN(me);return j.updateImportEqualsDeclaration(me,me.modifiers,me.isTypeOnly,me.name,j.updateExternalModuleReference(me.moduleReference,bt(me,ni)))}else{const ni=s;return s=h5(me),yr(me.moduleReference,b),s=ni,me}}function Ln(me){if(!me.importClause)return j.updateImportDeclaration(me,me.modifiers,me.importClause,bt(me,me.moduleSpecifier),Si(me.attributes));const ni=me.importClause&&me.importClause.name&&ne.isDeclarationVisible(me.importClause)?me.importClause.name:void 0;if(!me.importClause.namedBindings)return ni&&j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,void 0),bt(me,me.moduleSpecifier),Si(me.attributes));if(me.importClause.namedBindings.kind===274){const mt=ne.isDeclarationVisible(me.importClause.namedBindings)?me.importClause.namedBindings:void 0;return ni||mt?j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,mt),bt(me,me.moduleSpecifier),Si(me.attributes)):void 0}const vi=qi(me.importClause.namedBindings.elements,mt=>ne.isDeclarationVisible(mt)?mt:void 0);if(vi&&vi.length||ni)return j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,vi&&vi.length?j.updateNamedImports(me.importClause.namedBindings,vi):void 0),bt(me,me.moduleSpecifier),Si(me.attributes));if(ne.isImportRequiredByAugmentation(me))return j.updateImportDeclaration(me,me.modifiers,void 0,bt(me,me.moduleSpecifier),Si(me.attributes))}function Si(me){const ni=qB(me);return me&&ni!==void 0?me:void 0}function Dn(me){for(;S(k);){const vi=k.shift();if(!iq(vi))return H.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${H.formatSyntaxKind(vi.kind)}`);const mt=d;d=vi.parent&&la(vi.parent)&&!(wc(vi.parent)&&f);const Ot=Ta(vi);d=mt,T.set(M1(vi),Ot)}return kn(me,ni,ia);function ni(vi){if(iq(vi)){const mt=M1(vi);if(T.has(mt)){const Ot=T.get(mt);return T.delete(mt),Ot&&((Ha(Ot)?Oe(Ot,VU):VU(Ot))&&(E=!0),la(vi.parent)&&(Ha(Ot)?Oe(Ot,YO):YO(Ot))&&(p=!0)),Ot}}return vi}}function Cn(me){if(Mt(me)||Q1(me)&&(xn(me)||Ix(me)&&!ne.isLateBound(Ua(me)))||Co(me)&&ne.isImplementationOfOverload(me)||lFe(me))return;let ni;aa(me)&&(ni=b,b=me);const vi=s,mt=mQ(me),Ot=M;let Ei=(me.kind===187||me.kind===200)&&me.parent.kind!==265;if((dc(me)||n3(me))&&Rf(me,2))return me.symbol&&me.symbol.declarations&&me.symbol.declarations[0]!==me?void 0:$i(j.createPropertyDeclaration(Pe(me),me.name,void 0,void 0,void 0));if(mt&&!M&&(s=h5(me)),bB(me)&&yr(me.exprName,b),Ei&&(M=!0),XMt(me))switch(me.kind){case 233:{(sm(me.expression)||ec(me.expression))&&yr(me.expression,b);const Qi=rn(me,Cn,t);return $i(j.updateExpressionWithTypeArguments(Qi,Qi.expression,Qi.typeArguments))}case 183:{yr(me.typeName,b);const Qi=rn(me,Cn,t);return $i(j.updateTypeReferenceNode(Qi,Qi.typeName,Qi.typeArguments))}case 180:return $i(j.updateConstructSignature(me,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type)));case 176:{const Qi=j.createConstructorDeclaration(Pe(me),Pi(me,me.parameters,0),void 0);return $i(Qi)}case 174:{if(Xr(me.name))return $i(void 0);const Qi=j.createMethodDeclaration(Pe(me),void 0,me.name,me.questionToken,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type),void 0);return $i(Qi)}case 177:{if(Xr(me.name))return $i(void 0);const Qi=gt(me,ne.getAllAccessorDeclarations(me));return $i(j.updateGetAccessorDeclaration(me,Pe(me),me.name,Ai(me,Rf(me,2)),ji(me,Qi),void 0))}case 178:return Xr(me.name)?$i(void 0):$i(j.updateSetAccessorDeclaration(me,Pe(me),me.name,Ai(me,Rf(me,2)),void 0));case 172:return Xr(me.name)?$i(void 0):$i(j.updatePropertyDeclaration(me,Pe(me),me.name,me.questionToken,ji(me,me.type),Ni(me)));case 171:return Xr(me.name)?$i(void 0):$i(j.updatePropertySignature(me,Pe(me),me.name,me.questionToken,ji(me,me.type)));case 173:return Xr(me.name)?$i(void 0):$i(j.updateMethodSignature(me,Pe(me),me.name,me.questionToken,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type)));case 179:return $i(j.updateCallSignature(me,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type)));case 181:return $i(j.updateIndexSignature(me,Pe(me),Pi(me,me.parameters),yt(me.type,Cn,Qr)||j.createKeywordTypeNode(133)));case 260:return So(me.name)?bo(me.name):(Ei=!0,M=!0,$i(j.updateVariableDeclaration(me,me.name,void 0,ji(me,me.type),Ni(me))));case 168:return tu(me)&&(me.default||me.constraint)?$i(j.updateTypeParameterDeclaration(me,me.modifiers,me.name,void 0,void 0)):$i(rn(me,Cn,t));case 194:{const Qi=yt(me.checkType,Cn,Qr),on=yt(me.extendsType,Cn,Qr),le=b;b=me.trueType;const te=yt(me.trueType,Cn,Qr);b=le;const we=yt(me.falseType,Cn,Qr);return H.assert(Qi),H.assert(on),H.assert(te),H.assert(we),$i(j.updateConditionalTypeNode(me,Qi,on,te,we))}case 184:return $i(j.updateFunctionTypeNode(me,kn(me.typeParameters,Cn,Bl),Pi(me,me.parameters),H.checkDefined(yt(me.type,Cn,Qr))));case 185:return $i(j.updateConstructorTypeNode(me,Pe(me),kn(me.typeParameters,Cn,Bl),Pi(me,me.parameters),H.checkDefined(yt(me.type,Cn,Qr))));case 205:return zx(me)?(xe(me),$i(j.updateImportTypeNode(me,j.updateLiteralTypeNode(me.argument,bt(me,me.argument.literal)),me.attributes,me.qualifier,kn(me.typeArguments,Cn,Qr),me.isTypeOf))):$i(me);default:H.assertNever(me,`Attempted to process unhandled node kind: ${H.formatSyntaxKind(me.kind)}`)}return yB(me)&&s0(se,me.pos).line===s0(se,me.end).line&&Zn(me,1),$i(rn(me,Cn,t));function $i(Qi){return Qi&&mt&&Ix(me)&&Et(me),aa(me)&&(b=ni),mt&&!M&&(s=vi),Ei&&(M=Ot),Qi===me?Qi:Qi&&su(Ba(Qi,me),me)}}function tu(me){return me.parent.kind===174&&Rf(me.parent,2)}function oa(me){if(!QMt(me)||Mt(me))return;switch(me.kind){case 278:return la(me.parent)&&(p=!0),v=!0,xe(me),j.updateExportDeclaration(me,me.modifiers,me.isTypeOnly,me.exportClause,bt(me,me.moduleSpecifier),Si(me.attributes));case 277:{if(la(me.parent)&&(p=!0),v=!0,me.expression.kind===80)return me;{const vi=j.createUniqueName("_default",16);s=()=>({diagnosticMessage:F.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:me}),oe=me;const mt=j.createVariableDeclaration(vi,void 0,ne.createTypeOfExpression(me.expression,me,Tk,K),void 0);oe=void 0;const Ot=j.createVariableStatement(d?[j.createModifier(138)]:[],j.createVariableDeclarationList([mt],2));return Ba(Ot,me),EV(me),[Ot,j.updateExportAssignment(me,me.modifiers,vi)]}}}const ni=Ta(me);return T.set(M1(me),ni),me}function Da(me){if(E1(me)||Rf(me,2048)||!Hp(me))return me;const ni=j.createModifiersFromModifierFlags(Eh(me)&131039);return j.replaceModifiers(me,ni)}function ua(me,ni,vi,mt){const Ot=j.updateModuleDeclaration(me,ni,vi,mt);if(N1(Ot)||Ot.flags&32)return Ot;const Ei=j.createModuleDeclaration(Ot.modifiers,Ot.name,Ot.body,Ot.flags|32);return su(Ei,Ot),Pt(Ei,Ot),Ei}function Ta(me){if(k)for(;gO(k,me););if(Mt(me))return;switch(me.kind){case 271:{const $i=jn(me);return $i&&xe(me),$i}case 272:{const $i=Ln(me);return $i&&xe(me),$i}}if(Q1(me)&&xn(me)||Co(me)&&ne.isImplementationOfOverload(me))return;let ni;aa(me)&&(ni=b,b=me);const vi=mQ(me),mt=s;vi&&(s=h5(me));const Ot=d;switch(me.kind){case 265:{d=!1;const $i=Ei(j.updateTypeAliasDeclaration(me,Pe(me),me.name,kn(me.typeParameters,Cn,Bl),H.checkDefined(yt(me.type,Cn,Qr))));return d=Ot,$i}case 264:return Ei(j.updateInterfaceDeclaration(me,Pe(me),me.name,Zu(me,me.typeParameters),ii(me.heritageClauses),kn(me.members,Cn,Zy)));case 262:{const $i=Ei(j.updateFunctionDeclaration(me,Pe(me),void 0,me.name,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type),void 0));if($i&&ne.isExpandoFunctionDeclaration(me)&&Jn(me)){const Qi=ne.getPropertiesOfContainerFunction(me),on=a_.createModuleDeclaration(void 0,$i.name||j.createIdentifier("_default"),j.createModuleBlock([]),32);ks(on,b),on.locals=Vo(Qi),on.symbol=Qi[0].parent;const le=[];let te=qi(Qi,Ct=>{if(!EZ(Ct.valueDeclaration))return;const ct=Yr(Ct.escapedName);if(!Lm(ct,99))return;s=h5(Ct.valueDeclaration);const Qt=ne.createTypeOfDeclaration(Ct.valueDeclaration,on,Tk,K);s=mt;const Li=m7(ct),Ui=Li?j.getGeneratedNameForNode(Ct.valueDeclaration):j.createIdentifier(ct);Li&&le.push([Ui,ct]);const Sn=j.createVariableDeclaration(Ui,void 0,Qt,void 0);return j.createVariableStatement(Li?void 0:[j.createToken(95)],j.createVariableDeclarationList([Sn]))});le.length?te.push(j.createExportDeclaration(void 0,!1,j.createNamedExports(Vt(le,([Ct,ct])=>j.createExportSpecifier(!1,Ct,ct))))):te=qi(te,Ct=>j.replaceModifiers(Ct,0));const we=j.createModuleDeclaration(Pe(me),me.name,j.createModuleBlock(te),32);if(!Rf($i,2048))return[$i,we];const de=j.createModifiersFromModifierFlags(Eh($i)&-2081|128),je=j.updateFunctionDeclaration($i,de,void 0,$i.name,$i.typeParameters,$i.parameters,$i.type,void 0),X=j.updateModuleDeclaration(we,de,we.name,we.body),it=j.createExportAssignment(void 0,!1,we.name);return la(me.parent)&&(p=!0),v=!0,[je,X,it]}else return $i}case 267:{d=!1;const $i=me.body;if($i&&$i.kind===268){const Qi=E,on=v;v=!1,E=!1;const le=kn($i.statements,oa,ia);let te=Dn(le);me.flags&33554432&&(E=!1),!Yg(me)&&!Xt(te)&&!v&&(E?te=j.createNodeArray([...te,NV(j)]):te=kn(te,Da,ia));const we=j.updateModuleBlock($i,te);d=Ot,E=Qi,v=on;const de=Pe(me);return Ei(ua(me,de,v2(me)?bt(me,me.name):me.name,we))}else{d=Ot;const Qi=Pe(me);d=!1,yt($i,oa);const on=M1($i),le=T.get(on);return T.delete(on),Ei(ua(me,Qi,me.name,le))}}case 263:{Y=me.name,oe=me;const $i=j.createNodeArray(Pe(me)),Qi=Zu(me,me.typeParameters),on=X_(me);let le;if(on){const it=s;le=Dr(ju(on.parameters,Ct=>{if(!Yu(Ct,31)||Mt(Ct))return;if(s=h5(Ct),Ct.name.kind===80)return Ba(j.createPropertyDeclaration(Pe(Ct),Ct.name,Ct.questionToken,ji(Ct,Ct.type),Ni(Ct)),Ct);return ct(Ct.name);function ct(Qt){let Li;for(const Ui of Qt.elements)Fd(Ui)||(So(Ui.name)&&(Li=Hi(Li,ct(Ui.name))),Li=Li||[],Li.push(j.createPropertyDeclaration(Pe(Ct),Ui.name,void 0,ji(Ui,void 0),void 0)));return Li}})),s=it}const we=Oe(me.members,it=>!!it.name&&Xr(it.name))?[j.createPropertyDeclaration(void 0,j.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,de=Hi(Hi(we,le),kn(me.members,Cn,Zd)),je=j.createNodeArray(de),X=Qg(me);if(X&&!ec(X.expression)&&X.expression.kind!==106){const it=me.name?Yr(me.name.escapedText):"default",Ct=j.createUniqueName(`${it}_base`,16);s=()=>({diagnosticMessage:F.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:X,typeName:me.name});const ct=j.createVariableDeclaration(Ct,void 0,ne.createTypeOfExpression(X.expression,me,Tk,K),void 0),Qt=j.createVariableStatement(d?[j.createModifier(138)]:[],j.createVariableDeclarationList([ct],2)),Li=j.createNodeArray(Vt(me.heritageClauses,Ui=>{if(Ui.token===96){const Sn=s;s=h5(Ui.types[0]);const du=j.updateHeritageClause(Ui,Vt(Ui.types,Ru=>j.updateExpressionWithTypeArguments(Ru,Ct,kn(Ru.typeArguments,Cn,Qr))));return s=Sn,du}return j.updateHeritageClause(Ui,kn(j.createNodeArray(ti(Ui.types,Sn=>ec(Sn.expression)||Sn.expression.kind===106)),Cn,c5))}));return[Qt,Ei(j.updateClassDeclaration(me,$i,me.name,Qi,Li,je))]}else{const it=ii(me.heritageClauses);return Ei(j.updateClassDeclaration(me,$i,me.name,Qi,it,je))}}case 243:return Ei(Yo(me));case 266:return Ei(j.updateEnumDeclaration(me,j.createNodeArray(Pe(me)),me.name,j.createNodeArray(qi(me.members,$i=>{if(Mt($i))return;const Qi=ne.getConstantValue($i);return Ba(j.updateEnumMember($i,$i.name,Qi!==void 0?typeof Qi=="string"?j.createStringLiteral(Qi):j.createNumericLiteral(Qi):void 0),$i)}))))}return H.assertNever(me,`Unhandled top-level node in declaration emit: ${H.formatSyntaxKind(me.kind)}`);function Ei($i){return aa(me)&&(b=ni),vi&&(s=mt),me.kind===267&&(d=Ot),$i===me?$i:(oe=void 0,Y=void 0,$i&&su(Ba($i,me),me))}}function Yo(me){if(!L(me.declarationList.declarations,an))return;const ni=kn(me.declarationList.declarations,Cn,na);if(!S(ni))return;const vi=j.createNodeArray(Pe(me));let mt;return cj(me.declarationList)||lj(me.declarationList)?(mt=j.createVariableDeclarationList(ni,2),su(mt,me.declarationList),Pt(mt,me.declarationList),Bc(mt,me.declarationList)):mt=j.updateVariableDeclarationList(me.declarationList,ni),j.updateVariableStatement(me,vi,mt)}function bo(me){return Va(qi(me.elements,ni=>Qe(ni)))}function Qe(me){if(me.kind!==232&&me.name)return an(me)?So(me.name)?bo(me.name):j.createVariableDeclaration(me.name,void 0,ji(me,void 0),void 0):void 0}function Et(me){let ni;M||(ni=s,s=k7e(me)),Y=me.name,H.assert(ne.isLateBound(Ua(me)));const mt=me.name.expression;yr(mt,b),M||(s=ni),Y=void 0}function Mt(me){return!!Ne&&!!me&&o1e(me,se)}function qt(me){return tc(me)||Gc(me)}function Xt(me){return Oe(me,qt)}function Pe(me){const ni=Eh(me),vi=et(me);return ni===vi?dH(me.modifiers,mt=>ur(mt,Qo),Qo):j.createModifiersFromModifierFlags(vi)}function et(me){let ni=130030,vi=d&&!qMt(me)?128:0;const mt=me.parent.kind===312;return(!mt||f&&mt&&wc(me.parent))&&(ni^=128,vi=0),Uet(me,ni,vi)}function gt(me,ni){let vi=A7e(me);return!vi&&me!==ni.firstAccessor&&(vi=A7e(ni.firstAccessor),s=h5(ni.firstAccessor)),!vi&&ni.secondAccessor&&me!==ni.secondAccessor&&(vi=A7e(ni.secondAccessor),s=h5(ni.secondAccessor)),vi}function ii(me){return j.createNodeArray(ti(Vt(me,ni=>j.updateHeritageClause(ni,kn(j.createNodeArray(ti(ni.types,vi=>ec(vi.expression)||ni.token===96&&vi.expression.kind===106)),Cn,c5))),ni=>ni.types&&!!ni.types.length))}}function qMt(t){return t.kind===264}function ZMt(t,u,s,d){return t.createModifiersFromModifierFlags(Uet(u,s,d))}function Uet(t,u=131070,s=0){let d=Eh(t)&u|s;return d&2048&&!(d&32)&&(d^=32),d&2048&&d&128&&(d^=128),d}function A7e(t){if(t)return t.kind===177?t.type:t.parameters.length>0?t.parameters[0].type:void 0}function YMt(t){switch(t.kind){case 172:case 171:return!Rf(t,2);case 169:case 260:return!0}return!1}function QMt(t){switch(t.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function XMt(t){switch(t.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var Tk,ezt=o({"src/compiler/transformers/declarations.ts"(){Bo(),NAe(),Tk=531469}});function tzt(t){switch(t){case 99:case 7:case 6:case 5:return a1e;case 4:return b7e;case 100:case 199:return y7e;default:return r1e}}function l1e(t,u,s){return{scriptTransformers:izt(t,u,s),declarationTransformers:nzt(u)}}function izt(t,u,s){if(s)return _t;const d=Os(t),f=m1(t),p=eV(t),E=[];return yn(E,u&&Vt(u.before,Zet)),E.push(u7e),t.experimentalDecorators&&E.push(o7e),iZ(t)&&E.push(_7e),d<99&&E.push(m7e),!t.experimentalDecorators&&(d<99||!p)&&E.push(s7e),E.push(r7e),d<8&&E.push(f7e),d<7&&E.push(h7e),d<6&&E.push(d7e),d<5&&E.push(c7e),d<4&&E.push(l7e),d<3&&E.push(D7e),d<2&&(E.push(x7e),E.push(C7e)),E.push(tzt(f)),d<1&&E.push(v7e),yn(E,u&&Vt(u.after,Zet)),E}function nzt(t){const u=[];return u.push(s1e),yn(u,t&&Vt(t.afterDeclarations,rzt)),u}function uzt(t){return u=>kce(u)?t.transformBundle(u):t.transformSourceFile(u)}function qet(t,u){return s=>{const d=t(s);return typeof d=="function"?u(s,d):uzt(d)}}function Zet(t){return qet(t,Kp)}function rzt(t){return qet(t,(u,s)=>s)}function xM(t,u){return u}function mH(t,u,s){s(t,u)}function pH(t,u,s,d,f,p,E){var v,b;const B=new Array(363);let k,T,M,z=0,j=[],J=[],K=[],Y=[],oe=0,se=!1,ge=[],ae=0,Ce,ne,ve=xM,Se=mH,Ne=0;const pe=[],fe={factory:s,getCompilerOptions:()=>d,getEmitResolver:()=>t,getEmitHost:()=>u,getEmitHelperFactory:Mh(()=>$ke(fe)),startLexicalEnvironment:Ie,suspendLexicalEnvironment:st,resumeLexicalEnvironment:St,endLexicalEnvironment:It,setLexicalEnvironmentFlags:ei,getLexicalEnvironmentFlags:ht,hoistVariableDeclaration:We,hoistFunctionDeclaration:Gt,addInitializationStatement:Yt,startBlockScope:Ut,endBlockScope:Ni,addBlockScopedVariable:ji,requestEmitHelper:xn,readEmitHelpers:Jn,enableSubstitution:De,enableEmitNotification:ft,isSubstitutionEnabled:Ke,isEmitNotificationEnabled:Ye,get onSubstituteNode(){return ve},set onSubstituteNode(Pi){H.assert(Ne<1,"Cannot modify transformation hooks after initialization has completed."),H.assert(Pi!==void 0,"Value must not be 'undefined'"),ve=Pi},get onEmitNode(){return Se},set onEmitNode(Pi){H.assert(Ne<1,"Cannot modify transformation hooks after initialization has completed."),H.assert(Pi!==void 0,"Value must not be 'undefined'"),Se=Pi},addDiagnostic(Pi){pe.push(Pi)}};for(const Pi of f)oce(zn(Ua(Pi)));ul("beforeTransform");const xe=p.map(Pi=>Pi(fe)),Be=Pi=>{for(const Ai of xe)Pi=Ai(Pi);return Pi};Ne=1;const Ge=[];for(const Pi of f)(v=Gn)==null||v.push(Gn.Phase.Emit,"transformNodes",Pi.kind===312?{path:Pi.path}:{kind:Pi.kind,pos:Pi.pos,end:Pi.end}),Ge.push((E?Be:Ae)(Pi)),(b=Gn)==null||b.pop();return Ne=2,ul("afterTransform"),Tm("transformTime","beforeTransform","afterTransform"),{transformed:Ge,substituteNode:Je,emitNodeWithNotification:Ve,isEmitNotificationEnabled:Ye,dispose:an,diagnostics:pe};function Ae(Pi){return Pi&&(!la(Pi)||!Pi.isDeclarationFile)?Be(Pi):Pi}function De(Pi){H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),B[Pi]|=1}function Ke(Pi){return(B[Pi.kind]&1)!==0&&(bs(Pi)&8)===0}function Je(Pi,Ai){return H.assert(Ne<3,"Cannot substitute a node after the result is disposed."),Ai&&Ke(Ai)&&ve(Pi,Ai)||Ai}function ft(Pi){H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),B[Pi]|=2}function Ye(Pi){return(B[Pi.kind]&2)!==0||(bs(Pi)&4)!==0}function Ve(Pi,Ai,Zu){H.assert(Ne<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Ai&&(Ye(Ai)?Se(Pi,Ai,Zu):Zu(Pi,Ai))}function We(Pi){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed.");const Ai=Zn(s.createVariableDeclaration(Pi),128);k?k.push(Ai):k=[Ai],z&1&&(z|=2)}function Gt(Pi){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),Zn(Pi,2097152),T?T.push(Pi):T=[Pi]}function Yt(Pi){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),Zn(Pi,2097152),M?M.push(Pi):M=[Pi]}function Ie(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is suspended."),j[oe]=k,J[oe]=T,K[oe]=M,Y[oe]=z,oe++,k=void 0,T=void 0,M=void 0,z=0}function st(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is already suspended."),se=!0}function St(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(se,"Lexical environment is not suspended."),se=!1}function It(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is suspended.");let Pi;if(k||T||M){if(T&&(Pi=[...T]),k){const Ai=s.createVariableStatement(void 0,s.createVariableDeclarationList(k));Zn(Ai,2097152),Pi?Pi.push(Ai):Pi=[Ai]}M&&(Pi?Pi=[...Pi,...M]:Pi=[...M])}return oe--,k=j[oe],T=J[oe],M=K[oe],z=Y[oe],oe===0&&(j=[],J=[],K=[],Y=[]),Pi}function ei(Pi,Ai){z=Ai?z|Pi:z&~Pi}function ht(){return z}function Ut(){H.assert(Ne>0,"Cannot start a block scope during initialization."),H.assert(Ne<2,"Cannot start a block scope after transformation has completed."),ge[ae]=Ce,ae++,Ce=void 0}function Ni(){H.assert(Ne>0,"Cannot end a block scope during initialization."),H.assert(Ne<2,"Cannot end a block scope after transformation has completed.");const Pi=Oe(Ce)?[s.createVariableStatement(void 0,s.createVariableDeclarationList(Ce.map(Ai=>s.createVariableDeclaration(Ai)),1))]:void 0;return ae--,Ce=ge[ae],ae===0&&(ge=[]),Pi}function ji(Pi){H.assert(ae>0,"Cannot add a block scoped variable outside of an iteration body."),(Ce||(Ce=[])).push(Pi)}function xn(Pi){if(H.assert(Ne>0,"Cannot modify the transformation context during initialization."),H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),H.assert(!Pi.scoped,"Cannot request a scoped emit helper."),Pi.dependencies)for(const Ai of Pi.dependencies)xn(Ai);ne=xi(ne,Pi)}function Jn(){H.assert(Ne>0,"Cannot modify the transformation context during initialization."),H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed.");const Pi=ne;return ne=void 0,Pi}function an(){if(Ne<3){for(const Pi of f)oce(zn(Ua(Pi)));k=void 0,j=void 0,T=void 0,J=void 0,ve=void 0,Se=void 0,ne=void 0,Ne=3}}}var c1e,Dg,azt=o({"src/compiler/transformer.ts"(){Bo(),Wy(),c1e={scriptTransformers:_t,declarationTransformers:_t},Dg={factory:q,getCompilerOptions:()=>({}),getEmitResolver:ho,getEmitHost:ho,getEmitHelperFactory:ho,startLexicalEnvironment:Is,resumeLexicalEnvironment:Is,suspendLexicalEnvironment:Is,endLexicalEnvironment:hv,setLexicalEnvironmentFlags:Is,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Is,hoistFunctionDeclaration:Is,addInitializationStatement:Is,startBlockScope:Is,endBlockScope:hv,addBlockScopedVariable:Is,requestEmitHelper:Is,readEmitHelpers:ho,enableSubstitution:Is,enableEmitNotification:Is,isSubstitutionEnabled:ho,isEmitNotificationEnabled:ho,onSubstituteNode:xM,onEmitNode:mH,addDiagnostic:Is}}});function S7e(t){return Ml(t,".tsbuildinfo")}function d1e(t,u,s,d=!1,f,p){const E=Ha(s)?s:ile(t,s,d),v=t.getCompilerOptions();if(y0(v)){const b=t.getPrependNodes();if(E.length||b.length){const B=q.createBundle(E,b),k=u(CM(B,t,d),B);if(k)return k}}else{if(!f)for(const b of E){const B=u(CM(b,t,d),b);if(B)return B}if(p){const b=f5(v);if(b)return u({buildInfoPath:b},void 0)}}}function f5(t){const u=t.configFilePath;if(!Xj(t))return;if(t.tsBuildInfoFile)return t.tsBuildInfoFile;const s=y0(t);let d;if(s)d=_h(s);else{if(!u)return;const f=_h(u);d=t.outDir?t.rootDir?kx(t.outDir,JE(t.rootDir,f,!0)):cr(t.outDir,Ac(f)):f}return d+".tsbuildinfo"}function vM(t,u){const s=y0(t),d=t.emitDeclarationOnly?void 0:s,f=d&&Yet(d,t),p=u||c4(t)?_h(s)+".d.ts":void 0,E=p&&Xq(t)?p+".map":void 0,v=f5(t);return{jsFilePath:d,sourceMapFilePath:f,declarationFilePath:p,declarationMapPath:E,buildInfoPath:v}}function CM(t,u,s){const d=u.getCompilerOptions();if(t.kind===313)return vM(d,s);{const f=_ye(t.fileName,u,pQ(t.fileName,d)),p=W4(t),E=p&&pv(t.fileName,f,u.getCurrentDirectory(),!u.useCaseSensitiveFileNames())===0,v=d.emitDeclarationOnly||E?void 0:f,b=!v||W4(t)?void 0:Yet(v,d),B=s||c4(d)&&!p?Dye(t.fileName,u):void 0,k=B&&Xq(d)?B+".map":void 0;return{jsFilePath:v,sourceMapFilePath:b,declarationFilePath:B,declarationMapPath:k,buildInfoPath:void 0}}}function Yet(t,u){return u.sourceMap&&!u.inlineSourceMap?t+".map":void 0}function pQ(t,u){return Ml(t,".json")?".json":u.jsx===1&&jc(t,[".jsx",".tsx"])?".jsx":jc(t,[".mts",".mjs"])?".mjs":jc(t,[".cts",".cjs"])?".cjs":".js"}function Qet(t,u,s,d,f){return d?kx(d,JE(f?f():kM(u,s),t,s)):t}function bM(t,u,s,d){return wv(Qet(t,u,s,u.options.declarationDir||u.options.outDir,d),Kj(t))}function Xet(t,u,s,d){if(u.options.emitDeclarationOnly)return;const f=Ml(t,".json"),p=wv(Qet(t,u,s,u.options.outDir,d),pQ(t,u.options));return!f||pv(t,p,H.checkDefined(u.options.configFilePath),s)!==0?p:void 0}function ett(){let t;return{addOutput:u,getOutputs:s};function u(d){d&&(t||(t=[])).push(d)}function s(){return t||_t}}function ttt(t,u){const{jsFilePath:s,sourceMapFilePath:d,declarationFilePath:f,declarationMapPath:p,buildInfoPath:E}=vM(t.options,!1);u(s),u(d),u(f),u(p),u(E)}function itt(t,u,s,d,f){if(e1(u))return;const p=Xet(u,t,s,f);if(d(p),!Ml(u,".json")&&(p&&t.options.sourceMap&&d(`${p}.map`),c4(t.options))){const E=bM(u,t,s,f);d(E),t.options.declarationMap&&d(`${E}.map`)}}function yM(t,u,s,d,f){let p;return t.rootDir?(p=$a(t.rootDir,s),f==null||f(t.rootDir)):t.composite&&t.configFilePath?(p=lr(q1(t.configFilePath)),f==null||f(p)):p=P7e(u(),s,d),p&&p[p.length-1]!==rl&&(p+=rl),p}function kM({options:t,fileNames:u},s){return yM(t,()=>ti(u,d=>!(t.noEmitForJsFiles&&jc(d,_B))&&!e1(d)),lr(q1(H.checkDefined(t.configFilePath))),L1(!s))}function gQ(t,u){const{addOutput:s,getOutputs:d}=ett();if(y0(t.options))ttt(t,s);else{const f=Mh(()=>kM(t,u));for(const p of t.fileNames)itt(t,p,u,s,f);s(f5(t.options))}return d()}function ntt(t,u,s){u=$o(u),H.assert(kt(t.fileNames,u),"Expected fileName to be present in command line");const{addOutput:d,getOutputs:f}=ett();return y0(t.options)?ttt(t,d):itt(t,u,s,d),f()}function h1e(t,u){if(y0(t.options)){const{jsFilePath:f,declarationFilePath:p}=vM(t.options,!1);return H.checkDefined(f||p,`project ${t.options.configFilePath} expected to have at least one output`)}const s=Mh(()=>kM(t,u));for(const f of t.fileNames){if(e1(f))continue;const p=Xet(f,t,u,s);if(p)return p;if(!Ml(f,".json")&&c4(t.options))return bM(f,t,u,s)}const d=f5(t.options);return d||H.fail(`project ${t.options.configFilePath} expected to have at least one output`)}function EQ(t,u,s,{scriptTransformers:d,declarationTransformers:f},p,E,v){var b=u.getCompilerOptions(),B=b.sourceMap||b.inlineSourceMap||Xq(b)?[]:void 0,k=b.listEmittedFiles?[]:void 0,T=rB(),M=a5(b),z=Vj(M),{enter:j,exit:J}=Doe("printTime","beforePrint","afterPrint"),K,Y=!1;return j(),d1e(u,oe,ile(u,s,v),v,E,!s),J(),{emitSkipped:Y,diagnostics:T.getDiagnostics(),emittedFiles:k,sourceMaps:B};function oe({jsFilePath:fe,sourceMapFilePath:xe,declarationFilePath:Be,declarationMapPath:Ge,buildInfoPath:Ae},De){var Ke,Je,ft,Ye,Ve,We;let Gt;Ae&&De&&kce(De)&&(Gt=lr($a(Ae,u.getCurrentDirectory())),K={commonSourceDirectory:Yt(u.getCommonSourceDirectory()),sourceFiles:De.sourceFiles.map(Ie=>Yt($a(Ie.fileName,u.getCurrentDirectory())))}),(Ke=Gn)==null||Ke.push(Gn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:fe}),ge(De,fe,xe,Yt),(Je=Gn)==null||Je.pop(),(ft=Gn)==null||ft.push(Gn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:Be}),ae(De,Be,Ge,Yt),(Ye=Gn)==null||Ye.pop(),(Ve=Gn)==null||Ve.push(Gn.Phase.Emit,"emitBuildInfo",{buildInfoPath:Ae}),se(K,Ae),(We=Gn)==null||We.pop(),!Y&&k&&(p||(fe&&k.push(fe),xe&&k.push(xe),Ae&&k.push(Ae)),p!==0&&(Be&&k.push(Be),Ge&&k.push(Ge)));function Yt(Ie){return h2(JE(Gt,Ie,u.getCanonicalFileName))}}function se(fe,xe){if(!xe||s||Y)return;if(u.isEmitBlocked(xe)){Y=!0;return}const Be=u.getBuildInfo(fe)||gH(void 0,fe);cP(u,T,xe,B7e(Be),!1,void 0,{buildInfo:Be})}function ge(fe,xe,Be,Ge){if(!fe||p||!xe)return;if(u.isEmitBlocked(xe)||b.noEmit){Y=!0;return}const Ae=pH(t,u,q,b,[fe],d,!1),De={removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:b.noEmitHelpers,module:b.module,target:b.target,sourceMap:b.sourceMap,inlineSourceMap:b.inlineSourceMap,inlineSources:b.inlineSources,extendedDiagnostics:b.extendedDiagnostics,writeBundleFileInfo:!!K,relativeToBuildInfo:Ge},Ke=Gv(De,{hasGlobalName:t.hasGlobalName,onEmitNode:Ae.emitNodeWithNotification,isEmitNotificationEnabled:Ae.isEmitNotificationEnabled,substituteNode:Ae.substituteNode});H.assert(Ae.transformed.length===1,"Should only see one output from the transform"),ne(xe,Be,Ae,Ke,b),Ae.dispose(),K&&(K.js=Ke.bundleFileInfo)}function ae(fe,xe,Be,Ge){if(!fe||p===0)return;if(!xe){(p||b.emitDeclarationOnly)&&(Y=!0);return}const Ae=la(fe)?[fe]:fe.sourceFiles,De=v?Ae:ti(Ae,T0e),Ke=y0(b)?[q.createBundle(De,la(fe)?void 0:fe.prepends)]:De;p&&!c4(b)&&De.forEach(Ce);const Je=pH(t,u,q,b,Ke,f,!1);if(S(Je.diagnostics))for(const We of Je.diagnostics)T.add(We);const ft={removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:!0,module:b.module,target:b.target,sourceMap:!v&&b.declarationMap,inlineSourceMap:b.inlineSourceMap,extendedDiagnostics:b.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!K,recordInternalSection:!!K,relativeToBuildInfo:Ge},Ye=Gv(ft,{hasGlobalName:t.hasGlobalName,onEmitNode:Je.emitNodeWithNotification,isEmitNotificationEnabled:Je.isEmitNotificationEnabled,substituteNode:Je.substituteNode}),Ve=!!Je.diagnostics&&!!Je.diagnostics.length||!!u.isEmitBlocked(xe)||!!b.noEmit;Y=Y||Ve,(!Ve||v)&&(H.assert(Je.transformed.length===1,"Should only see one output from the decl transform"),ne(xe,Be,Je,Ye,{sourceMap:ft.sourceMap,sourceRoot:b.sourceRoot,mapRoot:b.mapRoot,extendedDiagnostics:b.extendedDiagnostics})),Je.dispose(),K&&(K.dts=Ye.bundleFileInfo)}function Ce(fe){if(tc(fe)){fe.expression.kind===80&&t.collectLinkedAliases(fe.expression,!0);return}else if(eh(fe)){t.collectLinkedAliases(fe.propertyName||fe.name,!0);return}ao(fe,Ce)}function ne(fe,xe,Be,Ge,Ae){const De=Be.transformed[0],Ke=De.kind===313?De:void 0,Je=De.kind===312?De:void 0,ft=Ke?Ke.sourceFiles:[Je];let Ye;ve(Ae,De)&&(Ye=jAe(u,Ac(q1(fe)),Se(Ae),Ne(Ae,fe,Je),Ae)),Ke?Ge.writeBundle(Ke,z,Ye):Ge.writeFile(Je,z,Ye);let Ve;if(Ye){B&&B.push({inputSourceFileNames:Ye.getSources(),sourceMap:Ye.toJSON()});const Gt=pe(Ae,Ye,fe,xe,Je);if(Gt&&(z.isAtStartOfLine()||z.rawWrite(M),Ve=z.getTextPos(),z.writeComment(`//# sourceMappingURL=${Gt}`)),xe){const Yt=Ye.toString();cP(u,T,xe,Yt,!1,ft),Ge.bundleFileInfo&&(Ge.bundleFileInfo.mapHash=Nk(Yt,u))}}else z.writeLine();const We=z.getText();cP(u,T,fe,We,!!b.emitBOM,ft,{sourceMapUrlPos:Ve,diagnostics:Be.diagnostics}),Ge.bundleFileInfo&&(Ge.bundleFileInfo.hash=Nk(We,u)),z.clear()}function ve(fe,xe){return(fe.sourceMap||fe.inlineSourceMap)&&(xe.kind!==312||!Ml(xe.fileName,".json"))}function Se(fe){const xe=q1(fe.sourceRoot||"");return xe&&zd(xe)}function Ne(fe,xe,Be){if(fe.sourceRoot)return u.getCommonSourceDirectory();if(fe.mapRoot){let Ge=q1(fe.mapRoot);return Be&&(Ge=lr(Iq(Be.fileName,u,Ge))),WE(Ge)===0&&(Ge=cr(u.getCommonSourceDirectory(),Ge)),Ge}return lr($o(xe))}function pe(fe,xe,Be,Ge,Ae){if(fe.inlineSourceMap){const Ke=xe.toString();return`data:application/json;base64,${Oye(c1,Ke)}`}const De=Ac(q1(H.checkDefined(Ge)));if(fe.mapRoot){let Ke=q1(fe.mapRoot);return Ae&&(Ke=lr(Iq(Ae.fileName,u,Ke))),WE(Ke)===0?(Ke=cr(u.getCommonSourceDirectory(),Ke),encodeURI(i7(lr($o(Be)),cr(Ke,De),u.getCurrentDirectory(),u.getCanonicalFileName,!0))):encodeURI(cr(Ke,De))}return encodeURI(De)}}function gH(t,u){return{bundle:u,program:t,version:_}}function B7e(t){return JSON.stringify(t)}function _Q(t,u){return hle(t,u)}function ozt(t,u,s){var d;const f=H.checkDefined(t.js),p=((d=f.sources)==null?void 0:d.prologues)&&lg(f.sources.prologues,E=>E.file);return t.sourceFiles.map((E,v)=>{const b=p==null?void 0:p.get(v),B=b==null?void 0:b.directives.map(M=>{const z=Pt(q.createStringLiteral(M.expression.text),M.expression),j=Pt(q.createExpressionStatement(z),M);return ks(z,j),j}),k=q.createToken(1),T=q.createSourceFile(B??[],k,0);return T.fileName=JE(s.getCurrentDirectory(),$a(E,u),!s.useCaseSensitiveFileNames()),T.text=(b==null?void 0:b.text)??"",wP(T,0,(b==null?void 0:b.text.length)??0),pB(T.statements,T),wP(k,T.end,0),ks(k,T),T})}function w7e(t,u,s,d){var f,p;(f=Gn)==null||f.push(Gn.Phase.Emit,"emitUsingBuildInfo",{},!0),ul("beforeEmit");const E=szt(t,u,s,d);return ul("afterEmit"),Tm("Emit","beforeEmit","afterEmit"),(p=Gn)==null||p.pop(),E}function szt(t,u,s,d){const{buildInfoPath:f,jsFilePath:p,sourceMapFilePath:E,declarationFilePath:v,declarationMapPath:b}=vM(t.options,!1),B=u.getBuildInfo(f,t.options.configFilePath);if(!B||!B.bundle||!B.bundle.js||v&&!B.bundle.dts)return f;const k=u.readFile(H.checkDefined(p));if(!k||Nk(k,u)!==B.bundle.js.hash)return p;const T=E&&u.readFile(E);if(E&&!T||t.options.inlineSourceMap)return E||"inline sourcemap decoding";if(E&&Nk(T,u)!==B.bundle.js.mapHash)return E;const M=v&&u.readFile(v);if(v&&!M||v&&Nk(M,u)!==B.bundle.dts.hash)return v;const z=b&&u.readFile(b);if(b&&!z||t.options.inlineSourceMap)return b||"inline sourcemap decoding";if(b&&Nk(z,u)!==B.bundle.dts.mapHash)return b;const j=lr($a(f,u.getCurrentDirectory())),J=rce(p,k,E,T,v,M,b,z,f,B,!0),K=[],Y=N1e(t.projectReferences,s,Ce=>u.readFile(Ce),u),oe=ozt(B.bundle,j,u);let se,ge;const ae={getPrependNodes:Mh(()=>[...Y,J]),getCanonicalFileName:u.getCanonicalFileName,getCommonSourceDirectory:()=>$a(B.bundle.commonSourceDirectory,j),getCompilerOptions:()=>t.options,getCurrentDirectory:()=>u.getCurrentDirectory(),getSourceFile:hv,getSourceFileByPath:hv,getSourceFiles:()=>oe,getLibFileFromReference:ho,isSourceFileFromExternalLibrary:cg,getResolvedProjectReferenceToRedirect:hv,getProjectReferenceRedirect:hv,isSourceOfProjectReferenceRedirect:cg,writeFile:(Ce,ne,ve,Se,Ne,pe)=>{switch(Ce){case p:if(k===ne)return;break;case E:if(T===ne)return;break;case f:break;case v:if(M===ne)return;se=ne,ge=pe;break;case b:if(z===ne)return;break;default:H.fail(`Unexpected path: ${Ce}`)}K.push({name:Ce,text:ne,writeByteOrderMark:ve,data:pe})},isEmitBlocked:cg,readFile:Ce=>u.readFile(Ce),fileExists:Ce=>u.fileExists(Ce),useCaseSensitiveFileNames:()=>u.useCaseSensitiveFileNames(),getBuildInfo:Ce=>{const ne=B.program;ne&&se!==void 0&&t.options.composite&&(ne.outSignature=Nk(se,u,ge));const{js:ve,dts:Se,sourceFiles:Ne}=B.bundle;return Ce.js.sources=ve.sources,Se&&(Ce.dts.sources=Se.sources),Ce.sourceFiles=Ne,gH(ne,Ce)},getSourceFileFromReference:hv,redirectTargetsMap:wm(),getFileIncludeReasons:ho,createHash:Lo(u,u.createHash)};return EQ(DQ,ae,void 0,l1e(t.options,d)),K}function Gv(t={},u={}){var{hasGlobalName:s,onEmitNode:d=mH,isEmitNotificationEnabled:f,substituteNode:p=xM,onBeforeEmitNode:E,onAfterEmitNode:v,onBeforeEmitNodeArray:b,onAfterEmitNodeArray:B,onBeforeEmitToken:k,onAfterEmitToken:T}=u,M=!!t.extendedDiagnostics,z=!!t.omitBraceSourceMapPositions,j=a5(t),J=m1(t),K=new Map,Y,oe,se,ge,ae,Ce,ne,ve,Se,Ne,pe,fe,xe,Be,Ge,Ae=t.preserveSourceNewlines,De,Ke,Je,ft=lz,Ye,Ve=t.writeBundleFileInfo?{sections:[]}:void 0,We=Ve?H.checkDefined(t.relativeToBuildInfo):void 0,Gt=t.recordInternalSection,Yt=0,Ie="text",st=!0,St,It,ei=-1,ht,Ut=-1,Ni=-1,ji=-1,xn=-1,Jn,an,Pi=!1,Ai=!!t.removeComments,Zu,aa,{enter:yr,exit:Ba}=Lqe(M,"commentTime","beforeComment","afterComment"),bt=q.parenthesizer,jn={select:R=>R===0?bt.parenthesizeLeadingTypeArgument:void 0},Ln=d3();return ni(),{printNode:Si,printList:Dn,printFile:tu,printBundle:Cn,writeNode:Da,writeList:ua,writeFile:Xt,writeBundle:Mt,bundleFileInfo:Ve};function Si(R,be,Ht){switch(R){case 0:H.assert(la(be),"Expected a SourceFile node.");break;case 2:H.assert(at(be),"Expected an Identifier node.");break;case 1:H.assert(Wt(be),"Expected an Expression node.");break}switch(be.kind){case 312:return tu(be);case 313:return Cn(be);case 314:return oa(be)}return Da(R,be,Ht,Pe()),et()}function Dn(R,be,Ht){return ua(R,be,Ht,Pe()),et()}function Cn(R){return Mt(R,Pe(),void 0),et()}function tu(R){return Xt(R,Pe(),void 0),et()}function oa(R){return qt(R,Pe()),et()}function Da(R,be,Ht,Oi){const yu=Ke;me(Oi,void 0),gt(R,be,Ht),ni(),Ke=yu}function ua(R,be,Ht,Oi){const yu=Ke;me(Oi,void 0),Ht&&ii(Ht),B0(void 0,be,R),ni(),Ke=yu}function Ta(){return Ke.getTextPosWithWriteLine?Ke.getTextPosWithWriteLine():Ke.getTextPos()}function Yo(R,be,Ht){const Oi=qu(Ve.sections);Oi&&Oi.kind===Ht?Oi.end=be:Ve.sections.push({pos:R,end:be,kind:Ht})}function bo(R){if(Gt&&Ve&&Y&&(Q1(R)||Jl(R))&&o1e(R,Y)&&Ie!=="internal"){const be=Ie;return Et(Ke.getTextPos()),Yt=Ta(),Ie="internal",be}}function Qe(R){R&&(Et(Ke.getTextPos()),Yt=Ta(),Ie=R)}function Et(R){return YtH.assert(qye(Ao))),Ve.sections.push({pos:Jr,end:Ke.getTextPos(),kind:"prepend",data:We(yu.fileName),texts:Ea}))}}Yt=Ta();for(const yu of R.sourceFiles)gt(0,yu,yu);if(Ve&&R.sourceFiles.length){const yu=Ke.getTextPos();if(Et(yu)){const Jr=Rw(R);Jr&&(Ve.sources||(Ve.sources={}),Ve.sources.prologues=Jr);const br=Li(R);br&&(Ve.sources||(Ve.sources={}),Ve.sources.helpers=br)}}ni(),Ke=Oi}function qt(R,be){const Ht=Ke;me(be,void 0),gt(4,R,void 0),ni(),Ke=Ht}function Xt(R,be,Ht){Ye=!0;const Oi=Ke;me(be,Ht),gb(R),B5(R),gt(0,R,R),ni(),Ke=Oi}function Pe(){return Je||(Je=Vj(j))}function et(){const R=Je.getText();return Je.clear(),R}function gt(R,be,Ht){Ht&&ii(Ht),le(R,be,void 0)}function ii(R){Y=R,Jn=void 0,an=void 0,R&&_C(R)}function me(R,be){R&&t.omitTrailingSemicolon&&(R=ele(R)),Ke=R,St=be,st=!Ke||!St}function ni(){oe=[],se=[],ge=[],ae=new Set,Ce=[],ne=new Map,ve=[],Se=0,Ne=[],pe=0,fe=[],xe=void 0,Be=[],Ge=void 0,Y=void 0,Jn=void 0,an=void 0,me(void 0,void 0)}function vi(){return Jn||(Jn=$3(H.checkDefined(Y)))}function mt(R,be){if(R===void 0)return;const Ht=bo(R);le(4,R,be),Qe(Ht)}function Ot(R){R!==void 0&&le(2,R,void 0)}function Ei(R,be){R!==void 0&&le(1,R,be)}function $i(R){le(us(R)?6:4,R)}function Qi(R){Ae&&Pp(R)&4&&(Ae=!1)}function on(R){Ae=R}function le(R,be,Ht){aa=Ht,de(0,R,be)(R,be),aa=void 0}function te(R){return!Ai&&!la(R)}function we(R){return!st&&!la(R)&&!Dq(R)&&!yk(R)&&!mFe(R)}function de(R,be,Ht){switch(R){case 0:if(d!==mH&&(!f||f(Ht)))return X;case 1:if(p!==xM&&(Zu=p(be,Ht)||Ht)!==Ht)return aa&&(Zu=aa(Zu)),Qt;case 2:if(te(Ht))return P9;case 3:if(we(Ht))return sF;case 4:return it;default:return H.assertNever(R)}}function je(R,be,Ht){return de(R+1,be,Ht)}function X(R,be){const Ht=je(0,R,be);d(R,be,Ht)}function it(R,be){if(E==null||E(be),Ae){const Ht=Ae;Qi(be),Ct(R,be),on(Ht)}else Ct(R,be);v==null||v(be),aa=void 0}function Ct(R,be,Ht=!0){if(Ht){const Oi=sce(be);if(Oi)return ja(R,be,Oi)}if(R===0)return tF(Po(be,la));if(R===2)return as(Po(be,at));if(R===6)return Ru(Po(be,us),!0);if(R===3)return ct(Po(be,Bl));if(R===5)return H.assertNode(be,Cce),ha(!0);if(R===4){switch(be.kind){case 16:case 17:case 18:return Ru(be,!1);case 80:return as(be);case 81:return wo(be);case 166:return Fn(be);case 167:return Ya(be);case 168:return c0(be);case 169:return Ul(be);case 170:return wl(be);case 171:return hd(be);case 172:return vl(be);case 173:return co(be);case 174:return Ho(be);case 175:return id(be);case 176:return Y0(be);case 177:case 178:return Ko(be);case 179:return Tc(be);case 180:return Jp(be);case 181:return Lc(be);case 182:return Ka(be);case 183:return Ri(be);case 184:return dl(be);case 185:return Cc(be);case 186:return $(be);case 187:return tt(be);case 188:return vt(be);case 189:return fn(be);case 190:return uu(be);case 192:return Tu(be);case 193:return Nr(be);case 194:return Vu(be);case 195:return Ss(be);case 196:return ic(be);case 233:return Di(be);case 197:return nd();case 198:return S0(be);case 199:return ud(be);case 200:return m0(be);case 201:return Bd(be);case 202:return Wu(be);case 203:return Oh(be);case 204:return Il(be);case 205:return uh(be);case 206:return h4(be);case 207:return D1(be);case 208:return He(be);case 239:return ki(be);case 240:return cl();case 241:return In(be);case 243:return ir(be);case 242:return ha(!1);case 244:return os(be);case 245:return ss(be);case 246:return x1(be);case 247:return fd(be);case 248:return $m(be);case 249:return _s(be);case 250:return np(be);case 251:return h3(be);case 252:return d_(be);case 253:return b5(be);case 254:return Xe(be);case 255:return Dt(be);case 256:return oi(be);case 257:return Ti(be);case 258:return Xi(be);case 259:return Rn(be);case 260:return tn(be);case 261:return bn(be);case 262:return kr(be);case 263:return eC(be);case 264:return cD(be);case 265:return i6(be);case 266:return Gk(be);case 267:return lb(be);case 268:return Jk(be);case 269:return $k(be);case 270:return qk(be);case 271:return az(be);case 272:return ww(be);case 273:return tC(be);case 274:return x9(be);case 280:return cb(be);case 275:return v9(be);case 276:return Tw(be);case 277:return Uk(be);case 278:return Lw(be);case 279:return db(be);case 281:return iC(be);case 300:return C9(be);case 301:return b9(be);case 282:return;case 283:return fE(be);case 12:return k5(be);case 286:case 289:return n6(be);case 287:case 290:return h_(be);case 291:return Jf(be);case 292:return p4(be);case 293:return Hh(be);case 294:return y9(be);case 295:return Yk(be);case 296:return uC(be);case 297:return Qk(be);case 298:return jd(be);case 299:return F5(be);case 303:return A5(be);case 304:return f3(be);case 305:return pt(be);case 306:return i1(be);case 307:return Xu(be);case 314:case 308:return pr(be);case 309:case 310:return ca(be);case 311:return Ku(be);case 312:return tF(be);case 313:return H.fail("Bundles should be printed using printBundle");case 315:return H.fail("InputFiles should not be printed");case 316:return p3(be);case 317:return S5(be);case 319:return ru("*");case 320:return ru("?");case 321:return Ch(be);case 322:return sf(be);case 323:return Q0(be);case 324:return Uc(be);case 191:case 325:return mi(be);case 326:return;case 327:return g4(be);case 329:return eF(be);case 330:return mb(be);case 334:case 339:case 344:return Xk(be);case 335:case 336:return aC(be);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Hs(be);case 346:return yg(be);case 348:case 355:return pb(be);case 347:case 349:case 350:case 351:case 356:case 357:return bh(be);case 352:return m3(be);case 353:return oz(be);case 354:return Mw(be);case 359:return}if(Wt(be)&&(R=1,p!==xM)){const Oi=p(R,be)||be;Oi!==be&&(be=Oi,aa&&(be=aa(be)))}}if(R===1)switch(be.kind){case 9:case 10:return du(be);case 11:case 14:case 15:return Ru(be,!1);case 80:return as(be);case 81:return wo(be);case 209:return di(be);case 210:return Mn(be);case 211:return ba(be);case 212:return To(be);case 213:return nc(be);case 214:return fc(be);case 215:return Cl(be);case 216:return Tl(be);case 217:return bc(be);case 218:return ql(be);case 219:return Nc(be);case 220:return Jm(be);case 221:return jh(be);case 222:return f4(be);case 223:return c3(be);case 224:return c_(be);case 225:return R1(be);case 226:return Ln(be);case 227:return Wf(be);case 228:return m4(be);case 229:return Vh(be);case 230:return Ee(be);case 231:return Bt(be);case 232:return;case 234:return Ci(be);case 235:return Q(be);case 233:return Di(be);case 238:return Me(be);case 236:return wt(be);case 237:return H.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Vs(be);case 285:return Zk(be);case 288:return Nw(be);case 358:return H.fail("SyntaxList should not be printed");case 359:return;case 360:return ar(be);case 361:return pE(be);case 362:return H.fail("SyntheticReferenceExpression should not be printed")}if(uf(be.kind))return B9(be,Ma);if(Jse(be.kind))return B9(be,ru);H.fail(`Unhandled SyntaxKind: ${H.formatSyntaxKind(be.kind)}.`)}function ct(R){mt(R.name),Un(),Ma("in"),Un(),mt(R.constraint)}function Qt(R,be){const Ht=je(1,R,be);H.assertIsDefined(Zu),be=Zu,Zu=void 0,Ht(R,be)}function Li(R){let be;if(J===0||t.noEmitHelpers)return;const Ht=new Map;for(const Oi of R.sourceFiles){const yu=zV(Oi)!==void 0,Jr=Sn(Oi);if(Jr)for(const br of Jr)!br.scoped&&!yu&&!Ht.get(br.name)&&(Ht.set(br.name,!0),(be||(be=[])).push(br.name))}return be}function Ui(R){let be=!1;const Ht=R.kind===313?R:void 0;if(Ht&&J===0)return;const Oi=Ht?Ht.prepends.length:0,yu=Ht?Ht.sourceFiles.length+Oi:1;for(let Jr=0;Jr"),Un(),mt(R.type),Ff(R)}function Uc(R){Ma("function"),w5(R,R.parameters),ru(":"),mt(R.type)}function Ch(R){ru("?"),mt(R.type)}function sf(R){ru("!"),mt(R.type)}function Q0(R){mt(R.type),ru("=")}function Cc(R){O1(R),dD(R,R.modifiers),Ma("new"),Un(),p_(R,R.typeParameters),w5(R,R.parameters),Un(),ru("=>"),Un(),mt(R.type),Ff(R)}function $(R){Ma("typeof"),Un(),mt(R.exprName),gE(R,R.typeArguments)}function tt(R){_4(0,void 0),ru("{");const be=bs(R)&1?768:32897;B0(R,R.members,be|524288),ru("}"),fC()}function vt(R){mt(R.elementType,bt.parenthesizeNonArrayTypeOfPostfixType),ru("["),ru("]")}function mi(R){ru("..."),mt(R.type)}function fn(R){ta(23,R.pos,ru,R);const be=bs(R)&1?528:657;B0(R,R.elements,be|524288,bt.parenthesizeElementTypeOfTupleType),ta(24,R.elements.end,ru,R)}function Wu(R){mt(R.dotDotDotToken),mt(R.name),mt(R.questionToken),ta(59,R.name.end,ru,R),Un(),mt(R.type)}function uu(R){mt(R.type,bt.parenthesizeTypeOfOptionalType),ru("?")}function Tu(R){B0(R,R.types,516,bt.parenthesizeConstituentTypeOfUnionType)}function Nr(R){B0(R,R.types,520,bt.parenthesizeConstituentTypeOfIntersectionType)}function Vu(R){mt(R.checkType,bt.parenthesizeCheckTypeOfConditionalType),Un(),Ma("extends"),Un(),mt(R.extendsType,bt.parenthesizeExtendsTypeOfConditionalType),Un(),ru("?"),Un(),mt(R.trueType),Un(),ru(":"),Un(),mt(R.falseType)}function Ss(R){Ma("infer"),Un(),mt(R.typeParameter)}function ic(R){ru("("),mt(R.type),ru(")")}function nd(){Ma("this")}function S0(R){hD(R.operator,Ma),Un();const be=R.operator===148?bt.parenthesizeOperandOfReadonlyTypeOperator:bt.parenthesizeOperandOfTypeOperator;mt(R.type,be)}function ud(R){mt(R.objectType,bt.parenthesizeNonArrayTypeOfPostfixType),ru("["),mt(R.indexType),ru("]")}function m0(R){const be=bs(R);ru("{"),be&1?Un():(wd(),_E()),R.readonlyToken&&(mt(R.readonlyToken),R.readonlyToken.kind!==148&&Ma("readonly"),Un()),ru("["),le(3,R.typeParameter),R.nameType&&(Un(),Ma("as"),Un(),mt(R.nameType)),ru("]"),R.questionToken&&(mt(R.questionToken),R.questionToken.kind!==58&&ru("?")),ru(":"),Un(),mt(R.type),v1(),be&1?Un():(wd(),DE()),B0(R,R.members,2),ru("}")}function Bd(R){Ei(R.literal)}function Oh(R){mt(R.head),B0(R,R.templateSpans,262144)}function uh(R){if(R.isTypeOf&&(Ma("typeof"),Un()),Ma("import"),ru("("),mt(R.argument),R.attributes){ru(","),Un(),ru("{"),Un(),Ma(R.attributes.token===132?"assert":"with"),ru(":"),Un();const be=R.attributes.elements;B0(R.attributes,be,526226),Un(),ru("}")}ru(")"),R.qualifier&&(ru("."),mt(R.qualifier)),gE(R,R.typeArguments)}function h4(R){ru("{"),B0(R,R.elements,525136),ru("}")}function D1(R){ru("["),B0(R,R.elements,524880),ru("]")}function He(R){mt(R.dotDotDotToken),R.propertyName&&(mt(R.propertyName),ru(":"),Un()),mt(R.name),g3(R.initializer,R.name.end,R,bt.parenthesizeExpressionForDisallowedComma)}function di(R){const be=R.elements,Ht=R.multiLine?65536:0;Eb(R,be,8914|Ht,bt.parenthesizeExpressionForDisallowedComma)}function Mn(R){_4(0,void 0),L(R.properties,aF);const be=bs(R)&131072;be&&_E();const Ht=R.multiLine?65536:0,Oi=Y&&Y.languageVersion>=1&&!W4(Y)?64:0;B0(R,R.properties,526226|Oi|Ht),be&&DE(),fC()}function ba(R){Ei(R.expression,bt.parenthesizeLeftSideOfAccess);const be=R.questionDotToken||t_(q.createToken(25),R.expression.end,R.name.pos),Ht=E4(R,R.expression,be),Oi=E4(R,be,R.name);_3(Ht,!1),be.kind!==29&&Fo(R.expression)&&!Ke.hasTrailingComment()&&!Ke.hasTrailingWhitespace()&&ru("."),R.questionDotToken?mt(be):ta(be.kind,R.expression.end,ru,R),_3(Oi,!1),mt(R.name),g_(Ht,Oi)}function Fo(R){if(R=Np(R),Of(R)){const be=T9(R,!0,!1);return!(R.numericLiteralFlags&448)&&!be.includes(Uo(25))&&!be.includes("E")&&!be.includes("e")}else if(I0(R)){const be=jke(R);return typeof be=="number"&&isFinite(be)&&be>=0&&Math.floor(be)===be}}function To(R){Ei(R.expression,bt.parenthesizeLeftSideOfAccess),mt(R.questionDotToken),ta(23,R.expression.end,ru,R),Ei(R.argumentExpression),ta(24,R.argumentExpression.end,ru,R)}function nc(R){const be=Pp(R)&16;be&&(ru("("),sC("0"),ru(","),Un()),Ei(R.expression,bt.parenthesizeLeftSideOfAccess),be&&ru(")"),mt(R.questionDotToken),gE(R,R.typeArguments),Eb(R,R.arguments,2576,bt.parenthesizeExpressionForDisallowedComma)}function fc(R){ta(105,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeExpressionOfNew),gE(R,R.typeArguments),Eb(R,R.arguments,18960,bt.parenthesizeExpressionForDisallowedComma)}function Cl(R){const be=Pp(R)&16;be&&(ru("("),sC("0"),ru(","),Un()),Ei(R.tag,bt.parenthesizeLeftSideOfAccess),be&&ru(")"),gE(R,R.typeArguments),Un(),Ei(R.template)}function Tl(R){ru("<"),mt(R.type),ru(">"),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function bc(R){const be=ta(21,R.pos,ru,R),Ht=w9(R.expression,R);Ei(R.expression,void 0),rF(R.expression,R),g_(Ht),ta(22,R.expression?R.expression.end:be,ru,R)}function ql(R){op(R.name),Cu(R)}function Nc(R){dD(R,R.modifiers),bu(R,ip)}function ip(R){p_(R,R.typeParameters),k9(R,R.parameters),f_(R.type),Un(),mt(R.equalsGreaterThanToken)}function Jm(R){ta(91,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function jh(R){ta(114,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function f4(R){ta(116,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function c3(R){ta(135,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function c_(R){hD(R.operator,lf),C5(R)&&Un(),Ei(R.operand,bt.parenthesizeOperandOfPrefixUnary)}function C5(R){const be=R.operand;return be.kind===224&&(R.operator===40&&(be.operator===40||be.operator===46)||R.operator===41&&(be.operator===41||be.operator===47))}function R1(R){Ei(R.operand,bt.parenthesizeOperandOfPostfixUnary),hD(R.operator,lf)}function d3(){return kY(R,be,Ht,Oi,yu,void 0);function R(br,Ea){if(Ea){Ea.stackIndex++,Ea.preserveSourceNewlinesStack[Ea.stackIndex]=Ae,Ea.containerPosStack[Ea.stackIndex]=Ni,Ea.containerEndStack[Ea.stackIndex]=ji,Ea.declarationListContainerEndStack[Ea.stackIndex]=xn;const Ao=Ea.shouldEmitCommentsStack[Ea.stackIndex]=te(br),Af=Ea.shouldEmitSourceMapsStack[Ea.stackIndex]=we(br);E==null||E(br),Ao&&M9(br),Af&&Jw(br),Qi(br)}else Ea={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Ea}function be(br,Ea,Ao){return Jr(br,Ao,"left")}function Ht(br,Ea,Ao){const Af=br.kind!==28,Uf=E4(Ao,Ao.left,br),Fr=E4(Ao,br,Ao.right);_3(Uf,Af),Zm(br.pos),B9(br,br.kind===103?Ma:lf),Up(br.end,!0),_3(Fr,!0)}function Oi(br,Ea,Ao){return Jr(br,Ao,"right")}function yu(br,Ea){const Ao=E4(br,br.left,br.operatorToken),Af=E4(br,br.operatorToken,br.right);if(g_(Ao,Af),Ea.stackIndex>0){const Uf=Ea.preserveSourceNewlinesStack[Ea.stackIndex],Fr=Ea.containerPosStack[Ea.stackIndex],vE=Ea.containerEndStack[Ea.stackIndex],gn=Ea.declarationListContainerEndStack[Ea.stackIndex],h6=Ea.shouldEmitCommentsStack[Ea.stackIndex],P5=Ea.shouldEmitSourceMapsStack[Ea.stackIndex];on(Uf),P5&&x4(br),h6&&z9(br,Fr,vE,gn),v==null||v(br),Ea.stackIndex--}}function Jr(br,Ea,Ao){const Af=Ao==="left"?bt.getParenthesizeLeftSideOfBinaryForOperator(Ea.operatorToken.kind):bt.getParenthesizeRightSideOfBinaryForOperator(Ea.operatorToken.kind);let Uf=de(0,1,br);if(Uf===Qt&&(H.assertIsDefined(Zu),br=Af(Po(Zu,Wt)),Uf=je(1,1,br),Zu=void 0),(Uf===P9||Uf===sF||Uf===it)&&Xn(br))return br;aa=Af,Uf(1,br)}}function Wf(R){const be=E4(R,R.condition,R.questionToken),Ht=E4(R,R.questionToken,R.whenTrue),Oi=E4(R,R.whenTrue,R.colonToken),yu=E4(R,R.colonToken,R.whenFalse);Ei(R.condition,bt.parenthesizeConditionOfConditionalExpression),_3(be,!0),mt(R.questionToken),_3(Ht,!0),Ei(R.whenTrue,bt.parenthesizeBranchOfConditionalExpression),g_(be,Ht),_3(Oi,!0),mt(R.colonToken),_3(yu,!0),Ei(R.whenFalse,bt.parenthesizeBranchOfConditionalExpression),g_(Oi,yu)}function m4(R){mt(R.head),B0(R,R.templateSpans,262144)}function Vh(R){ta(127,R.pos,Ma,R),mt(R.asteriskToken),E3(R.expression&&bg(R.expression),sb)}function Ee(R){ta(26,R.pos,ru,R),Ei(R.expression,bt.parenthesizeExpressionForDisallowedComma)}function Bt(R){op(R.name),t6(R)}function Di(R){Ei(R.expression,bt.parenthesizeLeftSideOfAccess),gE(R,R.typeArguments)}function Ci(R){Ei(R.expression,void 0),R.type&&(Un(),Ma("as"),Un(),mt(R.type))}function Q(R){Ei(R.expression,bt.parenthesizeLeftSideOfAccess),lf("!")}function Me(R){Ei(R.expression,void 0),R.type&&(Un(),Ma("satisfies"),Un(),mt(R.type))}function wt(R){u6(R.keywordToken,R.pos,ru),ru("."),mt(R.name)}function ki(R){Ei(R.expression),mt(R.literal)}function In(R){tr(R,!R.multiLine&&hC(R))}function tr(R,be){ta(19,R.pos,ru,R);const Ht=be||bs(R)&1?768:129;B0(R,R.statements,Ht),ta(20,R.statements.end,ru,R,!!(Ht&1))}function ir(R){yh(R,R.modifiers,!1),mt(R.declarationList),v1()}function ha(R){R?ru(";"):v1()}function os(R){Ei(R.expression,bt.parenthesizeExpressionOfExpressionStatement),(!Y||!W4(Y)||sl(R.expression))&&v1()}function ss(R){const be=ta(101,R.pos,Ma,R);Un(),ta(21,be,ru,R),Ei(R.expression),ta(22,R.expression.end,ru,R),m_(R,R.thenStatement),R.elseStatement&&(cC(R,R.thenStatement,R.elseStatement),ta(93,R.thenStatement.end,Ma,R),R.elseStatement.kind===245?(Un(),mt(R.elseStatement)):m_(R,R.elseStatement))}function Rl(R,be){const Ht=ta(117,be,Ma,R);Un(),ta(21,Ht,ru,R),Ei(R.expression),ta(22,R.expression.end,ru,R)}function x1(R){ta(92,R.pos,Ma,R),m_(R,R.statement),po(R.statement)&&!Ae?Un():cC(R,R.statement,R.expression),Rl(R,R.statement.end),v1()}function fd(R){Rl(R,R.pos),m_(R,R.statement)}function $m(R){const be=ta(99,R.pos,Ma,R);Un();let Ht=ta(21,be,ru,R);Um(R.initializer),Ht=ta(27,R.initializer?R.initializer.end:Ht,ru,R),E3(R.condition),Ht=ta(27,R.condition?R.condition.end:Ht,ru,R),E3(R.incrementor),ta(22,R.incrementor?R.incrementor.end:Ht,ru,R),m_(R,R.statement)}function _s(R){const be=ta(99,R.pos,Ma,R);Un(),ta(21,be,ru,R),Um(R.initializer),Un(),ta(103,R.initializer.end,Ma,R),Un(),Ei(R.expression),ta(22,R.expression.end,ru,R),m_(R,R.statement)}function np(R){const be=ta(99,R.pos,Ma,R);Un(),Ow(R.awaitModifier),ta(21,be,ru,R),Um(R.initializer),Un(),ta(165,R.initializer.end,Ma,R),Un(),Ei(R.expression),ta(22,R.expression.end,ru,R),m_(R,R.statement)}function Um(R){R!==void 0&&(R.kind===261?mt(R):Ei(R))}function h3(R){ta(88,R.pos,Ma,R),oC(R.label),v1()}function d_(R){ta(83,R.pos,Ma,R),oC(R.label),v1()}function ta(R,be,Ht,Oi,yu){const Jr=Ua(Oi),br=Jr&&Jr.kind===Oi.kind,Ea=be;if(br&&Y&&(be=gs(Y.text,be)),br&&Oi.pos!==Ea){const Ao=yu&&Y&&!q4(Ea,be,Y);Ao&&_E(),Zm(Ea),Ao&&DE()}if(!z&&(R===19||R===20)?be=u6(R,be,Ht,Oi):be=hD(R,Ht,be),br&&Oi.end!==be){const Ao=Oi.kind===294;Up(be,!Ao,Ao)}return be}function Xx(R){return R.kind===2||!!R.hasTrailingNewLine}function e6(R){return Y?Oe(W_(Y.text,R.pos),Xx)||Oe(DB(R),Xx)?!0:dY(R)?R.pos!==R.expression.pos&&Oe(gv(Y.text,R.expression.pos),Xx)?!0:e6(R.expression):!1:!1}function bg(R){if(!Ai&&dY(R)&&e6(R)){const be=Ua(R);if(be&&Cf(be)){const Ht=q.createParenthesizedExpression(R.expression);return su(Ht,R),Pt(Ht,be),Ht}return q.createParenthesizedExpression(R)}return R}function sb(R){return bg(bt.parenthesizeExpressionForDisallowedComma(R))}function b5(R){ta(107,R.pos,Ma,R),E3(R.expression&&bg(R.expression),bg),v1()}function Xe(R){const be=ta(118,R.pos,Ma,R);Un(),ta(21,be,ru,R),Ei(R.expression),ta(22,R.expression.end,ru,R),m_(R,R.statement)}function Dt(R){const be=ta(109,R.pos,Ma,R);Un(),ta(21,be,ru,R),Ei(R.expression),ta(22,R.expression.end,ru,R),Un(),mt(R.caseBlock)}function oi(R){mt(R.label),ta(59,R.label.end,ru,R),Un(),mt(R.statement)}function Ti(R){ta(111,R.pos,Ma,R),E3(bg(R.expression),bg),v1()}function Xi(R){ta(113,R.pos,Ma,R),Un(),mt(R.tryBlock),R.catchClause&&(cC(R,R.tryBlock,R.catchClause),mt(R.catchClause)),R.finallyBlock&&(cC(R,R.catchClause||R.tryBlock,R.finallyBlock),ta(98,(R.catchClause||R.tryBlock).end,Ma,R),Un(),mt(R.finallyBlock))}function Rn(R){u6(89,R.pos,Ma),v1()}function tn(R){var be,Ht,Oi;mt(R.name),mt(R.exclamationToken),f_(R.type),g3(R.initializer,((be=R.type)==null?void 0:be.end)??((Oi=(Ht=R.name.emitNode)==null?void 0:Ht.typeNode)==null?void 0:Oi.end)??R.name.end,R,bt.parenthesizeExpressionForDisallowedComma)}function bn(R){if(lj(R))Ma("await"),Un(),Ma("using");else{const be=rq(R)?"let":K8(R)?"const":cj(R)?"using":"var";Ma(be)}Un(),B0(R,R.declarations,528)}function kr(R){Cu(R)}function Cu(R){yh(R,R.modifiers,!1),Ma("function"),mt(R.asteriskToken),Un(),Ot(R.name),bu(R,Eu)}function bu(R,be){const Ht=R.body;if(Ht)if(po(Ht)){const Oi=bs(R)&131072;Oi&&_E(),O1(R),L(R.parameters,n1),n1(R.body),be(R),p0(Ht),Ff(R),Oi&&DE()}else be(R),Un(),Ei(Ht,bt.parenthesizeConciseBodyOfArrowFunction);else be(R),v1()}function Eu(R){p_(R,R.typeParameters),w5(R,R.parameters),f_(R.type)}function sa(R){if(bs(R)&1)return!0;if(R.multiLine||!sl(R)&&Y&&!hk(R,Y)||uF(R,Ki(R.statements),2)||r6(R,qu(R.statements),2,R.statements))return!1;let be;for(const Ht of R.statements){if(fD(be,Ht,2)>0)return!1;be=Ht}return!0}function p0(R){E==null||E(R),Un(),ru("{"),_E();const be=sa(R)?o0:Gf;_u(R,R.statements,be),DE(),u6(20,R.statements.end,ru,R),v==null||v(R)}function o0(R){Gf(R,!0)}function Gf(R,be){const Ht=kf(R.statements),Oi=Ke.getTextPos();Ui(R),Ht===0&&Oi===Ke.getTextPos()&&be?(DE(),B0(R,R.statements,768),_E()):B0(R,R.statements,1,void 0,Ht)}function eC(R){t6(R)}function t6(R){_4(0,void 0),L(R.members,aF),yh(R,R.modifiers,!0),ta(86,iE(R).pos,Ma,R),R.name&&(Un(),Ot(R.name));const be=bs(R)&131072;be&&_E(),p_(R,R.typeParameters),B0(R,R.heritageClauses,0),Un(),ru("{"),B0(R,R.members,129),ru("}"),be&&DE(),fC()}function cD(R){_4(0,void 0),yh(R,R.modifiers,!1),Ma("interface"),Un(),mt(R.name),p_(R,R.typeParameters),B0(R,R.heritageClauses,512),Un(),ru("{"),B0(R,R.members,129),ru("}"),fC()}function i6(R){yh(R,R.modifiers,!1),Ma("type"),Un(),mt(R.name),p_(R,R.typeParameters),Un(),ru("="),Un(),mt(R.type),v1()}function Gk(R){yh(R,R.modifiers,!1),Ma("enum"),Un(),mt(R.name),Un(),ru("{"),B0(R,R.members,145),ru("}")}function lb(R){yh(R,R.modifiers,!1),~R.flags&2048&&(Ma(R.flags&32?"namespace":"module"),Un()),mt(R.name);let be=R.body;if(!be)return v1();for(;be&&_c(be);)ru("."),mt(be.name),be=be.body;Un(),mt(be)}function Jk(R){O1(R),L(R.statements,n1),tr(R,hC(R)),Ff(R)}function $k(R){ta(19,R.pos,ru,R),B0(R,R.clauses,129),ta(20,R.clauses.end,ru,R,!0)}function az(R){yh(R,R.modifiers,!1),ta(102,R.modifiers?R.modifiers.end:R.pos,Ma,R),Un(),R.isTypeOnly&&(ta(156,R.pos,Ma,R),Un()),mt(R.name),Un(),ta(64,R.name.end,ru,R),Un(),D9(R.moduleReference),v1()}function D9(R){R.kind===80?Ei(R):mt(R)}function ww(R){yh(R,R.modifiers,!1),ta(102,R.modifiers?R.modifiers.end:R.pos,Ma,R),Un(),R.importClause&&(mt(R.importClause),Un(),ta(161,R.importClause.end,Ma,R),Un()),Ei(R.moduleSpecifier),R.attributes&&oC(R.attributes),v1()}function tC(R){R.isTypeOnly&&(ta(156,R.pos,Ma,R),Un()),mt(R.name),R.name&&R.namedBindings&&(ta(28,R.name.end,ru,R),Un()),mt(R.namedBindings)}function x9(R){const be=ta(42,R.pos,ru,R);Un(),ta(130,be,Ma,R),Un(),mt(R.name)}function v9(R){y5(R)}function Tw(R){hb(R)}function Uk(R){const be=ta(95,R.pos,Ma,R);Un(),R.isExportEquals?ta(64,be,lf,R):ta(90,be,Ma,R),Un(),Ei(R.expression,R.isExportEquals?bt.getParenthesizeRightSideOfBinaryForOperator(64):bt.parenthesizeExpressionOfExportDefault),v1()}function Lw(R){yh(R,R.modifiers,!1);let be=ta(95,R.pos,Ma,R);if(Un(),R.isTypeOnly&&(be=ta(156,be,Ma,R),Un()),R.exportClause?mt(R.exportClause):be=ta(42,be,ru,R),R.moduleSpecifier){Un();const Ht=R.exportClause?R.exportClause.end:be;ta(161,Ht,Ma,R),Un(),Ei(R.moduleSpecifier)}R.attributes&&oC(R.attributes),v1()}function C9(R){ta(R.token,R.pos,Ma,R),Un();const be=R.elements;B0(R,be,526226)}function b9(R){mt(R.name),ru(":"),Un();const be=R.value;if(!(bs(be)&1024)){const Ht=nE(be);Up(Ht.pos)}mt(be)}function qk(R){let be=ta(95,R.pos,Ma,R);Un(),be=ta(130,be,Ma,R),Un(),be=ta(145,be,Ma,R),Un(),mt(R.name),v1()}function cb(R){const be=ta(42,R.pos,ru,R);Un(),ta(130,be,Ma,R),Un(),mt(R.name)}function db(R){y5(R)}function iC(R){hb(R)}function y5(R){ru("{"),B0(R,R.elements,525136),ru("}")}function hb(R){R.isTypeOnly&&(Ma("type"),Un()),R.propertyName&&(mt(R.propertyName),Un(),ta(130,R.propertyName.end,Ma,R),Un()),mt(R.name)}function fE(R){Ma("require"),ru("("),Ei(R.expression),ru(")")}function Vs(R){mt(R.openingElement),B0(R,R.children,262144),mt(R.closingElement)}function Zk(R){ru("<"),fb(R.tagName),gE(R,R.typeArguments),Un(),mt(R.attributes),ru("/>")}function Nw(R){mt(R.openingFragment),B0(R,R.children,262144),mt(R.closingFragment)}function n6(R){if(ru("<"),aE(R)){const be=w9(R.tagName,R);fb(R.tagName),gE(R,R.typeArguments),R.attributes.properties&&R.attributes.properties.length>0&&Un(),mt(R.attributes),rF(R.attributes,R),g_(be)}ru(">")}function k5(R){Ke.writeLiteral(R.text)}function h_(R){ru("")}function p4(R){B0(R,R.properties,262656)}function Jf(R){mt(R.name),$p("=",ru,R.initializer,$i)}function Hh(R){ru("{..."),Ei(R.expression),ru("}")}function Em(R){let be=!1;return PO((Y==null?void 0:Y.text)||"",R+1,()=>be=!0),be}function nC(R){let be=!1;return NO((Y==null?void 0:Y.text)||"",R+1,()=>be=!0),be}function Pw(R){return Em(R)||nC(R)}function y9(R){var be;if(R.expression||!Ai&&!sl(R)&&Pw(R.pos)){const Ht=Y&&!sl(R)&&s0(Y,R.pos).line!==s0(Y,R.end).line;Ht&&Ke.increaseIndent();const Oi=ta(19,R.pos,ru,R);mt(R.dotDotDotToken),Ei(R.expression),ta(20,((be=R.expression)==null?void 0:be.end)||Oi,ru,R),Ht&&Ke.decreaseIndent()}}function Yk(R){Ot(R.namespace),ru(":"),Ot(R.name)}function fb(R){R.kind===80?Ei(R):mt(R)}function uC(R){ta(84,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeExpressionForDisallowedComma),rC(R,R.statements,R.expression.end)}function Qk(R){const be=ta(90,R.pos,Ma,R);rC(R,R.statements,be)}function rC(R,be,Ht){const Oi=be.length===1&&(!Y||sl(R)||sl(be[0])||Gq(R,be[0],Y));let yu=163969;Oi?(u6(59,Ht,ru,R),Un(),yu&=-130):ta(59,Ht,ru,R),B0(R,be,yu)}function jd(R){Un(),hD(R.token,Ma),Un(),B0(R,R.types,528)}function F5(R){const be=ta(85,R.pos,Ma,R);Un(),R.variableDeclaration&&(ta(21,be,ru,R),mt(R.variableDeclaration),ta(22,R.variableDeclaration.end,ru,R),Un()),mt(R.block)}function A5(R){mt(R.name),ru(":"),Un();const be=R.initializer;if(!(bs(be)&1024)){const Ht=nE(be);Up(Ht.pos)}Ei(be,bt.parenthesizeExpressionForDisallowedComma)}function f3(R){mt(R.name),R.objectAssignmentInitializer&&(Un(),ru("="),Un(),Ei(R.objectAssignmentInitializer,bt.parenthesizeExpressionForDisallowedComma))}function pt(R){R.expression&&(ta(26,R.pos,ru,R),Ei(R.expression,bt.parenthesizeExpressionForDisallowedComma))}function i1(R){mt(R.name),g3(R.initializer,R.name.end,R,bt.parenthesizeExpressionForDisallowedComma)}function g4(R){if(ft("/**"),R.comment){const be=KO(R.comment);if(be){const Ht=be.split(/\r\n?|\n/g);for(const Oi of Ht)wd(),Un(),ru("*"),Un(),ft(Oi)}}R.tags&&(R.tags.length===1&&R.tags[0].kind===351&&!R.comment?(Un(),mt(R.tags[0])):B0(R,R.tags,33)),Un(),ft("*/")}function bh(R){up(R.tagName),p3(R.typeExpression),kg(R.comment)}function Mw(R){up(R.tagName),mt(R.name),kg(R.comment)}function S5(R){Un(),ru("{"),mt(R.name),ru("}")}function aC(R){up(R.tagName),Un(),ru("{"),mt(R.class),ru("}"),kg(R.comment)}function m3(R){up(R.tagName),p3(R.constraint),Un(),B0(R,R.typeParameters,528),kg(R.comment)}function oz(R){up(R.tagName),R.typeExpression&&(R.typeExpression.kind===316?p3(R.typeExpression):(Un(),ru("{"),ft("Object"),R.typeExpression.isArrayType&&(ru("["),ru("]")),ru("}"))),R.fullName&&(Un(),mt(R.fullName)),kg(R.comment),R.typeExpression&&R.typeExpression.kind===329&&eF(R.typeExpression)}function Hs(R){up(R.tagName),R.name&&(Un(),mt(R.name)),kg(R.comment),mb(R.typeExpression)}function yg(R){kg(R.comment),mb(R.typeExpression)}function Xk(R){up(R.tagName),kg(R.comment)}function eF(R){B0(R,q.createNodeArray(R.jsDocPropertyTags),33)}function mb(R){R.typeParameters&&B0(R,q.createNodeArray(R.typeParameters),33),R.parameters&&B0(R,q.createNodeArray(R.parameters),33),R.type&&(wd(),Un(),ru("*"),Un(),mt(R.type))}function pb(R){up(R.tagName),p3(R.typeExpression),Un(),R.isBracketed&&ru("["),mt(R.name),R.isBracketed&&ru("]"),kg(R.comment)}function up(R){ru("@"),mt(R)}function kg(R){const be=KO(R);be&&(Un(),ft(be))}function p3(R){R&&(Un(),ru("{"),mt(R.type),ru("}"))}function tF(R){wd();const be=R.statements;if(be.length===0||!Mp(be[0])||sl(be[0])){_u(R,be,Ur);return}Ur(R)}function mE(R){zw(!!R.hasNoDefaultLib,R.syntheticFileReferences||[],R.syntheticTypeReferences||[],R.syntheticLibReferences||[]);for(const be of R.prepends)if(yk(be)&&be.syntheticReferences)for(const Ht of be.syntheticReferences)mt(Ht),wd()}function iF(R){R.isDeclarationFile&&zw(R.hasNoDefaultLib,R.referencedFiles,R.typeReferenceDirectives,R.libReferenceDirectives)}function zw(R,be,Ht,Oi){if(R){const yu=Ke.getTextPos();ap('/// '),Ve&&Ve.sections.push({pos:yu,end:Ke.getTextPos(),kind:"no-default-lib"}),wd()}if(Y&&Y.moduleName&&(ap(`/// `),wd()),Y&&Y.amdDependencies)for(const yu of Y.amdDependencies)yu.name?ap(`/// `):ap(`/// `),wd();for(const yu of be){const Jr=Ke.getTextPos();ap(`/// `),Ve&&Ve.sections.push({pos:Jr,end:Ke.getTextPos(),kind:"reference",data:yu.fileName}),wd()}for(const yu of Ht){const Jr=Ke.getTextPos(),br=yu.resolutionMode&&yu.resolutionMode!==(Y==null?void 0:Y.impliedNodeFormat)?`resolution-mode="${yu.resolutionMode===99?"import":"require"}"`:"";ap(`/// `),Ve&&Ve.sections.push({pos:Jr,end:Ke.getTextPos(),kind:yu.resolutionMode?yu.resolutionMode===99?"type-import":"type-require":"type",data:yu.fileName}),wd()}for(const yu of Oi){const Jr=Ke.getTextPos();ap(`/// `),Ve&&Ve.sections.push({pos:Jr,end:Ke.getTextPos(),kind:"lib",data:yu.fileName}),wd()}}function Ur(R){const be=R.statements;O1(R),L(R.statements,n1),Ui(R);const Ht=Ue(be,Oi=>!Mp(Oi));iF(R),B0(R,be,1,void 0,Ht===-1?be.length:Ht),Ff(R)}function ar(R){const be=bs(R);!(be&1024)&&R.pos!==R.expression.pos&&Up(R.expression.pos),Ei(R.expression),!(be&2048)&&R.end!==R.expression.end&&Zm(R.expression.end)}function pE(R){Eb(R,R.elements,528,void 0)}function kf(R,be,Ht,Oi){let yu=!!be;for(let Jr=0;Jr=Ht.length||br===0;if(Ao&&Oi&32768){b==null||b(Ht),B==null||B(Ht);return}Oi&15360&&(ru(czt(Oi)),Ao&&Ht&&Up(Ht.pos,!0)),b==null||b(Ht),Ao?Oi&1&&!(Ae&&(!be||Y&&hk(be,Y)))?wd():Oi&256&&!(Oi&524288)&&Un():rp(R,be,Ht,Oi,yu,Jr,br,Ht.hasTrailingComma,Ht),B==null||B(Ht),Oi&15360&&(Ao&&Ht&&Zm(Ht.end),ru(dzt(Oi)))}function rp(R,be,Ht,Oi,yu,Jr,br,Ea,Ao){const Af=(Oi&262144)===0;let Uf=Af;const Fr=uF(be,Ht[Jr],Oi);Fr?(wd(Fr),Uf=!1):Oi&256&&Un(),Oi&128&&_E();const vE=pzt(R,yu);let gn,h6,P5=!1;for(let E_=0;E_0){if(Oi&131||(_E(),P5=!0),Uf&&Oi&60&&!pg(M5.pos)){const Uw=nE(M5);Up(Uw.pos,!!(Oi&512),!0)}wd(C3),Uf=!1}else gn&&Oi&512&&Un()}if(h6=bo(M5),Uf){const C3=nE(M5);Up(C3.pos)}else Uf=Af;De=M5.pos,vE(M5,R,yu,E_),P5&&(DE(),P5=!1),gn=M5}const lF=gn?bs(gn):0,DC=Ai||!!(lF&2048),O9=Ea&&Oi&64&&Oi&16;O9&&(gn&&!DC?ta(28,gn.end,ru,gn):ru(",")),gn&&(be?be.end:-1)!==gn.end&&Oi&60&&!DC&&Zm(O9&&(Ao!=null&&Ao.end)?Ao.end:gn.end),Oi&128&&DE(),Qe(h6);const cF=r6(be,Ht[Jr+br-1],Oi,Ao);cF?wd(cF):Oi&2097408&&Un()}function sC(R){Ke.writeLiteral(R)}function S9(R){Ke.writeStringLiteral(R)}function lz(R){Ke.write(R)}function nF(R,be){Ke.writeSymbol(R,be)}function ru(R){Ke.writePunctuation(R)}function v1(){Ke.writeTrailingSemicolon(";")}function Ma(R){Ke.writeKeyword(R)}function lf(R){Ke.writeOperator(R)}function EE(R){Ke.writeParameter(R)}function ap(R){Ke.writeComment(R)}function Un(){Ke.writeSpace(" ")}function _b(R){Ke.writeProperty(R)}function lC(R){Ke.nonEscapingWrite?Ke.nonEscapingWrite(R):Ke.write(R)}function wd(R=1){for(let be=0;be0)}function _E(){Ke.increaseIndent()}function DE(){Ke.decreaseIndent()}function u6(R,be,Ht,Oi){return st?hD(R,Ht,be):v3(Oi,R,Ht,be,hD)}function B9(R,be){k&&k(R),be(Uo(R.kind)),T&&T(R)}function hD(R,be,Ht){const Oi=Uo(R);return be(Oi),Ht<0?Ht:Ht+Oi.length}function cC(R,be,Ht){if(bs(R)&1)Un();else if(Ae){const Oi=E4(R,be,Ht);Oi?wd(Oi):Un()}else wd()}function dC(R){const be=R.split(/\r\n?|\n/g),Ht=Dbe(be);for(const Oi of be){const yu=Ht?Oi.slice(Ht):Oi;yu.length&&(wd(),ft(yu))}}function _3(R,be){R?(_E(),wd(R)):be&&Un()}function g_(R,be){R&&DE(),be&&DE()}function uF(R,be,Ht){if(Ht&2||Ae){if(Ht&65536)return 1;if(be===void 0)return!R||Y&&hk(R,Y)?0:1;if(be.pos===De||be.kind===12)return 0;if(Y&&R&&!pg(R.pos)&&!sl(be)&&(!be.parent||Wl(be.parent)===Wl(R)))return Ae?Db(Oi=>Wye(be.pos,R.pos,Y,Oi)):Gq(R,be,Y)?0:1;if(xb(be,Ht))return 1}return Ht&1?1:0}function fD(R,be,Ht){if(Ht&2||Ae){if(R===void 0||be===void 0||be.kind===12)return 0;if(Y&&!sl(R)&&!sl(be))return Ae&&cf(R,be)?Db(Oi=>mle(R,be,Y,Oi)):!Ae&&Dm(R,be)?qj(R,be,Y)?0:1:Ht&65536?1:0;if(xb(R,Ht)||xb(be,Ht))return 1}else if(RP(be))return 1;return Ht&1?1:0}function r6(R,be,Ht,Oi){if(Ht&2||Ae){if(Ht&65536)return 1;if(be===void 0)return!R||Y&&hk(R,Y)?0:1;if(Y&&R&&!pg(R.pos)&&!sl(be)&&(!be.parent||be.parent===R)){if(Ae){const yu=Oi&&!pg(Oi.end)?Oi.end:be.end;return Db(Jr=>Gye(yu,R.end,Y,Jr))}return Vye(R,be,Y)?0:1}if(xb(be,Ht))return 1}return Ht&1&&!(Ht&131072)?1:0}function Db(R){H.assert(!!Ae);const be=R(!0);return be===0?R(!1):be}function w9(R,be){const Ht=Ae&&uF(be,R,0);return Ht&&_3(Ht,!1),!!Ht}function rF(R,be){const Ht=Ae&&r6(be,R,0,void 0);Ht&&wd(Ht)}function xb(R,be){if(sl(R)){const Ht=RP(R);return Ht===void 0?(be&65536)!==0:Ht}return(be&65536)!==0}function E4(R,be,Ht){return bs(R)&262144?0:(R=yc(R),be=yc(be),Ht=yc(Ht),RP(Ht)?1:Y&&!sl(R)&&!sl(be)&&!sl(Ht)?Ae?Db(Oi=>mle(be,Ht,Y,Oi)):qj(be,Ht,Y)?0:1:0)}function hC(R){return R.statements.length===0&&(!Y||qj(R,R,Y))}function yc(R){for(;R.kind===217&&sl(R);)R=R.expression;return R}function md(R,be){if(al(R)||Uy(R))return a6(R);if(us(R)&&R.textSourceNode)return md(R.textSourceNode,be);const Ht=Y,Oi=!!Ht&&!!R.parent&&!sl(R);if(J_(R)){if(!Oi||zn(R)!==Wl(Ht))return fu(R)}else if(gg(R)){if(!Oi||zn(R)!==Wl(Ht))return zP(R)}else if(H.assertNode(R,E2),!Oi)return R.text;return x2(Ht,R,be)}function T9(R,be,Ht){if(R.kind===11&&R.textSourceNode){const yu=R.textSourceNode;if(at(yu)||Xr(yu)||Of(yu)||gg(yu)){const Jr=Of(yu)?yu.text:md(yu);return Ht?`"${X0e(Jr)}"`:be||bs(R)&16777216?`"${Av(Jr)}"`:`"${jj(Jr)}"`}else return T9(yu,be,Ht)}const Oi=(be?1:0)|(Ht?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&t.target===99?8:0);return wbe(R,Y,Oi)}function O1(R){R&&bs(R)&1048576||(Ne.push(pe),pe=0,Ce.push(ne),ne=void 0,fe.push(xe))}function Ff(R){R&&bs(R)&1048576||(pe=Ne.pop(),ne=Ce.pop(),xe=fe.pop())}function vb(R){(!xe||xe===qu(fe))&&(xe=new Set),xe.add(R)}function _4(R,be){ve.push(Se),Se=R,Be.push(xe),Ge=be}function fC(){Se=ve.pop(),Ge=Be.pop()}function T5(R){(!Ge||Ge===qu(Be))&&(Ge=new Set),Ge.add(R)}function n1(R){if(R)switch(R.kind){case 241:L(R.statements,n1);break;case 256:case 254:case 246:case 247:n1(R.statement);break;case 245:n1(R.thenStatement),n1(R.elseStatement);break;case 248:case 250:case 249:n1(R.initializer),n1(R.statement);break;case 255:n1(R.caseBlock);break;case 269:L(R.clauses,n1);break;case 296:case 297:L(R.statements,n1);break;case 258:n1(R.tryBlock),n1(R.catchClause),n1(R.finallyBlock);break;case 299:n1(R.variableDeclaration),n1(R.block);break;case 243:n1(R.declarationList);break;case 261:L(R.declarations,n1);break;case 260:case 169:case 208:case 263:op(R.name);break;case 262:op(R.name),bs(R)&1048576&&(L(R.parameters,n1),n1(R.body));break;case 206:case 207:L(R.elements,n1);break;case 272:n1(R.importClause);break;case 273:op(R.name),n1(R.namedBindings);break;case 274:op(R.name);break;case 280:op(R.name);break;case 275:L(R.elements,n1);break;case 276:op(R.propertyName||R.name);break}}function aF(R){if(R)switch(R.kind){case 303:case 304:case 172:case 174:case 177:case 178:op(R.name);break}}function op(R){R&&(al(R)||Uy(R)?a6(R):So(R)&&n1(R))}function a6(R){const be=R.emitNode.autoGenerate;if((be.flags&7)===4)return Hw(jV(R),Xr(R),be.flags,be.prefix,be.suffix);{const Ht=be.id;return ge[Ht]||(ge[Ht]=cz(R))}}function Hw(R,be,Ht,Oi,yu){const Jr=$s(R),br=be?se:oe;return br[Jr]||(br[Jr]=L5(R,be,Ht??0,RB(Oi,a6),RB(yu)))}function R0(R,be){return oF(R)&&!Kw(R,be)&&!ae.has(R)}function Kw(R,be){return be?!!(Ge!=null&&Ge.has(R)):!!(xe!=null&&xe.has(R))}function oF(R,be){return Y?QU(Y,R,s):!0}function mC(R,be){for(let Ht=be;Ht&&S2(Ht,be);Ht=Ht.nextContainer)if(UE(Ht)&&Ht.locals){const Oi=Ht.locals.get(Al(R));if(Oi&&Oi.flags&3257279)return!1}return!0}function L9(R){switch(R){case"":return pe;case"#":return Se;default:return(ne==null?void 0:ne.get(R))??0}}function Kh(R,be){switch(R){case"":pe=be;break;case"#":Se=be;break;default:ne??(ne=new Map),ne.set(R,be);break}}function D3(R,be,Ht,Oi,yu){Oi.length>0&&Oi.charCodeAt(0)===35&&(Oi=Oi.slice(1));const Jr=jv(Ht,Oi,"",yu);let br=L9(Jr);if(R&&!(br&R)){const Ao=jv(Ht,Oi,R===268435456?"_i":"_n",yu);if(R0(Ao,Ht))return br|=R,Ht?T5(Ao):be&&vb(Ao),Kh(Jr,br),Ao}for(;;){const Ea=br&268435455;if(br++,Ea!==8&&Ea!==13){const Ao=Ea<26?"_"+String.fromCharCode(97+Ea):"_"+(Ea-26),Af=jv(Ht,Oi,Ao,yu);if(R0(Af,Ht))return Ht?T5(Af):be&&vb(Af),Kh(Jr,br),Af}}}function mD(R,be=R0,Ht,Oi,yu,Jr,br){if(R.length>0&&R.charCodeAt(0)===35&&(R=R.slice(1)),Jr.length>0&&Jr.charCodeAt(0)===35&&(Jr=Jr.slice(1)),Ht){const Ao=jv(yu,Jr,R,br);if(be(Ao,yu))return yu?T5(Ao):Oi?vb(Ao):ae.add(Ao),Ao}R.charCodeAt(R.length-1)!==95&&(R+="_");let Ea=1;for(;;){const Ao=jv(yu,Jr,R+Ea,br);if(be(Ao,yu))return yu?T5(Ao):Oi?vb(Ao):ae.add(Ao),Ao;Ea++}}function Cb(R){return mD(R,oF,!0,!1,!1,"","")}function _m(R){const be=md(R.name);return mC(be,ur(R,UE))?be:mD(be,R0,!1,!1,!1,"","")}function N9(R){const be=Y8(R),Ht=us(be)?Lbe(be.text):"module";return mD(Ht,R0,!1,!1,!1,"","")}function o6(){return mD("default",R0,!1,!1,!1,"","")}function qm(){return mD("class",R0,!1,!1,!1,"","")}function bb(R,be,Ht,Oi){return at(R.name)?Hw(R.name,be):D3(0,!1,be,Ht,Oi)}function L5(R,be,Ht,Oi,yu){switch(R.kind){case 80:case 81:return mD(md(R),R0,!!(Ht&16),!!(Ht&8),be,Oi,yu);case 267:case 266:return H.assert(!Oi&&!yu&&!be),_m(R);case 272:case 278:return H.assert(!Oi&&!yu&&!be),N9(R);case 262:case 263:{H.assert(!Oi&&!yu&&!be);const Jr=R.name;return Jr&&!al(Jr)?L5(Jr,!1,Ht,Oi,yu):o6()}case 277:return H.assert(!Oi&&!yu&&!be),o6();case 231:return H.assert(!Oi&&!yu&&!be),qm();case 174:case 177:case 178:return bb(R,be,Oi,yu);case 167:return D3(0,!0,be,Oi,yu);default:return D3(0,!1,be,Oi,yu)}}function cz(R){const be=R.emitNode.autoGenerate,Ht=RB(be.prefix,a6),Oi=RB(be.suffix);switch(be.flags&7){case 1:return D3(0,!!(be.flags&8),Xr(R),Ht,Oi);case 2:return H.assertNode(R,at),D3(268435456,!!(be.flags&8),!1,Ht,Oi);case 3:return mD(fu(R),be.flags&32?oF:R0,!!(be.flags&16),!!(be.flags&8),Xr(R),Ht,Oi)}return H.fail(`Unsupported GeneratedIdentifierKind: ${H.formatEnum(be.flags&7,sU,!0)}.`)}function P9(R,be){const Ht=je(2,R,be),Oi=Ni,yu=ji,Jr=xn;M9(be),Ht(R,be),z9(be,Oi,yu,Jr)}function M9(R){const be=bs(R),Ht=nE(R);pC(R,be,Ht.pos,Ht.end),be&4096&&(Ai=!0)}function z9(R,be,Ht,Oi){const yu=bs(R),Jr=nE(R);yu&4096&&(Ai=!1),$f(R,yu,Jr.pos,Jr.end,be,Ht,Oi);const br=Wke(R);br&&$f(R,yu,br.pos,br.end,be,Ht,Oi)}function pC(R,be,Ht,Oi){yr(),Pi=!1;const yu=Ht<0||(be&1024)!==0||R.kind===12,Jr=Oi<0||(be&2048)!==0||R.kind===12;(Ht>0||Oi>0)&&Ht!==Oi&&(yu||yb(Ht,R.kind!==359),(!yu||Ht>=0&&be&1024)&&(Ni=Ht),(!Jr||Oi>=0&&be&2048)&&(ji=Oi,R.kind===261&&(xn=Oi))),L(DB(R),x3),Ba()}function $f(R,be,Ht,Oi,yu,Jr,br){yr();const Ea=Oi<0||(be&2048)!==0||R.kind===12;L(DV(R),I9),(Ht>0||Oi>0)&&Ht!==Oi&&(Ni=yu,ji=Jr,xn=br,!Ea&&R.kind!==359&&sp(Oi)),Ba()}function x3(R){(R.hasLeadingNewline||R.kind===2)&&Ke.writeLine(),R9(R),R.hasTrailingNewLine||R.kind===2?Ke.writeLine():Ke.writeSpace(" ")}function I9(R){Ke.isAtStartOfLine()||Ke.writeSpace(" "),R9(R),R.hasTrailingNewLine&&Ke.writeLine()}function R9(R){const be=Ks(R),Ht=R.kind===3?n7(be):void 0;sB(be,Ht,Ke,0,be.length,j)}function Ks(R){return R.kind===3?`/*${R.text}*/`:`//${R.text}`}function _u(R,be,Ht){yr();const{pos:Oi,end:yu}=be,Jr=bs(R),br=Oi<0||(Jr&1024)!==0,Ea=Ai||yu<0||(Jr&2048)!==0;br||Gw(be),Ba(),Jr&4096&&!Ai?(Ai=!0,Ht(R),Ai=!1):Ht(R),yr(),Ea||(yb(be.end,!0),Pi&&!Ke.isAtStartOfLine()&&Ke.writeLine()),Ba()}function Dm(R,be){return R=Wl(R),R.parent&&R.parent===Wl(be).parent}function cf(R,be){if(be.pos-1&&Oi.indexOf(be)===yu+1}function yb(R,be){Pi=!1,be?R===0&&(Y!=null&&Y.isDeclarationFile)?Fb(R,gC):Fb(R,s6):R===0&&Fb(R,Ww)}function Ww(R,be,Ht,Oi,yu){EC(R,be)&&s6(R,be,Ht,Oi,yu)}function gC(R,be,Ht,Oi,yu){EC(R,be)||s6(R,be,Ht,Oi,yu)}function kb(R,be){return t.onlyPrintJsDocStyle?Jce(R,be)||XU(R,be):!0}function s6(R,be,Ht,Oi,yu){!Y||!kb(Y.text,R)||(Pi||(Fye(vi(),Ke,yu,R),Pi=!0),xE(R),sB(Y.text,vi(),Ke,R,be,j),xE(be),Oi?Ke.writeLine():Ht===3&&Ke.writeSpace(" "))}function Zm(R){Ai||R===-1||yb(R,!0)}function sp(R){Pc(R,l6)}function l6(R,be,Ht,Oi){!Y||!kb(Y.text,R)||(Ke.isAtStartOfLine()||Ke.writeSpace(" "),xE(R),sB(Y.text,vi(),Ke,R,be,j),xE(be),Oi&&Ke.writeLine())}function Up(R,be,Ht){Ai||(yr(),Pc(R,be?l6:Ht?lp:N5),Ba())}function lp(R,be,Ht){Y&&(xE(R),sB(Y.text,vi(),Ke,R,be,j),xE(be),Ht===2&&Ke.writeLine())}function N5(R,be,Ht,Oi){Y&&(xE(R),sB(Y.text,vi(),Ke,R,be,j),xE(be),Oi?Ke.writeLine():Ke.writeSpace(" "))}function Fb(R,be){Y&&(Ni===-1||R!==Ni)&&(dz(R)?D4(be):NO(Y.text,R,be,R))}function Pc(R,be){Y&&(ji===-1||R!==ji&&R!==xn)&&PO(Y.text,R,be)}function dz(R){return an!==void 0&&Cr(an).nodePos===R}function D4(R){if(!Y)return;const be=Cr(an).detachedCommentEndPos;an.length-1?an.pop():an=void 0,NO(Y.text,be,R,be)}function Gw(R){const be=Y&&Sye(Y.text,vi(),Ke,j1,R,j,Ai);be&&(an?an.push(be):an=[be])}function j1(R,be,Ht,Oi,yu,Jr){!Y||!kb(Y.text,Oi)||(xE(Oi),sB(R,be,Ht,Oi,yu,Jr),xE(yu))}function EC(R,be){return!!Y&&c0e(Y.text,R,be)}function Ab(R){return R.parsedSourceMap===void 0&&R.sourceMapText!==void 0&&(R.parsedSourceMap=Wde(R.sourceMapText)||!1),R.parsedSourceMap||void 0}function sF(R,be){const Ht=je(3,R,be);Jw(be),Ht(R,be),x4(be)}function Jw(R){const be=bs(R),Ht=Lv(R);if(Gse(R)){H.assertIsDefined(R.parent,"UnparsedNodes must have parent pointers");const Oi=Ab(R.parent);Oi&&St&&St.appendSourceMap(Ke.getLine(),Ke.getColumn(),Oi,R.parent.sourceMapPath,R.parent.getLineAndCharacterOfPosition(R.pos),R.parent.getLineAndCharacterOfPosition(R.end))}else{const Oi=Ht.source||It;R.kind!==359&&!(be&32)&&Ht.pos>=0&&c6(Ht.source||It,Ol(Oi,Ht.pos)),be&128&&(st=!0)}}function x4(R){const be=bs(R),Ht=Lv(R);Gse(R)||(be&128&&(st=!1),R.kind!==359&&!(be&64)&&Ht.end>=0&&c6(Ht.source||It,Ht.end))}function Ol(R,be){return R.skipTrivia?R.skipTrivia(be):gs(R.text,be)}function xE(R){if(st||pg(R)||d6(It))return;const{line:be,character:Ht}=s0(It,R);St.addMapping(Ke.getLine(),Ke.getColumn(),ei,be,Ht,void 0)}function c6(R,be){if(R!==It){const Ht=It,Oi=ei;_C(R),xE(be),$w(Ht,Oi)}else xE(be)}function v3(R,be,Ht,Oi,yu){if(st||R&&Dq(R))return yu(be,Ht,Oi);const Jr=R&&R.emitNode,br=Jr&&Jr.flags||0,Ea=Jr&&Jr.tokenSourceMapRanges&&Jr.tokenSourceMapRanges[be],Ao=Ea&&Ea.source||It;return Oi=Ol(Ao,Ea?Ea.pos:Oi),!(br&256)&&Oi>=0&&c6(Ao,Oi),Oi=yu(be,Ht,Oi),Ea&&(Oi=Ea.end),!(br&512)&&Oi>=0&&c6(Ao,Oi),Oi}function _C(R){if(!st){if(It=R,R===ht){ei=Ut;return}d6(R)||(ei=St.addSource(R.fileName),t.inlineSources&&St.setSourceContent(ei,R.text),ht=R,Ut=ei)}}function $w(R,be){It=R,ei=be}function d6(R){return Ml(R.fileName,".json")}}function lzt(){const t=[];return t[1024]=["{","}"],t[2048]=["(",")"],t[4096]=["<",">"],t[8192]=["[","]"],t}function czt(t){return T7e[t&15360][0]}function dzt(t){return T7e[t&15360][1]}function hzt(t,u,s,d){u(t)}function fzt(t,u,s,d){u(t,s.select(d))}function mzt(t,u,s,d){u(t,s)}function pzt(t,u){return t.length===1?hzt:typeof u=="object"?fzt:mzt}var T7e,DQ,f1e,X2,m1e,EH,gzt=o({"src/compiler/emitter.ts"(){Bo(),Bo(),Wy(),T7e=lzt(),DQ={hasGlobalName:ho,getReferencedExportContainer:ho,getReferencedImportDeclaration:ho,getReferencedDeclarationWithCollidingName:ho,isDeclarationWithCollidingName:ho,isValueAliasDeclaration:ho,isReferencedAliasDeclaration:ho,isTopLevelValueImportEqualsWithEntityName:ho,getNodeCheckFlags:ho,isDeclarationVisible:ho,isLateBound:t=>!1,collectLinkedAliases:ho,isImplementationOfOverload:ho,isRequiredInitializedParameter:ho,isOptionalUninitializedParameterProperty:ho,isExpandoFunctionDeclaration:ho,getPropertiesOfContainerFunction:ho,createTypeOfDeclaration:ho,createReturnTypeOfSignatureDeclaration:ho,createTypeOfExpression:ho,createLiteralConstValue:ho,isSymbolAccessible:ho,isEntityNameVisible:ho,getConstantValue:ho,getReferencedValueDeclaration:ho,getReferencedValueDeclarations:ho,getTypeReferenceSerializationKind:ho,isOptionalParameter:ho,moduleExportsSomeValue:ho,isArgumentsLocalBinding:ho,getExternalModuleFileFromDeclaration:ho,getTypeReferenceDirectivesForEntityName:ho,getTypeReferenceDirectivesForSymbol:ho,isLiteralConstDeclaration:ho,getJsxFactoryEntity:ho,getJsxFragmentFactoryEntity:ho,getAllAccessorDeclarations:ho,getSymbolOfExternalModuleSpecifier:ho,isBindingCapturedByNode:ho,getDeclarationStatementsForSourceFile:ho,isImportRequiredByAugmentation:ho,tryFindAmbientModule:ho},f1e=Mh(()=>Gv({})),X2=Mh(()=>Gv({removeComments:!0})),m1e=Mh(()=>Gv({removeComments:!0,neverAsciiEscape:!0})),EH=Mh(()=>Gv({removeComments:!0,omitTrailingSemicolon:!0}))}});function xQ(t,u,s){if(!t.getDirectories||!t.readDirectory)return;const d=new Map,f=L1(s);return{useCaseSensitiveFileNames:s,fileExists:z,readFile:(ne,ve)=>t.readFile(ne,ve),directoryExists:t.directoryExists&&j,getDirectories:K,readDirectory:Y,createDirectory:t.createDirectory&&J,writeFile:t.writeFile&&M,addOrDeleteFileOrDirectory:se,addOrDeleteFile:ge,clearCache:Ce,realpath:t.realpath&&oe};function p(ne){return J0(ne,u,f)}function E(ne){return d.get(zd(ne))}function v(ne){const ve=E(lr(ne));return ve&&(ve.sortedAndCanonicalizedFiles||(ve.sortedAndCanonicalizedFiles=ve.files.map(f).sort(),ve.sortedAndCanonicalizedDirectories=ve.directories.map(f).sort()),ve)}function b(ne){return Ac($o(ne))}function B(ne,ve){var Se;if(!t.realpath||zd(p(t.realpath(ne)))===ve){const Ne={files:Vt(t.readDirectory(ne,void 0,void 0,["*.*"]),b)||[],directories:t.getDirectories(ne)||[]};return d.set(zd(ve),Ne),Ne}if((Se=t.directoryExists)!=null&&Se.call(t,ne))return d.set(ve,!1),!1}function k(ne,ve){ve=zd(ve);const Se=E(ve);if(Se)return Se;try{return B(ne,ve)}catch{H.assert(!d.has(zd(ve)));return}}function T(ne,ve){return Kl(ne,ve,il,dh)>=0}function M(ne,ve,Se){const Ne=p(ne),pe=v(Ne);return pe&&ae(pe,b(ne),!0),t.writeFile(ne,ve,Se)}function z(ne){const ve=p(ne),Se=v(ve);return Se&&T(Se.sortedAndCanonicalizedFiles,f(b(ne)))||t.fileExists(ne)}function j(ne){const ve=p(ne);return d.has(zd(ve))||t.directoryExists(ne)}function J(ne){const ve=p(ne),Se=v(ve);if(Se){const Ne=b(ne),pe=f(Ne),fe=Se.sortedAndCanonicalizedDirectories;Tt(fe,pe,dh)&&Se.directories.push(Ne)}t.createDirectory(ne)}function K(ne){const ve=p(ne),Se=k(ne,ve);return Se?Se.directories.slice():t.getDirectories(ne)}function Y(ne,ve,Se,Ne,pe){const fe=p(ne),xe=k(ne,fe);let Be;if(xe!==void 0)return Ale(ne,ve,Se,Ne,s,u,pe,Ge,oe);return t.readDirectory(ne,ve,Se,Ne,pe);function Ge(De){const Ke=p(De);if(Ke===fe)return xe||Ae(De,Ke);const Je=k(De,Ke);return Je!==void 0?Je||Ae(De,Ke):bZ}function Ae(De,Ke){if(Be&&Ke===fe)return Be;const Je={files:Vt(t.readDirectory(De,void 0,void 0,["*.*"]),b)||_t,directories:t.getDirectories(De)||_t};return Ke===fe&&(Be=Je),Je}}function oe(ne){return t.realpath?t.realpath(ne):ne}function se(ne,ve){if(E(ve)!==void 0){Ce();return}const Ne=v(ve);if(!Ne)return;if(!t.directoryExists){Ce();return}const pe=b(ne),fe={fileExists:t.fileExists(ve),directoryExists:t.directoryExists(ve)};return fe.directoryExists||T(Ne.sortedAndCanonicalizedDirectories,f(pe))?Ce():ae(Ne,pe,fe.fileExists),fe}function ge(ne,ve,Se){if(Se===1)return;const Ne=v(ve);Ne&&ae(Ne,b(ne),Se===0)}function ae(ne,ve,Se){const Ne=ne.sortedAndCanonicalizedFiles,pe=f(ve);if(Se)Tt(Ne,pe,dh)&&ne.files.push(ve);else{const fe=Kl(Ne,pe,il,dh);if(fe>=0){Ne.splice(fe,1);const xe=ne.files.findIndex(Be=>f(Be)===pe);ne.files.splice(xe,1)}}}function Ce(){d.clear()}}function vQ(t,u,s,d,f){var p;const E=lg(((p=u==null?void 0:u.configFile)==null?void 0:p.extendedSourceFiles)||_t,f);s.forEach((v,b)=>{E.has(b)||(v.projects.delete(t),v.close())}),E.forEach((v,b)=>{const B=s.get(b);B?B.projects.add(t):s.set(b,{projects:new Set([t]),watcher:d(v,b),close:()=>{const k=s.get(b);!k||k.projects.size!==0||(k.watcher.close(),s.delete(b))}})})}function p1e(t,u){u.forEach(s=>{s.projects.delete(t)&&s.close()})}function CQ(t,u,s){t.delete(u)&&t.forEach(({extendedResult:d},f)=>{var p;(p=d.extendedSourceFiles)!=null&&p.some(E=>s(E)===u)&&CQ(t,f,s)})}function utt(t,u,s){const d=new Map(t);cB(u,d,{createNewValue:s,onDeleteValue:fg})}function g1e(t,u,s){const d=t.getMissingFilePaths(),f=lg(d,il,J3);cB(u,f,{createNewValue:s,onDeleteValue:fg})}function _H(t,u,s){cB(t,u,{createNewValue:d,onDeleteValue:jm,onExistingValue:f});function d(p,E){return{watcher:s(p,E),flags:E}}function f(p,E,v){p.flags!==E&&(p.watcher.close(),t.set(v,d(v,E)))}}function DH({watchedDirPath:t,fileOrDirectory:u,fileOrDirectoryPath:s,configFileName:d,options:f,program:p,extraFileExtensions:E,currentDirectory:v,useCaseSensitiveFileNames:b,writeLog:B,toPath:k,getScriptKind:T}){const M=zQ(s);if(!M)return B(`Project: ${d} Detected ignored path: ${u}`),!0;if(s=M,s===t)return!1;if(t7(s)&&!(hke(u,f,E)||Y()))return B(`Project: ${d} Detected file add/remove of non supported extension: ${u}`),!0;if(QFe(u,f.configFile.configFileSpecs,$a(lr(d),v),b,v))return B(`Project: ${d} Detected excluded file: ${u}`),!0;if(!p||y0(f)||f.outDir)return!1;if(e1(s)){if(f.declarationDir)return!1}else if(!jc(s,_B))return!1;const z=_h(s),j=Ha(p)?void 0:Ezt(p)?p.getProgramOrUndefined():p,J=!j&&!Ha(p)?p:void 0;if(K(z+".ts")||K(z+".tsx"))return B(`Project: ${d} Detected output file: ${u}`),!0;return!1;function K(oe){return j?!!j.getSourceFileByPath(oe):J?J.getState().fileInfos.has(oe):!!Le(p,se=>k(se)===oe)}function Y(){if(!T)return!1;switch(T(u)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Bv(f);case 6:return M2(f);case 0:return!1}}}function Ezt(t){return!!t.getState}function L7e(t,u){return t?t.isEmittedFile(u):!1}function E1e(t,u,s,d){g2e(u===2?s:Is);const f={watchFile:(J,K,Y,oe)=>t.watchFile(J,K,Y,oe),watchDirectory:(J,K,Y,oe)=>t.watchDirectory(J,K,(Y&1)!==0,oe)},p=u!==0?{watchFile:z("watchFile"),watchDirectory:z("watchDirectory")}:void 0,E=u===2?{watchFile:T,watchDirectory:M}:p||f,v=u===2?k:iw;return{watchFile:b("watchFile"),watchDirectory:b("watchDirectory")};function b(J){return(K,Y,oe,se,ge,ae)=>{var Ce;return TY(K,J==="watchFile"?se==null?void 0:se.excludeFiles:se==null?void 0:se.excludeDirectories,B(),((Ce=t.getCurrentDirectory)==null?void 0:Ce.call(t))||"")?v(K,oe,se,ge,ae):E[J].call(void 0,K,Y,oe,se,ge,ae)}}function B(){return typeof t.useCaseSensitiveFileNames=="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function k(J,K,Y,oe,se){return s(`ExcludeWatcher:: Added:: ${j(J,K,Y,oe,se,d)}`),{close:()=>s(`ExcludeWatcher:: Close:: ${j(J,K,Y,oe,se,d)}`)}}function T(J,K,Y,oe,se,ge){s(`FileWatcher:: Added:: ${j(J,Y,oe,se,ge,d)}`);const ae=p.watchFile(J,K,Y,oe,se,ge);return{close:()=>{s(`FileWatcher:: Close:: ${j(J,Y,oe,se,ge,d)}`),ae.close()}}}function M(J,K,Y,oe,se,ge){const ae=`DirectoryWatcher:: Added:: ${j(J,Y,oe,se,ge,d)}`;s(ae);const Ce=G0(),ne=p.watchDirectory(J,K,Y,oe,se,ge),ve=G0()-Ce;return s(`Elapsed:: ${ve}ms ${ae}`),{close:()=>{const Se=`DirectoryWatcher:: Close:: ${j(J,Y,oe,se,ge,d)}`;s(Se);const Ne=G0();ne.close();const pe=G0()-Ne;s(`Elapsed:: ${pe}ms ${Se}`)}}}function z(J){return(K,Y,oe,se,ge,ae)=>f[J].call(void 0,K,(...Ce)=>{const ne=`${J==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${Ce[0]} ${Ce[1]!==void 0?Ce[1]:""}:: ${j(K,oe,se,ge,ae,d)}`;s(ne);const ve=G0();Y.call(void 0,...Ce);const Se=G0()-ve;s(`Elapsed:: ${Se}ms ${ne}`)},oe,se,ge,ae)}function j(J,K,Y,oe,se,ge){return`WatchInfo: ${J} ${K} ${JSON.stringify(Y)} ${ge?ge(oe,se):se===void 0?oe:`${oe} ${se}`}`}}function xH(t){const u=t==null?void 0:t.fallbackPolling;return{watchFile:u!==void 0?u:1}}function jm(t){t.watcher.close()}var _1e,D1e,_zt=o({"src/compiler/watchUtilities.ts"(){Bo(),_1e=(t=>(t[t.Update=0]="Update",t[t.RootNamesAndUpdate=1]="RootNamesAndUpdate",t[t.Full=2]="Full",t))(_1e||{}),D1e=(t=>(t[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",t))(D1e||{})}});function N7e(t,u,s="tsconfig.json"){return Ug(t,d=>{const f=cr(d,s);return u(f)?f:void 0})}function bQ(t,u){const s=lr(u),d=Pf(t)?t:cr(s,t);return $o(d)}function P7e(t,u,s){let d;return L(t,p=>{const E=FO(p,u);if(E.pop(),!d){d=E;return}const v=Math.min(d.length,E.length);for(let b=0;b{let E;try{ul("beforeIORead"),E=t(d,u().charset),ul("afterIORead"),Tm("I/O Read","beforeIORead","afterIORead")}catch(v){p&&p(v.message),E=""}return E!==void 0?KV(d,E,f,s):void 0}}function v1e(t,u,s){return(d,f,p,E)=>{try{ul("beforeIOWrite"),nle(d,f,p,t,u,s),ul("afterIOWrite"),Tm("I/O Write","beforeIOWrite","afterIOWrite")}catch(v){E&&E(v.message)}}}function C1e(t,u,s=c1){const d=new Map,f=L1(s.useCaseSensitiveFileNames);function p(k){return d.has(k)?!0:(B.directoryExists||s.directoryExists)(k)?(d.set(k,!0),!0):!1}function E(){return lr($o(s.getExecutingFilePath()))}const v=a5(t),b=s.realpath&&(k=>s.realpath(k)),B={getSourceFile:x1e(k=>B.readFile(k),()=>t,u),getDefaultLibLocation:E,getDefaultLibFileName:k=>cr(E(),zO(k)),writeFile:v1e((k,T,M)=>s.writeFile(k,T,M),k=>(B.createDirectory||s.createDirectory)(k),k=>p(k)),getCurrentDirectory:Mh(()=>s.getCurrentDirectory()),useCaseSensitiveFileNames:()=>s.useCaseSensitiveFileNames,getCanonicalFileName:f,getNewLine:()=>v,fileExists:k=>s.fileExists(k),readFile:k=>s.readFile(k),trace:k=>s.write(k+v),directoryExists:k=>s.directoryExists(k),getEnvironmentVariable:k=>s.getEnvironmentVariable?s.getEnvironmentVariable(k):"",getDirectories:k=>s.getDirectories(k),realpath:b,readDirectory:(k,T,M,z,j)=>s.readDirectory(k,T,M,z,j),createDirectory:k=>s.createDirectory(k),createHash:Lo(s,s.createHash)};return B}function vH(t,u,s){const d=t.readFile,f=t.fileExists,p=t.directoryExists,E=t.createDirectory,v=t.writeFile,b=new Map,B=new Map,k=new Map,T=new Map,M=J=>{const K=u(J),Y=b.get(K);return Y!==void 0?Y!==!1?Y:void 0:z(K,J)},z=(J,K)=>{const Y=d.call(t,K);return b.set(J,Y!==void 0?Y:!1),Y};t.readFile=J=>{const K=u(J),Y=b.get(K);return Y!==void 0?Y!==!1?Y:void 0:!Ml(J,".json")&&!S7e(J)?d.call(t,J):z(K,J)};const j=s?(J,K,Y,oe)=>{const se=u(J),ge=typeof K=="object"?K.impliedNodeFormat:void 0,ae=T.get(ge),Ce=ae==null?void 0:ae.get(se);if(Ce)return Ce;const ne=s(J,K,Y,oe);return ne&&(e1(J)||Ml(J,".json"))&&T.set(ge,(ae||new Map).set(se,ne)),ne}:void 0;return t.fileExists=J=>{const K=u(J),Y=B.get(K);if(Y!==void 0)return Y;const oe=f.call(t,J);return B.set(K,!!oe),oe},v&&(t.writeFile=(J,K,...Y)=>{const oe=u(J);B.delete(oe);const se=b.get(oe);se!==void 0&&se!==K?(b.delete(oe),T.forEach(ge=>ge.delete(oe))):j&&T.forEach(ge=>{const ae=ge.get(oe);ae&&ae.text!==K&&ge.delete(oe)}),v.call(t,J,K,...Y)}),p&&(t.directoryExists=J=>{const K=u(J),Y=k.get(K);if(Y!==void 0)return Y;const oe=p.call(t,J);return k.set(K,!!oe),oe},E&&(t.createDirectory=J=>{const K=u(J);k.delete(K),E.call(t,J)})),{originalReadFile:d,originalFileExists:f,originalDirectoryExists:p,originalCreateDirectory:E,originalWriteFile:v,getSourceFileWithCache:j,readFileWithCache:M}}function rtt(t,u,s){let d;return d=yn(d,t.getConfigFileParsingDiagnostics()),d=yn(d,t.getOptionsDiagnostics(s)),d=yn(d,t.getSyntacticDiagnostics(u,s)),d=yn(d,t.getGlobalDiagnostics(s)),d=yn(d,t.getSemanticDiagnostics(u,s)),c4(t.getCompilerOptions())&&(d=yn(d,t.getDeclarationDiagnostics(u,s))),A8(d||_t)}function att(t,u){let s="";for(const d of t)s+=b1e(d,u);return s}function b1e(t,u){const s=`${Gy(t)} TS${t.code}: ${lE(t.messageText,u.getNewLine())}${u.getNewLine()}`;if(t.file){const{line:d,character:f}=s0(t.file,t.start),p=t.file.fileName;return`${wN(p,u.getCurrentDirectory(),v=>u.getCanonicalFileName(v))}(${d+1},${f+1}): `+s}return s}function ott(t){switch(t){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return H.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function eb(t,u){return u+t+O7e}function stt(t,u,s,d,f,p){const{line:E,character:v}=s0(t,u),{line:b,character:B}=s0(t,u+s),k=s0(t,t.text.length).line,T=b-E>=4;let M=(b+1+"").length;T&&(M=Math.max(j7e.length,M));let z="";for(let j=E;j<=b;j++){z+=p.getNewLine(),T&&E+1s.getCanonicalFileName(b)):t.fileName;let v="";return v+=d(E,"\x1B[96m"),v+=":",v+=d(`${f+1}`,"\x1B[93m"),v+=":",v+=d(`${p+1}`,"\x1B[93m"),v}function z7e(t,u){let s="";for(const d of t){if(d.file){const{file:f,start:p}=d;s+=y1e(f,p,u),s+=" - "}if(s+=eb(Gy(d),ott(d.category)),s+=eb(` TS${d.code}: `,"\x1B[90m"),s+=lE(d.messageText,u.getNewLine()),d.file&&d.code!==F.File_appears_to_be_binary.code&&(s+=u.getNewLine(),s+=stt(d.file,d.start,d.length,"",ott(d.category),u)),d.relatedInformation){s+=u.getNewLine();for(const{file:f,start:p,length:E,messageText:v}of d.relatedInformation)f&&(s+=u.getNewLine(),s+=dtt+y1e(f,p,u),s+=stt(f,p,E,V7e,"\x1B[96m",u)),s+=u.getNewLine(),s+=V7e+lE(v,u.getNewLine())}s+=u.getNewLine()}return s}function lE(t,u,s=0){if(Ja(t))return t;if(t===void 0)return"";let d="";if(s){d+=u;for(let f=0;fWB(p,t,s,d,f,u,E)}}function R7e(t){return Ja(t)?t:$g(t.fileName)}function kQ(t,u,s,d,f){return{nameAndMode:LQ,resolve:(p,E)=>hAe(p,t,s,d,u,f,E)}}function CH(t,u,s,d,f,p,E,v){if(t.length===0)return _t;const b=[],B=new Map,k=v(u,s,d,p,E);for(const T of t){const M=k.nameAndMode.getName(T),z=k.nameAndMode.getMode(T,f),j=dM(M,z);let J=B.get(j);J||B.set(j,J=k.resolve(M,z)),b.push(J)}return b}function S1e(t,u){return FQ(void 0,t,(s,d)=>s&&u(s,d))}function FQ(t,u,s,d){let f;return p(t,u,void 0);function p(E,v,b){if(d){const B=d(E,b);if(B)return B}return L(v,(B,k)=>{if(B&&(f!=null&&f.has(B.sourceFile.path)))return;const T=s(B,b,k);return T||!B?T:((f||(f=new Set)).add(B.sourceFile.path),p(B.commandLine.projectReferences,B.references,B))})}}function AQ(t,u,s){const d=t.configFilePath?lr(t.configFilePath):u;return cr(d,`__lib_node_modules_lookup_${s}__.ts`)}function B1e(t){const u=t.split(".");let s=u[1],d=2;for(;u[d]&&u[d]!=="d";)s+=(d===2?"/":"-")+u[d],d++;return"@typescript/lib-"+s}function ltt(t){const u=$g(t.fileName),s=LY.get(u);return{libName:u,libFileName:s}}function Jv(t){switch(t==null?void 0:t.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function ZB(t){return t.pos!==void 0}function FM(t,u){var s,d,f,p;const E=H.checkDefined(t.getSourceFileByPath(u.file)),{kind:v,index:b}=u;let B,k,T,M;switch(v){case 3:const z=TQ(E,b);if(T=(d=(s=t.getResolvedModule(E,z.text,k1e(E,b)))==null?void 0:s.resolvedModule)==null?void 0:d.packageId,z.pos===-1)return{file:E,packageId:T,text:z.text};B=gs(E.text,z.pos),k=z.end;break;case 4:({pos:B,end:k}=E.referencedFiles[b]);break;case 5:({pos:B,end:k,resolutionMode:M}=E.typeReferenceDirectives[b]),T=(p=(f=t.getResolvedTypeReferenceDirective(E,$g(E.typeReferenceDirectives[b].fileName),M||E.impliedNodeFormat))==null?void 0:f.resolvedTypeReferenceDirective)==null?void 0:p.packageId;break;case 7:({pos:B,end:k}=E.libReferenceDirectives[b]);break;default:return H.assertNever(v)}return{file:E,pos:B,end:k,packageId:T}}function w1e(t,u,s,d,f,p,E,v,b,B){if(!t||v!=null&&v()||!On(t.getRootFileNames(),u))return!1;let k;if(!On(t.getProjectReferences(),B,j)||t.getSourceFiles().some(M)||t.getMissingFilePaths().some(f))return!1;const T=t.getCompilerOptions();if(!gle(T,s)||t.resolvedLibReferences&&h1(t.resolvedLibReferences,(K,Y)=>E(Y)))return!1;if(T.configFile&&s.configFile)return T.configFile.text===s.configFile.text;return!0;function M(K){return!z(K)||p(K.path)}function z(K){return K.version===d(K.resolvedPath,K.fileName)}function j(K,Y,oe){return a0e(K,Y)&&J(t.getResolvedProjectReferences()[oe],K)}function J(K,Y){if(K){if(kt(k,K))return!0;const se=YB(Y),ge=b(se);return!ge||K.commandLine.options.configFile!==ge.options.configFile||!On(K.commandLine.fileNames,ge.fileNames)?!1:((k||(k=[])).push(K),!L(K.references,(ae,Ce)=>!J(ae,K.commandLine.projectReferences[Ce])))}const oe=YB(Y);return!b(oe)}}function Lk(t){return t.options.configFile?[...t.options.configFile.parseDiagnostics,...t.errors]:t.errors}function bH(t,u,s,d){const f=T1e(t,u,s,d);return typeof f=="object"?f.impliedNodeFormat:f}function T1e(t,u,s,d){switch(p1(d)){case 3:case 99:return jc(t,[".d.mts",".mts",".mjs"])?99:jc(t,[".d.cts",".cts",".cjs"])?1:jc(t,[".d.ts",".ts",".tsx",".js",".jsx"])?f():void 0;default:return}function f(){const p=rH(u,s,d),E=[];p.failedLookupLocations=E,p.affectingLocations=E;const v=aH(t,p);return{impliedNodeFormat:(v==null?void 0:v.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:E,packageJsonScope:v}}}function Dzt(t,u){return t?R8(t.getCompilerOptions(),u,PY):!1}function xzt(t,u,s,d,f,p){return{rootNames:t,options:u,host:s,oldProgram:d,configFileParsingDiagnostics:f,typeScriptVersion:p}}function SQ(t,u,s,d,f){var p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge;const ae=Ha(t)?xzt(t,u,s,d,f):t,{rootNames:Ce,options:ne,configFileParsingDiagnostics:ve,projectReferences:Se,typeScriptVersion:Ne}=ae;let{oldProgram:pe}=ae;const fe=Mh(()=>np("ignoreDeprecations",F.Invalid_value_for_ignoreDeprecations));let xe,Be,Ge,Ae,De,Ke,Je;const ft=new Map;let Ye=wm();const Ve={},We={};let Gt=U7(),Yt,Ie,st,St,It,ei,ht,Ut,Ni,ji;const xn=typeof ne.maxNodeModuleJsDepth=="number"?ne.maxNodeModuleJsDepth:0;let Jn=0;const an=new Map,Pi=new Map;(p=Gn)==null||p.push(Gn.Phase.Program,"createProgram",{configFilePath:ne.configFilePath,rootDir:ne.rootDir},!0),ul("beforeProgram");const Ai=ae.host||M7e(ne),Zu=wQ(Ai);let aa=ne.noLib;const yr=Mh(()=>Ai.getDefaultLibFileName(ne)),Ba=Ai.getDefaultLibLocation?Ai.getDefaultLibLocation():lr(yr()),bt=rB(),jn=Ai.getCurrentDirectory(),Ln=kP(ne),Si=tV(ne,Ln),Dn=new Map;let Cn,tu,oa;const Da=Ai.hasInvalidatedResolutions||cg;Ai.resolveModuleNameLiterals?(oa=Ai.resolveModuleNameLiterals.bind(Ai),tu=(E=Ai.getModuleResolutionCache)==null?void 0:E.call(Ai)):Ai.resolveModuleNames?(oa=(Xe,Dt,oi,Ti,Xi,Rn)=>Ai.resolveModuleNames(Xe.map(I7e),Dt,Rn==null?void 0:Rn.map(I7e),oi,Ti,Xi).map(tn=>tn?tn.extension!==void 0?{resolvedModule:tn}:{resolvedModule:{...tn,extension:y7(tn.resolvedFileName)}}:H7e),tu=(v=Ai.getModuleResolutionCache)==null?void 0:v.call(Ai)):(tu=KB(jn,m4,ne),oa=(Xe,Dt,oi,Ti,Xi)=>CH(Xe,Dt,oi,Ti,Xi,Ai,tu,A1e));let ua;if(Ai.resolveTypeReferenceDirectiveReferences)ua=Ai.resolveTypeReferenceDirectiveReferences.bind(Ai);else if(Ai.resolveTypeReferenceDirectives)ua=(Xe,Dt,oi,Ti,Xi)=>Ai.resolveTypeReferenceDirectives(Xe.map(R7e),Dt,oi,Ti,Xi==null?void 0:Xi.impliedNodeFormat).map(Rn=>({resolvedTypeReferenceDirective:Rn}));else{const Xe=HY(jn,m4,void 0,tu==null?void 0:tu.getPackageJsonInfoCache(),tu==null?void 0:tu.optionsToRedirectsKey);ua=(Dt,oi,Ti,Xi,Rn)=>CH(Dt,oi,Ti,Xi,Rn,Ai,Xe,kQ)}const Ta=Ai.hasInvalidatedLibResolutions||cg;let Yo;if(Ai.resolveLibrary)Yo=Ai.resolveLibrary.bind(Ai);else{const Xe=KB(jn,m4,ne,tu==null?void 0:tu.getPackageJsonInfoCache());Yo=(Dt,oi,Ti)=>KY(Dt,oi,Ti,Ai,Xe)}const bo=new Map;let Qe=new Map,Et=wm(),Mt=!1;const qt=new Map;let Xt;const Pe=Ai.useCaseSensitiveFileNames()?new Map:void 0;let et,gt,ii,me;const ni=!!((b=Ai.useSourceOfProjectReferenceRedirect)!=null&&b.call(Ai))&&!ne.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:vi,fileExists:mt,directoryExists:Ot}=vzt({compilerHost:Ai,getSymlinkCache:b5,useSourceOfProjectReferenceRedirect:ni,toPath:Xu,getResolvedProjectReferences:Ya,getSourceOfProjectReferenceRedirect:ip,forEachResolvedProjectReference:Nc}),Ei=Ai.readFile.bind(Ai);(B=Gn)==null||B.push(Gn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!pe});const $i=Dzt(pe,ne);(k=Gn)==null||k.pop();let Qi;if((T=Gn)==null||T.push(Gn.Phase.Program,"tryReuseStructureFromOldProgram",{}),Qi=as(),(M=Gn)==null||M.pop(),Qi!==2){if(xe=[],Be=[],Se&&(et||(et=Se.map(Bt)),Ce.length&&(et==null||et.forEach((Xe,Dt)=>{if(!Xe)return;const oi=y0(Xe.commandLine.options);if(ni){if(oi||m1(Xe.commandLine.options)===0)for(const Ti of Xe.commandLine.fileNames)He(Ti,{kind:1,index:Dt})}else if(oi)He(wv(oi,".d.ts"),{kind:2,index:Dt});else if(m1(Xe.commandLine.options)===0){const Ti=Mh(()=>kM(Xe.commandLine,!Ai.useCaseSensitiveFileNames()));for(const Xi of Xe.commandLine.fileNames)!e1(Xi)&&!Ml(Xi,".json")&&He(bM(Xi,Xe.commandLine,!Ai.useCaseSensitiveFileNames(),Ti),{kind:2,index:Dt})}}))),(z=Gn)==null||z.push(Gn.Phase.Program,"processRootFiles",{count:Ce.length}),L(Ce,(Xe,Dt)=>nd(Xe,!1,!1,{kind:0,index:Dt})),(j=Gn)==null||j.pop(),Ie??(Ie=Ce.length?VY(ne,Ai):_t),st=U7(),Ie.length){(J=Gn)==null||J.push(Gn.Phase.Program,"processTypeReferences",{count:Ie.length});const Xe=ne.configFilePath?lr(ne.configFilePath):jn,Dt=cr(Xe,QB),oi=wn(Ie,Dt);for(let Ti=0;Ti{nd(R1(Dt),!0,!1,{kind:6,index:oi})})}Xt=ga(eo(qt.entries(),([Xe,Dt])=>Dt===void 0?Xe:void 0)),Ge=oc(xe,Ru).concat(Be),xe=void 0,Be=void 0}if(H.assert(!!Xt),pe&&Ai.onReleaseOldSourceFile){const Xe=pe.getSourceFiles();for(const Dt of Xe){const oi=Ko(Dt.resolvedPath);($i||!oi||oi.impliedNodeFormat!==Dt.impliedNodeFormat||Dt.resolvedPath===Dt.path&&oi.resolvedPath!==Dt.path)&&Ai.onReleaseOldSourceFile(Dt,pe.getCompilerOptions(),!!Ko(Dt.path))}Ai.getParsedCommandLine||pe.forEachResolvedProjectReference(Dt=>{jh(Dt.sourceFile.path)||Ai.onReleaseOldSourceFile(Dt.sourceFile,pe.getCompilerOptions(),!1)})}pe&&Ai.onReleaseParsedCommandLine&&FQ(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Xe,Dt,oi)=>{const Ti=(Dt==null?void 0:Dt.commandLine.projectReferences[oi])||pe.getProjectReferences()[oi],Xi=YB(Ti);gt!=null&>.has(Xu(Xi))||Ai.onReleaseParsedCommandLine(Xi,Xe,pe.getCompilerOptions())}),pe=void 0,It=void 0,ht=void 0,Ni=void 0;const on={getRootFileNames:()=>Ce,getSourceFile:Y0,getSourceFileByPath:Ko,getSourceFiles:()=>Ge,getMissingFilePaths:()=>Xt,getModuleResolutionCache:()=>tu,getFilesByNameMap:()=>qt,getCompilerOptions:()=>ne,getSyntacticDiagnostics:Jp,getOptionsDiagnostics:Nr,getGlobalDiagnostics:Ss,getSemanticDiagnostics:Lc,getCachedSemanticDiagnostics:Il,getSuggestionDiagnostics:tt,getDeclarationDiagnostics:Ri,getBindAndCheckDiagnostics:cl,getProgramDiagnostics:Ka,getTypeChecker:vl,getClassifiableNames:Ku,getCommonSourceDirectory:ca,emit:co,getCurrentDirectory:()=>jn,getNodeCount:()=>vl().getNodeCount(),getIdentifierCount:()=>vl().getIdentifierCount(),getSymbolCount:()=>vl().getSymbolCount(),getTypeCount:()=>vl().getTypeCount(),getInstantiationCount:()=>vl().getInstantiationCount(),getRelationCacheSizes:()=>vl().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Yt,getResolvedTypeReferenceDirectives:()=>Gt,getAutomaticTypeDirectiveNames:()=>Ie,getAutomaticTypeDirectiveResolutions:()=>st,isSourceFileFromExternalLibrary:wl,isSourceFileDefaultLibrary:hd,getSourceFileFromReference:uh,getLibFileFromReference:Oh,sourceFileToPackageName:Qe,redirectTargetsMap:Et,usesUriStyleNodeCoreModules:Mt,resolvedModules:ei,resolvedTypeReferenceDirectiveNames:Ut,resolvedLibReferences:St,getResolvedModule:le,getResolvedTypeReferenceDirective:te,forEachResolvedModule:we,forEachResolvedTypeReferenceDirective:de,getCurrentPackagesMap:()=>ji,typesPackageExists:it,packageBundlesTypes:Ct,isEmittedFile:bg,getConfigFileParsingDiagnostics:ic,getProjectReferences:c0,getResolvedProjectReferences:Ya,getProjectReferenceRedirect:Cl,getResolvedProjectReferenceToRedirect:ql,getResolvedProjectReferenceByPath:jh,forEachResolvedProjectReference:Nc,isSourceOfProjectReferenceRedirect:Jm,emitBuildInfo:vc,fileExists:mt,readFile:Ei,directoryExists:Ot,getSymlinkCache:b5,realpath:(se=Ai.realpath)==null?void 0:se.bind(Ai),useCaseSensitiveFileNames:()=>Ai.useCaseSensitiveFileNames(),getCanonicalFileName:m4,getFileIncludeReasons:()=>Ye,structureIsReused:Qi,writeFile:Fn};return vi(),Yt==null||Yt.forEach(Xe=>{switch(Xe.kind){case 1:return bt.add(ki(Xe.file&&Ko(Xe.file),Xe.fileProcessingReason,Xe.diagnostic,Xe.args||_t));case 0:const{file:Dt,pos:oi,end:Ti}=FM(on,Xe.reason);return bt.add(Rd(Dt,H.checkDefined(oi),H.checkDefined(Ti)-oi,Xe.diagnostic,...Xe.args||_t));case 2:return Xe.diagnostics.forEach(Xi=>bt.add(Xi));default:H.assertNever(Xe)}}),Di(),ul("afterProgram"),Tm("Program","beforeProgram","afterProgram"),(ge=Gn)==null||ge.pop(),on;function le(Xe,Dt,oi){var Ti;return(Ti=ei==null?void 0:ei.get(Xe.path))==null?void 0:Ti.get(Dt,oi)}function te(Xe,Dt,oi){var Ti;return(Ti=Ut==null?void 0:Ut.get(Xe.path))==null?void 0:Ti.get(Dt,oi)}function we(Xe,Dt){je(ei,Xe,Dt)}function de(Xe,Dt){je(Ut,Xe,Dt)}function je(Xe,Dt,oi){var Ti;oi?(Ti=Xe==null?void 0:Xe.get(oi.path))==null||Ti.forEach((Xi,Rn,tn)=>Dt(Xi,Rn,tn,oi.path)):Xe==null||Xe.forEach((Xi,Rn)=>Xi.forEach((tn,bn,kr)=>Dt(tn,bn,kr,Rn)))}function X(){return ji||(ji=new Map,we(({resolvedModule:Xe})=>{Xe!=null&&Xe.packageId&&ji.set(Xe.packageId.name,Xe.extension===".d.ts"||!!ji.get(Xe.packageId.name))}),ji)}function it(Xe){return X().has($Y(Xe))}function Ct(Xe){return!!X().get(Xe)}function ct(Xe){var Dt;(Dt=Xe.resolutionDiagnostics)!=null&&Dt.length&&(Yt??(Yt=[])).push({kind:2,diagnostics:Xe.resolutionDiagnostics})}function Qt(Xe,Dt,oi,Ti){if(Ai.resolveModuleNameLiterals||!Ai.resolveModuleNames)return ct(oi);if(!tu||Id(Dt))return;const Xi=$a(Xe.originalFileName,jn),Rn=lr(Xi),tn=Sn(Xe),bn=tu.getFromNonRelativeNameCache(Dt,Ti,Rn,tn);bn&&ct(bn)}function Li(Xe,Dt,oi){var Ti,Xi;if(!Xe.length)return _t;const Rn=$a(Dt.originalFileName,jn),tn=Sn(Dt);(Ti=Gn)==null||Ti.push(Gn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Rn}),ul("beforeResolveModule");const bn=oa(Xe,Rn,tn,ne,Dt,oi);return ul("afterResolveModule"),Tm("ResolveModule","beforeResolveModule","afterResolveModule"),(Xi=Gn)==null||Xi.pop(),bn}function Ui(Xe,Dt,oi){var Ti,Xi;if(!Xe.length)return[];const Rn=Ja(Dt)?void 0:Dt,tn=Ja(Dt)?Dt:$a(Dt.originalFileName,jn),bn=Rn&&Sn(Rn);(Ti=Gn)==null||Ti.push(Gn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:tn}),ul("beforeResolveTypeReference");const kr=ua(Xe,tn,bn,ne,Rn,oi);return ul("afterResolveTypeReference"),Tm("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Xi=Gn)==null||Xi.pop(),kr}function Sn(Xe){const Dt=ql(Xe.originalFileName);if(Dt||!e1(Xe.originalFileName))return Dt;const oi=du(Xe.path);if(oi)return oi;if(!Ai.realpath||!ne.preserveSymlinks||!Xe.originalFileName.includes(o_))return;const Ti=Xu(Ai.realpath(Xe.originalFileName));return Ti===Xe.path?void 0:du(Ti)}function du(Xe){const Dt=ip(Xe);if(Ja(Dt))return ql(Dt);if(Dt)return Nc(oi=>{const Ti=y0(oi.commandLine.options);if(Ti)return Xu(Ti)===Xe?oi:void 0})}function Ru(Xe,Dt){return nl(pr(Xe),pr(Dt))}function pr(Xe){if(GE(Ba,Xe.fileName,!1)){const Dt=Ac(Xe.fileName);if(Dt==="lib.d.ts"||Dt==="lib.es6.d.ts")return 0;const oi=D8(yN(Dt,"lib."),".d.ts"),Ti=YV.indexOf(oi);if(Ti!==-1)return Ti+1}return YV.length+2}function Xu(Xe){return J0(Xe,jn,m4)}function ca(){if(De===void 0){const Xe=ti(Ge,Dt=>p7(Dt,on));De=yM(ne,()=>qi(Xe,Dt=>Dt.isDeclarationFile?void 0:Dt.fileName),jn,m4,Dt=>Ee(Xe,Dt))}return De}function Ku(){var Xe;if(!Je){vl(),Je=new Set;for(const Dt of Ge)(Xe=Dt.classifiableNames)==null||Xe.forEach(oi=>Je.add(oi))}return Je}function ja(Xe,Dt){if(Qi===0&&!Dt.ambientModuleNames.length)return Li(Xe,Dt,void 0);let oi,Ti,Xi;const Rn=H7e,tn=pe&&pe.getSourceFile(Dt.fileName);for(let bu=0;bu{const Ti=(Dt?Dt.commandLine.projectReferences:Se)[oi],Xi=Bt(Ti);return Xe?!Xi||Xi.sourceFile!==Xe.sourceFile||!On(Xe.commandLine.fileNames,Xi.commandLine.fileNames):Xi!==void 0},(Xe,Dt)=>{const oi=Dt?jh(Dt.sourceFile.path).commandLine.projectReferences:Se;return!On(Xe,oi,a0e)})}function as(){var Xe;if(!pe)return 0;const Dt=pe.getCompilerOptions();if(UU(Dt,ne))return 0;const oi=pe.getRootFileNames();if(!On(oi,Ce)||!Ir())return 0;Se&&(et=Se.map(Bt));const Ti=[],Xi=[];if(Qi=2,pe.getMissingFilePaths().some(Cu=>Ai.fileExists(Cu)))return 0;const Rn=pe.getSourceFiles();let tn;(Cu=>{Cu[Cu.Exists=0]="Exists",Cu[Cu.Modified=1]="Modified"})(tn||(tn={}));const bn=new Map;for(const Cu of Rn){const bu=Fo(Cu.fileName,tu,Ai,ne);let Eu=Ai.getSourceFileByPath?Ai.getSourceFileByPath(Cu.fileName,Cu.resolvedPath,bu,void 0,$i):Ai.getSourceFile(Cu.fileName,bu,void 0,$i);if(!Eu)return 0;Eu.packageJsonLocations=(Xe=bu.packageJsonLocations)!=null&&Xe.length?bu.packageJsonLocations:void 0,Eu.packageJsonScope=bu.packageJsonScope,H.assert(!Eu.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let sa;if(Cu.redirectInfo){if(Eu!==Cu.redirectInfo.unredirected)return 0;sa=!1,Eu=Cu}else if(pe.redirectTargetsMap.has(Cu.path)){if(Eu!==Cu)return 0;sa=!1}else sa=Eu!==Cu;Eu.path=Cu.path,Eu.originalFileName=Cu.originalFileName,Eu.resolvedPath=Cu.resolvedPath,Eu.fileName=Cu.fileName;const p0=pe.sourceFileToPackageName.get(Cu.path);if(p0!==void 0){const o0=bn.get(p0),Gf=sa?1:0;if(o0!==void 0&&Gf===1||o0===1)return 0;bn.set(p0,Gf)}if(sa)Cu.impliedNodeFormat!==Eu.impliedNodeFormat?Qi=1:On(Cu.libReferenceDirectives,Eu.libReferenceDirectives,S0)?Cu.hasNoDefaultLib!==Eu.hasNoDefaultLib?Qi=1:On(Cu.referencedFiles,Eu.referencedFiles,S0)?(Bd(Eu),On(Cu.imports,Eu.imports,ud)&&On(Cu.moduleAugmentations,Eu.moduleAugmentations,ud)?(Cu.flags&12582912)!==(Eu.flags&12582912)?Qi=1:On(Cu.typeReferenceDirectives,Eu.typeReferenceDirectives,S0)||(Qi=1):Qi=1):Qi=1:Qi=1,Xi.push(Eu);else if(Da(Cu.path))Qi=1,Xi.push(Eu);else for(const o0 of Cu.ambientModuleNames)ft.set(o0,Cu.fileName);Ti.push(Eu)}if(Qi!==2)return Qi;for(const Cu of Xi){const bu=ctt(Cu),Eu=ja(bu,Cu);(ht??(ht=new Map)).set(Cu.path,Eu),s0e(bu,Cu,Eu,(eC,t6)=>pe.getResolvedModule(Cu,eC,t6),kbe,yH)&&(Qi=1);const p0=Cu.typeReferenceDirectives,o0=wn(p0,Cu);(Ni??(Ni=new Map)).set(Cu.path,o0),s0e(p0,Cu,o0,(eC,t6)=>pe==null?void 0:pe.getResolvedTypeReferenceDirective(Cu,eC,t6),Fbe,LQ)&&(Qi=1)}if(Qi!==2)return Qi;if(bbe(Dt,ne)||pe.resolvedLibReferences&&h1(pe.resolvedLibReferences,(Cu,bu)=>d3(bu).actual!==Cu.actual))return 1;if(Ai.hasChangedAutomaticTypeDirectiveNames){if(Ai.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Ie=VY(ne,Ai),!On(pe.getAutomaticTypeDirectiveNames(),Ie))return 1;Xt=pe.getMissingFilePaths(),H.assert(Ti.length===pe.getSourceFiles().length);for(const Cu of Ti)qt.set(Cu.path,Cu);return pe.getFilesByNameMap().forEach((Cu,bu)=>{if(!Cu){qt.set(bu,Cu);return}if(Cu.path===bu){pe.isSourceFileFromExternalLibrary(Cu)&&Pi.set(Cu.path,!0);return}qt.set(bu,qt.get(Cu.path))}),Ge=Ti,Ye=pe.getFileIncludeReasons(),Yt=pe.getFileProcessingDiagnostics(),Gt=pe.getResolvedTypeReferenceDirectives(),Ie=pe.getAutomaticTypeDirectiveNames(),st=pe.getAutomaticTypeDirectiveResolutions(),Qe=pe.sourceFileToPackageName,Et=pe.redirectTargetsMap,Mt=pe.usesUriStyleNodeCoreModules,ei=pe.resolvedModules,Ut=pe.resolvedTypeReferenceDirectiveNames,St=pe.resolvedLibReferences,ji=pe.getCurrentPackagesMap(),2}function wo(Xe){return{getPrependNodes:Ul,getCanonicalFileName:m4,getCommonSourceDirectory:on.getCommonSourceDirectory,getCompilerOptions:on.getCompilerOptions,getCurrentDirectory:()=>jn,getSourceFile:on.getSourceFile,getSourceFileByPath:on.getSourceFileByPath,getSourceFiles:on.getSourceFiles,getLibFileFromReference:on.getLibFileFromReference,isSourceFileFromExternalLibrary:wl,getResolvedProjectReferenceToRedirect:ql,getProjectReferenceRedirect:Cl,isSourceOfProjectReferenceRedirect:Jm,getSymlinkCache:b5,writeFile:Xe||Fn,isEmitBlocked:Ho,readFile:Dt=>Ai.readFile(Dt),fileExists:Dt=>{const oi=Xu(Dt);return Ko(oi)?!0:kt(Xt,oi)?!1:Ai.fileExists(Dt)},useCaseSensitiveFileNames:()=>Ai.useCaseSensitiveFileNames(),getBuildInfo:Dt=>{var oi;return(oi=on.getBuildInfo)==null?void 0:oi.call(on,Dt)},getSourceFileFromReference:(Dt,oi)=>on.getSourceFileFromReference(Dt,oi),redirectTargetsMap:Et,getFileIncludeReasons:on.getFileIncludeReasons,createHash:Lo(Ai,Ai.createHash)}}function Fn(Xe,Dt,oi,Ti,Xi,Rn){Ai.writeFile(Xe,Dt,oi,Ti,Xi,Rn)}function vc(Xe){var Dt,oi;H.assert(!y0(ne)),(Dt=Gn)==null||Dt.push(Gn.Phase.Emit,"emitBuildInfo",{},!0),ul("beforeEmit");const Ti=EQ(DQ,wo(Xe),void 0,c1e,!1,!0);return ul("afterEmit"),Tm("Emit","beforeEmit","afterEmit"),(oi=Gn)==null||oi.pop(),Ti}function Ya(){return et}function c0(){return Se}function Ul(){return N1e(Se,(Xe,Dt)=>{var oi;return(oi=et[Dt])==null?void 0:oi.commandLine},Xe=>{const Dt=Xu(Xe),oi=Ko(Dt);return oi?oi.text:qt.has(Dt)?void 0:Ai.readFile(Dt)},Ai)}function wl(Xe){return!!Pi.get(Xe.path)}function hd(Xe){if(!Xe.isDeclarationFile)return!1;if(Xe.hasNoDefaultLib)return!0;if(!ne.noLib)return!1;const Dt=Ai.useCaseSensitiveFileNames()?XA:QA;return ne.lib?Oe(ne.lib,oi=>Dt(Xe.fileName,St.get(oi).actual)):Dt(Xe.fileName,yr())}function vl(){return Ke||(Ke=PAe(on))}function co(Xe,Dt,oi,Ti,Xi,Rn){var tn,bn;(tn=Gn)==null||tn.push(Gn.Phase.Emit,"emit",{path:Xe==null?void 0:Xe.path},!0);const kr=Uc(()=>id(on,Xe,Dt,oi,Ti,Xi,Rn));return(bn=Gn)==null||bn.pop(),kr}function Ho(Xe){return Dn.has(Xu(Xe))}function id(Xe,Dt,oi,Ti,Xi,Rn,tn){if(!tn){const Cu=L1e(Xe,Dt,oi,Ti);if(Cu)return Cu}const bn=vl().getEmitResolver(y0(ne)?void 0:Dt,Ti);ul("beforeEmit");const kr=EQ(bn,wo(oi),Dt,l1e(ne,Rn,Xi),Xi,!1,tn);return ul("afterEmit"),Tm("Emit","beforeEmit","afterEmit"),kr}function Y0(Xe){return Ko(Xu(Xe))}function Ko(Xe){return qt.get(Xe)||void 0}function Tc(Xe,Dt,oi){return A8(Xe?Dt(Xe,oi):ju(on.getSourceFiles(),Ti=>(oi&&oi.throwIfCancellationRequested(),Dt(Ti,oi))))}function Jp(Xe,Dt){return Tc(Xe,dl,Dt)}function Lc(Xe,Dt){return Tc(Xe,Ch,Dt)}function Il(Xe){var Dt;return Xe?(Dt=Ve.perFile)==null?void 0:Dt.get(Xe.path):Ve.allDiagnostics}function cl(Xe,Dt){return sf(Xe,Dt)}function Ka(Xe){var Dt;if(AP(Xe,ne,on))return _t;const oi=bt.getDiagnostics(Xe.fileName);return(Dt=Xe.commentDirectives)!=null&&Dt.length?$(Xe,Xe.commentDirectives,oi).diagnostics:oi}function Ri(Xe,Dt){const oi=on.getCompilerOptions();return!Xe||y0(oi)?fn(Xe,Dt):Tc(Xe,Tu,Dt)}function dl(Xe){return gh(Xe)?(Xe.additionalSyntacticDiagnostics||(Xe.additionalSyntacticDiagnostics=mi(Xe)),Hi(Xe.additionalSyntacticDiagnostics,Xe.parseDiagnostics)):Xe.parseDiagnostics}function Uc(Xe){try{return Xe()}catch(Dt){throw Dt instanceof b8&&(Ke=void 0),Dt}}function Ch(Xe,Dt){return Hi(BQ(sf(Xe,Dt),ne),Ka(Xe))}function sf(Xe,Dt){return uu(Xe,Dt,Ve,Q0)}function Q0(Xe,Dt){return Uc(()=>{if(AP(Xe,ne,on))return _t;const oi=vl();H.assert(!!Xe.bindDiagnostics);const Xi=(Xe.scriptKind===1||Xe.scriptKind===2)&&uV(Xe,ne),Rn=nj(Xe,ne.checkJs),bn=!(!!Xe.checkJsDirective&&Xe.checkJsDirective.enabled===!1)&&(Xe.scriptKind===3||Xe.scriptKind===4||Xe.scriptKind===5||Rn||Xi||Xe.scriptKind===7);let kr=bn?Xe.bindDiagnostics:_t,Cu=bn?oi.getDiagnostics(Xe,Dt):_t;return Rn&&(kr=ti(kr,bu=>NQ.has(bu.code)),Cu=ti(Cu,bu=>NQ.has(bu.code))),Cc(Xe,bn&&!Rn,kr,Cu,Xi?Xe.jsDocDiagnostics:void 0)})}function Cc(Xe,Dt,...oi){var Ti;const Xi=Va(oi);if(!Dt||!((Ti=Xe.commentDirectives)!=null&&Ti.length))return Xi;const{diagnostics:Rn,directives:tn}=$(Xe,Xe.commentDirectives,Xi);for(const bn of tn.getUnusedExpectations())Rn.push(Vbe(Xe,bn.range,F.Unused_ts_expect_error_directive));return Rn}function $(Xe,Dt,oi){const Ti=Bbe(Xe,Dt);return{diagnostics:oi.filter(Rn=>vt(Rn,Ti)===-1),directives:Ti}}function tt(Xe,Dt){return Uc(()=>vl().getSuggestionDiagnostics(Xe,Dt))}function vt(Xe,Dt){const{file:oi,start:Ti}=Xe;if(!oi)return-1;const Xi=$3(oi);let Rn=k8(Xi,Ti).line-1;for(;Rn>=0;){if(Dt.markUsed(Rn))return Rn;const tn=oi.text.slice(Xi[Rn],Xi[Rn+1]).trim();if(tn!==""&&!/^(\s*)\/\/(.*)$/.test(tn))return-1;Rn--}return-1}function mi(Xe){return Uc(()=>{const Dt=[];return oi(Xe,Xe),uM(Xe,oi,Ti),Dt;function oi(bn,kr){switch(kr.kind){case 169:case 172:case 174:if(kr.questionToken===bn)return Dt.push(tn(bn,F.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(kr.type===bn)return Dt.push(tn(bn,F.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(bn.kind){case 273:if(bn.isTypeOnly)return Dt.push(tn(kr,F._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(bn.isTypeOnly)return Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(bn.isTypeOnly)return Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,bf(bn)?"import...type":"export...type")),"skip";break;case 271:return Dt.push(tn(bn,F.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(bn.isExportEquals)return Dt.push(tn(bn,F.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(bn.token===119)return Dt.push(tn(bn,F.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const bu=Uo(120);return H.assertIsDefined(bu),Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,bu)),"skip";case 267:const Eu=bn.flags&32?Uo(145):Uo(144);return H.assertIsDefined(Eu),Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,Eu)),"skip";case 265:return Dt.push(tn(bn,F.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return bn.body?void 0:(Dt.push(tn(bn,F.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const sa=H.checkDefined(Uo(94));return Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,sa)),"skip";case 235:return Dt.push(tn(bn,F.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Dt.push(tn(bn.type,F.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Dt.push(tn(bn.type,F.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:H.fail()}}function Ti(bn,kr){if(Hce(kr)){const Cu=Le(kr.modifiers,g1);Cu&&Dt.push(tn(Cu,F.Decorators_are_not_valid_here))}else if(Ak(kr)&&kr.modifiers){const Cu=Ue(kr.modifiers,g1);if(Cu>=0){if(io(kr)&&!ne.experimentalDecorators)Dt.push(tn(kr.modifiers[Cu],F.Decorators_are_not_valid_here));else if(Wc(kr)){const bu=Ue(kr.modifiers,L7);if(bu>=0){const Eu=Ue(kr.modifiers,rY);if(Cu>bu&&Eu>=0&&Cu=0&&Cu=0&&Dt.push(Es(tn(kr.modifiers[sa],F.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),tn(kr.modifiers[Cu],F.Decorator_used_before_export_here)))}}}}}switch(kr.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(bn===kr.typeParameters)return Dt.push(Rn(bn,F.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(bn===kr.modifiers)return Xi(kr.modifiers,kr.kind===243),"skip";break;case 172:if(bn===kr.modifiers){for(const Cu of bn)Qo(Cu)&&Cu.kind!==126&&Cu.kind!==129&&Dt.push(tn(Cu,F.The_0_modifier_can_only_be_used_in_TypeScript_files,Uo(Cu.kind)));return"skip"}break;case 169:if(bn===kr.modifiers&&Oe(bn,Qo))return Dt.push(Rn(bn,F.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(bn===kr.typeArguments)return Dt.push(Rn(bn,F.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Xi(bn,kr){for(const Cu of bn)switch(Cu.kind){case 87:if(kr)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Dt.push(tn(Cu,F.The_0_modifier_can_only_be_used_in_TypeScript_files,Uo(Cu.kind)));break;case 126:case 95:case 90:case 129:}}function Rn(bn,kr,...Cu){const bu=bn.pos;return Rd(Xe,bu,bn.end-bu,kr,...Cu)}function tn(bn,kr,...Cu){return K4(Xe,bn,kr,...Cu)}})}function fn(Xe,Dt){return uu(Xe,Dt,We,Wu)}function Wu(Xe,Dt){return Uc(()=>{const oi=vl().getEmitResolver(Xe,Dt);return F7e(wo(Is),oi,Xe)||_t})}function uu(Xe,Dt,oi,Ti){var Xi;const Rn=Xe?(Xi=oi.perFile)==null?void 0:Xi.get(Xe.path):oi.allDiagnostics;if(Rn)return Rn;const tn=Ti(Xe,Dt);return Xe?(oi.perFile||(oi.perFile=new Map)).set(Xe.path,tn):oi.allDiagnostics=tn,tn}function Tu(Xe,Dt){return Xe.isDeclarationFile?[]:fn(Xe,Dt)}function Nr(){return A8(Hi(bt.getGlobalDiagnostics(),Vu()))}function Vu(){if(!ne.configFile)return _t;let Xe=bt.getDiagnostics(ne.configFile.fileName);return Nc(Dt=>{Xe=Hi(Xe,bt.getDiagnostics(Dt.sourceFile.fileName))}),Xe}function Ss(){return Ce.length?A8(vl().getGlobalDiagnostics().slice()):_t}function ic(){return ve||_t}function nd(Xe,Dt,oi,Ti){D1($o(Xe),Dt,oi,void 0,Ti)}function S0(Xe,Dt){return Xe.fileName===Dt.fileName}function ud(Xe,Dt){return Xe.kind===80?Dt.kind===80&&Xe.escapedText===Dt.escapedText:Dt.kind===11&&Xe.text===Dt.text}function m0(Xe,Dt){const oi=q.createStringLiteral(Xe),Ti=q.createImportDeclaration(void 0,void 0,oi,void 0);return F7(Ti,2),ks(oi,Ti),ks(Ti,Dt),oi.flags&=-17,Ti.flags&=-17,oi}function Bd(Xe){if(Xe.imports)return;const Dt=gh(Xe),oi=wc(Xe);let Ti,Xi,Rn;if((mg(ne)||oi)&&!Xe.isDeclarationFile){ne.importHelpers&&(Ti=[m0(Hx,Xe)]);const bu=uZ(nZ(ne,Xe),ne);bu&&(Ti||(Ti=[])).push(m0(bu,Xe))}for(const bu of Xe.statements)bn(bu,!1);const tn=Dt&&eZ(ne);(Xe.flags&4194304||tn)&&kr(Xe),Xe.imports=Ti||_t,Xe.moduleAugmentations=Xi||_t,Xe.ambientModuleNames=Rn||_t;return;function bn(bu,Eu){if(aj(bu)){const sa=Y8(bu);sa&&us(sa)&&sa.text&&(!Eu||!Id(sa.text))&&(Vx(bu,!1),Ti=xi(Ti,sa),!Mt&&Jn===0&&!Xe.isDeclarationFile&&(Mt=Pa(sa.text,"node:")))}else if(_c(bu)&&N1(bu)&&(Eu||Yu(bu,128)||Xe.isDeclarationFile)){bu.name.parent=bu;const sa=J4(bu.name);if(oi||Eu&&!Id(sa))(Xi||(Xi=[])).push(bu.name);else if(!Eu){Xe.isDeclarationFile&&(Rn||(Rn=[])).push(sa);const p0=bu.body;if(p0)for(const o0 of p0.statements)bn(o0,!0)}}}function kr(bu){const Eu=/import|require/g;for(;Eu.exec(bu.text)!==null;){const sa=Cu(bu,Eu.lastIndex);tn&&xf(sa,!0)||dm(sa)&&sa.arguments.length>=1&&t0(sa.arguments[0])?(Vx(sa,!1),Ti=xi(Ti,sa.arguments[0])):zx(sa)&&(Vx(sa,!1),Ti=xi(Ti,sa.argument.literal))}}function Cu(bu,Eu){let sa=bu;const p0=o0=>{if(o0.pos<=Eu&&(EuMl(Xi,tn))){oi&&(z2(Xi)?oi(F.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Xe):oi(F.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Xe,"'"+Va(Ln).join("', '")+"'"));return}const Rn=Dt(Xe);if(oi)if(Rn)Jv(Ti)&&Xi===Ai.getCanonicalFileName(Ko(Ti.file).fileName)&&oi(F.A_file_cannot_have_a_reference_to_itself);else{const tn=Cl(Xe);tn?oi(F.Output_file_0_has_not_been_built_from_source_file_1,tn,Xe):oi(F.File_0_not_found,Xe)}return Rn}else{const Xi=ne.allowNonTsExtensions&&Dt(Xe);if(Xi)return Xi;if(oi&&ne.allowNonTsExtensions){oi(F.File_0_not_found,Xe);return}const Rn=L(Ln[0],tn=>Dt(Xe+tn));return oi&&!Rn&&oi(F.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Xe,"'"+Va(Ln).join("', '")+"'"),Rn}}function D1(Xe,Dt,oi,Ti,Xi){h4(Xe,Rn=>ba(Rn,Dt,oi,Xi,Ti),(Rn,...tn)=>In(void 0,Xi,Rn,tn),Xi)}function He(Xe,Dt){return D1(Xe,!1,!1,void 0,Dt)}function di(Xe,Dt,oi){!Jv(oi)&&Oe(Ye.get(Dt.path),Jv)?In(Dt,oi,F.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Dt.fileName,Xe]):In(Dt,oi,F.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Xe,Dt.fileName])}function Mn(Xe,Dt,oi,Ti,Xi,Rn,tn){var bn;const kr=a_.createRedirectedSourceFile({redirectTarget:Xe,unredirected:Dt});return kr.fileName=oi,kr.path=Ti,kr.resolvedPath=Xi,kr.originalFileName=Rn,kr.packageJsonLocations=(bn=tn.packageJsonLocations)!=null&&bn.length?tn.packageJsonLocations:void 0,kr.packageJsonScope=tn.packageJsonScope,Pi.set(Ti,Jn>0),kr}function ba(Xe,Dt,oi,Ti,Xi){var Rn,tn;(Rn=Gn)==null||Rn.push(Gn.Phase.Program,"findSourceFile",{fileName:Xe,isDefaultLib:Dt||void 0,fileIncludeKind:lU[Ti.kind]});const bn=To(Xe,Dt,oi,Ti,Xi);return(tn=Gn)==null||tn.pop(),bn}function Fo(Xe,Dt,oi,Ti){const Xi=T1e($a(Xe,jn),Dt==null?void 0:Dt.getPackageJsonInfoCache(),oi,Ti),Rn=Os(Ti),tn=Qj(Ti);return typeof Xi=="object"?{...Xi,languageVersion:Rn,setExternalModuleIndicator:tn,jsDocParsingMode:oi.jsDocParsingMode}:{languageVersion:Rn,impliedNodeFormat:Xi,setExternalModuleIndicator:tn,jsDocParsingMode:oi.jsDocParsingMode}}function To(Xe,Dt,oi,Ti,Xi){var Rn;const tn=Xu(Xe);if(ni){let Eu=ip(tn);if(!Eu&&Ai.realpath&&ne.preserveSymlinks&&e1(Xe)&&Xe.includes(o_)){const sa=Xu(Ai.realpath(Xe));sa!==tn&&(Eu=ip(sa))}if(Eu){const sa=Ja(Eu)?ba(Eu,Dt,oi,Ti,Xi):void 0;return sa&&fc(sa,tn,void 0),sa}}const bn=Xe;if(qt.has(tn)){const Eu=qt.get(tn);if(nc(Eu||void 0,Ti),Eu&&ne.forceConsistentCasingInFileNames!==!1){const sa=Eu.fileName;Xu(sa)!==Xu(Xe)&&(Xe=Cl(Xe)||Xe);const o0=Fse(sa,jn),Gf=Fse(Xe,jn);o0!==Gf&&di(Xe,Eu,Ti)}return Eu&&Pi.get(Eu.path)&&Jn===0?(Pi.set(Eu.path,!1),ne.noResolve||(f4(Eu,Dt),c3(Eu)),ne.noLib||Wf(Eu),an.set(Eu.path,!1),Vh(Eu)):Eu&&an.get(Eu.path)&&JnIn(void 0,Ti,F.Cannot_read_file_0_Colon_1,[Xe,Eu]),$i);if(Xi){const Eu=Px(Xi),sa=bo.get(Eu);if(sa){const p0=Mn(sa,bu,Xe,tn,Xu(Xe),bn,Cu);return Et.add(sa.path,Xe),fc(p0,tn,kr),nc(p0,Ti),Qe.set(tn,ZU(Xi)),Be.push(p0),p0}else bu&&(bo.set(Eu,bu),Qe.set(tn,ZU(Xi)))}if(fc(bu,tn,kr),bu){if(Pi.set(tn,Jn>0),bu.fileName=Xe,bu.path=tn,bu.resolvedPath=Xu(Xe),bu.originalFileName=bn,bu.packageJsonLocations=(Rn=Cu.packageJsonLocations)!=null&&Rn.length?Cu.packageJsonLocations:void 0,bu.packageJsonScope=Cu.packageJsonScope,nc(bu,Ti),Ai.useCaseSensitiveFileNames()){const Eu=$g(tn),sa=Pe.get(Eu);sa?di(Xe,sa,Ti):Pe.set(Eu,bu)}aa=aa||bu.hasNoDefaultLib&&!oi,ne.noResolve||(f4(bu,Dt),c3(bu)),ne.noLib||Wf(bu),Vh(bu),Dt?xe.push(bu):Be.push(bu)}return bu}function nc(Xe,Dt){Xe&&Ye.add(Xe.path,Dt)}function fc(Xe,Dt,oi){oi?(qt.set(oi,Xe),qt.set(Dt,Xe||!1)):qt.set(Dt,Xe)}function Cl(Xe){const Dt=Tl(Xe);return Dt&&bc(Dt,Xe)}function Tl(Xe){if(!(!et||!et.length||e1(Xe)||Ml(Xe,".json")))return ql(Xe)}function bc(Xe,Dt){const oi=y0(Xe.commandLine.options);return oi?wv(oi,".d.ts"):bM(Dt,Xe.commandLine,!Ai.useCaseSensitiveFileNames())}function ql(Xe){ii===void 0&&(ii=new Map,Nc(oi=>{Xu(ne.configFilePath)!==oi.sourceFile.path&&oi.commandLine.fileNames.forEach(Ti=>ii.set(Xu(Ti),oi.sourceFile.path))}));const Dt=ii.get(Xu(Xe));return Dt&&jh(Dt)}function Nc(Xe){return S1e(et,Xe)}function ip(Xe){if(e1(Xe))return me===void 0&&(me=new Map,Nc(Dt=>{const oi=y0(Dt.commandLine.options);if(oi){const Ti=wv(oi,".d.ts");me.set(Xu(Ti),!0)}else{const Ti=Mh(()=>kM(Dt.commandLine,!Ai.useCaseSensitiveFileNames()));L(Dt.commandLine.fileNames,Xi=>{if(!e1(Xi)&&!Ml(Xi,".json")){const Rn=bM(Xi,Dt.commandLine,!Ai.useCaseSensitiveFileNames(),Ti);me.set(Xu(Rn),Xi)}})}})),me.get(Xe)}function Jm(Xe){return ni&&!!ql(Xe)}function jh(Xe){if(gt)return gt.get(Xe)||void 0}function f4(Xe,Dt){L(Xe.referencedFiles,(oi,Ti)=>{D1(bQ(oi.fileName,Xe.fileName),Dt,!1,void 0,{kind:4,file:Xe.path,index:Ti})})}function c3(Xe){const Dt=Xe.typeReferenceDirectives;if(!Dt.length)return;const oi=(Ni==null?void 0:Ni.get(Xe.path))||wn(Dt,Xe),Ti=U7();(Ut??(Ut=new Map)).set(Xe.path,Ti);for(let Xi=0;Xi{const{libName:Ti,libFileName:Xi}=ltt(Dt);if(Xi)nd(R1(Xi),!0,!0,{kind:7,file:Xe.path,index:oi});else{const Rn=D8(yN(Ti,"lib."),".d.ts"),tn=bN(Rn,YV,il),bn=tn?F.Cannot_find_lib_definition_for_0_Did_you_mean_1:F.Cannot_find_lib_definition_for_0,kr=tn?[Ti,tn]:[Ti];(Yt||(Yt=[])).push({kind:0,reason:{kind:7,file:Xe.path,index:oi},diagnostic:bn,args:kr})}})}function m4(Xe){return Ai.getCanonicalFileName(Xe)}function Vh(Xe){var Dt;if(Bd(Xe),Xe.imports.length||Xe.moduleAugmentations.length){const oi=ctt(Xe),Ti=(ht==null?void 0:ht.get(Xe.path))||ja(oi,Xe);H.assert(Ti.length===oi.length);const Xi=(ni?(Dt=Sn(Xe))==null?void 0:Dt.commandLine.options:void 0)||ne,Rn=U7();(ei??(ei=new Map)).set(Xe.path,Rn);for(let tn=0;tnxn,Gf=p0&&!P1e(Xi,bn,Xe)&&!Xi.noResolve&&tnwc(tn)&&!tn.isDeclarationFile);if(ne.isolatedModules||ne.verbatimModuleSyntax)ne.module===0&&Dt<2&&ne.isolatedModules&&_s(F.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ne.preserveConstEnums===!1&&_s(F.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,ne.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(oi&&Dt<2&&ne.module===0){const tn=C2(oi,typeof oi.externalModuleIndicator=="boolean"?oi:oi.externalModuleIndicator);bt.add(Rd(oi,tn.start,tn.length,F.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Xe&&!ne.emitDeclarationOnly){if(ne.module&&!(ne.module===2||ne.module===4))_s(F.Only_amd_and_system_modules_are_supported_alongside_0,ne.out?"out":"outFile","module");else if(ne.module===void 0&&oi){const tn=C2(oi,typeof oi.externalModuleIndicator=="boolean"?oi:oi.externalModuleIndicator);bt.add(Rd(oi,tn.start,tn.length,F.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,ne.out?"out":"outFile"))}}if(M2(ne)&&(p1(ne)===1?_s(F.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):Qq(ne)||_s(F.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),ne.outDir||ne.rootDir||ne.sourceRoot||ne.mapRoot){const tn=ca();ne.outDir&&tn===""&&Ge.some(bn=>WE(bn.fileName)>1)&&_s(F.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}ne.useDefineForClassFields&&Dt===0&&_s(F.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),ne.checkJs&&!Bv(ne)&&bt.add(cc(F.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),ne.emitDeclarationOnly&&(c4(ne)||_s(F.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),ne.noEmit&&_s(F.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),ne.emitDecoratorMetadata&&!ne.experimentalDecorators&&_s(F.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ne.jsxFactory?(ne.reactNamespace&&_s(F.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ne.jsx===4||ne.jsx===5)&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",sM.get(""+ne.jsx)),G7(ne.jsxFactory,Dt)||np("jsxFactory",F.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ne.jsxFactory)):ne.reactNamespace&&!Lm(ne.reactNamespace,Dt)&&np("reactNamespace",F.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ne.reactNamespace),ne.jsxFragmentFactory&&(ne.jsxFactory||_s(F.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ne.jsx===4||ne.jsx===5)&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",sM.get(""+ne.jsx)),G7(ne.jsxFragmentFactory,Dt)||np("jsxFragmentFactory",F.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ne.jsxFragmentFactory)),ne.reactNamespace&&(ne.jsx===4||ne.jsx===5)&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",sM.get(""+ne.jsx)),ne.jsxImportSource&&ne.jsx===2&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",sM.get(""+ne.jsx)),ne.preserveValueImports&&m1(ne)<5&&_s(F.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Ti=m1(ne);ne.verbatimModuleSyntax&&((Ti===2||Ti===3||Ti===4)&&_s(F.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),ne.preserveValueImports&&Xx("preserveValueImports","verbatimModuleSyntax"),ne.importsNotUsedAsValues&&Xx("importsNotUsedAsValues","verbatimModuleSyntax")),ne.allowImportingTsExtensions&&!(ne.noEmit||ne.emitDeclarationOnly)&&np("allowImportingTsExtensions",F.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const Xi=p1(ne);if(ne.resolvePackageJsonExports&&!b7(Xi)&&_s(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),ne.resolvePackageJsonImports&&!b7(Xi)&&_s(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),ne.customConditions&&!b7(Xi)&&_s(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Xi===100&&!Yq(Ti)&&np("moduleResolution",F.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),FN[Ti]&&100<=Ti&&Ti<=199&&!(3<=Xi&&Xi<=99)){const tn=FN[Ti];np("moduleResolution",F.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,tn,tn)}else if(y8[Xi]&&3<=Xi&&Xi<=99&&!(100<=Ti&&Ti<=199)){const tn=y8[Xi];np("module",F.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,tn,tn)}if(!ne.noEmit&&!ne.suppressOutputPathCheck){const tn=wo(),bn=new Set;d1e(tn,kr=>{ne.emitDeclarationOnly||Rn(kr.jsFilePath,bn),Rn(kr.declarationFilePath,bn)})}function Rn(tn,bn){if(tn){const kr=Xu(tn);if(qt.has(kr)){let bu;ne.configFilePath||(bu=ro(void 0,F.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig)),bu=ro(bu,F.Cannot_write_file_0_because_it_would_overwrite_input_file,tn),e6(tn,qq(bu))}const Cu=Ai.useCaseSensitiveFileNames()?kr:$g(kr);bn.has(Cu)?e6(tn,cc(F.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,tn)):bn.add(Cu)}}}function Ci(){const Xe=ne.ignoreDeprecations;if(Xe){if(Xe==="5.0")return new Lp(Xe);fe()}return Lp.zero}function Q(Xe,Dt,oi,Ti){const Xi=new Lp(Xe),Rn=new Lp(Dt),tn=new Lp(Ne||g),bn=Ci(),kr=Rn.compareTo(tn)!==1,Cu=!kr&&bn.compareTo(Xi)===-1;(kr||Cu)&&Ti((bu,Eu,sa)=>{kr?Eu===void 0?oi(bu,Eu,sa,F.Option_0_has_been_removed_Please_remove_it_from_your_configuration,bu):oi(bu,Eu,sa,F.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,bu,Eu):Eu===void 0?oi(bu,Eu,sa,F.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,bu,Dt,Xe):oi(bu,Eu,sa,F.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,bu,Eu,Dt,Xe)})}function Me(){function Xe(Dt,oi,Ti,Xi,...Rn){if(Ti){const tn=ro(void 0,F.Use_0_instead,Ti),bn=ro(tn,Xi,...Rn);h3(!oi,Dt,void 0,bn)}else h3(!oi,Dt,void 0,Xi,...Rn)}Q("5.0","5.5",Xe,Dt=>{ne.target===0&&Dt("target","ES3"),ne.noImplicitUseStrict&&Dt("noImplicitUseStrict"),ne.keyofStringsOnly&&Dt("keyofStringsOnly"),ne.suppressExcessPropertyErrors&&Dt("suppressExcessPropertyErrors"),ne.suppressImplicitAnyIndexErrors&&Dt("suppressImplicitAnyIndexErrors"),ne.noStrictGenericChecks&&Dt("noStrictGenericChecks"),ne.charset&&Dt("charset"),ne.out&&Dt("out",void 0,"outFile"),ne.importsNotUsedAsValues&&Dt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),ne.preserveValueImports&&Dt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function wt(Xe,Dt,oi){function Ti(Xi,Rn,tn,bn,...kr){Um(Dt,oi,bn,...kr)}Q("5.0","5.5",Ti,Xi=>{Xe.prepend&&Xi("prepend")})}function ki(Xe,Dt,oi,Ti){var Xi;let Rn,tn,bn=Jv(Dt)?Dt:void 0;Xe&&((Xi=Ye.get(Xe.path))==null||Xi.forEach(sa)),Dt&&sa(Dt),bn&&(Rn==null?void 0:Rn.length)===1&&(Rn=void 0);const kr=bn&&FM(on,bn),Cu=Rn&&ro(Rn,F.The_file_is_in_the_program_because_Colon),bu=Xe&&Y1e(Xe),Eu=ro(bu?Cu?[Cu,...bu]:bu:Cu,oi,...Ti||_t);return kr&&ZB(kr)?nq(kr.file,kr.pos,kr.end-kr.pos,Eu,tn):qq(Eu,tn);function sa(p0){(Rn||(Rn=[])).push(ehe(on,p0)),!bn&&Jv(p0)?bn=p0:bn!==p0&&(tn=xi(tn,ir(p0))),p0===Dt&&(Dt=void 0)}}function In(Xe,Dt,oi,Ti){(Yt||(Yt=[])).push({kind:1,file:Xe&&Xe.path,fileProcessingReason:Dt,diagnostic:oi,args:Ti})}function tr(Xe,Dt,oi){bt.add(ki(Xe,void 0,Dt,oi))}function ir(Xe){if(Jv(Xe)){const Ti=FM(on,Xe);let Xi;switch(Xe.kind){case 3:Xi=F.File_is_included_via_import_here;break;case 4:Xi=F.File_is_included_via_reference_here;break;case 5:Xi=F.File_is_included_via_type_library_reference_here;break;case 7:Xi=F.File_is_included_via_library_reference_here;break;default:H.assertNever(Xe)}return ZB(Ti)?Rd(Ti.file,Ti.pos,Ti.end-Ti.pos,Xi):void 0}if(!ne.configFile)return;let Dt,oi;switch(Xe.kind){case 0:if(!ne.configFile.configFileSpecs)return;const Ti=$a(Ce[Xe.index],jn),Xi=Q1e(on,Ti);if(Xi){Dt=cq(ne.configFile,"files",Xi),oi=F.File_is_matched_by_files_list_specified_here;break}const Rn=X1e(on,Ti);if(!Rn||!Ja(Rn))return;Dt=cq(ne.configFile,"include",Rn),oi=F.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const tn=H.checkDefined(et==null?void 0:et[Xe.index]),bn=FQ(Se,et,(sa,p0,o0)=>sa===tn?{sourceFile:(p0==null?void 0:p0.sourceFile)||ne.configFile,index:o0}:void 0);if(!bn)return;const{sourceFile:kr,index:Cu}=bn,bu=hj(kr,"references",sa=>Dh(sa.initializer)?sa.initializer:void 0);return bu&&bu.elements.length>Cu?K4(kr,bu.elements[Cu],Xe.kind===2?F.File_is_output_from_referenced_project_specified_here:F.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!ne.types)return;Dt=$m("types",Xe.typeReference),oi=F.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Xe.index!==void 0){Dt=$m("lib",ne.lib[Xe.index]),oi=F.File_is_library_specified_here;break}const Eu=h1(XV.type,(sa,p0)=>sa===Os(ne)?p0:void 0);Dt=Eu?fd("target",Eu):void 0,oi=F.File_is_default_library_for_target_specified_here;break;default:H.assertNever(Xe)}return Dt&&K4(ne.configFile,Dt,oi)}function ha(){const Xe=ne.suppressOutputPathCheck?void 0:f5(ne);FQ(Se,et,(Dt,oi,Ti)=>{const Xi=(oi?oi.commandLine.projectReferences:Se)[Ti],Rn=oi&&oi.sourceFile;if(wt(Xi,Rn,Ti),!Dt){Um(Rn,Ti,F.File_0_not_found,Xi.path);return}const tn=Dt.commandLine.options;if((!tn.composite||tn.noEmit)&&(oi?oi.commandLine.fileNames:Ce).length&&(tn.composite||Um(Rn,Ti,F.Referenced_project_0_must_have_setting_composite_Colon_true,Xi.path),tn.noEmit&&Um(Rn,Ti,F.Referenced_project_0_may_not_disable_emit,Xi.path)),Xi.prepend){const bn=y0(tn);bn?Ai.fileExists(bn)||Um(Rn,Ti,F.Output_file_0_from_project_1_does_not_exist,bn,Xi.path):Um(Rn,Ti,F.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Xi.path)}!oi&&Xe&&Xe===f5(tn)&&(Um(Rn,Ti,F.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Xe,Xi.path),Dn.set(Xu(Xe),!0))})}function os(Xe,Dt,oi,...Ti){let Xi=!0;x1(Rn=>{ys(Rn.initializer)&&J8(Rn.initializer,Xe,tn=>{const bn=tn.initializer;Dh(bn)&&bn.elements.length>Dt&&(bt.add(K4(ne.configFile,bn.elements[Dt],oi,...Ti)),Xi=!1)})}),Xi&&bt.add(cc(oi,...Ti))}function ss(Xe,Dt,oi,...Ti){let Xi=!0;x1(Rn=>{ys(Rn.initializer)&&ta(Rn.initializer,Xe,Dt,void 0,oi,...Ti)&&(Xi=!1)}),Xi&&bt.add(cc(oi,...Ti))}function Rl(Xe,Dt){return J8(d_(),Xe,Dt)}function x1(Xe){return Rl("paths",Xe)}function fd(Xe,Dt){return Rl(Xe,oi=>us(oi.initializer)&&oi.initializer.text===Dt?oi.initializer:void 0)}function $m(Xe,Dt){const oi=d_();return oi&&Zbe(oi,Xe,Dt)}function _s(Xe,Dt,oi,Ti){h3(!0,Dt,oi,Xe,Dt,oi,Ti)}function np(Xe,Dt,...oi){h3(!1,Xe,void 0,Dt,...oi)}function Um(Xe,Dt,oi,...Ti){const Xi=hj(Xe||ne.configFile,"references",Rn=>Dh(Rn.initializer)?Rn.initializer:void 0);Xi&&Xi.elements.length>Dt?bt.add(K4(Xe||ne.configFile,Xi.elements[Dt],oi,...Ti)):bt.add(cc(oi,...Ti))}function h3(Xe,Dt,oi,Ti,...Xi){const Rn=d_();(!Rn||!ta(Rn,Xe,Dt,oi,Ti,...Xi))&&("messageText"in Ti?bt.add(qq(Ti)):bt.add(cc(Ti,...Xi)))}function d_(){return Cn===void 0&&(Cn=J8(ZN(ne.configFile),"compilerOptions",Xe=>ys(Xe.initializer)?Xe.initializer:void 0)||!1),Cn||void 0}function ta(Xe,Dt,oi,Ti,Xi,...Rn){let tn=!1;return J8(Xe,oi,bn=>{"messageText"in Xi?bt.add(Y3(ne.configFile,Dt?bn.name:bn.initializer,Xi)):bt.add(K4(ne.configFile,Dt?bn.name:bn.initializer,Xi,...Rn)),tn=!0},Ti),tn}function Xx(Xe,Dt){const oi=d_();oi?ta(oi,!0,Xe,void 0,F.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Xe,Dt):_s(F.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Xe,Dt)}function e6(Xe,Dt){Dn.set(Xu(Xe),!0),bt.add(Dt)}function bg(Xe){if(ne.noEmit)return!1;const Dt=Xu(Xe);if(Ko(Dt))return!1;const oi=y0(ne);if(oi)return sb(Dt,oi)||sb(Dt,_h(oi)+".d.ts");if(ne.declarationDir&&GE(ne.declarationDir,Dt,jn,!Ai.useCaseSensitiveFileNames()))return!0;if(ne.outDir)return GE(ne.outDir,Dt,jn,!Ai.useCaseSensitiveFileNames());if(jc(Dt,_B)||e1(Dt)){const Ti=_h(Dt);return!!Ko(Ti+".ts")||!!Ko(Ti+".tsx")}return!1}function sb(Xe,Dt){return pv(Xe,Dt,jn,!Ai.useCaseSensitiveFileNames())===0}function b5(){return Ai.getSymlinkCache?Ai.getSymlinkCache():(Ae||(Ae=ble(jn,m4)),Ge&&!Ae.hasProcessedResolutions()&&Ae.setSymlinksFromResolutions(we,de,st),Ae)}}function vzt(t){let u;const s=t.compilerHost.fileExists,d=t.compilerHost.directoryExists,f=t.compilerHost.getDirectories,p=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Is,fileExists:b};t.compilerHost.fileExists=b;let E;return d&&(E=t.compilerHost.directoryExists=z=>d.call(t.compilerHost,z)?(T(z),!0):t.getResolvedProjectReferences()?(u||(u=new Set,t.forEachResolvedProjectReference(j=>{const J=y0(j.commandLine.options);if(J)u.add(lr(t.toPath(J)));else{const K=j.commandLine.options.declarationDir||j.commandLine.options.outDir;K&&u.add(t.toPath(K))}})),M(z,!1)):!1),f&&(t.compilerHost.getDirectories=z=>!t.getResolvedProjectReferences()||d&&d.call(t.compilerHost,z)?f.call(t.compilerHost,z):[]),p&&(t.compilerHost.realpath=z=>{var j;return((j=t.getSymlinkCache().getSymlinkedFiles())==null?void 0:j.get(t.toPath(z)))||p.call(t.compilerHost,z)}),{onProgramCreateComplete:v,fileExists:b,directoryExists:E};function v(){t.compilerHost.fileExists=s,t.compilerHost.directoryExists=d,t.compilerHost.getDirectories=f}function b(z){return s.call(t.compilerHost,z)?!0:!t.getResolvedProjectReferences()||!e1(z)?!1:M(z,!0)}function B(z){const j=t.getSourceOfProjectReferenceRedirect(t.toPath(z));return j!==void 0?Ja(j)?s.call(t.compilerHost,j):!0:void 0}function k(z){const j=t.toPath(z),J=`${j}${rl}`;return U_(u,K=>j===K||Pa(K,J)||Pa(j,`${K}/`))}function T(z){var j;if(!t.getResolvedProjectReferences()||TP(z)||!p||!z.includes(o_))return;const J=t.getSymlinkCache(),K=zd(t.toPath(z));if((j=J.getSymlinkedDirectories())!=null&&j.has(K))return;const Y=$o(p.call(t.compilerHost,z));let oe;if(Y===z||(oe=zd(t.toPath(Y)))===K){J.setSymlinkedDirectory(K,!1);return}J.setSymlinkedDirectory(z,{real:zd(Y),realPath:oe})}function M(z,j){var J;const K=j?ae=>B(ae):ae=>k(ae),Y=K(z);if(Y!==void 0)return Y;const oe=t.getSymlinkCache(),se=oe.getSymlinkedDirectories();if(!se)return!1;const ge=t.toPath(z);return ge.includes(o_)?j&&((J=oe.getSymlinkedFiles())!=null&&J.has(ge))?!0:ie(se.entries(),([ae,Ce])=>{if(!Ce||!Pa(ge,ae))return;const ne=K(ge.replace(ae,Ce.realPath));if(j&&ne){const ve=$a(z,t.compilerHost.getCurrentDirectory());oe.setSymlinkedFile(ge,`${Ce.real}${ve.replace(new RegExp(ae,"i"),"")}`)}return ne})||!1:!1}}function L1e(t,u,s,d){const f=t.getCompilerOptions();if(f.noEmit)return t.getSemanticDiagnostics(u,d),u||y0(f)?PQ:t.emitBuildInfo(s,d);if(!f.noEmitOnError)return;let p=[...t.getOptionsDiagnostics(d),...t.getSyntacticDiagnostics(u,d),...t.getGlobalDiagnostics(d),...t.getSemanticDiagnostics(u,d)];if(p.length===0&&c4(t.getCompilerOptions())&&(p=t.getDeclarationDiagnostics(void 0,d)),!p.length)return;let E;if(!u&&!y0(f)){const v=t.emitBuildInfo(s,d);v.diagnostics&&(p=[...p,...v.diagnostics]),E=v.emittedFiles}return{diagnostics:p,sourceMaps:void 0,emittedFiles:E,emitSkipped:!0}}function BQ(t,u){return ti(t,s=>!s.skippedOn||!u[s.skippedOn])}function wQ(t,u=t){return{fileExists:s=>u.fileExists(s),readDirectory(s,d,f,p,E){return H.assertIsDefined(u.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),u.readDirectory(s,d,f,p,E)},readFile:s=>u.readFile(s),directoryExists:Lo(u,u.directoryExists),getDirectories:Lo(u,u.getDirectories),realpath:Lo(u,u.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||hv,trace:t.trace?s=>t.trace(s):void 0}}function N1e(t,u,s,d){if(!t)return _t;let f;for(let p=0;pd);for(const d of u)d.kind===11&&s.push(d);return s}function TQ({imports:t,moduleAugmentations:u},s){if(s(t.Grey="\x1B[90m",t.Red="\x1B[91m",t.Yellow="\x1B[93m",t.Blue="\x1B[94m",t.Cyan="\x1B[96m",t))(M1e||{}),z1e="\x1B[7m",I1e=" ",O7e="\x1B[0m",j7e="...",dtt=" ",V7e=" ",H7e={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},yH={getName:I7e,getMode:(t,u)=>xg(u,t)},LQ={getName:R7e,getMode:(t,u)=>yQ(t,u==null?void 0:u.impliedNodeFormat)},QB="__inferred type names__.ts",NQ=new Set([F.Cannot_redeclare_block_scoped_variable_0.code,F.A_module_cannot_have_multiple_default_exports.code,F.Another_export_default_is_here.code,F.The_first_export_default_is_here.code,F.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,F.constructor_is_a_reserved_word.code,F.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,F.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode.code,F.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,F.Invalid_use_of_0_in_strict_mode.code,F.A_label_is_not_allowed_here.code,F.with_statements_are_not_allowed_in_strict_mode.code,F.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,F.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,F.A_class_declaration_without_the_default_modifier_must_have_a_name.code,F.A_class_member_cannot_have_the_0_keyword.code,F.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,F.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,F.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,F.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,F.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,F.A_destructuring_declaration_must_have_an_initializer.code,F.A_get_accessor_cannot_have_parameters.code,F.A_rest_element_cannot_contain_a_binding_pattern.code,F.A_rest_element_cannot_have_a_property_name.code,F.A_rest_element_cannot_have_an_initializer.code,F.A_rest_element_must_be_last_in_a_destructuring_pattern.code,F.A_rest_parameter_cannot_have_an_initializer.code,F.A_rest_parameter_must_be_last_in_a_parameter_list.code,F.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,F.A_return_statement_cannot_be_used_inside_a_class_static_block.code,F.A_set_accessor_cannot_have_rest_parameter.code,F.A_set_accessor_must_have_exactly_one_parameter.code,F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,F.An_export_declaration_cannot_have_modifiers.code,F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,F.An_import_declaration_cannot_have_modifiers.code,F.An_object_member_cannot_be_declared_optional.code,F.Argument_of_dynamic_import_cannot_be_spread_element.code,F.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,F.Cannot_redeclare_identifier_0_in_catch_clause.code,F.Catch_clause_variable_cannot_have_an_initializer.code,F.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,F.Classes_can_only_extend_a_single_class.code,F.Classes_may_not_have_a_field_named_constructor.code,F.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code,F.Duplicate_label_0.code,F.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,F.for_await_loops_cannot_be_used_inside_a_class_static_block.code,F.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,F.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,F.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,F.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,F.Jump_target_cannot_cross_function_boundary.code,F.Line_terminator_not_permitted_before_arrow.code,F.Modifiers_cannot_appear_here.code,F.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,F.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,F.Private_identifiers_are_not_allowed_outside_class_bodies.code,F.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,F.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,F.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,F.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,F.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,F.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,F.Trailing_comma_not_allowed.code,F.Variable_declaration_list_cannot_be_empty.code,F._0_and_1_operations_cannot_be_mixed_without_parentheses.code,F._0_expected.code,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,F._0_list_cannot_be_empty.code,F._0_modifier_already_seen.code,F._0_modifier_cannot_appear_on_a_constructor_declaration.code,F._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,F._0_modifier_cannot_appear_on_a_parameter.code,F._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,F._0_modifier_cannot_be_used_here.code,F._0_modifier_must_precede_1_modifier.code,F._0_declarations_can_only_be_declared_inside_a_block.code,F._0_declarations_must_be_initialized.code,F.extends_clause_already_seen.code,F.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,F.Class_constructor_may_not_be_a_generator.code,F.Class_constructor_may_not_be_an_accessor.code,F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.Private_field_0_must_be_declared_in_an_enclosing_class.code,F.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),PQ={diagnostics:_t,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),bzt=o({"src/compiler/builderStatePublic.ts"(){}});function K7e(t,u,s,d,f,p){const E=[],{emitSkipped:v,diagnostics:b}=t.emit(u,B,d,s,f,p);return{outputFiles:E,emitSkipped:v,diagnostics:b};function B(k,T,M){E.push({name:k,writeByteOrderMark:M,text:T})}}var Wp,yzt=o({"src/compiler/builderState.ts"(){Bo(),(t=>{function u(){function pe(fe,xe,Be){const Ge={getKeys:Ae=>xe.get(Ae),getValues:Ae=>fe.get(Ae),keys:()=>fe.keys(),deleteKey:Ae=>{(Be||(Be=new Set)).add(Ae);const De=fe.get(Ae);return De?(De.forEach(Ke=>d(xe,Ke,Ae)),fe.delete(Ae),!0):!1},set:(Ae,De)=>{Be==null||Be.delete(Ae);const Ke=fe.get(Ae);return fe.set(Ae,De),Ke==null||Ke.forEach(Je=>{De.has(Je)||d(xe,Je,Ae)}),De.forEach(Je=>{Ke!=null&&Ke.has(Je)||s(xe,Je,Ae)}),Ge}};return Ge}return pe(new Map,new Map,void 0)}t.createManyToManyPathMap=u;function s(pe,fe,xe){let Be=pe.get(fe);Be||(Be=new Set,pe.set(fe,Be)),Be.add(xe)}function d(pe,fe,xe){const Be=pe.get(fe);return Be!=null&&Be.delete(xe)?(Be.size||pe.delete(fe),!0):!1}function f(pe){return qi(pe.declarations,fe=>{var xe;return(xe=zn(fe))==null?void 0:xe.resolvedPath})}function p(pe,fe){const xe=pe.getSymbolAtLocation(fe);return xe&&f(xe)}function E(pe,fe,xe,Be){return J0(pe.getProjectReferenceRedirect(fe)||fe,xe,Be)}function v(pe,fe,xe){let Be;if(fe.imports&&fe.imports.length>0){const Ke=pe.getTypeChecker();for(const Je of fe.imports){const ft=p(Ke,Je);ft==null||ft.forEach(De)}}const Ge=lr(fe.resolvedPath);if(fe.referencedFiles&&fe.referencedFiles.length>0)for(const Ke of fe.referencedFiles){const Je=E(pe,Ke.fileName,Ge,xe);De(Je)}if(pe.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:Ke})=>{if(!Ke)return;const Je=Ke.resolvedFileName,ft=E(pe,Je,Ge,xe);De(ft)},fe),fe.moduleAugmentations.length){const Ke=pe.getTypeChecker();for(const Je of fe.moduleAugmentations){if(!us(Je))continue;const ft=Ke.getSymbolAtLocation(Je);ft&&Ae(ft)}}for(const Ke of pe.getTypeChecker().getAmbientModules())Ke.declarations&&Ke.declarations.length>1&&Ae(Ke);return Be;function Ae(Ke){if(Ke.declarations)for(const Je of Ke.declarations){const ft=zn(Je);ft&&ft!==fe&&De(ft.resolvedPath)}}function De(Ke){(Be||(Be=new Set)).add(Ke)}}function b(pe,fe){return fe&&!fe.referencedMap==!pe}t.canReuseOldState=b;function B(pe,fe,xe){var Be,Ge,Ae;const De=new Map,Ke=pe.getCompilerOptions(),Je=y0(Ke),ft=Ke.module!==0&&!Je?u():void 0,Ye=ft?u():void 0,Ve=b(ft,fe);pe.getTypeChecker();for(const We of pe.getSourceFiles()){const Gt=H.checkDefined(We.version,"Program intended to be used with Builder should have source files with versions set"),Yt=Ve?(Be=fe.oldSignatures)==null?void 0:Be.get(We.resolvedPath):void 0,Ie=Yt===void 0?Ve?(Ge=fe.fileInfos.get(We.resolvedPath))==null?void 0:Ge.signature:void 0:Yt||void 0;if(ft){const st=v(pe,We,pe.getCanonicalFileName);if(st&&ft.set(We.resolvedPath,st),Ve){const St=(Ae=fe.oldExportedModulesMap)==null?void 0:Ae.get(We.resolvedPath),It=St===void 0?fe.exportedModulesMap.getValues(We.resolvedPath):St||void 0;It&&Ye.set(We.resolvedPath,It)}}De.set(We.resolvedPath,{version:Gt,signature:Ie,affectsGlobalScope:Je?void 0:ne(We)||void 0,impliedFormat:We.impliedNodeFormat})}return{fileInfos:De,referencedMap:ft,exportedModulesMap:Ye,useFileVersionAsSignature:!xe&&!Ve}}t.create=B;function k(pe){pe.allFilesExcludingDefaultLibraryFile=void 0,pe.allFileNames=void 0}t.releaseCache=k;function T(pe,fe,xe,Be,Ge){var Ae,De;const Ke=M(pe,fe,xe,Be,Ge);return(Ae=pe.oldSignatures)==null||Ae.clear(),(De=pe.oldExportedModulesMap)==null||De.clear(),Ke}t.getFilesAffectedBy=T;function M(pe,fe,xe,Be,Ge){const Ae=fe.getSourceFileByPath(xe);return Ae?J(pe,fe,Ae,Be,Ge)?(pe.referencedMap?Ne:Se)(pe,fe,Ae,Be,Ge):[Ae]:_t}t.getFilesAffectedByWithOldState=M;function z(pe,fe,xe){pe.fileInfos.get(xe).signature=fe,(pe.hasCalledUpdateShapeSignature||(pe.hasCalledUpdateShapeSignature=new Set)).add(xe)}t.updateSignatureOfFile=z;function j(pe,fe,xe,Be,Ge){pe.emit(fe,(Ae,De,Ke,Je,ft,Ye)=>{H.assert(e1(Ae),`File extension for signature expected to be dts: Got:: ${Ae}`),Ge(O1e(pe,fe,De,Be,Ye),ft)},xe,!0,void 0,!0)}t.computeDtsSignature=j;function J(pe,fe,xe,Be,Ge,Ae=pe.useFileVersionAsSignature){var De;if((De=pe.hasCalledUpdateShapeSignature)!=null&&De.has(xe.resolvedPath))return!1;const Ke=pe.fileInfos.get(xe.resolvedPath),Je=Ke.signature;let ft;if(!xe.isDeclarationFile&&!Ae&&j(fe,xe,Be,Ge,(Ye,Ve)=>{ft=Ye,ft!==Je&&K(pe,xe,Ve[0].exportedModulesFromDeclarationEmit)}),ft===void 0&&(ft=xe.version,pe.exportedModulesMap&&ft!==Je)){(pe.oldExportedModulesMap||(pe.oldExportedModulesMap=new Map)).set(xe.resolvedPath,pe.exportedModulesMap.getValues(xe.resolvedPath)||!1);const Ye=pe.referencedMap?pe.referencedMap.getValues(xe.resolvedPath):void 0;Ye?pe.exportedModulesMap.set(xe.resolvedPath,Ye):pe.exportedModulesMap.deleteKey(xe.resolvedPath)}return(pe.oldSignatures||(pe.oldSignatures=new Map)).set(xe.resolvedPath,Je||!1),(pe.hasCalledUpdateShapeSignature||(pe.hasCalledUpdateShapeSignature=new Set)).add(xe.resolvedPath),Ke.signature=ft,ft!==Je}t.updateShapeSignature=J;function K(pe,fe,xe){if(!pe.exportedModulesMap)return;(pe.oldExportedModulesMap||(pe.oldExportedModulesMap=new Map)).set(fe.resolvedPath,pe.exportedModulesMap.getValues(fe.resolvedPath)||!1);const Be=Y(xe);Be?pe.exportedModulesMap.set(fe.resolvedPath,Be):pe.exportedModulesMap.deleteKey(fe.resolvedPath)}t.updateExportedModules=K;function Y(pe){let fe;return pe==null||pe.forEach(xe=>f(xe).forEach(Be=>(fe??(fe=new Set)).add(Be))),fe}t.getExportedModules=Y;function oe(pe,fe,xe){const Be=fe.getCompilerOptions();if(y0(Be)||!pe.referencedMap||ne(xe))return se(pe,fe);const Ge=new Set,Ae=[xe.resolvedPath];for(;Ae.length;){const De=Ae.pop();if(!Ge.has(De)){Ge.add(De);const Ke=pe.referencedMap.getValues(De);if(Ke)for(const Je of Ke.keys())Ae.push(Je)}}return ga(eo(Ge.keys(),De=>{var Ke;return((Ke=fe.getSourceFileByPath(De))==null?void 0:Ke.fileName)??De}))}t.getAllDependencies=oe;function se(pe,fe){if(!pe.allFileNames){const xe=fe.getSourceFiles();pe.allFileNames=xe===_t?_t:xe.map(Be=>Be.fileName)}return pe.allFileNames}function ge(pe,fe){const xe=pe.referencedMap.getKeys(fe);return xe?ga(xe.keys()):[]}t.getReferencedByPaths=ge;function ae(pe){for(const fe of pe.statements)if(!tq(fe))return!1;return!0}function Ce(pe){return Oe(pe.moduleAugmentations,fe=>Yg(fe.parent))}function ne(pe){return Ce(pe)||!cm(pe)&&!W4(pe)&&!ae(pe)}function ve(pe,fe,xe){if(pe.allFilesExcludingDefaultLibraryFile)return pe.allFilesExcludingDefaultLibraryFile;let Be;xe&&Ge(xe);for(const Ae of fe.getSourceFiles())Ae!==xe&&Ge(Ae);return pe.allFilesExcludingDefaultLibraryFile=Be||_t,pe.allFilesExcludingDefaultLibraryFile;function Ge(Ae){fe.isSourceFileDefaultLibrary(Ae)||(Be||(Be=[])).push(Ae)}}t.getAllFilesExcludingDefaultLibraryFile=ve;function Se(pe,fe,xe){const Be=fe.getCompilerOptions();return Be&&y0(Be)?[xe]:ve(pe,fe,xe)}function Ne(pe,fe,xe,Be,Ge){if(ne(xe))return ve(pe,fe,xe);const Ae=fe.getCompilerOptions();if(Ae&&(mg(Ae)||y0(Ae)))return[xe];const De=new Map;De.set(xe.resolvedPath,xe);const Ke=ge(pe,xe.resolvedPath);for(;Ke.length>0;){const Je=Ke.pop();if(!De.has(Je)){const ft=fe.getSourceFileByPath(Je);De.set(Je,ft),ft&&J(pe,fe,ft,Be,Ge)&&Ke.push(...ge(pe,ft.resolvedPath))}}return ga(eo(De.values(),Je=>Je))}})(Wp||(Wp={}))}});function Ux(t){let u=1;return t.sourceMap&&(u=u|2),t.inlineSourceMap&&(u=u|4),c4(t)&&(u=u|8),t.declarationMap&&(u=u|16),t.emitDeclarationOnly&&(u=u&24),u}function XB(t,u){const s=u&&(UD(u)?u:Ux(u)),d=UD(t)?t:Ux(t);if(s===d)return 0;if(!s||!d)return d;const f=s^d;let p=0;return f&7&&(p=d&7),f&24&&(p=p|d&24),p}function kzt(t,u){return t===u||t!==void 0&&u!==void 0&&t.size===u.size&&!U_(t,s=>!u.has(s))}function Fzt(t,u){var s,d;const f=Wp.create(t,u,!1);f.program=t;const p=t.getCompilerOptions();f.compilerOptions=p;const E=y0(p);E?p.composite&&(u!=null&&u.outSignature)&&E===y0(u==null?void 0:u.compilerOptions)&&(f.outSignature=u.outSignature&&ftt(p,u.compilerOptions,u.outSignature)):f.semanticDiagnosticsPerFile=new Map,f.changedFilesSet=new Set,f.latestChangedDtsFile=p.composite?u==null?void 0:u.latestChangedDtsFile:void 0;const v=Wp.canReuseOldState(f.referencedMap,u),b=v?u.compilerOptions:void 0,B=v&&u.semanticDiagnosticsPerFile&&!!f.semanticDiagnosticsPerFile&&!oke(p,b),k=p.composite&&(u==null?void 0:u.emitSignatures)&&!E&&!lke(p,u.compilerOptions);v?((s=u.changedFilesSet)==null||s.forEach(J=>f.changedFilesSet.add(J)),!E&&((d=u.affectedFilesPendingEmit)!=null&&d.size)&&(f.affectedFilesPendingEmit=new Map(u.affectedFilesPendingEmit),f.seenAffectedFiles=new Set),f.programEmitPending=u.programEmitPending):f.buildInfoEmitPending=!0;const T=f.referencedMap,M=v?u.referencedMap:void 0,z=B&&!p.skipLibCheck==!b.skipLibCheck,j=z&&!p.skipDefaultLibCheck==!b.skipDefaultLibCheck;if(f.fileInfos.forEach((J,K)=>{let Y,oe;if(!v||!(Y=u.fileInfos.get(K))||Y.version!==J.version||Y.impliedFormat!==J.impliedFormat||!kzt(oe=T&&T.getValues(K),M&&M.getValues(K))||oe&&U_(oe,se=>!f.fileInfos.has(se)&&u.fileInfos.has(se)))htt(f,K);else if(B){const se=t.getSourceFileByPath(K);if(se.isDeclarationFile&&!z||se.hasNoDefaultLib&&!j)return;const ge=u.semanticDiagnosticsPerFile.get(K);ge&&(f.semanticDiagnosticsPerFile.set(K,u.hasReusableDiagnostic?Szt(ge,t):Azt(ge,t)),f.semanticDiagnosticsFromOldState||(f.semanticDiagnosticsFromOldState=new Set),f.semanticDiagnosticsFromOldState.add(K))}if(k){const se=u.emitSignatures.get(K);se&&(f.emitSignatures??(f.emitSignatures=new Map)).set(K,ftt(p,u.compilerOptions,se))}}),v&&h1(u.fileInfos,(J,K)=>f.fileInfos.has(K)?!1:E||J.affectsGlobalScope?!0:(f.buildInfoEmitPending=!0,!1)))Wp.getAllFilesExcludingDefaultLibraryFile(f,t,void 0).forEach(J=>htt(f,J.resolvedPath));else if(b){const J=ske(p,b)?Ux(p):XB(p,b);J!==0&&(E?f.programEmitPending=f.programEmitPending?f.programEmitPending|J:J:(t.getSourceFiles().forEach(K=>{f.changedFilesSet.has(K.resolvedPath)||Z7e(f,K.resolvedPath,J)}),H.assert(!f.seenAffectedFiles||!f.seenAffectedFiles.size),f.seenAffectedFiles=f.seenAffectedFiles||new Set,f.buildInfoEmitPending=!0))}return E&&!f.changedFilesSet.size&&(v&&(f.bundle=u.bundle),Oe(t.getProjectReferences(),J=>!!J.prepend)&&(f.programEmitPending=Ux(p))),f}function htt(t,u){t.changedFilesSet.add(u),t.buildInfoEmitPending=!0,t.programEmitPending=void 0}function ftt(t,u,s){return!!t.declarationMap==!!u.declarationMap?s:Ja(s)?[s]:s[0]}function Azt(t,u){return t.length?Lu(t,s=>{if(Ja(s.messageText))return s;const d=W7e(s.messageText,s.file,u,f=>{var p;return(p=f.repopulateInfo)==null?void 0:p.call(f)});return d===s.messageText?s:{...s,messageText:d}}):t}function W7e(t,u,s,d){const f=d(t);if(f)return{...o0e(u,s,f.moduleReference,f.mode,f.packageName||f.moduleReference),next:mtt(t.next,u,s,d)};const p=mtt(t.next,u,s,d);return p===t.next?t:{...t,next:p}}function mtt(t,u,s,d){return Lu(t,f=>W7e(f,u,s,d))}function Szt(t,u){if(!t.length)return _t;let s;return t.map(f=>{const p=ptt(f,u,d);p.reportsUnnecessary=f.reportsUnnecessary,p.reportsDeprecated=f.reportDeprecated,p.source=f.source,p.skippedOn=f.skippedOn;const{relatedInformation:E}=f;return p.relatedInformation=E?E.length?E.map(v=>ptt(v,u,d)):[]:void 0,p});function d(f){return s??(s=lr($a(f5(u.getCompilerOptions()),u.getCurrentDirectory()))),J0(f,s,u.getCanonicalFileName)}}function ptt(t,u,s){const{file:d}=t,f=d?u.getSourceFileByPath(s(d)):void 0;return{...t,file:f,messageText:Ja(t.messageText)?t.messageText:W7e(t.messageText,f,u,p=>p.info)}}function Bzt(t){Wp.releaseCache(t),t.program=void 0}function wzt(t){const u=y0(t.compilerOptions);return H.assert(!t.changedFilesSet.size||u),{affectedFilesPendingEmit:t.affectedFilesPendingEmit&&new Map(t.affectedFilesPendingEmit),seenEmittedFiles:t.seenEmittedFiles&&new Map(t.seenEmittedFiles),programEmitPending:t.programEmitPending,emitSignatures:t.emitSignatures&&new Map(t.emitSignatures),outSignature:t.outSignature,latestChangedDtsFile:t.latestChangedDtsFile,hasChangedEmitSignature:t.hasChangedEmitSignature,changedFilesSet:u?new Set(t.changedFilesSet):void 0}}function Tzt(t,u){t.affectedFilesPendingEmit=u.affectedFilesPendingEmit,t.seenEmittedFiles=u.seenEmittedFiles,t.programEmitPending=u.programEmitPending,t.emitSignatures=u.emitSignatures,t.outSignature=u.outSignature,t.latestChangedDtsFile=u.latestChangedDtsFile,t.hasChangedEmitSignature=u.hasChangedEmitSignature,u.changedFilesSet&&(t.changedFilesSet=u.changedFilesSet)}function gtt(t,u){H.assert(!u||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==u||!t.semanticDiagnosticsPerFile.has(u.resolvedPath))}function Ett(t,u,s){for(var d,f;;){const{affectedFiles:p}=t;if(p){const B=t.seenAffectedFiles;let k=t.affectedFilesIndex;for(;k{const p=d&7;p?t.affectedFilesPendingEmit.set(f,p):t.affectedFilesPendingEmit.delete(f)})}}function Nzt(t,u){var s;if((s=t.affectedFilesPendingEmit)!=null&&s.size)return h1(t.affectedFilesPendingEmit,(d,f)=>{var p;const E=t.program.getSourceFileByPath(f);if(!E||!p7(E,t.program)){t.affectedFilesPendingEmit.delete(f);return}const v=(p=t.seenEmittedFiles)==null?void 0:p.get(E.resolvedPath);let b=XB(d,v);if(u&&(b=b&24),b)return{affectedFile:E,emitKind:b}})}function _tt(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;const u=H.checkDefined(t.program),s=u.getCompilerOptions();L(u.getSourceFiles(),d=>u.isSourceFileDefaultLibrary(d)&&!AP(d,s,u)&&G7e(t,d.resolvedPath))}}function Pzt(t,u,s,d){if(G7e(t,u.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){_tt(t),Wp.updateShapeSignature(t,H.checkDefined(t.program),u,s,d);return}t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Mzt(t,u,s,d)}function R1e(t,u,s,d){if(G7e(t,u),!t.changedFilesSet.has(u)){const f=H.checkDefined(t.program),p=f.getSourceFileByPath(u);p&&(Wp.updateShapeSignature(t,f,p,s,d,!0),c4(t.compilerOptions)&&Z7e(t,u,t.compilerOptions.declarationMap?24:8))}}function G7e(t,u){return t.semanticDiagnosticsFromOldState?(t.semanticDiagnosticsFromOldState.delete(u),t.semanticDiagnosticsPerFile.delete(u),!t.semanticDiagnosticsFromOldState.size):!0}function Dtt(t,u){const s=H.checkDefined(t.oldSignatures).get(u)||void 0;return H.checkDefined(t.fileInfos.get(u)).signature!==s}function J7e(t,u,s,d){var f;return(f=t.fileInfos.get(u))!=null&&f.affectsGlobalScope?(Wp.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(p=>R1e(t,p.resolvedPath,s,d)),_tt(t),!0):!1}function Mzt(t,u,s,d){var f;if(!t.exportedModulesMap||!t.changedFilesSet.has(u.resolvedPath)||!Dtt(t,u.resolvedPath))return;if(mg(t.compilerOptions)){const E=new Map;E.set(u.resolvedPath,!0);const v=Wp.getReferencedByPaths(t,u.resolvedPath);for(;v.length>0;){const b=v.pop();if(!E.has(b)){if(E.set(b,!0),J7e(t,b,s,d))return;if(R1e(t,b,s,d),Dtt(t,b)){const B=H.checkDefined(t.program).getSourceFileByPath(b);v.push(...Wp.getReferencedByPaths(t,B.resolvedPath))}}}}const p=new Set;(f=t.exportedModulesMap.getKeys(u.resolvedPath))==null||f.forEach(E=>{if(J7e(t,E,s,d))return!0;const v=t.referencedMap.getKeys(E);return v&&U_(v,b=>xtt(t,b,p,s,d))})}function xtt(t,u,s,d,f){var p,E;if(r0(s,u)){if(J7e(t,u,d,f))return!0;R1e(t,u,d,f),(p=t.exportedModulesMap.getKeys(u))==null||p.forEach(v=>xtt(t,v,s,d,f)),(E=t.referencedMap.getKeys(u))==null||E.forEach(v=>!s.has(v)&&R1e(t,v,d,f))}}function $7e(t,u,s){return Hi(zzt(t,u,s),H.checkDefined(t.program).getProgramDiagnostics(u))}function zzt(t,u,s){const d=u.resolvedPath;if(t.semanticDiagnosticsPerFile){const p=t.semanticDiagnosticsPerFile.get(d);if(p)return BQ(p,t.compilerOptions)}const f=H.checkDefined(t.program).getBindAndCheckDiagnostics(u,s);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(d,f),BQ(f,t.compilerOptions)}function U7e(t){return!!y0(t.options||{})}function Izt(t,u){var s,d,f;const p=H.checkDefined(t.program).getCurrentDirectory(),E=lr($a(f5(t.compilerOptions),p)),v=t.latestChangedDtsFile?ae(t.latestChangedDtsFile):void 0,b=[],B=new Map,k=[];if(y0(t.compilerOptions)){const pe=ga(t.fileInfos.entries(),([De,Ke])=>{const Je=ne(De);return Se(De,Je),Ke.impliedFormat?{version:Ke.version,impliedFormat:Ke.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Ke.version}),fe={fileNames:b,fileInfos:pe,root:k,options:Ne(t.compilerOptions),outSignature:t.outSignature,latestChangedDtsFile:v,pendingEmit:t.programEmitPending?t.programEmitPending===Ux(t.compilerOptions)?!1:t.programEmitPending:void 0},{js:xe,dts:Be,commonSourceDirectory:Ge,sourceFiles:Ae}=u;return t.bundle=u={commonSourceDirectory:Ge,sourceFiles:Ae,js:xe||(t.compilerOptions.emitDeclarationOnly||(s=t.bundle)==null?void 0:s.js),dts:Be||(c4(t.compilerOptions)?(d=t.bundle)==null?void 0:d.dts:void 0)},gH(fe,u)}let T,M,z;const j=ga(t.fileInfos.entries(),([pe,fe])=>{var xe,Be;const Ge=ne(pe);Se(pe,Ge),H.assert(b[Ge-1]===Ce(pe));const Ae=(xe=t.oldSignatures)==null?void 0:xe.get(pe),De=Ae!==void 0?Ae||void 0:fe.signature;if(t.compilerOptions.composite){const Ke=t.program.getSourceFileByPath(pe);if(!W4(Ke)&&p7(Ke,t.program)){const Je=(Be=t.emitSignatures)==null?void 0:Be.get(pe);Je!==De&&(z||(z=[])).push(Je===void 0?Ge:[Ge,!Ja(Je)&&Je[0]===De?_t:Je])}}return fe.version===De?fe.affectsGlobalScope||fe.impliedFormat?{version:fe.version,signature:void 0,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}:fe.version:De!==void 0?Ae===void 0?fe:{version:fe.version,signature:De,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}:{version:fe.version,signature:!1,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}});let J;t.referencedMap&&(J=ga(t.referencedMap.keys()).sort(dh).map(pe=>[ne(pe),ve(t.referencedMap.getValues(pe))]));let K;t.exportedModulesMap&&(K=qi(ga(t.exportedModulesMap.keys()).sort(dh),pe=>{var fe;const xe=(fe=t.oldExportedModulesMap)==null?void 0:fe.get(pe);if(xe===void 0)return[ne(pe),ve(t.exportedModulesMap.getValues(pe))];if(xe)return[ne(pe),ve(xe)]}));let Y;if(t.semanticDiagnosticsPerFile)for(const pe of ga(t.semanticDiagnosticsPerFile.keys()).sort(dh)){const fe=t.semanticDiagnosticsPerFile.get(pe);(Y||(Y=[])).push(fe.length?[ne(pe),Ozt(fe,Ce)]:ne(pe))}let oe;if((f=t.affectedFilesPendingEmit)!=null&&f.size){const pe=Ux(t.compilerOptions),fe=new Set;for(const xe of ga(t.affectedFilesPendingEmit.keys()).sort(dh))if(r0(fe,xe)){const Be=t.program.getSourceFileByPath(xe);if(!Be||!p7(Be,t.program))continue;const Ge=ne(xe),Ae=t.affectedFilesPendingEmit.get(xe);(oe||(oe=[])).push(Ae===pe?Ge:Ae===8?[Ge]:[Ge,Ae])}}let se;if(t.changedFilesSet.size)for(const pe of ga(t.changedFilesSet.keys()).sort(dh))(se||(se=[])).push(ne(pe));const ge={fileNames:b,fileInfos:j,root:k,options:Ne(t.compilerOptions),fileIdsList:T,referencedMap:J,exportedModulesMap:K,semanticDiagnosticsPerFile:Y,affectedFilesPendingEmit:oe,changeFileSet:se,emitSignatures:z,latestChangedDtsFile:v};return gH(ge,u);function ae(pe){return Ce($a(pe,p))}function Ce(pe){return h2(JE(E,pe,t.program.getCanonicalFileName))}function ne(pe){let fe=B.get(pe);return fe===void 0&&(b.push(Ce(pe)),B.set(pe,fe=b.length)),fe}function ve(pe){const fe=ga(pe.keys(),ne).sort(nl),xe=fe.join();let Be=M==null?void 0:M.get(xe);return Be===void 0&&((T||(T=[])).push(fe),(M||(M=new Map)).set(xe,Be=T.length)),Be}function Se(pe,fe){const xe=t.program.getSourceFile(pe);if(!t.program.getFileIncludeReasons().get(xe.path).some(De=>De.kind===0))return;if(!k.length)return k.push(fe);const Be=k[k.length-1],Ge=Ha(Be);if(Ge&&Be[1]===fe-1)return Be[1]=fe;if(Ge||k.length===1||Be!==fe-1)return k.push(fe);const Ae=k[k.length-2];return!UD(Ae)||Ae!==Be-1?k.push(fe):(k[k.length-2]=[Ae,fe],k.length=k.length-1)}function Ne(pe){let fe;const{optionsNameMap:xe}=jB();for(const Be of Ns(pe).sort(dh)){const Ge=xe.get(Be.toLowerCase());Ge!=null&&Ge.affectsBuildInfo&&((fe||(fe={}))[Be]=Rzt(Ge,pe[Be],ae))}return fe}}function Rzt(t,u,s){if(t){if(H.assert(t.type!=="listOrElement"),t.type==="list"){const d=u;if(t.element.isFilePath&&d.length)return d.map(s)}else if(t.isFilePath)return s(u)}return u}function Ozt(t,u){return H.assert(!!t.length),t.map(s=>{const d=vtt(s,u);d.reportsUnnecessary=s.reportsUnnecessary,d.reportDeprecated=s.reportsDeprecated,d.source=s.source,d.skippedOn=s.skippedOn;const{relatedInformation:f}=s;return d.relatedInformation=f?f.length?f.map(p=>vtt(p,u)):[]:void 0,d})}function vtt(t,u){const{file:s}=t;return{...t,file:s?u(s.resolvedPath):void 0,messageText:Ja(t.messageText)?t.messageText:q7e(t.messageText)}}function q7e(t){if(t.repopulateInfo)return{info:t.repopulateInfo(),next:Ctt(t.next)};const u=Ctt(t.next);return u===t.next?t:{...t,next:u}}function Ctt(t){return t&&(L(t,(u,s)=>{const d=q7e(u);if(u===d)return;const f=s>0?t.slice(0,s-1):[];f.push(d);for(let p=s+1;p`${b(B)}${vO[B.category]}${B.code}: ${v(B.messageText)}`).join(` +`)),(d.createHash??AN)(s);function v(B){return Ja(B)?B:B===void 0?"":B.next?B.messageText+B.next.map(v).join(` +`):B.messageText}function b(B){return B.file.resolvedPath===u.resolvedPath?`(${B.start},${B.length})`:(E===void 0&&(E=lr(u.resolvedPath)),`${h2(JE(E,B.file.resolvedPath,t.getCanonicalFileName))}(${B.start},${B.length})`)}}function Nk(t,u,s){return(u.createHash??AN)(btt(t,s))}function j1e(t,{newProgram:u,host:s,oldProgram:d,configFileParsingDiagnostics:f}){let p=d&&d.getState();if(p&&u===p.program&&f===u.getConfigFileParsingDiagnostics())return u=void 0,p=void 0,d;const E=Fzt(u,p);u.getBuildInfo=J=>Izt(E,J),u=void 0,d=void 0,p=void 0;const v=()=>E,b=H1e(v,f);return b.getState=v,b.saveEmitState=()=>wzt(E),b.restoreEmitState=J=>Tzt(E,J),b.hasChangedEmitSignature=()=>!!E.hasChangedEmitSignature,b.getAllDependencies=J=>Wp.getAllDependencies(E,H.checkDefined(E.program),J),b.getSemanticDiagnostics=j,b.emit=M,b.releaseProgram=()=>Bzt(E),t===0?b.getSemanticDiagnosticsOfNextAffectedFile=z:t===1?(b.getSemanticDiagnosticsOfNextAffectedFile=z,b.emitNextAffectedFile=k,b.emitBuildInfo=B):ho(),b;function B(J,K){if(E.buildInfoEmitPending){const Y=H.checkDefined(E.program).emitBuildInfo(J||Lo(s,s.writeFile),K);return E.buildInfoEmitPending=!1,Y}return PQ}function k(J,K,Y,oe){var se,ge,ae;let Ce=Ett(E,K,s);const ne=Ux(E.compilerOptions);let ve=Y?ne&24:ne;if(!Ce)if(y0(E.compilerOptions)){if(!E.programEmitPending||(ve=E.programEmitPending,Y&&(ve=ve&24),!ve))return;Ce=E.program}else{const pe=Nzt(E,Y);if(!pe){if(!E.buildInfoEmitPending)return;const fe=E.program,xe=fe.emitBuildInfo(J||Lo(s,s.writeFile),K);return E.buildInfoEmitPending=!1,{result:xe,affected:fe}}({affectedFile:Ce,emitKind:ve}=pe)}let Se;ve&7&&(Se=0),ve&24&&(Se=Se===void 0?1:void 0),Ce===E.program&&(E.programEmitPending=E.changedFilesSet.size?XB(ne,ve):E.programEmitPending?XB(E.programEmitPending,ve):void 0);const Ne=E.program.emit(Ce===E.program?void 0:Ce,T(J,oe),K,Se,oe);if(Ce!==E.program){const pe=Ce;E.seenAffectedFiles.add(pe.resolvedPath),E.affectedFilesIndex!==void 0&&E.affectedFilesIndex++,E.buildInfoEmitPending=!0;const fe=((se=E.seenEmittedFiles)==null?void 0:se.get(pe.resolvedPath))||0;(E.seenEmittedFiles??(E.seenEmittedFiles=new Map)).set(pe.resolvedPath,ve|fe);const xe=((ge=E.affectedFilesPendingEmit)==null?void 0:ge.get(pe.resolvedPath))||ne,Be=XB(xe,ve|fe);Be?(E.affectedFilesPendingEmit??(E.affectedFilesPendingEmit=new Map)).set(pe.resolvedPath,Be):(ae=E.affectedFilesPendingEmit)==null||ae.delete(pe.resolvedPath)}else E.changedFilesSet.clear();return{result:Ne,affected:Ce}}function T(J,K){return c4(E.compilerOptions)?(Y,oe,se,ge,ae,Ce)=>{var ne,ve,Se,Ne;if(e1(Y))if(y0(E.compilerOptions)){if(E.compilerOptions.composite){const fe=pe(E.outSignature,void 0);if(!fe)return;E.outSignature=fe}}else{H.assert((ae==null?void 0:ae.length)===1);let fe;if(!K){const xe=ae[0],Be=E.fileInfos.get(xe.resolvedPath);if(Be.signature===xe.version){const Ge=O1e(E.program,xe,oe,s,Ce);(ne=Ce==null?void 0:Ce.diagnostics)!=null&&ne.length||(fe=Ge),Ge!==xe.version&&(s.storeFilesChangingSignatureDuringEmit&&(E.filesChangingSignature??(E.filesChangingSignature=new Set)).add(xe.resolvedPath),E.exportedModulesMap&&Wp.updateExportedModules(E,xe,xe.exportedModulesFromDeclarationEmit),E.affectedFiles?(((ve=E.oldSignatures)==null?void 0:ve.get(xe.resolvedPath))===void 0&&(E.oldSignatures??(E.oldSignatures=new Map)).set(xe.resolvedPath,Be.signature||!1),Be.signature=Ge):(Be.signature=Ge,(Se=E.oldExportedModulesMap)==null||Se.clear()))}}if(E.compilerOptions.composite){const xe=ae[0].resolvedPath;if(fe=pe((Ne=E.emitSignatures)==null?void 0:Ne.get(xe),fe),!fe)return;(E.emitSignatures??(E.emitSignatures=new Map)).set(xe,fe)}}J?J(Y,oe,se,ge,ae,Ce):s.writeFile?s.writeFile(Y,oe,se,ge,ae,Ce):E.program.writeFile(Y,oe,se,ge,ae,Ce);function pe(fe,xe){const Be=!fe||Ja(fe)?fe:fe[0];if(xe??(xe=Nk(oe,s,Ce)),xe===Be){if(fe===Be)return;Ce?Ce.differsOnlyInMap=!0:Ce={differsOnlyInMap:!0}}else E.hasChangedEmitSignature=!0,E.latestChangedDtsFile=Y;return xe}}:J||Lo(s,s.writeFile)}function M(J,K,Y,oe,se){t===1&>t(E,J);const ge=L1e(b,J,K,Y);if(ge)return ge;if(!J)if(t===1){let ae=[],Ce=!1,ne,ve=[],Se;for(;Se=k(K,Y,oe,se);)Ce=Ce||Se.result.emitSkipped,ne=yn(ne,Se.result.diagnostics),ve=yn(ve,Se.result.emittedFiles),ae=yn(ae,Se.result.sourceMaps);return{emitSkipped:Ce,diagnostics:ne||_t,emittedFiles:ve,sourceMaps:ae}}else Lzt(E,oe);return H.checkDefined(E.program).emit(J,T(K,se),Y,oe,se)}function z(J,K){for(;;){const Y=Ett(E,J,s);let oe;if(Y)if(Y!==E.program){const se=Y;if((!K||!K(se))&&(oe=$7e(E,se,J)),E.seenAffectedFiles.add(se.resolvedPath),E.affectedFilesIndex++,E.buildInfoEmitPending=!0,!oe)continue}else oe=E.program.getSemanticDiagnostics(void 0,J),E.changedFilesSet.clear(),E.programEmitPending=Ux(E.compilerOptions);else return;return{result:oe,affected:Y}}}function j(J,K){gtt(E,J);const Y=H.checkDefined(E.program).getCompilerOptions();if(y0(Y))return H.assert(!E.semanticDiagnosticsPerFile),H.checkDefined(E.program).getSemanticDiagnostics(J,K);if(J)return $7e(E,J,K);for(;z(K););let oe;for(const se of H.checkDefined(E.program).getSourceFiles())oe=yn(oe,$7e(E,se,K));return oe||_t}}function Z7e(t,u,s){var d;const f=((d=t.affectedFilesPendingEmit)==null?void 0:d.get(u))||0;(t.affectedFilesPendingEmit??(t.affectedFilesPendingEmit=new Map)).set(u,f|s)}function Y7e(t){return Ja(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:Ja(t.signature)?t:{version:t.version,signature:t.signature===!1?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function Q7e(t,u){return UD(t)?u:t[1]||8}function X7e(t,u){return t||Ux(u||{})}function e9e(t,u,s){var d,f,p,E;const v=t.program,b=lr($a(u,s.getCurrentDirectory())),B=L1(s.useCaseSensitiveFileNames());let k;const T=(d=v.fileNames)==null?void 0:d.map(j);let M;const z=v.latestChangedDtsFile?J(v.latestChangedDtsFile):void 0;if(U7e(v)){const se=new Map;v.fileInfos.forEach((ge,ae)=>{const Ce=K(ae+1);se.set(Ce,Ja(ge)?{version:ge,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:ge)}),k={fileInfos:se,compilerOptions:v.options?ode(v.options,J):{},latestChangedDtsFile:z,outSignature:v.outSignature,programEmitPending:v.pendingEmit===void 0?void 0:X7e(v.pendingEmit,v.options),bundle:t.bundle}}else{M=(f=v.fileIdsList)==null?void 0:f.map(Ce=>new Set(Ce.map(K)));const se=new Map,ge=(p=v.options)!=null&&p.composite&&!y0(v.options)?new Map:void 0;v.fileInfos.forEach((Ce,ne)=>{const ve=K(ne+1),Se=Y7e(Ce);se.set(ve,Se),ge&&Se.signature&&ge.set(ve,Se.signature)}),(E=v.emitSignatures)==null||E.forEach(Ce=>{if(UD(Ce))ge.delete(K(Ce));else{const ne=K(Ce[0]);ge.set(ne,!Ja(Ce[1])&&!Ce[1].length?[ge.get(ne)]:Ce[1])}});const ae=v.affectedFilesPendingEmit?Ux(v.options||{}):void 0;k={fileInfos:se,compilerOptions:v.options?ode(v.options,J):{},referencedMap:oe(v.referencedMap),exportedModulesMap:oe(v.exportedModulesMap),semanticDiagnosticsPerFile:v.semanticDiagnosticsPerFile&&lg(v.semanticDiagnosticsPerFile,Ce=>K(UD(Ce)?Ce:Ce[0]),Ce=>UD(Ce)?_t:Ce[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:v.affectedFilesPendingEmit&&lg(v.affectedFilesPendingEmit,Ce=>K(UD(Ce)?Ce:Ce[0]),Ce=>Q7e(Ce,ae)),changedFilesSet:new Set(Vt(v.changeFileSet,K)),latestChangedDtsFile:z,emitSignatures:ge!=null&&ge.size?ge:void 0}}return{getState:()=>k,saveEmitState:Is,restoreEmitState:Is,getProgram:ho,getProgramOrUndefined:hv,releaseProgram:Is,getCompilerOptions:()=>k.compilerOptions,getSourceFile:ho,getSourceFiles:ho,getOptionsDiagnostics:ho,getGlobalDiagnostics:ho,getConfigFileParsingDiagnostics:ho,getSyntacticDiagnostics:ho,getDeclarationDiagnostics:ho,getSemanticDiagnostics:ho,emit:ho,getAllDependencies:ho,getCurrentDirectory:ho,emitNextAffectedFile:ho,getSemanticDiagnosticsOfNextAffectedFile:ho,emitBuildInfo:ho,close:Is,hasChangedEmitSignature:cg};function j(se){return J0(se,b,B)}function J(se){return $a(se,b)}function K(se){return T[se-1]}function Y(se){return M[se-1]}function oe(se){if(!se)return;const ge=Wp.createManyToManyPathMap();return se.forEach(([ae,Ce])=>ge.set(K(ae),Y(Ce))),ge}}function V1e(t,u,s){const d=lr($a(u,s.getCurrentDirectory())),f=L1(s.useCaseSensitiveFileNames()),p=new Map;let E=0;const v=[];return t.fileInfos.forEach((b,B)=>{const k=J0(t.fileNames[B],d,f),T=Ja(b)?b:b.version;if(p.set(k,T),Et().program,releaseProgram:()=>t().program=void 0,getCompilerOptions:()=>t().compilerOptions,getSourceFile:d=>s().getSourceFile(d),getSourceFiles:()=>s().getSourceFiles(),getOptionsDiagnostics:d=>s().getOptionsDiagnostics(d),getGlobalDiagnostics:d=>s().getGlobalDiagnostics(d),getConfigFileParsingDiagnostics:()=>u,getSyntacticDiagnostics:(d,f)=>s().getSyntacticDiagnostics(d,f),getDeclarationDiagnostics:(d,f)=>s().getDeclarationDiagnostics(d,f),getSemanticDiagnostics:(d,f)=>s().getSemanticDiagnostics(d,f),emit:(d,f,p,E,v)=>s().emit(d,f,p,E,v),emitBuildInfo:(d,f)=>s().emitBuildInfo(d,f),getAllDependencies:ho,getCurrentDirectory:()=>s().getCurrentDirectory(),close:Is};function s(){return H.checkDefined(t().program)}}var K1e,W1e,jzt=o({"src/compiler/builder.ts"(){Bo(),K1e=(t=>(t[t.None=0]="None",t[t.Js=1]="Js",t[t.JsMap=2]="JsMap",t[t.JsInlineMap=4]="JsInlineMap",t[t.Dts=8]="Dts",t[t.DtsMap=16]="DtsMap",t[t.AllJs=7]="AllJs",t[t.AllDts=24]="AllDts",t[t.All=31]="All",t))(K1e||{}),W1e=(t=>(t[t.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",t[t.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",t))(W1e||{})}});function ytt(t,u,s,d,f,p){return j1e(0,MQ(t,u,s,d,f,p))}function G1e(t,u,s,d,f,p){return j1e(1,MQ(t,u,s,d,f,p))}function ktt(t,u,s,d,f,p){const{newProgram:E,configFileParsingDiagnostics:v}=MQ(t,u,s,d,f,p);return H1e(()=>({program:E,compilerOptions:E.getCompilerOptions()}),v)}var Vzt=o({"src/compiler/builderPublic.ts"(){Bo()}});function zQ(t){return sc(t,"/node_modules/.staging")?D8(t,"/.staging"):Oe(kO,u=>t.includes(u))?void 0:t}function t9e(t,u){if(u<=1)return 1;let s=1,d=t[0].search(/[a-zA-Z]:/)===0;if(t[0]!==rl&&!d&&t[1].search(/[a-zA-Z]\$$/)===0){if(u===2)return 2;s=2,d=!0}return d&&!t[s].match(/^users$/i)?s:t[s].match(/^workspaces$/i)?s+1:s+2}function IQ(t,u){if(u===void 0&&(u=t.length),u<=2)return!1;const s=t9e(t,u);return u>s+1}function i9e(t){return Att(lr(t))}function Ftt(t,u){if(u.lengthf.length+1?u9e(v,E,Math.max(f.length+1,b+1)):{dir:s,dirPath:d,nonRecursive:!0}:Stt(v,E,E.length-1,b,B,f)}function Stt(t,u,s,d,f,p){if(f!==-1)return u9e(t,u,f+1);let E=!0,v=s;for(let b=0;bHzt(d,f,p,t,s,u,E)}}function Hzt(t,u,s,d,f,p,E){const v=RQ(t),b=WB(s,d,f,v,u,p,E);if(!t.getGlobalCache)return b;const B=t.getGlobalCache();if(B!==void 0&&!Id(s)&&!(b.resolvedModule&&cZ(b.resolvedModule.extension))){const{resolvedModule:k,failedLookupLocations:T,affectingLocations:M,resolutionDiagnostics:z}=kAe(H.checkDefined(t.globalCacheResolutionModuleName)(s),t.projectName,f,v,B,u);if(k)return b.resolvedModule=k,b.failedLookupLocations=HB(b.failedLookupLocations,T),b.affectingLocations=HB(b.affectingLocations,M),b.resolutionDiagnostics=HB(b.resolutionDiagnostics,z),b}return b}function $1e(t,u,s){let d,f,p;const E=wm(),v=new Set,b=new Set,B=new Map,k=new Map;let T=!1,M,z,j,J,K,Y=!1;const oe=Mh(()=>t.getCurrentDirectory()),se=t.getCachedDirectoryStructureHost(),ge=new Map,ae=KB(oe(),t.getCanonicalFileName,t.getCompilationSettings()),Ce=new Map,ne=HY(oe(),t.getCanonicalFileName,t.getCompilationSettings(),ae.getPackageJsonInfoCache(),ae.optionsToRedirectsKey),ve=new Map,Se=KB(oe(),t.getCanonicalFileName,bde(t.getCompilationSettings()),ae.getPackageJsonInfoCache()),Ne=new Map,pe=new Map,fe=a9e(u,oe),xe=t.toPath(fe),Be=yd(xe),Ge=new Map;return{rootDirForResolution:u,resolvedModuleNames:ge,resolvedTypeReferenceDirectives:Ce,resolvedLibraries:ve,resolvedFileToResolution:B,resolutionsWithFailedLookups:v,resolutionsWithOnlyAffectingLocations:b,directoryWatchesOfFailedLookups:Ne,fileWatchesOfAffectingLocations:pe,watchFailedLookupLocationsOfExternalModuleResolutions:xn,getModuleResolutionCache:()=>ae,startRecordingFilesWithChangedResolutions:ft,finishRecordingFilesWithChangedResolutions:Ye,startCachingPerDirectoryResolution:Gt,finishCachingPerDirectoryResolution:Ie,resolveModuleNameLiterals:ht,resolveTypeReferenceDirectiveReferences:ei,resolveLibrary:Ut,resolveSingleModuleNameWithoutWatching:Ni,removeResolutionsFromProjectReferenceRedirects:Dn,removeResolutionsOfFile:Cn,hasChangedAutomaticTypeDirectiveNames:()=>T,invalidateResolutionOfFile:oa,invalidateResolutionsOfFailedLookupLocations:Yo,setFilesWithInvalidatedNonRelativeUnresolvedImports:Da,createHasInvalidatedResolutions:We,isFileWithInvalidatedNonRelativeUnresolvedImports:Ve,updateTypeRootsWatch:Xt,closeTypeRootsWatch:Mt,clear:Ke,onChangesAffectModuleResolution:Je};function Ae(et){return et.resolvedModule}function De(et){return et.resolvedTypeReferenceDirective}function Ke(){rf(Ne,jm),rf(pe,jm),E.clear(),Mt(),ge.clear(),Ce.clear(),B.clear(),v.clear(),b.clear(),j=void 0,J=void 0,K=void 0,z=void 0,M=void 0,Y=!1,ae.clear(),ne.clear(),ae.update(t.getCompilationSettings()),ne.update(t.getCompilationSettings()),Se.clear(),k.clear(),ve.clear(),T=!1}function Je(){Y=!0,ae.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),ae.update(t.getCompilationSettings()),ne.update(t.getCompilationSettings())}function ft(){d=[]}function Ye(){const et=d;return d=void 0,et}function Ve(et){if(!p)return!1;const gt=p.get(et);return!!gt&&!!gt.length}function We(et,gt){Yo();const ii=f;return f=void 0,{hasInvalidatedResolutions:me=>et(me)||Y||!!(ii!=null&&ii.has(me))||Ve(me),hasInvalidatedLibResolutions:me=>{var ni;return gt(me)||!!((ni=ve==null?void 0:ve.get(me))!=null&&ni.isInvalidated)}}}function Gt(){ae.isReadonly=void 0,ne.isReadonly=void 0,Se.isReadonly=void 0,ae.getPackageJsonInfoCache().isReadonly=void 0,ae.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),Se.clearAllExceptPackageJsonInfoCache(),E.forEach(aa),E.clear()}function Yt(et){ve.forEach((gt,ii)=>{var me;(me=et==null?void 0:et.resolvedLibReferences)!=null&&me.has(ii)||(bt(gt,t.toPath(AQ(t.getCompilationSettings(),oe(),ii)),Ae),ve.delete(ii))})}function Ie(et,gt){p=void 0,Y=!1,E.forEach(aa),E.clear(),et!==gt&&(Yt(et),et==null||et.getSourceFiles().forEach(ii=>{var me;const ni=cm(ii)?((me=ii.packageJsonLocations)==null?void 0:me.length)??0:0,vi=k.get(ii.path)??_t;for(let mt=vi.length;mtni)for(let mt=ni;mt{et!=null&&et.getSourceFileByPath(me)||(ii.forEach(ni=>pe.get(ni).files--),k.delete(me))})),Ne.forEach(st),pe.forEach(St),T=!1,ae.isReadonly=!0,ne.isReadonly=!0,Se.isReadonly=!0,ae.getPackageJsonInfoCache().isReadonly=!0}function st(et,gt){et.refCount===0&&(Ne.delete(gt),et.watcher.close())}function St(et,gt){var ii;et.files===0&&et.resolutions===0&&!((ii=et.symlinks)!=null&&ii.size)&&(pe.delete(gt),et.watcher.close())}function It({entries:et,containingFile:gt,containingSourceFile:ii,redirectedReference:me,options:ni,perFileCache:vi,reusedNames:mt,loader:Ot,getResolutionWithResolvedFileName:Ei,deferWatchingNonRelativeResolution:$i,shouldRetryResolution:Qi,logChanges:on}){const le=t.toPath(gt),te=vi.get(le)||vi.set(le,U7()).get(le),we=[],de=on&&Ve(le),je=t.getCurrentProgram(),X=je&&je.getResolvedProjectReferenceToRedirect(gt),it=X?!me||me.sourceFile.path!==X.sourceFile.path:!!me,Ct=U7();for(const Qt of et){const Li=Ot.nameAndMode.getName(Qt),Ui=Ot.nameAndMode.getMode(Qt,ii);let Sn=te.get(Li,Ui);if(!Ct.has(Li,Ui)&&(Y||it||!Sn||Sn.isInvalidated||de&&!Id(Li)&&Qi(Sn))){const du=Sn;Sn=Ot.resolve(Li,Ui),t.onDiscoveredSymlink&&Kzt(Sn)&&t.onDiscoveredSymlink(),te.set(Li,Ui,Sn),Sn!==du&&(xn(Li,Sn,le,Ei,$i),du&&bt(du,le,Ei)),on&&d&&!ct(du,Sn)&&(d.push(le),on=!1)}else{const du=RQ(t);if(aD(ni,du)&&!Ct.has(Li,Ui)){const Ru=Ei(Sn);Sa(du,vi===ge?Ru!=null&&Ru.resolvedFileName?Ru.packageId?F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Ru!=null&&Ru.resolvedFileName?Ru.packageId?F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Li,gt,Ru==null?void 0:Ru.resolvedFileName,(Ru==null?void 0:Ru.packageId)&&Px(Ru.packageId))}}H.assert(Sn!==void 0&&!Sn.isInvalidated),Ct.set(Li,Ui,!0),we.push(Sn)}return mt==null||mt.forEach(Qt=>Ct.set(Ot.nameAndMode.getName(Qt),Ot.nameAndMode.getMode(Qt,ii),!0)),te.size()!==Ct.size()&&te.forEach((Qt,Li,Ui)=>{Ct.has(Li,Ui)||(bt(Qt,le,Ei),te.delete(Li,Ui))}),we;function ct(Qt,Li){if(Qt===Li)return!0;if(!Qt||!Li)return!1;const Ui=Ei(Qt),Sn=Ei(Li);return Ui===Sn?!0:!Ui||!Sn?!1:Ui.resolvedFileName===Sn.resolvedFileName}}function ei(et,gt,ii,me,ni,vi){return It({entries:et,containingFile:gt,containingSourceFile:ni,redirectedReference:ii,options:me,reusedNames:vi,perFileCache:Ce,loader:kQ(gt,ii,me,RQ(t),ne),getResolutionWithResolvedFileName:De,shouldRetryResolution:mt=>mt.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function ht(et,gt,ii,me,ni,vi){return It({entries:et,containingFile:gt,containingSourceFile:ni,redirectedReference:ii,options:me,reusedNames:vi,perFileCache:ge,loader:o9e(gt,ii,me,t,ae),getResolutionWithResolvedFileName:Ae,shouldRetryResolution:mt=>!mt.resolvedModule||!FP(mt.resolvedModule.extension),logChanges:s,deferWatchingNonRelativeResolution:!0})}function Ut(et,gt,ii,me){const ni=RQ(t);let vi=ve==null?void 0:ve.get(me);if(!vi||vi.isInvalidated){const mt=vi;vi=KY(et,gt,ii,ni,Se);const Ot=t.toPath(gt);xn(et,vi,Ot,Ae,!1),ve.set(me,vi),mt&&bt(mt,Ot,Ae)}else if(aD(ii,ni)){const mt=Ae(vi);Sa(ni,mt!=null&&mt.resolvedFileName?mt.packageId?F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,et,gt,mt==null?void 0:mt.resolvedFileName,(mt==null?void 0:mt.packageId)&&Px(mt.packageId))}return vi}function Ni(et,gt){var ii,me;const ni=t.toPath(gt),vi=ge.get(ni),mt=vi==null?void 0:vi.get(et,void 0);if(mt&&!mt.isInvalidated)return mt;const Ot=(ii=t.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:ii.call(t,ae),Ei=RQ(t),$i=WB(et,gt,t.getCompilationSettings(),Ei,ae);return(me=t.afterResolveSingleModuleNameWithoutWatching)==null||me.call(t,ae,et,gt,$i,Ot),$i}function ji(et){return sc(et,"/node_modules/@types")}function xn(et,gt,ii,me,ni){var vi;if(gt.refCount)gt.refCount++,H.assertIsDefined(gt.files);else{gt.refCount=1,H.assert(!((vi=gt.files)!=null&&vi.size)),!ni||Id(et)?an(gt):E.add(et,gt);const mt=me(gt);if(mt&&mt.resolvedFileName){const Ot=t.toPath(mt.resolvedFileName);let Ei=B.get(Ot);Ei||B.set(Ot,Ei=new Set),Ei.add(gt)}}(gt.files??(gt.files=new Set)).add(ii)}function Jn(et,gt){const ii=t.toPath(et),me=J1e(et,ii,fe,xe,Be,oe);if(me){const{dir:ni,dirPath:vi,nonRecursive:mt}=me;vi===xe?(H.assert(mt),gt=!0):yr(ni,vi,mt)}return gt}function an(et){H.assert(!!et.refCount);const{failedLookupLocations:gt,affectingLocations:ii,node10Result:me}=et;if(!(gt!=null&>.length)&&!(ii!=null&&ii.length)&&!me)return;(gt!=null&>.length||me)&&v.add(et);let ni=!1;if(gt)for(const vi of gt)ni=Jn(vi,ni);me&&(ni=Jn(me,ni)),ni&&yr(fe,xe,!0),Pi(et,!(gt!=null&>.length)&&!me)}function Pi(et,gt){H.assert(!!et.refCount);const{affectingLocations:ii}=et;if(ii!=null&&ii.length){gt&&b.add(et);for(const me of ii)Ai(me,!0)}}function Ai(et,gt){const ii=pe.get(et);if(ii){gt?ii.resolutions++:ii.files++;return}let me=et,ni=!1,vi;t.realpath&&(me=t.realpath(et),et!==me&&(ni=!0,vi=pe.get(me)));const mt=gt?1:0,Ot=gt?0:1;if(!ni||!vi){const Ei={watcher:n9e(t.toPath(me))?t.watchAffectingFileLocation(me,($i,Qi)=>{se==null||se.addOrDeleteFile($i,t.toPath(me),Qi),Zu(me,ae.getPackageJsonInfoCache().getInternalMap()),t.scheduleInvalidateResolutionsOfFailedLookupLocations()}):tw,resolutions:ni?0:mt,files:ni?0:Ot,symlinks:void 0};pe.set(me,Ei),ni&&(vi=Ei)}if(ni){H.assert(!!vi);const Ei={watcher:{close:()=>{var $i;const Qi=pe.get(me);($i=Qi==null?void 0:Qi.symlinks)!=null&&$i.delete(et)&&!Qi.symlinks.size&&!Qi.resolutions&&!Qi.files&&(pe.delete(me),Qi.watcher.close())}},resolutions:mt,files:Ot,symlinks:void 0};pe.set(et,Ei),(vi.symlinks??(vi.symlinks=new Set)).add(et)}}function Zu(et,gt){var ii;const me=pe.get(et);me!=null&&me.resolutions&&(z??(z=new Set)).add(et),me!=null&&me.files&&(M??(M=new Set)).add(et),(ii=me==null?void 0:me.symlinks)==null||ii.forEach(ni=>Zu(ni,gt)),gt==null||gt.delete(t.toPath(et))}function aa(et,gt){const ii=t.getCurrentProgram();!ii||!ii.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(gt)?et.forEach(an):et.forEach(me=>Pi(me,!0))}function yr(et,gt,ii){const me=Ne.get(gt);me?(H.assert(!!ii==!!me.nonRecursive),me.refCount++):Ne.set(gt,{watcher:Ln(et,gt,ii),refCount:1,nonRecursive:ii})}function Ba(et,gt,ii){const me=t.toPath(et),ni=J1e(et,me,fe,xe,Be,oe);if(ni){const{dirPath:vi}=ni;vi===xe?gt=!0:jn(vi,ii)}return gt}function bt(et,gt,ii,me){if(H.checkDefined(et.files).delete(gt),et.refCount--,et.refCount)return;const ni=ii(et);if(ni&&ni.resolvedFileName){const Ei=t.toPath(ni.resolvedFileName),$i=B.get(Ei);$i!=null&&$i.delete(et)&&!$i.size&&B.delete(Ei)}const{failedLookupLocations:vi,affectingLocations:mt,node10Result:Ot}=et;if(v.delete(et)){let Ei=!1;if(vi)for(const $i of vi)Ei=Ba($i,Ei,me);Ot&&(Ei=Ba(Ot,Ei,me)),Ei&&jn(xe,me)}else mt!=null&&mt.length&&b.delete(et);if(mt)for(const Ei of mt){const $i=pe.get(Ei);$i.resolutions--,me&&St($i,Ei)}}function jn(et,gt){const ii=Ne.get(et);ii.refCount--,gt&&st(ii,et)}function Ln(et,gt,ii){return t.watchDirectoryOfFailedLookupLocation(et,me=>{const ni=t.toPath(me);se&&se.addOrDeleteFileOrDirectory(me,ni),ua(ni,gt===ni)},ii?0:1)}function Si(et,gt,ii,me){const ni=et.get(gt);ni&&(ni.forEach(vi=>bt(vi,gt,ii,me)),et.delete(gt))}function Dn(et){if(!Ml(et,".json"))return;const gt=t.getCurrentProgram();if(!gt)return;const ii=gt.getResolvedProjectReferenceByPath(et);ii&&ii.commandLine.fileNames.forEach(me=>Cn(t.toPath(me)))}function Cn(et,gt){Si(ge,et,Ae,gt),Si(Ce,et,De,gt)}function tu(et,gt){if(!et)return!1;let ii=!1;return et.forEach(me=>{if(!(me.isInvalidated||!gt(me))){me.isInvalidated=ii=!0;for(const ni of H.checkDefined(me.files))(f??(f=new Set)).add(ni),T=T||sc(ni,QB)}}),ii}function oa(et){Cn(et);const gt=T;tu(B.get(et),J3)&&T&&!gt&&t.onChangedAutomaticTypeDirectiveNames()}function Da(et){H.assert(p===et||p===void 0),p=et}function ua(et,gt){if(gt)(K||(K=new Set)).add(et);else{const ii=zQ(et);if(!ii||(et=ii,t.fileIsOpen(et)))return!1;const me=lr(et);if(ji(et)||bU(et)||ji(me)||bU(me))(j||(j=new Set)).add(et),(J||(J=new Set)).add(et);else{if(L7e(t.getCurrentProgram(),et)||Ml(et,".map"))return!1;(j||(j=new Set)).add(et);const ni=uH(et,!0);ni&&(J||(J=new Set)).add(ni)}}t.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ta(){const et=ae.getPackageJsonInfoCache().getInternalMap();et&&(j||J||K)&&et.forEach((gt,ii)=>Qe(ii)?et.delete(ii):void 0)}function Yo(){var et;if(Y)return M=void 0,Ta(),(j||J||K||z)&&tu(ve,bo),j=void 0,J=void 0,K=void 0,z=void 0,!0;let gt=!1;return M&&((et=t.getCurrentProgram())==null||et.getSourceFiles().forEach(ii=>{Oe(ii.packageJsonLocations,me=>M.has(me))&&((f??(f=new Set)).add(ii.path),gt=!0)}),M=void 0),!j&&!J&&!K&&!z||(gt=tu(v,bo)||gt,Ta(),j=void 0,J=void 0,K=void 0,gt=tu(b,Et)||gt,z=void 0),gt}function bo(et){var gt;return Et(et)?!0:!j&&!J&&!K?!1:((gt=et.failedLookupLocations)==null?void 0:gt.some(ii=>Qe(t.toPath(ii))))||!!et.node10Result&&Qe(t.toPath(et.node10Result))}function Qe(et){return(j==null?void 0:j.has(et))||ie((J==null?void 0:J.keys())||[],gt=>Pa(et,gt)?!0:void 0)||ie((K==null?void 0:K.keys())||[],gt=>et.length>gt.length&&Pa(et,gt)&&(yse(gt)||et[gt.length]===rl)?!0:void 0)}function Et(et){var gt;return!!z&&((gt=et.affectingLocations)==null?void 0:gt.some(ii=>z.has(ii)))}function Mt(){rf(Ge,fg)}function qt(et,gt){return Pe(et)?t.watchTypeRootsDirectory(gt,ii=>{const me=t.toPath(ii);se&&se.addOrDeleteFileOrDirectory(ii,me),T=!0,t.onChangedAutomaticTypeDirectiveNames();const ni=r9e(gt,et,xe,Be,oe,vi=>Ne.has(vi));ni&&ua(me,ni===me)},1):tw}function Xt(){const et=t.getCompilationSettings();if(et.types){Mt();return}const gt=cM(et,{getCurrentDirectory:oe});gt?cB(Ge,lg(gt,ii=>t.toPath(ii)),{createNewValue:qt,onDeleteValue:fg}):Mt()}function Pe(et){return t.getCompilationSettings().typeRoots?!0:i9e(t.toPath(et))}}function Kzt(t){var u,s;return!!((u=t.resolvedModule)!=null&&u.originalPath||(s=t.resolvedTypeReferenceDirective)!=null&&s.originalPath)}var Wzt=o({"src/compiler/resolutionCache.ts"(){Bo()}});function kH(t,u){const s=t===c1&&m9e?m9e:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:L1(t.useCaseSensitiveFileNames)};if(!u)return f=>t.write(b1e(f,s));const d=new Array(1);return f=>{d[0]=f,t.write(z7e(d,s)+s.getNewLine()),d[0]=void 0}}function wtt(t,u,s){return t.clearScreen&&!s.preserveWatchOutput&&!s.extendedDiagnostics&&!s.diagnostics&&kt(WQ,u.code)?(t.clearScreen(),!0):!1}function Gzt(t,u){return kt(WQ,t.code)?u+u:u}function FH(t){return t.now?t.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function s9e(t,u){return u?(s,d,f)=>{wtt(t,s,f);let p=`[${eb(FH(t),"\x1B[90m")}] `;p+=`${lE(s.messageText,t.newLine)}${d+d}`,t.write(p)}:(s,d,f)=>{let p="";wtt(t,s,f)||(p+=d),p+=`${FH(t)} - `,p+=`${lE(s.messageText,t.newLine)}${Gzt(s,d)}`,t.write(p)}}function Ttt(t,u,s,d,f,p){const E=f;E.onUnRecoverableConfigFileDiagnostic=b=>Ptt(f,p,b);const v=GV(t,u,E,s,d);return E.onUnRecoverableConfigFileDiagnostic=void 0,v}function OQ(t){return ui(t,u=>u.category===1)}function jQ(t){return ti(t,s=>s.category===1).map(s=>{if(s.file!==void 0)return`${s.file.fileName}`}).map(s=>{if(s===void 0)return;const d=Le(t,f=>f.file!==void 0&&f.file.fileName===s);if(d!==void 0){const{line:f}=s0(d.file,d.start);return{fileName:s,line:f+1}}})}function U1e(t){return t===1?F.Found_1_error_Watching_for_file_changes:F.Found_0_errors_Watching_for_file_changes}function Ltt(t,u){const s=eb(":"+t.line,"\x1B[90m");return SN(t.fileName)&&SN(u)?JE(u,t.fileName,!1)+s:t.fileName+s}function l9e(t,u,s,d){if(t===0)return"";const f=u.filter(k=>k!==void 0),p=f.map(k=>`${k.fileName}:${k.line}`).filter((k,T,M)=>M.indexOf(k)===T),E=f[0]&&Ltt(f[0],d.getCurrentDirectory());let v;t===1?v=u[0]!==void 0?[F.Found_1_error_in_0,E]:[F.Found_1_error]:v=p.length===0?[F.Found_0_errors,t]:p.length===1?[F.Found_0_errors_in_the_same_file_starting_at_Colon_1,t,E]:[F.Found_0_errors_in_1_files,t,p.length];const b=cc(...v),B=p.length>1?Jzt(f,d):"";return`${s}${lE(b.messageText,s)}${s}${s}${B}`}function Jzt(t,u){const s=t.filter((T,M,z)=>M===z.findIndex(j=>(j==null?void 0:j.fileName)===(T==null?void 0:T.fileName)));if(s.length===0)return"";const d=T=>Math.log(T)*Math.LOG10E+1,f=s.map(T=>[T,ui(t,M=>M.fileName===T.fileName)]),p=f.reduce((T,M)=>Math.max(T,M[1]||0),0),E=F.Errors_Files.message,v=E.split(" ")[0].length,b=Math.max(v,d(p)),B=Math.max(d(p)-v,0);let k="";return k+=" ".repeat(B)+E+` +`,f.forEach(T=>{const[M,z]=T,j=Math.log(z)*Math.LOG10E+1|0,J=j{u(d.fileName)})}function Z1e(t,u){var s,d;const f=t.getFileIncludeReasons(),p=E=>wN(E,t.getCurrentDirectory(),t.getCanonicalFileName);for(const E of t.getSourceFiles())u(`${ew(E,p)}`),(s=f.get(E.path))==null||s.forEach(v=>u(` ${ehe(t,v,p).messageText}`)),(d=Y1e(E,p))==null||d.forEach(v=>u(` ${v.messageText}`))}function Y1e(t,u){var s;let d;if(t.path!==t.resolvedPath&&(d??(d=[])).push(ro(void 0,F.File_is_output_of_project_reference_source_0,ew(t.originalFileName,u))),t.redirectInfo&&(d??(d=[])).push(ro(void 0,F.File_redirects_to_file_0,ew(t.redirectInfo.redirectTarget,u))),cm(t))switch(t.impliedNodeFormat){case 99:t.packageJsonScope&&(d??(d=[])).push(ro(void 0,F.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,ew(Cr(t.packageJsonLocations),u)));break;case 1:t.packageJsonScope?(d??(d=[])).push(ro(void 0,t.packageJsonScope.contents.packageJsonContent.type?F.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:F.File_is_CommonJS_module_because_0_does_not_have_field_type,ew(Cr(t.packageJsonLocations),u))):(s=t.packageJsonLocations)!=null&&s.length&&(d??(d=[])).push(ro(void 0,F.File_is_CommonJS_module_because_package_json_was_not_found));break}return d}function Q1e(t,u){var s;const d=t.getCompilerOptions().configFile;if(!((s=d==null?void 0:d.configFileSpecs)!=null&&s.validatedFilesSpec))return;const f=t.getCanonicalFileName(u),p=lr($a(d.fileName,t.getCurrentDirectory()));return Le(d.configFileSpecs.validatedFilesSpec,E=>t.getCanonicalFileName($a(E,p))===f)}function X1e(t,u){var s,d;const f=t.getCompilerOptions().configFile;if(!((s=f==null?void 0:f.configFileSpecs)!=null&&s.validatedIncludeSpecs))return;if(f.configFileSpecs.isDefaultIncludeSpec)return!0;const p=Ml(u,".json"),E=lr($a(f.fileName,t.getCurrentDirectory())),v=t.useCaseSensitiveFileNames();return Le((d=f==null?void 0:f.configFileSpecs)==null?void 0:d.validatedIncludeSpecs,b=>{if(p&&!sc(b,".json"))return!1;const B=Fle(b,E,"files");return!!B&&jx(`(${B})$`,v).test(u)})}function ehe(t,u,s){var d,f;const p=t.getCompilerOptions();if(Jv(u)){const E=FM(t,u),v=ZB(E)?E.file.text.substring(E.pos,E.end):`"${E.text}"`;let b;switch(H.assert(ZB(E)||u.kind===3,"Only synthetic references are imports"),u.kind){case 3:ZB(E)?b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2:F.Imported_via_0_from_file_1:E.text===Hx?b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:F.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:F.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:H.assert(!E.packageId),b=F.Referenced_via_0_from_file_1;break;case 5:b=E.packageId?F.Type_library_referenced_via_0_from_file_1_with_packageId_2:F.Type_library_referenced_via_0_from_file_1;break;case 7:H.assert(!E.packageId),b=F.Library_referenced_via_0_from_file_1;break;default:H.assertNever(u)}return ro(void 0,b,v,ew(E.file,s),E.packageId&&Px(E.packageId))}switch(u.kind){case 0:if(!((d=p.configFile)!=null&&d.configFileSpecs))return ro(void 0,F.Root_file_specified_for_compilation);const E=$a(t.getRootFileNames()[u.index],t.getCurrentDirectory());if(Q1e(t,E))return ro(void 0,F.Part_of_files_list_in_tsconfig_json);const b=X1e(t,E);return Ja(b)?ro(void 0,F.Matched_by_include_pattern_0_in_1,b,ew(p.configFile,s)):ro(void 0,b?F.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:F.Root_file_specified_for_compilation);case 1:case 2:const B=u.kind===2,k=H.checkDefined((f=t.getResolvedProjectReferences())==null?void 0:f[u.index]);return ro(void 0,y0(p)?B?F.Output_from_referenced_project_0_included_because_1_specified:F.Source_from_referenced_project_0_included_because_1_specified:B?F.Output_from_referenced_project_0_included_because_module_is_specified_as_none:F.Source_from_referenced_project_0_included_because_module_is_specified_as_none,ew(k.sourceFile.fileName,s),p.outFile?"--outFile":"--out");case 8:{const T=p.types?u.packageId?[F.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,u.typeReference,Px(u.packageId)]:[F.Entry_point_of_type_library_0_specified_in_compilerOptions,u.typeReference]:u.packageId?[F.Entry_point_for_implicit_type_library_0_with_packageId_1,u.typeReference,Px(u.packageId)]:[F.Entry_point_for_implicit_type_library_0,u.typeReference];return ro(void 0,...T)}case 6:{if(u.index!==void 0)return ro(void 0,F.Library_0_specified_in_compilerOptions,p.lib[u.index]);const T=h1(XV.type,(z,j)=>z===Os(p)?j:void 0),M=T?[F.Default_library_for_target_0,T]:[F.Default_library];return ro(void 0,...M)}default:H.assertNever(u)}}function ew(t,u){const s=Ja(t)?t:t.fileName;return u?u(s):s}function VQ(t,u,s,d,f,p,E,v){const b=!!t.getCompilerOptions().listFilesOnly,B=t.getConfigFileParsingDiagnostics().slice(),k=B.length;yn(B,t.getSyntacticDiagnostics(void 0,p)),B.length===k&&(yn(B,t.getOptionsDiagnostics(p)),b||(yn(B,t.getGlobalDiagnostics(p)),B.length===k&&yn(B,t.getSemanticDiagnostics(void 0,p))));const T=b?{emitSkipped:!0,diagnostics:_t}:t.emit(void 0,f,p,E,v),{emittedFiles:M,diagnostics:z}=T;yn(B,z);const j=A8(B);if(j.forEach(u),s){const J=t.getCurrentDirectory();L(M,K=>{const Y=$a(K,J);s(`TSFILE: ${Y}`)}),q1e(t,s)}return d&&d(OQ(j),jQ(j)),{emitResult:T,diagnostics:j}}function d9e(t,u,s,d,f,p,E,v){const{emitResult:b,diagnostics:B}=VQ(t,u,s,d,f,p,E,v);return b.emitSkipped&&B.length>0?1:B.length>0?2:0}function the(t=c1,u){return{onWatchStatusChange:u||s9e(t),watchFile:Lo(t,t.watchFile)||iw,watchDirectory:Lo(t,t.watchDirectory)||iw,setTimeout:Lo(t,t.setTimeout)||Is,clearTimeout:Lo(t,t.clearTimeout)||Is}}function ihe(t,u){const s=t.trace?u.extendedDiagnostics?2:u.diagnostics?1:0:0,d=s!==0?p=>t.trace(p):Is,f=E1e(t,s,d);return f.writeLog=d,f}function nhe(t,u,s=t){const d=t.useCaseSensitiveFileNames(),f={getSourceFile:x1e((p,E)=>E?t.readFile(p,E):f.readFile(p),u,void 0),getDefaultLibLocation:Lo(t,t.getDefaultLibLocation),getDefaultLibFileName:p=>t.getDefaultLibFileName(p),writeFile:v1e((p,E,v)=>t.writeFile(p,E,v),p=>t.createDirectory(p),p=>t.directoryExists(p)),getCurrentDirectory:Mh(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>d,getCanonicalFileName:L1(d),getNewLine:()=>a5(u()),fileExists:p=>t.fileExists(p),readFile:p=>t.readFile(p),trace:Lo(t,t.trace),directoryExists:Lo(s,s.directoryExists),getDirectories:Lo(s,s.getDirectories),realpath:Lo(t,t.realpath),getEnvironmentVariable:Lo(t,t.getEnvironmentVariable)||(()=>""),createHash:Lo(t,t.createHash),readDirectory:Lo(t,t.readDirectory),storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:t.jsDocParsingMode};return f}function HQ(t,u){if(u.match(Jde)){let s=u.length,d=s;for(let f=s-1;f>=0;f--){const p=u.charCodeAt(f);switch(p){case 10:f&&u.charCodeAt(f-1)===13&&f--;case 13:break;default:if(p<127||!Z1(p)){d=f;continue}break}const E=u.substring(d,s);if(E.match(nQ)){u=u.substring(0,d);break}else if(!E.match(uQ))break;s=d}}return(t.createHash||AN)(u)}function KQ(t){const u=t.getSourceFile;t.getSourceFile=(...s)=>{const d=u.call(t,...s);return d&&(d.version=HQ(t,d.text)),d}}function uhe(t,u){const s=Mh(()=>lr($o(t.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:Mh(()=>t.getCurrentDirectory()),getDefaultLibLocation:s,getDefaultLibFileName:d=>cr(s(),zO(d)),fileExists:d=>t.fileExists(d),readFile:(d,f)=>t.readFile(d,f),directoryExists:d=>t.directoryExists(d),getDirectories:d=>t.getDirectories(d),readDirectory:(d,f,p,E,v)=>t.readDirectory(d,f,p,E,v),realpath:Lo(t,t.realpath),getEnvironmentVariable:Lo(t,t.getEnvironmentVariable),trace:d=>t.write(d+t.newLine),createDirectory:d=>t.createDirectory(d),writeFile:(d,f,p)=>t.writeFile(d,f,p),createHash:Lo(t,t.createHash),createProgram:u||G1e,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:Lo(t,t.now)}}function Ntt(t=c1,u,s,d){const f=E=>t.write(E+t.newLine),p=uhe(t,u);return roe(p,the(t,d)),p.afterProgramCreate=E=>{const v=E.getCompilerOptions(),b=a5(v);VQ(E,s,f,B=>p.onWatchStatusChange(cc(U1e(B),B),b,v,B))},p}function Ptt(t,u,s){u(s),t.exit(1)}function h9e({configFileName:t,optionsToExtend:u,watchOptionsToExtend:s,extraFileExtensions:d,system:f,createProgram:p,reportDiagnostic:E,reportWatchStatus:v}){const b=E||kH(f),B=Ntt(f,p,b,v);return B.onUnRecoverableConfigFileDiagnostic=k=>Ptt(f,b,k),B.configFileName=t,B.optionsToExtend=u,B.watchOptionsToExtend=s,B.extraFileExtensions=d,B}function f9e({rootFiles:t,options:u,watchOptions:s,projectReferences:d,system:f,createProgram:p,reportDiagnostic:E,reportWatchStatus:v}){const b=Ntt(f,p,E||kH(f),v);return b.rootFiles=t,b.options=u,b.watchOptions=s,b.projectReferences=d,b}function Mtt(t){const u=t.system||c1,s=t.host||(t.host=rhe(t.options,u)),d=p9e(t),f=d9e(d,t.reportDiagnostic||kH(u),p=>s.trace&&s.trace(p),t.reportErrorSummary||t.options.pretty?(p,E)=>u.write(l9e(p,E,u.newLine,s)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(d),f}var m9e,WQ,tw,iw,cd,$zt=o({"src/compiler/watch.ts"(){Bo(),m9e=c1?{getCurrentDirectory:()=>c1.getCurrentDirectory(),getNewLine:()=>c1.newLine,getCanonicalFileName:L1(c1.useCaseSensitiveFileNames)}:void 0,WQ=[F.Starting_compilation_in_watch_mode.code,F.File_change_detected_Starting_incremental_compilation.code],tw={close:Is},iw=()=>tw,cd={ConfigFile:"Config file",ExtendedConfigFile:"Extended config file",SourceFile:"Source file",MissingFile:"Missing file",WildcardDirectory:"Wild card directory",FailedLookupLocations:"Failed Lookup Locations",AffectingFileLocation:"File location affecting resolution",TypeRoots:"Type roots",ConfigFileOfReferencedProject:"Config file of referened project",ExtendedConfigOfReferencedProject:"Extended config file of referenced project",WildcardDirectoryOfReferencedProject:"Wild card directory of referenced project",PackageJson:"package.json file",ClosedScriptInfo:"Closed Script info",ConfigFileForInferredRoot:"Config file for the inferred project root",NodeModules:"node_modules for closed script infos and package.jsons affecting module specifier cache",MissingSourceMapFile:"Missing source map file",NoopConfigFileForInferredRoot:"Noop Config file for the inferred project root",MissingGeneratedFile:"Missing generated file",NodeModulesForModuleSpecifierCache:"node_modules for module specifier cache invalidation",TypingInstallerLocationFile:"File location for typing installer",TypingInstallerLocationDirectory:"Directory location for typing installer"}}});function GQ(t,u){const s=f5(t);if(!s)return;let d;if(u.getBuildInfo)d=u.getBuildInfo(s,t.configFilePath);else{const f=u.readFile(s);if(!f)return;d=_Q(s,f)}if(!(!d||d.version!==_||!d.program))return e9e(d,s,u)}function rhe(t,u=c1){const s=C1e(t,void 0,u);return s.createHash=Lo(u,u.createHash),s.storeFilesChangingSignatureDuringEmit=u.storeFilesChangingSignatureDuringEmit,KQ(s),vH(s,d=>J0(d,s.getCurrentDirectory(),s.getCanonicalFileName)),s}function p9e({rootNames:t,options:u,configFileParsingDiagnostics:s,projectReferences:d,host:f,createProgram:p}){f=f||rhe(u),p=p||G1e;const E=GQ(u,f);return p(t,u,f,E,s,d)}function ztt(t,u,s,d,f,p,E,v){return Ha(t)?f9e({rootFiles:t,options:u,watchOptions:v,projectReferences:E,system:s,createProgram:d,reportDiagnostic:f,reportWatchStatus:p}):h9e({configFileName:t,optionsToExtend:u,watchOptionsToExtend:E,extraFileExtensions:v,system:s,createProgram:d,reportDiagnostic:f,reportWatchStatus:p})}function Itt(t){let u,s,d,f,p,E,v,b,B=t.extendedConfigCache,k=!1;const T=new Map;let M,z=!1;const j=t.useCaseSensitiveFileNames(),J=t.getCurrentDirectory(),{configFileName:K,optionsToExtend:Y={},watchOptionsToExtend:oe,extraFileExtensions:se,createProgram:ge}=t;let{rootFiles:ae,options:Ce,watchOptions:ne,projectReferences:ve}=t,Se,Ne,pe=!1,fe=!1;const xe=K===void 0?void 0:xQ(t,J,j),Be=xe||t,Ge=wQ(t,Be);let Ae=xn();K&&t.configFileParsingResult&&(bo(t.configFileParsingResult),Ae=xn()),bt(F.Starting_compilation_in_watch_mode),K&&!t.configFileParsingResult&&(Ae=a5(Y),H.assert(!ae),Yo(),Ae=xn()),H.assert(Ce),H.assert(ae);const{watchFile:De,watchDirectory:Ke,writeLog:Je}=ihe(t,Ce),ft=L1(j);Je(`Current directory: ${J} CaseSensitiveFileNames: ${j}`);let Ye;K&&(Ye=De(K,tu,2e3,ne,cd.ConfigFile));const Ve=nhe(t,()=>Ce,Be);KQ(Ve);const We=Ve.getSourceFile;Ve.getSourceFile=(mt,...Ot)=>Zu(mt,Jn(mt),...Ot),Ve.getSourceFileByPath=Zu,Ve.getNewLine=()=>Ae,Ve.fileExists=Ai,Ve.onReleaseOldSourceFile=Ba,Ve.onReleaseParsedCommandLine=Mt,Ve.toPath=Jn,Ve.getCompilationSettings=()=>Ce,Ve.useSourceOfProjectReferenceRedirect=Lo(t,t.useSourceOfProjectReferenceRedirect),Ve.watchDirectoryOfFailedLookupLocation=(mt,Ot,Ei)=>Ke(mt,Ot,Ei,ne,cd.FailedLookupLocations),Ve.watchAffectingFileLocation=(mt,Ot)=>De(mt,Ot,2e3,ne,cd.AffectingFileLocation),Ve.watchTypeRootsDirectory=(mt,Ot,Ei)=>Ke(mt,Ot,Ei,ne,cd.TypeRoots),Ve.getCachedDirectoryStructureHost=()=>xe,Ve.scheduleInvalidateResolutionsOfFailedLookupLocations=Si,Ve.onInvalidatedResolution=Cn,Ve.onChangedAutomaticTypeDirectiveNames=Cn,Ve.fileIsOpen=cg,Ve.getCurrentProgram=ht,Ve.writeLog=Je,Ve.getParsedCommandLine=Qe;const Gt=$1e(Ve,K?lr($a(K,J)):J,!1);Ve.resolveModuleNameLiterals=Lo(t,t.resolveModuleNameLiterals),Ve.resolveModuleNames=Lo(t,t.resolveModuleNames),!Ve.resolveModuleNameLiterals&&!Ve.resolveModuleNames&&(Ve.resolveModuleNameLiterals=Gt.resolveModuleNameLiterals.bind(Gt)),Ve.resolveTypeReferenceDirectiveReferences=Lo(t,t.resolveTypeReferenceDirectiveReferences),Ve.resolveTypeReferenceDirectives=Lo(t,t.resolveTypeReferenceDirectives),!Ve.resolveTypeReferenceDirectiveReferences&&!Ve.resolveTypeReferenceDirectives&&(Ve.resolveTypeReferenceDirectiveReferences=Gt.resolveTypeReferenceDirectiveReferences.bind(Gt)),Ve.resolveLibrary=t.resolveLibrary?t.resolveLibrary.bind(t):Gt.resolveLibrary.bind(Gt),Ve.getModuleResolutionCache=t.resolveModuleNameLiterals||t.resolveModuleNames?Lo(t,t.getModuleResolutionCache):()=>Gt.getModuleResolutionCache();const Ie=!!t.resolveModuleNameLiterals||!!t.resolveTypeReferenceDirectiveReferences||!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives?Lo(t,t.hasInvalidatedResolutions)||J3:cg,st=t.resolveLibrary?Lo(t,t.hasInvalidatedLibResolutions)||J3:cg;return u=GQ(Ce,Ve),Ut(),ii(),K&&ni(Jn(K),Ce,ne,cd.ExtendedConfigFile),K?{getCurrentProgram:ei,getProgram:Da,close:St,getResolutionCache:It}:{getCurrentProgram:ei,getProgram:Da,updateRootFileNames:ji,close:St,getResolutionCache:It};function St(){Ln(),Gt.clear(),rf(T,mt=>{mt&&mt.fileWatcher&&(mt.fileWatcher.close(),mt.fileWatcher=void 0)}),Ye&&(Ye.close(),Ye=void 0),B==null||B.clear(),B=void 0,b&&(rf(b,jm),b=void 0),f&&(rf(f,jm),f=void 0),d&&(rf(d,fg),d=void 0),v&&(rf(v,mt=>{var Ot;(Ot=mt.watcher)==null||Ot.close(),mt.watcher=void 0,mt.watchedDirectories&&rf(mt.watchedDirectories,jm),mt.watchedDirectories=void 0}),v=void 0)}function It(){return Gt}function ei(){return u}function ht(){return u&&u.getProgramOrUndefined()}function Ut(){Je("Synchronizing program"),H.assert(Ce),H.assert(ae),Ln();const mt=ei();z&&(Ae=xn(),mt&&UU(mt.getCompilerOptions(),Ce)&&Gt.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:Ot,hasInvalidatedLibResolutions:Ei}=Gt.createHasInvalidatedResolutions(Ie,st),{originalReadFile:$i,originalFileExists:Qi,originalDirectoryExists:on,originalCreateDirectory:le,originalWriteFile:te,readFileWithCache:we}=vH(Ve,Jn);return w1e(ht(),ae,Ce,de=>yr(de,we),de=>Ve.fileExists(de),Ot,Ei,jn,Qe,ve)?fe&&(k&&bt(F.File_change_detected_Starting_incremental_compilation),u=ge(void 0,void 0,Ve,u,Ne,ve),fe=!1):(k&&bt(F.File_change_detected_Starting_incremental_compilation),Ni(Ot,Ei)),k=!1,t.afterProgramCreate&&mt!==u&&t.afterProgramCreate(u),Ve.readFile=$i,Ve.fileExists=Qi,Ve.directoryExists=on,Ve.createDirectory=le,Ve.writeFile=te,u}function Ni(mt,Ot){Je("CreatingProgramWith::"),Je(` roots: ${JSON.stringify(ae)}`),Je(` options: ${JSON.stringify(Ce)}`),ve&&Je(` projectReferences: ${JSON.stringify(ve)}`);const Ei=z||!ht();z=!1,fe=!1,Gt.startCachingPerDirectoryResolution(),Ve.hasInvalidatedResolutions=mt,Ve.hasInvalidatedLibResolutions=Ot,Ve.hasChangedAutomaticTypeDirectiveNames=jn;const $i=ht();if(u=ge(ae,Ce,Ve,u,Ne,ve),Gt.finishCachingPerDirectoryResolution(u.getProgram(),$i),g1e(u.getProgram(),d||(d=new Map),et),Ei&&Gt.updateTypeRootsWatch(),M){for(const Qi of M)d.has(Qi)||T.delete(Qi);M=void 0}}function ji(mt){H.assert(!K,"Cannot update root file names with config file watch mode"),ae=mt,Cn()}function xn(){return a5(Ce||Y)}function Jn(mt){return J0(mt,J,ft)}function an(mt){return typeof mt=="boolean"}function Pi(mt){return typeof mt.version=="boolean"}function Ai(mt){const Ot=Jn(mt);return an(T.get(Ot))?!1:Be.fileExists(mt)}function Zu(mt,Ot,Ei,$i,Qi){const on=T.get(Ot);if(an(on))return;const le=typeof Ei=="object"?Ei.impliedNodeFormat:void 0;if(on===void 0||Qi||Pi(on)||on.sourceFile.impliedNodeFormat!==le){const te=We(mt,Ei,$i);if(on)te?(on.sourceFile=te,on.version=te.version,on.fileWatcher||(on.fileWatcher=qt(Ot,mt,Xt,250,ne,cd.SourceFile))):(on.fileWatcher&&on.fileWatcher.close(),T.set(Ot,!1));else if(te){const we=qt(Ot,mt,Xt,250,ne,cd.SourceFile);T.set(Ot,{sourceFile:te,version:te.version,fileWatcher:we})}else T.set(Ot,!1);return te}return on.sourceFile}function aa(mt){const Ot=T.get(mt);Ot!==void 0&&(an(Ot)?T.set(mt,{version:!1}):Ot.version=!1)}function yr(mt,Ot){const Ei=T.get(mt);if(!Ei)return;if(Ei.version)return Ei.version;const $i=Ot(mt);return $i!==void 0?HQ(Ve,$i):void 0}function Ba(mt,Ot,Ei){const $i=T.get(mt.resolvedPath);$i!==void 0&&(an($i)?(M||(M=[])).push(mt.path):$i.sourceFile===mt&&($i.fileWatcher&&$i.fileWatcher.close(),T.delete(mt.resolvedPath),Ei||Gt.removeResolutionsOfFile(mt.path)))}function bt(mt){t.onWatchStatusChange&&t.onWatchStatusChange(cc(mt),Ae,Ce||Y)}function jn(){return Gt.hasChangedAutomaticTypeDirectiveNames()}function Ln(){return E?(t.clearTimeout(E),E=void 0,!0):!1}function Si(){if(!t.setTimeout||!t.clearTimeout)return Gt.invalidateResolutionsOfFailedLookupLocations();const mt=Ln();Je(`Scheduling invalidateFailedLookup${mt?", Cancelled earlier one":""}`),E=t.setTimeout(Dn,250,"timerToInvalidateFailedLookupResolutions")}function Dn(){E=void 0,Gt.invalidateResolutionsOfFailedLookupLocations()&&Cn()}function Cn(){!t.setTimeout||!t.clearTimeout||(p&&t.clearTimeout(p),Je("Scheduling update"),p=t.setTimeout(oa,250,"timerToUpdateProgram"))}function tu(){H.assert(!!K),s=2,Cn()}function oa(){p=void 0,k=!0,Da()}function Da(){var mt,Ot,Ei,$i;switch(s){case 1:(mt=hh)==null||mt.logStartUpdateProgram("PartialConfigReload"),ua();break;case 2:(Ot=hh)==null||Ot.logStartUpdateProgram("FullConfigReload"),Ta();break;default:(Ei=hh)==null||Ei.logStartUpdateProgram("SynchronizeProgram"),Ut();break}return($i=hh)==null||$i.logStopUpdateProgram("Done"),ei()}function ua(){Je("Reloading new file names and options"),H.assert(Ce),H.assert(K),s=0,ae=oM(Ce.configFile.configFileSpecs,$a(lr(K),J),Ce,Ge,se),wY(ae,$a(K,J),Ce.configFile.configFileSpecs,Ne,pe)&&(fe=!0),Ut()}function Ta(){H.assert(K),Je(`Reloading config file: ${K}`),s=0,xe&&xe.clearCache(),Yo(),z=!0,Ut(),ii(),ni(Jn(K),Ce,ne,cd.ExtendedConfigFile)}function Yo(){H.assert(K),bo(GV(K,Y,Ge,B||(B=new Map),oe,se))}function bo(mt){ae=mt.fileNames,Ce=mt.options,ne=mt.watchOptions,ve=mt.projectReferences,Se=mt.wildcardDirectories,Ne=Lk(mt).slice(),pe=aM(mt.raw),fe=!0}function Qe(mt){const Ot=Jn(mt);let Ei=v==null?void 0:v.get(Ot);if(Ei){if(!Ei.updateLevel)return Ei.parsedCommandLine;if(Ei.parsedCommandLine&&Ei.updateLevel===1&&!t.getParsedCommandLine){Je("Reloading new file names and options"),H.assert(Ce);const Qi=oM(Ei.parsedCommandLine.options.configFile.configFileSpecs,$a(lr(mt),J),Ce,Ge);return Ei.parsedCommandLine={...Ei.parsedCommandLine,fileNames:Qi},Ei.updateLevel=void 0,Ei.parsedCommandLine}}Je(`Loading config file: ${mt}`);const $i=t.getParsedCommandLine?t.getParsedCommandLine(mt):Et(mt);return Ei?(Ei.parsedCommandLine=$i,Ei.updateLevel=void 0):(v||(v=new Map)).set(Ot,Ei={parsedCommandLine:$i}),vi(mt,Ot,Ei),$i}function Et(mt){const Ot=Ge.onUnRecoverableConfigFileDiagnostic;Ge.onUnRecoverableConfigFileDiagnostic=Is;const Ei=GV(mt,void 0,Ge,B||(B=new Map),oe);return Ge.onUnRecoverableConfigFileDiagnostic=Ot,Ei}function Mt(mt){var Ot;const Ei=Jn(mt),$i=v==null?void 0:v.get(Ei);$i&&(v.delete(Ei),$i.watchedDirectories&&rf($i.watchedDirectories,jm),(Ot=$i.watcher)==null||Ot.close(),p1e(Ei,b))}function qt(mt,Ot,Ei,$i,Qi,on){return De(Ot,(le,te)=>Ei(le,te,mt),$i,Qi,on)}function Xt(mt,Ot,Ei){Pe(mt,Ei,Ot),Ot===2&&T.has(Ei)&&Gt.invalidateResolutionOfFile(Ei),aa(Ei),Cn()}function Pe(mt,Ot,Ei){xe&&xe.addOrDeleteFile(mt,Ot,Ei)}function et(mt){return v!=null&&v.has(mt)?tw:qt(mt,mt,gt,500,ne,cd.MissingFile)}function gt(mt,Ot,Ei){Pe(mt,Ei,Ot),Ot===0&&d.has(Ei)&&(d.get(Ei).close(),d.delete(Ei),aa(Ei),Cn())}function ii(){Se?_H(f||(f=new Map),new Map(Object.entries(Se)),me):f&&rf(f,jm)}function me(mt,Ot){return Ke(mt,Ei=>{H.assert(K),H.assert(Ce);const $i=Jn(Ei);xe&&xe.addOrDeleteFileOrDirectory(Ei,$i),aa($i),!DH({watchedDirPath:Jn(mt),fileOrDirectory:Ei,fileOrDirectoryPath:$i,configFileName:K,extraFileExtensions:se,options:Ce,program:ei()||ae,currentDirectory:J,useCaseSensitiveFileNames:j,writeLog:Je,toPath:Jn})&&s!==2&&(s=1,Cn())},Ot,ne,cd.WildcardDirectory)}function ni(mt,Ot,Ei,$i){vQ(mt,Ot,b||(b=new Map),(Qi,on)=>De(Qi,(le,te)=>{var we;Pe(Qi,on,te),B&&CQ(B,on,Jn);const de=(we=b.get(on))==null?void 0:we.projects;de!=null&&de.size&&de.forEach(je=>{if(K&&Jn(K)===je)s=2;else{const X=v==null?void 0:v.get(je);X&&(X.updateLevel=2),Gt.removeResolutionsFromProjectReferenceRedirects(je)}Cn()})},2e3,Ei,$i),Jn)}function vi(mt,Ot,Ei){var $i,Qi,on,le,te;Ei.watcher||(Ei.watcher=De(mt,(we,de)=>{Pe(mt,Ot,de);const je=v==null?void 0:v.get(Ot);je&&(je.updateLevel=2),Gt.removeResolutionsFromProjectReferenceRedirects(Ot),Cn()},2e3,(($i=Ei.parsedCommandLine)==null?void 0:$i.watchOptions)||ne,cd.ConfigFileOfReferencedProject)),(Qi=Ei.parsedCommandLine)!=null&&Qi.wildcardDirectories?_H(Ei.watchedDirectories||(Ei.watchedDirectories=new Map),new Map(Object.entries((on=Ei.parsedCommandLine)==null?void 0:on.wildcardDirectories)),(we,de)=>{var je;return Ke(we,X=>{const it=Jn(X);xe&&xe.addOrDeleteFileOrDirectory(X,it),aa(it);const Ct=v==null?void 0:v.get(Ot);Ct!=null&&Ct.parsedCommandLine&&(DH({watchedDirPath:Jn(we),fileOrDirectory:X,fileOrDirectoryPath:it,configFileName:mt,options:Ct.parsedCommandLine.options,program:Ct.parsedCommandLine.fileNames,currentDirectory:J,useCaseSensitiveFileNames:j,writeLog:Je,toPath:Jn})||Ct.updateLevel!==2&&(Ct.updateLevel=1,Cn()))},de,((je=Ei.parsedCommandLine)==null?void 0:je.watchOptions)||ne,cd.WildcardDirectoryOfReferencedProject)}):Ei.watchedDirectories&&(rf(Ei.watchedDirectories,jm),Ei.watchedDirectories=void 0),ni(Ot,(le=Ei.parsedCommandLine)==null?void 0:le.options,((te=Ei.parsedCommandLine)==null?void 0:te.watchOptions)||ne,cd.ExtendedConfigOfReferencedProject)}}var Uzt=o({"src/compiler/watchPublic.ts"(){Bo()}});function ahe(t){return Ml(t,".json")?t:cr(t,"tsconfig.json")}var ohe,qzt=o({"src/compiler/tsbuild.ts"(){Bo(),ohe=(t=>(t[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",t[t.OutputMissing=4]="OutputMissing",t[t.ErrorReadingFile=5]="ErrorReadingFile",t[t.OutOfDateWithSelf=6]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",t[t.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",t[t.OutOfDateOptions=9]="OutOfDateOptions",t[t.OutOfDateRoots=10]="OutOfDateRoots",t[t.UpstreamOutOfDate=11]="UpstreamOutOfDate",t[t.UpstreamBlocked=12]="UpstreamBlocked",t[t.ComputingUpstream=13]="ComputingUpstream",t[t.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",t[t.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",t[t.ContainerOnly=16]="ContainerOnly",t[t.ForceBuild=17]="ForceBuild",t))(ohe||{})}});function Zzt(t,u,s){const d=t.get(u);let f;return d||(f=s(),t.set(u,f)),d||f}function g9e(t,u){return Zzt(t,u,()=>new Map)}function AH(t){return t.now?t.now():new Date}function e9(t){return!!t&&!!t.buildOrder}function JQ(t){return e9(t)?t.buildOrder:t}function E9e(t,u){return s=>{let d=u?`[${eb(FH(t),"\x1B[90m")}] `:`${FH(t)} - `;d+=`${lE(s.messageText,t.newLine)}${t.newLine+t.newLine}`,t.write(d)}}function Rtt(t,u,s,d){const f=uhe(t,u);return f.getModifiedTime=t.getModifiedTime?p=>t.getModifiedTime(p):hv,f.setModifiedTime=t.setModifiedTime?(p,E)=>t.setModifiedTime(p,E):Is,f.deleteFile=t.deleteFile?p=>t.deleteFile(p):Is,f.reportDiagnostic=s||kH(t),f.reportSolutionBuilderStatus=d||E9e(t),f.now=Lo(t,t.now),f}function Ott(t=c1,u,s,d,f){const p=Rtt(t,u,s,d);return p.reportErrorSummary=f,p}function jtt(t=c1,u,s,d,f){const p=Rtt(t,u,s,d),E=the(t,f);return roe(p,E),p}function Yzt(t){const u={};return QV.forEach(s=>{gu(t,s.name)&&(u[s.name]=t[s.name])}),u}function Vtt(t,u,s){return dit(!1,t,u,s)}function Htt(t,u,s,d){return dit(!0,t,u,s,d)}function Qzt(t,u,s,d,f){const p=u,E=u,v=Yzt(d),b=nhe(p,()=>J.projectCompilerOptions);KQ(b),b.getParsedCommandLine=K=>t9(J,K,cE(J,K)),b.resolveModuleNameLiterals=Lo(p,p.resolveModuleNameLiterals),b.resolveTypeReferenceDirectiveReferences=Lo(p,p.resolveTypeReferenceDirectiveReferences),b.resolveLibrary=Lo(p,p.resolveLibrary),b.resolveModuleNames=Lo(p,p.resolveModuleNames),b.resolveTypeReferenceDirectives=Lo(p,p.resolveTypeReferenceDirectives),b.getModuleResolutionCache=Lo(p,p.getModuleResolutionCache);let B,k;!b.resolveModuleNameLiterals&&!b.resolveModuleNames&&(B=KB(b.getCurrentDirectory(),b.getCanonicalFileName),b.resolveModuleNameLiterals=(K,Y,oe,se,ge)=>CH(K,Y,oe,se,ge,p,B,A1e),b.getModuleResolutionCache=()=>B),!b.resolveTypeReferenceDirectiveReferences&&!b.resolveTypeReferenceDirectives&&(k=HY(b.getCurrentDirectory(),b.getCanonicalFileName,void 0,B==null?void 0:B.getPackageJsonInfoCache(),B==null?void 0:B.optionsToRedirectsKey),b.resolveTypeReferenceDirectiveReferences=(K,Y,oe,se,ge)=>CH(K,Y,oe,se,ge,p,k,kQ));let T;b.resolveLibrary||(T=KB(b.getCurrentDirectory(),b.getCanonicalFileName,void 0,B==null?void 0:B.getPackageJsonInfoCache()),b.resolveLibrary=(K,Y,oe)=>KY(K,Y,oe,p,T)),b.getBuildInfo=(K,Y)=>iit(J,K,cE(J,Y),void 0);const{watchFile:M,watchDirectory:z,writeLog:j}=ihe(E,d),J={host:p,hostWithWatch:E,parseConfigFileHost:wQ(p),write:Lo(p,p.trace),options:d,baseCompilerOptions:v,rootNames:s,baseWatchOptions:f,resolvedConfigFilePaths:new Map,configFileCache:new Map,projectStatus:new Map,extendedConfigCache:new Map,buildInfoCache:new Map,outputTimeStamps:new Map,builderPrograms:new Map,diagnostics:new Map,projectPendingBuild:new Map,projectErrorsReported:new Map,compilerHost:b,moduleResolutionCache:B,typeReferenceDirectiveResolutionCache:k,libraryResolutionCache:T,buildOrder:void 0,readFileWithCache:K=>p.readFile(K),projectCompilerOptions:v,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,watch:t,allWatchedWildcardDirectories:new Map,allWatchedInputFiles:new Map,allWatchedConfigFiles:new Map,allWatchedExtendedConfigFiles:new Map,allWatchedPackageJsonFiles:new Map,filesWatched:new Map,lastCachedPackageJsonLookups:new Map,timerToBuildInvalidatedProject:void 0,reportFileChangeDetected:!1,watchFile:M,watchDirectory:z,writeLog:j};return J}function gm(t,u){return J0(u,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function cE(t,u){const{resolvedConfigFilePaths:s}=t,d=s.get(u);if(d!==void 0)return d;const f=gm(t,u);return s.set(u,f),f}function Ktt(t){return!!t.options}function Xzt(t,u){const s=t.configFileCache.get(u);return s&&Ktt(s)?s:void 0}function t9(t,u,s){const{configFileCache:d}=t,f=d.get(s);if(f)return Ktt(f)?f:void 0;ul("SolutionBuilder::beforeConfigFileParsing");let p;const{parseConfigFileHost:E,baseCompilerOptions:v,baseWatchOptions:b,extendedConfigCache:B,host:k}=t;let T;return k.getParsedCommandLine?(T=k.getParsedCommandLine(u),T||(p=cc(F.File_0_not_found,u))):(E.onUnRecoverableConfigFileDiagnostic=M=>p=M,T=GV(u,v,E,B,b),E.onUnRecoverableConfigFileDiagnostic=Is),d.set(s,T||p),ul("SolutionBuilder::afterConfigFileParsing"),Tm("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),T}function AM(t,u){return ahe(kx(t.compilerHost.getCurrentDirectory(),u))}function Wtt(t,u){const s=new Map,d=new Map,f=[];let p,E;for(const b of u)v(b);return E?{buildOrder:p||_t,circularDiagnostics:E}:p||_t;function v(b,B){const k=cE(t,b);if(d.has(k))return;if(s.has(k)){B||(E||(E=[])).push(cc(F.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,f.join(`\r +`)));return}s.set(k,!0),f.push(b);const T=t9(t,b,k);if(T&&T.projectReferences)for(const M of T.projectReferences){const z=AM(t,M.path);v(z,B||M.circular)}f.pop(),d.set(k,!0),(p||(p=[])).push(b)}}function $Q(t){return t.buildOrder||eIt(t)}function eIt(t){const u=Wtt(t,t.rootNames.map(f=>AM(t,f)));t.resolvedConfigFilePaths.clear();const s=new Map(JQ(u).map(f=>[cE(t,f),!0])),d={onDeleteValue:Is};return eD(t.configFileCache,s,d),eD(t.projectStatus,s,d),eD(t.builderPrograms,s,d),eD(t.diagnostics,s,d),eD(t.projectPendingBuild,s,d),eD(t.projectErrorsReported,s,d),eD(t.buildInfoCache,s,d),eD(t.outputTimeStamps,s,d),t.watch&&(eD(t.allWatchedConfigFiles,s,{onDeleteValue:fg}),t.allWatchedExtendedConfigFiles.forEach(f=>{f.projects.forEach(p=>{s.has(p)||f.projects.delete(p)}),f.close()}),eD(t.allWatchedWildcardDirectories,s,{onDeleteValue:f=>f.forEach(jm)}),eD(t.allWatchedInputFiles,s,{onDeleteValue:f=>f.forEach(fg)}),eD(t.allWatchedPackageJsonFiles,s,{onDeleteValue:f=>f.forEach(fg)})),t.buildOrder=u}function Gtt(t,u,s){const d=u&&AM(t,u),f=$Q(t);if(e9(f))return f;if(d){const E=cE(t,d);if(Ue(f,b=>cE(t,b)===E)===-1)return}const p=d?Wtt(t,[d]):f;return H.assert(!e9(p)),H.assert(!s||d!==void 0),H.assert(!s||p[p.length-1]===d),s?p.slice(0,p.length-1):p}function Jtt(t){t.cache&&_9e(t);const{compilerHost:u,host:s}=t,d=t.readFileWithCache,f=u.getSourceFile,{originalReadFile:p,originalFileExists:E,originalDirectoryExists:v,originalCreateDirectory:b,originalWriteFile:B,getSourceFileWithCache:k,readFileWithCache:T}=vH(s,M=>gm(t,M),(...M)=>f.call(u,...M));t.readFileWithCache=T,u.getSourceFile=k,t.cache={originalReadFile:p,originalFileExists:E,originalDirectoryExists:v,originalCreateDirectory:b,originalWriteFile:B,originalReadFileWithCache:d,originalGetSourceFile:f}}function _9e(t){if(!t.cache)return;const{cache:u,host:s,compilerHost:d,extendedConfigCache:f,moduleResolutionCache:p,typeReferenceDirectiveResolutionCache:E,libraryResolutionCache:v}=t;s.readFile=u.originalReadFile,s.fileExists=u.originalFileExists,s.directoryExists=u.originalDirectoryExists,s.createDirectory=u.originalCreateDirectory,s.writeFile=u.originalWriteFile,d.getSourceFile=u.originalGetSourceFile,t.readFileWithCache=u.originalReadFileWithCache,f.clear(),p==null||p.clear(),E==null||E.clear(),v==null||v.clear(),t.cache=void 0}function $tt(t,u){t.projectStatus.delete(u),t.diagnostics.delete(u)}function Utt({projectPendingBuild:t},u,s){const d=t.get(u);(d===void 0||dt.projectPendingBuild.set(cE(t,d),0)),u&&u.throwIfCancellationRequested()}function Ztt(t,u){return t.projectPendingBuild.delete(u),t.diagnostics.has(u)?1:0}function tIt(t,u,s,d,f){let p=!0;return{kind:2,project:u,projectPath:s,buildOrder:f,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{uit(t,d,s),p=!1},done:()=>(p&&uit(t,d,s),ul("SolutionBuilder::Timestamps only updates"),Ztt(t,s))}}function Ytt(t,u,s,d,f,p,E){let v=t===0?0:4,b,B,k;return t===0?{kind:t,project:s,projectPath:d,buildOrder:E,getCompilerOptions:()=>p.options,getCurrentDirectory:()=>u.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>M(il),getProgram:()=>M(ne=>ne.getProgramOrUndefined()),getSourceFile:ne=>M(ve=>ve.getSourceFile(ne)),getSourceFiles:()=>z(ne=>ne.getSourceFiles()),getOptionsDiagnostics:ne=>z(ve=>ve.getOptionsDiagnostics(ne)),getGlobalDiagnostics:ne=>z(ve=>ve.getGlobalDiagnostics(ne)),getConfigFileParsingDiagnostics:()=>z(ne=>ne.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(ne,ve)=>z(Se=>Se.getSyntacticDiagnostics(ne,ve)),getAllDependencies:ne=>z(ve=>ve.getAllDependencies(ne)),getSemanticDiagnostics:(ne,ve)=>z(Se=>Se.getSemanticDiagnostics(ne,ve)),getSemanticDiagnosticsOfNextAffectedFile:(ne,ve)=>M(Se=>Se.getSemanticDiagnosticsOfNextAffectedFile&&Se.getSemanticDiagnosticsOfNextAffectedFile(ne,ve)),emit:(ne,ve,Se,Ne,pe)=>{if(ne||Ne)return M(fe=>{var xe,Be;return fe.emit(ne,ve,Se,Ne,pe||((Be=(xe=u.host).getCustomTransformers)==null?void 0:Be.call(xe,s)))});if(Ce(2,Se),v===5)return se(ve,Se);if(v===3)return oe(ve,Se,pe)},done:T}:{kind:t,project:s,projectPath:d,buildOrder:E,getCompilerOptions:()=>p.options,getCurrentDirectory:()=>u.compilerHost.getCurrentDirectory(),emit:(ne,ve)=>v!==4?k:ae(ne,ve),done:T};function T(ne,ve,Se){return Ce(8,ne,ve,Se),ul(t===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),Ztt(u,d)}function M(ne){return Ce(0),b&&ne(b)}function z(ne){return M(ne)||_t}function j(){var ne,ve;if(H.assert(b===void 0),u.options.dry){Rh(u,F.A_non_dry_build_would_build_project_0,s),B=1,v=7;return}if(u.options.verbose&&Rh(u,F.Building_project_0,s),p.fileNames.length===0){SM(u,d,Lk(p)),B=0,v=7;return}const{host:Se,compilerHost:Ne}=u;u.projectCompilerOptions=p.options,(ne=u.moduleResolutionCache)==null||ne.update(p.options),(ve=u.typeReferenceDirectiveResolutionCache)==null||ve.update(p.options),b=Se.createProgram(p.fileNames,p.options,Ne,nIt(u,d,p),Lk(p),p.projectReferences),u.watch&&(u.lastCachedPackageJsonLookups.set(d,u.moduleResolutionCache&&Vt(u.moduleResolutionCache.getPackageJsonInfoCache().entries(),([pe,fe])=>[u.host.realpath&&fe?gm(u,u.host.realpath(pe)):pe,fe])),u.builderPrograms.set(d,b)),v++}function J(ne,ve,Se){ne.length?{buildResult:B,step:v}=v9e(u,d,b,p,ne,ve,Se):v++}function K(ne){H.assertIsDefined(b),J([...b.getConfigFileParsingDiagnostics(),...b.getOptionsDiagnostics(ne),...b.getGlobalDiagnostics(ne),...b.getSyntacticDiagnostics(void 0,ne)],8,"Syntactic")}function Y(ne){J(H.checkDefined(b).getSemanticDiagnostics(void 0,ne),16,"Semantic")}function oe(ne,ve,Se){var Ne,pe,fe;H.assertIsDefined(b),H.assert(v===3);const xe=b.saveEmitState();let Be;const Ge=st=>(Be||(Be=[])).push(st),Ae=[],{emitResult:De}=VQ(b,Ge,void 0,void 0,(st,St,It,ei,ht,Ut)=>Ae.push({name:st,text:St,writeByteOrderMark:It,data:Ut}),ve,!1,Se||((pe=(Ne=u.host).getCustomTransformers)==null?void 0:pe.call(Ne,s)));if(Be)return b.restoreEmitState(xe),{buildResult:B,step:v}=v9e(u,d,b,p,Be,32,"Declaration file"),{emitSkipped:!0,diagnostics:De.diagnostics};const{host:Ke,compilerHost:Je}=u,ft=(fe=b.hasChangedEmitSignature)!=null&&fe.call(b)?0:2,Ye=rB(),Ve=new Map,We=b.getCompilerOptions(),Gt=Xj(We);let Yt,Ie;return Ae.forEach(({name:st,text:St,writeByteOrderMark:It,data:ei})=>{const ht=gm(u,st);Ve.set(gm(u,st),st),ei!=null&&ei.buildInfo&&b9e(u,ei.buildInfo,d,We,ft);const Ut=ei!=null&&ei.differsOnlyInMap?e7(u.host,st):void 0;cP(ne?{writeFile:ne}:Je,Ye,st,St,It),ei!=null&&ei.differsOnlyInMap?u.host.setModifiedTime(st,Ut):!Gt&&u.watch&&(Yt||(Yt=C9e(u,d))).set(ht,Ie||(Ie=AH(u.host)))}),ge(Ye,Ve,Ae.length?Ae[0].name:h1e(p,!Ke.useCaseSensitiveFileNames()),ft),De}function se(ne,ve){H.assertIsDefined(b),H.assert(v===5);const Se=b.emitBuildInfo((Ne,pe,fe,xe,Be,Ge)=>{Ge!=null&&Ge.buildInfo&&b9e(u,Ge.buildInfo,d,b.getCompilerOptions(),2),ne?ne(Ne,pe,fe,xe,Be,Ge):u.compilerHost.writeFile(Ne,pe,fe,xe,Be,Ge)},ve);return Se.diagnostics.length&&(qQ(u,Se.diagnostics),u.diagnostics.set(d,[...u.diagnostics.get(d),...Se.diagnostics]),B=64&B),Se.emittedFiles&&u.write&&Se.emittedFiles.forEach(Ne=>eit(u,p,Ne)),x9e(u,b,p),v=7,Se}function ge(ne,ve,Se,Ne){const pe=ne.getDiagnostics();return pe.length?({buildResult:B,step:v}=v9e(u,d,b,p,pe,64,"Emit"),pe):(u.write&&ve.forEach(fe=>eit(u,p,fe)),nit(u,p,d,F.Updating_unchanged_output_timestamps_of_project_0,ve),u.diagnostics.delete(d),u.projectStatus.set(d,{type:1,oldestOutputFileName:Se}),x9e(u,b,p),v=7,B=Ne,pe)}function ae(ne,ve){var Se,Ne,pe,fe;if(H.assert(t===1),u.options.dry){Rh(u,F.A_non_dry_build_would_update_output_of_project_0,s),B=1,v=7;return}u.options.verbose&&Rh(u,F.Updating_output_of_project_0,s);const{compilerHost:xe}=u;u.projectCompilerOptions=p.options,(Ne=(Se=u.host).beforeEmitBundle)==null||Ne.call(Se,p);const Be=w7e(p,xe,ft=>{const Ye=AM(u,ft.path);return t9(u,Ye,cE(u,Ye))},ve||((fe=(pe=u.host).getCustomTransformers)==null?void 0:fe.call(pe,s)));if(Ja(Be))return Rh(u,F.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,s,t1(u,Be)),v=6,k=Ytt(0,u,s,d,f,p,E);H.assert(!!Be.length);const Ge=rB(),Ae=new Map;let De=2;const Ke=u.buildInfoCache.get(d).buildInfo||void 0;return Be.forEach(({name:ft,text:Ye,writeByteOrderMark:Ve,data:We})=>{var Gt,Yt;Ae.set(gm(u,ft),ft),We!=null&&We.buildInfo&&(((Gt=We.buildInfo.program)==null?void 0:Gt.outSignature)!==((Yt=Ke==null?void 0:Ke.program)==null?void 0:Yt.outSignature)&&(De&=-3),b9e(u,We.buildInfo,d,p.options,De)),cP(ne?{writeFile:ne}:xe,Ge,ft,Ye,Ve)}),{emitSkipped:!1,diagnostics:ge(Ge,Ae,Be[0].name,De)}}function Ce(ne,ve,Se,Ne){for(;v<=ne&&v<8;){const pe=v;switch(v){case 0:j();break;case 1:K(ve);break;case 2:Y(ve);break;case 3:oe(Se,ve,Ne);break;case 5:se(Se,ve);break;case 4:ae(Se,Ne);break;case 6:H.checkDefined(k).done(ve,Se,Ne),v=8;break;case 7:oIt(u,s,d,f,p,E,H.checkDefined(B)),v++;break}H.assert(v>pe)}}}function iIt({options:t},u,s){return u.type!==3||t.force?!0:s.fileNames.length===0||!!Lk(s).length||!Xj(s.options)}function Qtt(t,u,s){if(!t.projectPendingBuild.size||e9(u))return;const{options:d,projectPendingBuild:f}=t;for(let p=0;p{const z=H.checkDefined(t.filesWatched.get(v));H.assert(she(z)),z.modifiedTime=M,z.callbacks.forEach(j=>j(k,T,M))},d,f,p,E);t.filesWatched.set(v,{callbacks:[s],watcher:B,modifiedTime:b})}return{close:()=>{const B=H.checkDefined(t.filesWatched.get(v));H.assert(she(B)),B.callbacks.length===1?(t.filesWatched.delete(v),jm(B)):Vy(B.callbacks,s)}}}function C9e(t,u){if(!t.watch)return;let s=t.outputTimeStamps.get(u);return s||t.outputTimeStamps.set(u,s=new Map),s}function b9e(t,u,s,d,f){const p=f5(d),E=y9e(t,p,s),v=AH(t.host);E?(E.buildInfo=u,E.modifiedTime=v,f&2||(E.latestChangedDtsTime=v)):t.buildInfoCache.set(s,{path:gm(t,p),buildInfo:u,modifiedTime:v,latestChangedDtsTime:f&2?void 0:v})}function y9e(t,u,s){const d=gm(t,u),f=t.buildInfoCache.get(s);return(f==null?void 0:f.path)===d?f:void 0}function iit(t,u,s,d){const f=gm(t,u),p=t.buildInfoCache.get(s);if(p!==void 0&&p.path===f)return p.buildInfo||void 0;const E=t.readFileWithCache(u),v=E?_Q(u,E):void 0;return t.buildInfoCache.set(s,{path:f,buildInfo:v||!1,modifiedTime:d||K_}),v}function k9e(t,u,s,d){const f=tit(t,u);if(sJ&&(j=Se,J=Ne),M&&Y.add(gm(t,Se))}if(M){z||(z=V1e(M,b,v));for(const Se of z.roots)if(!Y.has(Se))return{type:10,buildInfoFile:b,inputFile:Se}}if(!b){const Se=gQ(u,!v.useCaseSensitiveFileNames()),Ne=C9e(t,s);for(const pe of Se){const fe=gm(t,pe);let xe=Ne==null?void 0:Ne.get(fe);if(xe||(xe=e7(t.host,pe),Ne==null||Ne.set(fe,xe)),xe===K_)return{type:4,missingOutputFileName:pe};if(xek9e(t,Se,k,B));if(ne)return ne;const ve=L(t.lastCachedPackageJsonLookups.get(s)||_t,([Se])=>k9e(t,Se,k,B));return ve||(ge&&se?{type:3,outOfDateOutputFileName:B,newerProjectName:ae}:{type:se?2:K?15:1,newestInputFileTime:J,newestInputFileName:j,oldestOutputFileName:B})}function rIt(t,u,s){return t.buildInfoCache.get(s).path===u.path}function F9e(t,u,s){if(u===void 0)return{type:0,reason:"File deleted mid-build"};const d=t.projectStatus.get(s);if(d!==void 0)return d;ul("SolutionBuilder::beforeUpToDateCheck");const f=uIt(t,u,s);return ul("SolutionBuilder::afterUpToDateCheck"),Tm("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),t.projectStatus.set(s,f),f}function nit(t,u,s,d,f){if(u.options.noEmit)return;let p;const E=f5(u.options);if(E){f!=null&&f.has(gm(t,E))||(t.options.verbose&&Rh(t,d,u.options.configFilePath),t.host.setModifiedTime(E,p=AH(t.host)),y9e(t,E,s).modifiedTime=p),t.outputTimeStamps.delete(s);return}const{host:v}=t,b=gQ(u,!v.useCaseSensitiveFileNames()),B=C9e(t,s),k=B?new Set:void 0;if(!f||b.length!==f.size){let T=!!t.options.verbose;for(const M of b){const z=gm(t,M);f!=null&&f.has(z)||(T&&(T=!1,Rh(t,d,u.options.configFilePath)),v.setModifiedTime(M,p||(p=AH(t.host))),B&&(B.set(z,p),k.add(z)))}}B==null||B.forEach((T,M)=>{!(f!=null&&f.has(M))&&!k.has(M)&&B.delete(M)})}function aIt(t,u,s){if(!u.composite)return;const d=H.checkDefined(t.buildInfoCache.get(s));if(d.latestChangedDtsTime!==void 0)return d.latestChangedDtsTime||void 0;const f=d.buildInfo&&d.buildInfo.program&&d.buildInfo.program.latestChangedDtsFile?t.host.getModifiedTime($a(d.buildInfo.program.latestChangedDtsFile,lr(d.path))):void 0;return d.latestChangedDtsTime=f||!1,f}function uit(t,u,s){if(t.options.dry)return Rh(t,F.A_non_dry_build_would_update_timestamps_for_output_of_project_0,u.options.configFilePath);nit(t,u,s,F.Updating_output_timestamps_of_project_0),t.projectStatus.set(s,{type:1,oldestOutputFileName:h1e(u,!t.host.useCaseSensitiveFileNames())})}function oIt(t,u,s,d,f,p,E){if(!(E&124)&&f.options.composite)for(let v=d+1;vt.diagnostics.has(cE(t,B)))?b?2:1:0}function ait(t,u,s){ul("SolutionBuilder::beforeClean");const d=lIt(t,u,s);return ul("SolutionBuilder::afterClean"),Tm("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),d}function lIt(t,u,s){const d=Gtt(t,u,s);if(!d)return 3;if(e9(d))return qQ(t,d.circularDiagnostics),4;const{options:f,host:p}=t,E=f.dry?[]:void 0;for(const v of d){const b=cE(t,v),B=t9(t,v,b);if(B===void 0){hit(t,b);continue}const k=gQ(B,!p.useCaseSensitiveFileNames());if(!k.length)continue;const T=new Set(B.fileNames.map(M=>gm(t,M)));for(const M of k)T.has(gm(t,M))||p.fileExists(M)&&(E?E.push(M):(p.deleteFile(M),A9e(t,b,0)))}return E&&Rh(t,F.A_non_dry_build_would_delete_the_following_files_Colon_0,E.map(v=>`\r + * ${v}`).join("")),0}function A9e(t,u,s){t.host.getParsedCommandLine&&s===1&&(s=2),s===2&&(t.configFileCache.delete(u),t.buildOrder=void 0),t.needsSummary=!0,$tt(t,u),Utt(t,u,s),Jtt(t)}function UQ(t,u,s){t.reportFileChangeDetected=!0,A9e(t,u,s),oit(t,250,!0)}function oit(t,u,s){const{hostWithWatch:d}=t;!d.setTimeout||!d.clearTimeout||(t.timerToBuildInvalidatedProject&&d.clearTimeout(t.timerToBuildInvalidatedProject),t.timerToBuildInvalidatedProject=d.setTimeout(cIt,u,"timerToBuildInvalidatedProject",t,s))}function cIt(t,u,s){ul("SolutionBuilder::beforeBuild");const d=dIt(u,s);ul("SolutionBuilder::afterBuild"),Tm("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),d&&fit(u,d)}function dIt(t,u){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),w9e(t,F.File_change_detected_Starting_incremental_compilation));let s=0;const d=$Q(t),f=D9e(t,d,!1);if(f)for(f.done(),s++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;const p=Qtt(t,d,!1);if(!p)break;if(p.kind!==2&&(u||s===5)){oit(t,100,!1);return}Xtt(t,p,d).done(),p.kind!==2&&s++}return _9e(t),d}function sit(t,u,s,d){!t.watch||t.allWatchedConfigFiles.has(s)||t.allWatchedConfigFiles.set(s,lhe(t,u,()=>UQ(t,s,2),2e3,d==null?void 0:d.watchOptions,cd.ConfigFile,u))}function lit(t,u,s){vQ(u,s==null?void 0:s.options,t.allWatchedExtendedConfigFiles,(d,f)=>lhe(t,d,()=>{var p;return(p=t.allWatchedExtendedConfigFiles.get(f))==null?void 0:p.projects.forEach(E=>UQ(t,E,2))},2e3,s==null?void 0:s.watchOptions,cd.ExtendedConfigFile),d=>gm(t,d))}function cit(t,u,s,d){t.watch&&_H(g9e(t.allWatchedWildcardDirectories,s),new Map(Object.entries(d.wildcardDirectories)),(f,p)=>t.watchDirectory(f,E=>{var v;DH({watchedDirPath:gm(t,f),fileOrDirectory:E,fileOrDirectoryPath:gm(t,E),configFileName:u,currentDirectory:t.compilerHost.getCurrentDirectory(),options:d.options,program:t.builderPrograms.get(s)||((v=Xzt(t,s))==null?void 0:v.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:b=>t.writeLog(b),toPath:b=>gm(t,b)})||UQ(t,s,1)},p,d==null?void 0:d.watchOptions,cd.WildcardDirectory,u))}function S9e(t,u,s,d){t.watch&&cB(g9e(t.allWatchedInputFiles,s),lg(d.fileNames,f=>gm(t,f)),{createNewValue:(f,p)=>lhe(t,p,()=>UQ(t,s,0),250,d==null?void 0:d.watchOptions,cd.SourceFile,u),onDeleteValue:fg})}function B9e(t,u,s,d){!t.watch||!t.lastCachedPackageJsonLookups||cB(g9e(t.allWatchedPackageJsonFiles,s),new Map(t.lastCachedPackageJsonLookups.get(s)),{createNewValue:(f,p)=>lhe(t,f,()=>UQ(t,s,0),2e3,d==null?void 0:d.watchOptions,cd.PackageJson,u),onDeleteValue:fg})}function hIt(t,u){if(t.watchAllProjectsPending){ul("SolutionBuilder::beforeWatcherCreation"),t.watchAllProjectsPending=!1;for(const s of JQ(u)){const d=cE(t,s),f=t9(t,s,d);sit(t,s,d,f),lit(t,d,f),f&&(cit(t,s,d,f),S9e(t,s,d,f),B9e(t,s,d,f))}ul("SolutionBuilder::afterWatcherCreation"),Tm("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function fIt(t){rf(t.allWatchedConfigFiles,fg),rf(t.allWatchedExtendedConfigFiles,jm),rf(t.allWatchedWildcardDirectories,u=>rf(u,jm)),rf(t.allWatchedInputFiles,u=>rf(u,fg)),rf(t.allWatchedPackageJsonFiles,u=>rf(u,fg))}function dit(t,u,s,d,f){const p=Qzt(t,u,s,d,f);return{build:(E,v,b,B)=>rit(p,E,v,b,B),clean:E=>ait(p,E),buildReferences:(E,v,b,B)=>rit(p,E,v,b,B,!0),cleanReferences:E=>ait(p,E,!0),getNextInvalidatedProject:E=>(qtt(p,E),D9e(p,$Q(p),!1)),getBuildOrder:()=>$Q(p),getUpToDateStatusOfProject:E=>{const v=AM(p,E),b=cE(p,v);return F9e(p,t9(p,v,b),b)},invalidateProject:(E,v)=>A9e(p,E,v||0),close:()=>fIt(p)}}function t1(t,u){return wN(u,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function Rh(t,u,...s){t.host.reportSolutionBuilderStatus(cc(u,...s))}function w9e(t,u,...s){var d,f;(f=(d=t.hostWithWatch).onWatchStatusChange)==null||f.call(d,cc(u,...s),t.host.getNewLine(),t.baseCompilerOptions)}function qQ({host:t},u){u.forEach(s=>t.reportDiagnostic(s))}function SM(t,u,s){qQ(t,s),t.projectErrorsReported.set(u,!0),s.length&&t.diagnostics.set(u,s)}function hit(t,u){SM(t,u,[t.configFileCache.get(u)])}function fit(t,u){if(!t.needsSummary)return;t.needsSummary=!1;const s=t.watch||!!t.host.reportErrorSummary,{diagnostics:d}=t;let f=0,p=[];e9(u)?(mit(t,u.buildOrder),qQ(t,u.circularDiagnostics),s&&(f+=OQ(u.circularDiagnostics)),s&&(p=[...p,...jQ(u.circularDiagnostics)])):(u.forEach(E=>{const v=cE(t,E);t.projectErrorsReported.has(v)||qQ(t,d.get(v)||_t)}),s&&d.forEach(E=>f+=OQ(E)),s&&d.forEach(E=>[...p,...jQ(E)])),t.watch?w9e(t,U1e(f),f):t.host.reportErrorSummary&&t.host.reportErrorSummary(f,p)}function mit(t,u){t.options.verbose&&Rh(t,F.Projects_in_this_build_Colon_0,u.map(s=>`\r + * `+t1(t,s)).join(""))}function mIt(t,u,s){switch(s.type){case 6:return Rh(t,F.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,t1(t,u),t1(t,s.outOfDateOutputFileName),t1(t,s.newerInputFileName));case 7:return Rh(t,F.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,t1(t,u),t1(t,s.outOfDateOutputFileName),t1(t,s.newerProjectName));case 4:return Rh(t,F.Project_0_is_out_of_date_because_output_file_1_does_not_exist,t1(t,u),t1(t,s.missingOutputFileName));case 5:return Rh(t,F.Project_0_is_out_of_date_because_there_was_error_reading_file_1,t1(t,u),t1(t,s.fileName));case 8:return Rh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,t1(t,u),t1(t,s.buildInfoFile));case 9:return Rh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,t1(t,u),t1(t,s.buildInfoFile));case 10:return Rh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,t1(t,u),t1(t,s.buildInfoFile),t1(t,s.inputFile));case 1:if(s.newestInputFileTime!==void 0)return Rh(t,F.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,t1(t,u),t1(t,s.newestInputFileName||""),t1(t,s.oldestOutputFileName||""));break;case 3:return Rh(t,F.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,t1(t,u),t1(t,s.newerProjectName));case 2:return Rh(t,F.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,t1(t,u));case 15:return Rh(t,F.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,t1(t,u));case 11:return Rh(t,F.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,t1(t,u),t1(t,s.upstreamProjectName));case 12:return Rh(t,s.upstreamProjectBlocked?F.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:F.Project_0_can_t_be_built_because_its_dependency_1_has_errors,t1(t,u),t1(t,s.upstreamProjectName));case 0:return Rh(t,F.Failed_to_parse_file_0_Colon_1,t1(t,u),s.reason);case 14:return Rh(t,F.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,t1(t,u),s.version,_);case 17:return Rh(t,F.Project_0_is_being_forcibly_rebuilt,t1(t,u))}}function che(t,u,s){t.options.verbose&&mIt(t,u,s)}var pit,git,dhe,pIt=o({"src/compiler/tsbuildPublic.ts"(){Bo(),Wy(),pit=new Date(-864e13),git=new Date(864e13),dhe=(t=>(t[t.Build=0]="Build",t[t.UpdateBundle=1]="UpdateBundle",t[t.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",t))(dhe||{})}}),Bo=o({"src/compiler/_namespaces/ts.ts"(){y(),bwt(),ywt(),Pwt(),Iwt(),Rwt(),qwt(),Nqe(),uTt(),lTt(),cTt(),pTt(),vTt(),DLt(),xLt(),vLt(),CLt(),TLt(),LLt(),NLt(),PLt(),oNt(),sNt(),_Nt(),zNt(),lPt(),pPt(),gPt(),APt(),NPt(),VPt(),UPt(),oMt(),sMt(),EMt(),_Mt(),DMt(),FMt(),AMt(),SMt(),BMt(),wMt(),TMt(),LMt(),NMt(),PMt(),IMt(),RMt(),OMt(),jMt(),VMt(),KMt(),WMt(),GMt(),JMt(),$Mt(),UMt(),ezt(),azt(),gzt(),_zt(),Czt(),bzt(),yzt(),jzt(),Vzt(),Wzt(),$zt(),Uzt(),qzt(),pIt(),NAe(),Wy()}});function Eit(t){return c1.args.includes(t)}function _it(t){const u=c1.args.indexOf(t);return u>=0&&u{t.GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(mhe||(mhe={})),P9e=` + `}}),EIt=o({"src/jsTyping/types.ts"(){}}),QQ=o({"src/jsTyping/_namespaces/ts.server.ts"(){gIt(),EIt()}});function xit(t,u){return new Lp(uo(u,`ts${g}`)||uo(u,"latest")).compareTo(t.version)<=0}function vit(t){return O9e.has(t)?"node":t}function _It(t,u){const s=JV(u,d=>t.readFile(d));return new Map(Object.entries(s.config))}function DIt(t,u){var s;const d=JV(u,f=>t.readFile(f));if((s=d.config)!=null&&s.simpleMap)return new Map(Object.entries(d.config.simpleMap))}function xIt(t,u,s,d,f,p,E,v,b,B){if(!E||!E.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const k=new Map;s=qi(s,ge=>{const ae=$o(ge);if(z2(ae))return ae});const T=[];E.include&&Y(E.include,"Explicitly included types");const M=E.exclude||[];if(!B.types){const ge=new Set(s.map(lr));ge.add(d),ge.forEach(ae=>{oe(ae,"bower.json","bower_components",T),oe(ae,"package.json","node_modules",T)})}if(E.disableFilenameBasedTypeAcquisition||se(s),v){const ge=ri(v.map(vit),XA,dh);Y(ge,"Inferred typings from unresolved imports")}for(const ge of M)k.delete(ge)&&u&&u(`Typing for ${ge} is in exclude list, will be ignored.`);p.forEach((ge,ae)=>{const Ce=b.get(ae);k.get(ae)===!1&&Ce!==void 0&&xit(ge,Ce)&&k.set(ae,ge.typingLocation)});const z=[],j=[];k.forEach((ge,ae)=>{ge?j.push(ge):z.push(ae)});const J={cachedTypingPaths:j,newTypingNames:z,filesToWatch:T};return u&&u(`Finished typings discovery:${nw(J)}`),J;function K(ge){k.has(ge)||k.set(ge,!1)}function Y(ge,ae){u&&u(`${ae}: ${JSON.stringify(ge)}`),L(ge,K)}function oe(ge,ae,Ce,ne){const ve=cr(ge,ae);let Se,Ne;t.fileExists(ve)&&(ne.push(ve),Se=JV(ve,Be=>t.readFile(Be)).config,Ne=ju([Se.dependencies,Se.devDependencies,Se.optionalDependencies,Se.peerDependencies],Ns),Y(Ne,`Typing names in '${ve}' dependencies`));const pe=cr(ge,Ce);if(ne.push(pe),!t.directoryExists(pe))return;const fe=[],xe=Ne?Ne.map(Be=>cr(pe,Be,ae)):t.readDirectory(pe,[".json"],void 0,void 0,3).filter(Be=>{if(Ac(Be)!==ae)return!1;const Ge=yd($o(Be)),Ae=Ge[Ge.length-3][0]==="@";return Ae&&$g(Ge[Ge.length-4])===Ce||!Ae&&$g(Ge[Ge.length-3])===Ce});u&&u(`Searching for typing names in ${pe}; all files: ${JSON.stringify(xe)}`);for(const Be of xe){const Ge=$o(Be),De=JV(Ge,Je=>t.readFile(Je)).config;if(!De.name)continue;const Ke=De.types||De.typings;if(Ke){const Je=$a(Ke,lr(Ge));t.fileExists(Je)?(u&&u(` Package '${De.name}' provides its own types.`),k.set(De.name,Je)):u&&u(` Package '${De.name}' provides its own types but they are missing.`)}else fe.push(De.name)}Y(fe," Found package names")}function se(ge){const ae=qi(ge,ne=>{if(!z2(ne))return;const ve=_h($g(Ac(ne))),Se=soe(ve);return f.get(Se)});ae.length&&Y(ae,"Inferred typings from file names"),Oe(ge,ne=>Ml(ne,".jsx"))&&(u&&u("Inferred 'react' typings due to presence of '.jsx' extension"),K("react"))}}function vIt(t){return M9e(t,!0)}function M9e(t,u){if(!t)return 1;if(t.length>V9e)return 2;if(t.charCodeAt(0)===46)return 3;if(t.charCodeAt(0)===95)return 4;if(u){const s=/^@([^/]+)\/([^/]+)$/.exec(t);if(s){const d=M9e(s[1],!1);if(d!==0)return{name:s[1],isScopeName:!0,result:d};const f=M9e(s[2],!1);return f!==0?{name:s[2],isScopeName:!1,result:f}:0}}return encodeURIComponent(t)!==t?5:0}function CIt(t,u){return typeof t=="object"?Cit(u,t.result,t.name,t.isScopeName):Cit(u,t,u,!1)}function Cit(t,u,s,d){const f=d?"Scope":"Package";switch(u){case 1:return`'${t}':: ${f} name '${s}' cannot be empty`;case 2:return`'${t}':: ${f} name '${s}' should be less than ${V9e} characters`;case 3:return`'${t}':: ${f} name '${s}' cannot start with '.'`;case 4:return`'${t}':: ${f} name '${s}' cannot start with '_'`;case 5:return`'${t}':: ${f} name '${s}' contains non URI safe characters`;case 0:return H.fail();default:H.assertNever(u)}}var z9e,I9e,R9e,O9e,j9e,V9e,bIt=o({"src/jsTyping/jsTyping.ts"(){BH(),QQ(),z9e=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],I9e=z9e.map(t=>`node:${t}`),R9e=[...z9e,...I9e],O9e=new Set(R9e),j9e=(t=>(t[t.Ok=0]="Ok",t[t.EmptyName=1]="EmptyName",t[t.NameTooLong=2]="NameTooLong",t[t.NameStartsWithDot=3]="NameStartsWithDot",t[t.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",t[t.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t))(j9e||{}),V9e=214}}),o3={};h(o3,{NameValidationResult:()=>j9e,discoverTypings:()=>xIt,isTypingUpToDate:()=>xit,loadSafeList:()=>_It,loadTypesMap:()=>DIt,nodeCoreModuleList:()=>R9e,nodeCoreModules:()=>O9e,nonRelativeModuleNameForTypingCache:()=>vit,prefixedNodeCoreModuleList:()=>I9e,renderPackageNameValidationFailure:()=>CIt,validatePackageName:()=>vIt});var yIt=o({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){bIt()}}),BH=o({"src/jsTyping/_namespaces/ts.ts"(){Bo(),yIt(),QQ()}});function XQ(t){return{indentSize:4,tabSize:4,newLineCharacter:t||` +`,convertTabsToSpaces:!0,indentStyle:2,insertSpaceAfterConstructor:!1,insertSpaceAfterCommaDelimiter:!0,insertSpaceAfterSemicolonInForStatements:!0,insertSpaceBeforeAndAfterBinaryOperators:!0,insertSpaceAfterKeywordsInControlFlowStatements:!0,insertSpaceAfterFunctionKeywordForAnonymousFunctions:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets:!1,insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces:!0,insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces:!1,insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces:!1,insertSpaceBeforeFunctionParenthesis:!1,placeOpenBraceOnNewLineForFunctions:!1,placeOpenBraceOnNewLineForControlBlocks:!1,semicolons:"ignore",trimTrailingWhitespace:!0,indentSwitchCase:!0}}var eX,phe,ghe,Ehe,d4,_he,Dhe,xhe,vhe,Che,bhe,yhe,H9e,wH,khe,Fhe,Ahe,She,Bhe,whe,The,Lhe,Nhe,kIt=o({"src/services/types.ts"(){(t=>{class u{constructor(f){this.text=f}getText(f,p){return f===0&&p===this.text.length?this.text:this.text.substring(f,p)}getLength(){return this.text.length}getChangeRange(){}}function s(d){return new u(d)}t.fromString=s})(eX||(eX={})),phe=(t=>(t[t.Dependencies=1]="Dependencies",t[t.DevDependencies=2]="DevDependencies",t[t.PeerDependencies=4]="PeerDependencies",t[t.OptionalDependencies=8]="OptionalDependencies",t[t.All=15]="All",t))(phe||{}),ghe=(t=>(t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto",t))(ghe||{}),Ehe=(t=>(t[t.Semantic=0]="Semantic",t[t.PartialSemantic=1]="PartialSemantic",t[t.Syntactic=2]="Syntactic",t))(Ehe||{}),d4={},_he=(t=>(t.Original="original",t.TwentyTwenty="2020",t))(_he||{}),Dhe=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(Dhe||{}),xhe=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(xhe||{}),vhe=(t=>(t.Type="Type",t.Parameter="Parameter",t.Enum="Enum",t))(vhe||{}),Che=(t=>(t.none="none",t.definition="definition",t.reference="reference",t.writtenReference="writtenReference",t))(Che||{}),bhe=(t=>(t[t.None=0]="None",t[t.Block=1]="Block",t[t.Smart=2]="Smart",t))(bhe||{}),yhe=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(yhe||{}),H9e=XQ(` +`),wH=(t=>(t[t.aliasName=0]="aliasName",t[t.className=1]="className",t[t.enumName=2]="enumName",t[t.fieldName=3]="fieldName",t[t.interfaceName=4]="interfaceName",t[t.keyword=5]="keyword",t[t.lineBreak=6]="lineBreak",t[t.numericLiteral=7]="numericLiteral",t[t.stringLiteral=8]="stringLiteral",t[t.localName=9]="localName",t[t.methodName=10]="methodName",t[t.moduleName=11]="moduleName",t[t.operator=12]="operator",t[t.parameterName=13]="parameterName",t[t.propertyName=14]="propertyName",t[t.punctuation=15]="punctuation",t[t.space=16]="space",t[t.text=17]="text",t[t.typeParameterName=18]="typeParameterName",t[t.enumMemberName=19]="enumMemberName",t[t.functionName=20]="functionName",t[t.regularExpressionLiteral=21]="regularExpressionLiteral",t[t.link=22]="link",t[t.linkName=23]="linkName",t[t.linkText=24]="linkText",t))(wH||{}),khe=(t=>(t[t.None=0]="None",t[t.MayIncludeAutoImports=1]="MayIncludeAutoImports",t[t.IsImportStatementCompletion=2]="IsImportStatementCompletion",t[t.IsContinuation=4]="IsContinuation",t[t.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",t[t.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",t[t.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",t))(khe||{}),Fhe=(t=>(t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports",t))(Fhe||{}),Ahe=(t=>(t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration",t))(Ahe||{}),She=(t=>(t[t.None=0]="None",t[t.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",t[t.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",t[t.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",t[t.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",t[t.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",t[t.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",t))(She||{}),Bhe=(t=>(t[t.Punctuation=0]="Punctuation",t[t.Keyword=1]="Keyword",t[t.Operator=2]="Operator",t[t.Comment=3]="Comment",t[t.Whitespace=4]="Whitespace",t[t.Identifier=5]="Identifier",t[t.NumberLiteral=6]="NumberLiteral",t[t.BigIntLiteral=7]="BigIntLiteral",t[t.StringLiteral=8]="StringLiteral",t[t.RegExpLiteral=9]="RegExpLiteral",t))(Bhe||{}),whe=(t=>(t.unknown="",t.warning="warning",t.keyword="keyword",t.scriptElement="script",t.moduleElement="module",t.classElement="class",t.localClassElement="local class",t.interfaceElement="interface",t.typeElement="type",t.enumElement="enum",t.enumMemberElement="enum member",t.variableElement="var",t.localVariableElement="local var",t.variableUsingElement="using",t.variableAwaitUsingElement="await using",t.functionElement="function",t.localFunctionElement="local function",t.memberFunctionElement="method",t.memberGetAccessorElement="getter",t.memberSetAccessorElement="setter",t.memberVariableElement="property",t.memberAccessorVariableElement="accessor",t.constructorImplementationElement="constructor",t.callSignatureElement="call",t.indexSignatureElement="index",t.constructSignatureElement="construct",t.parameterElement="parameter",t.typeParameterElement="type parameter",t.primitiveType="primitive type",t.label="label",t.alias="alias",t.constElement="const",t.letElement="let",t.directory="directory",t.externalModuleName="external module name",t.jsxAttribute="JSX attribute",t.string="string",t.link="link",t.linkName="link name",t.linkText="link text",t))(whe||{}),The=(t=>(t.none="",t.publicMemberModifier="public",t.privateMemberModifier="private",t.protectedMemberModifier="protected",t.exportedModifier="export",t.ambientModifier="declare",t.staticModifier="static",t.abstractModifier="abstract",t.optionalModifier="optional",t.deprecatedModifier="deprecated",t.dtsModifier=".d.ts",t.tsModifier=".ts",t.tsxModifier=".tsx",t.jsModifier=".js",t.jsxModifier=".jsx",t.jsonModifier=".json",t.dmtsModifier=".d.mts",t.mtsModifier=".mts",t.mjsModifier=".mjs",t.dctsModifier=".d.cts",t.ctsModifier=".cts",t.cjsModifier=".cjs",t))(The||{}),Lhe=(t=>(t.comment="comment",t.identifier="identifier",t.keyword="keyword",t.numericLiteral="number",t.bigintLiteral="bigint",t.operator="operator",t.stringLiteral="string",t.whiteSpace="whitespace",t.text="text",t.punctuation="punctuation",t.className="class name",t.enumName="enum name",t.interfaceName="interface name",t.moduleName="module name",t.typeParameterName="type parameter name",t.typeAliasName="type alias name",t.parameterName="parameter name",t.docCommentTagName="doc comment tag name",t.jsxOpenTagName="jsx open tag name",t.jsxCloseTagName="jsx close tag name",t.jsxSelfClosingTagName="jsx self closing tag name",t.jsxAttribute="jsx attribute",t.jsxText="jsx text",t.jsxAttributeStringLiteralValue="jsx attribute string literal value",t))(Lhe||{}),Nhe=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(Nhe||{})}});function TH(t){switch(t.kind){case 260:return Qn(t)&&Ose(t)?7:1;case 169:case 208:case 172:case 171:case 303:case 304:case 174:case 173:case 176:case 177:case 178:case 262:case 218:case 219:case 299:case 291:return 1;case 168:case 264:case 265:case 187:return 2;case 353:return t.name===void 0?3:2;case 306:case 263:return 3;case 267:return N1(t)||oD(t)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function Pk(t){t=Jhe(t);const u=t.parent;return t.kind===312?1:tc(u)||eh(u)||r_(u)||bf(u)||n_(u)||E1(u)&&t===u.name?7:tX(t)?FIt(t):X3(t)?TH(u):sm(t)&&Tn(t,dg(QP,o7,Rv))?7:wIt(t)?2:AIt(t)?4:Bl(u)?(H.assert(_g(u.parent)),2):Mv(u)?3:1}function FIt(t){const u=t.kind===166?t:vf(t.parent)&&t.parent.right===t?t.parent:void 0;return u&&u.parent.kind===271?7:4}function tX(t){for(;t.parent.kind===166;)t=t.parent;return U8(t.parent)&&t.parent.moduleReference===t}function AIt(t){return SIt(t)||BIt(t)}function SIt(t){let u=t,s=!0;if(u.parent.kind===166){for(;u.parent&&u.parent.kind===166;)u=u.parent;s=u.right===t}return u.parent.kind===183&&!s}function BIt(t){let u=t,s=!0;if(u.parent.kind===211){for(;u.parent&&u.parent.kind===211;)u=u.parent;s=u.name===t}if(!s&&u.parent.kind===233&&u.parent.parent.kind===298){const d=u.parent.parent.parent;return d.kind===263&&u.parent.parent.token===119||d.kind===264&&u.parent.parent.token===96}return!1}function wIt(t){switch(gP(t)&&(t=t.parent),t.kind){case 110:return!Z_(t);case 197:return!0}switch(t.parent.kind){case 183:return!0;case 205:return!t.parent.isTypeOf;case 233:return q_(t.parent)}return!1}function Phe(t,u=!1,s=!1){return LH(t,Mo,zhe,u,s)}function wM(t,u=!1,s=!1){return LH(t,j2,zhe,u,s)}function Mhe(t,u=!1,s=!1){return LH(t,$E,zhe,u,s)}function K9e(t,u=!1,s=!1){return LH(t,Dk,TIt,u,s)}function W9e(t,u=!1,s=!1){return LH(t,g1,zhe,u,s)}function G9e(t,u=!1,s=!1){return LH(t,zh,LIt,u,s)}function zhe(t){return t.expression}function TIt(t){return t.tag}function LIt(t){return t.tagName}function LH(t,u,s,d,f){let p=d?J9e(t):iX(t);return f&&(p=Dc(p)),!!p&&!!p.parent&&u(p.parent)&&s(p.parent)===p}function iX(t){return uw(t)?t.parent:t}function J9e(t){return uw(t)||jhe(t)?t.parent:t}function nX(t,u){for(;t;){if(t.kind===256&&t.label.escapedText===u)return t.label;t=t.parent}}function NH(t,u){return Iu(t.expression)?t.expression.name.text===u:!1}function PH(t){var u;return at(t)&&((u=ur(t.parent,ON))==null?void 0:u.label)===t}function Ihe(t){var u;return at(t)&&((u=ur(t.parent,V2))==null?void 0:u.label)===t}function Rhe(t){return Ihe(t)||PH(t)}function Ohe(t){var u;return((u=ur(t.parent,I8))==null?void 0:u.tagName)===t}function $9e(t){var u;return((u=ur(t.parent,vf))==null?void 0:u.right)===t}function uw(t){var u;return((u=ur(t.parent,Iu))==null?void 0:u.name)===t}function jhe(t){var u;return((u=ur(t.parent,U0))==null?void 0:u.argumentExpression)===t}function Vhe(t){var u;return((u=ur(t.parent,_c))==null?void 0:u.name)===t}function Hhe(t){var u;return at(t)&&((u=ur(t.parent,Co))==null?void 0:u.name)===t}function uX(t){switch(t.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Za(t.parent)===t;case 212:return t.parent.argumentExpression===t;case 167:return!0;case 201:return t.parent.parent.kind===199;default:return!1}}function U9e(t){return bv(t.parent.parent)&&XN(t.parent.parent)===t}function Mk(t){for(G4(t)&&(t=t.parent.parent);;){if(t=t.parent,!t)return;switch(t.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return t}}}function tb(t){switch(t.kind){case 312:return wc(t)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return u(t);case 208:return u(XE(t));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:s}=t;return Co(s)?"method":"property";case 172:case 171:case 304:case 305:return"property";case 181:return"index";case 180:return"construct";case 179:return"call";case 176:case 175:return"constructor";case 168:return"type parameter";case 306:return"enum member";case 169:return Yu(t,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const d=Xl(t),{right:f}=t;switch(d){case 7:case 8:case 9:case 0:return"";case 1:case 2:const E=tb(f);return E===""?"const":E;case 3:return A0(f)?"method":"property";case 4:return"property";case 5:return A0(f)?"method":"property";case 6:return"local class";default:return""}case 80:return n_(t.parent)?"alias":"";case 277:const p=tb(t.expression);return p===""?"const":p;default:return""}function u(s){return K8(s)?"const":rq(s)?"let":"var"}}function rw(t){switch(t.kind){case 110:return!0;case 80:return ule(t)&&t.parent.kind===169;default:return!1}}function tp(t,u){const s=$3(u),d=u.getLineAndCharacterOfPosition(t).line;return s[d]}function Vm(t,u){return Khe(t.pos,t.end,u)}function q9e(t,u){return zH(t,u.pos)&&zH(t,u.end)}function MH(t,u){return t.pos<=u&&u<=t.end}function zH(t,u){return t.pos=s.end}function IH(t,u,s){return t.pos<=u&&t.end>=s}function TM(t,u,s){return aX(t.pos,t.end,u,s)}function rX(t,u,s,d){return aX(t.getStart(u),t.end,s,d)}function aX(t,u,s,d){const f=Math.max(t,s),p=Math.min(u,d);return fd.kind===u)}function oX(t){const u=Le(t.parent.getChildren(),s=>MB(s)&&Vm(s,t));return H.assert(!u||kt(u.getChildren(),t)),u}function bit(t){return t.kind===90}function NIt(t){return t.kind===86}function PIt(t){return t.kind===100}function MIt(t){if(mh(t))return t.name;if(Wc(t)){const u=t.modifiers&&Le(t.modifiers,bit);if(u)return u}if(Xd(t)){const u=Le(t.getChildren(),NIt);if(u)return u}}function zIt(t){if(mh(t))return t.name;if(ed(t)){const u=Le(t.modifiers,bit);if(u)return u}if(A0(t)){const u=Le(t.getChildren(),PIt);if(u)return u}}function IIt(t){let u;return Tn(t,s=>(Qr(s)&&(u=s),!vf(s.parent)&&!Qr(s.parent)&&!Zy(s.parent))),u}function sX(t,u){if(t.flags&16777216)return;const s=SX(t,u);if(s)return s;const d=IIt(t);return d&&u.getTypeAtLocation(d)}function RIt(t,u){if(!u)switch(t.kind){case 263:case 231:return MIt(t);case 262:case 218:return zIt(t);case 176:return t}if(mh(t))return t.name}function yit(t,u){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(uD(t.importClause.namedBindings)){const s=Aa(t.importClause.namedBindings.elements);return s?s.name:void 0}else if(Jx(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!u)return t.moduleSpecifier}function kit(t,u){if(t.exportClause){if(ep(t.exportClause))return Aa(t.exportClause.elements)?t.exportClause.elements[0].name:void 0;if(u_(t.exportClause))return t.exportClause.name}if(!u)return t.moduleSpecifier}function OIt(t){if(t.types.length===1)return t.types[0].expression}function Fit(t,u){const{parent:s}=t;if(Qo(t)&&(u||t.kind!==90)?Hp(s)&&kt(s.modifiers,t):t.kind===86?Wc(s)||Xd(t):t.kind===100?ed(s)||A0(t):t.kind===120?xh(s):t.kind===94?Iv(s):t.kind===156?jp(s):t.kind===145||t.kind===144?_c(s):t.kind===102?E1(s):t.kind===139?zm(s):t.kind===153&&jf(s)){const d=RIt(s,u);if(d)return d}if((t.kind===115||t.kind===87||t.kind===121)&&Ad(s)&&s.declarations.length===1){const d=s.declarations[0];if(at(d.name))return d.name}if(t.kind===156){if(n_(s)&&s.isTypeOnly){const d=yit(s.parent,u);if(d)return d}if(Gc(s)&&s.isTypeOnly){const d=kit(s,u);if(d)return d}}if(t.kind===130){if(bf(s)&&s.propertyName||eh(s)&&s.propertyName||Jx(s)||u_(s))return s.name;if(Gc(s)&&s.exportClause&&u_(s.exportClause))return s.exportClause.name}if(t.kind===102&&Sd(s)){const d=yit(s,u);if(d)return d}if(t.kind===95){if(Gc(s)){const d=kit(s,u);if(d)return d}if(tc(s))return Dc(s.expression)}if(t.kind===149&&r_(s))return s.expression;if(t.kind===161&&(Sd(s)||Gc(s))&&s.moduleSpecifier)return s.moduleSpecifier;if((t.kind===96||t.kind===119)&&mm(s)&&s.token===t.kind){const d=OIt(s);if(d)return d}if(t.kind===96){if(Bl(s)&&s.constraint&&X4(s.constraint))return s.constraint.typeName;if(FB(s)&&X4(s.extendsType))return s.extendsType.typeName}if(t.kind===140&&P7(s))return s.typeParameter.name;if(t.kind===103&&Bl(s)&&JP(s.parent))return s.name;if(t.kind===143&&z7(s)&&s.operator===143&&X4(s.type))return s.type.typeName;if(t.kind===148&&z7(s)&&s.operator===148&&oY(s.type)&&X4(s.type.elementType))return s.type.elementType.typeName;if(!u){if((t.kind===105&&j2(s)||t.kind===116&&R7(s)||t.kind===114&&AB(s)||t.kind===135&&Gx(s)||t.kind===127&&cY(s)||t.kind===91&&oFe(s))&&s.expression)return Dc(s.expression);if((t.kind===103||t.kind===104)&&Xn(s)&&s.operatorToken===t)return Dc(s.right);if(t.kind===130&&AV(s)&&X4(s.type))return s.type.typeName;if(t.kind===103&&hY(s)||t.kind===165&&SV(s))return Dc(s.expression)}return t}function Jhe(t){return Fit(t,!1)}function lX(t){return Fit(t,!0)}function af(t,u){return LM(t,u,s=>Xg(s)||uf(s.kind)||Xr(s))}function LM(t,u,s){return Ait(t,u,!1,s,!1)}function Ca(t,u){return Ait(t,u,!0,void 0,!1)}function Ait(t,u,s,d,f){let p=t,E;e:for(;;){const b=p.getChildren(t),B=va(b,u,(k,T)=>T,(k,T)=>{const M=b[k].getEnd();if(Mu?1:v(b[k],z,M)?b[k-1]&&v(b[k-1])?1:0:d&&z===u&&b[k-1]&&b[k-1].getEnd()===u&&v(b[k-1])?1:-1});if(E)return E;if(B>=0&&b[B]){p=b[B];continue e}return p}function v(b,B,k){if(k??(k=b.getEnd()),ku))return!1;if(us.getStart(t)&&u(p.pos<=t.pos&&p.end>t.end||p.pos===t.end)&&uSe(p,s)?d(p):void 0)}}function td(t,u,s,d){const f=p(s||u);return H.assert(!(f&&dX(f))),f;function p(E){if(Sit(E)&&E.kind!==1)return E;const v=E.getChildren(u),b=va(v,t,(k,T)=>T,(k,T)=>t=v[k-1].end?0:1:-1);if(b>=0&&v[b]){const k=v[b];if(t=t||!uSe(k,u)||dX(k)){const z=X9e(v,b,u,E.kind);return z?!d&&GU(z)&&z.getChildren(u).length?p(z):Q9e(z,u):void 0}else return p(k)}H.assert(s!==void 0||E.kind===312||E.kind===1||GU(E));const B=X9e(v,v.length,u,E.kind);return B&&Q9e(B,u)}}function Sit(t){return u7(t)&&!dX(t)}function Q9e(t,u){if(Sit(t))return t;const s=t.getChildren(u);if(s.length===0)return t;const d=X9e(s,s.length,u,t.kind);return d&&Q9e(d,u)}function X9e(t,u,s,d){for(let f=u-1;f>=0;f--){const p=t[f];if(dX(p))f===0&&(d===12||d===285)&&H.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(uSe(t[f],s))return t[f]}}function zk(t,u,s=td(u,t)){if(s&&Use(s)){const d=s.getStart(t),f=s.getEnd();if(ds.getStart(t)}function tSe(t,u){const s=Ca(t,u);return!!(w7(s)||s.kind===19&&YP(s.parent)&&r3(s.parent.parent)||s.kind===30&&zh(s.parent)&&r3(s.parent.parent))}function hX(t,u){function s(d){for(;d;)if(d.kind>=285&&d.kind<=294||d.kind===12||d.kind===30||d.kind===32||d.kind===80||d.kind===20||d.kind===19||d.kind===44)d=d.parent;else if(d.kind===284){if(u>d.getStart(t))return!0;d=d.parent}else return!1;return!1}return s(Ca(t,u))}function fX(t,u,s){const d=Uo(t.kind),f=Uo(u),p=t.getFullStart(),E=s.text.lastIndexOf(f,p);if(E===-1)return;if(s.text.lastIndexOf(d,p-1)!!p.typeParameters&&p.typeParameters.length>=u)}function qhe(t,u){if(u.text.lastIndexOf("<",t?t.pos:u.text.length)===-1)return;let s=t,d=0,f=0;for(;s;){switch(s.kind){case 30:if(s=td(s.getFullStart(),u),s&&s.kind===29&&(s=td(s.getFullStart(),u)),!s||!at(s))return;if(!d)return X3(s)?void 0:{called:s,nTypeArguments:f};d--;break;case 50:d=3;break;case 49:d=2;break;case 32:d++;break;case 20:if(s=fX(s,19,u),!s)return;break;case 22:if(s=fX(s,21,u),!s)return;break;case 24:if(s=fX(s,23,u),!s)return;break;case 28:f++;break;case 39:case 80:case 11:case 9:case 10:case 112:case 97:case 114:case 96:case 143:case 25:case 52:case 58:case 59:break;default:if(Qr(s))break;return}s=td(s.getFullStart(),u)}}function m5(t,u,s){return dd.getRangeOfEnclosingComment(t,u,void 0,s)}function nSe(t,u){const s=Ca(t,u);return!!Tn(s,Vp)}function uSe(t,u){return t.kind===1?!!t.jsDoc:t.getWidth(u)!==0}function NM(t,u=0){const s=[],d=Q1(t)?Pse(t)&~u:0;return d&2&&s.push("private"),d&4&&s.push("protected"),d&1&&s.push("public"),(d&256||zl(t))&&s.push("static"),d&64&&s.push("abstract"),d&32&&s.push("export"),d&65536&&s.push("deprecated"),t.flags&33554432&&s.push("declare"),t.kind===277&&s.push("export"),s.length>0?s.join(","):""}function rSe(t){if(t.kind===183||t.kind===213)return t.typeArguments;if(Co(t)||t.kind===263||t.kind===264)return t.typeParameters}function mX(t){return t===2||t===3}function Zhe(t){return!!(t===11||t===14||Bx(t))}function Bit(t,u,s){return!!(u.flags&4)&&t.isEmptyAnonymousObjectType(s)}function aSe(t){if(!t.isIntersection())return!1;const{types:u,checker:s}=t;return u.length===2&&(Bit(s,u[0],u[1])||Bit(s,u[1],u[0]))}function jH(t,u,s){return Bx(t.kind)&&t.getStart(s){const s=$s(u);return!t[s]&&(t[s]=!0)}}function aw(t){return t.getText(0,t.getLength())}function KH(t,u){let s="";for(let d=0;d!u.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(u)&&!!(u.externalModuleIndicator||u.commonJsModuleIndicator))}function cSe(t){return t.getSourceFiles().some(u=>!u.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(u)&&!!u.externalModuleIndicator)}function ufe(t){return!!t.module||Os(t)>=2||!!t.noEmit}function Ik(t,u){return{fileExists:s=>t.fileExists(s),getCurrentDirectory:()=>u.getCurrentDirectory(),readFile:Lo(u,u.readFile),useCaseSensitiveFileNames:Lo(u,u.useCaseSensitiveFileNames),getSymlinkCache:Lo(u,u.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:Lo(u,u.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var s;return(s=t.getModuleResolutionCache())==null?void 0:s.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Lo(u,u.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:s=>t.getProjectReferenceRedirect(s),isSourceOfProjectReferenceRedirect:s=>t.isSourceOfProjectReferenceRedirect(s),getNearestAncestorDirectoryWithPackageJson:Lo(u,u.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons()}}function rfe(t,u){return{...Ik(t,u),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function _X(t){return t===2||t>=3&&t<=99||t===100}function dSe(t,u,s,d){return t||u&&u.length?g5(t,u,s,d):void 0}function g5(t,u,s,d,f){return q.createImportDeclaration(void 0,t||u?q.createImportClause(!!f,t,u&&u.length?q.createNamedImports(u):void 0):void 0,typeof s=="string"?n9(s,d):s,void 0)}function n9(t,u){return q.createStringLiteral(t,u===0)}function afe(t,u){return Cq(t,u)?1:0}function Hm(t,u){if(u.quotePreference&&u.quotePreference!=="auto")return u.quotePreference==="single"?0:1;{const s=t.imports&&Le(t.imports,d=>us(d)&&!sl(d.parent));return s?afe(s,t):1}}function ofe(t){switch(t){case 0:return"'";case 1:return'"';default:return H.assertNever(t)}}function DX(t){const u=xX(t);return u===void 0?void 0:Yr(u)}function xX(t){return t.escapedName!=="default"?t.escapedName:G(t.declarations,u=>{const s=Za(u);return s&&s.kind===80?s.escapedText:void 0})}function vX(t){return t0(t)&&(r_(t.parent)||Sd(t.parent)||xf(t.parent,!1)&&t.parent.arguments[0]===t||dm(t.parent)&&t.parent.arguments[0]===t)}function GH(t){return js(t)&&Rp(t.parent)&&at(t.name)&&!t.propertyName}function CX(t,u){const s=t.getTypeAtLocation(u.parent);return s&&t.getPropertyOfType(s,u.name.text)}function JH(t,u,s){if(t)for(;t.parent;){if(la(t.parent)||!jIt(s,t.parent,u))return t;t=t.parent}}function jIt(t,u,s){return Nse(t,u.getStart(s))&&u.getEnd()<=Ec(t)}function ow(t,u){return Hp(t)?Le(t.modifiers,s=>s.kind===u):void 0}function MM(t,u,s,d,f){const E=(Ha(s)?s[0]:s).kind===243?L0e:tk,v=ti(u.statements,E);let b=Ha(s)?Gp.detectImportDeclarationSorting(s,f):3;const B=Gp.getOrganizeImportsComparer(f,b===2),k=Ha(s)?oc(s,(T,M)=>Gp.compareImportsOrRequireStatements(T,M,B)):[s];if(!v.length)t.insertNodesAtTopOfFile(u,k,d);else if(v&&(b=Gp.detectImportDeclarationSorting(v,f))){const T=Gp.getOrganizeImportsComparer(f,b===2);for(const M of k){const z=Gp.getImportDeclarationInsertionIndex(v,M,T);if(z===0){const j=v[0]===u.statements[0]?{leadingTriviaOption:iu.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(u,v[0],M,!1,j)}else{const j=v[z-1];t.insertNodeAfter(u,j,M)}}}else{const T=qu(v);T?t.insertNodesAfter(u,T,k):t.insertNodesAtTopOfFile(u,k,d)}}function sfe(t,u){return H.assert(t.isTypeOnly),Po(t.getChildAt(0,u),ife)}function sw(t,u){return!!t&&!!u&&t.start===u.start&&t.length===u.length}function bX(t,u){return t.fileName===u.fileName&&sw(t.textSpan,u.textSpan)}function lfe(t,u){if(t){for(let s=0;sio(s)?!0:js(s)||Rp(s)||_k(s)?!1:"quit")}function VIt(){const t=lV*10;let u,s,d,f;k();const p=T=>v(T,17);return{displayParts:()=>{const T=u.length&&u[u.length-1].text;return f>t&&T&&T!=="..."&&(U3(T.charCodeAt(T.length-1))||u.push(yf(" ",16)),u.push(yf("...",15))),u},writeKeyword:T=>v(T,5),writeOperator:T=>v(T,12),writePunctuation:T=>v(T,15),writeTrailingSemicolon:T=>v(T,15),writeSpace:T=>v(T,16),writeStringLiteral:T=>v(T,8),writeParameter:T=>v(T,13),writeProperty:T=>v(T,14),writeLiteral:T=>v(T,8),writeSymbol:b,writeLine:B,write:p,writeComment:p,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ho,getIndent:()=>d,increaseIndent:()=>{d++},decreaseIndent:()=>{d--},clear:k};function E(){if(!(f>t)&&s){const T=Nq(d);T&&(f+=T.length,u.push(yf(T,16))),s=!1}}function v(T,M){f>t||(E(),f+=T.length,u.push(yf(T,M)))}function b(T,M){f>t||(E(),f+=T.length,u.push(fSe(T,M)))}function B(){f>t||(f+=1,u.push(lw()),s=!0)}function k(){u=[],s=!0,d=0,f=0}}function fSe(t,u){return yf(t,s(u));function s(d){const f=d.flags;return f&3?dfe(d)?13:9:f&4||f&32768||f&65536?14:f&8?19:f&16?20:f&32?1:f&64?4:f&384?2:f&1536?11:f&8192?10:f&262144?18:f&524288||f&2097152?0:17}}function yf(t,u){return{text:t,kind:wH[u]}}function $l(){return yf(" ",16)}function Hf(t){return yf(Uo(t),5)}function ih(t){return yf(Uo(t),15)}function IM(t){return yf(Uo(t),12)}function mSe(t){return yf(t,13)}function pSe(t){return yf(t,14)}function hfe(t){const u=f2(t);return u===void 0?Km(t):Hf(u)}function Km(t){return yf(t,17)}function gSe(t){return yf(t,0)}function ESe(t){return yf(t,18)}function kX(t){return yf(t,24)}function _Se(t,u){return{text:t,kind:wH[23],target:{fileName:zn(u).fileName,textSpan:of(u)}}}function ffe(t){return yf(t,22)}function DSe(t,u){var s;const d=pFe(t)?"link":gFe(t)?"linkcode":"linkplain",f=[ffe(`{@${d} `)];if(!t.name)t.text&&f.push(kX(t.text));else{const p=u==null?void 0:u.getSymbolAtLocation(t.name),E=KIt(t.text),v=Hc(t.name)+t.text.slice(0,E),b=HIt(t.text.slice(E)),B=(p==null?void 0:p.valueDeclaration)||((s=p==null?void 0:p.declarations)==null?void 0:s[0]);B?(f.push(_Se(v,B)),b&&f.push(kX(b))):f.push(kX(v+(E?"":" ")+b))}return f.push(ffe("}")),f}function HIt(t){let u=0;if(t.charCodeAt(u++)===124){for(;u"&&s--,d++,!s)return d}return 0}function E5(t,u){var s;return(u==null?void 0:u.newLineCharacter)||((s=t.getNewLine)==null?void 0:s.call(t))||Oit}function lw(){return yf(` +`,6)}function Zx(t){try{return t(Lfe),Lfe.displayParts()}finally{Lfe.clear()}}function $H(t,u,s,d=0){return Zx(f=>{t.writeType(u,s,d|1024|16384,f)})}function RM(t,u,s,d,f=0){return Zx(p=>{t.writeSymbol(u,s,d,f|8,p)})}function mfe(t,u,s,d=0){return d|=25632,Zx(f=>{t.writeSignature(u,s,d,void 0,f)})}function Tit(t,u){const s=u.getSourceFile();return Zx(d=>{EH().writeNode(4,t,s,d)})}function xSe(t){return!!t.parent&&r7(t.parent)&&t.parent.propertyName===t}function pfe(t,u){return oZ(t,u.getScriptKind&&u.getScriptKind(t))}function vSe(t,u){let s=t;for(;WIt(s)||qE(s)&&s.links.target;)qE(s)&&s.links.target?s=s.links.target:s=X1(s,u);return s}function WIt(t){return(t.flags&2097152)!==0}function CSe(t,u){return Zo(X1(t,u))}function bSe(t,u){for(;U3(t.charCodeAt(u));)u+=1;return u}function FX(t,u){for(;u>-1&&qg(t.charCodeAt(u));)u-=1;return u+1}function ll(t,u=!0){const s=t&&Lit(t);return s&&!u&&Kf(s),s}function UH(t,u,s){let d=s(t);return d?su(d,t):d=Lit(t,s),d&&!u&&Kf(d),d}function Lit(t,u){const s=u?p=>UH(p,!0,u):ll,f=rn(t,s,Dg,u?p=>p&&gfe(p,!0,u):p=>p&&nb(p),s);if(f===t){const p=us(t)?su(q.createStringLiteralFromNode(t),t):Of(t)?su(q.createNumericLiteral(t.text,t.numericLiteralFlags),t):q.cloneNode(t);return Pt(p,t)}return f.parent=void 0,f}function nb(t,u=!0){if(t){const s=q.createNodeArray(t.map(d=>ll(d,u)),t.hasTrailingComma);return Pt(s,t),s}return t}function gfe(t,u,s){return q.createNodeArray(t.map(d=>UH(d,u,s)),t.hasTrailingComma)}function Kf(t){Efe(t),ySe(t)}function Efe(t){kSe(t,1024,JIt)}function ySe(t){kSe(t,2048,Ele)}function Rk(t,u){const s=t.getSourceFile(),d=s.text;GIt(t,d)?cw(t,u,s):ZH(t,u,s),OM(t,u,s)}function GIt(t,u){const s=t.getFullStart(),d=t.getStart();for(let f=s;fu)}function Ok(t,u){let s=t;for(let d=1;!QU(u,s);d++)s=`${t}_${d}`;return s}function qH(t,u,s,d){let f=0,p=-1;for(const{fileName:E,textChanges:v}of t){H.assert(E===u);for(const b of v){const{span:B,newText:k}=b,T=$It(k,Av(s));if(T!==-1&&(p=B.start+f+T,!d))return p;f+=k.length-B.length}}return H.assert(d),H.assert(p>=0),p}function cw(t,u,s,d,f){NO(s.text,t.pos,FSe(u,s,d,f,OP))}function OM(t,u,s,d,f){PO(s.text,t.end,FSe(u,s,d,f,AZ))}function ZH(t,u,s,d,f){PO(s.text,t.pos,FSe(u,s,d,f,OP))}function FSe(t,u,s,d,f){return(p,E,v,b)=>{v===3?(p+=2,E-=2):p+=2,f(t,s||v,u.text.slice(p,E),d!==void 0?d:b)}}function $It(t,u){if(Pa(t,u))return 0;let s=t.indexOf(" "+u);return s===-1&&(s=t.indexOf("."+u)),s===-1&&(s=t.indexOf('"'+u)),s===-1?-1:s+1}function AX(t){return Xn(t)&&t.operatorToken.kind===28||ys(t)||(AV(t)||sFe(t))&&ys(t.expression)}function SX(t,u,s){const d=i5(t.parent);switch(d.kind){case 214:return u.getContextualType(d,s);case 226:{const{left:f,operatorToken:p,right:E}=d;return BX(p.kind)?u.getTypeAtLocation(t===E?f:E):u.getContextualType(t,s)}case 296:return Dfe(d,u);default:return u.getContextualType(t,s)}}function jM(t,u,s){const d=Hm(t,u),f=JSON.stringify(s);return d===0?`'${$4(f).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:f}function BX(t){switch(t){case 37:case 35:case 38:case 36:return!0;default:return!1}}function ASe(t){switch(t.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function _fe(t){return!!t.getStringIndexType()||!!t.getNumberIndexType()}function Dfe(t,u){return u.getTypeAtLocation(t.parent.parent.expression)}function VM(t,u,s,d){const f=s.getTypeChecker();let p=!0;const E=()=>p=!1,v=f.typeToTypeNode(t,u,1,{trackSymbol:(b,B,k)=>(p=p&&f.isSymbolAccessible(b,B,k,!1).accessibility===0,!p),reportInaccessibleThisError:E,reportPrivateInBaseOfClassExpression:E,reportInaccessibleUniqueSymbolError:E,moduleResolverHost:rfe(s,d)});return p?v:void 0}function SSe(t){return t===179||t===180||t===181||t===171||t===173}function Nit(t){return t===262||t===176||t===174||t===177||t===178}function Pit(t){return t===267}function wX(t){return t===243||t===244||t===246||t===251||t===252||t===253||t===257||t===259||t===172||t===265||t===272||t===271||t===278||t===270||t===277}function UIt(t,u){const s=t.getLastToken(u);if(s&&s.kind===27)return!1;if(SSe(t.kind)){if(s&&s.kind===28)return!1}else if(Pit(t.kind)){const v=Cr(t.getChildren(u));if(v&&rE(v))return!1}else if(Nit(t.kind)){const v=Cr(t.getChildren(u));if(v&&k2(v))return!1}else if(!wX(t.kind))return!1;if(t.kind===246)return!0;const d=Tn(t,v=>!v.parent),f=ib(t,d,u);if(!f||f.kind===20)return!0;const p=u.getLineAndCharacterOfPosition(t.getEnd()).line,E=u.getLineAndCharacterOfPosition(f.getStart(u)).line;return p!==E}function TX(t,u,s){const d=Tn(u,f=>f.end!==t?"quit":Nfe(f.kind));return!!d&&UIt(d,s)}function YH(t){let u=0,s=0;const d=5;return ao(t,function f(p){if(wX(p.kind)){const E=p.getLastToken(t);(E==null?void 0:E.kind)===27?u++:s++}else if(SSe(p.kind)){const E=p.getLastToken(t);if((E==null?void 0:E.kind)===27)u++;else if(E&&E.kind!==28){const v=s0(t,E.getStart(t)).line,b=s0(t,QE(t,E.end).start).line;v!==b&&s++}}return u+s>=d?!0:ao(p,f)}),u===0&&s<=1?!0:u/s>1/d}function LX(t,u){return MX(t,t.getDirectories,u)||[]}function xfe(t,u,s,d,f){return MX(t,t.readDirectory,u,s,d,f)||_t}function QH(t,u){return MX(t,t.fileExists,u)}function NX(t,u){return PX(()=>hg(u,t))||!1}function PX(t){try{return t()}catch{return}}function MX(t,u,...s){return PX(()=>u&&u.apply(t,s))}function vfe(t,u,s){const d=[];return Ug(t,f=>{if(f===s)return!0;const p=cr(f,"package.json");QH(u,p)&&d.push(p)}),d}function BSe(t,u){let s;return Ug(t,d=>{if(d==="node_modules"||(s=N7e(d,f=>QH(u,f),"package.json"),s))return!0}),s}function wSe(t,u){if(!u.fileExists)return[];const s=[];return Ug(lr(t),d=>{const f=cr(d,"package.json");if(u.fileExists(f)){const p=Cfe(f,u);p&&s.push(p)}}),s}function Cfe(t,u){if(!u.readFile)return;const s=["dependencies","devDependencies","optionalDependencies","peerDependencies"],d=u.readFile(t)||"",f=qIt(d),p={};if(f)for(const b of s){const B=f[b];if(!B)continue;const k=new Map;for(const T in B)k.set(T,B[T]);p[b]=k}const E=[[1,p.dependencies],[2,p.devDependencies],[8,p.optionalDependencies],[4,p.peerDependencies]];return{...p,parseable:!!f,fileName:t,get:v,has(b,B){return!!v(b,B)}};function v(b,B=15){for(const[k,T]of E)if(T&&B&k){const M=T.get(b);if(M!==void 0)return M}}}function HM(t,u,s){const d=(s.getPackageJsonsVisibleToFile&&s.getPackageJsonsVisibleToFile(t.fileName)||wSe(t.fileName,s)).filter(j=>j.parseable);let f,p,E;return{allowsImportingAmbientModule:b,allowsImportingSourceFile:B,allowsImportingSpecifier:k};function v(j){const J=z(j);for(const K of d)if(K.has(J)||K.has($Y(J)))return!0;return!1}function b(j,J){if(!d.length||!j.valueDeclaration)return!0;if(!p)p=new Map;else{const ge=p.get(j);if(ge!==void 0)return ge}const K=$4(j.getName());if(T(K))return p.set(j,!0),!0;const Y=j.valueDeclaration.getSourceFile(),oe=M(Y.fileName,J);if(typeof oe>"u")return p.set(j,!0),!0;const se=v(oe)||v(K);return p.set(j,se),se}function B(j,J){if(!d.length)return!0;if(!E)E=new Map;else{const oe=E.get(j);if(oe!==void 0)return oe}const K=M(j.fileName,J);if(!K)return E.set(j,!0),!0;const Y=v(K);return E.set(j,Y),Y}function k(j){return!d.length||T(j)||om(j)||Pf(j)?!0:v(j)}function T(j){return!!(gh(t)&&o3.nodeCoreModules.has(j)&&(f===void 0&&(f=zX(t)),f))}function M(j,J){if(!j.includes("node_modules"))return;const K=Z2.getNodeModulesPackageName(s.getCompilationSettings(),t,j,J,u);if(K&&!om(K)&&!Pf(K))return z(K)}function z(j){const J=yd(hM(j)).slice(1);return Pa(J[0],"@")?`${J[0]}/${J[1]}`:J[0]}}function qIt(t){try{return JSON.parse(t)}catch{return}}function zX(t){return Oe(t.imports,({text:u})=>o3.nodeCoreModules.has(u))}function XH(t){return kt(yd(t),"node_modules")}function bfe(t){return t.file!==void 0&&t.start!==void 0&&t.length!==void 0}function TSe(t,u){const s=of(t),d=va(u,s,il,q$);if(d>=0){const f=u[d];return H.assertEqual(f.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Po(f,bfe)}}function LSe(t,u){var s;let d=va(u,t.start,E=>E.start,nl);for(d<0&&(d=~d);((s=u[d-1])==null?void 0:s.start)===t.start;)d--;const f=[],p=Ec(t);for(;;){const E=ur(u[d],bfe);if(!E||E.start>p)break;B2e(t,E)&&f.push(E),d++}return f}function u9({startPosition:t,endPosition:u}){return Vc(t,u===void 0?t:u)}function yfe(t,u){const s=Ca(t,u.start);return Tn(s,f=>f.getStart(t)Ec(u)?"quit":Wt(f)&&sw(u,of(f,t)))}function kfe(t,u,s=il){return t?Ha(t)?s(Vt(t,u)):u(t,0):void 0}function Ffe(t){return Ha(t)?Pn(t):t}function NSe(t,u){if(Mit(t)){const s=zit(t);if(s)return s;const d=z1.moduleSymbolToValidIdentifier(PSe(t),u,!1),f=z1.moduleSymbolToValidIdentifier(PSe(t),u,!0);return d===f?d:[d,f]}return t.name}function IX(t,u,s){return Mit(t)?zit(t)||z1.moduleSymbolToValidIdentifier(PSe(t),u,!!s):t.name}function Mit(t){return!(t.flags&33554432)&&(t.escapedName==="export="||t.escapedName==="default")}function zit(t){return G(t.declarations,u=>{var s,d,f;return tc(u)?(s=ur(Dc(u.expression),at))==null?void 0:s.text:eh(u)&&u.symbol.flags===2097152?(d=ur(u.propertyName,at))==null?void 0:d.text:(f=ur(Za(u),at))==null?void 0:f.text})}function PSe(t){var u;return H.checkDefined(t.parent,`Symbol parent was undefined. Flags: ${H.formatSymbolFlags(t.flags)}. Declarations: ${(u=t.declarations)==null?void 0:u.map(s=>{const d=H.formatSyntaxKind(s.kind),f=Qn(s),{expression:p}=s;return(f?"[JS]":"")+d+(p?` (expression: ${H.formatSyntaxKind(p.kind)})`:"")}).join(", ")}.`)}function MSe(t,u,s){const d=u.length;if(d+s>t.length)return!1;for(let f=0;f_c(s)&&Yg(s))}function RX(t){return!!(Pse(t)&65536)}function OX(t,u){return G(t.imports,d=>{if(o3.nodeCoreModules.has(d.text))return Pa(d.text,"node:")})??u.usesUriStyleNodeCoreModules}function eK(t){return t===` +`?1:0}function jk(t){return Ha(t)?e3(to(t[0]),t.slice(1)):to(t)}function jX({options:t},u){const s=!t.semicolons||t.semicolons==="ignore",d=t.semicolons==="remove"||s&&!YH(u);return{...t,semicolons:d?"remove":"ignore"}}function Sfe(t){return t===2||t===3}function KM(t,u){return t.isSourceFileFromExternalLibrary(u)||t.isSourceFileDefaultLibrary(u)}function VX(t,u){const s=new Set,d=new Set,f=new Set;for(const v of u)if(!TV(v)){const b=l0(v.expression);if(E2(b))switch(b.kind){case 15:case 11:s.add(b.text);break;case 9:d.add(parseInt(b.text));break;case 10:const B=pke(sc(b.text,"n")?b.text.slice(0,-1):b.text);B&&f.add(I2(B));break}else{const B=t.getSymbolAtLocation(v.expression);if(B&&B.valueDeclaration&&J2(B.valueDeclaration)){const k=t.getConstantValue(B.valueDeclaration);k!==void 0&&p(k)}}}return{addValue:p,hasValue:E};function p(v){switch(typeof v){case"string":s.add(v);break;case"number":d.add(v)}}function E(v){switch(typeof v){case"string":return s.has(v);case"number":return d.has(v);case"object":return f.has(I2(v))}}}function Bfe(t,u,s,d){var f;const p=typeof t=="string"?t:t.fileName;if(!z2(p))return!1;const E=u.getCompilerOptions(),v=m1(E),b=typeof t=="string"?bH(J0(t,s.getCurrentDirectory(),n5(s)),(f=u.getPackageJsonInfoCache)==null?void 0:f.call(u),s,E):t.impliedNodeFormat;if(b===99)return!1;if(b===1||E.verbatimModuleSyntax&&v===1)return!0;if(E.verbatimModuleSyntax&&Yq(v))return!1;if(typeof t=="object"){if(t.commonJsModuleIndicator)return!0;if(t.externalModuleIndicator)return!1}return d}var nh,wfe,Rit,HX,Tfe,Lfe,Oit,KX,Nfe,ZIt=o({"src/services/utilities.ts"(){rr(),nh=YD(99,!0),wfe=(t=>(t[t.None=0]="None",t[t.Value=1]="Value",t[t.Type=2]="Type",t[t.Namespace=4]="Namespace",t[t.All=7]="All",t))(wfe||{}),Rit=/^\/\/\/\s*(t[t.Single=0]="Single",t[t.Double=1]="Double",t))(Tfe||{}),Lfe=VIt(),Oit=` +`,KX="anonymous function",Nfe=dg(SSe,Nit,Pit,wX)}});function Pfe(t){let u=1;const s=wm(),d=new Map,f=new Map;let p;const E={isUsableByFile:z=>z===p,isEmpty:()=>!s.size,clear:()=>{s.clear(),d.clear(),p=void 0},add:(z,j,J,K,Y,oe,se,ge)=>{z!==p&&(E.clear(),p=z);let ae;if(Y){const Ae=pZ(Y.fileName);if(Ae){const{topLevelNodeModulesIndex:De,topLevelPackageNameIndex:Ke,packageRootIndex:Je}=Ae;if(ae=lH(hM(Y.fileName.substring(Ke+1,Je))),Pa(z,Y.path.substring(0,De))){const ft=f.get(ae),Ye=Y.fileName.substring(0,Ke+1);if(ft){const Ve=ft.indexOf(o_);De>Ve&&f.set(ae,Ye)}else f.set(ae,Ye)}}}const ne=oe===1&&lB(j)||j,ve=oe===0||HH(ne)?Yr(J):NSe(ne,void 0),Se=typeof ve=="string"?ve:ve[0],Ne=typeof ve=="string"?void 0:ve[1],pe=$4(K.name),fe=u++,xe=X1(j,ge),Be=j.flags&33554432?void 0:j,Ge=K.flags&33554432?void 0:K;(!Be||!Ge)&&d.set(fe,[j,K]),s.add(b(Se,j,Id(pe)?void 0:pe,ge),{id:fe,symbolTableKey:J,symbolName:Se,capitalizedSymbolName:Ne,moduleName:pe,moduleFile:Y,moduleFileName:Y==null?void 0:Y.fileName,packageName:ae,exportKind:oe,targetFlags:xe.flags,isFromPackageJson:se,symbol:Be,moduleSymbol:Ge})},get:(z,j)=>{if(z!==p)return;const J=s.get(j);return J==null?void 0:J.map(v)},search:(z,j,J,K)=>{if(z===p)return h1(s,(Y,oe)=>{const{symbolName:se,ambientModuleName:ge}=B(oe),ae=j&&Y[0].capitalizedSymbolName||se;if(J(ae,Y[0].targetFlags)){const ne=Y.map(v).filter((ve,Se)=>M(ve,Y[Se].packageName));if(ne.length){const ve=K(ne,ae,!!ge,oe);if(ve!==void 0)return ve}}})},releaseSymbols:()=>{d.clear()},onFileChanged:(z,j,J)=>k(z)&&k(j)?!1:p&&p!==j.path||J&&zX(z)!==zX(j)||!On(z.moduleAugmentations,j.moduleAugmentations)||!T(z,j)?(E.clear(),!0):(p=j.path,!1)};return H.isDebugging&&Object.defineProperty(E,"__cache",{value:s}),E;function v(z){if(z.symbol&&z.moduleSymbol)return z;const{id:j,exportKind:J,targetFlags:K,isFromPackageJson:Y,moduleFileName:oe}=z,[se,ge]=d.get(j)||_t;if(se&&ge)return{symbol:se,moduleSymbol:ge,moduleFileName:oe,exportKind:J,targetFlags:K,isFromPackageJson:Y};const ae=(Y?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),Ce=z.moduleSymbol||ge||H.checkDefined(z.moduleFile?ae.getMergedSymbol(z.moduleFile.symbol):ae.tryFindAmbientModule(z.moduleName)),ne=z.symbol||se||H.checkDefined(J===2?ae.resolveExternalModuleSymbol(Ce):ae.tryGetMemberInModuleExportsAndProperties(Yr(z.symbolTableKey),Ce),`Could not find symbol '${z.symbolName}' by key '${z.symbolTableKey}' in module ${Ce.name}`);return d.set(j,[ne,Ce]),{symbol:ne,moduleSymbol:Ce,moduleFileName:oe,exportKind:J,targetFlags:K,isFromPackageJson:Y}}function b(z,j,J,K){const Y=J||"";return`${z.length} ${Zo(X1(j,K))} ${z} ${Y}`}function B(z){const j=z.indexOf(" "),J=z.indexOf(" ",j+1),K=parseInt(z.substring(0,j),10),Y=z.substring(J+1),oe=Y.substring(0,K),se=Y.substring(K+1);return{symbolName:oe,ambientModuleName:se===""?void 0:se}}function k(z){return!z.commonJsModuleIndicator&&!z.externalModuleIndicator&&!z.moduleAugmentations&&!z.ambientModuleNames}function T(z,j){if(!On(z.ambientModuleNames,j.ambientModuleNames))return!1;let J=-1,K=-1;for(const Y of j.ambientModuleNames){const oe=se=>m0e(se)&&se.name.text===Y;if(J=Ue(z.statements,oe,J+1),K=Ue(j.statements,oe,K+1),z.statements[J]!==j.statements[K])return!1}return!0}function M(z,j){if(!j||!z.moduleFileName)return!0;const J=t.getGlobalTypingsCacheLocation();if(J&&Pa(z.moduleFileName,J))return!0;const K=f.get(j);return!K||Pa(z.moduleFileName,K)}}function Mfe(t,u,s,d,f,p,E){var v;if(u===s)return!1;const b=E==null?void 0:E.get(u.path,s.path,d,{});if((b==null?void 0:b.isBlockedByPackageJsonDependencies)!==void 0)return!b.isBlockedByPackageJsonDependencies;const B=n5(p),k=(v=p.getGlobalTypingsCacheLocation)==null?void 0:v.call(p),T=!!Z2.forEachFileNameOfModule(u.fileName,s.fileName,p,!1,M=>{const z=t.getSourceFile(M);return(z===s||!z)&&YIt(u.fileName,M,B,k)});if(f){const M=T&&f.allowsImportingSourceFile(s,p);return E==null||E.setBlockedByPackageJsonDependencies(u.path,s.path,d,{},!M),M}return T}function YIt(t,u,s,d){const f=Ug(u,E=>Ac(E)==="node_modules"?E:void 0),p=f&&lr(s(f));return p===void 0||Pa(s(t),p)||!!d&&Pa(s(d),p)}function zfe(t,u,s,d,f){var p,E;const v=Hj(u),b=s.autoImportFileExcludePatterns&&qi(s.autoImportFileExcludePatterns,k=>{const T=Fle(k,"","exclude");return T?jx(T,v):void 0});jit(t.getTypeChecker(),t.getSourceFiles(),b,(k,T)=>f(k,T,t,!1));const B=d&&((p=u.getPackageJsonAutoImportProvider)==null?void 0:p.call(u));if(B){const k=G0(),T=t.getTypeChecker();jit(B.getTypeChecker(),B.getSourceFiles(),b,(M,z)=>{(z&&!t.getSourceFile(z.fileName)||!z&&!T.resolveName(M.name,void 0,1536,!1))&&f(M,z,B,!0)}),(E=u.log)==null||E.call(u,`forEachExternalModuleToImportFrom autoImportProvider: ${G0()-k}`)}}function jit(t,u,s,d){var f;const p=s&&(E=>s.some(v=>v.test(E)));for(const E of t.getAmbientModules())!E.name.includes("*")&&!(s&&((f=E.declarations)!=null&&f.every(v=>p(v.getSourceFile().fileName))))&&d(E,void 0);for(const E of u)cm(E)&&!(p!=null&&p(E.fileName))&&d(t.getMergedSymbol(E.symbol),E)}function tK(t,u,s,d,f){var p,E,v,b,B;const k=G0();(p=u.getPackageJsonAutoImportProvider)==null||p.call(u);const T=((E=u.getCachedExportInfoMap)==null?void 0:E.call(u))||Pfe({getCurrentProgram:()=>s,getPackageJsonAutoImportProvider:()=>{var j;return(j=u.getPackageJsonAutoImportProvider)==null?void 0:j.call(u)},getGlobalTypingsCacheLocation:()=>{var j;return(j=u.getGlobalTypingsCacheLocation)==null?void 0:j.call(u)}});if(T.isUsableByFile(t.path))return(v=u.log)==null||v.call(u,"getExportInfoMap: cache hit"),T;(b=u.log)==null||b.call(u,"getExportInfoMap: cache miss or empty; calculating new results");const M=s.getCompilerOptions();let z=0;try{zfe(s,u,d,!0,(j,J,K,Y)=>{++z%100===0&&(f==null||f.throwIfCancellationRequested());const oe=new Map,se=K.getTypeChecker(),ge=WX(j,se,M);ge&&Vit(ge.symbol,se)&&T.add(t.path,ge.symbol,ge.exportKind===1?"default":"export=",j,J,ge.exportKind,Y,se),se.forEachExportAndPropertyOfModule(j,(ae,Ce)=>{ae!==(ge==null?void 0:ge.symbol)&&Vit(ae,se)&&Ip(oe,Ce)&&T.add(t.path,ae,Ce,j,J,0,Y,se)})})}catch(j){throw T.clear(),j}return(B=u.log)==null||B.call(u,`getExportInfoMap: done in ${G0()-k} ms`),T}function WX(t,u,s){const d=QIt(t,u);if(!d)return;const{symbol:f,exportKind:p}=d,E=GX(f,u,s);return E&&{symbol:f,exportKind:p,...E}}function Vit(t,u){return!u.isUndefinedSymbol(t)&&!u.isUnknownSymbol(t)&&!Ij(t)&&!mye(t)}function QIt(t,u){const s=u.resolveExternalModuleSymbol(t);if(s!==t)return{symbol:s,exportKind:2};const d=u.tryGetMemberInModuleExports("default",t);if(d)return{symbol:d,exportKind:1}}function GX(t,u,s){const d=lB(t);if(d)return{resolvedSymbol:d,name:d.name};const f=XIt(t);if(f!==void 0)return{resolvedSymbol:t,name:f};if(t.flags&2097152){const p=u.getImmediateAliasedSymbol(t);if(p&&p.parent)return GX(p,u,s)}return t.escapedName!=="default"&&t.escapedName!=="export="?{resolvedSymbol:t,name:t.getName()}:{resolvedSymbol:t,name:IX(t,s.target)}}function XIt(t){return t.declarations&&G(t.declarations,u=>{var s;if(tc(u))return(s=ur(Dc(u.expression),at))==null?void 0:s.text;if(eh(u))return H.assert(u.name.text==="default","Expected the specifier to be a default export"),u.propertyName&&u.propertyName.text})}var Ife,Rfe,eRt=o({"src/services/exportInfoMap.ts"(){rr(),Ife=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.CommonJS=3]="CommonJS",t))(Ife||{}),Rfe=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",t))(Rfe||{})}});function Hit(){const t=YD(99,!1);function u(d,f,p){return nRt(s(d,f,p),d)}function s(d,f,p){let E=0,v=0;const b=[],{prefix:B,pushTemplate:k}=aRt(f);d=B+d;const T=B.length;k&&b.push(16),t.setText(d);let M=0;const z=[];let j=0;do{E=t.scan(),nB(E)||(J(),v=E);const K=t.getTokenEnd();if(iRt(t.getTokenStart(),K,T,lRt(E),z),K>=d.length){const Y=tRt(t,E,qu(b));Y!==void 0&&(M=Y)}}while(E!==1);function J(){switch(E){case 44:case 69:!Jit[v]&&t.reScanSlashToken()===14&&(E=14);break;case 30:v===80&&j++;break;case 32:j>0&&j--;break;case 133:case 154:case 150:case 136:case 155:j>0&&!p&&(E=80);break;case 16:b.push(E);break;case 19:b.length>0&&b.push(E);break;case 20:if(b.length>0){const K=qu(b);K===16?(E=t.reScanTemplateToken(!1),E===18?b.pop():H.assertEqual(E,17,"Should have been a template middle.")):(H.assertEqual(K,19,"Should have been an open brace"),b.pop())}break;default:if(!uf(E))break;(v===25||uf(v)&&uf(E)&&!rRt(v,E))&&(E=80)}}return{endOfLineState:M,spans:z}}return{getClassificationsForLine:u,getEncodedLexicalClassifications:s}}function tRt(t,u,s){switch(u){case 11:{if(!t.isUnterminated())return;const d=t.getTokenText(),f=d.length-1;let p=0;for(;d.charCodeAt(f-p)===92;)p++;return p&1?d.charCodeAt(0)===34?3:2:void 0}case 3:return t.isUnterminated()?1:void 0;default:if(Bx(u)){if(!t.isUnterminated())return;switch(u){case 18:return 5;case 15:return 4;default:return H.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+u)}}return s===16?6:void 0}}function iRt(t,u,s,d,f){if(d===8)return;t===0&&s>0&&(t+=s);const p=u-t;p>0&&f.push(t-s,p,d)}function nRt(t,u){const s=[],d=t.spans;let f=0;for(let E=0;E=0){const k=v-f;k>0&&s.push({length:k,classification:4})}s.push({length:b,classification:uRt(B)}),f=v+b}const p=u.length-f;return p>0&&s.push({length:p,classification:4}),{entries:s,finalLexState:t.endOfLineState}}function uRt(t){switch(t){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function rRt(t,u){if(!Yhe(t))return!0;switch(u){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function aRt(t){switch(t){case 3:return{prefix:`"\\ `};case 2:return{prefix:`'\\ `};case 1:return{prefix:`/* `};case 4:return{prefix:"`\n"};case 5:return{prefix:`} -`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return H.assertNever(t)}}function uRt(t){switch(t){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function rRt(t){switch(t){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function aRt(t){if(nf(t))return 3;if(uRt(t)||rRt(t))return 5;if(t>=19&&t<=79)return 10;switch(t){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Sx(t)?6:2}}function MSe(t,u,s,d,f){return Hit(Rfe(t,u,s,d,f))}function jit(t,u){switch(u){case 267:case 263:case 264:case 262:case 231:case 218:case 219:t.throwIfCancellationRequested()}}function Rfe(t,u,s,d,f){const p=[];return s.forEachChild(function v(b){if(!(!b||!FU(f,b.pos,b.getFullWidth()))){if(jit(u,b.kind),at(b)&&!Yl(b)&&d.has(b.escapedText)){const B=t.getSymbolAtLocation(b),k=B&&Vit(B,Lk(b),t);k&&E(b.getStart(s),b.getEnd(),k)}b.forEachChild(v)}}),{spans:p,endOfLineState:0};function E(v,b,B){const k=b-v;H.assert(k>0,`Classification had non-positive length of ${k}`),p.push(v),p.push(k),p.push(B)}}function Vit(t,u,s){const d=t.getFlags();if(d&2885600)return d&32?11:d&384?12:d&524288?16:d&1536?u&4||u&1&&oRt(t)?14:void 0:d&2097152?Vit(s.getAliasedSymbol(t),u,s):u&2?d&64?13:d&262144?15:void 0:void 0}function oRt(t){return qe(t.declarations,u=>Ec(u)&&aD(u)===1)}function sRt(t){switch(t){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function Hit(t){H.assert(t.spans.length%3===0);const u=t.spans,s=[];for(let d=0;d])*)(\/>)?)?/im,ve=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Se=u.text.substr(ae,Ce),Ne=ne.exec(Se);if(!Ne||!Ne[3]||!(Ne[3]in xO))return!1;let pe=ae;T(pe,Ne[1].length),pe+=Ne[1].length,b(pe,Ne[2].length,10),pe+=Ne[2].length,b(pe,Ne[3].length,21),pe+=Ne[3].length;const fe=Ne[4];let xe=pe;for(;;){const We=ve.exec(fe);if(!We)break;const Ae=pe+We.index+We[1].length;Ae>xe&&(T(xe,Ae-xe),xe=Ae),b(xe,We[2].length,22),xe+=We[2].length,We[3].length&&(T(xe,We[3].length),xe+=We[3].length),b(xe,We[4].length,5),xe+=We[4].length,We[5].length&&(T(xe,We[5].length),xe+=We[5].length),b(xe,We[6].length,24),xe+=We[6].length}pe+=Ne[4].length,pe>xe&&T(xe,pe-xe),Ne[5]&&(b(pe,Ne[5].length,10),pe+=Ne[5].length);const Be=ae+Ce;return pe=0),ve>0){const Se=Ce||se(ae.kind,ae);Se&&b(ne,ve,Se)}return!0}function oe(ae){switch(ae.parent&&ae.parent.kind){case 286:if(ae.parent.tagName===ae)return 19;break;case 287:if(ae.parent.tagName===ae)return 20;break;case 285:if(ae.parent.tagName===ae)return 21;break;case 291:if(ae.parent.name===ae)return 22;break}}function se(ae,Ce){if(nf(ae))return 3;if((ae===30||ae===32)&&Ce&&nSe(Ce.parent))return 10;if(K0e(ae)){if(Ce){const ne=Ce.parent;if(ae===64&&(ne.kind===260||ne.kind===172||ne.kind===169||ne.kind===291)||ne.kind===226||ne.kind===224||ne.kind===225||ne.kind===227)return 5}return 10}else{if(ae===9)return 4;if(ae===10)return 25;if(ae===11)return Ce&&Ce.parent.kind===291?24:6;if(ae===14)return 6;if(Sx(ae))return 6;if(ae===12)return 23;if(ae===80){if(Ce){switch(Ce.parent.kind){case 263:return Ce.parent.name===Ce?11:void 0;case 168:return Ce.parent.name===Ce?15:void 0;case 264:return Ce.parent.name===Ce?13:void 0;case 266:return Ce.parent.name===Ce?12:void 0;case 267:return Ce.parent.name===Ce?14:void 0;case 169:return Ce.parent.name===Ce?w2(Ce)?3:17:void 0}if(U3(Ce.parent))return 3}return 2}}}function ge(ae){if(ae&&zO(d,f,ae.pos,ae.getFullWidth())){jit(t,ae.kind);for(const Ce of ae.getChildren(u))Y(Ce)||ge(Ce)}}}var Kit,Wit=o({"src/services/classifier.ts"(){or(),Kit=ioe([80,11,9,10,14,110,46,47,22,24,20,112,97],t=>t,()=>!0)}}),HX,lRt=o({"src/services/documentHighlights.ts"(){or(),(t=>{function u(pe,fe,xe,Be,We){const Ae=rf(xe,Be);if(Ae.parent&&(rE(Ae.parent)&&Ae.parent.tagName===Ae||O2(Ae.parent))){const{openingElement:De,closingElement:He}=Ae.parent.parent,Ge=[De,He].map(({tagName:ft})=>s(ft,xe));return[{fileName:xe.fileName,highlightSpans:Ge}]}return d(Be,Ae,pe,fe,We)||f(Ae,xe)}t.getDocumentHighlights=u;function s(pe,fe){return{fileName:fe.fileName,textSpan:af(pe,fe),kind:"none"}}function d(pe,fe,xe,Be,We){const Ae=new Set(We.map(ft=>ft.fileName)),De=J0.getReferenceEntriesForNode(pe,fe,xe,We,Be,void 0,Ae);if(!De)return;const He=hO(De.map(J0.toHighlightSpan),ft=>ft.fileName,ft=>ft.span),Ge=T1(xe.useCaseSensitiveFileNames());return Ea(Uo(He.entries(),([ft,Ze])=>{if(!Ae.has(ft)){if(!xe.redirectTargetsMap.has(H0(ft,xe.getCurrentDirectory(),Ge)))return;const je=xe.getSourceFile(ft);ft=Le(We,Gt=>!!Gt.redirectInfo&&Gt.redirectInfo.redirectTarget===je).fileName,H.assert(Ae.has(ft))}return{fileName:ft,highlightSpans:Ze}}))}function f(pe,fe){const xe=p(pe,fe);return xe&&[{fileName:fe.fileName,highlightSpans:xe}]}function p(pe,fe){switch(pe.kind){case 101:case 93:return _k(pe.parent)?ve(pe.parent,fe):void 0;case 107:return Be(pe.parent,zp,ge);case 111:return Be(pe.parent,Cce,se);case 113:case 85:case 98:const Ae=pe.kind===85?pe.parent.parent:pe.parent;return Be(Ae,xk,oe);case 109:return Be(pe.parent,AV,Y);case 84:case 90:return BV(pe.parent)||AB(pe.parent)?Be(pe.parent.parent.parent,AV,Y):void 0;case 83:case 88:return Be(pe.parent,RN,K);case 99:case 117:case 92:return Be(pe.parent,De=>wx(De,!0),J);case 137:return xe(dc,[137]);case 139:case 153:return xe(Bx,[139,153]);case 135:return Be(pe.parent,Wx,ae);case 134:return We(ae(pe));case 127:return We(Ce(pe));case 103:return;default:return QD(pe.kind)&&(Y1(pe.parent)||Gl(pe.parent))?We(M(pe.kind,pe.parent)):void 0}function xe(Ae,De){return Be(pe.parent,Ae,He=>{var Ge;return Ui((Ge=ar(He,qg))==null?void 0:Ge.symbol.declarations,ft=>Ae(ft)?Le(ft.getChildren(fe),Ze=>Ft(De,Ze.kind)):void 0)})}function Be(Ae,De,He){return De(Ae)?We(He(Ae,fe)):void 0}function We(Ae){return Ae&&Ae.map(De=>s(De,fe))}}function E(pe){return Cce(pe)?[pe]:xk(pe)?an(pe.catchClause?E(pe.catchClause):pe.tryBlock&&E(pe.tryBlock),pe.finallyBlock&&E(pe.finallyBlock)):xo(pe)?void 0:B(pe,E)}function v(pe){let fe=pe;for(;fe.parent;){const xe=fe.parent;if(C2(xe)||xe.kind===312)return xe;if(xk(xe)&&xe.tryBlock===fe&&xe.catchClause)return fe;fe=xe}}function b(pe){return RN(pe)?[pe]:xo(pe)?void 0:B(pe,b)}function B(pe,fe){const xe=[];return pe.forEachChild(Be=>{const We=fe(Be);We!==void 0&&xe.push(...qA(We))}),xe}function k(pe,fe){const xe=T(fe);return!!xe&&xe===pe}function T(pe){return Ln(pe,fe=>{switch(fe.kind){case 255:if(pe.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!pe.label||Ne(fe,pe.label.escapedText);default:return xo(fe)&&"quit"}})}function M(pe,fe){return Ui(z(fe,g7(pe)),xe=>rw(xe,pe))}function z(pe,fe){const xe=pe.parent;switch(xe.kind){case 268:case 312:case 241:case 296:case 297:return fe&64&&Kc(pe)?[...pe.members,pe]:xe.statements;case 176:case 174:case 262:return[...xe.parameters,...gr(xe.parent)?xe.parent.members:[]];case 263:case 231:case 264:case 187:const Be=xe.members;if(fe&15){const We=Le(xe.members,dc);if(We)return[...Be,...We.parameters]}else if(fe&64)return[...Be,xe];return Be;case 210:return;default:H.assertNever(xe,"Invalid container kind.")}}function j(pe,fe,...xe){return fe&&Ft(xe,fe.kind)?(pe.push(fe),!0):!1}function J(pe){const fe=[];if(j(fe,pe.getFirstToken(),99,117,92)&&pe.kind===246){const xe=pe.getChildren();for(let Be=xe.length-1;Be>=0&&!j(fe,xe[Be],117);Be--);}return L(b(pe.statement),xe=>{k(pe,xe)&&j(fe,xe.getFirstToken(),83,88)}),fe}function K(pe){const fe=T(pe);if(fe)switch(fe.kind){case 248:case 249:case 250:case 246:case 247:return J(fe);case 255:return Y(fe)}}function Y(pe){const fe=[];return j(fe,pe.getFirstToken(),109),L(pe.caseBlock.clauses,xe=>{j(fe,xe.getFirstToken(),84,90),L(b(xe),Be=>{k(pe,Be)&&j(fe,Be.getFirstToken(),83)})}),fe}function oe(pe,fe){const xe=[];if(j(xe,pe.getFirstToken(),113),pe.catchClause&&j(xe,pe.catchClause.getFirstToken(),85),pe.finallyBlock){const Be=r0(pe,98,fe);j(xe,Be,98)}return xe}function se(pe,fe){const xe=v(pe);if(!xe)return;const Be=[];return L(E(xe),We=>{Be.push(r0(We,111,fe))}),C2(xe)&&v2(xe,We=>{Be.push(r0(We,107,fe))}),Be}function ge(pe,fe){const xe=Lm(pe);if(!xe)return;const Be=[];return v2(Lo(xe.body,fo),We=>{Be.push(r0(We,107,fe))}),L(E(xe.body),We=>{Be.push(r0(We,111,fe))}),Be}function ae(pe){const fe=Lm(pe);if(!fe)return;const xe=[];return fe.modifiers&&fe.modifiers.forEach(Be=>{j(xe,Be,134)}),ro(fe,Be=>{ne(Be,We=>{Wx(We)&&j(xe,We.getFirstToken(),135)})}),xe}function Ce(pe){const fe=Lm(pe);if(!fe)return;const xe=[];return ro(fe,Be=>{ne(Be,We=>{aY(We)&&j(xe,We.getFirstToken(),127)})}),xe}function ne(pe,fe){fe(pe),!xo(pe)&&!gr(pe)&&!Dh(pe)&&!Ec(pe)&&!Ip(pe)&&!Qr(pe)&&ro(pe,xe=>ne(xe,fe))}function ve(pe,fe){const xe=Se(pe,fe),Be=[];for(let We=0;We=Ae.end;Ge--)if(!Ug(fe.text.charCodeAt(Ge))){He=!1;break}if(He){Be.push({fileName:fe.fileName,textSpan:jc(Ae.getStart(),De.end),kind:"reference"}),We++;continue}}Be.push(s(xe[We],fe))}return Be}function Se(pe,fe){const xe=[];for(;_k(pe.parent)&&pe.parent.elseStatement===pe;)pe=pe.parent;for(;;){const Be=pe.getChildren(fe);j(xe,Be[0],101);for(let We=Be.length-1;We>=0&&!j(xe,Be[We],93);We--);if(!pe.elseStatement||!_k(pe.elseStatement))break;pe=pe.elseStatement}return xe}function Ne(pe,fe){return!!Ln(pe.parent,xe=>R2(xe)?xe.label.escapedText===fe:"quit")}})(HX||(HX={}))}});function eK(t){return!!t.sourceFile}function ISe(t,u,s){return jfe(t,u,s)}function jfe(t,u="",s,d){const f=new Map,p=T1(!!t);function E(){const K=Ea(f.keys()).filter(Y=>Y&&Y.charAt(0)==="_").map(Y=>{const oe=f.get(Y),se=[];return oe.forEach((ge,ae)=>{eK(ge)?se.push({name:ae,scriptKind:ge.sourceFile.scriptKind,refCount:ge.languageServiceRefCount}):ge.forEach((Ce,ne)=>se.push({name:ae,scriptKind:ne,refCount:Ce.languageServiceRefCount}))}),se.sort((ge,ae)=>ae.refCount-ge.refCount),{bucket:Y,sourceFiles:se}});return JSON.stringify(K,void 0,2)}function v(K){return typeof K.getCompilationSettings=="function"?K.getCompilationSettings():K}function b(K,Y,oe,se,ge,ae){const Ce=H0(K,u,p),ne=Vfe(v(Y));return B(K,Ce,Y,ne,oe,se,ge,ae)}function B(K,Y,oe,se,ge,ae,Ce,ne){return z(K,Y,oe,se,ge,ae,!0,Ce,ne)}function k(K,Y,oe,se,ge,ae){const Ce=H0(K,u,p),ne=Vfe(v(Y));return T(K,Ce,Y,ne,oe,se,ge,ae)}function T(K,Y,oe,se,ge,ae,Ce,ne){return z(K,Y,v(oe),se,ge,ae,!1,Ce,ne)}function M(K,Y){const oe=eK(K)?K:K.get(H.checkDefined(Y,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return H.assert(Y===void 0||!oe||oe.sourceFile.scriptKind===Y,`Script kind should match provided ScriptKind:${Y} and sourceFile.scriptKind: ${oe==null?void 0:oe.sourceFile.scriptKind}, !entry: ${!oe}`),oe}function z(K,Y,oe,se,ge,ae,Ce,ne,ve){var Se,Ne,pe,fe;ne=nZ(K,ne);const xe=v(oe),Be=oe===xe?void 0:oe,We=ne===6?100:Is(xe),Ae=typeof ve=="object"?ve:{languageVersion:We,impliedNodeFormat:Be&&vH(Y,(fe=(pe=(Ne=(Se=Be.getCompilerHost)==null?void 0:Se.call(Be))==null?void 0:Ne.getModuleResolutionCache)==null?void 0:pe.call(Ne))==null?void 0:fe.getPackageJsonInfoCache(),Be,xe),setExternalModuleIndicator:Zj(xe),jsDocParsingMode:s};Ae.languageVersion=We,H.assertEqual(s,Ae.jsDocParsingMode);const De=f.size,He=RSe(se,Ae.impliedNodeFormat),Ge=Vl(f,He,()=>new Map);if($n){f.size>De&&$n.instant($n.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:xe.configFilePath,key:He});const Ke=!Xd(Y)&&d1(f,(Gt,Yt)=>Yt!==He&&Gt.has(Y)&&Yt);Ke&&$n.instant($n.Phase.Session,"documentRegistryBucketOverlap",{path:Y,key1:Ke,key2:He})}const ft=Ge.get(Y);let Ze=ft&&M(ft,ne);if(!Ze&&d){const Ke=d.getDocument(He,Y);Ke&&(H.assert(Ce),Ze={sourceFile:Ke,languageServiceRefCount:0},je())}if(Ze)Ze.sourceFile.version!==ae&&(Ze.sourceFile=Bme(Ze.sourceFile,ge,ae,ge.getChangeRange(Ze.sourceFile.scriptSnapshot)),d&&d.setDocument(He,Y,Ze.sourceFile)),Ce&&Ze.languageServiceRefCount++;else{const Ke=fee(K,ge,Ae,ae,!1,ne);d&&d.setDocument(He,Y,Ke),Ze={sourceFile:Ke,languageServiceRefCount:1},je()}return H.assert(Ze.languageServiceRefCount!==0),Ze.sourceFile;function je(){if(!ft)Ge.set(Y,Ze);else if(eK(ft)){const Ke=new Map;Ke.set(ft.sourceFile.scriptKind,ft),Ke.set(ne,Ze),Ge.set(Y,Ke)}else ft.set(ne,Ze)}}function j(K,Y,oe,se){const ge=H0(K,u,p),ae=Vfe(Y);return J(ge,ae,oe,se)}function J(K,Y,oe,se){const ge=H.checkDefined(f.get(RSe(Y,se))),ae=ge.get(K),Ce=M(ae,oe);Ce.languageServiceRefCount--,H.assert(Ce.languageServiceRefCount>=0),Ce.languageServiceRefCount===0&&(eK(ae)?ge.delete(K):(ae.delete(oe),ae.size===1&&ge.set(K,ie(ae.values(),el))))}return{acquireDocument:b,acquireDocumentWithKey:B,updateDocument:k,updateDocumentWithKey:T,releaseDocument:j,releaseDocumentWithKey:J,getKeyForCompilationSettings:Vfe,getDocumentRegistryBucketKeyWithMode:RSe,reportStats:E,getBuckets:()=>f}}function Vfe(t){return xde(t,wY)}function RSe(t,u){return u?`${t}|${u}`:t}var cRt=o({"src/services/documentRegistry.ts"(){or()}});function OSe(t,u,s,d,f,p,E){const v=jj(d),b=T1(v),B=Hfe(u,s,b,E),k=Hfe(s,u,b,E);return nu.ChangeTracker.with({host:d,formatContext:f,preferences:p},T=>{hRt(t,T,B,u,s,d.getCurrentDirectory(),v),fRt(t,T,B,k,d,b)})}function Hfe(t,u,s,d){const f=s(t);return E=>{const v=d&&d.tryGetSourcePosition({fileName:E,pos:0}),b=p(v?v.fileName:E);return v?b===void 0?void 0:dRt(v.fileName,b,E,s):b};function p(E){if(s(E)===f)return u;const v=ble(E,f,s);return v===void 0?void 0:u+"/"+v}}function dRt(t,u,s,d){const f=FO(t,u,d);return jSe(dr(s),f)}function hRt(t,u,s,d,f,p,E){const{configFile:v}=t.getCompilerOptions();if(!v)return;const b=dr(v.fileName),B=qN(v);if(!B)return;VSe(B,(z,j)=>{switch(j){case"files":case"include":case"exclude":{if(k(z)||j!=="include"||!_h(z.initializer))return;const K=Ui(z.initializer.elements,oe=>ns(oe)?oe.text:void 0);if(K.length===0)return;const Y=iZ(b,[],K,E,p);Ox(H.checkDefined(Y.includeFilePattern),E).test(d)&&!Ox(H.checkDefined(Y.includeFilePattern),E).test(f)&&u.insertNodeAfter(v,Cr(z.initializer.elements),q.createStringLiteral(M(f)));return}case"compilerOptions":VSe(z.initializer,(J,K)=>{const Y=Xce(K);H.assert((Y==null?void 0:Y.type)!=="listOrElement"),Y&&(Y.isFilePath||Y.type==="list"&&Y.element.isFilePath)?k(J):K==="paths"&&VSe(J.initializer,oe=>{if(_h(oe.initializer))for(const se of oe.initializer.elements)T(se)})});return}});function k(z){const j=_h(z.initializer)?z.initializer.elements:[z.initializer];let J=!1;for(const K of j)J=T(K)||J;return J}function T(z){if(!ns(z))return!1;const j=jSe(b,z.text),J=s(j);return J!==void 0?(u.replaceRangeWithText(v,Jit(z,v),M(J)),!0):!1}function M(z){return GE(b,z,!E)}}function fRt(t,u,s,d,f,p){const E=t.getSourceFiles();for(const v of E){const b=s(v.fileName),B=b??v.fileName,k=dr(B),T=d(v.fileName),M=T||v.fileName,z=dr(M),j=b!==void 0||T!==void 0;gRt(v,u,J=>{if(!am(J))return;const K=jSe(z,J),Y=s(K);return Y===void 0?void 0:l2(GE(k,Y,p))},J=>{const K=t.getTypeChecker().getSymbolAtLocation(J);if(K!=null&&K.declarations&&K.declarations.some(oe=>L1(oe)))return;const Y=T!==void 0?Git(J,HB(J.text,M,t.getCompilerOptions(),f),s,E):pRt(K,J,v,t,f,s);return Y!==void 0&&(Y.updated||j&&am(J.text))?$2.updateModuleSpecifier(t.getCompilerOptions(),v,p(B),Y.newFileName,Mk(t,f),J.text):void 0})}}function mRt(t,u){return Go(hr(t,u))}function jSe(t,u){return l2(mRt(t,u))}function pRt(t,u,s,d,f,p){if(t){const E=Le(t.declarations,ca).fileName,v=p(E);return v===void 0?{newFileName:E,updated:!1}:{newFileName:v,updated:!0}}else{const E=_g(s,u),v=f.resolveModuleNameLiterals||!f.resolveModuleNames?d.getResolvedModule(s,u.text,E):f.getResolvedModuleWithFailedLookupLocationsFromCache&&f.getResolvedModuleWithFailedLookupLocationsFromCache(u.text,s.fileName,E);return Git(u,v,p,d.getSourceFiles())}}function Git(t,u,s,d){if(!u)return;if(u.resolvedModule){const b=v(u.resolvedModule.resolvedFileName);if(b)return b}const f=L(u.failedLookupLocations,p)||am(t.text)&&L(u.failedLookupLocations,E);if(f)return f;return u.resolvedModule&&{newFileName:u.resolvedModule.resolvedFileName,updated:!1};function p(b){const B=s(b);return B&&Le(d,k=>k.fileName===B)?E(b):void 0}function E(b){return oc(b,"/package.json")?void 0:v(b)}function v(b){const B=s(b);return B&&{newFileName:B,updated:!0}}}function gRt(t,u,s,d){for(const f of t.referencedFiles||_t){const p=s(f.fileName);p!==void 0&&p!==t.text.slice(f.pos,f.end)&&u.replaceRangeWithText(t,f,p)}for(const f of t.imports){const p=d(f);p!==void 0&&p!==f.text&&u.replaceRangeWithText(t,Jit(f,t),p)}}function Jit(t,u){return o4(t.getStart(u)+1,t.end-1)}function VSe(t,u){if(Cs(t))for(const s of t.properties)Gc(s)&&ns(s.name)&&u(s,s.name.text)}var ERt=o({"src/services/getEditsForFileRename.ts"(){or()}});function KM(t,u){return{kind:t,isCaseSensitive:u}}function HSe(t){const u=new Map,s=t.trim().split(".").map(d=>vRt(d.trim()));if(s.length===1&&s[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>KM(2,!0),getFullMatch:()=>KM(2,!0),patternContainsDots:!1};if(!s.some(d=>!d.subWordTextChunks.length))return{getFullMatch:(d,f)=>_Rt(d,f,s,u),getMatchForLastSegmentOfPattern:d=>KSe(d,Cr(s),u),patternContainsDots:s.length>1}}function _Rt(t,u,s,d){if(!KSe(u,Cr(s),d)||s.length-1>t.length)return;let p;for(let E=s.length-2,v=t.length-1;E>=0;E-=1,v-=1)p=qit(p,KSe(t[v],s[E],d));return p}function $it(t,u){let s=u.get(t);return s||u.set(t,s=qSe(t)),s}function Uit(t,u,s){const d=CRt(t,u.textLowerCase);if(d===0)return KM(u.text.length===t.length?0:1,Na(t,u.text));if(u.isLowerCase){if(d===-1)return;const f=$it(t,s);for(const p of f)if(WSe(t,p,u.text,!0))return KM(2,WSe(t,p,u.text,!1));if(u.text.length0)return KM(2,!0);if(u.characterSpans.length>0){const f=$it(t,s),p=Zit(t,f,u,!1)?!0:Zit(t,f,u,!0)?!1:void 0;if(p!==void 0)return KM(3,p)}}}function KSe(t,u,s){if(Kfe(u.totalTextChunk.text,p=>p!==32&&p!==42)){const p=Uit(t,u.totalTextChunk,s);if(p)return p}const d=u.subWordTextChunks;let f;for(const p of d)f=qit(f,Uit(t,p,s));return f}function qit(t,u){return aoe([t,u],DRt)}function DRt(t,u){return t===void 0?1:u===void 0?-1:tl(t.kind,u.kind)||s2(!t.isCaseSensitive,!u.isCaseSensitive)}function WSe(t,u,s,d,f={start:0,length:s.length}){return f.length<=u.length&&ent(0,f.length,p=>xRt(s.charCodeAt(f.start+p),t.charCodeAt(u.start+p),d))}function xRt(t,u,s){return s?GSe(t)===GSe(u):t===u}function Zit(t,u,s,d){const f=s.characterSpans;let p=0,E=0;for(;;){if(E===f.length)return!0;if(p===u.length)return!1;let v=u[p],b=!1;for(;E=65&&t<=90)return!0;if(t<127||!vU(t,99))return!1;const u=String.fromCharCode(t);return u===u.toUpperCase()}function Yit(t){if(t>=97&&t<=122)return!0;if(t<127||!vU(t,99))return!1;const u=String.fromCharCode(t);return u===u.toLowerCase()}function CRt(t,u){const s=t.length-u.length;for(let d=0;d<=s;d++)if(Kfe(u,(f,p)=>GSe(t.charCodeAt(p+d))===f))return d;return-1}function GSe(t){return t>=65&&t<=90?97+(t-65):t<127?t:String.fromCharCode(t).toLowerCase().charCodeAt(0)}function JSe(t){return t>=48&&t<=57}function bRt(t){return lw(t)||Yit(t)||JSe(t)||t===95||t===36}function yRt(t){const u=[];let s=0,d=0;for(let f=0;f0&&(u.push($Se(t.substr(s,d))),d=0)}return d>0&&u.push($Se(t.substr(s,d))),u}function $Se(t){const u=t.toLowerCase();return{text:t,textLowerCase:u,isLowerCase:t===u,characterSpans:USe(t)}}function USe(t){return Qit(t,!1)}function qSe(t){return Qit(t,!0)}function Qit(t,u){const s=[];let d=0;for(let f=1;fZSe(d)&&d!==95,u,s)}function kRt(t,u,s){return u!==s&&u+1u(t.charCodeAt(f),f))}var KX,ARt=o({"src/services/patternMatcher.ts"(){or(),KX=(t=>(t[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",t))(KX||{})}});function tnt(t,u=!0,s=!1){const d={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},f=[];let p,E,v,b=0,B=!1;function k(){return E=v,v=ih.scan(),v===19?b++:v===20&&b--,v}function T(){const ae=ih.getTokenValue(),Ce=ih.getTokenStart();return{fileName:ae,pos:Ce,end:Ce+ae.length}}function M(){p||(p=[]),p.push({ref:T(),depth:b})}function z(){f.push(T()),j()}function j(){b===0&&(B=!0)}function J(){let ae=ih.getToken();return ae===138?(ae=k(),ae===144&&(ae=k(),ae===11&&M()),!0):!1}function K(){if(E===25)return!1;let ae=ih.getToken();if(ae===102){if(ae=k(),ae===21){if(ae=k(),ae===11||ae===15)return z(),!0}else{if(ae===11)return z(),!0;if(ae===156&&ih.lookAhead(()=>{const ne=ih.scan();return ne!==161&&(ne===42||ne===19||ne===80||nf(ne))})&&(ae=k()),ae===80||nf(ae))if(ae=k(),ae===161){if(ae=k(),ae===11)return z(),!0}else if(ae===64){if(oe(!0))return!0}else if(ae===28)ae=k();else return!0;if(ae===19){for(ae=k();ae!==20&&ae!==1;)ae=k();ae===20&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))}else ae===42&&(ae=k(),ae===130&&(ae=k(),(ae===80||nf(ae))&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))))}return!0}return!1}function Y(){let ae=ih.getToken();if(ae===95){if(j(),ae=k(),ae===156&&ih.lookAhead(()=>{const ne=ih.scan();return ne===42||ne===19})&&(ae=k()),ae===19){for(ae=k();ae!==20&&ae!==1;)ae=k();ae===20&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))}else if(ae===42)ae=k(),ae===161&&(ae=k(),ae===11&&z());else if(ae===102&&(ae=k(),ae===156&&ih.lookAhead(()=>{const ne=ih.scan();return ne===80||nf(ne)})&&(ae=k()),(ae===80||nf(ae))&&(ae=k(),ae===64&&oe(!0))))return!0;return!0}return!1}function oe(ae,Ce=!1){let ne=ae?k():ih.getToken();return ne===149?(ne=k(),ne===21&&(ne=k(),(ne===11||Ce&&ne===15)&&z()),!0):!1}function se(){let ae=ih.getToken();if(ae===80&&ih.getTokenValue()==="define"){if(ae=k(),ae!==21)return!0;if(ae=k(),ae===11||ae===15)if(ae=k(),ae===28)ae=k();else return!0;if(ae!==23)return!0;for(ae=k();ae!==24&&ae!==1;)(ae===11||ae===15)&&z(),ae=k();return!0}return!1}function ge(){for(ih.setText(t),k();ih.getToken()!==1;){if(ih.getToken()===16){const ae=[ih.getToken()];e:for(;S(ae);){const Ce=ih.scan();switch(Ce){case 1:break e;case 102:K();break;case 16:ae.push(Ce);break;case 19:S(ae)&&ae.push(Ce);break;case 20:S(ae)&&(Yu(ae)===16?ih.reScanTemplateToken(!1)===18&&ae.pop():ae.pop());break}}k()}J()||K()||Y()||s&&(oe(!1,!0)||se())||k()}ih.setText(void 0)}if(u&&ge(),$ce(d,t),Uce(d,Ms),B){if(p)for(const ae of p)f.push(ae.ref);return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:f,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:void 0}}else{let ae;if(p)for(const Ce of p)Ce.depth===0?(ae||(ae=[]),ae.push(Ce.ref.fileName)):f.push(Ce.ref);return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:f,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:ae}}}var SRt=o({"src/services/preProcess.ts"(){or()}});function YSe(t){const u=T1(t.useCaseSensitiveFileNames()),s=t.getCurrentDirectory(),d=new Map,f=new Map;return{tryGetSourcePosition:v,tryGetGeneratedPosition:b,toLineColumnOffset:M,clearCache:z};function p(j){return H0(j,s,u)}function E(j,J){const K=p(j),Y=f.get(K);if(Y)return Y;let oe;if(t.getDocumentPositionMapper)oe=t.getDocumentPositionMapper(j,J);else if(t.readFile){const se=T(j);oe=se&&Wfe({getSourceFileLike:T,getCanonicalFileName:u,log:ge=>t.log(ge)},j,Hde(se.text,J3(se)),ge=>!t.fileExists||t.fileExists(ge)?t.readFile(ge):void 0)}return f.set(K,oe||tQ),oe||tQ}function v(j){if(!Xd(j.fileName)||!B(j.fileName))return;const K=E(j.fileName).getSourcePosition(j);return!K||K===j?void 0:v(K)||K}function b(j){if(Xd(j.fileName))return;const J=B(j.fileName);if(!J)return;const K=t.getProgram();if(K.isSourceOfProjectReferenceRedirect(J.fileName))return;const Y=K.getCompilerOptions(),oe=b0(Y),se=oe?Eh(oe)+".d.ts":Tq(j.fileName,K.getCompilerOptions(),s,K.getCommonSourceDirectory(),u);if(se===void 0)return;const ge=E(se,j.fileName).getGeneratedPosition(j);return ge===j?void 0:ge}function B(j){const J=t.getProgram();if(!J)return;const K=p(j),Y=J.getSourceFileByPath(K);return Y&&Y.resolvedPath===K?Y:void 0}function k(j){const J=p(j),K=d.get(J);if(K!==void 0)return K||void 0;if(!t.readFile||t.fileExists&&!t.fileExists(J)){d.set(J,!1);return}const Y=t.readFile(J),oe=Y?BRt(Y):!1;return d.set(J,oe),oe||void 0}function T(j){return t.getSourceFileLike?t.getSourceFileLike(j):B(j)||k(j)}function M(j,J){return T(j).getLineAndCharacterOfPosition(J)}function z(){d.clear(),f.clear()}}function Wfe(t,u,s,d){let f=OAe(s);if(f){const v=nnt.exec(f);if(v){if(v[1]){const b=v[1];return int(t,Rye(l1,b),u)}f=void 0}}const p=[];f&&p.push(f),p.push(u+".map");const E=f&&$a(f,dr(u));for(const v of p){const b=$a(v,dr(u)),B=d(b,E);if(Ja(B))return int(t,B,b);if(B!==void 0)return B||void 0}}function int(t,u,s){const d=Kde(u);if(!(!d||!d.sources||!d.file||!d.mappings)&&!(d.sourcesContent&&d.sourcesContent.some(Ja)))return HAe(t,d,s)}function BRt(t,u){return{text:t,lineMap:u,getLineAndCharacterOfPosition(s){return b8(J3(this),s)}}}var nnt,wRt=o({"src/services/sourcemaps.ts"(){or(),nnt=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function Gfe(t,u,s){var d;u.getSemanticDiagnostics(t,s);const f=[],p=u.getTypeChecker();!(t.impliedNodeFormat===1||Oc(t.fileName,[".cts",".cjs"]))&&t.commonJsModuleIndicator&&(sSe(u)||nfe(u.getCompilerOptions()))&&TRt(t)&&f.push(Bu(MRt(t.commonJsModuleIndicator),F.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const v=ph(t);if(qfe.clear(),b(t),x7(u.getCompilerOptions()))for(const B of t.imports){const k=eP(B),T=LRt(k);if(!T)continue;const M=(d=u.getResolvedModule(t,B.text,_g(t,B)))==null?void 0:d.resolvedModule,z=M&&u.getSourceFile(M.resolvedFileName);z&&z.externalModuleIndicator&&z.externalModuleIndicator!==!0&&ec(z.externalModuleIndicator)&&z.externalModuleIndicator.isExportEquals&&f.push(Bu(T,F.Import_may_be_converted_to_a_default_import))}return kn(f,t.bindSuggestionDiagnostics),kn(f,u.getSuggestionDiagnostics(t,s)),f.sort((B,k)=>B.start-k.start);function b(B){if(v)IRt(B,p)&&f.push(Bu(ua(B.parent)?B.parent.name:B,F.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Gl(B)&&B.parent===t&&B.declarationList.flags&2&&B.declarationList.declarations.length===1){const T=B.declarationList.declarations[0].initializer;T&&Df(T,!0)&&f.push(Bu(T,F.require_call_may_be_converted_to_an_import))}const k=M1.getJSDocTypedefNodes(B);for(const T of k)f.push(Bu(T,F.JSDoc_typedef_may_be_converted_to_TypeScript_type));M1.parameterShouldGetTypeFromJSDoc(B)&&f.push(Bu(B.name||B,F.JSDoc_types_may_be_moved_to_TypeScript_types))}Ufe(B)&&NRt(B,p,f),B.forEachChild(b)}}function TRt(t){return t.statements.some(u=>{switch(u.kind){case 243:return u.declarationList.declarations.some(s=>!!s.initializer&&Df(unt(s.initializer),!0));case 244:{const{expression:s}=u;if(!tu(s))return Df(s,!0);const d=Ql(s);return d===1||d===2}default:return!1}})}function unt(t){return Iu(t)?unt(t.expression):t}function LRt(t){switch(t.kind){case 272:const{importClause:u,moduleSpecifier:s}=t;return u&&!u.name&&u.namedBindings&&u.namedBindings.kind===274&&ns(s)?u.namedBindings.name:void 0;case 271:return t.name;default:return}}function NRt(t,u,s){PRt(t,u)&&!qfe.has(snt(t))&&s.push(Bu(!t.name&&ua(t.parent)&&at(t.parent.name)?t.parent.name:t,F.This_may_be_converted_to_an_async_function))}function PRt(t,u){return!rP(t)&&t.body&&fo(t.body)&&zRt(t.body,u)&&Jfe(t,u)}function Jfe(t,u){const s=u.getSignatureFromDeclaration(t),d=s?u.getReturnTypeOfSignature(s):void 0;return!!d&&!!u.getPromisedTypeOfPromise(d)}function MRt(t){return tu(t)?t.left:t}function zRt(t,u){return!!v2(t,s=>WX(s,u))}function WX(t,u){return zp(t)&&!!t.expression&&$fe(t.expression,u)}function $fe(t,u){if(!rnt(t)||!ant(t)||!t.arguments.every(d=>ont(d,u)))return!1;let s=t.expression.expression;for(;rnt(s)||Iu(s);)if(No(s)){if(!ant(s)||!s.arguments.every(d=>ont(d,u)))return!1;s=s.expression.expression}else s=s.expression;return!0}function rnt(t){return No(t)&&(TH(t,"then")||TH(t,"catch")||TH(t,"finally"))}function ant(t){const u=t.expression.name.text,s=u==="then"?2:u==="catch"||u==="finally"?1:0;return t.arguments.length>s?!1:t.arguments.lengthd.kind===106||at(d)&&d.text==="undefined")}function ont(t,u){switch(t.kind){case 262:case 218:if(yd(t)&1)return!1;case 219:qfe.set(snt(t),!0);case 106:return!0;case 80:case 211:{const d=u.getSymbolAtLocation(t);return d?u.isUndefinedSymbol(d)||qe(Q1(d,u).declarations,f=>xo(f)||Lx(f)&&!!f.initializer&&xo(f.initializer)):!1}default:return!1}}function snt(t){return`${t.pos.toString()}:${t.end.toString()}`}function IRt(t,u){var s,d,f,p;if(F0(t)){if(ua(t.parent)&&((s=t.symbol.members)!=null&&s.size))return!0;const E=u.getSymbolOfExpando(t,!1);return!!(E&&((d=E.exports)!=null&&d.size||(f=E.members)!=null&&f.size))}return Xc(t)?!!((p=t.symbol.members)!=null&&p.size):!1}function Ufe(t){switch(t.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var qfe,RRt=o({"src/services/suggestionDiagnostics.ts"(){or(),qfe=new Map}});function QSe(t,u){const s=[],d=u.compilerOptions?Zfe(u.compilerOptions,s):{},f=hee();for(const M in f)Eu(f,M)&&d[M]===void 0&&(d[M]=f[M]);for(const M of pde)d.verbatimModuleSyntax&&cnt.has(M.name)||(d[M.name]=M.transpileOptionValue);d.suppressOutputPathCheck=!0,d.allowNonTsExtensions=!0;const p=r5(d),E={getSourceFile:M=>M===Go(v)?b:void 0,writeFile:(M,z)=>{Pl(M,".map")?(H.assertEqual(k,void 0,"Unexpected multiple source map outputs, file:",M),k=z):(H.assertEqual(B,void 0,"Unexpected multiple outputs, file:",M),B=z)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:M=>M,getCurrentDirectory:()=>"",getNewLine:()=>p,fileExists:M=>M===v,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},v=u.fileName||(u.compilerOptions&&u.compilerOptions.jsx?"module.tsx":"module.ts"),b=VV(v,t,{languageVersion:Is(d),impliedNodeFormat:vH(H0(v,"",E.getCanonicalFileName),void 0,E,d),setExternalModuleIndicator:Zj(d),jsDocParsingMode:u.jsDocParsingMode??0});u.moduleName&&(b.moduleName=u.moduleName),u.renamedDependencies&&(b.renamedDependencies=new Map(Object.entries(u.renamedDependencies)));let B,k;const T=yQ([v],d,E);return u.reportDiagnostics&&(kn(s,T.getSyntacticDiagnostics(b)),kn(s,T.getOptionsDiagnostics())),T.emit(void 0,void 0,void 0,void 0,u.transformers),B===void 0?H.fail("Output generation failed"):{outputText:B,diagnostics:s,sourceMapText:k}}function lnt(t,u,s,d,f){const p=QSe(t,{compilerOptions:u,fileName:s,reportDiagnostics:!!d,moduleName:f});return kn(d,p.diagnostics),p.outputText}function Zfe(t,u){XSe=XSe||ei(r3,s=>typeof s.type=="object"&&!d1(s.type,d=>typeof d!="number")),t=Yhe(t);for(const s of XSe){if(!Eu(t,s.name))continue;const d=t[s.name];Ja(d)?t[s.name]=kY(s,d,u):d1(s.type,f=>f===d)||u.push(KFe(s))}return t}var cnt,XSe,ORt=o({"src/services/transpile.ts"(){or(),cnt=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function dnt(t,u,s,d,f,p,E){const v=HSe(d);if(!v)return _t;const b=[],B=t.length===1?t[0]:void 0;for(const k of t)s.throwIfCancellationRequested(),!(p&&k.isDeclarationFile)&&(hnt(k,!!E,B)||k.getNamedDeclarations().forEach((T,M)=>{jRt(v,M,T,u,k.fileName,!!E,B,b)}));return b.sort(WRt),(f===void 0?b:b.slice(0,f)).map(GRt)}function hnt(t,u,s){return t!==s&&u&&(YH(t.path)||t.hasNoDefaultLib)}function jRt(t,u,s,d,f,p,E,v){const b=t.getMatchForLastSegmentOfPattern(u);if(b){for(const B of s)if(VRt(B,d,p,E))if(t.patternContainsDots){const k=t.getFullMatch(KRt(B),u);k&&v.push({name:u,fileName:f,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:B})}else v.push({name:u,fileName:f,matchKind:b.kind,isCaseSensitive:b.isCaseSensitive,declaration:B})}}function VRt(t,u,s,d){var f;switch(t.kind){case 273:case 276:case 271:const p=u.getSymbolAtLocation(t.name),E=u.getAliasedSymbol(p);return p.escapedName!==E.escapedName&&!((f=E.declarations)!=null&&f.every(v=>hnt(v.getSourceFile(),s,d)));default:return!0}}function HRt(t,u){const s=qa(t);return!!s&&(fnt(s,u)||s.kind===167&&e8e(s.expression,u))}function e8e(t,u){return fnt(t,u)||Iu(t)&&(u.push(t.name.text),!0)&&e8e(t.expression,u)}function fnt(t,u){return Qg(t)&&(u.push(W4(t)),!0)}function KRt(t){const u=[],s=qa(t);if(s&&s.kind===167&&!e8e(s.expression,u))return _t;u.shift();let d=Nk(t);for(;d;){if(!HRt(d,u))return _t;d=Nk(d)}return u.reverse()}function WRt(t,u){return tl(t.matchKind,u.matchKind)||fO(t.name,u.name)}function GRt(t){const u=t.declaration,s=Nk(u),d=s&&qa(s);return{name:t.name,kind:Q2(u),kindModifiers:LM(u),matchKind:KX[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:af(u),containerName:d?d.text:"",containerKind:d?Q2(s):""}}var JRt=o({"src/services/navigateTo.ts"(){or()}}),t8e={};h(t8e,{getNavigateToItems:()=>dnt});var mnt=o({"src/services/_namespaces/ts.NavigateTo.ts"(){JRt()}});function pnt(t,u){eme=u,tK=t;try{return Kt(YRt(Dnt(t)),QRt)}finally{Ent()}}function gnt(t,u){eme=u,tK=t;try{return Snt(Dnt(t))}finally{Ent()}}function Ent(){tK=void 0,eme=void 0,iK=[],E5=void 0,tme=[]}function GX(t){return WM(t.getText(tK))}function Yfe(t){return t.node.kind}function _nt(t,u){t.children?t.children.push(u):t.children=[u]}function Dnt(t){H.assert(!iK.length);const u={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};E5=u;for(const s of t.statements)n9(s);return Gv(),H.assert(!E5&&!iK.length),u}function tb(t,u){_nt(E5,i8e(t,u))}function i8e(t,u){return{node:t,name:u||(Y1(t)||Wt(t)?qa(t):void 0),additionalNodes:void 0,parent:E5,children:void 0,indent:E5.indent+1}}function xnt(t){cw||(cw=new Map),cw.set(t,!0)}function vnt(t){for(let u=0;u0;d--){const f=s[d];ib(t,f)}return[s.length-1,s[0]]}function ib(t,u){const s=i8e(t,u);_nt(E5,s),iK.push(E5),c8e.push(cw),cw=void 0,E5=s}function Gv(){E5.children&&(Qfe(E5.children,E5),r8e(E5.children)),E5=iK.pop(),cw=c8e.pop()}function Jv(t,u,s){ib(t,s),n9(u),Gv()}function bnt(t){t.initializer&&eOt(t.initializer)?(ib(t),ro(t.initializer,n9),Gv()):Jv(t,t.initializer)}function n8e(t){const u=qa(t);if(u===void 0)return!1;if(Ls(u)){const s=u.expression;return Xl(s)||Rf(s)||Nm(s)}return!!u}function n9(t){if(eme.throwIfCancellationRequested(),!(!t||i7(t)))switch(t.kind){case 176:const u=t;Jv(u,u.body);for(const E of u.parameters)Pf(E,u)&&tb(E);break;case 174:case 177:case 178:case 173:n8e(t)&&Jv(t,t.body);break;case 172:n8e(t)&&bnt(t);break;case 171:n8e(t)&&tb(t);break;case 273:const s=t;s.name&&tb(s.name);const{namedBindings:d}=s;if(d)if(d.kind===274)tb(d);else for(const E of d.elements)tb(E);break;case 304:Jv(t,t.name);break;case 305:const{expression:f}=t;at(f)?tb(t,f):tb(t);break;case 208:case 303:case 260:{const E=t;Fo(E.name)?n9(E.name):bnt(E);break}case 262:const p=t.name;p&&at(p)&&xnt(p.text),Jv(t,t.body);break;case 219:case 218:Jv(t,t.body);break;case 266:ib(t);for(const E of t.members)XRt(E)||tb(E);Gv();break;case 263:case 231:case 264:ib(t);for(const E of t.members)n9(E);Gv();break;case 267:Jv(t,wnt(t).body);break;case 277:{const E=t.expression,v=Cs(E)||No(E)?E:G0(E)||F0(E)?E.body:void 0;v?(ib(t),n9(v),Gv()):tb(t);break}case 281:case 271:case 181:case 179:case 180:case 265:tb(t);break;case 213:case 226:{const E=Ql(t);switch(E){case 1:case 2:Jv(t,t.right);return;case 6:case 3:{const v=t,b=v.left,B=E===3?b.expression:b;let k=0,T;at(B.expression)?(xnt(B.expression.text),T=B.expression):[k,T]=Cnt(v,B.expression),E===6?Cs(v.right)&&v.right.properties.length>0&&(ib(v,T),ro(v.right,n9),Gv()):F0(v.right)||G0(v.right)?Jv(t,v.right,T):(ib(v,T),Jv(t,v.right,b.name),Gv()),vnt(k);return}case 7:case 9:{const v=t,b=E===7?v.arguments[0]:v.arguments[0].expression,B=v.arguments[1],[k,T]=Cnt(t,b);ib(t,T),ib(t,Pt(q.createIdentifier(B.text),B)),n9(t.arguments[2]),Gv(),Gv(),vnt(k);return}case 5:{const v=t,b=v.left,B=b.expression;if(at(B)&&Y3(b)!=="prototype"&&cw&&cw.has(B.text)){F0(v.right)||G0(v.right)?Jv(t,v.right,B):y2(b)&&(ib(v,B),Jv(v.left,v.right,vj(b)),Gv());return}break}case 4:case 0:case 8:break;default:H.assertNever(E)}}default:sm(t)&&L(t.jsDoc,E=>{L(E.tags,v=>{K4(v)&&tb(v)})}),ro(t,n9)}}function Qfe(t,u){const s=new Map;Uu(t,(d,f)=>{const p=d.name||qa(d.node),E=p&&GX(p);if(!E)return!0;const v=s.get(E);if(!v)return s.set(E,d),!0;if(v instanceof Array){for(const b of v)if(ynt(b,d,f,u))return!1;return v.push(d),!0}else{const b=v;return ynt(b,d,f,u)?!1:(s.set(E,[b,d]),!0)}})}function $Rt(t,u,s,d){function f(v){return F0(v)||Xc(v)||ua(v)}const p=tu(u.node)||No(u.node)?Ql(u.node):0,E=tu(t.node)||No(t.node)?Ql(t.node):0;if(GM[p]&&GM[E]||f(t.node)&&GM[p]||f(u.node)&&GM[E]||Kc(t.node)&&u8e(t.node)&&GM[p]||Kc(u.node)&&GM[E]||Kc(t.node)&&u8e(t.node)&&f(u.node)||Kc(u.node)&&f(t.node)&&u8e(t.node)){let v=t.additionalNodes&&Yu(t.additionalNodes)||t.node;if(!Kc(t.node)&&!Kc(u.node)||f(t.node)||f(u.node)){const B=f(t.node)?t.node:f(u.node)?u.node:void 0;if(B!==void 0){const k=Pt(q.createConstructorDeclaration(void 0,[],void 0),B),T=i8e(k);T.indent=t.indent+1,T.children=t.node===B?t.children:u.children,t.children=t.node===B?an([T],u.children||[u]):an(t.children||[{...t}],[T])}else(t.children||u.children)&&(t.children=an(t.children||[{...t}],u.children||[u]),t.children&&(Qfe(t.children,t),r8e(t.children)));v=t.node=Pt(q.createClassDeclaration(void 0,t.name||q.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=an(t.children,u.children),t.children&&Qfe(t.children,t);const b=u.node;return d.children[s-1].node.end===v.end?Pt(v,{pos:v.pos,end:b.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(Pt(q.createClassDeclaration(void 0,t.name||q.createIdentifier("__class__"),void 0,void 0,[]),u.node))),!0}return p!==0}function ynt(t,u,s,d){return $Rt(t,u,s,d)?!0:URt(t.node,u.node,d)?(qRt(t,u),!0):!1}function URt(t,u,s){if(t.kind!==u.kind||t.parent!==u.parent&&!(knt(t,s)&&knt(u,s)))return!1;switch(t.kind){case 172:case 174:case 177:case 178:return To(t)===To(u);case 267:return Fnt(t,u)&&s8e(t)===s8e(u);default:return!0}}function u8e(t){return!!(t.flags&16)}function knt(t,u){const s=uE(t.parent)?t.parent.parent:t.parent;return s===u.node||Ft(u.additionalNodes,s)}function Fnt(t,u){return!t.body||!u.body?t.body===u.body:t.body.kind===u.body.kind&&(t.body.kind!==267||Fnt(t.body,u.body))}function qRt(t,u){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(u.node),u.additionalNodes&&t.additionalNodes.push(...u.additionalNodes),t.children=an(t.children,u.children),t.children&&(Qfe(t.children,t),r8e(t.children))}function r8e(t){t.sort(ZRt)}function ZRt(t,u){return fO(Ant(t.node),Ant(u.node))||tl(Yfe(t),Yfe(u))}function Ant(t){if(t.kind===267)return Bnt(t);const u=qa(t);if(u&&Ac(u)){const s=ak(u);return s&&Yr(s)}switch(t.kind){case 218:case 219:case 231:return Lnt(t);default:return}}function a8e(t,u){if(t.kind===267)return WM(Bnt(t));if(u){const s=at(u)?u.text:W0(u)?`[${GX(u.argumentExpression)}]`:GX(u);if(s.length>0)return WM(s)}switch(t.kind){case 312:const s=t;return Bc(s)?`"${kv(Fc(Eh(Go(s.fileName))))}"`:"";case 277:return ec(t)&&t.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Ix(t)&2048?"default":Lnt(t);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function YRt(t){const u=[];function s(f){if(d(f)&&(u.push(f),f.children))for(const p of f.children)s(p)}return s(t),u;function d(f){if(f.children)return!0;switch(Yfe(f)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return p(f);default:return!1}function p(E){if(!E.node.body)return!1;switch(Yfe(E.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function Snt(t){return{text:a8e(t.node,t.name),kind:Q2(t.node),kindModifiers:Tnt(t.node),spans:o8e(t),nameSpan:t.name&&l8e(t.name),childItems:Kt(t.children,Snt)}}function QRt(t){return{text:a8e(t.node,t.name),kind:Q2(t.node),kindModifiers:Tnt(t.node),spans:o8e(t),childItems:Kt(t.children,u)||tme,indent:t.indent,bolded:!1,grayed:!1};function u(s){return{text:a8e(s.node,s.name),kind:Q2(s.node),kindModifiers:LM(s.node),spans:o8e(s),childItems:tme,indent:0,bolded:!1,grayed:!1}}}function o8e(t){const u=[l8e(t.node)];if(t.additionalNodes)for(const s of t.additionalNodes)u.push(l8e(s));return u}function Bnt(t){return L1(t)?Vc(t.name):s8e(t)}function s8e(t){const u=[W4(t.name)];for(;t.body&&t.body.kind===267;)t=t.body,u.push(W4(t.name));return u.join(".")}function wnt(t){return t.body&&Ec(t.body)?wnt(t.body):t}function XRt(t){return!t.name||t.name.kind===167}function l8e(t){return t.kind===312?Ux(t):af(t,tK)}function Tnt(t){return t.parent&&t.parent.kind===260&&(t=t.parent),LM(t)}function Lnt(t){const{parent:u}=t;if(t.name&&ej(t.name)>0)return WM(C0(t.name));if(ua(u))return WM(C0(u.name));if(tu(u)&&u.operatorToken.kind===64)return GX(u.left).replace(Pnt,"");if(Gc(u))return GX(u.name);if(Ix(t)&2048)return"default";if(gr(t))return"";if(No(u)){let s=Nnt(u.expression);if(s!==void 0){if(s=WM(s),s.length>Xfe)return`${s} callback`;const d=WM(Ui(u.arguments,f=>t0(f)?f.getText(tK):void 0).join(", "));return`${s}(${d}) callback`}}return""}function Nnt(t){if(at(t))return t.text;if(Iu(t)){const u=Nnt(t.expression),s=t.name.text;return u===void 0?s:`${u}.${s}`}else return}function eOt(t){switch(t.kind){case 219:case 218:case 231:return!0;default:return!1}}function WM(t){return t=t.length>Xfe?t.substring(0,Xfe)+"...":t,t.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var Pnt,Xfe,eme,tK,iK,E5,c8e,cw,tme,GM,tOt=o({"src/services/navigationBar.ts"(){or(),Pnt=/\s+/g,Xfe=150,iK=[],c8e=[],tme=[],GM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),d8e={};h(d8e,{getNavigationBarItems:()=>pnt,getNavigationTree:()=>gnt});var Mnt=o({"src/services/_namespaces/ts.NavigationBar.ts"(){tOt()}});function o3(t,u){ime.set(t,u)}function iOt(t,u){return Ea(Wn(ime.values(),s=>{var d;return t.cancellationToken&&t.cancellationToken.isCancellationRequested()||!((d=s.kinds)!=null&&d.some(f=>$v(f,t.kind)))?void 0:s.getAvailableActions(t,u)}))}function nOt(t,u,s,d){const f=ime.get(u);return f&&f.getEditsForAction(t,s,d)}var ime,znt=o({"src/services/refactorProvider.ts"(){or(),o_(),ime=new Map}});function Int(t,u=!0){const{file:s,program:d}=t,f=i9(t),p=ba(s,f.start),E=p.parent&&Ix(p.parent)&32&&u?p.parent:WH(p,s,f);if(!E||!ca(E.parent)&&!(uE(E.parent)&&L1(E.parent.parent)))return{error:Xa(F.Could_not_find_export_statement)};const v=d.getTypeChecker(),b=lOt(E.parent,v),B=Ix(E)||(ec(E)&&!E.isExportEquals?2080:0),k=!!(B&2048);if(!(B&32)||!k&&b.exports.has("default"))return{error:Xa(F.This_file_already_has_a_default_export)};const T=M=>at(M)&&v.getSymbolAtLocation(M)?void 0:{error:Xa(F.Can_only_convert_named_export)};switch(E.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const M=E;return M.name?T(M.name)||{exportNode:M,exportName:M.name,wasDefault:k,exportingModuleSymbol:b}:void 0}case 243:{const M=E;if(!(M.declarationList.flags&2)||M.declarationList.declarations.length!==1)return;const z=Mn(M.declarationList.declarations);return z.initializer?(H.assert(!k,"Can't have a default flag here"),T(z.name)||{exportNode:M,exportName:z.name,wasDefault:k,exportingModuleSymbol:b}):void 0}case 277:{const M=E;return M.isExportEquals?void 0:T(M.expression)||{exportNode:M,exportName:M.expression,wasDefault:k,exportingModuleSymbol:b}}default:return}}function uOt(t,u,s,d,f){rOt(t,s,d,u.getTypeChecker()),aOt(u,s,d,f)}function rOt(t,{wasDefault:u,exportNode:s,exportName:d},f,p){if(u)if(ec(s)&&!s.isExportEquals){const E=s.expression,v=Rnt(E.text,E.text);f.replaceNode(t,s,q.createExportDeclaration(void 0,!1,q.createNamedExports([v])))}else f.delete(t,H.checkDefined(rw(s,90),"Should find a default keyword in modifier list"));else{const E=H.checkDefined(rw(s,95),"Should find an export keyword in modifier list");switch(s.kind){case 262:case 263:case 264:f.insertNodeAfter(t,E,q.createToken(90));break;case 243:const v=Mn(s.declarationList.declarations);if(!J0.Core.isSymbolReferencedInFile(d,p,t)&&!v.type){f.replaceNode(t,s,q.createExportDefault(H.checkDefined(v.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:f.deleteModifier(t,E),f.insertNodeAfter(t,s,q.createExportDefault(q.createIdentifier(d.text)));break;default:H.fail(`Unexpected exportNode kind ${s.kind}`)}}}function aOt(t,{wasDefault:u,exportName:s,exportingModuleSymbol:d},f,p){const E=t.getTypeChecker(),v=H.checkDefined(E.getSymbolAtLocation(s),"Export name should resolve to a symbol");J0.Core.eachExportReference(t.getSourceFiles(),E,p,v,d,s.text,u,b=>{if(s===b)return;const B=b.getSourceFile();u?oOt(B,b,f,s.text):sOt(B,b,f)})}function oOt(t,u,s,d){const{parent:f}=u;switch(f.kind){case 211:s.replaceNode(t,u,q.createIdentifier(d));break;case 276:case 281:{const E=f;s.replaceNode(t,E,h8e(d,E.name.text));break}case 273:{const E=f;H.assert(E.name===u,"Import clause name should match provided ref");const v=h8e(d,u.text),{namedBindings:b}=E;if(!b)s.replaceNode(t,u,q.createNamedImports([v]));else if(b.kind===274){s.deleteRange(t,{pos:u.getStart(t),end:b.getStart(t)});const B=ns(E.parent.moduleSpecifier)?rfe(E.parent.moduleSpecifier,t):1,k=p5(void 0,[h8e(d,u.text)],E.parent.moduleSpecifier,B);s.insertNodeAfter(t,E.parent,k)}else s.delete(t,u),s.insertNodeAtEndOfList(t,b.elements,v);break}case 205:const p=f;s.replaceNode(t,f,q.createImportTypeNode(p.argument,p.attributes,q.createIdentifier(d),p.typeArguments,p.isTypeOf));break;default:H.failBadSyntaxKind(f)}}function sOt(t,u,s){const d=u.parent;switch(d.kind){case 211:s.replaceNode(t,u,q.createIdentifier("default"));break;case 276:{const f=q.createIdentifier(d.name.text);d.parent.elements.length===1?s.replaceNode(t,d.parent,f):(s.delete(t,d),s.insertNodeBefore(t,d.parent,f));break}case 281:{s.replaceNode(t,d,Rnt("default",d.name.text));break}default:H.assertNever(d,`Unexpected parent kind ${d.kind}`)}}function h8e(t,u){return q.createImportSpecifier(!1,t===u?void 0:q.createIdentifier(t),q.createIdentifier(u))}function Rnt(t,u){return q.createExportSpecifier(!1,t===u?void 0:q.createIdentifier(t),q.createIdentifier(u))}function lOt(t,u){if(ca(t))return t.symbol;const s=t.parent.symbol;return s.valueDeclaration&&_2(s.valueDeclaration)?u.getMergedSymbol(s):s}var nme,JX,$X,cOt=o({"src/services/refactors/convertExport.ts"(){or(),o_(),nme="Convert export",JX={name:"Convert default export to named export",description:Xa(F.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},$X={name:"Convert named export to default export",description:Xa(F.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},o3(nme,{kinds:[JX.kind,$X.kind],getAvailableActions:function(u){const s=Int(u,u.triggerReason==="invoked");if(!s)return _t;if(!oD(s)){const d=s.wasDefault?JX:$X;return[{name:nme,description:d.description,actions:[d]}]}return u.preferences.provideRefactorNotApplicableReason?[{name:nme,description:Xa(F.Convert_default_export_to_named_export),actions:[{...JX,notApplicableReason:s.error},{...$X,notApplicableReason:s.error}]}]:_t},getEditsForAction:function(u,s){H.assert(s===JX.name||s===$X.name,"Unexpected action name");const d=Int(u);return H.assert(d&&!oD(d),"Expected applicable refactor info"),{edits:nu.ChangeTracker.with(u,p=>uOt(u.file,u.program,d,p,u.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function Ont(t,u=!0){const{file:s}=t,d=i9(t),f=ba(s,d.start),p=u?Ln(f,Ad):WH(f,s,d);if(!p||!Ad(p))return{error:"Selection is not an import declaration."};const E=d.start+d.length,v=X2(p,p.parent,s);if(v&&E>v.getStart())return;const{importClause:b}=p;return b?b.namedBindings?b.namedBindings.kind===274?{convertTo:0,import:b.namedBindings}:jnt(t.program,b)?{convertTo:1,import:b.namedBindings}:{convertTo:2,import:b.namedBindings}:{error:Xa(F.Could_not_find_namespace_import_or_named_imports)}:{error:Xa(F.Could_not_find_import_clause)}}function jnt(t,u){return x7(t.getCompilerOptions())&&mOt(u.parent.moduleSpecifier,t.getTypeChecker())}function dOt(t,u,s,d){const f=u.getTypeChecker();d.convertTo===0?hOt(t,f,s,d.import,x7(u.getCompilerOptions())):Hnt(t,u,s,d.import,d.convertTo===1)}function hOt(t,u,s,d,f){let p=!1;const E=[],v=new Map;J0.Core.eachSymbolReferenceInFile(d.name,u,t,T=>{if(!rbe(T.parent))p=!0;else{const M=Vnt(T.parent).text;u.resolveName(M,T,67108863,!0)&&v.set(M,!0),H.assert(fOt(T.parent)===T,"Parent expression should match id"),E.push(T.parent)}});const b=new Map;for(const T of E){const M=Vnt(T).text;let z=b.get(M);z===void 0&&b.set(M,z=v.has(M)?Ik(M,t):M),s.replaceNode(t,T,q.createIdentifier(z))}const B=[];b.forEach((T,M)=>{B.push(q.createImportSpecifier(!1,T===M?void 0:q.createIdentifier(M),q.createIdentifier(T)))});const k=d.parent.parent;p&&!f?s.insertNodeAfter(t,k,f8e(k,void 0,B)):s.replaceNode(t,k,f8e(k,p?q.createIdentifier(d.name.text):void 0,B))}function Vnt(t){return Iu(t)?t.name:t.right}function fOt(t){return Iu(t)?t.expression:t.left}function Hnt(t,u,s,d,f=jnt(u,d.parent)){const p=u.getTypeChecker(),E=d.parent.parent,{moduleSpecifier:v}=E,b=new Set;d.elements.forEach(j=>{const J=p.getSymbolAtLocation(j.name);J&&b.add(J)});const B=v&&ns(v)?M1.moduleSpecifierToValidIdentifier(v.text,99):"module";function k(j){return!!J0.Core.eachSymbolReferenceInFile(j.name,p,t,J=>{const K=p.resolveName(B,J,67108863,!0);return K?b.has(K)?X1(J.parent):!0:!1})}const M=d.elements.some(k)?Ik(B,t):B,z=new Set;for(const j of d.elements){const J=(j.propertyName||j.name).text;J0.Core.eachSymbolReferenceInFile(j.name,p,t,K=>{const Y=q.createPropertyAccessExpression(q.createIdentifier(M),J);mm(K.parent)?s.replaceNode(t,K.parent,q.createPropertyAssignment(K.text,Y)):X1(K.parent)?z.add(j):s.replaceNode(t,K,Y)})}if(s.replaceNode(t,d,f?q.createIdentifier(M):q.createNamespaceImport(q.createIdentifier(M))),z.size){const j=Ea(z.values(),J=>q.createImportSpecifier(J.isTypeOnly,J.propertyName&&q.createIdentifier(J.propertyName.text),q.createIdentifier(J.name.text)));s.insertNodeAfter(t,d.parent.parent,f8e(E,void 0,j))}}function mOt(t,u){const s=u.resolveExternalModuleName(t);if(!s)return!1;const d=u.resolveExternalModuleSymbol(s);return s!==d}function f8e(t,u,s){return q.createImportDeclaration(void 0,q.createImportClause(!1,u,s&&s.length?q.createNamedImports(s):void 0),t.moduleSpecifier,void 0)}var ume,UX,pOt=o({"src/services/refactors/convertImport.ts"(){or(),o_(),ume="Convert import",UX={0:{name:"Convert namespace import to named imports",description:Xa(F.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:Xa(F.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:Xa(F.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},o3(ume,{kinds:$1(UX).map(t=>t.kind),getAvailableActions:function(u){const s=Ont(u,u.triggerReason==="invoked");if(!s)return _t;if(!oD(s)){const d=UX[s.convertTo];return[{name:ume,description:d.description,actions:[d]}]}return u.preferences.provideRefactorNotApplicableReason?$1(UX).map(d=>({name:ume,description:d.description,actions:[{...d,notApplicableReason:s.error}]})):_t},getEditsForAction:function(u,s){H.assert(qe($1(UX),p=>p.name===s),"Unexpected action name");const d=Ont(u);return H.assert(d&&!oD(d),"Expected applicable refactor info"),{edits:nu.ChangeTracker.with(u,p=>dOt(u.file,u.program,p,d)),renameFilename:void 0,renameLocation:void 0}}})}});function Knt(t,u=!0){const{file:s,startPosition:d}=t,f=ph(s),p=ba(s,d),E=dX(i9(t)),v=E.pos===E.end&&u,b=tX(p,s,E.pos,E.end),B=Ln(p,Y=>Y.parent&&Qr(Y)&&!nb(E,Y.parent,s)&&(v||b));if(!B||!Qr(B))return{error:Xa(F.Selection_is_not_a_valid_type_node)};const k=t.program.getTypeChecker(),T=xOt(B,f);if(T===void 0)return{error:Xa(F.No_type_could_be_extracted_from_this_type_node)};const M=vOt(B,T);if(!Qr(M))return{error:Xa(F.Selection_is_not_a_valid_type_node)};const z=[];(Lv(M.parent)||bB(M.parent))&&E.end>B.end&&kn(z,M.parent.types.filter(Y=>tX(Y,s,E.pos,E.end)));const j=z.length>1?z:M,J=gOt(k,j,T,s);if(!J)return{error:Xa(F.No_type_could_be_extracted_from_this_type_node)};const K=rme(k,j);return{isJS:f,selection:j,enclosingNode:T,typeParameters:J,typeElements:K}}function rme(t,u){if(u){if(Ha(u)){const s=[];for(const d of u){const f=rme(t,d);if(!f)return;kn(s,f)}return s}if(bB(u)){const s=[],d=new Map;for(const f of u.types){const p=rme(t,f);if(!p||!p.every(E=>E.name&&Pp(d,HH(E.name))))return;kn(s,p)}return s}else{if(N7(u))return rme(t,u.type);if(hm(u))return u.members}}}function nb(t,u,s){return MH(t,ms(s.text,u.pos),u.end)}function gOt(t,u,s,d){const f=[],p=qA(u),E={pos:p[0].pos,end:p[p.length-1].end};for(const b of p)if(v(b))return;return f;function v(b){if(Y4(b)){if(at(b.typeName)){const B=b.typeName,k=t.resolveName(B.text,B,262144,!0);for(const T of(k==null?void 0:k.declarations)||_t)if(Al(T)&&T.getSourceFile()===d){if(T.name.escapedText===B.escapedText&&nb(T,E,d))return!0;if(nb(s,T,d)&&!nb(E,T,d)){va(f,T);break}}}}else if(L7(b)){const B=Ln(b,k=>yB(k)&&nb(k.extendsType,b,d));if(!B||!nb(E,B,d))return!0}else if(iY(b)||uY(b)){const B=Ln(b.parent,xo);if(B&&B.type&&nb(B.type,b,d)&&!nb(E,B,d))return!0}else if(vB(b)){if(at(b.exprName)){const B=t.resolveName(b.exprName.text,b.exprName,111551,!1);if(B!=null&&B.valueDeclaration&&nb(s,B.valueDeclaration,d)&&!nb(E,B.valueDeclaration,d))return!0}else if(w2(b.exprName.left)&&!nb(E,b.parent,d))return!0}return d&&CB(b)&&o0(d,b.pos).line===o0(d,b.end).line&&Qn(b,1),ro(b,v)}}function EOt(t,u,s,d){const{enclosingNode:f,typeParameters:p}=d,{firstTypeNode:E,lastTypeNode:v,newTypeNode:b}=m8e(d),B=q.createTypeAliasDeclaration(void 0,s,p.map(k=>q.updateTypeParameterDeclaration(k,k.modifiers,k.name,k.constraint,void 0)),b);t.insertNodeBefore(u,f,lce(B),!0),t.replaceNodeRange(u,E,v,q.createTypeReferenceNode(s,p.map(k=>q.createTypeReferenceNode(k.name,void 0))),{leadingTriviaOption:nu.LeadingTriviaOption.Exclude,trailingTriviaOption:nu.TrailingTriviaOption.ExcludeWhitespace})}function _Ot(t,u,s,d){var f;const{enclosingNode:p,typeParameters:E,typeElements:v}=d,b=q.createInterfaceDeclaration(void 0,s,E,void 0,v);Pt(b,(f=v[0])==null?void 0:f.parent),t.insertNodeBefore(u,p,lce(b),!0);const{firstTypeNode:B,lastTypeNode:k}=m8e(d);t.replaceNodeRange(u,B,k,q.createTypeReferenceNode(s,E.map(T=>q.createTypeReferenceNode(T.name,void 0))),{leadingTriviaOption:nu.LeadingTriviaOption.Exclude,trailingTriviaOption:nu.TrailingTriviaOption.ExcludeWhitespace})}function DOt(t,u,s,d,f){var p;qA(f.selection).forEach(j=>{Qn(j,7168)});const{enclosingNode:E,typeParameters:v}=f,{firstTypeNode:b,lastTypeNode:B,newTypeNode:k}=m8e(f),T=q.createJSDocTypedefTag(q.createIdentifier("typedef"),q.createJSDocTypeExpression(k),q.createIdentifier(d)),M=[];L(v,j=>{const J=S8(j),K=q.createTypeParameterDeclaration(void 0,j.name),Y=q.createJSDocTemplateTag(q.createIdentifier("template"),J&&Lo(J,bk),[K]);M.push(Y)});const z=q.createJSDocComment(void 0,q.createNodeArray(an(M,[T])));if(Rp(E)){const j=E.getStart(s),J=g5(u.host,(p=u.formatContext)==null?void 0:p.options);t.insertNodeAt(s,E.getStart(s),z,{suffix:J+J+s.text.slice(CX(s.text,j-1),j)})}else t.insertNodeBefore(s,E,z,!0);t.replaceNodeRange(s,b,B,q.createTypeReferenceNode(d,v.map(j=>q.createTypeReferenceNode(j.name,void 0))))}function m8e(t){return Ha(t.selection)?{firstTypeNode:t.selection[0],lastTypeNode:t.selection[t.selection.length-1],newTypeNode:Lv(t.selection[0].parent)?q.createUnionTypeNode(t.selection):q.createIntersectionTypeNode(t.selection)}:{firstTypeNode:t.selection,lastTypeNode:t.selection,newTypeNode:t.selection}}function xOt(t,u){return Ln(t,na)||(u?Ln(t,Rp):void 0)}function vOt(t,u){return Ln(t,s=>s===u?"quit":!!(Lv(s.parent)||bB(s.parent)))??t}var ame,qX,ZX,YX,COt=o({"src/services/refactors/extractType.ts"(){or(),o_(),ame="Extract type",qX={name:"Extract to type alias",description:Xa(F.Extract_to_type_alias),kind:"refactor.extract.type"},ZX={name:"Extract to interface",description:Xa(F.Extract_to_interface),kind:"refactor.extract.interface"},YX={name:"Extract to typedef",description:Xa(F.Extract_to_typedef),kind:"refactor.extract.typedef"},o3(ame,{kinds:[qX.kind,ZX.kind,YX.kind],getAvailableActions:function(u){const s=Knt(u,u.triggerReason==="invoked");return s?oD(s)?u.preferences.provideRefactorNotApplicableReason?[{name:ame,description:Xa(F.Extract_type),actions:[{...YX,notApplicableReason:s.error},{...qX,notApplicableReason:s.error},{...ZX,notApplicableReason:s.error}]}]:_t:[{name:ame,description:Xa(F.Extract_type),actions:s.isJS?[YX]:Ei([qX],s.typeElements&&ZX)}]:_t},getEditsForAction:function(u,s){const{file:d}=u,f=Knt(u);H.assert(f&&!oD(f),"Expected to find a range to extract");const p=Ik("NewType",d),E=nu.ChangeTracker.with(u,B=>{switch(s){case qX.name:return H.assert(!f.isJS,"Invalid actionName/JS combo"),EOt(B,d,p,f);case YX.name:return H.assert(f.isJS,"Invalid actionName/JS combo"),DOt(B,u,d,p,f);case ZX.name:return H.assert(!f.isJS&&!!f.typeElements,"Invalid actionName/JS combo"),_Ot(B,d,p,f);default:H.fail("Unexpected action name")}}),v=d.fileName,b=$H(E,v,p,!1);return{edits:E,renameFilename:v,renameLocation:b}}})}});function oD(t){return t.error!==void 0}function $v(t,u){return u?t.substr(0,u.length)===u:!0}var bOt=o({"src/services/refactors/helpers.ts"(){}});function Wnt(t,u,s,d){var f,p;const E=d.getTypeChecker(),v=rf(t,u),b=v.parent;if(at(v)){if(Uj(b)&&UN(b)&&at(b.name)){if(((f=E.getMergedSymbol(b.symbol).declarations)==null?void 0:f.length)!==1)return{error:Xa(F.Variables_with_multiple_declarations_cannot_be_inlined)};if(Gnt(b))return;const B=Jnt(b,E,t);return B&&{references:B,declaration:b,replacement:b.initializer}}if(s){let B=E.resolveName(v.text,v,111551,!1);if(B=B&&E.getMergedSymbol(B),((p=B==null?void 0:B.declarations)==null?void 0:p.length)!==1)return{error:Xa(F.Variables_with_multiple_declarations_cannot_be_inlined)};const k=B.declarations[0];if(!Uj(k)||!UN(k)||!at(k.name)||Gnt(k))return;const T=Jnt(k,E,t);return T&&{references:T,declaration:k,replacement:k.initializer}}return{error:Xa(F.Could_not_find_variable_to_inline)}}}function Gnt(t){const u=Lo(t.parent.parent,Gl);return qe(u.modifiers,w7)}function Jnt(t,u,s){const d=[],f=J0.Core.eachSymbolReferenceInFile(t.name,u,s,p=>{if(J0.isWriteAccessForReference(p)||X1(p.parent)||ec(p.parent)||vB(p.parent)||MO(t,p.pos))return!0;d.push(p)});return d.length===0||f?void 0:d}function yOt(t,u){u=ol(u);const{parent:s}=t;return Wt(s)&&(sP(u){for(const T of E)k.replaceNode(s,T,yOt(T,b));k.delete(s,v)})}}})}});function FOt(t,u,s,d,f,p,E){const v=u.getTypeChecker(),b=eee(t,s.all,v),B=k8e(t,u,E,f);d.createNewFile(t,B,AOt(t,b,d,s,u,f,B,p)),p8e(u,d,t.fileName,B,i5(f))}function AOt(t,u,s,d,f,p,E,v){const b=f.getTypeChecker(),B=Y$(t.statements,Lp);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&u.oldImportsNeededByTargetFile.size===0)return QX(t,d.ranges,s),[...B,...d.all];const k=!Sfe(E,f,p,!!t.commonJsModuleIndicator),T=Vm(t,v),M=D8e(t,u.oldFileImportsFromTargetFile,E,f,p,k,T);M&&PM(s,t,M,!0,v),g8e(t,d.all,s,u.unusedImportsFromOldFile,b),QX(t,d.ranges,s),E8e(s,f,p,t,u.movedSymbols,E,T);const z=SOt(t,u.oldImportsNeededByTargetFile,u.targetFileImportsFromOldFile,s,b,f,p,k,T),j=x8e(t,d.all,u.oldFileImportsFromTargetFile,k);return z.length&&j.length?[...B,...z,4,...j]:[...B,...z,...j]}function SOt(t,u,s,d,f,p,E,v,b){const B=[];for(const z of t.statements)aK(z,j=>{Ei(B,oK(j,rK(j),J=>u.has(f.getSymbolAtLocation(J))))});let k;const T=[],M=e9();return s.forEach(z=>{if(z.declarations)for(const j of z.declarations){if(!tee(j))continue;const J=b8e(j);if(!J)continue;const K=dme(j);M(K)&&y8e(t,K,J,d,v),Xu(j,2048)?k=J:T.push(J.text)}}),Ei(B,XX(t,k,T,Fc(t.fileName),p,E,v,b)),B}var uK,lme,cme,BOt=o({"src/services/refactors/moveToNewFile.ts"(){or(),o_(),uK="Move to a new file",lme=Xa(F.Move_to_a_new_file),cme={name:uK,description:lme,kind:"refactor.move.newFile"},o3(uK,{kinds:[cme.kind],getAvailableActions:function(u){const s=sK(u);return u.preferences.allowTextChangesInNewFiles&&s?[{name:uK,description:lme,actions:[cme]}]:u.preferences.provideRefactorNotApplicableReason?[{name:uK,description:lme,actions:[{...cme,notApplicableReason:Xa(F.Selection_is_not_a_valid_statement_or_statements)}]}]:_t},getEditsForAction:function(u,s){H.assert(s===uK,"Wrong refactor invoked");const d=H.checkDefined(sK(u));return{edits:nu.ChangeTracker.with(u,p=>FOt(u.file,u.program,d,p,u.host,u.preferences,u)),renameFilename:void 0,renameLocation:void 0}}})}});function $nt(t){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:t}}function wOt(t,u,s,d,f,p,E,v){const b=d.getTypeChecker();if(!E.fileExists(s))p.createNewFile(u,s,Unt(u,s,eee(u,f.all,b),p,f,d,E,v)),p8e(d,p,u.fileName,s,i5(E));else{const B=H.checkDefined(d.getSourceFile(s)),k=M1.createImportAdder(B,t.program,t.preferences,t.host);Unt(u,B,eee(u,f.all,b,qOt(B,b)),p,f,d,E,v,k)}}function Unt(t,u,s,d,f,p,E,v,b){const B=p.getTypeChecker(),k=Y$(t.statements,Lp);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&s.oldImportsNeededByTargetFile.size===0&&s.targetFileImportsFromOldFile.size===0&&typeof u=="string")return QX(t,f.ranges,d),[...k,...f.all];const T=typeof u=="string"?u:u.fileName,M=!Sfe(T,p,E,!!t.commonJsModuleIndicator),z=Vm(t,v),j=D8e(t,s.oldFileImportsFromTargetFile,T,p,E,M,z);j&&PM(d,t,j,!0,v),g8e(t,f.all,d,s.unusedImportsFromOldFile,B),QX(t,f.ranges,d),E8e(d,p,E,t,s.movedSymbols,T,z);const J=TOt(t,T,s.oldImportsNeededByTargetFile,s.targetFileImportsFromOldFile,d,B,p,E,M,z,b),K=x8e(t,f.all,s.oldFileImportsFromTargetFile,M);return typeof u!="string"&&(u.statements.length>0?UOt(d,p,K,u,f):d.insertNodesAtEndOfFile(u,K,!1),J.length>0&&PM(d,u,J,!0,v)),b&&b.writeFixes(d,z),J.length&&K.length?[...k,...J,4,...K]:[...k,...J,...K]}function TOt(t,u,s,d,f,p,E,v,b,B,k){const T=[];if(k)s.forEach((K,Y)=>{try{k.addImportFromExportedSymbol(Q1(Y,p),K)}catch{for(const oe of t.statements)aK(oe,se=>{Ei(T,oK(se,q.createStringLiteral(rK(se).text),ge=>s.has(p.getSymbolAtLocation(ge))))})}});else{const K=E.getSourceFile(u);for(const Y of t.statements)aK(Y,oe=>{var se;const ge=rK(oe),ae=E.getResolvedModule(t,ge.text,_g(t,ge)),Ce=(se=ae==null?void 0:ae.resolvedModule)==null?void 0:se.resolvedFileName;if(Ce&&K){const ne=GY(E.getCompilerOptions(),K,K.path,Ce,Mk(E,v));Ei(T,oK(oe,t9(ne,B),ve=>s.has(p.getSymbolAtLocation(ve))))}else Ei(T,oK(oe,q.createStringLiteral(rK(oe).text),ne=>s.has(p.getSymbolAtLocation(ne))))})}const M=E.getSourceFile(u);let z;const j=[],J=e9();return d.forEach(K=>{if(K.declarations)for(const Y of K.declarations){if(!tee(Y))continue;const oe=b8e(Y);if(!oe)continue;const se=dme(Y);J(se)&&y8e(t,se,oe,f,b),k&&p.isUnknownSymbol(K)?k.addImportFromExportedSymbol(Q1(K,p)):Xu(Y,2048)?z=oe:j.push(oe.text)}}),M?Ei(T,XX(M,z,j,t.fileName,E,v,b,B)):Ei(T,XX(t,z,j,t.fileName,E,v,b,B))}function p8e(t,u,s,d,f){const p=t.getCompilerOptions().configFile;if(!p)return;const E=Go(hr(s,"..",d)),v=FO(p.fileName,E,f),b=p.statements[0]&&ar(p.statements[0].expression,Cs),B=b&&Le(b.properties,k=>Gc(k)&&ns(k.name)&&k.name.text==="files");B&&_h(B.initializer)&&u.insertNodeInListAfter(p,Cr(B.initializer.elements),q.createStringLiteral(v),B.initializer.elements)}function QX(t,u,s){for(const{first:d,afterLast:f}of u)s.deleteNodeRangeExcludingEnd(t,d,f)}function g8e(t,u,s,d,f){for(const p of t.statements)Ft(u,p)||aK(p,E=>v8e(t,E,s,v=>d.has(f.getSymbolAtLocation(v))))}function E8e(t,u,s,d,f,p,E){const v=u.getTypeChecker();for(const b of u.getSourceFiles())if(b!==d)for(const B of b.statements)aK(B,k=>{if(v.getSymbolAtLocation(rK(k))!==d.symbol)return;const T=K=>{const Y=Rs(K.parent)?_X(v,K.parent):Q1(v.getSymbolAtLocation(K),v);return!!Y&&f.has(Y)};v8e(b,k,t,T);const M=yx(dr(d.path),p),z=GY(u.getCompilerOptions(),b,b.path,M,Mk(u,s)),j=oK(k,t9(z,E),T);j&&t.insertNodeAfter(b,B,j);const J=LOt(k);J&&NOt(t,b,v,f,z,J,k,E)})}function LOt(t){switch(t.kind){case 272:return t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===274?t.importClause.namedBindings.name:void 0;case 271:return t.name;case 260:return ar(t.name,at);default:return H.assertNever(t,`Unexpected node kind ${t.kind}`)}}function NOt(t,u,s,d,f,p,E,v){const b=M1.moduleSpecifierToValidIdentifier(f,99);let B=!1;const k=[];if(J0.Core.eachSymbolReferenceInFile(p,s,u,T=>{Iu(T.parent)&&(B=B||!!s.resolveName(b,T,67108863,!0),d.has(s.getSymbolAtLocation(T.parent.name))&&k.push(T))}),k.length){const T=B?Ik(b,u):b;for(const M of k)t.replaceNode(u,M,q.createIdentifier(T));t.insertNodeAfter(u,E,POt(E,b,f,v))}}function POt(t,u,s,d){const f=q.createIdentifier(u),p=t9(s,d);switch(t.kind){case 272:return q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamespaceImport(f)),p,void 0);case 271:return q.createImportEqualsDeclaration(void 0,!1,f,q.createExternalModuleReference(p));case 260:return q.createVariableDeclaration(f,void 0,void 0,_8e(p));default:return H.assertNever(t,`Unexpected node kind ${t.kind}`)}}function _8e(t){return q.createCallExpression(q.createIdentifier("require"),void 0,[t])}function rK(t){return t.kind===272?t.moduleSpecifier:t.kind===271?t.moduleReference.expression:t.initializer.arguments[0]}function aK(t,u){if(Ad(t))ns(t.moduleSpecifier)&&u(t);else if(g1(t))u_(t.moduleReference)&&t0(t.moduleReference.expression)&&u(t);else if(Gl(t))for(const s of t.declarationList.declarations)s.initializer&&Df(s.initializer,!0)&&u(s)}function D8e(t,u,s,d,f,p,E){let v;const b=[];return u.forEach(B=>{B.escapedName==="default"?v=q.createIdentifier(pX(B)):b.push(B.name)}),XX(t,v,b,s,d,f,p,E)}function XX(t,u,s,d,f,p,E,v){const b=yx(dr(t.path),d),B=GY(f.getCompilerOptions(),t,t.path,b,Mk(f,p));if(E){const k=s.map(T=>q.createImportSpecifier(!1,void 0,q.createIdentifier(T)));return lSe(u,k,B,v)}else{H.assert(!u,"No default import should exist");const k=s.map(T=>q.createBindingElement(void 0,void 0,T));return k.length?qnt(q.createObjectBindingPattern(k),void 0,_8e(t9(B,v))):void 0}}function qnt(t,u,s,d=2){return q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(t,void 0,u,s)],d))}function x8e(t,u,s,d){return Ku(u,f=>{if(Ynt(f)&&!Znt(t,f,d)&&F8e(f,p=>{var E;return s.has(H.checkDefined((E=ar(p,qg))==null?void 0:E.symbol))})){const p=IOt(ol(f),d);if(p)return p}return ol(f)})}function Znt(t,u,s,d){var f;return s?!Id(u)&&Xu(u,32)||!!(d&&t.symbol&&((f=t.symbol.exports)!=null&&f.has(d.escapedText))):!!t.symbol&&!!t.symbol.exports&&C8e(u).some(p=>t.symbol.exports.has(kl(p)))}function v8e(t,u,s,d){switch(u.kind){case 272:MOt(t,u,s,d);break;case 271:d(u.name)&&s.delete(t,u);break;case 260:zOt(t,u,s,d);break;default:H.assertNever(u,`Unexpected import decl kind ${u.kind}`)}}function MOt(t,u,s,d){if(!u.importClause)return;const{name:f,namedBindings:p}=u.importClause,E=!f||d(f),v=!p||(p.kind===274?d(p.name):p.elements.length!==0&&p.elements.every(b=>d(b.name)));if(E&&v)s.delete(t,u);else if(f&&E&&s.delete(t,f),p){if(v)s.replaceNode(t,u.importClause,q.updateImportClause(u.importClause,u.importClause.isTypeOnly,f,void 0));else if(p.kind===275)for(const b of p.elements)d(b.name)&&s.delete(t,b)}}function zOt(t,u,s,d){const{name:f}=u;switch(f.kind){case 80:d(f)&&(u.initializer&&Df(u.initializer,!0)?s.delete(t,Fd(u.parent)&&S(u.parent.declarations)===1?u.parent.parent:u):s.delete(t,f));break;case 207:break;case 206:if(f.elements.every(p=>at(p.name)&&d(p.name)))s.delete(t,Fd(u.parent)&&u.parent.declarations.length===1?u.parent.parent:u);else for(const p of f.elements)at(p.name)&&d(p.name)&&s.delete(t,p.name);break}}function Ynt(t){return H.assert(ca(t.parent),"Node parent should be a SourceFile"),nut(t)||Gl(t)}function IOt(t,u){return u?[ROt(t)]:OOt(t)}function ROt(t){const u=Op(t)?an([q.createModifier(95)],h2(t)):void 0;switch(t.kind){case 262:return q.updateFunctionDeclaration(t,u,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 263:const s=kk(t)?Fx(t):void 0;return q.updateClassDeclaration(t,an(s,u),t.name,t.typeParameters,t.heritageClauses,t.members);case 243:return q.updateVariableStatement(t,u,t.declarationList);case 267:return q.updateModuleDeclaration(t,u,t.name,t.body);case 266:return q.updateEnumDeclaration(t,u,t.name,t.members);case 265:return q.updateTypeAliasDeclaration(t,u,t.name,t.typeParameters,t.type);case 264:return q.updateInterfaceDeclaration(t,u,t.name,t.typeParameters,t.heritageClauses,t.members);case 271:return q.updateImportEqualsDeclaration(t,u,t.isTypeOnly,t.name,t.moduleReference);case 244:return H.fail();default:return H.assertNever(t,`Unexpected declaration kind ${t.kind}`)}}function OOt(t){return[t,...C8e(t).map(Qnt)]}function Qnt(t){return q.createExpressionStatement(q.createBinaryExpression(q.createPropertyAccessExpression(q.createIdentifier("exports"),q.createIdentifier(t)),64,q.createIdentifier(t)))}function C8e(t){switch(t.kind){case 262:case 263:return[t.name.text];case 243:return Ui(t.declarationList.declarations,u=>at(u.name)?u.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return _t;case 244:return H.fail("Can't export an ExpressionStatement");default:return H.assertNever(t,`Unexpected decl kind ${t.kind}`)}}function oK(t,u,s){switch(t.kind){case 272:{const d=t.importClause;if(!d)return;const f=d.name&&s(d.name)?d.name:void 0,p=d.namedBindings&&jOt(d.namedBindings,s);return f||p?q.createImportDeclaration(void 0,q.createImportClause(d.isTypeOnly,f,p),ol(u),void 0):void 0}case 271:return s(t.name)?t:void 0;case 260:{const d=VOt(t.name,s);return d?qnt(d,t.type,_8e(u),t.parent.flags):void 0}default:return H.assertNever(t,`Unexpected import kind ${t.kind}`)}}function jOt(t,u){if(t.kind===274)return u(t.name)?t:void 0;{const s=t.elements.filter(d=>u(d.name));return s.length?q.createNamedImports(s):void 0}}function VOt(t,u){switch(t.kind){case 80:return u(t)?t:void 0;case 207:return t;case 206:{const s=t.elements.filter(d=>d.propertyName||!at(d.name)||u(d.name));return s.length?q.createObjectBindingPattern(s):void 0}}}function b8e(t){return Id(t)?ar(t.expression.left.name,at):ar(t.name,at)}function dme(t){switch(t.kind){case 260:return t.parent.parent;case 208:return dme(Lo(t.parent.parent,u=>ua(u)||Rs(u)));default:return t}}function y8e(t,u,s,d,f){if(!Znt(t,u,f,s))if(f)Id(u)||d.insertExportModifier(t,u);else{const p=C8e(u);p.length!==0&&d.insertNodesAfter(t,u,p.map(Qnt))}}function k8e(t,u,s,d){const f=u.getTypeChecker(),p=sK(s);let E;if(p){E=eee(t,p.all,f);const v=dr(t.fileName),b=C7(t.fileName);return hr(v,GOt(JOt(E.oldFileImportsFromTargetFile,E.movedSymbols),b,v,d))+b}return""}function HOt(t){const{file:u}=t,s=dX(i9(t)),{statements:d}=u;let f=$e(d,B=>B.end>s.pos);if(f===-1)return;const p=d[f],E=uut(u,p);E&&(f=E.start);let v=$e(d,B=>B.end>=s.end,f);v!==-1&&s.end<=d[v].getStart()&&v--;const b=uut(u,d[v]);return b&&(v=b.end),{toMove:d.slice(f,v===-1?d.length:v+1),afterLast:v===-1?void 0:d[v+1]}}function sK(t){const u=HOt(t);if(u===void 0)return;const s=[],d=[],{toMove:f,afterLast:p}=u;return Lu(f,KOt,(E,v)=>{for(let b=E;b!!u.initializer&&Df(u.initializer,!0));default:return!1}}function eee(t,u,s,d=new Set){const f=new Set,p=new Map,E=new Set,v=Le(u,M=>!!(M.transformFlags&2)),b=T(v);b&&p.set(b,!1);for(const M of u)F8e(M,z=>{f.add(H.checkDefined(Id(z)?s.getSymbolAtLocation(z.expression.left):z.symbol,"Need a symbol here"))});const B=new Set;for(const M of u)Xnt(M,s,(z,j)=>{if(z.declarations){if(d.has(Q1(z,s))){B.add(z);return}for(const J of z.declarations)if(eut(J)){const K=p.get(z);p.set(z,(K===void 0||K)&&j)}else tee(J)&&$Ot(J)===t&&!f.has(z)&&E.add(z)}});for(const M of p.keys())B.add(M);const k=new Set;for(const M of t.statements)Ft(u,M)||(b&&M.transformFlags&2&&B.delete(b),Xnt(M,s,z=>{f.has(z)&&k.add(z),B.delete(z)}));return{movedSymbols:f,targetFileImportsFromOldFile:E,oldFileImportsFromTargetFile:k,oldImportsNeededByTargetFile:p,unusedImportsFromOldFile:B};function T(M){if(M===void 0)return;const z=s.getJsxNamespace(M),j=s.resolveName(z,M,1920,!0);return j&&qe(j.declarations,eut)?j:void 0}}function GOt(t,u,s,d){let f=t;for(let p=1;;p++){const E=hr(s,f+u);if(!d.fileExists(E))return f;f=`${t}.${p}`}}function JOt(t,u){return $_(t,pX)||$_(u,pX)||"newFile"}function Xnt(t,u,s){t.forEachChild(function d(f){if(at(f)&&!Q3(f)){const p=u.getSymbolAtLocation(f);p&&s(p,Bv(f))}else f.forEachChild(d)})}function F8e(t,u){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return u(t);case 243:return G(t.declarationList.declarations,s=>iut(s.name,u));case 244:{const{expression:s}=t;return tu(s)&&Ql(s)===1?u(t):void 0}}}function eut(t){switch(t.kind){case 271:case 276:case 273:case 274:return!0;case 260:return tut(t);case 208:return ua(t.parent.parent)&&tut(t.parent.parent);default:return!1}}function tut(t){return ca(t.parent.parent.parent)&&!!t.initializer&&Df(t.initializer,!0)}function tee(t){return nut(t)&&ca(t.parent)||ua(t)&&ca(t.parent.parent.parent)}function $Ot(t){return ua(t)?t.parent.parent.parent:t.parent}function iut(t,u){switch(t.kind){case 80:return u(Lo(t.parent,s=>ua(s)||Rs(s)));case 207:case 206:return G(t.elements,s=>kd(s)?void 0:iut(s.name,u));default:return H.assertNever(t,`Unexpected name kind ${t.kind}`)}}function nut(t){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function UOt(t,u,s,d,f){var p;const E=new Set,v=(p=d.symbol)==null?void 0:p.exports;if(v){const B=u.getTypeChecker(),k=new Map;for(const T of f.all)Ynt(T)&&Xu(T,32)&&F8e(T,M=>{var z;const j=qg(M)?(z=v.get(M.symbol.escapedName))==null?void 0:z.declarations:void 0,J=G(j,K=>Wc(K)?K:X1(K)?ar(K.parent.parent,Wc):void 0);J&&J.moduleSpecifier&&k.set(J,(k.get(J)||new Set).add(M))});for(const[T,M]of Ea(k))if(T.exportClause&&Q4(T.exportClause)&&S(T.exportClause.elements)){const z=T.exportClause.elements,j=ei(z,J=>Le(Q1(J.symbol,B).declarations,K=>tee(K)&&M.has(K))===void 0);if(S(j)===0){t.deleteNode(d,T),E.add(T);continue}S(j)Wc(B)&&!!B.moduleSpecifier&&!E.has(B));b?t.insertNodesBefore(d,b,s,!0):t.insertNodesAfter(d,d.statements[d.statements.length-1],s)}function uut(t,u){if(K0(u)){const s=u.symbol.declarations;if(s===void 0||S(s)<=1||!Ft(s,u))return;const d=s[0],f=s[S(s)-1],p=Ui(s,b=>In(b)===t&&na(b)?b:void 0),E=$e(t.statements,b=>b.end>=f.end),v=$e(t.statements,b=>b.end>=d.end);return{toMove:p,start:v,end:E}}}function qOt(t,u){const s=new Set;for(const d of t.imports){const f=eP(d);if(Ad(f)&&f.importClause&&f.importClause.namedBindings&&nD(f.importClause.namedBindings))for(const p of f.importClause.namedBindings.elements){const E=u.getSymbolAtLocation(p.propertyName||p.name);E&&s.add(Q1(E,u))}if(Eq(f.parent)&&Mp(f.parent.name))for(const p of f.parent.name.elements){const E=u.getSymbolAtLocation(p.propertyName||p.name);E&&s.add(Q1(E,u))}}return s}var iee,hme,fme,ZOt=o({"src/services/refactors/moveToFile.ts"(){Cet(),or(),znt(),iee="Move to file",hme=Xa(F.Move_to_file),fme={name:"Move to file",description:hme,kind:"refactor.move.file"},o3(iee,{kinds:[fme.kind],getAvailableActions:function(u,s){const d=sK(u);return s?u.preferences.allowTextChangesInNewFiles&&d?[{name:iee,description:hme,actions:[fme]}]:u.preferences.provideRefactorNotApplicableReason?[{name:iee,description:hme,actions:[{...fme,notApplicableReason:Xa(F.Selection_is_not_a_valid_statement_or_statements)}]}]:_t:_t},getEditsForAction:function(u,s,d){H.assert(s===iee,"Wrong refactor invoked");const f=H.checkDefined(sK(u)),{host:p,program:E}=u;H.assert(d,"No interactive refactor arguments available");const v=d.targetFile;return N2(v)||hk(v)?p.fileExists(v)&&E.getSourceFile(v)===void 0?$nt(Xa(F.Cannot_move_statements_to_the_selected_file)):{edits:nu.ChangeTracker.with(u,B=>wOt(u,u.file,d.targetFile,u.program,f,B,u.host,u.preferences)),renameFilename:void 0,renameLocation:void 0}:$nt(Xa(F.Cannot_move_to_file_selected_file_is_invalid))}})}});function YOt(t){const{file:u,startPosition:s,program:d}=t;return aut(u,s,d)?[{name:mme,description:A8e,actions:[S8e]}]:_t}function QOt(t){const{file:u,startPosition:s,program:d}=t,f=aut(u,s,d);if(!f)return;const p=d.getTypeChecker(),E=f[f.length-1];let v=E;switch(E.kind){case 173:{v=q.updateMethodSignature(E,E.modifiers,E.name,E.questionToken,E.typeParameters,B(f),E.type);break}case 174:{v=q.updateMethodDeclaration(E,E.modifiers,E.asteriskToken,E.name,E.questionToken,E.typeParameters,B(f),E.type,E.body);break}case 179:{v=q.updateCallSignature(E,E.typeParameters,B(f),E.type);break}case 176:{v=q.updateConstructorDeclaration(E,E.modifiers,B(f),E.body);break}case 180:{v=q.updateConstructSignature(E,E.typeParameters,B(f),E.type);break}case 262:{v=q.updateFunctionDeclaration(E,E.modifiers,E.asteriskToken,E.name,E.typeParameters,B(f),E.type,E.body);break}default:return H.failBadSyntaxKind(E,"Unhandled signature kind in overload list conversion refactoring")}if(v===E)return;return{renameFilename:void 0,renameLocation:void 0,edits:nu.ChangeTracker.with(t,M=>{M.replaceNodeRange(u,f[0],f[f.length-1],v)})};function B(M){const z=M[M.length-1];return K0(z)&&z.body&&(M=M.slice(0,M.length-1)),q.createNodeArray([q.createParameterDeclaration(void 0,q.createToken(26),"args",void 0,q.createUnionTypeNode(Kt(M,k)))])}function k(M){const z=Kt(M.parameters,T);return Qn(q.createTupleTypeNode(z),qe(z,j=>!!S(EB(j)))?0:1)}function T(M){H.assert(at(M.name));const z=Pt(q.createNamedTupleMember(M.dotDotDotToken,M.name,M.questionToken,M.type||q.createKeywordTypeNode(133)),M),j=M.symbol&&M.symbol.getDocumentationComment(p);if(j){const J=pK(j);J.length&&Tv(z,[{text:`* +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return H.assertNever(t)}}function oRt(t){switch(t){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function sRt(t){switch(t){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function lRt(t){if(uf(t))return 3;if(oRt(t)||sRt(t))return 5;if(t>=19&&t<=79)return 10;switch(t){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Bx(t)?6:2}}function ISe(t,u,s,d,f){return Git(Ofe(t,u,s,d,f))}function Kit(t,u){switch(u){case 267:case 263:case 264:case 262:case 231:case 218:case 219:t.throwIfCancellationRequested()}}function Ofe(t,u,s,d,f){const p=[];return s.forEachChild(function v(b){if(!(!b||!wU(f,b.pos,b.getFullWidth()))){if(Kit(u,b.kind),at(b)&&!Ql(b)&&d.has(b.escapedText)){const B=t.getSymbolAtLocation(b),k=B&&Wit(B,Pk(b),t);k&&E(b.getStart(s),b.getEnd(),k)}b.forEachChild(v)}}),{spans:p,endOfLineState:0};function E(v,b,B){const k=b-v;H.assert(k>0,`Classification had non-positive length of ${k}`),p.push(v),p.push(k),p.push(B)}}function Wit(t,u,s){const d=t.getFlags();if(d&2885600)return d&32?11:d&384?12:d&524288?16:d&1536?u&4||u&1&&cRt(t)?14:void 0:d&2097152?Wit(s.getAliasedSymbol(t),u,s):u&2?d&64?13:d&262144?15:void 0:void 0}function cRt(t){return Oe(t.declarations,u=>_c(u)&&oD(u)===1)}function dRt(t){switch(t){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function Git(t){H.assert(t.spans.length%3===0);const u=t.spans,s=[];for(let d=0;d])*)(\/>)?)?/im,ve=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Se=u.text.substr(ae,Ce),Ne=ne.exec(Se);if(!Ne||!Ne[3]||!(Ne[3]in CO))return!1;let pe=ae;T(pe,Ne[1].length),pe+=Ne[1].length,b(pe,Ne[2].length,10),pe+=Ne[2].length,b(pe,Ne[3].length,21),pe+=Ne[3].length;const fe=Ne[4];let xe=pe;for(;;){const Ge=ve.exec(fe);if(!Ge)break;const Ae=pe+Ge.index+Ge[1].length;Ae>xe&&(T(xe,Ae-xe),xe=Ae),b(xe,Ge[2].length,22),xe+=Ge[2].length,Ge[3].length&&(T(xe,Ge[3].length),xe+=Ge[3].length),b(xe,Ge[4].length,5),xe+=Ge[4].length,Ge[5].length&&(T(xe,Ge[5].length),xe+=Ge[5].length),b(xe,Ge[6].length,24),xe+=Ge[6].length}pe+=Ne[4].length,pe>xe&&T(xe,pe-xe),Ne[5]&&(b(pe,Ne[5].length,10),pe+=Ne[5].length);const Be=ae+Ce;return pe=0),ve>0){const Se=Ce||se(ae.kind,ae);Se&&b(ne,ve,Se)}return!0}function oe(ae){switch(ae.parent&&ae.parent.kind){case 286:if(ae.parent.tagName===ae)return 19;break;case 287:if(ae.parent.tagName===ae)return 20;break;case 285:if(ae.parent.tagName===ae)return 21;break;case 291:if(ae.parent.name===ae)return 22;break}}function se(ae,Ce){if(uf(ae))return 3;if((ae===30||ae===32)&&Ce&&rSe(Ce.parent))return 10;if(W0e(ae)){if(Ce){const ne=Ce.parent;if(ae===64&&(ne.kind===260||ne.kind===172||ne.kind===169||ne.kind===291)||ne.kind===226||ne.kind===224||ne.kind===225||ne.kind===227)return 5}return 10}else{if(ae===9)return 4;if(ae===10)return 25;if(ae===11)return Ce&&Ce.parent.kind===291?24:6;if(ae===14)return 6;if(Bx(ae))return 6;if(ae===12)return 23;if(ae===80){if(Ce){switch(Ce.parent.kind){case 263:return Ce.parent.name===Ce?11:void 0;case 168:return Ce.parent.name===Ce?15:void 0;case 264:return Ce.parent.name===Ce?13:void 0;case 266:return Ce.parent.name===Ce?12:void 0;case 267:return Ce.parent.name===Ce?14:void 0;case 169:return Ce.parent.name===Ce?N2(Ce)?3:17:void 0}if(q3(Ce.parent))return 3}return 2}}}function ge(ae){if(ae&&RO(d,f,ae.pos,ae.getFullWidth())){Kit(t,ae.kind);for(const Ce of ae.getChildren(u))Y(Ce)||ge(Ce)}}}var Jit,$it=o({"src/services/classifier.ts"(){rr(),Jit=noe([80,11,9,10,14,110,46,47,22,24,20,112,97],t=>t,()=>!0)}}),JX,hRt=o({"src/services/documentHighlights.ts"(){rr(),(t=>{function u(pe,fe,xe,Be,Ge){const Ae=af(xe,Be);if(Ae.parent&&(aE(Ae.parent)&&Ae.parent.tagName===Ae||H2(Ae.parent))){const{openingElement:De,closingElement:Ke}=Ae.parent.parent,Je=[De,Ke].map(({tagName:ft})=>s(ft,xe));return[{fileName:xe.fileName,highlightSpans:Je}]}return d(Be,Ae,pe,fe,Ge)||f(Ae,xe)}t.getDocumentHighlights=u;function s(pe,fe){return{fileName:fe.fileName,textSpan:of(pe,fe),kind:"none"}}function d(pe,fe,xe,Be,Ge){const Ae=new Set(Ge.map(ft=>ft.fileName)),De=Z0.getReferenceEntriesForNode(pe,fe,xe,Ge,Be,void 0,Ae);if(!De)return;const Ke=mO(De.map(Z0.toHighlightSpan),ft=>ft.fileName,ft=>ft.span),Je=L1(xe.useCaseSensitiveFileNames());return ga(eo(Ke.entries(),([ft,Ye])=>{if(!Ae.has(ft)){if(!xe.redirectTargetsMap.has(J0(ft,xe.getCurrentDirectory(),Je)))return;const Ve=xe.getSourceFile(ft);ft=Le(Ge,Gt=>!!Gt.redirectInfo&&Gt.redirectInfo.redirectTarget===Ve).fileName,H.assert(Ae.has(ft))}return{fileName:ft,highlightSpans:Ye}}))}function f(pe,fe){const xe=p(pe,fe);return xe&&[{fileName:fe.fileName,highlightSpans:xe}]}function p(pe,fe){switch(pe.kind){case 101:case 93:return xk(pe.parent)?ve(pe.parent,fe):void 0;case 107:return Be(pe.parent,Op,ge);case 111:return Be(pe.parent,bce,se);case 113:case 85:case 98:const Ae=pe.kind===85?pe.parent.parent:pe.parent;return Be(Ae,Ck,oe);case 109:return Be(pe.parent,BV,Y);case 84:case 90:return TV(pe.parent)||BB(pe.parent)?Be(pe.parent.parent.parent,BV,Y):void 0;case 83:case 88:return Be(pe.parent,ON,K);case 99:case 117:case 92:return Be(pe.parent,De=>Tx(De,!0),J);case 137:return xe(hc,[137]);case 139:case 153:return xe(wx,[139,153]);case 135:return Be(pe.parent,Gx,ae);case 134:return Ge(ae(pe));case 127:return Ge(Ce(pe));case 103:return;default:return XD(pe.kind)&&(Q1(pe.parent)||Jl(pe.parent))?Ge(M(pe.kind,pe.parent)):void 0}function xe(Ae,De){return Be(pe.parent,Ae,Ke=>{var Je;return qi((Je=ur(Ke,Zg))==null?void 0:Je.symbol.declarations,ft=>Ae(ft)?Le(ft.getChildren(fe),Ye=>kt(De,Ye.kind)):void 0)})}function Be(Ae,De,Ke){return De(Ae)?Ge(Ke(Ae,fe)):void 0}function Ge(Ae){return Ae&&Ae.map(De=>s(De,fe))}}function E(pe){return bce(pe)?[pe]:Ck(pe)?Hi(pe.catchClause?E(pe.catchClause):pe.tryBlock&&E(pe.tryBlock),pe.finallyBlock&&E(pe.finallyBlock)):Co(pe)?void 0:B(pe,E)}function v(pe){let fe=pe;for(;fe.parent;){const xe=fe.parent;if(k2(xe)||xe.kind===312)return xe;if(Ck(xe)&&xe.tryBlock===fe&&xe.catchClause)return fe;fe=xe}}function b(pe){return ON(pe)?[pe]:Co(pe)?void 0:B(pe,b)}function B(pe,fe){const xe=[];return pe.forEachChild(Be=>{const Ge=fe(Be);Ge!==void 0&&xe.push(...YA(Ge))}),xe}function k(pe,fe){const xe=T(fe);return!!xe&&xe===pe}function T(pe){return Tn(pe,fe=>{switch(fe.kind){case 255:if(pe.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!pe.label||Ne(fe,pe.label.escapedText);default:return Co(fe)&&"quit"}})}function M(pe,fe){return qi(z(fe,_7(pe)),xe=>ow(xe,pe))}function z(pe,fe){const xe=pe.parent;switch(xe.kind){case 268:case 312:case 241:case 296:case 297:return fe&64&&Wc(pe)?[...pe.members,pe]:xe.statements;case 176:case 174:case 262:return[...xe.parameters,...mr(xe.parent)?xe.parent.members:[]];case 263:case 231:case 264:case 187:const Be=xe.members;if(fe&15){const Ge=Le(xe.members,hc);if(Ge)return[...Be,...Ge.parameters]}else if(fe&64)return[...Be,xe];return Be;case 210:return;default:H.assertNever(xe,"Invalid container kind.")}}function j(pe,fe,...xe){return fe&&kt(xe,fe.kind)?(pe.push(fe),!0):!1}function J(pe){const fe=[];if(j(fe,pe.getFirstToken(),99,117,92)&&pe.kind===246){const xe=pe.getChildren();for(let Be=xe.length-1;Be>=0&&!j(fe,xe[Be],117);Be--);}return L(b(pe.statement),xe=>{k(pe,xe)&&j(fe,xe.getFirstToken(),83,88)}),fe}function K(pe){const fe=T(pe);if(fe)switch(fe.kind){case 248:case 249:case 250:case 246:case 247:return J(fe);case 255:return Y(fe)}}function Y(pe){const fe=[];return j(fe,pe.getFirstToken(),109),L(pe.caseBlock.clauses,xe=>{j(fe,xe.getFirstToken(),84,90),L(b(xe),Be=>{k(pe,Be)&&j(fe,Be.getFirstToken(),83)})}),fe}function oe(pe,fe){const xe=[];if(j(xe,pe.getFirstToken(),113),pe.catchClause&&j(xe,pe.catchClause.getFirstToken(),85),pe.finallyBlock){const Be=a0(pe,98,fe);j(xe,Be,98)}return xe}function se(pe,fe){const xe=v(pe);if(!xe)return;const Be=[];return L(E(xe),Ge=>{Be.push(a0(Ge,111,fe))}),k2(xe)&&y2(xe,Ge=>{Be.push(a0(Ge,107,fe))}),Be}function ge(pe,fe){const xe=Nm(pe);if(!xe)return;const Be=[];return y2(Po(xe.body,po),Ge=>{Be.push(a0(Ge,107,fe))}),L(E(xe.body),Ge=>{Be.push(a0(Ge,111,fe))}),Be}function ae(pe){const fe=Nm(pe);if(!fe)return;const xe=[];return fe.modifiers&&fe.modifiers.forEach(Be=>{j(xe,Be,134)}),ao(fe,Be=>{ne(Be,Ge=>{Gx(Ge)&&j(xe,Ge.getFirstToken(),135)})}),xe}function Ce(pe){const fe=Nm(pe);if(!fe)return;const xe=[];return ao(fe,Be=>{ne(Be,Ge=>{cY(Ge)&&j(xe,Ge.getFirstToken(),127)})}),xe}function ne(pe,fe){fe(pe),!Co(pe)&&!mr(pe)&&!xh(pe)&&!_c(pe)&&!jp(pe)&&!Qr(pe)&&ao(pe,xe=>ne(xe,fe))}function ve(pe,fe){const xe=Se(pe,fe),Be=[];for(let Ge=0;Ge=Ae.end;Je--)if(!qg(fe.text.charCodeAt(Je))){Ke=!1;break}if(Ke){Be.push({fileName:fe.fileName,textSpan:Vc(Ae.getStart(),De.end),kind:"reference"}),Ge++;continue}}Be.push(s(xe[Ge],fe))}return Be}function Se(pe,fe){const xe=[];for(;xk(pe.parent)&&pe.parent.elseStatement===pe;)pe=pe.parent;for(;;){const Be=pe.getChildren(fe);j(xe,Be[0],101);for(let Ge=Be.length-1;Ge>=0&&!j(xe,Be[Ge],93);Ge--);if(!pe.elseStatement||!xk(pe.elseStatement))break;pe=pe.elseStatement}return xe}function Ne(pe,fe){return!!Tn(pe.parent,xe=>V2(xe)?xe.label.escapedText===fe:"quit")}})(JX||(JX={}))}});function iK(t){return!!t.sourceFile}function OSe(t,u,s){return Vfe(t,u,s)}function Vfe(t,u="",s,d){const f=new Map,p=L1(!!t);function E(){const K=ga(f.keys()).filter(Y=>Y&&Y.charAt(0)==="_").map(Y=>{const oe=f.get(Y),se=[];return oe.forEach((ge,ae)=>{iK(ge)?se.push({name:ae,scriptKind:ge.sourceFile.scriptKind,refCount:ge.languageServiceRefCount}):ge.forEach((Ce,ne)=>se.push({name:ae,scriptKind:ne,refCount:Ce.languageServiceRefCount}))}),se.sort((ge,ae)=>ae.refCount-ge.refCount),{bucket:Y,sourceFiles:se}});return JSON.stringify(K,void 0,2)}function v(K){return typeof K.getCompilationSettings=="function"?K.getCompilationSettings():K}function b(K,Y,oe,se,ge,ae){const Ce=J0(K,u,p),ne=Hfe(v(Y));return B(K,Ce,Y,ne,oe,se,ge,ae)}function B(K,Y,oe,se,ge,ae,Ce,ne){return z(K,Y,oe,se,ge,ae,!0,Ce,ne)}function k(K,Y,oe,se,ge,ae){const Ce=J0(K,u,p),ne=Hfe(v(Y));return T(K,Ce,Y,ne,oe,se,ge,ae)}function T(K,Y,oe,se,ge,ae,Ce,ne){return z(K,Y,v(oe),se,ge,ae,!1,Ce,ne)}function M(K,Y){const oe=iK(K)?K:K.get(H.checkDefined(Y,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return H.assert(Y===void 0||!oe||oe.sourceFile.scriptKind===Y,`Script kind should match provided ScriptKind:${Y} and sourceFile.scriptKind: ${oe==null?void 0:oe.sourceFile.scriptKind}, !entry: ${!oe}`),oe}function z(K,Y,oe,se,ge,ae,Ce,ne,ve){var Se,Ne,pe,fe;ne=oZ(K,ne);const xe=v(oe),Be=oe===xe?void 0:oe,Ge=ne===6?100:Os(xe),Ae=typeof ve=="object"?ve:{languageVersion:Ge,impliedNodeFormat:Be&&bH(Y,(fe=(pe=(Ne=(Se=Be.getCompilerHost)==null?void 0:Se.call(Be))==null?void 0:Ne.getModuleResolutionCache)==null?void 0:pe.call(Ne))==null?void 0:fe.getPackageJsonInfoCache(),Be,xe),setExternalModuleIndicator:Qj(xe),jsDocParsingMode:s};Ae.languageVersion=Ge,H.assertEqual(s,Ae.jsDocParsingMode);const De=f.size,Ke=jSe(se,Ae.impliedNodeFormat),Je=W0(f,Ke,()=>new Map);if(Gn){f.size>De&&Gn.instant(Gn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:xe.configFilePath,key:Ke});const We=!e1(Y)&&h1(f,(Gt,Yt)=>Yt!==Ke&&Gt.has(Y)&&Yt);We&&Gn.instant(Gn.Phase.Session,"documentRegistryBucketOverlap",{path:Y,key1:We,key2:Ke})}const ft=Je.get(Y);let Ye=ft&&M(ft,ne);if(!Ye&&d){const We=d.getDocument(Ke,Y);We&&(H.assert(Ce),Ye={sourceFile:We,languageServiceRefCount:0},Ve())}if(Ye)Ye.sourceFile.version!==ae&&(Ye.sourceFile=wme(Ye.sourceFile,ge,ae,ge.getChangeRange(Ye.sourceFile.scriptSnapshot)),d&&d.setDocument(Ke,Y,Ye.sourceFile)),Ce&&Ye.languageServiceRefCount++;else{const We=Eee(K,ge,Ae,ae,!1,ne);d&&d.setDocument(Ke,Y,We),Ye={sourceFile:We,languageServiceRefCount:1},Ve()}return H.assert(Ye.languageServiceRefCount!==0),Ye.sourceFile;function Ve(){if(!ft)Je.set(Y,Ye);else if(iK(ft)){const We=new Map;We.set(ft.sourceFile.scriptKind,ft),We.set(ne,Ye),Je.set(Y,We)}else ft.set(ne,Ye)}}function j(K,Y,oe,se){const ge=J0(K,u,p),ae=Hfe(Y);return J(ge,ae,oe,se)}function J(K,Y,oe,se){const ge=H.checkDefined(f.get(jSe(Y,se))),ae=ge.get(K),Ce=M(ae,oe);Ce.languageServiceRefCount--,H.assert(Ce.languageServiceRefCount>=0),Ce.languageServiceRefCount===0&&(iK(ae)?ge.delete(K):(ae.delete(oe),ae.size===1&&ge.set(K,ie(ae.values(),il))))}return{acquireDocument:b,acquireDocumentWithKey:B,updateDocument:k,updateDocumentWithKey:T,releaseDocument:j,releaseDocumentWithKey:J,getKeyForCompilationSettings:Hfe,getDocumentRegistryBucketKeyWithMode:jSe,reportStats:E,getBuckets:()=>f}}function Hfe(t){return vde(t,PY)}function jSe(t,u){return u?`${t}|${u}`:t}var fRt=o({"src/services/documentRegistry.ts"(){rr()}});function VSe(t,u,s,d,f,p,E){const v=Hj(d),b=L1(v),B=Kfe(u,s,b,E),k=Kfe(s,u,b,E);return iu.ChangeTracker.with({host:d,formatContext:f,preferences:p},T=>{pRt(t,T,B,u,s,d.getCurrentDirectory(),v),gRt(t,T,B,k,d,b)})}function Kfe(t,u,s,d){const f=s(t);return E=>{const v=d&&d.tryGetSourcePosition({fileName:E,pos:0}),b=p(v?v.fileName:E);return v?b===void 0?void 0:mRt(v.fileName,b,E,s):b};function p(E){if(s(E)===f)return u;const v=yle(E,f,s);return v===void 0?void 0:u+"/"+v}}function mRt(t,u,s,d){const f=SO(t,u,d);return HSe(lr(s),f)}function pRt(t,u,s,d,f,p,E){const{configFile:v}=t.getCompilerOptions();if(!v)return;const b=lr(v.fileName),B=ZN(v);if(!B)return;KSe(B,(z,j)=>{switch(j){case"files":case"include":case"exclude":{if(k(z)||j!=="include"||!Dh(z.initializer))return;const K=qi(z.initializer.elements,oe=>us(oe)?oe.text:void 0);if(K.length===0)return;const Y=aZ(b,[],K,E,p);jx(H.checkDefined(Y.includeFilePattern),E).test(d)&&!jx(H.checkDefined(Y.includeFilePattern),E).test(f)&&u.insertNodeAfter(v,Cr(z.initializer.elements),q.createStringLiteral(M(f)));return}case"compilerOptions":KSe(z.initializer,(J,K)=>{const Y=ede(K);H.assert((Y==null?void 0:Y.type)!=="listOrElement"),Y&&(Y.isFilePath||Y.type==="list"&&Y.element.isFilePath)?k(J):K==="paths"&&KSe(J.initializer,oe=>{if(Dh(oe.initializer))for(const se of oe.initializer.elements)T(se)})});return}});function k(z){const j=Dh(z.initializer)?z.initializer.elements:[z.initializer];let J=!1;for(const K of j)J=T(K)||J;return J}function T(z){if(!us(z))return!1;const j=HSe(b,z.text),J=s(j);return J!==void 0?(u.replaceRangeWithText(v,qit(z,v),M(J)),!0):!1}function M(z){return JE(b,z,!E)}}function gRt(t,u,s,d,f,p){const E=t.getSourceFiles();for(const v of E){const b=s(v.fileName),B=b??v.fileName,k=lr(B),T=d(v.fileName),M=T||v.fileName,z=lr(M),j=b!==void 0||T!==void 0;DRt(v,u,J=>{if(!om(J))return;const K=HSe(z,J),Y=s(K);return Y===void 0?void 0:h2(JE(k,Y,p))},J=>{const K=t.getTypeChecker().getSymbolAtLocation(J);if(K!=null&&K.declarations&&K.declarations.some(oe=>N1(oe)))return;const Y=T!==void 0?Uit(J,WB(J.text,M,t.getCompilerOptions(),f),s,E):_Rt(K,J,v,t,f,s);return Y!==void 0&&(Y.updated||j&&om(J.text))?Z2.updateModuleSpecifier(t.getCompilerOptions(),v,p(B),Y.newFileName,Ik(t,f),J.text):void 0})}}function ERt(t,u){return $o(cr(t,u))}function HSe(t,u){return h2(ERt(t,u))}function _Rt(t,u,s,d,f,p){if(t){const E=Le(t.declarations,la).fileName,v=p(E);return v===void 0?{newFileName:E,updated:!1}:{newFileName:v,updated:!0}}else{const E=xg(s,u),v=f.resolveModuleNameLiterals||!f.resolveModuleNames?d.getResolvedModule(s,u.text,E):f.getResolvedModuleWithFailedLookupLocationsFromCache&&f.getResolvedModuleWithFailedLookupLocationsFromCache(u.text,s.fileName,E);return Uit(u,v,p,d.getSourceFiles())}}function Uit(t,u,s,d){if(!u)return;if(u.resolvedModule){const b=v(u.resolvedModule.resolvedFileName);if(b)return b}const f=L(u.failedLookupLocations,p)||om(t.text)&&L(u.failedLookupLocations,E);if(f)return f;return u.resolvedModule&&{newFileName:u.resolvedModule.resolvedFileName,updated:!1};function p(b){const B=s(b);return B&&Le(d,k=>k.fileName===B)?E(b):void 0}function E(b){return sc(b,"/package.json")?void 0:v(b)}function v(b){const B=s(b);return B&&{newFileName:B,updated:!0}}}function DRt(t,u,s,d){for(const f of t.referencedFiles||_t){const p=s(f.fileName);p!==void 0&&p!==t.text.slice(f.pos,f.end)&&u.replaceRangeWithText(t,f,p)}for(const f of t.imports){const p=d(f);p!==void 0&&p!==f.text&&u.replaceRangeWithText(t,qit(f,t),p)}}function qit(t,u){return s4(t.getStart(u)+1,t.end-1)}function KSe(t,u){if(ys(t))for(const s of t.properties)Jc(s)&&us(s.name)&&u(s,s.name.text)}var xRt=o({"src/services/getEditsForFileRename.ts"(){rr()}});function WM(t,u){return{kind:t,isCaseSensitive:u}}function WSe(t){const u=new Map,s=t.trim().split(".").map(d=>yRt(d.trim()));if(s.length===1&&s[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>WM(2,!0),getFullMatch:()=>WM(2,!0),patternContainsDots:!1};if(!s.some(d=>!d.subWordTextChunks.length))return{getFullMatch:(d,f)=>vRt(d,f,s,u),getMatchForLastSegmentOfPattern:d=>GSe(d,Cr(s),u),patternContainsDots:s.length>1}}function vRt(t,u,s,d){if(!GSe(u,Cr(s),d)||s.length-1>t.length)return;let p;for(let E=s.length-2,v=t.length-1;E>=0;E-=1,v-=1)p=Qit(p,GSe(t[v],s[E],d));return p}function Zit(t,u){let s=u.get(t);return s||u.set(t,s=YSe(t)),s}function Yit(t,u,s){const d=kRt(t,u.textLowerCase);if(d===0)return WM(u.text.length===t.length?0:1,Pa(t,u.text));if(u.isLowerCase){if(d===-1)return;const f=Zit(t,s);for(const p of f)if(JSe(t,p,u.text,!0))return WM(2,JSe(t,p,u.text,!1));if(u.text.length0)return WM(2,!0);if(u.characterSpans.length>0){const f=Zit(t,s),p=Xit(t,f,u,!1)?!0:Xit(t,f,u,!0)?!1:void 0;if(p!==void 0)return WM(3,p)}}}function GSe(t,u,s){if(Wfe(u.totalTextChunk.text,p=>p!==32&&p!==42)){const p=Yit(t,u.totalTextChunk,s);if(p)return p}const d=u.subWordTextChunks;let f;for(const p of d)f=Qit(f,Yit(t,p,s));return f}function Qit(t,u){return ooe([t,u],CRt)}function CRt(t,u){return t===void 0?1:u===void 0?-1:nl(t.kind,u.kind)||d2(!t.isCaseSensitive,!u.isCaseSensitive)}function JSe(t,u,s,d,f={start:0,length:s.length}){return f.length<=u.length&&nnt(0,f.length,p=>bRt(s.charCodeAt(f.start+p),t.charCodeAt(u.start+p),d))}function bRt(t,u,s){return s?$Se(t)===$Se(u):t===u}function Xit(t,u,s,d){const f=s.characterSpans;let p=0,E=0;for(;;){if(E===f.length)return!0;if(p===u.length)return!1;let v=u[p],b=!1;for(;E=65&&t<=90)return!0;if(t<127||!kU(t,99))return!1;const u=String.fromCharCode(t);return u===u.toUpperCase()}function ent(t){if(t>=97&&t<=122)return!0;if(t<127||!kU(t,99))return!1;const u=String.fromCharCode(t);return u===u.toLowerCase()}function kRt(t,u){const s=t.length-u.length;for(let d=0;d<=s;d++)if(Wfe(u,(f,p)=>$Se(t.charCodeAt(p+d))===f))return d;return-1}function $Se(t){return t>=65&&t<=90?97+(t-65):t<127?t:String.fromCharCode(t).toLowerCase().charCodeAt(0)}function USe(t){return t>=48&&t<=57}function FRt(t){return dw(t)||ent(t)||USe(t)||t===95||t===36}function ARt(t){const u=[];let s=0,d=0;for(let f=0;f0&&(u.push(qSe(t.substr(s,d))),d=0)}return d>0&&u.push(qSe(t.substr(s,d))),u}function qSe(t){const u=t.toLowerCase();return{text:t,textLowerCase:u,isLowerCase:t===u,characterSpans:ZSe(t)}}function ZSe(t){return tnt(t,!1)}function YSe(t){return tnt(t,!0)}function tnt(t,u){const s=[];let d=0;for(let f=1;fQSe(d)&&d!==95,u,s)}function SRt(t,u,s){return u!==s&&u+1u(t.charCodeAt(f),f))}var $X,wRt=o({"src/services/patternMatcher.ts"(){rr(),$X=(t=>(t[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",t))($X||{})}});function unt(t,u=!0,s=!1){const d={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},f=[];let p,E,v,b=0,B=!1;function k(){return E=v,v=nh.scan(),v===19?b++:v===20&&b--,v}function T(){const ae=nh.getTokenValue(),Ce=nh.getTokenStart();return{fileName:ae,pos:Ce,end:Ce+ae.length}}function M(){p||(p=[]),p.push({ref:T(),depth:b})}function z(){f.push(T()),j()}function j(){b===0&&(B=!0)}function J(){let ae=nh.getToken();return ae===138?(ae=k(),ae===144&&(ae=k(),ae===11&&M()),!0):!1}function K(){if(E===25)return!1;let ae=nh.getToken();if(ae===102){if(ae=k(),ae===21){if(ae=k(),ae===11||ae===15)return z(),!0}else{if(ae===11)return z(),!0;if(ae===156&&nh.lookAhead(()=>{const ne=nh.scan();return ne!==161&&(ne===42||ne===19||ne===80||uf(ne))})&&(ae=k()),ae===80||uf(ae))if(ae=k(),ae===161){if(ae=k(),ae===11)return z(),!0}else if(ae===64){if(oe(!0))return!0}else if(ae===28)ae=k();else return!0;if(ae===19){for(ae=k();ae!==20&&ae!==1;)ae=k();ae===20&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))}else ae===42&&(ae=k(),ae===130&&(ae=k(),(ae===80||uf(ae))&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))))}return!0}return!1}function Y(){let ae=nh.getToken();if(ae===95){if(j(),ae=k(),ae===156&&nh.lookAhead(()=>{const ne=nh.scan();return ne===42||ne===19})&&(ae=k()),ae===19){for(ae=k();ae!==20&&ae!==1;)ae=k();ae===20&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))}else if(ae===42)ae=k(),ae===161&&(ae=k(),ae===11&&z());else if(ae===102&&(ae=k(),ae===156&&nh.lookAhead(()=>{const ne=nh.scan();return ne===80||uf(ne)})&&(ae=k()),(ae===80||uf(ae))&&(ae=k(),ae===64&&oe(!0))))return!0;return!0}return!1}function oe(ae,Ce=!1){let ne=ae?k():nh.getToken();return ne===149?(ne=k(),ne===21&&(ne=k(),(ne===11||Ce&&ne===15)&&z()),!0):!1}function se(){let ae=nh.getToken();if(ae===80&&nh.getTokenValue()==="define"){if(ae=k(),ae!==21)return!0;if(ae=k(),ae===11||ae===15)if(ae=k(),ae===28)ae=k();else return!0;if(ae!==23)return!0;for(ae=k();ae!==24&&ae!==1;)(ae===11||ae===15)&&z(),ae=k();return!0}return!1}function ge(){for(nh.setText(t),k();nh.getToken()!==1;){if(nh.getToken()===16){const ae=[nh.getToken()];e:for(;S(ae);){const Ce=nh.scan();switch(Ce){case 1:break e;case 102:K();break;case 16:ae.push(Ce);break;case 19:S(ae)&&ae.push(Ce);break;case 20:S(ae)&&(qu(ae)===16?nh.reScanTemplateToken(!1)===18&&ae.pop():ae.pop());break}}k()}J()||K()||Y()||s&&(oe(!1,!0)||se())||k()}nh.setText(void 0)}if(u&&ge(),Uce(d,t),qce(d,Is),B){if(p)for(const ae of p)f.push(ae.ref);return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:f,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:void 0}}else{let ae;if(p)for(const Ce of p)Ce.depth===0?(ae||(ae=[]),ae.push(Ce.ref.fileName)):f.push(Ce.ref);return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:f,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:ae}}}var TRt=o({"src/services/preProcess.ts"(){rr()}});function XSe(t){const u=L1(t.useCaseSensitiveFileNames()),s=t.getCurrentDirectory(),d=new Map,f=new Map;return{tryGetSourcePosition:v,tryGetGeneratedPosition:b,toLineColumnOffset:M,clearCache:z};function p(j){return J0(j,s,u)}function E(j,J){const K=p(j),Y=f.get(K);if(Y)return Y;let oe;if(t.getDocumentPositionMapper)oe=t.getDocumentPositionMapper(j,J);else if(t.readFile){const se=T(j);oe=se&&Gfe({getSourceFileLike:T,getCanonicalFileName:u,log:ge=>t.log(ge)},j,Kde(se.text,$3(se)),ge=>!t.fileExists||t.fileExists(ge)?t.readFile(ge):void 0)}return f.set(K,oe||rQ),oe||rQ}function v(j){if(!e1(j.fileName)||!B(j.fileName))return;const K=E(j.fileName).getSourcePosition(j);return!K||K===j?void 0:v(K)||K}function b(j){if(e1(j.fileName))return;const J=B(j.fileName);if(!J)return;const K=t.getProgram();if(K.isSourceOfProjectReferenceRedirect(J.fileName))return;const Y=K.getCompilerOptions(),oe=y0(Y),se=oe?_h(oe)+".d.ts":Mq(j.fileName,K.getCompilerOptions(),s,K.getCommonSourceDirectory(),u);if(se===void 0)return;const ge=E(se,j.fileName).getGeneratedPosition(j);return ge===j?void 0:ge}function B(j){const J=t.getProgram();if(!J)return;const K=p(j),Y=J.getSourceFileByPath(K);return Y&&Y.resolvedPath===K?Y:void 0}function k(j){const J=p(j),K=d.get(J);if(K!==void 0)return K||void 0;if(!t.readFile||t.fileExists&&!t.fileExists(J)){d.set(J,!1);return}const Y=t.readFile(J),oe=Y?LRt(Y):!1;return d.set(J,oe),oe||void 0}function T(j){return t.getSourceFileLike?t.getSourceFileLike(j):B(j)||k(j)}function M(j,J){return T(j).getLineAndCharacterOfPosition(J)}function z(){d.clear(),f.clear()}}function Gfe(t,u,s,d){let f=VAe(s);if(f){const v=ant.exec(f);if(v){if(v[1]){const b=v[1];return rnt(t,jye(c1,b),u)}f=void 0}}const p=[];f&&p.push(f),p.push(u+".map");const E=f&&$a(f,lr(u));for(const v of p){const b=$a(v,lr(u)),B=d(b,E);if(Ja(B))return rnt(t,B,b);if(B!==void 0)return B||void 0}}function rnt(t,u,s){const d=Wde(u);if(!(!d||!d.sources||!d.file||!d.mappings)&&!(d.sourcesContent&&d.sourcesContent.some(Ja)))return WAe(t,d,s)}function LRt(t,u){return{text:t,lineMap:u,getLineAndCharacterOfPosition(s){return k8($3(this),s)}}}var ant,NRt=o({"src/services/sourcemaps.ts"(){rr(),ant=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function Jfe(t,u,s){var d;u.getSemanticDiagnostics(t,s);const f=[],p=u.getTypeChecker();!(t.impliedNodeFormat===1||jc(t.fileName,[".cts",".cjs"]))&&t.commonJsModuleIndicator&&(cSe(u)||ufe(u.getCompilerOptions()))&&PRt(t)&&f.push(Su(RRt(t.commonJsModuleIndicator),F.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const v=gh(t);if(Zfe.clear(),b(t),C7(u.getCompilerOptions()))for(const B of t.imports){const k=tP(B),T=MRt(k);if(!T)continue;const M=(d=u.getResolvedModule(t,B.text,xg(t,B)))==null?void 0:d.resolvedModule,z=M&&u.getSourceFile(M.resolvedFileName);z&&z.externalModuleIndicator&&z.externalModuleIndicator!==!0&&tc(z.externalModuleIndicator)&&z.externalModuleIndicator.isExportEquals&&f.push(Su(T,F.Import_may_be_converted_to_a_default_import))}return yn(f,t.bindSuggestionDiagnostics),yn(f,u.getSuggestionDiagnostics(t,s)),f.sort((B,k)=>B.start-k.start);function b(B){if(v)jRt(B,p)&&f.push(Su(na(B.parent)?B.parent.name:B,F.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Jl(B)&&B.parent===t&&B.declarationList.flags&2&&B.declarationList.declarations.length===1){const T=B.declarationList.declarations[0].initializer;T&&xf(T,!0)&&f.push(Su(T,F.require_call_may_be_converted_to_an_import))}const k=z1.getJSDocTypedefNodes(B);for(const T of k)f.push(Su(T,F.JSDoc_typedef_may_be_converted_to_TypeScript_type));z1.parameterShouldGetTypeFromJSDoc(B)&&f.push(Su(B.name||B,F.JSDoc_types_may_be_moved_to_TypeScript_types))}qfe(B)&&zRt(B,p,f),B.forEachChild(b)}}function PRt(t){return t.statements.some(u=>{switch(u.kind){case 243:return u.declarationList.declarations.some(s=>!!s.initializer&&xf(ont(s.initializer),!0));case 244:{const{expression:s}=u;if(!Xn(s))return xf(s,!0);const d=Xl(s);return d===1||d===2}default:return!1}})}function ont(t){return Iu(t)?ont(t.expression):t}function MRt(t){switch(t.kind){case 272:const{importClause:u,moduleSpecifier:s}=t;return u&&!u.name&&u.namedBindings&&u.namedBindings.kind===274&&us(s)?u.namedBindings.name:void 0;case 271:return t.name;default:return}}function zRt(t,u,s){IRt(t,u)&&!Zfe.has(dnt(t))&&s.push(Su(!t.name&&na(t.parent)&&at(t.parent.name)?t.parent.name:t,F.This_may_be_converted_to_an_async_function))}function IRt(t,u){return!aP(t)&&t.body&&po(t.body)&&ORt(t.body,u)&&$fe(t,u)}function $fe(t,u){const s=u.getSignatureFromDeclaration(t),d=s?u.getReturnTypeOfSignature(s):void 0;return!!d&&!!u.getPromisedTypeOfPromise(d)}function RRt(t){return Xn(t)?t.left:t}function ORt(t,u){return!!y2(t,s=>UX(s,u))}function UX(t,u){return Op(t)&&!!t.expression&&Ufe(t.expression,u)}function Ufe(t,u){if(!snt(t)||!lnt(t)||!t.arguments.every(d=>cnt(d,u)))return!1;let s=t.expression.expression;for(;snt(s)||Iu(s);)if(Mo(s)){if(!lnt(s)||!s.arguments.every(d=>cnt(d,u)))return!1;s=s.expression.expression}else s=s.expression;return!0}function snt(t){return Mo(t)&&(NH(t,"then")||NH(t,"catch")||NH(t,"finally"))}function lnt(t){const u=t.expression.name.text,s=u==="then"?2:u==="catch"||u==="finally"?1:0;return t.arguments.length>s?!1:t.arguments.lengthd.kind===106||at(d)&&d.text==="undefined")}function cnt(t,u){switch(t.kind){case 262:case 218:if(kd(t)&1)return!1;case 219:Zfe.set(dnt(t),!0);case 106:return!0;case 80:case 211:{const d=u.getSymbolAtLocation(t);return d?u.isUndefinedSymbol(d)||Oe(X1(d,u).declarations,f=>Co(f)||Nx(f)&&!!f.initializer&&Co(f.initializer)):!1}default:return!1}}function dnt(t){return`${t.pos.toString()}:${t.end.toString()}`}function jRt(t,u){var s,d,f,p;if(A0(t)){if(na(t.parent)&&((s=t.symbol.members)!=null&&s.size))return!0;const E=u.getSymbolOfExpando(t,!1);return!!(E&&((d=E.exports)!=null&&d.size||(f=E.members)!=null&&f.size))}return ed(t)?!!((p=t.symbol.members)!=null&&p.size):!1}function qfe(t){switch(t.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var Zfe,VRt=o({"src/services/suggestionDiagnostics.ts"(){rr(),Zfe=new Map}});function e8e(t,u){const s=[],d=u.compilerOptions?Yfe(u.compilerOptions,s):{},f=gee();for(const M in f)gu(f,M)&&d[M]===void 0&&(d[M]=f[M]);for(const M of gde)d.verbatimModuleSyntax&&fnt.has(M.name)||(d[M.name]=M.transpileOptionValue);d.suppressOutputPathCheck=!0,d.allowNonTsExtensions=!0;const p=a5(d),E={getSourceFile:M=>M===$o(v)?b:void 0,writeFile:(M,z)=>{Ml(M,".map")?(H.assertEqual(k,void 0,"Unexpected multiple source map outputs, file:",M),k=z):(H.assertEqual(B,void 0,"Unexpected multiple outputs, file:",M),B=z)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:M=>M,getCurrentDirectory:()=>"",getNewLine:()=>p,fileExists:M=>M===v,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},v=u.fileName||(u.compilerOptions&&u.compilerOptions.jsx?"module.tsx":"module.ts"),b=KV(v,t,{languageVersion:Os(d),impliedNodeFormat:bH(J0(v,"",E.getCanonicalFileName),void 0,E,d),setExternalModuleIndicator:Qj(d),jsDocParsingMode:u.jsDocParsingMode??0});u.moduleName&&(b.moduleName=u.moduleName),u.renamedDependencies&&(b.renamedDependencies=new Map(Object.entries(u.renamedDependencies)));let B,k;const T=SQ([v],d,E);return u.reportDiagnostics&&(yn(s,T.getSyntacticDiagnostics(b)),yn(s,T.getOptionsDiagnostics())),T.emit(void 0,void 0,void 0,void 0,u.transformers),B===void 0?H.fail("Output generation failed"):{outputText:B,diagnostics:s,sourceMapText:k}}function hnt(t,u,s,d,f){const p=e8e(t,{compilerOptions:u,fileName:s,reportDiagnostics:!!d,moduleName:f});return yn(d,p.diagnostics),p.outputText}function Yfe(t,u){t8e=t8e||ti(a3,s=>typeof s.type=="object"&&!h1(s.type,d=>typeof d!="number")),t=Qhe(t);for(const s of t8e){if(!gu(t,s.name))continue;const d=t[s.name];Ja(d)?t[s.name]=BY(s,d,u):h1(s.type,f=>f===d)||u.push(GFe(s))}return t}var fnt,t8e,HRt=o({"src/services/transpile.ts"(){rr(),fnt=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function mnt(t,u,s,d,f,p,E){const v=WSe(d);if(!v)return _t;const b=[],B=t.length===1?t[0]:void 0;for(const k of t)s.throwIfCancellationRequested(),!(p&&k.isDeclarationFile)&&(pnt(k,!!E,B)||k.getNamedDeclarations().forEach((T,M)=>{KRt(v,M,T,u,k.fileName,!!E,B,b)}));return b.sort($Rt),(f===void 0?b:b.slice(0,f)).map(URt)}function pnt(t,u,s){return t!==s&&u&&(XH(t.path)||t.hasNoDefaultLib)}function KRt(t,u,s,d,f,p,E,v){const b=t.getMatchForLastSegmentOfPattern(u);if(b){for(const B of s)if(WRt(B,d,p,E))if(t.patternContainsDots){const k=t.getFullMatch(JRt(B),u);k&&v.push({name:u,fileName:f,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:B})}else v.push({name:u,fileName:f,matchKind:b.kind,isCaseSensitive:b.isCaseSensitive,declaration:B})}}function WRt(t,u,s,d){var f;switch(t.kind){case 273:case 276:case 271:const p=u.getSymbolAtLocation(t.name),E=u.getAliasedSymbol(p);return p.escapedName!==E.escapedName&&!((f=E.declarations)!=null&&f.every(v=>pnt(v.getSourceFile(),s,d)));default:return!0}}function GRt(t,u){const s=Za(t);return!!s&&(gnt(s,u)||s.kind===167&&i8e(s.expression,u))}function i8e(t,u){return gnt(t,u)||Iu(t)&&(u.push(t.name.text),!0)&&i8e(t.expression,u)}function gnt(t,u){return Xg(t)&&(u.push(J4(t)),!0)}function JRt(t){const u=[],s=Za(t);if(s&&s.kind===167&&!i8e(s.expression,u))return _t;u.shift();let d=Mk(t);for(;d;){if(!GRt(d,u))return _t;d=Mk(d)}return u.reverse()}function $Rt(t,u){return nl(t.matchKind,u.matchKind)||pO(t.name,u.name)}function URt(t){const u=t.declaration,s=Mk(u),d=s&&Za(s);return{name:t.name,kind:tb(u),kindModifiers:NM(u),matchKind:$X[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:of(u),containerName:d?d.text:"",containerKind:d?tb(s):""}}var qRt=o({"src/services/navigateTo.ts"(){rr()}}),n8e={};h(n8e,{getNavigateToItems:()=>mnt});var Ent=o({"src/services/_namespaces/ts.NavigateTo.ts"(){qRt()}});function _nt(t,u){tme=u,nK=t;try{return Vt(eOt(Cnt(t)),tOt)}finally{xnt()}}function Dnt(t,u){tme=u,nK=t;try{return Tnt(Cnt(t))}finally{xnt()}}function xnt(){nK=void 0,tme=void 0,uK=[],_5=void 0,ime=[]}function qX(t){return GM(t.getText(nK))}function Qfe(t){return t.node.kind}function vnt(t,u){t.children?t.children.push(u):t.children=[u]}function Cnt(t){H.assert(!uK.length);const u={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};_5=u;for(const s of t.statements)r9(s);return $v(),H.assert(!_5&&!uK.length),u}function ub(t,u){vnt(_5,u8e(t,u))}function u8e(t,u){return{node:t,name:u||(Q1(t)||Wt(t)?Za(t):void 0),additionalNodes:void 0,parent:_5,children:void 0,indent:_5.indent+1}}function bnt(t){hw||(hw=new Map),hw.set(t,!0)}function ynt(t){for(let u=0;u0;d--){const f=s[d];rb(t,f)}return[s.length-1,s[0]]}function rb(t,u){const s=u8e(t,u);vnt(_5,s),uK.push(_5),h8e.push(hw),hw=void 0,_5=s}function $v(){_5.children&&(Xfe(_5.children,_5),o8e(_5.children)),_5=uK.pop(),hw=h8e.pop()}function Uv(t,u,s){rb(t,s),r9(u),$v()}function Fnt(t){t.initializer&&nOt(t.initializer)?(rb(t),ao(t.initializer,r9),$v()):Uv(t,t.initializer)}function r8e(t){const u=Za(t);if(u===void 0)return!1;if(Ps(u)){const s=u.expression;return ec(s)||Of(s)||Pm(s)}return!!u}function r9(t){if(tme.throwIfCancellationRequested(),!(!t||u7(t)))switch(t.kind){case 176:const u=t;Uv(u,u.body);for(const E of u.parameters)Mf(E,u)&&ub(E);break;case 174:case 177:case 178:case 173:r8e(t)&&Uv(t,t.body);break;case 172:r8e(t)&&Fnt(t);break;case 171:r8e(t)&&ub(t);break;case 273:const s=t;s.name&&ub(s.name);const{namedBindings:d}=s;if(d)if(d.kind===274)ub(d);else for(const E of d.elements)ub(E);break;case 304:Uv(t,t.name);break;case 305:const{expression:f}=t;at(f)?ub(t,f):ub(t);break;case 208:case 303:case 260:{const E=t;So(E.name)?r9(E.name):Fnt(E);break}case 262:const p=t.name;p&&at(p)&&bnt(p.text),Uv(t,t.body);break;case 219:case 218:Uv(t,t.body);break;case 266:rb(t);for(const E of t.members)iOt(E)||ub(E);$v();break;case 263:case 231:case 264:rb(t);for(const E of t.members)r9(E);$v();break;case 267:Uv(t,Nnt(t).body);break;case 277:{const E=t.expression,v=ys(E)||Mo(E)?E:q0(E)||A0(E)?E.body:void 0;v?(rb(t),r9(v),$v()):ub(t);break}case 281:case 271:case 181:case 179:case 180:case 265:ub(t);break;case 213:case 226:{const E=Xl(t);switch(E){case 1:case 2:Uv(t,t.right);return;case 6:case 3:{const v=t,b=v.left,B=E===3?b.expression:b;let k=0,T;at(B.expression)?(bnt(B.expression.text),T=B.expression):[k,T]=knt(v,B.expression),E===6?ys(v.right)&&v.right.properties.length>0&&(rb(v,T),ao(v.right,r9),$v()):A0(v.right)||q0(v.right)?Uv(t,v.right,T):(rb(v,T),Uv(t,v.right,b.name),$v()),ynt(k);return}case 7:case 9:{const v=t,b=E===7?v.arguments[0]:v.arguments[0].expression,B=v.arguments[1],[k,T]=knt(t,b);rb(t,T),rb(t,Pt(q.createIdentifier(B.text),B)),r9(t.arguments[2]),$v(),$v(),ynt(k);return}case 5:{const v=t,b=v.left,B=b.expression;if(at(B)&&Q3(b)!=="prototype"&&hw&&hw.has(B.text)){A0(v.right)||q0(v.right)?Uv(t,v.right,B):A2(b)&&(rb(v,B),Uv(v.left,v.right,bj(b)),$v());return}break}case 4:case 0:case 8:break;default:H.assertNever(E)}}default:lm(t)&&L(t.jsDoc,E=>{L(E.tags,v=>{G4(v)&&ub(v)})}),ao(t,r9)}}function Xfe(t,u){const s=new Map;Uu(t,(d,f)=>{const p=d.name||Za(d.node),E=p&&qX(p);if(!E)return!0;const v=s.get(E);if(!v)return s.set(E,d),!0;if(v instanceof Array){for(const b of v)if(Ant(b,d,f,u))return!1;return v.push(d),!0}else{const b=v;return Ant(b,d,f,u)?!1:(s.set(E,[b,d]),!0)}})}function ZRt(t,u,s,d){function f(v){return A0(v)||ed(v)||na(v)}const p=Xn(u.node)||Mo(u.node)?Xl(u.node):0,E=Xn(t.node)||Mo(t.node)?Xl(t.node):0;if(JM[p]&&JM[E]||f(t.node)&&JM[p]||f(u.node)&&JM[E]||Wc(t.node)&&a8e(t.node)&&JM[p]||Wc(u.node)&&JM[E]||Wc(t.node)&&a8e(t.node)&&f(u.node)||Wc(u.node)&&f(t.node)&&a8e(t.node)){let v=t.additionalNodes&&qu(t.additionalNodes)||t.node;if(!Wc(t.node)&&!Wc(u.node)||f(t.node)||f(u.node)){const B=f(t.node)?t.node:f(u.node)?u.node:void 0;if(B!==void 0){const k=Pt(q.createConstructorDeclaration(void 0,[],void 0),B),T=u8e(k);T.indent=t.indent+1,T.children=t.node===B?t.children:u.children,t.children=t.node===B?Hi([T],u.children||[u]):Hi(t.children||[{...t}],[T])}else(t.children||u.children)&&(t.children=Hi(t.children||[{...t}],u.children||[u]),t.children&&(Xfe(t.children,t),o8e(t.children)));v=t.node=Pt(q.createClassDeclaration(void 0,t.name||q.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=Hi(t.children,u.children),t.children&&Xfe(t.children,t);const b=u.node;return d.children[s-1].node.end===v.end?Pt(v,{pos:v.pos,end:b.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(Pt(q.createClassDeclaration(void 0,t.name||q.createIdentifier("__class__"),void 0,void 0,[]),u.node))),!0}return p!==0}function Ant(t,u,s,d){return ZRt(t,u,s,d)?!0:YRt(t.node,u.node,d)?(QRt(t,u),!0):!1}function YRt(t,u,s){if(t.kind!==u.kind||t.parent!==u.parent&&!(Snt(t,s)&&Snt(u,s)))return!1;switch(t.kind){case 172:case 174:case 177:case 178:return No(t)===No(u);case 267:return Bnt(t,u)&&c8e(t)===c8e(u);default:return!0}}function a8e(t){return!!(t.flags&16)}function Snt(t,u){const s=rE(t.parent)?t.parent.parent:t.parent;return s===u.node||kt(u.additionalNodes,s)}function Bnt(t,u){return!t.body||!u.body?t.body===u.body:t.body.kind===u.body.kind&&(t.body.kind!==267||Bnt(t.body,u.body))}function QRt(t,u){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(u.node),u.additionalNodes&&t.additionalNodes.push(...u.additionalNodes),t.children=Hi(t.children,u.children),t.children&&(Xfe(t.children,t),o8e(t.children))}function o8e(t){t.sort(XRt)}function XRt(t,u){return pO(wnt(t.node),wnt(u.node))||nl(Qfe(t),Qfe(u))}function wnt(t){if(t.kind===267)return Lnt(t);const u=Za(t);if(u&&Sc(u)){const s=sk(u);return s&&Yr(s)}switch(t.kind){case 218:case 219:case 231:return Mnt(t);default:return}}function s8e(t,u){if(t.kind===267)return GM(Lnt(t));if(u){const s=at(u)?u.text:U0(u)?`[${qX(u.argumentExpression)}]`:qX(u);if(s.length>0)return GM(s)}switch(t.kind){case 312:const s=t;return wc(s)?`"${Av(Ac(_h($o(s.fileName))))}"`:"";case 277:return tc(t)&&t.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Rx(t)&2048?"default":Mnt(t);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function eOt(t){const u=[];function s(f){if(d(f)&&(u.push(f),f.children))for(const p of f.children)s(p)}return s(t),u;function d(f){if(f.children)return!0;switch(Qfe(f)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return p(f);default:return!1}function p(E){if(!E.node.body)return!1;switch(Qfe(E.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function Tnt(t){return{text:s8e(t.node,t.name),kind:tb(t.node),kindModifiers:Pnt(t.node),spans:l8e(t),nameSpan:t.name&&d8e(t.name),childItems:Vt(t.children,Tnt)}}function tOt(t){return{text:s8e(t.node,t.name),kind:tb(t.node),kindModifiers:Pnt(t.node),spans:l8e(t),childItems:Vt(t.children,u)||ime,indent:t.indent,bolded:!1,grayed:!1};function u(s){return{text:s8e(s.node,s.name),kind:tb(s.node),kindModifiers:NM(s.node),spans:l8e(s),childItems:ime,indent:0,bolded:!1,grayed:!1}}}function l8e(t){const u=[d8e(t.node)];if(t.additionalNodes)for(const s of t.additionalNodes)u.push(d8e(s));return u}function Lnt(t){return N1(t)?Hc(t.name):c8e(t)}function c8e(t){const u=[J4(t.name)];for(;t.body&&t.body.kind===267;)t=t.body,u.push(J4(t.name));return u.join(".")}function Nnt(t){return t.body&&_c(t.body)?Nnt(t.body):t}function iOt(t){return!t.name||t.name.kind===167}function d8e(t){return t.kind===312?qx(t):of(t,nK)}function Pnt(t){return t.parent&&t.parent.kind===260&&(t=t.parent),NM(t)}function Mnt(t){const{parent:u}=t;if(t.name&&ij(t.name)>0)return GM(b0(t.name));if(na(u))return GM(b0(u.name));if(Xn(u)&&u.operatorToken.kind===64)return qX(u.left).replace(Int,"");if(Jc(u))return qX(u.name);if(Rx(t)&2048)return"default";if(mr(t))return"";if(Mo(u)){let s=znt(u.expression);if(s!==void 0){if(s=GM(s),s.length>eme)return`${s} callback`;const d=GM(qi(u.arguments,f=>t0(f)?f.getText(nK):void 0).join(", "));return`${s}(${d}) callback`}}return""}function znt(t){if(at(t))return t.text;if(Iu(t)){const u=znt(t.expression),s=t.name.text;return u===void 0?s:`${u}.${s}`}else return}function nOt(t){switch(t.kind){case 219:case 218:case 231:return!0;default:return!1}}function GM(t){return t=t.length>eme?t.substring(0,eme)+"...":t,t.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var Int,eme,tme,nK,uK,_5,h8e,hw,ime,JM,uOt=o({"src/services/navigationBar.ts"(){rr(),Int=/\s+/g,eme=150,uK=[],h8e=[],ime=[],JM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),f8e={};h(f8e,{getNavigationBarItems:()=>_nt,getNavigationTree:()=>Dnt});var Rnt=o({"src/services/_namespaces/ts.NavigationBar.ts"(){uOt()}});function s3(t,u){nme.set(t,u)}function rOt(t,u){return ga(pa(nme.values(),s=>{var d;return t.cancellationToken&&t.cancellationToken.isCancellationRequested()||!((d=s.kinds)!=null&&d.some(f=>qv(f,t.kind)))?void 0:s.getAvailableActions(t,u)}))}function aOt(t,u,s,d){const f=nme.get(u);return f&&f.getEditsForAction(t,s,d)}var nme,Ont=o({"src/services/refactorProvider.ts"(){rr(),s_(),nme=new Map}});function jnt(t,u=!0){const{file:s,program:d}=t,f=u9(t),p=Ca(s,f.start),E=p.parent&&Rx(p.parent)&32&&u?p.parent:JH(p,s,f);if(!E||!la(E.parent)&&!(rE(E.parent)&&N1(E.parent.parent)))return{error:to(F.Could_not_find_export_statement)};const v=d.getTypeChecker(),b=hOt(E.parent,v),B=Rx(E)||(tc(E)&&!E.isExportEquals?2080:0),k=!!(B&2048);if(!(B&32)||!k&&b.exports.has("default"))return{error:to(F.This_file_already_has_a_default_export)};const T=M=>at(M)&&v.getSymbolAtLocation(M)?void 0:{error:to(F.Can_only_convert_named_export)};switch(E.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const M=E;return M.name?T(M.name)||{exportNode:M,exportName:M.name,wasDefault:k,exportingModuleSymbol:b}:void 0}case 243:{const M=E;if(!(M.declarationList.flags&2)||M.declarationList.declarations.length!==1)return;const z=Pn(M.declarationList.declarations);return z.initializer?(H.assert(!k,"Can't have a default flag here"),T(z.name)||{exportNode:M,exportName:z.name,wasDefault:k,exportingModuleSymbol:b}):void 0}case 277:{const M=E;return M.isExportEquals?void 0:T(M.expression)||{exportNode:M,exportName:M.expression,wasDefault:k,exportingModuleSymbol:b}}default:return}}function oOt(t,u,s,d,f){sOt(t,s,d,u.getTypeChecker()),lOt(u,s,d,f)}function sOt(t,{wasDefault:u,exportNode:s,exportName:d},f,p){if(u)if(tc(s)&&!s.isExportEquals){const E=s.expression,v=Vnt(E.text,E.text);f.replaceNode(t,s,q.createExportDeclaration(void 0,!1,q.createNamedExports([v])))}else f.delete(t,H.checkDefined(ow(s,90),"Should find a default keyword in modifier list"));else{const E=H.checkDefined(ow(s,95),"Should find an export keyword in modifier list");switch(s.kind){case 262:case 263:case 264:f.insertNodeAfter(t,E,q.createToken(90));break;case 243:const v=Pn(s.declarationList.declarations);if(!Z0.Core.isSymbolReferencedInFile(d,p,t)&&!v.type){f.replaceNode(t,s,q.createExportDefault(H.checkDefined(v.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:f.deleteModifier(t,E),f.insertNodeAfter(t,s,q.createExportDefault(q.createIdentifier(d.text)));break;default:H.fail(`Unexpected exportNode kind ${s.kind}`)}}}function lOt(t,{wasDefault:u,exportName:s,exportingModuleSymbol:d},f,p){const E=t.getTypeChecker(),v=H.checkDefined(E.getSymbolAtLocation(s),"Export name should resolve to a symbol");Z0.Core.eachExportReference(t.getSourceFiles(),E,p,v,d,s.text,u,b=>{if(s===b)return;const B=b.getSourceFile();u?cOt(B,b,f,s.text):dOt(B,b,f)})}function cOt(t,u,s,d){const{parent:f}=u;switch(f.kind){case 211:s.replaceNode(t,u,q.createIdentifier(d));break;case 276:case 281:{const E=f;s.replaceNode(t,E,m8e(d,E.name.text));break}case 273:{const E=f;H.assert(E.name===u,"Import clause name should match provided ref");const v=m8e(d,u.text),{namedBindings:b}=E;if(!b)s.replaceNode(t,u,q.createNamedImports([v]));else if(b.kind===274){s.deleteRange(t,{pos:u.getStart(t),end:b.getStart(t)});const B=us(E.parent.moduleSpecifier)?afe(E.parent.moduleSpecifier,t):1,k=g5(void 0,[m8e(d,u.text)],E.parent.moduleSpecifier,B);s.insertNodeAfter(t,E.parent,k)}else s.delete(t,u),s.insertNodeAtEndOfList(t,b.elements,v);break}case 205:const p=f;s.replaceNode(t,f,q.createImportTypeNode(p.argument,p.attributes,q.createIdentifier(d),p.typeArguments,p.isTypeOf));break;default:H.failBadSyntaxKind(f)}}function dOt(t,u,s){const d=u.parent;switch(d.kind){case 211:s.replaceNode(t,u,q.createIdentifier("default"));break;case 276:{const f=q.createIdentifier(d.name.text);d.parent.elements.length===1?s.replaceNode(t,d.parent,f):(s.delete(t,d),s.insertNodeBefore(t,d.parent,f));break}case 281:{s.replaceNode(t,d,Vnt("default",d.name.text));break}default:H.assertNever(d,`Unexpected parent kind ${d.kind}`)}}function m8e(t,u){return q.createImportSpecifier(!1,t===u?void 0:q.createIdentifier(t),q.createIdentifier(u))}function Vnt(t,u){return q.createExportSpecifier(!1,t===u?void 0:q.createIdentifier(t),q.createIdentifier(u))}function hOt(t,u){if(la(t))return t.symbol;const s=t.parent.symbol;return s.valueDeclaration&&v2(s.valueDeclaration)?u.getMergedSymbol(s):s}var ume,ZX,YX,fOt=o({"src/services/refactors/convertExport.ts"(){rr(),s_(),ume="Convert export",ZX={name:"Convert default export to named export",description:to(F.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},YX={name:"Convert named export to default export",description:to(F.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},s3(ume,{kinds:[ZX.kind,YX.kind],getAvailableActions:function(u){const s=jnt(u,u.triggerReason==="invoked");if(!s)return _t;if(!sD(s)){const d=s.wasDefault?ZX:YX;return[{name:ume,description:d.description,actions:[d]}]}return u.preferences.provideRefactorNotApplicableReason?[{name:ume,description:to(F.Convert_default_export_to_named_export),actions:[{...ZX,notApplicableReason:s.error},{...YX,notApplicableReason:s.error}]}]:_t},getEditsForAction:function(u,s){H.assert(s===ZX.name||s===YX.name,"Unexpected action name");const d=jnt(u);return H.assert(d&&!sD(d),"Expected applicable refactor info"),{edits:iu.ChangeTracker.with(u,p=>oOt(u.file,u.program,d,p,u.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function Hnt(t,u=!0){const{file:s}=t,d=u9(t),f=Ca(s,d.start),p=u?Tn(f,Sd):JH(f,s,d);if(!p||!Sd(p))return{error:"Selection is not an import declaration."};const E=d.start+d.length,v=ib(p,p.parent,s);if(v&&E>v.getStart())return;const{importClause:b}=p;return b?b.namedBindings?b.namedBindings.kind===274?{convertTo:0,import:b.namedBindings}:Knt(t.program,b)?{convertTo:1,import:b.namedBindings}:{convertTo:2,import:b.namedBindings}:{error:to(F.Could_not_find_namespace_import_or_named_imports)}:{error:to(F.Could_not_find_import_clause)}}function Knt(t,u){return C7(t.getCompilerOptions())&&EOt(u.parent.moduleSpecifier,t.getTypeChecker())}function mOt(t,u,s,d){const f=u.getTypeChecker();d.convertTo===0?pOt(t,f,s,d.import,C7(u.getCompilerOptions())):Gnt(t,u,s,d.import,d.convertTo===1)}function pOt(t,u,s,d,f){let p=!1;const E=[],v=new Map;Z0.Core.eachSymbolReferenceInFile(d.name,u,t,T=>{if(!obe(T.parent))p=!0;else{const M=Wnt(T.parent).text;u.resolveName(M,T,67108863,!0)&&v.set(M,!0),H.assert(gOt(T.parent)===T,"Parent expression should match id"),E.push(T.parent)}});const b=new Map;for(const T of E){const M=Wnt(T).text;let z=b.get(M);z===void 0&&b.set(M,z=v.has(M)?Ok(M,t):M),s.replaceNode(t,T,q.createIdentifier(z))}const B=[];b.forEach((T,M)=>{B.push(q.createImportSpecifier(!1,T===M?void 0:q.createIdentifier(M),q.createIdentifier(T)))});const k=d.parent.parent;p&&!f?s.insertNodeAfter(t,k,p8e(k,void 0,B)):s.replaceNode(t,k,p8e(k,p?q.createIdentifier(d.name.text):void 0,B))}function Wnt(t){return Iu(t)?t.name:t.right}function gOt(t){return Iu(t)?t.expression:t.left}function Gnt(t,u,s,d,f=Knt(u,d.parent)){const p=u.getTypeChecker(),E=d.parent.parent,{moduleSpecifier:v}=E,b=new Set;d.elements.forEach(j=>{const J=p.getSymbolAtLocation(j.name);J&&b.add(J)});const B=v&&us(v)?z1.moduleSpecifierToValidIdentifier(v.text,99):"module";function k(j){return!!Z0.Core.eachSymbolReferenceInFile(j.name,p,t,J=>{const K=p.resolveName(B,J,67108863,!0);return K?b.has(K)?eh(J.parent):!0:!1})}const M=d.elements.some(k)?Ok(B,t):B,z=new Set;for(const j of d.elements){const J=(j.propertyName||j.name).text;Z0.Core.eachSymbolReferenceInFile(j.name,p,t,K=>{const Y=q.createPropertyAccessExpression(q.createIdentifier(M),J);pm(K.parent)?s.replaceNode(t,K.parent,q.createPropertyAssignment(K.text,Y)):eh(K.parent)?z.add(j):s.replaceNode(t,K,Y)})}if(s.replaceNode(t,d,f?q.createIdentifier(M):q.createNamespaceImport(q.createIdentifier(M))),z.size){const j=ga(z.values(),J=>q.createImportSpecifier(J.isTypeOnly,J.propertyName&&q.createIdentifier(J.propertyName.text),q.createIdentifier(J.name.text)));s.insertNodeAfter(t,d.parent.parent,p8e(E,void 0,j))}}function EOt(t,u){const s=u.resolveExternalModuleName(t);if(!s)return!1;const d=u.resolveExternalModuleSymbol(s);return s!==d}function p8e(t,u,s){return q.createImportDeclaration(void 0,q.createImportClause(!1,u,s&&s.length?q.createNamedImports(s):void 0),t.moduleSpecifier,void 0)}var rme,QX,_Ot=o({"src/services/refactors/convertImport.ts"(){rr(),s_(),rme="Convert import",QX={0:{name:"Convert namespace import to named imports",description:to(F.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:to(F.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:to(F.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},s3(rme,{kinds:U1(QX).map(t=>t.kind),getAvailableActions:function(u){const s=Hnt(u,u.triggerReason==="invoked");if(!s)return _t;if(!sD(s)){const d=QX[s.convertTo];return[{name:rme,description:d.description,actions:[d]}]}return u.preferences.provideRefactorNotApplicableReason?U1(QX).map(d=>({name:rme,description:d.description,actions:[{...d,notApplicableReason:s.error}]})):_t},getEditsForAction:function(u,s){H.assert(Oe(U1(QX),p=>p.name===s),"Unexpected action name");const d=Hnt(u);return H.assert(d&&!sD(d),"Expected applicable refactor info"),{edits:iu.ChangeTracker.with(u,p=>mOt(u.file,u.program,p,d)),renameFilename:void 0,renameLocation:void 0}}})}});function Jnt(t,u=!0){const{file:s,startPosition:d}=t,f=gh(s),p=Ca(s,d),E=pX(u9(t)),v=E.pos===E.end&&u,b=rX(p,s,E.pos,E.end),B=Tn(p,Y=>Y.parent&&Qr(Y)&&!ab(E,Y.parent,s)&&(v||b));if(!B||!Qr(B))return{error:to(F.Selection_is_not_a_valid_type_node)};const k=t.program.getTypeChecker(),T=bOt(B,f);if(T===void 0)return{error:to(F.No_type_could_be_extracted_from_this_type_node)};const M=yOt(B,T);if(!Qr(M))return{error:to(F.Selection_is_not_a_valid_type_node)};const z=[];(Pv(M.parent)||kB(M.parent))&&E.end>B.end&&yn(z,M.parent.types.filter(Y=>rX(Y,s,E.pos,E.end)));const j=z.length>1?z:M,J=DOt(k,j,T,s);if(!J)return{error:to(F.No_type_could_be_extracted_from_this_type_node)};const K=ame(k,j);return{isJS:f,selection:j,enclosingNode:T,typeParameters:J,typeElements:K}}function ame(t,u){if(u){if(Ha(u)){const s=[];for(const d of u){const f=ame(t,d);if(!f)return;yn(s,f)}return s}if(kB(u)){const s=[],d=new Map;for(const f of u.types){const p=ame(t,f);if(!p||!p.every(E=>E.name&&Ip(d,WH(E.name))))return;yn(s,p)}return s}else{if(M7(u))return ame(t,u.type);if(fm(u))return u.members}}}function ab(t,u,s){return IH(t,gs(s.text,u.pos),u.end)}function DOt(t,u,s,d){const f=[],p=YA(u),E={pos:p[0].pos,end:p[p.length-1].end};for(const b of p)if(v(b))return;return f;function v(b){if(X4(b)){if(at(b.typeName)){const B=b.typeName,k=t.resolveName(B.text,B,262144,!0);for(const T of(k==null?void 0:k.declarations)||_t)if(Bl(T)&&T.getSourceFile()===d){if(T.name.escapedText===B.escapedText&&ab(T,E,d))return!0;if(ab(s,T,d)&&!ab(E,T,d)){xa(f,T);break}}}}else if(P7(b)){const B=Tn(b,k=>FB(k)&&ab(k.extendsType,b,d));if(!B||!ab(E,B,d))return!0}else if(aY(b)||sY(b)){const B=Tn(b.parent,Co);if(B&&B.type&&ab(B.type,b,d)&&!ab(E,B,d))return!0}else if(bB(b)){if(at(b.exprName)){const B=t.resolveName(b.exprName.text,b.exprName,111551,!1);if(B!=null&&B.valueDeclaration&&ab(s,B.valueDeclaration,d)&&!ab(E,B.valueDeclaration,d))return!0}else if(N2(b.exprName.left)&&!ab(E,b.parent,d))return!0}return d&&yB(b)&&s0(d,b.pos).line===s0(d,b.end).line&&Zn(b,1),ao(b,v)}}function xOt(t,u,s,d){const{enclosingNode:f,typeParameters:p}=d,{firstTypeNode:E,lastTypeNode:v,newTypeNode:b}=g8e(d),B=q.createTypeAliasDeclaration(void 0,s,p.map(k=>q.updateTypeParameterDeclaration(k,k.modifiers,k.name,k.constraint,void 0)),b);t.insertNodeBefore(u,f,cce(B),!0),t.replaceNodeRange(u,E,v,q.createTypeReferenceNode(s,p.map(k=>q.createTypeReferenceNode(k.name,void 0))),{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.ExcludeWhitespace})}function vOt(t,u,s,d){var f;const{enclosingNode:p,typeParameters:E,typeElements:v}=d,b=q.createInterfaceDeclaration(void 0,s,E,void 0,v);Pt(b,(f=v[0])==null?void 0:f.parent),t.insertNodeBefore(u,p,cce(b),!0);const{firstTypeNode:B,lastTypeNode:k}=g8e(d);t.replaceNodeRange(u,B,k,q.createTypeReferenceNode(s,E.map(T=>q.createTypeReferenceNode(T.name,void 0))),{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.ExcludeWhitespace})}function COt(t,u,s,d,f){var p;YA(f.selection).forEach(j=>{Zn(j,7168)});const{enclosingNode:E,typeParameters:v}=f,{firstTypeNode:b,lastTypeNode:B,newTypeNode:k}=g8e(f),T=q.createJSDocTypedefTag(q.createIdentifier("typedef"),q.createJSDocTypeExpression(k),q.createIdentifier(d)),M=[];L(v,j=>{const J=w8(j),K=q.createTypeParameterDeclaration(void 0,j.name),Y=q.createJSDocTemplateTag(q.createIdentifier("template"),J&&Po(J,kk),[K]);M.push(Y)});const z=q.createJSDocComment(void 0,q.createNodeArray(Hi(M,[T])));if(Vp(E)){const j=E.getStart(s),J=E5(u.host,(p=u.formatContext)==null?void 0:p.options);t.insertNodeAt(s,E.getStart(s),z,{suffix:J+J+s.text.slice(FX(s.text,j-1),j)})}else t.insertNodeBefore(s,E,z,!0);t.replaceNodeRange(s,b,B,q.createTypeReferenceNode(d,v.map(j=>q.createTypeReferenceNode(j.name,void 0))))}function g8e(t){return Ha(t.selection)?{firstTypeNode:t.selection[0],lastTypeNode:t.selection[t.selection.length-1],newTypeNode:Pv(t.selection[0].parent)?q.createUnionTypeNode(t.selection):q.createIntersectionTypeNode(t.selection)}:{firstTypeNode:t.selection,lastTypeNode:t.selection,newTypeNode:t.selection}}function bOt(t,u){return Tn(t,ia)||(u?Tn(t,Vp):void 0)}function yOt(t,u){return Tn(t,s=>s===u?"quit":!!(Pv(s.parent)||kB(s.parent)))??t}var ome,XX,eee,tee,kOt=o({"src/services/refactors/extractType.ts"(){rr(),s_(),ome="Extract type",XX={name:"Extract to type alias",description:to(F.Extract_to_type_alias),kind:"refactor.extract.type"},eee={name:"Extract to interface",description:to(F.Extract_to_interface),kind:"refactor.extract.interface"},tee={name:"Extract to typedef",description:to(F.Extract_to_typedef),kind:"refactor.extract.typedef"},s3(ome,{kinds:[XX.kind,eee.kind,tee.kind],getAvailableActions:function(u){const s=Jnt(u,u.triggerReason==="invoked");return s?sD(s)?u.preferences.provideRefactorNotApplicableReason?[{name:ome,description:to(F.Extract_type),actions:[{...tee,notApplicableReason:s.error},{...XX,notApplicableReason:s.error},{...eee,notApplicableReason:s.error}]}]:_t:[{name:ome,description:to(F.Extract_type),actions:s.isJS?[tee]:xi([XX],s.typeElements&&eee)}]:_t},getEditsForAction:function(u,s){const{file:d}=u,f=Jnt(u);H.assert(f&&!sD(f),"Expected to find a range to extract");const p=Ok("NewType",d),E=iu.ChangeTracker.with(u,B=>{switch(s){case XX.name:return H.assert(!f.isJS,"Invalid actionName/JS combo"),xOt(B,d,p,f);case tee.name:return H.assert(f.isJS,"Invalid actionName/JS combo"),COt(B,u,d,p,f);case eee.name:return H.assert(!f.isJS&&!!f.typeElements,"Invalid actionName/JS combo"),vOt(B,d,p,f);default:H.fail("Unexpected action name")}}),v=d.fileName,b=qH(E,v,p,!1);return{edits:E,renameFilename:v,renameLocation:b}}})}});function sD(t){return t.error!==void 0}function qv(t,u){return u?t.substr(0,u.length)===u:!0}var FOt=o({"src/services/refactors/helpers.ts"(){}});function $nt(t,u,s,d){var f,p;const E=d.getTypeChecker(),v=af(t,u),b=v.parent;if(at(v)){if(Zj(b)&&qN(b)&&at(b.name)){if(((f=E.getMergedSymbol(b.symbol).declarations)==null?void 0:f.length)!==1)return{error:to(F.Variables_with_multiple_declarations_cannot_be_inlined)};if(Unt(b))return;const B=qnt(b,E,t);return B&&{references:B,declaration:b,replacement:b.initializer}}if(s){let B=E.resolveName(v.text,v,111551,!1);if(B=B&&E.getMergedSymbol(B),((p=B==null?void 0:B.declarations)==null?void 0:p.length)!==1)return{error:to(F.Variables_with_multiple_declarations_cannot_be_inlined)};const k=B.declarations[0];if(!Zj(k)||!qN(k)||!at(k.name)||Unt(k))return;const T=qnt(k,E,t);return T&&{references:T,declaration:k,replacement:k.initializer}}return{error:to(F.Could_not_find_variable_to_inline)}}}function Unt(t){const u=Po(t.parent.parent,Jl);return Oe(u.modifiers,L7)}function qnt(t,u,s){const d=[],f=Z0.Core.eachSymbolReferenceInFile(t.name,u,s,p=>{if(Z0.isWriteAccessForReference(p)||eh(p.parent)||tc(p.parent)||bB(p.parent)||IO(t,p.pos))return!0;d.push(p)});return d.length===0||f?void 0:d}function AOt(t,u){u=ll(u);const{parent:s}=t;return Wt(s)&&(lP(u){for(const T of E)k.replaceNode(s,T,AOt(T,b));k.delete(s,v)})}}})}});function BOt(t,u,s,d,f,p,E){const v=u.getTypeChecker(),b=uee(t,s.all,v),B=A8e(t,u,E,f);d.createNewFile(t,B,wOt(t,b,d,s,u,f,B,p)),E8e(u,d,t.fileName,B,n5(f))}function wOt(t,u,s,d,f,p,E,v){const b=f.getTypeChecker(),B=tU(t.statements,Mp);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&u.oldImportsNeededByTargetFile.size===0)return iee(t,d.ranges,s),[...B,...d.all];const k=!Bfe(E,f,p,!!t.commonJsModuleIndicator),T=Hm(t,v),M=v8e(t,u.oldFileImportsFromTargetFile,E,f,p,k,T);M&&MM(s,t,M,!0,v),_8e(t,d.all,s,u.unusedImportsFromOldFile,b),iee(t,d.ranges,s),D8e(s,f,p,t,u.movedSymbols,E,T);const z=TOt(t,u.oldImportsNeededByTargetFile,u.targetFileImportsFromOldFile,s,b,f,p,k,T),j=C8e(t,d.all,u.oldFileImportsFromTargetFile,k);return z.length&&j.length?[...B,...z,4,...j]:[...B,...z,...j]}function TOt(t,u,s,d,f,p,E,v,b){const B=[];for(const z of t.statements)sK(z,j=>{xi(B,lK(j,oK(j),J=>u.has(f.getSymbolAtLocation(J))))});let k;const T=[],M=i9();return s.forEach(z=>{if(z.declarations)for(const j of z.declarations){if(!ree(j))continue;const J=k8e(j);if(!J)continue;const K=hme(j);M(K)&&F8e(t,K,J,d,v),Yu(j,2048)?k=J:T.push(J.text)}}),xi(B,nee(t,k,T,Ac(t.fileName),p,E,v,b)),B}var aK,cme,dme,LOt=o({"src/services/refactors/moveToNewFile.ts"(){rr(),s_(),aK="Move to a new file",cme=to(F.Move_to_a_new_file),dme={name:aK,description:cme,kind:"refactor.move.newFile"},s3(aK,{kinds:[dme.kind],getAvailableActions:function(u){const s=cK(u);return u.preferences.allowTextChangesInNewFiles&&s?[{name:aK,description:cme,actions:[dme]}]:u.preferences.provideRefactorNotApplicableReason?[{name:aK,description:cme,actions:[{...dme,notApplicableReason:to(F.Selection_is_not_a_valid_statement_or_statements)}]}]:_t},getEditsForAction:function(u,s){H.assert(s===aK,"Wrong refactor invoked");const d=H.checkDefined(cK(u));return{edits:iu.ChangeTracker.with(u,p=>BOt(u.file,u.program,d,p,u.host,u.preferences,u)),renameFilename:void 0,renameLocation:void 0}}})}});function Znt(t){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:t}}function NOt(t,u,s,d,f,p,E,v){const b=d.getTypeChecker();if(!E.fileExists(s))p.createNewFile(u,s,Ynt(u,s,uee(u,f.all,b),p,f,d,E,v)),E8e(d,p,u.fileName,s,n5(E));else{const B=H.checkDefined(d.getSourceFile(s)),k=z1.createImportAdder(B,t.program,t.preferences,t.host);Ynt(u,B,uee(u,f.all,b,QOt(B,b)),p,f,d,E,v,k)}}function Ynt(t,u,s,d,f,p,E,v,b){const B=p.getTypeChecker(),k=tU(t.statements,Mp);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&s.oldImportsNeededByTargetFile.size===0&&s.targetFileImportsFromOldFile.size===0&&typeof u=="string")return iee(t,f.ranges,d),[...k,...f.all];const T=typeof u=="string"?u:u.fileName,M=!Bfe(T,p,E,!!t.commonJsModuleIndicator),z=Hm(t,v),j=v8e(t,s.oldFileImportsFromTargetFile,T,p,E,M,z);j&&MM(d,t,j,!0,v),_8e(t,f.all,d,s.unusedImportsFromOldFile,B),iee(t,f.ranges,d),D8e(d,p,E,t,s.movedSymbols,T,z);const J=POt(t,T,s.oldImportsNeededByTargetFile,s.targetFileImportsFromOldFile,d,B,p,E,M,z,b),K=C8e(t,f.all,s.oldFileImportsFromTargetFile,M);return typeof u!="string"&&(u.statements.length>0?YOt(d,p,K,u,f):d.insertNodesAtEndOfFile(u,K,!1),J.length>0&&MM(d,u,J,!0,v)),b&&b.writeFixes(d,z),J.length&&K.length?[...k,...J,4,...K]:[...k,...J,...K]}function POt(t,u,s,d,f,p,E,v,b,B,k){const T=[];if(k)s.forEach((K,Y)=>{try{k.addImportFromExportedSymbol(X1(Y,p),K)}catch{for(const oe of t.statements)sK(oe,se=>{xi(T,lK(se,q.createStringLiteral(oK(se).text),ge=>s.has(p.getSymbolAtLocation(ge))))})}});else{const K=E.getSourceFile(u);for(const Y of t.statements)sK(Y,oe=>{var se;const ge=oK(oe),ae=E.getResolvedModule(t,ge.text,xg(t,ge)),Ce=(se=ae==null?void 0:ae.resolvedModule)==null?void 0:se.resolvedFileName;if(Ce&&K){const ne=qY(E.getCompilerOptions(),K,K.path,Ce,Ik(E,v));xi(T,lK(oe,n9(ne,B),ve=>s.has(p.getSymbolAtLocation(ve))))}else xi(T,lK(oe,q.createStringLiteral(oK(oe).text),ne=>s.has(p.getSymbolAtLocation(ne))))})}const M=E.getSourceFile(u);let z;const j=[],J=i9();return d.forEach(K=>{if(K.declarations)for(const Y of K.declarations){if(!ree(Y))continue;const oe=k8e(Y);if(!oe)continue;const se=hme(Y);J(se)&&F8e(t,se,oe,f,b),k&&p.isUnknownSymbol(K)?k.addImportFromExportedSymbol(X1(K,p)):Yu(Y,2048)?z=oe:j.push(oe.text)}}),M?xi(T,nee(M,z,j,t.fileName,E,v,b,B)):xi(T,nee(t,z,j,t.fileName,E,v,b,B))}function E8e(t,u,s,d,f){const p=t.getCompilerOptions().configFile;if(!p)return;const E=$o(cr(s,"..",d)),v=SO(p.fileName,E,f),b=p.statements[0]&&ur(p.statements[0].expression,ys),B=b&&Le(b.properties,k=>Jc(k)&&us(k.name)&&k.name.text==="files");B&&Dh(B.initializer)&&u.insertNodeInListAfter(p,Cr(B.initializer.elements),q.createStringLiteral(v),B.initializer.elements)}function iee(t,u,s){for(const{first:d,afterLast:f}of u)s.deleteNodeRangeExcludingEnd(t,d,f)}function _8e(t,u,s,d,f){for(const p of t.statements)kt(u,p)||sK(p,E=>b8e(t,E,s,v=>d.has(f.getSymbolAtLocation(v))))}function D8e(t,u,s,d,f,p,E){const v=u.getTypeChecker();for(const b of u.getSourceFiles())if(b!==d)for(const B of b.statements)sK(B,k=>{if(v.getSymbolAtLocation(oK(k))!==d.symbol)return;const T=K=>{const Y=js(K.parent)?CX(v,K.parent):X1(v.getSymbolAtLocation(K),v);return!!Y&&f.has(Y)};b8e(b,k,t,T);const M=kx(lr(d.path),p),z=qY(u.getCompilerOptions(),b,b.path,M,Ik(u,s)),j=lK(k,n9(z,E),T);j&&t.insertNodeAfter(b,B,j);const J=MOt(k);J&&zOt(t,b,v,f,z,J,k,E)})}function MOt(t){switch(t.kind){case 272:return t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===274?t.importClause.namedBindings.name:void 0;case 271:return t.name;case 260:return ur(t.name,at);default:return H.assertNever(t,`Unexpected node kind ${t.kind}`)}}function zOt(t,u,s,d,f,p,E,v){const b=z1.moduleSpecifierToValidIdentifier(f,99);let B=!1;const k=[];if(Z0.Core.eachSymbolReferenceInFile(p,s,u,T=>{Iu(T.parent)&&(B=B||!!s.resolveName(b,T,67108863,!0),d.has(s.getSymbolAtLocation(T.parent.name))&&k.push(T))}),k.length){const T=B?Ok(b,u):b;for(const M of k)t.replaceNode(u,M,q.createIdentifier(T));t.insertNodeAfter(u,E,IOt(E,b,f,v))}}function IOt(t,u,s,d){const f=q.createIdentifier(u),p=n9(s,d);switch(t.kind){case 272:return q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamespaceImport(f)),p,void 0);case 271:return q.createImportEqualsDeclaration(void 0,!1,f,q.createExternalModuleReference(p));case 260:return q.createVariableDeclaration(f,void 0,void 0,x8e(p));default:return H.assertNever(t,`Unexpected node kind ${t.kind}`)}}function x8e(t){return q.createCallExpression(q.createIdentifier("require"),void 0,[t])}function oK(t){return t.kind===272?t.moduleSpecifier:t.kind===271?t.moduleReference.expression:t.initializer.arguments[0]}function sK(t,u){if(Sd(t))us(t.moduleSpecifier)&&u(t);else if(E1(t))r_(t.moduleReference)&&t0(t.moduleReference.expression)&&u(t);else if(Jl(t))for(const s of t.declarationList.declarations)s.initializer&&xf(s.initializer,!0)&&u(s)}function v8e(t,u,s,d,f,p,E){let v;const b=[];return u.forEach(B=>{B.escapedName==="default"?v=q.createIdentifier(DX(B)):b.push(B.name)}),nee(t,v,b,s,d,f,p,E)}function nee(t,u,s,d,f,p,E,v){const b=kx(lr(t.path),d),B=qY(f.getCompilerOptions(),t,t.path,b,Ik(f,p));if(E){const k=s.map(T=>q.createImportSpecifier(!1,void 0,q.createIdentifier(T)));return dSe(u,k,B,v)}else{H.assert(!u,"No default import should exist");const k=s.map(T=>q.createBindingElement(void 0,void 0,T));return k.length?Qnt(q.createObjectBindingPattern(k),void 0,x8e(n9(B,v))):void 0}}function Qnt(t,u,s,d=2){return q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(t,void 0,u,s)],d))}function C8e(t,u,s,d){return ju(u,f=>{if(eut(f)&&!Xnt(t,f,d)&&S8e(f,p=>{var E;return s.has(H.checkDefined((E=ur(p,Zg))==null?void 0:E.symbol))})){const p=jOt(ll(f),d);if(p)return p}return ll(f)})}function Xnt(t,u,s,d){var f;return s?!Od(u)&&Yu(u,32)||!!(d&&t.symbol&&((f=t.symbol.exports)!=null&&f.has(d.escapedText))):!!t.symbol&&!!t.symbol.exports&&y8e(u).some(p=>t.symbol.exports.has(Al(p)))}function b8e(t,u,s,d){switch(u.kind){case 272:ROt(t,u,s,d);break;case 271:d(u.name)&&s.delete(t,u);break;case 260:OOt(t,u,s,d);break;default:H.assertNever(u,`Unexpected import decl kind ${u.kind}`)}}function ROt(t,u,s,d){if(!u.importClause)return;const{name:f,namedBindings:p}=u.importClause,E=!f||d(f),v=!p||(p.kind===274?d(p.name):p.elements.length!==0&&p.elements.every(b=>d(b.name)));if(E&&v)s.delete(t,u);else if(f&&E&&s.delete(t,f),p){if(v)s.replaceNode(t,u.importClause,q.updateImportClause(u.importClause,u.importClause.isTypeOnly,f,void 0));else if(p.kind===275)for(const b of p.elements)d(b.name)&&s.delete(t,b)}}function OOt(t,u,s,d){const{name:f}=u;switch(f.kind){case 80:d(f)&&(u.initializer&&xf(u.initializer,!0)?s.delete(t,Ad(u.parent)&&S(u.parent.declarations)===1?u.parent.parent:u):s.delete(t,f));break;case 207:break;case 206:if(f.elements.every(p=>at(p.name)&&d(p.name)))s.delete(t,Ad(u.parent)&&u.parent.declarations.length===1?u.parent.parent:u);else for(const p of f.elements)at(p.name)&&d(p.name)&&s.delete(t,p.name);break}}function eut(t){return H.assert(la(t.parent),"Node parent should be a SourceFile"),aut(t)||Jl(t)}function jOt(t,u){return u?[VOt(t)]:HOt(t)}function VOt(t){const u=Hp(t)?Hi([q.createModifier(95)],p2(t)):void 0;switch(t.kind){case 262:return q.updateFunctionDeclaration(t,u,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 263:const s=Ak(t)?Ax(t):void 0;return q.updateClassDeclaration(t,Hi(s,u),t.name,t.typeParameters,t.heritageClauses,t.members);case 243:return q.updateVariableStatement(t,u,t.declarationList);case 267:return q.updateModuleDeclaration(t,u,t.name,t.body);case 266:return q.updateEnumDeclaration(t,u,t.name,t.members);case 265:return q.updateTypeAliasDeclaration(t,u,t.name,t.typeParameters,t.type);case 264:return q.updateInterfaceDeclaration(t,u,t.name,t.typeParameters,t.heritageClauses,t.members);case 271:return q.updateImportEqualsDeclaration(t,u,t.isTypeOnly,t.name,t.moduleReference);case 244:return H.fail();default:return H.assertNever(t,`Unexpected declaration kind ${t.kind}`)}}function HOt(t){return[t,...y8e(t).map(tut)]}function tut(t){return q.createExpressionStatement(q.createBinaryExpression(q.createPropertyAccessExpression(q.createIdentifier("exports"),q.createIdentifier(t)),64,q.createIdentifier(t)))}function y8e(t){switch(t.kind){case 262:case 263:return[t.name.text];case 243:return qi(t.declarationList.declarations,u=>at(u.name)?u.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return _t;case 244:return H.fail("Can't export an ExpressionStatement");default:return H.assertNever(t,`Unexpected decl kind ${t.kind}`)}}function lK(t,u,s){switch(t.kind){case 272:{const d=t.importClause;if(!d)return;const f=d.name&&s(d.name)?d.name:void 0,p=d.namedBindings&&KOt(d.namedBindings,s);return f||p?q.createImportDeclaration(void 0,q.createImportClause(d.isTypeOnly,f,p),ll(u),void 0):void 0}case 271:return s(t.name)?t:void 0;case 260:{const d=WOt(t.name,s);return d?Qnt(d,t.type,x8e(u),t.parent.flags):void 0}default:return H.assertNever(t,`Unexpected import kind ${t.kind}`)}}function KOt(t,u){if(t.kind===274)return u(t.name)?t:void 0;{const s=t.elements.filter(d=>u(d.name));return s.length?q.createNamedImports(s):void 0}}function WOt(t,u){switch(t.kind){case 80:return u(t)?t:void 0;case 207:return t;case 206:{const s=t.elements.filter(d=>d.propertyName||!at(d.name)||u(d.name));return s.length?q.createObjectBindingPattern(s):void 0}}}function k8e(t){return Od(t)?ur(t.expression.left.name,at):ur(t.name,at)}function hme(t){switch(t.kind){case 260:return t.parent.parent;case 208:return hme(Po(t.parent.parent,u=>na(u)||js(u)));default:return t}}function F8e(t,u,s,d,f){if(!Xnt(t,u,f,s))if(f)Od(u)||d.insertExportModifier(t,u);else{const p=y8e(u);p.length!==0&&d.insertNodesAfter(t,u,p.map(tut))}}function A8e(t,u,s,d){const f=u.getTypeChecker(),p=cK(s);let E;if(p){E=uee(t,p.all,f);const v=lr(t.fileName),b=y7(t.fileName);return cr(v,UOt(qOt(E.oldFileImportsFromTargetFile,E.movedSymbols),b,v,d))+b}return""}function GOt(t){const{file:u}=t,s=pX(u9(t)),{statements:d}=u;let f=Ue(d,B=>B.end>s.pos);if(f===-1)return;const p=d[f],E=out(u,p);E&&(f=E.start);let v=Ue(d,B=>B.end>=s.end,f);v!==-1&&s.end<=d[v].getStart()&&v--;const b=out(u,d[v]);return b&&(v=b.end),{toMove:d.slice(f,v===-1?d.length:v+1),afterLast:v===-1?void 0:d[v+1]}}function cK(t){const u=GOt(t);if(u===void 0)return;const s=[],d=[],{toMove:f,afterLast:p}=u;return eu(f,JOt,(E,v)=>{for(let b=E;b!!u.initializer&&xf(u.initializer,!0));default:return!1}}function uee(t,u,s,d=new Set){const f=new Set,p=new Map,E=new Set,v=Le(u,M=>!!(M.transformFlags&2)),b=T(v);b&&p.set(b,!1);for(const M of u)S8e(M,z=>{f.add(H.checkDefined(Od(z)?s.getSymbolAtLocation(z.expression.left):z.symbol,"Need a symbol here"))});const B=new Set;for(const M of u)iut(M,s,(z,j)=>{if(z.declarations){if(d.has(X1(z,s))){B.add(z);return}for(const J of z.declarations)if(nut(J)){const K=p.get(z);p.set(z,(K===void 0||K)&&j)}else ree(J)&&ZOt(J)===t&&!f.has(z)&&E.add(z)}});for(const M of p.keys())B.add(M);const k=new Set;for(const M of t.statements)kt(u,M)||(b&&M.transformFlags&2&&B.delete(b),iut(M,s,z=>{f.has(z)&&k.add(z),B.delete(z)}));return{movedSymbols:f,targetFileImportsFromOldFile:E,oldFileImportsFromTargetFile:k,oldImportsNeededByTargetFile:p,unusedImportsFromOldFile:B};function T(M){if(M===void 0)return;const z=s.getJsxNamespace(M),j=s.resolveName(z,M,1920,!0);return j&&Oe(j.declarations,nut)?j:void 0}}function UOt(t,u,s,d){let f=t;for(let p=1;;p++){const E=cr(s,f+u);if(!d.fileExists(E))return f;f=`${t}.${p}`}}function qOt(t,u){return U_(t,DX)||U_(u,DX)||"newFile"}function iut(t,u,s){t.forEachChild(function d(f){if(at(f)&&!X3(f)){const p=u.getSymbolAtLocation(f);p&&s(p,Tv(f))}else f.forEachChild(d)})}function S8e(t,u){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return u(t);case 243:return G(t.declarationList.declarations,s=>rut(s.name,u));case 244:{const{expression:s}=t;return Xn(s)&&Xl(s)===1?u(t):void 0}}}function nut(t){switch(t.kind){case 271:case 276:case 273:case 274:return!0;case 260:return uut(t);case 208:return na(t.parent.parent)&&uut(t.parent.parent);default:return!1}}function uut(t){return la(t.parent.parent.parent)&&!!t.initializer&&xf(t.initializer,!0)}function ree(t){return aut(t)&&la(t.parent)||na(t)&&la(t.parent.parent.parent)}function ZOt(t){return na(t)?t.parent.parent.parent:t.parent}function rut(t,u){switch(t.kind){case 80:return u(Po(t.parent,s=>na(s)||js(s)));case 207:case 206:return G(t.elements,s=>Fd(s)?void 0:rut(s.name,u));default:return H.assertNever(t,`Unexpected name kind ${t.kind}`)}}function aut(t){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function YOt(t,u,s,d,f){var p;const E=new Set,v=(p=d.symbol)==null?void 0:p.exports;if(v){const B=u.getTypeChecker(),k=new Map;for(const T of f.all)eut(T)&&Yu(T,32)&&S8e(T,M=>{var z;const j=Zg(M)?(z=v.get(M.symbol.escapedName))==null?void 0:z.declarations:void 0,J=G(j,K=>Gc(K)?K:eh(K)?ur(K.parent.parent,Gc):void 0);J&&J.moduleSpecifier&&k.set(J,(k.get(J)||new Set).add(M))});for(const[T,M]of ga(k))if(T.exportClause&&ep(T.exportClause)&&S(T.exportClause.elements)){const z=T.exportClause.elements,j=ti(z,J=>Le(X1(J.symbol,B).declarations,K=>ree(K)&&M.has(K))===void 0);if(S(j)===0){t.deleteNode(d,T),E.add(T);continue}S(j)Gc(B)&&!!B.moduleSpecifier&&!E.has(B));b?t.insertNodesBefore(d,b,s,!0):t.insertNodesAfter(d,d.statements[d.statements.length-1],s)}function out(t,u){if($0(u)){const s=u.symbol.declarations;if(s===void 0||S(s)<=1||!kt(s,u))return;const d=s[0],f=s[S(s)-1],p=qi(s,b=>zn(b)===t&&ia(b)?b:void 0),E=Ue(t.statements,b=>b.end>=f.end),v=Ue(t.statements,b=>b.end>=d.end);return{toMove:p,start:v,end:E}}}function QOt(t,u){const s=new Set;for(const d of t.imports){const f=tP(d);if(Sd(f)&&f.importClause&&f.importClause.namedBindings&&uD(f.importClause.namedBindings))for(const p of f.importClause.namedBindings.elements){const E=u.getSymbolAtLocation(p.propertyName||p.name);E&&s.add(X1(E,u))}if(vq(f.parent)&&Rp(f.parent.name))for(const p of f.parent.name.elements){const E=u.getSymbolAtLocation(p.propertyName||p.name);E&&s.add(X1(E,u))}}return s}var aee,fme,mme,XOt=o({"src/services/refactors/moveToFile.ts"(){ket(),rr(),Ont(),aee="Move to file",fme=to(F.Move_to_file),mme={name:"Move to file",description:fme,kind:"refactor.move.file"},s3(aee,{kinds:[mme.kind],getAvailableActions:function(u,s){const d=cK(u);return s?u.preferences.allowTextChangesInNewFiles&&d?[{name:aee,description:fme,actions:[mme]}]:u.preferences.provideRefactorNotApplicableReason?[{name:aee,description:fme,actions:[{...mme,notApplicableReason:to(F.Selection_is_not_a_valid_statement_or_statements)}]}]:_t:_t},getEditsForAction:function(u,s,d){H.assert(s===aee,"Wrong refactor invoked");const f=H.checkDefined(cK(u)),{host:p,program:E}=u;H.assert(d,"No interactive refactor arguments available");const v=d.targetFile;return z2(v)||mk(v)?p.fileExists(v)&&E.getSourceFile(v)===void 0?Znt(to(F.Cannot_move_statements_to_the_selected_file)):{edits:iu.ChangeTracker.with(u,B=>NOt(u,u.file,d.targetFile,u.program,f,B,u.host,u.preferences)),renameFilename:void 0,renameLocation:void 0}:Znt(to(F.Cannot_move_to_file_selected_file_is_invalid))}})}});function ejt(t){const{file:u,startPosition:s,program:d}=t;return lut(u,s,d)?[{name:pme,description:B8e,actions:[w8e]}]:_t}function tjt(t){const{file:u,startPosition:s,program:d}=t,f=lut(u,s,d);if(!f)return;const p=d.getTypeChecker(),E=f[f.length-1];let v=E;switch(E.kind){case 173:{v=q.updateMethodSignature(E,E.modifiers,E.name,E.questionToken,E.typeParameters,B(f),E.type);break}case 174:{v=q.updateMethodDeclaration(E,E.modifiers,E.asteriskToken,E.name,E.questionToken,E.typeParameters,B(f),E.type,E.body);break}case 179:{v=q.updateCallSignature(E,E.typeParameters,B(f),E.type);break}case 176:{v=q.updateConstructorDeclaration(E,E.modifiers,B(f),E.body);break}case 180:{v=q.updateConstructSignature(E,E.typeParameters,B(f),E.type);break}case 262:{v=q.updateFunctionDeclaration(E,E.modifiers,E.asteriskToken,E.name,E.typeParameters,B(f),E.type,E.body);break}default:return H.failBadSyntaxKind(E,"Unhandled signature kind in overload list conversion refactoring")}if(v===E)return;return{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,M=>{M.replaceNodeRange(u,f[0],f[f.length-1],v)})};function B(M){const z=M[M.length-1];return $0(z)&&z.body&&(M=M.slice(0,M.length-1)),q.createNodeArray([q.createParameterDeclaration(void 0,q.createToken(26),"args",void 0,q.createUnionTypeNode(Vt(M,k)))])}function k(M){const z=Vt(M.parameters,T);return Zn(q.createTupleTypeNode(z),Oe(z,j=>!!S(DB(j)))?0:1)}function T(M){H.assert(at(M.name));const z=Pt(q.createNamedTupleMember(M.dotDotDotToken,M.name,M.questionToken,M.type||q.createKeywordTypeNode(133)),M),j=M.symbol&&M.symbol.getDocumentationComment(p);if(j){const J=EK(j);J.length&&Nv(z,[{text:`* ${J.split(` `).map(K=>` * ${K}`).join(` `)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return z}}function rut(t){switch(t.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function aut(t,u,s){const d=ba(t,u),f=Ln(d,rut);if(!f||K0(f)&&f.body&&NH(f.body,u))return;const p=s.getTypeChecker(),E=f.symbol;if(!E)return;const v=E.declarations;if(S(v)<=1||!ye(v,M=>In(M)===t)||!rut(v[0]))return;const b=v[0].kind;if(!ye(v,M=>M.kind===b))return;const B=v;if(qe(B,M=>!!M.typeParameters||qe(M.parameters,z=>!!z.modifiers||!at(z.name))))return;const k=Ui(B,M=>p.getSignatureFromDeclaration(M));if(S(k)!==S(v))return;const T=p.getReturnTypeOfSignature(k[0]);if(ye(k,M=>p.getReturnTypeOfSignature(M)===T))return B}var mme,A8e,S8e,XOt=o({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){or(),o_(),mme="Convert overload list to single signature",A8e=Xa(F.Convert_overload_list_to_single_signature),S8e={name:mme,description:A8e,kind:"refactor.rewrite.function.overloadList"},o3(mme,{kinds:[S8e.kind],getEditsForAction:QOt,getAvailableActions:YOt})}});function ejt(t){const{file:u,startPosition:s,triggerReason:d}=t,f=out(u,s,d==="invoked");return f?oD(f)?t.preferences.provideRefactorNotApplicableReason?[{name:pme,description:B8e,actions:[{...nee,notApplicableReason:f.error},{...lK,notApplicableReason:f.error}]}]:_t:[{name:pme,description:B8e,actions:[f.addBraces?nee:lK]}]:_t}function tjt(t,u){const{file:s,startPosition:d}=t,f=out(s,d);H.assert(f&&!oD(f),"Expected applicable refactor info");const{expression:p,returnStatement:E,func:v}=f;let b;if(u===nee.name){const k=q.createReturnStatement(p);b=q.createBlock([k],!0),sw(p,k,s,3,!0)}else if(u===lK.name&&E){const k=p||q.createVoidZero();b=bX(k)?q.createParenthesizedExpression(k):k,UH(E,b,s,3,!1),sw(E,b,s,3,!1),RM(E,b,s,3,!1)}else H.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:nu.ChangeTracker.with(t,k=>{k.replaceNode(s,v.body,b)})}}function out(t,u,s=!0,d){const f=ba(t,u),p=Lm(f);if(!p)return{error:Xa(F.Could_not_find_a_containing_arrow_function)};if(!G0(p))return{error:Xa(F.Containing_function_is_not_an_arrow_function)};if(!(!jm(p,f)||jm(p.body,f)&&!s)){if($v(nee.kind,d)&&Wt(p.body))return{func:p,addBraces:!0,expression:p.body};if($v(lK.kind,d)&&fo(p.body)&&p.body.statements.length===1){const E=Mn(p.body.statements);if(zp(E)){const v=E.expression&&Cs(lB(E.expression,!1))?q.createParenthesizedExpression(E.expression):E.expression;return{func:p,addBraces:!1,expression:v,returnStatement:E}}}}}var pme,B8e,nee,lK,ijt=o({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){or(),o_(),pme="Add or remove braces in an arrow function",B8e=Xa(F.Add_or_remove_braces_in_an_arrow_function),nee={name:"Add braces to arrow function",description:Xa(F.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},lK={name:"Remove braces from arrow function",description:Xa(F.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},o3(pme,{kinds:[lK.kind],getEditsForAction:tjt,getAvailableActions:ejt})}}),njt={},ujt=o({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){XOt(),ijt()}});function rjt(t){const{file:u,startPosition:s,program:d,kind:f}=t,p=lut(u,s,d);if(!p)return _t;const{selectedVariableDeclaration:E,func:v}=p,b=[],B=[];if($v(dK.kind,f)){const k=E||G0(v)&&ua(v.parent)?void 0:Xa(F.Could_not_convert_to_named_function);k?B.push({...dK,notApplicableReason:k}):b.push(dK)}if($v(cK.kind,f)){const k=!E&&G0(v)?void 0:Xa(F.Could_not_convert_to_anonymous_function);k?B.push({...cK,notApplicableReason:k}):b.push(cK)}if($v(hK.kind,f)){const k=F0(v)?void 0:Xa(F.Could_not_convert_to_arrow_function);k?B.push({...hK,notApplicableReason:k}):b.push(hK)}return[{name:w8e,description:hut,actions:b.length===0&&t.preferences.provideRefactorNotApplicableReason?B:b}]}function ajt(t,u){const{file:s,startPosition:d,program:f}=t,p=lut(s,d,f);if(!p)return;const{func:E}=p,v=[];switch(u){case cK.name:v.push(...cjt(t,E));break;case dK.name:const b=ljt(E);if(!b)return;v.push(...djt(t,E,b));break;case hK.name:if(!F0(E))return;v.push(...hjt(t,E));break;default:return H.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:v}}function sut(t){let u=!1;return t.forEachChild(function s(d){if(nw(d)){u=!0;return}!gr(d)&&!Xc(d)&&!F0(d)&&ro(d,s)}),u}function lut(t,u,s){const d=ba(t,u),f=s.getTypeChecker(),p=sjt(t,f,d.parent);if(p&&!sut(p.body)&&!f.containsArgumentsReference(p))return{selectedVariableDeclaration:!0,func:p};const E=Lm(d);if(E&&(F0(E)||G0(E))&&!jm(E.body,d)&&!sut(E.body)&&!f.containsArgumentsReference(E))return F0(E)&&dut(t,f,E)?void 0:{selectedVariableDeclaration:!1,func:E}}function ojt(t){return ua(t)||Fd(t)&&t.declarations.length===1}function sjt(t,u,s){if(!ojt(s))return;const f=(ua(s)?s:Mn(s.declarations)).initializer;if(f&&(G0(f)||F0(f)&&!dut(t,u,f)))return f}function cut(t){if(Wt(t)){const u=q.createReturnStatement(t),s=t.getSourceFile();return Pt(u,t),Hf(u),UH(t,u,s,void 0,!0),q.createBlock([u],!0)}else return t}function ljt(t){const u=t.parent;if(!ua(u)||!UN(u))return;const s=u.parent,d=s.parent;if(!(!Fd(s)||!Gl(d)||!at(u.name)))return{variableDeclaration:u,variableDeclarationList:s,statement:d,name:u.name}}function cjt(t,u){const{file:s}=t,d=cut(u.body),f=q.createFunctionExpression(u.modifiers,u.asteriskToken,void 0,u.typeParameters,u.parameters,u.type,d);return nu.ChangeTracker.with(t,p=>p.replaceNode(s,u,f))}function djt(t,u,s){const{file:d}=t,f=cut(u.body),{variableDeclaration:p,variableDeclarationList:E,statement:v,name:b}=s;gfe(v);const B=d2(p)&32|gh(u),k=q.createModifiersFromModifierFlags(B),T=q.createFunctionDeclaration(S(k)?k:void 0,u.asteriskToken,b,u.typeParameters,u.parameters,u.type,f);return E.declarations.length===1?nu.ChangeTracker.with(t,M=>M.replaceNode(d,v,T)):nu.ChangeTracker.with(t,M=>{M.delete(d,p),M.insertNodeAfter(d,v,T)})}function hjt(t,u){const{file:s}=t,f=u.body.statements[0];let p;fjt(u.body,f)?(p=f.expression,Hf(p),zk(f,p)):p=u.body;const E=q.createArrowFunction(u.modifiers,u.typeParameters,u.parameters,u.type,q.createToken(39),p);return nu.ChangeTracker.with(t,v=>v.replaceNode(s,u,E))}function fjt(t,u){return t.statements.length===1&&zp(u)&&!!u.expression}function dut(t,u,s){return!!s.name&&J0.Core.isSymbolReferencedInFile(s.name,u,t)}var w8e,hut,cK,dK,hK,mjt=o({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){or(),o_(),w8e="Convert arrow function or function expression",hut=Xa(F.Convert_arrow_function_or_function_expression),cK={name:"Convert to anonymous function",description:Xa(F.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},dK={name:"Convert to named function",description:Xa(F.Convert_to_named_function),kind:"refactor.rewrite.function.named"},hK={name:"Convert to arrow function",description:Xa(F.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},o3(w8e,{kinds:[cK.kind,dK.kind,hK.kind],getEditsForAction:ajt,getAvailableActions:rjt})}}),pjt={},gjt=o({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){mjt()}});function Ejt(t){const{file:u,startPosition:s}=t;return ph(u)||!put(u,s,t.program.getTypeChecker())?_t:[{name:ree,description:P8e,actions:[M8e]}]}function _jt(t,u){H.assert(u===ree,"Unexpected action name");const{file:s,startPosition:d,program:f,cancellationToken:p,host:E}=t,v=put(s,d,f.getTypeChecker());if(!v||!p)return;const b=xjt(v,f,p);return b.valid?{renameFilename:void 0,renameLocation:void 0,edits:nu.ChangeTracker.with(t,k=>Djt(s,f,E,k,v,b))}:{edits:[]}}function Djt(t,u,s,d,f,p){const E=p.signature,v=Kt(Dut(f,u,s),k=>ol(k));if(E){const k=Kt(Dut(E,u,s),T=>ol(T));B(E,k)}B(f,v);const b=mi(p.functionCalls,(k,T)=>tl(k.pos,T.pos));for(const k of b)if(k.arguments&&k.arguments.length){const T=ol(wjt(f,k.arguments),!0);d.replaceNodeRange(In(k),Mn(k.arguments),Cr(k.arguments),T,{leadingTriviaOption:nu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:nu.TrailingTriviaOption.Include})}function B(k,T){d.replaceNodeRangeWithNodes(t,Mn(k.parameters),Cr(k.parameters),T,{joiner:", ",indentation:0,leadingTriviaOption:nu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:nu.TrailingTriviaOption.Include})}}function xjt(t,u,s){const d=Ljt(t),f=dc(t)?Tjt(t):[],p=li([...d,...f],vx),E=u.getTypeChecker(),v=Ku(p,T=>J0.getReferenceEntriesForNode(-1,T,u,u.getSourceFiles(),s)),b=B(v);return ye(b.declarations,T=>Ft(p,T))||(b.valid=!1),b;function B(T){const M={accessExpressions:[],typeUsages:[]},z={functionCalls:[],declarations:[],classReferences:M,valid:!0},j=Kt(d,k),J=Kt(f,k),K=dc(t),Y=Kt(d,oe=>T8e(oe,E));for(const oe of T){if(oe.kind===J0.EntryKind.Span){z.valid=!1;continue}if(Ft(Y,k(oe.node))){if(yjt(oe.node.parent)){z.signature=oe.node.parent;continue}const ge=mut(oe);if(ge){z.functionCalls.push(ge);continue}}const se=T8e(oe.node,E);if(se&&Ft(Y,se)){const ge=L8e(oe);if(ge){z.declarations.push(ge);continue}}if(Ft(j,k(oe.node))||BM(oe.node)){if(fut(oe))continue;const ae=L8e(oe);if(ae){z.declarations.push(ae);continue}const Ce=mut(oe);if(Ce){z.functionCalls.push(Ce);continue}}if(K&&Ft(J,k(oe.node))){if(fut(oe))continue;const ae=L8e(oe);if(ae){z.declarations.push(ae);continue}const Ce=vjt(oe);if(Ce){M.accessExpressions.push(Ce);continue}if(Kc(t.parent)){const ne=Cjt(oe);if(ne){M.typeUsages.push(ne);continue}}}z.valid=!1}return z}function k(T){const M=E.getSymbolAtLocation(T);return M&&DSe(M,E)}}function T8e(t,u){const s=gK(t);if(s){const d=u.getContextualTypeForObjectLiteralElement(s),f=d==null?void 0:d.getSymbol();if(f&&!(Wl(f)&6))return f}}function fut(t){const u=t.node;if(Cf(u.parent)||i_(u.parent)||g1(u.parent)||Gx(u.parent)||X1(u.parent)||ec(u.parent))return u}function L8e(t){if(Y1(t.node.parent))return t.node}function mut(t){if(t.node.parent){const u=t.node,s=u.parent;switch(s.kind){case 213:case 214:const d=ar(s,JE);if(d&&d.expression===u)return d;break;case 211:const f=ar(s,Iu);if(f&&f.parent&&f.name===u){const E=ar(f.parent,JE);if(E&&E.expression===f)return E}break;case 212:const p=ar(s,W0);if(p&&p.parent&&p.argumentExpression===u){const E=ar(p.parent,JE);if(E&&E.expression===p)return E}break}}}function vjt(t){if(t.node.parent){const u=t.node,s=u.parent;switch(s.kind){case 211:const d=ar(s,Iu);if(d&&d.expression===u)return d;break;case 212:const f=ar(s,W0);if(f&&f.expression===u)return f;break}}}function Cjt(t){const u=t.node;if(Lk(u)===2||Wj(u.parent))return u}function put(t,u,s){const d=TM(t,u),f=qbe(d);if(!bjt(d)&&f&&kjt(f,s)&&jm(f,d)&&!(f.body&&jm(f.body,d)))return f}function bjt(t){const u=Ln(t,P8);if(u){const s=Ln(u,d=>!P8(d));return!!s&&K0(s)}return!1}function yjt(t){return i3(t)&&(Dh(t.parent)||hm(t.parent))}function kjt(t,u){var s;if(!Fjt(t.parameters,u))return!1;switch(t.kind){case 262:return gut(t)&&uee(t,u);case 174:if(Cs(t.parent)){const d=T8e(t.name,u);return((s=d==null?void 0:d.declarations)==null?void 0:s.length)===1&&uee(t,u)}return uee(t,u);case 176:return Kc(t.parent)?gut(t.parent)&&uee(t,u):Eut(t.parent.parent)&&uee(t,u);case 218:case 219:return Eut(t.parent)}return!1}function uee(t,u){return!!t.body&&!u.isImplementationOfOverload(t)}function gut(t){return t.name?!0:!!rw(t,90)}function Fjt(t,u){return Sjt(t)>=xut&&ye(t,s=>Ajt(s,u))}function Ajt(t,u){if(J_(t)){const s=u.getTypeAtLocation(t);if(!u.isArrayType(s)&&!u.isTupleType(s))return!1}return!t.modifiers&&at(t.name)}function Eut(t){return ua(t)&&V8(t)&&at(t.name)&&!t.type}function N8e(t){return t.length>0&&nw(t[0].name)}function Sjt(t){return N8e(t)?t.length-1:t.length}function _ut(t){return N8e(t)&&(t=q.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function Bjt(t,u){return at(u)&&W4(u)===t?q.createShorthandPropertyAssignment(t):q.createPropertyAssignment(t,u)}function wjt(t,u){const s=_ut(t.parameters),d=J_(Cr(s)),f=d?u.slice(0,s.length-1):u,p=Kt(f,(v,b)=>{const B=gme(s[b]),k=Bjt(B,v);return Hf(k.name),Gc(k)&&Hf(k.initializer),zk(v,k),k});if(d&&u.length>=s.length){const v=u.slice(s.length-1),b=q.createPropertyAssignment(gme(Cr(s)),q.createArrayLiteralExpression(v));p.push(b)}return q.createObjectLiteralExpression(p,!1)}function Dut(t,u,s){const d=u.getTypeChecker(),f=_ut(t.parameters),p=Kt(f,k),E=q.createObjectBindingPattern(p),v=T(f);let b;ye(f,j)&&(b=q.createObjectLiteralExpression());const B=q.createParameterDeclaration(void 0,void 0,E,void 0,v,b);if(N8e(t.parameters)){const J=t.parameters[0],K=q.createParameterDeclaration(void 0,void 0,J.name,void 0,J.type);return Hf(K.name),zk(J.name,K.name),J.type&&(Hf(K.type),zk(J.type,K.type)),q.createNodeArray([K,B])}return q.createNodeArray([B]);function k(J){const K=q.createBindingElement(void 0,void 0,gme(J),J_(J)&&j(J)?q.createArrayLiteralExpression():J.initializer);return Hf(K),J.initializer&&K.initializer&&zk(J.initializer,K.initializer),K}function T(J){const K=Kt(J,M);return t_(q.createTypeLiteralNode(K),1)}function M(J){let K=J.type;!K&&(J.initializer||J_(J))&&(K=z(J));const Y=q.createPropertySignature(void 0,gme(J),j(J)?q.createToken(58):J.questionToken,K);return Hf(Y),zk(J.name,Y.name),J.type&&Y.type&&zk(J.type,Y.type),Y}function z(J){const K=d.getTypeAtLocation(J);return jM(K,J,u,s)}function j(J){if(J_(J)){const K=d.getTypeAtLocation(J);return!d.isTupleType(K)}return d.isOptionalParameter(J)}}function gme(t){return W4(t.name)}function Tjt(t){switch(t.parent.kind){case 263:const u=t.parent;return u.name?[u.name]:[H.checkDefined(rw(u,90),"Nameless class declaration should be a default export")];case 231:const d=t.parent,f=t.parent.parent,p=d.name;return p?[p,f.name]:[f.name]}}function Ljt(t){switch(t.kind){case 262:return t.name?[t.name]:[H.checkDefined(rw(t,90),"Nameless function declaration should be a default export")];case 174:return[t.name];case 176:const s=H.checkDefined(r0(t,137,t.getSourceFile()),"Constructor declaration should have constructor keyword");return t.parent.kind===231?[t.parent.parent.name,s]:[s];case 219:return[t.parent.name];case 218:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return H.assertNever(t,`Unexpected function declaration kind ${t.kind}`)}}var ree,xut,P8e,M8e,Njt=o({"src/services/refactors/convertParamsToDestructuredObject.ts"(){or(),o_(),ree="Convert parameters to destructured object",xut=1,P8e=Xa(F.Convert_parameters_to_destructured_object),M8e={name:ree,description:P8e,kind:"refactor.rewrite.parameters.toDestructured"},o3(ree,{kinds:[M8e.kind],getEditsForAction:_jt,getAvailableActions:Ejt})}}),Pjt={},Mjt=o({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){Njt()}});function zjt(t){const{file:u,startPosition:s}=t,d=vut(u,s),f=z8e(d),p=ns(f),E={name:Eme,description:_me,actions:[]};return p&&t.triggerReason!=="invoked"?_t:q_(f)&&(p||tu(f)&&I8e(f).isValidConcatenation)?(E.actions.push(Dme),[E]):t.preferences.provideRefactorNotApplicableReason?(E.actions.push({...Dme,notApplicableReason:Xa(F.Can_only_convert_string_concatenations_and_string_literals)}),[E]):_t}function vut(t,u){const s=ba(t,u),d=z8e(s);return!I8e(d).isValidConcatenation&&vf(d.parent)&&tu(d.parent.parent)?d.parent.parent:s}function Ijt(t,u){const{file:s,startPosition:d}=t,f=vut(s,d);switch(u){case _me:return{edits:Rjt(t,f)};default:return H.fail("invalid action")}}function Rjt(t,u){const s=z8e(u),d=t.file,f=Vjt(I8e(s),d),p=mv(d.text,s.end);if(p){const E=p[p.length-1],v={pos:p[0].pos,end:E.end};return nu.ChangeTracker.with(t,b=>{b.deleteRange(d,v),b.replaceNode(d,s,f)})}else return nu.ChangeTracker.with(t,E=>E.replaceNode(d,s,f))}function Ojt(t){return!(t.operatorToken.kind===64||t.operatorToken.kind===65)}function z8e(t){return Ln(t.parent,s=>{switch(s.kind){case 211:case 212:return!1;case 228:case 226:return!(tu(s.parent)&&Ojt(s.parent));default:return"quit"}})||t}function I8e(t){const u=E=>{if(!tu(E))return{nodes:[E],operators:[],validOperators:!0,hasString:ns(E)||B7(E)};const{nodes:v,operators:b,hasString:B,validOperators:k}=u(E.left);if(!(B||ns(E.right)||rY(E.right)))return{nodes:[E],operators:[],hasString:!1,validOperators:!0};const T=E.operatorToken.kind===40,M=k&&T;return v.push(E.right),b.push(E.operatorToken),{nodes:v,operators:b,hasString:!0,validOperators:M}},{nodes:s,operators:d,validOperators:f,hasString:p}=u(t);return{nodes:s,operators:d,isValidConcatenation:f&&p}}function jjt(t){return t.replace(/\\.|[$`]/g,u=>u[0]==="\\"?u:"\\"+u)}function Cut(t){const u=DB(t)||$ke(t)?-2:-1;return Vc(t).slice(1,u)}function but(t,u){const s=[];let d="",f="";for(;t{yut(se);const ae=ge===M.templateSpans.length-1,Ce=se.literal.text+(ae?j:""),ne=Cut(se.literal)+(ae?J:"");return q.createTemplateSpan(se.expression,Y&&ae?q.createTemplateTail(Ce,ne):q.createTemplateMiddle(Ce,ne))});B.push(...oe)}else{const oe=Y?q.createTemplateTail(j,J):q.createTemplateMiddle(j,J);f(K,oe),B.push(q.createTemplateSpan(M,oe))}}return q.createTemplateExpression(k,B)}function yut(t){const u=t.getSourceFile();RM(t,t.expression,u,3,!1),UH(t.expression,t.expression,u,3,!1)}function Hjt(t){return vf(t)&&(yut(t),t=t.expression),t}var Eme,_me,Dme,kut,Fut,Kjt=o({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){or(),o_(),Eme="Convert to template string",_me=Xa(F.Convert_to_template_string),Dme={name:Eme,description:_me,kind:"refactor.rewrite.string"},o3(Eme,{kinds:[Dme.kind],getEditsForAction:Ijt,getAvailableActions:zjt}),kut=(t,u)=>(s,d)=>{s(d,f)=>{for(;d.length>0;){const p=d.shift();RM(t[p],f,u,3,!1),s(p,f)}}}}),Wjt={},Gjt=o({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){Kjt()}});function Jjt(t){const u=Aut(t,t.triggerReason==="invoked");return u?oD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:aee,description:Cme,actions:[{...bme,notApplicableReason:u.error}]}]:_t:[{name:aee,description:Cme,actions:[bme]}]:_t}function $jt(t,u){const s=Aut(t);return H.assert(s&&!oD(s),"Expected applicable refactor info"),{edits:nu.ChangeTracker.with(t,f=>tVt(t.file,t.program.getTypeChecker(),f,s)),renameFilename:void 0,renameLocation:void 0}}function xme(t){return tu(t)||FB(t)}function Ujt(t){return Id(t)||zp(t)||Gl(t)}function vme(t){return xme(t)||Ujt(t)}function Aut(t,u=!0){const{file:s,program:d}=t,f=i9(t),p=f.length===0;if(p&&!u)return;const E=ba(s,f.start),v=aX(s,f.start+f.length),b=jc(E.pos,v&&v.end>=E.pos?v.getEnd():E.getEnd()),B=p?Xjt(E):Qjt(E,b),k=B&&vme(B)?eVt(B):void 0;if(!k)return{error:Xa(F.Could_not_find_convertible_access_expression)};const T=d.getTypeChecker();return FB(k)?qjt(k,T):Zjt(k)}function qjt(t,u){const s=t.condition,d=O8e(t.whenTrue);if(!d||u.isNullableType(u.getTypeAtLocation(d)))return{error:Xa(F.Could_not_find_convertible_access_expression)};if((Iu(s)||at(s))&&R8e(s,d.expression))return{finalExpression:d,occurrences:[s],expression:t};if(tu(s)){const f=Sut(d.expression,s);return f?{finalExpression:d,occurrences:f,expression:t}:{error:Xa(F.Could_not_find_matching_access_expressions)}}}function Zjt(t){if(t.operatorToken.kind!==56)return{error:Xa(F.Can_only_convert_logical_AND_access_chains)};const u=O8e(t.right);if(!u)return{error:Xa(F.Could_not_find_convertible_access_expression)};const s=Sut(u.expression,t.left);return s?{finalExpression:u,occurrences:s,expression:t}:{error:Xa(F.Could_not_find_matching_access_expressions)}}function Sut(t,u){const s=[];for(;tu(u)&&u.operatorToken.kind===56;){const f=R8e(s0(t),s0(u.right));if(!f)break;s.push(f),t=f,u=u.left}const d=R8e(t,u);return d&&s.push(d),s.length>0?s:void 0}function R8e(t,u){if(!(!at(u)&&!Iu(u)&&!W0(u)))return Yjt(t,u)?u:void 0}function Yjt(t,u){for(;(No(t)||Iu(t)||W0(t))&&fK(t)!==fK(u);)t=t.expression;for(;Iu(t)&&Iu(u)||W0(t)&&W0(u);){if(fK(t)!==fK(u))return!1;t=t.expression,u=u.expression}return at(t)&&at(u)&&t.getText()===u.getText()}function fK(t){if(at(t)||Nm(t))return t.getText();if(Iu(t))return fK(t.name);if(W0(t))return fK(t.argumentExpression)}function Qjt(t,u){for(;t.parent;){if(vme(t)&&u.length!==0&&t.end>=u.start+u.length)return t;t=t.parent}}function Xjt(t){for(;t.parent;){if(vme(t)&&!vme(t.parent))return t;t=t.parent}}function eVt(t){if(xme(t))return t;if(Gl(t)){const u=Q8(t),s=u==null?void 0:u.initializer;return s&&xme(s)?s:void 0}return t.expression&&xme(t.expression)?t.expression:void 0}function O8e(t){if(t=s0(t),tu(t))return O8e(t.left);if((Iu(t)||W0(t)||No(t))&&!Z1(t))return t}function But(t,u,s){if(Iu(u)||W0(u)||No(u)){const d=But(t,u.expression,s),f=s.length>0?s[s.length-1]:void 0,p=(f==null?void 0:f.getText())===u.expression.getText();if(p&&s.pop(),No(u))return p?q.createCallChain(d,q.createToken(29),u.typeArguments,u.arguments):q.createCallChain(d,u.questionDotToken,u.typeArguments,u.arguments);if(Iu(u))return p?q.createPropertyAccessChain(d,q.createToken(29),u.name):q.createPropertyAccessChain(d,u.questionDotToken,u.name);if(W0(u))return p?q.createElementAccessChain(d,q.createToken(29),u.argumentExpression):q.createElementAccessChain(d,u.questionDotToken,u.argumentExpression)}return u}function tVt(t,u,s,d,f){const{finalExpression:p,occurrences:E,expression:v}=d,b=E[E.length-1],B=But(u,p,E);B&&(Iu(B)||W0(B)||No(B))&&(tu(v)?s.replaceNodeRange(t,b,p,B):FB(v)&&s.replaceNode(t,v,q.createBinaryExpression(B,q.createToken(61),v.whenFalse)))}var aee,Cme,bme,iVt=o({"src/services/refactors/convertToOptionalChainExpression.ts"(){or(),o_(),aee="Convert to optional chain expression",Cme=Xa(F.Convert_to_optional_chain_expression),bme={name:aee,description:Cme,kind:"refactor.rewrite.expression.optionalChain"},o3(aee,{kinds:[bme.kind],getEditsForAction:$jt,getAvailableActions:Jjt})}}),nVt={},uVt=o({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){iVt()}});function wut(t){const u=t.kind,s=j8e(t.file,i9(t),t.triggerReason==="invoked"),d=s.targetRange;if(d===void 0){if(!s.errors||s.errors.length===0||!t.preferences.provideRefactorNotApplicableReason)return _t;const j=[];return $v(fw.kind,u)&&j.push({name:dw,description:fw.description,actions:[{...fw,notApplicableReason:z(s.errors)}]}),$v(hw.kind,u)&&j.push({name:dw,description:hw.description,actions:[{...hw,notApplicableReason:z(s.errors)}]}),j}const f=cVt(d,t);if(f===void 0)return _t;const p=[],E=new Map;let v;const b=[],B=new Map;let k,T=0;for(const{functionExtraction:j,constantExtraction:J}of f){if($v(fw.kind,u)){const K=j.description;j.errors.length===0?E.has(K)||(E.set(K,!0),p.push({description:K,name:`function_scope_${T}`,kind:fw.kind})):v||(v={description:K,name:`function_scope_${T}`,notApplicableReason:z(j.errors),kind:fw.kind})}if($v(hw.kind,u)){const K=J.description;J.errors.length===0?B.has(K)||(B.set(K,!0),b.push({description:K,name:`constant_scope_${T}`,kind:hw.kind})):k||(k={description:K,name:`constant_scope_${T}`,notApplicableReason:z(J.errors),kind:hw.kind})}T++}const M=[];return p.length?M.push({name:dw,description:Xa(F.Extract_function),actions:p}):t.preferences.provideRefactorNotApplicableReason&&v&&M.push({name:dw,description:Xa(F.Extract_function),actions:[v]}),b.length?M.push({name:dw,description:Xa(F.Extract_constant),actions:b}):t.preferences.provideRefactorNotApplicableReason&&k&&M.push({name:dw,description:Xa(F.Extract_constant),actions:[k]}),M.length?M:_t;function z(j){let J=j[0].messageText;return typeof J!="string"&&(J=J.messageText),J}}function Tut(t,u){const d=j8e(t.file,i9(t)).targetRange,f=/^function_scope_(\d+)$/.exec(u);if(f){const E=+f[1];return H.assert(isFinite(E),"Expected to parse a finite number from the function scope index"),sVt(d,t,E)}const p=/^constant_scope_(\d+)$/.exec(u);if(p){const E=+p[1];return H.assert(isFinite(E),"Expected to parse a finite number from the constant scope index"),lVt(d,t,E)}H.fail("Unrecognized action name")}function j8e(t,u,s=!0){const{length:d}=u;if(d===0&&!s)return{errors:[zd(t,u.start,d,E1.cannotExtractEmpty)]};const f=d===0&&s,p=q9e(t,u.start),E=aX(t,gc(u)),v=p&&E&&s?rVt(p,E,t):u,b=f?wVt(p):WH(p,t,v),B=f?b:WH(E,t,v);let k=0,T;if(!b||!B)return{errors:[zd(t,u.start,d,E1.cannotExtractRange)]};if(b.flags&16777216)return{errors:[zd(t,u.start,d,E1.cannotExtractJSDoc)]};if(b.parent!==B.parent)return{errors:[zd(t,u.start,d,E1.cannotExtractRange)]};if(b!==B){if(!Nut(b.parent))return{errors:[zd(t,u.start,d,E1.cannotExtractRange)]};const oe=[];for(const se of b.parent.statements){if(se===b||oe.length){const ge=Y(se);if(ge)return{errors:ge};oe.push(se)}if(se===B)break}return oe.length?{targetRange:{range:oe,facts:k,thisNode:T}}:{errors:[zd(t,u.start,d,E1.cannotExtractRange)]}}if(zp(b)&&!b.expression)return{errors:[zd(t,u.start,d,E1.cannotExtractRange)]};const M=j(b),z=J(M)||Y(M);if(z)return{errors:z};return{targetRange:{range:aVt(M),facts:k,thisNode:T}};function j(oe){if(zp(oe)){if(oe.expression)return oe.expression}else if(Gl(oe)||Fd(oe)){const se=Gl(oe)?oe.declarationList.declarations:oe.declarations;let ge=0,ae;for(const Ce of se)Ce.initializer&&(ge++,ae=Ce.initializer);if(ge===1)return ae}else if(ua(oe)&&oe.initializer)return oe.initializer;return oe}function J(oe){if(at(Id(oe)?oe.expression:oe))return[Bu(oe,E1.cannotExtractIdentifier)]}function K(oe,se){let ge=oe;for(;ge!==se;){if(ge.kind===172){To(ge)&&(k|=32);break}else if(ge.kind===169){Lm(ge).kind===176&&(k|=32);break}else ge.kind===174&&To(ge)&&(k|=32);ge=ge.parent}}function Y(oe){let se;if((Se=>{Se[Se.None=0]="None",Se[Se.Break=1]="Break",Se[Se.Continue=2]="Continue",Se[Se.Return=4]="Return"})(se||(se={})),H.assert(oe.pos<=oe.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),H.assert(!fg(oe.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!na(oe)&&!(q_(oe)&&Lut(oe))&&!G8e(oe))return[Bu(oe,E1.statementOrExpressionExpected)];if(oe.flags&33554432)return[Bu(oe,E1.cannotExtractAmbientBlock)];const ge=Zd(oe);ge&&K(oe,ge);let ae,Ce=4,ne;if(ve(oe),k&8){const Se=ef(oe,!1,!1);(Se.kind===262||Se.kind===174&&Se.parent.kind===210||Se.kind===218)&&(k|=16)}return ae;function ve(Se){if(ae)return!0;if(Y1(Se)){const pe=Se.kind===260?Se.parent.parent:Se;if(Xu(pe,32))return(ae||(ae=[])).push(Bu(Se,E1.cannotExtractExportedEntity)),!0}switch(Se.kind){case 272:return(ae||(ae=[])).push(Bu(Se,E1.cannotExtractImport)),!0;case 277:return(ae||(ae=[])).push(Bu(Se,E1.cannotExtractExportedEntity)),!0;case 108:if(Se.parent.kind===213){const pe=Zd(Se);if(pe===void 0||pe.pos=u.start+u.length)return(ae||(ae=[])).push(Bu(Se,E1.cannotExtractSuper)),!0}else k|=8,T=Se;break;case 219:ro(Se,function pe(fe){if(nw(fe))k|=8,T=Se;else{if(gr(fe)||xo(fe)&&!G0(fe))return!1;ro(fe,pe)}});case 263:case 262:ca(Se.parent)&&Se.parent.externalModuleIndicator===void 0&&(ae||(ae=[])).push(Bu(Se,E1.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const Ne=Ce;switch(Se.kind){case 245:Ce&=-5;break;case 258:Ce=0;break;case 241:Se.parent&&Se.parent.kind===258&&Se.parent.finallyBlock===Se&&(Ce=4);break;case 297:case 296:Ce|=1;break;default:wx(Se,!1)&&(Ce|=3);break}switch(Se.kind){case 197:case 110:k|=8,T=Se;break;case 256:{const pe=Se.label;(ne||(ne=[])).push(pe.escapedText),ro(Se,ve),ne.pop();break}case 252:case 251:{const pe=Se.label;pe?Ft(ne,pe.escapedText)||(ae||(ae=[])).push(Bu(Se,E1.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Ce&(Se.kind===252?1:2)||(ae||(ae=[])).push(Bu(Se,E1.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:k|=4;break;case 229:k|=2;break;case 253:Ce&4?k|=1:(ae||(ae=[])).push(Bu(Se,E1.cannotExtractRangeContainingConditionalReturnStatement));break;default:ro(Se,ve);break}Ce=Ne}}}function rVt(t,u,s){const d=t.getStart(s);let f=u.getEnd();return s.text.charCodeAt(f)===59&&f++,{start:d,length:f-d}}function aVt(t){if(na(t))return[t];if(q_(t))return Id(t.parent)?[t.parent]:t;if(G8e(t))return t}function V8e(t){return G0(t)?e0e(t.body):K0(t)||ca(t)||uE(t)||gr(t)}function oVt(t){let u=_5(t.range)?Mn(t.range):t.range;if(t.facts&8&&!(t.facts&16)){const d=Zd(u);if(d){const f=Ln(u,K0);return f?[f,d]:[d]}}const s=[];for(;;)if(u=u.parent,u.kind===169&&(u=Ln(u,d=>K0(d)).parent),V8e(u)&&(s.push(u),u.kind===312))return s}function sVt(t,u,s){const{scopes:d,readsAndWrites:{target:f,usagesPerScope:p,functionErrorsPerScope:E,exposedVariableDeclarations:v}}=H8e(t,u);return H.assert(!E[s].length,"The extraction went missing? How?"),u.cancellationToken.throwIfCancellationRequested(),gVt(f,d[s],p[s],v,t,u)}function lVt(t,u,s){const{scopes:d,readsAndWrites:{target:f,usagesPerScope:p,constantErrorsPerScope:E,exposedVariableDeclarations:v}}=H8e(t,u);H.assert(!E[s].length,"The extraction went missing? How?"),H.assert(v.length===0,"Extract constant accepted a range containing a variable declaration?"),u.cancellationToken.throwIfCancellationRequested();const b=Wt(f)?f:f.statements[0].expression;return EVt(b,d[s],p[s],t.facts,u)}function cVt(t,u){const{scopes:s,readsAndWrites:{functionErrorsPerScope:d,constantErrorsPerScope:f}}=H8e(t,u);return s.map((E,v)=>{const b=dVt(E),B=hVt(E),k=K0(E)?fVt(E):gr(E)?mVt(E):pVt(E);let T,M;return k===1?(T=X_(Xa(F.Extract_to_0_in_1_scope),[b,"global"]),M=X_(Xa(F.Extract_to_0_in_1_scope),[B,"global"])):k===0?(T=X_(Xa(F.Extract_to_0_in_1_scope),[b,"module"]),M=X_(Xa(F.Extract_to_0_in_1_scope),[B,"module"])):(T=X_(Xa(F.Extract_to_0_in_1),[b,k]),M=X_(Xa(F.Extract_to_0_in_1),[B,k])),v===0&&!gr(E)&&(M=X_(Xa(F.Extract_to_0_in_enclosing_scope),[B])),{functionExtraction:{description:T,errors:d[v]},constantExtraction:{description:M,errors:f[v]}}})}function H8e(t,u){const{file:s}=u,d=oVt(t),f=SVt(t,s),p=BVt(t,d,f,s,u.program.getTypeChecker(),u.cancellationToken);return{scopes:d,readsAndWrites:p}}function dVt(t){return K0(t)?"inner function":gr(t)?"method":"function"}function hVt(t){return gr(t)?"readonly field":"constant"}function fVt(t){switch(t.kind){case 176:return"constructor";case 218:case 262:return t.name?`function '${t.name.text}'`:OX;case 219:return"arrow function";case 174:return`method '${t.name.getText()}'`;case 177:return`'get ${t.name.getText()}'`;case 178:return`'set ${t.name.getText()}'`;default:H.assertNever(t,`Unexpected scope kind ${t.kind}`)}}function mVt(t){return t.kind===263?t.name?`class '${t.name.text}'`:"anonymous class declaration":t.name?`class expression '${t.name.text}'`:"anonymous class expression"}function pVt(t){return t.kind===268?`namespace '${t.parent.name.getText()}'`:t.externalModuleIndicator?0:1}function gVt(t,u,{usages:s,typeParameterUsages:d,substitutions:f},p,E,v){const b=v.program.getTypeChecker(),B=Is(v.program.getCompilerOptions()),k=M1.createImportAdder(v.file,v.program,v.preferences,v.host),T=u.getSourceFile(),M=Ik(gr(u)?"newMethod":"newFunction",T),z=eu(u),j=q.createIdentifier(M);let J;const K=[],Y=[];let oe;s.forEach((je,Ke)=>{let Gt;if(!z){let Ie=b.getTypeOfSymbolAtLocation(je.symbol,je.node);Ie=b.getBaseTypeOfLiteralType(Ie),Gt=M1.typeToAutoImportableTypeNode(b,k,Ie,u,B,1)}const Yt=q.createParameterDeclaration(void 0,void 0,Ke,void 0,Gt);K.push(Yt),je.usage===2&&(oe||(oe=[])).push(je),Y.push(q.createIdentifier(Ke))});const ge=Ea(d.values(),je=>({type:je,declaration:DVt(je,v.startPosition)})).sort(xVt),ae=ge.length===0?void 0:Ui(ge,({declaration:je})=>je),Ce=ae!==void 0?ae.map(je=>q.createTypeReferenceNode(je.name,void 0)):void 0;if(Wt(t)&&!z){const je=b.getContextualType(t);J=b.typeToTypeNode(je,u,1)}const{body:ne,returnValueProperty:ve}=CVt(t,p,oe,f,!!(E.facts&1));Hf(ne);let Se;const Ne=!!(E.facts&16);if(gr(u)){const je=z?[]:[q.createModifier(123)];E.facts&32&&je.push(q.createModifier(126)),E.facts&4&&je.push(q.createModifier(134)),Se=q.createMethodDeclaration(je.length?je:void 0,E.facts&2?q.createToken(42):void 0,j,void 0,ae,K,J,ne)}else Ne&&K.unshift(q.createParameterDeclaration(void 0,void 0,"this",void 0,b.typeToTypeNode(b.getTypeAtLocation(E.thisNode),u,1),void 0)),Se=q.createFunctionDeclaration(E.facts&4?[q.createToken(134)]:void 0,E.facts&2?q.createToken(42):void 0,j,ae,K,J,ne);const pe=nu.ChangeTracker.fromContext(v),fe=(_5(E.range)?Cr(E.range):E.range).end,xe=kVt(fe,u);xe?pe.insertNodeBefore(v.file,xe,Se,!0):pe.insertNodeAtEndOfScope(v.file,u,Se),k.writeFixes(pe);const Be=[],We=vVt(u,E,M);Ne&&Y.unshift(q.createIdentifier("this"));let Ae=q.createCallExpression(Ne?q.createPropertyAccessExpression(We,"call"):We,Ce,Y);if(E.facts&2&&(Ae=q.createYieldExpression(q.createToken(42),Ae)),E.facts&4&&(Ae=q.createAwaitExpression(Ae)),W8e(t)&&(Ae=q.createJsxExpression(void 0,Ae)),p.length&&!oe)if(H.assert(!ve,"Expected no returnValueProperty"),H.assert(!(E.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),p.length===1){const je=p[0];Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ol(je.name),void 0,ol(je.type),Ae)],je.parent.flags)))}else{const je=[],Ke=[];let Gt=p[0].parent.flags,Yt=!1;for(const st of p){je.push(q.createBindingElement(void 0,void 0,ol(st.name)));const St=b.typeToTypeNode(b.getBaseTypeOfLiteralType(b.getTypeAtLocation(st)),u,1);Ke.push(q.createPropertySignature(void 0,st.symbol.name,void 0,St)),Yt=Yt||st.type!==void 0,Gt=Gt&st.parent.flags}const Ie=Yt?q.createTypeLiteralNode(Ke):void 0;Ie&&Qn(Ie,1),Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(q.createObjectBindingPattern(je),void 0,Ie,Ae)],Gt)))}else if(p.length||oe){if(p.length)for(const Ke of p){let Gt=Ke.parent.flags;Gt&2&&(Gt=Gt&-3|1),Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(Ke.symbol.name,void 0,Ze(Ke.type))],Gt)))}ve&&Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ve,void 0,Ze(J))],1)));const je=K8e(p,oe);ve&&je.unshift(q.createShorthandPropertyAssignment(ve)),je.length===1?(H.assert(!ve,"Shouldn't have returnValueProperty here"),Be.push(q.createExpressionStatement(q.createAssignment(je[0].name,Ae))),E.facts&1&&Be.push(q.createReturnStatement())):(Be.push(q.createExpressionStatement(q.createAssignment(q.createObjectLiteralExpression(je),Ae))),ve&&Be.push(q.createReturnStatement(q.createIdentifier(ve))))}else E.facts&1?Be.push(q.createReturnStatement(Ae)):_5(E.range)?Be.push(q.createExpressionStatement(Ae)):Be.push(Ae);_5(E.range)?pe.replaceNodeRangeWithNodes(v.file,Mn(E.range),Cr(E.range),Be):pe.replaceNodeWithNodes(v.file,E.range,Be);const De=pe.getChanges(),Ge=(_5(E.range)?Mn(E.range):E.range).getSourceFile().fileName,ft=$H(De,Ge,M,!1);return{renameFilename:Ge,renameLocation:ft,edits:De};function Ze(je){if(je===void 0)return;const Ke=ol(je);let Gt=Ke;for(;N7(Gt);)Gt=Gt.type;return Lv(Gt)&&Le(Gt.types,Yt=>Yt.kind===157)?Ke:q.createUnionTypeNode([Ke,q.createKeywordTypeNode(157)])}}function EVt(t,u,{substitutions:s},d,f){const p=f.program.getTypeChecker(),E=u.getSourceFile(),v=Iu(t)&&!gr(u)&&!p.resolveName(t.name.text,t,111551,!1)&&!Xr(t.name)&&!Ev(t.name)?t.name.text:Ik(gr(u)?"newProperty":"newLocal",E),b=eu(u);let B=b||!p.isContextSensitive(t)?void 0:p.typeToTypeNode(p.getContextualType(t),u,1),k=bVt(s0(t),s);({variableType:B,initializer:k}=J(B,k)),Hf(k);const T=nu.ChangeTracker.fromContext(f);if(gr(u)){H.assert(!b,"Cannot extract to a JS class");const K=[];K.push(q.createModifier(123)),d&32&&K.push(q.createModifier(126)),K.push(q.createModifier(148));const Y=q.createPropertyDeclaration(K,v,void 0,B,k);let oe=q.createPropertyAccessExpression(d&32?q.createIdentifier(u.name.getText()):q.createThis(),q.createIdentifier(v));W8e(t)&&(oe=q.createJsxExpression(void 0,oe));const se=t.pos,ge=FVt(se,u);T.insertNodeBefore(f.file,ge,Y,!0),T.replaceNode(f.file,t,oe)}else{const K=q.createVariableDeclaration(v,void 0,B,k),Y=_Vt(t,u);if(Y){T.insertNodeBefore(f.file,Y,K);const oe=q.createIdentifier(v);T.replaceNode(f.file,t,oe)}else if(t.parent.kind===244&&u===Ln(t,V8e)){const oe=q.createVariableStatement(void 0,q.createVariableDeclarationList([K],2));T.replaceNode(f.file,t.parent,oe)}else{const oe=q.createVariableStatement(void 0,q.createVariableDeclarationList([K],2)),se=AVt(t,u);if(se.pos===0?T.insertNodeAtTopOfFile(f.file,oe,!1):T.insertNodeBefore(f.file,se,oe,!1),t.parent.kind===244)T.delete(f.file,t.parent);else{let ge=q.createIdentifier(v);W8e(t)&&(ge=q.createJsxExpression(void 0,ge)),T.replaceNode(f.file,t,ge)}}}const M=T.getChanges(),z=t.getSourceFile().fileName,j=$H(M,z,v,!0);return{renameFilename:z,renameLocation:j,edits:M};function J(K,Y){if(K===void 0)return{variableType:K,initializer:Y};if(!F0(Y)&&!G0(Y)||Y.typeParameters)return{variableType:K,initializer:Y};const oe=p.getTypeAtLocation(t),se=Aa(p.getSignaturesOfType(oe,0));if(!se)return{variableType:K,initializer:Y};if(se.getTypeParameters())return{variableType:K,initializer:Y};const ge=[];let ae=!1;for(const Ce of Y.parameters)if(Ce.type)ge.push(Ce);else{const ne=p.getTypeAtLocation(Ce);ne===p.getAnyType()&&(ae=!0),ge.push(q.updateParameterDeclaration(Ce,Ce.modifiers,Ce.dotDotDotToken,Ce.name,Ce.questionToken,Ce.type||p.typeToTypeNode(ne,u,1),Ce.initializer))}if(ae)return{variableType:K,initializer:Y};if(K=void 0,G0(Y))Y=q.updateArrowFunction(Y,Op(t)?h2(t):void 0,Y.typeParameters,ge,Y.type||p.typeToTypeNode(se.getReturnType(),u,1),Y.equalsGreaterThanToken,Y.body);else{if(se&&se.thisParameter){const Ce=Hi(ge);if(!Ce||at(Ce.name)&&Ce.name.escapedText!=="this"){const ne=p.getTypeOfSymbolAtLocation(se.thisParameter,t);ge.splice(0,0,q.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(ne,u,1)))}}Y=q.updateFunctionExpression(Y,Op(t)?h2(t):void 0,Y.asteriskToken,Y.name,Y.typeParameters,ge,Y.type||p.typeToTypeNode(se.getReturnType(),u,1),Y.body)}return{variableType:K,initializer:Y}}}function _Vt(t,u){let s;for(;t!==void 0&&t!==u;){if(ua(t)&&t.initializer===s&&Fd(t.parent)&&t.parent.declarations.length>1)return t;s=t,t=t.parent}}function DVt(t,u){let s;const d=t.symbol;if(d&&d.declarations)for(const f of d.declarations)(s===void 0||f.pos0;if(fo(t)&&!p&&d.size===0)return{body:q.createBlock(t.statements,!0),returnValueProperty:void 0};let E,v=!1;const b=q.createNodeArray(fo(t)?t.statements.slice(0):[na(t)?t:q.createReturnStatement(s0(t))]);if(p||d.size){const k=Fn(b,B,na).slice();if(p&&!f&&na(t)){const T=K8e(u,s);T.length===1?k.push(q.createReturnStatement(T[0].name)):k.push(q.createReturnStatement(q.createObjectLiteralExpression(T)))}return{body:q.createBlock(k,!0),returnValueProperty:E}}else return{body:q.createBlock(b,!0),returnValueProperty:void 0};function B(k){if(!v&&zp(k)&&p){const T=K8e(u,s);return k.expression&&(E||(E="__return"),T.unshift(q.createPropertyAssignment(E,yt(k.expression,B,Wt)))),T.length===1?q.createReturnStatement(T[0].name):q.createReturnStatement(q.createObjectLiteralExpression(T))}else{const T=v;v=v||K0(k)||gr(k);const M=d.get(Js(k).toString()),z=M?ol(M):un(k,B,Eg);return v=T,z}}}function bVt(t,u){return u.size?s(t):t;function s(d){const f=u.get(Js(d).toString());return f?ol(f):un(d,s,Eg)}}function yVt(t){if(K0(t)){const u=t.body;if(fo(u))return u.statements}else{if(uE(t)||ca(t))return t.statements;if(gr(t))return t.members}return _t}function kVt(t,u){return Le(yVt(u),s=>s.pos>=t&&K0(s)&&!dc(s))}function FVt(t,u){const s=u.members;H.assert(s.length>0,"Found no members");let d,f=!0;for(const p of s){if(p.pos>t)return d||s[0];if(f&&!bo(p)){if(d!==void 0)return p;f=!1}d=p}return d===void 0?H.fail():d}function AVt(t,u){H.assert(!gr(u));let s;for(let d=t;d!==u;d=d.parent)V8e(d)&&(s=d);for(let d=(s||t).parent;;d=d.parent){if(Nut(d)){let f;for(const p of d.statements){if(p.pos>t.pos)break;f=p}return!f&&AB(d)?(H.assert(AV(d.parent.parent),"Grandparent isn't a switch statement"),d.parent.parent):H.checkDefined(f,"prevStatement failed to get set")}H.assert(d!==u,"Didn't encounter a block-like before encountering scope")}}function K8e(t,u){const s=Kt(t,f=>q.createShorthandPropertyAssignment(f.symbol.name)),d=Kt(u,f=>q.createShorthandPropertyAssignment(f.symbol.name));return s===void 0?d:d===void 0?s:s.concat(d)}function _5(t){return Ha(t)}function SVt(t,u){return _5(t.range)?{pos:Mn(t.range).getStart(u),end:Cr(t.range).getEnd()}:t.range}function BVt(t,u,s,d,f,p){const E=new Map,v=[],b=[],B=[],k=[],T=[],M=new Map,z=[];let j;const J=_5(t.range)?t.range.length===1&&Id(t.range[0])?t.range[0].expression:void 0:t.range;let K;if(J===void 0){const xe=t.range,Be=Mn(xe).getStart(),We=Cr(xe).end;K=zd(d,Be,We-Be,E1.expressionExpected)}else f.getTypeAtLocation(J).flags&147456&&(K=Bu(J,E1.uselessConstantType));for(const xe of u){v.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),b.push(new Map),B.push([]);const Be=[];K&&Be.push(K),gr(xe)&&eu(xe)&&Be.push(Bu(xe,E1.cannotExtractToJSClass)),G0(xe)&&!fo(xe.body)&&Be.push(Bu(xe,E1.cannotExtractToExpressionArrowFunction)),k.push(Be)}const Y=new Map,oe=_5(t.range)?q.createBlock(t.range):t.range,se=_5(t.range)?Mn(t.range):t.range,ge=ae(se);if(ne(oe),ge&&!_5(t.range)&&!aE(t.range)){const xe=f.getContextualType(t.range);Ce(xe)}if(E.size>0){const xe=new Map;let Be=0;for(let We=se;We!==void 0&&Be{v[Be].typeParameterUsages.set(De,Ae)}),Be++),D0e(We))for(const Ae of Ax(We)){const De=f.getTypeAtLocation(Ae);E.has(De.id.toString())&&xe.set(De.id.toString(),De)}H.assert(Be===u.length,"Should have iterated all scopes")}if(T.length){const xe=_0e(u[0],u[0].parent)?u[0]:ZE(u[0]);ro(xe,Ne)}for(let xe=0;xe0&&(Be.usages.size>0||Be.typeParameterUsages.size>0)){const De=_5(t.range)?t.range[0]:t.range;k[xe].push(Bu(De,E1.cannotAccessVariablesFromNestedScopes))}t.facts&16&&gr(u[xe])&&B[xe].push(Bu(t.thisNode,E1.cannotExtractFunctionsContainingThisToMethod));let We=!1,Ae;if(v[xe].usages.forEach(De=>{De.usage===2&&(We=!0,De.symbol.flags&106500&&De.symbol.valueDeclaration&&If(De.symbol.valueDeclaration,8)&&(Ae=De.symbol.valueDeclaration))}),H.assert(_5(t.range)||z.length===0,"No variable declarations expected if something was extracted"),We&&!_5(t.range)){const De=Bu(t.range,E1.cannotWriteInExpression);B[xe].push(De),k[xe].push(De)}else if(Ae&&xe>0){const De=Bu(Ae,E1.cannotExtractReadonlyPropertyInitializerOutsideConstructor);B[xe].push(De),k[xe].push(De)}else if(j){const De=Bu(j,E1.cannotExtractExportedEntity);B[xe].push(De),k[xe].push(De)}}return{target:oe,usagesPerScope:v,functionErrorsPerScope:B,constantErrorsPerScope:k,exposedVariableDeclarations:z};function ae(xe){return!!Ln(xe,Be=>D0e(Be)&&Ax(Be).length!==0)}function Ce(xe){const Be=f.getSymbolWalker(()=>(p.throwIfCancellationRequested(),!0)),{visitedTypes:We}=Be.walkType(xe);for(const Ae of We)Ae.isTypeParameter()&&E.set(Ae.id.toString(),Ae)}function ne(xe,Be=1){if(ge){const We=f.getTypeAtLocation(xe);Ce(We)}if(Y1(xe)&&xe.symbol&&T.push(xe),od(xe))ne(xe.left,2),ne(xe.right);else if(abe(xe))ne(xe.operand,2);else if(Iu(xe)||W0(xe))ro(xe,ne);else if(at(xe)){if(!xe.parent||xf(xe.parent)&&xe!==xe.parent.left||Iu(xe.parent)&&xe!==xe.parent.expression)return;ve(xe,Be,U_(xe))}else ro(xe,ne)}function ve(xe,Be,We){const Ae=Se(xe,Be,We);if(Ae)for(let De=0;De=Be)return De;if(Y.set(De,Be),He){for(const Ze of v)Ze.usages.get(xe.text)&&Ze.usages.set(xe.text,{usage:Be,symbol:Ae,node:xe});return De}const Ge=Ae.getDeclarations(),ft=Ge&&Le(Ge,Ze=>Ze.getSourceFile()===d);if(ft&&!MH(s,ft.getStart(),ft.end)){if(t.facts&2&&Be===2){const Ze=Bu(xe,E1.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const je of B)je.push(Ze);for(const je of k)je.push(Ze)}for(let Ze=0;ZeAe.symbol===Be);if(We)if(ua(We)){const Ae=We.symbol.id.toString();M.has(Ae)||(z.push(We),M.set(Ae,!0))}else j=j||We}ro(xe,Ne)}function pe(xe){return xe.parent&&mm(xe.parent)&&xe.parent.name===xe?f.getShorthandAssignmentValueSymbol(xe.parent):f.getSymbolAtLocation(xe)}function fe(xe,Be,We){if(!xe)return;const Ae=xe.getDeclarations();if(Ae&&Ae.some(He=>He.parent===Be))return q.createIdentifier(xe.name);const De=fe(xe.parent,Be,We);if(De!==void 0)return We?q.createQualifiedName(De,q.createIdentifier(xe.name)):q.createPropertyAccessExpression(De,xe.name)}}function wVt(t){return Ln(t,u=>u.parent&&Lut(u)&&!tu(u.parent))}function Lut(t){const{parent:u}=t;switch(u.kind){case 306:return!1}switch(t.kind){case 11:return u.kind!==272&&u.kind!==276;case 230:case 206:case 208:return!1;case 80:return u.kind!==208&&u.kind!==276&&u.kind!==281}return!0}function Nut(t){switch(t.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function W8e(t){return G8e(t)||(u3(t)||vk(t)||j2(t))&&(u3(t.parent)||j2(t.parent))}function G8e(t){return ns(t)&&t.parent&&aE(t.parent)}var dw,hw,fw,E1,J8e,TVt=o({"src/services/refactors/extractSymbol.ts"(){or(),o_(),dw="Extract Symbol",hw={name:"Extract Constant",description:Xa(F.Extract_constant),kind:"refactor.extract.constant"},fw={name:"Extract Function",description:Xa(F.Extract_function),kind:"refactor.extract.function"},o3(dw,{kinds:[hw.kind,fw.kind],getEditsForAction:Tut,getAvailableActions:wut}),(t=>{function u(s){return{message:s,code:0,category:3,key:s}}t.cannotExtractRange=u("Cannot extract range."),t.cannotExtractImport=u("Cannot extract import statement."),t.cannotExtractSuper=u("Cannot extract super call."),t.cannotExtractJSDoc=u("Cannot extract JSDoc."),t.cannotExtractEmpty=u("Cannot extract empty range."),t.expressionExpected=u("expression expected."),t.uselessConstantType=u("No reason to extract constant of type."),t.statementOrExpressionExpected=u("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=u("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=u("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=u("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=u("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=u("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=u("Function will not visible in the new scope."),t.cannotExtractIdentifier=u("Select more than a single identifier."),t.cannotExtractExportedEntity=u("Cannot extract exported declaration"),t.cannotWriteInExpression=u("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=u("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=u("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=u("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=u("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=u("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=u("Cannot extract functions containing this to method")})(E1||(E1={})),J8e=(t=>(t[t.None=0]="None",t[t.HasReturn=1]="HasReturn",t[t.IsGenerator=2]="IsGenerator",t[t.IsAsyncFunction=4]="IsAsyncFunction",t[t.UsesThis=8]="UsesThis",t[t.UsesThisInFunction=16]="UsesThisInFunction",t[t.InStaticRegion=32]="InStaticRegion",t))(J8e||{})}}),Put={};h(Put,{Messages:()=>E1,RangeFacts:()=>J8e,getRangeToExtract:()=>j8e,getRefactorActionsToExtractSymbol:()=>wut,getRefactorEditsToExtractSymbol:()=>Tut});var LVt=o({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){TVt()}}),oee,yme,kme,NVt=o({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){or(),o_(),oee="Generate 'get' and 'set' accessors",yme=Xa(F.Generate_get_and_set_accessors),kme={name:oee,description:yme,kind:"refactor.rewrite.property.generateAccessors"},o3(oee,{kinds:[kme.kind],getEditsForAction:function(u,s){if(!u.endPosition)return;const d=M1.getAccessorConvertiblePropertyAtPosition(u.file,u.program,u.startPosition,u.endPosition);H.assert(d&&!oD(d),"Expected applicable refactor info");const f=M1.generateAccessorFromProperty(u.file,u.program,u.startPosition,u.endPosition,u,s);if(!f)return;const p=u.file.fileName,E=d.renameAccessor?d.accessorName:d.fieldName,b=(at(E)?0:-1)+$H(f,p,E.text,eo(d.declaration));return{renameFilename:p,renameLocation:b,edits:f}},getAvailableActions(t){if(!t.endPosition)return _t;const u=M1.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,t.triggerReason==="invoked");return u?oD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:oee,description:yme,actions:[{...kme,notApplicableReason:u.error}]}]:_t:[{name:oee,description:yme,actions:[kme]}]:_t}})}}),PVt={},MVt=o({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){NVt()}});function zVt(t){const u=Mut(t);if(u&&!oD(u))return{renameFilename:void 0,renameLocation:void 0,edits:nu.ChangeTracker.with(t,d=>RVt(t.file,d,u.declaration,u.returnTypeNode))}}function IVt(t){const u=Mut(t);return u?oD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:see,description:Fme,actions:[{...lee,notApplicableReason:u.error}]}]:_t:[{name:see,description:Fme,actions:[lee]}]:_t}function RVt(t,u,s,d){const f=r0(s,22,t),p=G0(s)&&f===void 0,E=p?Mn(s.parameters):f;E&&(p&&(u.insertNodeBefore(t,E,q.createToken(21)),u.insertNodeAfter(t,E,q.createToken(22))),u.insertNodeAt(t,E.end,d,{prefix:": "}))}function Mut(t){if(eu(t.file)||!$v(lee.kind,t.kind))return;const u=rf(t.file,t.startPosition),s=Ln(u,E=>fo(E)||E.parent&&G0(E.parent)&&(E.kind===39||E.parent.body===E)?"quit":OVt(E));if(!s||!s.body||s.type)return{error:Xa(F.Return_type_must_be_inferred_from_a_function)};const d=t.program.getTypeChecker(),f=jVt(d,s);if(!f)return{error:Xa(F.Could_not_determine_function_return_type)};const p=d.typeToTypeNode(f,s,1);if(p)return{declaration:s,returnTypeNode:p}}function OVt(t){switch(t.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function jVt(t,u){if(t.isImplementationOfOverload(u)){const d=t.getTypeAtLocation(u).getCallSignatures();if(d.length>1)return t.getUnionType(Ui(d,f=>f.getReturnType()))}const s=t.getSignatureFromDeclaration(u);if(s)return t.getReturnTypeOfSignature(s)}var see,Fme,lee,VVt=o({"src/services/refactors/inferFunctionReturnType.ts"(){or(),o_(),see="Infer function return type",Fme=Xa(F.Infer_function_return_type),lee={name:see,description:Fme,kind:"refactor.rewrite.function.returnType"},o3(see,{kinds:[lee.kind],getEditsForAction:zVt,getAvailableActions:IVt})}}),HVt={},KVt=o({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){VVt()}}),u9={};h(u9,{addExportToChanges:()=>y8e,addExports:()=>x8e,addNewFileToTsconfig:()=>p8e,addOrRemoveBracesToArrowFunction:()=>njt,convertArrowFunctionOrFunctionExpression:()=>pjt,convertParamsToDestructuredObject:()=>Pjt,convertStringOrTemplateLiteral:()=>Wjt,convertToOptionalChainExpression:()=>nVt,createNewFileName:()=>k8e,createOldFileImportsFromTargetFile:()=>D8e,deleteMovedStatements:()=>QX,deleteUnusedImports:()=>v8e,deleteUnusedOldImports:()=>g8e,doChangeNamedToNamespaceOrDefault:()=>Hnt,extractSymbol:()=>Put,filterImport:()=>oK,forEachImportInStatement:()=>aK,generateGetAccessorAndSetAccessor:()=>PVt,getApplicableRefactors:()=>iOt,getEditsForRefactor:()=>nOt,getStatementsToMove:()=>sK,getTopLevelDeclarationStatement:()=>dme,getUsageInfo:()=>eee,inferFunctionReturnType:()=>HVt,isRefactorErrorInfo:()=>oD,isTopLevelDeclaration:()=>tee,makeImportOrRequire:()=>XX,moduleSpecifierFromImport:()=>rK,nameOfTopLevelDeclaration:()=>b8e,refactorKindBeginsWith:()=>$v,registerRefactor:()=>o3,updateImportsInOtherFiles:()=>E8e});var o_=o({"src/services/_namespaces/ts.refactor.ts"(){znt(),cOt(),pOt(),COt(),bOt(),kOt(),BOt(),ZOt(),ujt(),gjt(),Mjt(),Gjt(),uVt(),LVt(),MVt(),KVt()}});function zut(t,u,s,d){const f=$8e(t,u,s,d);H.assert(f.spans.length%3===0);const p=f.spans,E=[];for(let v=0;v{f.push(E.getStart(u),E.getWidth(u),(v+1<<8)+b)},d),f}function GVt(t,u,s,d,f){const p=t.getTypeChecker();let E=!1;function v(b){switch(b.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:f.throwIfCancellationRequested()}if(!b||!FU(s,b.pos,b.getFullWidth())||b.getFullWidth()===0)return;const B=E;if((u3(b)||vk(b))&&(E=!0),ZP(b)&&(E=!1),at(b)&&!E&&!qVt(b)&&!TP(b.escapedText)){let k=p.getSymbolAtLocation(b);if(k){k.flags&2097152&&(k=p.getAliasedSymbol(k));let T=JVt(k,Lk(b));if(T!==void 0){let M=0;b.parent&&(Rs(b.parent)||Y8e.get(b.parent.kind)===T)&&b.parent.name===b&&(M=1),T===6&&Rut(b)&&(T=9),T=$Vt(p,b,T);const z=k.valueDeclaration;if(z){const j=d2(z),J=YD(z);j&256&&(M|=2),j&1024&&(M|=4),T!==0&&T!==2&&(j&8||J&2||k.getFlags()&8)&&(M|=8),(T===7||T===10)&&UVt(z,u)&&(M|=32),t.isSourceFileDefaultLibrary(z.getSourceFile())&&(M|=16)}else k.declarations&&k.declarations.some(j=>t.isSourceFileDefaultLibrary(j.getSourceFile()))&&(M|=16);d(b,T,M)}}}ro(b,v),E=B}v(u)}function JVt(t,u){const s=t.getFlags();if(s&32)return 0;if(s&384)return 1;if(s&524288)return 5;if(s&64){if(u&2)return 2}else if(s&262144)return 4;let d=t.valueDeclaration||t.declarations&&t.declarations[0];return d&&Rs(d)&&(d=Iut(d)),d&&Y8e.get(d.kind)}function $Vt(t,u,s){if(s===7||s===9||s===6){const d=t.getTypeAtLocation(u);if(d){const f=p=>p(d)||d.isUnion()&&d.types.some(p);if(s!==6&&f(p=>p.getConstructSignatures().length>0))return 0;if(f(p=>p.getCallSignatures().length>0)&&!f(p=>p.getProperties().length>0)||ZVt(u))return s===9?11:10}}return s}function UVt(t,u){return Rs(t)&&(t=Iut(t)),ua(t)?(!ca(t.parent.parent.parent)||H2(t.parent))&&t.getSourceFile()===u:Xc(t)?!ca(t.parent)&&t.getSourceFile()===u:!1}function Iut(t){for(;;)if(Rs(t.parent.parent))t=t.parent.parent;else return t.parent.parent}function qVt(t){const u=t.parent;return u&&(i_(u)||Cf(u)||Gx(u))}function ZVt(t){for(;Rut(t);)t=t.parent;return No(t.parent)&&t.parent.expression===t}function Rut(t){return xf(t.parent)&&t.parent.right===t||Iu(t.parent)&&t.parent.name===t}var U8e,q8e,Z8e,Y8e,Out=o({"src/services/classifier2020.ts"(){or(),U8e=(t=>(t[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",t))(U8e||{}),q8e=(t=>(t[t.class=0]="class",t[t.enum=1]="enum",t[t.interface=2]="interface",t[t.namespace=3]="namespace",t[t.typeParameter=4]="typeParameter",t[t.type=5]="type",t[t.parameter=6]="parameter",t[t.variable=7]="variable",t[t.enumMember=8]="enumMember",t[t.property=9]="property",t[t.function=10]="function",t[t.member=11]="member",t))(q8e||{}),Z8e=(t=>(t[t.declaration=0]="declaration",t[t.static=1]="static",t[t.async=2]="async",t[t.readonly=3]="readonly",t[t.defaultLibrary=4]="defaultLibrary",t[t.local=5]="local",t))(Z8e||{}),Y8e=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function jut(t,u,s,d){const f=KO(t)?new Tme(t,u,s):t===80?new Nme(80,u,s):t===81?new Pme(81,u,s):new tBe(t,u,s);return f.parent=d,f.flags=d.flags&101441536,f}function YVt(t,u){if(!KO(t.kind))return _t;const s=[];if(VU(t))return t.forEachChild(E=>{s.push(E)}),s;ih.setText((u||t.getSourceFile()).text);let d=t.pos;const f=E=>{cee(s,d,E.pos,t),s.push(E),d=E.end},p=E=>{cee(s,d,E.pos,t),s.push(QVt(E,t)),d=E.end};return L(t.jsDoc,f),d=t.pos,t.forEachChild(f,p),cee(s,d,t.end,t),ih.setText(void 0),s}function cee(t,u,s,d){for(ih.resetTokenState(u);uu.tagName.text==="inheritDoc"||u.tagName.text==="inheritdoc")}function Ame(t,u){if(!t)return _t;let s=qv.getJsDocTagsFromDeclarations(t,u);if(u&&(s.length===0||t.some(Vut))){const d=new Set;for(const f of t){const p=Hut(u,f,E=>{var v;if(!d.has(E))return d.add(E),f.kind===177||f.kind===178?E.getContextualJsDocTags(f,u):((v=E.declarations)==null?void 0:v.length)===1?E.getJsDocTags():void 0});p&&(s=[...p,...s])}}return s}function dee(t,u){if(!t)return _t;let s=qv.getJsDocCommentsFromDeclarations(t,u);if(u&&(s.length===0||t.some(Vut))){const d=new Set;for(const f of t){const p=Hut(u,f,E=>{if(!d.has(E))return d.add(E),f.kind===177||f.kind===178?E.getContextualDocumentationComment(f,u):E.getDocumentationComment(u)});p&&(s=s.length===0?p.slice():p.concat(ow(),s))}}return s}function Hut(t,u,s){var d;const f=((d=u.parent)==null?void 0:d.kind)===176?u.parent.parent:u.parent;if(!f)return;const p=Hc(u);return G(nP(f),E=>{const v=t.getTypeAtLocation(E),b=p&&v.symbol?t.getTypeOfSymbol(v.symbol):v,B=t.getPropertyOfType(b,u.symbol.name);return B?s(B):void 0})}function XVt(){return{getNodeConstructor:()=>Tme,getTokenConstructor:()=>tBe,getIdentifierConstructor:()=>Nme,getPrivateIdentifierConstructor:()=>Pme,getSourceFileConstructor:()=>Uut,getSymbolConstructor:()=>Gut,getTypeConstructor:()=>Jut,getSignatureConstructor:()=>$ut,getSourceMapSourceConstructor:()=>qut}}function mK(t){let u=!0;for(const d in t)if(Eu(t,d)&&!Kut(d)){u=!1;break}if(u)return t;const s={};for(const d in t)if(Eu(t,d)){const f=Kut(d)?d:d.charAt(0).toLowerCase()+d.substr(1);s[f]=t[d]}return s}function Kut(t){return!t.length||t.charAt(0)===t.charAt(0).toLowerCase()}function pK(t){return t?Kt(t,u=>u.text).join(""):""}function hee(){return{target:1,jsx:1}}function Sme(){return M1.getSupportedErrorCodes()}function Wut(t,u,s){t.version=s,t.scriptSnapshot=u}function fee(t,u,s,d,f,p){const E=VV(t,uw(u),s,f,p);return Wut(E,u,d),E}function Bme(t,u,s,d,f){if(d&&s!==t.version){let E;const v=d.span.start!==0?t.text.substr(0,d.span.start):"",b=gc(d.span)!==t.text.length?t.text.substr(gc(d.span)):"";if(d.newLength===0)E=v&&b?v+b:v||b;else{const k=u.getText(d.span.start,d.span.start+d.newLength);E=v&&b?v+k+b:v?v+k:k+b}const B=Jce(t,E,d,f);return Wut(B,u,s),B.nameTable=void 0,t!==B&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),B}const p={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator,jsDocParsingMode:t.jsDocParsingMode};return fee(t.fileName,u,p,s,!0,t.scriptKind)}function Q8e(t,u=ISe(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()),s){var d;let f;s===void 0?f=0:typeof s=="boolean"?f=s?2:0:f=s;const p=new Zut(t);let E,v,b=0;const B=t.getCancellationToken?new Qut(t.getCancellationToken()):Yut,k=t.getCurrentDirectory();Xye((d=t.getLocalizedDiagnosticMessages)==null?void 0:d.bind(t));function T(we){t.log&&t.log(we)}const M=jj(t),z=T1(M),j=YSe({useCaseSensitiveFileNames:()=>M,getCurrentDirectory:()=>k,getProgram:Y,fileExists:wo(t,t.fileExists),readFile:wo(t,t.readFile),getDocumentPositionMapper:wo(t,t.getDocumentPositionMapper),getSourceFileLike:wo(t,t.getSourceFileLike),log:T});function J(we){const de=E.getSourceFile(we);if(!de){const Oe=new Error(`Could not find source file: '${we}'.`);throw Oe.ProgramFiles=E.getSourceFiles().map(X=>X.fileName),Oe}return de}function K(){var we,de,Oe;if(H.assert(f!==2),t.getProjectVersion){const Za=t.getProjectVersion();if(Za){if(v===Za&&!((we=t.hasChangedAutomaticTypeDirectiveNames)!=null&&we.call(t)))return;v=Za}}const X=t.getTypeRootsVersion?t.getTypeRootsVersion():0;b!==X&&(T("TypeRoots version has changed; provide new program"),E=void 0,b=X);const it=t.getScriptFileNames().slice(),Ct=t.getCompilationSettings()||hee(),ct=t.hasInvalidatedResolutions||sg,Qt=wo(t,t.hasInvalidatedLibResolutions)||sg,Ti=wo(t,t.hasChangedAutomaticTypeDirectiveNames),$i=(de=t.getProjectReferences)==null?void 0:de.call(t);let Bn,hu={getSourceFile:An,getSourceFileByPath:xc,getCancellationToken:()=>B,getCanonicalFileName:z,useCaseSensitiveFileNames:()=>M,getNewLine:()=>r5(Ct),getDefaultLibFileName:Za=>t.getDefaultLibFileName(Za),writeFile:Ms,getCurrentDirectory:()=>k,fileExists:Za=>t.fileExists(Za),readFile:Za=>t.readFile&&t.readFile(Za),getSymlinkCache:wo(t,t.getSymlinkCache),realpath:wo(t,t.realpath),directoryExists:Za=>cg(Za,t),getDirectories:Za=>t.getDirectories?t.getDirectories(Za):[],readDirectory:(Za,l0,$l,Sl,cd)=>(H.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(Za,l0,$l,Sl,cd)),onReleaseOldSourceFile:So,onReleaseParsedCommandLine:rs,hasInvalidatedResolutions:ct,hasInvalidatedLibResolutions:Qt,hasChangedAutomaticTypeDirectiveNames:Ti,trace:wo(t,t.trace),resolveModuleNames:wo(t,t.resolveModuleNames),getModuleResolutionCache:wo(t,t.getModuleResolutionCache),createHash:wo(t,t.createHash),resolveTypeReferenceDirectives:wo(t,t.resolveTypeReferenceDirectives),resolveModuleNameLiterals:wo(t,t.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:wo(t,t.resolveTypeReferenceDirectiveReferences),resolveLibrary:wo(t,t.resolveLibrary),useSourceOfProjectReferenceRedirect:wo(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:Tn,jsDocParsingMode:t.jsDocParsingMode};const Ru=hu.getSourceFile,{getSourceFileWithCache:Er}=DH(hu,Za=>H0(Za,k,z),(...Za)=>Ru.call(hu,...Za));hu.getSourceFile=Er,(Oe=t.setCompilerHost)==null||Oe.call(t,hu);const tr={useCaseSensitiveFileNames:M,fileExists:Za=>hu.fileExists(Za),readFile:Za=>hu.readFile(Za),directoryExists:Za=>hu.directoryExists(Za),getDirectories:Za=>hu.getDirectories(Za),realpath:hu.realpath,readDirectory:(...Za)=>hu.readDirectory(...Za),trace:hu.trace,getCurrentDirectory:hu.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Ms},da=u.getKeyForCompilationSettings(Ct);let Wu=new Set;if(B1e(E,it,Ct,(Za,l0)=>t.getScriptVersion(l0),Za=>hu.fileExists(Za),ct,Qt,Ti,Tn,$i)){hu=void 0,Bn=void 0,Wu=void 0;return}E=yQ({rootNames:it,options:Ct,host:hu,oldProgram:E,projectReferences:$i}),hu=void 0,Bn=void 0,Wu=void 0,j.clearCache(),E.getTypeChecker();return;function Tn(Za){const l0=H0(Za,k,z),$l=Bn==null?void 0:Bn.get(l0);if($l!==void 0)return $l||void 0;const Sl=t.getParsedCommandLine?t.getParsedCommandLine(Za):Rr(Za);return(Bn||(Bn=new Map)).set(l0,Sl||!1),Sl}function Rr(Za){const l0=An(Za,100);if(l0)return l0.path=H0(Za,k,z),l0.resolvedPath=l0.path,l0.originalFileName=l0.fileName,JV(l0,tr,$a(dr(Za),k),void 0,$a(Za,k))}function rs(Za,l0,$l){var Sl;t.getParsedCommandLine?(Sl=t.onReleaseParsedCommandLine)==null||Sl.call(t,Za,l0,$l):l0&&So(l0.sourceFile,$l)}function So(Za,l0){const $l=u.getKeyForCompilationSettings(l0);u.releaseDocumentWithKey(Za.resolvedPath,$l,Za.scriptKind,Za.impliedNodeFormat)}function An(Za,l0,$l,Sl){return xc(Za,H0(Za,k,z),l0,$l,Sl)}function xc(Za,l0,$l,Sl,cd){H.assert(hu,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const Dl=t.getScriptSnapshot(Za);if(!Dl)return;const so=mfe(Za,t),Vo=t.getScriptVersion(Za);if(!cd){const td=E&&E.getSourceFileByPath(l0);if(td){if(so===td.scriptKind||Wu.has(td.resolvedPath))return u.updateDocumentWithKey(Za,l0,t,da,Dl,Vo,so,$l);u.releaseDocumentWithKey(td.resolvedPath,u.getKeyForCompilationSettings(E.getCompilerOptions()),td.scriptKind,td.impliedNodeFormat),Wu.add(td.resolvedPath)}}return u.acquireDocumentWithKey(Za,l0,t,da,Dl,Vo,so,$l)}}function Y(){if(f===2){H.assert(E===void 0);return}return K(),E}function oe(){var we;return(we=t.getPackageJsonAutoImportProvider)==null?void 0:we.call(t)}function se(we,de){const Oe=E.getTypeChecker(),X=it();if(!X)return!1;for(const ct of we)for(const Qt of ct.references){const Ti=Ct(Qt);if(H.assertIsDefined(Ti),de.has(Qt)||J0.isDeclarationOfSymbol(Ti,X)){de.add(Qt),Qt.isDefinition=!0;const $i=xX(Qt,j,wo(t,t.fileExists));$i&&de.add($i)}else Qt.isDefinition=!1}return!0;function it(){for(const ct of we)for(const Qt of ct.references){if(de.has(Qt)){const $i=Ct(Qt);return H.assertIsDefined($i),Oe.getSymbolAtLocation($i)}const Ti=xX(Qt,j,wo(t,t.fileExists));if(Ti&&de.has(Ti)){const $i=Ct(Ti);if($i)return Oe.getSymbolAtLocation($i)}}}function Ct(ct){const Qt=E.getSourceFile(ct.fileName);if(!Qt)return;const Ti=rf(Qt,ct.textSpan.start);return J0.Core.getAdjustedNode(Ti,{use:J0.FindReferencesUse.References})}}function ge(){if(E){const we=u.getKeyForCompilationSettings(E.getCompilerOptions());L(E.getSourceFiles(),de=>u.releaseDocumentWithKey(de.resolvedPath,we,de.scriptKind,de.impliedNodeFormat)),E=void 0}}function ae(){ge(),t=void 0}function Ce(we){return K(),E.getSyntacticDiagnostics(J(we),B).slice()}function ne(we){K();const de=J(we),Oe=E.getSemanticDiagnostics(de,B);if(!l4(E.getCompilerOptions()))return Oe.slice();const X=E.getDeclarationDiagnostics(de,B);return[...Oe,...X]}function ve(we){return K(),Gfe(J(we),E,B)}function Se(){return K(),[...E.getOptionsDiagnostics(B),...E.getGlobalDiagnostics(B)]}function Ne(we,de,Oe=c4,X){const it={...Oe,includeCompletionsForModuleExports:Oe.includeCompletionsForModuleExports||Oe.includeExternalModuleExports,includeCompletionsWithInsertText:Oe.includeCompletionsWithInsertText||Oe.includeInsertTextCompletions};return K(),c9.getCompletionsAtPosition(t,E,T,J(we),de,it,Oe.triggerCharacter,Oe.triggerKind,B,X&&ld.getFormatContext(X,t),Oe.includeSymbol)}function pe(we,de,Oe,X,it,Ct=c4,ct){return K(),c9.getCompletionEntryDetails(E,T,J(we),de,{name:Oe,source:it,data:ct},t,X&&ld.getFormatContext(X,t),Ct,B)}function fe(we,de,Oe,X,it=c4){return K(),c9.getCompletionEntrySymbol(E,T,J(we),de,{name:Oe,source:X},t,it)}function xe(we,de){K();const Oe=J(we),X=rf(Oe,de);if(X===Oe)return;const it=E.getTypeChecker(),Ct=Be(X),ct=nHt(Ct,it);if(!ct||it.isUnknownSymbol(ct)){const hu=We(Oe,Ct,de)?it.getTypeAtLocation(Ct):void 0;return hu&&{kind:"",kindModifiers:"",textSpan:af(Ct,Oe),displayParts:it.runWithCancellationToken(B,Ru=>GH(Ru,hu,Nk(Ct))),documentation:hu.symbol?hu.symbol.getDocumentationComment(it):void 0,tags:hu.symbol?hu.symbol.getJsDocTags(it):void 0}}const{symbolKind:Qt,displayParts:Ti,documentation:$i,tags:Bn}=it.runWithCancellationToken(B,hu=>D5.getSymbolDisplayPartsDocumentationAndSymbolKind(hu,ct,Oe,Nk(Ct),Ct));return{kind:Qt,kindModifiers:D5.getSymbolModifiers(it,ct),textSpan:af(Ct,Oe),displayParts:Ti,documentation:$i,tags:Bn}}function Be(we){return I2(we.parent)&&we.pos===we.parent.pos?we.parent.expression:WP(we.parent)&&we.pos===we.parent.pos||H8(we.parent)&&we.parent.name===we||mg(we.parent)?we.parent:we}function We(we,de,Oe){switch(de.kind){case 80:return!Ihe(de)&&!Rhe(de)&&!U3(de.parent);case 211:case 166:return!f5(we,Oe);case 110:case 197:case 108:case 202:return!0;case 236:return H8(de);default:return!1}}function Ae(we,de,Oe,X){return K(),xw.getDefinitionAtPosition(E,J(we),de,Oe,X)}function De(we,de){return K(),xw.getDefinitionAndBoundSpan(E,J(we),de)}function He(we,de){return K(),xw.getTypeDefinitionAtPosition(E.getTypeChecker(),J(we),de)}function Ge(we,de){return K(),J0.getImplementationsAtPosition(E,B,E.getSourceFiles(),J(we),de)}function ft(we,de,Oe){const X=Go(we);H.assert(Oe.some(ct=>Go(ct)===X)),K();const it=Ui(Oe,ct=>E.getSourceFile(ct)),Ct=J(we);return HX.getDocumentHighlights(E,B,Ct,de,it)}function Ze(we,de,Oe,X,it){K();const Ct=J(we),ct=rX(rf(Ct,de));if(Ree.nodeIsEligibleForRename(ct))if(at(ct)&&(rE(ct.parent)||O2(ct.parent))&&uB(ct.escapedText)){const{openingElement:Qt,closingElement:Ti}=ct.parent.parent;return[Qt,Ti].map($i=>{const Bn=af($i.tagName,Ct);return{fileName:Ct.fileName,textSpan:Bn,...J0.toContextSpan(Bn,Ct,$i.parent)}})}else{const Qt=Vm(Ct,it??c4),Ti=typeof it=="boolean"?it:it==null?void 0:it.providePrefixAndSuffixTextForRename;return Ke(ct,de,{findInStrings:Oe,findInComments:X,providePrefixAndSuffixTextForRename:Ti,use:J0.FindReferencesUse.Rename},($i,Bn,hu)=>J0.toRenameLocation($i,Bn,hu,Ti||!1,Qt))}}function je(we,de){return K(),Ke(rf(J(we),de),de,{use:J0.FindReferencesUse.References},J0.toReferenceEntry)}function Ke(we,de,Oe,X){K();const it=Oe&&Oe.use===J0.FindReferencesUse.Rename?E.getSourceFiles().filter(Ct=>!E.isSourceFileDefaultLibrary(Ct)):E.getSourceFiles();return J0.findReferenceOrRenameEntries(E,B,it,we,de,Oe,X)}function Gt(we,de){return K(),J0.findReferencedSymbols(E,B,E.getSourceFiles(),J(we),de)}function Yt(we){return K(),J0.Core.getReferencesForFileName(we,E,E.getSourceFiles()).map(J0.toReferenceEntry)}function Ie(we,de,Oe,X=!1,it=!1){K();const Ct=Oe?[J(Oe)]:E.getSourceFiles();return dnt(Ct,E.getTypeChecker(),B,we,de,X,it)}function st(we,de,Oe){K();const X=J(we),it=t.getCustomTransformers&&t.getCustomTransformers();return V7e(E,X,!!de,B,it,Oe)}function St(we,de,{triggerReason:Oe}=c4){K();const X=J(we);return TK.getSignatureHelpItems(E,X,de,Oe,B)}function It(we){return p.getCurrentSourceFile(we)}function ti(we,de,Oe){const X=p.getCurrentSourceFile(we),it=rf(X,de);if(it===X)return;switch(it.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Ct=it;for(;;)if(iw(Ct)||G9e(Ct))Ct=Ct.parent;else if(jhe(Ct))if(Ct.parent.parent.kind===267&&Ct.parent.parent.body===Ct.parent)Ct=Ct.parent.parent.name;else break;else break;return jc(Ct.getStart(),it.getEnd())}function ht(we,de){const Oe=p.getCurrentSourceFile(we);return zme.spanInSourceFileAtLocation(Oe,de)}function Ut(we){return pnt(p.getCurrentSourceFile(we),B)}function Li(we){return gnt(p.getCurrentSourceFile(we),B)}function ji(we,de,Oe){return K(),(Oe||"original")==="2020"?zut(E,B,J(we),de):MSe(E.getTypeChecker(),B,J(we),E.getClassifiableNames(),de)}function xn(we,de,Oe){return K(),(Oe||"original")==="original"?Rfe(E.getTypeChecker(),B,J(we),E.getClassifiableNames(),de):$8e(E,B,J(we),de)}function Un(we,de){return zSe(B,p.getCurrentSourceFile(we),de)}function rn(we,de){return Ofe(B,p.getCurrentSourceFile(we),de)}function Ni(we){const de=p.getCurrentSourceFile(we);return Tpe.collectElements(de,B)}const Fi=new Map(Object.entries({19:20,21:22,23:24,32:30}));Fi.forEach((we,de)=>Fi.set(we.toString(),Number(de)));function Qu(we,de){const Oe=p.getCurrentSourceFile(we),X=TM(Oe,de),it=X.getStart(Oe)===de?Fi.get(X.kind.toString()):void 0,Ct=it&&r0(X.parent,it,Oe);return Ct?[af(X,Oe),af(Ct,Oe)].sort((ct,Qt)=>ct.start-Qt.start):_t}function aa(we,de,Oe){let X=V0();const it=mK(Oe),Ct=p.getCurrentSourceFile(we);T("getIndentationAtPosition: getCurrentSourceFile: "+(V0()-X)),X=V0();const ct=ld.SmartIndenter.getIndentation(de,Ct,it);return T("getIndentationAtPosition: computeIndentation : "+(V0()-X)),ct}function Fr(we,de,Oe,X){const it=p.getCurrentSourceFile(we);return ld.formatSelection(de,Oe,it,ld.getFormatContext(mK(X),t))}function Ba(we,de){return ld.formatDocument(p.getCurrentSourceFile(we),ld.getFormatContext(mK(de),t))}function bt(we,de,Oe,X){const it=p.getCurrentSourceFile(we),Ct=ld.getFormatContext(mK(X),t);if(!f5(it,de))switch(Oe){case"{":return ld.formatOnOpeningCurly(de,it,Ct);case"}":return ld.formatOnClosingCurly(de,it,Ct);case";":return ld.formatOnSemicolon(de,it,Ct);case` -`:return ld.formatOnEnter(de,it,Ct)}return[]}function jn(we,de,Oe,X,it,Ct=c4){K();const ct=J(we),Qt=jc(de,Oe),Ti=ld.getFormatContext(it,t);return Ku(li(X,vx,tl),$i=>(B.throwIfCancellationRequested(),M1.getFixes({errorCode:$i,sourceFile:ct,span:Qt,program:E,host:t,cancellationToken:B,formatContext:Ti,preferences:Ct})))}function Nn(we,de,Oe,X=c4){K(),H.assert(we.type==="file");const it=J(we.fileName),Ct=ld.getFormatContext(Oe,t);return M1.getAllFixes({fixId:de,sourceFile:it,program:E,host:t,cancellationToken:B,formatContext:Ct,preferences:X})}function Ai(we,de,Oe=c4){K(),H.assert(we.type==="file");const X=J(we.fileName),it=ld.getFormatContext(de,t),Ct=we.mode??(we.skipDestructiveCodeActions?"SortAndCombine":"All");return Hp.organizeImports(X,it,t,E,Oe,Ct)}function Dn(we,de,Oe,X=c4){return OSe(Y(),we,de,t,ld.getFormatContext(Oe,t),X,j)}function bn(we,de){const Oe=typeof we=="string"?de:we;return Ha(Oe)?Promise.all(Oe.map(X=>iu(X))):iu(Oe)}function iu(we){const de=Oe=>H0(Oe,k,z);return H.assertEqual(we.type,"install package"),t.installPackage?t.installPackage({fileName:de(we.file),packageName:we.packageName}):Promise.reject("Host does not implement `installPackage`")}function oa(we,de,Oe,X){const it=X?ld.getFormatContext(X,t).options:void 0;return qv.getDocCommentTemplateAtPosition(g5(t,it),p.getCurrentSourceFile(we),de,Oe)}function xa(we,de,Oe){if(Oe===60)return!1;const X=p.getCurrentSourceFile(we);if(Pk(X,de))return!1;if(Q9e(X,de))return Oe===123;if(Jhe(X,de))return!1;switch(Oe){case 39:case 34:case 96:return!f5(X,de)}return!0}function ra(we,de){const Oe=p.getCurrentSourceFile(we),X=ed(de,Oe);if(!X)return;const it=X.kind===32&&rE(X.parent)?X.parent.parent:S7(X)&&u3(X.parent)?X.parent:void 0;if(it&&qt(it))return{newText:``};const Ct=X.kind===32&&O7(X.parent)?X.parent.parent:S7(X)&&j2(X.parent)?X.parent:void 0;if(Ct&&Xt(Ct))return{newText:""}}function wa(we,de){const Oe=p.getCurrentSourceFile(we),X=ed(de,Oe);if(!X||X.parent.kind===312)return;const it="[a-zA-Z0-9:\\-\\._$]*";if(j2(X.parent.parent)){const Ct=X.parent.parent.openingFragment,ct=X.parent.parent.closingFragment;if(I8(Ct)||I8(ct))return;const Qt=Ct.getStart(Oe)+1,Ti=ct.getStart(Oe)+2;return de!==Qt&&de!==Ti?void 0:{ranges:[{start:Qt,length:0},{start:Ti,length:0}],wordPattern:it}}else{const Ct=Ln(X.parent,Er=>!!(rE(Er)||O2(Er)));if(!Ct)return;H.assert(rE(Ct)||O2(Ct),"tag should be opening or closing element");const ct=Ct.parent.openingElement,Qt=Ct.parent.closingElement,Ti=ct.tagName.getStart(Oe),$i=ct.tagName.end,Bn=Qt.tagName.getStart(Oe),hu=Qt.tagName.end;return!(Ti<=de&&de<=$i||Bn<=de&&de<=hu)||ct.tagName.getText(Oe)!==Qt.tagName.getText(Oe)?void 0:{ranges:[{start:Ti,length:$i-Ti},{start:Bn,length:hu-Bn}],wordPattern:it}}}function Zo(we,de){return{lineStarts:we.getLineStarts(),firstLine:we.getLineAndCharacterOfPosition(de.pos).line,lastLine:we.getLineAndCharacterOfPosition(de.end).line}}function vo(we,de,Oe){const X=p.getCurrentSourceFile(we),it=[],{lineStarts:Ct,firstLine:ct,lastLine:Qt}=Zo(X,de);let Ti=Oe||!1,$i=Number.MAX_VALUE;const Bn=new Map,hu=new RegExp(/\S/),Ru=sX(X,Ct[ct]),Er=Ru?"{/*":"//";for(let tr=ct;tr<=Qt;tr++){const da=X.text.substring(Ct[tr],X.getLineEndOfPosition(Ct[tr])),Wu=hu.exec(da);Wu&&($i=Math.min($i,Wu.index),Bn.set(tr.toString(),Wu.index),da.substr(Wu.index,Er.length)!==Er&&(Ti=Oe===void 0||Oe))}for(let tr=ct;tr<=Qt;tr++){if(ct!==Qt&&Ct[tr]===de.end)continue;const da=Bn.get(tr.toString());da!==void 0&&(Ru?it.push(...Qe(we,{pos:Ct[tr]+$i,end:X.getLineEndOfPosition(Ct[tr])},Ti,Ru)):Ti?it.push({newText:Er,span:{length:0,start:Ct[tr]+$i}}):X.text.substr(Ct[tr]+da,Er.length)===Er&&it.push({newText:"",span:{length:Er.length,start:Ct[tr]+da}}))}return it}function Qe(we,de,Oe,X){var it;const Ct=p.getCurrentSourceFile(we),ct=[],{text:Qt}=Ct;let Ti=!1,$i=Oe||!1;const Bn=[];let{pos:hu}=de;const Ru=X!==void 0?X:sX(Ct,hu),Er=Ru?"{/*":"/*",tr=Ru?"*/}":"*/",da=Ru?"\\{\\/\\*":"\\/\\*",Wu=Ru?"\\*\\/\\}":"\\*\\/";for(;hu<=de.end;){const ja=Qt.substr(hu,Er.length)===Er?Er.length:0,Tn=f5(Ct,hu+ja);if(Tn)Ru&&(Tn.pos--,Tn.end++),Bn.push(Tn.pos),Tn.kind===3&&Bn.push(Tn.end),Ti=!0,hu=Tn.end+1;else{const Rr=Qt.substring(hu,de.end).search(`(${da})|(${Wu})`);$i=Oe!==void 0?Oe:$i||!cSe(Qt,hu,Rr===-1?de.end:hu+Rr),hu=Rr===-1?de.end+1:hu+Rr+tr.length}}if($i||!Ti){((it=f5(Ct,de.pos))==null?void 0:it.kind)!==2&&Nt(Bn,de.pos,tl),Nt(Bn,de.end,tl);const ja=Bn[0];Qt.substr(ja,Er.length)!==Er&&ct.push({newText:Er,span:{length:0,start:ja}});for(let Tn=1;Tn0?ja-tr.length:0,Rr=Qt.substr(Tn,tr.length)===tr?tr.length:0;ct.push({newText:"",span:{length:Er.length,start:ja-Rr}})}return ct}function Et(we,de){const Oe=p.getCurrentSourceFile(we),{firstLine:X,lastLine:it}=Zo(Oe,de);return X===it&&de.pos!==de.end?Qe(we,de,!0):vo(we,de,!0)}function Mt(we,de){const Oe=p.getCurrentSourceFile(we),X=[],{pos:it}=de;let{end:Ct}=de;it===Ct&&(Ct+=sX(Oe,it)?2:1);for(let ct=it;ct<=Ct;ct++){const Qt=f5(Oe,ct);if(Qt){switch(Qt.kind){case 2:X.push(...vo(we,{end:Qt.end,pos:Qt.pos+1},!1));break;case 3:X.push(...Qe(we,{end:Qt.end,pos:Qt.pos+1},!1))}ct=Qt.end+1}}return X}function qt({openingElement:we,closingElement:de,parent:Oe}){return!Ov(we.tagName,de.tagName)||u3(Oe)&&Ov(we.tagName,Oe.openingElement.tagName)&&qt(Oe)}function Xt({closingFragment:we,parent:de}){return!!(we.flags&262144)||j2(de)&&Xt(de)}function Pe(we,de,Oe){const X=p.getCurrentSourceFile(we),it=ld.getRangeOfEnclosingComment(X,de);return it&&(!Oe||it.kind===3)?Ux(it):void 0}function et(we,de){K();const Oe=J(we);B.throwIfCancellationRequested();const X=Oe.text,it=[];if(de.length>0&&!Ti(Oe.fileName)){const $i=ct();let Bn;for(;Bn=$i.exec(X);){B.throwIfCancellationRequested();const hu=3;H.assert(Bn.length===de.length+hu);const Ru=Bn[1],Er=Bn.index+Ru.length;if(!f5(Oe,Er))continue;let tr;for(let Wu=0;Wu"("+Ct(Tn.text)+")").join("|")+")",tr=/(?:$|\*\/)/.source,da=/(?:.*?)/.source,Wu="("+Er+da+")",ja=Ru+Wu+tr;return new RegExp(ja,"gim")}function Qt($i){return $i>=97&&$i<=122||$i>=65&&$i<=90||$i>=48&&$i<=57}function Ti($i){return $i.includes("/node_modules/")}}function gt(we,de,Oe){return K(),Ree.getRenameInfo(E,J(we),de,Oe||{})}function ii(we,de,Oe,X,it,Ct){const[ct,Qt]=typeof de=="number"?[de,void 0]:[de.pos,de.end];return{file:we,startPosition:ct,endPosition:Qt,program:Y(),host:t,formatContext:ld.getFormatContext(X,t),cancellationToken:B,preferences:Oe,triggerReason:it,kind:Ct}}function me(we,de,Oe){return{file:we,program:Y(),host:t,span:de,preferences:Oe,cancellationToken:B}}function ni(we,de){return Ppe.getSmartSelectionRange(de,p.getCurrentSourceFile(we))}function _i(we,de,Oe=c4,X,it,Ct){K();const ct=J(we);return u9.getApplicableRefactors(ii(ct,de,Oe,c4,X,it),Ct)}function mt(we,de,Oe=c4){K();const X=J(we),it=H.checkDefined(E.getSourceFiles()),Ct=C7(we),ct=Ui(it,Ti=>!(E!=null&&E.isSourceFileFromExternalLibrary(X))&&!(X===J(Ti.fileName)||Ct===".ts"&&C7(Ti.fileName)===".d.ts"||Ct===".d.ts"&&Na(Fc(Ti.fileName),"lib.")&&C7(Ti.fileName)===".d.ts")&&Ct===C7(Ti.fileName)?Ti.fileName:void 0);return{newFileName:k8e(X,E,ii(X,de,Oe,c4),t),files:ct}}function jt(we,de,Oe,X,it,Ct=c4,ct){K();const Qt=J(we);return u9.getEditsForRefactor(ii(Qt,Oe,Ct,de),X,it,ct)}function pi(we,de){return de===0?{line:0,character:0}:j.toLineColumnOffset(we,de)}function Ji(we,de){K();const Oe=r9.resolveCallHierarchyDeclaration(E,rf(J(we),de));return Oe&&yfe(Oe,X=>r9.createCallHierarchyItem(E,X))}function Yi(we,de){K();const Oe=J(we),X=kfe(r9.resolveCallHierarchyDeclaration(E,de===0?Oe:rf(Oe,de)));return X?r9.getIncomingCalls(E,X,B):[]}function on(we,de){K();const Oe=J(we),X=kfe(r9.resolveCallHierarchyDeclaration(E,de===0?Oe:rf(Oe,de)));return X?r9.getOutgoingCalls(E,X):[]}function le(we,de,Oe=c4){K();const X=J(we);return Ape.provideInlayHints(me(X,de,Oe))}const te={dispose:ae,cleanupSemanticCache:ge,getSyntacticDiagnostics:Ce,getSemanticDiagnostics:ne,getSuggestionDiagnostics:ve,getCompilerOptionsDiagnostics:Se,getSyntacticClassifications:Un,getSemanticClassifications:ji,getEncodedSyntacticClassifications:rn,getEncodedSemanticClassifications:xn,getCompletionsAtPosition:Ne,getCompletionEntryDetails:pe,getCompletionEntrySymbol:fe,getSignatureHelpItems:St,getQuickInfoAtPosition:xe,getDefinitionAtPosition:Ae,getDefinitionAndBoundSpan:De,getImplementationAtPosition:Ge,getTypeDefinitionAtPosition:He,getReferencesAtPosition:je,findReferences:Gt,getFileReferences:Yt,getDocumentHighlights:ft,getNameOrDottedNameSpan:ti,getBreakpointStatementAtPosition:ht,getNavigateToItems:Ie,getRenameInfo:gt,getSmartSelectionRange:ni,findRenameLocations:Ze,getNavigationBarItems:Ut,getNavigationTree:Li,getOutliningSpans:Ni,getTodoComments:et,getBraceMatchingAtPosition:Qu,getIndentationAtPosition:aa,getFormattingEditsForRange:Fr,getFormattingEditsForDocument:Ba,getFormattingEditsAfterKeystroke:bt,getDocCommentTemplateAtPosition:oa,isValidBraceCompletionAtPosition:xa,getJsxClosingTagAtPosition:ra,getLinkedEditingRangeAtPosition:wa,getSpanOfEnclosingComment:Pe,getCodeFixesAtPosition:jn,getCombinedCodeFix:Nn,applyCodeActionCommand:bn,organizeImports:Ai,getEditsForFileRename:Dn,getEmitOutput:st,getNonBoundSourceFile:It,getProgram:Y,getCurrentProgram:()=>E,getAutoImportProvider:oe,updateIsDefinitionOfReferencedSymbols:se,getApplicableRefactors:_i,getEditsForRefactor:jt,getMoveToRefactoringFileSuggestions:mt,toLineColumnOffset:pi,getSourceMapper:()=>j,clearSourceMapperCache:()=>j.clearCache(),prepareCallHierarchy:Ji,provideCallHierarchyIncomingCalls:Yi,provideCallHierarchyOutgoingCalls:on,toggleLineComment:vo,toggleMultilineComment:Qe,commentSelection:Et,uncommentSelection:Mt,provideInlayHints:le,getSupportedCodeFixes:Sme};switch(f){case 0:break;case 1:iBe.forEach(we=>te[we]=()=>{throw new Error(`LanguageService Operation: ${we} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:Xut.forEach(we=>te[we]=()=>{throw new Error(`LanguageService Operation: ${we} not allowed in LanguageServiceMode.Syntactic`)});break;default:H.assertNever(f)}return te}function wme(t){return t.nameTable||eHt(t),t.nameTable}function eHt(t){const u=t.nameTable=new Map;t.forEachChild(function s(d){if(at(d)&&!Rhe(d)&&d.escapedText||Nm(d)&&tHt(d)){const f=aP(d);u.set(f,u.get(f)===void 0?d.pos:-1)}else if(Xr(d)){const f=d.escapedText;u.set(f,u.get(f)===void 0?d.pos:-1)}if(ro(d,s),sm(d))for(const f of d.jsDoc)ro(f,s)})}function tHt(t){return Q3(t)||t.parent.kind===283||uHt(t)||Tj(t)}function gK(t){const u=iHt(t);return u&&(Cs(u.parent)||V2(u.parent))?u:void 0}function iHt(t){switch(t.kind){case 11:case 15:case 9:if(t.parent.kind===167)return i0e(t.parent.parent)?t.parent.parent:void 0;case 80:return i0e(t.parent)&&(t.parent.parent.kind===210||t.parent.parent.kind===292)&&t.parent.name===t?t.parent:void 0}}function nHt(t,u){const s=gK(t);if(s){const d=u.getContextualType(s.parent),f=d&&mee(s,u,d,!1);if(f&&f.length===1)return Mn(f)}return u.getSymbolAtLocation(t)}function mee(t,u,s,d){const f=HH(t.name);if(!f)return _t;if(!s.isUnion()){const E=s.getProperty(f);return E?[E]:_t}const p=Ui(s.types,E=>(Cs(t.parent)||V2(t.parent))&&u.isTypeInvalidDueToUnionDiscriminant(E,t.parent)?void 0:E.getProperty(f));if(d&&(p.length===0||p.length===s.types.length)){const E=s.getProperty(f);if(E)return[E]}return p.length===0?Ui(s.types,E=>E.getProperty(f)):p}function uHt(t){return t&&t.parent&&t.parent.kind===212&&t.parent.argumentExpression===t}function X8e(t){if(l1)return hr(dr(Go(l1.getExecutingFilePath())),PO(t));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var eBe,Tme,Lme,Gut,tBe,Nme,Pme,Jut,$ut,Uut,qut,Zut,Yut,Qut,Mme,iBe,Xut,rHt=o({"src/services/services.ts"(){or(),mnt(),Mnt(),o_(),Wit(),Out(),eBe="0.8",Tme=class{constructor(t,u,s){this.pos=u,this.end=s,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=t}assertHasRealPosition(t){H.assert(!fg(this.pos)&&!fg(this.end),t||"Node must have a real position for this operation")}getSourceFile(){return In(this)}getStart(t,u){return this.assertHasRealPosition(),Qy(this,t,u)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(t){return this.assertHasRealPosition(),this.getEnd()-this.getStart(t)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(t){return this.assertHasRealPosition(),this.getStart(t)-this.pos}getFullText(t){return this.assertHasRealPosition(),(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return this.assertHasRealPosition(),t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(t){return this.getChildren(t).length}getChildAt(t,u){return this.getChildren(u)[t]}getChildren(t){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=YVt(this,t))}getFirstToken(t){this.assertHasRealPosition();const u=this.getChildren(t);if(!u.length)return;const s=Le(u,d=>d.kind<316||d.kind>357);return s.kind<166?s:s.getFirstToken(t)}getLastToken(t){this.assertHasRealPosition();const u=this.getChildren(t),s=Yu(u);if(s)return s.kind<166?s:s.getLastToken(t)}forEachChild(t,u){return ro(this,t,u)}},Lme=class{constructor(t,u){this.pos=t,this.end=u,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return In(this)}getStart(t,u){return Qy(this,t,u)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(t){return this.getEnd()-this.getStart(t)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(t){return this.getStart(t)-this.pos}getFullText(t){return(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(t){return this.getChildren()[t]}getChildren(){return this.kind===1&&this.jsDoc||_t}getFirstToken(){}getLastToken(){}forEachChild(){}},Gut=class{constructor(t,u){this.id=0,this.mergeId=0,this.flags=t,this.escapedName=u}getFlags(){return this.flags}get name(){return sc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(t){if(!this.documentationComment)if(this.documentationComment=_t,!this.declarations&&UE(this)&&this.links.target&&UE(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const u=this.links.target.links.tupleLabelDeclaration;this.documentationComment=dee([u],t)}else this.documentationComment=dee(this.declarations,t);return this.documentationComment}getContextualDocumentationComment(t,u){if(t){if(Tx(t)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=dee(ei(this.declarations,Tx),u)),S(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(XD(t)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=dee(ei(this.declarations,XD),u)),S(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(u)}getJsDocTags(t){return this.tags===void 0&&(this.tags=Ame(this.declarations,t)),this.tags}getContextualJsDocTags(t,u){if(t){if(Tx(t)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=Ame(ei(this.declarations,Tx),u)),S(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(XD(t)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=Ame(ei(this.declarations,XD),u)),S(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(u)}},tBe=class extends Lme{constructor(t,u,s){super(u,s),this.kind=t}},Nme=class extends Lme{constructor(t,u,s){super(u,s),this.kind=80}get text(){return mu(this)}},Nme.prototype.kind=80,Pme=class extends Lme{constructor(t,u,s){super(u,s),this.kind=81}get text(){return mu(this)}},Pme.prototype.kind=81,Jut=class{constructor(t,u){this.checker=t,this.flags=u}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(t){return this.checker.getPropertyOfType(this,t)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!($u(this)&3)}isClass(){return!!($u(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if($u(this)&4)return this.checker.getTypeArguments(this)}},$ut=class{constructor(t,u){this.checker=t,this.flags=u}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(t){const u=this.checker.getParameterType(this,t);if(u.isIndexType()&&LP(u.type)){const s=u.type.getConstraint();if(s)return this.checker.getIndexType(s)}return u}getDocumentationComment(){return this.documentationComment||(this.documentationComment=dee(jy(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=Ame(jy(this.declaration),this.checker))}},Uut=class extends Tme{constructor(t,u,s){super(t,u,s),this.kind=312}update(t,u){return Jce(this,t,u)}getLineAndCharacterOfPosition(t){return o0(this,t)}getLineStarts(){return J3(this)}getPositionOfLineAndCharacter(t,u,s){return CU(J3(this),t,u,this.text,s)}getLineEndOfPosition(t){const{line:u}=this.getLineAndCharacterOfPosition(t),s=this.getLineStarts();let d;u+1>=s.length&&(d=this.getEnd()),d||(d=s[u+1]-1);const f=this.getFullText();return f[d]===` -`&&f[d-1]==="\r"?d-1:d}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const t=Bm();return this.forEachChild(f),t;function u(p){const E=d(p);E&&t.add(E,p)}function s(p){let E=t.get(p);return E||t.set(p,E=[]),E}function d(p){const E=AU(p);return E&&(Ls(E)&&Iu(E.expression)?E.expression.name.text:Ac(E)?HH(E):void 0)}function f(p){switch(p.kind){case 262:case 218:case 174:case 173:const E=p,v=d(E);if(v){const k=s(v),T=Yu(k);T&&E.parent===T.parent&&E.symbol===T.symbol?E.body&&!T.body&&(k[k.length-1]=E):k.push(E)}ro(p,f);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:u(p),ro(p,f);break;case 169:if(!Xu(p,31))break;case 260:case 208:{const k=p;if(Fo(k.name)){ro(k.name,f);break}k.initializer&&f(k.initializer)}case 306:case 172:case 171:u(p);break;case 278:const b=p;b.exportClause&&(Q4(b.exportClause)?L(b.exportClause.elements,f):f(b.exportClause.name));break;case 272:const B=p.importClause;B&&(B.name&&u(B.name),B.namedBindings&&(B.namedBindings.kind===274?u(B.namedBindings):L(B.namedBindings.elements,f)));break;case 226:Ql(p)!==0&&u(p);default:ro(p,f)}}}},qut=class{constructor(t,u,s){this.fileName=t,this.text=u,this.skipTrivia=s}getLineAndCharacterOfPosition(t){return o0(this,t)}},Zut=class{constructor(t){this.host=t}getCurrentSourceFile(t){var u,s,d,f,p,E,v,b;const B=this.host.getScriptSnapshot(t);if(!B)throw new Error("Could not find file: '"+t+"'.");const k=mfe(t,this.host),T=this.host.getScriptVersion(t);let M;if(this.currentFileName!==t){const z={languageVersion:99,impliedNodeFormat:vH(H0(t,this.host.getCurrentDirectory(),((d=(s=(u=this.host).getCompilerHost)==null?void 0:s.call(u))==null?void 0:d.getCanonicalFileName)||i5(this.host)),(b=(v=(E=(p=(f=this.host).getCompilerHost)==null?void 0:p.call(f))==null?void 0:E.getModuleResolutionCache)==null?void 0:v.call(E))==null?void 0:b.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Zj(this.host.getCompilationSettings()),jsDocParsingMode:0};M=fee(t,B,z,T,!0,k)}else if(this.currentFileVersion!==T){const z=B.getChangeRange(this.currentFileScriptSnapshot);M=Bme(this.currentSourceFile,B,T,z)}return M&&(this.currentFileVersion=T,this.currentFileName=t,this.currentFileScriptSnapshot=B,this.currentSourceFile=M),this.currentSourceFile}},Yut={isCancellationRequested:sg,throwIfCancellationRequested:Ms},Qut=class{constructor(t){this.cancellationToken=t}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=$n)==null||t.instant($n.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new v8}},Mme=class{constructor(t,u=20){this.hostCancellationToken=t,this.throttleWaitMilliseconds=u,this.lastCancellationCheckTime=0}isCancellationRequested(){const t=V0();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=$n)==null||t.instant($n.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new v8}},iBe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],Xut=[...iBe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Yye(XVt())}});function ert(t,u,s){const d=[];s=Zfe(s,d);const f=Ha(t)?t:[t],p=fH(void 0,void 0,q,s,f,u,!0);return p.diagnostics=an(p.diagnostics,d),p}var aHt=o({"src/services/transform.ts"(){or()}});function oHt(t,u){if(t.isDeclarationFile)return;let s=ba(t,u);const d=t.getLineAndCharacterOfPosition(u).line;if(t.getLineAndCharacterOfPosition(s.getStart(t)).line>d){const T=ed(s.pos,t);if(!T||t.getLineAndCharacterOfPosition(T.getEnd()).line!==d)return;s=T}if(s.flags&33554432)return;return k(s);function f(T,M){const z=kk(T)?lt(T.modifiers,p1):void 0,j=z?ms(t.text,z.end):T.getStart(t);return jc(j,(M||T).getEnd())}function p(T,M){return f(T,X2(M,M.parent,t))}function E(T,M){return T&&d===t.getLineAndCharacterOfPosition(T.getStart(t)).line?k(T):k(M)}function v(T,M,z){if(T){const j=T.indexOf(M);if(j>=0){let J=j,K=j+1;for(;J>0&&z(T[J-1]);)J--;for(;K0)return k(He.declarations[0])}else return k(De.initializer)}function ae(De){if(De.initializer)return ge(De);if(De.condition)return f(De.condition);if(De.incrementor)return f(De.incrementor)}function Ce(De){const He=L(De.elements,Ge=>Ge.kind!==232?Ge:void 0);return He?k(He):De.parent.kind===208?f(De.parent):M(De.parent)}function ne(De){H.assert(De.kind!==207&&De.kind!==206);const He=De.kind===209?De.elements:De.properties,Ge=L(He,ft=>ft.kind!==232?ft:void 0);return Ge?k(Ge):f(De.parent.kind===226?De.parent:De)}function ve(De){switch(De.parent.kind){case 266:const He=De.parent;return E(ed(De.pos,t,De.parent),He.members.length?He.members[0]:He.getLastToken(t));case 263:const Ge=De.parent;return E(ed(De.pos,t,De.parent),Ge.members.length?Ge.members[0]:Ge.getLastToken(t));case 269:return E(De.parent.parent,De.parent.clauses[0])}return k(De.parent)}function Se(De){switch(De.parent.kind){case 268:if(aD(De.parent.parent)!==1)return;case 266:case 263:return f(De);case 241:if(C2(De.parent))return f(De);case 299:return k(Yu(De.parent.statements));case 269:const He=De.parent,Ge=Yu(He.clauses);return Ge?k(Yu(Ge.statements)):void 0;case 206:const ft=De.parent;return k(Yu(ft.elements)||ft);default:if(m5(De.parent)){const Ze=De.parent;return f(Yu(Ze.properties)||Ze)}return k(De.parent)}}function Ne(De){switch(De.parent.kind){case 207:const He=De.parent;return f(Yu(He.elements)||He);default:if(m5(De.parent)){const Ge=De.parent;return f(Yu(Ge.elements)||Ge)}return k(De.parent)}}function pe(De){return De.parent.kind===246||De.parent.kind===213||De.parent.kind===214?b(De):De.parent.kind===217?B(De):k(De.parent)}function fe(De){switch(De.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return b(De);default:return k(De.parent)}}function xe(De){return xo(De.parent)||De.parent.kind===303||De.parent.kind===169?b(De):k(De.parent)}function Be(De){return De.parent.kind===216?B(De):k(De.parent)}function We(De){return De.parent.kind===246?p(De,De.parent.expression):k(De.parent)}function Ae(De){return De.parent.kind===250?B(De):k(De.parent)}}}var sHt=o({"src/services/breakpoints.ts"(){or()}}),zme={};h(zme,{spanInSourceFileAtLocation:()=>oHt});var lHt=o({"src/services/_namespaces/ts.BreakpointResolver.ts"(){sHt()}});function cHt(t){return(F0(t)||Qd(t))&&fh(t)}function EK(t){return(F0(t)||G0(t)||Qd(t))&&ua(t.parent)&&t===t.parent.initializer&&at(t.parent.name)&&!!(YD(t.parent)&2)}function trt(t){return ca(t)||Ec(t)||Xc(t)||F0(t)||Kc(t)||Qd(t)||Ml(t)||cc(t)||i3(t)||Mm(t)||Of(t)}function mw(t){return ca(t)||Ec(t)&&at(t.name)||Xc(t)||Kc(t)||Ml(t)||cc(t)||i3(t)||Mm(t)||Of(t)||cHt(t)||EK(t)}function irt(t){return ca(t)?t:fh(t)?t.name:EK(t)?t.parent.name:H.checkDefined(t.modifiers&&Le(t.modifiers,nrt))}function nrt(t){return t.kind===90}function urt(t,u){const s=irt(u);return s&&t.getSymbolAtLocation(s)}function dHt(t,u){if(ca(u))return{text:u.fileName,pos:0,end:0};if((Xc(u)||Kc(u))&&!fh(u)){const f=u.modifiers&&Le(u.modifiers,nrt);if(f)return{text:"default",pos:f.getStart(),end:f.getEnd()}}if(Ml(u)){const f=u.getSourceFile(),p=ms(f.text,tE(u).pos),E=p+6,v=t.getTypeChecker(),b=v.getSymbolAtLocation(u.parent);return{text:`${b?`${v.symbolToString(b,u.parent)} `:""}static {}`,pos:p,end:E}}const s=EK(u)?u.parent.name:H.checkDefined(qa(u),"Expected call hierarchy item to have a name");let d=at(s)?mu(s):Nm(s)?s.text:Ls(s)&&Nm(s.expression)?s.expression.text:void 0;if(d===void 0){const f=t.getTypeChecker(),p=f.getSymbolAtLocation(s);p&&(d=f.symbolToString(p,u))}if(d===void 0){const f=pH();d=WN(p=>f.writeNode(4,u,u.getSourceFile(),p))}return{text:d,pos:s.getStart(),end:s.getEnd()}}function hHt(t){var u,s;if(EK(t))return uE(t.parent.parent.parent.parent)&&at(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 177:case 178:case 174:return t.parent.kind===210?(u=Mse(t.parent))==null?void 0:u.getText():(s=qa(t.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(uE(t.parent)&&at(t.parent.parent.name))return t.parent.parent.name.getText()}}function rrt(t,u){if(u.body)return u;if(dc(u))return Q_(u.parent);if(Xc(u)||cc(u)){const s=urt(t,u);return s&&s.valueDeclaration&&K0(s.valueDeclaration)&&s.valueDeclaration.body?s.valueDeclaration:void 0}return u}function art(t,u){const s=urt(t,u);let d;if(s&&s.declarations){const f=Zr(s.declarations),p=Kt(s.declarations,b=>({file:b.getSourceFile().fileName,pos:b.pos}));f.sort((b,B)=>ch(p[b].file,p[B].file)||p[b].pos-p[B].pos);const E=Kt(f,b=>s.declarations[b]);let v;for(const b of E)mw(b)&&((!v||v.parent!==b.parent||v.end!==b.pos)&&(d=Ei(d,b)),v=b)}return d}function Ime(t,u){return Ml(u)?u:K0(u)?rrt(t,u)??art(t,u)??u:art(t,u)??u}function ort(t,u){const s=t.getTypeChecker();let d=!1;for(;;){if(mw(u))return Ime(s,u);if(trt(u)){const f=Ln(u,mw);return f&&Ime(s,f)}if(Q3(u)){if(mw(u.parent))return Ime(s,u.parent);if(trt(u.parent)){const f=Ln(u.parent,mw);return f&&Ime(s,f)}return ua(u.parent)&&u.parent.initializer&&EK(u.parent.initializer)?u.parent.initializer:void 0}if(dc(u))return mw(u.parent)?u.parent:void 0;if(u.kind===126&&Ml(u.parent)){u=u.parent;continue}if(ua(u)&&u.initializer&&EK(u.initializer))return u.initializer;if(!d){let f=s.getSymbolAtLocation(u);if(f&&(f.flags&2097152&&(f=s.getAliasedSymbol(f)),f.valueDeclaration)){d=!0,u=f.valueDeclaration;continue}}return}}function nBe(t,u){const s=u.getSourceFile(),d=dHt(t,u),f=hHt(u),p=Q2(u),E=LM(u),v=jc(ms(s.text,u.getFullStart(),!1,!0),u.getEnd()),b=jc(d.pos,d.end);return{file:s.fileName,kind:p,kindModifiers:E,name:d.text,containerName:f,span:v,selectionSpan:b}}function fHt(t){return t!==void 0}function mHt(t){if(t.kind===J0.EntryKind.Node){const{node:u}=t;if(Phe(u,!0,!0)||V9e(u,!0,!0)||H9e(u,!0,!0)||K9e(u,!0,!0)||iw(u)||Ohe(u)){const s=u.getSourceFile();return{declaration:Ln(u,mw)||s,range:efe(u,s)}}}}function srt(t){return Js(t.declaration)}function pHt(t,u){return{from:t,fromSpans:u}}function gHt(t,u){return pHt(nBe(t,u[0].declaration),Kt(u,s=>Ux(s.range)))}function EHt(t,u,s){if(ca(u)||Ec(u)||Ml(u))return[];const d=irt(u),f=ei(J0.findReferenceOrRenameEntries(t,s,t.getSourceFiles(),d,0,{use:J0.FindReferencesUse.References},mHt),fHt);return f?xN(f,srt,p=>gHt(t,p)):[]}function _Ht(t,u){function s(f){const p=Ek(f)?f.tag:Ph(f)?f.tagName:N0(f)||Ml(f)?f:f.expression,E=ort(t,p);if(E){const v=efe(p,f.getSourceFile());if(Ha(E))for(const b of E)u.push({declaration:b,range:v});else u.push({declaration:E,range:v})}}function d(f){if(f&&!(f.flags&33554432)){if(mw(f)){if(gr(f))for(const p of f.members)p.name&&Ls(p.name)&&d(p.name.expression);return}switch(f.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:s(f);return;case 216:case 234:d(f.expression);return;case 260:case 169:d(f.name),d(f.initializer);return;case 213:s(f),d(f.expression),L(f.arguments,d);return;case 214:s(f),d(f.expression),L(f.arguments,d);return;case 215:s(f),d(f.tag),d(f.template);return;case 286:case 285:s(f),d(f.tagName),d(f.attributes);return;case 170:s(f),d(f.expression);return;case 211:case 212:s(f),ro(f,d);break;case 238:d(f.expression);return}U_(f)||ro(f,d)}}return d}function DHt(t,u){L(t.statements,u)}function xHt(t,u){!Xu(t,128)&&t.body&&uE(t.body)&&L(t.body.statements,u)}function vHt(t,u,s){const d=rrt(t,u);d&&(L(d.parameters,s),s(d.body))}function CHt(t,u){u(t.body)}function bHt(t,u){L(t.modifiers,u);const s=F2(t);s&&u(s.expression);for(const d of t.members)Op(d)&&L(d.modifiers,u),bo(d)?u(d.initializer):dc(d)&&d.body?(L(d.parameters,u),u(d.body)):Ml(d)&&u(d)}function yHt(t,u){const s=[],d=_Ht(t,s);switch(u.kind){case 312:DHt(u,d);break;case 267:xHt(u,d);break;case 262:case 218:case 219:case 174:case 177:case 178:vHt(t.getTypeChecker(),u,d);break;case 263:case 231:bHt(u,d);break;case 175:CHt(u,d);break;default:H.assertNever(u)}return s}function kHt(t,u){return{to:t,fromSpans:u}}function FHt(t,u){return kHt(nBe(t,u[0].declaration),Kt(u,s=>Ux(s.range)))}function AHt(t,u){return u.flags&33554432||i3(u)?[]:xN(yHt(t,u),srt,s=>FHt(t,s))}var SHt=o({"src/services/callHierarchy.ts"(){or()}}),r9={};h(r9,{createCallHierarchyItem:()=>nBe,getIncomingCalls:()=>EHt,getOutgoingCalls:()=>AHt,resolveCallHierarchyDeclaration:()=>ort});var BHt=o({"src/services/_namespaces/ts.CallHierarchy.ts"(){SHt()}}),lrt={};h(lrt,{TokenEncodingConsts:()=>U8e,TokenModifier:()=>Z8e,TokenType:()=>q8e,getEncodedSemanticClassifications:()=>$8e,getSemanticClassifications:()=>zut});var wHt=o({"src/services/_namespaces/ts.classifier.v2020.ts"(){Out()}}),uBe={};h(uBe,{v2020:()=>lrt});var THt=o({"src/services/_namespaces/ts.classifier.ts"(){wHt()}});function xg(t,u,s){return aBe(t,Rk(s),u,void 0,void 0)}function zo(t,u,s,d,f,p){return aBe(t,Rk(s),u,d,Rk(f),p)}function rBe(t,u,s,d,f,p){return aBe(t,Rk(s),u,d,f&&Rk(f),p)}function aBe(t,u,s,d,f,p){return{fixName:t,description:u,changes:s,fixId:d,fixAllDescription:f,commands:p?[p]:void 0}}function Qo(t){for(const u of t.errorCodes)oBe=void 0,Rme.add(String(u),t);if(t.fixIds)for(const u of t.fixIds)H.assert(!Ome.has(u)),Ome.set(u,t)}function LHt(){return oBe??(oBe=Ea(Rme.keys()))}function NHt(t,u){const{errorCodes:s}=t;let d=0;for(const p of u)if(Ft(s,p.code)&&d++,d>1)break;const f=d<2;return({fixId:p,fixAllDescription:E,...v})=>f?v:{...v,fixId:p,fixAllDescription:E}}function PHt(t){const u=drt(t),s=Rme.get(String(t.errorCode));return Ku(s,d=>Kt(d.getCodeActions(t),NHt(d,u)))}function MHt(t){return Ome.get(Lo(t.fixId,Ja)).getAllCodeActions(t)}function pw(t,u){return{changes:t,commands:u}}function crt(t,u){return{fileName:t,textChanges:u}}function h0(t,u,s){const d=[],f=nu.ChangeTracker.with(t,p=>gw(t,u,E=>s(p,E,d)));return pw(f,d.length===0?void 0:d)}function gw(t,u,s){for(const d of drt(t))Ft(u,d.code)&&s(d)}function drt({program:t,sourceFile:u,cancellationToken:s}){return[...t.getSemanticDiagnostics(u,s),...t.getSyntacticDiagnostics(u,s),...Gfe(u,t,s)]}var Rme,Ome,oBe,zHt=o({"src/services/codeFixProvider.ts"(){or(),Rme=Bm(),Ome=new Map}});function hrt(t,u,s){const d=kV(s)?q.createAsExpression(s.expression,q.createKeywordTypeNode(159)):q.createTypeAssertion(q.createKeywordTypeNode(159),s.expression);t.replaceNode(u,s.expression,d)}function frt(t,u){if(!eu(t))return Ln(ba(t,u),s=>kV(s)||uFe(s))}var jme,sBe,IHt=o({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){or(),us(),jme="addConvertToUnknownForNonOverlappingTypes",sBe=[F.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],Qo({errorCodes:sBe,getCodeActions:function(u){const s=frt(u.sourceFile,u.span.start);if(s===void 0)return;const d=nu.ChangeTracker.with(u,f=>hrt(f,u.sourceFile,s));return[zo(jme,d,F.Add_unknown_conversion_for_non_overlapping_types,jme,F.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[jme],getAllCodeActions:t=>h0(t,sBe,(u,s)=>{const d=frt(s.file,s.start);d&&hrt(u,s.file,d)})})}}),RHt=o({"src/services/codefixes/addEmptyExportDeclaration.ts"(){or(),us(),Qo({errorCodes:[F.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,F.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,F.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(u){const{sourceFile:s}=u,d=nu.ChangeTracker.with(u,f=>{const p=q.createExportDeclaration(void 0,!1,q.createNamedExports([]),void 0);f.insertNodeAtEndOfScope(s,s,p)});return[xg("addEmptyExportDeclaration",d,F.Add_export_to_make_this_file_into_a_module)]}})}});function mrt(t,u,s,d){const f=s(p=>OHt(p,t.sourceFile,u,d));return zo(Vme,f,F.Add_async_modifier_to_containing_function,Vme,F.Add_all_missing_async_modifiers)}function OHt(t,u,s,d){if(d&&d.has(Js(s)))return;d==null||d.add(Js(s));const f=q.replaceModifiers(ol(s,!0),q.createNodeArray(q.createModifiersFromModifierFlags(Ix(s)|1024)));t.replaceNode(u,s,f)}function prt(t,u){if(!u)return;const s=ba(t,u.start);return Ln(s,f=>f.getStart(t)gc(u)?"quit":(G0(f)||cc(f)||F0(f)||Xc(f))&&aw(u,af(f,t)))}function jHt(t,u){return({start:s,length:d,relatedInformation:f,code:p})=>$D(s)&&$D(d)&&aw({start:s,length:d},t)&&p===u&&!!f&&qe(f,E=>E.code===F.Did_you_mean_to_mark_this_function_as_async.code)}var Vme,lBe,VHt=o({"src/services/codefixes/addMissingAsync.ts"(){or(),us(),Vme="addMissingAsync",lBe=[F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Type_0_is_not_assignable_to_type_1.code,F.Type_0_is_not_comparable_to_type_1.code],Qo({fixIds:[Vme],errorCodes:lBe,getCodeActions:function(u){const{sourceFile:s,errorCode:d,cancellationToken:f,program:p,span:E}=u,v=Le(p.getTypeChecker().getDiagnostics(s,f),jHt(E,d)),b=v&&v.relatedInformation&&Le(v.relatedInformation,T=>T.code===F.Did_you_mean_to_mark_this_function_as_async.code),B=prt(s,b);return B?[mrt(u,B,T=>nu.ChangeTracker.with(u,T))]:void 0},getAllCodeActions:t=>{const{sourceFile:u}=t,s=new Set;return h0(t,lBe,(d,f)=>{const p=f.relatedInformation&&Le(f.relatedInformation,b=>b.code===F.Did_you_mean_to_mark_this_function_as_async.code),E=prt(u,p);return E?mrt(t,E,b=>(b(d),[]),s):void 0})}})}});function grt(t,u,s,d,f){const p=bfe(t,s);return p&&HHt(t,u,s,d,f)&&Drt(p)?p:void 0}function Ert(t,u,s,d,f,p){const{sourceFile:E,program:v,cancellationToken:b}=t,B=KHt(u,E,b,v,d);if(B){const k=f(T=>{L(B.initializers,({expression:M})=>cBe(T,s,E,d,M,p)),p&&B.needsSecondPassForFixAll&&cBe(T,s,E,d,u,p)});return xg("addMissingAwaitToInitializer",k,B.initializers.length===1?[F.Add_await_to_initializer_for_0,B.initializers[0].declarationSymbol.name]:F.Add_await_to_initializers)}}function _rt(t,u,s,d,f,p){const E=f(v=>cBe(v,s,t.sourceFile,d,u,p));return zo(Hme,E,F.Add_await,Hme,F.Fix_all_expressions_possibly_missing_await)}function HHt(t,u,s,d,f){const E=f.getTypeChecker().getDiagnostics(t,d);return qe(E,({start:v,length:b,relatedInformation:B,code:k})=>$D(v)&&$D(b)&&aw({start:v,length:b},s)&&k===u&&!!B&&qe(B,T=>T.code===F.Did_you_forget_to_use_await.code))}function KHt(t,u,s,d,f){const p=WHt(t,f);if(!p)return;let E=p.isCompleteFix,v;for(const b of p.identifiers){const B=f.getSymbolAtLocation(b);if(!B)continue;const k=ar(B.valueDeclaration,ua),T=k&&ar(k.name,at),M=yv(k,243);if(!k||!M||k.type||!k.initializer||M.getSourceFile()!==u||Xu(M,32)||!T||!Drt(k.initializer)){E=!1;continue}const z=d.getSemanticDiagnostics(u,s);if(J0.Core.eachSymbolReferenceInFile(T,f,u,J=>b!==J&&!GHt(J,z,u,f))){E=!1;continue}(v||(v=[])).push({expression:k.initializer,declarationSymbol:B})}return v&&{initializers:v,needsSecondPassForFixAll:!E}}function WHt(t,u){if(Iu(t.parent)&&at(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(at(t))return{identifiers:[t],isCompleteFix:!0};if(tu(t)){let s,d=!0;for(const f of[t.left,t.right]){const p=u.getTypeAtLocation(f);if(u.getPromisedTypeOfPromise(p)){if(!at(f)){d=!1;continue}(s||(s=[])).push(f)}}return s&&{identifiers:s,isCompleteFix:d}}}function GHt(t,u,s,d){const f=Iu(t.parent)?t.parent.name:tu(t.parent)?t.parent:t,p=Le(u,E=>E.start===f.getStart(s)&&E.start+E.length===f.getEnd());return p&&Ft(Kme,p.code)||d.getTypeAtLocation(f).flags&1}function Drt(t){return t.flags&65536||!!Ln(t,u=>u.parent&&G0(u.parent)&&u.parent.body===u||fo(u)&&(u.parent.kind===262||u.parent.kind===218||u.parent.kind===219||u.parent.kind===174))}function cBe(t,u,s,d,f,p){if(FV(f.parent)&&!f.parent.awaitModifier){const E=d.getTypeAtLocation(f),v=d.getAsyncIterableType();if(v&&d.isTypeAssignableTo(E,v)){const b=f.parent;t.replaceNode(s,b,q.updateForOfStatement(b,q.createToken(135),b.initializer,b.expression,b.statement));return}}if(tu(f))for(const E of[f.left,f.right]){if(p&&at(E)){const B=d.getSymbolAtLocation(E);if(B&&p.has(qo(B)))continue}const v=d.getTypeAtLocation(E),b=d.getPromisedTypeOfPromise(v)?q.createAwaitExpression(E):E;t.replaceNode(s,E,b)}else if(u===dBe&&Iu(f.parent)){if(p&&at(f.parent.expression)){const E=d.getSymbolAtLocation(f.parent.expression);if(E&&p.has(qo(E)))return}t.replaceNode(s,f.parent.expression,q.createParenthesizedExpression(q.createAwaitExpression(f.parent.expression))),xrt(t,f.parent.expression,s)}else if(Ft(hBe,u)&&JE(f.parent)){if(p&&at(f)){const E=d.getSymbolAtLocation(f);if(E&&p.has(qo(E)))return}t.replaceNode(s,f,q.createParenthesizedExpression(q.createAwaitExpression(f))),xrt(t,f,s)}else{if(p&&ua(f.parent)&&at(f.parent.name)){const E=d.getSymbolAtLocation(f.parent.name);if(E&&!Ll(p,qo(E)))return}t.replaceNode(s,f,q.createAwaitExpression(f))}}function xrt(t,u,s){const d=ed(u.pos,s);d&&AX(d.end,d.parent,s)&&t.insertText(s,u.getStart(s),";")}var Hme,dBe,hBe,Kme,JHt=o({"src/services/codefixes/addMissingAwait.ts"(){or(),us(),Hme="addMissingAwait",dBe=F.Property_0_does_not_exist_on_type_1.code,hBe=[F.This_expression_is_not_callable.code,F.This_expression_is_not_constructable.code],Kme=[F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.Operator_0_cannot_be_applied_to_type_1.code,F.Operator_0_cannot_be_applied_to_types_1_and_2.code,F.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,F.This_condition_will_always_return_true_since_this_0_is_always_defined.code,F.Type_0_is_not_an_array_type.code,F.Type_0_is_not_an_array_type_or_a_string_type.code,F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,F.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,dBe,...hBe],Qo({fixIds:[Hme],errorCodes:Kme,getCodeActions:function(u){const{sourceFile:s,errorCode:d,span:f,cancellationToken:p,program:E}=u,v=grt(s,d,f,p,E);if(!v)return;const b=u.program.getTypeChecker(),B=k=>nu.ChangeTracker.with(u,k);return kr([Ert(u,v,d,b,B),_rt(u,v,d,b,B)])},getAllCodeActions:t=>{const{sourceFile:u,program:s,cancellationToken:d}=t,f=t.program.getTypeChecker(),p=new Set;return h0(t,Kme,(E,v)=>{const b=grt(u,v.code,v,d,s);if(!b)return;const B=k=>(k(E),[]);return Ert(t,b,v.code,f,B,p)||_rt(t,b,v.code,f,B,p)})}})}});function vrt(t,u,s,d,f){const p=ba(u,s),E=Ln(p,B=>N8(B.parent)?B.parent.initializer===B:$Ht(B)?!1:"quit");if(E)return Wme(t,E,u,f);const v=p.parent;if(tu(v)&&v.operatorToken.kind===64&&Id(v.parent))return Wme(t,p,u,f);if(_h(v)){const B=d.getTypeChecker();return ye(v.elements,k=>UHt(k,B))?Wme(t,v,u,f):void 0}const b=Ln(p,B=>Id(B.parent)?!0:qHt(B)?!1:"quit");if(b){const B=d.getTypeChecker();return Crt(b,B)?Wme(t,b,u,f):void 0}}function Wme(t,u,s,d){(!d||Ll(d,u))&&t.insertModifierBefore(s,87,u)}function $Ht(t){switch(t.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function UHt(t,u){const s=at(t)?t:od(t,!0)&&at(t.left)?t.left:void 0;return!!s&&!u.getSymbolAtLocation(s)}function qHt(t){switch(t.kind){case 80:case 226:case 28:return!0;default:return!1}}function Crt(t,u){return tu(t)?t.operatorToken.kind===28?ye([t.left,t.right],s=>Crt(s,u)):t.operatorToken.kind===64&&at(t.left)&&!u.getSymbolAtLocation(t.left):!1}var Gme,fBe,ZHt=o({"src/services/codefixes/addMissingConst.ts"(){or(),us(),Gme="addMissingConst",fBe=[F.Cannot_find_name_0.code,F.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Qo({errorCodes:fBe,getCodeActions:function(u){const s=nu.ChangeTracker.with(u,d=>vrt(d,u.sourceFile,u.span.start,u.program));if(s.length>0)return[zo(Gme,s,F.Add_const_to_unresolved_variable,Gme,F.Add_const_to_all_unresolved_variables)]},fixIds:[Gme],getAllCodeActions:t=>{const u=new Set;return h0(t,fBe,(s,d)=>vrt(s,d.file,d.start,t.program,u))}})}});function brt(t,u,s,d){const f=ba(u,s);if(!at(f))return;const p=f.parent;p.kind===172&&(!d||Ll(d,p))&&t.insertModifierBefore(u,138,p)}var Jme,mBe,YHt=o({"src/services/codefixes/addMissingDeclareProperty.ts"(){or(),us(),Jme="addMissingDeclareProperty",mBe=[F.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],Qo({errorCodes:mBe,getCodeActions:function(u){const s=nu.ChangeTracker.with(u,d=>brt(d,u.sourceFile,u.span.start));if(s.length>0)return[zo(Jme,s,F.Prefix_with_declare,Jme,F.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[Jme],getAllCodeActions:t=>{const u=new Set;return h0(t,mBe,(s,d)=>brt(s,d.file,d.start,u))}})}});function yrt(t,u,s){const d=ba(u,s),f=Ln(d,p1);H.assert(!!f,"Expected position to be owned by a decorator.");const p=q.createCallExpression(f.expression,void 0,void 0);t.replaceNode(u,f.expression,p)}var $me,pBe,QHt=o({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){or(),us(),$me="addMissingInvocationForDecorator",pBe=[F._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Qo({errorCodes:pBe,getCodeActions:function(u){const s=nu.ChangeTracker.with(u,d=>yrt(d,u.sourceFile,u.span.start));return[zo($me,s,F.Call_decorator_expression,$me,F.Add_to_all_uncalled_decorators)]},fixIds:[$me],getAllCodeActions:t=>h0(t,pBe,(u,s)=>yrt(u,s.file,s.start))})}});function krt(t,u,s){const d=ba(u,s),f=d.parent;if(!eo(f))return H.fail("Tried to add a parameter name to a non-parameter: "+H.formatSyntaxKind(d.kind));const p=f.parent.parameters.indexOf(f);H.assert(!f.type,"Tried to add a parameter name to a parameter that already had one."),H.assert(p>-1,"Parameter not found in parent parameter list.");let E=f.name.getEnd(),v=q.createTypeReferenceNode(f.name,void 0),b=Frt(u,f);for(;b;)v=q.createArrayTypeNode(v),E=b.getEnd(),b=Frt(u,b);const B=q.createParameterDeclaration(f.modifiers,f.dotDotDotToken,"arg"+p,f.questionToken,f.dotDotDotToken&&!nY(v)?q.createArrayTypeNode(v):v,f.initializer);t.replaceRange(u,o4(f.getStart(u),E),B)}function Frt(t,u){const s=X2(u.name,u.parent,t);if(s&&s.kind===23&&gk(s.parent)&&eo(s.parent.parent))return s.parent.parent}var Ume,gBe,XHt=o({"src/services/codefixes/addNameToNamelessParameter.ts"(){or(),us(),Ume="addNameToNamelessParameter",gBe=[F.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Qo({errorCodes:gBe,getCodeActions:function(u){const s=nu.ChangeTracker.with(u,d=>krt(d,u.sourceFile,u.span.start));return[zo(Ume,s,F.Add_parameter_name,Ume,F.Add_names_to_all_parameters_without_names)]},fixIds:[Ume],getAllCodeActions:t=>h0(t,gBe,(u,s)=>krt(u,s.file,s.start))})}});function eKt(t,u,s){var d,f;const p=Art(bfe(t,u),s);if(!p)return _t;const{source:E,target:v}=p,b=tKt(E,v,s)?s.getTypeAtLocation(v.expression):s.getTypeAtLocation(v);return(f=(d=b.symbol)==null?void 0:d.declarations)!=null&&f.some(B=>In(B).fileName.match(/\.d\.ts$/))?_t:s.getExactOptionalProperties(b)}function tKt(t,u,s){return Iu(u)&&!!s.getExactOptionalProperties(s.getTypeAtLocation(u.expression)).length&&s.getTypeAtLocation(t)===s.getUndefinedType()}function Art(t,u){var s;if(t){if(tu(t.parent)&&t.parent.operatorToken.kind===64)return{source:t.parent.right,target:t.parent.left};if(ua(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(No(t.parent)){const d=u.getSymbolAtLocation(t.parent.expression);if(!(d!=null&&d.valueDeclaration)||!u7(d.valueDeclaration.kind)||!Wt(t))return;const f=t.parent.arguments.indexOf(t);if(f===-1)return;const p=d.valueDeclaration.parameters[f].name;if(at(p))return{source:t,target:p}}else if(Gc(t.parent)&&at(t.parent.name)||mm(t.parent)){const d=Art(t.parent.parent,u);if(!d)return;const f=u.getPropertyOfType(u.getTypeAtLocation(d.target),t.parent.name.text),p=(s=f==null?void 0:f.declarations)==null?void 0:s[0];return p?{source:Gc(t.parent)?t.parent.initializer:t.parent.name,target:p}:void 0}}else return}function iKt(t,u){for(const s of u){const d=s.valueDeclaration;if(d&&(Pm(d)||bo(d))&&d.type){const f=q.createUnionTypeNode([...d.type.kind===192?d.type.types:[d.type],q.createTypeReferenceNode("undefined")]);t.replaceNode(d.getSourceFile(),d.type,f)}}}var EBe,Srt,nKt=o({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){or(),us(),EBe="addOptionalPropertyUndefined",Srt=[F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],Qo({errorCodes:Srt,getCodeActions(t){const u=t.program.getTypeChecker(),s=eKt(t.sourceFile,t.span,u);if(!s.length)return;const d=nu.ChangeTracker.with(t,f=>iKt(f,s));return[xg(EBe,d,F.Add_undefined_to_optional_property_type)]},fixIds:[EBe]})}});function Brt(t,u){const s=ba(t,u);return ar(eo(s.parent)?s.parent.parent:s.parent,wrt)}function wrt(t){return uKt(t)&&Trt(t)}function Trt(t){return K0(t)?t.parameters.some(Trt)||!t.type&&!!OO(t):!t.type&&!!Dv(t)}function Lrt(t,u,s){if(K0(s)&&(OO(s)||s.parameters.some(d=>!!Dv(d)))){if(!s.typeParameters){const f=Mq(s);f.length&&t.insertTypeParameters(u,s,f)}const d=G0(s)&&!r0(s,21,u);d&&t.insertNodeBefore(u,Mn(s.parameters),q.createToken(21));for(const f of s.parameters)if(!f.type){const p=Dv(f);p&&t.tryInsertTypeAnnotation(u,f,yt(p,ub,Qr))}if(d&&t.insertNodeAfter(u,Cr(s.parameters),q.createToken(22)),!s.type){const f=OO(s);f&&t.tryInsertTypeAnnotation(u,s,yt(f,ub,Qr))}}else{const d=H.checkDefined(Dv(s),"A JSDocType for this declaration should exist");H.assert(!s.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(u,s,yt(d,ub,Qr))}}function uKt(t){return K0(t)||t.kind===260||t.kind===171||t.kind===172}function ub(t){switch(t.kind){case 319:case 320:return q.createTypeReferenceNode("any",_t);case 323:return aKt(t);case 322:return ub(t.type);case 321:return oKt(t);case 325:return sKt(t);case 324:return lKt(t);case 183:return dKt(t);case 329:return rKt(t);default:const u=un(t,ub,Eg);return Qn(u,1),u}}function rKt(t){const u=q.createTypeLiteralNode(Kt(t.jsDocPropertyTags,s=>q.createPropertySignature(void 0,at(s.name)?s.name:s.name.right,uV(s)?q.createToken(58):void 0,s.typeExpression&&yt(s.typeExpression.type,ub,Qr)||q.createKeywordTypeNode(133))));return Qn(u,1),u}function aKt(t){return q.createUnionTypeNode([yt(t.type,ub,Qr),q.createTypeReferenceNode("undefined",_t)])}function oKt(t){return q.createUnionTypeNode([yt(t.type,ub,Qr),q.createTypeReferenceNode("null",_t)])}function sKt(t){return q.createArrayTypeNode(yt(t.type,ub,Qr))}function lKt(t){return q.createFunctionTypeNode(_t,t.parameters.map(cKt),t.type??q.createKeywordTypeNode(133))}function cKt(t){const u=t.parent.parameters.indexOf(t),s=t.type.kind===325&&u===t.parent.parameters.length-1,d=t.name||(s?"rest":"arg"+u),f=s?q.createToken(26):t.dotDotDotToken;return q.createParameterDeclaration(t.modifiers,f,d,t.questionToken,yt(t.type,ub,Qr),t.initializer)}function dKt(t){let u=t.typeName,s=t.typeArguments;if(at(t.typeName)){if(gq(t))return hKt(t);let d=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":d=d.toLowerCase();break;case"array":case"date":case"promise":d=d[0].toUpperCase()+d.slice(1);break}u=q.createIdentifier(d),(d==="Array"||d==="Promise")&&!t.typeArguments?s=q.createNodeArray([q.createTypeReferenceNode("any",_t)]):s=Fn(t.typeArguments,ub,Qr)}return q.createTypeReferenceNode(u,s)}function hKt(t){const u=q.createParameterDeclaration(void 0,void 0,t.typeArguments[0].kind===150?"n":"s",void 0,q.createTypeReferenceNode(t.typeArguments[0].kind===150?"number":"string",[]),void 0),s=q.createTypeLiteralNode([q.createIndexSignature(void 0,[u],t.typeArguments[1])]);return Qn(s,1),s}var qme,_Be,fKt=o({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){or(),us(),qme="annotateWithTypeFromJSDoc",_Be=[F.JSDoc_types_may_be_moved_to_TypeScript_types.code],Qo({errorCodes:_Be,getCodeActions(t){const u=Brt(t.sourceFile,t.span.start);if(!u)return;const s=nu.ChangeTracker.with(t,d=>Lrt(d,t.sourceFile,u));return[zo(qme,s,F.Annotate_with_type_from_JSDoc,qme,F.Annotate_everything_with_types_from_JSDoc)]},fixIds:[qme],getAllCodeActions:t=>h0(t,_Be,(u,s)=>{const d=Brt(s.file,s.start);d&&Lrt(u,s.file,d)})})}});function Nrt(t,u,s,d,f,p){const E=d.getSymbolAtLocation(ba(u,s));if(!E||!E.valueDeclaration||!(E.flags&19))return;const v=E.valueDeclaration;if(Xc(v)||F0(v))t.replaceNode(u,v,k(v));else if(ua(v)){const T=B(v);if(!T)return;const M=v.parent.parent;Fd(v.parent)&&v.parent.declarations.length>1?(t.delete(u,v),t.insertNodeAfter(u,M,T)):t.replaceNode(u,M,T)}function b(T){const M=[];return T.exports&&T.exports.forEach(J=>{if(J.name==="prototype"&&J.declarations){const K=J.declarations[0];if(J.declarations.length===1&&Iu(K)&&tu(K.parent)&&K.parent.operatorToken.kind===64&&Cs(K.parent.right)){const Y=K.parent.right;j(Y.symbol,void 0,M)}}else j(J,[q.createToken(126)],M)}),T.members&&T.members.forEach((J,K)=>{var Y,oe,se,ge;if(K==="constructor"&&J.valueDeclaration){const ae=(ge=(se=(oe=(Y=T.exports)==null?void 0:Y.get("prototype"))==null?void 0:oe.declarations)==null?void 0:se[0])==null?void 0:ge.parent;ae&&tu(ae)&&Cs(ae.right)&&qe(ae.right.properties,Yme)||t.delete(u,J.valueDeclaration.parent);return}j(J,void 0,M)}),M;function z(J,K){return N0(J)?Iu(J)&&Yme(J)?!0:xo(K):ye(J.properties,Y=>!!(cc(Y)||BU(Y)||Gc(Y)&&F0(Y.initializer)&&Y.name||Yme(Y)))}function j(J,K,Y){if(!(J.flags&8192)&&!(J.flags&4096))return;const oe=J.valueDeclaration,se=oe.parent,ge=se.right;if(!z(oe,ge)||qe(Y,Se=>{const Ne=qa(Se);return!!(Ne&&at(Ne)&&mu(Ne)===sc(J))}))return;const ae=se.parent&&se.parent.kind===244?se.parent:se;if(t.delete(u,ae),!ge){Y.push(q.createPropertyDeclaration(K,J.name,void 0,void 0,void 0));return}if(N0(oe)&&(F0(ge)||G0(ge))){const Se=Vm(u,f),Ne=mKt(oe,p,Se);Ne&&Ce(Y,ge,Ne);return}else if(Cs(ge)){L(ge.properties,Se=>{(cc(Se)||BU(Se))&&Y.push(Se),Gc(Se)&&F0(Se.initializer)&&Ce(Y,Se.initializer,Se.name),Yme(Se)});return}else{if(ph(u)||!Iu(oe))return;const Se=q.createPropertyDeclaration(K,oe.name,void 0,void 0,ge);sw(se.parent,Se,u),Y.push(Se);return}function Ce(Se,Ne,pe){return F0(Ne)?ne(Se,Ne,pe):ve(Se,Ne,pe)}function ne(Se,Ne,pe){const fe=an(K,Zme(Ne,134)),xe=q.createMethodDeclaration(fe,void 0,pe,void 0,void 0,Ne.parameters,void 0,Ne.body);sw(se,xe,u),Se.push(xe)}function ve(Se,Ne,pe){const fe=Ne.body;let xe;fe.kind===241?xe=fe:xe=q.createBlock([q.createReturnStatement(fe)]);const Be=an(K,Zme(Ne,134)),We=q.createMethodDeclaration(Be,void 0,pe,void 0,void 0,Ne.parameters,void 0,xe);sw(se,We,u),Se.push(We)}}}function B(T){const M=T.initializer;if(!M||!F0(M)||!at(T.name))return;const z=b(T.symbol);M.body&&z.unshift(q.createConstructorDeclaration(void 0,M.parameters,M.body));const j=Zme(T.parent.parent,95);return q.createClassDeclaration(j,T.name,void 0,void 0,z)}function k(T){const M=b(E);T.body&&M.unshift(q.createConstructorDeclaration(void 0,T.parameters,T.body));const z=Zme(T,95);return q.createClassDeclaration(z,T.name,void 0,void 0,M)}}function Zme(t,u){return Op(t)?ei(t.modifiers,s=>s.kind===u):void 0}function Yme(t){return t.name?!!(at(t.name)&&t.name.text==="constructor"):!1}function mKt(t,u,s){if(Iu(t))return t.name;const d=t.argumentExpression;if(Rf(d))return d;if(t0(d))return Tm(d.text,Is(u))?q.createIdentifier(d.text):B7(d)?q.createStringLiteral(d.text,s===0):d}var Qme,DBe,pKt=o({"src/services/codefixes/convertFunctionToEs6Class.ts"(){or(),us(),Qme="convertFunctionToEs6Class",DBe=[F.This_constructor_function_may_be_converted_to_a_class_declaration.code],Qo({errorCodes:DBe,getCodeActions(t){const u=nu.ChangeTracker.with(t,s=>Nrt(s,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[zo(Qme,u,F.Convert_function_to_an_ES2015_class,Qme,F.Convert_all_constructor_functions_to_classes)]},fixIds:[Qme],getAllCodeActions:t=>h0(t,DBe,(u,s)=>Nrt(u,s.file,s.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()))})}});function Prt(t,u,s,d){const f=ba(u,s);let p;if(at(f)&&ua(f.parent)&&f.parent.initializer&&K0(f.parent.initializer)?p=f.parent.initializer:p=ar(Lm(ba(u,s)),Ufe),!p)return;const E=new Map,v=eu(p),b=EKt(p,d),B=_Kt(p,d,E);if(!Jfe(B,d))return;const k=B.body&&fo(B.body)?gKt(B.body,d):_t,T={checker:d,synthNamesMap:E,setOfExpressionsToReturn:b,isInJSFile:v};if(!k.length)return;const M=ms(u.text,tE(p).pos);t.insertModifierAt(u,M,134,{suffix:" "});for(const z of k)if(ro(z,function j(J){if(No(J)){const K=Ew(J,J,T,!1);if(a9())return!0;t.replaceNodeWithNodes(u,z,K)}else if(!xo(J)&&(ro(J,j),a9()))return!0}),a9())return}function gKt(t,u){const s=[];return v2(t,d=>{WX(d,u)&&s.push(d)}),s}function EKt(t,u){if(!t.body)return new Set;const s=new Set;return ro(t.body,function d(f){_K(f,u,"then")?(s.add(Js(f)),L(f.arguments,d)):_K(f,u,"catch")||_K(f,u,"finally")?(s.add(Js(f)),ro(f,d)):zrt(f,u)?s.add(Js(f)):ro(f,d)}),s}function _K(t,u,s){if(!No(t))return!1;const f=TH(t,s)&&u.getTypeAtLocation(t);return!!(f&&u.getPromisedTypeOfPromise(f))}function Mrt(t,u){return($u(t)&4)!==0&&t.target===u}function Xme(t,u,s){if(t.expression.name.escapedText==="finally")return;const d=s.getTypeAtLocation(t.expression.expression);if(Mrt(d,s.getPromiseType())||Mrt(d,s.getPromiseLikeType()))if(t.expression.name.escapedText==="then"){if(u===UD(t.arguments,0))return UD(t.typeArguments,0);if(u===UD(t.arguments,1))return UD(t.typeArguments,1)}else return UD(t.typeArguments,0)}function zrt(t,u){return Wt(t)?!!u.getPromisedTypeOfPromise(u.getTypeAtLocation(t)):!1}function _Kt(t,u,s){const d=new Map,f=Bm();return ro(t,function p(E){if(!at(E)){ro(E,p);return}const v=u.getSymbolAtLocation(E);if(v){const b=u.getTypeAtLocation(E),B=Hrt(b,u),k=qo(v).toString();if(B&&!eo(E.parent)&&!K0(E.parent)&&!s.has(k)){const T=Hi(B.parameters),M=(T==null?void 0:T.valueDeclaration)&&eo(T.valueDeclaration)&&ar(T.valueDeclaration.name,at)||q.createUniqueName("result",16),z=Irt(M,f);s.set(k,z),f.add(M.text,v)}else if(E.parent&&(eo(E.parent)||ua(E.parent)||Rs(E.parent))){const T=E.text,M=f.get(T);if(M&&M.some(z=>z!==v)){const z=Irt(E,f);d.set(k,z.identifier),s.set(k,z),f.add(T,v)}else{const z=ol(E);s.set(k,JM(z)),f.add(T,v)}}}}),JH(t,!0,p=>{if(Rs(p)&&at(p.name)&&Mp(p.parent)){const E=u.getSymbolAtLocation(p.name),v=E&&d.get(String(qo(E)));if(v&&v.text!==(p.name||p.propertyName).getText())return q.createBindingElement(p.dotDotDotToken,p.propertyName||p.name,v,p.initializer)}else if(at(p)){const E=u.getSymbolAtLocation(p),v=E&&d.get(String(qo(E)));if(v)return q.createIdentifier(v.text)}})}function Irt(t,u){const s=(u.get(t.text)||_t).length,d=s===0?t:q.createIdentifier(t.text+"_"+s);return JM(d)}function a9(){return!gee}function Uv(){return gee=!1,_t}function Ew(t,u,s,d,f){if(_K(u,s.checker,"then"))return vKt(u,UD(u.arguments,0),UD(u.arguments,1),s,d,f);if(_K(u,s.checker,"catch"))return jrt(u,UD(u.arguments,0),s,d,f);if(_K(u,s.checker,"finally"))return xKt(u,UD(u.arguments,0),s,d,f);if(Iu(u))return Ew(t,u.expression,s,d,f);const p=s.checker.getTypeAtLocation(u);return p&&s.checker.getPromisedTypeOfPromise(p)?(H.assertNode(Kl(u).parent,Iu),CKt(t,u,s,d,f)):Uv()}function e4e({checker:t},u){if(u.kind===106)return!0;if(at(u)&&!ul(u)&&mu(u)==="undefined"){const s=t.getSymbolAtLocation(u);return!s||t.isUndefinedSymbol(s)}return!1}function DKt(t){const u=q.createUniqueName(t.identifier.text,16);return JM(u)}function Rrt(t,u,s){let d;return s&&!xK(t,u)&&(DK(s)?(d=s,u.synthNamesMap.forEach((f,p)=>{if(f.identifier.text===s.identifier.text){const E=DKt(s);u.synthNamesMap.set(p,E)}})):d=JM(q.createUniqueName("result",16),s.types),bBe(d)),d}function Ort(t,u,s,d,f){const p=[];let E;if(d&&!xK(t,u)){E=ol(bBe(d));const v=d.types,b=u.checker.getUnionType(v,2),B=u.isInJSFile?void 0:u.checker.typeToTypeNode(b,void 0,void 0),k=[q.createVariableDeclaration(E,void 0,B)],T=q.createVariableStatement(void 0,q.createVariableDeclarationList(k,1));p.push(T)}return p.push(s),f&&E&&kKt(f)&&p.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ol(Jrt(f)),void 0,void 0,E)],2))),p}function xKt(t,u,s,d,f){if(!u||e4e(s,u))return Ew(t,t.expression.expression,s,d,f);const p=Rrt(t,s,f),E=Ew(t,t.expression.expression,s,!0,p);if(a9())return Uv();const v=vBe(u,d,void 0,void 0,t,s);if(a9())return Uv();const b=q.createBlock(E),B=q.createBlock(v),k=q.createTryStatement(b,void 0,B);return Ort(t,s,k,p,f)}function jrt(t,u,s,d,f){if(!u||e4e(s,u))return Ew(t,t.expression.expression,s,d,f);const p=Wrt(u,s),E=Rrt(t,s,f),v=Ew(t,t.expression.expression,s,!0,E);if(a9())return Uv();const b=vBe(u,d,E,p,t,s);if(a9())return Uv();const B=q.createBlock(v),k=q.createCatchClause(p&&ol(pee(p)),q.createBlock(b)),T=q.createTryStatement(B,k,void 0);return Ort(t,s,T,E,f)}function vKt(t,u,s,d,f,p){if(!u||e4e(d,u))return jrt(t,s,d,f,p);if(s&&!e4e(d,s))return Uv();const E=Wrt(u,d),v=Ew(t.expression.expression,t.expression.expression,d,!0,E);if(a9())return Uv();const b=vBe(u,f,p,E,t,d);return a9()?Uv():an(v,b)}function CKt(t,u,s,d,f){if(xK(t,s)){let p=ol(u);return d&&(p=q.createAwaitExpression(p)),[q.createReturnStatement(p)]}return t4e(f,q.createAwaitExpression(u),void 0)}function t4e(t,u,s){return!t||Grt(t)?[q.createExpressionStatement(u)]:DK(t)&&t.hasBeenDeclared?[q.createExpressionStatement(q.createAssignment(ol(CBe(t)),u))]:[q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ol(pee(t)),void 0,s,u)],2))]}function xBe(t,u){if(u&&t){const s=q.createUniqueName("result",16);return[...t4e(JM(s),t,u),q.createReturnStatement(s)]}return[q.createReturnStatement(t)]}function vBe(t,u,s,d,f,p){var E;switch(t.kind){case 106:break;case 211:case 80:if(!d)break;const v=q.createCallExpression(ol(t),void 0,DK(d)?[CBe(d)]:[]);if(xK(f,p))return xBe(v,Xme(f,t,p.checker));const b=p.checker.getTypeAtLocation(t),B=p.checker.getSignaturesOfType(b,0);if(!B.length)return Uv();const k=B[0].getReturnType(),T=t4e(s,q.createAwaitExpression(v),Xme(f,t,p.checker));return s&&s.types.push(p.checker.getAwaitedType(k)||k),T;case 218:case 219:{const M=t.body,z=(E=Hrt(p.checker.getTypeAtLocation(t),p.checker))==null?void 0:E.getReturnType();if(fo(M)){let j=[],J=!1;for(const K of M.statements)if(zp(K))if(J=!0,WX(K,p.checker))j=j.concat(Krt(p,K,u,s));else{const Y=z&&K.expression?Vrt(p.checker,z,K.expression):K.expression;j.push(...xBe(Y,Xme(f,t,p.checker)))}else{if(u&&v2(K,G3))return Uv();j.push(K)}return xK(f,p)?j.map(K=>ol(K)):bKt(j,s,p,J)}else{const j=$fe(M,p.checker)?Krt(p,q.createReturnStatement(M),u,s):_t;if(j.length>0)return j;if(z){const J=Vrt(p.checker,z,M);if(xK(f,p))return xBe(J,Xme(f,t,p.checker));{const K=t4e(s,J,void 0);return s&&s.types.push(p.checker.getAwaitedType(z)||z),K}}else return Uv()}}default:return Uv()}return _t}function Vrt(t,u,s){const d=ol(s);return t.getPromisedTypeOfPromise(u)?q.createAwaitExpression(d):d}function Hrt(t,u){const s=u.getSignaturesOfType(t,0);return Yu(s)}function bKt(t,u,s,d){const f=[];for(const p of t)if(zp(p)){if(p.expression){const E=zrt(p.expression,s.checker)?q.createAwaitExpression(p.expression):p.expression;u===void 0?f.push(q.createExpressionStatement(E)):DK(u)&&u.hasBeenDeclared?f.push(q.createExpressionStatement(q.createAssignment(CBe(u),E))):f.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(pee(u),void 0,void 0,E)],2)))}}else f.push(ol(p));return!d&&u!==void 0&&f.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(pee(u),void 0,void 0,q.createIdentifier("undefined"))],2))),f}function Krt(t,u,s,d){let f=[];return ro(u,function p(E){if(No(E)){const v=Ew(E,E,t,s,d);if(f=f.concat(v),f.length>0)return}else xo(E)||ro(E,p)}),f}function Wrt(t,u){const s=[];let d;if(K0(t)){if(t.parameters.length>0){const b=t.parameters[0].name;d=f(b)}}else at(t)?d=p(t):Iu(t)&&at(t.name)&&(d=p(t.name));if(!d||"identifier"in d&&d.identifier.text==="undefined")return;return d;function f(b){if(at(b))return p(b);const B=Ku(b.elements,k=>kd(k)?[]:[f(k.name)]);return yKt(b,B)}function p(b){const B=v(b),k=E(B);return k&&u.synthNamesMap.get(qo(k).toString())||JM(b,s)}function E(b){var B;return((B=ar(b,qg))==null?void 0:B.symbol)??u.checker.getSymbolAtLocation(b)}function v(b){return b.original?b.original:b}}function Grt(t){return t?DK(t)?!t.identifier.text:ye(t.elements,Grt):!0}function JM(t,u=[]){return{kind:0,identifier:t,types:u,hasBeenDeclared:!1,hasBeenReferenced:!1}}function yKt(t,u=_t,s=[]){return{kind:1,bindingPattern:t,elements:u,types:s}}function CBe(t){return t.hasBeenReferenced=!0,t.identifier}function pee(t){return DK(t)?bBe(t):Jrt(t)}function Jrt(t){for(const u of t.elements)pee(u);return t.bindingPattern}function bBe(t){return t.hasBeenDeclared=!0,t.identifier}function DK(t){return t.kind===0}function kKt(t){return t.kind===1}function xK(t,u){return!!t.original&&u.setOfExpressionsToReturn.has(Js(t.original))}var i4e,yBe,gee,FKt=o({"src/services/codefixes/convertToAsyncFunction.ts"(){or(),us(),i4e="convertToAsyncFunction",yBe=[F.This_may_be_converted_to_an_async_function.code],gee=!0,Qo({errorCodes:yBe,getCodeActions(t){gee=!0;const u=nu.ChangeTracker.with(t,s=>Prt(s,t.sourceFile,t.span.start,t.program.getTypeChecker()));return gee?[zo(i4e,u,F.Convert_to_async_function,i4e,F.Convert_all_to_async_functions)]:[]},fixIds:[i4e],getAllCodeActions:t=>h0(t,yBe,(u,s)=>Prt(u,s.file,s.start,t.program.getTypeChecker()))})}});function AKt(t,u,s,d,f){var p;for(const E of t.imports){const v=(p=s.getResolvedModule(t,E.text,_g(t,E)))==null?void 0:p.resolvedModule;if(!v||v.resolvedFileName!==u.fileName)continue;const b=eP(E);switch(b.kind){case 271:d.replaceNode(t,b,p5(b.name,void 0,E,f));break;case 213:Df(b,!1)&&d.replaceNode(t,b,q.createPropertyAccessExpression(ol(b),"default"));break}}}function SKt(t,u,s,d,f){const p={original:VKt(t),additional:new Set},E=BKt(t,u,p);wKt(t,E,s);let v=!1,b;for(const B of ei(t.statements,Gl)){const k=Urt(t,B,s,u,p,d,f);k&&GU(k,b??(b=new Map))}for(const B of ei(t.statements,k=>!Gl(k))){const k=TKt(t,B,u,s,p,d,E,b,f);v=v||k}return b==null||b.forEach((B,k)=>{s.replaceNode(t,k,B)}),v}function BKt(t,u,s){const d=new Map;return $rt(t,f=>{const{text:p}=f.name;!d.has(p)&&(Fq(f.name)||u.resolveName(p,f,111551,!0))&&d.set(p,n4e(`_${p}`,s))}),d}function wKt(t,u,s){$rt(t,(d,f)=>{if(f)return;const{text:p}=d.name;s.replaceNode(t,d,q.createIdentifier(u.get(p)||p))})}function $rt(t,u){t.forEachChild(function s(d){if(Iu(d)&&J2(t,d.expression)&&at(d.name)){const{parent:f}=d;u(d,tu(f)&&f.left===d&&f.operatorToken.kind===64)}d.forEachChild(s)})}function TKt(t,u,s,d,f,p,E,v,b){switch(u.kind){case 243:return Urt(t,u,d,s,f,p,b),!1;case 244:{const{expression:B}=u;switch(B.kind){case 213:return Df(B,!0)&&d.replaceNode(t,u,p5(void 0,void 0,B.arguments[0],b)),!1;case 226:{const{operatorToken:k}=B;return k.kind===64&&NKt(t,s,B,d,E,v)}}}default:return!1}}function Urt(t,u,s,d,f,p,E){const{declarationList:v}=u;let b=!1;const B=Kt(v.declarations,k=>{const{name:T,initializer:M}=k;if(M){if(J2(t,M))return b=!0,$M([]);if(Df(M,!0))return b=!0,OKt(T,M.arguments[0],d,f,p,E);if(Iu(M)&&Df(M.expression,!0))return b=!0,LKt(T,M.name.text,M.expression.arguments[0],f,E)}return $M([q.createVariableStatement(void 0,q.createVariableDeclarationList([k],v.flags))])});if(b){s.replaceNodeWithNodes(t,u,Ku(B,T=>T.newImports));let k;return L(B,T=>{T.useSitesToUnqualify&&GU(T.useSitesToUnqualify,k??(k=new Map))}),k}}function LKt(t,u,s,d,f){switch(t.kind){case 206:case 207:{const p=n4e(u,d);return $M([Qrt(p,u,s,f),u4e(void 0,t,q.createIdentifier(p))])}case 80:return $M([Qrt(t.text,u,s,f)]);default:return H.assertNever(t,`Convert to ES module got invalid syntax form ${t.kind}`)}}function NKt(t,u,s,d,f,p){const{left:E,right:v}=s;if(!Iu(E))return!1;if(J2(t,E))if(J2(t,v))d.delete(t,s.parent);else{const b=Cs(v)?PKt(v,p):Df(v,!0)?zKt(v.arguments[0],u):void 0;return b?(d.replaceNodeWithNodes(t,s.parent,b[0]),b[1]):(d.replaceRangeWithText(t,o4(E.getStart(t),v.pos),"export default"),!0)}else J2(t,E.expression)&&MKt(t,s,d,f);return!1}function PKt(t,u){const s=la(t.properties,d=>{switch(d.kind){case 177:case 178:case 304:case 305:return;case 303:return at(d.name)?RKt(d.name.text,d.initializer,u):void 0;case 174:return at(d.name)?Yrt(d.name.text,[q.createToken(95)],d,u):void 0;default:H.assertNever(d,`Convert to ES6 got invalid prop kind ${d.kind}`)}});return s&&[s,!1]}function MKt(t,u,s,d){const{text:f}=u.left.name,p=d.get(f);if(p!==void 0){const E=[u4e(void 0,p,u.right),ABe([q.createExportSpecifier(!1,p,f)])];s.replaceNodeWithNodes(t,u.parent,E)}else IKt(u,t,s)}function zKt(t,u){const s=t.text,d=u.getSymbolAtLocation(t),f=d?d.exports:Q$;return f.has("export=")?[[kBe(s)],!0]:f.has("default")?f.size>1?[[qrt(s),kBe(s)],!0]:[[kBe(s)],!0]:[[qrt(s)],!1]}function qrt(t){return ABe(void 0,t)}function kBe(t){return ABe([q.createExportSpecifier(!1,void 0,"default")],t)}function IKt({left:t,right:u,parent:s},d,f){const p=t.name.text;if((F0(u)||G0(u)||Qd(u))&&(!u.name||u.name.text===p)){f.replaceRange(d,{pos:t.getStart(d),end:u.getStart(d)},q.createToken(95),{suffix:" "}),u.name||f.insertName(d,u,p);const E=r0(s,27,d);E&&f.delete(d,E)}else f.replaceNodeRangeWithNodes(d,t.expression,r0(t,25,d),[q.createToken(95),q.createToken(87)],{joiner:" ",suffix:" "})}function RKt(t,u,s){const d=[q.createToken(95)];switch(u.kind){case 218:{const{name:p}=u;if(p&&p.text!==t)return f()}case 219:return Yrt(t,d,u,s);case 231:return KKt(t,d,u,s);default:return f()}function f(){return u4e(d,q.createIdentifier(t),FBe(u,s))}}function FBe(t,u){if(!u||!qe(Ea(u.keys()),d=>jm(t,d)))return t;return Ha(t)?pfe(t,!0,s):JH(t,!0,s);function s(d){if(d.kind===211){const f=u.get(d);return u.delete(d),f}}}function OKt(t,u,s,d,f,p){switch(t.kind){case 206:{const E=la(t.elements,v=>v.dotDotDotToken||v.initializer||v.propertyName&&!at(v.propertyName)||!at(v.name)?void 0:Xrt(v.propertyName&&v.propertyName.text,v.name.text));if(E)return $M([p5(void 0,E,u,p)])}case 207:{const E=n4e(jBe(u.text,f),d);return $M([p5(q.createIdentifier(E),void 0,u,p),u4e(void 0,ol(t),q.createIdentifier(E))])}case 80:return jKt(t,u,s,d,p);default:return H.assertNever(t,`Convert to ES module got invalid name kind ${t.kind}`)}}function jKt(t,u,s,d,f){const p=s.getSymbolAtLocation(t),E=new Map;let v=!1,b;for(const k of d.original.get(t.text)){if(s.getSymbolAtLocation(k)!==p||k===t)continue;const{parent:T}=k;if(Iu(T)){const{name:{text:M}}=T;if(M==="default"){v=!0;const z=k.getText();(b??(b=new Map)).set(T,q.createIdentifier(z))}else{H.assert(T.expression===k,"Didn't expect expression === use");let z=E.get(M);z===void 0&&(z=n4e(M,d),E.set(M,z)),(b??(b=new Map)).set(T,q.createIdentifier(z))}}else v=!0}const B=E.size===0?void 0:Ea(zr(E.entries(),([k,T])=>q.createImportSpecifier(!1,k===T?void 0:q.createIdentifier(k),q.createIdentifier(T))));return B||(v=!0),$M([p5(v?ol(t):void 0,B,u,f)],b)}function n4e(t,u){for(;u.original.has(t)||u.additional.has(t);)t=`_${t}`;return u.additional.add(t),t}function VKt(t){const u=Bm();return Zrt(t,s=>u.add(s.text,s)),u}function Zrt(t,u){at(t)&&HKt(t)&&u(t),t.forEachChild(s=>Zrt(s,u))}function HKt(t){const{parent:u}=t;switch(u.kind){case 211:return u.name!==t;case 208:return u.propertyName!==t;case 276:return u.propertyName!==t;default:return!0}}function Yrt(t,u,s,d){return q.createFunctionDeclaration(an(u,eb(s.modifiers)),ol(s.asteriskToken),t,eb(s.typeParameters),eb(s.parameters),ol(s.type),q.converters.convertToFunctionBlock(FBe(s.body,d)))}function KKt(t,u,s,d){return q.createClassDeclaration(an(u,eb(s.modifiers)),t,eb(s.typeParameters),eb(s.heritageClauses),FBe(s.members,d))}function Qrt(t,u,s,d){return u==="default"?p5(q.createIdentifier(t),void 0,s,d):p5(void 0,[Xrt(u,t)],s,d)}function Xrt(t,u){return q.createImportSpecifier(!1,t!==void 0&&t!==u?q.createIdentifier(t):void 0,q.createIdentifier(u))}function u4e(t,u,s){return q.createVariableStatement(t,q.createVariableDeclarationList([q.createVariableDeclaration(u,void 0,void 0,s)],2))}function ABe(t,u){return q.createExportDeclaration(void 0,!1,t&&q.createNamedExports(t),u===void 0?void 0:q.createStringLiteral(u))}function $M(t,u){return{newImports:t,useSitesToUnqualify:u}}var WKt=o({"src/services/codefixes/convertToEsModule.ts"(){or(),us(),Qo({errorCodes:[F.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(t){const{sourceFile:u,program:s,preferences:d}=t,f=nu.ChangeTracker.with(t,p=>{if(SKt(u,s.getTypeChecker(),p,Is(s.getCompilerOptions()),Vm(u,d)))for(const v of s.getSourceFiles())AKt(v,u,s,p,Vm(v,d))});return[xg("convertToEsModule",f,F.Convert_to_ES_module)]}})}});function eat(t,u){const s=Ln(ba(t,u),xf);return H.assert(!!s,"Expected position to be owned by a qualified name."),at(s.left)?s:void 0}function tat(t,u,s){const d=s.right.text,f=q.createIndexedAccessTypeNode(q.createTypeReferenceNode(s.left,void 0),q.createLiteralTypeNode(q.createStringLiteral(d)));t.replaceNode(u,s,f)}var r4e,SBe,GKt=o({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){or(),us(),r4e="correctQualifiedNameToIndexedAccessType",SBe=[F.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],Qo({errorCodes:SBe,getCodeActions(t){const u=eat(t.sourceFile,t.span.start);if(!u)return;const s=nu.ChangeTracker.with(t,f=>tat(f,t.sourceFile,u)),d=`${u.left.text}["${u.right.text}"]`;return[zo(r4e,s,[F.Rewrite_as_the_indexed_access_type_0,d],r4e,F.Rewrite_all_as_indexed_access_types)]},fixIds:[r4e],getAllCodeActions:t=>h0(t,SBe,(u,s)=>{const d=eat(s.file,s.start);d&&tat(u,s.file,d)})})}});function iat(t,u){return ar(ba(u,t.start).parent,X1)}function nat(t,u,s){if(!u)return;const d=u.parent,f=d.parent,p=JKt(u,s);if(p.length===d.elements.length)t.insertModifierBefore(s.sourceFile,156,d);else{const E=q.updateExportDeclaration(f,f.modifiers,!1,q.updateNamedExports(d,ei(d.elements,b=>!Ft(p,b))),f.moduleSpecifier,void 0),v=q.createExportDeclaration(void 0,!0,q.createNamedExports(p),f.moduleSpecifier,void 0);t.replaceNode(s.sourceFile,f,E,{leadingTriviaOption:nu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:nu.TrailingTriviaOption.Exclude}),t.insertNodeAfter(s.sourceFile,f,v)}}function JKt(t,u){const s=t.parent;if(s.elements.length===1)return s.elements;const d=wSe(af(s),u.program.getSemanticDiagnostics(u.sourceFile,u.cancellationToken));return ei(s.elements,f=>{var p;return f===t||((p=BSe(f,d))==null?void 0:p.code)===a4e[0]})}var a4e,o4e,$Kt=o({"src/services/codefixes/convertToTypeOnlyExport.ts"(){or(),us(),a4e=[F.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],o4e="convertToTypeOnlyExport",Qo({errorCodes:a4e,getCodeActions:function(u){const s=nu.ChangeTracker.with(u,d=>nat(d,iat(u.span,u.sourceFile),u));if(s.length)return[zo(o4e,s,F.Convert_to_type_only_export,o4e,F.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[o4e],getAllCodeActions:function(u){const s=new Map;return h0(u,a4e,(d,f)=>{const p=iat(f,u.sourceFile);p&&Pp(s,Js(p.parent.parent))&&nat(d,p,u)})}})}});function uat(t,u){const{parent:s}=ba(t,u);return Cf(s)||Ad(s)&&s.importClause?s:void 0}function rat(t,u,s){if(t.parent.parent.name)return!1;const d=t.parent.elements.filter(p=>!p.isTypeOnly);if(d.length===1)return!0;const f=s.getTypeChecker();for(const p of d)if(J0.Core.eachSymbolReferenceInFile(p.name,f,u,v=>!Bv(v)))return!1;return!0}function Eee(t,u,s){var d;if(Cf(s))t.replaceNode(u,s,q.updateImportSpecifier(s,!0,s.propertyName,s.name));else{const f=s.importClause;if(f.name&&f.namedBindings)t.replaceNodeWithNodes(u,s,[q.createImportDeclaration(eb(s.modifiers,!0),q.createImportClause(!0,ol(f.name,!0),void 0),ol(s.moduleSpecifier,!0),ol(s.attributes,!0)),q.createImportDeclaration(eb(s.modifiers,!0),q.createImportClause(!0,void 0,ol(f.namedBindings,!0)),ol(s.moduleSpecifier,!0),ol(s.attributes,!0))]);else{const p=((d=f.namedBindings)==null?void 0:d.kind)===275?q.updateNamedImports(f.namedBindings,Mu(f.namedBindings.elements,v=>q.updateImportSpecifier(v,!1,v.propertyName,v.name))):f.namedBindings,E=q.updateImportDeclaration(s,s.modifiers,q.updateImportClause(f,!0,f.name,p),s.moduleSpecifier,s.attributes);t.replaceNode(u,s,E)}}}var BBe,_ee,UKt=o({"src/services/codefixes/convertToTypeOnlyImport.ts"(){or(),us(),BBe=[F.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],_ee="convertToTypeOnlyImport",Qo({errorCodes:BBe,getCodeActions:function(u){var s;const d=uat(u.sourceFile,u.span.start);if(d){const f=nu.ChangeTracker.with(u,v=>Eee(v,u.sourceFile,d)),p=d.kind===276&&rat(d,u.sourceFile,u.program)?nu.ChangeTracker.with(u,v=>Eee(v,u.sourceFile,d.parent.parent.parent)):void 0,E=zo(_ee,f,d.kind===276?[F.Use_type_0,((s=d.propertyName)==null?void 0:s.text)??d.name.text]:F.Use_import_type,_ee,F.Fix_all_with_type_only_imports);return qe(p)?[xg(_ee,p,F.Use_import_type),E]:[E]}},fixIds:[_ee],getAllCodeActions:function(u){const s=new Set;return h0(u,BBe,(d,f)=>{const p=uat(f.file,f.start);(p==null?void 0:p.kind)===272&&!s.has(p)?(Eee(d,f.file,p),s.add(p)):(p==null?void 0:p.kind)===276&&!s.has(p.parent.parent.parent)&&rat(p,f.file,u.program)?(Eee(d,f.file,p.parent.parent.parent),s.add(p.parent.parent.parent)):(p==null?void 0:p.kind)===276&&Eee(d,f.file,p)})}})}});function aat(t,u,s,d,f=!1){if(!LB(u))return;const p=ZKt(u);if(!p)return;const E=u.parent,{leftSibling:v,rightSibling:b}=qKt(u);let B=E.getStart(),k="";!v&&E.comment&&(B=oat(E,E.getStart(),u.getStart()),k=`${d} */${d}`),v&&(f&&LB(v)?(B=u.getStart(),k=""):(B=oat(E,v.getStart(),u.getStart()),k=`${d} */${d}`));let T=E.getEnd(),M="";b&&(f&&LB(b)?(T=b.getStart(),M=`${d}${d}`):(T=b.getStart(),M=`${d}/**${d} * `)),t.replaceRange(s,{pos:B,end:T},p,{prefix:k,suffix:M})}function qKt(t){const u=t.parent,s=u.getChildCount()-1,d=u.getChildren().findIndex(E=>E.getStart()===t.getStart()&&E.getEnd()===t.getEnd()),f=d>0?u.getChildAt(d-1):void 0,p=d0;f--)if(!/[*/\s]/g.test(d.substring(f-1,f)))return u+f;return s}function ZKt(t){var u;const{typeExpression:s}=t;if(!s)return;const d=(u=t.name)==null?void 0:u.getText();if(d){if(s.kind===329)return YKt(d,s);if(s.kind===316)return QKt(d,s)}}function YKt(t,u){const s=sat(u);if(qe(s))return q.createInterfaceDeclaration(void 0,t,void 0,void 0,s)}function QKt(t,u){const s=ol(u.type);if(s)return q.createTypeAliasDeclaration(void 0,q.createIdentifier(t),void 0,s)}function sat(t){const u=t.jsDocPropertyTags;return qe(u)?Ui(u,d=>{var f;const p=XKt(d),E=(f=d.typeExpression)==null?void 0:f.type,v=d.isBracketed;let b;if(E&&V7(E)){const B=sat(E);b=q.createTypeLiteralNode(B)}else E&&(b=ol(E));if(b&&p){const B=v?q.createToken(58):void 0;return q.createPropertySignature(void 0,p,B,b)}}):void 0}function XKt(t){return t.name.kind===80?t.name.text:t.name.right.text}function eWt(t){return sm(t)?Ku(t.jsDoc,u=>{var s;return(s=u.tags)==null?void 0:s.filter(d=>LB(d))}):[]}var s4e,wBe,tWt=o({"src/services/codefixes/convertTypedefToType.ts"(){or(),us(),s4e="convertTypedefToType",wBe=[F.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Qo({fixIds:[s4e],errorCodes:wBe,getCodeActions(t){const u=g5(t.host,t.formatContext.options),s=ba(t.sourceFile,t.span.start);if(!s)return;const d=nu.ChangeTracker.with(t,f=>aat(f,s,t.sourceFile,u));if(d.length>0)return[zo(s4e,d,F.Convert_typedef_to_TypeScript_type,s4e,F.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:t=>h0(t,wBe,(u,s)=>{const d=g5(t.host,t.formatContext.options),f=ba(s.file,s.start);f&&aat(u,f,s.file,d,!0)})})}});function lat(t,u){const s=ba(t,u);if(at(s)){const d=Lo(s.parent.parent,Pm),f=s.getText(t);return{container:Lo(d.parent,hm),typeNode:d.type,constraint:f,name:f==="K"?"P":"K"}}}function cat(t,u,{container:s,typeNode:d,constraint:f,name:p}){t.replaceNode(u,s,q.createMappedTypeNode(void 0,q.createTypeParameterDeclaration(void 0,p,q.createTypeReferenceNode(f)),void 0,void 0,d,void 0))}var l4e,TBe,iWt=o({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){or(),us(),l4e="convertLiteralTypeToMappedType",TBe=[F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Qo({errorCodes:TBe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=lat(s,d.start);if(!f)return;const{name:p,constraint:E}=f,v=nu.ChangeTracker.with(u,b=>cat(b,s,f));return[zo(l4e,v,[F.Convert_0_to_1_in_0,E,p],l4e,F.Convert_all_type_literals_to_mapped_type)]},fixIds:[l4e],getAllCodeActions:t=>h0(t,TBe,(u,s)=>{const d=lat(s.file,s.start);d&&cat(u,s.file,d)})})}});function dat(t,u){return H.checkDefined(Zd(ba(t,u)),"There should be a containing class")}function hat(t){return!t.valueDeclaration||!(gh(t.valueDeclaration)&2)}function fat(t,u,s,d,f,p){const E=t.program.getTypeChecker(),v=nWt(d,E),b=E.getTypeAtLocation(u),k=E.getPropertiesOfType(b).filter(U$(hat,K=>!v.has(K.escapedName))),T=E.getTypeAtLocation(d),M=Le(d.members,K=>dc(K));T.getNumberIndexType()||j(b,1),T.getStringIndexType()||j(b,0);const z=o9(s,t.program,p,t.host);Rwe(d,k,s,t,p,z,K=>J(s,d,K)),z.writeFixes(f);function j(K,Y){const oe=E.getIndexInfoOfType(K,Y);oe&&J(s,d,E.indexInfoToIndexSignatureDeclaration(oe,d,void 0,_w(t)))}function J(K,Y,oe){M?f.insertNodeAfter(K,M,oe):f.insertMemberAtStart(K,Y,oe)}}function nWt(t,u){const s=Yg(t);if(!s)return jo();const d=u.getTypeAtLocation(s),f=u.getPropertiesOfType(d);return jo(f.filter(hat))}var LBe,c4e,uWt=o({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){or(),us(),LBe=[F.Class_0_incorrectly_implements_interface_1.code,F.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],c4e="fixClassIncorrectlyImplementsInterface",Qo({errorCodes:LBe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=dat(u,s.start);return Ui(eB(d),f=>{const p=nu.ChangeTracker.with(t,E=>fat(t,f,u,d,E,t.preferences));return p.length===0?void 0:zo(c4e,p,[F.Implement_interface_0,f.getText(u)],c4e,F.Implement_all_unimplemented_interfaces)})},fixIds:[c4e],getAllCodeActions(t){const u=new Map;return h0(t,LBe,(s,d)=>{const f=dat(d.file,d.start);if(Pp(u,Js(f)))for(const p of eB(f))fat(t,p,d.file,f,s,t.preferences)})}})}});function o9(t,u,s,d,f){return mat(t,u,!1,s,d,f)}function mat(t,u,s,d,f,p){const E=u.getCompilerOptions(),v=[],b=[],B=new Map,k=new Map;return{addImportFromDiagnostic:T,addImportFromExportedSymbol:M,writeFixes:j,hasFixes:J};function T(K,Y){const oe=xat(Y,K.code,K.start,s);!oe||!oe.length||z(Mn(oe))}function M(K,Y){const oe=H.checkDefined(K.parent),se=NX(K,Is(E)),ge=u.getTypeChecker(),ae=ge.getMergedSymbol(Q1(K,ge)),Ce=Eat(t,ae,se,oe,!1,u,f,d,p),ne=h4e(t,u),ve=pat(t,H.checkDefined(Ce),u,void 0,!!Y,ne,f,d);ve&&z({fix:ve,symbolName:se,errorIdentifierText:void 0})}function z(K){var Y,oe;const{fix:se,symbolName:ge}=K;switch(se.kind){case 0:v.push(se);break;case 1:b.push(se);break;case 2:{const{importClauseOrBindingPattern:ve,importKind:Se,addAsTypeOnly:Ne}=se,pe=String(Js(ve));let fe=B.get(pe);if(fe||B.set(pe,fe={importClauseOrBindingPattern:ve,defaultImport:void 0,namedImports:new Map}),Se===0){const xe=fe==null?void 0:fe.namedImports.get(ge);fe.namedImports.set(ge,ae(xe,Ne))}else H.assert(fe.defaultImport===void 0||fe.defaultImport.name===ge,"(Add to Existing) Default import should be missing or match symbolName"),fe.defaultImport={name:ge,addAsTypeOnly:ae((Y=fe.defaultImport)==null?void 0:Y.addAsTypeOnly,Ne)};break}case 3:{const{moduleSpecifier:ve,importKind:Se,useRequire:Ne,addAsTypeOnly:pe}=se,fe=Ce(ve,Se,Ne,pe);switch(H.assert(fe.useRequire===Ne,"(Add new) Tried to add an `import` and a `require` for the same module"),Se){case 1:H.assert(fe.defaultImport===void 0||fe.defaultImport.name===ge,"(Add new) Default import should be missing or match symbolName"),fe.defaultImport={name:ge,addAsTypeOnly:ae((oe=fe.defaultImport)==null?void 0:oe.addAsTypeOnly,pe)};break;case 0:const xe=(fe.namedImports||(fe.namedImports=new Map)).get(ge);fe.namedImports.set(ge,ae(xe,pe));break;case 3:case 2:H.assert(fe.namespaceLikeImport===void 0||fe.namespaceLikeImport.name===ge,"Namespacelike import shoudl be missing or match symbolName"),fe.namespaceLikeImport={importKind:Se,name:ge,addAsTypeOnly:pe};break}break}case 4:break;default:H.assertNever(se,`fix wasn't never - got kind ${se.kind}`)}function ae(ve,Se){return Math.max(ve??0,Se)}function Ce(ve,Se,Ne,pe){const fe=ne(ve,!0),xe=ne(ve,!1),Be=k.get(fe),We=k.get(xe),Ae={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Ne};return Se===1&&pe===2?Be||(k.set(fe,Ae),Ae):pe===1&&(Be||We)?Be||We:We||(k.set(xe,Ae),Ae)}function ne(ve,Se){return`${Se?1:0}|${ve}`}}function j(K,Y){let oe;t.imports.length===0&&Y!==void 0?oe=Y:oe=Vm(t,d);for(const ge of v)IBe(K,t,ge);for(const ge of b)Aat(K,t,ge,oe);B.forEach(({importClauseOrBindingPattern:ge,defaultImport:ae,namedImports:Ce})=>{Fat(K,t,ge,ae,Ea(Ce.entries(),([ne,ve])=>({addAsTypeOnly:ve,name:ne})),d)});let se;k.forEach(({useRequire:ge,defaultImport:ae,namedImports:Ce,namespaceLikeImport:ne},ve)=>{const Se=ve.slice(2),pe=(ge?wat:Bat)(Se,oe,ae,Ce&&Ea(Ce.entries(),([fe,xe])=>({addAsTypeOnly:xe,name:fe})),ne,E,d);se=Do(se,pe)}),se&&PM(K,t,se,!0,d)}function J(){return v.length>0||b.length>0||B.size>0||k.size>0}}function rWt(t,u,s,d){const f=VM(t,d,s),p=_at(u.getTypeChecker(),t,u.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:E};function E(v,b,B,k){const{fixes:T,computedWithoutCacheCount:M}=d4e(v,b,B,!1,u,t,s,d,p,k),z=vat(T,t,u,f,s);return z&&{...z,computedWithoutCacheCount:M}}}function aWt(t,u,s,d,f,p,E,v,b,B,k,T){let M;s?(M=XH(d,E,v,k,T).get(d.path,s),H.assertIsDefined(M,"Some exportInfo should match the specified exportMapKey")):(M=yse(G4(u.name))?[sWt(t,f,u,v,E)]:Eat(d,t,f,u,p,v,E,k,T),H.assertIsDefined(M,"Some exportInfo should match the specified symbol / moduleSymbol"));const z=h4e(d,v),j=Bv(ba(d,B)),J=H.checkDefined(pat(d,M,v,B,j,z,E,k));return{moduleSpecifier:J.moduleSpecifier,codeAction:gat(zBe({host:E,formatContext:b,preferences:k},d,f,J,!1,v,k))}}function oWt(t,u,s,d,f,p){const E=s.getCompilerOptions(),v=Cd(MBe(t,s.getTypeChecker(),u,E)),b=yat(t,u,v,s),B=v!==u.text;return b&&gat(zBe({host:d,formatContext:f,preferences:p},t,v,b,B,s,p))}function pat(t,u,s,d,f,p,E,v){const b=VM(t,v,E);return vat(d4e(u,d,f,p,s,t,E,v).fixes,t,s,b,E)}function gat({description:t,changes:u,commands:s}){return{description:t,changes:u,commands:s}}function Eat(t,u,s,d,f,p,E,v,b){const B=Dat(p,E);return XH(t,E,p,v,b).search(t.path,f,k=>k===s,k=>{if(Q1(k[0].symbol,B(k[0].isFromPackageJson))===u&&k.some(T=>T.moduleSymbol===d||T.symbol.parent===d))return k})}function sWt(t,u,s,d,f){var p,E;const v=d.getCompilerOptions(),b=k(d.getTypeChecker(),!1);if(b)return b;const B=(E=(p=f.getPackageJsonAutoImportProvider)==null?void 0:p.call(f))==null?void 0:E.getTypeChecker();return H.checkDefined(B&&k(B,!0),"Could not find symbol in specified module for code actions");function k(T,M){const z=jX(s,T,v);if(z&&Q1(z.symbol,T)===t)return{symbol:z.symbol,moduleSymbol:s,moduleFileName:void 0,exportKind:z.exportKind,targetFlags:Q1(t,T).flags,isFromPackageJson:M};const j=T.tryGetMemberInModuleExportsAndProperties(u,s);if(j&&Q1(j,T)===t)return{symbol:j,moduleSymbol:s,moduleFileName:void 0,exportKind:0,targetFlags:Q1(t,T).flags,isFromPackageJson:M}}}function d4e(t,u,s,d,f,p,E,v,b=_at(f.getTypeChecker(),p,f.getCompilerOptions()),B){const k=f.getTypeChecker(),T=Ku(t,b.getImportsForExportInfo),M=u!==void 0&&lWt(T,u),z=dWt(T,s,k,f.getCompilerOptions());if(z)return{computedWithoutCacheCount:0,fixes:[...M?[M]:_t,z]};const{fixes:j,computedWithoutCacheCount:J=0}=fWt(t,T,f,p,u,s,d,E,v,B);return{computedWithoutCacheCount:J,fixes:[...M?[M]:_t,...j]}}function lWt(t,u){return G(t,({declaration:s,importKind:d})=>{var f;if(d!==0)return;const p=cWt(s),E=p&&((f=U8(s))==null?void 0:f.text);if(E)return{kind:0,namespacePrefix:p,usagePosition:u,moduleSpecifier:E}})}function cWt(t){var u,s,d;switch(t.kind){case 260:return(u=ar(t.name,at))==null?void 0:u.text;case 271:return t.name.text;case 272:return(d=ar((s=t.importClause)==null?void 0:s.namedBindings,Gx))==null?void 0:d.name.text;default:return H.assertNever(t)}}function NBe(t,u,s,d,f,p){return t?u&&p.importsNotUsedAsValues===2||Dle(p)&&(!(d&111551)||f.getTypeOnlyAliasDeclaration(s))?2:1:4}function dWt(t,u,s,d){let f;for(const E of t){const v=p(E);if(!v)continue;const b=PU(v.importClauseOrBindingPattern);if(v.addAsTypeOnly!==4&&b||v.addAsTypeOnly===4&&!b)return v;f??(f=v)}return f;function p({declaration:E,importKind:v,symbol:b,targetFlags:B}){if(v===3||v===2||E.kind===271)return;if(E.kind===260)return(v===0||v===1)&&E.name.kind===206?{kind:2,importClauseOrBindingPattern:E.name,importKind:v,moduleSpecifier:E.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:k}=E;if(!k||!t0(E.moduleSpecifier))return;const{name:T,namedBindings:M}=k;if(k.isTypeOnly&&!(v===0&&M))return;const z=NBe(u,!1,b,B,s,d);if(!(v===1&&(T||z===2&&M))&&!(v===0&&(M==null?void 0:M.kind)===274))return{kind:2,importClauseOrBindingPattern:k,importKind:v,moduleSpecifier:E.moduleSpecifier.text,addAsTypeOnly:z}}}function _at(t,u,s){let d;for(const f of u.imports){const p=eP(f);if(Eq(p.parent)){const E=t.resolveExternalModuleName(f);E&&(d||(d=Bm())).add(qo(E),p.parent)}else if(p.kind===272||p.kind===271){const E=t.getSymbolAtLocation(f);E&&(d||(d=Bm())).add(qo(E),p)}}return{getImportsForExportInfo:({moduleSymbol:f,exportKind:p,targetFlags:E,symbol:v})=>{if(!(E&111551)&&ph(u))return _t;const b=d==null?void 0:d.get(qo(f));if(!b)return _t;const B=PBe(u,p,s);return b.map(k=>({declaration:k,importKind:B,symbol:v,targetFlags:E}))}}}function h4e(t,u){if(!ph(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;const s=u.getCompilerOptions();if(s.configFile)return f1(s)<5;if(t.impliedNodeFormat===1)return!0;if(t.impliedNodeFormat===99)return!1;for(const d of u.getSourceFiles())if(!(d===t||!ph(d)||u.isSourceFileFromExternalLibrary(d))){if(d.commonJsModuleIndicator&&!d.externalModuleIndicator)return!0;if(d.externalModuleIndicator&&!d.commonJsModuleIndicator)return!1}return!0}function Dat(t,u){return VE(s=>s?u.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())}function hWt(t,u,s,d,f,p,E,v,b){const B=ph(u),k=t.getCompilerOptions(),T=Mk(t,E),M=Dat(t,E),z=m1(k),j=mX(z),J=b?oe=>({moduleSpecifiers:$2.tryGetModuleSpecifiersFromCache(oe,u,T,v),computedWithoutCache:!1}):(oe,se)=>$2.getModuleSpecifiersWithCacheInfo(oe,se,k,u,T,v,void 0,!0);let K=0;const Y=Ku(p,(oe,se)=>{const ge=M(oe.isFromPackageJson),{computedWithoutCache:ae,moduleSpecifiers:Ce}=J(oe.moduleSymbol,ge),ne=!!(oe.targetFlags&111551),ve=NBe(d,!0,oe.symbol,oe.targetFlags,ge,k);return K+=ae?1:0,Ui(Ce,Se=>{var Ne;if(j&&$7(Se))return;if(!ne&&B&&s!==void 0)return{kind:1,moduleSpecifier:Se,usagePosition:s,exportInfo:oe,isReExport:se>0};const pe=PBe(u,oe.exportKind,k);let fe;if(s!==void 0&&pe===3&&oe.exportKind===0){const xe=ge.resolveExternalModuleSymbol(oe.moduleSymbol);let Be;xe!==oe.moduleSymbol&&(Be=(Ne=VX(xe,ge,k))==null?void 0:Ne.name),Be||(Be=OBe(oe.moduleSymbol,Is(k),!1)),fe={namespacePrefix:Be,usagePosition:s}}return{kind:3,moduleSpecifier:Se,importKind:pe,useRequire:f,addAsTypeOnly:ve,exportInfo:oe,isReExport:se>0,qualification:fe}})});return{computedWithoutCacheCount:K,fixes:Y}}function fWt(t,u,s,d,f,p,E,v,b,B){const k=G(u,T=>mWt(T,p,E,s.getTypeChecker(),s.getCompilerOptions()));return k?{fixes:[k]}:hWt(s,d,f,p,E,t,v,b,B)}function mWt({declaration:t,importKind:u,symbol:s,targetFlags:d},f,p,E,v){var b;const B=(b=U8(t))==null?void 0:b.text;if(B){const k=p?4:NBe(f,!0,s,d,E,v);return{kind:3,moduleSpecifier:B,importKind:u,addAsTypeOnly:k,useRequire:p}}}function xat(t,u,s,d){const f=ba(t.sourceFile,s);let p;if(u===F._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)p=_Wt(t,f);else if(at(f))if(u===F._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const v=Cd(MBe(t.sourceFile,t.program.getTypeChecker(),f,t.program.getCompilerOptions())),b=yat(t.sourceFile,f,v,t.program);return b&&[{fix:b,symbolName:v,errorIdentifierText:f.text}]}else p=vWt(t,f,d);else return;const E=VM(t.sourceFile,t.preferences,t.host);return p&&pWt(p,t.sourceFile,t.program,E,t.host)}function pWt(t,u,s,d,f){const p=E=>H0(E,f.getCurrentDirectory(),i5(f));return Lh(t,(E,v)=>s2(!!E.isJsxNamespaceFix,!!v.isJsxNamespaceFix)||tl(E.fix.kind,v.fix.kind)||Cat(E.fix,v.fix,u,s,d.allowsImportingSpecifier,p))}function vat(t,u,s,d,f){if(qe(t))return t[0].kind===0||t[0].kind===2?t[0]:t.reduce((p,E)=>Cat(E,p,u,s,d.allowsImportingSpecifier,v=>H0(v,f.getCurrentDirectory(),i5(f)))===-1?E:p)}function Cat(t,u,s,d,f,p){return t.kind!==0&&u.kind!==0?s2(f(u.moduleSpecifier),f(t.moduleSpecifier))||EWt(t.moduleSpecifier,u.moduleSpecifier,s,d)||s2(bat(t,s,d.getCompilerOptions(),p),bat(u,s,d.getCompilerOptions(),p))||eV(t.moduleSpecifier,u.moduleSpecifier):0}function bat(t,u,s,d){var f;if(t.isReExport&&((f=t.exportInfo)!=null&&f.moduleFileName)&&m1(s)===2&&gWt(t.exportInfo.moduleFileName)){const p=d(dr(t.exportInfo.moduleFileName));return Na(u.path,p)}return!1}function gWt(t){return Fc(t,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function EWt(t,u,s,d){return Na(t,"node:")&&!Na(u,"node:")?MX(s,d)?-1:1:Na(u,"node:")&&!Na(t,"node:")?MX(s,d)?1:-1:0}function _Wt({sourceFile:t,program:u,host:s,preferences:d},f){const p=u.getTypeChecker(),E=DWt(f,p);if(!E)return;const v=p.getAliasedSymbol(E),b=E.name,B=[{symbol:E,moduleSymbol:v,moduleFileName:void 0,exportKind:3,targetFlags:v.flags,isFromPackageJson:!1}],k=h4e(t,u);return d4e(B,void 0,!1,k,u,t,s,d).fixes.map(M=>{var z;return{fix:M,symbolName:b,errorIdentifierText:(z=ar(f,at))==null?void 0:z.text}})}function DWt(t,u){const s=at(t)?u.getSymbolAtLocation(t):void 0;if(Kq(s))return s;const{parent:d}=t;if(Ph(d)&&d.tagName===t||O7(d)){const f=u.resolveName(u.getJsxNamespace(d),Ph(d)?t:d,111551,!1);if(Kq(f))return f}}function PBe(t,u,s,d){if(s.verbatimModuleSyntax&&(f1(s)===1||t.impliedNodeFormat===1))return 3;switch(u){case 0:return 0;case 1:return 1;case 2:return yWt(t,s,!!d);case 3:return xWt(t,s,!!d);default:return H.assertNever(u)}}function xWt(t,u,s){if(x7(u))return 1;const d=f1(u);switch(d){case 2:case 1:case 3:return eu(t)&&(Bc(t)||s)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return t.impliedNodeFormat===99?2:3;default:return H.assertNever(d,`Unexpected moduleKind ${d}`)}}function vWt({sourceFile:t,program:u,cancellationToken:s,host:d,preferences:f},p,E){const v=u.getTypeChecker(),b=u.getCompilerOptions();return Ku(MBe(t,v,p,b),B=>{if(B==="default")return;const k=Bv(p),T=h4e(t,u),M=bWt(B,G8(p),Lk(p),s,t,u,E,d,f);return Ea(Wn(M.values(),z=>d4e(z,p.getStart(t),k,T,u,t,d,f).fixes),z=>({fix:z,symbolName:B,errorIdentifierText:p.text,isJsxNamespaceFix:B!==p.text}))})}function yat(t,u,s,d){const f=d.getTypeChecker(),p=f.resolveName(s,u,111551,!0);if(!p)return;const E=f.getTypeOnlyAliasDeclaration(p);if(!(!E||In(E)!==t))return{kind:4,typeOnlyAliasDeclaration:E}}function MBe(t,u,s,d){const f=s.parent;if((Ph(f)||O2(f))&&f.tagName===s&&Afe(d.jsx)){const p=u.getJsxNamespace(t);if(CWt(p,s,u))return!uB(s.text)&&!u.resolveName(s.text,s,111551,!1)?[s.text,p]:[p]}return[s.text]}function CWt(t,u,s){if(uB(u.text))return!0;const d=s.resolveName(t,u,111551,!0);return!d||qe(d.declarations,p2)&&!(d.flags&111551)}function bWt(t,u,s,d,f,p,E,v,b){var B;const k=Bm(),T=VM(f,b,v),M=(B=v.getModuleSpecifierCache)==null?void 0:B.call(v),z=VE(J=>Mk(J?v.getPackageJsonAutoImportProvider():p,v));function j(J,K,Y,oe,se,ge){const ae=z(ge);if(K&&Pfe(se,f,K,b,T,ae,M)||!K&&T.allowsImportingAmbientModule(J,ae)){const Ce=se.getTypeChecker();k.add(xSe(Y,Ce).toString(),{symbol:Y,moduleSymbol:J,moduleFileName:K==null?void 0:K.fileName,exportKind:oe,targetFlags:Q1(Y,Ce).flags,isFromPackageJson:ge})}}return Mfe(p,v,b,E,(J,K,Y,oe)=>{const se=Y.getTypeChecker();d.throwIfCancellationRequested();const ge=Y.getCompilerOptions(),ae=jX(J,se,ge);ae&&(ae.name===t||OBe(J,Is(ge),u)===t)&&Lat(ae.resolvedSymbol,s)&&j(J,K,ae.symbol,ae.exportKind,Y,oe);const Ce=se.tryGetMemberInModuleExportsAndProperties(t,J);Ce&&Lat(Ce,s)&&j(J,K,Ce,0,Y,oe)}),k}function yWt(t,u,s){const d=x7(u),f=eu(t);if(!f&&f1(u)>=5)return d?1:2;if(f)return Bc(t)||s?d?1:2:3;for(const p of t.statements)if(g1(p)&&!Yl(p.moduleReference))return 3;return d?1:3}function zBe(t,u,s,d,f,p,E){let v;const b=nu.ChangeTracker.with(t,B=>{v=kWt(B,u,s,d,f,p,E)});return zo(VBe,b,v,HBe,F.Add_all_missing_imports)}function kWt(t,u,s,d,f,p,E){const v=Vm(u,E);switch(d.kind){case 0:return IBe(t,u,d),[F.Change_0_to_1,s,`${d.namespacePrefix}.${s}`];case 1:return Aat(t,u,d,v),[F.Change_0_to_1,s,Sat(d.moduleSpecifier,v)+s];case 2:{const{importClauseOrBindingPattern:b,importKind:B,addAsTypeOnly:k,moduleSpecifier:T}=d;Fat(t,u,b,B===1?{name:s,addAsTypeOnly:k}:void 0,B===0?[{name:s,addAsTypeOnly:k}]:_t,E);const M=G4(T);return f?[F.Import_0_from_1,s,M]:[F.Update_import_from_0,M]}case 3:{const{importKind:b,moduleSpecifier:B,addAsTypeOnly:k,useRequire:T,qualification:M}=d,z=T?wat:Bat,j=b===1?{name:s,addAsTypeOnly:k}:void 0,J=b===0?[{name:s,addAsTypeOnly:k}]:void 0,K=b===2||b===3?{importKind:b,name:(M==null?void 0:M.namespacePrefix)||s,addAsTypeOnly:k}:void 0;return PM(t,u,z(B,v,j,J,K,p.getCompilerOptions(),E),!0,E),M&&IBe(t,u,M),f?[F.Import_0_from_1,s,B]:[F.Add_import_from_0,B]}case 4:{const{typeOnlyAliasDeclaration:b}=d,B=FWt(t,b,p,u,E);return B.kind===276?[F.Remove_type_from_import_of_0_from_1,s,kat(B.parent.parent)]:[F.Remove_type_from_import_declaration_from_0,kat(B)]}default:return H.assertNever(d,`Unexpected fix kind ${d.kind}`)}}function kat(t){var u,s;return t.kind===271?((s=ar((u=ar(t.moduleReference,u_))==null?void 0:u.expression,t0))==null?void 0:s.text)||t.moduleReference.getText():Lo(t.parent.moduleSpecifier,ns).text}function FWt(t,u,s,d,f){const p=s.getCompilerOptions(),E=Dle(p);switch(u.kind){case 276:if(u.isTypeOnly){const b=Hp.detectImportSpecifierSorting(u.parent.elements,f);if(u.parent.elements.length>1&&b){const B=q.updateImportSpecifier(u,!1,u.propertyName,u.name),k=Hp.getOrganizeImportsComparer(f,b===2),T=Hp.getImportSpecifierInsertionIndex(u.parent.elements,B,k);if(u.parent.elements.indexOf(u)!==T)return t.delete(d,u),t.insertImportSpecifierAtIndex(d,B,u.parent,T),u}return t.deleteRange(d,u.getFirstToken()),u}else return H.assert(u.parent.parent.isTypeOnly),v(u.parent.parent),u.parent.parent;case 273:return v(u),u;case 274:return v(u.parent),u.parent;case 271:return t.deleteRange(d,u.getChildAt(1)),u;default:H.failBadSyntaxKind(u)}function v(b){var B;if(t.delete(d,ofe(b,d)),!p.allowImportingTsExtensions){const k=U8(b.parent),T=k&&((B=s.getResolvedModule(d,k.text,_g(d,k)))==null?void 0:B.resolvedModule);if(T!=null&&T.resolvedUsingTsExtension){const M=kO(k.text,dQ(k.text,p));t.replaceNode(d,k,q.createStringLiteral(M))}}if(E){const k=ar(b.namedBindings,nD);if(k&&k.elements.length>1){Hp.detectImportSpecifierSorting(k.elements,f)&&u.kind===276&&k.elements.indexOf(u)!==0&&(t.delete(d,u),t.insertImportSpecifierAtIndex(d,u,k,0));for(const T of k.elements)T!==u&&!T.isTypeOnly&&t.insertModifierBefore(d,156,T)}}}}function Fat(t,u,s,d,f,p){var E;if(s.kind===206){d&&B(s,d.name,"default");for(const k of f)B(s,k.name,void 0);return}const v=s.isTypeOnly&&qe([d,...f],k=>(k==null?void 0:k.addAsTypeOnly)===4),b=s.namedBindings&&((E=ar(s.namedBindings,nD))==null?void 0:E.elements);if(d&&(H.assert(!s.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(u,s.getStart(u),q.createIdentifier(d.name),{suffix:", "})),f.length){let k;if(typeof p.organizeImportsIgnoreCase=="boolean")k=p.organizeImportsIgnoreCase;else if(b){const j=Hp.detectImportSpecifierSorting(b,p);j!==3&&(k=j===2)}k===void 0&&(k=Hp.detectSorting(u,p)===2);const T=Hp.getOrganizeImportsComparer(p,k),M=ac(f.map(j=>q.createImportSpecifier((!s.isTypeOnly||v)&&f4e(j,p),void 0,q.createIdentifier(j.name))),(j,J)=>Hp.compareImportOrExportSpecifiers(j,J,T)),z=(b==null?void 0:b.length)&&Hp.detectImportSpecifierSorting(b,p);if(z&&!(k&&z===1))for(const j of M){const J=v&&!j.isTypeOnly?0:Hp.getImportSpecifierInsertionIndex(b,j,T);t.insertImportSpecifierAtIndex(u,j,s.namedBindings,J)}else if(b!=null&&b.length)for(const j of M)t.insertNodeInListAfter(u,Cr(b),j,b);else if(M.length){const j=q.createNamedImports(M);s.namedBindings?t.replaceNode(u,s.namedBindings,j):t.insertNodeAfter(u,H.checkDefined(s.name,"Import clause must have either named imports or a default import"),j)}}if(v&&(t.delete(u,ofe(s,u)),b))for(const k of b)t.insertModifierBefore(u,156,k);function B(k,T,M){const z=q.createBindingElement(void 0,M,T);k.elements.length?t.insertNodeInListAfter(u,Cr(k.elements),z):t.replaceNode(u,k,q.createObjectBindingPattern([z]))}}function IBe(t,u,{namespacePrefix:s,usagePosition:d}){t.insertText(u,d,s+".")}function Aat(t,u,{moduleSpecifier:s,usagePosition:d},f){t.insertText(u,d,Sat(s,f))}function Sat(t,u){const s=afe(u);return`import(${s}${t}${s}).`}function RBe({addAsTypeOnly:t}){return t===2}function f4e(t,u){return RBe(t)||!!u.preferTypeOnlyAutoImports&&t.addAsTypeOnly!==4}function Bat(t,u,s,d,f,p,E){const v=t9(t,u);let b;if(s!==void 0||d!=null&&d.length){const B=(!s||RBe(s))&&ye(d,RBe)||(p.verbatimModuleSyntax||E.preferTypeOnlyAutoImports)&&(s==null?void 0:s.addAsTypeOnly)!==4&&!qe(d,k=>k.addAsTypeOnly===4);b=Do(b,p5(s&&q.createIdentifier(s.name),d==null?void 0:d.map(k=>q.createImportSpecifier(!B&&f4e(k,E),void 0,q.createIdentifier(k.name))),t,u,B))}if(f){const B=f.importKind===3?q.createImportEqualsDeclaration(void 0,f4e(f,E),q.createIdentifier(f.name),q.createExternalModuleReference(v)):q.createImportDeclaration(void 0,q.createImportClause(f4e(f,E),void 0,q.createNamespaceImport(q.createIdentifier(f.name))),v,void 0);b=Do(b,B)}return H.checkDefined(b)}function wat(t,u,s,d,f){const p=t9(t,u);let E;if(s||d!=null&&d.length){const v=(d==null?void 0:d.map(({name:B})=>q.createBindingElement(void 0,void 0,B)))||[];s&&v.unshift(q.createBindingElement(void 0,"default",s.name));const b=Tat(q.createObjectBindingPattern(v),p);E=Do(E,b)}if(f){const v=Tat(f.name,p);E=Do(E,v)}return H.checkDefined(E)}function Tat(t,u){return q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(typeof t=="string"?q.createIdentifier(t):t,void 0,void 0,q.createCallExpression(q.createIdentifier("require"),void 0,[u]))],2))}function Lat({declarations:t},u){return qe(t,s=>!!(BH(s)&u))}function OBe(t,u,s){return jBe(Eh(G4(t.name)),u,s)}function jBe(t,u,s){const d=Fc(E8(t,"/index"));let f="",p=!0;const E=d.charCodeAt(0);W_(E,u)?(f+=String.fromCharCode(E),s&&(f=f.toUpperCase())):p=!1;for(let v=1;vzBe(t,d,b,v,b!==B,p,s))},fixIds:[HBe],getAllCodeActions:t=>{const{sourceFile:u,program:s,preferences:d,host:f,cancellationToken:p}=t,E=mat(u,s,!0,d,f,p);return gw(t,KBe,v=>E.addImportFromDiagnostic(v,t)),pw(nu.ChangeTracker.with(t,E.writeFixes))}})}});function Nat(t,u,s){const d=Le(t.getSemanticDiagnostics(u),E=>E.start===s.start&&E.length===s.length);if(d===void 0||d.relatedInformation===void 0)return;const f=Le(d.relatedInformation,E=>E.code===F.This_type_parameter_might_need_an_extends_0_constraint.code);if(f===void 0||f.file===void 0||f.start===void 0||f.length===void 0)return;let p=Gwe(f.file,c1(f.start,f.length));if(p!==void 0&&(at(p)&&Al(p.parent)&&(p=p.parent),Al(p))){if(GP(p.parent))return;const E=ba(u,s.start),v=t.getTypeChecker();return{constraint:BWt(v,E)||SWt(f.messageText),declaration:p,token:E}}}function Pat(t,u,s,d,f,p){const{declaration:E,constraint:v}=p,b=u.getTypeChecker();if(Ja(v))t.insertText(f,E.name.end,` extends ${v}`);else{const B=Is(u.getCompilerOptions()),k=_w({program:u,host:d}),T=o9(f,u,s,d),M=Z4e(b,T,v,void 0,B,void 0,k);M&&(t.replaceNode(f,E,q.updateTypeParameterDeclaration(E,void 0,E.name,M,E.default)),T.writeFixes(t))}}function SWt(t){const[u,s]=sE(t,` -`,0).match(/`extends (.*)`/)||[];return s}function BWt(t,u){return Qr(u.parent)?t.getTypeArgumentConstraint(u.parent):(Wt(u)?t.getContextualType(u):void 0)||t.getTypeAtLocation(u)}var m4e,WBe,wWt=o({"src/services/codefixes/fixAddMissingConstraint.ts"(){or(),us(),m4e="addMissingConstraint",WBe=[F.Type_0_is_not_comparable_to_type_1.code,F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.Type_0_is_not_assignable_to_type_1.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.Property_0_is_incompatible_with_index_signature.code,F.Property_0_in_type_1_is_not_assignable_to_type_2.code,F.Type_0_does_not_satisfy_the_constraint_1.code],Qo({errorCodes:WBe,getCodeActions(t){const{sourceFile:u,span:s,program:d,preferences:f,host:p}=t,E=Nat(d,u,s);if(E===void 0)return;const v=nu.ChangeTracker.with(t,b=>Pat(b,d,f,p,u,E));return[zo(m4e,v,F.Add_extends_constraint,m4e,F.Add_extends_constraint_to_all_type_parameters)]},fixIds:[m4e],getAllCodeActions:t=>{const{program:u,preferences:s,host:d}=t,f=new Map;return pw(nu.ChangeTracker.with(t,p=>{gw(t,WBe,E=>{const v=Nat(u,E.file,c1(E.start,E.length));if(v&&Pp(f,Js(v.declaration)))return Pat(p,u,s,d,E.file,v)})}))}})}});function Mat(t,u,s,d){switch(s){case F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return TWt(t,u.sourceFile,d);case F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return LWt(t,u.sourceFile,d);default:H.fail("Unexpected error code: "+s)}}function TWt(t,u,s){const d=Iat(u,s);if(ph(u)){t.addJSDocTags(u,d,[q.createJSDocOverrideTag(q.createIdentifier("override"))]);return}const f=d.modifiers||_t,p=Le(f,T7),E=Le(f,Xke),v=Le(f,T=>Zhe(T.kind)),b=lt(f,p1),B=E?E.end:p?p.end:v?v.end:b?ms(u.text,b.end):d.getStart(u),k=v||p||E?{prefix:" "}:{suffix:" "};t.insertModifierAt(u,B,164,k)}function LWt(t,u,s){const d=Iat(u,s);if(ph(u)){t.filterJSDocTags(u,d,q$(hY));return}const f=Le(d.modifiers,eFe);H.assertIsDefined(f),t.deleteModifier(u,f)}function zat(t){switch(t.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Pf(t,t.parent);default:return!1}}function Iat(t,u){const s=ba(t,u),d=Ln(s,f=>gr(f)?"quit":zat(f));return H.assert(d&&zat(d)),d}var GBe,UM,vK,JBe,$Be,NWt=o({"src/services/codefixes/fixOverrideModifier.ts"(){or(),us(),GBe="fixOverrideModifier",UM="fixAddOverrideModifier",vK="fixRemoveOverrideModifier",JBe=[F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],$Be={[F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:UM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:UM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:F.Remove_override_modifier,fixId:vK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:F.Remove_override_modifier,fixId:vK,fixAllDescriptions:F.Remove_override_modifier},[F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:UM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:UM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:UM,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:F.Remove_override_modifier,fixId:vK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:F.Remove_override_modifier,fixId:vK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers}},Qo({errorCodes:JBe,getCodeActions:function(u){const{errorCode:s,span:d}=u,f=$Be[s];if(!f)return _t;const{descriptions:p,fixId:E,fixAllDescriptions:v}=f,b=nu.ChangeTracker.with(u,B=>Mat(B,u,s,d.start));return[rBe(GBe,b,p,E,v)]},fixIds:[GBe,UM,vK],getAllCodeActions:t=>h0(t,JBe,(u,s)=>{const{code:d,start:f}=s,p=$Be[d];!p||p.fixId!==t.fixId||Mat(u,t,d,f)})})}});function Rat(t,u,s,d){const f=Vm(u,d),p=q.createStringLiteral(s.name.text,f===0);t.replaceNode(u,s,wU(s)?q.createElementAccessChain(s.expression,s.questionDotToken,p):q.createElementAccessExpression(s.expression,p))}function Oat(t,u){return Lo(ba(t,u).parent,Iu)}var p4e,UBe,PWt=o({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){or(),us(),p4e="fixNoPropertyAccessFromIndexSignature",UBe=[F.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Qo({errorCodes:UBe,fixIds:[p4e],getCodeActions(t){const{sourceFile:u,span:s,preferences:d}=t,f=Oat(u,s.start),p=nu.ChangeTracker.with(t,E=>Rat(E,t.sourceFile,f,d));return[zo(p4e,p,[F.Use_element_access_for_0,f.name.text],p4e,F.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:t=>h0(t,UBe,(u,s)=>Rat(u,s.file,Oat(s.file,s.start),t.preferences))})}});function jat(t,u,s,d){const f=ba(u,s);if(!nw(f))return;const p=ef(f,!1,!1);if(!(!Xc(p)&&!F0(p))&&!ca(ef(p,!1,!1))){const E=H.checkDefined(r0(p,100,u)),{name:v}=p,b=H.checkDefined(p.body);return F0(p)?v&&J0.Core.isSymbolReferencedInFile(v,d,u,b)?void 0:(t.delete(u,E),v&&t.delete(u,v),t.insertText(u,b.pos," =>"),[F.Convert_function_expression_0_to_arrow_function,v?v.text:OX]):(t.replaceNode(u,E,q.createToken(87)),t.insertText(u,v.end," = "),t.insertText(u,b.pos," =>"),[F.Convert_function_declaration_0_to_arrow_function,v.text])}}var g4e,qBe,MWt=o({"src/services/codefixes/fixImplicitThis.ts"(){or(),us(),g4e="fixImplicitThis",qBe=[F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Qo({errorCodes:qBe,getCodeActions:function(u){const{sourceFile:s,program:d,span:f}=u;let p;const E=nu.ChangeTracker.with(u,v=>{p=jat(v,s,f.start,d.getTypeChecker())});return p?[zo(g4e,E,p,g4e,F.Fix_all_implicit_this_errors)]:_t},fixIds:[g4e],getAllCodeActions:t=>h0(t,qBe,(u,s)=>{jat(u,s.file,s.start,t.program.getTypeChecker())})})}});function Vat(t,u,s){var d,f;const p=ba(t,u);if(at(p)){const E=Ln(p,Ad);if(E===void 0)return;const v=ns(E.moduleSpecifier)?E.moduleSpecifier.text:void 0;if(v===void 0)return;const b=(d=s.getResolvedModule(t,v,void 0))==null?void 0:d.resolvedModule;if(b===void 0)return;const B=s.getSourceFile(b.resolvedFileName);if(B===void 0||HM(s,B))return;const k=B.symbol,T=(f=ar(k.valueDeclaration,$E))==null?void 0:f.locals;if(T===void 0)return;const M=T.get(p.escapedText);if(M===void 0)return;const z=IWt(M);return z===void 0?void 0:{exportName:{node:p,isTypeOnly:mB(z)},node:z,moduleSourceFile:B,moduleSpecifier:v}}}function zWt(t,u,{exportName:s,node:d,moduleSourceFile:f}){const p=E4e(f,s.isTypeOnly);p?Hat(t,u,f,p,[s]):nV(d)?t.insertExportModifier(f,d):Kat(t,u,f,[s])}function ZBe(t,u,s,d,f){S(d)&&(f?Hat(t,u,s,f,d):Kat(t,u,s,d))}function E4e(t,u){const s=d=>Wc(d)&&(u&&d.isTypeOnly||!d.isTypeOnly);return lt(t.statements,s)}function Hat(t,u,s,d,f){const p=d.exportClause&&Q4(d.exportClause)?d.exportClause.elements:q.createNodeArray([]),E=!d.isTypeOnly&&!!(hg(u.getCompilerOptions())||Le(p,v=>v.isTypeOnly));t.replaceNode(s,d,q.updateExportDeclaration(d,d.modifiers,d.isTypeOnly,q.createNamedExports(q.createNodeArray([...p,...Wat(f,E)],p.hasTrailingComma)),d.moduleSpecifier,d.attributes))}function Kat(t,u,s,d){t.insertNodeAtEndOfScope(s,s,q.createExportDeclaration(void 0,!1,q.createNamedExports(Wat(d,hg(u.getCompilerOptions()))),void 0,void 0))}function Wat(t,u){return q.createNodeArray(Kt(t,s=>q.createExportSpecifier(u&&s.isTypeOnly,void 0,s.node)))}function IWt(t){if(t.valueDeclaration===void 0)return Hi(t.declarations);const u=t.valueDeclaration,s=ua(u)?ar(u.parent.parent,Gl):void 0;return s&&S(s.declarationList.declarations)===1?s:u}var _4e,YBe,RWt=o({"src/services/codefixes/fixImportNonExportedMember.ts"(){or(),us(),_4e="fixImportNonExportedMember",YBe=[F.Module_0_declares_1_locally_but_it_is_not_exported.code],Qo({errorCodes:YBe,fixIds:[_4e],getCodeActions(t){const{sourceFile:u,span:s,program:d}=t,f=Vat(u,s.start,d);if(f===void 0)return;const p=nu.ChangeTracker.with(t,E=>zWt(E,d,f));return[zo(_4e,p,[F.Export_0_from_module_1,f.exportName.node.text,f.moduleSpecifier],_4e,F.Export_all_referenced_locals)]},getAllCodeActions(t){const{program:u}=t;return pw(nu.ChangeTracker.with(t,s=>{const d=new Map;gw(t,YBe,f=>{const p=Vat(f.file,f.start,u);if(p===void 0)return;const{exportName:E,node:v,moduleSourceFile:b}=p;if(E4e(b,E.isTypeOnly)===void 0&&nV(v))s.insertExportModifier(b,v);else{const B=d.get(b)||{typeOnlyExports:[],exports:[]};E.isTypeOnly?B.typeOnlyExports.push(E):B.exports.push(E),d.set(b,B)}}),d.forEach((f,p)=>{const E=E4e(p,!0);E&&E.isTypeOnly?(ZBe(s,u,p,f.typeOnlyExports,E),ZBe(s,u,p,f.exports,E4e(p,!1))):ZBe(s,u,p,[...f.exports,...f.typeOnlyExports],E)})}))}})}});function OWt(t,u){const s=ba(t,u);return Ln(s,d=>d.kind===202)}function jWt(t,u,s){if(!s)return;let d=s.type,f=!1,p=!1;for(;d.kind===190||d.kind===191||d.kind===196;)d.kind===190?f=!0:d.kind===191&&(p=!0),d=d.type;const E=q.updateNamedTupleMember(s,s.dotDotDotToken||(p?q.createToken(26):void 0),s.name,s.questionToken||(f?q.createToken(58):void 0),d);E!==s&&t.replaceNode(u,s,E)}var D4e,Gat,VWt=o({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){or(),us(),D4e="fixIncorrectNamedTupleSyntax",Gat=[F.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,F.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Qo({errorCodes:Gat,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=OWt(s,d.start),p=nu.ChangeTracker.with(u,E=>jWt(E,s,f));return[zo(D4e,p,F.Move_labeled_tuple_element_modifiers_to_labels,D4e,F.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[D4e]})}});function Jat(t,u,s,d){const f=ba(t,u),p=f.parent;if((d===F.No_overload_matches_this_call.code||d===F.Type_0_is_not_assignable_to_type_1.code)&&!aE(p))return;const E=s.program.getTypeChecker();let v;if(Iu(p)&&p.name===f){H.assert(G_(f),"Expected an identifier for spelling (property access)");let b=E.getTypeAtLocation(p.expression);p.flags&64&&(b=E.getNonNullableType(b)),v=E.getSuggestedSymbolForNonexistentProperty(f,b)}else if(tu(p)&&p.operatorToken.kind===103&&p.left===f&&Xr(f)){const b=E.getTypeAtLocation(p.right);v=E.getSuggestedSymbolForNonexistentProperty(f,b)}else if(xf(p)&&p.right===f){const b=E.getSymbolAtLocation(p.left);b&&b.flags&1536&&(v=E.getSuggestedSymbolForNonexistentModule(p.right,b))}else if(Cf(p)&&p.name===f){H.assertNode(f,at,"Expected an identifier for spelling (import)");const b=Ln(f,Ad),B=KWt(t,s,b);B&&B.symbol&&(v=E.getSuggestedSymbolForNonexistentModule(f,B.symbol))}else if(aE(p)&&p.name===f){H.assertNode(f,at,"Expected an identifier for JSX attribute");const b=Ln(f,Ph),B=E.getContextualTypeForArgumentAtIndex(b,0);v=E.getSuggestedSymbolForNonexistentJSXAttribute(f,B)}else if(Iq(p)&&qd(p)&&p.name===f){const b=Ln(f,gr),B=b?Yg(b):void 0,k=B?E.getTypeAtLocation(B):void 0;k&&(v=E.getSuggestedSymbolForNonexistentClassMember(Vc(f),k))}else{const b=Lk(f),B=Vc(f);H.assert(B!==void 0,"name should be defined"),v=E.getSuggestedSymbolForNonexistentSymbol(f,B,HWt(b))}return v===void 0?void 0:{node:f,suggestedSymbol:v}}function $at(t,u,s,d,f){const p=sc(d);if(!Tm(p,f)&&Iu(s.parent)){const E=d.valueDeclaration;E&&fh(E)&&Xr(E.name)?t.replaceNode(u,s,q.createIdentifier(p)):t.replaceNode(u,s.parent,q.createElementAccessExpression(s.parent.expression,q.createStringLiteral(p)))}else t.replaceNode(u,s,q.createIdentifier(p))}function HWt(t){let u=0;return t&4&&(u|=1920),t&2&&(u|=788968),t&1&&(u|=111551),u}function KWt(t,u,s){var d;if(!s||!t0(s.moduleSpecifier))return;const f=(d=u.program.getResolvedModule(t,s.moduleSpecifier.text,_g(t,s.moduleSpecifier)))==null?void 0:d.resolvedModule;if(f)return u.program.getSourceFile(f.resolvedFileName)}var QBe,XBe,WWt=o({"src/services/codefixes/fixSpelling.ts"(){or(),us(),QBe="fixSpelling",XBe=[F.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,F.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,F.Cannot_find_name_0_Did_you_mean_1.code,F.Could_not_find_name_0_Did_you_mean_1.code,F.Cannot_find_namespace_0_Did_you_mean_1.code,F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,F._0_has_no_exported_member_named_1_Did_you_mean_2.code,F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,F.No_overload_matches_this_call.code,F.Type_0_is_not_assignable_to_type_1.code],Qo({errorCodes:XBe,getCodeActions(t){const{sourceFile:u,errorCode:s}=t,d=Jat(u,t.span.start,t,s);if(!d)return;const{node:f,suggestedSymbol:p}=d,E=Is(t.host.getCompilationSettings()),v=nu.ChangeTracker.with(t,b=>$at(b,u,f,p,E));return[zo("spelling",v,[F.Change_spelling_to_0,sc(p)],QBe,F.Fix_all_detected_spelling_errors)]},fixIds:[QBe],getAllCodeActions:t=>h0(t,XBe,(u,s)=>{const d=Jat(s.file,s.start,t,s.code),f=Is(t.host.getCompilationSettings());d&&$at(u,t.sourceFile,d.node,d.suggestedSymbol,f)})})}});function Uat(t,u,s){const d=t.createSymbol(4,u.escapedText);d.links.type=t.getTypeAtLocation(s);const f=jo([d]);return t.createAnonymousType(void 0,f,[],[],[])}function ewe(t,u,s,d){if(!u.body||!fo(u.body)||S(u.body.statements)!==1)return;const f=Mn(u.body.statements);if(Id(f)&&twe(t,u,t.getTypeAtLocation(f.expression),s,d))return{declaration:u,kind:0,expression:f.expression,statement:f,commentSource:f.expression};if(R2(f)&&Id(f.statement)){const p=q.createObjectLiteralExpression([q.createPropertyAssignment(f.label,f.statement.expression)]),E=Uat(t,f.label,f.statement.expression);if(twe(t,u,E,s,d))return G0(u)?{declaration:u,kind:1,expression:p,statement:f,commentSource:f.statement.expression}:{declaration:u,kind:0,expression:p,statement:f,commentSource:f.statement.expression}}else if(fo(f)&&S(f.statements)===1){const p=Mn(f.statements);if(R2(p)&&Id(p.statement)){const E=q.createObjectLiteralExpression([q.createPropertyAssignment(p.label,p.statement.expression)]),v=Uat(t,p.label,p.statement.expression);if(twe(t,u,v,s,d))return{declaration:u,kind:0,expression:E,statement:f,commentSource:p}}}}function twe(t,u,s,d,f){if(f){const p=t.getSignatureFromDeclaration(u);if(p){Xu(u,1024)&&(s=t.createPromiseType(s));const E=t.createSignature(u,p.typeParameters,p.thisParameter,p.parameters,s,void 0,p.minArgumentCount,p.flags);s=t.createAnonymousType(void 0,jo(),[E],[],[])}else s=t.getAnyType()}return t.isTypeAssignableTo(s,d)}function qat(t,u,s,d){const f=ba(u,s);if(!f.parent)return;const p=Ln(f.parent,K0);switch(d){case F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!p||!p.body||!p.type||!jm(p.type,f)?void 0:ewe(t,p,t.getTypeFromTypeNode(p.type),!1);case F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!p||!No(p.parent)||!p.body)return;const E=p.parent.arguments.indexOf(p);if(E===-1)return;const v=t.getContextualTypeForArgumentAtIndex(p.parent,E);return v?ewe(t,p,v,!0):void 0;case F.Type_0_is_not_assignable_to_type_1.code:if(!Q3(f)||!K8(f.parent)&&!aE(f.parent))return;const b=GWt(f.parent);return!b||!K0(b)||!b.body?void 0:ewe(t,b,t.getTypeAtLocation(f.parent),!0)}}function GWt(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:return t.initializer;case 291:return t.initializer&&(ZP(t.initializer)?t.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function Zat(t,u,s,d){Hf(s);const f=qH(u);t.replaceNode(u,d,q.createReturnStatement(s),{leadingTriviaOption:nu.LeadingTriviaOption.Exclude,trailingTriviaOption:nu.TrailingTriviaOption.Exclude,suffix:f?";":void 0})}function Yat(t,u,s,d,f,p){const E=p||bX(d)?q.createParenthesizedExpression(d):d;Hf(f),zk(f,E),t.replaceNode(u,s.body,E)}function Qat(t,u,s,d){t.replaceNode(u,s.body,q.createParenthesizedExpression(d))}function JWt(t,u,s){const d=nu.ChangeTracker.with(t,f=>Zat(f,t.sourceFile,u,s));return zo(x4e,d,F.Add_a_return_statement,v4e,F.Add_all_missing_return_statement)}function $Wt(t,u,s,d){const f=nu.ChangeTracker.with(t,p=>Yat(p,t.sourceFile,u,s,d,!1));return zo(x4e,f,F.Remove_braces_from_arrow_function_body,C4e,F.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function UWt(t,u,s){const d=nu.ChangeTracker.with(t,f=>Qat(f,t.sourceFile,u,s));return zo(x4e,d,F.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,b4e,F.Wrap_all_object_literal_with_parentheses)}var x4e,v4e,C4e,b4e,iwe,qWt=o({"src/services/codefixes/returnValueCorrect.ts"(){or(),us(),x4e="returnValueCorrect",v4e="fixAddReturnStatement",C4e="fixRemoveBracesFromArrowFunctionBody",b4e="fixWrapTheBlockWithParen",iwe=[F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,F.Type_0_is_not_assignable_to_type_1.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Qo({errorCodes:iwe,fixIds:[v4e,C4e,b4e],getCodeActions:function(u){const{program:s,sourceFile:d,span:{start:f},errorCode:p}=u,E=qat(s.getTypeChecker(),d,f,p);if(E)return E.kind===0?Ei([JWt(u,E.expression,E.statement)],G0(E.declaration)?$Wt(u,E.declaration,E.expression,E.commentSource):void 0):[UWt(u,E.declaration,E.expression)]},getAllCodeActions:t=>h0(t,iwe,(u,s)=>{const d=qat(t.program.getTypeChecker(),s.file,s.start,s.code);if(d)switch(t.fixId){case v4e:Zat(u,s.file,d.expression,d.statement);break;case C4e:if(!G0(d.declaration))return;Yat(u,s.file,d.declaration,d.expression,d.commentSource,!1);break;case b4e:if(!G0(d.declaration))return;Qat(u,s.file,d.declaration,d.expression);break;default:H.fail(JSON.stringify(t.fixId))}})})}});function Xat(t,u,s,d,f){var p;const E=ba(t,u),v=E.parent;if(s===F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(E.kind===19&&Cs(v)&&No(v.parent)))return;const z=$e(v.parent.arguments,Y=>Y===v);if(z<0)return;const j=d.getResolvedSignature(v.parent);if(!(j&&j.declaration&&j.parameters[z]))return;const J=j.parameters[z].valueDeclaration;if(!(J&&eo(J)&&at(J.name)))return;const K=Ea(d.getUnmatchedProperties(d.getTypeAtLocation(v),d.getParameterType(j,z),!1,!1));return S(K)?{kind:3,token:J.name,properties:K,parentDeclaration:v}:void 0}if(!G_(E))return;if(at(E)&&Lx(v)&&v.initializer&&Cs(v.initializer)){const z=d.getContextualType(E)||d.getTypeAtLocation(E),j=Ea(d.getUnmatchedProperties(d.getTypeAtLocation(v.initializer),z,!1,!1));return S(j)?{kind:3,token:E,properties:j,parentDeclaration:v.initializer}:void 0}if(at(E)&&Ph(E.parent)){const z=Is(f.getCompilerOptions()),j=iGt(d,z,E.parent);return S(j)?{kind:4,token:E,attributes:j,parentDeclaration:E.parent}:void 0}if(at(E)){const z=(p=d.getContextualType(E))==null?void 0:p.getNonNullableType();if(z&&$u(z)&16){const j=Hi(d.getSignaturesOfType(z,0));return j===void 0?void 0:{kind:5,token:E,signature:j,sourceFile:t,parentDeclaration:cot(E)}}if(No(v)&&v.expression===E)return{kind:2,token:E,call:v,sourceFile:t,modifierFlags:0,parentDeclaration:cot(E)}}if(!Iu(v))return;const b=ife(d.getTypeAtLocation(v.expression)),B=b.symbol;if(!B||!B.declarations)return;if(at(E)&&No(v.parent)){const z=Le(B.declarations,Ec),j=z==null?void 0:z.getSourceFile();if(z&&j&&!HM(f,j))return{kind:2,token:E,call:v.parent,sourceFile:t,modifierFlags:32,parentDeclaration:z};const J=Le(B.declarations,ca);if(t.commonJsModuleIndicator)return;if(J&&!HM(f,J))return{kind:2,token:E,call:v.parent,sourceFile:J,modifierFlags:32,parentDeclaration:J}}const k=Le(B.declarations,gr);if(!k&&Xr(E))return;const T=k||Le(B.declarations,z=>Dh(z)||hm(z));if(T&&!HM(f,T.getSourceFile())){const z=!hm(T)&&(b.target||b)!==d.getDeclaredTypeOfSymbol(B);if(z&&(Xr(E)||Dh(T)))return;const j=T.getSourceFile(),J=hm(T)?0:(z?256:0)|(Ffe(E.text)?2:0),K=ph(j),Y=ar(v.parent,No);return{kind:0,token:E,call:Y,modifierFlags:J,parentDeclaration:T,declSourceFile:j,isJSFile:K}}const M=Le(B.declarations,Mv);if(M&&!(b.flags&1056)&&!Xr(E)&&!HM(f,M.getSourceFile()))return{kind:1,token:E,parentDeclaration:M}}function ZWt(t,u){return u.isJSFile?jy(YWt(t,u)):QWt(t,u)}function YWt(t,{parentDeclaration:u,declSourceFile:s,modifierFlags:d,token:f}){if(Dh(u)||hm(u))return;const p=nu.ChangeTracker.with(t,v=>eot(v,s,u,f,!!(d&256)));if(p.length===0)return;const E=d&256?F.Initialize_static_property_0:Xr(f)?F.Declare_a_private_field_named_0:F.Initialize_property_0_in_the_constructor;return zo(Zx,p,[E,f.text],Zx,F.Add_all_missing_members)}function eot(t,u,s,d,f){const p=d.text;if(f){if(s.kind===231)return;const E=s.name.getText(),v=tot(q.createIdentifier(E),p);t.insertNodeAfter(u,s,v)}else if(Xr(d)){const E=q.createPropertyDeclaration(void 0,p,void 0,void 0,void 0),v=uot(s);v?t.insertNodeAfter(u,v,E):t.insertMemberAtStart(u,s,E)}else{const E=Q_(s);if(!E)return;const v=tot(q.createThis(),p);t.insertNodeAtConstructorEnd(u,E,v)}}function tot(t,u){return q.createExpressionStatement(q.createAssignment(q.createPropertyAccessExpression(t,u),s9()))}function QWt(t,{parentDeclaration:u,declSourceFile:s,modifierFlags:d,token:f}){const p=f.text,E=d&256,v=iot(t.program.getTypeChecker(),u,f),b=k=>nu.ChangeTracker.with(t,T=>not(T,s,u,p,v,k)),B=[zo(Zx,b(d&256),[E?F.Declare_static_property_0:F.Declare_property_0,p],Zx,F.Add_all_missing_members)];return E||Xr(f)||(d&2&&B.unshift(xg(Zx,b(2),[F.Declare_private_property_0,p])),B.push(XWt(t,s,u,f.text,v))),B}function iot(t,u,s){let d;if(s.parent.parent.kind===226){const f=s.parent.parent,p=s.parent===f.left?f.right:f.left,E=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(p)));d=t.typeToTypeNode(E,u,1)}else{const f=t.getContextualType(s.parent);d=f?t.typeToTypeNode(f,void 0,1):void 0}return d||q.createKeywordTypeNode(133)}function not(t,u,s,d,f,p){const E=p?q.createNodeArray(q.createModifiersFromModifierFlags(p)):void 0,v=gr(s)?q.createPropertyDeclaration(E,d,void 0,f,void 0):q.createPropertySignature(void 0,d,void 0,f),b=uot(s);b?t.insertNodeAfter(u,b,v):t.insertMemberAtStart(u,s,v)}function uot(t){let u;for(const s of t.members){if(!bo(s))break;u=s}return u}function XWt(t,u,s,d,f){const p=q.createKeywordTypeNode(154),E=q.createParameterDeclaration(void 0,void 0,"x",void 0,p,void 0),v=q.createIndexSignature(void 0,[E],f),b=nu.ChangeTracker.with(t,B=>B.insertMemberAtStart(u,s,v));return xg(Zx,b,[F.Add_index_signature_for_property_0,d])}function eGt(t,u){const{parentDeclaration:s,declSourceFile:d,modifierFlags:f,token:p,call:E}=u;if(E===void 0)return;const v=p.text,b=k=>nu.ChangeTracker.with(t,T=>rot(t,T,E,p,k,s,d)),B=[zo(Zx,b(f&256),[f&256?F.Declare_static_method_0:F.Declare_method_0,v],Zx,F.Add_all_missing_members)];return f&2&&B.unshift(xg(Zx,b(2),[F.Declare_private_method_0,v])),B}function rot(t,u,s,d,f,p,E){const v=o9(E,t.program,t.preferences,t.host),b=gr(p)?174:173,B=Owe(b,t,v,s,d,f,p),k=nGt(p,s);k?u.insertNodeAfter(E,k,B):u.insertMemberAtStart(E,p,B),v.writeFixes(u)}function aot(t,u,{token:s,parentDeclaration:d}){const f=qe(d.members,E=>{const v=u.getTypeAtLocation(E);return!!(v&&v.flags&402653316)}),p=q.createEnumMember(s,f?q.createStringLiteral(s.text):void 0);t.replaceNode(d.getSourceFile(),d,q.updateEnumDeclaration(d,d.modifiers,d.name,an(d.members,jy(p))),{leadingTriviaOption:nu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:nu.TrailingTriviaOption.Exclude})}function oot(t,u,s){const d=Vm(u.sourceFile,u.preferences),f=o9(u.sourceFile,u.program,u.preferences,u.host),p=s.kind===2?Owe(262,u,f,s.call,mu(s.token),s.modifierFlags,s.parentDeclaration):q4e(262,u,d,s.signature,kee(F.Function_not_implemented.message,d),s.token,void 0,void 0,void 0,f);p===void 0&&H.fail("fixMissingFunctionDeclaration codefix got unexpected error."),zp(s.parentDeclaration)?t.insertNodeBefore(s.sourceFile,s.parentDeclaration,p,!0):t.insertNodeAtEndOfScope(s.sourceFile,s.parentDeclaration,p),f.writeFixes(t)}function sot(t,u,s){const d=o9(u.sourceFile,u.program,u.preferences,u.host),f=Vm(u.sourceFile,u.preferences),p=u.program.getTypeChecker(),E=s.parentDeclaration.attributes,v=qe(E.properties,j7),b=Kt(s.attributes,T=>{const M=y4e(u,p,d,f,p.getTypeOfSymbol(T),s.parentDeclaration),z=q.createIdentifier(T.name),j=q.createJsxAttribute(z,q.createJsxExpression(void 0,M));return bs(z,j),j}),B=q.createJsxAttributes(v?[...b,...E.properties]:[...E.properties,...b]),k={prefix:E.pos===E.end?" ":void 0};t.replaceNode(u.sourceFile,E,B,k),d.writeFixes(t)}function lot(t,u,s){const d=o9(u.sourceFile,u.program,u.preferences,u.host),f=Vm(u.sourceFile,u.preferences),p=Is(u.program.getCompilerOptions()),E=u.program.getTypeChecker(),v=Kt(s.properties,B=>{const k=y4e(u,E,d,f,E.getTypeOfSymbol(B),s.parentDeclaration);return q.createPropertyAssignment(uGt(B,p,f,E),k)}),b={leadingTriviaOption:nu.LeadingTriviaOption.Exclude,trailingTriviaOption:nu.TrailingTriviaOption.Exclude,indentation:s.indentation};t.replaceNode(u.sourceFile,s.parentDeclaration,q.createObjectLiteralExpression([...s.parentDeclaration.properties,...v],!0),b),d.writeFixes(t)}function y4e(t,u,s,d,f,p){if(f.flags&3)return s9();if(f.flags&134217732)return q.createStringLiteral("",d===0);if(f.flags&8)return q.createNumericLiteral(0);if(f.flags&64)return q.createBigIntLiteral("0n");if(f.flags&16)return q.createFalse();if(f.flags&1056){const E=f.symbol.exports?Kn(f.symbol.exports.values()):f.symbol,v=u.symbolToExpression(f.symbol.parent?f.symbol.parent:f.symbol,111551,void 0,void 0);return E===void 0||v===void 0?q.createNumericLiteral(0):q.createPropertyAccessExpression(v,u.symbolToString(E))}if(f.flags&256)return q.createNumericLiteral(f.value);if(f.flags&2048)return q.createBigIntLiteral(f.value);if(f.flags&128)return q.createStringLiteral(f.value,d===0);if(f.flags&512)return f===u.getFalseType()||f===u.getFalseType(!0)?q.createFalse():q.createTrue();if(f.flags&65536)return q.createNull();if(f.flags&1048576)return G(f.types,v=>y4e(t,u,s,d,v,p))??s9();if(u.isArrayLikeType(f))return q.createArrayLiteralExpression();if(tGt(f)){const E=Kt(u.getPropertiesOfType(f),v=>{const b=y4e(t,u,s,d,u.getTypeOfSymbol(v),p);return q.createPropertyAssignment(v.name,b)});return q.createObjectLiteralExpression(E,!0)}if($u(f)&16){if(Le(f.symbol.declarations||_t,lg(n3,i3,cc))===void 0)return s9();const v=u.getSignaturesOfType(f,0);return v===void 0?s9():q4e(218,t,d,v[0],kee(F.Function_not_implemented.message,d),void 0,void 0,void 0,p,s)??s9()}if($u(f)&1){const E=eD(f.symbol);if(E===void 0||T2(E))return s9();const v=Q_(E);return v&&S(v.parameters)?s9():q.createNewExpression(q.createIdentifier(f.symbol.name),void 0,void 0)}return s9()}function s9(){return q.createIdentifier("undefined")}function tGt(t){return t.flags&524288&&($u(t)&128||t.symbol&&ar(Aa(t.symbol.declarations),hm))}function iGt(t,u,s){const d=t.getContextualType(s.attributes);if(d===void 0)return _t;const f=d.getProperties();if(!S(f))return _t;const p=new Set;for(const E of s.attributes.properties)if(aE(E)&&p.add(PP(E.name)),j7(E)){const v=t.getTypeAtLocation(E.expression);for(const b of v.getProperties())p.add(b.escapedName)}return ei(f,E=>Tm(E.name,u,1)&&!(E.flags&16777216||Wl(E)&48||p.has(E.escapedName)))}function nGt(t,u){if(hm(t))return;const s=Ln(u,d=>cc(d)||dc(d));return s&&s.parent===t?s:void 0}function uGt(t,u,s,d){if(UE(t)){const f=d.symbolToNode(t,111551,void 0,1073741824);if(f&&Ls(f))return f}return cZ(t.name,u,s===0,!1,!1)}function cot(t){if(Ln(t,ZP)){const u=Ln(t.parent,zp);if(u)return u}return In(t)}var Zx,Dee,xee,vee,nwe,rGt=o({"src/services/codefixes/fixAddMissingMember.ts"(){or(),us(),Zx="fixMissingMember",Dee="fixMissingProperties",xee="fixMissingAttributes",vee="fixMissingFunctionDeclaration",nwe=[F.Property_0_does_not_exist_on_type_1.code,F.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,F.Property_0_is_missing_in_type_1_but_required_in_type_2.code,F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Cannot_find_name_0.code],Qo({errorCodes:nwe,getCodeActions(t){const u=t.program.getTypeChecker(),s=Xat(t.sourceFile,t.span.start,t.errorCode,u,t.program);if(s){if(s.kind===3){const d=nu.ChangeTracker.with(t,f=>lot(f,t,s));return[zo(Dee,d,F.Add_missing_properties,Dee,F.Add_all_missing_properties)]}if(s.kind===4){const d=nu.ChangeTracker.with(t,f=>sot(f,t,s));return[zo(xee,d,F.Add_missing_attributes,xee,F.Add_all_missing_attributes)]}if(s.kind===2||s.kind===5){const d=nu.ChangeTracker.with(t,f=>oot(f,t,s));return[zo(vee,d,[F.Add_missing_function_declaration_0,s.token.text],vee,F.Add_all_missing_function_declarations)]}if(s.kind===1){const d=nu.ChangeTracker.with(t,f=>aot(f,t.program.getTypeChecker(),s));return[zo(Zx,d,[F.Add_missing_enum_member_0,s.token.text],Zx,F.Add_all_missing_members)]}return an(eGt(t,s),ZWt(t,s))}},fixIds:[Zx,vee,Dee,xee],getAllCodeActions:t=>{const{program:u,fixId:s}=t,d=u.getTypeChecker(),f=new Map,p=new Map;return pw(nu.ChangeTracker.with(t,E=>{gw(t,nwe,v=>{const b=Xat(v.file,v.start,v.code,d,t.program);if(!(!b||!Pp(f,Js(b.parentDeclaration)+"#"+b.token.text))){if(s===vee&&(b.kind===2||b.kind===5))oot(E,t,b);else if(s===Dee&&b.kind===3)lot(E,t,b);else if(s===xee&&b.kind===4)sot(E,t,b);else if(b.kind===1&&aot(E,d,b),b.kind===0){const{parentDeclaration:B,token:k}=b,T=Vl(p,B,()=>[]);T.some(M=>M.token.text===k.text)||T.push(b)}}}),p.forEach((v,b)=>{const B=hm(b)?void 0:$we(b,d);for(const k of v){if(B!=null&&B.some(Y=>{const oe=p.get(Y);return!!oe&&oe.some(({token:se})=>se.text===k.token.text)}))continue;const{parentDeclaration:T,declSourceFile:M,modifierFlags:z,token:j,call:J,isJSFile:K}=k;if(J&&!Xr(j))rot(t,E,J,j,z&256,T,M);else if(K&&!Dh(T)&&!hm(T))eot(E,M,T,j,!!(z&256));else{const Y=iot(d,T,j);not(E,M,T,j.text,Y,z&256)}}})}))}})}});function dot(t,u,s){const d=Lo(aGt(u,s),No),f=q.createNewExpression(d.expression,d.typeArguments,d.arguments);t.replaceNode(u,d,f)}function aGt(t,u){let s=ba(t,u.start);const d=gc(u);for(;s.enddot(f,u,s));return[zo(k4e,d,F.Add_missing_new_operator_to_call,k4e,F.Add_missing_new_operator_to_all_calls)]},fixIds:[k4e],getAllCodeActions:t=>h0(t,uwe,(u,s)=>dot(u,t.sourceFile,s))})}});function hot(t,u){return{type:"install package",file:t,packageName:u}}function fot(t,u){const s=ar(ba(t,u),ns);if(!s)return;const d=s.text,{packageName:f}=rH(d);return Md(f)?void 0:f}function mot(t,u,s){var d;return s===rwe?a3.nodeCoreModules.has(t)?"@types/node":void 0:(d=u.isKnownTypesPackageName)!=null&&d.call(u,t)?KY(t):void 0}var pot,F4e,rwe,awe,sGt=o({"src/services/codefixes/fixCannotFindModule.ts"(){or(),us(),pot="fixCannotFindModule",F4e="installTypesPackage",rwe=F.Cannot_find_module_0_or_its_corresponding_type_declarations.code,awe=[rwe,F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Qo({errorCodes:awe,getCodeActions:function(u){const{host:s,sourceFile:d,span:{start:f}}=u,p=fot(d,f);if(p===void 0)return;const E=mot(p,s,u.errorCode);return E===void 0?[]:[zo(pot,[],[F.Install_0,E],F4e,F.Install_all_missing_types_packages,hot(d.fileName,E))]},fixIds:[F4e],getAllCodeActions:t=>h0(t,awe,(u,s,d)=>{const f=fot(s.file,s.start);if(f!==void 0)switch(t.fixId){case F4e:{const p=mot(f,t.host,s.code);p&&d.push(hot(s.file.fileName,p));break}default:H.fail(`Bad fixId: ${t.fixId}`)}})})}});function got(t,u){const s=ba(t,u);return Lo(s.parent,gr)}function Eot(t,u,s,d,f){const p=Yg(t),E=s.program.getTypeChecker(),v=E.getTypeAtLocation(p),b=E.getPropertiesOfType(v).filter(lGt),B=o9(u,s.program,f,s.host);Rwe(t,b,u,s,f,B,k=>d.insertMemberAtStart(u,t,k)),B.writeFixes(d)}function lGt(t){const u=Ix(Mn(t.getDeclarations()));return!(u&2)&&!!(u&64)}var owe,A4e,cGt=o({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){or(),us(),owe=[F.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],A4e="fixClassDoesntImplementInheritedAbstractMember",Qo({errorCodes:owe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=nu.ChangeTracker.with(u,p=>Eot(got(s,d.start),s,u,p,u.preferences));return f.length===0?void 0:[zo(A4e,f,F.Implement_inherited_abstract_class,A4e,F.Implement_all_inherited_abstract_classes)]},fixIds:[A4e],getAllCodeActions:function(u){const s=new Map;return h0(u,owe,(d,f)=>{const p=got(f.file,f.start);Pp(s,Js(p))&&Eot(p,u.sourceFile,u,d,u.preferences)})}})}});function _ot(t,u,s,d){t.insertNodeAtConstructorStart(u,s,d),t.delete(u,d)}function Dot(t,u){const s=ba(t,u);if(s.kind!==110)return;const d=Lm(s),f=xot(d.body);return f&&!f.expression.arguments.some(p=>Iu(p)&&p.expression===s)?{constructor:d,superCall:f}:void 0}function xot(t){return Id(t)&&ek(t.expression)?t:xo(t)?void 0:ro(t,xot)}var S4e,swe,dGt=o({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){or(),us(),S4e="classSuperMustPrecedeThisAccess",swe=[F.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Qo({errorCodes:swe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=Dot(u,s.start);if(!d)return;const{constructor:f,superCall:p}=d,E=nu.ChangeTracker.with(t,v=>_ot(v,u,f,p));return[zo(S4e,E,F.Make_super_call_the_first_statement_in_the_constructor,S4e,F.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[S4e],getAllCodeActions(t){const{sourceFile:u}=t,s=new Map;return h0(t,swe,(d,f)=>{const p=Dot(f.file,f.start);if(!p)return;const{constructor:E,superCall:v}=p;Pp(s,Js(E.parent))&&_ot(d,u,E,v)})}})}});function vot(t,u){const s=ba(t,u);return H.assert(dc(s.parent),"token should be at the constructor declaration"),s.parent}function Cot(t,u,s){const d=q.createExpressionStatement(q.createCallExpression(q.createSuper(),void 0,_t));t.insertNodeAtConstructorStart(u,s,d)}var B4e,lwe,hGt=o({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){or(),us(),B4e="constructorForDerivedNeedSuperCall",lwe=[F.Constructors_for_derived_classes_must_contain_a_super_call.code],Qo({errorCodes:lwe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=vot(u,s.start),f=nu.ChangeTracker.with(t,p=>Cot(p,u,d));return[zo(B4e,f,F.Add_missing_super_call,B4e,F.Add_all_missing_super_calls)]},fixIds:[B4e],getAllCodeActions:t=>h0(t,lwe,(u,s)=>Cot(u,t.sourceFile,vot(s.file,s.start)))})}});function bot(t,u){Kwe(t,u,"jsx",q.createStringLiteral("react"))}var cwe,dwe,fGt=o({"src/services/codefixes/fixEnableJsxFlag.ts"(){or(),us(),cwe="fixEnableJsxFlag",dwe=[F.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Qo({errorCodes:dwe,getCodeActions:function(u){const{configFile:s}=u.program.getCompilerOptions();if(s===void 0)return;const d=nu.ChangeTracker.with(u,f=>bot(f,s));return[xg(cwe,d,F.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[cwe],getAllCodeActions:t=>h0(t,dwe,u=>{const{configFile:s}=t.program.getCompilerOptions();s!==void 0&&bot(u,s)})})}});function yot(t,u,s){const d=Le(t.getSemanticDiagnostics(u),E=>E.start===s.start&&E.length===s.length);if(d===void 0||d.relatedInformation===void 0)return;const f=Le(d.relatedInformation,E=>E.code===F.Did_you_mean_0.code);if(f===void 0||f.file===void 0||f.start===void 0||f.length===void 0)return;const p=Gwe(f.file,c1(f.start,f.length));if(p!==void 0&&Wt(p)&&tu(p.parent))return{suggestion:mGt(f.messageText),expression:p.parent,arg:p}}function kot(t,u,s,d){const f=q.createCallExpression(q.createPropertyAccessExpression(q.createIdentifier("Number"),q.createIdentifier("isNaN")),void 0,[s]),p=d.operatorToken.kind;t.replaceNode(u,d,p===38||p===36?q.createPrefixUnaryExpression(54,f):f)}function mGt(t){const[u,s]=sE(t,` -`,0).match(/'(.*)'/)||[];return s}var w4e,hwe,pGt=o({"src/services/codefixes/fixNaNEquality.ts"(){or(),us(),w4e="fixNaNEquality",hwe=[F.This_condition_will_always_return_0.code],Qo({errorCodes:hwe,getCodeActions(t){const{sourceFile:u,span:s,program:d}=t,f=yot(d,u,s);if(f===void 0)return;const{suggestion:p,expression:E,arg:v}=f,b=nu.ChangeTracker.with(t,B=>kot(B,u,v,E));return[zo(w4e,b,[F.Use_0,p],w4e,F.Use_Number_isNaN_in_all_conditions)]},fixIds:[w4e],getAllCodeActions:t=>h0(t,hwe,(u,s)=>{const d=yot(t.program,s.file,c1(s.start,s.length));d&&kot(u,s.file,d.arg,d.expression)})})}}),gGt=o({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){or(),us(),Qo({errorCodes:[F.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,F.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,F.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(u){const s=u.program.getCompilerOptions(),{configFile:d}=s;if(d===void 0)return;const f=[],p=f1(s);if(p>=5&&p<99){const B=nu.ChangeTracker.with(u,k=>{Kwe(k,d,"module",q.createStringLiteral("esnext"))});f.push(xg("fixModuleOption",B,[F.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const v=Is(s);if(v<4||v>99){const B=nu.ChangeTracker.with(u,k=>{if(!qN(d))return;const M=[["target",q.createStringLiteral("es2017")]];p===1&&M.push(["module",q.createStringLiteral("commonjs")]),Hwe(k,d,M)});f.push(xg("fixTargetOption",B,[F.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return f.length?f:void 0}})}});function Fot(t,u,s){t.replaceNode(u,s,q.createPropertyAssignment(s.name,s.objectAssignmentInitializer))}function Aot(t,u){return Lo(ba(t,u).parent,mm)}var T4e,fwe,EGt=o({"src/services/codefixes/fixPropertyAssignment.ts"(){or(),us(),T4e="fixPropertyAssignment",fwe=[F.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],Qo({errorCodes:fwe,fixIds:[T4e],getCodeActions(t){const{sourceFile:u,span:s}=t,d=Aot(u,s.start),f=nu.ChangeTracker.with(t,p=>Fot(p,t.sourceFile,d));return[zo(T4e,f,[F.Change_0_to_1,"=",":"],T4e,[F.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:t=>h0(t,fwe,(u,s)=>Fot(u,s.file,Aot(s.file,s.start)))})}});function Sot(t,u){const s=ba(t,u),d=Zd(s).heritageClauses,f=d[0].getFirstToken();return f.kind===96?{extendsToken:f,heritageClauses:d}:void 0}function Bot(t,u,s,d){if(t.replaceNode(u,s,q.createToken(119)),d.length===2&&d[0].token===96&&d[1].token===119){const f=d[1].getFirstToken(),p=f.getFullStart();t.replaceRange(u,{pos:p,end:p},q.createToken(28));const E=u.text;let v=f.end;for(;vBot(E,u,d,f));return[zo(L4e,p,F.Change_extends_to_implements,L4e,F.Change_all_extended_interfaces_to_implements)]},fixIds:[L4e],getAllCodeActions:t=>h0(t,mwe,(u,s)=>{const d=Sot(s.file,s.start);d&&Bot(u,s.file,d.extendsToken,d.heritageClauses)})})}});function wot(t,u,s){const d=ba(t,u);if(at(d)||Xr(d))return{node:d,className:s===pwe?Zd(d).name.text:void 0}}function Tot(t,u,{node:s,className:d}){Hf(s),t.replaceNode(u,s,q.createPropertyAccessExpression(d?q.createIdentifier(d):q.createThis(),s))}var N4e,pwe,gwe,DGt=o({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){or(),us(),N4e="forgottenThisPropertyAccess",pwe=F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,gwe=[F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,F.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,pwe],Qo({errorCodes:gwe,getCodeActions(t){const{sourceFile:u}=t,s=wot(u,t.span.start,t.errorCode);if(!s)return;const d=nu.ChangeTracker.with(t,f=>Tot(f,u,s));return[zo(N4e,d,[F.Add_0_to_unresolved_variable,s.className||"this"],N4e,F.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[N4e],getAllCodeActions:t=>h0(t,gwe,(u,s)=>{const d=wot(s.file,s.start,s.code);d&&Tot(u,t.sourceFile,d)})})}});function xGt(t){return Eu(Dwe,t)}function Ewe(t,u,s,d,f){const p=s.getText()[d];if(!xGt(p))return;const E=f?Dwe[p]:`{${OM(s,u,p)}}`;t.replaceRangeWithText(s,{pos:d,end:d+1},E)}var P4e,Cee,_we,Dwe,vGt=o({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){or(),us(),P4e="fixInvalidJsxCharacters_expression",Cee="fixInvalidJsxCharacters_htmlEntity",_we=[F.Unexpected_token_Did_you_mean_or_gt.code,F.Unexpected_token_Did_you_mean_or_rbrace.code],Qo({errorCodes:_we,fixIds:[P4e,Cee],getCodeActions(t){const{sourceFile:u,preferences:s,span:d}=t,f=nu.ChangeTracker.with(t,E=>Ewe(E,s,u,d.start,!1)),p=nu.ChangeTracker.with(t,E=>Ewe(E,s,u,d.start,!0));return[zo(P4e,f,F.Wrap_invalid_character_in_an_expression_container,P4e,F.Wrap_all_invalid_characters_in_an_expression_container),zo(Cee,p,F.Convert_invalid_character_to_its_html_entity_code,Cee,F.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(t){return h0(t,_we,(u,s)=>Ewe(u,t.preferences,s.file,s.start,t.fixId===Cee))}}),Dwe={">":">","}":"}"}}});function CGt(t,{name:u,jsDocHost:s,jsDocParameterTag:d}){const f=nu.ChangeTracker.with(t,p=>p.filterJSDocTags(t.sourceFile,s,E=>E!==d));return zo(bee,f,[F.Delete_unused_param_tag_0,u.getText(t.sourceFile)],bee,F.Delete_all_unused_param_tags)}function bGt(t,{name:u,jsDocHost:s,signature:d,jsDocParameterTag:f}){if(!S(d.parameters))return;const p=t.sourceFile,E=xv(d),v=new Set;for(const T of E)pg(T)&&at(T.name)&&v.add(T.name.escapedText);const b=G(d.parameters,T=>at(T.name)&&!v.has(T.name.escapedText)?T.name.getText(p):void 0);if(b===void 0)return;const B=q.updateJSDocParameterTag(f,f.tagName,q.createIdentifier(b),f.isBracketed,f.typeExpression,f.isNameFirst,f.comment),k=nu.ChangeTracker.with(t,T=>T.replaceJSDocComment(p,s,Kt(E,M=>M===f?B:M)));return xg(xwe,k,[F.Rename_param_tag_name_0_to_1,u.getText(p),b])}function Lot(t,u){const s=ba(t,u);if(s.parent&&pg(s.parent)&&at(s.parent.name)){const d=s.parent,f=c7(d),p=bv(d);if(f&&p)return{jsDocHost:f,signature:p,name:s.parent.name,jsDocParameterTag:d}}}var bee,xwe,vwe,yGt=o({"src/services/codefixes/fixUnmatchedParameter.ts"(){or(),us(),bee="deleteUnmatchedParameter",xwe="renameUnmatchedParameter",vwe=[F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Qo({fixIds:[bee,xwe],errorCodes:vwe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=[],p=Lot(s,d.start);if(p)return Ei(f,CGt(u,p)),Ei(f,bGt(u,p)),f},getAllCodeActions:function(u){const s=new Map;return pw(nu.ChangeTracker.with(u,d=>{gw(u,vwe,({file:f,start:p})=>{const E=Lot(f,p);E&&s.set(E.signature,Ei(s.get(E.signature),E.jsDocParameterTag))}),s.forEach((f,p)=>{if(u.fixId===bee){const E=new Set(f);d.filterJSDocTags(p.getSourceFile(),p,v=>!E.has(v))}})}))}})}});function kGt(t,u,s){const d=ar(ba(t,s),at);if(!d||d.parent.kind!==183)return;const p=u.getTypeChecker().getSymbolAtLocation(d);return Le((p==null?void 0:p.declarations)||_t,lg(i_,Cf,g1))}function FGt(t,u,s,d){if(s.kind===271){t.insertModifierBefore(u,156,s.name);return}const f=s.kind===273?s:s.parent.parent;if(f.name&&f.namedBindings)return;const p=d.getTypeChecker();Cq(f,v=>{if(Q1(v.symbol,p).flags&111551)return!0})||t.insertModifierBefore(u,156,f)}function AGt(t,u,s,d){u9.doChangeNamedToNamespaceOrDefault(u,d,t,s.parent)}var M4e,Not,SGt=o({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){or(),us(),M4e="fixUnreferenceableDecoratorMetadata",Not=[F.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Qo({errorCodes:Not,getCodeActions:t=>{const u=kGt(t.sourceFile,t.program,t.span.start);if(!u)return;const s=nu.ChangeTracker.with(t,p=>u.kind===276&&AGt(p,t.sourceFile,u,t.program)),d=nu.ChangeTracker.with(t,p=>FGt(p,t.sourceFile,u,t.program));let f;return s.length&&(f=Ei(f,xg(M4e,s,F.Convert_named_imports_to_namespace_import))),d.length&&(f=Ei(f,xg(M4e,d,F.Use_import_type))),f},fixIds:[M4e]})}});function Pot(t,u,s){t.replaceNode(u,s.parent,q.createKeywordTypeNode(159))}function CK(t,u){return zo(bK,t,u,R4e,F.Delete_all_unused_declarations)}function Mot(t,u,s){t.delete(u,H.checkDefined(Lo(s.parent,x0e).typeParameters,"The type parameter to delete should exist"))}function Cwe(t){return t.kind===102||t.kind===80&&(t.parent.kind===276||t.parent.kind===273)}function zot(t){return t.kind===102?ar(t.parent,Ad):void 0}function Iot(t,u){return Fd(u.parent)&&Mn(u.parent.getChildren(t))===u}function Rot(t,u,s){t.delete(u,s.parent.kind===243?s.parent:s)}function BGt(t,u,s){L(s.elements,d=>t.delete(u,d))}function wGt(t,u,s,{parent:d}){if(ua(d)&&d.initializer&&g2(d.initializer))if(Fd(d.parent)&&S(d.parent.declarations)>1){const f=d.parent.parent,p=f.getStart(s),E=f.end;u.delete(s,d),u.insertNodeAt(s,E,d.initializer,{prefix:g5(t.host,t.formatContext.options)+s.text.slice(CX(s.text,p-1),p),suffix:qH(s)?";":""})}else u.replaceNode(s,d.parent,d.initializer);else u.delete(s,d)}function Oot(t,u,s,d){u!==F.Property_0_is_declared_but_its_value_is_never_read.code&&(d.kind===140&&(d=Lo(d.parent,L7).typeParameter.name),at(d)&&TGt(d)&&(t.replaceNode(s,d,q.createIdentifier(`_${d.text}`)),eo(d.parent)&&A8(d.parent).forEach(f=>{at(f.name)&&t.replaceNode(s,f.name,q.createIdentifier(`_${f.name.text}`))})))}function TGt(t){switch(t.parent.kind){case 169:case 168:return!0;case 260:switch(t.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function z4e(t,u,s,d,f,p,E,v){LGt(u,s,t,d,f,p,E,v),at(u)&&J0.Core.eachSymbolReferenceInFile(u,d,t,b=>{Iu(b.parent)&&b.parent.name===b&&(b=b.parent),!v&&zGt(b)&&s.delete(t,b.parent.parent)})}function LGt(t,u,s,d,f,p,E,v){const{parent:b}=t;if(eo(b))NGt(u,s,b,d,f,p,E,v);else if(!(v&&at(t)&&J0.Core.isSymbolReferencedInFile(t,d,s))){const B=i_(b)?t:Ls(b)?b.parent:b;H.assert(B!==s,"should not delete whole source file"),u.delete(s,B)}}function NGt(t,u,s,d,f,p,E,v=!1){if(PGt(d,u,s,f,p,E,v))if(s.modifiers&&s.modifiers.length>0&&(!at(s.name)||J0.Core.isSymbolReferencedInFile(s.name,d,u)))for(const b of s.modifiers)Yo(b)&&t.deleteModifier(u,b);else!s.initializer&&jot(s,d,f)&&t.delete(u,s)}function jot(t,u,s){const d=t.parent.parameters.indexOf(t);return!J0.Core.someSignatureUsage(t.parent,s,u,(f,p)=>!p||p.arguments.length>d)}function PGt(t,u,s,d,f,p,E){const{parent:v}=s;switch(v.kind){case 174:case 176:const b=v.parameters.indexOf(s),B=cc(v)?v.name:v,k=J0.Core.getReferencedSymbolsForNode(v.pos,B,f,d,p);if(k){for(const T of k)for(const M of T.references)if(M.kind===J0.EntryKind.Node){const z=VP(M.node)&&No(M.node.parent)&&M.node.parent.arguments.length>b,j=Iu(M.node.parent)&&VP(M.node.parent.expression)&&No(M.node.parent.parent)&&M.node.parent.parent.arguments.length>b,J=(cc(M.node.parent)||i3(M.node.parent))&&M.node.parent!==s.parent&&M.node.parent.parameters.length>b;if(z||j||J)return!1}}return!0;case 262:return v.name&&MGt(t,u,v.name)?Vot(v,s,E):!0;case 218:case 219:return Vot(v,s,E);case 178:return!1;case 177:return!0;default:return H.failBadSyntaxKind(v)}}function MGt(t,u,s){return!!J0.Core.eachSymbolReferenceInFile(s,t,u,d=>at(d)&&No(d.parent)&&d.parent.arguments.includes(d))}function Vot(t,u,s){const d=t.parameters,f=d.indexOf(u);return H.assert(f!==-1,"The parameter should already be in the list"),s?d.slice(f+1).every(p=>at(p.name)&&!p.symbol.isReferenced):f===d.length-1}function zGt(t){return(tu(t.parent)&&t.parent.left===t||(xce(t.parent)||Pv(t.parent))&&t.parent.operand===t)&&Id(t.parent.parent)}var bK,I4e,R4e,yee,O4e,bwe,IGt=o({"src/services/codefixes/fixUnusedIdentifier.ts"(){or(),us(),bK="unusedIdentifier",I4e="unusedIdentifier_prefix",R4e="unusedIdentifier_delete",yee="unusedIdentifier_deleteImports",O4e="unusedIdentifier_infer",bwe=[F._0_is_declared_but_its_value_is_never_read.code,F._0_is_declared_but_never_used.code,F.Property_0_is_declared_but_its_value_is_never_read.code,F.All_imports_in_import_declaration_are_unused.code,F.All_destructured_elements_are_unused.code,F.All_variables_are_unused.code,F.All_type_parameters_are_unused.code],Qo({errorCodes:bwe,getCodeActions(t){const{errorCode:u,sourceFile:s,program:d,cancellationToken:f}=t,p=d.getTypeChecker(),E=d.getSourceFiles(),v=ba(s,t.span.start);if(gg(v))return[CK(nu.ChangeTracker.with(t,T=>T.delete(s,v)),F.Remove_template_tag)];if(v.kind===30){const T=nu.ChangeTracker.with(t,M=>Mot(M,s,v));return[CK(T,F.Remove_type_parameters)]}const b=zot(v);if(b){const T=nu.ChangeTracker.with(t,M=>M.delete(s,b));return[zo(bK,T,[F.Remove_import_from_0,Gye(b)],yee,F.Delete_all_unused_imports)]}else if(Cwe(v)){const T=nu.ChangeTracker.with(t,M=>z4e(s,v,M,p,E,d,f,!1));if(T.length)return[zo(bK,T,[F.Remove_unused_declaration_for_Colon_0,v.getText(s)],yee,F.Delete_all_unused_imports)]}if(Mp(v.parent)||gk(v.parent)){if(eo(v.parent.parent)){const T=v.parent.elements,M=[T.length>1?F.Remove_unused_declarations_for_Colon_0:F.Remove_unused_declaration_for_Colon_0,Kt(T,z=>z.getText(s)).join(", ")];return[CK(nu.ChangeTracker.with(t,z=>BGt(z,s,v.parent)),M)]}return[CK(nu.ChangeTracker.with(t,T=>wGt(t,T,s,v.parent)),F.Remove_unused_destructuring_declaration)]}if(Iot(s,v))return[CK(nu.ChangeTracker.with(t,T=>Rot(T,s,v.parent)),F.Remove_variable_statement)];const B=[];if(v.kind===140){const T=nu.ChangeTracker.with(t,z=>Pot(z,s,v)),M=Lo(v.parent,L7).typeParameter.name.text;B.push(zo(bK,T,[F.Replace_infer_0_with_unknown,M],O4e,F.Replace_all_unused_infer_with_unknown))}else{const T=nu.ChangeTracker.with(t,M=>z4e(s,v,M,p,E,d,f,!1));if(T.length){const M=Ls(v.parent)?v.parent:v;B.push(CK(T,[F.Remove_unused_declaration_for_Colon_0,M.getText(s)]))}}const k=nu.ChangeTracker.with(t,T=>Oot(T,u,s,v));return k.length&&B.push(zo(bK,k,[F.Prefix_0_with_an_underscore,v.getText(s)],I4e,F.Prefix_all_unused_declarations_with_where_possible)),B},fixIds:[I4e,R4e,yee,O4e],getAllCodeActions:t=>{const{sourceFile:u,program:s,cancellationToken:d}=t,f=s.getTypeChecker(),p=s.getSourceFiles();return h0(t,bwe,(E,v)=>{const b=ba(u,v.start);switch(t.fixId){case I4e:Oot(E,v.code,u,b);break;case yee:{const B=zot(b);B?E.delete(u,B):Cwe(b)&&z4e(u,b,E,f,p,s,d,!0);break}case R4e:{if(b.kind===140||Cwe(b))break;if(gg(b))E.delete(u,b);else if(b.kind===30)Mot(E,u,b);else if(Mp(b.parent)){if(b.parent.parent.initializer)break;(!eo(b.parent.parent)||jot(b.parent.parent,f,p))&&E.delete(u,b.parent.parent)}else{if(gk(b.parent.parent)&&b.parent.parent.parent.initializer)break;Iot(u,b)?Rot(E,u,b.parent):z4e(u,b,E,f,p,s,d,!0)}break}case O4e:b.kind===140&&Pot(E,u,b);break;default:H.fail(JSON.stringify(t.fixId))}})}})}});function Hot(t,u,s,d,f){const p=ba(u,s),E=Ln(p,na);if(E.getStart(u)!==p.getStart(u)){const b=JSON.stringify({statementKind:H.formatSyntaxKind(E.kind),tokenKind:H.formatSyntaxKind(p.kind),errorCode:f,start:s,length:d});H.fail("Token and statement should start at the same point. "+b)}const v=(fo(E.parent)?E.parent:E).parent;if(!fo(E.parent)||E===Mn(E.parent.statements))switch(v.kind){case 245:if(v.elseStatement){if(fo(E.parent))break;t.replaceNode(u,E,q.createBlock(_t));return}case 247:case 248:t.delete(u,v);return}if(fo(E.parent)){const b=s+d,B=H.checkDefined(RGt(Ble(E.parent.statements,E),k=>k.posHot(d,t.sourceFile,t.span.start,t.span.length,t.errorCode));return[zo(j4e,s,F.Remove_unreachable_code,j4e,F.Remove_all_unreachable_code)]},fixIds:[j4e],getAllCodeActions:t=>h0(t,ywe,(u,s)=>Hot(u,s.file,s.start,s.length,s.code))})}});function Kot(t,u,s){const d=ba(u,s),f=Lo(d.parent,R2),p=d.getStart(u),E=f.statement.getStart(u),v=$4(p,E,u)?E:ms(u.text,r0(f,59,u).end,!0);t.deleteRange(u,{pos:p,end:v})}var V4e,kwe,jGt=o({"src/services/codefixes/fixUnusedLabel.ts"(){or(),us(),V4e="fixUnusedLabel",kwe=[F.Unused_label.code],Qo({errorCodes:kwe,getCodeActions(t){const u=nu.ChangeTracker.with(t,s=>Kot(s,t.sourceFile,t.span.start));return[zo(V4e,u,F.Remove_unused_label,V4e,F.Remove_all_unused_labels)]},fixIds:[V4e],getAllCodeActions:t=>h0(t,kwe,(u,s)=>Kot(u,s.file,s.start))})}});function Wot(t,u,s,d,f){t.replaceNode(u,s,f.typeToTypeNode(d,s,void 0))}function Got(t,u,s){const d=Ln(ba(t,u),VGt),f=d&&d.type;return f&&{typeNode:f,type:HGt(s,f)}}function VGt(t){switch(t.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function HGt(t,u){if(SB(u)){const s=t.getTypeFromTypeNode(u.type);return s===t.getNeverType()||s===t.getVoidType()?s:t.getUnionType(Ei([s,t.getUndefinedType()],u.postfix?void 0:t.getNullType()))}return t.getTypeFromTypeNode(u)}var Fwe,H4e,Awe,KGt=o({"src/services/codefixes/fixJSDocTypes.ts"(){or(),us(),Fwe="fixJSDocTypes_plain",H4e="fixJSDocTypes_nullable",Awe=[F.JSDoc_types_can_only_be_used_inside_documentation_comments.code,F._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,F._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Qo({errorCodes:Awe,getCodeActions(t){const{sourceFile:u}=t,s=t.program.getTypeChecker(),d=Got(u,t.span.start,s);if(!d)return;const{typeNode:f,type:p}=d,E=f.getText(u),v=[b(p,Fwe,F.Change_all_jsdoc_style_types_to_TypeScript)];return f.kind===321&&v.push(b(p,H4e,F.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),v;function b(B,k,T){const M=nu.ChangeTracker.with(t,z=>Wot(z,u,f,B,s));return zo("jdocTypes",M,[F.Change_0_to_1,E,s.typeToString(B)],k,T)}},fixIds:[Fwe,H4e],getAllCodeActions(t){const{fixId:u,program:s,sourceFile:d}=t,f=s.getTypeChecker();return h0(t,Awe,(p,E)=>{const v=Got(E.file,E.start,f);if(!v)return;const{typeNode:b,type:B}=v,k=b.kind===321&&u===H4e?f.getNullableType(B,32768):B;Wot(p,d,b,k,f)})}})}});function Jot(t,u,s){t.replaceNodeWithText(u,s,`${s.text}()`)}function $ot(t,u){const s=ba(t,u);if(Iu(s.parent)){let d=s.parent;for(;Iu(d.parent);)d=d.parent;return d.name}if(at(s))return s}var K4e,Swe,WGt=o({"src/services/codefixes/fixMissingCallParentheses.ts"(){or(),us(),K4e="fixMissingCallParentheses",Swe=[F.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Qo({errorCodes:Swe,fixIds:[K4e],getCodeActions(t){const{sourceFile:u,span:s}=t,d=$ot(u,s.start);if(!d)return;const f=nu.ChangeTracker.with(t,p=>Jot(p,t.sourceFile,d));return[zo(K4e,f,F.Add_missing_call_parentheses,K4e,F.Add_all_missing_call_parentheses)]},getAllCodeActions:t=>h0(t,Swe,(u,s)=>{const d=$ot(s.file,s.start);d&&Jot(u,s.file,d)})})}});function GGt(t){if(t.type)return t.type;if(ua(t.parent)&&t.parent.type&&n3(t.parent.type))return t.parent.type.type}function Uot(t,u){const s=ba(t,u),d=Lm(s);if(!d)return;let f;switch(d.kind){case 174:f=d.name;break;case 262:case 218:f=r0(d,100,t);break;case 219:const p=d.typeParameters?30:21;f=r0(d,p,t)||Mn(d.parameters);break;default:return}return f&&{insertBefore:f,returnType:GGt(d)}}function qot(t,u,{insertBefore:s,returnType:d}){if(d){const f=fj(d);(!f||f.kind!==80||f.text!=="Promise")&&t.replaceNode(u,d,q.createTypeReferenceNode("Promise",q.createNodeArray([d])))}t.insertModifierBefore(u,134,s)}var W4e,Bwe,JGt=o({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){or(),us(),W4e="fixAwaitInSyncFunction",Bwe=[F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Qo({errorCodes:Bwe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=Uot(u,s.start);if(!d)return;const f=nu.ChangeTracker.with(t,p=>qot(p,u,d));return[zo(W4e,f,F.Add_async_modifier_to_containing_function,W4e,F.Add_all_missing_async_modifiers)]},fixIds:[W4e],getAllCodeActions:function(u){const s=new Map;return h0(u,Bwe,(d,f)=>{const p=Uot(f.file,f.start);!p||!Pp(s,Js(p.insertBefore))||qot(d,u.sourceFile,p)})}})}});function Zot(t,u,s,d,f){let p,E;if(d===F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)p=u,E=u+s;else if(d===F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const v=f.program.getTypeChecker(),b=ba(t,u).parent;H.assert(Bx(b),"error span of fixPropertyOverrideAccessor should only be on an accessor");const B=b.parent;H.assert(gr(B),"erroneous accessors should only be inside classes");const k=Aa($we(B,v));if(!k)return[];const T=Yr(O8(b.name)),M=v.getPropertyOfType(v.getTypeAtLocation(k),T);if(!M||!M.valueDeclaration)return[];p=M.valueDeclaration.pos,E=M.valueDeclaration.end,t=In(M.valueDeclaration)}else H.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+d);return dst(t,f.program,p,E,f,F.Generate_get_and_set_accessors.message)}var wwe,G4e,$Gt=o({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){or(),us(),wwe=[F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],G4e="fixPropertyOverrideAccessor",Qo({errorCodes:wwe,getCodeActions(t){const u=Zot(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(u)return[zo(G4e,u,F.Generate_get_and_set_accessors,G4e,F.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[G4e],getAllCodeActions:t=>h0(t,wwe,(u,s)=>{const d=Zot(s.file,s.start,s.length,s.code,t);if(d)for(const f of d)u.pushRaw(t.sourceFile,f)})})}});function UGt(t,u){switch(t){case F.Parameter_0_implicitly_has_an_1_type.code:case F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return Of(Lm(u))?F.Infer_type_of_0_from_usage:F.Infer_parameter_types_from_usage;case F.Rest_parameter_0_implicitly_has_an_any_type.code:case F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Infer_parameter_types_from_usage;case F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return F.Infer_this_type_of_0_from_usage;default:return F.Infer_type_of_0_from_usage}}function qGt(t){switch(t){case F.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Variable_0_implicitly_has_an_1_type.code;case F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Parameter_0_implicitly_has_an_1_type.code;case F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Rest_parameter_0_implicitly_has_an_any_type.code;case F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Member_0_implicitly_has_an_1_type.code}return t}function Yot(t,u,s,d,f,p,E,v,b){if(!jN(s.kind)&&s.kind!==80&&s.kind!==26&&s.kind!==110)return;const{parent:B}=s,k=o9(u,f,b,v);switch(d=qGt(d),d){case F.Member_0_implicitly_has_an_1_type.code:case F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(ua(B)&&E(B)||bo(B)||Pm(B))return Qot(t,k,u,B,f,v,p),k.writeFixes(t),B;if(Iu(B)){const z=yK(B.name,f,p),j=jM(z,B,f,v);if(j){const J=q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(j),void 0);t.addJSDocTags(u,Lo(B.parent.parent,Id),[J])}return k.writeFixes(t),B}return;case F.Variable_0_implicitly_has_an_1_type.code:{const z=f.getTypeChecker().getSymbolAtLocation(s);return z&&z.valueDeclaration&&ua(z.valueDeclaration)&&E(z.valueDeclaration)?(Qot(t,k,In(z.valueDeclaration),z.valueDeclaration,f,v,p),k.writeFixes(t),z.valueDeclaration):void 0}}const T=Lm(s);if(T===void 0)return;let M;switch(d){case F.Parameter_0_implicitly_has_an_1_type.code:if(Of(T)){Xot(t,k,u,T,f,v,p),M=T;break}case F.Rest_parameter_0_implicitly_has_an_any_type.code:if(E(T)){const z=Lo(B,eo);ZGt(t,k,u,z,T,f,v,p),M=z}break;case F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Mm(T)&&at(T.name)&&(J4e(t,k,u,T,yK(T.name,f,p),f,v),M=T);break;case F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:Of(T)&&(Xot(t,k,u,T,f,v,p),M=T);break;case F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:nu.isThisTypeAnnotatable(T)&&E(T)&&(YGt(t,u,T,f,v,p),M=T);break;default:return H.fail(String(d))}return k.writeFixes(t),M}function Qot(t,u,s,d,f,p,E){at(d.name)&&J4e(t,u,s,d,yK(d.name,f,E),f,p)}function ZGt(t,u,s,d,f,p,E,v){if(!at(d.name))return;const b=eJt(f,s,p,v);if(H.assert(f.parameters.length===b.length,"Parameter count and inference count should match"),eu(f))est(t,s,b,p,E);else{const B=G0(f)&&!r0(f,21,s);B&&t.insertNodeBefore(s,Mn(f.parameters),q.createToken(21));for(const{declaration:k,type:T}of b)k&&!k.type&&!k.initializer&&J4e(t,u,s,k,T,p,E);B&&t.insertNodeAfter(s,Cr(f.parameters),q.createToken(22))}}function YGt(t,u,s,d,f,p){const E=tst(s,u,d,p);if(!E||!E.length)return;const v=Lwe(d,E,p).thisParameter(),b=jM(v,s,d,f);b&&(eu(s)?QGt(t,u,s,b):t.tryInsertThisTypeAnnotation(u,s,b))}function QGt(t,u,s,d){t.addJSDocTags(u,s,[q.createJSDocThisTag(void 0,q.createJSDocTypeExpression(d))])}function Xot(t,u,s,d,f,p,E){const v=Hi(d.parameters);if(v&&at(d.name)&&at(v.name)){let b=yK(d.name,f,E);b===f.getTypeChecker().getAnyType()&&(b=yK(v.name,f,E)),eu(d)?est(t,s,[{declaration:v,type:b}],f,p):J4e(t,u,s,v,b,f,p)}}function J4e(t,u,s,d,f,p,E){const v=jM(f,d,p,E);if(v)if(eu(s)&&d.kind!==171){const b=ua(d)?ar(d.parent.parent,Gl):d;if(!b)return;const B=q.createJSDocTypeExpression(v),k=Mm(d)?q.createJSDocReturnTag(void 0,B,void 0):q.createJSDocTypeTag(void 0,B,void 0);t.addJSDocTags(s,b,[k])}else XGt(v,d,s,t,u,Is(p.getCompilerOptions()))||t.tryInsertTypeAnnotation(s,d,v)}function XGt(t,u,s,d,f,p){const E=l9(t,p);return E&&d.tryInsertTypeAnnotation(s,u,E.typeNode)?(L(E.symbols,v=>f.addImportFromExportedSymbol(v,!0)),!0):!1}function est(t,u,s,d,f){const p=s.length&&s[0].declaration.parent;if(!p)return;const E=Ui(s,v=>{const b=v.declaration;if(b.initializer||Dv(b)||!at(b.name))return;const B=v.type&&jM(v.type,b,d,f);if(B){const k=q.cloneNode(b.name);return Qn(k,7168),{name:q.cloneNode(b.name),param:b,isOptional:!!v.isOptional,typeNode:B}}});if(E.length)if(G0(p)||F0(p)){const v=G0(p)&&!r0(p,21,u);v&&t.insertNodeBefore(u,Mn(p.parameters),q.createToken(21)),L(E,({typeNode:b,param:B})=>{const k=q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(b)),T=q.createJSDocComment(void 0,[k]);t.insertNodeAt(u,B.getStart(u),T,{suffix:" "})}),v&&t.insertNodeAfter(u,Cr(p.parameters),q.createToken(22))}else{const v=Kt(E,({name:b,typeNode:B,isOptional:k})=>q.createJSDocParameterTag(void 0,b,!!k,q.createJSDocTypeExpression(B),!1,void 0));t.addJSDocTags(u,p,v)}}function Twe(t,u,s){return Ui(J0.getReferenceEntriesForNode(-1,t,u,u.getSourceFiles(),s),d=>d.kind!==J0.EntryKind.Span?ar(d.node,at):void 0)}function yK(t,u,s){const d=Twe(t,u,s);return Lwe(u,d,s).single()}function eJt(t,u,s,d){const f=tst(t,u,s,d);return f&&Lwe(s,f,d).parameters(t)||t.parameters.map(p=>({declaration:p,type:at(p.name)?yK(p.name,s,d):s.getTypeChecker().getAnyType()}))}function tst(t,u,s,d){let f;switch(t.kind){case 176:f=r0(t,137,u);break;case 219:case 218:const p=t.parent;f=(ua(p)||bo(p))&&at(p.name)?p.name:t.name;break;case 262:case 174:case 173:f=t.name;break}if(f)return Twe(f,s,d)}function Lwe(t,u,s){const d=t.getTypeChecker(),f={string:()=>d.getStringType(),number:()=>d.getNumberType(),Array:je=>d.createArrayType(je),Promise:je=>d.createPromiseType(je)},p=[d.getStringType(),d.getNumberType(),d.createArrayType(d.getAnyType()),d.createPromiseType(d.getAnyType())];return{single:b,parameters:B,thisParameter:k};function E(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function v(je){const Ke=new Map;for(const Yt of je)Yt.properties&&Yt.properties.forEach((Ie,st)=>{Ke.has(st)||Ke.set(st,[]),Ke.get(st).push(Ie)});const Gt=new Map;return Ke.forEach((Yt,Ie)=>{Gt.set(Ie,v(Yt))}),{isNumber:je.some(Yt=>Yt.isNumber),isString:je.some(Yt=>Yt.isString),isNumberOrString:je.some(Yt=>Yt.isNumberOrString),candidateTypes:Ku(je,Yt=>Yt.candidateTypes),properties:Gt,calls:Ku(je,Yt=>Yt.calls),constructs:Ku(je,Yt=>Yt.constructs),numberIndex:L(je,Yt=>Yt.numberIndex),stringIndex:L(je,Yt=>Yt.stringIndex),candidateThisTypes:Ku(je,Yt=>Yt.candidateThisTypes),inferredTypes:void 0}}function b(){return Se(T(u))}function B(je){if(u.length===0||!je.parameters)return;const Ke=E();for(const Yt of u)s.throwIfCancellationRequested(),M(Yt,Ke);const Gt=[...Ke.constructs||[],...Ke.calls||[]];return je.parameters.map((Yt,Ie)=>{const st=[],St=J_(Yt);let It=!1;for(const ht of Gt)if(ht.argumentTypes.length<=Ie)It=eu(je),st.push(d.getUndefinedType());else if(St)for(let Ut=Ie;UtGt.every(Ie=>!Ie(Yt)))}function ve(je){return Se(pe(je))}function Se(je){if(!je.length)return d.getAnyType();const Ke=d.getUnionType([d.getStringType(),d.getNumberType()]);let Yt=ne(je,[{high:st=>st===d.getStringType()||st===d.getNumberType(),low:st=>st===Ke},{high:st=>!(st.flags&16385),low:st=>!!(st.flags&16385)},{high:st=>!(st.flags&114689)&&!($u(st)&16),low:st=>!!($u(st)&16)}]);const Ie=Yt.filter(st=>$u(st)&16);return Ie.length&&(Yt=Yt.filter(st=>!($u(st)&16)),Yt.push(Ne(Ie))),d.getWidenedType(d.getUnionType(Yt.map(d.getBaseTypeOfLiteralType),2))}function Ne(je){if(je.length===1)return je[0];const Ke=[],Gt=[],Yt=[],Ie=[];let st=!1,St=!1;const It=Bm();for(const Ut of je){for(const xn of d.getPropertiesOfType(Ut))It.add(xn.escapedName,xn.valueDeclaration?d.getTypeOfSymbolAtLocation(xn,xn.valueDeclaration):d.getAnyType());Ke.push(...d.getSignaturesOfType(Ut,0)),Gt.push(...d.getSignaturesOfType(Ut,1));const Li=d.getIndexInfoOfType(Ut,0);Li&&(Yt.push(Li.type),st=st||Li.isReadonly);const ji=d.getIndexInfoOfType(Ut,1);ji&&(Ie.push(ji.type),St=St||ji.isReadonly)}const ti=ki(It,(Ut,Li)=>{const ji=Li.lengthd.getBaseTypeOfLiteralType(It)),St=(Yt=je.calls)!=null&&Yt.length?fe(je):void 0;return St&&st?Ie.push(d.getUnionType([St,...st],2)):(St&&Ie.push(St),S(st)&&Ie.push(...st)),Ie.push(...xe(je)),Ie}function fe(je){const Ke=new Map;je.properties&&je.properties.forEach((st,St)=>{const It=d.createSymbol(4,St);It.links.type=ve(st),Ke.set(St,It)});const Gt=je.calls?[Ge(je.calls)]:[],Yt=je.constructs?[Ge(je.constructs)]:[],Ie=je.stringIndex?[d.createIndexInfo(d.getStringType(),ve(je.stringIndex),!1)]:[];return d.createAnonymousType(void 0,Ke,Gt,Yt,Ie)}function xe(je){if(!je.properties||!je.properties.size)return[];const Ke=p.filter(Gt=>Be(Gt,je));return 0We(Gt,je)):[]}function Be(je,Ke){return Ke.properties?!d1(Ke.properties,(Gt,Yt)=>{const Ie=d.getTypeOfPropertyOfType(je,Yt);return Ie?Gt.calls?!d.getSignaturesOfType(Ie,0).length||!d.isTypeAssignableTo(Ie,He(Gt.calls)):!d.isTypeAssignableTo(Ie,ve(Gt)):!0}):!1}function We(je,Ke){if(!($u(je)&4)||!Ke.properties)return je;const Gt=je.target,Yt=Aa(Gt.typeParameters);if(!Yt)return je;const Ie=[];return Ke.properties.forEach((st,St)=>{const It=d.getTypeOfPropertyOfType(Gt,St);H.assert(!!It,"generic should have all the properties of its reference."),Ie.push(...Ae(It,ve(st),Yt))}),f[je.symbol.escapedName](Se(Ie))}function Ae(je,Ke,Gt){if(je===Gt)return[Ke];if(je.flags&3145728)return Ku(je.types,st=>Ae(st,Ke,Gt));if($u(je)&4&&$u(Ke)&4){const st=d.getTypeArguments(je),St=d.getTypeArguments(Ke),It=[];if(st&&St)for(let ti=0;tiIe.argumentTypes.length));for(let Ie=0;IeSt.argumentTypes[Ie]||d.getUndefinedType())),je.some(St=>St.argumentTypes[Ie]===void 0)&&(st.flags|=16777216),Ke.push(st)}const Yt=ve(v(je.map(Ie=>Ie.return_)));return d.createSignature(void 0,void 0,void 0,Ke,Yt,void 0,Gt,0)}function ft(je,Ke){Ke&&!(Ke.flags&1)&&!(Ke.flags&131072)&&(je.candidateTypes||(je.candidateTypes=[])).push(Ke)}function Ze(je,Ke){Ke&&!(Ke.flags&1)&&!(Ke.flags&131072)&&(je.candidateThisTypes||(je.candidateThisTypes=[])).push(Ke)}}var $4e,Nwe,tJt=o({"src/services/codefixes/inferFromUsage.ts"(){or(),us(),$4e="inferFromUsage",Nwe=[F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,F.Variable_0_implicitly_has_an_1_type.code,F.Parameter_0_implicitly_has_an_1_type.code,F.Rest_parameter_0_implicitly_has_an_any_type.code,F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,F.Member_0_implicitly_has_an_1_type.code,F.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Qo({errorCodes:Nwe,getCodeActions(t){const{sourceFile:u,program:s,span:{start:d},errorCode:f,cancellationToken:p,host:E,preferences:v}=t,b=ba(u,d);let B;const k=nu.ChangeTracker.with(t,M=>{B=Yot(M,u,b,f,s,p,G3,E,v)}),T=B&&qa(B);return!T||k.length===0?void 0:[zo($4e,k,[UGt(f,b),Vc(T)],$4e,F.Infer_all_types_from_usage)]},fixIds:[$4e],getAllCodeActions(t){const{sourceFile:u,program:s,cancellationToken:d,host:f,preferences:p}=t,E=e9();return h0(t,Nwe,(v,b)=>{Yot(v,u,ba(b.file,b.start),b.code,s,d,E,f,p)})}})}});function ist(t,u,s){if(eu(t))return;const d=ba(t,s),f=Ln(d,K0),p=f==null?void 0:f.type;if(!p)return;const E=u.getTypeFromTypeNode(p),v=u.getAwaitedType(E)||u.getVoidType(),b=u.typeToTypeNode(v,p,void 0);if(b)return{returnTypeNode:p,returnType:E,promisedTypeNode:b,promisedType:v}}function nst(t,u,s,d){t.replaceNode(u,s,q.createTypeReferenceNode("Promise",[d]))}var U4e,Pwe,iJt=o({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){or(),us(),U4e="fixReturnTypeInAsyncFunction",Pwe=[F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Qo({errorCodes:Pwe,fixIds:[U4e],getCodeActions:function(u){const{sourceFile:s,program:d,span:f}=u,p=d.getTypeChecker(),E=ist(s,d.getTypeChecker(),f.start);if(!E)return;const{returnTypeNode:v,returnType:b,promisedTypeNode:B,promisedType:k}=E,T=nu.ChangeTracker.with(u,M=>nst(M,s,v,B));return[zo(U4e,T,[F.Replace_0_with_Promise_1,p.typeToString(b),p.typeToString(k)],U4e,F.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:t=>h0(t,Pwe,(u,s)=>{const d=ist(s.file,t.program.getTypeChecker(),s.start);d&&nst(u,s.file,d.returnTypeNode,d.promisedTypeNode)})})}});function ust(t,u,s,d){const{line:f}=o0(u,s);(!d||Ll(d,f))&&t.insertCommentBeforeLine(u,f,s," @ts-ignore")}var Mwe,zwe,Iwe,nJt=o({"src/services/codefixes/disableJsDiagnostics.ts"(){or(),us(),Mwe="disableJsDiagnostics",zwe="disableJsDiagnostics",Iwe=Ui(Object.keys(F),t=>{const u=F[t];return u.category===1?u.code:void 0}),Qo({errorCodes:Iwe,getCodeActions:function(u){const{sourceFile:s,program:d,span:f,host:p,formatContext:E}=u;if(!eu(s)||!iV(s,d.getCompilerOptions()))return;const v=s.checkJsDirective?"":g5(p,E.options),b=[xg(Mwe,[crt(s.fileName,[OH(s.checkJsDirective?jc(s.checkJsDirective.pos,s.checkJsDirective.end):c1(0,0),`// @ts-nocheck${v}`)])],F.Disable_checking_for_this_file)];return nu.isValidLocationToAddComment(s,f.start)&&b.unshift(zo(Mwe,nu.ChangeTracker.with(u,B=>ust(B,s,f.start)),F.Ignore_this_error_message,zwe,F.Add_ts_ignore_to_all_error_messages)),b},fixIds:[zwe],getAllCodeActions:t=>{const u=new Set;return h0(t,Iwe,(s,d)=>{nu.isValidLocationToAddComment(d.file,d.start)&&ust(s,d.file,d.start,u)})}})}});function Rwe(t,u,s,d,f,p,E){const v=t.symbol.members;for(const b of u)v.has(b.escapedName)||rst(b,t,s,d,f,p,E,void 0)}function _w(t){return{trackSymbol:()=>!1,moduleResolverHost:ufe(t.program,t.host)}}function rst(t,u,s,d,f,p,E,v,b=3,B=!1){const k=t.getDeclarations(),T=Hi(k),M=d.program.getTypeChecker(),z=Is(d.program.getCompilerOptions()),j=(T==null?void 0:T.kind)??171,J=xe(t,T),K=T?gh(T):0;let Y=K&256;Y|=K&1?1:K&4?4:0,T&&Xh(T)&&(Y|=512);const oe=ve(),se=M.getWidenedType(M.getTypeOfSymbolAtLocation(t,u)),ge=!!(t.flags&16777216),ae=!!(u.flags&33554432)||B,Ce=Vm(s,f);switch(j){case 171:case 172:const Be=Ce===0?268435456:void 0;let We=M.typeToTypeNode(se,u,Be,_w(d));if(p){const De=l9(We,z);De&&(We=De.typeNode,Dw(p,De.symbols))}E(q.createPropertyDeclaration(oe,T?Ne(J):t.getName(),ge&&b&2?q.createToken(58):void 0,We,void 0));break;case 177:case 178:{H.assertIsDefined(k);let De=M.typeToTypeNode(se,u,void 0,_w(d));const He=lk(k,T),Ge=He.secondAccessor?[He.firstAccessor,He.secondAccessor]:[He.firstAccessor];if(p){const ft=l9(De,z);ft&&(De=ft.typeNode,Dw(p,ft.symbols))}for(const ft of Ge)if(Mm(ft))E(q.createGetAccessorDeclaration(oe,Ne(J),_t,fe(De),pe(v,Ce,ae)));else{H.assertNode(ft,Of,"The counterpart to a getter should be a setter");const Ze=dP(ft),je=Ze&&at(Ze.name)?mu(Ze.name):void 0;E(q.createSetAccessorDeclaration(oe,Ne(J),jwe(1,[je],[fe(De)],1,!1),pe(v,Ce,ae)))}break}case 173:case 174:H.assertIsDefined(k);const Ae=se.isUnion()?Ku(se.types,De=>De.getCallSignatures()):se.getCallSignatures();if(!qe(Ae))break;if(k.length===1){H.assert(Ae.length===1,"One declaration implies one signature");const De=Ae[0];ne(Ce,De,oe,Ne(J),pe(v,Ce,ae));break}for(const De of Ae)ne(Ce,De,oe,Ne(J));if(!ae)if(k.length>Ae.length){const De=M.getSignatureFromDeclaration(k[k.length-1]);ne(Ce,De,oe,Ne(J),pe(v,Ce))}else H.assert(k.length===Ae.length,"Declarations and signatures should match count"),E(aJt(M,d,u,Ae,Ne(J),ge&&!!(b&1),oe,Ce,v));break}function ne(Be,We,Ae,De,He){const Ge=q4e(174,d,Be,We,He,De,Ae,ge&&!!(b&1),u,p);Ge&&E(Ge)}function ve(){let Be;return Y&&(Be=Do(Be,q.createModifiersFromModifierFlags(Y))),Se()&&(Be=Ei(Be,q.createToken(164))),Be&&q.createNodeArray(Be)}function Se(){return!!(d.program.getCompilerOptions().noImplicitOverride&&T&&T2(T))}function Ne(Be){return at(Be)&&Be.escapedText==="constructor"?q.createComputedPropertyName(q.createStringLiteral(mu(Be),Ce===0)):ol(Be,!1)}function pe(Be,We,Ae){return Ae?void 0:ol(Be,!1)||Vwe(We)}function fe(Be){return ol(Be,!1)}function xe(Be,We){if(Wl(Be)&262144){const Ae=Be.links.nameType;if(Ae&&q4(Ae))return q.createIdentifier(Yr(Z4(Ae)))}return ol(qa(We),!1)}}function q4e(t,u,s,d,f,p,E,v,b,B){const k=u.program,T=k.getTypeChecker(),M=Is(k.getCompilerOptions()),z=eu(b),j=524545|(s===0?268435456:0),J=T.signatureToSignatureDeclaration(d,t,b,j,_w(u));if(!J)return;let K=z?void 0:J.typeParameters,Y=J.parameters,oe=z?void 0:J.type;if(B){if(K){const Ce=Mu(K,ne=>{let ve=ne.constraint,Se=ne.default;if(ve){const Ne=l9(ve,M);Ne&&(ve=Ne.typeNode,Dw(B,Ne.symbols))}if(Se){const Ne=l9(Se,M);Ne&&(Se=Ne.typeNode,Dw(B,Ne.symbols))}return q.updateTypeParameterDeclaration(ne,ne.modifiers,ne.name,ve,Se)});K!==Ce&&(K=Pt(q.createNodeArray(Ce,K.hasTrailingComma),K))}const ae=Mu(Y,Ce=>{let ne=z?void 0:Ce.type;if(ne){const ve=l9(ne,M);ve&&(ne=ve.typeNode,Dw(B,ve.symbols))}return q.updateParameterDeclaration(Ce,Ce.modifiers,Ce.dotDotDotToken,Ce.name,z?void 0:Ce.questionToken,ne,Ce.initializer)});if(Y!==ae&&(Y=Pt(q.createNodeArray(ae,Y.hasTrailingComma),Y)),oe){const Ce=l9(oe,M);Ce&&(oe=Ce.typeNode,Dw(B,Ce.symbols))}}const se=v?q.createToken(58):void 0,ge=J.asteriskToken;if(F0(J))return q.updateFunctionExpression(J,E,J.asteriskToken,ar(p,at),K,Y,oe,f??J.body);if(G0(J))return q.updateArrowFunction(J,E,K,Y,oe,J.equalsGreaterThanToken,f??J.body);if(cc(J))return q.updateMethodDeclaration(J,E,ge,p??q.createIdentifier(""),se,K,Y,oe,f);if(Xc(J))return q.updateFunctionDeclaration(J,E,J.asteriskToken,ar(p,at),K,Y,oe,f??J.body)}function Owe(t,u,s,d,f,p,E){const v=Vm(u.sourceFile,u.preferences),b=Is(u.program.getCompilerOptions()),B=_w(u),k=u.program.getTypeChecker(),T=eu(E),{typeArguments:M,arguments:z,parent:j}=d,J=T?void 0:k.getContextualType(d),K=Kt(z,Se=>at(Se)?Se.text:Iu(Se)&&at(Se.name)?Se.name.text:void 0),Y=T?[]:Kt(z,Se=>k.getTypeAtLocation(Se)),{argumentTypeNodes:oe,argumentTypeParameters:se}=sst(k,s,Y,E,b,1,B),ge=p?q.createNodeArray(q.createModifiersFromModifierFlags(p)):void 0,ae=aY(j)?q.createToken(42):void 0,Ce=T?void 0:uJt(k,se,M),ne=jwe(z.length,K,oe,void 0,T),ve=T||J===void 0?void 0:k.typeToTypeNode(J,E,void 0,B);switch(t){case 174:return q.createMethodDeclaration(ge,ae,f,void 0,Ce,ne,ve,Vwe(v));case 173:return q.createMethodSignature(ge,f,void 0,Ce,ne,ve===void 0?q.createKeywordTypeNode(159):ve);case 262:return H.assert(typeof f=="string"||at(f),"Unexpected name"),q.createFunctionDeclaration(ge,ae,f,Ce,ne,ve,kee(F.Function_not_implemented.message,v));default:H.fail("Unexpected kind")}}function uJt(t,u,s){const d=new Set(u.map(p=>p[0])),f=new Map(u);if(s){const p=s.filter(v=>!u.some(b=>{var B;return t.getTypeAtLocation(v)===((B=b[1])==null?void 0:B.argumentType)})),E=d.size+p.length;for(let v=0;d.size{var E;return q.createTypeParameterDeclaration(void 0,p,(E=f.get(p))==null?void 0:E.constraint)})}function ast(t){return 84+t<=90?String.fromCharCode(84+t):`T${t}`}function Z4e(t,u,s,d,f,p,E){let v=t.typeToTypeNode(s,d,p,E);if(v&&iD(v)){const b=l9(v,f);b&&(Dw(u,b.symbols),v=b.typeNode)}return ol(v)}function ost(t){return t.isUnionOrIntersection()?t.types.some(ost):t.flags&262144}function sst(t,u,s,d,f,p,E){const v=[],b=new Map;for(let B=0;B=d?q.createToken(58):void 0,f?void 0:(s==null?void 0:s[v])||q.createKeywordTypeNode(159),void 0);p.push(k)}return p}function aJt(t,u,s,d,f,p,E,v,b){let B=d[0],k=d[0].minArgumentCount,T=!1;for(const J of d)k=Math.min(J.minArgumentCount,k),eh(J)&&(T=!0),J.parameters.length>=B.parameters.length&&(!eh(J)||eh(B))&&(B=J);const M=B.parameters.length-(eh(B)?1:0),z=B.parameters.map(J=>J.name),j=jwe(M,z,void 0,k,!1);if(T){const J=q.createParameterDeclaration(void 0,q.createToken(26),z[M]||"rest",M>=k?q.createToken(58):void 0,q.createArrayTypeNode(q.createKeywordTypeNode(159)),void 0);j.push(J)}return sJt(E,f,p,void 0,j,oJt(d,t,u,s),v,b)}function oJt(t,u,s,d){if(S(t)){const f=u.getUnionType(Kt(t,u.getReturnTypeOfSignature));return u.typeToTypeNode(f,d,1,_w(s))}}function sJt(t,u,s,d,f,p,E,v){return q.createMethodDeclaration(t,void 0,u,s?q.createToken(58):void 0,d,f,p,v||Vwe(E))}function Vwe(t){return kee(F.Method_not_implemented.message,t)}function kee(t,u){return q.createBlock([q.createThrowStatement(q.createNewExpression(q.createIdentifier("Error"),void 0,[q.createStringLiteral(t,u===0)]))],!0)}function Hwe(t,u,s){const d=qN(u);if(!d)return;const f=Wwe(d,"compilerOptions");if(f===void 0){t.insertNodeAtObjectStart(u,d,Y4e("compilerOptions",q.createObjectLiteralExpression(s.map(([E,v])=>Y4e(E,v)),!0)));return}const p=f.initializer;if(Cs(p))for(const[E,v]of s){const b=Wwe(p,E);b===void 0?t.insertNodeAtObjectStart(u,p,Y4e(E,v)):t.replaceNode(u,b.initializer,v)}}function Kwe(t,u,s,d){Hwe(t,u,[[s,d]])}function Y4e(t,u){return q.createPropertyAssignment(q.createStringLiteral(t),u)}function Wwe(t,u){return Le(t.properties,s=>Gc(s)&&!!s.name&&ns(s.name)&&s.name.text===u)}function l9(t,u){let s;const d=yt(t,f,Qr);if(s&&d)return{typeNode:d,symbols:s};function f(p){if(Mx(p)&&p.qualifier){const E=dm(p.qualifier),v=NX(E.symbol,u),b=v!==E.text?cst(p.qualifier,q.createIdentifier(v)):p.qualifier;s=Ei(s,E.symbol);const B=Fn(p.typeArguments,f,Qr);return q.createTypeReferenceNode(b,B)}return un(p,f,Eg)}}function cst(t,u){return t.kind===80?u:q.createQualifiedName(cst(t.left,u),t.right)}function Dw(t,u){u.forEach(s=>t.addImportFromExportedSymbol(s,!0))}function Gwe(t,u){const s=gc(u);let d=ba(t,u.start);for(;d.end(t[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",t))(Jwe||{})}});function dst(t,u,s,d,f,p){const E=mst(t,u,s,d);if(!E||u9.isRefactorErrorInfo(E))return;const v=nu.ChangeTracker.fromContext(f),{isStatic:b,isReadonly:B,fieldName:k,accessorName:T,originalName:M,type:z,container:j,declaration:J}=E;Hf(k),Hf(T),Hf(J),Hf(j);let K,Y;if(gr(j)){const se=gh(J);if(ph(t)){const ge=q.createModifiersFromModifierFlags(se);K=ge,Y=ge}else K=q.createModifiersFromModifierFlags(hJt(se)),Y=q.createModifiersFromModifierFlags(fJt(se));kk(J)&&(Y=an(Fx(J),Y))}_Jt(v,t,J,z,k,Y);const oe=mJt(k,T,z,K,b,j);if(Hf(oe),pst(v,t,oe,J,j),B){const se=Q_(j);se&&DJt(v,t,se,k.text,M)}else{const se=pJt(k,T,z,K,b,j);Hf(se),pst(v,t,se,J,j)}return v.getChanges()}function cJt(t){return at(t)||ns(t)}function dJt(t){return Pf(t,t.parent)||bo(t)||Gc(t)}function hst(t,u){return at(u)?q.createIdentifier(t):q.createStringLiteral(t)}function fst(t,u,s){const d=u?s.name:q.createThis();return at(t)?q.createPropertyAccessExpression(d,t):q.createElementAccessExpression(d,q.createStringLiteralFromNode(t))}function hJt(t){return t&=-9,t&=-3,t&4||(t|=1),t}function fJt(t){return t&=-2,t&=-5,t|=2,t}function mst(t,u,s,d,f=!0){const p=ba(t,s),E=s===d&&f,v=Ln(p.parent,dJt),b=271;if(!v||!(tX(v.name,t,s,d)||E))return{error:Xa(F.Could_not_find_property_for_which_to_generate_accessor)};if(!cJt(v.name))return{error:Xa(F.Name_is_not_valid)};if((gh(v)&98303|b)!==b)return{error:Xa(F.Can_only_convert_property_with_modifier)};const B=v.name.text,k=Ffe(B),T=hst(k?B:Ik(`_${B}`,t),v.name),M=hst(k?Ik(B.substring(1),t):B,v.name);return{isStatic:Hc(v),isReadonly:hP(v),type:xJt(v,u),container:v.kind===169?v.parent.parent:v.parent,originalName:v.name.text,declaration:v,fieldName:T,accessorName:M,renameAccessor:k}}function mJt(t,u,s,d,f,p){return q.createGetAccessorDeclaration(d,u,[],s,q.createBlock([q.createReturnStatement(fst(t,f,p))],!0))}function pJt(t,u,s,d,f,p){return q.createSetAccessorDeclaration(d,u,[q.createParameterDeclaration(void 0,void 0,q.createIdentifier("value"),void 0,s)],q.createBlock([q.createExpressionStatement(q.createAssignment(fst(t,f,p),q.createIdentifier("value")))],!0))}function gJt(t,u,s,d,f,p){const E=q.updatePropertyDeclaration(s,p,f,s.questionToken||s.exclamationToken,d,s.initializer);t.replaceNode(u,s,E)}function EJt(t,u,s,d){let f=q.updatePropertyAssignment(s,d,s.initializer);(f.modifiers||f.questionToken||f.exclamationToken)&&(f===s&&(f=q.cloneNode(f)),f.modifiers=void 0,f.questionToken=void 0,f.exclamationToken=void 0),t.replacePropertyAssignment(u,s,f)}function _Jt(t,u,s,d,f,p){bo(s)?gJt(t,u,s,d,f,p):Gc(s)?EJt(t,u,s,f):t.replaceNode(u,s,q.updateParameterDeclaration(s,p,s.dotDotDotToken,Lo(f,at),s.questionToken,s.type,s.initializer))}function pst(t,u,s,d,f){Pf(d,d.parent)?t.insertMemberAtStart(u,f,s):Gc(d)?t.insertNodeAfterComma(u,d,s):t.insertNodeAfter(u,d,s)}function DJt(t,u,s,d,f){s.body&&s.body.forEachChild(function p(E){W0(E)&&E.expression.kind===110&&ns(E.argumentExpression)&&E.argumentExpression.text===f&&E7(E)&&t.replaceNode(u,E.argumentExpression,q.createStringLiteral(d)),Iu(E)&&E.expression.kind===110&&E.name.text===f&&E7(E)&&t.replaceNode(u,E.name,q.createIdentifier(d)),!xo(E)&&!gr(E)&&E.forEachChild(p)})}function xJt(t,u){const s=xye(t);if(bo(t)&&s&&t.questionToken){const d=u.getTypeChecker(),f=d.getTypeFromTypeNode(s);if(!d.isTypeAssignableTo(d.getUndefinedType(),f)){const p=Lv(s)?s.types:[s];return q.createUnionTypeNode([...p,q.createKeywordTypeNode(157)])}}return s}function $we(t,u){const s=[];for(;t;){const d=F2(t),f=d&&u.getSymbolAtLocation(d.expression);if(!f)break;const p=f.flags&2097152?u.getAliasedSymbol(f):f,E=p.declarations&&Le(p.declarations,gr);if(!E)break;s.push(E),t=E}return s}var vJt=o({"src/services/codefixes/generateAccessors.ts"(){or()}});function CJt(t,u){const s=In(u),d=Z8(u),f=t.program.getCompilerOptions(),p=[];return p.push(gst(t,s,u,p5(d.name,void 0,u.moduleSpecifier,Vm(s,t.preferences)))),f1(f)===1&&p.push(gst(t,s,u,q.createImportEqualsDeclaration(void 0,!1,d.name,q.createExternalModuleReference(u.moduleSpecifier)))),p}function gst(t,u,s,d){const f=nu.ChangeTracker.with(t,p=>p.replaceNode(u,s,d));return xg(Uwe,f,[F.Replace_import_with_0,f[0].textChanges[0].newText])}function bJt(t){const u=t.sourceFile,s=F.This_expression_is_not_callable.code===t.errorCode?213:214,d=Ln(ba(u,t.span.start),p=>p.kind===s);if(!d)return[];const f=d.expression;return Est(t,f)}function yJt(t){const u=t.sourceFile,s=Ln(ba(u,t.span.start),d=>d.getStart()===t.span.start&&d.getEnd()===t.span.start+t.span.length);return s?Est(t,s):[]}function Est(t,u){const s=t.program.getTypeChecker().getTypeAtLocation(u);if(!(s.symbol&&UE(s.symbol)&&s.symbol.links.originatingImport))return[];const d=[],f=s.symbol.links.originatingImport;if(cm(f)||kn(d,CJt(t,f)),Wt(u)&&!(fh(u.parent)&&u.parent.name===u)){const p=t.sourceFile,E=nu.ChangeTracker.with(t,v=>v.replaceNode(p,u,q.createPropertyAccessExpression(u,"default"),{}));d.push(xg(Uwe,E,F.Use_synthetic_default_member))}return d}var Uwe,kJt=o({"src/services/codefixes/fixInvalidImportSyntax.ts"(){or(),us(),Uwe="invalidImportSyntax",Qo({errorCodes:[F.This_expression_is_not_callable.code,F.This_expression_is_not_constructable.code],getCodeActions:bJt}),Qo({errorCodes:[F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Type_0_does_not_satisfy_the_constraint_1.code,F.Type_0_is_not_assignable_to_type_1.code,F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,F.Type_predicate_0_is_not_assignable_to_1.code,F.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,F._0_index_type_1_is_not_assignable_to_2_index_type_3.code,F.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,F.Property_0_in_type_1_is_not_assignable_to_type_2.code,F.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:yJt})}});function _st(t,u){const s=ba(t,u);if(at(s)&&bo(s.parent)){const d=h1(s.parent);if(d)return{type:d,prop:s.parent,isJs:eu(s.parent)}}}function FJt(t,u){if(u.isJs)return;const s=nu.ChangeTracker.with(t,d=>Dst(d,t.sourceFile,u.prop));return zo(Q4e,s,[F.Add_definite_assignment_assertion_to_property_0,u.prop.getText()],X4e,F.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Dst(t,u,s){Hf(s);const d=q.updatePropertyDeclaration(s,s.modifiers,s.name,q.createToken(54),s.type,s.initializer);t.replaceNode(u,s,d)}function AJt(t,u){const s=nu.ChangeTracker.with(t,d=>xst(d,t.sourceFile,u));return zo(Q4e,s,[F.Add_undefined_type_to_property_0,u.prop.name.getText()],epe,F.Add_undefined_type_to_all_uninitialized_properties)}function xst(t,u,s){const d=q.createKeywordTypeNode(157),f=Lv(s.type)?s.type.types.concat(d):[s.type,d],p=q.createUnionTypeNode(f);s.isJs?t.addJSDocTags(u,s.prop,[q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(p))]):t.replaceNode(u,s.type,p)}function SJt(t,u){if(u.isJs)return;const s=t.program.getTypeChecker(),d=Cst(s,u.prop);if(!d)return;const f=nu.ChangeTracker.with(t,p=>vst(p,t.sourceFile,u.prop,d));return zo(Q4e,f,[F.Add_initializer_to_property_0,u.prop.name.getText()],tpe,F.Add_initializers_to_all_uninitialized_properties)}function vst(t,u,s,d){Hf(s);const f=q.updatePropertyDeclaration(s,s.modifiers,s.name,s.questionToken,s.type,d);t.replaceNode(u,s,f)}function Cst(t,u){return bst(t,t.getTypeFromTypeNode(u.type))}function bst(t,u){if(u.flags&512)return u===t.getFalseType()||u===t.getFalseType(!0)?q.createFalse():q.createTrue();if(u.isStringLiteral())return q.createStringLiteral(u.value);if(u.isNumberLiteral())return q.createNumericLiteral(u.value);if(u.flags&2048)return q.createBigIntLiteral(u.value);if(u.isUnion())return G(u.types,s=>bst(t,s));if(u.isClass()){const s=eD(u.symbol);if(!s||Xu(s,64))return;const d=Q_(s);return d&&d.parameters.length?void 0:q.createNewExpression(q.createIdentifier(u.symbol.name),void 0,void 0)}else if(t.isArrayLikeType(u))return q.createArrayLiteralExpression()}var Q4e,X4e,epe,tpe,qwe,BJt=o({"src/services/codefixes/fixStrictClassInitialization.ts"(){or(),us(),Q4e="strictClassInitialization",X4e="addMissingPropertyDefiniteAssignmentAssertions",epe="addMissingPropertyUndefinedType",tpe="addMissingPropertyInitializer",qwe=[F.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Qo({errorCodes:qwe,getCodeActions:function(u){const s=_st(u.sourceFile,u.span.start);if(!s)return;const d=[];return Ei(d,AJt(u,s)),Ei(d,FJt(u,s)),Ei(d,SJt(u,s)),d},fixIds:[X4e,epe,tpe],getAllCodeActions:t=>h0(t,qwe,(u,s)=>{const d=_st(s.file,s.start);if(d)switch(t.fixId){case X4e:Dst(u,s.file,d.prop);break;case epe:xst(u,s.file,d);break;case tpe:const f=t.program.getTypeChecker(),p=Cst(f,d.prop);if(!p)return;vst(u,s.file,d.prop,p);break;default:H.fail(JSON.stringify(t.fixId))}})})}});function yst(t,u,s){const{allowSyntheticDefaults:d,defaultImportName:f,namedImports:p,statement:E,required:v}=s;t.replaceNode(u,E,f&&!d?q.createImportEqualsDeclaration(void 0,!1,f,q.createExternalModuleReference(v)):q.createImportDeclaration(void 0,q.createImportClause(!1,f,p),v,void 0))}function kst(t,u,s){const{parent:d}=ba(t,s);Df(d,!0)||H.failBadSyntaxKind(d);const f=Lo(d.parent,ua),p=ar(f.name,at),E=Mp(f.name)?wJt(f.name):void 0;if(p||E)return{allowSyntheticDefaults:x7(u.getCompilerOptions()),defaultImportName:p,namedImports:E,statement:Lo(f.parent.parent,Gl),required:Mn(d.arguments)}}function wJt(t){const u=[];for(const s of t.elements){if(!at(s.name)||s.initializer)return;u.push(q.createImportSpecifier(!1,ar(s.propertyName,at),s.name))}if(u.length)return q.createNamedImports(u)}var ipe,Zwe,TJt=o({"src/services/codefixes/requireInTs.ts"(){or(),us(),ipe="requireInTs",Zwe=[F.require_call_may_be_converted_to_an_import.code],Qo({errorCodes:Zwe,getCodeActions(t){const u=kst(t.sourceFile,t.program,t.span.start);if(!u)return;const s=nu.ChangeTracker.with(t,d=>yst(d,t.sourceFile,u));return[zo(ipe,s,F.Convert_require_to_import,ipe,F.Convert_all_require_to_import)]},fixIds:[ipe],getAllCodeActions:t=>h0(t,Zwe,(u,s)=>{const d=kst(s.file,t.program,s.start);d&&yst(u,t.sourceFile,d)})})}});function Fst(t,u){const s=ba(t,u);if(!at(s))return;const{parent:d}=s;if(g1(d)&&u_(d.moduleReference))return{importNode:d,name:s,moduleSpecifier:d.moduleReference.expression};if(Gx(d)){const f=d.parent.parent;return{importNode:f,name:s,moduleSpecifier:f.moduleSpecifier}}}function Ast(t,u,s,d){t.replaceNode(u,s.importNode,p5(s.name,void 0,s.moduleSpecifier,Vm(u,d)))}var npe,Ywe,LJt=o({"src/services/codefixes/useDefaultImport.ts"(){or(),us(),npe="useDefaultImport",Ywe=[F.Import_may_be_converted_to_a_default_import.code],Qo({errorCodes:Ywe,getCodeActions(t){const{sourceFile:u,span:{start:s}}=t,d=Fst(u,s);if(!d)return;const f=nu.ChangeTracker.with(t,p=>Ast(p,u,d,t.preferences));return[zo(npe,f,F.Convert_to_default_import,npe,F.Convert_all_to_default_imports)]},fixIds:[npe],getAllCodeActions:t=>h0(t,Ywe,(u,s)=>{const d=Fst(s.file,s.start);d&&Ast(u,s.file,d,t.preferences)})})}});function Sst(t,u,s){const d=ar(ba(u,s.start),Rf);if(!d)return;const f=d.getText(u)+"n";t.replaceNode(u,d,q.createBigIntLiteral(f))}var upe,Qwe,NJt=o({"src/services/codefixes/useBigintLiteral.ts"(){or(),us(),upe="useBigintLiteral",Qwe=[F.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Qo({errorCodes:Qwe,getCodeActions:function(u){const s=nu.ChangeTracker.with(u,d=>Sst(d,u.sourceFile,u.span));if(s.length>0)return[zo(upe,s,F.Convert_to_a_bigint_numeric_literal,upe,F.Convert_all_to_bigint_numeric_literals)]},fixIds:[upe],getAllCodeActions:t=>h0(t,Qwe,(u,s)=>Sst(u,s.file,s))})}});function Bst(t,u){const s=ba(t,u);return H.assert(s.kind===102,"This token should be an ImportKeyword"),H.assert(s.parent.kind===205,"Token parent should be an ImportType"),s.parent}function wst(t,u,s){const d=q.updateImportTypeNode(s,s.argument,s.attributes,s.qualifier,s.typeArguments,!0);t.replaceNode(u,s,d)}var Tst,rpe,Xwe,PJt=o({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){or(),us(),Tst="fixAddModuleReferTypeMissingTypeof",rpe=Tst,Xwe=[F.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Qo({errorCodes:Xwe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Bst(s,d.start),p=nu.ChangeTracker.with(u,E=>wst(E,s,f));return[zo(rpe,p,F.Add_missing_typeof,rpe,F.Add_missing_typeof)]},fixIds:[rpe],getAllCodeActions:t=>h0(t,Xwe,(u,s)=>wst(u,t.sourceFile,Bst(s.file,s.start)))})}});function Lst(t,u){let f=ba(t,u).parent.parent;if(!(!tu(f)&&(f=f.parent,!tu(f)))&&Yl(f.operatorToken))return f}function Nst(t,u,s){const d=MJt(s);d&&t.replaceNode(u,s,q.createJsxFragment(q.createJsxOpeningFragment(),d,q.createJsxJsxClosingFragment()))}function MJt(t){const u=[];let s=t;for(;;)if(tu(s)&&Yl(s.operatorToken)&&s.operatorToken.kind===28){if(u.push(s.left),QO(s.right))return u.push(s.right),u;if(tu(s.right)){s=s.right;continue}else return}else return}var ape,eTe,zJt=o({"src/services/codefixes/wrapJsxInFragment.ts"(){or(),us(),ape="wrapJsxInFragment",eTe=[F.JSX_expressions_must_have_one_parent_element.code],Qo({errorCodes:eTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Lst(s,d.start);if(!f)return;const p=nu.ChangeTracker.with(u,E=>Nst(E,s,f));return[zo(ape,p,F.Wrap_in_JSX_fragment,ape,F.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[ape],getAllCodeActions:t=>h0(t,eTe,(u,s)=>{const d=Lst(t.sourceFile,s.start);d&&Nst(u,t.sourceFile,d)})})}});function Pst(t,u){const s=ba(t,u),d=ar(s.parent.parent,pk);if(!d)return;const f=Dh(d.parent)?d.parent:ar(d.parent.parent,Ip);if(f)return{indexSignature:d,container:f}}function IJt(t,u){return q.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,u)}function Mst(t,u,{indexSignature:s,container:d}){const p=(Dh(d)?d.members:d.type.members).filter(k=>!pk(k)),E=Mn(s.parameters),v=q.createTypeParameterDeclaration(void 0,Lo(E.name,at),E.type),b=q.createMappedTypeNode(hP(s)?q.createModifier(148):void 0,v,void 0,s.questionToken,s.type,void 0),B=q.createIntersectionTypeNode([...nP(d),b,...p.length?[q.createTypeLiteralNode(p)]:_t]);t.replaceNode(u,d,IJt(d,B))}var ope,tTe,RJt=o({"src/services/codefixes/convertToMappedObjectType.ts"(){or(),us(),ope="fixConvertToMappedObjectType",tTe=[F.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Qo({errorCodes:tTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Pst(s,d.start);if(!f)return;const p=nu.ChangeTracker.with(u,v=>Mst(v,s,f)),E=mu(f.container.name);return[zo(ope,p,[F.Convert_0_to_mapped_object_type,E],ope,[F.Convert_0_to_mapped_object_type,E])]},fixIds:[ope],getAllCodeActions:t=>h0(t,tTe,(u,s)=>{const d=Pst(s.file,s.start);d&&Mst(u,s.file,d)})})}}),iTe,zst,OJt=o({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){or(),us(),iTe="removeAccidentalCallParentheses",zst=[F.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Qo({errorCodes:zst,getCodeActions(t){const u=Ln(ba(t.sourceFile,t.span.start),No);if(!u)return;const s=nu.ChangeTracker.with(t,d=>{d.deleteRange(t.sourceFile,{pos:u.expression.end,end:u.end})});return[xg(iTe,s,F.Remove_parentheses)]},fixIds:[iTe]})}});function Ist(t,u,s){const d=ar(ba(u,s.start),v=>v.kind===135),f=d&&ar(d.parent,Wx);if(!f)return;let p=f;if(vf(f.parent)){const v=lB(f.expression,!1);if(at(v)){const b=ed(f.parent.pos,u);b&&b.kind!==105&&(p=f.parent)}}t.replaceNode(u,p,f.expression)}var spe,nTe,jJt=o({"src/services/codefixes/removeUnnecessaryAwait.ts"(){or(),us(),spe="removeUnnecessaryAwait",nTe=[F.await_has_no_effect_on_the_type_of_this_expression.code],Qo({errorCodes:nTe,getCodeActions:function(u){const s=nu.ChangeTracker.with(u,d=>Ist(d,u.sourceFile,u.span));if(s.length>0)return[zo(spe,s,F.Remove_unnecessary_await,spe,F.Remove_all_unnecessary_uses_of_await)]},fixIds:[spe],getAllCodeActions:t=>h0(t,nTe,(u,s)=>Ist(u,s.file,s))})}});function Rst(t,u){return Ln(ba(t,u.start),Ad)}function Ost(t,u,s){if(!u)return;const d=H.checkDefined(u.importClause);t.replaceNode(s.sourceFile,u,q.updateImportDeclaration(u,u.modifiers,q.updateImportClause(d,d.isTypeOnly,d.name,void 0),u.moduleSpecifier,u.attributes)),t.insertNodeAfter(s.sourceFile,u,q.createImportDeclaration(void 0,q.updateImportClause(d,d.isTypeOnly,void 0,d.namedBindings),u.moduleSpecifier,u.attributes))}var uTe,lpe,VJt=o({"src/services/codefixes/splitTypeOnlyImport.ts"(){or(),us(),uTe=[F.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],lpe="splitTypeOnlyImport",Qo({errorCodes:uTe,fixIds:[lpe],getCodeActions:function(u){const s=nu.ChangeTracker.with(u,d=>Ost(d,Rst(u.sourceFile,u.span),u));if(s.length)return[zo(lpe,s,F.Split_into_two_separate_import_declarations,lpe,F.Split_all_invalid_type_only_imports)]},getAllCodeActions:t=>h0(t,uTe,(u,s)=>{Ost(u,Rst(t.sourceFile,s),t)})})}});function jst(t,u,s){var d;const p=s.getTypeChecker().getSymbolAtLocation(ba(t,u));if(p===void 0)return;const E=ar((d=p==null?void 0:p.valueDeclaration)==null?void 0:d.parent,Fd);if(E===void 0)return;const v=r0(E,87,t);if(v!==void 0)return{symbol:p,token:v}}function Vst(t,u,s){t.replaceNode(u,s,q.createToken(121))}var cpe,rTe,HJt=o({"src/services/codefixes/convertConstToLet.ts"(){or(),us(),cpe="fixConvertConstToLet",rTe=[F.Cannot_assign_to_0_because_it_is_a_constant.code],Qo({errorCodes:rTe,getCodeActions:function(u){const{sourceFile:s,span:d,program:f}=u,p=jst(s,d.start,f);if(p===void 0)return;const E=nu.ChangeTracker.with(u,v=>Vst(v,s,p.token));return[rBe(cpe,E,F.Convert_const_to_let,cpe,F.Convert_all_const_to_let)]},getAllCodeActions:t=>{const{program:u}=t,s=new Map;return pw(nu.ChangeTracker.with(t,d=>{gw(t,rTe,f=>{const p=jst(f.file,f.start,u);if(p&&Pp(s,qo(p.symbol)))return Vst(d,f.file,p.token)})}))},fixIds:[cpe]})}});function Hst(t,u,s){const d=ba(t,u);return d.kind===27&&d.parent&&(Cs(d.parent)||_h(d.parent))?{node:d}:void 0}function Kst(t,u,{node:s}){const d=q.createToken(28);t.replaceNode(u,s,d)}var dpe,Wst,aTe,KJt=o({"src/services/codefixes/fixExpectedComma.ts"(){or(),us(),dpe="fixExpectedComma",Wst=F._0_expected.code,aTe=[Wst],Qo({errorCodes:aTe,getCodeActions(t){const{sourceFile:u}=t,s=Hst(u,t.span.start,t.errorCode);if(!s)return;const d=nu.ChangeTracker.with(t,f=>Kst(f,u,s));return[zo(dpe,d,[F.Change_0_to_1,";",","],dpe,[F.Change_0_to_1,";",","])]},fixIds:[dpe],getAllCodeActions:t=>h0(t,aTe,(u,s)=>{const d=Hst(s.file,s.start,s.code);d&&Kst(u,t.sourceFile,d)})})}});function Gst(t,u,s,d,f){const p=ba(u,s.start);if(!at(p)||!No(p.parent)||p.parent.expression!==p||p.parent.arguments.length!==0)return;const E=d.getTypeChecker(),v=E.getSymbolAtLocation(p),b=v==null?void 0:v.valueDeclaration;if(!b||!eo(b)||!I2(b.parent.parent)||f!=null&&f.has(b))return;f==null||f.add(b);const B=WJt(b.parent.parent);if(qe(B)){const k=B[0],T=!Lv(k)&&!N7(k)&&N7(q.createUnionTypeNode([k,q.createKeywordTypeNode(116)]).types[0]);T&&t.insertText(u,k.pos,"("),t.insertText(u,k.end,T?") | void":" | void")}else{const k=E.getResolvedSignature(p.parent),T=k==null?void 0:k.parameters[0],M=T&&E.getTypeOfSymbolAtLocation(T,b.parent.parent);eu(b)?(!M||M.flags&3)&&(t.insertText(u,b.parent.parent.end,")"),t.insertText(u,ms(u.text,b.parent.parent.pos),"/** @type {Promise} */(")):(!M||M.flags&2)&&t.insertText(u,b.parent.parent.expression.end,"")}}function WJt(t){var u;if(eu(t)){if(vf(t.parent)){const s=(u=_v(t.parent))==null?void 0:u.typeExpression.type;if(s&&Y4(s)&&at(s.typeName)&&mu(s.typeName)==="Promise")return s.typeArguments}}else return t.typeArguments}var Jst,oTe,sTe,GJt=o({"src/services/codefixes/fixAddVoidToPromise.ts"(){or(),us(),Jst="addVoidToPromise",oTe="addVoidToPromise",sTe=[F.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,F.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Qo({errorCodes:sTe,fixIds:[oTe],getCodeActions(t){const u=nu.ChangeTracker.with(t,s=>Gst(s,t.sourceFile,t.span,t.program));if(u.length>0)return[zo(Jst,u,F.Add_void_to_Promise_resolved_without_a_value,oTe,F.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(t){return h0(t,sTe,(u,s)=>Gst(u,s.file,s,t.program,new Set))}})}}),M1={};h(M1,{PreserveOptionalFlags:()=>Jwe,addNewNodeForMemberSymbol:()=>rst,codeFixAll:()=>h0,createCodeFixAction:()=>zo,createCodeFixActionMaybeFixAll:()=>rBe,createCodeFixActionWithoutFixAll:()=>xg,createCombinedCodeActions:()=>pw,createFileTextChanges:()=>crt,createImportAdder:()=>o9,createImportSpecifierResolver:()=>rWt,createJsonPropertyAssignment:()=>Y4e,createMissingMemberNodes:()=>Rwe,createSignatureDeclarationFromCallExpression:()=>Owe,createSignatureDeclarationFromSignature:()=>q4e,createStubbedBody:()=>kee,eachDiagnostic:()=>gw,findAncestorMatchingSpan:()=>Gwe,findJsonProperty:()=>Wwe,generateAccessorFromProperty:()=>dst,getAccessorConvertiblePropertyAtPosition:()=>mst,getAllFixes:()=>MHt,getAllSupers:()=>$we,getArgumentTypesAndTypeParameters:()=>sst,getFixes:()=>PHt,getImportCompletionAction:()=>aWt,getImportKind:()=>PBe,getJSDocTypedefNodes:()=>eWt,getNoopSymbolTrackerWithResolver:()=>_w,getPromoteTypeOnlyCompletionAction:()=>oWt,getSupportedErrorCodes:()=>LHt,importFixName:()=>VBe,importSymbols:()=>Dw,moduleSpecifierToValidIdentifier:()=>jBe,moduleSymbolToValidIdentifier:()=>OBe,parameterShouldGetTypeFromJSDoc:()=>wrt,registerCodeFix:()=>Qo,setJsonCompilerOptionValue:()=>Kwe,setJsonCompilerOptionValues:()=>Hwe,tryGetAutoImportableReferenceFromTypeNode:()=>l9,typeToAutoImportableTypeNode:()=>Z4e});var us=o({"src/services/_namespaces/ts.codefix.ts"(){zHt(),IHt(),RHt(),VHt(),JHt(),ZHt(),YHt(),QHt(),XHt(),nKt(),fKt(),pKt(),FKt(),WKt(),GKt(),$Kt(),UKt(),tWt(),iWt(),uWt(),AWt(),wWt(),NWt(),PWt(),MWt(),RWt(),VWt(),WWt(),qWt(),rGt(),oGt(),sGt(),cGt(),dGt(),hGt(),fGt(),pGt(),gGt(),EGt(),_Gt(),DGt(),vGt(),yGt(),SGt(),IGt(),OGt(),jGt(),KGt(),WGt(),JGt(),$Gt(),tJt(),iJt(),nJt(),lJt(),vJt(),kJt(),BJt(),TJt(),LJt(),NJt(),PJt(),zJt(),RJt(),OJt(),jJt(),VJt(),HJt(),KJt(),GJt()}});function JJt(t){return!!(t.kind&1)}function $Jt(t){return!!(t.kind&2)}function Fee(t){return!!(t&&t.kind&4)}function qM(t){return!!(t&&t.kind===32)}function UJt(t){return Fee(t)||qM(t)||lTe(t)}function qJt(t){return(Fee(t)||qM(t))&&!!t.isFromPackageJson}function ZJt(t){return!!(t.kind&8)}function YJt(t){return!!(t.kind&16)}function $st(t){return!!(t&&t.kind&64)}function Ust(t){return!!(t&&t.kind&128)}function QJt(t){return!!(t&&t.kind&256)}function lTe(t){return!!(t&&t.kind&512)}function qst(t,u,s,d,f,p,E,v,b){var B,k,T;const M=V0(),z=E||v7(m1(d.getCompilerOptions()));let j=!1,J=0,K=0,Y=0,oe=0;const se=b({tryResolve:ae,skippedAny:()=>j,resolvedAny:()=>K>0,resolvedBeyondLimit:()=>K>vpe}),ge=oe?` (${(Y/oe*100).toFixed(1)}% hit rate)`:"";return(B=u.log)==null||B.call(u,`${t}: resolved ${K} module specifiers, plus ${J} ambient and ${Y} from cache${ge}`),(k=u.log)==null||k.call(u,`${t}: response is ${j?"incomplete":"complete"}`),(T=u.log)==null||T.call(u,`${t}: ${V0()-M}`),se;function ae(Ce,ne){if(ne){const pe=s.getModuleSpecifierForBestExportInfo(Ce,f,v);return pe&&J++,pe||"failed"}const ve=z||p.allowIncompleteCompletions&&K{const j=Ui(b.entries,J=>{var K;if(!J.hasAction||!J.source||!J.data||Zst(J.data))return J;if(!v0t(J.name,k))return;const{origin:Y}=H.checkDefined(s0t(J.name,J.data,d,f)),oe=T.get(u.path,J.data.exportMapKey),se=oe&&z.tryResolve(oe,!Md(G4(Y.moduleSymbol.name)));if(se==="skipped")return J;if(!se||se==="failed"){(K=f.log)==null||K.call(f,`Unexpected failure resolving auto import for '${J.name}' from '${J.source}'`);return}const ge={...Y,kind:32,moduleSpecifier:se.moduleSpecifier};return J.data=u0t(ge),J.source=hTe(ge),J.sourceDisplay=[Hm(ge.moduleSpecifier)],J});return z.skippedAny()||(b.isIncomplete=void 0),j});return b.entries=M,b.flags=(b.flags||0)|4,b.optionalReplacementSpan=e0t(B),b}function cTe(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function Yst(t,u,s,d,f,p){const E=ba(t,u);if(!M8(E)&&!Rp(E))return[];const v=Rp(E)?E:E.parent;if(!Rp(v))return[];const b=v.parent;if(!xo(b))return[];const B=ph(t),k=f.includeCompletionsWithSnippetText||void 0,T=ui(v.tags,M=>pg(M)&&M.getEnd()<=u);return Ui(b.parameters,M=>{if(!A8(M).length){if(at(M.name)){const z={tabstop:1},j=M.name.text;let J=kK(j,M.initializer,M.dotDotDotToken,B,!1,!1,s,d,f),K=k?kK(j,M.initializer,M.dotDotDotToken,B,!1,!0,s,d,f,z):void 0;return p&&(J=J.slice(1),K&&(K=K.slice(1))),{name:J,kind:"parameter",sortText:z1.LocationPriority,insertText:k?K:void 0,isSnippet:k}}else if(M.parent.parameters.indexOf(M)===T){const z=`param${T}`,j=Qst(z,M.name,M.initializer,M.dotDotDotToken,B,!1,s,d,f),J=k?Qst(z,M.name,M.initializer,M.dotDotDotToken,B,!0,s,d,f):void 0;let K=j.join(r5(d)+"* "),Y=J==null?void 0:J.join(r5(d)+"* ");return p&&(K=K.slice(1),Y&&(Y=Y.slice(1))),{name:K,kind:"parameter",sortText:z1.LocationPriority,insertText:k?Y:void 0,isSnippet:k}}}})}function Qst(t,u,s,d,f,p,E,v,b){if(!f)return[kK(t,s,d,f,!1,p,E,v,b,{tabstop:1})];return B(t,u,s,d,{tabstop:1});function B(T,M,z,j,J){if(Mp(M)&&!j){const Y={tabstop:J.tabstop},oe=kK(T,z,j,f,!0,p,E,v,b,Y);let se=[];for(const ge of M.elements){const ae=k(T,ge,Y);if(ae)se.push(...ae);else{se=void 0;break}}if(se)return J.tabstop=Y.tabstop,[oe,...se]}return[kK(T,z,j,f,!1,p,E,v,b,J)]}function k(T,M,z){if(!M.propertyName&&at(M.name)||at(M.name)){const j=M.propertyName?$N(M.propertyName):M.name.text;if(!j)return;const J=`${T}.${j}`;return[kK(J,M.initializer,M.dotDotDotToken,f,!1,p,E,v,b,z)]}else if(M.propertyName){const j=$N(M.propertyName);return j&&B(`${T}.${j}`,M.name,M.initializer,M.dotDotDotToken,z)}}}function kK(t,u,s,d,f,p,E,v,b,B){if(p&&H.assertIsDefined(B),u&&(t=t$t(t,u)),p&&(t=z2(t)),d){let k="*";if(f)H.assert(!s,"Cannot annotate a rest parameter with type 'Object'."),k="Object";else{if(u){const z=E.getTypeAtLocation(u.parent);if(!(z.flags&16385)){const j=u.getSourceFile(),K=Vm(j,b)===0?268435456:0,Y=E.typeToTypeNode(z,Ln(u,xo),K);if(Y){const oe=p?mpe({removeComments:!0,module:v.module,target:v.target}):Kv({removeComments:!0,module:v.module,target:v.target});Qn(Y,1),k=oe.printNode(4,Y,j)}}}p&&k==="*"&&(k=`\${${B.tabstop++}:${k}}`)}const T=!f&&s?"...":"",M=p?`\${${B.tabstop++}}`:"";return`@param {${T}${k}} ${t} ${M}`}else{const k=p?`\${${B.tabstop++}}`:"";return`@param ${t} ${k}`}}function t$t(t,u){const s=u.getText().trim();return s.includes(` -`)||s.length>80?`[${t}]`:`[${t}=${s}]`}function i$t(t){return{name:Jo(t),kind:"keyword",kindModifiers:"",sortText:z1.GlobalsOrKeywords}}function n$t(t,u){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:u,entries:t.slice()}}function Xst(t,u,s){return{kind:4,keywordCompletions:l0t(t,u),isNewIdentifierLocation:s}}function u$t(t){switch(t){case 156:return 8;default:H.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function e0t(t){return(t==null?void 0:t.kind)===80?af(t):void 0}function r$t(t,u,s,d,f,p,E,v,b,B){const{symbols:k,contextToken:T,completionKind:M,isInSnippetScope:z,isNewIdentifierLocation:j,location:J,propertyAccessToConvert:K,keywordFilters:Y,symbolToOriginInfoMap:oe,recommendedCompletion:se,isJsxInitializer:ge,isTypeOnlyLocation:ae,isJsxIdentifierExpected:Ce,isRightOfOpenTag:ne,isRightOfDotOrQuestionDot:ve,importStatementCompletion:Se,insideJsDocTagTypeExpression:Ne,symbolToSortTextMap:pe,hasUnresolvedAutoImports:fe}=p;let xe=p.literals;const Be=s.getTypeChecker();if(qj(t.scriptKind)===1){const ft=o$t(J,t);if(ft)return ft}const We=Ln(T,AB);if(We&&(iFe(T)||k2(T,We.expression))){const ft=IX(Be,We.parent.clauses);xe=xe.filter(Ze=>!ft.hasValue(Ze)),k.forEach((Ze,je)=>{if(Ze.valueDeclaration&&K2(Ze.valueDeclaration)){const Ke=Be.getConstantValue(Ze.valueDeclaration);Ke!==void 0&&ft.hasValue(Ke)&&(oe[je]={kind:256})}})}const Ae=xt(),De=t0t(t,d);if(De&&!j&&(!k||k.length===0)&&Y===0)return;const He=fTe(k,Ae,void 0,T,J,b,t,u,s,Is(d),f,M,E,d,v,ae,K,Ce,ge,Se,se,oe,pe,Ce,ne,B);if(Y!==0)for(const ft of l0t(Y,!Ne&&ph(t)))(ae&&NM(c2(ft.name))||!ae&&H$t(ft.name)||!He.has(ft.name))&&(He.add(ft.name),Nt(Ae,ft,Aee,!0));for(const ft of B$t(T,b))He.has(ft.name)||(He.add(ft.name),Nt(Ae,ft,Aee,!0));for(const ft of xe){const Ze=l$t(t,E,ft);He.add(Ze.name),Nt(Ae,Ze,Aee,!0)}De||s$t(t,J.pos,He,Is(d),Ae);let Ge;if(E.includeCompletionsWithInsertText&&T&&!ne&&!ve&&(Ge=Ln(T,qP))){const ft=i0t(Ge,t,E,d,u,s,v);ft&&Ae.push(ft.entry)}return{flags:p.flags,isGlobalCompletion:z,isIncomplete:E.allowIncompleteCompletions&&fe?!0:void 0,isMemberCompletion:a$t(M),isNewIdentifierLocation:j,optionalReplacementSpan:e0t(J),entries:Ae}}function t0t(t,u){return!ph(t)||!!iV(t,u)}function i0t(t,u,s,d,f,p,E){const v=t.clauses,b=p.getTypeChecker(),B=b.getTypeAtLocation(t.parent.expression);if(B&&B.isUnion()&&ye(B.types,k=>k.isLiteral())){const k=IX(b,v),T=Is(d),M=Vm(u,s),z=M1.createImportAdder(u,p,s,f),j=[];for(const ae of B.types)if(ae.flags&1024){H.assert(ae.symbol,"An enum member type should have a symbol"),H.assert(ae.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const Ce=ae.symbol.valueDeclaration&&b.getConstantValue(ae.symbol.valueDeclaration);if(Ce!==void 0){if(k.hasValue(Ce))continue;k.addValue(Ce)}const ne=M1.typeToAutoImportableTypeNode(b,z,ae,t,T);if(!ne)return;const ve=hpe(ne,T,M);if(!ve)return;j.push(ve)}else if(!k.hasValue(ae.value))switch(typeof ae.value){case"object":j.push(ae.value.negative?q.createPrefixUnaryExpression(41,q.createBigIntLiteral({negative:!1,base10Value:ae.value.base10Value})):q.createBigIntLiteral(ae.value));break;case"number":j.push(ae.value<0?q.createPrefixUnaryExpression(41,q.createNumericLiteral(-ae.value)):q.createNumericLiteral(ae.value));break;case"string":j.push(q.createStringLiteral(ae.value,M===0));break}if(j.length===0)return;const J=Kt(j,ae=>q.createCaseClause(ae,[])),K=g5(f,E==null?void 0:E.options),Y=mpe({removeComments:!0,module:d.module,target:d.target,newLine:QH(K)}),oe=E?ae=>Y.printAndFormatNode(4,ae,u,E):ae=>Y.printNode(4,ae,u),se=Kt(J,(ae,Ce)=>s.includeCompletionsWithSnippetText?`${oe(ae)}$${Ce+1}`:`${oe(ae)}`).join(K);return{entry:{name:`${Y.printNode(4,J[0],u)} ...`,kind:"",sortText:z1.GlobalsOrKeywords,insertText:se,hasAction:z.hasFixes()||void 0,source:"SwitchCases/",isSnippet:s.includeCompletionsWithSnippetText?!0:void 0},importAdder:z}}}function hpe(t,u,s){switch(t.kind){case 183:const d=t.typeName;return fpe(d,u,s);case 199:const f=hpe(t.objectType,u,s),p=hpe(t.indexType,u,s);return f&&p&&q.createElementAccessExpression(f,p);case 201:const E=t.literal;switch(E.kind){case 11:return q.createStringLiteral(E.text,s===0);case 9:return q.createNumericLiteral(E.text,E.numericLiteralFlags)}return;case 196:const v=hpe(t.type,u,s);return v&&(at(v)?v:q.createParenthesizedExpression(v));case 186:return fpe(t.exprName,u,s);case 205:H.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function fpe(t,u,s){if(at(t))return t;const d=Yr(t.right.escapedText);return Mle(d,u)?q.createPropertyAccessExpression(fpe(t.left,u,s),d):q.createElementAccessExpression(fpe(t.left,u,s),q.createStringLiteral(d,s===0))}function a$t(t){switch(t){case 0:case 3:case 2:return!0;default:return!1}}function o$t(t,u){const s=Ln(t,d=>{switch(d.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(s){const d=!!r0(s,32,u),E=s.parent.openingElement.tagName.getText(u)+(d?"":">"),v=af(s.tagName),b={name:E,kind:"class",kindModifiers:void 0,sortText:z1.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:v,entries:[b]}}}function s$t(t,u,s,d,f){wme(t).forEach((p,E)=>{if(p===u)return;const v=Yr(E);!s.has(v)&&Tm(v,d)&&(s.add(v),Nt(f,{name:v,kind:"warning",kindModifiers:"",sortText:z1.JavascriptIdentifiers,isFromUncheckedFile:!0},Aee))})}function dTe(t,u,s){return typeof s=="object"?P2(s)+"n":Ja(s)?OM(t,u,s):JSON.stringify(s)}function l$t(t,u,s){return{name:dTe(t,u,s),kind:"string",kindModifiers:"",sortText:z1.LocationPriority}}function c$t(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce,ne){var ve,Se;let Ne,pe,fe=Qhe(s),xe,Be,We=hTe(T),Ae,De,He;const Ge=b.getTypeChecker(),ft=T&&YJt(T),Ze=T&&$Jt(T)||k;if(T&&JJt(T))Ne=k?`this${ft?"?.":""}[${r0t(E,oe,B)}]`:`this${ft?"?.":"."}${B}`;else if((Ze||ft)&&z){Ne=Ze?k?`[${r0t(E,oe,B)}]`:`[${B}]`:B,(ft||z.questionDotToken)&&(Ne=`?.${Ne}`);const Ke=r0(z,25,E)||r0(z,29,E);if(!Ke)return;const Gt=Na(B,z.name.text)?z.name.end:Ke.end;fe=jc(Ke.getStart(E),Gt)}if(j&&(Ne===void 0&&(Ne=B),Ne=`{${Ne}}`,typeof j!="boolean"&&(fe=af(j,E))),T&&ZJt(T)&&z){Ne===void 0&&(Ne=B);const Ke=ed(z.pos,E);let Gt="";Ke&&AX(Ke.end,Ke.parent,E)&&(Gt=";"),Gt+=`(await ${z.expression.getText()})`,Ne=k?`${Gt}${Ne}`:`${Gt}${ft?"?.":"."}${Ne}`;const Ie=ar(z.parent,Wx)?z.parent:z.expression;fe=jc(Ie.getStart(E),z.end)}if(qM(T)&&(Ae=[Hm(T.moduleSpecifier)],J&&({insertText:Ne,replacementSpan:fe}=E$t(B,J,T,K,E,Y,oe),Be=oe.includeCompletionsWithSnippetText?!0:void 0)),(T==null?void 0:T.kind)===64&&(De=!0),se===0&&d&&((ve=ed(d.pos,E,d))==null?void 0:ve.kind)!==28&&(cc(d.parent.parent)||Mm(d.parent.parent)||Of(d.parent.parent)||c5(d.parent)||((Se=Ln(d.parent,Gc))==null?void 0:Se.getLastToken(E))===d||mm(d.parent)&&o0(E,d.getEnd()).line!==o0(E,p).line)&&(We="ObjectLiteralMemberWithComma/",De=!0),oe.includeCompletionsWithClassMemberSnippets&&oe.includeCompletionsWithInsertText&&se===3&&d$t(t,f,E)){let Ke;const Gt=n0t(v,b,Y,oe,B,t,f,p,d,ge);if(Gt)({insertText:Ne,filterText:pe,isSnippet:Be,importAdder:Ke}=Gt),Ke!=null&&Ke.hasFixes()&&(De=!0,We="ClassMemberSnippet/");else return}if(T&&Ust(T)&&({insertText:Ne,isSnippet:Be,labelDetails:He}=T,oe.useLabelDetailsInCompletionEntries||(B=B+He.detail,He=void 0),We="ObjectLiteralMethodSnippet/",u=z1.SortBelow(u)),ae&&!Ce&&oe.includeCompletionsWithSnippetText&&oe.jsxAttributeCompletionStyle&&oe.jsxAttributeCompletionStyle!=="none"&&!(aE(f.parent)&&f.parent.initializer)){let Ke=oe.jsxAttributeCompletionStyle==="braces";const Gt=Ge.getTypeOfSymbolAtLocation(t,f);oe.jsxAttributeCompletionStyle==="auto"&&!(Gt.flags&528)&&!(Gt.flags&1048576&&Le(Gt.types,Yt=>!!(Yt.flags&528)))&&(Gt.flags&402653316||Gt.flags&1048576&&ye(Gt.types,Yt=>!!(Yt.flags&402686084||uSe(Yt)))?(Ne=`${z2(B)}=${OM(E,oe,"$1")}`,Be=!0):Ke=!0),Ke&&(Ne=`${z2(B)}={$1}`,Be=!0)}if(Ne!==void 0&&!oe.includeCompletionsWithInsertText)return;(Fee(T)||qM(T))&&(xe=u0t(T),De=!J);const je=Ln(f,Wq);if((je==null?void 0:je.kind)===275){const Ke=c2(B);je&&Ke&&(Ke===135||W0e(Ke))&&(Ne=`${B} as ${B}_`)}return{name:B,kind:D5.getSymbolKind(Ge,t,f),kindModifiers:D5.getSymbolModifiers(Ge,t),sortText:u,source:We,hasAction:De?!0:void 0,isRecommended:_$t(t,M,Ge)||void 0,insertText:Ne,filterText:pe,replacementSpan:fe,sourceDisplay:Ae,labelDetails:He,isSnippet:Be,isPackageJsonImport:qJt(T)||void 0,isImportStatementCompletion:!!J||void 0,data:xe,...ne?{symbol:t}:void 0}}function d$t(t,u,s){return eu(u)?!1:!!(t.flags&106500)&&(gr(u)||u.parent&&u.parent.parent&&qd(u.parent)&&u===u.parent.name&&u.parent.getLastToken(s)===u.parent.name&&gr(u.parent.parent)||u.parent&&NB(u)&&gr(u.parent))}function n0t(t,u,s,d,f,p,E,v,b,B){const k=Ln(E,gr);if(!k)return;let T,M=f;const z=f,j=u.getTypeChecker(),J=E.getSourceFile(),K=mpe({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:QH(g5(t,B==null?void 0:B.options))}),Y=M1.createImportAdder(J,u,d,t);let oe;if(d.includeCompletionsWithSnippetText){T=!0;const Se=q.createEmptyStatement();oe=q.createBlock([Se],!0),sce(Se,{kind:0,order:0})}else oe=q.createBlock([],!0);let se=0;const{modifiers:ge,range:ae,decorators:Ce}=h$t(b,J,v),ne=ge&64&&k.modifierFlagsCache&64;let ve=[];if(M1.addNewNodeForMemberSymbol(p,k,J,{program:u,host:t},d,Y,Se=>{let Ne=0;ne&&(Ne|=64),qd(Se)&&j.getMemberOverrideModifierStatus(k,Se,p)===1&&(Ne|=16),ve.length||(se=Se.modifierFlagsCache|Ne),Se=q.replaceModifiers(Se,se),ve.push(Se)},oe,M1.PreserveOptionalFlags.Property,!!ne),ve.length){const Se=p.flags&8192;let Ne=se|16|1;Se?Ne|=1024:Ne|=136;const pe=ge&Ne;if(ge&~Ne)return;if(se&4&&pe&1&&(se&=-5),pe!==0&&!(pe&1)&&(se&=-2),se|=pe,ve=ve.map(xe=>q.replaceModifiers(xe,se)),Ce!=null&&Ce.length){const xe=ve[ve.length-1];kk(xe)&&(ve[ve.length-1]=q.replaceDecoratorsAndModifiers(xe,Ce.concat(h2(xe)||[])))}const fe=131073;B?M=K.printAndFormatSnippetList(fe,q.createNodeArray(ve),J,B):M=K.printSnippetList(fe,q.createNodeArray(ve),J)}return{insertText:M,filterText:z,isSnippet:T,importAdder:Y,eraseRange:ae}}function h$t(t,u,s){if(!t||o0(u,s).line>o0(u,t.getEnd()).line)return{modifiers:0};let d=0,f,p;const E={pos:s,end:s};if(bo(t.parent)&&t.parent.modifiers&&(d|=eE(t.parent.modifiers)&98303,f=t.parent.modifiers.filter(p1)||[],E.pos=Math.min(E.pos,t.parent.modifiers.pos)),p=f$t(t)){const v=g7(p);d&v||(d|=v,E.pos=Math.min(E.pos,t.pos))}return{modifiers:d,decorators:f,range:E.pos!==s?E:void 0}}function f$t(t){if(Yo(t))return t.kind;if(at(t)){const u=Ev(t);if(u&&QD(u))return u}}function m$t(t,u,s,d,f,p,E,v){const b=E.includeCompletionsWithSnippetText||void 0;let B=u;const k=s.getSourceFile(),T=p$t(t,s,k,d,f,E);if(!T)return;const M=mpe({removeComments:!0,module:p.module,target:p.target,omitTrailingSemicolon:!1,newLine:QH(g5(f,v==null?void 0:v.options))});v?B=M.printAndFormatSnippetList(80,q.createNodeArray([T],!0),k,v):B=M.printSnippetList(80,q.createNodeArray([T],!0),k);const z=Kv({removeComments:!0,module:p.module,target:p.target,omitTrailingSemicolon:!0}),j=q.createMethodSignature(void 0,"",T.questionToken,T.typeParameters,T.parameters,T.type),J={detail:z.printNode(4,j,k)};return{isSnippet:b,insertText:B,labelDetails:J}}function p$t(t,u,s,d,f,p){const E=t.getDeclarations();if(!(E&&E.length))return;const v=d.getTypeChecker(),b=E[0],B=ol(qa(b),!1),k=v.getWidenedType(v.getTypeOfSymbolAtLocation(t,u)),M=33554432|(Vm(s,p)===0?268435456:0);switch(b.kind){case 171:case 172:case 173:case 174:{let z=k.flags&1048576&&k.types.length<10?v.getUnionType(k.types,2):k;if(z.flags&1048576){const oe=ei(z.types,se=>v.getSignaturesOfType(se,0).length>0);if(oe.length===1)z=oe[0];else return}if(v.getSignaturesOfType(z,0).length!==1)return;const J=v.typeToTypeNode(z,u,M,M1.getNoopSymbolTrackerWithResolver({program:d,host:f}));if(!J||!n3(J))return;let K;if(p.includeCompletionsWithSnippetText){const oe=q.createEmptyStatement();K=q.createBlock([oe],!0),sce(oe,{kind:0,order:0})}else K=q.createBlock([],!0);const Y=J.parameters.map(oe=>q.createParameterDeclaration(void 0,oe.dotDotDotToken,oe.name,void 0,void 0,oe.initializer));return q.createMethodDeclaration(void 0,void 0,B,void 0,void 0,Y,void 0,K)}default:return}}function mpe(t){let u;const s=nu.createWriter(r5(t)),d=Kv(t,s),f={...s,write:M=>p(M,()=>s.write(M)),nonEscapingWrite:s.write,writeLiteral:M=>p(M,()=>s.writeLiteral(M)),writeStringLiteral:M=>p(M,()=>s.writeStringLiteral(M)),writeSymbol:(M,z)=>p(M,()=>s.writeSymbol(M,z)),writeParameter:M=>p(M,()=>s.writeParameter(M)),writeComment:M=>p(M,()=>s.writeComment(M)),writeProperty:M=>p(M,()=>s.writeProperty(M))};return{printSnippetList:E,printAndFormatSnippetList:b,printNode:B,printAndFormatNode:T};function p(M,z){const j=z2(M);if(j!==M){const J=s.getTextPos();z();const K=s.getTextPos();u=Ei(u||(u=[]),{newText:j,span:{start:J,length:K-J}})}else z()}function E(M,z,j){const J=v(M,z,j);return u?nu.applyChanges(J,u):J}function v(M,z,j){return u=void 0,f.clear(),d.writeList(M,z,j,f),f.getText()}function b(M,z,j,J){const K={text:v(M,z,j),getLineAndCharacterOfPosition(ge){return o0(this,ge)}},Y=zX(J,j),oe=Ku(z,ge=>{const ae=nu.assignPositionsToNode(ge);return ld.formatNodeGivenIndentation(ae,K,j.languageVariant,0,0,{...J,options:Y})}),se=u?ac(an(oe,u),(ge,ae)=>G$(ge.span,ae.span)):oe;return nu.applyChanges(K.text,se)}function B(M,z,j){const J=k(M,z,j);return u?nu.applyChanges(J,u):J}function k(M,z,j){return u=void 0,f.clear(),d.writeNode(M,z,j,f),f.getText()}function T(M,z,j,J){const K={text:k(M,z,j),getLineAndCharacterOfPosition(ae){return o0(this,ae)}},Y=zX(J,j),oe=nu.assignPositionsToNode(z),se=ld.formatNodeGivenIndentation(oe,K,j.languageVariant,0,0,{...J,options:Y}),ge=u?ac(an(se,u),(ae,Ce)=>G$(ae.span,Ce.span)):se;return nu.applyChanges(K.text,ge)}}function u0t(t){const u=t.fileName?void 0:G4(t.moduleSymbol.name),s=t.isFromPackageJson?!0:void 0;return qM(t)?{exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,ambientModuleName:u,fileName:t.fileName,isPackageJsonImport:s}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:G4(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?!0:void 0}}function g$t(t,u,s){const d=t.exportName==="default",f=!!t.isPackageJsonImport;return Zst(t)?{kind:32,exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,symbolName:u,fileName:t.fileName,moduleSymbol:s,isDefaultExport:d,isFromPackageJson:f}:{kind:4,exportName:t.exportName,exportMapKey:t.exportMapKey,symbolName:u,fileName:t.fileName,moduleSymbol:s,isDefaultExport:d,isFromPackageJson:f}}function E$t(t,u,s,d,f,p,E){const v=u.replacementSpan,b=z2(OM(f,E,s.moduleSpecifier)),B=s.isDefaultExport?1:s.exportName==="export="?2:0,k=E.includeCompletionsWithSnippetText?"$1":"",T=M1.getImportKind(f,B,p,!0),M=u.couldBeTypeOnlyImportSpecifier,z=u.isTopLevelTypeOnly?` ${Jo(156)} `:" ",j=M?`${Jo(156)} `:"",J=d?";":"";switch(T){case 3:return{replacementSpan:v,insertText:`import${z}${z2(t)}${k} = require(${b})${J}`};case 1:return{replacementSpan:v,insertText:`import${z}${z2(t)}${k} from ${b}${J}`};case 2:return{replacementSpan:v,insertText:`import${z}* as ${z2(t)} from ${b}${J}`};case 0:return{replacementSpan:v,insertText:`import${z}{ ${j}${z2(t)}${k} } from ${b}${J}`}}}function r0t(t,u,s){return/^\d+$/.test(s)?s:OM(t,u,s)}function _$t(t,u,s){return t===u||!!(t.flags&1048576)&&s.getExportSymbolOfSymbol(t)===u}function hTe(t){if(Fee(t))return G4(t.moduleSymbol.name);if(qM(t))return t.moduleSpecifier;if((t==null?void 0:t.kind)===1)return"ThisProperty/";if((t==null?void 0:t.kind)===64)return"TypeOnlyAlias/"}function fTe(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce,ne,ve,Se=!1){const Ne=V0(),pe=O$t(d,f),fe=qH(E),xe=b.getTypeChecker(),Be=new Map;for(let Ae=0;AeIe.getSourceFile()===f.getSourceFile()));Be.set(ft,Yt),Nt(u,Gt,Aee,!0)}return k("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(V0()-Ne)),{has:Ae=>Be.has(Ae),add:Ae=>Be.set(Ae,!0)};function We(Ae,De){var He;let Ge=Ae.flags;if(!ca(f)){if(ec(f.parent))return!0;if(ar(pe,ua)&&Ae.valueDeclaration===pe)return!1;const ft=Ae.valueDeclaration??((He=Ae.declarations)==null?void 0:He[0]);if(pe&&ft&&(Al(pe)&&Al(ft)||eo(pe)&&eo(ft))){const je=ft.pos,Ke=eo(pe)?pe.parent.parameters:L7(pe.parent)?void 0:pe.parent.typeParameters;if(je>=pe.pos&&Ke&&jedTe(s,E,se)===f.name);return oe!==void 0?{type:"literal",literal:oe}:G(B,(se,ge)=>{const ae=z[ge],Ce=gpe(se,Is(v),ae,M,b.isJsxIdentifierExpected);return Ce&&Ce.name===f.name&&(f.source==="ClassMemberSnippet/"&&se.flags&106500||f.source==="ObjectLiteralMethodSnippet/"&&se.flags&8196||hTe(ae)===f.source||f.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:se,location:T,origin:ae,contextToken:j,previousToken:J,isJsxInitializer:K,isTypeOnlyLocation:Y}:void 0})||{type:"none"}}function v$t(t,u,s,d,f,p,E,v,b){const B=t.getTypeChecker(),k=t.getCompilerOptions(),{name:T,source:M,data:z}=f,{previousToken:j,contextToken:J}=ppe(d,s);if(Pk(s,d,j))return bpe.getStringLiteralCompletionDetails(T,s,d,j,B,k,p,b,v);const K=a0t(t,u,s,d,f,p,v);switch(K.type){case"request":{const{request:Y}=K;switch(Y.kind){case 1:return qv.getJSDocTagNameCompletionDetails(T);case 2:return qv.getJSDocTagCompletionDetails(T);case 3:return qv.getJSDocParameterNameCompletionDetails(T);case 4:return qe(Y.keywordCompletions,oe=>oe.name===T)?mTe(T,"keyword",5):void 0;default:return H.assertNever(Y)}}case"symbol":{const{symbol:Y,location:oe,contextToken:se,origin:ge,previousToken:ae}=K,{codeActions:Ce,sourceDisplay:ne}=C$t(T,oe,se,ge,Y,t,p,k,s,d,ae,E,v,z,M,b),ve=lTe(ge)?ge.symbolName:Y.name;return pTe(Y,ve,B,s,oe,b,Ce,ne)}case"literal":{const{literal:Y}=K;return mTe(dTe(s,v,Y),"string",typeof Y=="string"?8:7)}case"cases":{const Y=i0t(J.parent,s,v,t.getCompilerOptions(),p,t,void 0);if(Y!=null&&Y.importAdder.hasFixes()){const{entry:oe,importAdder:se}=Y,ge=nu.ChangeTracker.with({host:p,formatContext:E,preferences:v},se.writeFixes);return{name:oe.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:ge,description:Rk([F.Includes_imports_of_types_referenced_by_0,T])}]}}return{name:T,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return bTe().some(Y=>Y.name===T)?mTe(T,"keyword",5):void 0;default:H.assertNever(K)}}function mTe(t,u,s){return See(t,"",u,[bf(t,s)])}function pTe(t,u,s,d,f,p,E,v){const{displayParts:b,documentation:B,symbolKind:k,tags:T}=s.runWithCancellationToken(p,M=>D5.getSymbolDisplayPartsDocumentationAndSymbolKind(M,t,d,f,f,7));return See(u,D5.getSymbolModifiers(s,t),k,b,B,T,E,v)}function See(t,u,s,d,f,p,E,v){return{name:t,kindModifiers:u,kind:s,displayParts:d,documentation:f,tags:p,codeActions:E,source:v,sourceDisplay:v}}function C$t(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J){if(z!=null&&z.moduleSpecifier&&k&&g0t(s||k,b).replacementSpan)return{codeActions:void 0,sourceDisplay:[Hm(z.moduleSpecifier)]};if(j==="ClassMemberSnippet/"){const{importAdder:Ce,eraseRange:ne}=n0t(E,p,v,M,t,f,u,B,s,T);if(Ce||ne)return{sourceDisplay:void 0,codeActions:[{changes:nu.ChangeTracker.with({host:E,formatContext:T,preferences:M},Se=>{Ce&&Ce.writeFixes(Se),ne&&Se.deleteRange(b,ne)}),description:Rk([F.Includes_imports_of_types_referenced_by_0,t])}]}}if($st(d)){const Ce=M1.getPromoteTypeOnlyCompletionAction(b,d.declaration.name,p,E,T,M);return H.assertIsDefined(Ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[Ce],sourceDisplay:void 0}}if(j==="ObjectLiteralMemberWithComma/"&&s){const Ce=nu.ChangeTracker.with({host:E,formatContext:T,preferences:M},ne=>ne.insertText(b,s.end,","));if(Ce)return{sourceDisplay:void 0,codeActions:[{changes:Ce,description:Rk([F.Add_missing_comma_for_object_member_completion_0,t])}]}}if(!d||!(Fee(d)||qM(d)))return{codeActions:void 0,sourceDisplay:void 0};const K=d.isFromPackageJson?E.getPackageJsonAutoImportProvider().getTypeChecker():p.getTypeChecker(),{moduleSymbol:Y}=d,oe=K.getMergedSymbol(Q1(f.exportSymbol||f,K)),se=(s==null?void 0:s.kind)===30&&Ph(s.parent),{moduleSpecifier:ge,codeAction:ae}=M1.getImportCompletionAction(oe,Y,z==null?void 0:z.exportMapKey,b,t,se,E,p,T,k&&at(k)?k.getStart(b):B,M,J);return H.assert(!(z!=null&&z.moduleSpecifier)||ge===z.moduleSpecifier),{sourceDisplay:[Hm(ge)],codeActions:[ae]}}function b$t(t,u,s,d,f,p,E){const v=a0t(t,u,s,d,f,p,E);return v.type==="symbol"?v.symbol:void 0}function y$t(t,u,s){return G(u&&(u.isUnion()?u.types:[u]),d=>{const f=d&&d.symbol;return f&&f.flags&424&&!Wye(f)?gTe(f,t,s):void 0})}function k$t(t,u,s,d){const{parent:f}=t;switch(t.kind){case 80:return yX(t,d);case 64:switch(f.kind){case 260:return d.getContextualType(f.initializer);case 226:return d.getTypeAtLocation(f.left);case 291:return d.getContextualTypeForJsxAttribute(f);default:return}case 105:return d.getContextualType(f);case 84:const p=ar(f,AB);return p?_fe(p,d):void 0;case 19:return ZP(f)&&!u3(f.parent)&&!j2(f.parent)?d.getContextualTypeForJsxAttribute(f.parent):void 0;default:const E=TK.getArgumentInfoForCompletions(t,u,s);return E?d.getContextualTypeForArgumentAtIndex(E.invocation,E.argumentIndex+(t.kind===28?1:0)):kX(t.kind)&&tu(f)&&kX(f.operatorToken.kind)?d.getTypeAtLocation(f.left):d.getContextualType(t,4)||d.getContextualType(t)}}function gTe(t,u,s){const d=s.getAccessibleSymbolChain(t,u,67108863,!1);return d?Mn(d):t.parent&&(F$t(t.parent)?t:gTe(t.parent,u,s))}function F$t(t){var u;return!!((u=t.declarations)!=null&&u.some(s=>s.kind===312))}function o0t(t,u,s,d,f,p,E,v,b,B){const k=t.getTypeChecker(),T=t0t(s,d);let M=V0(),z=ba(s,f);u("getCompletionData: Get current token: "+(V0()-M)),M=V0();const j=f5(s,f,z);u("getCompletionData: Is inside comment: "+(V0()-M));let J=!1,K=!1;if(j){if(tSe(s,f)){if(s.text.charCodeAt(f-1)===64)return{kind:1};{const it=X4(f,s);if(!/[^*|\s(/)]/.test(s.text.substring(it,f)))return{kind:2}}}const X=w$t(z,f);if(X){if(X.tagName.pos<=f&&f<=X.tagName.end)return{kind:1};const it=ji(X);if(it&&(z=ba(s,f),(!z||!Q3(z)&&(z.parent.kind!==355||z.parent.name!==z))&&(J=Oe(it))),!J&&pg(X)&&(Yl(X.name)||X.name.pos<=f&&f<=X.name.end))return{kind:3,tag:X}}if(!J){u("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}M=V0();const Y=!J&&ph(s),oe=ppe(f,s),se=oe.previousToken;let ge=oe.contextToken;u("getCompletionData: Get previous token: "+(V0()-M));let ae=z,Ce,ne=!1,ve=!1,Se=!1,Ne=!1,pe=!1,fe=!1,xe,Be=rf(s,f),We=0,Ae=!1,De=0;if(ge){const X=g0t(ge,s);if(X.keywordCompletion){if(X.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[i$t(X.keywordCompletion)],isNewIdentifierLocation:X.isNewIdentifierLocation};We=u$t(X.keywordCompletion)}if(X.replacementSpan&&p.includeCompletionsForImportStatements&&p.includeCompletionsWithInsertText&&(De|=2,xe=X,Ae=X.isNewIdentifierLocation),!X.replacementSpan&&wa(ge))return u("Returning an empty list because completion was requested in an invalid position."),We?Xst(We,Y,vo()):void 0;let it=ge.parent;if(ge.kind===25||ge.kind===29)switch(ne=ge.kind===25,ve=ge.kind===29,it.kind){case 211:Ce=it,ae=Ce.expression;const Ct=vP(Ce);if(Yl(Ct)||(No(ae)||xo(ae))&&ae.end===ge.pos&&ae.getChildCount(s)&&Cr(ae.getChildren(s)).kind!==22)return;break;case 166:ae=it.left;break;case 267:ae=it.name;break;case 205:ae=it;break;case 236:ae=it.getFirstToken(s),H.assert(ae.kind===102||ae.kind===105);break;default:return}else if(!xe){if(it&&it.kind===211&&(ge=it,it=it.parent),z.parent===Be)switch(z.kind){case 32:(z.parent.kind===284||z.parent.kind===286)&&(Be=z);break;case 44:z.parent.kind===285&&(Be=z);break}switch(it.kind){case 287:ge.kind===44&&(Ne=!0,Be=ge);break;case 226:if(!p0t(it))break;case 285:case 284:case 286:fe=!0,ge.kind===30&&(Se=!0,Be=ge);break;case 294:case 293:(se.kind===20||se.kind===80&&se.parent.kind===291)&&(fe=!0);break;case 291:if(it.initializer===se&&se.endMk(X?v.getPackageJsonAutoImportProvider():t,v));if(ne||ve)xn();else if(Se)je=k.getJsxIntrinsicTagNamesAt(Be),H.assertEachIsDefined(je,"getJsxIntrinsicTagNames() should all be defined"),Fi(),Ge=1,We=0;else if(Ne){const X=ge.parent.parent.openingElement.tagName,it=k.getSymbolAtLocation(X);it&&(je=[it]),Ge=1,We=0}else if(!Fi())return We?Xst(We,Y,Ae):void 0;u("getCompletionData: Semantic work: "+(V0()-He));const It=se&&k$t(se,f,s,k),ht=!ar(se,t0)&&!fe?Ui(It&&(It.isUnion()?It.types:[It]),X=>X.isLiteral()&&!(X.flags&1024)?X.value:void 0):[],Ut=se&&It&&y$t(se,It,k);return{kind:0,symbols:je,completionKind:Ge,isInSnippetScope:K,propertyAccessToConvert:Ce,isNewIdentifierLocation:Ae,location:Be,keywordFilters:We,literals:ht,symbolToOriginInfoMap:Gt,recommendedCompletion:Ut,previousToken:se,contextToken:ge,isJsxInitializer:pe,insideJsDocTagTypeExpression:J,symbolToSortTextMap:Yt,isTypeOnlyLocation:st,isJsxIdentifierExpected:fe,isRightOfOpenTag:Se,isRightOfDotOrQuestionDot:ne||ve,importStatementCompletion:xe,hasUnresolvedAutoImports:Ze,flags:De};function Li(X){switch(X.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!X.constraint;default:return!1}}function ji(X){if(Li(X)){const it=gg(X)?X.constraint:X.typeExpression;return it&&it.kind===316?it:void 0}if(wB(X)||Lce(X))return X.class}function xn(){Ge=2;const X=Mx(ae),it=X&&!ae.isTypeOf||U_(ae.parent)||IH(ge,s,k),Ct=YQ(ae);if(om(ae)||X||Iu(ae)){const ct=Ec(ae.parent);ct&&(Ae=!0);let Qt=k.getSymbolAtLocation(ae);if(Qt&&(Qt=Q1(Qt,k),Qt.flags&1920)){const Ti=k.getExportsOfModule(Qt);H.assertEachIsDefined(Ti,"getExportsOfModule() should all be defined");const $i=Ru=>k.isValidPropertyAccess(X?ae:ae.parent,Ru.name),Bn=Ru=>_Te(Ru,k),hu=ct?Ru=>{var Er;return!!(Ru.flags&1920)&&!((Er=Ru.declarations)!=null&&Er.every(tr=>tr.parent===ae.parent))}:Ct?Ru=>Bn(Ru)||$i(Ru):it||J?Bn:$i;for(const Ru of Ti)hu(Ru)&&je.push(Ru);if(!it&&!J&&Qt.declarations&&Qt.declarations.some(Ru=>Ru.kind!==312&&Ru.kind!==267&&Ru.kind!==266)){let Ru=k.getTypeOfSymbolAtLocation(Qt,ae).getNonOptionalType(),Er=!1;if(Ru.isNullableType()){const tr=ne&&!ve&&p.includeAutomaticOptionalChainCompletions!==!1;(tr||ve)&&(Ru=Ru.getNonNullableType(),tr&&(Er=!0))}Un(Ru,!!(ae.flags&65536),Er)}return}}if(!it||sk(ae)){k.tryGetThisTypeAt(ae,!1);let ct=k.getTypeAtLocation(ae).getNonOptionalType();if(it)Un(ct.getNonNullableType(),!1,!1);else{let Qt=!1;if(ct.isNullableType()){const Ti=ne&&!ve&&p.includeAutomaticOptionalChainCompletions!==!1;(Ti||ve)&&(ct=ct.getNonNullableType(),Ti&&(Qt=!0))}Un(ct,!!(ae.flags&65536),Qt)}}}function Un(X,it,Ct){Ae=!!X.getStringIndexType(),ve&&qe(X.getCallSignatures())&&(Ae=!0);const ct=ae.kind===205?ae:ae.parent;if(T)for(const Qt of X.getApparentProperties())k.isValidPropertyAccessForCompletions(ct,X,Qt)&&rn(Qt,!1,Ct);else je.push(...ei(Dpe(X,k),Qt=>k.isValidPropertyAccessForCompletions(ct,X,Qt)));if(it&&p.includeCompletionsWithInsertText){const Qt=k.getPromisedTypeOfPromise(X);if(Qt)for(const Ti of Qt.getApparentProperties())k.isValidPropertyAccessForCompletions(ct,Qt,Ti)&&rn(Ti,!0,Ct)}}function rn(X,it,Ct){var ct;const Qt=G(X.declarations,hu=>ar(qa(hu),Ls));if(Qt){const hu=Ni(Qt.expression),Ru=hu&&k.getSymbolAtLocation(hu),Er=Ru&&gTe(Ru,ge,k),tr=Er&&qo(Er);if(tr&&Pp(Ie,tr)){const da=je.length;je.push(Er);const Wu=Er.parent;if(!Wu||!jH(Wu)||k.tryGetMemberInModuleExportsAndProperties(Er.name,Wu)!==Er)Gt[da]={kind:Bn(2)};else{const ja=Md(G4(Wu.name))?(ct=$U(Wu))==null?void 0:ct.fileName:void 0,{moduleSpecifier:Tn}=(Ke||(Ke=M1.createImportSpecifierResolver(s,t,v,p))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:ja,isFromPackageJson:!1,moduleSymbol:Wu,symbol:Er,targetFlags:Q1(Er,k).flags}],f,Bv(Be))||{};if(Tn){const Rr={kind:Bn(6),moduleSymbol:Wu,isDefaultExport:!1,symbolName:Er.name,exportName:Er.name,fileName:ja,moduleSpecifier:Tn};Gt[da]=Rr}}}else if(p.includeCompletionsWithInsertText){if(tr&&Ie.has(tr))return;$i(X),Ti(X),je.push(X)}}else $i(X),Ti(X),je.push(X);function Ti(hu){z$t(hu)&&(Yt[qo(hu)]=z1.LocalDeclarationPriority)}function $i(hu){p.includeCompletionsWithInsertText&&(it&&Pp(Ie,qo(hu))?Gt[je.length]={kind:Bn(8)}:Ct&&(Gt[je.length]={kind:16}))}function Bn(hu){return Ct?hu|16:hu}}function Ni(X){return at(X)?X:Iu(X)?Ni(X.expression):void 0}function Fi(){return(Et()||Mt()||Fr()||qt()||Xt()||Qu()||Pe()||aa()||(Ba(),1))===1}function Qu(){return gt(ge)?(Ge=5,Ae=!0,We=4,1):0}function aa(){const X=me(ge),it=X&&k.getContextualType(X.attributes);if(!it)return 0;const Ct=X&&k.getContextualType(X.attributes,4);return je=an(je,de(_pe(it,Ct,X.attributes,k),X.attributes.properties)),on(),Ge=3,Ae=!1,1}function Fr(){return xe?(Ae=!0,bn(),1):0}function Ba(){We=ii(ge)?5:1,Ge=1,Ae=vo(),se!==ge&&H.assert(!!se,"Expected 'contextToken' to be defined when different from 'previousToken'.");const X=se!==ge?se.getStart():f,it=ra(ge,X,s)||s;K=jn(it);const Ct=(st?0:111551)|788968|1920|2097152,ct=se&&!Bv(se);je=an(je,k.getSymbolsInScope(it,Ct)),H.assertEachIsDefined(je,"getSymbolsInScope() should all be defined");for(let Qt=0;Qt$i.getSourceFile()===s)&&(Yt[qo(Ti)]=z1.GlobalsOrKeywords),ct&&!(Ti.flags&111551)){const $i=Ti.declarations&&Le(Ti.declarations,PU);if($i){const Bn={kind:64,declaration:$i};Gt[Qt]=Bn}}}if(p.includeCompletionsWithInsertText&&it.kind!==312){const Qt=k.tryGetThisTypeAt(it,!1,gr(it.parent)?it:void 0);if(Qt&&!M$t(Qt,s,k))for(const Ti of Dpe(Qt,k))Gt[je.length]={kind:1},je.push(Ti),Yt[qo(Ti)]=z1.SuggestedClassMembers}bn(),st&&(We=ge&&qy(ge.parent)?6:7)}function bt(){return xe?!0:ft||!p.includeCompletionsForModuleExports?!1:s.externalModuleIndicator||s.commonJsModuleIndicator||nfe(t.getCompilerOptions())?!0:oSe(t)}function jn(X){switch(X.kind){case 312:case 228:case 294:case 241:return!0;default:return na(X)}}function Nn(){return J||!!xe&&p2(Be.parent)||!Ai(ge)&&(IH(ge,s,k)||U_(Be)||Dn(ge))}function Ai(X){return X&&(X.kind===114&&(X.parent.kind===186||kB(X.parent))||X.kind===131&&X.parent.kind===182)}function Dn(X){if(X){const it=X.parent.kind;switch(X.kind){case 59:return it===172||it===171||it===169||it===260||u7(it);case 64:return it===265;case 130:return it===234;case 30:return it===183||it===216;case 96:return it===168;case 152:return it===238}}return!1}function bn(){var X,it;if(!bt()||(H.assert(!(E!=null&&E.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),E&&!E.source))return;De|=1;const ct=se===ge&&xe?"":se&&at(se)?se.text.toLowerCase():"",Qt=(X=v.getModuleSpecifierCache)==null?void 0:X.call(v),Ti=XH(s,v,t,p,B),$i=(it=v.getPackageJsonAutoImportProvider)==null?void 0:it.call(v),Bn=E?void 0:VM(s,p,v);qst("collectAutoImports",v,Ke||(Ke=M1.createImportSpecifierResolver(s,t,v,p)),t,f,p,!!xe,Bv(Be),Ru=>{Ti.search(s.path,Se,(Er,tr)=>{if(!Tm(Er,Is(v.getCompilationSettings()))||!E&&h7(Er)||!st&&!xe&&!(tr&111551)||st&&!(tr&790504))return!1;const da=Er.charCodeAt(0);return Se&&(da<65||da>90)?!1:E?!0:v0t(Er,ct)},(Er,tr,da,Wu)=>{if(E&&!qe(Er,An=>E.source===G4(An.moduleSymbol.name))||(Er=ei(Er,hu),!Er.length))return;const ja=Ru.tryResolve(Er,da)||{};if(ja==="failed")return;let Tn=Er[0],Rr;ja!=="skipped"&&({exportInfo:Tn=Er[0],moduleSpecifier:Rr}=ja);const rs=Tn.exportKind===1,So=rs&&oB(Tn.symbol)||Tn.symbol;iu(So,{kind:Rr?32:4,moduleSpecifier:Rr,symbolName:tr,exportMapKey:Wu,exportName:Tn.exportKind===2?"export=":Tn.symbol.name,fileName:Tn.moduleFileName,isDefaultExport:rs,moduleSymbol:Tn.moduleSymbol,isFromPackageJson:Tn.isFromPackageJson})}),Ze=Ru.skippedAny(),De|=Ru.resolvedAny()?8:0,De|=Ru.resolvedBeyondLimit()?16:0});function hu(Ru){const Er=ar(Ru.moduleSymbol.valueDeclaration,ca);if(!Er){const tr=G4(Ru.moduleSymbol.name);return a3.nodeCoreModules.has(tr)&&Na(tr,"node:")!==MX(s,t)?!1:Bn?Bn.allowsImportingAmbientModule(Ru.moduleSymbol,St(Ru.isFromPackageJson)):!0}return Pfe(Ru.isFromPackageJson?$i:t,s,Er,p,Bn,St(Ru.isFromPackageJson),Qt)}}function iu(X,it){const Ct=qo(X);Yt[Ct]!==z1.GlobalsOrKeywords&&(Gt[je.length]=it,Yt[Ct]=xe?z1.LocationPriority:z1.AutoImportSuggestions,je.push(X))}function oa(X,it){eu(Be)||X.forEach(Ct=>{if(!xa(Ct))return;const ct=gpe(Ct,Is(d),void 0,0,!1);if(!ct)return;const{name:Qt}=ct,Ti=m$t(Ct,Qt,it,t,v,d,p,b);if(!Ti)return;const $i={kind:128,...Ti};De|=32,Gt[je.length]=$i,je.push(Ct)})}function xa(X){return!!(X.flags&8196)}function ra(X,it,Ct){let ct=X;for(;ct&&!Khe(ct,it,Ct);)ct=ct.parent;return ct}function wa(X){const it=V0(),Ct=Qe(X)||ni(X)||jt(X)||Zo(X)||QZ(X);return u("getCompletionsAtPosition: isCompletionListBlocker: "+(V0()-it)),Ct}function Zo(X){if(X.kind===12)return!0;if(X.kind===32&&X.parent){if(Be===X.parent&&(Be.kind===286||Be.kind===285))return!1;if(X.parent.kind===286)return Be.parent.kind!==286;if(X.parent.kind===287||X.parent.kind===285)return!!X.parent.parent&&X.parent.parent.kind===284}return!1}function vo(){if(ge){const X=ge.parent.kind,it=Epe(ge);switch(it){case 28:return X===213||X===176||X===214||X===209||X===226||X===184||X===210;case 21:return X===213||X===176||X===214||X===217||X===196;case 23:return X===209||X===181||X===167;case 144:case 145:case 102:return!0;case 25:return X===267;case 19:return X===263||X===210;case 64:return X===260||X===226;case 16:return X===228;case 17:return X===239;case 134:return X===174||X===304;case 42:return X===174}if(Bee(it))return!0}return!1}function Qe(X){return(fce(X)||$se(X))&&(PH(X,f)||f===X.end&&(!!X.isUnterminated||fce(X)))}function Et(){const X=N$t(ge);if(!X)return 0;const Ct=(bB(X.parent)?X.parent:void 0)||X,ct=m0t(Ct,k);if(!ct)return 0;const Qt=k.getTypeFromTypeNode(Ct),Ti=Dpe(ct,k),$i=Dpe(Qt,k),Bn=new Set;return $i.forEach(hu=>Bn.add(hu.escapedName)),je=an(je,ei(Ti,hu=>!Bn.has(hu.escapedName))),Ge=0,Ae=!0,1}function Mt(){const X=je.length,it=A$t(ge,f,s);if(!it)return 0;Ge=0;let Ct,ct;if(it.kind===210){const Qt=I$t(it,k);if(Qt===void 0)return it.flags&67108864?2:(ft=!0,0);const Ti=k.getContextualType(it,4),$i=(Ti||Qt).getStringIndexType(),Bn=(Ti||Qt).getNumberIndexType();if(Ae=!!$i||!!Bn,Ct=_pe(Qt,Ti,it,k),ct=it.properties,Ct.length===0&&!Bn)return ft=!0,0}else{H.assert(it.kind===206),Ae=!1;const Qt=QE(it.parent);if(!K8(Qt))return H.fail("Root declaration is not variable-like.");let Ti=Lx(Qt)||!!h1(Qt)||Qt.parent.parent.kind===250;if(!Ti&&Qt.kind===169&&(Wt(Qt.parent)?Ti=!!k.getContextualType(Qt.parent):(Qt.parent.kind===174||Qt.parent.kind===178)&&(Ti=Wt(Qt.parent.parent)&&!!k.getContextualType(Qt.parent.parent))),Ti){const $i=k.getTypeAtLocation(it);if(!$i)return 2;Ct=k.getPropertiesOfType($i).filter(Bn=>k.isPropertyAccessible(it,!1,!1,$i,Bn)),ct=it.elements}}if(Ct&&Ct.length>0){const Qt=Ji(Ct,H.checkDefined(ct));je=an(je,Qt),on(),it.kind===210&&p.includeCompletionsWithObjectLiteralMethodSnippets&&p.includeCompletionsWithInsertText&&(te(X),oa(Qt,it))}return 1}function qt(){if(!ge)return 0;const X=ge.kind===19||ge.kind===28?ar(ge.parent,Wq):fX(ge)?ar(ge.parent.parent,Wq):void 0;if(!X)return 0;fX(ge)||(We=8);const{moduleSpecifier:it}=X.kind===275?X.parent.parent:X.parent;if(!it)return Ae=!0,X.kind===275?2:0;const Ct=k.getSymbolAtLocation(it);if(!Ct)return Ae=!0,2;Ge=3,Ae=!1;const ct=k.getExportsAndPropertiesOfModule(Ct),Qt=new Set(X.elements.filter($i=>!Oe($i)).map($i=>($i.propertyName||$i.name).escapedText)),Ti=ct.filter($i=>$i.escapedName!=="default"&&!Qt.has($i.escapedName));return je=an(je,Ti),Ti.length||(We=0),1}function Xt(){var X;const it=ge&&(ge.kind===19||ge.kind===28)?ar(ge.parent,Q4):void 0;if(!it)return 0;const Ct=Ln(it,lg(ca,Ec));return Ge=5,Ae=!1,(X=Ct.locals)==null||X.forEach((ct,Qt)=>{var Ti,$i;je.push(ct),($i=(Ti=Ct.symbol)==null?void 0:Ti.exports)!=null&&$i.has(Qt)&&(Yt[qo(ct)]=z1.OptionalMember)}),1}function Pe(){const X=L$t(s,ge,Be,f);if(!X)return 0;if(Ge=3,Ae=!0,We=ge.kind===42?0:gr(X)?2:3,!gr(X))return 1;const it=ge.kind===27?ge.parent.parent:ge.parent;let Ct=qd(it)?gh(it):0;if(ge.kind===80&&!Oe(ge))switch(ge.getText()){case"private":Ct=Ct|2;break;case"static":Ct=Ct|256;break;case"override":Ct=Ct|16;break}if(Ml(it)&&(Ct|=256),!(Ct&2)){const ct=gr(X)&&Ct&16?jy(Yg(X)):nP(X),Qt=Ku(ct,Ti=>{const $i=k.getTypeAtLocation(Ti);return Ct&256?($i==null?void 0:$i.symbol)&&k.getPropertiesOfType(k.getTypeOfSymbolAtLocation($i.symbol,X)):$i&&k.getPropertiesOfType($i)});je=an(je,we(Qt,X.members,Ct)),L(je,(Ti,$i)=>{const Bn=Ti==null?void 0:Ti.valueDeclaration;if(Bn&&qd(Bn)&&Bn.name&&Ls(Bn.name)){const hu={kind:512,symbolName:k.symbolToString(Ti)};Gt[$i]=hu}})}return 1}function et(X){return!!X.parent&&eo(X.parent)&&dc(X.parent.parent)&&(jN(X.kind)||Q3(X))}function gt(X){if(X){const it=X.parent;switch(X.kind){case 21:case 28:return dc(X.parent)?X.parent:void 0;default:if(et(X))return it.parent}}}function ii(X){if(X){let it;const Ct=Ln(X.parent,ct=>gr(ct)?"quit":K0(ct)&&it===ct.body?!0:(it=ct,!1));return Ct&&Ct}}function me(X){if(X){const it=X.parent;switch(X.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(it&&(it.kind===285||it.kind===286)){if(X.kind===32){const Ct=ed(X.pos,s,void 0);if(!it.typeArguments||Ct&&Ct.kind===44)break}return it}else if(it.kind===291)return it.parent.parent;break;case 11:if(it&&(it.kind===291||it.kind===293))return it.parent.parent;break;case 20:if(it&&it.kind===294&&it.parent&&it.parent.kind===291)return it.parent.parent.parent;if(it&&it.kind===293)return it.parent.parent;break}}}function ni(X){const it=X.parent,Ct=it.kind;switch(X.kind){case 28:return Ct===260||pi(X)||Ct===243||Ct===266||mt(Ct)||Ct===264||Ct===207||Ct===265||gr(it)&&!!it.typeParameters&&it.typeParameters.end>=X.pos;case 25:return Ct===207;case 59:return Ct===208;case 23:return Ct===207;case 21:return Ct===299||mt(Ct);case 19:return Ct===266;case 30:return Ct===263||Ct===231||Ct===264||Ct===265||u7(Ct);case 126:return Ct===172&&!gr(it.parent);case 26:return Ct===169||!!it.parent&&it.parent.kind===207;case 125:case 123:case 124:return Ct===169&&!dc(it.parent);case 130:return Ct===276||Ct===281||Ct===274;case 139:case 153:return!xpe(X);case 80:if(Ct===276&&X===it.name&&X.text==="type")return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ct!==276;case 42:return xo(X.parent)&&!cc(X.parent)}if(Bee(Epe(X))&&xpe(X)||et(X)&&(!at(X)||jN(Epe(X))||Oe(X)))return!1;switch(Epe(X)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return bo(X.parent)}if(Ln(X.parent,gr)&&X===se&&_i(X,f))return!1;const Qt=yv(X.parent,172);if(Qt&&X!==se&&gr(se.parent.parent)&&f<=se.end){if(_i(X,se.end))return!1;if(X.kind!==64&&(dH(Qt)||HU(Qt)))return!0}return Q3(X)&&!mm(X.parent)&&!aE(X.parent)&&!((gr(X.parent)||Dh(X.parent)||Al(X.parent))&&(X!==se||f>se.end))}function _i(X,it){return X.kind!==64&&(X.kind===27||!$4(X.end,it,s))}function mt(X){return u7(X)&&X!==176}function jt(X){if(X.kind===9){const it=X.getFullText();return it.charAt(it.length-1)==="."}return!1}function pi(X){return X.parent.kind===261&&!IH(X,s,k)}function Ji(X,it){if(it.length===0)return X;const Ct=new Set,ct=new Set;for(const Ti of it){if(Ti.kind!==303&&Ti.kind!==304&&Ti.kind!==208&&Ti.kind!==174&&Ti.kind!==177&&Ti.kind!==178&&Ti.kind!==305||Oe(Ti))continue;let $i;if(c5(Ti))Yi(Ti,Ct);else if(Rs(Ti)&&Ti.propertyName)Ti.propertyName.kind===80&&($i=Ti.propertyName.escapedText);else{const Bn=qa(Ti);$i=Bn&&Qg(Bn)?aP(Bn):void 0}$i!==void 0&&ct.add($i)}const Qt=X.filter(Ti=>!ct.has(Ti.escapedName));return le(Ct,Qt),Qt}function Yi(X,it){const Ct=X.expression,ct=k.getSymbolAtLocation(Ct),Qt=ct&&k.getTypeOfSymbolAtLocation(ct,Ct),Ti=Qt&&Qt.properties;Ti&&Ti.forEach($i=>{it.add($i.name)})}function on(){je.forEach(X=>{if(X.flags&16777216){const it=qo(X);Yt[it]=Yt[it]??z1.OptionalMember}})}function le(X,it){if(X.size!==0)for(const Ct of it)X.has(Ct.name)&&(Yt[qo(Ct)]=z1.MemberDeclaredBySpreadAssignment)}function te(X){for(let it=X;it!ct.has(Qt.escapedName)&&!!Qt.declarations&&!(s4(Qt)&2)&&!(Qt.valueDeclaration&&mh(Qt.valueDeclaration)))}function de(X,it){const Ct=new Set,ct=new Set;for(const Ti of it)Oe(Ti)||(Ti.kind===291?Ct.add(PP(Ti.name)):j7(Ti)&&Yi(Ti,ct));const Qt=X.filter(Ti=>!Ct.has(Ti.escapedName));return le(ct,Qt),Qt}function Oe(X){return X.getStart(s)<=f&&f<=X.getEnd()}}function A$t(t,u,s){var d;if(t){const{parent:f}=t;switch(t.kind){case 19:case 28:if(Cs(f)||Mp(f))return f;break;case 42:return cc(f)?ar(f.parent,Cs):void 0;case 134:return ar(f.parent,Cs);case 80:if(t.text==="async"&&mm(t.parent))return t.parent.parent;{if(Cs(t.parent.parent)&&(c5(t.parent)||mm(t.parent)&&o0(s,t.getEnd()).line!==o0(s,u).line))return t.parent.parent;const E=Ln(f,Gc);if((E==null?void 0:E.getLastToken(s))===t&&Cs(E.parent))return E.parent}break;default:if((d=f.parent)!=null&&d.parent&&(cc(f.parent)||Mm(f.parent)||Of(f.parent))&&Cs(f.parent.parent))return f.parent.parent;if(c5(f)&&Cs(f.parent))return f.parent;const p=Ln(f,Gc);if(t.kind!==59&&(p==null?void 0:p.getLastToken(s))===t&&Cs(p.parent))return p.parent}}}function ppe(t,u){const s=ed(t,u);return s&&t<=s.end&&(G_(s)||nf(s.kind))?{contextToken:ed(s.getFullStart(),u,void 0),previousToken:s}:{contextToken:s,previousToken:s}}function s0t(t,u,s,d){const f=u.isPackageJsonImport?d.getPackageJsonAutoImportProvider():s,p=f.getTypeChecker(),E=u.ambientModuleName?p.tryFindAmbientModule(u.ambientModuleName):u.fileName?p.getMergedSymbol(H.checkDefined(f.getSourceFile(u.fileName)).symbol):void 0;if(!E)return;let v=u.exportName==="export="?p.resolveExternalModuleSymbol(E):p.tryGetMemberInModuleExportsAndProperties(u.exportName,E);return v?(v=u.exportName==="default"&&oB(v)||v,{symbol:v,origin:g$t(u,t,E)}):void 0}function gpe(t,u,s,d,f){if(QJt(s))return;const p=UJt(s)?s.symbolName:t.name;if(p===void 0||t.flags&1536&&gj(p.charCodeAt(0))||Mj(t))return;const E={name:p,needsConvertPropertyAccess:!1};if(Tm(p,u,f?1:0)||t.valueDeclaration&&mh(t.valueDeclaration))return E;switch(d){case 3:return lTe(s)?{name:s.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(p),needsConvertPropertyAccess:!1};case 2:case 1:return p.charCodeAt(0)===32?void 0:{name:p,needsConvertPropertyAccess:!0};case 5:case 4:return E;default:H.assertNever(d)}}function l0t(t,u){if(!u)return c0t(t);const s=t+8+1;return wee[s]||(wee[s]=c0t(t).filter(d=>!S$t(c2(d.name))))}function c0t(t){return wee[t]||(wee[t]=bTe().filter(u=>{const s=c2(u.name);switch(t){case 0:return!1;case 1:return h0t(s)||s===138||s===144||s===156||s===145||s===128||NM(s)&&s!==157;case 5:return h0t(s);case 2:return Bee(s);case 3:return d0t(s);case 4:return jN(s);case 6:return NM(s)||s===87;case 7:return NM(s);case 8:return s===156;default:return H.assertNever(t)}}))}function S$t(t){switch(t){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function d0t(t){return t===148}function Bee(t){switch(t){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Use(t)}}function h0t(t){return t===134||t===135||t===130||t===152||t===156||!kq(t)&&!Bee(t)}function Epe(t){return at(t)?Ev(t)??0:t.kind}function B$t(t,u){const s=[];if(t){const d=t.getSourceFile(),f=t.parent,p=d.getLineAndCharacterOfPosition(t.end).line,E=d.getLineAndCharacterOfPosition(u).line;(Ad(f)||Wc(f)&&f.moduleSpecifier)&&t===f.moduleSpecifier&&p===E&&s.push({name:Jo(132),kind:"keyword",kindModifiers:"",sortText:z1.GlobalsOrKeywords})}return s}function w$t(t,u){return Ln(t,s=>M8(s)&&NH(s,u)?!0:Rp(s)?"quit":!1)}function _pe(t,u,s,d){const f=u&&u!==t,p=f&&!(u.flags&3)?d.getUnionType([t,u]):t,E=T$t(p,s,d);return p.isClass()&&f0t(E)?[]:f?ei(E,v):E;function v(b){return S(b.declarations)?qe(b.declarations,B=>B.parent!==s):!0}}function T$t(t,u,s){return t.isUnion()?s.getAllPossiblePropertiesOfTypes(ei(t.types,d=>!(d.flags&402784252||s.isArrayLikeType(d)||s.isTypeInvalidDueToUnionDiscriminant(d,u)||s.typeHasCallOrConstructSignatures(d)||d.isClass()&&f0t(d.getApparentProperties())))):t.getApparentProperties()}function f0t(t){return qe(t,u=>!!(s4(u)&6))}function Dpe(t,u){return t.isUnion()?H.checkEachDefined(u.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):H.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function L$t(t,u,s,d){switch(s.kind){case 358:return ar(s.parent,_7);case 1:const f=ar(Yu(Lo(s.parent,ca).statements),_7);if(f&&!r0(f,20,t))return f;break;case 81:if(ar(s.parent,bo))return Ln(s,gr);break;case 80:{if(Ev(s)||bo(s.parent)&&s.parent.initializer===s)return;if(xpe(s))return Ln(s,_7)}}if(u){if(s.kind===137||at(u)&&bo(u.parent)&&gr(s))return Ln(u,gr);switch(u.kind){case 64:return;case 27:case 20:return xpe(s)&&s.parent.name===s?s.parent.parent:ar(s,_7);case 19:case 28:return ar(u.parent,_7);default:if(_7(s)){if(o0(t,u.getEnd()).line!==o0(t,d).line)return s;const f=gr(u.parent.parent)?Bee:d0t;return f(u.kind)||u.kind===42||at(u)&&f(Ev(u)??0)?u.parent.parent:void 0}return}}}function N$t(t){if(!t)return;const u=t.parent;switch(t.kind){case 19:if(hm(u))return u;break;case 27:case 28:case 80:if(u.kind===171&&hm(u.parent))return u.parent;break}}function m0t(t,u){if(!t)return;if(Qr(t)&&KU(t.parent))return u.getTypeArgumentConstraint(t);const s=m0t(t.parent,u);if(s)switch(t.kind){case 171:return u.getTypeOfPropertyOfContextualType(s,t.symbol.escapedName);case 193:case 187:case 192:return s}}function xpe(t){return t.parent&&MU(t.parent)&&_7(t.parent.parent)}function P$t(t,u,s,d){switch(u){case".":case"@":return!0;case'"':case"'":case"`":return!!s&&kSe(s)&&d===s.getStart(t)+1;case"#":return!!s&&Xr(s)&&!!Zd(s);case"<":return!!s&&s.kind===30&&(!tu(s.parent)||p0t(s.parent));case"/":return!!s&&(t0(s)?!!kj(s):s.kind===44&&O2(s.parent));case" ":return!!s&&HP(s)&&s.parent.kind===312;default:return H.assertNever(u)}}function p0t({left:t}){return Yl(t)}function M$t(t,u,s){const d=s.resolveName("self",void 0,111551,!1);if(d&&s.getTypeOfSymbolAtLocation(d,u)===t)return!0;const f=s.resolveName("global",void 0,111551,!1);if(f&&s.getTypeOfSymbolAtLocation(f,u)===t)return!0;const p=s.resolveName("globalThis",void 0,111551,!1);return!!(p&&s.getTypeOfSymbolAtLocation(p,u)===t)}function z$t(t){return!!(t.valueDeclaration&&gh(t.valueDeclaration)&256&&gr(t.valueDeclaration.parent))}function I$t(t,u){const s=u.getContextualType(t);if(s)return s;const d=t5(t.parent);if(tu(d)&&d.operatorToken.kind===64&&t===d.left)return u.getTypeAtLocation(d);if(Wt(d))return u.getContextualType(d)}function g0t(t,u){var s,d,f;let p,E=!1;const v=b();return{isKeywordOnlyCompletion:E,keywordCompletion:p,isNewIdentifierLocation:!!(v||p===156),isTopLevelTypeOnly:!!((d=(s=ar(v,Ad))==null?void 0:s.importClause)!=null&&d.isTypeOnly)||!!((f=ar(v,g1))!=null&&f.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!v&&_0t(v,t),replacementSpan:R$t(v)};function b(){const B=t.parent;if(g1(B)){const k=B.getLastToken(u);if(at(t)&&k!==t){p=161,E=!0;return}return p=t.kind===156?void 0:156,ETe(B.moduleReference)?B:void 0}if(_0t(B,t)&&D0t(B.parent))return B;if(nD(B)||Gx(B)){if(!B.parent.isTypeOnly&&(t.kind===19||t.kind===102||t.kind===28)&&(p=156),D0t(B))if(t.kind===20||t.kind===80)E=!0,p=161;else return B.parent.parent;return}if(HP(t)&&ca(B))return p=156,t;if(HP(t)&&Ad(B))return p=156,ETe(B.moduleSpecifier)?B:void 0}}function R$t(t){var u;if(!t)return;const s=Ln(t,lg(Ad,g1))??t,d=s.getSourceFile();if(ck(s,d))return af(s,d);H.assert(s.kind!==102&&s.kind!==276);const f=s.kind===272?E0t((u=s.importClause)==null?void 0:u.namedBindings)??s.moduleSpecifier:s.moduleReference,p={pos:s.getFirstToken().getStart(),end:f.pos};if(ck(p,d))return Ux(p)}function E0t(t){var u;return Le((u=ar(t,nD))==null?void 0:u.elements,s=>{var d;return!s.propertyName&&h7(s.name.text)&&((d=ed(s.name.pos,t.getSourceFile(),t))==null?void 0:d.kind)!==28})}function _0t(t,u){return Cf(t)&&(t.isTypeOnly||u===t.name&&fX(u))}function D0t(t){if(!ETe(t.parent.parent.moduleSpecifier)||t.parent.name)return!1;if(nD(t)){const u=E0t(t);return(u?t.elements.indexOf(u):t.elements.length)<2}return!0}function ETe(t){var u;return Yl(t)?!0:!((u=ar(u_(t)?t.expression:t,t0))!=null&&u.text)}function O$t(t,u){if(!t)return;const s=Ln(t,f=>C2(f)||x0t(f)||Fo(f)?"quit":(eo(f)||Al(f))&&!pk(f.parent)),d=Ln(u,f=>C2(f)||x0t(f)||Fo(f)?"quit":ua(f));return s||d}function x0t(t){return t.parent&&G0(t.parent)&&(t.parent.body===t||t.kind===39)}function _Te(t,u,s=new Map){return d(t)||d(Q1(t.exportSymbol||t,u));function d(f){return!!(f.flags&788968)||u.isUnknownSymbol(f)||!!(f.flags&1536)&&Pp(s,qo(f))&&u.getExportsOfModule(f).some(p=>_Te(p,u,s))}}function j$t(t,u){const s=Q1(t,u).declarations;return!!S(s)&&ye(s,PX)}function v0t(t,u){if(u.length===0)return!0;let s=!1,d,f=0;const p=t.length;for(let E=0;E(t.ThisProperty="ThisProperty/",t.ClassMemberSnippet="ClassMemberSnippet/",t.TypeOnlyAlias="TypeOnlyAlias/",t.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",t.SwitchCases="SwitchCases/",t.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",t))(xTe||{}),vTe=(t=>(t[t.ThisType=1]="ThisType",t[t.SymbolMember=2]="SymbolMember",t[t.Export=4]="Export",t[t.Promise=8]="Promise",t[t.Nullable=16]="Nullable",t[t.ResolvedExport=32]="ResolvedExport",t[t.TypeOnlyAlias=64]="TypeOnlyAlias",t[t.ObjectLiteralMethod=128]="ObjectLiteralMethod",t[t.Ignore=256]="Ignore",t[t.ComputedPropertyName=512]="ComputedPropertyName",t[t.SymbolMemberNoExport=2]="SymbolMemberNoExport",t[t.SymbolMemberExport=6]="SymbolMemberExport",t))(vTe||{}),CTe=(t=>(t[t.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",t[t.Global=1]="Global",t[t.PropertyAccess=2]="PropertyAccess",t[t.MemberLike=3]="MemberLike",t[t.String=4]="String",t[t.None=5]="None",t))(CTe||{}),wee=[],bTe=Nh(()=>{const t=[];for(let u=83;u<=165;u++)t.push({name:Jo(u),kind:"keyword",kindModifiers:"",sortText:z1.GlobalsOrKeywords});return t})}});function yTe(){const t=new Map;function u(s){const d=t.get(s.name);(!d||BTe[d.kind]({name:kv(z.value,T),kindModifiers:"",kind:"string",sortText:z1.LocationPriority,replacementSpan:Qhe(u)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:k,entries:M}}default:return H.assertNever(t)}}function J$t(t,u,s,d,f,p,E,v,b){if(!d||!t0(d))return;const B=y0t(u,d,s,f,p,E,b);return B&&$$t(t,d,B,u,f,v)}function $$t(t,u,s,d,f,p){switch(s.kind){case 0:{const E=Le(s.paths,v=>v.name===t);return E&&See(t,b0t(E.extension),E.kind,[Hm(t)])}case 1:{const E=Le(s.symbols,v=>v.name===t);return E&&pTe(E,E.name,f,d,u,p)}case 2:return Le(s.types,E=>E.value===t)?See(t,"","string",[Hm(t)]):void 0;default:return H.assertNever(s)}}function C0t(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t.map(({name:f,kind:p,span:E,extension:v})=>({name:f,kind:p,kindModifiers:b0t(v),sortText:z1.LocationPriority,replacementSpan:E}))}}function b0t(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return H.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return H.assertNever(t)}}function y0t(t,u,s,d,f,p,E){const v=kTe(u.parent);switch(v.kind){case 201:{const z=kTe(v.parent);return z.kind===205?{kind:0,paths:A0t(t,u,f,p,d,E)}:b(z)}case 303:return Cs(v.parent)&&v.name===u?Z$t(d,v.parent):B()||B(0);case 212:{const{expression:z,argumentExpression:j}=v;return u===s0(j)?k0t(d.getTypeAtLocation(z)):void 0}case 213:case 214:case 291:if(!cUt(u)&&!cm(v)){const z=TK.getArgumentInfoForCompletions(v.kind===291?v.parent:u,s,t);return z&&q$t(z.invocation,u,z,d)||B(0)}case 272:case 278:case 283:return{kind:0,paths:A0t(t,u,f,p,d,E)};case 296:const k=IX(d,v.parent.clauses),T=B();return T?{kind:2,types:T.types.filter(z=>!k.hasValue(z.value)),isNewIdentifier:!1}:void 0;default:return B()||B(0)}function b(k){switch(k.kind){case 233:case 183:{const z=Ln(v,j=>j.parent===k);return z?{kind:2,types:Cpe(d.getTypeArgumentConstraint(z)),isNewIdentifier:!1}:void 0}case 199:const{indexType:T,objectType:M}=k;return NH(T,s)?k0t(d.getTypeFromTypeNode(M)):void 0;case 192:{const z=b(kTe(k.parent));if(!z)return;const j=U$t(k,v);return z.kind===1?{kind:1,symbols:z.symbols.filter(J=>!Ft(j,J.name)),hasIndexSignature:z.hasIndexSignature}:{kind:2,types:z.types.filter(J=>!Ft(j,J.value)),isNewIdentifier:!1}}default:return}}function B(k=4){const T=Cpe(yX(u,d,k));if(T.length)return{kind:2,types:T,isNewIdentifier:!1}}}function kTe(t){switch(t.kind){case 196:return wj(t);case 217:return t5(t);default:return t}}function U$t(t,u){return Ui(t.types,s=>s!==u&&Nv(s)&&ns(s.literal)?s.literal.text:void 0)}function q$t(t,u,s,d){let f=!1;const p=new Map,E=Ph(t)?H.checkDefined(Ln(u.parent,aE)):u,v=d.getCandidateSignaturesForStringLiteralCompletions(t,E),b=Ku(v,B=>{if(!eh(B)&&s.argumentCount>B.parameters.length)return;let k=B.getTypeParameterAtPosition(s.argumentIndex);if(Ph(t)){const T=d.getTypeOfPropertyOfType(k,aV(E.name));T&&(k=T)}return f=f||!!(k.flags&4),Cpe(k,p)});return S(b)?{kind:2,types:b,isNewIdentifier:f}:void 0}function k0t(t){return t&&{kind:1,symbols:ei(t.getApparentProperties(),u=>!(u.valueDeclaration&&mh(u.valueDeclaration))),hasIndexSignature:Efe(t)}}function Z$t(t,u){const s=t.getContextualType(u);if(!s)return;const d=t.getContextualType(u,4);return{kind:1,symbols:_pe(s,d,u,t),hasIndexSignature:Efe(s)}}function Cpe(t,u=new Map){return t?(t=ife(t),t.isUnion()?Ku(t.types,s=>Cpe(s,u)):t.isStringLiteral()&&!(t.flags&1024)&&Pp(u,t.value)?[t]:_t):_t}function ZM(t,u,s){return{name:t,kind:u,extension:s}}function FTe(t){return ZM(t,"directory",void 0)}function F0t(t,u,s){const d=sUt(t,u),f=t.length===0?void 0:c1(u,t.length);return s.map(({name:p,kind:E,extension:v})=>p.includes(nl)||p.includes(AO)?{name:p,kind:E,extension:v,span:f}:{name:p,kind:E,extension:v,span:d})}function A0t(t,u,s,d,f,p){return F0t(u.text,u.getStart(t)+1,Y$t(t,u,s,d,f,p))}function Y$t(t,u,s,d,f,p){const E=U1(u.text),v=t0(u)?_g(t,u):void 0,b=t.path,B=dr(b),k=ATe(s,1,t,f,p,v);return lUt(E)||!s.baseUrl&&!s.paths&&(Nf(E)||_2e(E))?Q$t(E,B,s,d,b,k):iUt(E,B,v,s,d,k,f)}function ATe(t,u,s,d,f,p){return{extensionsToSearch:Va(X$t(t,d)),referenceKind:u,importingSourceFile:s,endingPreference:f==null?void 0:f.importModuleSpecifierEnding,resolutionMode:p}}function Q$t(t,u,s,d,f,p){return s.rootDirs?tUt(s.rootDirs,t,u,p,s,d,f):Ea(FK(t,u,p,d,!0,f).values())}function X$t(t,u){const s=u?Ui(u.getAmbientModules(),p=>{const E=p.name.slice(1,-1);if(!(!E.startsWith("*.")||E.includes("/")))return E.slice(1)}):[],d=[...yP(t),s],f=m1(t);return mX(f)?Xj(t,d):d}function eUt(t,u,s,d){t=t.map(p=>Pd(Go(Nf(p)?p:hr(u,p))));const f=G(t,p=>WE(p,s,u,d)?s.substr(p.length):void 0);return li([...t.map(p=>hr(p,f)),s].map(p=>hv(p)),YA,ch)}function tUt(t,u,s,d,f,p,E){const v=f.project||p.getCurrentDirectory(),b=!(p.useCaseSensitiveFileNames&&p.useCaseSensitiveFileNames()),B=eUt(t,v,s,b);return Ku(B,k=>Ea(FK(u,k,d,p,!0,E).values()))}function FK(t,u,s,d,f,p,E=yTe()){var v;t===void 0&&(t=""),t=U1(t),qD(t)||(t=dr(t)),t===""&&(t="."+nl),t=Pd(t);const b=yx(u,t),B=qD(b)?b:dr(b);if(!f){const z=ASe(B,d);if(z){const J=gP(z,d).typesVersions;if(typeof J=="object"){const K=(v=zY(J))==null?void 0:v.paths;if(K){const Y=dr(z),oe=b.slice(Pd(Y).length);if(B0t(E,oe,Y,s,d,K))return E}}}}const k=!(d.useCaseSensitiveFileNames&&d.useCaseSensitiveFileNames());if(!BX(d,B))return E;const T=Dfe(d,B,s.extensionsToSearch,void 0,["./*"]);if(T)for(let z of T){if(z=Go(z),p&&fv(z,p,u,k)===0)continue;const{name:j,extension:J}=S0t(Fc(z),d.getCompilationSettings(),s);E.add(ZM(j,"script",J))}const M=SX(d,B);if(M)for(const z of M){const j=Fc(Go(z));j!=="@types"&&E.add(FTe(j))}return E}function S0t(t,u,s){const d=$2.tryGetRealFileNameForNonJsDeclarationFileName(t);if(d)return{name:d,extension:e3(d)};if(s.referenceKind===0)return{name:t,extension:e3(t)};const f=Ale(s.endingPreference,s.resolutionMode,u,s.importingSourceFile);if(f===3){if(Oc(t,cV))return{name:t,extension:e3(t)};const E=$2.tryGetJSExtensionForFile(t,u);return E?{name:Sv(t,E),extension:E}:{name:t,extension:e3(t)}}if((f===0||f===1)&&Oc(t,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:Eh(t),extension:e3(t)};const p=$2.tryGetJSExtensionForFile(t,u);return p?{name:Sv(t,p),extension:p}:{name:t,extension:e3(t)}}function B0t(t,u,s,d,f,p){const E=b=>p[b],v=(b,B)=>{const k=dB(b),T=dB(B),M=typeof k=="object"?k.prefix.length:b.length,z=typeof T=="object"?T.prefix.length:B.length;return tl(z,M)};return w0t(t,u,s,d,f,Ts(p),E,v)}function w0t(t,u,s,d,f,p,E,v){let b=[],B;for(const k of p){if(k===".")continue;const T=k.replace(/^\.\//,""),M=E(k);if(M){const z=dB(T);if(!z)continue;const j=typeof z=="object"&&$$(z,u);j&&(B===void 0||v(k,B)===-1)&&(B=k,b=b.filter(K=>!K.matchedPattern)),(typeof z=="string"||B===void 0||v(k,B)!==1)&&b.push({matchedPattern:j,results:nUt(T,M,u,s,d,f).map(({name:K,kind:Y,extension:oe})=>ZM(K,Y,oe))})}}return b.forEach(k=>k.results.forEach(T=>t.add(T))),B!==void 0}function iUt(t,u,s,d,f,p,E){const{baseUrl:v,paths:b}=d,B=yTe(),k=m1(d);if(v){const M=Go(hr(f.getCurrentDirectory(),v));FK(t,M,p,f,!1,void 0,B)}if(b){const M=Lq(d,f);B0t(B,t,M,p,f,b)}const T=L0t(t);for(const M of rUt(t,T,E))B.add(ZM(M,"external module name",void 0));if(M0t(f,d,u,T,p,B),mX(k)){let M=!1;if(T===void 0)for(const z of oUt(f,u)){const j=ZM(z,"external module name",void 0);B.has(j.name)||(M=!0,B.add(j))}if(!M){let z=j=>{const J=hr(j,"node_modules");BX(f,J)&&FK(t,J,p,f,!1,void 0,B)};if(T&&xle(d)){const j=z;z=J=>{const K=bd(t);K.shift();let Y=K.shift();if(!Y)return j(J);if(Na(Y,"@")){const ge=K.shift();if(!ge)return j(J);Y=hr(Y,ge)}const oe=hr(J,"node_modules",Y),se=hr(oe,"package.json");if(ZH(f,se)){const ae=gP(se,f).exports;if(ae){if(typeof ae!="object"||ae===null)return;const Ce=Ts(ae),ne=K.join("/")+(K.length&&qD(t)?"/":""),ve=W2(d,s);w0t(B,ne,oe,p,f,Ce,Se=>jy(T0t(ae[Se],ve)),Ade);return}}return j(J)}}$g(u,z)}}return Ea(B.values())}function T0t(t,u){if(typeof t=="string")return t;if(t&&typeof t=="object"&&!Ha(t)){for(const s in t)if(s==="default"||u.includes(s)||aH(u,s)){const d=t[s];return T0t(d,u)}}}function L0t(t){return STe(t)?qD(t)?t:dr(t):void 0}function nUt(t,u,s,d,f,p){if(!oc(t,"*"))return t.includes("*")?_t:b(t,"script");const E=t.slice(0,t.length-1),v=coe(s,E);if(v===void 0)return t[t.length-2]==="/"?b(E,"directory"):Ku(u,k=>{var T;return(T=N0t("",d,k,f,p))==null?void 0:T.map(({name:M,...z})=>({name:E+M,...z}))});return Ku(u,B=>N0t(v,d,B,f,p));function b(B,k){return Na(B,s)?[{name:hv(B),kind:k,extension:void 0}]:_t}}function N0t(t,u,s,d,f){if(!f.readDirectory)return;const p=dB(s);if(p===void 0||Ja(p))return;const E=yx(p.prefix),v=qD(p.prefix)?E:dr(E),b=qD(p.prefix)?"":Fc(E),B=STe(t),k=B?qD(t)?t:dr(t):void 0,T=B?hr(v,b+k):v,M=Go(p.suffix),z=M&&Vj("_"+M),j=z?[Sv(M,z),M]:[M],J=Go(hr(u,T)),K=B?J:Pd(J)+b,Y=M?j.map(ae=>"**/*"+ae):["./*"],oe=Ui(Dfe(f,J,d.extensionsToSearch,void 0,Y),ae=>{const Ce=ge(ae);if(Ce){if(STe(Ce))return FTe(bd(P0t(Ce))[1]);const{name:ne,extension:ve}=S0t(Ce,f.getCompilationSettings(),d);return ZM(ne,"script",ve)}}),se=M?_t:Ui(SX(f,J),ae=>ae==="node_modules"?void 0:FTe(ae));return[...oe,...se];function ge(ae){return G(j,Ce=>{const ne=uUt(Go(ae),K,Ce);return ne===void 0?void 0:P0t(ne)})}}function uUt(t,u,s){return Na(t,u)&&oc(t,s)?t.slice(u.length,t.length-s.length):void 0}function P0t(t){return t[0]===nl?t.slice(1):t}function rUt(t,u,s){const f=s.getAmbientModules().map(p=>G4(p.name)).filter(p=>Na(p,t)&&!p.includes("*"));if(u!==void 0){const p=Pd(u);return f.map(E=>bN(E,p))}return f}function aUt(t,u,s,d){const f=ba(t,u),p=K_(t.text,f.pos),E=p&&Le(p,j=>u>=j.pos&&u<=j.end);if(!E)return;const v=t.text.slice(E.pos,u),b=z0t.exec(v);if(!b)return;const[,B,k,T]=b,M=dr(t.path),z=k==="path"?FK(T,M,ATe(s,0,t),d,!0,t.path):k==="types"?M0t(d,s,M,L0t(T),ATe(s,1,t)):H.fail();return F0t(T,E.pos+B.length,Ea(z.values()))}function M0t(t,u,s,d,f,p=yTe()){const E=new Map,v=wX(()=>lM(u,t))||_t;for(const B of v)b(B);for(const B of xfe(s,t)){const k=hr(dr(B),"node_modules/@types");b(k)}return p;function b(B){if(BX(t,B))for(const k of SX(t,B)){const T=oH(k);if(!(u.types&&!Ft(u.types,T)))if(d===void 0)E.has(T)||(p.add(ZM(T,"external module name",void 0)),E.set(T,!0));else{const M=hr(B,k),z=ble(d,T,i5(t));z!==void 0&&FK(z,M,f,t,!1,void 0,p)}}}}function oUt(t,u){if(!t.readFile||!t.fileExists)return _t;const s=[];for(const d of xfe(u,t)){const f=gP(d,t);for(const p of I0t){const E=f[p];if(E)for(const v in E)Eu(E,v)&&!Na(v,"@types/")&&s.push(v)}}return s}function sUt(t,u){const s=Math.max(t.lastIndexOf(nl),t.lastIndexOf(AO)),d=s!==-1?s+1:0,f=t.length-d;return f===0||Tm(t.substr(d,f),99)?void 0:c1(u+d,f)}function lUt(t){if(t&&t.length>=2&&t.charCodeAt(0)===46){const u=t.length>=3&&t.charCodeAt(1)===46?2:1,s=t.charCodeAt(u);return s===47||s===92}return!1}function STe(t){return t.includes(nl)}function cUt(t){return No(t.parent)&&Hi(t.parent.arguments)===t&&at(t.parent.expression)&&t.parent.expression.escapedText==="require"}var BTe,z0t,I0t,dUt=o({"src/services/stringCompletions.ts"(){or(),wTe(),BTe={directory:0,script:1,"external module name":2},z0t=/^(\/\/\/\s*J$t,getStringLiteralCompletions:()=>W$t});var hUt=o({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){dUt()}}),c9={};h(c9,{CompletionKind:()=>CTe,CompletionSource:()=>xTe,SortText:()=>z1,StringCompletions:()=>bpe,SymbolOriginInfoKind:()=>vTe,createCompletionDetails:()=>See,createCompletionDetailsForSymbol:()=>pTe,getCompletionEntriesFromSymbols:()=>fTe,getCompletionEntryDetails:()=>v$t,getCompletionEntrySymbol:()=>b$t,getCompletionsAtPosition:()=>XJt,getPropertiesForObjectExpression:()=>_pe,moduleSpecifierResolutionCacheAttemptLimit:()=>DTe,moduleSpecifierResolutionLimit:()=>vpe});var wTe=o({"src/services/_namespaces/ts.Completions.ts"(){K$t(),hUt()}});function TTe(t,u,s,d){const f=gUt(t,s,d);return(p,E,v)=>{const{directImports:b,indirectUsers:B}=fUt(t,u,f,E,s,d);return{indirectUsers:B,...mUt(b,p,E.exportKind,s,v)}}}function fUt(t,u,s,{exportingModuleSymbol:d,exportKind:f},p,E){const v=e9(),b=e9(),B=[],k=!!d.globalExports,T=k?void 0:[];return z(d),{directImports:B,indirectUsers:M()};function M(){if(k)return t;if(d.declarations)for(const se of d.declarations)_2(se)&&u.has(se.getSourceFile().fileName)&&Y(se);return T.map(In)}function z(se){const ge=oe(se);if(ge){for(const ae of ge)if(v(ae))switch(E&&E.throwIfCancellationRequested(),ae.kind){case 213:if(cm(ae)){j(ae);break}if(!k){const ne=ae.parent;if(f===2&&ne.kind===260){const{name:ve}=ne;if(ve.kind===80){B.push(ve);break}}}break;case 80:break;case 271:K(ae,ae.name,Xu(ae,32),!1);break;case 272:B.push(ae);const Ce=ae.importClause&&ae.importClause.namedBindings;Ce&&Ce.kind===274?K(ae,Ce.name,!1,!0):!k&&s7(ae)&&Y(Tee(ae));break;case 278:ae.exportClause?ae.exportClause.kind===280?Y(Tee(ae),!0):B.push(ae):z(vUt(ae,p));break;case 205:!k&&ae.isTypeOf&&!ae.qualifier&&J(ae)&&Y(ae.getSourceFile(),!0),B.push(ae);break;default:H.failBadSyntaxKind(ae,"Unexpected import kind.")}}}function j(se){const ge=Ln(se,ype)||se.getSourceFile();Y(ge,!!J(se,!0))}function J(se,ge=!1){return Ln(se,ae=>ge&&ype(ae)?"quit":Op(ae)&&qe(ae.modifiers,w7))}function K(se,ge,ae,Ce){if(f===2)Ce||B.push(se);else if(!k){const ne=Tee(se);H.assert(ne.kind===312||ne.kind===267),ae||pUt(ne,ge,p)?Y(ne,!0):Y(ne)}}function Y(se,ge=!1){if(H.assert(!k),!b(se)||(T.push(se),!ge))return;const Ce=p.getMergedSymbol(se.symbol);if(!Ce)return;H.assert(!!(Ce.flags&1536));const ne=oe(Ce);if(ne)for(const ve of ne)iD(ve)||Y(Tee(ve),!0)}function oe(se){return s.get(qo(se).toString())}}function mUt(t,u,s,d,f){const p=[],E=[];function v(M,z){p.push([M,z])}if(t)for(const M of t)b(M);return{importSearches:p,singleReferences:E};function b(M){if(M.kind===271){NTe(M)&&B(M.name);return}if(M.kind===80){B(M);return}if(M.kind===205){if(M.qualifier){const J=dm(M.qualifier);J.escapedText===sc(u)&&E.push(J)}else s===2&&E.push(M.argument.literal);return}if(M.moduleSpecifier.kind!==11)return;if(M.kind===278){M.exportClause&&Q4(M.exportClause)&&k(M.exportClause);return}const{name:z,namedBindings:j}=M.importClause||{name:void 0,namedBindings:void 0};if(j)switch(j.kind){case 274:B(j.name);break;case 275:(s===0||s===1)&&k(j);break;default:H.assertNever(j)}if(z&&(s===1||s===2)&&(!f||z.escapedText===gX(u))){const J=d.getSymbolAtLocation(z);v(z,J)}}function B(M){s===2&&(!f||T(M.escapedText))&&v(M,d.getSymbolAtLocation(M))}function k(M){if(M)for(const z of M.elements){const{name:j,propertyName:J}=z;if(T((J||j).escapedText))if(J)E.push(J),(!f||j.escapedText===u.escapedName)&&v(j,d.getSymbolAtLocation(j));else{const K=z.kind===281&&z.propertyName?d.getExportSpecifierLocalTargetSymbol(z):d.getSymbolAtLocation(j);v(j,K)}}}function T(M){return M===u.escapedName||s!==0&&M==="default"}}function pUt(t,u,s){const d=s.getSymbolAtLocation(u);return!!O0t(t,f=>{if(!Wc(f))return;const{exportClause:p,moduleSpecifier:E}=f;return!E&&p&&Q4(p)&&p.elements.some(v=>s.getExportSpecifierLocalTargetSymbol(v)===d)})}function R0t(t,u,s){var d;const f=[],p=t.getTypeChecker();for(const E of u){const v=s.valueDeclaration;if((v==null?void 0:v.kind)===312){for(const b of E.referencedFiles)t.getSourceFileFromReference(E,b)===v&&f.push({kind:"reference",referencingFile:E,ref:b});for(const b of E.typeReferenceDirectives){const B=(d=t.getResolvedTypeReferenceDirectives().get(b.fileName,b.resolutionMode||E.impliedNodeFormat))==null?void 0:d.resolvedTypeReferenceDirective;B!==void 0&&B.resolvedFileName===v.fileName&&f.push({kind:"reference",referencingFile:E,ref:b})}}j0t(E,(b,B)=>{p.getSymbolAtLocation(B)===s&&f.push(al(b)?{kind:"implicit",literal:B,referencingFile:E}:{kind:"import",literal:B})})}return f}function gUt(t,u,s){const d=new Map;for(const f of t)s&&s.throwIfCancellationRequested(),j0t(f,(p,E)=>{const v=u.getSymbolAtLocation(E);if(v){const b=qo(v).toString();let B=d.get(b);B||d.set(b,B=[]),B.push(p)}});return d}function O0t(t,u){return L(t.kind===312?t.statements:t.body.statements,s=>u(s)||ype(s)&&L(s.body&&s.body.statements,u))}function j0t(t,u){if(t.externalModuleIndicator||t.imports!==void 0)for(const s of t.imports)u(eP(s),s);else O0t(t,s=>{switch(s.kind){case 278:case 272:{const d=s;d.moduleSpecifier&&ns(d.moduleSpecifier)&&u(d,d.moduleSpecifier);break}case 271:{const d=s;NTe(d)&&u(d,d.moduleReference.expression);break}}})}function V0t(t,u,s,d){return d?f():f()||p();function f(){var b;const{parent:B}=t,k=B.parent;if(u.exportSymbol)return B.kind===211?(b=u.declarations)!=null&&b.some(z=>z===B)&&tu(k)?M(k,!1):void 0:E(u.exportSymbol,v(B));{const z=_Ut(B,t);if(z&&Xu(z,32))return g1(z)&&z.moduleReference===t?d?void 0:{kind:0,symbol:s.getSymbolAtLocation(z.name)}:E(u,v(z));if(n_(B))return E(u,0);if(ec(B))return T(B);if(ec(k))return T(k);if(tu(B))return M(B,!0);if(tu(k))return M(k,!0);if(LB(B)||Fce(B))return E(u,0)}function T(z){if(!z.symbol.parent)return;const j=z.isExportEquals?2:1;return{kind:1,symbol:u,exportInfo:{exportingModuleSymbol:z.symbol.parent,exportKind:j}}}function M(z,j){let J;switch(Ql(z)){case 1:J=0;break;case 2:J=2;break;default:return}const K=j?s.getSymbolAtLocation(Jye(Lo(z.left,N0))):u;return K&&E(K,J)}}function p(){if(!DUt(t))return;let B=s.getImmediateAliasedSymbol(u);if(!B||(B=xUt(B,s),B.escapedName==="export="&&(B=EUt(B,s),B===void 0)))return;const k=gX(B);if(k===void 0||k==="default"||k===u.escapedName)return{kind:0,symbol:B}}function E(b,B){const k=LTe(b,B,s);return k&&{kind:1,symbol:b,exportInfo:k}}function v(b){return Xu(b,2048)?1:0}}function EUt(t,u){var s,d;if(t.flags&2097152)return u.getImmediateAliasedSymbol(t);const f=H.checkDefined(t.valueDeclaration);if(ec(f))return(s=ar(f.expression,qg))==null?void 0:s.symbol;if(tu(f))return(d=ar(f.right,qg))==null?void 0:d.symbol;if(ca(f))return f.symbol}function _Ut(t,u){const s=ua(t)?t:Rs(t)?F8(t):void 0;return s?t.name!==u||H2(s.parent)?void 0:Gl(s.parent.parent)?s.parent.parent:void 0:t}function DUt(t){const{parent:u}=t;switch(u.kind){case 271:return u.name===t&&NTe(u);case 276:return!u.propertyName;case 273:case 274:return H.assert(u.name===t),!0;case 208:return eu(t)&&b2(u.parent.parent);default:return!1}}function LTe(t,u,s){const d=t.parent;if(!d)return;const f=s.getMergedSymbol(d);return jH(f)?{exportingModuleSymbol:f,exportKind:u}:void 0}function xUt(t,u){if(t.declarations)for(const s of t.declarations){if(X1(s)&&!s.propertyName&&!s.parent.parent.moduleSpecifier)return u.getExportSpecifierLocalTargetSymbol(s)||t;if(Iu(s)&&Z_(s.expression)&&!Xr(s.name))return u.getSymbolAtLocation(s);if(mm(s)&&tu(s.parent.parent)&&Ql(s.parent.parent)===2)return u.getExportSpecifierLocalTargetSymbol(s.name)}return t}function vUt(t,u){return u.getMergedSymbol(Tee(t).symbol)}function Tee(t){if(t.kind===213)return t.getSourceFile();const{parent:u}=t;return u.kind===312?u:(H.assert(u.kind===268),Lo(u.parent,ype))}function ype(t){return t.kind===267&&t.name.kind===11}function NTe(t){return t.moduleReference.kind===283&&t.moduleReference.expression.kind===11}var PTe,MTe,CUt=o({"src/services/importTracker.ts"(){or(),PTe=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t))(PTe||{}),MTe=(t=>(t[t.Import=0]="Import",t[t.Export=1]="Export",t))(MTe||{})}});function s3(t,u=1){return{kind:u,node:t.name||t,context:bUt(t)}}function H0t(t){return t&&t.kind===void 0}function bUt(t){if(Y1(t))return Ok(t);if(t.parent){if(!Y1(t.parent)&&!ec(t.parent)){if(eu(t)){const s=tu(t.parent)?t.parent:N0(t.parent)&&tu(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(s&&Ql(s)!==0)return Ok(s)}if(rE(t.parent)||O2(t.parent))return t.parent.parent;if(vk(t.parent)||R2(t.parent)||RN(t.parent))return t.parent;if(t0(t)){const s=kj(t);if(s){const d=Ln(s,f=>Y1(f)||na(f)||M8(f));return Y1(d)?Ok(d):d}}const u=Ln(t,Ls);return u?Ok(u.parent):void 0}if(t.parent.name===t||dc(t.parent)||ec(t.parent)||(n7(t.parent)||Rs(t.parent))&&t.parent.propertyName===t||t.kind===90&&Xu(t.parent,2080))return Ok(t.parent)}}function Ok(t){if(t)switch(t.kind){case 260:return!Fd(t.parent)||t.parent.declarations.length!==1?t:Gl(t.parent.parent)?t.parent.parent:N8(t.parent.parent)?Ok(t.parent.parent):t.parent;case 208:return Ok(t.parent.parent);case 276:return t.parent.parent.parent;case 281:case 274:return t.parent.parent;case 273:case 280:return t.parent;case 226:return Id(t.parent)?t.parent:t;case 250:case 249:return{start:t.initializer,end:t.expression};case 303:case 304:return m5(t.parent)?Ok(Ln(t.parent,u=>tu(u)||N8(u))):t;default:return t}}function zTe(t,u,s){if(!s)return;const d=H0t(s)?Nee(s.start,u,s.end):Nee(s,u);return d.start!==t.start||d.length!==t.length?{contextSpan:d}:void 0}function yUt(t,u,s,d,f){const p=rf(d,f),E={use:1},v=d9.getReferencedSymbolsForNode(f,p,t,s,u,E),b=t.getTypeChecker(),B=d9.getAdjustedNode(p,E),k=kUt(B)?b.getSymbolAtLocation(B):void 0;return!v||!v.length?void 0:Ui(v,({definition:T,references:M})=>T&&{definition:b.runWithCancellationToken(u,z=>SUt(T,z,p)),references:M.map(z=>wUt(z,k))})}function kUt(t){return t.kind===90||!!iP(t)||Tj(t)||t.kind===137&&dc(t.parent)}function FUt(t,u,s,d,f){const p=rf(d,f);let E;const v=K0t(t,u,s,p,f);if(p.parent.kind===211||p.parent.kind===208||p.parent.kind===212||p.kind===108)E=v&&[...v];else if(v){const B=W$(v),k=new Map;for(;!B.isEmpty();){const T=B.dequeue();if(!Pp(k,Js(T.node)))continue;E=Ei(E,T);const M=K0t(t,u,s,T.node,T.node.pos);M&&B.enqueue(...M)}}const b=t.getTypeChecker();return Kt(E,B=>LUt(B,b))}function K0t(t,u,s,d,f){if(d.kind===312)return;const p=t.getTypeChecker();if(d.parent.kind===304){const E=[];return d9.getReferenceEntriesForShorthandPropertyAssignment(d,p,v=>E.push(s3(v))),E}else if(d.kind===108||tf(d.parent)){const E=p.getSymbolAtLocation(d);return E.valueDeclaration&&[s3(E.valueDeclaration)]}else return W0t(f,d,t,s,u,{implementations:!0,use:1})}function AUt(t,u,s,d,f,p,E){return Kt(G0t(d9.getReferencedSymbolsForNode(f,d,t,s,u,p)),v=>E(v,d,t.getTypeChecker()))}function W0t(t,u,s,d,f,p={},E=new Set(d.map(v=>v.fileName))){return G0t(d9.getReferencedSymbolsForNode(t,u,s,d,f,p,E))}function G0t(t){return t&&Ku(t,u=>u.references)}function SUt(t,u,s){const d=(()=>{switch(t.type){case 0:{const{symbol:k}=t,{displayParts:T,kind:M}=J0t(k,u,s),z=T.map(K=>K.text).join(""),j=k.declarations&&Hi(k.declarations),J=j?qa(j)||j:s;return{...Lee(J),name:z,kind:M,displayParts:T,context:Ok(j)}}case 1:{const{node:k}=t;return{...Lee(k),name:k.text,kind:"label",displayParts:[bf(k.text,17)]}}case 2:{const{node:k}=t,T=Jo(k.kind);return{...Lee(k),name:T,kind:"keyword",displayParts:[{text:T,kind:"keyword"}]}}case 3:{const{node:k}=t,T=u.getSymbolAtLocation(k),M=T&&D5.getSymbolDisplayPartsDocumentationAndSymbolKind(u,T,k.getSourceFile(),Nk(k),k).displayParts||[Hm("this")];return{...Lee(k),name:"this",kind:"var",displayParts:M}}case 4:{const{node:k}=t;return{...Lee(k),name:k.text,kind:"var",displayParts:[bf(Vc(k),8)]}}case 5:return{textSpan:Ux(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[bf(`"${t.reference.fileName}"`,8)]};default:return H.assertNever(t)}})(),{sourceFile:f,textSpan:p,name:E,kind:v,displayParts:b,context:B}=d;return{containerKind:"",containerName:"",fileName:f.fileName,kind:v,name:E,textSpan:p,displayParts:b,...zTe(p,f,B)}}function Lee(t){const u=t.getSourceFile();return{sourceFile:u,textSpan:Nee(Ls(t)?t.expression:t,u)}}function J0t(t,u,s){const d=d9.getIntersectingMeaningFromDeclarations(s,t),f=t.declarations&&Hi(t.declarations)||s,{displayParts:p,symbolKind:E}=D5.getSymbolDisplayPartsDocumentationAndSymbolKind(u,t,f.getSourceFile(),f,f,d);return{displayParts:p,kind:E}}function BUt(t,u,s,d,f){return{...kpe(t),...d&&TUt(t,u,s,f)}}function wUt(t,u){const s=$0t(t);return u?{...s,isDefinition:t.kind!==0&&U0t(t.node,u)}:s}function $0t(t){const u=kpe(t);if(t.kind===0)return{...u,isWriteAccess:!1};const{kind:s,node:d}=t;return{...u,isWriteAccess:RTe(d),isInString:s===2?!0:void 0}}function kpe(t){if(t.kind===0)return{textSpan:t.textSpan,fileName:t.fileName};{const u=t.node.getSourceFile(),s=Nee(t.node,u);return{textSpan:s,fileName:u.fileName,...zTe(s,u,t.context)}}}function TUt(t,u,s,d){if(t.kind!==0&&at(u)){const{node:f,kind:p}=t,E=f.parent,v=u.text,b=mm(E);if(b||KH(E)&&E.name===f&&E.dotDotDotToken===void 0){const B={prefixText:v+": "},k={suffixText:": "+v};if(p===3)return B;if(p===4)return k;if(b){const T=E.parent;return Cs(T)&&tu(T.parent)&&Z_(T.parent.left)?B:k}else return B}else if(Cf(E)&&!E.propertyName){const B=X1(u.parent)?s.getExportSpecifierLocalTargetSymbol(u.parent):s.getSymbolAtLocation(u);return Ft(B.declarations,E)?{prefixText:v+" as "}:c4}else if(X1(E)&&!E.propertyName)return u===t.node||s.getSymbolAtLocation(u)===s.getSymbolAtLocation(t.node)?{prefixText:v+" as "}:{suffixText:" as "+v}}if(t.kind!==0&&Rf(t.node)&&N0(t.node.parent)){const f=afe(d);return{prefixText:f,suffixText:f}}return c4}function LUt(t,u){const s=kpe(t);if(t.kind!==0){const{node:d}=t;return{...s,...NUt(d,u)}}else return{...s,kind:"",displayParts:[]}}function NUt(t,u){const s=u.getSymbolAtLocation(Y1(t)&&t.name?t.name:t);return s?J0t(s,u,t):t.kind===210?{kind:"interface",displayParts:[th(21),Hm("object literal"),th(22)]}:t.kind===231?{kind:"local class",displayParts:[th(21),Hm("anonymous local class"),th(22)]}:{kind:Q2(t),displayParts:[]}}function PUt(t){const u=kpe(t);if(t.kind===0)return{fileName:u.fileName,span:{textSpan:u.textSpan,kind:"reference"}};const s=RTe(t.node),d={textSpan:u.textSpan,kind:s?"writtenReference":"reference",isInString:t.kind===2?!0:void 0,...u.contextSpan&&{contextSpan:u.contextSpan}};return{fileName:u.fileName,span:d}}function Nee(t,u,s){let d=t.getStart(u),f=(s||t).getEnd();return t0(t)&&f-d>2&&(H.assert(s===void 0),d+=1,f-=1),jc(d,f)}function ITe(t){return t.kind===0?t.textSpan:Nee(t.node,t.node.getSourceFile())}function RTe(t){const u=iP(t);return!!u&&MUt(u)||t.kind===90||E7(t)}function U0t(t,u){var s;if(!u)return!1;const d=iP(t)||(t.kind===90?t.parent:Tj(t)||t.kind===137&&dc(t.parent)?t.parent.parent:void 0),f=d&&tu(d)?d.left:void 0;return!!(d&&((s=u.declarations)!=null&&s.some(p=>p===d||p===f)))}function MUt(t){if(t.flags&33554432)return!0;switch(t.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!m5(t.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!t.body;case 260:case 172:return!!t.initializer||H2(t.parent);case 173:case 171:case 355:case 348:return!1;default:return H.failBadSyntaxKind(t)}}var OTe,jTe,VTe,d9,zUt=o({"src/services/findAllReferences.ts"(){or(),q0t(),OTe=(t=>(t[t.Symbol=0]="Symbol",t[t.Label=1]="Label",t[t.Keyword=2]="Keyword",t[t.This=3]="This",t[t.String=4]="String",t[t.TripleSlashReference=5]="TripleSlashReference",t))(OTe||{}),jTe=(t=>(t[t.Span=0]="Span",t[t.Node=1]="Node",t[t.StringLiteral=2]="StringLiteral",t[t.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",t[t.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t))(jTe||{}),VTe=(t=>(t[t.Other=0]="Other",t[t.References=1]="References",t[t.Rename=2]="Rename",t))(VTe||{}),(t=>{function u(Qe,Et,Mt,qt,Xt,Pe={},et=new Set(qt.map(gt=>gt.fileName))){var gt,ii;if(Et=s(Et,Pe),ca(Et)){const Ji=xw.getReferenceAtPosition(Et,Qe,Mt);if(!(Ji!=null&&Ji.file))return;const Yi=Mt.getTypeChecker().getMergedSymbol(Ji.file.symbol);if(Yi)return B(Mt,Yi,!1,qt,et);const on=Mt.getFileIncludeReasons();return on?[{definition:{type:5,reference:Ji.reference,file:Et},references:f(Ji.file,on,Mt)||_t}]:void 0}if(!Pe.implementations){const Ji=T(Et,qt,Xt);if(Ji)return Ji}const me=Mt.getTypeChecker(),ni=me.getSymbolAtLocation(dc(Et)&&Et.parent.name||Et);if(!ni){if(!Pe.implementations&&t0(Et)){if(EX(Et)){const Ji=Mt.getFileIncludeReasons(),Yi=(ii=(gt=Mt.getResolvedModule(Et.getSourceFile(),Et.text,_g(Et.getSourceFile(),Et)))==null?void 0:gt.resolvedModule)==null?void 0:ii.resolvedFileName,on=Yi?Mt.getSourceFile(Yi):void 0;if(on)return[{definition:{type:4,node:Et},references:f(on,Ji,Mt)||_t}]}return bt(Et,qt,me,Xt)}return}if(ni.escapedName==="export=")return B(Mt,ni.parent,!1,qt,et);const _i=E(ni,Mt,qt,Xt,Pe,et);if(_i&&!(ni.flags&33554432))return _i;const mt=p(Et,ni,me),jt=mt&&E(mt,Mt,qt,Xt,Pe,et),pi=M(ni,Et,qt,et,me,Xt,Pe);return v(Mt,_i,pi,jt)}t.getReferencedSymbolsForNode=u;function s(Qe,Et){return Et.use===1?Qe=Ghe(Qe):Et.use===2&&(Qe=rX(Qe)),Qe}t.getAdjustedNode=s;function d(Qe,Et,Mt,qt=new Set(Mt.map(Xt=>Xt.fileName))){var Xt,Pe;const et=(Xt=Et.getSourceFile(Qe))==null?void 0:Xt.symbol;if(et)return((Pe=B(Et,et,!1,Mt,qt)[0])==null?void 0:Pe.references)||_t;const gt=Et.getFileIncludeReasons(),ii=Et.getSourceFile(Qe);return ii&>&&f(ii,gt,Et)||_t}t.getReferencesForFileName=d;function f(Qe,Et,Mt){let qt;const Xt=Et.get(Qe.path)||_t;for(const Pe of Xt)if(Wv(Pe)){const et=Mt.getSourceFileByPath(Pe.file),gt=kM(Mt,Pe);UB(gt)&&(qt=Ei(qt,{kind:0,fileName:et.fileName,textSpan:Ux(gt)}))}return qt}function p(Qe,Et,Mt){if(Qe.parent&&SV(Qe.parent)){const qt=Mt.getAliasedSymbol(Et),Xt=Mt.getMergedSymbol(qt);if(qt!==Xt)return Xt}}function E(Qe,Et,Mt,qt,Xt,Pe){const et=Qe.flags&1536&&Qe.declarations&&Le(Qe.declarations,ca);if(!et)return;const gt=Qe.exports.get("export="),ii=B(Et,Qe,!!gt,Mt,Pe);if(!gt||!Pe.has(et.fileName))return ii;const me=Et.getTypeChecker();return Qe=Q1(gt,me),v(Et,ii,M(Qe,void 0,Mt,Pe,me,qt,Xt))}function v(Qe,...Et){let Mt;for(const qt of Et)if(!(!qt||!qt.length)){if(!Mt){Mt=qt;continue}for(const Xt of qt){if(!Xt.definition||Xt.definition.type!==0){Mt.push(Xt);continue}const Pe=Xt.definition.symbol,et=$e(Mt,ii=>!!ii.definition&&ii.definition.type===0&&ii.definition.symbol===Pe);if(et===-1){Mt.push(Xt);continue}const gt=Mt[et];Mt[et]={definition:gt.definition,references:gt.references.concat(Xt.references).sort((ii,me)=>{const ni=b(Qe,ii),_i=b(Qe,me);if(ni!==_i)return tl(ni,_i);const mt=ITe(ii),jt=ITe(me);return mt.start!==jt.start?tl(mt.start,jt.start):tl(mt.length,jt.length)})}}}return Mt}function b(Qe,Et){const Mt=Et.kind===0?Qe.getSourceFile(Et.fileName):Et.node.getSourceFile();return Qe.getSourceFiles().indexOf(Mt)}function B(Qe,Et,Mt,qt,Xt){H.assert(!!Et.valueDeclaration);const Pe=Ui(R0t(Qe,qt,Et),gt=>{if(gt.kind==="import"){const ii=gt.literal.parent;if(Nv(ii)){const me=Lo(ii.parent,iD);if(Mt&&!me.qualifier)return}return s3(gt.literal)}else if(gt.kind==="implicit"){const ii=gt.literal.text!==Vx&&nM(gt.referencingFile,me=>me.transformFlags&2?u3(me)||vk(me)||j2(me)?me:void 0:"skip")||gt.referencingFile.statements[0]||gt.referencingFile;return s3(ii)}else return{kind:0,fileName:gt.referencingFile.fileName,textSpan:Ux(gt.ref)}});if(Et.declarations)for(const gt of Et.declarations)switch(gt.kind){case 312:break;case 267:Xt.has(gt.getSourceFile().fileName)&&Pe.push(s3(gt.name));break;default:H.assert(!!(Et.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const et=Et.exports.get("export=");if(et!=null&&et.declarations)for(const gt of et.declarations){const ii=gt.getSourceFile();if(Xt.has(ii.fileName)){const me=tu(gt)&&Iu(gt.left)?gt.left.expression:ec(gt)?H.checkDefined(r0(gt,95,ii)):qa(gt)||gt;Pe.push(s3(me))}}return Pe.length?[{definition:{type:0,symbol:Et},references:Pe}]:_t}function k(Qe){return Qe.kind===148&&P7(Qe.parent)&&Qe.parent.operator===148}function T(Qe,Et,Mt){if(NM(Qe.kind))return Qe.kind===116&&z7(Qe.parent)||Qe.kind===148&&!k(Qe)?void 0:Ge(Et,Qe.kind,Mt,Qe.kind===148?k:void 0);if(H8(Qe.parent)&&Qe.parent.name===Qe)return He(Et,Mt);if(T7(Qe)&&Ml(Qe.parent))return[{definition:{type:2,node:Qe},references:[s3(Qe)]}];if(LH(Qe)){const qt=XQ(Qe.parent,Qe.text);return qt&&Ae(qt.parent,qt)}else if(zhe(Qe))return Ae(Qe.parent,Qe);if(nw(Qe))return Ba(Qe,Et,Mt);if(Qe.kind===108)return aa(Qe)}function M(Qe,Et,Mt,qt,Xt,Pe,et){const gt=Et&&J(Qe,Et,Xt,!vo(et))||Qe,ii=Et?iu(Et,gt):7,me=[],ni=new oe(Mt,qt,Et?j(Et):0,Xt,Pe,ii,et,me),_i=!vo(et)||!gt.declarations?void 0:Le(gt.declarations,X1);if(_i)Gt(_i.name,gt,_i,ni.createSearch(Et,Qe,void 0),ni,!0,!0);else if(Et&&Et.kind===90&>.escapedName==="default"&>.parent)It(Et,gt,ni),se(Et,gt,{exportingModuleSymbol:gt.parent,exportKind:1},ni);else{const mt=ni.createSearch(Et,gt,void 0,{allSearchSymbols:Et?jn(gt,Et,Xt,et.use===2,!!et.providePrefixAndSuffixTextForRename,!!et.implementations):[gt]});z(gt,ni,mt)}return me}function z(Qe,Et,Mt){const qt=Se(Qe);if(qt)Ze(qt,qt.getSourceFile(),Mt,Et,!(ca(qt)&&!Ft(Et.sourceFiles,qt)));else for(const Xt of Et.sourceFiles)Et.cancellationToken.throwIfCancellationRequested(),ne(Xt,Mt,Et)}function j(Qe){switch(Qe.kind){case 176:case 137:return 1;case 80:if(gr(Qe.parent))return H.assert(Qe.parent.name===Qe),2;default:return 0}}function J(Qe,Et,Mt,qt){const{parent:Xt}=Et;return X1(Xt)&&qt?Yt(Et,Qe,Xt,Mt):G(Qe.declarations,Pe=>{if(!Pe.parent){if(Qe.flags&33554432)return;H.fail(`Unexpected symbol at ${H.formatSyntaxKind(Et.kind)}: ${H.formatSymbol(Qe)}`)}return hm(Pe.parent)&&Lv(Pe.parent.parent)?Mt.getPropertyOfType(Mt.getTypeFromTypeNode(Pe.parent.parent),Qe.name):void 0})}let K;(Qe=>{Qe[Qe.None=0]="None",Qe[Qe.Constructor=1]="Constructor",Qe[Qe.Class=2]="Class"})(K||(K={}));function Y(Qe){if(!(Qe.flags&33555968))return;const Et=Qe.declarations&&Le(Qe.declarations,Mt=>!ca(Mt)&&!Ec(Mt));return Et&&Et.symbol}class oe{constructor(Et,Mt,qt,Xt,Pe,et,gt,ii){this.sourceFiles=Et,this.sourceFilesSet=Mt,this.specialSearchKind=qt,this.checker=Xt,this.cancellationToken=Pe,this.searchMeaning=et,this.options=gt,this.result=ii,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=e9(),this.markSeenReExportRHS=e9(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Et){return this.sourceFilesSet.has(Et.fileName)}getImportSearches(Et,Mt){return this.importTracker||(this.importTracker=TTe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Et,Mt,this.options.use===2)}createSearch(Et,Mt,qt,Xt={}){const{text:Pe=G4(sc(oB(Mt)||Y(Mt)||Mt)),allSearchSymbols:et=[Mt]}=Xt,gt=kl(Pe),ii=this.options.implementations&&Et?Zo(Et,Mt,this.checker):void 0;return{symbol:Mt,comingFrom:qt,text:Pe,escapedText:gt,parents:ii,allSearchSymbols:et,includes:me=>Ft(et,me)}}referenceAdder(Et){const Mt=qo(Et);let qt=this.symbolIdToReferences[Mt];return qt||(qt=this.symbolIdToReferences[Mt]=[],this.result.push({definition:{type:0,symbol:Et},references:qt})),(Xt,Pe)=>qt.push(s3(Xt,Pe))}addStringOrCommentReference(Et,Mt){this.result.push({definition:void 0,references:[{kind:0,fileName:Et,textSpan:Mt}]})}markSearchedSymbols(Et,Mt){const qt=Js(Et),Xt=this.sourceFileToSeenSymbols[qt]||(this.sourceFileToSeenSymbols[qt]=new Set);let Pe=!1;for(const et of Mt)Pe=Ll(Xt,qo(et))||Pe;return Pe}}function se(Qe,Et,Mt,qt){const{importSearches:Xt,singleReferences:Pe,indirectUsers:et}=qt.getImportSearches(Et,Mt);if(Pe.length){const gt=qt.referenceAdder(Et);for(const ii of Pe)ae(ii,qt)&>(ii)}for(const[gt,ii]of Xt)ft(gt.getSourceFile(),qt.createSearch(gt,ii,1),qt);if(et.length){let gt;switch(Mt.exportKind){case 0:gt=qt.createSearch(Qe,Et,1);break;case 1:gt=qt.options.use===2?void 0:qt.createSearch(Qe,Et,1,{text:"default"});break}if(gt)for(const ii of et)ne(ii,gt,qt)}}function ge(Qe,Et,Mt,qt,Xt,Pe,et,gt){const ii=TTe(Qe,new Set(Qe.map(mt=>mt.fileName)),Et,Mt),{importSearches:me,indirectUsers:ni,singleReferences:_i}=ii(qt,{exportKind:et?1:0,exportingModuleSymbol:Xt},!1);for(const[mt]of me)gt(mt);for(const mt of _i)at(mt)&&iD(mt.parent)&>(mt);for(const mt of ni)for(const jt of Be(mt,et?"default":Pe)){const pi=Et.getSymbolAtLocation(jt),Ji=qe(pi==null?void 0:pi.declarations,Yi=>!!ar(Yi,ec));at(jt)&&!n7(jt.parent)&&(pi===qt||Ji)&>(jt)}}t.eachExportReference=ge;function ae(Qe,Et){return je(Qe,Et)?Et.options.use!==2?!0:at(Qe)?!(n7(Qe.parent)&&Qe.escapedText==="default"):!1:!1}function Ce(Qe,Et){if(Qe.declarations)for(const Mt of Qe.declarations){const qt=Mt.getSourceFile();ft(qt,Et.createSearch(Mt,Qe,0),Et,Et.includesSourceFile(qt))}}function ne(Qe,Et,Mt){wme(Qe).get(Et.escapedText)!==void 0&&ft(Qe,Et,Mt)}function ve(Qe,Et){return m5(Qe.parent.parent)?Et.getPropertySymbolOfDestructuringAssignment(Qe):void 0}function Se(Qe){const{declarations:Et,flags:Mt,parent:qt,valueDeclaration:Xt}=Qe;if(Xt&&(Xt.kind===218||Xt.kind===231))return Xt;if(!Et)return;if(Mt&8196){const gt=Le(Et,ii=>If(ii,2)||mh(ii));return gt?yv(gt,263):void 0}if(Et.some(KH))return;const Pe=qt&&!(Qe.flags&262144);if(Pe&&!(jH(qt)&&!qt.globalExports))return;let et;for(const gt of Et){const ii=Nk(gt);if(et&&et!==ii||!ii||ii.kind===312&&!lm(ii))return;if(et=ii,F0(et)){let me;for(;me=I0e(et);)et=me}}return Pe?et.getSourceFile():et}function Ne(Qe,Et,Mt,qt=Mt){return pe(Qe,Et,Mt,()=>!0,qt)||!1}t.isSymbolReferencedInFile=Ne;function pe(Qe,Et,Mt,qt,Xt=Mt){const Pe=Pf(Qe.parent,Qe.parent.parent)?Mn(Et.getSymbolsOfParameterPropertyDeclaration(Qe.parent,Qe.text)):Et.getSymbolAtLocation(Qe);if(Pe)for(const et of Be(Mt,Pe.name,Xt)){if(!at(et)||et===Qe||et.escapedText!==Qe.escapedText)continue;const gt=Et.getSymbolAtLocation(et);if(gt===Pe||Et.getShorthandAssignmentValueSymbol(et.parent)===Pe||X1(et.parent)&&Yt(et,gt,et.parent,Et)===Pe){const ii=qt(et);if(ii)return ii}}}t.eachSymbolReferenceInFile=pe;function fe(Qe,Et){return ei(Be(Et,Qe),Xt=>!!iP(Xt)).reduce((Xt,Pe)=>{const et=qt(Pe);return!qe(Xt.declarationNames)||et===Xt.depth?(Xt.declarationNames.push(Pe),Xt.depth=et):etni===Xt)&&qt(et,ii))return!0}return!1}t.someSignatureUsage=xe;function Be(Qe,Et,Mt=Qe){return Ui(We(Qe,Et,Mt),qt=>{const Xt=rf(Qe,qt);return Xt===Qe?void 0:Xt})}function We(Qe,Et,Mt=Qe){const qt=[];if(!Et||!Et.length)return qt;const Xt=Qe.text,Pe=Xt.length,et=Et.length;let gt=Xt.indexOf(Et,Mt.pos);for(;gt>=0&&!(gt>Mt.end);){const ii=gt+et;(gt===0||!pv(Xt.charCodeAt(gt-1),99))&&(ii===Pe||!pv(Xt.charCodeAt(ii),99))&&qt.push(gt),gt=Xt.indexOf(Et,gt+et+1)}return qt}function Ae(Qe,Et){const Mt=Qe.getSourceFile(),qt=Et.text,Xt=Ui(Be(Mt,qt,Qe),Pe=>Pe===Et||LH(Pe)&&XQ(Pe,qt)===Et?s3(Pe):void 0);return[{definition:{type:1,node:Et},references:Xt}]}function De(Qe,Et){switch(Qe.kind){case 81:if(zv(Qe.parent))return!0;case 80:return Qe.text.length===Et.length;case 15:case 11:{const Mt=Qe;return(eX(Mt)||jhe(Qe)||J9e(Qe)||No(Qe.parent)&&nk(Qe.parent)&&Qe.parent.arguments[1]===Qe)&&Mt.text.length===Et.length}case 9:return eX(Qe)&&Qe.text.length===Et.length;case 90:return Et.length===7;default:return!1}}function He(Qe,Et){const Mt=Ku(Qe,qt=>(Et.throwIfCancellationRequested(),Ui(Be(qt,"meta",qt),Xt=>{const Pe=Xt.parent;if(H8(Pe))return s3(Pe)})));return Mt.length?[{definition:{type:2,node:Mt[0].node},references:Mt}]:void 0}function Ge(Qe,Et,Mt,qt){const Xt=Ku(Qe,Pe=>(Mt.throwIfCancellationRequested(),Ui(Be(Pe,Jo(Et),Pe),et=>{if(et.kind===Et&&(!qt||qt(et)))return s3(et)})));return Xt.length?[{definition:{type:2,node:Xt[0].node},references:Xt}]:void 0}function ft(Qe,Et,Mt,qt=!0){return Mt.cancellationToken.throwIfCancellationRequested(),Ze(Qe,Qe,Et,Mt,qt)}function Ze(Qe,Et,Mt,qt,Xt){if(qt.markSearchedSymbols(Et,Mt.allSearchSymbols))for(const Pe of We(Et,Mt.text,Qe))Ke(Et,Pe,Mt,qt,Xt)}function je(Qe,Et){return!!(Lk(Qe)&Et.searchMeaning)}function Ke(Qe,Et,Mt,qt,Xt){const Pe=rf(Qe,Et);if(!De(Pe,Mt.text)){!qt.options.implementations&&(qt.options.findInStrings&&Pk(Qe,Et)||qt.options.findInComments&&aSe(Qe,Et))&&qt.addStringOrCommentReference(Qe.fileName,c1(Et,Mt.text.length));return}if(!je(Pe,qt))return;let et=qt.checker.getSymbolAtLocation(Pe);if(!et)return;const gt=Pe.parent;if(Cf(gt)&>.propertyName===Pe)return;if(X1(gt)){H.assert(Pe.kind===80),Gt(Pe,et,gt,Mt,qt,Xt);return}const ii=bn(Mt,et,Pe,qt);if(!ii){St(et,Mt,qt);return}switch(qt.specialSearchKind){case 0:Xt&&It(Pe,ii,qt);break;case 1:ti(Pe,Qe,Mt,qt);break;case 2:ht(Pe,Mt,qt);break;default:H.assertNever(qt.specialSearchKind)}eu(Pe)&&Rs(Pe.parent)&&b2(Pe.parent.parent.parent)&&(et=Pe.parent.symbol,!et)||st(Pe,et,Mt,qt)}function Gt(Qe,Et,Mt,qt,Xt,Pe,et){H.assert(!et||!!Xt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:gt,propertyName:ii,name:me}=Mt,ni=gt.parent,_i=Yt(Qe,Et,Mt,Xt.checker);if(!et&&!qt.includes(_i))return;if(ii?Qe===ii?(ni.moduleSpecifier||mt(),Pe&&Xt.options.use!==2&&Xt.markSeenReExportRHS(me)&&It(me,H.checkDefined(Mt.symbol),Xt)):Xt.markSeenReExportRHS(Qe)&&mt():Xt.options.use===2&&me.escapedText==="default"||mt(),!vo(Xt.options)||et){const pi=Qe.escapedText==="default"||Mt.name.escapedText==="default"?1:0,Ji=H.checkDefined(Mt.symbol),Yi=LTe(Ji,pi,Xt.checker);Yi&&se(Qe,Ji,Yi,Xt)}if(qt.comingFrom!==1&&ni.moduleSpecifier&&!ii&&!vo(Xt.options)){const jt=Xt.checker.getExportSpecifierLocalTargetSymbol(Mt);jt&&Ce(jt,Xt)}function mt(){Pe&&It(Qe,_i,Xt)}}function Yt(Qe,Et,Mt,qt){return Ie(Qe,Mt)&&qt.getExportSpecifierLocalTargetSymbol(Mt)||Et}function Ie(Qe,Et){const{parent:Mt,propertyName:qt,name:Xt}=Et;return H.assert(qt===Qe||Xt===Qe),qt?qt===Qe:!Mt.parent.moduleSpecifier}function st(Qe,Et,Mt,qt){const Xt=V0t(Qe,Et,qt.checker,Mt.comingFrom===1);if(!Xt)return;const{symbol:Pe}=Xt;Xt.kind===0?vo(qt.options)||Ce(Pe,qt):se(Qe,Pe,Xt.exportInfo,qt)}function St({flags:Qe,valueDeclaration:Et},Mt,qt){const Xt=qt.checker.getShorthandAssignmentValueSymbol(Et),Pe=Et&&qa(Et);!(Qe&33554432)&&Pe&&Mt.includes(Xt)&&It(Pe,Xt,qt)}function It(Qe,Et,Mt){const{kind:qt,symbol:Xt}="kind"in Et?Et:{kind:void 0,symbol:Et};if(Mt.options.use===2&&Qe.kind===90)return;const Pe=Mt.referenceAdder(Xt);Mt.options.implementations?rn(Qe,Pe,Mt):Pe(Qe,qt)}function ti(Qe,Et,Mt,qt){BM(Qe)&&It(Qe,Mt.symbol,qt);const Xt=()=>qt.referenceAdder(Mt.symbol);if(gr(Qe.parent))H.assert(Qe.kind===90||Qe.parent.name===Qe),Ut(Mt.symbol,Et,Xt());else{const Pe=wa(Qe);Pe&&(ji(Pe,Xt()),Un(Pe,qt))}}function ht(Qe,Et,Mt){It(Qe,Et.symbol,Mt);const qt=Qe.parent;if(Mt.options.use===2||!gr(qt))return;H.assert(qt.name===Qe);const Xt=Mt.referenceAdder(Et.symbol);for(const Pe of qt.members)T8(Pe)&&To(Pe)&&Pe.body&&Pe.body.forEachChild(function et(gt){gt.kind===110?Xt(gt):!xo(gt)&&!gr(gt)&>.forEachChild(et)})}function Ut(Qe,Et,Mt){const qt=Li(Qe);if(qt&&qt.declarations)for(const Xt of qt.declarations){const Pe=r0(Xt,137,Et);H.assert(Xt.kind===176&&!!Pe),Mt(Pe)}Qe.exports&&Qe.exports.forEach(Xt=>{const Pe=Xt.valueDeclaration;if(Pe&&Pe.kind===174){const et=Pe.body;et&&ra(et,110,gt=>{BM(gt)&&Mt(gt)})}})}function Li(Qe){return Qe.members&&Qe.members.get("__constructor")}function ji(Qe,Et){const Mt=Li(Qe.symbol);if(Mt&&Mt.declarations)for(const qt of Mt.declarations){H.assert(qt.kind===176);const Xt=qt.body;Xt&&ra(Xt,108,Pe=>{Nhe(Pe)&&Et(Pe)})}}function xn(Qe){return!!Li(Qe.symbol)}function Un(Qe,Et){if(xn(Qe))return;const Mt=Qe.symbol,qt=Et.createSearch(void 0,Mt,void 0);z(Mt,Et,qt)}function rn(Qe,Et,Mt){if(Q3(Qe)&&oa(Qe.parent)){Et(Qe);return}if(Qe.kind!==80)return;Qe.parent.kind===304&&xa(Qe,Mt.checker,Et);const qt=Ni(Qe);if(qt){Et(qt);return}const Xt=Ln(Qe,gt=>!xf(gt.parent)&&!Qr(gt.parent)&&!Uy(gt.parent)),Pe=Xt.parent;if(HU(Pe)&&Pe.type===Xt&&Mt.markSeenContainingTypeReference(Pe))if(Lx(Pe))et(Pe.initializer);else if(xo(Pe)&&Pe.body){const gt=Pe.body;gt.kind===241?v2(gt,ii=>{ii.expression&&et(ii.expression)}):et(gt)}else qy(Pe)&&et(Pe.expression);function et(gt){Fi(gt)&&Et(gt)}}function Ni(Qe){return at(Qe)||Iu(Qe)?Ni(Qe.parent):l5(Qe)?ar(Qe.parent.parent,lg(gr,Dh)):void 0}function Fi(Qe){switch(Qe.kind){case 217:return Fi(Qe.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Qu(Qe,Et,Mt,qt){if(Qe===Et)return!0;const Xt=qo(Qe)+","+qo(Et),Pe=Mt.get(Xt);if(Pe!==void 0)return Pe;Mt.set(Xt,!1);const et=!!Qe.declarations&&Qe.declarations.some(gt=>nP(gt).some(ii=>{const me=qt.getTypeAtLocation(ii);return!!me&&!!me.symbol&&Qu(me.symbol,Et,Mt,qt)}));return Mt.set(Xt,et),et}function aa(Qe){let Et=dj(Qe,!1);if(!Et)return;let Mt=256;switch(Et.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:Mt&=Ix(Et),Et=Et.parent;break;default:return}const qt=Et.getSourceFile(),Xt=Ui(Be(qt,"super",Et),Pe=>{if(Pe.kind!==108)return;const et=dj(Pe,!1);return et&&To(et)===!!Mt&&et.parent.symbol===Et.symbol?s3(Pe):void 0});return[{definition:{type:0,symbol:Et.symbol},references:Xt}]}function Fr(Qe){return Qe.kind===80&&Qe.parent.kind===169&&Qe.parent.name===Qe}function Ba(Qe,Et,Mt){let qt=ef(Qe,!1,!1),Xt=256;switch(qt.kind){case 174:case 173:if(Np(qt)){Xt&=Ix(qt),qt=qt.parent;break}case 172:case 171:case 176:case 177:case 178:Xt&=Ix(qt),qt=qt.parent;break;case 312:if(Bc(qt)||Fr(Qe))return;case 262:case 218:break;default:return}const Pe=Ku(qt.kind===312?Et:[qt.getSourceFile()],gt=>(Mt.throwIfCancellationRequested(),Be(gt,"this",ca(qt)?gt:qt).filter(ii=>{if(!nw(ii))return!1;const me=ef(ii,!1,!1);if(!qg(me))return!1;switch(qt.kind){case 218:case 262:return qt.symbol===me.symbol;case 174:case 173:return Np(qt)&&qt.symbol===me.symbol;case 231:case 263:case 210:return me.parent&&qg(me.parent)&&qt.symbol===me.parent.symbol&&To(me)===!!Xt;case 312:return me.kind===312&&!Bc(me)&&!Fr(ii)}}))).map(gt=>s3(gt));return[{definition:{type:3,node:G(Pe,gt=>eo(gt.node.parent)?gt.node:void 0)||Qe},references:Pe}]}function bt(Qe,Et,Mt,qt){const Xt=uX(Qe,Mt),Pe=Ku(Et,et=>(qt.throwIfCancellationRequested(),Ui(Be(et,Qe.text),gt=>{if(t0(gt)&>.text===Qe.text)if(Xt){const ii=uX(gt,Mt);if(Xt!==Mt.getStringType()&&Xt===ii)return s3(gt,2)}else return B7(gt)&&!ck(gt,et)?void 0:s3(gt,2)})));return[{definition:{type:4,node:Qe},references:Pe}]}function jn(Qe,Et,Mt,qt,Xt,Pe){const et=[];return Nn(Qe,Et,Mt,qt,!(qt&&Xt),(gt,ii,me)=>{me&&Dn(Qe)!==Dn(me)&&(me=void 0),et.push(me||ii||gt)},()=>!Pe),et}function Nn(Qe,Et,Mt,qt,Xt,Pe,et){const gt=gK(Et);if(gt){const pi=Mt.getShorthandAssignmentValueSymbol(Et.parent);if(pi&&qt)return Pe(pi,void 0,void 0,3);const Ji=Mt.getContextualType(gt.parent),Yi=Ji&&G(mee(gt,Mt,Ji,!0),we=>mt(we,4));if(Yi)return Yi;const on=ve(Et,Mt),le=on&&Pe(on,void 0,void 0,4);if(le)return le;const te=pi&&Pe(pi,void 0,void 0,3);if(te)return te}const ii=p(Et,Qe,Mt);if(ii){const pi=Pe(ii,void 0,void 0,1);if(pi)return pi}const me=mt(Qe);if(me)return me;if(Qe.valueDeclaration&&Pf(Qe.valueDeclaration,Qe.valueDeclaration.parent)){const pi=Mt.getSymbolsOfParameterPropertyDeclaration(Lo(Qe.valueDeclaration,eo),Qe.name);return H.assert(pi.length===2&&!!(pi[0].flags&1)&&!!(pi[1].flags&4)),mt(Qe.flags&1?pi[1]:pi[0])}const ni=Fl(Qe,281);if(!qt||ni&&!ni.propertyName){const pi=ni&&Mt.getExportSpecifierLocalTargetSymbol(ni);if(pi){const Ji=Pe(pi,void 0,void 0,1);if(Ji)return Ji}}if(!qt){let pi;return Xt?pi=KH(Et.parent)?_X(Mt,Et.parent):void 0:pi=jt(Qe,Mt),pi&&mt(pi,4)}if(H.assert(qt),Xt){const pi=jt(Qe,Mt);return pi&&mt(pi,4)}function mt(pi,Ji){return G(Mt.getRootSymbols(pi),Yi=>Pe(pi,Yi,void 0,Ji)||(Yi.parent&&Yi.parent.flags&96&&et(Yi)?Ai(Yi.parent,Yi.name,Mt,on=>Pe(pi,Yi,on,Ji)):void 0))}function jt(pi,Ji){const Yi=Fl(pi,208);if(Yi&&KH(Yi))return _X(Ji,Yi)}}function Ai(Qe,Et,Mt,qt){const Xt=new Map;return Pe(Qe);function Pe(et){if(!(!(et.flags&96)||!Pp(Xt,qo(et))))return G(et.declarations,gt=>G(nP(gt),ii=>{const me=Mt.getTypeAtLocation(ii),ni=me&&me.symbol&&Mt.getPropertyOfType(me,Et);return me&&ni&&(G(Mt.getRootSymbols(ni),qt)||Pe(me.symbol))}))}}function Dn(Qe){return Qe.valueDeclaration?!!(gh(Qe.valueDeclaration)&256):!1}function bn(Qe,Et,Mt,qt){const{checker:Xt}=qt;return Nn(Et,Mt,Xt,!1,qt.options.use!==2||!!qt.options.providePrefixAndSuffixTextForRename,(Pe,et,gt,ii)=>(gt&&Dn(Et)!==Dn(gt)&&(gt=void 0),Qe.includes(gt||et||Pe)?{symbol:et&&!(Wl(Pe)&6)?et:Pe,kind:ii}:void 0),Pe=>!(Qe.parents&&!Qe.parents.some(et=>Qu(Pe.parent,et,qt.inheritsFromCache,Xt))))}function iu(Qe,Et){let Mt=Lk(Qe);const{declarations:qt}=Et;if(qt){let Xt;do{Xt=Mt;for(const Pe of qt){const et=BH(Pe);et&Mt&&(Mt|=et)}}while(Mt!==Xt)}return Mt}t.getIntersectingMeaningFromDeclarations=iu;function oa(Qe){return Qe.flags&33554432?!(Dh(Qe)||Ip(Qe)):K8(Qe)?Lx(Qe):K0(Qe)?!!Qe.body:gr(Qe)||ZO(Qe)}function xa(Qe,Et,Mt){const qt=Et.getSymbolAtLocation(Qe),Xt=Et.getShorthandAssignmentValueSymbol(qt.valueDeclaration);if(Xt)for(const Pe of Xt.getDeclarations())BH(Pe)&1&&Mt(Pe)}t.getReferenceEntriesForShorthandPropertyAssignment=xa;function ra(Qe,Et,Mt){ro(Qe,qt=>{qt.kind===Et&&Mt(qt),ra(qt,Et,Mt)})}function wa(Qe){return ole(QQ(Qe).parent)}function Zo(Qe,Et,Mt){const qt=iw(Qe)?Qe.parent:void 0,Xt=qt&&Mt.getTypeAtLocation(qt.expression),Pe=Ui(Xt&&(Xt.isUnionOrIntersection()?Xt.types:Xt.symbol===Et.parent?void 0:[Xt]),et=>et.symbol&&et.symbol.flags&96?et.symbol:void 0);return Pe.length===0?void 0:Pe}function vo(Qe){return Qe.use===2&&Qe.providePrefixAndSuffixTextForRename}})(d9||(d9={}))}}),J0={};h(J0,{Core:()=>d9,DefinitionKind:()=>OTe,EntryKind:()=>jTe,ExportKind:()=>PTe,FindReferencesUse:()=>VTe,ImportExport:()=>MTe,createImportTracker:()=>TTe,findModuleReferences:()=>R0t,findReferenceOrRenameEntries:()=>AUt,findReferencedSymbols:()=>yUt,getContextNode:()=>Ok,getExportInfo:()=>LTe,getImplementationsAtPosition:()=>FUt,getImportOrExportSymbol:()=>V0t,getReferenceEntriesForNode:()=>W0t,getTextSpanOfEntry:()=>ITe,isContextWithStartAndEndNode:()=>H0t,isDeclarationOfSymbol:()=>U0t,isWriteAccessForReference:()=>RTe,nodeEntry:()=>s3,toContextSpan:()=>zTe,toHighlightSpan:()=>PUt,toReferenceEntry:()=>$0t,toRenameLocation:()=>BUt});var q0t=o({"src/services/_namespaces/ts.FindAllReferences.ts"(){CUt(),zUt()}});function Z0t(t,u,s,d,f){var p;const E=Q0t(u,s,t),v=E&&[$Ut(E.reference.fileName,E.fileName,E.unverified)]||_t;if(E!=null&&E.file)return v;const b=rf(u,s);if(b===u)return;const{parent:B}=b,k=t.getTypeChecker();if(b.kind===164||at(b)&&hY(B)&&B.tagName===b)return RUt(k,b)||_t;if(LH(b)){const K=XQ(b.parent,b.text);return K?[HTe(k,K,"label",b.text,void 0)]:void 0}if(b.kind===107){const K=Ln(b.parent,Y=>Ml(Y)?"quit":K0(Y));return K?[Pee(k,K)]:void 0}if(b.kind===135){const K=Ln(b,oe=>K0(oe));return K&&qe(K.modifiers,oe=>oe.kind===134)?[Pee(k,K)]:void 0}if(b.kind===127){const K=Ln(b,oe=>K0(oe));return K&&K.asteriskToken?[Pee(k,K)]:void 0}if(T7(b)&&Ml(b.parent)){const K=b.parent.parent,{symbol:Y,failedAliasResolution:oe}=Fpe(K,k,f),se=ei(K.members,Ml),ge=Y?k.symbolToString(Y,K):"",ae=b.getSourceFile();return Kt(se,Ce=>{let{pos:ne}=tE(Ce);return ne=ms(ae.text,ne),HTe(k,Ce,"constructor","static {}",ge,!1,oe,{start:ne,length:6})})}let{symbol:T,failedAliasResolution:M}=Fpe(b,k,f),z=b;if(d&&M){const K=L([b,...(T==null?void 0:T.declarations)||_t],oe=>Ln(oe,Nbe)),Y=K&&U8(K);Y&&({symbol:T,failedAliasResolution:M}=Fpe(Y,k,f),z=Y)}if(!T&&EX(z)){const K=(p=t.getResolvedModule(u,z.text,_g(u,z)))==null?void 0:p.resolvedModule;if(K)return[{name:z.text,fileName:K.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:c1(0,0),failedAliasResolution:M,isAmbient:Xd(K.resolvedFileName),unverified:z!==b}]}if(!T)return an(v,WUt(b,k));if(d&&ye(T.declarations,K=>K.getSourceFile().fileName===u.fileName))return;const j=qUt(k,b);if(j&&!(Ph(b.parent)&&ZUt(j))){const K=Pee(k,j,M);if(k.getRootSymbols(T).some(Y=>IUt(Y,j)))return[K];{const Y=YM(k,T,b,M,j)||_t;return b.kind===108?[K,...Y]:[...Y,K]}}if(b.parent.kind===304){const K=k.getShorthandAssignmentValueSymbol(T.valueDeclaration),Y=K!=null&&K.declarations?K.declarations.map(oe=>SK(oe,k,K,b,!1,M)):_t;return an(Y,Y0t(k,b))}if(Ac(b)&&Rs(B)&&Mp(B.parent)&&b===(B.propertyName||B.name)){const K=HH(b),Y=k.getTypeAtLocation(B.parent);return K===void 0?_t:Ku(Y.isUnion()?Y.types:[Y],oe=>{const se=oe.getProperty(K);return se&&YM(k,se,b)})}const J=Y0t(k,b);return an(v,J.length?J:YM(k,T,b,M))}function IUt(t,u){var s;return t===u.symbol||t===u.symbol.parent||od(u.parent)||!g2(u.parent)&&t===((s=ar(u.parent,qg))==null?void 0:s.symbol)}function Y0t(t,u){const s=gK(u);if(s){const d=s&&t.getContextualType(s.parent);if(d)return Ku(mee(s,t,d,!1),f=>YM(t,f,u))}return _t}function RUt(t,u){const s=Ln(u,qd);if(!(s&&s.name))return;const d=Ln(s,gr);if(!d)return;const f=Yg(d);if(!f)return;const p=s0(f.expression),E=Qd(p)?p.symbol:t.getSymbolAtLocation(p);if(!E)return;const v=Yr(O8(s.name)),b=Hc(s)?t.getPropertyOfType(t.getTypeOfSymbol(E),v):t.getPropertyOfType(t.getDeclaredTypeOfSymbol(E),v);if(b)return YM(t,b,u)}function Q0t(t,u,s){var d,f;const p=QM(t.referencedFiles,u);if(p){const b=s.getSourceFileFromReference(t,p);return b&&{reference:p,fileName:b.fileName,file:b,unverified:!1}}const E=QM(t.typeReferenceDirectives,u);if(E){const b=(d=s.getResolvedTypeReferenceDirectives().get(E.fileName,E.resolutionMode||t.impliedNodeFormat))==null?void 0:d.resolvedTypeReferenceDirective,B=b&&s.getSourceFile(b.resolvedFileName);return B&&{reference:E,fileName:B.fileName,file:B,unverified:!1}}const v=QM(t.libReferenceDirectives,u);if(v){const b=s.getLibFileFromReference(v);return b&&{reference:v,fileName:b.fileName,file:b,unverified:!1}}if(t.imports.length||t.moduleAugmentations.length){const b=TM(t,u);let B;if(EX(b)&&Md(b.text)&&(B=s.getResolvedModule(t,b.text,_g(t,b)))){const k=(f=B.resolvedModule)==null?void 0:f.resolvedFileName,T=k||yx(dr(t.fileName),b.text);return{file:s.getSourceFile(T),fileName:T,reference:{pos:b.getStart(),end:b.getEnd(),fileName:b.text},unverified:!k}}}}function OUt(t,u){const s=u.symbol.name;if(!WTe.has(s))return!1;const d=t.resolveName(s,void 0,788968,!1);return!!d&&d===u.target.symbol}function X0t(t,u){if(!u.aliasSymbol)return!1;const s=u.aliasSymbol.name;if(!WTe.has(s))return!1;const d=t.resolveName(s,void 0,788968,!1);return!!d&&d===u.aliasSymbol}function jUt(t,u,s,d){var f,p;if($u(u)&4&&OUt(t,u))return AK(t.getTypeArguments(u)[0],t,s,d);if(X0t(t,u)&&u.aliasTypeArguments)return AK(u.aliasTypeArguments[0],t,s,d);if($u(u)&32&&u.target&&X0t(t,u.target)){const E=(p=(f=u.aliasSymbol)==null?void 0:f.declarations)==null?void 0:p[0];if(E&&Ip(E)&&Y4(E.type)&&E.type.typeArguments)return AK(t.getTypeAtLocation(E.type.typeArguments[0]),t,s,d)}return[]}function VUt(t,u,s){const d=rf(u,s);if(d===u)return;if(H8(d.parent)&&d.parent.name===d)return AK(t.getTypeAtLocation(d.parent),t,d.parent,!1);const{symbol:f,failedAliasResolution:p}=Fpe(d,t,!1);if(!f)return;const E=t.getTypeOfSymbolAtLocation(f,d),v=HUt(f,E,t),b=v&&AK(v,t,d,p),[B,k]=b&&b.length!==0?[v,b]:[E,AK(E,t,d,p)];return k.length?[...jUt(t,B,d,p),...k]:!(f.flags&111551)&&f.flags&788968?YM(t,Q1(f,t),d,p):void 0}function AK(t,u,s,d){return Ku(t.isUnion()&&!(t.flags&32)?t.types:[t],f=>f.symbol&&YM(u,f.symbol,s,d))}function HUt(t,u,s){if(u.symbol===t||t.valueDeclaration&&u.symbol&&ua(t.valueDeclaration)&&t.valueDeclaration.initializer===u.symbol.valueDeclaration){const d=u.getCallSignatures();if(d.length===1)return s.getReturnTypeOfSignature(Mn(d))}}function KUt(t,u,s){const d=Z0t(t,u,s);if(!d||d.length===0)return;const f=QM(u.referencedFiles,s)||QM(u.typeReferenceDirectives,s)||QM(u.libReferenceDirectives,s);if(f)return{definitions:d,textSpan:Ux(f)};const p=rf(u,s),E=c1(p.getStart(),p.getWidth());return{definitions:d,textSpan:E}}function WUt(t,u){return Ui(u.getIndexInfosAtLocation(t),s=>s.declaration&&Pee(u,s.declaration))}function Fpe(t,u,s){const d=u.getSymbolAtLocation(t);let f=!1;if(d!=null&&d.declarations&&d.flags&2097152&&!s&&GUt(t,d.declarations[0])){const p=u.getAliasedSymbol(d);if(p.declarations)return{symbol:p};f=!0}return{symbol:d,failedAliasResolution:f}}function GUt(t,u){return t.kind!==80?!1:t.parent===u?!0:u.kind!==274}function JUt(t){if(!XN(t))return!1;const u=Ln(t,s=>od(s)?!0:XN(s)?!1:"quit");return!!u&&Ql(u)===5}function YM(t,u,s,d,f){const p=ei(u.declarations,T=>T!==f),E=ei(p,T=>!JUt(T)),v=qe(E)?E:p;return b()||B()||Kt(v,T=>SK(T,t,u,s,!1,d));function b(){if(u.flags&32&&!(u.flags&19)&&(BM(s)||s.kind===137)){const T=Le(p,gr)||H.fail("Expected declaration to have at least one class-like declaration");return k(T.members,!0)}}function B(){return Phe(s)||Vhe(s)?k(p,!1):void 0}function k(T,M){if(!T)return;const z=T.filter(M?dc:xo),j=z.filter(J=>!!J.body);return z.length?j.length!==0?j.map(J=>SK(J,t,u,s)):[SK(Cr(z),t,u,s,!1,d)]:void 0}}function SK(t,u,s,d,f,p){const E=u.symbolToString(s),v=D5.getSymbolKind(u,s,d),b=s.parent?u.symbolToString(s.parent,d):"";return HTe(u,t,v,E,b,f,p)}function HTe(t,u,s,d,f,p,E,v){const b=u.getSourceFile();if(!v){const B=qa(u)||u;v=af(B,b)}return{fileName:b.fileName,textSpan:v,kind:s,name:d,containerKind:void 0,containerName:f,...J0.toContextSpan(v,b,J0.getContextNode(u)),isLocal:!KTe(t,u),isAmbient:!!(u.flags&33554432),unverified:p,failedAliasResolution:E}}function KTe(t,u){if(t.isDeclarationVisible(u))return!0;if(!u.parent)return!1;if(Lx(u.parent)&&u.parent.initializer===u)return KTe(t,u.parent);switch(u.kind){case 172:case 177:case 178:case 174:if(If(u,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return KTe(t,u.parent);default:return!1}}function Pee(t,u,s){return SK(u,t,u.symbol,u,!1,s)}function QM(t,u){return Le(t,s=>MO(s,u))}function $Ut(t,u,s){return{fileName:u,textSpan:jc(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0,unverified:s}}function UUt(t){const u=Ln(t,d=>!iw(d)),s=u==null?void 0:u.parent;return s&&g2(s)&&dq(s)===u?s:void 0}function qUt(t,u){const s=UUt(u),d=s&&t.getResolvedSignature(s);return ar(d&&d.declaration,f=>xo(f)&&!n3(f))}function ZUt(t){switch(t.kind){case 176:case 185:case 180:return!0;default:return!1}}var WTe,YUt=o({"src/services/goToDefinition.ts"(){or(),WTe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),xw={};h(xw,{createDefinitionInfo:()=>SK,findReferenceInPosition:()=>QM,getDefinitionAndBoundSpan:()=>KUt,getDefinitionAtPosition:()=>Z0t,getReferenceAtPosition:()=>Q0t,getTypeDefinitionAtPosition:()=>VUt});var QUt=o({"src/services/_namespaces/ts.GoToDefinition.ts"(){YUt()}});function XUt(t){return t.includeInlayParameterNameHints==="literals"||t.includeInlayParameterNameHints==="all"}function eqt(t){return t.includeInlayParameterNameHints==="literals"}function elt(t){return t.interactiveInlayHints===!0}function tqt(t){const{file:u,program:s,span:d,cancellationToken:f,preferences:p}=t,E=u.text,v=s.getCompilerOptions(),b=Vm(u,p),B=s.getTypeChecker(),k=[];return T(u),k;function T(Ae){if(!(!Ae||Ae.getFullWidth()===0)){switch(Ae.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:f.throwIfCancellationRequested()}if(FU(d,Ae.pos,Ae.getFullWidth())&&!(Qr(Ae)&&!l5(Ae)))return p.includeInlayVariableTypeHints&&ua(Ae)||p.includeInlayPropertyDeclarationTypeHints&&bo(Ae)?oe(Ae):p.includeInlayEnumMemberValueHints&&K2(Ae)?K(Ae):XUt(p)&&(No(Ae)||I2(Ae))?se(Ae):(p.includeInlayFunctionParameterTypeHints&&K0(Ae)&&lZ(Ae)&&Se(Ae),p.includeInlayFunctionLikeReturnTypeHints&&M(Ae)&&ne(Ae)),ro(Ae,T)}}function M(Ae){return G0(Ae)||F0(Ae)||Xc(Ae)||cc(Ae)||Mm(Ae)}function z(Ae,De,He,Ge){let ft=`${Ge?"...":""}${Ae}`,Ze;elt(p)?(Ze=[We(ft,De),{text:":"}],ft=""):ft+=":",k.push({text:ft,position:He,kind:"Parameter",whitespaceAfter:!0,displayParts:Ze})}function j(Ae,De){k.push({text:typeof Ae=="string"?`: ${Ae}`:"",displayParts:typeof Ae=="string"?void 0:[{text:": "},...Ae],position:De,kind:"Type",whitespaceBefore:!0})}function J(Ae,De){k.push({text:`= ${Ae}`,position:De,kind:"Enum",whitespaceBefore:!0})}function K(Ae){if(Ae.initializer)return;const De=B.getConstantValue(Ae);De!==void 0&&J(De.toString(),Ae.end)}function Y(Ae){return Ae.symbol&&Ae.symbol.flags&1536}function oe(Ae){if(!Ae.initializer||Fo(Ae.name)||ua(Ae)&&!Be(Ae)||h1(Ae))return;const He=B.getTypeAtLocation(Ae);if(Y(He))return;const Ge=fe(He);if(Ge){const ft=typeof Ge=="string"?Ge:Ge.map(je=>je.text).join("");if(p.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&ZA(Ae.name.getText(),ft))return;j(Ge,Ae.name.end)}}function se(Ae){const De=Ae.arguments;if(!De||!De.length)return;const He=[],Ge=B.getResolvedSignatureForSignatureHelp(Ae,He);if(!Ge||!He.length)return;let ft=0;for(const Ze of De){const je=s0(Ze);if(eqt(p)&&!Ce(je)){ft++;continue}let Ke=0;if(nE(je)){const Yt=B.getTypeAtLocation(je.expression);if(B.isTupleType(Yt)){const{elementFlags:Ie,fixedLength:st}=Yt.target;if(st===0)continue;const St=$e(Ie,ti=>!(ti&1));(St<0?st:St)>0&&(Ke=St<0?st:St)}}const Gt=B.getParameterIdentifierInfoAtPosition(Ge,ft);if(ft=ft+(Ke||1),Gt){const{parameter:Yt,parameterName:Ie,isRestParameter:st}=Gt;if(!(p.includeInlayParameterNameHintsWhenArgumentMatchesName||!ge(je,Ie))&&!st)continue;const It=Yr(Ie);if(ae(je,It))continue;z(It,Yt,Ze.getStart(),st)}}}function ge(Ae,De){return at(Ae)?Ae.text===De:Iu(Ae)?Ae.name.text===De:!1}function ae(Ae,De){if(!Tm(De,v.target,qj(u.scriptKind)))return!1;const He=K_(E,Ae.pos);if(!(He!=null&&He.length))return!1;const Ge=tlt(De);return qe(He,ft=>Ge.test(E.substring(ft.pos,ft.end)))}function Ce(Ae){switch(Ae.kind){case 224:{const De=Ae.operand;return m2(De)||at(De)&&TP(De.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const De=Ae.escapedText;return xe(De)||TP(De)}}return m2(Ae)}function ne(Ae){if(G0(Ae)&&!r0(Ae,21,u)||J4(Ae)||!Ae.body)return;const He=B.getSignatureFromDeclaration(Ae);if(!He)return;const Ge=B.getReturnTypeOfSignature(He);if(Y(Ge))return;const ft=fe(Ge);ft&&j(ft,ve(Ae))}function ve(Ae){const De=r0(Ae,22,u);return De?De.end:Ae.parameters.end}function Se(Ae){const De=B.getSignatureFromDeclaration(Ae);if(De)for(let He=0;He{const ft=B.typeToTypeNode(Ae,void 0,71286784);H.assertIsDefined(ft,"should always get typenode"),He.writeNode(4,ft,u,Ge)})}function fe(Ae){if(!elt(p))return pe(Ae);const He=B.typeToTypeNode(Ae,void 0,71286784);H.assertIsDefined(He,"should always get typenode");const Ge=[];return ft(He),Ge;function ft(Ke){if(!Ke)return;const Gt=Jo(Ke.kind);if(Gt){Ge.push({text:Gt});return}if(m2(Ke)){Ge.push({text:je(Ke)});return}switch(Ke.kind){case 80:const Yt=Ke,Ie=mu(Yt),st=Yt.symbol&&Yt.symbol.declarations&&Yt.symbol.declarations.length&&qa(Yt.symbol.declarations[0]);st?Ge.push(We(Ie,st)):Ge.push({text:Ie});break;case 166:const St=Ke;ft(St.left),Ge.push({text:"."}),ft(St.right);break;case 182:const It=Ke;It.assertsModifier&&Ge.push({text:"asserts "}),ft(It.parameterName),It.type&&(Ge.push({text:" is "}),ft(It.type));break;case 183:const ti=Ke;ft(ti.typeName),ti.typeArguments&&(Ge.push({text:"<"}),Ze(ti.typeArguments,", "),Ge.push({text:">"}));break;case 168:const ht=Ke;ht.modifiers&&Ze(ht.modifiers," "),ft(ht.name),ht.constraint&&(Ge.push({text:" extends "}),ft(ht.constraint)),ht.default&&(Ge.push({text:" = "}),ft(ht.default));break;case 169:const Ut=Ke;Ut.modifiers&&Ze(Ut.modifiers," "),Ut.dotDotDotToken&&Ge.push({text:"..."}),ft(Ut.name),Ut.questionToken&&Ge.push({text:"?"}),Ut.type&&(Ge.push({text:": "}),ft(Ut.type));break;case 185:const Li=Ke;Ge.push({text:"new "}),Li.typeParameters&&(Ge.push({text:"<"}),Ze(Li.typeParameters,", "),Ge.push({text:">"})),Ge.push({text:"("}),Ze(Li.parameters,", "),Ge.push({text:")"}),Ge.push({text:" => "}),ft(Li.type);break;case 186:const ji=Ke;Ge.push({text:"typeof "}),ft(ji.exprName),ji.typeArguments&&(Ge.push({text:"<"}),Ze(ji.typeArguments,", "),Ge.push({text:">"}));break;case 187:const xn=Ke;Ge.push({text:"{"}),xn.members.length&&(Ge.push({text:" "}),Ze(xn.members,"; "),Ge.push({text:" "})),Ge.push({text:"}"});break;case 188:ft(Ke.elementType),Ge.push({text:"[]"});break;case 189:Ge.push({text:"["}),Ze(Ke.elements,", "),Ge.push({text:"]"});break;case 202:const Un=Ke;Un.dotDotDotToken&&Ge.push({text:"..."}),ft(Un.name),Un.questionToken&&Ge.push({text:"?"}),Ge.push({text:": "}),ft(Un.type);break;case 190:ft(Ke.type),Ge.push({text:"?"});break;case 191:Ge.push({text:"..."}),ft(Ke.type);break;case 192:Ze(Ke.types," | ");break;case 193:Ze(Ke.types," & ");break;case 194:const rn=Ke;ft(rn.checkType),Ge.push({text:" extends "}),ft(rn.extendsType),Ge.push({text:" ? "}),ft(rn.trueType),Ge.push({text:" : "}),ft(rn.falseType);break;case 195:Ge.push({text:"infer "}),ft(Ke.typeParameter);break;case 196:Ge.push({text:"("}),ft(Ke.type),Ge.push({text:")"});break;case 198:const Ni=Ke;Ge.push({text:`${Jo(Ni.operator)} `}),ft(Ni.type);break;case 199:const Fi=Ke;ft(Fi.objectType),Ge.push({text:"["}),ft(Fi.indexType),Ge.push({text:"]"});break;case 200:const Qu=Ke;Ge.push({text:"{ "}),Qu.readonlyToken&&(Qu.readonlyToken.kind===40?Ge.push({text:"+"}):Qu.readonlyToken.kind===41&&Ge.push({text:"-"}),Ge.push({text:"readonly "})),Ge.push({text:"["}),ft(Qu.typeParameter),Qu.nameType&&(Ge.push({text:" as "}),ft(Qu.nameType)),Ge.push({text:"]"}),Qu.questionToken&&(Qu.questionToken.kind===40?Ge.push({text:"+"}):Qu.questionToken.kind===41&&Ge.push({text:"-"}),Ge.push({text:"?"})),Ge.push({text:": "}),Qu.type&&ft(Qu.type),Ge.push({text:"; }"});break;case 201:ft(Ke.literal);break;case 184:const aa=Ke;aa.typeParameters&&(Ge.push({text:"<"}),Ze(aa.typeParameters,", "),Ge.push({text:">"})),Ge.push({text:"("}),Ze(aa.parameters,", "),Ge.push({text:")"}),Ge.push({text:" => "}),ft(aa.type);break;case 205:const Fr=Ke;Fr.isTypeOf&&Ge.push({text:"typeof "}),Ge.push({text:"import("}),ft(Fr.argument),Fr.assertions&&(Ge.push({text:", { assert: "}),Ze(Fr.assertions.assertClause.elements,", "),Ge.push({text:" }"})),Ge.push({text:")"}),Fr.qualifier&&(Ge.push({text:"."}),ft(Fr.qualifier)),Fr.typeArguments&&(Ge.push({text:"<"}),Ze(Fr.typeArguments,", "),Ge.push({text:">"}));break;case 171:const Ba=Ke;Ba.modifiers&&Ze(Ba.modifiers," "),ft(Ba.name),Ba.questionToken&&Ge.push({text:"?"}),Ba.type&&(Ge.push({text:": "}),ft(Ba.type));break;default:H.failBadSyntaxKind(Ke)}}function Ze(Ke,Gt){Ke.forEach((Yt,Ie)=>{Ie>0&&Ge.push({text:Gt}),ft(Yt)})}function je(Ke){return ns(Ke)?b===0?`'${kv(Ke.text,39)}'`:`"${kv(Ke.text,34)}"`:Ke.text}}function xe(Ae){return Ae==="undefined"}function Be(Ae){if((A2(Ae)||ua(Ae)&&V8(Ae))&&Ae.initializer){const De=s0(Ae.initializer);return!(Ce(De)||I2(De)||Cs(De)||qy(De))}return!0}function We(Ae,De){const He=De.getSourceFile();return{text:Ae,span:af(De,He),file:He.fileName}}}var tlt,iqt=o({"src/services/inlayHints.ts"(){or(),tlt=t=>new RegExp(`^\\s?/\\*\\*?\\s?${t}\\s?\\*\\/\\s?$`)}}),Ape={};h(Ape,{provideInlayHints:()=>tqt});var nqt=o({"src/services/_namespaces/ts.InlayHints.ts"(){iqt()}});function uqt(t,u){const s=[];return sfe(t,d=>{for(const f of aqt(d)){const p=Rp(f)&&f.tags&&Le(f.tags,v=>v.kind===334&&(v.tagName.escapedText==="inheritDoc"||v.tagName.escapedText==="inheritdoc"));if(f.comment===void 0&&!p||Rp(f)&&d.kind!==353&&d.kind!==345&&f.tags&&f.tags.some(v=>v.kind===353||v.kind===345)&&!f.tags.some(v=>v.kind===348||v.kind===349))continue;let E=f.comment?vw(f.comment,u):[];p&&p.comment&&(E=E.concat(vw(p.comment,u))),Ft(s,E,rqt)||s.push(E)}}),Va(_e(s,[ow()]))}function rqt(t,u){return Zt(t,u,(s,d)=>s.kind===d.kind&&s.text===d.text)}function aqt(t){switch(t.kind){case 348:case 355:return[t];case 345:case 353:return[t,t.parent];case 330:if(TB(t.parent))return[t.parent.parent];default:return z0e(t)}}function oqt(t,u){const s=[];return sfe(t,d=>{const f=xv(d);if(!(f.some(p=>p.kind===353||p.kind===345)&&!f.some(p=>p.kind===348||p.kind===349)))for(const p of f)s.push({name:p.tagName.text,text:ilt(p,u)}),HO(p)&&p.isNameFirst&&p.typeExpression&&V7(p.typeExpression.type)&&L(p.typeExpression.type.jsDocPropertyTags,E=>{s.push({name:E.tagName.text,text:ilt(E,u)})})}),s}function vw(t,u){return typeof t=="string"?[Hm(t)]:Ku(t,s=>s.kind===328?[Hm(s.text)]:ESe(s,u))}function ilt(t,u){const{comment:s,kind:d}=t,f=sqt(d);switch(d){case 356:const v=t.typeExpression;return v?p(v):s===void 0?void 0:vw(s,u);case 336:return p(t.class);case 335:return p(t.class);case 352:const b=t,B=[];if(b.constraint&&B.push(Hm(b.constraint.getText())),S(b.typeParameters)){S(B)&&B.push(Jl());const T=b.typeParameters[b.typeParameters.length-1];L(b.typeParameters,M=>{B.push(f(M.getText())),T!==M&&B.push(th(28),Jl())})}return s&&B.push(Jl(),...vw(s,u)),B;case 351:case 357:return p(t.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:k}=t;return k?p(k):s===void 0?void 0:vw(s,u);default:return s===void 0?void 0:vw(s,u)}function p(v){return E(v.getText())}function E(v){return s?v.match(/^https?$/)?[Hm(v),...vw(s,u)]:[f(v),Jl(),...vw(s,u)]:[Hm(v)]}}function sqt(t){switch(t){case 348:return hSe;case 355:return fSe;case 352:return pSe;case 353:case 345:return mSe;default:return Hm}}function lqt(){return ult||(ult=Kt(JTe,t=>({name:t,kind:"keyword",kindModifiers:"",sortText:c9.SortText.LocationPriority})))}function cqt(){return rlt||(rlt=Kt(JTe,t=>({name:`@${t}`,kind:"keyword",kindModifiers:"",sortText:c9.SortText.LocationPriority})))}function nlt(t){return{name:t,kind:"",kindModifiers:"",displayParts:[Hm(t)],documentation:_t,tags:void 0,codeActions:void 0}}function dqt(t){if(!at(t.name))return _t;const u=t.name.text,s=t.parent,d=s.parent;return xo(d)?Ui(d.parameters,f=>{if(!at(f.name))return;const p=f.name.text;if(!(s.tags.some(E=>E!==t&&pg(E)&&at(E.name)&&E.name.escapedText===p)||u!==void 0&&!Na(p,u)))return{name:p,kind:"parameter",kindModifiers:"",sortText:c9.SortText.LocationPriority}}):[]}function hqt(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[Hm(t)],documentation:_t,tags:void 0,codeActions:void 0}}function fqt(t,u,s,d){const f=ba(u,s),p=Ln(f,Rp);if(p&&(p.comment!==void 0||S(p.tags)))return;const E=f.getStart(u);if(!p&&E0;if(J&&!oe){const se=K+t+z+" * ",ge=E===s?t+z:"";return{newText:se+t+J+z+Y+ge,caretOffset:se.length}}return{newText:K+Y,caretOffset:3}}function mqt(t,u){const{text:s}=t,d=X4(u,t);let f=d;for(;f<=u&&Ug(s.charCodeAt(f));f++);return s.slice(d,f)}function pqt(t,u,s,d){return t.map(({name:f,dotDotDotToken:p},E)=>{const v=f.kind===80?f.text:"param"+E;return`${s} * @param ${u?p?"{...any} ":"{any} ":""}${v}${d}`}).join("")}function gqt(t,u){return`${t} * @returns${u}`}function Eqt(t,u){return Cbe(t,s=>GTe(s,u))}function GTe(t,u){switch(t.kind){case 262:case 218:case 174:case 176:case 173:case 219:const s=t;return{commentOwner:t,parameters:s.parameters,hasReturn:Mee(s,u)};case 303:return GTe(t.initializer,u);case 263:case 264:case 266:case 306:case 265:return{commentOwner:t};case 171:{const f=t;return f.type&&n3(f.type)?{commentOwner:t,parameters:f.type.parameters,hasReturn:Mee(f.type,u)}:{commentOwner:t}}case 243:{const p=t.declarationList.declarations,E=p.length===1&&p[0].initializer?_qt(p[0].initializer):void 0;return E?{commentOwner:t,parameters:E.parameters,hasReturn:Mee(E,u)}:{commentOwner:t}}case 312:return"quit";case 267:return t.parent.kind===267?void 0:{commentOwner:t};case 244:return GTe(t.expression,u);case 226:{const f=t;return Ql(f)===0?"quit":xo(f.right)?{commentOwner:t,parameters:f.right.parameters,hasReturn:Mee(f.right,u)}:{commentOwner:t}}case 172:const d=t.initializer;if(d&&(F0(d)||G0(d)))return{commentOwner:t,parameters:d.parameters,hasReturn:Mee(d,u)}}}function Mee(t,u){return!!(u!=null&&u.generateReturnInDocTemplate)&&(n3(t)||G0(t)&&Wt(t.body)||K0(t)&&t.body&&fo(t.body)&&!!v2(t.body,s=>s))}function _qt(t){for(;t.kind===217;)t=t.expression;switch(t.kind){case 218:case 219:return t;case 231:return Le(t.members,dc)}}var JTe,ult,rlt,alt,Dqt=o({"src/services/jsDoc.ts"(){or(),JTe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],alt=nlt}}),qv={};h(qv,{getDocCommentTemplateAtPosition:()=>fqt,getJSDocParameterNameCompletionDetails:()=>hqt,getJSDocParameterNameCompletions:()=>dqt,getJSDocTagCompletionDetails:()=>nlt,getJSDocTagCompletions:()=>cqt,getJSDocTagNameCompletionDetails:()=>alt,getJSDocTagNameCompletions:()=>lqt,getJsDocCommentsFromDeclarations:()=>uqt,getJsDocTagsFromDeclarations:()=>oqt});var xqt=o({"src/services/_namespaces/ts.JsDoc.ts"(){Dqt()}});function vqt(t,u,s,d,f,p){const E=nu.ChangeTracker.fromContext({host:s,formatContext:u,preferences:f}),v=p==="SortAndCombine"||p==="All",b=v,B=p==="RemoveUnused"||p==="All",k=Spe(t,t.statements.filter(Ad)),T=Rqt(f,v?()=>llt(k,f)===2:void 0),M=j=>(B&&(j=bqt(j,t,d)),b&&(j=olt(j,T,t)),v&&(j=ac(j,(J,K)=>YTe(J,K,T))),j);k.forEach(j=>z(j,M)),p!=="RemoveUnused"&&Oqt(t).forEach(j=>z(j,J=>$Te(J,T)));for(const j of t.statements.filter(L1)){if(!j.body)continue;if(Spe(t,j.body.statements.filter(Ad)).forEach(K=>z(K,M)),p!=="RemoveUnused"){const K=j.body.statements.filter(Wc);z(K,Y=>$Te(Y,T))}}return E.getChanges();function z(j,J){if(S(j)===0)return;Qn(j[0],1024);const K=b?xN(j,se=>zee(se.moduleSpecifier)):[j],Y=v?ac(K,(se,ge)=>qTe(se[0].moduleSpecifier,ge[0].moduleSpecifier,T)):K,oe=Ku(Y,se=>zee(se[0].moduleSpecifier)||se[0].moduleSpecifier===void 0?J(se):se);if(oe.length===0)E.deleteNodes(t,j,{leadingTriviaOption:nu.LeadingTriviaOption.Exclude,trailingTriviaOption:nu.TrailingTriviaOption.Include},!0);else{const se={leadingTriviaOption:nu.LeadingTriviaOption.Exclude,trailingTriviaOption:nu.TrailingTriviaOption.Include,suffix:g5(s,u.options)};E.replaceNodeWithNodes(t,j[0],oe,se);const ge=E.nodeHasTrailingComment(t,j[0],se);E.deleteNodes(t,j.slice(1),{trailingTriviaOption:nu.TrailingTriviaOption.Include},ge)}}}function Spe(t,u){const s=ZD(t.languageVersion,!1,t.languageVariant),d=[];let f=0;for(const p of u)d[f]&&Cqt(t,p,s)&&f++,d[f]||(d[f]=[]),d[f].push(p);return d}function Cqt(t,u,s){const d=u.getFullStart(),f=u.getStart();s.setText(t.text,d,f-d);let p=0;for(;s.getTokenStart()=2))return!0;return!1}function bqt(t,u,s){const d=s.getTypeChecker(),f=s.getCompilerOptions(),p=d.getJsxNamespace(u),E=d.getJsxFragmentFactory(u),v=!!(u.transformFlags&2),b=[];for(const k of t){const{importClause:T,moduleSpecifier:M}=k;if(!T){b.push(k);continue}let{name:z,namedBindings:j}=T;if(z&&!B(z)&&(z=void 0),j)if(Gx(j))B(j.name)||(j=void 0);else{const J=j.elements.filter(K=>B(K.name));J.lengthns(d)&&d.text===s)}function zee(t){return t!==void 0&&t0(t)?t.text:void 0}function kqt(t,u,s){const d=Bpe(u);return olt(t,d,s)}function olt(t,u,s){if(t.length===0)return t;const{importWithoutClause:d,typeOnlyImports:f,regularImports:p}=Fqt(t),E=[];d&&E.push(d);for(const v of[p,f]){const b=v===f,{defaultImports:B,namespaceImports:k,namedImports:T}=v;if(!b&&B.length===1&&k.length===1&&T.length===0){const ge=B[0];E.push(BK(ge,ge.importClause.name,k[0].importClause.namedBindings));continue}const M=ac(k,(ge,ae)=>u(ge.importClause.namedBindings.name.text,ae.importClause.namedBindings.name.text));for(const ge of M)E.push(BK(ge,void 0,ge.importClause.namedBindings));const z=Hi(B),j=Hi(T),J=z??j;if(!J)continue;let K;const Y=[];if(B.length===1)K=B[0].importClause.name;else for(const ge of B)Y.push(q.createImportSpecifier(!1,q.createIdentifier("default"),ge.importClause.name));Y.push(...Pqt(T));const oe=q.createNodeArray(slt(Y,u),j==null?void 0:j.importClause.namedBindings.elements.hasTrailingComma),se=oe.length===0?K?void 0:q.createNamedImports(_t):j?q.updateNamedImports(j.importClause.namedBindings,oe):q.createNamedImports(oe);s&&se&&(j!=null&&j.importClause.namedBindings)&&!ck(j.importClause.namedBindings,s)&&Qn(se,2),b&&K&&se?(E.push(BK(J,K,void 0)),E.push(BK(j??J,void 0,se))):E.push(BK(J,K,se))}return E}function Fqt(t){let u;const s={defaultImports:[],namespaceImports:[],namedImports:[]},d={defaultImports:[],namespaceImports:[],namedImports:[]};for(const f of t){if(f.importClause===void 0){u=u||f;continue}const p=f.importClause.isTypeOnly?s:d,{name:E,namedBindings:v}=f.importClause;E&&p.defaultImports.push(f),v&&(Gx(v)?p.namespaceImports.push(f):p.namedImports.push(f))}return{importWithoutClause:u,typeOnlyImports:s,regularImports:d}}function Aqt(t,u){const s=Bpe(u);return $Te(t,s)}function $Te(t,u){if(t.length===0)return t;const{exportWithoutClause:s,namedExports:d,typeOnlyExports:f}=E(t),p=[];s&&p.push(s);for(const v of[d,f]){if(v.length===0)continue;const b=[];b.push(...Ku(v,T=>T.exportClause&&Q4(T.exportClause)?T.exportClause.elements:_t));const B=slt(b,u),k=v[0];p.push(q.updateExportDeclaration(k,k.modifiers,k.isTypeOnly,k.exportClause&&(Q4(k.exportClause)?q.updateNamedExports(k.exportClause,B):q.updateNamespaceExport(k.exportClause,k.exportClause.name)),k.moduleSpecifier,k.attributes))}return p;function E(v){let b;const B=[],k=[];for(const T of v)T.exportClause===void 0?b=b||T:T.isTypeOnly?k.push(T):B.push(T);return{exportWithoutClause:b,namedExports:B,typeOnlyExports:k}}}function BK(t,u,s){return q.updateImportDeclaration(t,t.modifiers,q.updateImportClause(t.importClause,t.importClause.isTypeOnly,u,s),t.moduleSpecifier,t.attributes)}function slt(t,u){return ac(t,(s,d)=>UTe(s,d,u))}function UTe(t,u,s){return s2(t.isTypeOnly,u.isTypeOnly)||s(t.name.text,u.name.text)}function Sqt(t,u,s){const d=Bpe(!!s);return qTe(t,u,d)}function qTe(t,u,s){const d=t===void 0?void 0:zee(t),f=u===void 0?void 0:zee(u);return s2(d===void 0,f===void 0)||s2(Md(d),Md(f))||s(d,f)}function ZTe(t){var u;switch(t.kind){case 271:return(u=ar(t.moduleReference,u_))==null?void 0:u.expression;case 272:return t.moduleSpecifier;case 243:return t.declarationList.declarations[0].initializer.arguments[0]}}function Bqt(t,u){return llt(Spe(t,t.statements.filter(Ad)),u)}function llt(t,u){const s=Cw(u,!1),d=Cw(u,!0);let f=3,p=!1;for(const E of t){if(E.length>1){const b=hn(E,B=>{var k;return((k=ar(B.moduleSpecifier,ns))==null?void 0:k.text)??""},s,d);if(b&&(f&=b,p=!0),!f)return f}const v=Le(E,b=>{var B,k;return((k=ar((B=b.importClause)==null?void 0:B.namedBindings,nD))==null?void 0:k.elements.length)>1});if(v){const b=QTe(v.importClause.namedBindings.elements,u);if(b&&(f&=b,p=!0),!f)return f}if(f!==3)return f}return p?0:f}function wqt(t,u){const s=Cw(u,!1),d=Cw(u,!0);return hn(t,f=>zee(ZTe(f))||"",s,d)}function Tqt(t,u,s){const d=Hl(t,u,el,(f,p)=>YTe(f,p,s));return d<0?~d:d}function Lqt(t,u,s){const d=Hl(t,u,el,(f,p)=>UTe(f,p,s));return d<0?~d:d}function YTe(t,u,s){return qTe(ZTe(t),ZTe(u),s)||Nqt(t,u)}function Nqt(t,u){return tl(clt(t),clt(u))}function clt(t){var u;switch(t.kind){case 272:return t.importClause?t.importClause.isTypeOnly?1:((u=t.importClause.namedBindings)==null?void 0:u.kind)===274?2:t.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Pqt(t){return Ku(t,u=>Kt(Mqt(u),s=>s.name&&s.propertyName&&s.name.escapedText===s.propertyName.escapedText?q.updateImportSpecifier(s,s.isTypeOnly,void 0,s.name):s))}function Mqt(t){var u;return(u=t.importClause)!=null&&u.namedBindings&&nD(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}function Bpe(t){return t?$Ce:ch}function zqt(t,u){const s=Iqt(u),d=u.organizeImportsCaseFirst??!1,f=u.organizeImportsNumericCollation??!1,p=u.organizeImportsAccentCollation??!0,E=t?p?"accent":"base":p?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:d||"false",sensitivity:E,numeric:f}).compare}function Iqt(t){let u=t.organizeImportsLocale;u==="auto"&&(u=UCe()),u===void 0&&(u="en");const s=Intl.Collator.supportedLocalesOf(u);return s.length?s[0]:"en"}function Cw(t,u){return(t.organizeImportsCollation??"ordinal")==="unicode"?zqt(u,t):Bpe(u)}function Rqt(t,u){const s=typeof t.organizeImportsIgnoreCase=="boolean"?t.organizeImportsIgnoreCase:(u==null?void 0:u())??!1;return Cw(t,s)}function Oqt(t){const u=[],s=t.statements,d=S(s);let f=0,p=0;for(;fSpe(t,E))}var dlt,QTe,jqt=o({"src/services/organizeImports.ts"(){or(),dlt=class{has([t,u]){return this._lastPreferences!==u||!this._cache?!1:this._cache.has(t)}get([t,u]){if(!(this._lastPreferences!==u||!this._cache))return this._cache.get(t)}set([t,u],s){this._lastPreferences!==u&&(this._lastPreferences=u,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(t,s)}},QTe=JCe((t,u)=>{if(!ci(t,(f,p)=>s2(f.isTypeOnly,p.isTypeOnly)))return 0;const s=Cw(u,!1),d=Cw(u,!0);return hn(t,f=>f.name.text,s,d)},new dlt)}}),Hp={};h(Hp,{coalesceExports:()=>Aqt,coalesceImports:()=>kqt,compareImportOrExportSpecifiers:()=>UTe,compareImportsOrRequireStatements:()=>YTe,compareModuleSpecifiers:()=>Sqt,detectImportDeclarationSorting:()=>wqt,detectImportSpecifierSorting:()=>QTe,detectSorting:()=>Bqt,getImportDeclarationInsertionIndex:()=>Tqt,getImportSpecifierInsertionIndex:()=>Lqt,getOrganizeImportsComparer:()=>Cw,organizeImports:()=>vqt});var Vqt=o({"src/services/_namespaces/ts.OrganizeImports.ts"(){jqt()}});function Hqt(t,u){const s=[];return Kqt(t,u,s),Wqt(t,s),s.sort((d,f)=>d.textSpan.start-f.textSpan.start)}function Kqt(t,u,s){let d=40,f=0;const p=[...t.statements,t.endOfFileToken],E=p.length;for(;f1&&d.push(Iee(p,E,"comment"))}}function flt(t,u,s,d){S7(t)||XTe(t.pos,u,s,d)}function Iee(t,u,s){return h9(jc(t,u),s)}function Gqt(t,u){switch(t.kind){case 241:if(xo(t.parent))return Jqt(t.parent,t,u);switch(t.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return k(t.parent);case 258:const z=t.parent;if(z.tryBlock===t)return k(t.parent);if(z.finallyBlock===t){const j=r0(z,98,u);if(j)return k(j)}default:return h9(af(t,u),"code")}case 268:return k(t.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return k(t);case 189:return k(t,!1,!CB(t.parent),23);case 296:case 297:return T(t.statements);case 210:return B(t);case 209:return B(t,23);case 284:return p(t);case 288:return E(t);case 285:case 286:return v(t.attributes);case 228:case 15:return b(t);case 207:return k(t,!1,!Rs(t.parent),23);case 219:return f(t);case 213:return d(t);case 217:return M(t);case 275:case 279:case 300:return s(t)}function s(z){if(!z.elements.length)return;const j=r0(z,19,u),J=r0(z,20,u);if(!(!j||!J||$4(j.pos,J.pos,u)))return wpe(j,J,z,u,!1,!1)}function d(z){if(!z.arguments.length)return;const j=r0(z,21,u),J=r0(z,22,u);if(!(!j||!J||$4(j.pos,J.pos,u)))return wpe(j,J,z,u,!1,!0)}function f(z){if(fo(z.body)||vf(z.body)||$4(z.body.getFullStart(),z.body.getEnd(),u))return;const j=jc(z.body.getFullStart(),z.body.getEnd());return h9(j,"code",af(z))}function p(z){const j=jc(z.openingElement.getStart(u),z.closingElement.getEnd()),J=z.openingElement.tagName.getText(u),K="<"+J+">...";return h9(j,"code",j,!1,K)}function E(z){const j=jc(z.openingFragment.getStart(u),z.closingFragment.getEnd());return h9(j,"code",j,!1,"<>...")}function v(z){if(z.properties.length!==0)return Iee(z.getStart(u),z.getEnd(),"code")}function b(z){if(!(z.kind===15&&z.text.length===0))return Iee(z.getStart(u),z.getEnd(),"code")}function B(z,j=19){return k(z,!1,!_h(z.parent)&&!No(z.parent),j)}function k(z,j=!1,J=!0,K=19,Y=K===19?20:24){const oe=r0(t,K,u),se=r0(t,Y,u);return oe&&se&&wpe(oe,se,z,u,j,J)}function T(z){return z.length?h9(Ux(z),"code"):void 0}function M(z){if($4(z.getStart(),z.getEnd(),u))return;const j=jc(z.getStart(),z.getEnd());return h9(j,"code",af(z))}}function Jqt(t,u,s){const d=$qt(t,u,s),f=r0(u,20,s);return d&&f&&wpe(d,f,t,s,t.kind!==219)}function wpe(t,u,s,d,f=!1,p=!0){const E=jc(p?t.getFullStart():t.getStart(d),u.getEnd());return h9(E,"code",af(s,d),f)}function h9(t,u,s=t,d=!1,f="..."){return{textSpan:t,kind:u,hintSpan:s,bannerText:f,autoCollapse:d}}function $qt(t,u,s){if(Vye(t.parameters,s)){const d=r0(t,21,s);if(d)return d}return r0(u,19,s)}var mlt,Uqt=o({"src/services/outliningElementsCollector.ts"(){or(),mlt=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Tpe={};h(Tpe,{collectElements:()=>Hqt});var qqt=o({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Uqt()}});function Zqt(t,u,s,d){const f=rX(rf(u,s));if(glt(f)){const p=Yqt(f,t.getTypeChecker(),u,t,d);if(p)return p}return Lpe(F.You_cannot_rename_this_element)}function Yqt(t,u,s,d,f){const p=u.getSymbolAtLocation(t);if(!p){if(t0(t)){const M=uX(t,u);if(M&&(M.flags&128||M.flags&1048576&&ye(M.types,z=>!!(z.flags&128))))return eLe(t.text,t.text,"string","",t,s)}else if(Ihe(t)){const M=Vc(t);return eLe(M,M,"label","",t,s)}return}const{declarations:E}=p;if(!E||E.length===0)return;if(E.some(M=>Qqt(d,M)))return Lpe(F.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(at(t)&&t.escapedText==="default"&&p.parent&&p.parent.flags&1536)return;if(t0(t)&&kj(t))return f.allowRenameOfImportPath?eZt(t,s,p):void 0;const v=Xqt(s,p,u,f);if(v)return Lpe(v);const b=D5.getSymbolKind(u,p,t),B=_Se(t)||Nm(t)&&t.parent.kind===167?G4(W4(t)):void 0,k=B||u.symbolToString(p),T=B||u.getFullyQualifiedName(p);return eLe(k,T,b,D5.getSymbolModifiers(u,p),t,s)}function Qqt(t,u){const s=u.getSourceFile();return t.isSourceFileDefaultLibrary(s)&&Pl(s.fileName,".d.ts")}function Xqt(t,u,s,d){if(!d.providePrefixAndSuffixTextForRename&&u.flags&2097152){const E=u.declarations&&Le(u.declarations,v=>Cf(v));E&&!E.propertyName&&(u=s.getAliasedSymbol(u))}const{declarations:f}=u;if(!f)return;const p=plt(t.path);if(p===void 0)return qe(f,E=>YH(E.getSourceFile().path))?F.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const E of f){const v=plt(E.getSourceFile().path);if(v){const b=Math.min(p.length,v.length);for(let B=0;B<=b;B++)if(ch(p[B],v[B])!==0)return F.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function plt(t){const u=bd(t),s=u.lastIndexOf("node_modules");if(s!==-1)return u.slice(0,s+2)}function eZt(t,u,s){if(!Md(t.text))return Lpe(F.You_cannot_rename_a_module_via_a_global_import);const d=s.declarations&&Le(s.declarations,ca);if(!d)return;const f=oc(t.text,"/index")||oc(t.text,"/index.js")?void 0:YCe(Eh(d.fileName),"/index"),p=f===void 0?d.fileName:f,E=f===void 0?"module":"directory",v=t.text.lastIndexOf("/")+1,b=c1(t.getStart(u)+1+v,t.text.length-v);return{canRename:!0,fileToRename:p,kind:E,displayName:p,fullDisplayName:p,kindModifiers:"",triggerSpan:b}}function eLe(t,u,s,d,f,p){return{canRename:!0,fileToRename:void 0,kind:s,displayName:t,fullDisplayName:u,kindModifiers:d,triggerSpan:tZt(f,p)}}function Lpe(t){return{canRename:!1,localizedErrorMessage:Xa(t)}}function tZt(t,u){let s=t.getStart(u),d=t.getWidth(u);return t0(t)&&(s+=1,d-=2),c1(s,d)}function glt(t){switch(t.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return eX(t);default:return!1}}var iZt=o({"src/services/rename.ts"(){or()}}),Ree={};h(Ree,{getRenameInfo:()=>Zqt,nodeIsEligibleForRename:()=>glt});var nZt=o({"src/services/_namespaces/ts.Rename.ts"(){iZt()}});function uZt(t,u,s,d,f){const p=t.getTypeChecker(),E=aX(u,s);if(!E)return;const v=!!d&&d.kind==="characterTyped";if(v&&(Pk(u,s,E)||f5(u,s)))return;const b=!!d&&d.kind==="invoked",B=xZt(E,s,u,p,b);if(!B)return;f.throwIfCancellationRequested();const k=rZt(B,p,u,E,v);return f.throwIfCancellationRequested(),k?p.runWithCancellationToken(f,T=>k.kind===0?blt(k.candidates,k.resolvedSignature,B,u,T):CZt(k.symbol,B,u,T)):ph(u)?oZt(B,t,f):void 0}function rZt({invocation:t,argumentCount:u},s,d,f,p){switch(t.kind){case 0:{if(p&&!aZt(f,t.node,d))return;const E=[],v=s.getResolvedSignatureForSignatureHelp(t.node,E,u);return E.length===0?void 0:{kind:0,candidates:E,resolvedSignature:v}}case 1:{const{called:E}=t;if(p&&!Elt(f,d,at(E)?E.parent:E))return;const v=$he(E,u,s);if(v.length!==0)return{kind:0,candidates:v,resolvedSignature:Mn(v)};const b=s.getSymbolAtLocation(E);return b&&{kind:1,symbol:b}}case 2:return{kind:0,candidates:[t.signature],resolvedSignature:t.signature};default:return H.assertNever(t)}}function aZt(t,u,s){if(!JE(u))return!1;const d=u.getChildren(s);switch(t.kind){case 21:return Ft(d,t);case 28:{const f=nX(t);return!!f&&Ft(d,f)}case 30:return Elt(t,s,u.expression);default:return!1}}function oZt(t,u,s){if(t.invocation.kind===2)return;const d=vlt(t.invocation),f=Iu(d)?d.name.text:void 0,p=u.getTypeChecker();return f===void 0?void 0:G(u.getSourceFiles(),E=>G(E.getNamedDeclarations().get(f),v=>{const b=v.symbol&&p.getTypeOfSymbolAtLocation(v.symbol,v),B=b&&b.getCallSignatures();if(B&&B.length)return p.runWithCancellationToken(s,k=>blt(B,B[0],t,E,k,!0))}))}function Elt(t,u,s){const d=t.getFullStart();let f=t.parent;for(;f;){const p=ed(d,u,f,!0);if(p)return jm(s,p);f=f.parent}return H.fail("Could not find preceding token")}function sZt(t,u,s){const d=Dlt(t,u,s);return!d||d.isTypeParameterList||d.invocation.kind!==0?void 0:{invocation:d.invocation.node,argumentCount:d.argumentCount,argumentIndex:d.argumentIndex}}function _lt(t,u,s){const d=lZt(t,s);if(!d)return;const{list:f,argumentIndex:p}=d,E=gZt(f,Pk(s,u,t));p!==0&&H.assertLessThan(p,E);const v=_Zt(f,s);return{list:f,argumentIndex:p,argumentCount:E,argumentsSpan:v}}function lZt(t,u){if(t.kind===30||t.kind===21)return{list:vZt(t.parent,t,u),argumentIndex:0};{const s=nX(t);return s&&{list:s,argumentIndex:pZt(s,t)}}}function Dlt(t,u,s){const{parent:d}=t;if(JE(d)){const f=d,p=_lt(t,u,s);if(!p)return;const{list:E,argumentIndex:v,argumentCount:b,argumentsSpan:B}=p;return{isTypeParameterList:!!d.typeArguments&&d.typeArguments.pos===E.pos,invocation:{kind:0,node:f},argumentsSpan:B,argumentIndex:v,argumentCount:b}}else{if(B7(t)&&Ek(d))return RH(t,u,s)?iLe(d,0,s):void 0;if(DB(t)&&d.parent.kind===215){const f=d,p=f.parent;H.assert(f.kind===228);const E=RH(t,u,s)?0:1;return iLe(p,E,s)}else if(UP(d)&&Ek(d.parent.parent)){const f=d,p=d.parent.parent;if(mce(t)&&!RH(t,u,s))return;const E=f.parent.templateSpans.indexOf(f),v=EZt(E,t,u,s);return iLe(p,v,s)}else if(Ph(d)){const f=d.attributes.pos,p=ms(s.text,d.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:d},argumentsSpan:c1(f,p-f),argumentIndex:0,argumentCount:1}}else{const f=Uhe(t,s);if(f){const{called:p,nTypeArguments:E}=f,v={kind:1,called:p},b=jc(p.getStart(s),t.end);return{isTypeParameterList:!0,invocation:v,argumentsSpan:b,argumentIndex:E,argumentCount:E+1}}return}}}function cZt(t,u,s,d){return dZt(t,u,s,d)||Dlt(t,u,s)}function xlt(t){return tu(t.parent)?xlt(t.parent):t}function tLe(t){return tu(t.left)?tLe(t.left)+1:2}function dZt(t,u,s,d){const f=hZt(t);if(f===void 0)return;const p=fZt(f,s,u,d);if(p===void 0)return;const{contextualType:E,argumentIndex:v,argumentCount:b,argumentsSpan:B}=p,k=E.getNonNullableType(),T=k.symbol;if(T===void 0)return;const M=Yu(k.getCallSignatures());return M===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:M,node:t,symbol:mZt(T)},argumentsSpan:B,argumentIndex:v,argumentCount:b}}function hZt(t){switch(t.kind){case 21:case 28:return t;default:return Ln(t.parent,u=>eo(u)?!0:Rs(u)||Mp(u)||gk(u)?!1:"quit")}}function fZt(t,u,s,d){const{parent:f}=t;switch(f.kind){case 217:case 174:case 218:case 219:const p=_lt(t,s,u);if(!p)return;const{argumentIndex:E,argumentCount:v,argumentsSpan:b}=p,B=cc(f)?d.getContextualTypeForObjectLiteralElement(f):d.getContextualType(f);return B&&{contextualType:B,argumentIndex:E,argumentCount:v,argumentsSpan:b};case 226:{const k=xlt(f),T=d.getContextualType(k),M=t.kind===21?0:tLe(f)-1,z=tLe(k);return T&&{contextualType:T,argumentIndex:M,argumentCount:z,argumentsSpan:af(f)}}default:return}}function mZt(t){return t.name==="__type"&&G(t.declarations,u=>{var s;return n3(u)?(s=ar(u.parent,qg))==null?void 0:s.symbol:void 0})||t}function pZt(t,u){let s=0;for(const d of t.getChildren()){if(d===u)break;d.kind!==28&&s++}return s}function gZt(t,u){const s=t.getChildren();let d=ui(s,f=>f.kind!==28);return!u&&s.length>0&&Cr(s).kind===28&&d++,d}function EZt(t,u,s,d){return H.assert(s>=u.getStart(),"Assumed 'position' could not occur before node."),Y2e(u)?RH(u,s,d)?0:t+2:t+1}function iLe(t,u,s){const d=B7(t.template)?1:t.template.templateSpans.length+1;return u!==0&&H.assertLessThan(u,d),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:DZt(t,s),argumentIndex:u,argumentCount:d}}function _Zt(t,u){const s=t.getFullStart(),d=ms(u.text,t.getEnd(),!1);return c1(s,d-s)}function DZt(t,u){const s=t.template,d=s.getStart();let f=s.getEnd();return s.kind===228&&Cr(s.templateSpans).literal.getFullWidth()===0&&(f=ms(u.text,f,!1)),c1(d,f-d)}function xZt(t,u,s,d,f){for(let p=t;!ca(p)&&(f||!fo(p));p=p.parent){H.assert(jm(p.parent,p),"Not a subspan",()=>`Child: ${H.formatSyntaxKind(p.kind)}, parent: ${H.formatSyntaxKind(p.parent.kind)}`);const E=cZt(p,u,s,d);if(E)return E}}function vZt(t,u,s){const d=t.getChildren(s),f=d.indexOf(u);return H.assert(f>=0&&d.length>f+1),d[f+1]}function vlt(t){return t.kind===0?dq(t.node):t.called}function Clt(t){return t.kind===0?t.node:t.kind===1?t.called:t.node}function blt(t,u,{isTypeParameterList:s,argumentCount:d,argumentsSpan:f,invocation:p,argumentIndex:E},v,b,B){var k;const T=Clt(p),M=p.kind===2?p.symbol:b.getSymbolAtLocation(vlt(p))||B&&((k=u.declaration)==null?void 0:k.symbol),z=M?IM(b,M,B?v:void 0,void 0):_t,j=Kt(t,se=>yZt(se,z,s,b,T,v));E!==0&&H.assertLessThan(E,d);let J=0,K=0;for(let se=0;se1)){let ae=0;for(const Ce of ge){if(Ce.isVariadic||Ce.parameters.length>=d){J=K+ae;break}ae++}}K+=ge.length}H.assert(J!==-1);const Y={items:vn(j,el),applicableSpan:f,selectedItemIndex:J,argumentIndex:E,argumentCount:d},oe=Y.items[J];if(oe.isVariadic){const se=$e(oe.parameters,ge=>!!ge.isRest);-1ylt(T,s,d,f,E)),b=t.getDocumentationComment(s),B=t.getJsDocTags(s);return{isVariadic:!1,prefixDisplayParts:[...p,th(30)],suffixDisplayParts:[th(32)],separatorDisplayParts:nLe,parameters:v,documentation:b,tags:B}}function yZt(t,u,s,d,f,p){const E=(s?FZt:AZt)(t,d,f,p);return Kt(E,({isVariadic:v,parameters:b,prefix:B,suffix:k})=>{const T=[...u,...B],M=[...k,...kZt(t,f,d)],z=t.getDocumentationComment(d),j=t.getJsDocTags();return{isVariadic:v,prefixDisplayParts:T,suffixDisplayParts:M,separatorDisplayParts:nLe,parameters:b,documentation:z,tags:j}})}function kZt(t,u,s){return qx(d=>{d.writePunctuation(":"),d.writeSpace(" ");const f=s.getTypePredicateOfSignature(t);f?s.writeTypePredicate(f,u,void 0,d):s.writeType(s.getReturnTypeOfSignature(t),u,void 0,d)})}function FZt(t,u,s,d){const f=(t.target||t).typeParameters,p=Z2(),E=(f||_t).map(b=>ylt(b,u,s,d,p)),v=t.thisParameter?[u.symbolToParameterDeclaration(t.thisParameter,s,wK)]:[];return u.getExpandedParameters(t).map(b=>{const B=q.createNodeArray([...v,...Kt(b,T=>u.symbolToParameterDeclaration(T,s,wK))]),k=qx(T=>{p.writeList(2576,B,d,T)});return{isVariadic:!1,parameters:E,prefix:[th(30)],suffix:[th(32),...k]}})}function AZt(t,u,s,d){const f=Z2(),p=qx(b=>{if(t.typeParameters&&t.typeParameters.length){const B=q.createNodeArray(t.typeParameters.map(k=>u.typeParameterToDeclaration(k,s,wK)));f.writeList(53776,B,d,b)}}),E=u.getExpandedParameters(t),v=u.hasEffectiveRestParameter(t)?E.length===1?b=>!0:b=>{var B;return!!(b.length&&((B=ar(b[b.length-1],UE))==null?void 0:B.links.checkFlags)&32768)}:b=>!1;return E.map(b=>({isVariadic:v(b),parameters:b.map(B=>SZt(B,u,s,d,f)),prefix:[...p,th(21)],suffix:[th(22)]}))}function SZt(t,u,s,d,f){const p=qx(b=>{const B=u.symbolToParameterDeclaration(t,s,wK);f.writeNode(4,B,d,b)}),E=u.isOptionalParameter(t.valueDeclaration),v=UE(t)&&!!(t.links.checkFlags&32768);return{name:t.name,documentation:t.getDocumentationComment(u),displayParts:p,isOptional:E,isRest:v}}function ylt(t,u,s,d,f){const p=qx(E=>{const v=u.typeParameterToDeclaration(t,s,wK);f.writeNode(4,v,d,E)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(u),displayParts:p,isOptional:!1,isRest:!1}}var wK,nLe,BZt=o({"src/services/signatureHelp.ts"(){or(),wK=70246400,nLe=[th(28),Jl()]}}),TK={};h(TK,{getArgumentInfoForCompletions:()=>sZt,getSignatureHelpItems:()=>uZt});var wZt=o({"src/services/_namespaces/ts.SignatureHelp.ts"(){BZt()}});function TZt(t,u){var s,d;let f={textSpan:jc(u.getFullStart(),u.getEnd())},p=u;e:for(;;){const b=NZt(p);if(!b.length)break;for(let B=0;Bt)break e;const z=Aa(mv(u.text,T.end));if(z&&z.kind===2&&v(z.pos,z.end),LZt(u,t,T)){if(e0e(T)&&K0(p)&&!$4(T.getStart(u),T.getEnd(),u)&&E(T.getStart(u),T.getEnd()),fo(T)||UP(T)||DB(T)||mce(T)||k&&DB(k)||Fd(T)&&Gl(p)||NB(T)&&Fd(p)||ua(T)&&NB(p)&&b.length===1||bk(T)||Iv(T)||V7(T)){p=T;break}if(UP(p)&&M&&NU(M)){const Y=T.getFullStart()-2,oe=M.getStart()+1;E(Y,oe)}const j=NB(T)&&PZt(k)&&MZt(M)&&!$4(k.getStart(),M.getStart(),u);let J=j?k.getEnd():T.getStart();const K=j?M.getStart():zZt(u,T);if(sm(T)&&((s=T.jsDoc)!=null&&s.length)&&E(Mn(T.jsDoc).getStart(),K),NB(T)){const Y=T.getChildren()[0];Y&&sm(Y)&&((d=Y.jsDoc)!=null&&d.length)&&Y.getStart()!==T.pos&&(J=Math.min(J,Mn(Y.jsDoc).getStart()))}E(J,K),(ns(T)||L8(T))&&E(J+1,K-1),p=T;break}if(B===b.length-1)break e}}return f;function E(b,B){if(b!==B){const k=jc(b,B);(!f||!aw(k,f.textSpan)&&B2e(k,t))&&(f={textSpan:k,...f&&{parent:f}})}}function v(b,B){E(b,B);let k=b;for(;u.text.charCodeAt(k)===47;)k++;E(k,B)}}function LZt(t,u,s){return H.assert(s.pos<=u),uv===t.readonlyToken||v.kind===148||v===t.questionToken||v.kind===58),E=LK(p,({kind:v})=>v===23||v===168||v===24);return[s,NK(Npe(E,({kind:v})=>v===59)),f]}if(Pm(t)){const s=LK(t.getChildren(),E=>E===t.name||Ft(t.modifiers,E)),d=((u=s[0])==null?void 0:u.kind)===327?s[0]:void 0,f=d?s.slice(1):s,p=Npe(f,({kind:E})=>E===59);return d?[d,NK(p)]:p}if(eo(t)){const s=LK(t.getChildren(),f=>f===t.dotDotDotToken||f===t.name),d=LK(s,f=>f===s[0]||f===t.questionToken);return Npe(d,({kind:f})=>f===64)}return Rs(t)?Npe(t.getChildren(),({kind:s})=>s===64):t.getChildren()}function LK(t,u){const s=[];let d;for(const f of t)u(f)?(d=d||[],d.push(f)):(d&&(s.push(NK(d)),d=void 0),s.push(f));return d&&s.push(NK(d)),s}function Npe(t,u,s=!0){if(t.length<2)return t;const d=$e(t,u);if(d===-1)return t;const f=t.slice(0,d),p=t[d],E=Cr(t),v=s&&E.kind===27,b=t.slice(d+1,v?t.length-1:void 0),B=kr([f.length?NK(f):void 0,p,b.length?NK(b):void 0]);return v?B.concat(E):B}function NK(t){return H.assertGreaterThanOrEqual(t.length,1),e_(r_.createSyntaxList(t),t[0].pos,Cr(t).end)}function PZt(t){const u=t&&t.kind;return u===19||u===23||u===21||u===286}function MZt(t){const u=t&&t.kind;return u===20||u===24||u===22||u===287}function zZt(t,u){switch(u.kind){case 348:case 345:case 355:case 353:case 350:return t.getLineEndOfPosition(u.getStart());default:return u.getEnd()}}var klt,IZt=o({"src/services/smartSelection.ts"(){or(),klt=lg(Ad,g1)}}),Ppe={};h(Ppe,{getSmartSelectionRange:()=>TZt});var RZt=o({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){IZt()}});function Flt(t,u,s){const d=Alt(t,u,s);if(d!=="")return d;const f=DP(u);return f&32?Fl(u,231)?"local class":"class":f&384?"enum":f&524288?"type":f&64?"interface":f&262144?"type parameter":f&8?"enum member":f&2097152?"alias":f&1536?"module":d}function Alt(t,u,s){const d=t.getRootSymbols(u);if(d.length===1&&Mn(d).flags&8192&&t.getTypeOfSymbolAtLocation(u,s).getNonNullableType().getCallSignatures().length!==0)return"method";if(t.isUndefinedSymbol(u))return"var";if(t.isArgumentsSymbol(u))return"local var";if(s.kind===110&&Wt(s)||m7(s))return"parameter";const f=DP(u);if(f&3)return cfe(u)?"parameter":u.valueDeclaration&&V8(u.valueDeclaration)?"const":u.valueDeclaration&&sj(u.valueDeclaration)?"using":u.valueDeclaration&&oj(u.valueDeclaration)?"await using":L(u.declarations,tq)?"let":wlt(u)?"local var":"var";if(f&16)return wlt(u)?"local function":"function";if(f&32768)return"getter";if(f&65536)return"setter";if(f&8192)return"method";if(f&16384)return"constructor";if(f&131072)return"index";if(f&4){if(f&33554432&&u.links.checkFlags&6){const p=L(t.getRootSymbols(u),E=>{if(E.getFlags()&98311)return"property"});return p||(t.getTypeOfSymbolAtLocation(u,s).getCallSignatures().length?"method":"property")}return"property"}return""}function Slt(t){if(t.declarations&&t.declarations.length){const[u,...s]=t.declarations,d=S(s)&&PX(u)&&qe(s,p=>!PX(p))?65536:0,f=LM(u,d);if(f)return f.split(",")}return[]}function OZt(t,u){if(!u)return"";const s=new Set(Slt(u));if(u.flags&2097152){const d=t.getAliasedSymbol(u);d!==u&&L(Slt(d),f=>{s.add(f)})}return u.flags&16777216&&s.add("optional"),s.size>0?Ea(s.values()).join(","):""}function Blt(t,u,s,d,f,p,E,v){var b;const B=[];let k=[],T=[];const M=DP(u);let z=E&1?Alt(t,u,f):"",j=!1;const J=f.kind===110&&fq(f)||m7(f);let K,Y,oe=!1;if(f.kind===110&&!J)return{displayParts:[Vf(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(z!==""||M&32||M&2097152){if(z==="getter"||z==="setter"){const Be=Le(u.declarations,We=>We.name===f);if(Be)switch(Be.kind){case 177:z="getter";break;case 178:z="setter";break;case 172:z="accessor";break;default:H.assertNever(Be)}else z="property"}let fe;if(p??(p=J?t.getTypeAtLocation(f):t.getTypeOfSymbolAtLocation(u,f)),f.parent&&f.parent.kind===211){const Be=f.parent.name;(Be===f||Be&&Be.getFullWidth()===0)&&(f=f.parent)}let xe;if(JE(f)?xe=f:(Nhe(f)||BM(f)||f.parent&&(Ph(f.parent)||Ek(f.parent))&&xo(u.valueDeclaration))&&(xe=f.parent),xe){fe=t.getResolvedSignature(xe);const Be=xe.kind===214||No(xe)&&xe.expression.kind===108,We=Be?p.getConstructSignatures():p.getCallSignatures();if(fe&&!Ft(We,fe.target)&&!Ft(We,fe)&&(fe=We.length?We[0]:void 0),fe){switch(Be&&M&32?(z="constructor",ve(p.symbol,z)):M&2097152?(z="alias",Se(z),B.push(Jl()),Be&&(fe.flags&4&&(B.push(Vf(128)),B.push(Jl())),B.push(Vf(105)),B.push(Jl())),ne(u)):ve(u,z),z){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":B.push(th(59)),B.push(Jl()),!($u(p)&16)&&p.symbol&&(kn(B,IM(t,p.symbol,d,void 0,5)),B.push(ow())),Be&&(fe.flags&4&&(B.push(Vf(128)),B.push(Jl())),B.push(Vf(105)),B.push(Jl())),Ne(fe,We,262144);break;default:Ne(fe,We)}j=!0,oe=We.length>1}}else if(Vhe(f)&&!(M&98304)||f.kind===137&&f.parent.kind===176){const Be=f.parent;if(u.declarations&&Le(u.declarations,Ae=>Ae===(f.kind===137?Be.parent:Be))){const Ae=Be.kind===176?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures();t.isImplementationOfOverload(Be)?fe=Ae[0]:fe=t.getSignatureFromDeclaration(Be),Be.kind===176?(z="constructor",ve(p.symbol,z)):ve(Be.kind===179&&!(p.symbol.flags&2048||p.symbol.flags&4096)?p.symbol:u,z),fe&&Ne(fe,Ae),j=!0,oe=Ae.length>1}}}if(M&32&&!j&&!J&&(ae(),Fl(u,231)?Se("local class"):B.push(Vf(86)),B.push(Jl()),ne(u),pe(u,s)),M&64&&E&2&&(ge(),B.push(Vf(120)),B.push(Jl()),ne(u),pe(u,s)),M&524288&&E&2&&(ge(),B.push(Vf(156)),B.push(Jl()),ne(u),pe(u,s),B.push(Jl()),B.push(zM(64)),B.push(Jl()),kn(B,GH(t,f.parent&&U3(f.parent)?t.getTypeAtLocation(f.parent):t.getDeclaredTypeOfSymbol(u),d,8388608))),M&384&&(ge(),qe(u.declarations,fe=>Mv(fe)&&x2(fe))&&(B.push(Vf(87)),B.push(Jl())),B.push(Vf(94)),B.push(Jl()),ne(u)),M&1536&&!J){ge();const fe=Fl(u,267),xe=fe&&fe.name&&fe.name.kind===80;B.push(Vf(xe?145:144)),B.push(Jl()),ne(u)}if(M&262144&&E&2)if(ge(),B.push(th(21)),B.push(Hm("type parameter")),B.push(th(22)),B.push(Jl()),ne(u),u.parent)Ce(),ne(u.parent,d),pe(u.parent,d);else{const fe=Fl(u,168);if(fe===void 0)return H.fail();const xe=fe.parent;if(xe)if(xo(xe)){Ce();const Be=t.getSignatureFromDeclaration(xe);xe.kind===180?(B.push(Vf(105)),B.push(Jl())):xe.kind!==179&&xe.name&&ne(xe.symbol),kn(B,ffe(t,Be,s,32))}else Ip(xe)&&(Ce(),B.push(Vf(156)),B.push(Jl()),ne(xe.symbol),pe(xe.symbol,s))}if(M&8){z="enum member",ve(u,"enum member");const fe=(b=u.declarations)==null?void 0:b[0];if((fe==null?void 0:fe.kind)===306){const xe=t.getConstantValue(fe);xe!==void 0&&(B.push(Jl()),B.push(zM(64)),B.push(Jl()),B.push(bf(Bbe(xe),typeof xe=="number"?7:8)))}}if(u.flags&2097152){if(ge(),!j||k.length===0&&T.length===0){const fe=t.getAliasedSymbol(u);if(fe!==u&&fe.declarations&&fe.declarations.length>0){const xe=fe.declarations[0],Be=qa(xe);if(Be&&!j){const We=YU(xe)&&Xu(xe,128),Ae=u.name!=="default"&&!We,De=Blt(t,fe,In(xe),xe,Be,p,E,Ae?u:fe);B.push(...De.displayParts),B.push(ow()),K=De.documentation,Y=De.tags}else K=fe.getContextualDocumentationComment(xe,t),Y=fe.getJsDocTags(t)}}if(u.declarations)switch(u.declarations[0].kind){case 270:B.push(Vf(95)),B.push(Jl()),B.push(Vf(145));break;case 277:B.push(Vf(95)),B.push(Jl()),B.push(Vf(u.declarations[0].isExportEquals?64:90));break;case 281:B.push(Vf(95));break;default:B.push(Vf(102))}B.push(Jl()),ne(u),L(u.declarations,fe=>{if(fe.kind===271){const xe=fe;if(vv(xe))B.push(Jl()),B.push(zM(64)),B.push(Jl()),B.push(Vf(149)),B.push(th(21)),B.push(bf(Vc(QN(xe)),8)),B.push(th(22));else{const Be=t.getSymbolAtLocation(xe.moduleReference);Be&&(B.push(Jl()),B.push(zM(64)),B.push(Jl()),ne(Be,d))}return!0}})}if(!j)if(z!==""){if(p){if(J?(ge(),B.push(Vf(110))):ve(u,z),z==="property"||z==="accessor"||z==="getter"||z==="setter"||z==="JSX attribute"||M&3||z==="local var"||z==="index"||z==="using"||z==="await using"||J){if(B.push(th(59)),B.push(Jl()),p.symbol&&p.symbol.flags&262144&&z!=="index"){const fe=qx(xe=>{const Be=t.typeParameterToDeclaration(p,d,uLe);se().writeNode(4,Be,In(Ua(d)),xe)});kn(B,fe)}else kn(B,GH(t,p,d));if(UE(u)&&u.links.target&&UE(u.links.target)&&u.links.target.links.tupleLabelDeclaration){const fe=u.links.target.links.tupleLabelDeclaration;H.assertNode(fe.name,at),B.push(Jl()),B.push(th(21)),B.push(Hm(mu(fe.name))),B.push(th(22))}}else if(M&16||M&8192||M&16384||M&131072||M&98304||z==="method"){const fe=p.getNonNullableType().getCallSignatures();fe.length&&(Ne(fe[0],fe),oe=fe.length>1)}}}else z=Flt(t,u,f);if(k.length===0&&!oe&&(k=u.getContextualDocumentationComment(d,t)),k.length===0&&M&4&&u.parent&&u.declarations&&L(u.parent.declarations,fe=>fe.kind===312))for(const fe of u.declarations){if(!fe.parent||fe.parent.kind!==226)continue;const xe=t.getSymbolAtLocation(fe.parent.right);if(xe&&(k=xe.getDocumentationComment(t),T=xe.getJsDocTags(t),k.length>0))break}if(k.length===0&&at(f)&&u.valueDeclaration&&Rs(u.valueDeclaration)){const fe=u.valueDeclaration,xe=fe.parent,Be=fe.propertyName||fe.name;if(at(Be)&&Mp(xe)){const We=W4(Be),Ae=t.getTypeAtLocation(xe);k=G(Ae.isUnion()?Ae.types:[Ae],De=>{const He=De.getProperty(We);return He?He.getDocumentationComment(t):void 0})||_t}}return T.length===0&&!oe&&(T=u.getContextualJsDocTags(d,t)),k.length===0&&K&&(k=K),T.length===0&&Y&&(T=Y),{displayParts:B,documentation:k,symbolKind:z,tags:T.length===0?void 0:T};function se(){return Z2()}function ge(){B.length&&B.push(ow()),ae()}function ae(){v&&(Se("alias"),B.push(Jl()))}function Ce(){B.push(Jl()),B.push(Vf(103)),B.push(Jl())}function ne(fe,xe){let Be;v&&fe===u&&(fe=v),z==="index"&&(Be=t.getIndexInfosOfIndexSymbol(fe));let We=[];fe.flags&131072&&Be?(fe.parent&&(We=IM(t,fe.parent)),We.push(th(23)),Be.forEach((Ae,De)=>{We.push(...GH(t,Ae.keyType)),De!==Be.length-1&&(We.push(Jl()),We.push(th(52)),We.push(Jl()))}),We.push(th(24))):We=IM(t,fe,xe||s,void 0,7),kn(B,We),u.flags&16777216&&B.push(th(58))}function ve(fe,xe){ge(),xe&&(Se(xe),fe&&!qe(fe.declarations,Be=>G0(Be)||(F0(Be)||Qd(Be))&&!Be.name)&&(B.push(Jl()),ne(fe)))}function Se(fe){switch(fe){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":B.push(dfe(fe));return;default:B.push(th(21)),B.push(dfe(fe)),B.push(th(22));return}}function Ne(fe,xe,Be=0){kn(B,ffe(t,fe,d,Be|32)),xe.length>1&&(B.push(Jl()),B.push(th(21)),B.push(zM(40)),B.push(bf((xe.length-1).toString(),7)),B.push(Jl()),B.push(Hm(xe.length===2?"overload":"overloads")),B.push(th(22))),k=fe.getDocumentationComment(t),T=fe.getJsDocTags(),xe.length>1&&k.length===0&&T.length===0&&(k=xe[0].getDocumentationComment(t),T=xe[0].getJsDocTags().filter(We=>We.name!=="deprecated"))}function pe(fe,xe){const Be=qx(We=>{const Ae=t.symbolToTypeParameterDeclarations(fe,xe,uLe);se().writeList(53776,Ae,In(Ua(xe)),We)});kn(B,Be)}}function jZt(t,u,s,d,f,p=Lk(f),E){return Blt(t,u,s,d,f,void 0,p,E)}function wlt(t){return t.parent?!1:L(t.declarations,u=>{if(u.kind===218)return!0;if(u.kind!==260&&u.kind!==262)return!1;for(let s=u.parent;!C2(s);s=s.parent)if(s.kind===312||s.kind===268)return!1;return!0})}var uLe,VZt=o({"src/services/symbolDisplay.ts"(){or(),uLe=70246400}}),D5={};h(D5,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>jZt,getSymbolKind:()=>Flt,getSymbolModifiers:()=>OZt});var HZt=o({"src/services/_namespaces/ts.SymbolDisplay.ts"(){VZt()}});function Tlt(t){const u=t.__pos;return H.assert(typeof u=="number"),u}function rLe(t,u){H.assert(typeof u=="number"),t.__pos=u}function Llt(t){const u=t.__end;return H.assert(typeof u=="number"),u}function aLe(t,u){H.assert(typeof u=="number"),t.__end=u}function Nlt(t,u){return ms(t,u,!1,!0)}function KZt(t,u){let s=u;for(;s0?1:0;let M=Px(cP(t,B)+T,t);return M=Nlt(t.text,M),Px(cP(t,M),t)}function oLe(t,u,s){const{end:d}=u,{trailingTriviaOption:f}=s;if(f===2){const p=mv(t.text,d);if(p){const E=cP(t,u.end);for(const v of p){if(v.kind===2||cP(t,v.pos)>E)break;if(cP(t,v.end)>E)return ms(t.text,v.end,!0,!0)}}}}function bw(t,u,s){var d;const{end:f}=u,{trailingTriviaOption:p}=s;if(p===0)return f;if(p===1){const b=an(mv(t.text,f),K_(t.text,f)),B=(d=b==null?void 0:b[b.length-1])==null?void 0:d.end;return B||f}const E=oLe(t,u,s);if(E)return E;const v=ms(t.text,f,!0);return v!==f&&(p===2||q1(t.text.charCodeAt(v-1)))?v:f}function Mpe(t,u){return!!u&&!!t.parent&&(u.kind===28||u.kind===27&&t.parent.kind===210)}function WZt(t){return F0(t)||Xc(t)}function GZt(t){if(t.kind!==219)return t;const u=t.parent.kind===172?t.parent:t.parent.parent;return u.jsDoc=t.jsDoc,u}function JZt(t,u){if(t.kind===u.kind)switch(t.kind){case 348:{const s=t,d=u;return at(s.name)&&at(d.name)&&s.name.escapedText===d.name.escapedText?q.createJSDocParameterTag(void 0,d.name,!1,d.typeExpression,d.isNameFirst,s.comment):void 0}case 349:return q.createJSDocReturnTag(void 0,u.typeExpression,t.comment);case 351:return q.createJSDocTypeTag(void 0,u.typeExpression,t.comment)}}function sLe(t,u){return ms(t.text,jk(t,u,{leadingTriviaOption:1}),!1,!0)}function $Zt(t,u,s,d){const f=sLe(t,d);if(s===void 0||$4(bw(t,u,{}),f,t))return f;const p=ed(d.getStart(t),t);if(Mpe(u,p)){const E=ed(u.getStart(t),t);if(Mpe(s,E)){const v=ms(t.text,p.getEnd(),!0,!0);if($4(E.getStart(t),p.getStart(t),t))return q1(t.text.charCodeAt(v-1))?v-1:v;if(q1(t.text.charCodeAt(v)))return v}}return f}function UZt(t,u){const s=r0(t,19,u),d=r0(t,20,u);return[s==null?void 0:s.end,d==null?void 0:d.end]}function zpe(t){return Cs(t)?t.properties:t.members}function lLe(t,u){for(let s=u.length-1;s>=0;s--){const{span:d,newText:f}=u[s];t=`${t.substring(0,d.start)}${f}${t.substring(gc(d))}`}return t}function qZt(t){return ms(t,0)===t.length}function Ipe(t){const u=un(t,Ipe,Ilt,ZZt,Ipe),s=al(u)?u:Object.create(u);return e_(s,Tlt(t),Llt(t)),s}function ZZt(t,u,s,d,f){const p=Fn(t,u,s,d,f);if(!p)return p;H.assert(t);const E=p===t?q.createNodeArray(p.slice(0)):p;return e_(E,Tlt(t),Llt(t)),E}function Plt(t){let u=0;const s=Oj(t),d=De=>{De&&rLe(De,u)},f=De=>{De&&aLe(De,u)},p=De=>{De&&rLe(De,u)},E=De=>{De&&aLe(De,u)},v=De=>{De&&rLe(De,u)},b=De=>{De&&aLe(De,u)};function B(De,He){if(He||!qZt(De)){u=s.getTextPos();let Ge=0;for(;$3(De.charCodeAt(De.length-Ge-1));)Ge++;u-=Ge}}function k(De){s.write(De),B(De,!1)}function T(De){s.writeComment(De)}function M(De){s.writeKeyword(De),B(De,!1)}function z(De){s.writeOperator(De),B(De,!1)}function j(De){s.writePunctuation(De),B(De,!1)}function J(De){s.writeTrailingSemicolon(De),B(De,!1)}function K(De){s.writeParameter(De),B(De,!1)}function Y(De){s.writeProperty(De),B(De,!1)}function oe(De){s.writeSpace(De),B(De,!1)}function se(De){s.writeStringLiteral(De),B(De,!1)}function ge(De,He){s.writeSymbol(De,He),B(De,!1)}function ae(De){s.writeLine(De)}function Ce(){s.increaseIndent()}function ne(){s.decreaseIndent()}function ve(){return s.getText()}function Se(De){s.rawWrite(De),B(De,!1)}function Ne(De){s.writeLiteral(De),B(De,!0)}function pe(){return s.getTextPos()}function fe(){return s.getLine()}function xe(){return s.getColumn()}function Be(){return s.getIndent()}function We(){return s.isAtStartOfLine()}function Ae(){s.clear(),u=0}return{onBeforeEmitNode:d,onAfterEmitNode:f,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:E,onBeforeEmitToken:v,onAfterEmitToken:b,write:k,writeComment:T,writeKeyword:M,writeOperator:z,writePunctuation:j,writeTrailingSemicolon:J,writeParameter:K,writeProperty:Y,writeSpace:oe,writeStringLiteral:se,writeSymbol:ge,writeLine:ae,increaseIndent:Ce,decreaseIndent:ne,getText:ve,rawWrite:Se,writeLiteral:Ne,getTextPos:pe,getLine:fe,getColumn:xe,getIndent:Be,isAtStartOfLine:We,hasTrailingComment:()=>s.hasTrailingComment(),hasTrailingWhitespace:()=>s.hasTrailingWhitespace(),clear:Ae}}function YZt(t){let u;for(const B of t.statements)if(Lp(B))u=B;else break;let s=0;const d=t.text;if(u)return s=u.end,b(),s;const f=yU(d);f!==void 0&&(s=f.length,b());const p=K_(d,s);if(!p)return s;let E,v;for(const B of p){if(B.kind===3){if(qU(d,B.pos)){E={range:B,pinnedOrTripleSlash:!0};continue}}else if(l0e(d,B.pos,B.end)){E={range:B,pinnedOrTripleSlash:!0};continue}if(E){if(E.pinnedOrTripleSlash)break;const k=t.getLineAndCharacterOfPosition(B.pos).line,T=t.getLineAndCharacterOfPosition(E.range.end).line;if(k>=T+2)break}if(t.statements.length){v===void 0&&(v=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);const k=t.getLineAndCharacterOfPosition(B.end).line;if(v(t[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",t))(cLe||{}),dLe=(t=>(t[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include",t))(dLe||{}),XM={leadingTriviaOption:0,trailingTriviaOption:0},zlt=class UOe{constructor(u,s){this.newLineCharacter=u,this.formatContext=s,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(u){return new UOe(g5(u.host,u.formatContext.options),u.formatContext)}static with(u,s){const d=UOe.fromContext(u);return s(d),d.getChanges()}pushRaw(u,s){H.assertEqual(u.fileName,s.fileName);for(const d of s.textChanges)this.changes.push({kind:3,sourceFile:u,text:d.newText,range:dX(d.span)})}deleteRange(u,s){this.changes.push({kind:0,sourceFile:u,range:s})}delete(u,s){this.deletedNodes.push({sourceFile:u,node:s})}deleteNode(u,s,d={leadingTriviaOption:1}){this.deleteRange(u,PK(u,s,s,d))}deleteNodes(u,s,d={leadingTriviaOption:1},f){for(const p of s){const E=jk(u,p,d,f),v=bw(u,p,d);this.deleteRange(u,{pos:E,end:v}),f=!!oLe(u,p,d)}}deleteModifier(u,s){this.deleteRange(u,{pos:s.getStart(u),end:ms(u.text,s.end,!0)})}deleteNodeRange(u,s,d,f={leadingTriviaOption:1}){const p=jk(u,s,f),E=bw(u,d,f);this.deleteRange(u,{pos:p,end:E})}deleteNodeRangeExcludingEnd(u,s,d,f={leadingTriviaOption:1}){const p=jk(u,s,f),E=d===void 0?u.text.length:jk(u,d,f);this.deleteRange(u,{pos:p,end:E})}replaceRange(u,s,d,f={}){this.changes.push({kind:1,sourceFile:u,range:s,options:f,node:d})}replaceNode(u,s,d,f=XM){this.replaceRange(u,PK(u,s,s,f),d,f)}replaceNodeRange(u,s,d,f,p=XM){this.replaceRange(u,PK(u,s,d,p),f,p)}replaceRangeWithNodes(u,s,d,f={}){this.changes.push({kind:2,sourceFile:u,range:s,options:f,nodes:d})}replaceNodeWithNodes(u,s,d,f=XM){this.replaceRangeWithNodes(u,PK(u,s,s,f),d,f)}replaceNodeWithText(u,s,d){this.replaceRangeWithText(u,PK(u,s,s,XM),d)}replaceNodeRangeWithNodes(u,s,d,f,p=XM){this.replaceRangeWithNodes(u,PK(u,s,d,p),f,p)}nodeHasTrailingComment(u,s,d=XM){return!!oLe(u,s,d)}nextCommaToken(u,s){const d=X2(s,s.parent,u);return d&&d.kind===28?d:void 0}replacePropertyAssignment(u,s,d){const f=this.nextCommaToken(u,s)?"":","+this.newLineCharacter;this.replaceNode(u,s,d,{suffix:f})}insertNodeAt(u,s,d,f={}){this.replaceRange(u,o4(s),d,f)}insertNodesAt(u,s,d,f={}){this.replaceRangeWithNodes(u,o4(s),d,f)}insertNodeAtTopOfFile(u,s,d){this.insertAtTopOfFile(u,s,d)}insertNodesAtTopOfFile(u,s,d){this.insertAtTopOfFile(u,s,d)}insertAtTopOfFile(u,s,d){const f=YZt(u),p={prefix:f===0?void 0:this.newLineCharacter,suffix:(q1(u.text.charCodeAt(f))?"":this.newLineCharacter)+(d?this.newLineCharacter:"")};Ha(s)?this.insertNodesAt(u,f,s,p):this.insertNodeAt(u,f,s,p)}insertNodesAtEndOfFile(u,s,d){this.insertAtEndOfFile(u,s,d)}insertAtEndOfFile(u,s,d){const f=u.end+1,p={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(d?this.newLineCharacter:"")};this.insertNodesAt(u,f,s,p)}insertStatementsInNewFile(u,s,d){this.newFileChanges||(this.newFileChanges=Bm()),this.newFileChanges.add(u,{oldFile:d,statements:s})}insertFirstParameter(u,s,d){const f=Hi(s);f?this.insertNodeBefore(u,f,d):this.insertNodeAt(u,s.pos,d)}insertNodeBefore(u,s,d,f=!1,p={}){this.insertNodeAt(u,jk(u,s,p),d,this.getOptionsForInsertNodeBefore(s,d,f))}insertNodesBefore(u,s,d,f=!1,p={}){this.insertNodesAt(u,jk(u,s,p),d,this.getOptionsForInsertNodeBefore(s,Mn(d),f))}insertModifierAt(u,s,d,f={}){this.insertNodeAt(u,s,q.createToken(d),f)}insertModifierBefore(u,s,d){return this.insertModifierAt(u,d.getStart(u),s,{suffix:" "})}insertCommentBeforeLine(u,s,d,f){const p=Px(s,u),E=vSe(u.text,p),v=Mlt(u,E),b=TM(u,v?E:d),B=u.text.slice(p,E),k=`${v?"":this.newLineCharacter}//${f}${this.newLineCharacter}${B}`;this.insertText(u,b.getStart(u),k)}insertJsdocCommentBefore(u,s,d){const f=s.getStart(u);if(s.jsDoc)for(const v of s.jsDoc)this.deleteRange(u,{pos:X4(v.getStart(u),u),end:bw(u,v,{})});const p=CX(u.text,f-1),E=u.text.slice(p,f);this.insertNodeAt(u,f,d,{suffix:this.newLineCharacter+E})}createJSDocText(u,s){const d=Ku(s.jsDoc,p=>Ja(p.comment)?q.createJSDocText(p.comment):p.comment),f=Aa(s.jsDoc);return f&&$4(f.pos,f.end,u)&&S(d)===0?void 0:q.createNodeArray(_e(d,q.createJSDocText(` -`)))}replaceJSDocComment(u,s,d){this.insertJsdocCommentBefore(u,GZt(s),q.createJSDocComment(this.createJSDocText(u,s),q.createNodeArray(d)))}addJSDocTags(u,s,d){const f=vn(s.jsDoc,E=>E.tags),p=d.filter(E=>!f.some((v,b)=>{const B=JZt(v,E);return B&&(f[b]=B),!!B}));this.replaceJSDocComment(u,s,[...f,...p])}filterJSDocTags(u,s,d){this.replaceJSDocComment(u,s,ei(vn(s.jsDoc,f=>f.tags),d))}replaceRangeWithText(u,s,d){this.changes.push({kind:3,sourceFile:u,range:s,text:d})}insertText(u,s,d){this.replaceRangeWithText(u,o4(s),d)}tryInsertTypeAnnotation(u,s,d){let f;if(xo(s)){if(f=r0(s,22,u),!f){if(!G0(s))return!1;f=Mn(s.parameters)}}else f=(s.kind===260?s.exclamationToken:s.questionToken)??s.name;return this.insertNodeAt(u,f.end,d,{prefix:": "}),!0}tryInsertThisTypeAnnotation(u,s,d){const f=r0(s,21,u).getStart(u)+1,p=s.parameters.length?", ":"";this.insertNodeAt(u,f,d,{prefix:"this: ",suffix:p})}insertTypeParameters(u,s,d){const f=(r0(s,21,u)||Mn(s.parameters)).getStart(u);this.insertNodesAt(u,f,d,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(u,s,d){return na(u)||qd(u)?{suffix:d?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:ua(u)?{suffix:", "}:eo(u)?eo(s)?{suffix:", "}:{}:ns(u)&&Ad(u.parent)||nD(u)?{suffix:", "}:Cf(u)?{suffix:","+(d?this.newLineCharacter:" ")}:H.failBadSyntaxKind(u)}insertNodeAtConstructorStart(u,s,d){const f=Hi(s.body.statements);!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[d,...s.body.statements]):this.insertNodeBefore(u,f,d)}insertNodeAtConstructorStartAfterSuperCall(u,s,d){const f=Le(s.body.statements,p=>Id(p)&&ek(p.expression));!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[...s.body.statements,d]):this.insertNodeAfter(u,f,d)}insertNodeAtConstructorEnd(u,s,d){const f=Yu(s.body.statements);!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[...s.body.statements,d]):this.insertNodeAfter(u,f,d)}replaceConstructorBody(u,s,d){this.replaceNode(u,s.body,q.createBlock(d,!0))}insertNodeAtEndOfScope(u,s,d){const f=jk(u,s.getLastToken(),{});this.insertNodeAt(u,f,d,{prefix:q1(u.text.charCodeAt(s.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(u,s,d){this.insertNodeAtStartWorker(u,s,d)}insertNodeAtObjectStart(u,s,d){this.insertNodeAtStartWorker(u,s,d)}insertNodeAtStartWorker(u,s,d){const f=this.guessIndentationFromExistingMembers(u,s)??this.computeIndentationForNewMember(u,s);this.insertNodeAt(u,zpe(s).pos,d,this.getInsertNodeAtStartInsertOptions(u,s,f))}guessIndentationFromExistingMembers(u,s){let d,f=s;for(const p of zpe(s)){if(Vq(f,p,u))return;const E=p.getStart(u),v=ld.SmartIndenter.findFirstNonWhitespaceColumn(X4(E,u),E,u,this.formatContext.options);if(d===void 0)d=v;else if(v!==d)return;f=p}return d}computeIndentationForNewMember(u,s){const d=s.getStart(u);return ld.SmartIndenter.findFirstNonWhitespaceColumn(X4(d,u),d,u,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(u,s,d){const p=zpe(s).length===0,E=Pp(this.classesWithNodesInsertedAtStart,Js(s),{node:s,sourceFile:u}),v=Cs(s)&&(!H4(u)||!p),b=Cs(s)&&H4(u)&&p&&!E;return{indentation:d,prefix:(b?",":"")+this.newLineCharacter,suffix:v?",":Dh(s)&&p?";":""}}insertNodeAfterComma(u,s,d){const f=this.insertNodeAfterWorker(u,this.nextCommaToken(u,s)||s,d);this.insertNodeAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAfter(u,s,d){const f=this.insertNodeAfterWorker(u,s,d);this.insertNodeAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAtEndOfList(u,s,d){this.insertNodeAt(u,s.end,d,{prefix:", "})}insertNodesAfter(u,s,d){const f=this.insertNodeAfterWorker(u,s,Mn(d));this.insertNodesAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAfterWorker(u,s,d){return QZt(s,d)&&u.text.charCodeAt(s.end-1)!==59&&this.replaceRange(u,o4(s.end),q.createToken(27)),bw(u,s,{})}getInsertNodeAfterOptions(u,s){const d=this.getInsertNodeAfterOptionsWorker(s);return{...d,prefix:s.end===u.end&&na(s)?d.prefix?` + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return z}}function sut(t){switch(t.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function lut(t,u,s){const d=Ca(t,u),f=Tn(d,sut);if(!f||$0(f)&&f.body&&MH(f.body,u))return;const p=s.getTypeChecker(),E=f.symbol;if(!E)return;const v=E.declarations;if(S(v)<=1||!ye(v,M=>zn(M)===t)||!sut(v[0]))return;const b=v[0].kind;if(!ye(v,M=>M.kind===b))return;const B=v;if(Oe(B,M=>!!M.typeParameters||Oe(M.parameters,z=>!!z.modifiers||!at(z.name))))return;const k=qi(B,M=>p.getSignatureFromDeclaration(M));if(S(k)!==S(v))return;const T=p.getReturnTypeOfSignature(k[0]);if(ye(k,M=>p.getReturnTypeOfSignature(M)===T))return B}var pme,B8e,w8e,ijt=o({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){rr(),s_(),pme="Convert overload list to single signature",B8e=to(F.Convert_overload_list_to_single_signature),w8e={name:pme,description:B8e,kind:"refactor.rewrite.function.overloadList"},s3(pme,{kinds:[w8e.kind],getEditsForAction:tjt,getAvailableActions:ejt})}});function njt(t){const{file:u,startPosition:s,triggerReason:d}=t,f=cut(u,s,d==="invoked");return f?sD(f)?t.preferences.provideRefactorNotApplicableReason?[{name:gme,description:T8e,actions:[{...oee,notApplicableReason:f.error},{...dK,notApplicableReason:f.error}]}]:_t:[{name:gme,description:T8e,actions:[f.addBraces?oee:dK]}]:_t}function ujt(t,u){const{file:s,startPosition:d}=t,f=cut(s,d);H.assert(f&&!sD(f),"Expected applicable refactor info");const{expression:p,returnStatement:E,func:v}=f;let b;if(u===oee.name){const k=q.createReturnStatement(p);b=q.createBlock([k],!0),cw(p,k,s,3,!0)}else if(u===dK.name&&E){const k=p||q.createVoidZero();b=AX(k)?q.createParenthesizedExpression(k):k,ZH(E,b,s,3,!1),cw(E,b,s,3,!1),OM(E,b,s,3,!1)}else H.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,k=>{k.replaceNode(s,v.body,b)})}}function cut(t,u,s=!0,d){const f=Ca(t,u),p=Nm(f);if(!p)return{error:to(F.Could_not_find_a_containing_arrow_function)};if(!q0(p))return{error:to(F.Containing_function_is_not_an_arrow_function)};if(!(!Vm(p,f)||Vm(p.body,f)&&!s)){if(qv(oee.kind,d)&&Wt(p.body))return{func:p,addBraces:!0,expression:p.body};if(qv(dK.kind,d)&&po(p.body)&&p.body.statements.length===1){const E=Pn(p.body.statements);if(Op(E)){const v=E.expression&&ys(dB(E.expression,!1))?q.createParenthesizedExpression(E.expression):E.expression;return{func:p,addBraces:!1,expression:v,returnStatement:E}}}}}var gme,T8e,oee,dK,rjt=o({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){rr(),s_(),gme="Add or remove braces in an arrow function",T8e=to(F.Add_or_remove_braces_in_an_arrow_function),oee={name:"Add braces to arrow function",description:to(F.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},dK={name:"Remove braces from arrow function",description:to(F.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},s3(gme,{kinds:[dK.kind],getEditsForAction:ujt,getAvailableActions:njt})}}),ajt={},ojt=o({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){ijt(),rjt()}});function sjt(t){const{file:u,startPosition:s,program:d,kind:f}=t,p=hut(u,s,d);if(!p)return _t;const{selectedVariableDeclaration:E,func:v}=p,b=[],B=[];if(qv(fK.kind,f)){const k=E||q0(v)&&na(v.parent)?void 0:to(F.Could_not_convert_to_named_function);k?B.push({...fK,notApplicableReason:k}):b.push(fK)}if(qv(hK.kind,f)){const k=!E&&q0(v)?void 0:to(F.Could_not_convert_to_anonymous_function);k?B.push({...hK,notApplicableReason:k}):b.push(hK)}if(qv(mK.kind,f)){const k=A0(v)?void 0:to(F.Could_not_convert_to_arrow_function);k?B.push({...mK,notApplicableReason:k}):b.push(mK)}return[{name:L8e,description:put,actions:b.length===0&&t.preferences.provideRefactorNotApplicableReason?B:b}]}function ljt(t,u){const{file:s,startPosition:d,program:f}=t,p=hut(s,d,f);if(!p)return;const{func:E}=p,v=[];switch(u){case hK.name:v.push(...fjt(t,E));break;case fK.name:const b=hjt(E);if(!b)return;v.push(...mjt(t,E,b));break;case mK.name:if(!A0(E))return;v.push(...pjt(t,E));break;default:return H.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:v}}function dut(t){let u=!1;return t.forEachChild(function s(d){if(rw(d)){u=!0;return}!mr(d)&&!ed(d)&&!A0(d)&&ao(d,s)}),u}function hut(t,u,s){const d=Ca(t,u),f=s.getTypeChecker(),p=djt(t,f,d.parent);if(p&&!dut(p.body)&&!f.containsArgumentsReference(p))return{selectedVariableDeclaration:!0,func:p};const E=Nm(d);if(E&&(A0(E)||q0(E))&&!Vm(E.body,d)&&!dut(E.body)&&!f.containsArgumentsReference(E))return A0(E)&&mut(t,f,E)?void 0:{selectedVariableDeclaration:!1,func:E}}function cjt(t){return na(t)||Ad(t)&&t.declarations.length===1}function djt(t,u,s){if(!cjt(s))return;const f=(na(s)?s:Pn(s.declarations)).initializer;if(f&&(q0(f)||A0(f)&&!mut(t,u,f)))return f}function fut(t){if(Wt(t)){const u=q.createReturnStatement(t),s=t.getSourceFile();return Pt(u,t),Kf(u),ZH(t,u,s,void 0,!0),q.createBlock([u],!0)}else return t}function hjt(t){const u=t.parent;if(!na(u)||!qN(u))return;const s=u.parent,d=s.parent;if(!(!Ad(s)||!Jl(d)||!at(u.name)))return{variableDeclaration:u,variableDeclarationList:s,statement:d,name:u.name}}function fjt(t,u){const{file:s}=t,d=fut(u.body),f=q.createFunctionExpression(u.modifiers,u.asteriskToken,void 0,u.typeParameters,u.parameters,u.type,d);return iu.ChangeTracker.with(t,p=>p.replaceNode(s,u,f))}function mjt(t,u,s){const{file:d}=t,f=fut(u.body),{variableDeclaration:p,variableDeclarationList:E,statement:v,name:b}=s;Efe(v);const B=m2(p)&32|Eh(u),k=q.createModifiersFromModifierFlags(B),T=q.createFunctionDeclaration(S(k)?k:void 0,u.asteriskToken,b,u.typeParameters,u.parameters,u.type,f);return E.declarations.length===1?iu.ChangeTracker.with(t,M=>M.replaceNode(d,v,T)):iu.ChangeTracker.with(t,M=>{M.delete(d,p),M.insertNodeAfter(d,v,T)})}function pjt(t,u){const{file:s}=t,f=u.body.statements[0];let p;gjt(u.body,f)?(p=f.expression,Kf(p),Rk(f,p)):p=u.body;const E=q.createArrowFunction(u.modifiers,u.typeParameters,u.parameters,u.type,q.createToken(39),p);return iu.ChangeTracker.with(t,v=>v.replaceNode(s,u,E))}function gjt(t,u){return t.statements.length===1&&Op(u)&&!!u.expression}function mut(t,u,s){return!!s.name&&Z0.Core.isSymbolReferencedInFile(s.name,u,t)}var L8e,put,hK,fK,mK,Ejt=o({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){rr(),s_(),L8e="Convert arrow function or function expression",put=to(F.Convert_arrow_function_or_function_expression),hK={name:"Convert to anonymous function",description:to(F.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},fK={name:"Convert to named function",description:to(F.Convert_to_named_function),kind:"refactor.rewrite.function.named"},mK={name:"Convert to arrow function",description:to(F.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},s3(L8e,{kinds:[hK.kind,fK.kind,mK.kind],getEditsForAction:ljt,getAvailableActions:sjt})}}),_jt={},Djt=o({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){Ejt()}});function xjt(t){const{file:u,startPosition:s}=t;return gh(u)||!_ut(u,s,t.program.getTypeChecker())?_t:[{name:lee,description:z8e,actions:[I8e]}]}function vjt(t,u){H.assert(u===lee,"Unexpected action name");const{file:s,startPosition:d,program:f,cancellationToken:p,host:E}=t,v=_ut(s,d,f.getTypeChecker());if(!v||!p)return;const b=bjt(v,f,p);return b.valid?{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,k=>Cjt(s,f,E,k,v,b))}:{edits:[]}}function Cjt(t,u,s,d,f,p){const E=p.signature,v=Vt(Cut(f,u,s),k=>ll(k));if(E){const k=Vt(Cut(E,u,s),T=>ll(T));B(E,k)}B(f,v);const b=pi(p.functionCalls,(k,T)=>nl(k.pos,T.pos));for(const k of b)if(k.arguments&&k.arguments.length){const T=ll(Njt(f,k.arguments),!0);d.replaceNodeRange(zn(k),Pn(k.arguments),Cr(k.arguments),T,{leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Include})}function B(k,T){d.replaceNodeRangeWithNodes(t,Pn(k.parameters),Cr(k.parameters),T,{joiner:", ",indentation:0,leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Include})}}function bjt(t,u,s){const d=Mjt(t),f=hc(t)?Pjt(t):[],p=ri([...d,...f],Cx),E=u.getTypeChecker(),v=ju(p,T=>Z0.getReferenceEntriesForNode(-1,T,u,u.getSourceFiles(),s)),b=B(v);return ye(b.declarations,T=>kt(p,T))||(b.valid=!1),b;function B(T){const M={accessExpressions:[],typeUsages:[]},z={functionCalls:[],declarations:[],classReferences:M,valid:!0},j=Vt(d,k),J=Vt(f,k),K=hc(t),Y=Vt(d,oe=>N8e(oe,E));for(const oe of T){if(oe.kind===Z0.EntryKind.Span){z.valid=!1;continue}if(kt(Y,k(oe.node))){if(Ajt(oe.node.parent)){z.signature=oe.node.parent;continue}const ge=Eut(oe);if(ge){z.functionCalls.push(ge);continue}}const se=N8e(oe.node,E);if(se&&kt(Y,se)){const ge=P8e(oe);if(ge){z.declarations.push(ge);continue}}if(kt(j,k(oe.node))||wM(oe.node)){if(gut(oe))continue;const ae=P8e(oe);if(ae){z.declarations.push(ae);continue}const Ce=Eut(oe);if(Ce){z.functionCalls.push(Ce);continue}}if(K&&kt(J,k(oe.node))){if(gut(oe))continue;const ae=P8e(oe);if(ae){z.declarations.push(ae);continue}const Ce=yjt(oe);if(Ce){M.accessExpressions.push(Ce);continue}if(Wc(t.parent)){const ne=kjt(oe);if(ne){M.typeUsages.push(ne);continue}}}z.valid=!1}return z}function k(T){const M=E.getSymbolAtLocation(T);return M&&vSe(M,E)}}function N8e(t,u){const s=_K(t);if(s){const d=u.getContextualTypeForObjectLiteralElement(s),f=d==null?void 0:d.getSymbol();if(f&&!(Gl(f)&6))return f}}function gut(t){const u=t.node;if(bf(u.parent)||n_(u.parent)||E1(u.parent)||Jx(u.parent)||eh(u.parent)||tc(u.parent))return u}function P8e(t){if(Q1(t.node.parent))return t.node}function Eut(t){if(t.node.parent){const u=t.node,s=u.parent;switch(s.kind){case 213:case 214:const d=ur(s,$E);if(d&&d.expression===u)return d;break;case 211:const f=ur(s,Iu);if(f&&f.parent&&f.name===u){const E=ur(f.parent,$E);if(E&&E.expression===f)return E}break;case 212:const p=ur(s,U0);if(p&&p.parent&&p.argumentExpression===u){const E=ur(p.parent,$E);if(E&&E.expression===p)return E}break}}}function yjt(t){if(t.node.parent){const u=t.node,s=u.parent;switch(s.kind){case 211:const d=ur(s,Iu);if(d&&d.expression===u)return d;break;case 212:const f=ur(s,U0);if(f&&f.expression===u)return f;break}}}function kjt(t){const u=t.node;if(Pk(u)===2||Jj(u.parent))return u}function _ut(t,u,s){const d=LM(t,u),f=Ybe(d);if(!Fjt(d)&&f&&Sjt(f,s)&&Vm(f,d)&&!(f.body&&Vm(f.body,d)))return f}function Fjt(t){const u=Tn(t,z8);if(u){const s=Tn(u,d=>!z8(d));return!!s&&$0(s)}return!1}function Ajt(t){return n3(t)&&(xh(t.parent)||fm(t.parent))}function Sjt(t,u){var s;if(!Bjt(t.parameters,u))return!1;switch(t.kind){case 262:return Dut(t)&&see(t,u);case 174:if(ys(t.parent)){const d=N8e(t.name,u);return((s=d==null?void 0:d.declarations)==null?void 0:s.length)===1&&see(t,u)}return see(t,u);case 176:return Wc(t.parent)?Dut(t.parent)&&see(t,u):xut(t.parent.parent)&&see(t,u);case 218:case 219:return xut(t.parent)}return!1}function see(t,u){return!!t.body&&!u.isImplementationOfOverload(t)}function Dut(t){return t.name?!0:!!ow(t,90)}function Bjt(t,u){return Tjt(t)>=but&&ye(t,s=>wjt(s,u))}function wjt(t,u){if($_(t)){const s=u.getTypeAtLocation(t);if(!u.isArrayType(s)&&!u.isTupleType(s))return!1}return!t.modifiers&&at(t.name)}function xut(t){return na(t)&&K8(t)&&at(t.name)&&!t.type}function M8e(t){return t.length>0&&rw(t[0].name)}function Tjt(t){return M8e(t)?t.length-1:t.length}function vut(t){return M8e(t)&&(t=q.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function Ljt(t,u){return at(u)&&J4(u)===t?q.createShorthandPropertyAssignment(t):q.createPropertyAssignment(t,u)}function Njt(t,u){const s=vut(t.parameters),d=$_(Cr(s)),f=d?u.slice(0,s.length-1):u,p=Vt(f,(v,b)=>{const B=Eme(s[b]),k=Ljt(B,v);return Kf(k.name),Jc(k)&&Kf(k.initializer),Rk(v,k),k});if(d&&u.length>=s.length){const v=u.slice(s.length-1),b=q.createPropertyAssignment(Eme(Cr(s)),q.createArrayLiteralExpression(v));p.push(b)}return q.createObjectLiteralExpression(p,!1)}function Cut(t,u,s){const d=u.getTypeChecker(),f=vut(t.parameters),p=Vt(f,k),E=q.createObjectBindingPattern(p),v=T(f);let b;ye(f,j)&&(b=q.createObjectLiteralExpression());const B=q.createParameterDeclaration(void 0,void 0,E,void 0,v,b);if(M8e(t.parameters)){const J=t.parameters[0],K=q.createParameterDeclaration(void 0,void 0,J.name,void 0,J.type);return Kf(K.name),Rk(J.name,K.name),J.type&&(Kf(K.type),Rk(J.type,K.type)),q.createNodeArray([K,B])}return q.createNodeArray([B]);function k(J){const K=q.createBindingElement(void 0,void 0,Eme(J),$_(J)&&j(J)?q.createArrayLiteralExpression():J.initializer);return Kf(K),J.initializer&&K.initializer&&Rk(J.initializer,K.initializer),K}function T(J){const K=Vt(J,M);return i_(q.createTypeLiteralNode(K),1)}function M(J){let K=J.type;!K&&(J.initializer||$_(J))&&(K=z(J));const Y=q.createPropertySignature(void 0,Eme(J),j(J)?q.createToken(58):J.questionToken,K);return Kf(Y),Rk(J.name,Y.name),J.type&&Y.type&&Rk(J.type,Y.type),Y}function z(J){const K=d.getTypeAtLocation(J);return VM(K,J,u,s)}function j(J){if($_(J)){const K=d.getTypeAtLocation(J);return!d.isTupleType(K)}return d.isOptionalParameter(J)}}function Eme(t){return J4(t.name)}function Pjt(t){switch(t.parent.kind){case 263:const u=t.parent;return u.name?[u.name]:[H.checkDefined(ow(u,90),"Nameless class declaration should be a default export")];case 231:const d=t.parent,f=t.parent.parent,p=d.name;return p?[p,f.name]:[f.name]}}function Mjt(t){switch(t.kind){case 262:return t.name?[t.name]:[H.checkDefined(ow(t,90),"Nameless function declaration should be a default export")];case 174:return[t.name];case 176:const s=H.checkDefined(a0(t,137,t.getSourceFile()),"Constructor declaration should have constructor keyword");return t.parent.kind===231?[t.parent.parent.name,s]:[s];case 219:return[t.parent.name];case 218:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return H.assertNever(t,`Unexpected function declaration kind ${t.kind}`)}}var lee,but,z8e,I8e,zjt=o({"src/services/refactors/convertParamsToDestructuredObject.ts"(){rr(),s_(),lee="Convert parameters to destructured object",but=1,z8e=to(F.Convert_parameters_to_destructured_object),I8e={name:lee,description:z8e,kind:"refactor.rewrite.parameters.toDestructured"},s3(lee,{kinds:[I8e.kind],getEditsForAction:vjt,getAvailableActions:xjt})}}),Ijt={},Rjt=o({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){zjt()}});function Ojt(t){const{file:u,startPosition:s}=t,d=yut(u,s),f=R8e(d),p=us(f),E={name:_me,description:Dme,actions:[]};return p&&t.triggerReason!=="invoked"?_t:Z_(f)&&(p||Xn(f)&&O8e(f).isValidConcatenation)?(E.actions.push(xme),[E]):t.preferences.provideRefactorNotApplicableReason?(E.actions.push({...xme,notApplicableReason:to(F.Can_only_convert_string_concatenations_and_string_literals)}),[E]):_t}function yut(t,u){const s=Ca(t,u),d=R8e(s);return!O8e(d).isValidConcatenation&&Cf(d.parent)&&Xn(d.parent.parent)?d.parent.parent:s}function jjt(t,u){const{file:s,startPosition:d}=t,f=yut(s,d);switch(u){case Dme:return{edits:Vjt(t,f)};default:return H.fail("invalid action")}}function Vjt(t,u){const s=R8e(u),d=t.file,f=Wjt(O8e(s),d),p=gv(d.text,s.end);if(p){const E=p[p.length-1],v={pos:p[0].pos,end:E.end};return iu.ChangeTracker.with(t,b=>{b.deleteRange(d,v),b.replaceNode(d,s,f)})}else return iu.ChangeTracker.with(t,E=>E.replaceNode(d,s,f))}function Hjt(t){return!(t.operatorToken.kind===64||t.operatorToken.kind===65)}function R8e(t){return Tn(t.parent,s=>{switch(s.kind){case 211:case 212:return!1;case 228:case 226:return!(Xn(s.parent)&&Hjt(s.parent));default:return"quit"}})||t}function O8e(t){const u=E=>{if(!Xn(E))return{nodes:[E],operators:[],validOperators:!0,hasString:us(E)||T7(E)};const{nodes:v,operators:b,hasString:B,validOperators:k}=u(E.left);if(!(B||us(E.right)||lY(E.right)))return{nodes:[E],operators:[],hasString:!1,validOperators:!0};const T=E.operatorToken.kind===40,M=k&&T;return v.push(E.right),b.push(E.operatorToken),{nodes:v,operators:b,hasString:!0,validOperators:M}},{nodes:s,operators:d,validOperators:f,hasString:p}=u(t);return{nodes:s,operators:d,isValidConcatenation:f&&p}}function Kjt(t){return t.replace(/\\.|[$`]/g,u=>u[0]==="\\"?u:"\\"+u)}function kut(t){const u=vB(t)||qke(t)?-2:-1;return Hc(t).slice(1,u)}function Fut(t,u){const s=[];let d="",f="";for(;t{Aut(se);const ae=ge===M.templateSpans.length-1,Ce=se.literal.text+(ae?j:""),ne=kut(se.literal)+(ae?J:"");return q.createTemplateSpan(se.expression,Y&&ae?q.createTemplateTail(Ce,ne):q.createTemplateMiddle(Ce,ne))});B.push(...oe)}else{const oe=Y?q.createTemplateTail(j,J):q.createTemplateMiddle(j,J);f(K,oe),B.push(q.createTemplateSpan(M,oe))}}return q.createTemplateExpression(k,B)}function Aut(t){const u=t.getSourceFile();OM(t,t.expression,u,3,!1),ZH(t.expression,t.expression,u,3,!1)}function Gjt(t){return Cf(t)&&(Aut(t),t=t.expression),t}var _me,Dme,xme,Sut,But,Jjt=o({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){rr(),s_(),_me="Convert to template string",Dme=to(F.Convert_to_template_string),xme={name:_me,description:Dme,kind:"refactor.rewrite.string"},s3(_me,{kinds:[xme.kind],getEditsForAction:jjt,getAvailableActions:Ojt}),Sut=(t,u)=>(s,d)=>{s(d,f)=>{for(;d.length>0;){const p=d.shift();OM(t[p],f,u,3,!1),s(p,f)}}}}),$jt={},Ujt=o({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){Jjt()}});function qjt(t){const u=wut(t,t.triggerReason==="invoked");return u?sD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:cee,description:bme,actions:[{...yme,notApplicableReason:u.error}]}]:_t:[{name:cee,description:bme,actions:[yme]}]:_t}function Zjt(t,u){const s=wut(t);return H.assert(s&&!sD(s),"Expected applicable refactor info"),{edits:iu.ChangeTracker.with(t,f=>uVt(t.file,t.program.getTypeChecker(),f,s)),renameFilename:void 0,renameLocation:void 0}}function vme(t){return Xn(t)||SB(t)}function Yjt(t){return Od(t)||Op(t)||Jl(t)}function Cme(t){return vme(t)||Yjt(t)}function wut(t,u=!0){const{file:s,program:d}=t,f=u9(t),p=f.length===0;if(p&&!u)return;const E=Ca(s,f.start),v=cX(s,f.start+f.length),b=Vc(E.pos,v&&v.end>=E.pos?v.getEnd():E.getEnd()),B=p?iVt(E):tVt(E,b),k=B&&Cme(B)?nVt(B):void 0;if(!k)return{error:to(F.Could_not_find_convertible_access_expression)};const T=d.getTypeChecker();return SB(k)?Qjt(k,T):Xjt(k)}function Qjt(t,u){const s=t.condition,d=V8e(t.whenTrue);if(!d||u.isNullableType(u.getTypeAtLocation(d)))return{error:to(F.Could_not_find_convertible_access_expression)};if((Iu(s)||at(s))&&j8e(s,d.expression))return{finalExpression:d,occurrences:[s],expression:t};if(Xn(s)){const f=Tut(d.expression,s);return f?{finalExpression:d,occurrences:f,expression:t}:{error:to(F.Could_not_find_matching_access_expressions)}}}function Xjt(t){if(t.operatorToken.kind!==56)return{error:to(F.Can_only_convert_logical_AND_access_chains)};const u=V8e(t.right);if(!u)return{error:to(F.Could_not_find_convertible_access_expression)};const s=Tut(u.expression,t.left);return s?{finalExpression:u,occurrences:s,expression:t}:{error:to(F.Could_not_find_matching_access_expressions)}}function Tut(t,u){const s=[];for(;Xn(u)&&u.operatorToken.kind===56;){const f=j8e(l0(t),l0(u.right));if(!f)break;s.push(f),t=f,u=u.left}const d=j8e(t,u);return d&&s.push(d),s.length>0?s:void 0}function j8e(t,u){if(!(!at(u)&&!Iu(u)&&!U0(u)))return eVt(t,u)?u:void 0}function eVt(t,u){for(;(Mo(t)||Iu(t)||U0(t))&&pK(t)!==pK(u);)t=t.expression;for(;Iu(t)&&Iu(u)||U0(t)&&U0(u);){if(pK(t)!==pK(u))return!1;t=t.expression,u=u.expression}return at(t)&&at(u)&&t.getText()===u.getText()}function pK(t){if(at(t)||Pm(t))return t.getText();if(Iu(t))return pK(t.name);if(U0(t))return pK(t.argumentExpression)}function tVt(t,u){for(;t.parent;){if(Cme(t)&&u.length!==0&&t.end>=u.start+u.length)return t;t=t.parent}}function iVt(t){for(;t.parent;){if(Cme(t)&&!Cme(t.parent))return t;t=t.parent}}function nVt(t){if(vme(t))return t;if(Jl(t)){const u=eB(t),s=u==null?void 0:u.initializer;return s&&vme(s)?s:void 0}return t.expression&&vme(t.expression)?t.expression:void 0}function V8e(t){if(t=l0(t),Xn(t))return V8e(t.left);if((Iu(t)||U0(t)||Mo(t))&&!Y1(t))return t}function Lut(t,u,s){if(Iu(u)||U0(u)||Mo(u)){const d=Lut(t,u.expression,s),f=s.length>0?s[s.length-1]:void 0,p=(f==null?void 0:f.getText())===u.expression.getText();if(p&&s.pop(),Mo(u))return p?q.createCallChain(d,q.createToken(29),u.typeArguments,u.arguments):q.createCallChain(d,u.questionDotToken,u.typeArguments,u.arguments);if(Iu(u))return p?q.createPropertyAccessChain(d,q.createToken(29),u.name):q.createPropertyAccessChain(d,u.questionDotToken,u.name);if(U0(u))return p?q.createElementAccessChain(d,q.createToken(29),u.argumentExpression):q.createElementAccessChain(d,u.questionDotToken,u.argumentExpression)}return u}function uVt(t,u,s,d,f){const{finalExpression:p,occurrences:E,expression:v}=d,b=E[E.length-1],B=Lut(u,p,E);B&&(Iu(B)||U0(B)||Mo(B))&&(Xn(v)?s.replaceNodeRange(t,b,p,B):SB(v)&&s.replaceNode(t,v,q.createBinaryExpression(B,q.createToken(61),v.whenFalse)))}var cee,bme,yme,rVt=o({"src/services/refactors/convertToOptionalChainExpression.ts"(){rr(),s_(),cee="Convert to optional chain expression",bme=to(F.Convert_to_optional_chain_expression),yme={name:cee,description:bme,kind:"refactor.rewrite.expression.optionalChain"},s3(cee,{kinds:[yme.kind],getEditsForAction:Zjt,getAvailableActions:qjt})}}),aVt={},oVt=o({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){rVt()}});function Nut(t){const u=t.kind,s=H8e(t.file,u9(t),t.triggerReason==="invoked"),d=s.targetRange;if(d===void 0){if(!s.errors||s.errors.length===0||!t.preferences.provideRefactorNotApplicableReason)return _t;const j=[];return qv(pw.kind,u)&&j.push({name:fw,description:pw.description,actions:[{...pw,notApplicableReason:z(s.errors)}]}),qv(mw.kind,u)&&j.push({name:fw,description:mw.description,actions:[{...mw,notApplicableReason:z(s.errors)}]}),j}const f=fVt(d,t);if(f===void 0)return _t;const p=[],E=new Map;let v;const b=[],B=new Map;let k,T=0;for(const{functionExtraction:j,constantExtraction:J}of f){if(qv(pw.kind,u)){const K=j.description;j.errors.length===0?E.has(K)||(E.set(K,!0),p.push({description:K,name:`function_scope_${T}`,kind:pw.kind})):v||(v={description:K,name:`function_scope_${T}`,notApplicableReason:z(j.errors),kind:pw.kind})}if(qv(mw.kind,u)){const K=J.description;J.errors.length===0?B.has(K)||(B.set(K,!0),b.push({description:K,name:`constant_scope_${T}`,kind:mw.kind})):k||(k={description:K,name:`constant_scope_${T}`,notApplicableReason:z(J.errors),kind:mw.kind})}T++}const M=[];return p.length?M.push({name:fw,description:to(F.Extract_function),actions:p}):t.preferences.provideRefactorNotApplicableReason&&v&&M.push({name:fw,description:to(F.Extract_function),actions:[v]}),b.length?M.push({name:fw,description:to(F.Extract_constant),actions:b}):t.preferences.provideRefactorNotApplicableReason&&k&&M.push({name:fw,description:to(F.Extract_constant),actions:[k]}),M.length?M:_t;function z(j){let J=j[0].messageText;return typeof J!="string"&&(J=J.messageText),J}}function Put(t,u){const d=H8e(t.file,u9(t)).targetRange,f=/^function_scope_(\d+)$/.exec(u);if(f){const E=+f[1];return H.assert(isFinite(E),"Expected to parse a finite number from the function scope index"),dVt(d,t,E)}const p=/^constant_scope_(\d+)$/.exec(u);if(p){const E=+p[1];return H.assert(isFinite(E),"Expected to parse a finite number from the constant scope index"),hVt(d,t,E)}H.fail("Unrecognized action name")}function H8e(t,u,s=!0){const{length:d}=u;if(d===0&&!s)return{errors:[Rd(t,u.start,d,_1.cannotExtractEmpty)]};const f=d===0&&s,p=Y9e(t,u.start),E=cX(t,Ec(u)),v=p&&E&&s?sVt(p,E,t):u,b=f?NVt(p):JH(p,t,v),B=f?b:JH(E,t,v);let k=0,T;if(!b||!B)return{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]};if(b.flags&16777216)return{errors:[Rd(t,u.start,d,_1.cannotExtractJSDoc)]};if(b.parent!==B.parent)return{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]};if(b!==B){if(!zut(b.parent))return{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]};const oe=[];for(const se of b.parent.statements){if(se===b||oe.length){const ge=Y(se);if(ge)return{errors:ge};oe.push(se)}if(se===B)break}return oe.length?{targetRange:{range:oe,facts:k,thisNode:T}}:{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]}}if(Op(b)&&!b.expression)return{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]};const M=j(b),z=J(M)||Y(M);if(z)return{errors:z};return{targetRange:{range:lVt(M),facts:k,thisNode:T}};function j(oe){if(Op(oe)){if(oe.expression)return oe.expression}else if(Jl(oe)||Ad(oe)){const se=Jl(oe)?oe.declarationList.declarations:oe.declarations;let ge=0,ae;for(const Ce of se)Ce.initializer&&(ge++,ae=Ce.initializer);if(ge===1)return ae}else if(na(oe)&&oe.initializer)return oe.initializer;return oe}function J(oe){if(at(Od(oe)?oe.expression:oe))return[Su(oe,_1.cannotExtractIdentifier)]}function K(oe,se){let ge=oe;for(;ge!==se;){if(ge.kind===172){No(ge)&&(k|=32);break}else if(ge.kind===169){Nm(ge).kind===176&&(k|=32);break}else ge.kind===174&&No(ge)&&(k|=32);ge=ge.parent}}function Y(oe){let se;if((Se=>{Se[Se.None=0]="None",Se[Se.Break=1]="Break",Se[Se.Continue=2]="Continue",Se[Se.Return=4]="Return"})(se||(se={})),H.assert(oe.pos<=oe.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),H.assert(!pg(oe.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!ia(oe)&&!(Z_(oe)&&Mut(oe))&&!$8e(oe))return[Su(oe,_1.statementOrExpressionExpected)];if(oe.flags&33554432)return[Su(oe,_1.cannotExtractAmbientBlock)];const ge=Yd(oe);ge&&K(oe,ge);let ae,Ce=4,ne;if(ve(oe),k&8){const Se=tf(oe,!1,!1);(Se.kind===262||Se.kind===174&&Se.parent.kind===210||Se.kind===218)&&(k|=16)}return ae;function ve(Se){if(ae)return!0;if(Q1(Se)){const pe=Se.kind===260?Se.parent.parent:Se;if(Yu(pe,32))return(ae||(ae=[])).push(Su(Se,_1.cannotExtractExportedEntity)),!0}switch(Se.kind){case 272:return(ae||(ae=[])).push(Su(Se,_1.cannotExtractImport)),!0;case 277:return(ae||(ae=[])).push(Su(Se,_1.cannotExtractExportedEntity)),!0;case 108:if(Se.parent.kind===213){const pe=Yd(Se);if(pe===void 0||pe.pos=u.start+u.length)return(ae||(ae=[])).push(Su(Se,_1.cannotExtractSuper)),!0}else k|=8,T=Se;break;case 219:ao(Se,function pe(fe){if(rw(fe))k|=8,T=Se;else{if(mr(fe)||Co(fe)&&!q0(fe))return!1;ao(fe,pe)}});case 263:case 262:la(Se.parent)&&Se.parent.externalModuleIndicator===void 0&&(ae||(ae=[])).push(Su(Se,_1.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const Ne=Ce;switch(Se.kind){case 245:Ce&=-5;break;case 258:Ce=0;break;case 241:Se.parent&&Se.parent.kind===258&&Se.parent.finallyBlock===Se&&(Ce=4);break;case 297:case 296:Ce|=1;break;default:Tx(Se,!1)&&(Ce|=3);break}switch(Se.kind){case 197:case 110:k|=8,T=Se;break;case 256:{const pe=Se.label;(ne||(ne=[])).push(pe.escapedText),ao(Se,ve),ne.pop();break}case 252:case 251:{const pe=Se.label;pe?kt(ne,pe.escapedText)||(ae||(ae=[])).push(Su(Se,_1.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Ce&(Se.kind===252?1:2)||(ae||(ae=[])).push(Su(Se,_1.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:k|=4;break;case 229:k|=2;break;case 253:Ce&4?k|=1:(ae||(ae=[])).push(Su(Se,_1.cannotExtractRangeContainingConditionalReturnStatement));break;default:ao(Se,ve);break}Ce=Ne}}}function sVt(t,u,s){const d=t.getStart(s);let f=u.getEnd();return s.text.charCodeAt(f)===59&&f++,{start:d,length:f-d}}function lVt(t){if(ia(t))return[t];if(Z_(t))return Od(t.parent)?[t.parent]:t;if($8e(t))return t}function K8e(t){return q0(t)?t0e(t.body):$0(t)||la(t)||rE(t)||mr(t)}function cVt(t){let u=D5(t.range)?Pn(t.range):t.range;if(t.facts&8&&!(t.facts&16)){const d=Yd(u);if(d){const f=Tn(u,$0);return f?[f,d]:[d]}}const s=[];for(;;)if(u=u.parent,u.kind===169&&(u=Tn(u,d=>$0(d)).parent),K8e(u)&&(s.push(u),u.kind===312))return s}function dVt(t,u,s){const{scopes:d,readsAndWrites:{target:f,usagesPerScope:p,functionErrorsPerScope:E,exposedVariableDeclarations:v}}=W8e(t,u);return H.assert(!E[s].length,"The extraction went missing? How?"),u.cancellationToken.throwIfCancellationRequested(),DVt(f,d[s],p[s],v,t,u)}function hVt(t,u,s){const{scopes:d,readsAndWrites:{target:f,usagesPerScope:p,constantErrorsPerScope:E,exposedVariableDeclarations:v}}=W8e(t,u);H.assert(!E[s].length,"The extraction went missing? How?"),H.assert(v.length===0,"Extract constant accepted a range containing a variable declaration?"),u.cancellationToken.throwIfCancellationRequested();const b=Wt(f)?f:f.statements[0].expression;return xVt(b,d[s],p[s],t.facts,u)}function fVt(t,u){const{scopes:s,readsAndWrites:{functionErrorsPerScope:d,constantErrorsPerScope:f}}=W8e(t,u);return s.map((E,v)=>{const b=mVt(E),B=pVt(E),k=$0(E)?gVt(E):mr(E)?EVt(E):_Vt(E);let T,M;return k===1?(T=e3(to(F.Extract_to_0_in_1_scope),[b,"global"]),M=e3(to(F.Extract_to_0_in_1_scope),[B,"global"])):k===0?(T=e3(to(F.Extract_to_0_in_1_scope),[b,"module"]),M=e3(to(F.Extract_to_0_in_1_scope),[B,"module"])):(T=e3(to(F.Extract_to_0_in_1),[b,k]),M=e3(to(F.Extract_to_0_in_1),[B,k])),v===0&&!mr(E)&&(M=e3(to(F.Extract_to_0_in_enclosing_scope),[B])),{functionExtraction:{description:T,errors:d[v]},constantExtraction:{description:M,errors:f[v]}}})}function W8e(t,u){const{file:s}=u,d=cVt(t),f=TVt(t,s),p=LVt(t,d,f,s,u.program.getTypeChecker(),u.cancellationToken);return{scopes:d,readsAndWrites:p}}function mVt(t){return $0(t)?"inner function":mr(t)?"method":"function"}function pVt(t){return mr(t)?"readonly field":"constant"}function gVt(t){switch(t.kind){case 176:return"constructor";case 218:case 262:return t.name?`function '${t.name.text}'`:KX;case 219:return"arrow function";case 174:return`method '${t.name.getText()}'`;case 177:return`'get ${t.name.getText()}'`;case 178:return`'set ${t.name.getText()}'`;default:H.assertNever(t,`Unexpected scope kind ${t.kind}`)}}function EVt(t){return t.kind===263?t.name?`class '${t.name.text}'`:"anonymous class declaration":t.name?`class expression '${t.name.text}'`:"anonymous class expression"}function _Vt(t){return t.kind===268?`namespace '${t.parent.name.getText()}'`:t.externalModuleIndicator?0:1}function DVt(t,u,{usages:s,typeParameterUsages:d,substitutions:f},p,E,v){const b=v.program.getTypeChecker(),B=Os(v.program.getCompilerOptions()),k=z1.createImportAdder(v.file,v.program,v.preferences,v.host),T=u.getSourceFile(),M=Ok(mr(u)?"newMethod":"newFunction",T),z=Qn(u),j=q.createIdentifier(M);let J;const K=[],Y=[];let oe;s.forEach((Ve,We)=>{let Gt;if(!z){let Ie=b.getTypeOfSymbolAtLocation(Ve.symbol,Ve.node);Ie=b.getBaseTypeOfLiteralType(Ie),Gt=z1.typeToAutoImportableTypeNode(b,k,Ie,u,B,1)}const Yt=q.createParameterDeclaration(void 0,void 0,We,void 0,Gt);K.push(Yt),Ve.usage===2&&(oe||(oe=[])).push(Ve),Y.push(q.createIdentifier(We))});const ge=ga(d.values(),Ve=>({type:Ve,declaration:CVt(Ve,v.startPosition)})).sort(bVt),ae=ge.length===0?void 0:qi(ge,({declaration:Ve})=>Ve),Ce=ae!==void 0?ae.map(Ve=>q.createTypeReferenceNode(Ve.name,void 0)):void 0;if(Wt(t)&&!z){const Ve=b.getContextualType(t);J=b.typeToTypeNode(Ve,u,1)}const{body:ne,returnValueProperty:ve}=kVt(t,p,oe,f,!!(E.facts&1));Kf(ne);let Se;const Ne=!!(E.facts&16);if(mr(u)){const Ve=z?[]:[q.createModifier(123)];E.facts&32&&Ve.push(q.createModifier(126)),E.facts&4&&Ve.push(q.createModifier(134)),Se=q.createMethodDeclaration(Ve.length?Ve:void 0,E.facts&2?q.createToken(42):void 0,j,void 0,ae,K,J,ne)}else Ne&&K.unshift(q.createParameterDeclaration(void 0,void 0,"this",void 0,b.typeToTypeNode(b.getTypeAtLocation(E.thisNode),u,1),void 0)),Se=q.createFunctionDeclaration(E.facts&4?[q.createToken(134)]:void 0,E.facts&2?q.createToken(42):void 0,j,ae,K,J,ne);const pe=iu.ChangeTracker.fromContext(v),fe=(D5(E.range)?Cr(E.range):E.range).end,xe=SVt(fe,u);xe?pe.insertNodeBefore(v.file,xe,Se,!0):pe.insertNodeAtEndOfScope(v.file,u,Se),k.writeFixes(pe);const Be=[],Ge=yVt(u,E,M);Ne&&Y.unshift(q.createIdentifier("this"));let Ae=q.createCallExpression(Ne?q.createPropertyAccessExpression(Ge,"call"):Ge,Ce,Y);if(E.facts&2&&(Ae=q.createYieldExpression(q.createToken(42),Ae)),E.facts&4&&(Ae=q.createAwaitExpression(Ae)),J8e(t)&&(Ae=q.createJsxExpression(void 0,Ae)),p.length&&!oe)if(H.assert(!ve,"Expected no returnValueProperty"),H.assert(!(E.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),p.length===1){const Ve=p[0];Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ll(Ve.name),void 0,ll(Ve.type),Ae)],Ve.parent.flags)))}else{const Ve=[],We=[];let Gt=p[0].parent.flags,Yt=!1;for(const st of p){Ve.push(q.createBindingElement(void 0,void 0,ll(st.name)));const St=b.typeToTypeNode(b.getBaseTypeOfLiteralType(b.getTypeAtLocation(st)),u,1);We.push(q.createPropertySignature(void 0,st.symbol.name,void 0,St)),Yt=Yt||st.type!==void 0,Gt=Gt&st.parent.flags}const Ie=Yt?q.createTypeLiteralNode(We):void 0;Ie&&Zn(Ie,1),Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(q.createObjectBindingPattern(Ve),void 0,Ie,Ae)],Gt)))}else if(p.length||oe){if(p.length)for(const We of p){let Gt=We.parent.flags;Gt&2&&(Gt=Gt&-3|1),Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(We.symbol.name,void 0,Ye(We.type))],Gt)))}ve&&Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ve,void 0,Ye(J))],1)));const Ve=G8e(p,oe);ve&&Ve.unshift(q.createShorthandPropertyAssignment(ve)),Ve.length===1?(H.assert(!ve,"Shouldn't have returnValueProperty here"),Be.push(q.createExpressionStatement(q.createAssignment(Ve[0].name,Ae))),E.facts&1&&Be.push(q.createReturnStatement())):(Be.push(q.createExpressionStatement(q.createAssignment(q.createObjectLiteralExpression(Ve),Ae))),ve&&Be.push(q.createReturnStatement(q.createIdentifier(ve))))}else E.facts&1?Be.push(q.createReturnStatement(Ae)):D5(E.range)?Be.push(q.createExpressionStatement(Ae)):Be.push(Ae);D5(E.range)?pe.replaceNodeRangeWithNodes(v.file,Pn(E.range),Cr(E.range),Be):pe.replaceNodeWithNodes(v.file,E.range,Be);const De=pe.getChanges(),Je=(D5(E.range)?Pn(E.range):E.range).getSourceFile().fileName,ft=qH(De,Je,M,!1);return{renameFilename:Je,renameLocation:ft,edits:De};function Ye(Ve){if(Ve===void 0)return;const We=ll(Ve);let Gt=We;for(;M7(Gt);)Gt=Gt.type;return Pv(Gt)&&Le(Gt.types,Yt=>Yt.kind===157)?We:q.createUnionTypeNode([We,q.createKeywordTypeNode(157)])}}function xVt(t,u,{substitutions:s},d,f){const p=f.program.getTypeChecker(),E=u.getSourceFile(),v=Iu(t)&&!mr(u)&&!p.resolveName(t.name.text,t,111551,!1)&&!Xr(t.name)&&!Dv(t.name)?t.name.text:Ok(mr(u)?"newProperty":"newLocal",E),b=Qn(u);let B=b||!p.isContextSensitive(t)?void 0:p.typeToTypeNode(p.getContextualType(t),u,1),k=FVt(l0(t),s);({variableType:B,initializer:k}=J(B,k)),Kf(k);const T=iu.ChangeTracker.fromContext(f);if(mr(u)){H.assert(!b,"Cannot extract to a JS class");const K=[];K.push(q.createModifier(123)),d&32&&K.push(q.createModifier(126)),K.push(q.createModifier(148));const Y=q.createPropertyDeclaration(K,v,void 0,B,k);let oe=q.createPropertyAccessExpression(d&32?q.createIdentifier(u.name.getText()):q.createThis(),q.createIdentifier(v));J8e(t)&&(oe=q.createJsxExpression(void 0,oe));const se=t.pos,ge=BVt(se,u);T.insertNodeBefore(f.file,ge,Y,!0),T.replaceNode(f.file,t,oe)}else{const K=q.createVariableDeclaration(v,void 0,B,k),Y=vVt(t,u);if(Y){T.insertNodeBefore(f.file,Y,K);const oe=q.createIdentifier(v);T.replaceNode(f.file,t,oe)}else if(t.parent.kind===244&&u===Tn(t,K8e)){const oe=q.createVariableStatement(void 0,q.createVariableDeclarationList([K],2));T.replaceNode(f.file,t.parent,oe)}else{const oe=q.createVariableStatement(void 0,q.createVariableDeclarationList([K],2)),se=wVt(t,u);if(se.pos===0?T.insertNodeAtTopOfFile(f.file,oe,!1):T.insertNodeBefore(f.file,se,oe,!1),t.parent.kind===244)T.delete(f.file,t.parent);else{let ge=q.createIdentifier(v);J8e(t)&&(ge=q.createJsxExpression(void 0,ge)),T.replaceNode(f.file,t,ge)}}}const M=T.getChanges(),z=t.getSourceFile().fileName,j=qH(M,z,v,!0);return{renameFilename:z,renameLocation:j,edits:M};function J(K,Y){if(K===void 0)return{variableType:K,initializer:Y};if(!A0(Y)&&!q0(Y)||Y.typeParameters)return{variableType:K,initializer:Y};const oe=p.getTypeAtLocation(t),se=Aa(p.getSignaturesOfType(oe,0));if(!se)return{variableType:K,initializer:Y};if(se.getTypeParameters())return{variableType:K,initializer:Y};const ge=[];let ae=!1;for(const Ce of Y.parameters)if(Ce.type)ge.push(Ce);else{const ne=p.getTypeAtLocation(Ce);ne===p.getAnyType()&&(ae=!0),ge.push(q.updateParameterDeclaration(Ce,Ce.modifiers,Ce.dotDotDotToken,Ce.name,Ce.questionToken,Ce.type||p.typeToTypeNode(ne,u,1),Ce.initializer))}if(ae)return{variableType:K,initializer:Y};if(K=void 0,q0(Y))Y=q.updateArrowFunction(Y,Hp(t)?p2(t):void 0,Y.typeParameters,ge,Y.type||p.typeToTypeNode(se.getReturnType(),u,1),Y.equalsGreaterThanToken,Y.body);else{if(se&&se.thisParameter){const Ce=Ki(ge);if(!Ce||at(Ce.name)&&Ce.name.escapedText!=="this"){const ne=p.getTypeOfSymbolAtLocation(se.thisParameter,t);ge.splice(0,0,q.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(ne,u,1)))}}Y=q.updateFunctionExpression(Y,Hp(t)?p2(t):void 0,Y.asteriskToken,Y.name,Y.typeParameters,ge,Y.type||p.typeToTypeNode(se.getReturnType(),u,1),Y.body)}return{variableType:K,initializer:Y}}}function vVt(t,u){let s;for(;t!==void 0&&t!==u;){if(na(t)&&t.initializer===s&&Ad(t.parent)&&t.parent.declarations.length>1)return t;s=t,t=t.parent}}function CVt(t,u){let s;const d=t.symbol;if(d&&d.declarations)for(const f of d.declarations)(s===void 0||f.pos0;if(po(t)&&!p&&d.size===0)return{body:q.createBlock(t.statements,!0),returnValueProperty:void 0};let E,v=!1;const b=q.createNodeArray(po(t)?t.statements.slice(0):[ia(t)?t:q.createReturnStatement(l0(t))]);if(p||d.size){const k=kn(b,B,ia).slice();if(p&&!f&&ia(t)){const T=G8e(u,s);T.length===1?k.push(q.createReturnStatement(T[0].name)):k.push(q.createReturnStatement(q.createObjectLiteralExpression(T)))}return{body:q.createBlock(k,!0),returnValueProperty:E}}else return{body:q.createBlock(b,!0),returnValueProperty:void 0};function B(k){if(!v&&Op(k)&&p){const T=G8e(u,s);return k.expression&&(E||(E="__return"),T.unshift(q.createPropertyAssignment(E,yt(k.expression,B,Wt)))),T.length===1?q.createReturnStatement(T[0].name):q.createReturnStatement(q.createObjectLiteralExpression(T))}else{const T=v;v=v||$0(k)||mr(k);const M=d.get($s(k).toString()),z=M?ll(M):rn(k,B,Dg);return v=T,z}}}function FVt(t,u){return u.size?s(t):t;function s(d){const f=u.get($s(d).toString());return f?ll(f):rn(d,s,Dg)}}function AVt(t){if($0(t)){const u=t.body;if(po(u))return u.statements}else{if(rE(t)||la(t))return t.statements;if(mr(t))return t.members}return _t}function SVt(t,u){return Le(AVt(u),s=>s.pos>=t&&$0(s)&&!hc(s))}function BVt(t,u){const s=u.members;H.assert(s.length>0,"Found no members");let d,f=!0;for(const p of s){if(p.pos>t)return d||s[0];if(f&&!ko(p)){if(d!==void 0)return p;f=!1}d=p}return d===void 0?H.fail():d}function wVt(t,u){H.assert(!mr(u));let s;for(let d=t;d!==u;d=d.parent)K8e(d)&&(s=d);for(let d=(s||t).parent;;d=d.parent){if(zut(d)){let f;for(const p of d.statements){if(p.pos>t.pos)break;f=p}return!f&&BB(d)?(H.assert(BV(d.parent.parent),"Grandparent isn't a switch statement"),d.parent.parent):H.checkDefined(f,"prevStatement failed to get set")}H.assert(d!==u,"Didn't encounter a block-like before encountering scope")}}function G8e(t,u){const s=Vt(t,f=>q.createShorthandPropertyAssignment(f.symbol.name)),d=Vt(u,f=>q.createShorthandPropertyAssignment(f.symbol.name));return s===void 0?d:d===void 0?s:s.concat(d)}function D5(t){return Ha(t)}function TVt(t,u){return D5(t.range)?{pos:Pn(t.range).getStart(u),end:Cr(t.range).getEnd()}:t.range}function LVt(t,u,s,d,f,p){const E=new Map,v=[],b=[],B=[],k=[],T=[],M=new Map,z=[];let j;const J=D5(t.range)?t.range.length===1&&Od(t.range[0])?t.range[0].expression:void 0:t.range;let K;if(J===void 0){const xe=t.range,Be=Pn(xe).getStart(),Ge=Cr(xe).end;K=Rd(d,Be,Ge-Be,_1.expressionExpected)}else f.getTypeAtLocation(J).flags&147456&&(K=Su(J,_1.uselessConstantType));for(const xe of u){v.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),b.push(new Map),B.push([]);const Be=[];K&&Be.push(K),mr(xe)&&Qn(xe)&&Be.push(Su(xe,_1.cannotExtractToJSClass)),q0(xe)&&!po(xe.body)&&Be.push(Su(xe,_1.cannotExtractToExpressionArrowFunction)),k.push(Be)}const Y=new Map,oe=D5(t.range)?q.createBlock(t.range):t.range,se=D5(t.range)?Pn(t.range):t.range,ge=ae(se);if(ne(oe),ge&&!D5(t.range)&&!oE(t.range)){const xe=f.getContextualType(t.range);Ce(xe)}if(E.size>0){const xe=new Map;let Be=0;for(let Ge=se;Ge!==void 0&&Be{v[Be].typeParameterUsages.set(De,Ae)}),Be++),x0e(Ge))for(const Ae of Sx(Ge)){const De=f.getTypeAtLocation(Ae);E.has(De.id.toString())&&xe.set(De.id.toString(),De)}H.assert(Be===u.length,"Should have iterated all scopes")}if(T.length){const xe=D0e(u[0],u[0].parent)?u[0]:YE(u[0]);ao(xe,Ne)}for(let xe=0;xe0&&(Be.usages.size>0||Be.typeParameterUsages.size>0)){const De=D5(t.range)?t.range[0]:t.range;k[xe].push(Su(De,_1.cannotAccessVariablesFromNestedScopes))}t.facts&16&&mr(u[xe])&&B[xe].push(Su(t.thisNode,_1.cannotExtractFunctionsContainingThisToMethod));let Ge=!1,Ae;if(v[xe].usages.forEach(De=>{De.usage===2&&(Ge=!0,De.symbol.flags&106500&&De.symbol.valueDeclaration&&Rf(De.symbol.valueDeclaration,8)&&(Ae=De.symbol.valueDeclaration))}),H.assert(D5(t.range)||z.length===0,"No variable declarations expected if something was extracted"),Ge&&!D5(t.range)){const De=Su(t.range,_1.cannotWriteInExpression);B[xe].push(De),k[xe].push(De)}else if(Ae&&xe>0){const De=Su(Ae,_1.cannotExtractReadonlyPropertyInitializerOutsideConstructor);B[xe].push(De),k[xe].push(De)}else if(j){const De=Su(j,_1.cannotExtractExportedEntity);B[xe].push(De),k[xe].push(De)}}return{target:oe,usagesPerScope:v,functionErrorsPerScope:B,constantErrorsPerScope:k,exposedVariableDeclarations:z};function ae(xe){return!!Tn(xe,Be=>x0e(Be)&&Sx(Be).length!==0)}function Ce(xe){const Be=f.getSymbolWalker(()=>(p.throwIfCancellationRequested(),!0)),{visitedTypes:Ge}=Be.walkType(xe);for(const Ae of Ge)Ae.isTypeParameter()&&E.set(Ae.id.toString(),Ae)}function ne(xe,Be=1){if(ge){const Ge=f.getTypeAtLocation(xe);Ce(Ge)}if(Q1(xe)&&xe.symbol&&T.push(xe),ld(xe))ne(xe.left,2),ne(xe.right);else if(sbe(xe))ne(xe.operand,2);else if(Iu(xe)||U0(xe))ao(xe,ne);else if(at(xe)){if(!xe.parent||vf(xe.parent)&&xe!==xe.parent.left||Iu(xe.parent)&&xe!==xe.parent.expression)return;ve(xe,Be,q_(xe))}else ao(xe,ne)}function ve(xe,Be,Ge){const Ae=Se(xe,Be,Ge);if(Ae)for(let De=0;De=Be)return De;if(Y.set(De,Be),Ke){for(const Ye of v)Ye.usages.get(xe.text)&&Ye.usages.set(xe.text,{usage:Be,symbol:Ae,node:xe});return De}const Je=Ae.getDeclarations(),ft=Je&&Le(Je,Ye=>Ye.getSourceFile()===d);if(ft&&!IH(s,ft.getStart(),ft.end)){if(t.facts&2&&Be===2){const Ye=Su(xe,_1.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Ve of B)Ve.push(Ye);for(const Ve of k)Ve.push(Ye)}for(let Ye=0;YeAe.symbol===Be);if(Ge)if(na(Ge)){const Ae=Ge.symbol.id.toString();M.has(Ae)||(z.push(Ge),M.set(Ae,!0))}else j=j||Ge}ao(xe,Ne)}function pe(xe){return xe.parent&&pm(xe.parent)&&xe.parent.name===xe?f.getShorthandAssignmentValueSymbol(xe.parent):f.getSymbolAtLocation(xe)}function fe(xe,Be,Ge){if(!xe)return;const Ae=xe.getDeclarations();if(Ae&&Ae.some(Ke=>Ke.parent===Be))return q.createIdentifier(xe.name);const De=fe(xe.parent,Be,Ge);if(De!==void 0)return Ge?q.createQualifiedName(De,q.createIdentifier(xe.name)):q.createPropertyAccessExpression(De,xe.name)}}function NVt(t){return Tn(t,u=>u.parent&&Mut(u)&&!Xn(u.parent))}function Mut(t){const{parent:u}=t;switch(u.kind){case 306:return!1}switch(t.kind){case 11:return u.kind!==272&&u.kind!==276;case 230:case 206:case 208:return!1;case 80:return u.kind!==208&&u.kind!==276&&u.kind!==281}return!0}function zut(t){switch(t.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function J8e(t){return $8e(t)||(r3(t)||bk(t)||K2(t))&&(r3(t.parent)||K2(t.parent))}function $8e(t){return us(t)&&t.parent&&oE(t.parent)}var fw,mw,pw,_1,U8e,PVt=o({"src/services/refactors/extractSymbol.ts"(){rr(),s_(),fw="Extract Symbol",mw={name:"Extract Constant",description:to(F.Extract_constant),kind:"refactor.extract.constant"},pw={name:"Extract Function",description:to(F.Extract_function),kind:"refactor.extract.function"},s3(fw,{kinds:[mw.kind,pw.kind],getEditsForAction:Put,getAvailableActions:Nut}),(t=>{function u(s){return{message:s,code:0,category:3,key:s}}t.cannotExtractRange=u("Cannot extract range."),t.cannotExtractImport=u("Cannot extract import statement."),t.cannotExtractSuper=u("Cannot extract super call."),t.cannotExtractJSDoc=u("Cannot extract JSDoc."),t.cannotExtractEmpty=u("Cannot extract empty range."),t.expressionExpected=u("expression expected."),t.uselessConstantType=u("No reason to extract constant of type."),t.statementOrExpressionExpected=u("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=u("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=u("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=u("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=u("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=u("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=u("Function will not visible in the new scope."),t.cannotExtractIdentifier=u("Select more than a single identifier."),t.cannotExtractExportedEntity=u("Cannot extract exported declaration"),t.cannotWriteInExpression=u("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=u("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=u("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=u("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=u("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=u("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=u("Cannot extract functions containing this to method")})(_1||(_1={})),U8e=(t=>(t[t.None=0]="None",t[t.HasReturn=1]="HasReturn",t[t.IsGenerator=2]="IsGenerator",t[t.IsAsyncFunction=4]="IsAsyncFunction",t[t.UsesThis=8]="UsesThis",t[t.UsesThisInFunction=16]="UsesThisInFunction",t[t.InStaticRegion=32]="InStaticRegion",t))(U8e||{})}}),Iut={};h(Iut,{Messages:()=>_1,RangeFacts:()=>U8e,getRangeToExtract:()=>H8e,getRefactorActionsToExtractSymbol:()=>Nut,getRefactorEditsToExtractSymbol:()=>Put});var MVt=o({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){PVt()}}),dee,kme,Fme,zVt=o({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){rr(),s_(),dee="Generate 'get' and 'set' accessors",kme=to(F.Generate_get_and_set_accessors),Fme={name:dee,description:kme,kind:"refactor.rewrite.property.generateAccessors"},s3(dee,{kinds:[Fme.kind],getEditsForAction:function(u,s){if(!u.endPosition)return;const d=z1.getAccessorConvertiblePropertyAtPosition(u.file,u.program,u.startPosition,u.endPosition);H.assert(d&&!sD(d),"Expected applicable refactor info");const f=z1.generateAccessorFromProperty(u.file,u.program,u.startPosition,u.endPosition,u,s);if(!f)return;const p=u.file.fileName,E=d.renameAccessor?d.accessorName:d.fieldName,b=(at(E)?0:-1)+qH(f,p,E.text,io(d.declaration));return{renameFilename:p,renameLocation:b,edits:f}},getAvailableActions(t){if(!t.endPosition)return _t;const u=z1.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,t.triggerReason==="invoked");return u?sD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:dee,description:kme,actions:[{...Fme,notApplicableReason:u.error}]}]:_t:[{name:dee,description:kme,actions:[Fme]}]:_t}})}}),IVt={},RVt=o({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){zVt()}});function OVt(t){const u=Rut(t);if(u&&!sD(u))return{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,d=>VVt(t.file,d,u.declaration,u.returnTypeNode))}}function jVt(t){const u=Rut(t);return u?sD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:hee,description:Ame,actions:[{...fee,notApplicableReason:u.error}]}]:_t:[{name:hee,description:Ame,actions:[fee]}]:_t}function VVt(t,u,s,d){const f=a0(s,22,t),p=q0(s)&&f===void 0,E=p?Pn(s.parameters):f;E&&(p&&(u.insertNodeBefore(t,E,q.createToken(21)),u.insertNodeAfter(t,E,q.createToken(22))),u.insertNodeAt(t,E.end,d,{prefix:": "}))}function Rut(t){if(Qn(t.file)||!qv(fee.kind,t.kind))return;const u=af(t.file,t.startPosition),s=Tn(u,E=>po(E)||E.parent&&q0(E.parent)&&(E.kind===39||E.parent.body===E)?"quit":HVt(E));if(!s||!s.body||s.type)return{error:to(F.Return_type_must_be_inferred_from_a_function)};const d=t.program.getTypeChecker(),f=KVt(d,s);if(!f)return{error:to(F.Could_not_determine_function_return_type)};const p=d.typeToTypeNode(f,s,1);if(p)return{declaration:s,returnTypeNode:p}}function HVt(t){switch(t.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function KVt(t,u){if(t.isImplementationOfOverload(u)){const d=t.getTypeAtLocation(u).getCallSignatures();if(d.length>1)return t.getUnionType(qi(d,f=>f.getReturnType()))}const s=t.getSignatureFromDeclaration(u);if(s)return t.getReturnTypeOfSignature(s)}var hee,Ame,fee,WVt=o({"src/services/refactors/inferFunctionReturnType.ts"(){rr(),s_(),hee="Infer function return type",Ame=to(F.Infer_function_return_type),fee={name:hee,description:Ame,kind:"refactor.rewrite.function.returnType"},s3(hee,{kinds:[fee.kind],getEditsForAction:OVt,getAvailableActions:jVt})}}),GVt={},JVt=o({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){WVt()}}),a9={};h(a9,{addExportToChanges:()=>F8e,addExports:()=>C8e,addNewFileToTsconfig:()=>E8e,addOrRemoveBracesToArrowFunction:()=>ajt,convertArrowFunctionOrFunctionExpression:()=>_jt,convertParamsToDestructuredObject:()=>Ijt,convertStringOrTemplateLiteral:()=>$jt,convertToOptionalChainExpression:()=>aVt,createNewFileName:()=>A8e,createOldFileImportsFromTargetFile:()=>v8e,deleteMovedStatements:()=>iee,deleteUnusedImports:()=>b8e,deleteUnusedOldImports:()=>_8e,doChangeNamedToNamespaceOrDefault:()=>Gnt,extractSymbol:()=>Iut,filterImport:()=>lK,forEachImportInStatement:()=>sK,generateGetAccessorAndSetAccessor:()=>IVt,getApplicableRefactors:()=>rOt,getEditsForRefactor:()=>aOt,getStatementsToMove:()=>cK,getTopLevelDeclarationStatement:()=>hme,getUsageInfo:()=>uee,inferFunctionReturnType:()=>GVt,isRefactorErrorInfo:()=>sD,isTopLevelDeclaration:()=>ree,makeImportOrRequire:()=>nee,moduleSpecifierFromImport:()=>oK,nameOfTopLevelDeclaration:()=>k8e,refactorKindBeginsWith:()=>qv,registerRefactor:()=>s3,updateImportsInOtherFiles:()=>D8e});var s_=o({"src/services/_namespaces/ts.refactor.ts"(){Ont(),fOt(),_Ot(),kOt(),FOt(),SOt(),LOt(),XOt(),ojt(),Djt(),Rjt(),Ujt(),oVt(),MVt(),RVt(),JVt()}});function Out(t,u,s,d){const f=q8e(t,u,s,d);H.assert(f.spans.length%3===0);const p=f.spans,E=[];for(let v=0;v{f.push(E.getStart(u),E.getWidth(u),(v+1<<8)+b)},d),f}function UVt(t,u,s,d,f){const p=t.getTypeChecker();let E=!1;function v(b){switch(b.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:f.throwIfCancellationRequested()}if(!b||!wU(s,b.pos,b.getFullWidth())||b.getFullWidth()===0)return;const B=E;if((r3(b)||bk(b))&&(E=!0),YP(b)&&(E=!1),at(b)&&!E&&!QVt(b)&&!LP(b.escapedText)){let k=p.getSymbolAtLocation(b);if(k){k.flags&2097152&&(k=p.getAliasedSymbol(k));let T=qVt(k,Pk(b));if(T!==void 0){let M=0;b.parent&&(js(b.parent)||X8e.get(b.parent.kind)===T)&&b.parent.name===b&&(M=1),T===6&&Vut(b)&&(T=9),T=ZVt(p,b,T);const z=k.valueDeclaration;if(z){const j=m2(z),J=QD(z);j&256&&(M|=2),j&1024&&(M|=4),T!==0&&T!==2&&(j&8||J&2||k.getFlags()&8)&&(M|=8),(T===7||T===10)&&YVt(z,u)&&(M|=32),t.isSourceFileDefaultLibrary(z.getSourceFile())&&(M|=16)}else k.declarations&&k.declarations.some(j=>t.isSourceFileDefaultLibrary(j.getSourceFile()))&&(M|=16);d(b,T,M)}}}ao(b,v),E=B}v(u)}function qVt(t,u){const s=t.getFlags();if(s&32)return 0;if(s&384)return 1;if(s&524288)return 5;if(s&64){if(u&2)return 2}else if(s&262144)return 4;let d=t.valueDeclaration||t.declarations&&t.declarations[0];return d&&js(d)&&(d=jut(d)),d&&X8e.get(d.kind)}function ZVt(t,u,s){if(s===7||s===9||s===6){const d=t.getTypeAtLocation(u);if(d){const f=p=>p(d)||d.isUnion()&&d.types.some(p);if(s!==6&&f(p=>p.getConstructSignatures().length>0))return 0;if(f(p=>p.getCallSignatures().length>0)&&!f(p=>p.getProperties().length>0)||XVt(u))return s===9?11:10}}return s}function YVt(t,u){return js(t)&&(t=jut(t)),na(t)?(!la(t.parent.parent.parent)||G2(t.parent))&&t.getSourceFile()===u:ed(t)?!la(t.parent)&&t.getSourceFile()===u:!1}function jut(t){for(;;)if(js(t.parent.parent))t=t.parent.parent;else return t.parent.parent}function QVt(t){const u=t.parent;return u&&(n_(u)||bf(u)||Jx(u))}function XVt(t){for(;Vut(t);)t=t.parent;return Mo(t.parent)&&t.parent.expression===t}function Vut(t){return vf(t.parent)&&t.parent.right===t||Iu(t.parent)&&t.parent.name===t}var Z8e,Y8e,Q8e,X8e,Hut=o({"src/services/classifier2020.ts"(){rr(),Z8e=(t=>(t[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",t))(Z8e||{}),Y8e=(t=>(t[t.class=0]="class",t[t.enum=1]="enum",t[t.interface=2]="interface",t[t.namespace=3]="namespace",t[t.typeParameter=4]="typeParameter",t[t.type=5]="type",t[t.parameter=6]="parameter",t[t.variable=7]="variable",t[t.enumMember=8]="enumMember",t[t.property=9]="property",t[t.function=10]="function",t[t.member=11]="member",t))(Y8e||{}),Q8e=(t=>(t[t.declaration=0]="declaration",t[t.static=1]="static",t[t.async=2]="async",t[t.readonly=3]="readonly",t[t.defaultLibrary=4]="defaultLibrary",t[t.local=5]="local",t))(Q8e||{}),X8e=new Map([[260,7],[169,6],[172,9],[267,3],[266,1],[306,8],[263,0],[174,11],[262,10],[218,10],[173,11],[177,9],[178,9],[171,9],[264,2],[265,5],[168,4],[303,9],[304,9]])}});function Kut(t,u,s,d){const f=GO(t)?new Lme(t,u,s):t===80?new Pme(80,u,s):t===81?new Mme(81,u,s):new nBe(t,u,s);return f.parent=d,f.flags=d.flags&101441536,f}function eHt(t,u){if(!GO(t.kind))return _t;const s=[];if(GU(t))return t.forEachChild(E=>{s.push(E)}),s;nh.setText((u||t.getSourceFile()).text);let d=t.pos;const f=E=>{mee(s,d,E.pos,t),s.push(E),d=E.end},p=E=>{mee(s,d,E.pos,t),s.push(tHt(E,t)),d=E.end};return L(t.jsDoc,f),d=t.pos,t.forEachChild(f,p),mee(s,d,t.end,t),nh.setText(void 0),s}function mee(t,u,s,d){for(nh.resetTokenState(u);uu.tagName.text==="inheritDoc"||u.tagName.text==="inheritdoc")}function Sme(t,u){if(!t)return _t;let s=Yv.getJsDocTagsFromDeclarations(t,u);if(u&&(s.length===0||t.some(Wut))){const d=new Set;for(const f of t){const p=Gut(u,f,E=>{var v;if(!d.has(E))return d.add(E),f.kind===177||f.kind===178?E.getContextualJsDocTags(f,u):((v=E.declarations)==null?void 0:v.length)===1?E.getJsDocTags():void 0});p&&(s=[...p,...s])}}return s}function pee(t,u){if(!t)return _t;let s=Yv.getJsDocCommentsFromDeclarations(t,u);if(u&&(s.length===0||t.some(Wut))){const d=new Set;for(const f of t){const p=Gut(u,f,E=>{if(!d.has(E))return d.add(E),f.kind===177||f.kind===178?E.getContextualDocumentationComment(f,u):E.getDocumentationComment(u)});p&&(s=s.length===0?p.slice():p.concat(lw(),s))}}return s}function Gut(t,u,s){var d;const f=((d=u.parent)==null?void 0:d.kind)===176?u.parent.parent:u.parent;if(!f)return;const p=Kc(u);return G(uP(f),E=>{const v=t.getTypeAtLocation(E),b=p&&v.symbol?t.getTypeOfSymbol(v.symbol):v,B=t.getPropertyOfType(b,u.symbol.name);return B?s(B):void 0})}function iHt(){return{getNodeConstructor:()=>Lme,getTokenConstructor:()=>nBe,getIdentifierConstructor:()=>Pme,getPrivateIdentifierConstructor:()=>Mme,getSourceFileConstructor:()=>Yut,getSymbolConstructor:()=>Uut,getTypeConstructor:()=>qut,getSignatureConstructor:()=>Zut,getSourceMapSourceConstructor:()=>Qut}}function gK(t){let u=!0;for(const d in t)if(gu(t,d)&&!Jut(d)){u=!1;break}if(u)return t;const s={};for(const d in t)if(gu(t,d)){const f=Jut(d)?d:d.charAt(0).toLowerCase()+d.substr(1);s[f]=t[d]}return s}function Jut(t){return!t.length||t.charAt(0)===t.charAt(0).toLowerCase()}function EK(t){return t?Vt(t,u=>u.text).join(""):""}function gee(){return{target:1,jsx:1}}function Bme(){return z1.getSupportedErrorCodes()}function $ut(t,u,s){t.version=s,t.scriptSnapshot=u}function Eee(t,u,s,d,f,p){const E=KV(t,aw(u),s,f,p);return $ut(E,u,d),E}function wme(t,u,s,d,f){if(d&&s!==t.version){let E;const v=d.span.start!==0?t.text.substr(0,d.span.start):"",b=Ec(d.span)!==t.text.length?t.text.substr(Ec(d.span)):"";if(d.newLength===0)E=v&&b?v+b:v||b;else{const k=u.getText(d.span.start,d.span.start+d.newLength);E=v&&b?v+k+b:v?v+k:k+b}const B=$ce(t,E,d,f);return $ut(B,u,s),B.nameTable=void 0,t!==B&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),B}const p={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator,jsDocParsingMode:t.jsDocParsingMode};return Eee(t.fileName,u,p,s,!0,t.scriptKind)}function eBe(t,u=OSe(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()),s){var d;let f;s===void 0?f=0:typeof s=="boolean"?f=s?2:0:f=s;const p=new Xut(t);let E,v,b=0;const B=t.getCancellationToken?new trt(t.getCancellationToken()):ert,k=t.getCurrentDirectory();tke((d=t.getLocalizedDiagnosticMessages)==null?void 0:d.bind(t));function T(we){t.log&&t.log(we)}const M=Hj(t),z=L1(M),j=XSe({useCaseSensitiveFileNames:()=>M,getCurrentDirectory:()=>k,getProgram:Y,fileExists:Lo(t,t.fileExists),readFile:Lo(t,t.readFile),getDocumentPositionMapper:Lo(t,t.getDocumentPositionMapper),getSourceFileLike:Lo(t,t.getSourceFileLike),log:T});function J(we){const de=E.getSourceFile(we);if(!de){const je=new Error(`Could not find source file: '${we}'.`);throw je.ProgramFiles=E.getSourceFiles().map(X=>X.fileName),je}return de}function K(){var we,de,je;if(H.assert(f!==2),t.getProjectVersion){const Ya=t.getProjectVersion();if(Ya){if(v===Ya&&!((we=t.hasChangedAutomaticTypeDirectiveNames)!=null&&we.call(t)))return;v=Ya}}const X=t.getTypeRootsVersion?t.getTypeRootsVersion():0;b!==X&&(T("TypeRoots version has changed; provide new program"),E=void 0,b=X);const it=t.getScriptFileNames().slice(),Ct=t.getCompilationSettings()||gee(),ct=t.hasInvalidatedResolutions||cg,Qt=Lo(t,t.hasInvalidatedLibResolutions)||cg,Li=Lo(t,t.hasChangedAutomaticTypeDirectiveNames),Ui=(de=t.getProjectReferences)==null?void 0:de.call(t);let Sn,du={getSourceFile:Fn,getSourceFileByPath:vc,getCancellationToken:()=>B,getCanonicalFileName:z,useCaseSensitiveFileNames:()=>M,getNewLine:()=>a5(Ct),getDefaultLibFileName:Ya=>t.getDefaultLibFileName(Ya),writeFile:Is,getCurrentDirectory:()=>k,fileExists:Ya=>t.fileExists(Ya),readFile:Ya=>t.readFile&&t.readFile(Ya),getSymlinkCache:Lo(t,t.getSymlinkCache),realpath:Lo(t,t.realpath),directoryExists:Ya=>hg(Ya,t),getDirectories:Ya=>t.getDirectories?t.getDirectories(Ya):[],readDirectory:(Ya,c0,Ul,wl,hd)=>(H.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(Ya,c0,Ul,wl,hd)),onReleaseOldSourceFile:wo,onReleaseParsedCommandLine:as,hasInvalidatedResolutions:ct,hasInvalidatedLibResolutions:Qt,hasChangedAutomaticTypeDirectiveNames:Li,trace:Lo(t,t.trace),resolveModuleNames:Lo(t,t.resolveModuleNames),getModuleResolutionCache:Lo(t,t.getModuleResolutionCache),createHash:Lo(t,t.createHash),resolveTypeReferenceDirectives:Lo(t,t.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Lo(t,t.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Lo(t,t.resolveTypeReferenceDirectiveReferences),resolveLibrary:Lo(t,t.resolveLibrary),useSourceOfProjectReferenceRedirect:Lo(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:wn,jsDocParsingMode:t.jsDocParsingMode};const Ru=du.getSourceFile,{getSourceFileWithCache:pr}=vH(du,Ya=>J0(Ya,k,z),(...Ya)=>Ru.call(du,...Ya));du.getSourceFile=pr,(je=t.setCompilerHost)==null||je.call(t,du);const Xu={useCaseSensitiveFileNames:M,fileExists:Ya=>du.fileExists(Ya),readFile:Ya=>du.readFile(Ya),directoryExists:Ya=>du.directoryExists(Ya),getDirectories:Ya=>du.getDirectories(Ya),realpath:du.realpath,readDirectory:(...Ya)=>du.readDirectory(...Ya),trace:du.trace,getCurrentDirectory:du.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Is},ca=u.getKeyForCompilationSettings(Ct);let Ku=new Set;if(w1e(E,it,Ct,(Ya,c0)=>t.getScriptVersion(c0),Ya=>du.fileExists(Ya),ct,Qt,Li,wn,Ui)){du=void 0,Sn=void 0,Ku=void 0;return}E=SQ({rootNames:it,options:Ct,host:du,oldProgram:E,projectReferences:Ui}),du=void 0,Sn=void 0,Ku=void 0,j.clearCache(),E.getTypeChecker();return;function wn(Ya){const c0=J0(Ya,k,z),Ul=Sn==null?void 0:Sn.get(c0);if(Ul!==void 0)return Ul||void 0;const wl=t.getParsedCommandLine?t.getParsedCommandLine(Ya):Ir(Ya);return(Sn||(Sn=new Map)).set(c0,wl||!1),wl}function Ir(Ya){const c0=Fn(Ya,100);if(c0)return c0.path=J0(Ya,k,z),c0.resolvedPath=c0.path,c0.originalFileName=c0.fileName,UV(c0,Xu,$a(lr(Ya),k),void 0,$a(Ya,k))}function as(Ya,c0,Ul){var wl;t.getParsedCommandLine?(wl=t.onReleaseParsedCommandLine)==null||wl.call(t,Ya,c0,Ul):c0&&wo(c0.sourceFile,Ul)}function wo(Ya,c0){const Ul=u.getKeyForCompilationSettings(c0);u.releaseDocumentWithKey(Ya.resolvedPath,Ul,Ya.scriptKind,Ya.impliedNodeFormat)}function Fn(Ya,c0,Ul,wl){return vc(Ya,J0(Ya,k,z),c0,Ul,wl)}function vc(Ya,c0,Ul,wl,hd){H.assert(du,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const vl=t.getScriptSnapshot(Ya);if(!vl)return;const co=pfe(Ya,t),Ho=t.getScriptVersion(Ya);if(!hd){const id=E&&E.getSourceFileByPath(c0);if(id){if(co===id.scriptKind||Ku.has(id.resolvedPath))return u.updateDocumentWithKey(Ya,c0,t,ca,vl,Ho,co,Ul);u.releaseDocumentWithKey(id.resolvedPath,u.getKeyForCompilationSettings(E.getCompilerOptions()),id.scriptKind,id.impliedNodeFormat),Ku.add(id.resolvedPath)}}return u.acquireDocumentWithKey(Ya,c0,t,ca,vl,Ho,co,Ul)}}function Y(){if(f===2){H.assert(E===void 0);return}return K(),E}function oe(){var we;return(we=t.getPackageJsonAutoImportProvider)==null?void 0:we.call(t)}function se(we,de){const je=E.getTypeChecker(),X=it();if(!X)return!1;for(const ct of we)for(const Qt of ct.references){const Li=Ct(Qt);if(H.assertIsDefined(Li),de.has(Qt)||Z0.isDeclarationOfSymbol(Li,X)){de.add(Qt),Qt.isDefinition=!0;const Ui=yX(Qt,j,Lo(t,t.fileExists));Ui&&de.add(Ui)}else Qt.isDefinition=!1}return!0;function it(){for(const ct of we)for(const Qt of ct.references){if(de.has(Qt)){const Ui=Ct(Qt);return H.assertIsDefined(Ui),je.getSymbolAtLocation(Ui)}const Li=yX(Qt,j,Lo(t,t.fileExists));if(Li&&de.has(Li)){const Ui=Ct(Li);if(Ui)return je.getSymbolAtLocation(Ui)}}}function Ct(ct){const Qt=E.getSourceFile(ct.fileName);if(!Qt)return;const Li=af(Qt,ct.textSpan.start);return Z0.Core.getAdjustedNode(Li,{use:Z0.FindReferencesUse.References})}}function ge(){if(E){const we=u.getKeyForCompilationSettings(E.getCompilerOptions());L(E.getSourceFiles(),de=>u.releaseDocumentWithKey(de.resolvedPath,we,de.scriptKind,de.impliedNodeFormat)),E=void 0}}function ae(){ge(),t=void 0}function Ce(we){return K(),E.getSyntacticDiagnostics(J(we),B).slice()}function ne(we){K();const de=J(we),je=E.getSemanticDiagnostics(de,B);if(!c4(E.getCompilerOptions()))return je.slice();const X=E.getDeclarationDiagnostics(de,B);return[...je,...X]}function ve(we){return K(),Jfe(J(we),E,B)}function Se(){return K(),[...E.getOptionsDiagnostics(B),...E.getGlobalDiagnostics(B)]}function Ne(we,de,je=d4,X){const it={...je,includeCompletionsForModuleExports:je.includeCompletionsForModuleExports||je.includeExternalModuleExports,includeCompletionsWithInsertText:je.includeCompletionsWithInsertText||je.includeInsertTextCompletions};return K(),h9.getCompletionsAtPosition(t,E,T,J(we),de,it,je.triggerCharacter,je.triggerKind,B,X&&dd.getFormatContext(X,t),je.includeSymbol)}function pe(we,de,je,X,it,Ct=d4,ct){return K(),h9.getCompletionEntryDetails(E,T,J(we),de,{name:je,source:it,data:ct},t,X&&dd.getFormatContext(X,t),Ct,B)}function fe(we,de,je,X,it=d4){return K(),h9.getCompletionEntrySymbol(E,T,J(we),de,{name:je,source:X},t,it)}function xe(we,de){K();const je=J(we),X=af(je,de);if(X===je)return;const it=E.getTypeChecker(),Ct=Be(X),ct=aHt(Ct,it);if(!ct||it.isUnknownSymbol(ct)){const du=Ge(je,Ct,de)?it.getTypeAtLocation(Ct):void 0;return du&&{kind:"",kindModifiers:"",textSpan:of(Ct,je),displayParts:it.runWithCancellationToken(B,Ru=>$H(Ru,du,Mk(Ct))),documentation:du.symbol?du.symbol.getDocumentationComment(it):void 0,tags:du.symbol?du.symbol.getJsDocTags(it):void 0}}const{symbolKind:Qt,displayParts:Li,documentation:Ui,tags:Sn}=it.runWithCancellationToken(B,du=>x5.getSymbolDisplayPartsDocumentationAndSymbolKind(du,ct,je,Mk(Ct),Ct));return{kind:Qt,kindModifiers:x5.getSymbolModifiers(it,ct),textSpan:of(Ct,je),displayParts:Li,documentation:Ui,tags:Sn}}function Be(we){return j2(we.parent)&&we.pos===we.parent.pos?we.parent.expression:GP(we.parent)&&we.pos===we.parent.pos||W8(we.parent)&&we.parent.name===we||gg(we.parent)?we.parent:we}function Ge(we,de,je){switch(de.kind){case 80:return!Rhe(de)&&!Ohe(de)&&!q3(de.parent);case 211:case 166:return!m5(we,je);case 110:case 197:case 108:case 202:return!0;case 236:return W8(de);default:return!1}}function Ae(we,de,je,X){return K(),Cw.getDefinitionAtPosition(E,J(we),de,je,X)}function De(we,de){return K(),Cw.getDefinitionAndBoundSpan(E,J(we),de)}function Ke(we,de){return K(),Cw.getTypeDefinitionAtPosition(E.getTypeChecker(),J(we),de)}function Je(we,de){return K(),Z0.getImplementationsAtPosition(E,B,E.getSourceFiles(),J(we),de)}function ft(we,de,je){const X=$o(we);H.assert(je.some(ct=>$o(ct)===X)),K();const it=qi(je,ct=>E.getSourceFile(ct)),Ct=J(we);return JX.getDocumentHighlights(E,B,Ct,de,it)}function Ye(we,de,je,X,it){K();const Ct=J(we),ct=lX(af(Ct,de));if(Hee.nodeIsEligibleForRename(ct))if(at(ct)&&(aE(ct.parent)||H2(ct.parent))&&aB(ct.escapedText)){const{openingElement:Qt,closingElement:Li}=ct.parent.parent;return[Qt,Li].map(Ui=>{const Sn=of(Ui.tagName,Ct);return{fileName:Ct.fileName,textSpan:Sn,...Z0.toContextSpan(Sn,Ct,Ui.parent)}})}else{const Qt=Hm(Ct,it??d4),Li=typeof it=="boolean"?it:it==null?void 0:it.providePrefixAndSuffixTextForRename;return We(ct,de,{findInStrings:je,findInComments:X,providePrefixAndSuffixTextForRename:Li,use:Z0.FindReferencesUse.Rename},(Ui,Sn,du)=>Z0.toRenameLocation(Ui,Sn,du,Li||!1,Qt))}}function Ve(we,de){return K(),We(af(J(we),de),de,{use:Z0.FindReferencesUse.References},Z0.toReferenceEntry)}function We(we,de,je,X){K();const it=je&&je.use===Z0.FindReferencesUse.Rename?E.getSourceFiles().filter(Ct=>!E.isSourceFileDefaultLibrary(Ct)):E.getSourceFiles();return Z0.findReferenceOrRenameEntries(E,B,it,we,de,je,X)}function Gt(we,de){return K(),Z0.findReferencedSymbols(E,B,E.getSourceFiles(),J(we),de)}function Yt(we){return K(),Z0.Core.getReferencesForFileName(we,E,E.getSourceFiles()).map(Z0.toReferenceEntry)}function Ie(we,de,je,X=!1,it=!1){K();const Ct=je?[J(je)]:E.getSourceFiles();return mnt(Ct,E.getTypeChecker(),B,we,de,X,it)}function st(we,de,je){K();const X=J(we),it=t.getCustomTransformers&&t.getCustomTransformers();return K7e(E,X,!!de,B,it,je)}function St(we,de,{triggerReason:je}=d4){K();const X=J(we);return NK.getSignatureHelpItems(E,X,de,je,B)}function It(we){return p.getCurrentSourceFile(we)}function ei(we,de,je){const X=p.getCurrentSourceFile(we),it=af(X,de);if(it===X)return;switch(it.kind){case 211:case 166:case 11:case 97:case 112:case 106:case 108:case 110:case 197:case 80:break;default:return}let Ct=it;for(;;)if(uw(Ct)||$9e(Ct))Ct=Ct.parent;else if(Vhe(Ct))if(Ct.parent.parent.kind===267&&Ct.parent.parent.body===Ct.parent)Ct=Ct.parent.parent.name;else break;else break;return Vc(Ct.getStart(),it.getEnd())}function ht(we,de){const je=p.getCurrentSourceFile(we);return Ime.spanInSourceFileAtLocation(je,de)}function Ut(we){return _nt(p.getCurrentSourceFile(we),B)}function Ni(we){return Dnt(p.getCurrentSourceFile(we),B)}function ji(we,de,je){return K(),(je||"original")==="2020"?Out(E,B,J(we),de):ISe(E.getTypeChecker(),B,J(we),E.getClassifiableNames(),de)}function xn(we,de,je){return K(),(je||"original")==="original"?Ofe(E.getTypeChecker(),B,J(we),E.getClassifiableNames(),de):q8e(E,B,J(we),de)}function Jn(we,de){return RSe(B,p.getCurrentSourceFile(we),de)}function an(we,de){return jfe(B,p.getCurrentSourceFile(we),de)}function Pi(we){const de=p.getCurrentSourceFile(we);return Lpe.collectElements(de,B)}const Ai=new Map(Object.entries({19:20,21:22,23:24,32:30}));Ai.forEach((we,de)=>Ai.set(we.toString(),Number(de)));function Zu(we,de){const je=p.getCurrentSourceFile(we),X=LM(je,de),it=X.getStart(je)===de?Ai.get(X.kind.toString()):void 0,Ct=it&&a0(X.parent,it,je);return Ct?[of(X,je),of(Ct,je)].sort((ct,Qt)=>ct.start-Qt.start):_t}function aa(we,de,je){let X=G0();const it=gK(je),Ct=p.getCurrentSourceFile(we);T("getIndentationAtPosition: getCurrentSourceFile: "+(G0()-X)),X=G0();const ct=dd.SmartIndenter.getIndentation(de,Ct,it);return T("getIndentationAtPosition: computeIndentation : "+(G0()-X)),ct}function yr(we,de,je,X){const it=p.getCurrentSourceFile(we);return dd.formatSelection(de,je,it,dd.getFormatContext(gK(X),t))}function Ba(we,de){return dd.formatDocument(p.getCurrentSourceFile(we),dd.getFormatContext(gK(de),t))}function bt(we,de,je,X){const it=p.getCurrentSourceFile(we),Ct=dd.getFormatContext(gK(X),t);if(!m5(it,de))switch(je){case"{":return dd.formatOnOpeningCurly(de,it,Ct);case"}":return dd.formatOnClosingCurly(de,it,Ct);case";":return dd.formatOnSemicolon(de,it,Ct);case` +`:return dd.formatOnEnter(de,it,Ct)}return[]}function jn(we,de,je,X,it,Ct=d4){K();const ct=J(we),Qt=Vc(de,je),Li=dd.getFormatContext(it,t);return ju(ri(X,Cx,nl),Ui=>(B.throwIfCancellationRequested(),z1.getFixes({errorCode:Ui,sourceFile:ct,span:Qt,program:E,host:t,cancellationToken:B,formatContext:Li,preferences:Ct})))}function Ln(we,de,je,X=d4){K(),H.assert(we.type==="file");const it=J(we.fileName),Ct=dd.getFormatContext(je,t);return z1.getAllFixes({fixId:de,sourceFile:it,program:E,host:t,cancellationToken:B,formatContext:Ct,preferences:X})}function Si(we,de,je=d4){K(),H.assert(we.type==="file");const X=J(we.fileName),it=dd.getFormatContext(de,t),Ct=we.mode??(we.skipDestructiveCodeActions?"SortAndCombine":"All");return Gp.organizeImports(X,it,t,E,je,Ct)}function Dn(we,de,je,X=d4){return VSe(Y(),we,de,t,dd.getFormatContext(je,t),X,j)}function Cn(we,de){const je=typeof we=="string"?de:we;return Ha(je)?Promise.all(je.map(X=>tu(X))):tu(je)}function tu(we){const de=je=>J0(je,k,z);return H.assertEqual(we.type,"install package"),t.installPackage?t.installPackage({fileName:de(we.file),packageName:we.packageName}):Promise.reject("Host does not implement `installPackage`")}function oa(we,de,je,X){const it=X?dd.getFormatContext(X,t).options:void 0;return Yv.getDocCommentTemplateAtPosition(E5(t,it),p.getCurrentSourceFile(we),de,je)}function Da(we,de,je){if(je===60)return!1;const X=p.getCurrentSourceFile(we);if(zk(X,de))return!1;if(eSe(X,de))return je===123;if($he(X,de))return!1;switch(je){case 39:case 34:case 96:return!m5(X,de)}return!0}function ua(we,de){const je=p.getCurrentSourceFile(we),X=td(de,je);if(!X)return;const it=X.kind===32&&aE(X.parent)?X.parent.parent:w7(X)&&r3(X.parent)?X.parent:void 0;if(it&&qt(it))return{newText:``};const Ct=X.kind===32&&V7(X.parent)?X.parent.parent:w7(X)&&K2(X.parent)?X.parent:void 0;if(Ct&&Xt(Ct))return{newText:""}}function Ta(we,de){const je=p.getCurrentSourceFile(we),X=td(de,je);if(!X||X.parent.kind===312)return;const it="[a-zA-Z0-9:\\-\\._$]*";if(K2(X.parent.parent)){const Ct=X.parent.parent.openingFragment,ct=X.parent.parent.closingFragment;if(O8(Ct)||O8(ct))return;const Qt=Ct.getStart(je)+1,Li=ct.getStart(je)+2;return de!==Qt&&de!==Li?void 0:{ranges:[{start:Qt,length:0},{start:Li,length:0}],wordPattern:it}}else{const Ct=Tn(X.parent,pr=>!!(aE(pr)||H2(pr)));if(!Ct)return;H.assert(aE(Ct)||H2(Ct),"tag should be opening or closing element");const ct=Ct.parent.openingElement,Qt=Ct.parent.closingElement,Li=ct.tagName.getStart(je),Ui=ct.tagName.end,Sn=Qt.tagName.getStart(je),du=Qt.tagName.end;return!(Li<=de&&de<=Ui||Sn<=de&&de<=du)||ct.tagName.getText(je)!==Qt.tagName.getText(je)?void 0:{ranges:[{start:Li,length:Ui-Li},{start:Sn,length:du-Sn}],wordPattern:it}}}function Yo(we,de){return{lineStarts:we.getLineStarts(),firstLine:we.getLineAndCharacterOfPosition(de.pos).line,lastLine:we.getLineAndCharacterOfPosition(de.end).line}}function bo(we,de,je){const X=p.getCurrentSourceFile(we),it=[],{lineStarts:Ct,firstLine:ct,lastLine:Qt}=Yo(X,de);let Li=je||!1,Ui=Number.MAX_VALUE;const Sn=new Map,du=new RegExp(/\S/),Ru=hX(X,Ct[ct]),pr=Ru?"{/*":"//";for(let Xu=ct;Xu<=Qt;Xu++){const ca=X.text.substring(Ct[Xu],X.getLineEndOfPosition(Ct[Xu])),Ku=du.exec(ca);Ku&&(Ui=Math.min(Ui,Ku.index),Sn.set(Xu.toString(),Ku.index),ca.substr(Ku.index,pr.length)!==pr&&(Li=je===void 0||je))}for(let Xu=ct;Xu<=Qt;Xu++){if(ct!==Qt&&Ct[Xu]===de.end)continue;const ca=Sn.get(Xu.toString());ca!==void 0&&(Ru?it.push(...Qe(we,{pos:Ct[Xu]+Ui,end:X.getLineEndOfPosition(Ct[Xu])},Li,Ru)):Li?it.push({newText:pr,span:{length:0,start:Ct[Xu]+Ui}}):X.text.substr(Ct[Xu]+ca,pr.length)===pr&&it.push({newText:"",span:{length:pr.length,start:Ct[Xu]+ca}}))}return it}function Qe(we,de,je,X){var it;const Ct=p.getCurrentSourceFile(we),ct=[],{text:Qt}=Ct;let Li=!1,Ui=je||!1;const Sn=[];let{pos:du}=de;const Ru=X!==void 0?X:hX(Ct,du),pr=Ru?"{/*":"/*",Xu=Ru?"*/}":"*/",ca=Ru?"\\{\\/\\*":"\\/\\*",Ku=Ru?"\\*\\/\\}":"\\*\\/";for(;du<=de.end;){const ja=Qt.substr(du,pr.length)===pr?pr.length:0,wn=m5(Ct,du+ja);if(wn)Ru&&(wn.pos--,wn.end++),Sn.push(wn.pos),wn.kind===3&&Sn.push(wn.end),Li=!0,du=wn.end+1;else{const Ir=Qt.substring(du,de.end).search(`(${ca})|(${Ku})`);Ui=je!==void 0?je:Ui||!hSe(Qt,du,Ir===-1?de.end:du+Ir),du=Ir===-1?de.end+1:du+Ir+Xu.length}}if(Ui||!Li){((it=m5(Ct,de.pos))==null?void 0:it.kind)!==2&&Tt(Sn,de.pos,nl),Tt(Sn,de.end,nl);const ja=Sn[0];Qt.substr(ja,pr.length)!==pr&&ct.push({newText:pr,span:{length:0,start:ja}});for(let wn=1;wn0?ja-Xu.length:0,Ir=Qt.substr(wn,Xu.length)===Xu?Xu.length:0;ct.push({newText:"",span:{length:pr.length,start:ja-Ir}})}return ct}function Et(we,de){const je=p.getCurrentSourceFile(we),{firstLine:X,lastLine:it}=Yo(je,de);return X===it&&de.pos!==de.end?Qe(we,de,!0):bo(we,de,!0)}function Mt(we,de){const je=p.getCurrentSourceFile(we),X=[],{pos:it}=de;let{end:Ct}=de;it===Ct&&(Ct+=hX(je,it)?2:1);for(let ct=it;ct<=Ct;ct++){const Qt=m5(je,ct);if(Qt){switch(Qt.kind){case 2:X.push(...bo(we,{end:Qt.end,pos:Qt.pos+1},!1));break;case 3:X.push(...Qe(we,{end:Qt.end,pos:Qt.pos+1},!1))}ct=Qt.end+1}}return X}function qt({openingElement:we,closingElement:de,parent:je}){return!Vv(we.tagName,de.tagName)||r3(je)&&Vv(we.tagName,je.openingElement.tagName)&&qt(je)}function Xt({closingFragment:we,parent:de}){return!!(we.flags&262144)||K2(de)&&Xt(de)}function Pe(we,de,je){const X=p.getCurrentSourceFile(we),it=dd.getRangeOfEnclosingComment(X,de);return it&&(!je||it.kind===3)?qx(it):void 0}function et(we,de){K();const je=J(we);B.throwIfCancellationRequested();const X=je.text,it=[];if(de.length>0&&!Li(je.fileName)){const Ui=ct();let Sn;for(;Sn=Ui.exec(X);){B.throwIfCancellationRequested();const du=3;H.assert(Sn.length===de.length+du);const Ru=Sn[1],pr=Sn.index+Ru.length;if(!m5(je,pr))continue;let Xu;for(let Ku=0;Ku"("+Ct(wn.text)+")").join("|")+")",Xu=/(?:$|\*\/)/.source,ca=/(?:.*?)/.source,Ku="("+pr+ca+")",ja=Ru+Ku+Xu;return new RegExp(ja,"gim")}function Qt(Ui){return Ui>=97&&Ui<=122||Ui>=65&&Ui<=90||Ui>=48&&Ui<=57}function Li(Ui){return Ui.includes("/node_modules/")}}function gt(we,de,je){return K(),Hee.getRenameInfo(E,J(we),de,je||{})}function ii(we,de,je,X,it,Ct){const[ct,Qt]=typeof de=="number"?[de,void 0]:[de.pos,de.end];return{file:we,startPosition:ct,endPosition:Qt,program:Y(),host:t,formatContext:dd.getFormatContext(X,t),cancellationToken:B,preferences:je,triggerReason:it,kind:Ct}}function me(we,de,je){return{file:we,program:Y(),host:t,span:de,preferences:je,cancellationToken:B}}function ni(we,de){return Mpe.getSmartSelectionRange(de,p.getCurrentSourceFile(we))}function vi(we,de,je=d4,X,it,Ct){K();const ct=J(we);return a9.getApplicableRefactors(ii(ct,de,je,d4,X,it),Ct)}function mt(we,de,je=d4){K();const X=J(we),it=H.checkDefined(E.getSourceFiles()),Ct=y7(we),ct=qi(it,Li=>!(E!=null&&E.isSourceFileFromExternalLibrary(X))&&!(X===J(Li.fileName)||Ct===".ts"&&y7(Li.fileName)===".d.ts"||Ct===".d.ts"&&Pa(Ac(Li.fileName),"lib.")&&y7(Li.fileName)===".d.ts")&&Ct===y7(Li.fileName)?Li.fileName:void 0);return{newFileName:A8e(X,E,ii(X,de,je,d4),t),files:ct}}function Ot(we,de,je,X,it,Ct=d4,ct){K();const Qt=J(we);return a9.getEditsForRefactor(ii(Qt,je,Ct,de),X,it,ct)}function Ei(we,de){return de===0?{line:0,character:0}:j.toLineColumnOffset(we,de)}function $i(we,de){K();const je=o9.resolveCallHierarchyDeclaration(E,af(J(we),de));return je&&kfe(je,X=>o9.createCallHierarchyItem(E,X))}function Qi(we,de){K();const je=J(we),X=Ffe(o9.resolveCallHierarchyDeclaration(E,de===0?je:af(je,de)));return X?o9.getIncomingCalls(E,X,B):[]}function on(we,de){K();const je=J(we),X=Ffe(o9.resolveCallHierarchyDeclaration(E,de===0?je:af(je,de)));return X?o9.getOutgoingCalls(E,X):[]}function le(we,de,je=d4){K();const X=J(we);return Spe.provideInlayHints(me(X,de,je))}const te={dispose:ae,cleanupSemanticCache:ge,getSyntacticDiagnostics:Ce,getSemanticDiagnostics:ne,getSuggestionDiagnostics:ve,getCompilerOptionsDiagnostics:Se,getSyntacticClassifications:Jn,getSemanticClassifications:ji,getEncodedSyntacticClassifications:an,getEncodedSemanticClassifications:xn,getCompletionsAtPosition:Ne,getCompletionEntryDetails:pe,getCompletionEntrySymbol:fe,getSignatureHelpItems:St,getQuickInfoAtPosition:xe,getDefinitionAtPosition:Ae,getDefinitionAndBoundSpan:De,getImplementationAtPosition:Je,getTypeDefinitionAtPosition:Ke,getReferencesAtPosition:Ve,findReferences:Gt,getFileReferences:Yt,getDocumentHighlights:ft,getNameOrDottedNameSpan:ei,getBreakpointStatementAtPosition:ht,getNavigateToItems:Ie,getRenameInfo:gt,getSmartSelectionRange:ni,findRenameLocations:Ye,getNavigationBarItems:Ut,getNavigationTree:Ni,getOutliningSpans:Pi,getTodoComments:et,getBraceMatchingAtPosition:Zu,getIndentationAtPosition:aa,getFormattingEditsForRange:yr,getFormattingEditsForDocument:Ba,getFormattingEditsAfterKeystroke:bt,getDocCommentTemplateAtPosition:oa,isValidBraceCompletionAtPosition:Da,getJsxClosingTagAtPosition:ua,getLinkedEditingRangeAtPosition:Ta,getSpanOfEnclosingComment:Pe,getCodeFixesAtPosition:jn,getCombinedCodeFix:Ln,applyCodeActionCommand:Cn,organizeImports:Si,getEditsForFileRename:Dn,getEmitOutput:st,getNonBoundSourceFile:It,getProgram:Y,getCurrentProgram:()=>E,getAutoImportProvider:oe,updateIsDefinitionOfReferencedSymbols:se,getApplicableRefactors:vi,getEditsForRefactor:Ot,getMoveToRefactoringFileSuggestions:mt,toLineColumnOffset:Ei,getSourceMapper:()=>j,clearSourceMapperCache:()=>j.clearCache(),prepareCallHierarchy:$i,provideCallHierarchyIncomingCalls:Qi,provideCallHierarchyOutgoingCalls:on,toggleLineComment:bo,toggleMultilineComment:Qe,commentSelection:Et,uncommentSelection:Mt,provideInlayHints:le,getSupportedCodeFixes:Bme};switch(f){case 0:break;case 1:uBe.forEach(we=>te[we]=()=>{throw new Error(`LanguageService Operation: ${we} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:irt.forEach(we=>te[we]=()=>{throw new Error(`LanguageService Operation: ${we} not allowed in LanguageServiceMode.Syntactic`)});break;default:H.assertNever(f)}return te}function Tme(t){return t.nameTable||nHt(t),t.nameTable}function nHt(t){const u=t.nameTable=new Map;t.forEachChild(function s(d){if(at(d)&&!Ohe(d)&&d.escapedText||Pm(d)&&uHt(d)){const f=oP(d);u.set(f,u.get(f)===void 0?d.pos:-1)}else if(Xr(d)){const f=d.escapedText;u.set(f,u.get(f)===void 0?d.pos:-1)}if(ao(d,s),lm(d))for(const f of d.jsDoc)ao(f,s)})}function uHt(t){return X3(t)||t.parent.kind===283||oHt(t)||Nj(t)}function _K(t){const u=rHt(t);return u&&(ys(u.parent)||W2(u.parent))?u:void 0}function rHt(t){switch(t.kind){case 11:case 15:case 9:if(t.parent.kind===167)return n0e(t.parent.parent)?t.parent.parent:void 0;case 80:return n0e(t.parent)&&(t.parent.parent.kind===210||t.parent.parent.kind===292)&&t.parent.name===t?t.parent:void 0}}function aHt(t,u){const s=_K(t);if(s){const d=u.getContextualType(s.parent),f=d&&_ee(s,u,d,!1);if(f&&f.length===1)return Pn(f)}return u.getSymbolAtLocation(t)}function _ee(t,u,s,d){const f=WH(t.name);if(!f)return _t;if(!s.isUnion()){const E=s.getProperty(f);return E?[E]:_t}const p=qi(s.types,E=>(ys(t.parent)||W2(t.parent))&&u.isTypeInvalidDueToUnionDiscriminant(E,t.parent)?void 0:E.getProperty(f));if(d&&(p.length===0||p.length===s.types.length)){const E=s.getProperty(f);if(E)return[E]}return p.length===0?qi(s.types,E=>E.getProperty(f)):p}function oHt(t){return t&&t.parent&&t.parent.kind===212&&t.parent.argumentExpression===t}function tBe(t){if(c1)return cr(lr($o(c1.getExecutingFilePath())),zO(t));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var iBe,Lme,Nme,Uut,nBe,Pme,Mme,qut,Zut,Yut,Qut,Xut,ert,trt,zme,uBe,irt,sHt=o({"src/services/services.ts"(){rr(),Ent(),Rnt(),s_(),$it(),Hut(),iBe="0.8",Lme=class{constructor(t,u,s){this.pos=u,this.end=s,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=t}assertHasRealPosition(t){H.assert(!pg(this.pos)&&!pg(this.end),t||"Node must have a real position for this operation")}getSourceFile(){return zn(this)}getStart(t,u){return this.assertHasRealPosition(),ek(this,t,u)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(t){return this.assertHasRealPosition(),this.getEnd()-this.getStart(t)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(t){return this.assertHasRealPosition(),this.getStart(t)-this.pos}getFullText(t){return this.assertHasRealPosition(),(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return this.assertHasRealPosition(),t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(t){return this.getChildren(t).length}getChildAt(t,u){return this.getChildren(u)[t]}getChildren(t){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),this._children||(this._children=eHt(this,t))}getFirstToken(t){this.assertHasRealPosition();const u=this.getChildren(t);if(!u.length)return;const s=Le(u,d=>d.kind<316||d.kind>357);return s.kind<166?s:s.getFirstToken(t)}getLastToken(t){this.assertHasRealPosition();const u=this.getChildren(t),s=qu(u);if(s)return s.kind<166?s:s.getLastToken(t)}forEachChild(t,u){return ao(this,t,u)}},Nme=class{constructor(t,u){this.pos=t,this.end=u,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return zn(this)}getStart(t,u){return ek(this,t,u)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(t){return this.getEnd()-this.getStart(t)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(t){return this.getStart(t)-this.pos}getFullText(t){return(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(t){return this.getChildren()[t]}getChildren(){return this.kind===1&&this.jsDoc||_t}getFirstToken(){}getLastToken(){}forEachChild(){}},Uut=class{constructor(t,u){this.id=0,this.mergeId=0,this.flags=t,this.escapedName=u}getFlags(){return this.flags}get name(){return lc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(t){if(!this.documentationComment)if(this.documentationComment=_t,!this.declarations&&qE(this)&&this.links.target&&qE(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const u=this.links.target.links.tupleLabelDeclaration;this.documentationComment=pee([u],t)}else this.documentationComment=pee(this.declarations,t);return this.documentationComment}getContextualDocumentationComment(t,u){if(t){if(Lx(t)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=pee(ti(this.declarations,Lx),u)),S(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(e5(t)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=pee(ti(this.declarations,e5),u)),S(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(u)}getJsDocTags(t){return this.tags===void 0&&(this.tags=Sme(this.declarations,t)),this.tags}getContextualJsDocTags(t,u){if(t){if(Lx(t)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=Sme(ti(this.declarations,Lx),u)),S(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(e5(t)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=Sme(ti(this.declarations,e5),u)),S(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(u)}},nBe=class extends Nme{constructor(t,u,s){super(u,s),this.kind=t}},Pme=class extends Nme{constructor(t,u,s){super(u,s),this.kind=80}get text(){return fu(this)}},Pme.prototype.kind=80,Mme=class extends Nme{constructor(t,u,s){super(u,s),this.kind=81}get text(){return fu(this)}},Mme.prototype.kind=81,qut=class{constructor(t,u){this.checker=t,this.flags=u}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(t){return this.checker.getPropertyOfType(this,t)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Gu(this)&3)}isClass(){return!!(Gu(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Gu(this)&4)return this.checker.getTypeArguments(this)}},Zut=class{constructor(t,u){this.checker=t,this.flags=u}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(t){const u=this.checker.getParameterType(this,t);if(u.isIndexType()&&NP(u.type)){const s=u.type.getConstraint();if(s)return this.checker.getIndexType(s)}return u}getDocumentationComment(){return this.documentationComment||(this.documentationComment=pee(Hy(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=Sme(Hy(this.declaration),this.checker))}},Yut=class extends Lme{constructor(t,u,s){super(t,u,s),this.kind=312}update(t,u){return $ce(this,t,u)}getLineAndCharacterOfPosition(t){return s0(this,t)}getLineStarts(){return $3(this)}getPositionOfLineAndCharacter(t,u,s){return FU($3(this),t,u,this.text,s)}getLineEndOfPosition(t){const{line:u}=this.getLineAndCharacterOfPosition(t),s=this.getLineStarts();let d;u+1>=s.length&&(d=this.getEnd()),d||(d=s[u+1]-1);const f=this.getFullText();return f[d]===` +`&&f[d-1]==="\r"?d-1:d}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const t=wm();return this.forEachChild(f),t;function u(p){const E=d(p);E&&t.add(E,p)}function s(p){let E=t.get(p);return E||t.set(p,E=[]),E}function d(p){const E=TU(p);return E&&(Ps(E)&&Iu(E.expression)?E.expression.name.text:Sc(E)?WH(E):void 0)}function f(p){switch(p.kind){case 262:case 218:case 174:case 173:const E=p,v=d(E);if(v){const k=s(v),T=qu(k);T&&E.parent===T.parent&&E.symbol===T.symbol?E.body&&!T.body&&(k[k.length-1]=E):k.push(E)}ao(p,f);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:u(p),ao(p,f);break;case 169:if(!Yu(p,31))break;case 260:case 208:{const k=p;if(So(k.name)){ao(k.name,f);break}k.initializer&&f(k.initializer)}case 306:case 172:case 171:u(p);break;case 278:const b=p;b.exportClause&&(ep(b.exportClause)?L(b.exportClause.elements,f):f(b.exportClause.name));break;case 272:const B=p.importClause;B&&(B.name&&u(B.name),B.namedBindings&&(B.namedBindings.kind===274?u(B.namedBindings):L(B.namedBindings.elements,f)));break;case 226:Xl(p)!==0&&u(p);default:ao(p,f)}}}},Qut=class{constructor(t,u,s){this.fileName=t,this.text=u,this.skipTrivia=s}getLineAndCharacterOfPosition(t){return s0(this,t)}},Xut=class{constructor(t){this.host=t}getCurrentSourceFile(t){var u,s,d,f,p,E,v,b;const B=this.host.getScriptSnapshot(t);if(!B)throw new Error("Could not find file: '"+t+"'.");const k=pfe(t,this.host),T=this.host.getScriptVersion(t);let M;if(this.currentFileName!==t){const z={languageVersion:99,impliedNodeFormat:bH(J0(t,this.host.getCurrentDirectory(),((d=(s=(u=this.host).getCompilerHost)==null?void 0:s.call(u))==null?void 0:d.getCanonicalFileName)||n5(this.host)),(b=(v=(E=(p=(f=this.host).getCompilerHost)==null?void 0:p.call(f))==null?void 0:E.getModuleResolutionCache)==null?void 0:v.call(E))==null?void 0:b.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Qj(this.host.getCompilationSettings()),jsDocParsingMode:0};M=Eee(t,B,z,T,!0,k)}else if(this.currentFileVersion!==T){const z=B.getChangeRange(this.currentFileScriptSnapshot);M=wme(this.currentSourceFile,B,T,z)}return M&&(this.currentFileVersion=T,this.currentFileName=t,this.currentFileScriptSnapshot=B,this.currentSourceFile=M),this.currentSourceFile}},ert={isCancellationRequested:cg,throwIfCancellationRequested:Is},trt=class{constructor(t){this.cancellationToken=t}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=Gn)==null||t.instant(Gn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new b8}},zme=class{constructor(t,u=20){this.hostCancellationToken=t,this.throttleWaitMilliseconds=u,this.lastCancellationCheckTime=0}isCancellationRequested(){const t=G0();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=Gn)==null||t.instant(Gn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new b8}},uBe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],irt=[...uBe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Xye(iHt())}});function nrt(t,u,s){const d=[];s=Yfe(s,d);const f=Ha(t)?t:[t],p=pH(void 0,void 0,q,s,f,u,!0);return p.diagnostics=Hi(p.diagnostics,d),p}var lHt=o({"src/services/transform.ts"(){rr()}});function cHt(t,u){if(t.isDeclarationFile)return;let s=Ca(t,u);const d=t.getLineAndCharacterOfPosition(u).line;if(t.getLineAndCharacterOfPosition(s.getStart(t)).line>d){const T=td(s.pos,t);if(!T||t.getLineAndCharacterOfPosition(T.getEnd()).line!==d)return;s=T}if(s.flags&33554432)return;return k(s);function f(T,M){const z=Ak(T)?lt(T.modifiers,g1):void 0,j=z?gs(t.text,z.end):T.getStart(t);return Vc(j,(M||T).getEnd())}function p(T,M){return f(T,ib(M,M.parent,t))}function E(T,M){return T&&d===t.getLineAndCharacterOfPosition(T.getStart(t)).line?k(T):k(M)}function v(T,M,z){if(T){const j=T.indexOf(M);if(j>=0){let J=j,K=j+1;for(;J>0&&z(T[J-1]);)J--;for(;K0)return k(Ke.declarations[0])}else return k(De.initializer)}function ae(De){if(De.initializer)return ge(De);if(De.condition)return f(De.condition);if(De.incrementor)return f(De.incrementor)}function Ce(De){const Ke=L(De.elements,Je=>Je.kind!==232?Je:void 0);return Ke?k(Ke):De.parent.kind===208?f(De.parent):M(De.parent)}function ne(De){H.assert(De.kind!==207&&De.kind!==206);const Ke=De.kind===209?De.elements:De.properties,Je=L(Ke,ft=>ft.kind!==232?ft:void 0);return Je?k(Je):f(De.parent.kind===226?De.parent:De)}function ve(De){switch(De.parent.kind){case 266:const Ke=De.parent;return E(td(De.pos,t,De.parent),Ke.members.length?Ke.members[0]:Ke.getLastToken(t));case 263:const Je=De.parent;return E(td(De.pos,t,De.parent),Je.members.length?Je.members[0]:Je.getLastToken(t));case 269:return E(De.parent.parent,De.parent.clauses[0])}return k(De.parent)}function Se(De){switch(De.parent.kind){case 268:if(oD(De.parent.parent)!==1)return;case 266:case 263:return f(De);case 241:if(k2(De.parent))return f(De);case 299:return k(qu(De.parent.statements));case 269:const Ke=De.parent,Je=qu(Ke.clauses);return Je?k(qu(Je.statements)):void 0;case 206:const ft=De.parent;return k(qu(ft.elements)||ft);default:if(p5(De.parent)){const Ye=De.parent;return f(qu(Ye.properties)||Ye)}return k(De.parent)}}function Ne(De){switch(De.parent.kind){case 207:const Ke=De.parent;return f(qu(Ke.elements)||Ke);default:if(p5(De.parent)){const Je=De.parent;return f(qu(Je.elements)||Je)}return k(De.parent)}}function pe(De){return De.parent.kind===246||De.parent.kind===213||De.parent.kind===214?b(De):De.parent.kind===217?B(De):k(De.parent)}function fe(De){switch(De.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return b(De);default:return k(De.parent)}}function xe(De){return Co(De.parent)||De.parent.kind===303||De.parent.kind===169?b(De):k(De.parent)}function Be(De){return De.parent.kind===216?B(De):k(De.parent)}function Ge(De){return De.parent.kind===246?p(De,De.parent.expression):k(De.parent)}function Ae(De){return De.parent.kind===250?B(De):k(De.parent)}}}var dHt=o({"src/services/breakpoints.ts"(){rr()}}),Ime={};h(Ime,{spanInSourceFileAtLocation:()=>cHt});var hHt=o({"src/services/_namespaces/ts.BreakpointResolver.ts"(){dHt()}});function fHt(t){return(A0(t)||Xd(t))&&mh(t)}function DK(t){return(A0(t)||q0(t)||Xd(t))&&na(t.parent)&&t===t.parent.initializer&&at(t.parent.name)&&!!(QD(t.parent)&2)}function urt(t){return la(t)||_c(t)||ed(t)||A0(t)||Wc(t)||Xd(t)||zl(t)||dc(t)||n3(t)||zm(t)||jf(t)}function gw(t){return la(t)||_c(t)&&at(t.name)||ed(t)||Wc(t)||zl(t)||dc(t)||n3(t)||zm(t)||jf(t)||fHt(t)||DK(t)}function rrt(t){return la(t)?t:mh(t)?t.name:DK(t)?t.parent.name:H.checkDefined(t.modifiers&&Le(t.modifiers,art))}function art(t){return t.kind===90}function ort(t,u){const s=rrt(u);return s&&t.getSymbolAtLocation(s)}function mHt(t,u){if(la(u))return{text:u.fileName,pos:0,end:0};if((ed(u)||Wc(u))&&!mh(u)){const f=u.modifiers&&Le(u.modifiers,art);if(f)return{text:"default",pos:f.getStart(),end:f.getEnd()}}if(zl(u)){const f=u.getSourceFile(),p=gs(f.text,iE(u).pos),E=p+6,v=t.getTypeChecker(),b=v.getSymbolAtLocation(u.parent);return{text:`${b?`${v.symbolToString(b,u.parent)} `:""}static {}`,pos:p,end:E}}const s=DK(u)?u.parent.name:H.checkDefined(Za(u),"Expected call hierarchy item to have a name");let d=at(s)?fu(s):Pm(s)?s.text:Ps(s)&&Pm(s.expression)?s.expression.text:void 0;if(d===void 0){const f=t.getTypeChecker(),p=f.getSymbolAtLocation(s);p&&(d=f.symbolToString(p,u))}if(d===void 0){const f=EH();d=GN(p=>f.writeNode(4,u,u.getSourceFile(),p))}return{text:d,pos:s.getStart(),end:s.getEnd()}}function pHt(t){var u,s;if(DK(t))return rE(t.parent.parent.parent.parent)&&at(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 177:case 178:case 174:return t.parent.kind===210?(u=zse(t.parent))==null?void 0:u.getText():(s=Za(t.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(rE(t.parent)&&at(t.parent.parent.name))return t.parent.parent.name.getText()}}function srt(t,u){if(u.body)return u;if(hc(u))return X_(u.parent);if(ed(u)||dc(u)){const s=ort(t,u);return s&&s.valueDeclaration&&$0(s.valueDeclaration)&&s.valueDeclaration.body?s.valueDeclaration:void 0}return u}function lrt(t,u){const s=ort(t,u);let d;if(s&&s.declarations){const f=$r(s.declarations),p=Vt(s.declarations,b=>({file:b.getSourceFile().fileName,pos:b.pos}));f.sort((b,B)=>dh(p[b].file,p[B].file)||p[b].pos-p[B].pos);const E=Vt(f,b=>s.declarations[b]);let v;for(const b of E)gw(b)&&((!v||v.parent!==b.parent||v.end!==b.pos)&&(d=xi(d,b)),v=b)}return d}function Rme(t,u){return zl(u)?u:$0(u)?srt(t,u)??lrt(t,u)??u:lrt(t,u)??u}function crt(t,u){const s=t.getTypeChecker();let d=!1;for(;;){if(gw(u))return Rme(s,u);if(urt(u)){const f=Tn(u,gw);return f&&Rme(s,f)}if(X3(u)){if(gw(u.parent))return Rme(s,u.parent);if(urt(u.parent)){const f=Tn(u.parent,gw);return f&&Rme(s,f)}return na(u.parent)&&u.parent.initializer&&DK(u.parent.initializer)?u.parent.initializer:void 0}if(hc(u))return gw(u.parent)?u.parent:void 0;if(u.kind===126&&zl(u.parent)){u=u.parent;continue}if(na(u)&&u.initializer&&DK(u.initializer))return u.initializer;if(!d){let f=s.getSymbolAtLocation(u);if(f&&(f.flags&2097152&&(f=s.getAliasedSymbol(f)),f.valueDeclaration)){d=!0,u=f.valueDeclaration;continue}}return}}function rBe(t,u){const s=u.getSourceFile(),d=mHt(t,u),f=pHt(u),p=tb(u),E=NM(u),v=Vc(gs(s.text,u.getFullStart(),!1,!0),u.getEnd()),b=Vc(d.pos,d.end);return{file:s.fileName,kind:p,kindModifiers:E,name:d.text,containerName:f,span:v,selectionSpan:b}}function gHt(t){return t!==void 0}function EHt(t){if(t.kind===Z0.EntryKind.Node){const{node:u}=t;if(Mhe(u,!0,!0)||K9e(u,!0,!0)||W9e(u,!0,!0)||G9e(u,!0,!0)||uw(u)||jhe(u)){const s=u.getSourceFile();return{declaration:Tn(u,gw)||s,range:tfe(u,s)}}}}function drt(t){return $s(t.declaration)}function _Ht(t,u){return{from:t,fromSpans:u}}function DHt(t,u){return _Ht(rBe(t,u[0].declaration),Vt(u,s=>qx(s.range)))}function xHt(t,u,s){if(la(u)||_c(u)||zl(u))return[];const d=rrt(u),f=ti(Z0.findReferenceOrRenameEntries(t,s,t.getSourceFiles(),d,0,{use:Z0.FindReferencesUse.References},EHt),gHt);return f?vN(f,drt,p=>DHt(t,p)):[]}function vHt(t,u){function s(f){const p=Dk(f)?f.tag:zh(f)?f.tagName:I0(f)||zl(f)?f:f.expression,E=crt(t,p);if(E){const v=tfe(p,f.getSourceFile());if(Ha(E))for(const b of E)u.push({declaration:b,range:v});else u.push({declaration:E,range:v})}}function d(f){if(f&&!(f.flags&33554432)){if(gw(f)){if(mr(f))for(const p of f.members)p.name&&Ps(p.name)&&d(p.name.expression);return}switch(f.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:s(f);return;case 216:case 234:d(f.expression);return;case 260:case 169:d(f.name),d(f.initializer);return;case 213:s(f),d(f.expression),L(f.arguments,d);return;case 214:s(f),d(f.expression),L(f.arguments,d);return;case 215:s(f),d(f.tag),d(f.template);return;case 286:case 285:s(f),d(f.tagName),d(f.attributes);return;case 170:s(f),d(f.expression);return;case 211:case 212:s(f),ao(f,d);break;case 238:d(f.expression);return}q_(f)||ao(f,d)}}return d}function CHt(t,u){L(t.statements,u)}function bHt(t,u){!Yu(t,128)&&t.body&&rE(t.body)&&L(t.body.statements,u)}function yHt(t,u,s){const d=srt(t,u);d&&(L(d.parameters,s),s(d.body))}function kHt(t,u){u(t.body)}function FHt(t,u){L(t.modifiers,u);const s=B2(t);s&&u(s.expression);for(const d of t.members)Hp(d)&&L(d.modifiers,u),ko(d)?u(d.initializer):hc(d)&&d.body?(L(d.parameters,u),u(d.body)):zl(d)&&u(d)}function AHt(t,u){const s=[],d=vHt(t,s);switch(u.kind){case 312:CHt(u,d);break;case 267:bHt(u,d);break;case 262:case 218:case 219:case 174:case 177:case 178:yHt(t.getTypeChecker(),u,d);break;case 263:case 231:FHt(u,d);break;case 175:kHt(u,d);break;default:H.assertNever(u)}return s}function SHt(t,u){return{to:t,fromSpans:u}}function BHt(t,u){return SHt(rBe(t,u[0].declaration),Vt(u,s=>qx(s.range)))}function wHt(t,u){return u.flags&33554432||n3(u)?[]:vN(AHt(t,u),drt,s=>BHt(t,s))}var THt=o({"src/services/callHierarchy.ts"(){rr()}}),o9={};h(o9,{createCallHierarchyItem:()=>rBe,getIncomingCalls:()=>xHt,getOutgoingCalls:()=>wHt,resolveCallHierarchyDeclaration:()=>crt});var LHt=o({"src/services/_namespaces/ts.CallHierarchy.ts"(){THt()}}),hrt={};h(hrt,{TokenEncodingConsts:()=>Z8e,TokenModifier:()=>Q8e,TokenType:()=>Y8e,getEncodedSemanticClassifications:()=>q8e,getSemanticClassifications:()=>Out});var NHt=o({"src/services/_namespaces/ts.classifier.v2020.ts"(){Hut()}}),aBe={};h(aBe,{v2020:()=>hrt});var PHt=o({"src/services/_namespaces/ts.classifier.ts"(){NHt()}});function Cg(t,u,s){return sBe(t,jk(s),u,void 0,void 0)}function Ro(t,u,s,d,f,p){return sBe(t,jk(s),u,d,jk(f),p)}function oBe(t,u,s,d,f,p){return sBe(t,jk(s),u,d,f&&jk(f),p)}function sBe(t,u,s,d,f,p){return{fixName:t,description:u,changes:s,fixId:d,fixAllDescription:f,commands:p?[p]:void 0}}function Xo(t){for(const u of t.errorCodes)lBe=void 0,Ome.add(String(u),t);if(t.fixIds)for(const u of t.fixIds)H.assert(!jme.has(u)),jme.set(u,t)}function MHt(){return lBe??(lBe=ga(Ome.keys()))}function zHt(t,u){const{errorCodes:s}=t;let d=0;for(const p of u)if(kt(s,p.code)&&d++,d>1)break;const f=d<2;return({fixId:p,fixAllDescription:E,...v})=>f?v:{...v,fixId:p,fixAllDescription:E}}function IHt(t){const u=mrt(t),s=Ome.get(String(t.errorCode));return ju(s,d=>Vt(d.getCodeActions(t),zHt(d,u)))}function RHt(t){return jme.get(Po(t.fixId,Ja)).getAllCodeActions(t)}function Ew(t,u){return{changes:t,commands:u}}function frt(t,u){return{fileName:t,textChanges:u}}function f0(t,u,s){const d=[],f=iu.ChangeTracker.with(t,p=>_w(t,u,E=>s(p,E,d)));return Ew(f,d.length===0?void 0:d)}function _w(t,u,s){for(const d of mrt(t))kt(u,d.code)&&s(d)}function mrt({program:t,sourceFile:u,cancellationToken:s}){return[...t.getSemanticDiagnostics(u,s),...t.getSyntacticDiagnostics(u,s),...Jfe(u,t,s)]}var Ome,jme,lBe,OHt=o({"src/services/codeFixProvider.ts"(){rr(),Ome=wm(),jme=new Map}});function prt(t,u,s){const d=AV(s)?q.createAsExpression(s.expression,q.createKeywordTypeNode(159)):q.createTypeAssertion(q.createKeywordTypeNode(159),s.expression);t.replaceNode(u,s.expression,d)}function grt(t,u){if(!Qn(t))return Tn(Ca(t,u),s=>AV(s)||aFe(s))}var Vme,cBe,jHt=o({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){rr(),rs(),Vme="addConvertToUnknownForNonOverlappingTypes",cBe=[F.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code],Xo({errorCodes:cBe,getCodeActions:function(u){const s=grt(u.sourceFile,u.span.start);if(s===void 0)return;const d=iu.ChangeTracker.with(u,f=>prt(f,u.sourceFile,s));return[Ro(Vme,d,F.Add_unknown_conversion_for_non_overlapping_types,Vme,F.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[Vme],getAllCodeActions:t=>f0(t,cBe,(u,s)=>{const d=grt(s.file,s.start);d&&prt(u,s.file,d)})})}}),VHt=o({"src/services/codefixes/addEmptyExportDeclaration.ts"(){rr(),rs(),Xo({errorCodes:[F.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,F.await_using_statements_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,F.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code],getCodeActions:function(u){const{sourceFile:s}=u,d=iu.ChangeTracker.with(u,f=>{const p=q.createExportDeclaration(void 0,!1,q.createNamedExports([]),void 0);f.insertNodeAtEndOfScope(s,s,p)});return[Cg("addEmptyExportDeclaration",d,F.Add_export_to_make_this_file_into_a_module)]}})}});function Ert(t,u,s,d){const f=s(p=>HHt(p,t.sourceFile,u,d));return Ro(Hme,f,F.Add_async_modifier_to_containing_function,Hme,F.Add_all_missing_async_modifiers)}function HHt(t,u,s,d){if(d&&d.has($s(s)))return;d==null||d.add($s(s));const f=q.replaceModifiers(ll(s,!0),q.createNodeArray(q.createModifiersFromModifierFlags(Rx(s)|1024)));t.replaceNode(u,s,f)}function _rt(t,u){if(!u)return;const s=Ca(t,u.start);return Tn(s,f=>f.getStart(t)Ec(u)?"quit":(q0(f)||dc(f)||A0(f)||ed(f))&&sw(u,of(f,t)))}function KHt(t,u){return({start:s,length:d,relatedInformation:f,code:p})=>UD(s)&&UD(d)&&sw({start:s,length:d},t)&&p===u&&!!f&&Oe(f,E=>E.code===F.Did_you_mean_to_mark_this_function_as_async.code)}var Hme,dBe,WHt=o({"src/services/codefixes/addMissingAsync.ts"(){rr(),rs(),Hme="addMissingAsync",dBe=[F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Type_0_is_not_assignable_to_type_1.code,F.Type_0_is_not_comparable_to_type_1.code],Xo({fixIds:[Hme],errorCodes:dBe,getCodeActions:function(u){const{sourceFile:s,errorCode:d,cancellationToken:f,program:p,span:E}=u,v=Le(p.getTypeChecker().getDiagnostics(s,f),KHt(E,d)),b=v&&v.relatedInformation&&Le(v.relatedInformation,T=>T.code===F.Did_you_mean_to_mark_this_function_as_async.code),B=_rt(s,b);return B?[Ert(u,B,T=>iu.ChangeTracker.with(u,T))]:void 0},getAllCodeActions:t=>{const{sourceFile:u}=t,s=new Set;return f0(t,dBe,(d,f)=>{const p=f.relatedInformation&&Le(f.relatedInformation,b=>b.code===F.Did_you_mean_to_mark_this_function_as_async.code),E=_rt(u,p);return E?Ert(t,E,b=>(b(d),[]),s):void 0})}})}});function Drt(t,u,s,d,f){const p=yfe(t,s);return p&&GHt(t,u,s,d,f)&&Crt(p)?p:void 0}function xrt(t,u,s,d,f,p){const{sourceFile:E,program:v,cancellationToken:b}=t,B=JHt(u,E,b,v,d);if(B){const k=f(T=>{L(B.initializers,({expression:M})=>hBe(T,s,E,d,M,p)),p&&B.needsSecondPassForFixAll&&hBe(T,s,E,d,u,p)});return Cg("addMissingAwaitToInitializer",k,B.initializers.length===1?[F.Add_await_to_initializer_for_0,B.initializers[0].declarationSymbol.name]:F.Add_await_to_initializers)}}function vrt(t,u,s,d,f,p){const E=f(v=>hBe(v,s,t.sourceFile,d,u,p));return Ro(Kme,E,F.Add_await,Kme,F.Fix_all_expressions_possibly_missing_await)}function GHt(t,u,s,d,f){const E=f.getTypeChecker().getDiagnostics(t,d);return Oe(E,({start:v,length:b,relatedInformation:B,code:k})=>UD(v)&&UD(b)&&sw({start:v,length:b},s)&&k===u&&!!B&&Oe(B,T=>T.code===F.Did_you_forget_to_use_await.code))}function JHt(t,u,s,d,f){const p=$Ht(t,f);if(!p)return;let E=p.isCompleteFix,v;for(const b of p.identifiers){const B=f.getSymbolAtLocation(b);if(!B)continue;const k=ur(B.valueDeclaration,na),T=k&&ur(k.name,at),M=Fv(k,243);if(!k||!M||k.type||!k.initializer||M.getSourceFile()!==u||Yu(M,32)||!T||!Crt(k.initializer)){E=!1;continue}const z=d.getSemanticDiagnostics(u,s);if(Z0.Core.eachSymbolReferenceInFile(T,f,u,J=>b!==J&&!UHt(J,z,u,f))){E=!1;continue}(v||(v=[])).push({expression:k.initializer,declarationSymbol:B})}return v&&{initializers:v,needsSecondPassForFixAll:!E}}function $Ht(t,u){if(Iu(t.parent)&&at(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(at(t))return{identifiers:[t],isCompleteFix:!0};if(Xn(t)){let s,d=!0;for(const f of[t.left,t.right]){const p=u.getTypeAtLocation(f);if(u.getPromisedTypeOfPromise(p)){if(!at(f)){d=!1;continue}(s||(s=[])).push(f)}}return s&&{identifiers:s,isCompleteFix:d}}}function UHt(t,u,s,d){const f=Iu(t.parent)?t.parent.name:Xn(t.parent)?t.parent:t,p=Le(u,E=>E.start===f.getStart(s)&&E.start+E.length===f.getEnd());return p&&kt(Wme,p.code)||d.getTypeAtLocation(f).flags&1}function Crt(t){return t.flags&65536||!!Tn(t,u=>u.parent&&q0(u.parent)&&u.parent.body===u||po(u)&&(u.parent.kind===262||u.parent.kind===218||u.parent.kind===219||u.parent.kind===174))}function hBe(t,u,s,d,f,p){if(SV(f.parent)&&!f.parent.awaitModifier){const E=d.getTypeAtLocation(f),v=d.getAsyncIterableType();if(v&&d.isTypeAssignableTo(E,v)){const b=f.parent;t.replaceNode(s,b,q.updateForOfStatement(b,q.createToken(135),b.initializer,b.expression,b.statement));return}}if(Xn(f))for(const E of[f.left,f.right]){if(p&&at(E)){const B=d.getSymbolAtLocation(E);if(B&&p.has(Zo(B)))continue}const v=d.getTypeAtLocation(E),b=d.getPromisedTypeOfPromise(v)?q.createAwaitExpression(E):E;t.replaceNode(s,E,b)}else if(u===fBe&&Iu(f.parent)){if(p&&at(f.parent.expression)){const E=d.getSymbolAtLocation(f.parent.expression);if(E&&p.has(Zo(E)))return}t.replaceNode(s,f.parent.expression,q.createParenthesizedExpression(q.createAwaitExpression(f.parent.expression))),brt(t,f.parent.expression,s)}else if(kt(mBe,u)&&$E(f.parent)){if(p&&at(f)){const E=d.getSymbolAtLocation(f);if(E&&p.has(Zo(E)))return}t.replaceNode(s,f,q.createParenthesizedExpression(q.createAwaitExpression(f))),brt(t,f,s)}else{if(p&&na(f.parent)&&at(f.parent.name)){const E=d.getSymbolAtLocation(f.parent.name);if(E&&!r0(p,Zo(E)))return}t.replaceNode(s,f,q.createAwaitExpression(f))}}function brt(t,u,s){const d=td(u.pos,s);d&&TX(d.end,d.parent,s)&&t.insertText(s,u.getStart(s),";")}var Kme,fBe,mBe,Wme,qHt=o({"src/services/codefixes/addMissingAwait.ts"(){rr(),rs(),Kme="addMissingAwait",fBe=F.Property_0_does_not_exist_on_type_1.code,mBe=[F.This_expression_is_not_callable.code,F.This_expression_is_not_constructable.code],Wme=[F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.Operator_0_cannot_be_applied_to_type_1.code,F.Operator_0_cannot_be_applied_to_types_1_and_2.code,F.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,F.This_condition_will_always_return_true_since_this_0_is_always_defined.code,F.Type_0_is_not_an_array_type.code,F.Type_0_is_not_an_array_type_or_a_string_type.code,F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,F.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,fBe,...mBe],Xo({fixIds:[Kme],errorCodes:Wme,getCodeActions:function(u){const{sourceFile:s,errorCode:d,span:f,cancellationToken:p,program:E}=u,v=Drt(s,d,f,p,E);if(!v)return;const b=u.program.getTypeChecker(),B=k=>iu.ChangeTracker.with(u,k);return Dr([xrt(u,v,d,b,B),vrt(u,v,d,b,B)])},getAllCodeActions:t=>{const{sourceFile:u,program:s,cancellationToken:d}=t,f=t.program.getTypeChecker(),p=new Set;return f0(t,Wme,(E,v)=>{const b=Drt(u,v.code,v,d,s);if(!b)return;const B=k=>(k(E),[]);return xrt(t,b,v.code,f,B,p)||vrt(t,b,v.code,f,B,p)})}})}});function yrt(t,u,s,d,f){const p=Ca(u,s),E=Tn(p,B=>M8(B.parent)?B.parent.initializer===B:ZHt(B)?!1:"quit");if(E)return Gme(t,E,u,f);const v=p.parent;if(Xn(v)&&v.operatorToken.kind===64&&Od(v.parent))return Gme(t,p,u,f);if(Dh(v)){const B=d.getTypeChecker();return ye(v.elements,k=>YHt(k,B))?Gme(t,v,u,f):void 0}const b=Tn(p,B=>Od(B.parent)?!0:QHt(B)?!1:"quit");if(b){const B=d.getTypeChecker();return krt(b,B)?Gme(t,b,u,f):void 0}}function Gme(t,u,s,d){(!d||r0(d,u))&&t.insertModifierBefore(s,87,u)}function ZHt(t){switch(t.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function YHt(t,u){const s=at(t)?t:ld(t,!0)&&at(t.left)?t.left:void 0;return!!s&&!u.getSymbolAtLocation(s)}function QHt(t){switch(t.kind){case 80:case 226:case 28:return!0;default:return!1}}function krt(t,u){return Xn(t)?t.operatorToken.kind===28?ye([t.left,t.right],s=>krt(s,u)):t.operatorToken.kind===64&&at(t.left)&&!u.getSymbolAtLocation(t.left):!1}var Jme,pBe,XHt=o({"src/services/codefixes/addMissingConst.ts"(){rr(),rs(),Jme="addMissingConst",pBe=[F.Cannot_find_name_0.code,F.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Xo({errorCodes:pBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>yrt(d,u.sourceFile,u.span.start,u.program));if(s.length>0)return[Ro(Jme,s,F.Add_const_to_unresolved_variable,Jme,F.Add_const_to_all_unresolved_variables)]},fixIds:[Jme],getAllCodeActions:t=>{const u=new Set;return f0(t,pBe,(s,d)=>yrt(s,d.file,d.start,t.program,u))}})}});function Frt(t,u,s,d){const f=Ca(u,s);if(!at(f))return;const p=f.parent;p.kind===172&&(!d||r0(d,p))&&t.insertModifierBefore(u,138,p)}var $me,gBe,eKt=o({"src/services/codefixes/addMissingDeclareProperty.ts"(){rr(),rs(),$me="addMissingDeclareProperty",gBe=[F.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code],Xo({errorCodes:gBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Frt(d,u.sourceFile,u.span.start));if(s.length>0)return[Ro($me,s,F.Prefix_with_declare,$me,F.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[$me],getAllCodeActions:t=>{const u=new Set;return f0(t,gBe,(s,d)=>Frt(s,d.file,d.start,u))}})}});function Art(t,u,s){const d=Ca(u,s),f=Tn(d,g1);H.assert(!!f,"Expected position to be owned by a decorator.");const p=q.createCallExpression(f.expression,void 0,void 0);t.replaceNode(u,f.expression,p)}var Ume,EBe,tKt=o({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){rr(),rs(),Ume="addMissingInvocationForDecorator",EBe=[F._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Xo({errorCodes:EBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Art(d,u.sourceFile,u.span.start));return[Ro(Ume,s,F.Call_decorator_expression,Ume,F.Add_to_all_uncalled_decorators)]},fixIds:[Ume],getAllCodeActions:t=>f0(t,EBe,(u,s)=>Art(u,s.file,s.start))})}});function Srt(t,u,s){const d=Ca(u,s),f=d.parent;if(!io(f))return H.fail("Tried to add a parameter name to a non-parameter: "+H.formatSyntaxKind(d.kind));const p=f.parent.parameters.indexOf(f);H.assert(!f.type,"Tried to add a parameter name to a parameter that already had one."),H.assert(p>-1,"Parameter not found in parent parameter list.");let E=f.name.getEnd(),v=q.createTypeReferenceNode(f.name,void 0),b=Brt(u,f);for(;b;)v=q.createArrayTypeNode(v),E=b.getEnd(),b=Brt(u,b);const B=q.createParameterDeclaration(f.modifiers,f.dotDotDotToken,"arg"+p,f.questionToken,f.dotDotDotToken&&!oY(v)?q.createArrayTypeNode(v):v,f.initializer);t.replaceRange(u,s4(f.getStart(u),E),B)}function Brt(t,u){const s=ib(u.name,u.parent,t);if(s&&s.kind===23&&_k(s.parent)&&io(s.parent.parent))return s.parent.parent}var qme,_Be,iKt=o({"src/services/codefixes/addNameToNamelessParameter.ts"(){rr(),rs(),qme="addNameToNamelessParameter",_Be=[F.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Xo({errorCodes:_Be,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Srt(d,u.sourceFile,u.span.start));return[Ro(qme,s,F.Add_parameter_name,qme,F.Add_names_to_all_parameters_without_names)]},fixIds:[qme],getAllCodeActions:t=>f0(t,_Be,(u,s)=>Srt(u,s.file,s.start))})}});function nKt(t,u,s){var d,f;const p=wrt(yfe(t,u),s);if(!p)return _t;const{source:E,target:v}=p,b=uKt(E,v,s)?s.getTypeAtLocation(v.expression):s.getTypeAtLocation(v);return(f=(d=b.symbol)==null?void 0:d.declarations)!=null&&f.some(B=>zn(B).fileName.match(/\.d\.ts$/))?_t:s.getExactOptionalProperties(b)}function uKt(t,u,s){return Iu(u)&&!!s.getExactOptionalProperties(s.getTypeAtLocation(u.expression)).length&&s.getTypeAtLocation(t)===s.getUndefinedType()}function wrt(t,u){var s;if(t){if(Xn(t.parent)&&t.parent.operatorToken.kind===64)return{source:t.parent.right,target:t.parent.left};if(na(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(Mo(t.parent)){const d=u.getSymbolAtLocation(t.parent.expression);if(!(d!=null&&d.valueDeclaration)||!a7(d.valueDeclaration.kind)||!Wt(t))return;const f=t.parent.arguments.indexOf(t);if(f===-1)return;const p=d.valueDeclaration.parameters[f].name;if(at(p))return{source:t,target:p}}else if(Jc(t.parent)&&at(t.parent.name)||pm(t.parent)){const d=wrt(t.parent.parent,u);if(!d)return;const f=u.getPropertyOfType(u.getTypeAtLocation(d.target),t.parent.name.text),p=(s=f==null?void 0:f.declarations)==null?void 0:s[0];return p?{source:Jc(t.parent)?t.parent.initializer:t.parent.name,target:p}:void 0}}else return}function rKt(t,u){for(const s of u){const d=s.valueDeclaration;if(d&&(Mm(d)||ko(d))&&d.type){const f=q.createUnionTypeNode([...d.type.kind===192?d.type.types:[d.type],q.createTypeReferenceNode("undefined")]);t.replaceNode(d.getSourceFile(),d.type,f)}}}var DBe,Trt,aKt=o({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){rr(),rs(),DBe="addOptionalPropertyUndefined",Trt=[F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code],Xo({errorCodes:Trt,getCodeActions(t){const u=t.program.getTypeChecker(),s=nKt(t.sourceFile,t.span,u);if(!s.length)return;const d=iu.ChangeTracker.with(t,f=>rKt(f,s));return[Cg(DBe,d,F.Add_undefined_to_optional_property_type)]},fixIds:[DBe]})}});function Lrt(t,u){const s=Ca(t,u);return ur(io(s.parent)?s.parent.parent:s.parent,Nrt)}function Nrt(t){return oKt(t)&&Prt(t)}function Prt(t){return $0(t)?t.parameters.some(Prt)||!t.type&&!!VO(t):!t.type&&!!vv(t)}function Mrt(t,u,s){if($0(s)&&(VO(s)||s.parameters.some(d=>!!vv(d)))){if(!s.typeParameters){const f=Oq(s);f.length&&t.insertTypeParameters(u,s,f)}const d=q0(s)&&!a0(s,21,u);d&&t.insertNodeBefore(u,Pn(s.parameters),q.createToken(21));for(const f of s.parameters)if(!f.type){const p=vv(f);p&&t.tryInsertTypeAnnotation(u,f,yt(p,ob,Qr))}if(d&&t.insertNodeAfter(u,Cr(s.parameters),q.createToken(22)),!s.type){const f=VO(s);f&&t.tryInsertTypeAnnotation(u,s,yt(f,ob,Qr))}}else{const d=H.checkDefined(vv(s),"A JSDocType for this declaration should exist");H.assert(!s.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(u,s,yt(d,ob,Qr))}}function oKt(t){return $0(t)||t.kind===260||t.kind===171||t.kind===172}function ob(t){switch(t.kind){case 319:case 320:return q.createTypeReferenceNode("any",_t);case 323:return lKt(t);case 322:return ob(t.type);case 321:return cKt(t);case 325:return dKt(t);case 324:return hKt(t);case 183:return mKt(t);case 329:return sKt(t);default:const u=rn(t,ob,Dg);return Zn(u,1),u}}function sKt(t){const u=q.createTypeLiteralNode(Vt(t.jsDocPropertyTags,s=>q.createPropertySignature(void 0,at(s.name)?s.name:s.name.right,aV(s)?q.createToken(58):void 0,s.typeExpression&&yt(s.typeExpression.type,ob,Qr)||q.createKeywordTypeNode(133))));return Zn(u,1),u}function lKt(t){return q.createUnionTypeNode([yt(t.type,ob,Qr),q.createTypeReferenceNode("undefined",_t)])}function cKt(t){return q.createUnionTypeNode([yt(t.type,ob,Qr),q.createTypeReferenceNode("null",_t)])}function dKt(t){return q.createArrayTypeNode(yt(t.type,ob,Qr))}function hKt(t){return q.createFunctionTypeNode(_t,t.parameters.map(fKt),t.type??q.createKeywordTypeNode(133))}function fKt(t){const u=t.parent.parameters.indexOf(t),s=t.type.kind===325&&u===t.parent.parameters.length-1,d=t.name||(s?"rest":"arg"+u),f=s?q.createToken(26):t.dotDotDotToken;return q.createParameterDeclaration(t.modifiers,f,d,t.questionToken,yt(t.type,ob,Qr),t.initializer)}function mKt(t){let u=t.typeName,s=t.typeArguments;if(at(t.typeName)){if(xq(t))return pKt(t);let d=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":d=d.toLowerCase();break;case"array":case"date":case"promise":d=d[0].toUpperCase()+d.slice(1);break}u=q.createIdentifier(d),(d==="Array"||d==="Promise")&&!t.typeArguments?s=q.createNodeArray([q.createTypeReferenceNode("any",_t)]):s=kn(t.typeArguments,ob,Qr)}return q.createTypeReferenceNode(u,s)}function pKt(t){const u=q.createParameterDeclaration(void 0,void 0,t.typeArguments[0].kind===150?"n":"s",void 0,q.createTypeReferenceNode(t.typeArguments[0].kind===150?"number":"string",[]),void 0),s=q.createTypeLiteralNode([q.createIndexSignature(void 0,[u],t.typeArguments[1])]);return Zn(s,1),s}var Zme,xBe,gKt=o({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){rr(),rs(),Zme="annotateWithTypeFromJSDoc",xBe=[F.JSDoc_types_may_be_moved_to_TypeScript_types.code],Xo({errorCodes:xBe,getCodeActions(t){const u=Lrt(t.sourceFile,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,d=>Mrt(d,t.sourceFile,u));return[Ro(Zme,s,F.Annotate_with_type_from_JSDoc,Zme,F.Annotate_everything_with_types_from_JSDoc)]},fixIds:[Zme],getAllCodeActions:t=>f0(t,xBe,(u,s)=>{const d=Lrt(s.file,s.start);d&&Mrt(u,s.file,d)})})}});function zrt(t,u,s,d,f,p){const E=d.getSymbolAtLocation(Ca(u,s));if(!E||!E.valueDeclaration||!(E.flags&19))return;const v=E.valueDeclaration;if(ed(v)||A0(v))t.replaceNode(u,v,k(v));else if(na(v)){const T=B(v);if(!T)return;const M=v.parent.parent;Ad(v.parent)&&v.parent.declarations.length>1?(t.delete(u,v),t.insertNodeAfter(u,M,T)):t.replaceNode(u,M,T)}function b(T){const M=[];return T.exports&&T.exports.forEach(J=>{if(J.name==="prototype"&&J.declarations){const K=J.declarations[0];if(J.declarations.length===1&&Iu(K)&&Xn(K.parent)&&K.parent.operatorToken.kind===64&&ys(K.parent.right)){const Y=K.parent.right;j(Y.symbol,void 0,M)}}else j(J,[q.createToken(126)],M)}),T.members&&T.members.forEach((J,K)=>{var Y,oe,se,ge;if(K==="constructor"&&J.valueDeclaration){const ae=(ge=(se=(oe=(Y=T.exports)==null?void 0:Y.get("prototype"))==null?void 0:oe.declarations)==null?void 0:se[0])==null?void 0:ge.parent;ae&&Xn(ae)&&ys(ae.right)&&Oe(ae.right.properties,Qme)||t.delete(u,J.valueDeclaration.parent);return}j(J,void 0,M)}),M;function z(J,K){return I0(J)?Iu(J)&&Qme(J)?!0:Co(K):ye(J.properties,Y=>!!(dc(Y)||NU(Y)||Jc(Y)&&A0(Y.initializer)&&Y.name||Qme(Y)))}function j(J,K,Y){if(!(J.flags&8192)&&!(J.flags&4096))return;const oe=J.valueDeclaration,se=oe.parent,ge=se.right;if(!z(oe,ge)||Oe(Y,Se=>{const Ne=Za(Se);return!!(Ne&&at(Ne)&&fu(Ne)===lc(J))}))return;const ae=se.parent&&se.parent.kind===244?se.parent:se;if(t.delete(u,ae),!ge){Y.push(q.createPropertyDeclaration(K,J.name,void 0,void 0,void 0));return}if(I0(oe)&&(A0(ge)||q0(ge))){const Se=Hm(u,f),Ne=EKt(oe,p,Se);Ne&&Ce(Y,ge,Ne);return}else if(ys(ge)){L(ge.properties,Se=>{(dc(Se)||NU(Se))&&Y.push(Se),Jc(Se)&&A0(Se.initializer)&&Ce(Y,Se.initializer,Se.name),Qme(Se)});return}else{if(gh(u)||!Iu(oe))return;const Se=q.createPropertyDeclaration(K,oe.name,void 0,void 0,ge);cw(se.parent,Se,u),Y.push(Se);return}function Ce(Se,Ne,pe){return A0(Ne)?ne(Se,Ne,pe):ve(Se,Ne,pe)}function ne(Se,Ne,pe){const fe=Hi(K,Yme(Ne,134)),xe=q.createMethodDeclaration(fe,void 0,pe,void 0,void 0,Ne.parameters,void 0,Ne.body);cw(se,xe,u),Se.push(xe)}function ve(Se,Ne,pe){const fe=Ne.body;let xe;fe.kind===241?xe=fe:xe=q.createBlock([q.createReturnStatement(fe)]);const Be=Hi(K,Yme(Ne,134)),Ge=q.createMethodDeclaration(Be,void 0,pe,void 0,void 0,Ne.parameters,void 0,xe);cw(se,Ge,u),Se.push(Ge)}}}function B(T){const M=T.initializer;if(!M||!A0(M)||!at(T.name))return;const z=b(T.symbol);M.body&&z.unshift(q.createConstructorDeclaration(void 0,M.parameters,M.body));const j=Yme(T.parent.parent,95);return q.createClassDeclaration(j,T.name,void 0,void 0,z)}function k(T){const M=b(E);T.body&&M.unshift(q.createConstructorDeclaration(void 0,T.parameters,T.body));const z=Yme(T,95);return q.createClassDeclaration(z,T.name,void 0,void 0,M)}}function Yme(t,u){return Hp(t)?ti(t.modifiers,s=>s.kind===u):void 0}function Qme(t){return t.name?!!(at(t.name)&&t.name.text==="constructor"):!1}function EKt(t,u,s){if(Iu(t))return t.name;const d=t.argumentExpression;if(Of(d))return d;if(t0(d))return Lm(d.text,Os(u))?q.createIdentifier(d.text):T7(d)?q.createStringLiteral(d.text,s===0):d}var Xme,vBe,_Kt=o({"src/services/codefixes/convertFunctionToEs6Class.ts"(){rr(),rs(),Xme="convertFunctionToEs6Class",vBe=[F.This_constructor_function_may_be_converted_to_a_class_declaration.code],Xo({errorCodes:vBe,getCodeActions(t){const u=iu.ChangeTracker.with(t,s=>zrt(s,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[Ro(Xme,u,F.Convert_function_to_an_ES2015_class,Xme,F.Convert_all_constructor_functions_to_classes)]},fixIds:[Xme],getAllCodeActions:t=>f0(t,vBe,(u,s)=>zrt(u,s.file,s.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()))})}});function Irt(t,u,s,d){const f=Ca(u,s);let p;if(at(f)&&na(f.parent)&&f.parent.initializer&&$0(f.parent.initializer)?p=f.parent.initializer:p=ur(Nm(Ca(u,s)),qfe),!p)return;const E=new Map,v=Qn(p),b=xKt(p,d),B=vKt(p,d,E);if(!$fe(B,d))return;const k=B.body&&po(B.body)?DKt(B.body,d):_t,T={checker:d,synthNamesMap:E,setOfExpressionsToReturn:b,isInJSFile:v};if(!k.length)return;const M=gs(u.text,iE(p).pos);t.insertModifierAt(u,M,134,{suffix:" "});for(const z of k)if(ao(z,function j(J){if(Mo(J)){const K=Dw(J,J,T,!1);if(s9())return!0;t.replaceNodeWithNodes(u,z,K)}else if(!Co(J)&&(ao(J,j),s9()))return!0}),s9())return}function DKt(t,u){const s=[];return y2(t,d=>{UX(d,u)&&s.push(d)}),s}function xKt(t,u){if(!t.body)return new Set;const s=new Set;return ao(t.body,function d(f){xK(f,u,"then")?(s.add($s(f)),L(f.arguments,d)):xK(f,u,"catch")||xK(f,u,"finally")?(s.add($s(f)),ao(f,d)):Ort(f,u)?s.add($s(f)):ao(f,d)}),s}function xK(t,u,s){if(!Mo(t))return!1;const f=NH(t,s)&&u.getTypeAtLocation(t);return!!(f&&u.getPromisedTypeOfPromise(f))}function Rrt(t,u){return(Gu(t)&4)!==0&&t.target===u}function e4e(t,u,s){if(t.expression.name.escapedText==="finally")return;const d=s.getTypeAtLocation(t.expression.expression);if(Rrt(d,s.getPromiseType())||Rrt(d,s.getPromiseLikeType()))if(t.expression.name.escapedText==="then"){if(u===qD(t.arguments,0))return qD(t.typeArguments,0);if(u===qD(t.arguments,1))return qD(t.typeArguments,1)}else return qD(t.typeArguments,0)}function Ort(t,u){return Wt(t)?!!u.getPromisedTypeOfPromise(u.getTypeAtLocation(t)):!1}function vKt(t,u,s){const d=new Map,f=wm();return ao(t,function p(E){if(!at(E)){ao(E,p);return}const v=u.getSymbolAtLocation(E);if(v){const b=u.getTypeAtLocation(E),B=Grt(b,u),k=Zo(v).toString();if(B&&!io(E.parent)&&!$0(E.parent)&&!s.has(k)){const T=Ki(B.parameters),M=(T==null?void 0:T.valueDeclaration)&&io(T.valueDeclaration)&&ur(T.valueDeclaration.name,at)||q.createUniqueName("result",16),z=jrt(M,f);s.set(k,z),f.add(M.text,v)}else if(E.parent&&(io(E.parent)||na(E.parent)||js(E.parent))){const T=E.text,M=f.get(T);if(M&&M.some(z=>z!==v)){const z=jrt(E,f);d.set(k,z.identifier),s.set(k,z),f.add(T,v)}else{const z=ll(E);s.set(k,$M(z)),f.add(T,v)}}}}),UH(t,!0,p=>{if(js(p)&&at(p.name)&&Rp(p.parent)){const E=u.getSymbolAtLocation(p.name),v=E&&d.get(String(Zo(E)));if(v&&v.text!==(p.name||p.propertyName).getText())return q.createBindingElement(p.dotDotDotToken,p.propertyName||p.name,v,p.initializer)}else if(at(p)){const E=u.getSymbolAtLocation(p),v=E&&d.get(String(Zo(E)));if(v)return q.createIdentifier(v.text)}})}function jrt(t,u){const s=(u.get(t.text)||_t).length,d=s===0?t:q.createIdentifier(t.text+"_"+s);return $M(d)}function s9(){return!xee}function Zv(){return xee=!1,_t}function Dw(t,u,s,d,f){if(xK(u,s.checker,"then"))return yKt(u,qD(u.arguments,0),qD(u.arguments,1),s,d,f);if(xK(u,s.checker,"catch"))return Krt(u,qD(u.arguments,0),s,d,f);if(xK(u,s.checker,"finally"))return bKt(u,qD(u.arguments,0),s,d,f);if(Iu(u))return Dw(t,u.expression,s,d,f);const p=s.checker.getTypeAtLocation(u);return p&&s.checker.getPromisedTypeOfPromise(p)?(H.assertNode(Wl(u).parent,Iu),kKt(t,u,s,d,f)):Zv()}function t4e({checker:t},u){if(u.kind===106)return!0;if(at(u)&&!al(u)&&fu(u)==="undefined"){const s=t.getSymbolAtLocation(u);return!s||t.isUndefinedSymbol(s)}return!1}function CKt(t){const u=q.createUniqueName(t.identifier.text,16);return $M(u)}function Vrt(t,u,s){let d;return s&&!CK(t,u)&&(vK(s)?(d=s,u.synthNamesMap.forEach((f,p)=>{if(f.identifier.text===s.identifier.text){const E=CKt(s);u.synthNamesMap.set(p,E)}})):d=$M(q.createUniqueName("result",16),s.types),kBe(d)),d}function Hrt(t,u,s,d,f){const p=[];let E;if(d&&!CK(t,u)){E=ll(kBe(d));const v=d.types,b=u.checker.getUnionType(v,2),B=u.isInJSFile?void 0:u.checker.typeToTypeNode(b,void 0,void 0),k=[q.createVariableDeclaration(E,void 0,B)],T=q.createVariableStatement(void 0,q.createVariableDeclarationList(k,1));p.push(T)}return p.push(s),f&&E&&SKt(f)&&p.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ll(qrt(f)),void 0,void 0,E)],2))),p}function bKt(t,u,s,d,f){if(!u||t4e(s,u))return Dw(t,t.expression.expression,s,d,f);const p=Vrt(t,s,f),E=Dw(t,t.expression.expression,s,!0,p);if(s9())return Zv();const v=bBe(u,d,void 0,void 0,t,s);if(s9())return Zv();const b=q.createBlock(E),B=q.createBlock(v),k=q.createTryStatement(b,void 0,B);return Hrt(t,s,k,p,f)}function Krt(t,u,s,d,f){if(!u||t4e(s,u))return Dw(t,t.expression.expression,s,d,f);const p=$rt(u,s),E=Vrt(t,s,f),v=Dw(t,t.expression.expression,s,!0,E);if(s9())return Zv();const b=bBe(u,d,E,p,t,s);if(s9())return Zv();const B=q.createBlock(v),k=q.createCatchClause(p&&ll(Dee(p)),q.createBlock(b)),T=q.createTryStatement(B,k,void 0);return Hrt(t,s,T,E,f)}function yKt(t,u,s,d,f,p){if(!u||t4e(d,u))return Krt(t,s,d,f,p);if(s&&!t4e(d,s))return Zv();const E=$rt(u,d),v=Dw(t.expression.expression,t.expression.expression,d,!0,E);if(s9())return Zv();const b=bBe(u,f,p,E,t,d);return s9()?Zv():Hi(v,b)}function kKt(t,u,s,d,f){if(CK(t,s)){let p=ll(u);return d&&(p=q.createAwaitExpression(p)),[q.createReturnStatement(p)]}return i4e(f,q.createAwaitExpression(u),void 0)}function i4e(t,u,s){return!t||Urt(t)?[q.createExpressionStatement(u)]:vK(t)&&t.hasBeenDeclared?[q.createExpressionStatement(q.createAssignment(ll(yBe(t)),u))]:[q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ll(Dee(t)),void 0,s,u)],2))]}function CBe(t,u){if(u&&t){const s=q.createUniqueName("result",16);return[...i4e($M(s),t,u),q.createReturnStatement(s)]}return[q.createReturnStatement(t)]}function bBe(t,u,s,d,f,p){var E;switch(t.kind){case 106:break;case 211:case 80:if(!d)break;const v=q.createCallExpression(ll(t),void 0,vK(d)?[yBe(d)]:[]);if(CK(f,p))return CBe(v,e4e(f,t,p.checker));const b=p.checker.getTypeAtLocation(t),B=p.checker.getSignaturesOfType(b,0);if(!B.length)return Zv();const k=B[0].getReturnType(),T=i4e(s,q.createAwaitExpression(v),e4e(f,t,p.checker));return s&&s.types.push(p.checker.getAwaitedType(k)||k),T;case 218:case 219:{const M=t.body,z=(E=Grt(p.checker.getTypeAtLocation(t),p.checker))==null?void 0:E.getReturnType();if(po(M)){let j=[],J=!1;for(const K of M.statements)if(Op(K))if(J=!0,UX(K,p.checker))j=j.concat(Jrt(p,K,u,s));else{const Y=z&&K.expression?Wrt(p.checker,z,K.expression):K.expression;j.push(...CBe(Y,e4e(f,t,p.checker)))}else{if(u&&y2(K,J3))return Zv();j.push(K)}return CK(f,p)?j.map(K=>ll(K)):FKt(j,s,p,J)}else{const j=Ufe(M,p.checker)?Jrt(p,q.createReturnStatement(M),u,s):_t;if(j.length>0)return j;if(z){const J=Wrt(p.checker,z,M);if(CK(f,p))return CBe(J,e4e(f,t,p.checker));{const K=i4e(s,J,void 0);return s&&s.types.push(p.checker.getAwaitedType(z)||z),K}}else return Zv()}}default:return Zv()}return _t}function Wrt(t,u,s){const d=ll(s);return t.getPromisedTypeOfPromise(u)?q.createAwaitExpression(d):d}function Grt(t,u){const s=u.getSignaturesOfType(t,0);return qu(s)}function FKt(t,u,s,d){const f=[];for(const p of t)if(Op(p)){if(p.expression){const E=Ort(p.expression,s.checker)?q.createAwaitExpression(p.expression):p.expression;u===void 0?f.push(q.createExpressionStatement(E)):vK(u)&&u.hasBeenDeclared?f.push(q.createExpressionStatement(q.createAssignment(yBe(u),E))):f.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(Dee(u),void 0,void 0,E)],2)))}}else f.push(ll(p));return!d&&u!==void 0&&f.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(Dee(u),void 0,void 0,q.createIdentifier("undefined"))],2))),f}function Jrt(t,u,s,d){let f=[];return ao(u,function p(E){if(Mo(E)){const v=Dw(E,E,t,s,d);if(f=f.concat(v),f.length>0)return}else Co(E)||ao(E,p)}),f}function $rt(t,u){const s=[];let d;if($0(t)){if(t.parameters.length>0){const b=t.parameters[0].name;d=f(b)}}else at(t)?d=p(t):Iu(t)&&at(t.name)&&(d=p(t.name));if(!d||"identifier"in d&&d.identifier.text==="undefined")return;return d;function f(b){if(at(b))return p(b);const B=ju(b.elements,k=>Fd(k)?[]:[f(k.name)]);return AKt(b,B)}function p(b){const B=v(b),k=E(B);return k&&u.synthNamesMap.get(Zo(k).toString())||$M(b,s)}function E(b){var B;return((B=ur(b,Zg))==null?void 0:B.symbol)??u.checker.getSymbolAtLocation(b)}function v(b){return b.original?b.original:b}}function Urt(t){return t?vK(t)?!t.identifier.text:ye(t.elements,Urt):!0}function $M(t,u=[]){return{kind:0,identifier:t,types:u,hasBeenDeclared:!1,hasBeenReferenced:!1}}function AKt(t,u=_t,s=[]){return{kind:1,bindingPattern:t,elements:u,types:s}}function yBe(t){return t.hasBeenReferenced=!0,t.identifier}function Dee(t){return vK(t)?kBe(t):qrt(t)}function qrt(t){for(const u of t.elements)Dee(u);return t.bindingPattern}function kBe(t){return t.hasBeenDeclared=!0,t.identifier}function vK(t){return t.kind===0}function SKt(t){return t.kind===1}function CK(t,u){return!!t.original&&u.setOfExpressionsToReturn.has($s(t.original))}var n4e,FBe,xee,BKt=o({"src/services/codefixes/convertToAsyncFunction.ts"(){rr(),rs(),n4e="convertToAsyncFunction",FBe=[F.This_may_be_converted_to_an_async_function.code],xee=!0,Xo({errorCodes:FBe,getCodeActions(t){xee=!0;const u=iu.ChangeTracker.with(t,s=>Irt(s,t.sourceFile,t.span.start,t.program.getTypeChecker()));return xee?[Ro(n4e,u,F.Convert_to_async_function,n4e,F.Convert_all_to_async_functions)]:[]},fixIds:[n4e],getAllCodeActions:t=>f0(t,FBe,(u,s)=>Irt(u,s.file,s.start,t.program.getTypeChecker()))})}});function wKt(t,u,s,d,f){var p;for(const E of t.imports){const v=(p=s.getResolvedModule(t,E.text,xg(t,E)))==null?void 0:p.resolvedModule;if(!v||v.resolvedFileName!==u.fileName)continue;const b=tP(E);switch(b.kind){case 271:d.replaceNode(t,b,g5(b.name,void 0,E,f));break;case 213:xf(b,!1)&&d.replaceNode(t,b,q.createPropertyAccessExpression(ll(b),"default"));break}}}function TKt(t,u,s,d,f){const p={original:WKt(t),additional:new Set},E=LKt(t,u,p);NKt(t,E,s);let v=!1,b;for(const B of ti(t.statements,Jl)){const k=Yrt(t,B,s,u,p,d,f);k&&qU(k,b??(b=new Map))}for(const B of ti(t.statements,k=>!Jl(k))){const k=PKt(t,B,u,s,p,d,E,b,f);v=v||k}return b==null||b.forEach((B,k)=>{s.replaceNode(t,k,B)}),v}function LKt(t,u,s){const d=new Map;return Zrt(t,f=>{const{text:p}=f.name;!d.has(p)&&(wq(f.name)||u.resolveName(p,f,111551,!0))&&d.set(p,u4e(`_${p}`,s))}),d}function NKt(t,u,s){Zrt(t,(d,f)=>{if(f)return;const{text:p}=d.name;s.replaceNode(t,d,q.createIdentifier(u.get(p)||p))})}function Zrt(t,u){t.forEachChild(function s(d){if(Iu(d)&&q2(t,d.expression)&&at(d.name)){const{parent:f}=d;u(d,Xn(f)&&f.left===d&&f.operatorToken.kind===64)}d.forEachChild(s)})}function PKt(t,u,s,d,f,p,E,v,b){switch(u.kind){case 243:return Yrt(t,u,d,s,f,p,b),!1;case 244:{const{expression:B}=u;switch(B.kind){case 213:return xf(B,!0)&&d.replaceNode(t,u,g5(void 0,void 0,B.arguments[0],b)),!1;case 226:{const{operatorToken:k}=B;return k.kind===64&&zKt(t,s,B,d,E,v)}}}default:return!1}}function Yrt(t,u,s,d,f,p,E){const{declarationList:v}=u;let b=!1;const B=Vt(v.declarations,k=>{const{name:T,initializer:M}=k;if(M){if(q2(t,M))return b=!0,UM([]);if(xf(M,!0))return b=!0,HKt(T,M.arguments[0],d,f,p,E);if(Iu(M)&&xf(M.expression,!0))return b=!0,MKt(T,M.name.text,M.expression.arguments[0],f,E)}return UM([q.createVariableStatement(void 0,q.createVariableDeclarationList([k],v.flags))])});if(b){s.replaceNodeWithNodes(t,u,ju(B,T=>T.newImports));let k;return L(B,T=>{T.useSitesToUnqualify&&qU(T.useSitesToUnqualify,k??(k=new Map))}),k}}function MKt(t,u,s,d,f){switch(t.kind){case 206:case 207:{const p=u4e(u,d);return UM([tat(p,u,s,f),r4e(void 0,t,q.createIdentifier(p))])}case 80:return UM([tat(t.text,u,s,f)]);default:return H.assertNever(t,`Convert to ES module got invalid syntax form ${t.kind}`)}}function zKt(t,u,s,d,f,p){const{left:E,right:v}=s;if(!Iu(E))return!1;if(q2(t,E))if(q2(t,v))d.delete(t,s.parent);else{const b=ys(v)?IKt(v,p):xf(v,!0)?OKt(v.arguments[0],u):void 0;return b?(d.replaceNodeWithNodes(t,s.parent,b[0]),b[1]):(d.replaceRangeWithText(t,s4(E.getStart(t),v.pos),"export default"),!0)}else q2(t,E.expression)&&RKt(t,s,d,f);return!1}function IKt(t,u){const s=ra(t.properties,d=>{switch(d.kind){case 177:case 178:case 304:case 305:return;case 303:return at(d.name)?VKt(d.name.text,d.initializer,u):void 0;case 174:return at(d.name)?eat(d.name.text,[q.createToken(95)],d,u):void 0;default:H.assertNever(d,`Convert to ES6 got invalid prop kind ${d.kind}`)}});return s&&[s,!1]}function RKt(t,u,s,d){const{text:f}=u.left.name,p=d.get(f);if(p!==void 0){const E=[r4e(void 0,p,u.right),BBe([q.createExportSpecifier(!1,p,f)])];s.replaceNodeWithNodes(t,u.parent,E)}else jKt(u,t,s)}function OKt(t,u){const s=t.text,d=u.getSymbolAtLocation(t),f=d?d.exports:iU;return f.has("export=")?[[ABe(s)],!0]:f.has("default")?f.size>1?[[Qrt(s),ABe(s)],!0]:[[ABe(s)],!0]:[[Qrt(s)],!1]}function Qrt(t){return BBe(void 0,t)}function ABe(t){return BBe([q.createExportSpecifier(!1,void 0,"default")],t)}function jKt({left:t,right:u,parent:s},d,f){const p=t.name.text;if((A0(u)||q0(u)||Xd(u))&&(!u.name||u.name.text===p)){f.replaceRange(d,{pos:t.getStart(d),end:u.getStart(d)},q.createToken(95),{suffix:" "}),u.name||f.insertName(d,u,p);const E=a0(s,27,d);E&&f.delete(d,E)}else f.replaceNodeRangeWithNodes(d,t.expression,a0(t,25,d),[q.createToken(95),q.createToken(87)],{joiner:" ",suffix:" "})}function VKt(t,u,s){const d=[q.createToken(95)];switch(u.kind){case 218:{const{name:p}=u;if(p&&p.text!==t)return f()}case 219:return eat(t,d,u,s);case 231:return JKt(t,d,u,s);default:return f()}function f(){return r4e(d,q.createIdentifier(t),SBe(u,s))}}function SBe(t,u){if(!u||!Oe(ga(u.keys()),d=>Vm(t,d)))return t;return Ha(t)?gfe(t,!0,s):UH(t,!0,s);function s(d){if(d.kind===211){const f=u.get(d);return u.delete(d),f}}}function HKt(t,u,s,d,f,p){switch(t.kind){case 206:{const E=ra(t.elements,v=>v.dotDotDotToken||v.initializer||v.propertyName&&!at(v.propertyName)||!at(v.name)?void 0:iat(v.propertyName&&v.propertyName.text,v.name.text));if(E)return UM([g5(void 0,E,u,p)])}case 207:{const E=u4e(HBe(u.text,f),d);return UM([g5(q.createIdentifier(E),void 0,u,p),r4e(void 0,ll(t),q.createIdentifier(E))])}case 80:return KKt(t,u,s,d,p);default:return H.assertNever(t,`Convert to ES module got invalid name kind ${t.kind}`)}}function KKt(t,u,s,d,f){const p=s.getSymbolAtLocation(t),E=new Map;let v=!1,b;for(const k of d.original.get(t.text)){if(s.getSymbolAtLocation(k)!==p||k===t)continue;const{parent:T}=k;if(Iu(T)){const{name:{text:M}}=T;if(M==="default"){v=!0;const z=k.getText();(b??(b=new Map)).set(T,q.createIdentifier(z))}else{H.assert(T.expression===k,"Didn't expect expression === use");let z=E.get(M);z===void 0&&(z=u4e(M,d),E.set(M,z)),(b??(b=new Map)).set(T,q.createIdentifier(z))}}else v=!0}const B=E.size===0?void 0:ga(zr(E.entries(),([k,T])=>q.createImportSpecifier(!1,k===T?void 0:q.createIdentifier(k),q.createIdentifier(T))));return B||(v=!0),UM([g5(v?ll(t):void 0,B,u,f)],b)}function u4e(t,u){for(;u.original.has(t)||u.additional.has(t);)t=`_${t}`;return u.additional.add(t),t}function WKt(t){const u=wm();return Xrt(t,s=>u.add(s.text,s)),u}function Xrt(t,u){at(t)&&GKt(t)&&u(t),t.forEachChild(s=>Xrt(s,u))}function GKt(t){const{parent:u}=t;switch(u.kind){case 211:return u.name!==t;case 208:return u.propertyName!==t;case 276:return u.propertyName!==t;default:return!0}}function eat(t,u,s,d){return q.createFunctionDeclaration(Hi(u,nb(s.modifiers)),ll(s.asteriskToken),t,nb(s.typeParameters),nb(s.parameters),ll(s.type),q.converters.convertToFunctionBlock(SBe(s.body,d)))}function JKt(t,u,s,d){return q.createClassDeclaration(Hi(u,nb(s.modifiers)),t,nb(s.typeParameters),nb(s.heritageClauses),SBe(s.members,d))}function tat(t,u,s,d){return u==="default"?g5(q.createIdentifier(t),void 0,s,d):g5(void 0,[iat(u,t)],s,d)}function iat(t,u){return q.createImportSpecifier(!1,t!==void 0&&t!==u?q.createIdentifier(t):void 0,q.createIdentifier(u))}function r4e(t,u,s){return q.createVariableStatement(t,q.createVariableDeclarationList([q.createVariableDeclaration(u,void 0,void 0,s)],2))}function BBe(t,u){return q.createExportDeclaration(void 0,!1,t&&q.createNamedExports(t),u===void 0?void 0:q.createStringLiteral(u))}function UM(t,u){return{newImports:t,useSitesToUnqualify:u}}var $Kt=o({"src/services/codefixes/convertToEsModule.ts"(){rr(),rs(),Xo({errorCodes:[F.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(t){const{sourceFile:u,program:s,preferences:d}=t,f=iu.ChangeTracker.with(t,p=>{if(TKt(u,s.getTypeChecker(),p,Os(s.getCompilerOptions()),Hm(u,d)))for(const v of s.getSourceFiles())wKt(v,u,s,p,Hm(v,d))});return[Cg("convertToEsModule",f,F.Convert_to_ES_module)]}})}});function nat(t,u){const s=Tn(Ca(t,u),vf);return H.assert(!!s,"Expected position to be owned by a qualified name."),at(s.left)?s:void 0}function uat(t,u,s){const d=s.right.text,f=q.createIndexedAccessTypeNode(q.createTypeReferenceNode(s.left,void 0),q.createLiteralTypeNode(q.createStringLiteral(d)));t.replaceNode(u,s,f)}var a4e,wBe,UKt=o({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){rr(),rs(),a4e="correctQualifiedNameToIndexedAccessType",wBe=[F.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code],Xo({errorCodes:wBe,getCodeActions(t){const u=nat(t.sourceFile,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,f=>uat(f,t.sourceFile,u)),d=`${u.left.text}["${u.right.text}"]`;return[Ro(a4e,s,[F.Rewrite_as_the_indexed_access_type_0,d],a4e,F.Rewrite_all_as_indexed_access_types)]},fixIds:[a4e],getAllCodeActions:t=>f0(t,wBe,(u,s)=>{const d=nat(s.file,s.start);d&&uat(u,s.file,d)})})}});function rat(t,u){return ur(Ca(u,t.start).parent,eh)}function aat(t,u,s){if(!u)return;const d=u.parent,f=d.parent,p=qKt(u,s);if(p.length===d.elements.length)t.insertModifierBefore(s.sourceFile,156,d);else{const E=q.updateExportDeclaration(f,f.modifiers,!1,q.updateNamedExports(d,ti(d.elements,b=>!kt(p,b))),f.moduleSpecifier,void 0),v=q.createExportDeclaration(void 0,!0,q.createNamedExports(p),f.moduleSpecifier,void 0);t.replaceNode(s.sourceFile,f,E,{leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Exclude}),t.insertNodeAfter(s.sourceFile,f,v)}}function qKt(t,u){const s=t.parent;if(s.elements.length===1)return s.elements;const d=LSe(of(s),u.program.getSemanticDiagnostics(u.sourceFile,u.cancellationToken));return ti(s.elements,f=>{var p;return f===t||((p=TSe(f,d))==null?void 0:p.code)===o4e[0]})}var o4e,s4e,ZKt=o({"src/services/codefixes/convertToTypeOnlyExport.ts"(){rr(),rs(),o4e=[F.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],s4e="convertToTypeOnlyExport",Xo({errorCodes:o4e,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>aat(d,rat(u.span,u.sourceFile),u));if(s.length)return[Ro(s4e,s,F.Convert_to_type_only_export,s4e,F.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[s4e],getAllCodeActions:function(u){const s=new Map;return f0(u,o4e,(d,f)=>{const p=rat(f,u.sourceFile);p&&Ip(s,$s(p.parent.parent))&&aat(d,p,u)})}})}});function oat(t,u){const{parent:s}=Ca(t,u);return bf(s)||Sd(s)&&s.importClause?s:void 0}function sat(t,u,s){if(t.parent.parent.name)return!1;const d=t.parent.elements.filter(p=>!p.isTypeOnly);if(d.length===1)return!0;const f=s.getTypeChecker();for(const p of d)if(Z0.Core.eachSymbolReferenceInFile(p.name,f,u,v=>!Tv(v)))return!1;return!0}function vee(t,u,s){var d;if(bf(s))t.replaceNode(u,s,q.updateImportSpecifier(s,!0,s.propertyName,s.name));else{const f=s.importClause;if(f.name&&f.namedBindings)t.replaceNodeWithNodes(u,s,[q.createImportDeclaration(nb(s.modifiers,!0),q.createImportClause(!0,ll(f.name,!0),void 0),ll(s.moduleSpecifier,!0),ll(s.attributes,!0)),q.createImportDeclaration(nb(s.modifiers,!0),q.createImportClause(!0,void 0,ll(f.namedBindings,!0)),ll(s.moduleSpecifier,!0),ll(s.attributes,!0))]);else{const p=((d=f.namedBindings)==null?void 0:d.kind)===275?q.updateNamedImports(f.namedBindings,Lu(f.namedBindings.elements,v=>q.updateImportSpecifier(v,!1,v.propertyName,v.name))):f.namedBindings,E=q.updateImportDeclaration(s,s.modifiers,q.updateImportClause(f,!0,f.name,p),s.moduleSpecifier,s.attributes);t.replaceNode(u,s,E)}}}var TBe,Cee,YKt=o({"src/services/codefixes/convertToTypeOnlyImport.ts"(){rr(),rs(),TBe=[F.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],Cee="convertToTypeOnlyImport",Xo({errorCodes:TBe,getCodeActions:function(u){var s;const d=oat(u.sourceFile,u.span.start);if(d){const f=iu.ChangeTracker.with(u,v=>vee(v,u.sourceFile,d)),p=d.kind===276&&sat(d,u.sourceFile,u.program)?iu.ChangeTracker.with(u,v=>vee(v,u.sourceFile,d.parent.parent.parent)):void 0,E=Ro(Cee,f,d.kind===276?[F.Use_type_0,((s=d.propertyName)==null?void 0:s.text)??d.name.text]:F.Use_import_type,Cee,F.Fix_all_with_type_only_imports);return Oe(p)?[Cg(Cee,p,F.Use_import_type),E]:[E]}},fixIds:[Cee],getAllCodeActions:function(u){const s=new Set;return f0(u,TBe,(d,f)=>{const p=oat(f.file,f.start);(p==null?void 0:p.kind)===272&&!s.has(p)?(vee(d,f.file,p),s.add(p)):(p==null?void 0:p.kind)===276&&!s.has(p.parent.parent.parent)&&sat(p,f.file,u.program)?(vee(d,f.file,p.parent.parent.parent),s.add(p.parent.parent.parent)):(p==null?void 0:p.kind)===276&&vee(d,f.file,p)})}})}});function lat(t,u,s,d,f=!1){if(!PB(u))return;const p=XKt(u);if(!p)return;const E=u.parent,{leftSibling:v,rightSibling:b}=QKt(u);let B=E.getStart(),k="";!v&&E.comment&&(B=cat(E,E.getStart(),u.getStart()),k=`${d} */${d}`),v&&(f&&PB(v)?(B=u.getStart(),k=""):(B=cat(E,v.getStart(),u.getStart()),k=`${d} */${d}`));let T=E.getEnd(),M="";b&&(f&&PB(b)?(T=b.getStart(),M=`${d}${d}`):(T=b.getStart(),M=`${d}/**${d} * `)),t.replaceRange(s,{pos:B,end:T},p,{prefix:k,suffix:M})}function QKt(t){const u=t.parent,s=u.getChildCount()-1,d=u.getChildren().findIndex(E=>E.getStart()===t.getStart()&&E.getEnd()===t.getEnd()),f=d>0?u.getChildAt(d-1):void 0,p=d0;f--)if(!/[*/\s]/g.test(d.substring(f-1,f)))return u+f;return s}function XKt(t){var u;const{typeExpression:s}=t;if(!s)return;const d=(u=t.name)==null?void 0:u.getText();if(d){if(s.kind===329)return eWt(d,s);if(s.kind===316)return tWt(d,s)}}function eWt(t,u){const s=dat(u);if(Oe(s))return q.createInterfaceDeclaration(void 0,t,void 0,void 0,s)}function tWt(t,u){const s=ll(u.type);if(s)return q.createTypeAliasDeclaration(void 0,q.createIdentifier(t),void 0,s)}function dat(t){const u=t.jsDocPropertyTags;return Oe(u)?qi(u,d=>{var f;const p=iWt(d),E=(f=d.typeExpression)==null?void 0:f.type,v=d.isBracketed;let b;if(E&&K7(E)){const B=dat(E);b=q.createTypeLiteralNode(B)}else E&&(b=ll(E));if(b&&p){const B=v?q.createToken(58):void 0;return q.createPropertySignature(void 0,p,B,b)}}):void 0}function iWt(t){return t.name.kind===80?t.name.text:t.name.right.text}function nWt(t){return lm(t)?ju(t.jsDoc,u=>{var s;return(s=u.tags)==null?void 0:s.filter(d=>PB(d))}):[]}var l4e,LBe,uWt=o({"src/services/codefixes/convertTypedefToType.ts"(){rr(),rs(),l4e="convertTypedefToType",LBe=[F.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Xo({fixIds:[l4e],errorCodes:LBe,getCodeActions(t){const u=E5(t.host,t.formatContext.options),s=Ca(t.sourceFile,t.span.start);if(!s)return;const d=iu.ChangeTracker.with(t,f=>lat(f,s,t.sourceFile,u));if(d.length>0)return[Ro(l4e,d,F.Convert_typedef_to_TypeScript_type,l4e,F.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:t=>f0(t,LBe,(u,s)=>{const d=E5(t.host,t.formatContext.options),f=Ca(s.file,s.start);f&&lat(u,f,s.file,d,!0)})})}});function hat(t,u){const s=Ca(t,u);if(at(s)){const d=Po(s.parent.parent,Mm),f=s.getText(t);return{container:Po(d.parent,fm),typeNode:d.type,constraint:f,name:f==="K"?"P":"K"}}}function fat(t,u,{container:s,typeNode:d,constraint:f,name:p}){t.replaceNode(u,s,q.createMappedTypeNode(void 0,q.createTypeParameterDeclaration(void 0,p,q.createTypeReferenceNode(f)),void 0,void 0,d,void 0))}var c4e,NBe,rWt=o({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){rr(),rs(),c4e="convertLiteralTypeToMappedType",NBe=[F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Xo({errorCodes:NBe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=hat(s,d.start);if(!f)return;const{name:p,constraint:E}=f,v=iu.ChangeTracker.with(u,b=>fat(b,s,f));return[Ro(c4e,v,[F.Convert_0_to_1_in_0,E,p],c4e,F.Convert_all_type_literals_to_mapped_type)]},fixIds:[c4e],getAllCodeActions:t=>f0(t,NBe,(u,s)=>{const d=hat(s.file,s.start);d&&fat(u,s.file,d)})})}});function mat(t,u){return H.checkDefined(Yd(Ca(t,u)),"There should be a containing class")}function pat(t){return!t.valueDeclaration||!(Eh(t.valueDeclaration)&2)}function gat(t,u,s,d,f,p){const E=t.program.getTypeChecker(),v=aWt(d,E),b=E.getTypeAtLocation(u),k=E.getPropertiesOfType(b).filter(Q$(pat,K=>!v.has(K.escapedName))),T=E.getTypeAtLocation(d),M=Le(d.members,K=>hc(K));T.getNumberIndexType()||j(b,1),T.getStringIndexType()||j(b,0);const z=l9(s,t.program,p,t.host);jwe(d,k,s,t,p,z,K=>J(s,d,K)),z.writeFixes(f);function j(K,Y){const oe=E.getIndexInfoOfType(K,Y);oe&&J(s,d,E.indexInfoToIndexSignatureDeclaration(oe,d,void 0,xw(t)))}function J(K,Y,oe){M?f.insertNodeAfter(K,M,oe):f.insertMemberAtStart(K,Y,oe)}}function aWt(t,u){const s=Qg(t);if(!s)return Vo();const d=u.getTypeAtLocation(s),f=u.getPropertiesOfType(d);return Vo(f.filter(pat))}var PBe,d4e,oWt=o({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){rr(),rs(),PBe=[F.Class_0_incorrectly_implements_interface_1.code,F.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],d4e="fixClassIncorrectlyImplementsInterface",Xo({errorCodes:PBe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=mat(u,s.start);return qi(iB(d),f=>{const p=iu.ChangeTracker.with(t,E=>gat(t,f,u,d,E,t.preferences));return p.length===0?void 0:Ro(d4e,p,[F.Implement_interface_0,f.getText(u)],d4e,F.Implement_all_unimplemented_interfaces)})},fixIds:[d4e],getAllCodeActions(t){const u=new Map;return f0(t,PBe,(s,d)=>{const f=mat(d.file,d.start);if(Ip(u,$s(f)))for(const p of iB(f))gat(t,p,d.file,f,s,t.preferences)})}})}});function l9(t,u,s,d,f){return Eat(t,u,!1,s,d,f)}function Eat(t,u,s,d,f,p){const E=u.getCompilerOptions(),v=[],b=[],B=new Map,k=new Map;return{addImportFromDiagnostic:T,addImportFromExportedSymbol:M,writeFixes:j,hasFixes:J};function T(K,Y){const oe=bat(Y,K.code,K.start,s);!oe||!oe.length||z(Pn(oe))}function M(K,Y){const oe=H.checkDefined(K.parent),se=IX(K,Os(E)),ge=u.getTypeChecker(),ae=ge.getMergedSymbol(X1(K,ge)),Ce=xat(t,ae,se,oe,!1,u,f,d,p),ne=f4e(t,u),ve=_at(t,H.checkDefined(Ce),u,void 0,!!Y,ne,f,d);ve&&z({fix:ve,symbolName:se,errorIdentifierText:void 0})}function z(K){var Y,oe;const{fix:se,symbolName:ge}=K;switch(se.kind){case 0:v.push(se);break;case 1:b.push(se);break;case 2:{const{importClauseOrBindingPattern:ve,importKind:Se,addAsTypeOnly:Ne}=se,pe=String($s(ve));let fe=B.get(pe);if(fe||B.set(pe,fe={importClauseOrBindingPattern:ve,defaultImport:void 0,namedImports:new Map}),Se===0){const xe=fe==null?void 0:fe.namedImports.get(ge);fe.namedImports.set(ge,ae(xe,Ne))}else H.assert(fe.defaultImport===void 0||fe.defaultImport.name===ge,"(Add to Existing) Default import should be missing or match symbolName"),fe.defaultImport={name:ge,addAsTypeOnly:ae((Y=fe.defaultImport)==null?void 0:Y.addAsTypeOnly,Ne)};break}case 3:{const{moduleSpecifier:ve,importKind:Se,useRequire:Ne,addAsTypeOnly:pe}=se,fe=Ce(ve,Se,Ne,pe);switch(H.assert(fe.useRequire===Ne,"(Add new) Tried to add an `import` and a `require` for the same module"),Se){case 1:H.assert(fe.defaultImport===void 0||fe.defaultImport.name===ge,"(Add new) Default import should be missing or match symbolName"),fe.defaultImport={name:ge,addAsTypeOnly:ae((oe=fe.defaultImport)==null?void 0:oe.addAsTypeOnly,pe)};break;case 0:const xe=(fe.namedImports||(fe.namedImports=new Map)).get(ge);fe.namedImports.set(ge,ae(xe,pe));break;case 3:case 2:H.assert(fe.namespaceLikeImport===void 0||fe.namespaceLikeImport.name===ge,"Namespacelike import shoudl be missing or match symbolName"),fe.namespaceLikeImport={importKind:Se,name:ge,addAsTypeOnly:pe};break}break}case 4:break;default:H.assertNever(se,`fix wasn't never - got kind ${se.kind}`)}function ae(ve,Se){return Math.max(ve??0,Se)}function Ce(ve,Se,Ne,pe){const fe=ne(ve,!0),xe=ne(ve,!1),Be=k.get(fe),Ge=k.get(xe),Ae={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Ne};return Se===1&&pe===2?Be||(k.set(fe,Ae),Ae):pe===1&&(Be||Ge)?Be||Ge:Ge||(k.set(xe,Ae),Ae)}function ne(ve,Se){return`${Se?1:0}|${ve}`}}function j(K,Y){let oe;t.imports.length===0&&Y!==void 0?oe=Y:oe=Hm(t,d);for(const ge of v)OBe(K,t,ge);for(const ge of b)wat(K,t,ge,oe);B.forEach(({importClauseOrBindingPattern:ge,defaultImport:ae,namedImports:Ce})=>{Bat(K,t,ge,ae,ga(Ce.entries(),([ne,ve])=>({addAsTypeOnly:ve,name:ne})),d)});let se;k.forEach(({useRequire:ge,defaultImport:ae,namedImports:Ce,namespaceLikeImport:ne},ve)=>{const Se=ve.slice(2),pe=(ge?Nat:Lat)(Se,oe,ae,Ce&&ga(Ce.entries(),([fe,xe])=>({addAsTypeOnly:xe,name:fe})),ne,E,d);se=vo(se,pe)}),se&&MM(K,t,se,!0,d)}function J(){return v.length>0||b.length>0||B.size>0||k.size>0}}function sWt(t,u,s,d){const f=HM(t,d,s),p=vat(u.getTypeChecker(),t,u.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:E};function E(v,b,B,k){const{fixes:T,computedWithoutCacheCount:M}=h4e(v,b,B,!1,u,t,s,d,p,k),z=yat(T,t,u,f,s);return z&&{...z,computedWithoutCacheCount:M}}}function lWt(t,u,s,d,f,p,E,v,b,B,k,T){let M;s?(M=tK(d,E,v,k,T).get(d.path,s),H.assertIsDefined(M,"Some exportInfo should match the specified exportMapKey")):(M=kse($4(u.name))?[dWt(t,f,u,v,E)]:xat(d,t,f,u,p,v,E,k,T),H.assertIsDefined(M,"Some exportInfo should match the specified symbol / moduleSymbol"));const z=f4e(d,v),j=Tv(Ca(d,B)),J=H.checkDefined(_at(d,M,v,B,j,z,E,k));return{moduleSpecifier:J.moduleSpecifier,codeAction:Dat(RBe({host:E,formatContext:b,preferences:k},d,f,J,!1,v,k))}}function cWt(t,u,s,d,f,p){const E=s.getCompilerOptions(),v=bd(IBe(t,s.getTypeChecker(),u,E)),b=Aat(t,u,v,s),B=v!==u.text;return b&&Dat(RBe({host:d,formatContext:f,preferences:p},t,v,b,B,s,p))}function _at(t,u,s,d,f,p,E,v){const b=HM(t,v,E);return yat(h4e(u,d,f,p,s,t,E,v).fixes,t,s,b,E)}function Dat({description:t,changes:u,commands:s}){return{description:t,changes:u,commands:s}}function xat(t,u,s,d,f,p,E,v,b){const B=Cat(p,E);return tK(t,E,p,v,b).search(t.path,f,k=>k===s,k=>{if(X1(k[0].symbol,B(k[0].isFromPackageJson))===u&&k.some(T=>T.moduleSymbol===d||T.symbol.parent===d))return k})}function dWt(t,u,s,d,f){var p,E;const v=d.getCompilerOptions(),b=k(d.getTypeChecker(),!1);if(b)return b;const B=(E=(p=f.getPackageJsonAutoImportProvider)==null?void 0:p.call(f))==null?void 0:E.getTypeChecker();return H.checkDefined(B&&k(B,!0),"Could not find symbol in specified module for code actions");function k(T,M){const z=WX(s,T,v);if(z&&X1(z.symbol,T)===t)return{symbol:z.symbol,moduleSymbol:s,moduleFileName:void 0,exportKind:z.exportKind,targetFlags:X1(t,T).flags,isFromPackageJson:M};const j=T.tryGetMemberInModuleExportsAndProperties(u,s);if(j&&X1(j,T)===t)return{symbol:j,moduleSymbol:s,moduleFileName:void 0,exportKind:0,targetFlags:X1(t,T).flags,isFromPackageJson:M}}}function h4e(t,u,s,d,f,p,E,v,b=vat(f.getTypeChecker(),p,f.getCompilerOptions()),B){const k=f.getTypeChecker(),T=ju(t,b.getImportsForExportInfo),M=u!==void 0&&hWt(T,u),z=mWt(T,s,k,f.getCompilerOptions());if(z)return{computedWithoutCacheCount:0,fixes:[...M?[M]:_t,z]};const{fixes:j,computedWithoutCacheCount:J=0}=gWt(t,T,f,p,u,s,d,E,v,B);return{computedWithoutCacheCount:J,fixes:[...M?[M]:_t,...j]}}function hWt(t,u){return G(t,({declaration:s,importKind:d})=>{var f;if(d!==0)return;const p=fWt(s),E=p&&((f=Z8(s))==null?void 0:f.text);if(E)return{kind:0,namespacePrefix:p,usagePosition:u,moduleSpecifier:E}})}function fWt(t){var u,s,d;switch(t.kind){case 260:return(u=ur(t.name,at))==null?void 0:u.text;case 271:return t.name.text;case 272:return(d=ur((s=t.importClause)==null?void 0:s.namedBindings,Jx))==null?void 0:d.name.text;default:return H.assertNever(t)}}function MBe(t,u,s,d,f,p){return t?u&&p.importsNotUsedAsValues===2||xle(p)&&(!(d&111551)||f.getTypeOnlyAliasDeclaration(s))?2:1:4}function mWt(t,u,s,d){let f;for(const E of t){const v=p(E);if(!v)continue;const b=RU(v.importClauseOrBindingPattern);if(v.addAsTypeOnly!==4&&b||v.addAsTypeOnly===4&&!b)return v;f??(f=v)}return f;function p({declaration:E,importKind:v,symbol:b,targetFlags:B}){if(v===3||v===2||E.kind===271)return;if(E.kind===260)return(v===0||v===1)&&E.name.kind===206?{kind:2,importClauseOrBindingPattern:E.name,importKind:v,moduleSpecifier:E.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:k}=E;if(!k||!t0(E.moduleSpecifier))return;const{name:T,namedBindings:M}=k;if(k.isTypeOnly&&!(v===0&&M))return;const z=MBe(u,!1,b,B,s,d);if(!(v===1&&(T||z===2&&M))&&!(v===0&&(M==null?void 0:M.kind)===274))return{kind:2,importClauseOrBindingPattern:k,importKind:v,moduleSpecifier:E.moduleSpecifier.text,addAsTypeOnly:z}}}function vat(t,u,s){let d;for(const f of u.imports){const p=tP(f);if(vq(p.parent)){const E=t.resolveExternalModuleName(f);E&&(d||(d=wm())).add(Zo(E),p.parent)}else if(p.kind===272||p.kind===271){const E=t.getSymbolAtLocation(f);E&&(d||(d=wm())).add(Zo(E),p)}}return{getImportsForExportInfo:({moduleSymbol:f,exportKind:p,targetFlags:E,symbol:v})=>{if(!(E&111551)&&gh(u))return _t;const b=d==null?void 0:d.get(Zo(f));if(!b)return _t;const B=zBe(u,p,s);return b.map(k=>({declaration:k,importKind:B,symbol:v,targetFlags:E}))}}}function f4e(t,u){if(!gh(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;const s=u.getCompilerOptions();if(s.configFile)return m1(s)<5;if(t.impliedNodeFormat===1)return!0;if(t.impliedNodeFormat===99)return!1;for(const d of u.getSourceFiles())if(!(d===t||!gh(d)||u.isSourceFileFromExternalLibrary(d))){if(d.commonJsModuleIndicator&&!d.externalModuleIndicator)return!0;if(d.externalModuleIndicator&&!d.commonJsModuleIndicator)return!1}return!0}function Cat(t,u){return HE(s=>s?u.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())}function pWt(t,u,s,d,f,p,E,v,b){const B=gh(u),k=t.getCompilerOptions(),T=Ik(t,E),M=Cat(t,E),z=p1(k),j=_X(z),J=b?oe=>({moduleSpecifiers:Z2.tryGetModuleSpecifiersFromCache(oe,u,T,v),computedWithoutCache:!1}):(oe,se)=>Z2.getModuleSpecifiersWithCacheInfo(oe,se,k,u,T,v,void 0,!0);let K=0;const Y=ju(p,(oe,se)=>{const ge=M(oe.isFromPackageJson),{computedWithoutCache:ae,moduleSpecifiers:Ce}=J(oe.moduleSymbol,ge),ne=!!(oe.targetFlags&111551),ve=MBe(d,!0,oe.symbol,oe.targetFlags,ge,k);return K+=ae?1:0,qi(Ce,Se=>{var Ne;if(j&&q7(Se))return;if(!ne&&B&&s!==void 0)return{kind:1,moduleSpecifier:Se,usagePosition:s,exportInfo:oe,isReExport:se>0};const pe=zBe(u,oe.exportKind,k);let fe;if(s!==void 0&&pe===3&&oe.exportKind===0){const xe=ge.resolveExternalModuleSymbol(oe.moduleSymbol);let Be;xe!==oe.moduleSymbol&&(Be=(Ne=GX(xe,ge,k))==null?void 0:Ne.name),Be||(Be=VBe(oe.moduleSymbol,Os(k),!1)),fe={namespacePrefix:Be,usagePosition:s}}return{kind:3,moduleSpecifier:Se,importKind:pe,useRequire:f,addAsTypeOnly:ve,exportInfo:oe,isReExport:se>0,qualification:fe}})});return{computedWithoutCacheCount:K,fixes:Y}}function gWt(t,u,s,d,f,p,E,v,b,B){const k=G(u,T=>EWt(T,p,E,s.getTypeChecker(),s.getCompilerOptions()));return k?{fixes:[k]}:pWt(s,d,f,p,E,t,v,b,B)}function EWt({declaration:t,importKind:u,symbol:s,targetFlags:d},f,p,E,v){var b;const B=(b=Z8(t))==null?void 0:b.text;if(B){const k=p?4:MBe(f,!0,s,d,E,v);return{kind:3,moduleSpecifier:B,importKind:u,addAsTypeOnly:k,useRequire:p}}}function bat(t,u,s,d){const f=Ca(t.sourceFile,s);let p;if(u===F._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)p=vWt(t,f);else if(at(f))if(u===F._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const v=bd(IBe(t.sourceFile,t.program.getTypeChecker(),f,t.program.getCompilerOptions())),b=Aat(t.sourceFile,f,v,t.program);return b&&[{fix:b,symbolName:v,errorIdentifierText:f.text}]}else p=yWt(t,f,d);else return;const E=HM(t.sourceFile,t.preferences,t.host);return p&&_Wt(p,t.sourceFile,t.program,E,t.host)}function _Wt(t,u,s,d,f){const p=E=>J0(E,f.getCurrentDirectory(),n5(f));return Ph(t,(E,v)=>d2(!!E.isJsxNamespaceFix,!!v.isJsxNamespaceFix)||nl(E.fix.kind,v.fix.kind)||kat(E.fix,v.fix,u,s,d.allowsImportingSpecifier,p))}function yat(t,u,s,d,f){if(Oe(t))return t[0].kind===0||t[0].kind===2?t[0]:t.reduce((p,E)=>kat(E,p,u,s,d.allowsImportingSpecifier,v=>J0(v,f.getCurrentDirectory(),n5(f)))===-1?E:p)}function kat(t,u,s,d,f,p){return t.kind!==0&&u.kind!==0?d2(f(u.moduleSpecifier),f(t.moduleSpecifier))||xWt(t.moduleSpecifier,u.moduleSpecifier,s,d)||d2(Fat(t,s,d.getCompilerOptions(),p),Fat(u,s,d.getCompilerOptions(),p))||iV(t.moduleSpecifier,u.moduleSpecifier):0}function Fat(t,u,s,d){var f;if(t.isReExport&&((f=t.exportInfo)!=null&&f.moduleFileName)&&p1(s)===2&&DWt(t.exportInfo.moduleFileName)){const p=d(lr(t.exportInfo.moduleFileName));return Pa(u.path,p)}return!1}function DWt(t){return Ac(t,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function xWt(t,u,s,d){return Pa(t,"node:")&&!Pa(u,"node:")?OX(s,d)?-1:1:Pa(u,"node:")&&!Pa(t,"node:")?OX(s,d)?1:-1:0}function vWt({sourceFile:t,program:u,host:s,preferences:d},f){const p=u.getTypeChecker(),E=CWt(f,p);if(!E)return;const v=p.getAliasedSymbol(E),b=E.name,B=[{symbol:E,moduleSymbol:v,moduleFileName:void 0,exportKind:3,targetFlags:v.flags,isFromPackageJson:!1}],k=f4e(t,u);return h4e(B,void 0,!1,k,u,t,s,d).fixes.map(M=>{var z;return{fix:M,symbolName:b,errorIdentifierText:(z=ur(f,at))==null?void 0:z.text}})}function CWt(t,u){const s=at(t)?u.getSymbolAtLocation(t):void 0;if($q(s))return s;const{parent:d}=t;if(zh(d)&&d.tagName===t||V7(d)){const f=u.resolveName(u.getJsxNamespace(d),zh(d)?t:d,111551,!1);if($q(f))return f}}function zBe(t,u,s,d){if(s.verbatimModuleSyntax&&(m1(s)===1||t.impliedNodeFormat===1))return 3;switch(u){case 0:return 0;case 1:return 1;case 2:return AWt(t,s,!!d);case 3:return bWt(t,s,!!d);default:return H.assertNever(u)}}function bWt(t,u,s){if(C7(u))return 1;const d=m1(u);switch(d){case 2:case 1:case 3:return Qn(t)&&(wc(t)||s)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return t.impliedNodeFormat===99?2:3;default:return H.assertNever(d,`Unexpected moduleKind ${d}`)}}function yWt({sourceFile:t,program:u,cancellationToken:s,host:d,preferences:f},p,E){const v=u.getTypeChecker(),b=u.getCompilerOptions();return ju(IBe(t,v,p,b),B=>{if(B==="default")return;const k=Tv(p),T=f4e(t,u),M=FWt(B,$8(p),Pk(p),s,t,u,E,d,f);return ga(pa(M.values(),z=>h4e(z,p.getStart(t),k,T,u,t,d,f).fixes),z=>({fix:z,symbolName:B,errorIdentifierText:p.text,isJsxNamespaceFix:B!==p.text}))})}function Aat(t,u,s,d){const f=d.getTypeChecker(),p=f.resolveName(s,u,111551,!0);if(!p)return;const E=f.getTypeOnlyAliasDeclaration(p);if(!(!E||zn(E)!==t))return{kind:4,typeOnlyAliasDeclaration:E}}function IBe(t,u,s,d){const f=s.parent;if((zh(f)||H2(f))&&f.tagName===s&&Sfe(d.jsx)){const p=u.getJsxNamespace(t);if(kWt(p,s,u))return!aB(s.text)&&!u.resolveName(s.text,s,111551,!1)?[s.text,p]:[p]}return[s.text]}function kWt(t,u,s){if(aB(u.text))return!0;const d=s.resolveName(t,u,111551,!0);return!d||Oe(d.declarations,_2)&&!(d.flags&111551)}function FWt(t,u,s,d,f,p,E,v,b){var B;const k=wm(),T=HM(f,b,v),M=(B=v.getModuleSpecifierCache)==null?void 0:B.call(v),z=HE(J=>Ik(J?v.getPackageJsonAutoImportProvider():p,v));function j(J,K,Y,oe,se,ge){const ae=z(ge);if(K&&Mfe(se,f,K,b,T,ae,M)||!K&&T.allowsImportingAmbientModule(J,ae)){const Ce=se.getTypeChecker();k.add(CSe(Y,Ce).toString(),{symbol:Y,moduleSymbol:J,moduleFileName:K==null?void 0:K.fileName,exportKind:oe,targetFlags:X1(Y,Ce).flags,isFromPackageJson:ge})}}return zfe(p,v,b,E,(J,K,Y,oe)=>{const se=Y.getTypeChecker();d.throwIfCancellationRequested();const ge=Y.getCompilerOptions(),ae=WX(J,se,ge);ae&&(ae.name===t||VBe(J,Os(ge),u)===t)&&Mat(ae.resolvedSymbol,s)&&j(J,K,ae.symbol,ae.exportKind,Y,oe);const Ce=se.tryGetMemberInModuleExportsAndProperties(t,J);Ce&&Mat(Ce,s)&&j(J,K,Ce,0,Y,oe)}),k}function AWt(t,u,s){const d=C7(u),f=Qn(t);if(!f&&m1(u)>=5)return d?1:2;if(f)return wc(t)||s?d?1:2:3;for(const p of t.statements)if(E1(p)&&!Ql(p.moduleReference))return 3;return d?1:3}function RBe(t,u,s,d,f,p,E){let v;const b=iu.ChangeTracker.with(t,B=>{v=SWt(B,u,s,d,f,p,E)});return Ro(KBe,b,v,WBe,F.Add_all_missing_imports)}function SWt(t,u,s,d,f,p,E){const v=Hm(u,E);switch(d.kind){case 0:return OBe(t,u,d),[F.Change_0_to_1,s,`${d.namespacePrefix}.${s}`];case 1:return wat(t,u,d,v),[F.Change_0_to_1,s,Tat(d.moduleSpecifier,v)+s];case 2:{const{importClauseOrBindingPattern:b,importKind:B,addAsTypeOnly:k,moduleSpecifier:T}=d;Bat(t,u,b,B===1?{name:s,addAsTypeOnly:k}:void 0,B===0?[{name:s,addAsTypeOnly:k}]:_t,E);const M=$4(T);return f?[F.Import_0_from_1,s,M]:[F.Update_import_from_0,M]}case 3:{const{importKind:b,moduleSpecifier:B,addAsTypeOnly:k,useRequire:T,qualification:M}=d,z=T?Nat:Lat,j=b===1?{name:s,addAsTypeOnly:k}:void 0,J=b===0?[{name:s,addAsTypeOnly:k}]:void 0,K=b===2||b===3?{importKind:b,name:(M==null?void 0:M.namespacePrefix)||s,addAsTypeOnly:k}:void 0;return MM(t,u,z(B,v,j,J,K,p.getCompilerOptions(),E),!0,E),M&&OBe(t,u,M),f?[F.Import_0_from_1,s,B]:[F.Add_import_from_0,B]}case 4:{const{typeOnlyAliasDeclaration:b}=d,B=BWt(t,b,p,u,E);return B.kind===276?[F.Remove_type_from_import_of_0_from_1,s,Sat(B.parent.parent)]:[F.Remove_type_from_import_declaration_from_0,Sat(B)]}default:return H.assertNever(d,`Unexpected fix kind ${d.kind}`)}}function Sat(t){var u,s;return t.kind===271?((s=ur((u=ur(t.moduleReference,r_))==null?void 0:u.expression,t0))==null?void 0:s.text)||t.moduleReference.getText():Po(t.parent.moduleSpecifier,us).text}function BWt(t,u,s,d,f){const p=s.getCompilerOptions(),E=xle(p);switch(u.kind){case 276:if(u.isTypeOnly){const b=Gp.detectImportSpecifierSorting(u.parent.elements,f);if(u.parent.elements.length>1&&b){const B=q.updateImportSpecifier(u,!1,u.propertyName,u.name),k=Gp.getOrganizeImportsComparer(f,b===2),T=Gp.getImportSpecifierInsertionIndex(u.parent.elements,B,k);if(u.parent.elements.indexOf(u)!==T)return t.delete(d,u),t.insertImportSpecifierAtIndex(d,B,u.parent,T),u}return t.deleteRange(d,u.getFirstToken()),u}else return H.assert(u.parent.parent.isTypeOnly),v(u.parent.parent),u.parent.parent;case 273:return v(u),u;case 274:return v(u.parent),u.parent;case 271:return t.deleteRange(d,u.getChildAt(1)),u;default:H.failBadSyntaxKind(u)}function v(b){var B;if(t.delete(d,sfe(b,d)),!p.allowImportingTsExtensions){const k=Z8(b.parent),T=k&&((B=s.getResolvedModule(d,k.text,xg(d,k)))==null?void 0:B.resolvedModule);if(T!=null&&T.resolvedUsingTsExtension){const M=AO(k.text,pQ(k.text,p));t.replaceNode(d,k,q.createStringLiteral(M))}}if(E){const k=ur(b.namedBindings,uD);if(k&&k.elements.length>1){Gp.detectImportSpecifierSorting(k.elements,f)&&u.kind===276&&k.elements.indexOf(u)!==0&&(t.delete(d,u),t.insertImportSpecifierAtIndex(d,u,k,0));for(const T of k.elements)T!==u&&!T.isTypeOnly&&t.insertModifierBefore(d,156,T)}}}}function Bat(t,u,s,d,f,p){var E;if(s.kind===206){d&&B(s,d.name,"default");for(const k of f)B(s,k.name,void 0);return}const v=s.isTypeOnly&&Oe([d,...f],k=>(k==null?void 0:k.addAsTypeOnly)===4),b=s.namedBindings&&((E=ur(s.namedBindings,uD))==null?void 0:E.elements);if(d&&(H.assert(!s.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(u,s.getStart(u),q.createIdentifier(d.name),{suffix:", "})),f.length){let k;if(typeof p.organizeImportsIgnoreCase=="boolean")k=p.organizeImportsIgnoreCase;else if(b){const j=Gp.detectImportSpecifierSorting(b,p);j!==3&&(k=j===2)}k===void 0&&(k=Gp.detectSorting(u,p)===2);const T=Gp.getOrganizeImportsComparer(p,k),M=oc(f.map(j=>q.createImportSpecifier((!s.isTypeOnly||v)&&m4e(j,p),void 0,q.createIdentifier(j.name))),(j,J)=>Gp.compareImportOrExportSpecifiers(j,J,T)),z=(b==null?void 0:b.length)&&Gp.detectImportSpecifierSorting(b,p);if(z&&!(k&&z===1))for(const j of M){const J=v&&!j.isTypeOnly?0:Gp.getImportSpecifierInsertionIndex(b,j,T);t.insertImportSpecifierAtIndex(u,j,s.namedBindings,J)}else if(b!=null&&b.length)for(const j of M)t.insertNodeInListAfter(u,Cr(b),j,b);else if(M.length){const j=q.createNamedImports(M);s.namedBindings?t.replaceNode(u,s.namedBindings,j):t.insertNodeAfter(u,H.checkDefined(s.name,"Import clause must have either named imports or a default import"),j)}}if(v&&(t.delete(u,sfe(s,u)),b))for(const k of b)t.insertModifierBefore(u,156,k);function B(k,T,M){const z=q.createBindingElement(void 0,M,T);k.elements.length?t.insertNodeInListAfter(u,Cr(k.elements),z):t.replaceNode(u,k,q.createObjectBindingPattern([z]))}}function OBe(t,u,{namespacePrefix:s,usagePosition:d}){t.insertText(u,d,s+".")}function wat(t,u,{moduleSpecifier:s,usagePosition:d},f){t.insertText(u,d,Tat(s,f))}function Tat(t,u){const s=ofe(u);return`import(${s}${t}${s}).`}function jBe({addAsTypeOnly:t}){return t===2}function m4e(t,u){return jBe(t)||!!u.preferTypeOnlyAutoImports&&t.addAsTypeOnly!==4}function Lat(t,u,s,d,f,p,E){const v=n9(t,u);let b;if(s!==void 0||d!=null&&d.length){const B=(!s||jBe(s))&&ye(d,jBe)||(p.verbatimModuleSyntax||E.preferTypeOnlyAutoImports)&&(s==null?void 0:s.addAsTypeOnly)!==4&&!Oe(d,k=>k.addAsTypeOnly===4);b=vo(b,g5(s&&q.createIdentifier(s.name),d==null?void 0:d.map(k=>q.createImportSpecifier(!B&&m4e(k,E),void 0,q.createIdentifier(k.name))),t,u,B))}if(f){const B=f.importKind===3?q.createImportEqualsDeclaration(void 0,m4e(f,E),q.createIdentifier(f.name),q.createExternalModuleReference(v)):q.createImportDeclaration(void 0,q.createImportClause(m4e(f,E),void 0,q.createNamespaceImport(q.createIdentifier(f.name))),v,void 0);b=vo(b,B)}return H.checkDefined(b)}function Nat(t,u,s,d,f){const p=n9(t,u);let E;if(s||d!=null&&d.length){const v=(d==null?void 0:d.map(({name:B})=>q.createBindingElement(void 0,void 0,B)))||[];s&&v.unshift(q.createBindingElement(void 0,"default",s.name));const b=Pat(q.createObjectBindingPattern(v),p);E=vo(E,b)}if(f){const v=Pat(f.name,p);E=vo(E,v)}return H.checkDefined(E)}function Pat(t,u){return q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(typeof t=="string"?q.createIdentifier(t):t,void 0,void 0,q.createCallExpression(q.createIdentifier("require"),void 0,[u]))],2))}function Mat({declarations:t},u){return Oe(t,s=>!!(TH(s)&u))}function VBe(t,u,s){return HBe(_h($4(t.name)),u,s)}function HBe(t,u,s){const d=Ac(D8(t,"/index"));let f="",p=!0;const E=d.charCodeAt(0);G_(E,u)?(f+=String.fromCharCode(E),s&&(f=f.toUpperCase())):p=!1;for(let v=1;vRBe(t,d,b,v,b!==B,p,s))},fixIds:[WBe],getAllCodeActions:t=>{const{sourceFile:u,program:s,preferences:d,host:f,cancellationToken:p}=t,E=Eat(u,s,!0,d,f,p);return _w(t,GBe,v=>E.addImportFromDiagnostic(v,t)),Ew(iu.ChangeTracker.with(t,E.writeFixes))}})}});function zat(t,u,s){const d=Le(t.getSemanticDiagnostics(u),E=>E.start===s.start&&E.length===s.length);if(d===void 0||d.relatedInformation===void 0)return;const f=Le(d.relatedInformation,E=>E.code===F.This_type_parameter_might_need_an_extends_0_constraint.code);if(f===void 0||f.file===void 0||f.start===void 0||f.length===void 0)return;let p=$we(f.file,d1(f.start,f.length));if(p!==void 0&&(at(p)&&Bl(p.parent)&&(p=p.parent),Bl(p))){if(JP(p.parent))return;const E=Ca(u,s.start),v=t.getTypeChecker();return{constraint:LWt(v,E)||TWt(f.messageText),declaration:p,token:E}}}function Iat(t,u,s,d,f,p){const{declaration:E,constraint:v}=p,b=u.getTypeChecker();if(Ja(v))t.insertText(f,E.name.end,` extends ${v}`);else{const B=Os(u.getCompilerOptions()),k=xw({program:u,host:d}),T=l9(f,u,s,d),M=Y4e(b,T,v,void 0,B,void 0,k);M&&(t.replaceNode(f,E,q.updateTypeParameterDeclaration(E,void 0,E.name,M,E.default)),T.writeFixes(t))}}function TWt(t){const[u,s]=lE(t,` +`,0).match(/`extends (.*)`/)||[];return s}function LWt(t,u){return Qr(u.parent)?t.getTypeArgumentConstraint(u.parent):(Wt(u)?t.getContextualType(u):void 0)||t.getTypeAtLocation(u)}var p4e,JBe,NWt=o({"src/services/codefixes/fixAddMissingConstraint.ts"(){rr(),rs(),p4e="addMissingConstraint",JBe=[F.Type_0_is_not_comparable_to_type_1.code,F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.Type_0_is_not_assignable_to_type_1.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.Property_0_is_incompatible_with_index_signature.code,F.Property_0_in_type_1_is_not_assignable_to_type_2.code,F.Type_0_does_not_satisfy_the_constraint_1.code],Xo({errorCodes:JBe,getCodeActions(t){const{sourceFile:u,span:s,program:d,preferences:f,host:p}=t,E=zat(d,u,s);if(E===void 0)return;const v=iu.ChangeTracker.with(t,b=>Iat(b,d,f,p,u,E));return[Ro(p4e,v,F.Add_extends_constraint,p4e,F.Add_extends_constraint_to_all_type_parameters)]},fixIds:[p4e],getAllCodeActions:t=>{const{program:u,preferences:s,host:d}=t,f=new Map;return Ew(iu.ChangeTracker.with(t,p=>{_w(t,JBe,E=>{const v=zat(u,E.file,d1(E.start,E.length));if(v&&Ip(f,$s(v.declaration)))return Iat(p,u,s,d,E.file,v)})}))}})}});function Rat(t,u,s,d){switch(s){case F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return PWt(t,u.sourceFile,d);case F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return MWt(t,u.sourceFile,d);default:H.fail("Unexpected error code: "+s)}}function PWt(t,u,s){const d=jat(u,s);if(gh(u)){t.addJSDocTags(u,d,[q.createJSDocOverrideTag(q.createIdentifier("override"))]);return}const f=d.modifiers||_t,p=Le(f,N7),E=Le(f,tFe),v=Le(f,T=>Yhe(T.kind)),b=lt(f,g1),B=E?E.end:p?p.end:v?v.end:b?gs(u.text,b.end):d.getStart(u),k=v||p||E?{prefix:" "}:{suffix:" "};t.insertModifierAt(u,B,164,k)}function MWt(t,u,s){const d=jat(u,s);if(gh(u)){t.filterJSDocTags(u,d,X$(gY));return}const f=Le(d.modifiers,iFe);H.assertIsDefined(f),t.deleteModifier(u,f)}function Oat(t){switch(t.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Mf(t,t.parent);default:return!1}}function jat(t,u){const s=Ca(t,u),d=Tn(s,f=>mr(f)?"quit":Oat(f));return H.assert(d&&Oat(d)),d}var $Be,qM,bK,UBe,qBe,zWt=o({"src/services/codefixes/fixOverrideModifier.ts"(){rr(),rs(),$Be="fixOverrideModifier",qM="fixAddOverrideModifier",bK="fixRemoveOverrideModifier",UBe=[F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],qBe={[F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:F.Remove_override_modifier,fixId:bK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:F.Remove_override_modifier,fixId:bK,fixAllDescriptions:F.Remove_override_modifier},[F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:F.Remove_override_modifier,fixId:bK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:F.Remove_override_modifier,fixId:bK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers}},Xo({errorCodes:UBe,getCodeActions:function(u){const{errorCode:s,span:d}=u,f=qBe[s];if(!f)return _t;const{descriptions:p,fixId:E,fixAllDescriptions:v}=f,b=iu.ChangeTracker.with(u,B=>Rat(B,u,s,d.start));return[oBe($Be,b,p,E,v)]},fixIds:[$Be,qM,bK],getAllCodeActions:t=>f0(t,UBe,(u,s)=>{const{code:d,start:f}=s,p=qBe[d];!p||p.fixId!==t.fixId||Rat(u,t,d,f)})})}});function Vat(t,u,s,d){const f=Hm(u,d),p=q.createStringLiteral(s.name.text,f===0);t.replaceNode(u,s,PU(s)?q.createElementAccessChain(s.expression,s.questionDotToken,p):q.createElementAccessExpression(s.expression,p))}function Hat(t,u){return Po(Ca(t,u).parent,Iu)}var g4e,ZBe,IWt=o({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){rr(),rs(),g4e="fixNoPropertyAccessFromIndexSignature",ZBe=[F.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Xo({errorCodes:ZBe,fixIds:[g4e],getCodeActions(t){const{sourceFile:u,span:s,preferences:d}=t,f=Hat(u,s.start),p=iu.ChangeTracker.with(t,E=>Vat(E,t.sourceFile,f,d));return[Ro(g4e,p,[F.Use_element_access_for_0,f.name.text],g4e,F.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:t=>f0(t,ZBe,(u,s)=>Vat(u,s.file,Hat(s.file,s.start),t.preferences))})}});function Kat(t,u,s,d){const f=Ca(u,s);if(!rw(f))return;const p=tf(f,!1,!1);if(!(!ed(p)&&!A0(p))&&!la(tf(p,!1,!1))){const E=H.checkDefined(a0(p,100,u)),{name:v}=p,b=H.checkDefined(p.body);return A0(p)?v&&Z0.Core.isSymbolReferencedInFile(v,d,u,b)?void 0:(t.delete(u,E),v&&t.delete(u,v),t.insertText(u,b.pos," =>"),[F.Convert_function_expression_0_to_arrow_function,v?v.text:KX]):(t.replaceNode(u,E,q.createToken(87)),t.insertText(u,v.end," = "),t.insertText(u,b.pos," =>"),[F.Convert_function_declaration_0_to_arrow_function,v.text])}}var E4e,YBe,RWt=o({"src/services/codefixes/fixImplicitThis.ts"(){rr(),rs(),E4e="fixImplicitThis",YBe=[F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Xo({errorCodes:YBe,getCodeActions:function(u){const{sourceFile:s,program:d,span:f}=u;let p;const E=iu.ChangeTracker.with(u,v=>{p=Kat(v,s,f.start,d.getTypeChecker())});return p?[Ro(E4e,E,p,E4e,F.Fix_all_implicit_this_errors)]:_t},fixIds:[E4e],getAllCodeActions:t=>f0(t,YBe,(u,s)=>{Kat(u,s.file,s.start,t.program.getTypeChecker())})})}});function Wat(t,u,s){var d,f;const p=Ca(t,u);if(at(p)){const E=Tn(p,Sd);if(E===void 0)return;const v=us(E.moduleSpecifier)?E.moduleSpecifier.text:void 0;if(v===void 0)return;const b=(d=s.getResolvedModule(t,v,void 0))==null?void 0:d.resolvedModule;if(b===void 0)return;const B=s.getSourceFile(b.resolvedFileName);if(B===void 0||KM(s,B))return;const k=B.symbol,T=(f=ur(k.valueDeclaration,UE))==null?void 0:f.locals;if(T===void 0)return;const M=T.get(p.escapedText);if(M===void 0)return;const z=jWt(M);return z===void 0?void 0:{exportName:{node:p,isTypeOnly:gB(z)},node:z,moduleSourceFile:B,moduleSpecifier:v}}}function OWt(t,u,{exportName:s,node:d,moduleSourceFile:f}){const p=_4e(f,s.isTypeOnly);p?Gat(t,u,f,p,[s]):rV(d)?t.insertExportModifier(f,d):Jat(t,u,f,[s])}function QBe(t,u,s,d,f){S(d)&&(f?Gat(t,u,s,f,d):Jat(t,u,s,d))}function _4e(t,u){const s=d=>Gc(d)&&(u&&d.isTypeOnly||!d.isTypeOnly);return lt(t.statements,s)}function Gat(t,u,s,d,f){const p=d.exportClause&&ep(d.exportClause)?d.exportClause.elements:q.createNodeArray([]),E=!d.isTypeOnly&&!!(mg(u.getCompilerOptions())||Le(p,v=>v.isTypeOnly));t.replaceNode(s,d,q.updateExportDeclaration(d,d.modifiers,d.isTypeOnly,q.createNamedExports(q.createNodeArray([...p,...$at(f,E)],p.hasTrailingComma)),d.moduleSpecifier,d.attributes))}function Jat(t,u,s,d){t.insertNodeAtEndOfScope(s,s,q.createExportDeclaration(void 0,!1,q.createNamedExports($at(d,mg(u.getCompilerOptions()))),void 0,void 0))}function $at(t,u){return q.createNodeArray(Vt(t,s=>q.createExportSpecifier(u&&s.isTypeOnly,void 0,s.node)))}function jWt(t){if(t.valueDeclaration===void 0)return Ki(t.declarations);const u=t.valueDeclaration,s=na(u)?ur(u.parent.parent,Jl):void 0;return s&&S(s.declarationList.declarations)===1?s:u}var D4e,XBe,VWt=o({"src/services/codefixes/fixImportNonExportedMember.ts"(){rr(),rs(),D4e="fixImportNonExportedMember",XBe=[F.Module_0_declares_1_locally_but_it_is_not_exported.code],Xo({errorCodes:XBe,fixIds:[D4e],getCodeActions(t){const{sourceFile:u,span:s,program:d}=t,f=Wat(u,s.start,d);if(f===void 0)return;const p=iu.ChangeTracker.with(t,E=>OWt(E,d,f));return[Ro(D4e,p,[F.Export_0_from_module_1,f.exportName.node.text,f.moduleSpecifier],D4e,F.Export_all_referenced_locals)]},getAllCodeActions(t){const{program:u}=t;return Ew(iu.ChangeTracker.with(t,s=>{const d=new Map;_w(t,XBe,f=>{const p=Wat(f.file,f.start,u);if(p===void 0)return;const{exportName:E,node:v,moduleSourceFile:b}=p;if(_4e(b,E.isTypeOnly)===void 0&&rV(v))s.insertExportModifier(b,v);else{const B=d.get(b)||{typeOnlyExports:[],exports:[]};E.isTypeOnly?B.typeOnlyExports.push(E):B.exports.push(E),d.set(b,B)}}),d.forEach((f,p)=>{const E=_4e(p,!0);E&&E.isTypeOnly?(QBe(s,u,p,f.typeOnlyExports,E),QBe(s,u,p,f.exports,_4e(p,!1))):QBe(s,u,p,[...f.exports,...f.typeOnlyExports],E)})}))}})}});function HWt(t,u){const s=Ca(t,u);return Tn(s,d=>d.kind===202)}function KWt(t,u,s){if(!s)return;let d=s.type,f=!1,p=!1;for(;d.kind===190||d.kind===191||d.kind===196;)d.kind===190?f=!0:d.kind===191&&(p=!0),d=d.type;const E=q.updateNamedTupleMember(s,s.dotDotDotToken||(p?q.createToken(26):void 0),s.name,s.questionToken||(f?q.createToken(58):void 0),d);E!==s&&t.replaceNode(u,s,E)}var x4e,Uat,WWt=o({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){rr(),rs(),x4e="fixIncorrectNamedTupleSyntax",Uat=[F.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,F.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Xo({errorCodes:Uat,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=HWt(s,d.start),p=iu.ChangeTracker.with(u,E=>KWt(E,s,f));return[Ro(x4e,p,F.Move_labeled_tuple_element_modifiers_to_labels,x4e,F.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[x4e]})}});function qat(t,u,s,d){const f=Ca(t,u),p=f.parent;if((d===F.No_overload_matches_this_call.code||d===F.Type_0_is_not_assignable_to_type_1.code)&&!oE(p))return;const E=s.program.getTypeChecker();let v;if(Iu(p)&&p.name===f){H.assert(J_(f),"Expected an identifier for spelling (property access)");let b=E.getTypeAtLocation(p.expression);p.flags&64&&(b=E.getNonNullableType(b)),v=E.getSuggestedSymbolForNonexistentProperty(f,b)}else if(Xn(p)&&p.operatorToken.kind===103&&p.left===f&&Xr(f)){const b=E.getTypeAtLocation(p.right);v=E.getSuggestedSymbolForNonexistentProperty(f,b)}else if(vf(p)&&p.right===f){const b=E.getSymbolAtLocation(p.left);b&&b.flags&1536&&(v=E.getSuggestedSymbolForNonexistentModule(p.right,b))}else if(bf(p)&&p.name===f){H.assertNode(f,at,"Expected an identifier for spelling (import)");const b=Tn(f,Sd),B=JWt(t,s,b);B&&B.symbol&&(v=E.getSuggestedSymbolForNonexistentModule(f,B.symbol))}else if(oE(p)&&p.name===f){H.assertNode(f,at,"Expected an identifier for JSX attribute");const b=Tn(f,zh),B=E.getContextualTypeForArgumentAtIndex(b,0);v=E.getSuggestedSymbolForNonexistentJSXAttribute(f,B)}else if(Vq(p)&&Zd(p)&&p.name===f){const b=Tn(f,mr),B=b?Qg(b):void 0,k=B?E.getTypeAtLocation(B):void 0;k&&(v=E.getSuggestedSymbolForNonexistentClassMember(Hc(f),k))}else{const b=Pk(f),B=Hc(f);H.assert(B!==void 0,"name should be defined"),v=E.getSuggestedSymbolForNonexistentSymbol(f,B,GWt(b))}return v===void 0?void 0:{node:f,suggestedSymbol:v}}function Zat(t,u,s,d,f){const p=lc(d);if(!Lm(p,f)&&Iu(s.parent)){const E=d.valueDeclaration;E&&mh(E)&&Xr(E.name)?t.replaceNode(u,s,q.createIdentifier(p)):t.replaceNode(u,s.parent,q.createElementAccessExpression(s.parent.expression,q.createStringLiteral(p)))}else t.replaceNode(u,s,q.createIdentifier(p))}function GWt(t){let u=0;return t&4&&(u|=1920),t&2&&(u|=788968),t&1&&(u|=111551),u}function JWt(t,u,s){var d;if(!s||!t0(s.moduleSpecifier))return;const f=(d=u.program.getResolvedModule(t,s.moduleSpecifier.text,xg(t,s.moduleSpecifier)))==null?void 0:d.resolvedModule;if(f)return u.program.getSourceFile(f.resolvedFileName)}var ewe,twe,$Wt=o({"src/services/codefixes/fixSpelling.ts"(){rr(),rs(),ewe="fixSpelling",twe=[F.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,F.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,F.Cannot_find_name_0_Did_you_mean_1.code,F.Could_not_find_name_0_Did_you_mean_1.code,F.Cannot_find_namespace_0_Did_you_mean_1.code,F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,F._0_has_no_exported_member_named_1_Did_you_mean_2.code,F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,F.No_overload_matches_this_call.code,F.Type_0_is_not_assignable_to_type_1.code],Xo({errorCodes:twe,getCodeActions(t){const{sourceFile:u,errorCode:s}=t,d=qat(u,t.span.start,t,s);if(!d)return;const{node:f,suggestedSymbol:p}=d,E=Os(t.host.getCompilationSettings()),v=iu.ChangeTracker.with(t,b=>Zat(b,u,f,p,E));return[Ro("spelling",v,[F.Change_spelling_to_0,lc(p)],ewe,F.Fix_all_detected_spelling_errors)]},fixIds:[ewe],getAllCodeActions:t=>f0(t,twe,(u,s)=>{const d=qat(s.file,s.start,t,s.code),f=Os(t.host.getCompilationSettings());d&&Zat(u,t.sourceFile,d.node,d.suggestedSymbol,f)})})}});function Yat(t,u,s){const d=t.createSymbol(4,u.escapedText);d.links.type=t.getTypeAtLocation(s);const f=Vo([d]);return t.createAnonymousType(void 0,f,[],[],[])}function iwe(t,u,s,d){if(!u.body||!po(u.body)||S(u.body.statements)!==1)return;const f=Pn(u.body.statements);if(Od(f)&&nwe(t,u,t.getTypeAtLocation(f.expression),s,d))return{declaration:u,kind:0,expression:f.expression,statement:f,commentSource:f.expression};if(V2(f)&&Od(f.statement)){const p=q.createObjectLiteralExpression([q.createPropertyAssignment(f.label,f.statement.expression)]),E=Yat(t,f.label,f.statement.expression);if(nwe(t,u,E,s,d))return q0(u)?{declaration:u,kind:1,expression:p,statement:f,commentSource:f.statement.expression}:{declaration:u,kind:0,expression:p,statement:f,commentSource:f.statement.expression}}else if(po(f)&&S(f.statements)===1){const p=Pn(f.statements);if(V2(p)&&Od(p.statement)){const E=q.createObjectLiteralExpression([q.createPropertyAssignment(p.label,p.statement.expression)]),v=Yat(t,p.label,p.statement.expression);if(nwe(t,u,v,s,d))return{declaration:u,kind:0,expression:E,statement:f,commentSource:p}}}}function nwe(t,u,s,d,f){if(f){const p=t.getSignatureFromDeclaration(u);if(p){Yu(u,1024)&&(s=t.createPromiseType(s));const E=t.createSignature(u,p.typeParameters,p.thisParameter,p.parameters,s,void 0,p.minArgumentCount,p.flags);s=t.createAnonymousType(void 0,Vo(),[E],[],[])}else s=t.getAnyType()}return t.isTypeAssignableTo(s,d)}function Qat(t,u,s,d){const f=Ca(u,s);if(!f.parent)return;const p=Tn(f.parent,$0);switch(d){case F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!p||!p.body||!p.type||!Vm(p.type,f)?void 0:iwe(t,p,t.getTypeFromTypeNode(p.type),!1);case F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!p||!Mo(p.parent)||!p.body)return;const E=p.parent.arguments.indexOf(p);if(E===-1)return;const v=t.getContextualTypeForArgumentAtIndex(p.parent,E);return v?iwe(t,p,v,!0):void 0;case F.Type_0_is_not_assignable_to_type_1.code:if(!X3(f)||!G8(f.parent)&&!oE(f.parent))return;const b=UWt(f.parent);return!b||!$0(b)||!b.body?void 0:iwe(t,b,t.getTypeAtLocation(f.parent),!0)}}function UWt(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:return t.initializer;case 291:return t.initializer&&(YP(t.initializer)?t.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function Xat(t,u,s,d){Kf(s);const f=YH(u);t.replaceNode(u,d,q.createReturnStatement(s),{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Exclude,suffix:f?";":void 0})}function eot(t,u,s,d,f,p){const E=p||AX(d)?q.createParenthesizedExpression(d):d;Kf(f),Rk(f,E),t.replaceNode(u,s.body,E)}function tot(t,u,s,d){t.replaceNode(u,s.body,q.createParenthesizedExpression(d))}function qWt(t,u,s){const d=iu.ChangeTracker.with(t,f=>Xat(f,t.sourceFile,u,s));return Ro(v4e,d,F.Add_a_return_statement,C4e,F.Add_all_missing_return_statement)}function ZWt(t,u,s,d){const f=iu.ChangeTracker.with(t,p=>eot(p,t.sourceFile,u,s,d,!1));return Ro(v4e,f,F.Remove_braces_from_arrow_function_body,b4e,F.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function YWt(t,u,s){const d=iu.ChangeTracker.with(t,f=>tot(f,t.sourceFile,u,s));return Ro(v4e,d,F.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,y4e,F.Wrap_all_object_literal_with_parentheses)}var v4e,C4e,b4e,y4e,uwe,QWt=o({"src/services/codefixes/returnValueCorrect.ts"(){rr(),rs(),v4e="returnValueCorrect",C4e="fixAddReturnStatement",b4e="fixRemoveBracesFromArrowFunctionBody",y4e="fixWrapTheBlockWithParen",uwe=[F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,F.Type_0_is_not_assignable_to_type_1.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Xo({errorCodes:uwe,fixIds:[C4e,b4e,y4e],getCodeActions:function(u){const{program:s,sourceFile:d,span:{start:f},errorCode:p}=u,E=Qat(s.getTypeChecker(),d,f,p);if(E)return E.kind===0?xi([qWt(u,E.expression,E.statement)],q0(E.declaration)?ZWt(u,E.declaration,E.expression,E.commentSource):void 0):[YWt(u,E.declaration,E.expression)]},getAllCodeActions:t=>f0(t,uwe,(u,s)=>{const d=Qat(t.program.getTypeChecker(),s.file,s.start,s.code);if(d)switch(t.fixId){case C4e:Xat(u,s.file,d.expression,d.statement);break;case b4e:if(!q0(d.declaration))return;eot(u,s.file,d.declaration,d.expression,d.commentSource,!1);break;case y4e:if(!q0(d.declaration))return;tot(u,s.file,d.declaration,d.expression);break;default:H.fail(JSON.stringify(t.fixId))}})})}});function iot(t,u,s,d,f){var p;const E=Ca(t,u),v=E.parent;if(s===F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(E.kind===19&&ys(v)&&Mo(v.parent)))return;const z=Ue(v.parent.arguments,Y=>Y===v);if(z<0)return;const j=d.getResolvedSignature(v.parent);if(!(j&&j.declaration&&j.parameters[z]))return;const J=j.parameters[z].valueDeclaration;if(!(J&&io(J)&&at(J.name)))return;const K=ga(d.getUnmatchedProperties(d.getTypeAtLocation(v),d.getParameterType(j,z),!1,!1));return S(K)?{kind:3,token:J.name,properties:K,parentDeclaration:v}:void 0}if(!J_(E))return;if(at(E)&&Nx(v)&&v.initializer&&ys(v.initializer)){const z=d.getContextualType(E)||d.getTypeAtLocation(E),j=ga(d.getUnmatchedProperties(d.getTypeAtLocation(v.initializer),z,!1,!1));return S(j)?{kind:3,token:E,properties:j,parentDeclaration:v.initializer}:void 0}if(at(E)&&zh(E.parent)){const z=Os(f.getCompilerOptions()),j=rGt(d,z,E.parent);return S(j)?{kind:4,token:E,attributes:j,parentDeclaration:E.parent}:void 0}if(at(E)){const z=(p=d.getContextualType(E))==null?void 0:p.getNonNullableType();if(z&&Gu(z)&16){const j=Ki(d.getSignaturesOfType(z,0));return j===void 0?void 0:{kind:5,token:E,signature:j,sourceFile:t,parentDeclaration:fot(E)}}if(Mo(v)&&v.expression===E)return{kind:2,token:E,call:v,sourceFile:t,modifierFlags:0,parentDeclaration:fot(E)}}if(!Iu(v))return;const b=nfe(d.getTypeAtLocation(v.expression)),B=b.symbol;if(!B||!B.declarations)return;if(at(E)&&Mo(v.parent)){const z=Le(B.declarations,_c),j=z==null?void 0:z.getSourceFile();if(z&&j&&!KM(f,j))return{kind:2,token:E,call:v.parent,sourceFile:t,modifierFlags:32,parentDeclaration:z};const J=Le(B.declarations,la);if(t.commonJsModuleIndicator)return;if(J&&!KM(f,J))return{kind:2,token:E,call:v.parent,sourceFile:J,modifierFlags:32,parentDeclaration:J}}const k=Le(B.declarations,mr);if(!k&&Xr(E))return;const T=k||Le(B.declarations,z=>xh(z)||fm(z));if(T&&!KM(f,T.getSourceFile())){const z=!fm(T)&&(b.target||b)!==d.getDeclaredTypeOfSymbol(B);if(z&&(Xr(E)||xh(T)))return;const j=T.getSourceFile(),J=fm(T)?0:(z?256:0)|(Afe(E.text)?2:0),K=gh(j),Y=ur(v.parent,Mo);return{kind:0,token:E,call:Y,modifierFlags:J,parentDeclaration:T,declSourceFile:j,isJSFile:K}}const M=Le(B.declarations,Iv);if(M&&!(b.flags&1056)&&!Xr(E)&&!KM(f,M.getSourceFile()))return{kind:1,token:E,parentDeclaration:M}}function XWt(t,u){return u.isJSFile?Hy(eGt(t,u)):tGt(t,u)}function eGt(t,{parentDeclaration:u,declSourceFile:s,modifierFlags:d,token:f}){if(xh(u)||fm(u))return;const p=iu.ChangeTracker.with(t,v=>not(v,s,u,f,!!(d&256)));if(p.length===0)return;const E=d&256?F.Initialize_static_property_0:Xr(f)?F.Declare_a_private_field_named_0:F.Initialize_property_0_in_the_constructor;return Ro(Yx,p,[E,f.text],Yx,F.Add_all_missing_members)}function not(t,u,s,d,f){const p=d.text;if(f){if(s.kind===231)return;const E=s.name.getText(),v=uot(q.createIdentifier(E),p);t.insertNodeAfter(u,s,v)}else if(Xr(d)){const E=q.createPropertyDeclaration(void 0,p,void 0,void 0,void 0),v=oot(s);v?t.insertNodeAfter(u,v,E):t.insertMemberAtStart(u,s,E)}else{const E=X_(s);if(!E)return;const v=uot(q.createThis(),p);t.insertNodeAtConstructorEnd(u,E,v)}}function uot(t,u){return q.createExpressionStatement(q.createAssignment(q.createPropertyAccessExpression(t,u),c9()))}function tGt(t,{parentDeclaration:u,declSourceFile:s,modifierFlags:d,token:f}){const p=f.text,E=d&256,v=rot(t.program.getTypeChecker(),u,f),b=k=>iu.ChangeTracker.with(t,T=>aot(T,s,u,p,v,k)),B=[Ro(Yx,b(d&256),[E?F.Declare_static_property_0:F.Declare_property_0,p],Yx,F.Add_all_missing_members)];return E||Xr(f)||(d&2&&B.unshift(Cg(Yx,b(2),[F.Declare_private_property_0,p])),B.push(iGt(t,s,u,f.text,v))),B}function rot(t,u,s){let d;if(s.parent.parent.kind===226){const f=s.parent.parent,p=s.parent===f.left?f.right:f.left,E=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(p)));d=t.typeToTypeNode(E,u,1)}else{const f=t.getContextualType(s.parent);d=f?t.typeToTypeNode(f,void 0,1):void 0}return d||q.createKeywordTypeNode(133)}function aot(t,u,s,d,f,p){const E=p?q.createNodeArray(q.createModifiersFromModifierFlags(p)):void 0,v=mr(s)?q.createPropertyDeclaration(E,d,void 0,f,void 0):q.createPropertySignature(void 0,d,void 0,f),b=oot(s);b?t.insertNodeAfter(u,b,v):t.insertMemberAtStart(u,s,v)}function oot(t){let u;for(const s of t.members){if(!ko(s))break;u=s}return u}function iGt(t,u,s,d,f){const p=q.createKeywordTypeNode(154),E=q.createParameterDeclaration(void 0,void 0,"x",void 0,p,void 0),v=q.createIndexSignature(void 0,[E],f),b=iu.ChangeTracker.with(t,B=>B.insertMemberAtStart(u,s,v));return Cg(Yx,b,[F.Add_index_signature_for_property_0,d])}function nGt(t,u){const{parentDeclaration:s,declSourceFile:d,modifierFlags:f,token:p,call:E}=u;if(E===void 0)return;const v=p.text,b=k=>iu.ChangeTracker.with(t,T=>sot(t,T,E,p,k,s,d)),B=[Ro(Yx,b(f&256),[f&256?F.Declare_static_method_0:F.Declare_method_0,v],Yx,F.Add_all_missing_members)];return f&2&&B.unshift(Cg(Yx,b(2),[F.Declare_private_method_0,v])),B}function sot(t,u,s,d,f,p,E){const v=l9(E,t.program,t.preferences,t.host),b=mr(p)?174:173,B=Vwe(b,t,v,s,d,f,p),k=aGt(p,s);k?u.insertNodeAfter(E,k,B):u.insertMemberAtStart(E,p,B),v.writeFixes(u)}function lot(t,u,{token:s,parentDeclaration:d}){const f=Oe(d.members,E=>{const v=u.getTypeAtLocation(E);return!!(v&&v.flags&402653316)}),p=q.createEnumMember(s,f?q.createStringLiteral(s.text):void 0);t.replaceNode(d.getSourceFile(),d,q.updateEnumDeclaration(d,d.modifiers,d.name,Hi(d.members,Hy(p))),{leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Exclude})}function cot(t,u,s){const d=Hm(u.sourceFile,u.preferences),f=l9(u.sourceFile,u.program,u.preferences,u.host),p=s.kind===2?Vwe(262,u,f,s.call,fu(s.token),s.modifierFlags,s.parentDeclaration):Z4e(262,u,d,s.signature,Bee(F.Function_not_implemented.message,d),s.token,void 0,void 0,void 0,f);p===void 0&&H.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Op(s.parentDeclaration)?t.insertNodeBefore(s.sourceFile,s.parentDeclaration,p,!0):t.insertNodeAtEndOfScope(s.sourceFile,s.parentDeclaration,p),f.writeFixes(t)}function dot(t,u,s){const d=l9(u.sourceFile,u.program,u.preferences,u.host),f=Hm(u.sourceFile,u.preferences),p=u.program.getTypeChecker(),E=s.parentDeclaration.attributes,v=Oe(E.properties,H7),b=Vt(s.attributes,T=>{const M=k4e(u,p,d,f,p.getTypeOfSymbol(T),s.parentDeclaration),z=q.createIdentifier(T.name),j=q.createJsxAttribute(z,q.createJsxExpression(void 0,M));return ks(z,j),j}),B=q.createJsxAttributes(v?[...b,...E.properties]:[...E.properties,...b]),k={prefix:E.pos===E.end?" ":void 0};t.replaceNode(u.sourceFile,E,B,k),d.writeFixes(t)}function hot(t,u,s){const d=l9(u.sourceFile,u.program,u.preferences,u.host),f=Hm(u.sourceFile,u.preferences),p=Os(u.program.getCompilerOptions()),E=u.program.getTypeChecker(),v=Vt(s.properties,B=>{const k=k4e(u,E,d,f,E.getTypeOfSymbol(B),s.parentDeclaration);return q.createPropertyAssignment(oGt(B,p,f,E),k)}),b={leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Exclude,indentation:s.indentation};t.replaceNode(u.sourceFile,s.parentDeclaration,q.createObjectLiteralExpression([...s.parentDeclaration.properties,...v],!0),b),d.writeFixes(t)}function k4e(t,u,s,d,f,p){if(f.flags&3)return c9();if(f.flags&134217732)return q.createStringLiteral("",d===0);if(f.flags&8)return q.createNumericLiteral(0);if(f.flags&64)return q.createBigIntLiteral("0n");if(f.flags&16)return q.createFalse();if(f.flags&1056){const E=f.symbol.exports?Hn(f.symbol.exports.values()):f.symbol,v=u.symbolToExpression(f.symbol.parent?f.symbol.parent:f.symbol,111551,void 0,void 0);return E===void 0||v===void 0?q.createNumericLiteral(0):q.createPropertyAccessExpression(v,u.symbolToString(E))}if(f.flags&256)return q.createNumericLiteral(f.value);if(f.flags&2048)return q.createBigIntLiteral(f.value);if(f.flags&128)return q.createStringLiteral(f.value,d===0);if(f.flags&512)return f===u.getFalseType()||f===u.getFalseType(!0)?q.createFalse():q.createTrue();if(f.flags&65536)return q.createNull();if(f.flags&1048576)return G(f.types,v=>k4e(t,u,s,d,v,p))??c9();if(u.isArrayLikeType(f))return q.createArrayLiteralExpression();if(uGt(f)){const E=Vt(u.getPropertiesOfType(f),v=>{const b=k4e(t,u,s,d,u.getTypeOfSymbol(v),p);return q.createPropertyAssignment(v.name,b)});return q.createObjectLiteralExpression(E,!0)}if(Gu(f)&16){if(Le(f.symbol.declarations||_t,dg(u3,n3,dc))===void 0)return c9();const v=u.getSignaturesOfType(f,0);return v===void 0?c9():Z4e(218,t,d,v[0],Bee(F.Function_not_implemented.message,d),void 0,void 0,void 0,p,s)??c9()}if(Gu(f)&1){const E=tD(f.symbol);if(E===void 0||P2(E))return c9();const v=X_(E);return v&&S(v.parameters)?c9():q.createNewExpression(q.createIdentifier(f.symbol.name),void 0,void 0)}return c9()}function c9(){return q.createIdentifier("undefined")}function uGt(t){return t.flags&524288&&(Gu(t)&128||t.symbol&&ur(Aa(t.symbol.declarations),fm))}function rGt(t,u,s){const d=t.getContextualType(s.attributes);if(d===void 0)return _t;const f=d.getProperties();if(!S(f))return _t;const p=new Set;for(const E of s.attributes.properties)if(oE(E)&&p.add(MP(E.name)),H7(E)){const v=t.getTypeAtLocation(E.expression);for(const b of v.getProperties())p.add(b.escapedName)}return ti(f,E=>Lm(E.name,u,1)&&!(E.flags&16777216||Gl(E)&48||p.has(E.escapedName)))}function aGt(t,u){if(fm(t))return;const s=Tn(u,d=>dc(d)||hc(d));return s&&s.parent===t?s:void 0}function oGt(t,u,s,d){if(qE(t)){const f=d.symbolToNode(t,111551,void 0,1073741824);if(f&&Ps(f))return f}return mZ(t.name,u,s===0,!1,!1)}function fot(t){if(Tn(t,YP)){const u=Tn(t.parent,Op);if(u)return u}return zn(t)}var Yx,bee,yee,kee,rwe,sGt=o({"src/services/codefixes/fixAddMissingMember.ts"(){rr(),rs(),Yx="fixMissingMember",bee="fixMissingProperties",yee="fixMissingAttributes",kee="fixMissingFunctionDeclaration",rwe=[F.Property_0_does_not_exist_on_type_1.code,F.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,F.Property_0_is_missing_in_type_1_but_required_in_type_2.code,F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Cannot_find_name_0.code],Xo({errorCodes:rwe,getCodeActions(t){const u=t.program.getTypeChecker(),s=iot(t.sourceFile,t.span.start,t.errorCode,u,t.program);if(s){if(s.kind===3){const d=iu.ChangeTracker.with(t,f=>hot(f,t,s));return[Ro(bee,d,F.Add_missing_properties,bee,F.Add_all_missing_properties)]}if(s.kind===4){const d=iu.ChangeTracker.with(t,f=>dot(f,t,s));return[Ro(yee,d,F.Add_missing_attributes,yee,F.Add_all_missing_attributes)]}if(s.kind===2||s.kind===5){const d=iu.ChangeTracker.with(t,f=>cot(f,t,s));return[Ro(kee,d,[F.Add_missing_function_declaration_0,s.token.text],kee,F.Add_all_missing_function_declarations)]}if(s.kind===1){const d=iu.ChangeTracker.with(t,f=>lot(f,t.program.getTypeChecker(),s));return[Ro(Yx,d,[F.Add_missing_enum_member_0,s.token.text],Yx,F.Add_all_missing_members)]}return Hi(nGt(t,s),XWt(t,s))}},fixIds:[Yx,kee,bee,yee],getAllCodeActions:t=>{const{program:u,fixId:s}=t,d=u.getTypeChecker(),f=new Map,p=new Map;return Ew(iu.ChangeTracker.with(t,E=>{_w(t,rwe,v=>{const b=iot(v.file,v.start,v.code,d,t.program);if(!(!b||!Ip(f,$s(b.parentDeclaration)+"#"+b.token.text))){if(s===kee&&(b.kind===2||b.kind===5))cot(E,t,b);else if(s===bee&&b.kind===3)hot(E,t,b);else if(s===yee&&b.kind===4)dot(E,t,b);else if(b.kind===1&&lot(E,d,b),b.kind===0){const{parentDeclaration:B,token:k}=b,T=W0(p,B,()=>[]);T.some(M=>M.token.text===k.text)||T.push(b)}}}),p.forEach((v,b)=>{const B=fm(b)?void 0:qwe(b,d);for(const k of v){if(B!=null&&B.some(Y=>{const oe=p.get(Y);return!!oe&&oe.some(({token:se})=>se.text===k.token.text)}))continue;const{parentDeclaration:T,declSourceFile:M,modifierFlags:z,token:j,call:J,isJSFile:K}=k;if(J&&!Xr(j))sot(t,E,J,j,z&256,T,M);else if(K&&!xh(T)&&!fm(T))not(E,M,T,j,!!(z&256));else{const Y=rot(d,T,j);aot(E,M,T,j.text,Y,z&256)}}})}))}})}});function mot(t,u,s){const d=Po(lGt(u,s),Mo),f=q.createNewExpression(d.expression,d.typeArguments,d.arguments);t.replaceNode(u,d,f)}function lGt(t,u){let s=Ca(t,u.start);const d=Ec(u);for(;s.endmot(f,u,s));return[Ro(F4e,d,F.Add_missing_new_operator_to_call,F4e,F.Add_missing_new_operator_to_all_calls)]},fixIds:[F4e],getAllCodeActions:t=>f0(t,awe,(u,s)=>mot(u,t.sourceFile,s))})}});function pot(t,u){return{type:"install package",file:t,packageName:u}}function got(t,u){const s=ur(Ca(t,u),us);if(!s)return;const d=s.text,{packageName:f}=oH(d);return Id(f)?void 0:f}function Eot(t,u,s){var d;return s===owe?o3.nodeCoreModules.has(t)?"@types/node":void 0:(d=u.isKnownTypesPackageName)!=null&&d.call(u,t)?$Y(t):void 0}var _ot,A4e,owe,swe,dGt=o({"src/services/codefixes/fixCannotFindModule.ts"(){rr(),rs(),_ot="fixCannotFindModule",A4e="installTypesPackage",owe=F.Cannot_find_module_0_or_its_corresponding_type_declarations.code,swe=[owe,F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Xo({errorCodes:swe,getCodeActions:function(u){const{host:s,sourceFile:d,span:{start:f}}=u,p=got(d,f);if(p===void 0)return;const E=Eot(p,s,u.errorCode);return E===void 0?[]:[Ro(_ot,[],[F.Install_0,E],A4e,F.Install_all_missing_types_packages,pot(d.fileName,E))]},fixIds:[A4e],getAllCodeActions:t=>f0(t,swe,(u,s,d)=>{const f=got(s.file,s.start);if(f!==void 0)switch(t.fixId){case A4e:{const p=Eot(f,t.host,s.code);p&&d.push(pot(s.file.fileName,p));break}default:H.fail(`Bad fixId: ${t.fixId}`)}})})}});function Dot(t,u){const s=Ca(t,u);return Po(s.parent,mr)}function xot(t,u,s,d,f){const p=Qg(t),E=s.program.getTypeChecker(),v=E.getTypeAtLocation(p),b=E.getPropertiesOfType(v).filter(hGt),B=l9(u,s.program,f,s.host);jwe(t,b,u,s,f,B,k=>d.insertMemberAtStart(u,t,k)),B.writeFixes(d)}function hGt(t){const u=Rx(Pn(t.getDeclarations()));return!(u&2)&&!!(u&64)}var lwe,S4e,fGt=o({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){rr(),rs(),lwe=[F.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],S4e="fixClassDoesntImplementInheritedAbstractMember",Xo({errorCodes:lwe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=iu.ChangeTracker.with(u,p=>xot(Dot(s,d.start),s,u,p,u.preferences));return f.length===0?void 0:[Ro(S4e,f,F.Implement_inherited_abstract_class,S4e,F.Implement_all_inherited_abstract_classes)]},fixIds:[S4e],getAllCodeActions:function(u){const s=new Map;return f0(u,lwe,(d,f)=>{const p=Dot(f.file,f.start);Ip(s,$s(p))&&xot(p,u.sourceFile,u,d,u.preferences)})}})}});function vot(t,u,s,d){t.insertNodeAtConstructorStart(u,s,d),t.delete(u,d)}function Cot(t,u){const s=Ca(t,u);if(s.kind!==110)return;const d=Nm(s),f=bot(d.body);return f&&!f.expression.arguments.some(p=>Iu(p)&&p.expression===s)?{constructor:d,superCall:f}:void 0}function bot(t){return Od(t)&&ik(t.expression)?t:Co(t)?void 0:ao(t,bot)}var B4e,cwe,mGt=o({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){rr(),rs(),B4e="classSuperMustPrecedeThisAccess",cwe=[F.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Xo({errorCodes:cwe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=Cot(u,s.start);if(!d)return;const{constructor:f,superCall:p}=d,E=iu.ChangeTracker.with(t,v=>vot(v,u,f,p));return[Ro(B4e,E,F.Make_super_call_the_first_statement_in_the_constructor,B4e,F.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[B4e],getAllCodeActions(t){const{sourceFile:u}=t,s=new Map;return f0(t,cwe,(d,f)=>{const p=Cot(f.file,f.start);if(!p)return;const{constructor:E,superCall:v}=p;Ip(s,$s(E.parent))&&vot(d,u,E,v)})}})}});function yot(t,u){const s=Ca(t,u);return H.assert(hc(s.parent),"token should be at the constructor declaration"),s.parent}function kot(t,u,s){const d=q.createExpressionStatement(q.createCallExpression(q.createSuper(),void 0,_t));t.insertNodeAtConstructorStart(u,s,d)}var w4e,dwe,pGt=o({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){rr(),rs(),w4e="constructorForDerivedNeedSuperCall",dwe=[F.Constructors_for_derived_classes_must_contain_a_super_call.code],Xo({errorCodes:dwe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=yot(u,s.start),f=iu.ChangeTracker.with(t,p=>kot(p,u,d));return[Ro(w4e,f,F.Add_missing_super_call,w4e,F.Add_all_missing_super_calls)]},fixIds:[w4e],getAllCodeActions:t=>f0(t,dwe,(u,s)=>kot(u,t.sourceFile,yot(s.file,s.start)))})}});function Fot(t,u){Gwe(t,u,"jsx",q.createStringLiteral("react"))}var hwe,fwe,gGt=o({"src/services/codefixes/fixEnableJsxFlag.ts"(){rr(),rs(),hwe="fixEnableJsxFlag",fwe=[F.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Xo({errorCodes:fwe,getCodeActions:function(u){const{configFile:s}=u.program.getCompilerOptions();if(s===void 0)return;const d=iu.ChangeTracker.with(u,f=>Fot(f,s));return[Cg(hwe,d,F.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[hwe],getAllCodeActions:t=>f0(t,fwe,u=>{const{configFile:s}=t.program.getCompilerOptions();s!==void 0&&Fot(u,s)})})}});function Aot(t,u,s){const d=Le(t.getSemanticDiagnostics(u),E=>E.start===s.start&&E.length===s.length);if(d===void 0||d.relatedInformation===void 0)return;const f=Le(d.relatedInformation,E=>E.code===F.Did_you_mean_0.code);if(f===void 0||f.file===void 0||f.start===void 0||f.length===void 0)return;const p=$we(f.file,d1(f.start,f.length));if(p!==void 0&&Wt(p)&&Xn(p.parent))return{suggestion:EGt(f.messageText),expression:p.parent,arg:p}}function Sot(t,u,s,d){const f=q.createCallExpression(q.createPropertyAccessExpression(q.createIdentifier("Number"),q.createIdentifier("isNaN")),void 0,[s]),p=d.operatorToken.kind;t.replaceNode(u,d,p===38||p===36?q.createPrefixUnaryExpression(54,f):f)}function EGt(t){const[u,s]=lE(t,` +`,0).match(/'(.*)'/)||[];return s}var T4e,mwe,_Gt=o({"src/services/codefixes/fixNaNEquality.ts"(){rr(),rs(),T4e="fixNaNEquality",mwe=[F.This_condition_will_always_return_0.code],Xo({errorCodes:mwe,getCodeActions(t){const{sourceFile:u,span:s,program:d}=t,f=Aot(d,u,s);if(f===void 0)return;const{suggestion:p,expression:E,arg:v}=f,b=iu.ChangeTracker.with(t,B=>Sot(B,u,v,E));return[Ro(T4e,b,[F.Use_0,p],T4e,F.Use_Number_isNaN_in_all_conditions)]},fixIds:[T4e],getAllCodeActions:t=>f0(t,mwe,(u,s)=>{const d=Aot(t.program,s.file,d1(s.start,s.length));d&&Sot(u,s.file,d.arg,d.expression)})})}}),DGt=o({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){rr(),rs(),Xo({errorCodes:[F.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,F.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,F.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(u){const s=u.program.getCompilerOptions(),{configFile:d}=s;if(d===void 0)return;const f=[],p=m1(s);if(p>=5&&p<99){const B=iu.ChangeTracker.with(u,k=>{Gwe(k,d,"module",q.createStringLiteral("esnext"))});f.push(Cg("fixModuleOption",B,[F.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const v=Os(s);if(v<4||v>99){const B=iu.ChangeTracker.with(u,k=>{if(!ZN(d))return;const M=[["target",q.createStringLiteral("es2017")]];p===1&&M.push(["module",q.createStringLiteral("commonjs")]),Wwe(k,d,M)});f.push(Cg("fixTargetOption",B,[F.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return f.length?f:void 0}})}});function Bot(t,u,s){t.replaceNode(u,s,q.createPropertyAssignment(s.name,s.objectAssignmentInitializer))}function wot(t,u){return Po(Ca(t,u).parent,pm)}var L4e,pwe,xGt=o({"src/services/codefixes/fixPropertyAssignment.ts"(){rr(),rs(),L4e="fixPropertyAssignment",pwe=[F.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code],Xo({errorCodes:pwe,fixIds:[L4e],getCodeActions(t){const{sourceFile:u,span:s}=t,d=wot(u,s.start),f=iu.ChangeTracker.with(t,p=>Bot(p,t.sourceFile,d));return[Ro(L4e,f,[F.Change_0_to_1,"=",":"],L4e,[F.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:t=>f0(t,pwe,(u,s)=>Bot(u,s.file,wot(s.file,s.start)))})}});function Tot(t,u){const s=Ca(t,u),d=Yd(s).heritageClauses,f=d[0].getFirstToken();return f.kind===96?{extendsToken:f,heritageClauses:d}:void 0}function Lot(t,u,s,d){if(t.replaceNode(u,s,q.createToken(119)),d.length===2&&d[0].token===96&&d[1].token===119){const f=d[1].getFirstToken(),p=f.getFullStart();t.replaceRange(u,{pos:p,end:p},q.createToken(28));const E=u.text;let v=f.end;for(;vLot(E,u,d,f));return[Ro(N4e,p,F.Change_extends_to_implements,N4e,F.Change_all_extended_interfaces_to_implements)]},fixIds:[N4e],getAllCodeActions:t=>f0(t,gwe,(u,s)=>{const d=Tot(s.file,s.start);d&&Lot(u,s.file,d.extendsToken,d.heritageClauses)})})}});function Not(t,u,s){const d=Ca(t,u);if(at(d)||Xr(d))return{node:d,className:s===Ewe?Yd(d).name.text:void 0}}function Pot(t,u,{node:s,className:d}){Kf(s),t.replaceNode(u,s,q.createPropertyAccessExpression(d?q.createIdentifier(d):q.createThis(),s))}var P4e,Ewe,_we,CGt=o({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){rr(),rs(),P4e="forgottenThisPropertyAccess",Ewe=F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_we=[F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,F.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression.code,Ewe],Xo({errorCodes:_we,getCodeActions(t){const{sourceFile:u}=t,s=Not(u,t.span.start,t.errorCode);if(!s)return;const d=iu.ChangeTracker.with(t,f=>Pot(f,u,s));return[Ro(P4e,d,[F.Add_0_to_unresolved_variable,s.className||"this"],P4e,F.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[P4e],getAllCodeActions:t=>f0(t,_we,(u,s)=>{const d=Not(s.file,s.start,s.code);d&&Pot(u,t.sourceFile,d)})})}});function bGt(t){return gu(vwe,t)}function Dwe(t,u,s,d,f){const p=s.getText()[d];if(!bGt(p))return;const E=f?vwe[p]:`{${jM(s,u,p)}}`;t.replaceRangeWithText(s,{pos:d,end:d+1},E)}var M4e,Fee,xwe,vwe,yGt=o({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){rr(),rs(),M4e="fixInvalidJsxCharacters_expression",Fee="fixInvalidJsxCharacters_htmlEntity",xwe=[F.Unexpected_token_Did_you_mean_or_gt.code,F.Unexpected_token_Did_you_mean_or_rbrace.code],Xo({errorCodes:xwe,fixIds:[M4e,Fee],getCodeActions(t){const{sourceFile:u,preferences:s,span:d}=t,f=iu.ChangeTracker.with(t,E=>Dwe(E,s,u,d.start,!1)),p=iu.ChangeTracker.with(t,E=>Dwe(E,s,u,d.start,!0));return[Ro(M4e,f,F.Wrap_invalid_character_in_an_expression_container,M4e,F.Wrap_all_invalid_characters_in_an_expression_container),Ro(Fee,p,F.Convert_invalid_character_to_its_html_entity_code,Fee,F.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(t){return f0(t,xwe,(u,s)=>Dwe(u,t.preferences,s.file,s.start,t.fixId===Fee))}}),vwe={">":">","}":"}"}}});function kGt(t,{name:u,jsDocHost:s,jsDocParameterTag:d}){const f=iu.ChangeTracker.with(t,p=>p.filterJSDocTags(t.sourceFile,s,E=>E!==d));return Ro(Aee,f,[F.Delete_unused_param_tag_0,u.getText(t.sourceFile)],Aee,F.Delete_all_unused_param_tags)}function FGt(t,{name:u,jsDocHost:s,signature:d,jsDocParameterTag:f}){if(!S(d.parameters))return;const p=t.sourceFile,E=Cv(d),v=new Set;for(const T of E)Eg(T)&&at(T.name)&&v.add(T.name.escapedText);const b=G(d.parameters,T=>at(T.name)&&!v.has(T.name.escapedText)?T.name.getText(p):void 0);if(b===void 0)return;const B=q.updateJSDocParameterTag(f,f.tagName,q.createIdentifier(b),f.isBracketed,f.typeExpression,f.isNameFirst,f.comment),k=iu.ChangeTracker.with(t,T=>T.replaceJSDocComment(p,s,Vt(E,M=>M===f?B:M)));return Cg(Cwe,k,[F.Rename_param_tag_name_0_to_1,u.getText(p),b])}function Mot(t,u){const s=Ca(t,u);if(s.parent&&Eg(s.parent)&&at(s.parent.name)){const d=s.parent,f=h7(d),p=kv(d);if(f&&p)return{jsDocHost:f,signature:p,name:s.parent.name,jsDocParameterTag:d}}}var Aee,Cwe,bwe,AGt=o({"src/services/codefixes/fixUnmatchedParameter.ts"(){rr(),rs(),Aee="deleteUnmatchedParameter",Cwe="renameUnmatchedParameter",bwe=[F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Xo({fixIds:[Aee,Cwe],errorCodes:bwe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=[],p=Mot(s,d.start);if(p)return xi(f,kGt(u,p)),xi(f,FGt(u,p)),f},getAllCodeActions:function(u){const s=new Map;return Ew(iu.ChangeTracker.with(u,d=>{_w(u,bwe,({file:f,start:p})=>{const E=Mot(f,p);E&&s.set(E.signature,xi(s.get(E.signature),E.jsDocParameterTag))}),s.forEach((f,p)=>{if(u.fixId===Aee){const E=new Set(f);d.filterJSDocTags(p.getSourceFile(),p,v=>!E.has(v))}})}))}})}});function SGt(t,u,s){const d=ur(Ca(t,s),at);if(!d||d.parent.kind!==183)return;const p=u.getTypeChecker().getSymbolAtLocation(d);return Le((p==null?void 0:p.declarations)||_t,dg(n_,bf,E1))}function BGt(t,u,s,d){if(s.kind===271){t.insertModifierBefore(u,156,s.name);return}const f=s.kind===273?s:s.parent.parent;if(f.name&&f.namedBindings)return;const p=d.getTypeChecker();Fq(f,v=>{if(X1(v.symbol,p).flags&111551)return!0})||t.insertModifierBefore(u,156,f)}function wGt(t,u,s,d){a9.doChangeNamedToNamespaceOrDefault(u,d,t,s.parent)}var z4e,zot,TGt=o({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){rr(),rs(),z4e="fixUnreferenceableDecoratorMetadata",zot=[F.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Xo({errorCodes:zot,getCodeActions:t=>{const u=SGt(t.sourceFile,t.program,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,p=>u.kind===276&&wGt(p,t.sourceFile,u,t.program)),d=iu.ChangeTracker.with(t,p=>BGt(p,t.sourceFile,u,t.program));let f;return s.length&&(f=xi(f,Cg(z4e,s,F.Convert_named_imports_to_namespace_import))),d.length&&(f=xi(f,Cg(z4e,d,F.Use_import_type))),f},fixIds:[z4e]})}});function Iot(t,u,s){t.replaceNode(u,s.parent,q.createKeywordTypeNode(159))}function yK(t,u){return Ro(kK,t,u,O4e,F.Delete_all_unused_declarations)}function Rot(t,u,s){t.delete(u,H.checkDefined(Po(s.parent,v0e).typeParameters,"The type parameter to delete should exist"))}function ywe(t){return t.kind===102||t.kind===80&&(t.parent.kind===276||t.parent.kind===273)}function Oot(t){return t.kind===102?ur(t.parent,Sd):void 0}function jot(t,u){return Ad(u.parent)&&Pn(u.parent.getChildren(t))===u}function Vot(t,u,s){t.delete(u,s.parent.kind===243?s.parent:s)}function LGt(t,u,s){L(s.elements,d=>t.delete(u,d))}function NGt(t,u,s,{parent:d}){if(na(d)&&d.initializer&&D2(d.initializer))if(Ad(d.parent)&&S(d.parent.declarations)>1){const f=d.parent.parent,p=f.getStart(s),E=f.end;u.delete(s,d),u.insertNodeAt(s,E,d.initializer,{prefix:E5(t.host,t.formatContext.options)+s.text.slice(FX(s.text,p-1),p),suffix:YH(s)?";":""})}else u.replaceNode(s,d.parent,d.initializer);else u.delete(s,d)}function Hot(t,u,s,d){u!==F.Property_0_is_declared_but_its_value_is_never_read.code&&(d.kind===140&&(d=Po(d.parent,P7).typeParameter.name),at(d)&&PGt(d)&&(t.replaceNode(s,d,q.createIdentifier(`_${d.text}`)),io(d.parent)&&B8(d.parent).forEach(f=>{at(f.name)&&t.replaceNode(s,f.name,q.createIdentifier(`_${f.name.text}`))})))}function PGt(t){switch(t.parent.kind){case 169:case 168:return!0;case 260:switch(t.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function I4e(t,u,s,d,f,p,E,v){MGt(u,s,t,d,f,p,E,v),at(u)&&Z0.Core.eachSymbolReferenceInFile(u,d,t,b=>{Iu(b.parent)&&b.parent.name===b&&(b=b.parent),!v&&OGt(b)&&s.delete(t,b.parent.parent)})}function MGt(t,u,s,d,f,p,E,v){const{parent:b}=t;if(io(b))zGt(u,s,b,d,f,p,E,v);else if(!(v&&at(t)&&Z0.Core.isSymbolReferencedInFile(t,d,s))){const B=n_(b)?t:Ps(b)?b.parent:b;H.assert(B!==s,"should not delete whole source file"),u.delete(s,B)}}function zGt(t,u,s,d,f,p,E,v=!1){if(IGt(d,u,s,f,p,E,v))if(s.modifiers&&s.modifiers.length>0&&(!at(s.name)||Z0.Core.isSymbolReferencedInFile(s.name,d,u)))for(const b of s.modifiers)Qo(b)&&t.deleteModifier(u,b);else!s.initializer&&Kot(s,d,f)&&t.delete(u,s)}function Kot(t,u,s){const d=t.parent.parameters.indexOf(t);return!Z0.Core.someSignatureUsage(t.parent,s,u,(f,p)=>!p||p.arguments.length>d)}function IGt(t,u,s,d,f,p,E){const{parent:v}=s;switch(v.kind){case 174:case 176:const b=v.parameters.indexOf(s),B=dc(v)?v.name:v,k=Z0.Core.getReferencedSymbolsForNode(v.pos,B,f,d,p);if(k){for(const T of k)for(const M of T.references)if(M.kind===Z0.EntryKind.Node){const z=HP(M.node)&&Mo(M.node.parent)&&M.node.parent.arguments.length>b,j=Iu(M.node.parent)&&HP(M.node.parent.expression)&&Mo(M.node.parent.parent)&&M.node.parent.parent.arguments.length>b,J=(dc(M.node.parent)||n3(M.node.parent))&&M.node.parent!==s.parent&&M.node.parent.parameters.length>b;if(z||j||J)return!1}}return!0;case 262:return v.name&&RGt(t,u,v.name)?Wot(v,s,E):!0;case 218:case 219:return Wot(v,s,E);case 178:return!1;case 177:return!0;default:return H.failBadSyntaxKind(v)}}function RGt(t,u,s){return!!Z0.Core.eachSymbolReferenceInFile(s,t,u,d=>at(d)&&Mo(d.parent)&&d.parent.arguments.includes(d))}function Wot(t,u,s){const d=t.parameters,f=d.indexOf(u);return H.assert(f!==-1,"The parameter should already be in the list"),s?d.slice(f+1).every(p=>at(p.name)&&!p.symbol.isReferenced):f===d.length-1}function OGt(t){return(Xn(t.parent)&&t.parent.left===t||(vce(t.parent)||zv(t.parent))&&t.parent.operand===t)&&Od(t.parent.parent)}var kK,R4e,O4e,See,j4e,kwe,jGt=o({"src/services/codefixes/fixUnusedIdentifier.ts"(){rr(),rs(),kK="unusedIdentifier",R4e="unusedIdentifier_prefix",O4e="unusedIdentifier_delete",See="unusedIdentifier_deleteImports",j4e="unusedIdentifier_infer",kwe=[F._0_is_declared_but_its_value_is_never_read.code,F._0_is_declared_but_never_used.code,F.Property_0_is_declared_but_its_value_is_never_read.code,F.All_imports_in_import_declaration_are_unused.code,F.All_destructured_elements_are_unused.code,F.All_variables_are_unused.code,F.All_type_parameters_are_unused.code],Xo({errorCodes:kwe,getCodeActions(t){const{errorCode:u,sourceFile:s,program:d,cancellationToken:f}=t,p=d.getTypeChecker(),E=d.getSourceFiles(),v=Ca(s,t.span.start);if(_g(v))return[yK(iu.ChangeTracker.with(t,T=>T.delete(s,v)),F.Remove_template_tag)];if(v.kind===30){const T=iu.ChangeTracker.with(t,M=>Rot(M,s,v));return[yK(T,F.Remove_type_parameters)]}const b=Oot(v);if(b){const T=iu.ChangeTracker.with(t,M=>M.delete(s,b));return[Ro(kK,T,[F.Remove_import_from_0,$ye(b)],See,F.Delete_all_unused_imports)]}else if(ywe(v)){const T=iu.ChangeTracker.with(t,M=>I4e(s,v,M,p,E,d,f,!1));if(T.length)return[Ro(kK,T,[F.Remove_unused_declaration_for_Colon_0,v.getText(s)],See,F.Delete_all_unused_imports)]}if(Rp(v.parent)||_k(v.parent)){if(io(v.parent.parent)){const T=v.parent.elements,M=[T.length>1?F.Remove_unused_declarations_for_Colon_0:F.Remove_unused_declaration_for_Colon_0,Vt(T,z=>z.getText(s)).join(", ")];return[yK(iu.ChangeTracker.with(t,z=>LGt(z,s,v.parent)),M)]}return[yK(iu.ChangeTracker.with(t,T=>NGt(t,T,s,v.parent)),F.Remove_unused_destructuring_declaration)]}if(jot(s,v))return[yK(iu.ChangeTracker.with(t,T=>Vot(T,s,v.parent)),F.Remove_variable_statement)];const B=[];if(v.kind===140){const T=iu.ChangeTracker.with(t,z=>Iot(z,s,v)),M=Po(v.parent,P7).typeParameter.name.text;B.push(Ro(kK,T,[F.Replace_infer_0_with_unknown,M],j4e,F.Replace_all_unused_infer_with_unknown))}else{const T=iu.ChangeTracker.with(t,M=>I4e(s,v,M,p,E,d,f,!1));if(T.length){const M=Ps(v.parent)?v.parent:v;B.push(yK(T,[F.Remove_unused_declaration_for_Colon_0,M.getText(s)]))}}const k=iu.ChangeTracker.with(t,T=>Hot(T,u,s,v));return k.length&&B.push(Ro(kK,k,[F.Prefix_0_with_an_underscore,v.getText(s)],R4e,F.Prefix_all_unused_declarations_with_where_possible)),B},fixIds:[R4e,O4e,See,j4e],getAllCodeActions:t=>{const{sourceFile:u,program:s,cancellationToken:d}=t,f=s.getTypeChecker(),p=s.getSourceFiles();return f0(t,kwe,(E,v)=>{const b=Ca(u,v.start);switch(t.fixId){case R4e:Hot(E,v.code,u,b);break;case See:{const B=Oot(b);B?E.delete(u,B):ywe(b)&&I4e(u,b,E,f,p,s,d,!0);break}case O4e:{if(b.kind===140||ywe(b))break;if(_g(b))E.delete(u,b);else if(b.kind===30)Rot(E,u,b);else if(Rp(b.parent)){if(b.parent.parent.initializer)break;(!io(b.parent.parent)||Kot(b.parent.parent,f,p))&&E.delete(u,b.parent.parent)}else{if(_k(b.parent.parent)&&b.parent.parent.parent.initializer)break;jot(u,b)?Vot(E,u,b.parent):I4e(u,b,E,f,p,s,d,!0)}break}case j4e:b.kind===140&&Iot(E,u,b);break;default:H.fail(JSON.stringify(t.fixId))}})}})}});function Got(t,u,s,d,f){const p=Ca(u,s),E=Tn(p,ia);if(E.getStart(u)!==p.getStart(u)){const b=JSON.stringify({statementKind:H.formatSyntaxKind(E.kind),tokenKind:H.formatSyntaxKind(p.kind),errorCode:f,start:s,length:d});H.fail("Token and statement should start at the same point. "+b)}const v=(po(E.parent)?E.parent:E).parent;if(!po(E.parent)||E===Pn(E.parent.statements))switch(v.kind){case 245:if(v.elseStatement){if(po(E.parent))break;t.replaceNode(u,E,q.createBlock(_t));return}case 247:case 248:t.delete(u,v);return}if(po(E.parent)){const b=s+d,B=H.checkDefined(VGt(wle(E.parent.statements,E),k=>k.posGot(d,t.sourceFile,t.span.start,t.span.length,t.errorCode));return[Ro(V4e,s,F.Remove_unreachable_code,V4e,F.Remove_all_unreachable_code)]},fixIds:[V4e],getAllCodeActions:t=>f0(t,Fwe,(u,s)=>Got(u,s.file,s.start,s.length,s.code))})}});function Jot(t,u,s){const d=Ca(u,s),f=Po(d.parent,V2),p=d.getStart(u),E=f.statement.getStart(u),v=q4(p,E,u)?E:gs(u.text,a0(f,59,u).end,!0);t.deleteRange(u,{pos:p,end:v})}var H4e,Awe,KGt=o({"src/services/codefixes/fixUnusedLabel.ts"(){rr(),rs(),H4e="fixUnusedLabel",Awe=[F.Unused_label.code],Xo({errorCodes:Awe,getCodeActions(t){const u=iu.ChangeTracker.with(t,s=>Jot(s,t.sourceFile,t.span.start));return[Ro(H4e,u,F.Remove_unused_label,H4e,F.Remove_all_unused_labels)]},fixIds:[H4e],getAllCodeActions:t=>f0(t,Awe,(u,s)=>Jot(u,s.file,s.start))})}});function $ot(t,u,s,d,f){t.replaceNode(u,s,f.typeToTypeNode(d,s,void 0))}function Uot(t,u,s){const d=Tn(Ca(t,u),WGt),f=d&&d.type;return f&&{typeNode:f,type:GGt(s,f)}}function WGt(t){switch(t.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function GGt(t,u){if(wB(u)){const s=t.getTypeFromTypeNode(u.type);return s===t.getNeverType()||s===t.getVoidType()?s:t.getUnionType(xi([s,t.getUndefinedType()],u.postfix?void 0:t.getNullType()))}return t.getTypeFromTypeNode(u)}var Swe,K4e,Bwe,JGt=o({"src/services/codefixes/fixJSDocTypes.ts"(){rr(),rs(),Swe="fixJSDocTypes_plain",K4e="fixJSDocTypes_nullable",Bwe=[F.JSDoc_types_can_only_be_used_inside_documentation_comments.code,F._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,F._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Xo({errorCodes:Bwe,getCodeActions(t){const{sourceFile:u}=t,s=t.program.getTypeChecker(),d=Uot(u,t.span.start,s);if(!d)return;const{typeNode:f,type:p}=d,E=f.getText(u),v=[b(p,Swe,F.Change_all_jsdoc_style_types_to_TypeScript)];return f.kind===321&&v.push(b(p,K4e,F.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),v;function b(B,k,T){const M=iu.ChangeTracker.with(t,z=>$ot(z,u,f,B,s));return Ro("jdocTypes",M,[F.Change_0_to_1,E,s.typeToString(B)],k,T)}},fixIds:[Swe,K4e],getAllCodeActions(t){const{fixId:u,program:s,sourceFile:d}=t,f=s.getTypeChecker();return f0(t,Bwe,(p,E)=>{const v=Uot(E.file,E.start,f);if(!v)return;const{typeNode:b,type:B}=v,k=b.kind===321&&u===K4e?f.getNullableType(B,32768):B;$ot(p,d,b,k,f)})}})}});function qot(t,u,s){t.replaceNodeWithText(u,s,`${s.text}()`)}function Zot(t,u){const s=Ca(t,u);if(Iu(s.parent)){let d=s.parent;for(;Iu(d.parent);)d=d.parent;return d.name}if(at(s))return s}var W4e,wwe,$Gt=o({"src/services/codefixes/fixMissingCallParentheses.ts"(){rr(),rs(),W4e="fixMissingCallParentheses",wwe=[F.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Xo({errorCodes:wwe,fixIds:[W4e],getCodeActions(t){const{sourceFile:u,span:s}=t,d=Zot(u,s.start);if(!d)return;const f=iu.ChangeTracker.with(t,p=>qot(p,t.sourceFile,d));return[Ro(W4e,f,F.Add_missing_call_parentheses,W4e,F.Add_all_missing_call_parentheses)]},getAllCodeActions:t=>f0(t,wwe,(u,s)=>{const d=Zot(s.file,s.start);d&&qot(u,s.file,d)})})}});function UGt(t){if(t.type)return t.type;if(na(t.parent)&&t.parent.type&&u3(t.parent.type))return t.parent.type.type}function Yot(t,u){const s=Ca(t,u),d=Nm(s);if(!d)return;let f;switch(d.kind){case 174:f=d.name;break;case 262:case 218:f=a0(d,100,t);break;case 219:const p=d.typeParameters?30:21;f=a0(d,p,t)||Pn(d.parameters);break;default:return}return f&&{insertBefore:f,returnType:UGt(d)}}function Qot(t,u,{insertBefore:s,returnType:d}){if(d){const f=pj(d);(!f||f.kind!==80||f.text!=="Promise")&&t.replaceNode(u,d,q.createTypeReferenceNode("Promise",q.createNodeArray([d])))}t.insertModifierBefore(u,134,s)}var G4e,Twe,qGt=o({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){rr(),rs(),G4e="fixAwaitInSyncFunction",Twe=[F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Xo({errorCodes:Twe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=Yot(u,s.start);if(!d)return;const f=iu.ChangeTracker.with(t,p=>Qot(p,u,d));return[Ro(G4e,f,F.Add_async_modifier_to_containing_function,G4e,F.Add_all_missing_async_modifiers)]},fixIds:[G4e],getAllCodeActions:function(u){const s=new Map;return f0(u,Twe,(d,f)=>{const p=Yot(f.file,f.start);!p||!Ip(s,$s(p.insertBefore))||Qot(d,u.sourceFile,p)})}})}});function Xot(t,u,s,d,f){let p,E;if(d===F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)p=u,E=u+s;else if(d===F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const v=f.program.getTypeChecker(),b=Ca(t,u).parent;H.assert(wx(b),"error span of fixPropertyOverrideAccessor should only be on an accessor");const B=b.parent;H.assert(mr(B),"erroneous accessors should only be inside classes");const k=Aa(qwe(B,v));if(!k)return[];const T=Yr(V8(b.name)),M=v.getPropertyOfType(v.getTypeAtLocation(k),T);if(!M||!M.valueDeclaration)return[];p=M.valueDeclaration.pos,E=M.valueDeclaration.end,t=zn(M.valueDeclaration)}else H.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+d);return mst(t,f.program,p,E,f,F.Generate_get_and_set_accessors.message)}var Lwe,J4e,ZGt=o({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){rr(),rs(),Lwe=[F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],J4e="fixPropertyOverrideAccessor",Xo({errorCodes:Lwe,getCodeActions(t){const u=Xot(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(u)return[Ro(J4e,u,F.Generate_get_and_set_accessors,J4e,F.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[J4e],getAllCodeActions:t=>f0(t,Lwe,(u,s)=>{const d=Xot(s.file,s.start,s.length,s.code,t);if(d)for(const f of d)u.pushRaw(t.sourceFile,f)})})}});function YGt(t,u){switch(t){case F.Parameter_0_implicitly_has_an_1_type.code:case F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return jf(Nm(u))?F.Infer_type_of_0_from_usage:F.Infer_parameter_types_from_usage;case F.Rest_parameter_0_implicitly_has_an_any_type.code:case F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Infer_parameter_types_from_usage;case F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return F.Infer_this_type_of_0_from_usage;default:return F.Infer_type_of_0_from_usage}}function QGt(t){switch(t){case F.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Variable_0_implicitly_has_an_1_type.code;case F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Parameter_0_implicitly_has_an_1_type.code;case F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Rest_parameter_0_implicitly_has_an_any_type.code;case F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Member_0_implicitly_has_an_1_type.code}return t}function est(t,u,s,d,f,p,E,v,b){if(!VN(s.kind)&&s.kind!==80&&s.kind!==26&&s.kind!==110)return;const{parent:B}=s,k=l9(u,f,b,v);switch(d=QGt(d),d){case F.Member_0_implicitly_has_an_1_type.code:case F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(na(B)&&E(B)||ko(B)||Mm(B))return tst(t,k,u,B,f,v,p),k.writeFixes(t),B;if(Iu(B)){const z=FK(B.name,f,p),j=VM(z,B,f,v);if(j){const J=q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(j),void 0);t.addJSDocTags(u,Po(B.parent.parent,Od),[J])}return k.writeFixes(t),B}return;case F.Variable_0_implicitly_has_an_1_type.code:{const z=f.getTypeChecker().getSymbolAtLocation(s);return z&&z.valueDeclaration&&na(z.valueDeclaration)&&E(z.valueDeclaration)?(tst(t,k,zn(z.valueDeclaration),z.valueDeclaration,f,v,p),k.writeFixes(t),z.valueDeclaration):void 0}}const T=Nm(s);if(T===void 0)return;let M;switch(d){case F.Parameter_0_implicitly_has_an_1_type.code:if(jf(T)){ist(t,k,u,T,f,v,p),M=T;break}case F.Rest_parameter_0_implicitly_has_an_any_type.code:if(E(T)){const z=Po(B,io);XGt(t,k,u,z,T,f,v,p),M=z}break;case F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:zm(T)&&at(T.name)&&($4e(t,k,u,T,FK(T.name,f,p),f,v),M=T);break;case F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:jf(T)&&(ist(t,k,u,T,f,v,p),M=T);break;case F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:iu.isThisTypeAnnotatable(T)&&E(T)&&(eJt(t,u,T,f,v,p),M=T);break;default:return H.fail(String(d))}return k.writeFixes(t),M}function tst(t,u,s,d,f,p,E){at(d.name)&&$4e(t,u,s,d,FK(d.name,f,E),f,p)}function XGt(t,u,s,d,f,p,E,v){if(!at(d.name))return;const b=nJt(f,s,p,v);if(H.assert(f.parameters.length===b.length,"Parameter count and inference count should match"),Qn(f))nst(t,s,b,p,E);else{const B=q0(f)&&!a0(f,21,s);B&&t.insertNodeBefore(s,Pn(f.parameters),q.createToken(21));for(const{declaration:k,type:T}of b)k&&!k.type&&!k.initializer&&$4e(t,u,s,k,T,p,E);B&&t.insertNodeAfter(s,Cr(f.parameters),q.createToken(22))}}function eJt(t,u,s,d,f,p){const E=ust(s,u,d,p);if(!E||!E.length)return;const v=Pwe(d,E,p).thisParameter(),b=VM(v,s,d,f);b&&(Qn(s)?tJt(t,u,s,b):t.tryInsertThisTypeAnnotation(u,s,b))}function tJt(t,u,s,d){t.addJSDocTags(u,s,[q.createJSDocThisTag(void 0,q.createJSDocTypeExpression(d))])}function ist(t,u,s,d,f,p,E){const v=Ki(d.parameters);if(v&&at(d.name)&&at(v.name)){let b=FK(d.name,f,E);b===f.getTypeChecker().getAnyType()&&(b=FK(v.name,f,E)),Qn(d)?nst(t,s,[{declaration:v,type:b}],f,p):$4e(t,u,s,v,b,f,p)}}function $4e(t,u,s,d,f,p,E){const v=VM(f,d,p,E);if(v)if(Qn(s)&&d.kind!==171){const b=na(d)?ur(d.parent.parent,Jl):d;if(!b)return;const B=q.createJSDocTypeExpression(v),k=zm(d)?q.createJSDocReturnTag(void 0,B,void 0):q.createJSDocTypeTag(void 0,B,void 0);t.addJSDocTags(s,b,[k])}else iJt(v,d,s,t,u,Os(p.getCompilerOptions()))||t.tryInsertTypeAnnotation(s,d,v)}function iJt(t,u,s,d,f,p){const E=d9(t,p);return E&&d.tryInsertTypeAnnotation(s,u,E.typeNode)?(L(E.symbols,v=>f.addImportFromExportedSymbol(v,!0)),!0):!1}function nst(t,u,s,d,f){const p=s.length&&s[0].declaration.parent;if(!p)return;const E=qi(s,v=>{const b=v.declaration;if(b.initializer||vv(b)||!at(b.name))return;const B=v.type&&VM(v.type,b,d,f);if(B){const k=q.cloneNode(b.name);return Zn(k,7168),{name:q.cloneNode(b.name),param:b,isOptional:!!v.isOptional,typeNode:B}}});if(E.length)if(q0(p)||A0(p)){const v=q0(p)&&!a0(p,21,u);v&&t.insertNodeBefore(u,Pn(p.parameters),q.createToken(21)),L(E,({typeNode:b,param:B})=>{const k=q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(b)),T=q.createJSDocComment(void 0,[k]);t.insertNodeAt(u,B.getStart(u),T,{suffix:" "})}),v&&t.insertNodeAfter(u,Cr(p.parameters),q.createToken(22))}else{const v=Vt(E,({name:b,typeNode:B,isOptional:k})=>q.createJSDocParameterTag(void 0,b,!!k,q.createJSDocTypeExpression(B),!1,void 0));t.addJSDocTags(u,p,v)}}function Nwe(t,u,s){return qi(Z0.getReferenceEntriesForNode(-1,t,u,u.getSourceFiles(),s),d=>d.kind!==Z0.EntryKind.Span?ur(d.node,at):void 0)}function FK(t,u,s){const d=Nwe(t,u,s);return Pwe(u,d,s).single()}function nJt(t,u,s,d){const f=ust(t,u,s,d);return f&&Pwe(s,f,d).parameters(t)||t.parameters.map(p=>({declaration:p,type:at(p.name)?FK(p.name,s,d):s.getTypeChecker().getAnyType()}))}function ust(t,u,s,d){let f;switch(t.kind){case 176:f=a0(t,137,u);break;case 219:case 218:const p=t.parent;f=(na(p)||ko(p))&&at(p.name)?p.name:t.name;break;case 262:case 174:case 173:f=t.name;break}if(f)return Nwe(f,s,d)}function Pwe(t,u,s){const d=t.getTypeChecker(),f={string:()=>d.getStringType(),number:()=>d.getNumberType(),Array:Ve=>d.createArrayType(Ve),Promise:Ve=>d.createPromiseType(Ve)},p=[d.getStringType(),d.getNumberType(),d.createArrayType(d.getAnyType()),d.createPromiseType(d.getAnyType())];return{single:b,parameters:B,thisParameter:k};function E(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function v(Ve){const We=new Map;for(const Yt of Ve)Yt.properties&&Yt.properties.forEach((Ie,st)=>{We.has(st)||We.set(st,[]),We.get(st).push(Ie)});const Gt=new Map;return We.forEach((Yt,Ie)=>{Gt.set(Ie,v(Yt))}),{isNumber:Ve.some(Yt=>Yt.isNumber),isString:Ve.some(Yt=>Yt.isString),isNumberOrString:Ve.some(Yt=>Yt.isNumberOrString),candidateTypes:ju(Ve,Yt=>Yt.candidateTypes),properties:Gt,calls:ju(Ve,Yt=>Yt.calls),constructs:ju(Ve,Yt=>Yt.constructs),numberIndex:L(Ve,Yt=>Yt.numberIndex),stringIndex:L(Ve,Yt=>Yt.stringIndex),candidateThisTypes:ju(Ve,Yt=>Yt.candidateThisTypes),inferredTypes:void 0}}function b(){return Se(T(u))}function B(Ve){if(u.length===0||!Ve.parameters)return;const We=E();for(const Yt of u)s.throwIfCancellationRequested(),M(Yt,We);const Gt=[...We.constructs||[],...We.calls||[]];return Ve.parameters.map((Yt,Ie)=>{const st=[],St=$_(Yt);let It=!1;for(const ht of Gt)if(ht.argumentTypes.length<=Ie)It=Qn(Ve),st.push(d.getUndefinedType());else if(St)for(let Ut=Ie;UtGt.every(Ie=>!Ie(Yt)))}function ve(Ve){return Se(pe(Ve))}function Se(Ve){if(!Ve.length)return d.getAnyType();const We=d.getUnionType([d.getStringType(),d.getNumberType()]);let Yt=ne(Ve,[{high:st=>st===d.getStringType()||st===d.getNumberType(),low:st=>st===We},{high:st=>!(st.flags&16385),low:st=>!!(st.flags&16385)},{high:st=>!(st.flags&114689)&&!(Gu(st)&16),low:st=>!!(Gu(st)&16)}]);const Ie=Yt.filter(st=>Gu(st)&16);return Ie.length&&(Yt=Yt.filter(st=>!(Gu(st)&16)),Yt.push(Ne(Ie))),d.getWidenedType(d.getUnionType(Yt.map(d.getBaseTypeOfLiteralType),2))}function Ne(Ve){if(Ve.length===1)return Ve[0];const We=[],Gt=[],Yt=[],Ie=[];let st=!1,St=!1;const It=wm();for(const Ut of Ve){for(const xn of d.getPropertiesOfType(Ut))It.add(xn.escapedName,xn.valueDeclaration?d.getTypeOfSymbolAtLocation(xn,xn.valueDeclaration):d.getAnyType());We.push(...d.getSignaturesOfType(Ut,0)),Gt.push(...d.getSignaturesOfType(Ut,1));const Ni=d.getIndexInfoOfType(Ut,0);Ni&&(Yt.push(Ni.type),st=st||Ni.isReadonly);const ji=d.getIndexInfoOfType(Ut,1);ji&&(Ie.push(ji.type),St=St||ji.isReadonly)}const ei=ci(It,(Ut,Ni)=>{const ji=Ni.lengthd.getBaseTypeOfLiteralType(It)),St=(Yt=Ve.calls)!=null&&Yt.length?fe(Ve):void 0;return St&&st?Ie.push(d.getUnionType([St,...st],2)):(St&&Ie.push(St),S(st)&&Ie.push(...st)),Ie.push(...xe(Ve)),Ie}function fe(Ve){const We=new Map;Ve.properties&&Ve.properties.forEach((st,St)=>{const It=d.createSymbol(4,St);It.links.type=ve(st),We.set(St,It)});const Gt=Ve.calls?[Je(Ve.calls)]:[],Yt=Ve.constructs?[Je(Ve.constructs)]:[],Ie=Ve.stringIndex?[d.createIndexInfo(d.getStringType(),ve(Ve.stringIndex),!1)]:[];return d.createAnonymousType(void 0,We,Gt,Yt,Ie)}function xe(Ve){if(!Ve.properties||!Ve.properties.size)return[];const We=p.filter(Gt=>Be(Gt,Ve));return 0Ge(Gt,Ve)):[]}function Be(Ve,We){return We.properties?!h1(We.properties,(Gt,Yt)=>{const Ie=d.getTypeOfPropertyOfType(Ve,Yt);return Ie?Gt.calls?!d.getSignaturesOfType(Ie,0).length||!d.isTypeAssignableTo(Ie,Ke(Gt.calls)):!d.isTypeAssignableTo(Ie,ve(Gt)):!0}):!1}function Ge(Ve,We){if(!(Gu(Ve)&4)||!We.properties)return Ve;const Gt=Ve.target,Yt=Aa(Gt.typeParameters);if(!Yt)return Ve;const Ie=[];return We.properties.forEach((st,St)=>{const It=d.getTypeOfPropertyOfType(Gt,St);H.assert(!!It,"generic should have all the properties of its reference."),Ie.push(...Ae(It,ve(st),Yt))}),f[Ve.symbol.escapedName](Se(Ie))}function Ae(Ve,We,Gt){if(Ve===Gt)return[We];if(Ve.flags&3145728)return ju(Ve.types,st=>Ae(st,We,Gt));if(Gu(Ve)&4&&Gu(We)&4){const st=d.getTypeArguments(Ve),St=d.getTypeArguments(We),It=[];if(st&&St)for(let ei=0;eiIe.argumentTypes.length));for(let Ie=0;IeSt.argumentTypes[Ie]||d.getUndefinedType())),Ve.some(St=>St.argumentTypes[Ie]===void 0)&&(st.flags|=16777216),We.push(st)}const Yt=ve(v(Ve.map(Ie=>Ie.return_)));return d.createSignature(void 0,void 0,void 0,We,Yt,void 0,Gt,0)}function ft(Ve,We){We&&!(We.flags&1)&&!(We.flags&131072)&&(Ve.candidateTypes||(Ve.candidateTypes=[])).push(We)}function Ye(Ve,We){We&&!(We.flags&1)&&!(We.flags&131072)&&(Ve.candidateThisTypes||(Ve.candidateThisTypes=[])).push(We)}}var U4e,Mwe,uJt=o({"src/services/codefixes/inferFromUsage.ts"(){rr(),rs(),U4e="inferFromUsage",Mwe=[F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,F.Variable_0_implicitly_has_an_1_type.code,F.Parameter_0_implicitly_has_an_1_type.code,F.Rest_parameter_0_implicitly_has_an_any_type.code,F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,F.Member_0_implicitly_has_an_1_type.code,F.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Xo({errorCodes:Mwe,getCodeActions(t){const{sourceFile:u,program:s,span:{start:d},errorCode:f,cancellationToken:p,host:E,preferences:v}=t,b=Ca(u,d);let B;const k=iu.ChangeTracker.with(t,M=>{B=est(M,u,b,f,s,p,J3,E,v)}),T=B&&Za(B);return!T||k.length===0?void 0:[Ro(U4e,k,[YGt(f,b),Hc(T)],U4e,F.Infer_all_types_from_usage)]},fixIds:[U4e],getAllCodeActions(t){const{sourceFile:u,program:s,cancellationToken:d,host:f,preferences:p}=t,E=i9();return f0(t,Mwe,(v,b)=>{est(v,u,Ca(b.file,b.start),b.code,s,d,E,f,p)})}})}});function rst(t,u,s){if(Qn(t))return;const d=Ca(t,s),f=Tn(d,$0),p=f==null?void 0:f.type;if(!p)return;const E=u.getTypeFromTypeNode(p),v=u.getAwaitedType(E)||u.getVoidType(),b=u.typeToTypeNode(v,p,void 0);if(b)return{returnTypeNode:p,returnType:E,promisedTypeNode:b,promisedType:v}}function ast(t,u,s,d){t.replaceNode(u,s,q.createTypeReferenceNode("Promise",[d]))}var q4e,zwe,rJt=o({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){rr(),rs(),q4e="fixReturnTypeInAsyncFunction",zwe=[F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Xo({errorCodes:zwe,fixIds:[q4e],getCodeActions:function(u){const{sourceFile:s,program:d,span:f}=u,p=d.getTypeChecker(),E=rst(s,d.getTypeChecker(),f.start);if(!E)return;const{returnTypeNode:v,returnType:b,promisedTypeNode:B,promisedType:k}=E,T=iu.ChangeTracker.with(u,M=>ast(M,s,v,B));return[Ro(q4e,T,[F.Replace_0_with_Promise_1,p.typeToString(b),p.typeToString(k)],q4e,F.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:t=>f0(t,zwe,(u,s)=>{const d=rst(s.file,t.program.getTypeChecker(),s.start);d&&ast(u,s.file,d.returnTypeNode,d.promisedTypeNode)})})}});function ost(t,u,s,d){const{line:f}=s0(u,s);(!d||r0(d,f))&&t.insertCommentBeforeLine(u,f,s," @ts-ignore")}var Iwe,Rwe,Owe,aJt=o({"src/services/codefixes/disableJsDiagnostics.ts"(){rr(),rs(),Iwe="disableJsDiagnostics",Rwe="disableJsDiagnostics",Owe=qi(Object.keys(F),t=>{const u=F[t];return u.category===1?u.code:void 0}),Xo({errorCodes:Owe,getCodeActions:function(u){const{sourceFile:s,program:d,span:f,host:p,formatContext:E}=u;if(!Qn(s)||!uV(s,d.getCompilerOptions()))return;const v=s.checkJsDirective?"":E5(p,E.options),b=[Cg(Iwe,[frt(s.fileName,[VH(s.checkJsDirective?Vc(s.checkJsDirective.pos,s.checkJsDirective.end):d1(0,0),`// @ts-nocheck${v}`)])],F.Disable_checking_for_this_file)];return iu.isValidLocationToAddComment(s,f.start)&&b.unshift(Ro(Iwe,iu.ChangeTracker.with(u,B=>ost(B,s,f.start)),F.Ignore_this_error_message,Rwe,F.Add_ts_ignore_to_all_error_messages)),b},fixIds:[Rwe],getAllCodeActions:t=>{const u=new Set;return f0(t,Owe,(s,d)=>{iu.isValidLocationToAddComment(d.file,d.start)&&ost(s,d.file,d.start,u)})}})}});function jwe(t,u,s,d,f,p,E){const v=t.symbol.members;for(const b of u)v.has(b.escapedName)||sst(b,t,s,d,f,p,E,void 0)}function xw(t){return{trackSymbol:()=>!1,moduleResolverHost:rfe(t.program,t.host)}}function sst(t,u,s,d,f,p,E,v,b=3,B=!1){const k=t.getDeclarations(),T=Ki(k),M=d.program.getTypeChecker(),z=Os(d.program.getCompilerOptions()),j=(T==null?void 0:T.kind)??171,J=xe(t,T),K=T?Eh(T):0;let Y=K&256;Y|=K&1?1:K&4?4:0,T&&ef(T)&&(Y|=512);const oe=ve(),se=M.getWidenedType(M.getTypeOfSymbolAtLocation(t,u)),ge=!!(t.flags&16777216),ae=!!(u.flags&33554432)||B,Ce=Hm(s,f);switch(j){case 171:case 172:const Be=Ce===0?268435456:void 0;let Ge=M.typeToTypeNode(se,u,Be,xw(d));if(p){const De=d9(Ge,z);De&&(Ge=De.typeNode,vw(p,De.symbols))}E(q.createPropertyDeclaration(oe,T?Ne(J):t.getName(),ge&&b&2?q.createToken(58):void 0,Ge,void 0));break;case 177:case 178:{H.assertIsDefined(k);let De=M.typeToTypeNode(se,u,void 0,xw(d));const Ke=dk(k,T),Je=Ke.secondAccessor?[Ke.firstAccessor,Ke.secondAccessor]:[Ke.firstAccessor];if(p){const ft=d9(De,z);ft&&(De=ft.typeNode,vw(p,ft.symbols))}for(const ft of Je)if(zm(ft))E(q.createGetAccessorDeclaration(oe,Ne(J),_t,fe(De),pe(v,Ce,ae)));else{H.assertNode(ft,jf,"The counterpart to a getter should be a setter");const Ye=hP(ft),Ve=Ye&&at(Ye.name)?fu(Ye.name):void 0;E(q.createSetAccessorDeclaration(oe,Ne(J),Hwe(1,[Ve],[fe(De)],1,!1),pe(v,Ce,ae)))}break}case 173:case 174:H.assertIsDefined(k);const Ae=se.isUnion()?ju(se.types,De=>De.getCallSignatures()):se.getCallSignatures();if(!Oe(Ae))break;if(k.length===1){H.assert(Ae.length===1,"One declaration implies one signature");const De=Ae[0];ne(Ce,De,oe,Ne(J),pe(v,Ce,ae));break}for(const De of Ae)ne(Ce,De,oe,Ne(J));if(!ae)if(k.length>Ae.length){const De=M.getSignatureFromDeclaration(k[k.length-1]);ne(Ce,De,oe,Ne(J),pe(v,Ce))}else H.assert(k.length===Ae.length,"Declarations and signatures should match count"),E(lJt(M,d,u,Ae,Ne(J),ge&&!!(b&1),oe,Ce,v));break}function ne(Be,Ge,Ae,De,Ke){const Je=Z4e(174,d,Be,Ge,Ke,De,Ae,ge&&!!(b&1),u,p);Je&&E(Je)}function ve(){let Be;return Y&&(Be=vo(Be,q.createModifiersFromModifierFlags(Y))),Se()&&(Be=xi(Be,q.createToken(164))),Be&&q.createNodeArray(Be)}function Se(){return!!(d.program.getCompilerOptions().noImplicitOverride&&T&&P2(T))}function Ne(Be){return at(Be)&&Be.escapedText==="constructor"?q.createComputedPropertyName(q.createStringLiteral(fu(Be),Ce===0)):ll(Be,!1)}function pe(Be,Ge,Ae){return Ae?void 0:ll(Be,!1)||Kwe(Ge)}function fe(Be){return ll(Be,!1)}function xe(Be,Ge){if(Gl(Be)&262144){const Ae=Be.links.nameType;if(Ae&&Y4(Ae))return q.createIdentifier(Yr(Q4(Ae)))}return ll(Za(Ge),!1)}}function Z4e(t,u,s,d,f,p,E,v,b,B){const k=u.program,T=k.getTypeChecker(),M=Os(k.getCompilerOptions()),z=Qn(b),j=524545|(s===0?268435456:0),J=T.signatureToSignatureDeclaration(d,t,b,j,xw(u));if(!J)return;let K=z?void 0:J.typeParameters,Y=J.parameters,oe=z?void 0:J.type;if(B){if(K){const Ce=Lu(K,ne=>{let ve=ne.constraint,Se=ne.default;if(ve){const Ne=d9(ve,M);Ne&&(ve=Ne.typeNode,vw(B,Ne.symbols))}if(Se){const Ne=d9(Se,M);Ne&&(Se=Ne.typeNode,vw(B,Ne.symbols))}return q.updateTypeParameterDeclaration(ne,ne.modifiers,ne.name,ve,Se)});K!==Ce&&(K=Pt(q.createNodeArray(Ce,K.hasTrailingComma),K))}const ae=Lu(Y,Ce=>{let ne=z?void 0:Ce.type;if(ne){const ve=d9(ne,M);ve&&(ne=ve.typeNode,vw(B,ve.symbols))}return q.updateParameterDeclaration(Ce,Ce.modifiers,Ce.dotDotDotToken,Ce.name,z?void 0:Ce.questionToken,ne,Ce.initializer)});if(Y!==ae&&(Y=Pt(q.createNodeArray(ae,Y.hasTrailingComma),Y)),oe){const Ce=d9(oe,M);Ce&&(oe=Ce.typeNode,vw(B,Ce.symbols))}}const se=v?q.createToken(58):void 0,ge=J.asteriskToken;if(A0(J))return q.updateFunctionExpression(J,E,J.asteriskToken,ur(p,at),K,Y,oe,f??J.body);if(q0(J))return q.updateArrowFunction(J,E,K,Y,oe,J.equalsGreaterThanToken,f??J.body);if(dc(J))return q.updateMethodDeclaration(J,E,ge,p??q.createIdentifier(""),se,K,Y,oe,f);if(ed(J))return q.updateFunctionDeclaration(J,E,J.asteriskToken,ur(p,at),K,Y,oe,f??J.body)}function Vwe(t,u,s,d,f,p,E){const v=Hm(u.sourceFile,u.preferences),b=Os(u.program.getCompilerOptions()),B=xw(u),k=u.program.getTypeChecker(),T=Qn(E),{typeArguments:M,arguments:z,parent:j}=d,J=T?void 0:k.getContextualType(d),K=Vt(z,Se=>at(Se)?Se.text:Iu(Se)&&at(Se.name)?Se.name.text:void 0),Y=T?[]:Vt(z,Se=>k.getTypeAtLocation(Se)),{argumentTypeNodes:oe,argumentTypeParameters:se}=dst(k,s,Y,E,b,1,B),ge=p?q.createNodeArray(q.createModifiersFromModifierFlags(p)):void 0,ae=cY(j)?q.createToken(42):void 0,Ce=T?void 0:oJt(k,se,M),ne=Hwe(z.length,K,oe,void 0,T),ve=T||J===void 0?void 0:k.typeToTypeNode(J,E,void 0,B);switch(t){case 174:return q.createMethodDeclaration(ge,ae,f,void 0,Ce,ne,ve,Kwe(v));case 173:return q.createMethodSignature(ge,f,void 0,Ce,ne,ve===void 0?q.createKeywordTypeNode(159):ve);case 262:return H.assert(typeof f=="string"||at(f),"Unexpected name"),q.createFunctionDeclaration(ge,ae,f,Ce,ne,ve,Bee(F.Function_not_implemented.message,v));default:H.fail("Unexpected kind")}}function oJt(t,u,s){const d=new Set(u.map(p=>p[0])),f=new Map(u);if(s){const p=s.filter(v=>!u.some(b=>{var B;return t.getTypeAtLocation(v)===((B=b[1])==null?void 0:B.argumentType)})),E=d.size+p.length;for(let v=0;d.size{var E;return q.createTypeParameterDeclaration(void 0,p,(E=f.get(p))==null?void 0:E.constraint)})}function lst(t){return 84+t<=90?String.fromCharCode(84+t):`T${t}`}function Y4e(t,u,s,d,f,p,E){let v=t.typeToTypeNode(s,d,p,E);if(v&&nD(v)){const b=d9(v,f);b&&(vw(u,b.symbols),v=b.typeNode)}return ll(v)}function cst(t){return t.isUnionOrIntersection()?t.types.some(cst):t.flags&262144}function dst(t,u,s,d,f,p,E){const v=[],b=new Map;for(let B=0;B=d?q.createToken(58):void 0,f?void 0:(s==null?void 0:s[v])||q.createKeywordTypeNode(159),void 0);p.push(k)}return p}function lJt(t,u,s,d,f,p,E,v,b){let B=d[0],k=d[0].minArgumentCount,T=!1;for(const J of d)k=Math.min(J.minArgumentCount,k),th(J)&&(T=!0),J.parameters.length>=B.parameters.length&&(!th(J)||th(B))&&(B=J);const M=B.parameters.length-(th(B)?1:0),z=B.parameters.map(J=>J.name),j=Hwe(M,z,void 0,k,!1);if(T){const J=q.createParameterDeclaration(void 0,q.createToken(26),z[M]||"rest",M>=k?q.createToken(58):void 0,q.createArrayTypeNode(q.createKeywordTypeNode(159)),void 0);j.push(J)}return dJt(E,f,p,void 0,j,cJt(d,t,u,s),v,b)}function cJt(t,u,s,d){if(S(t)){const f=u.getUnionType(Vt(t,u.getReturnTypeOfSignature));return u.typeToTypeNode(f,d,1,xw(s))}}function dJt(t,u,s,d,f,p,E,v){return q.createMethodDeclaration(t,void 0,u,s?q.createToken(58):void 0,d,f,p,v||Kwe(E))}function Kwe(t){return Bee(F.Method_not_implemented.message,t)}function Bee(t,u){return q.createBlock([q.createThrowStatement(q.createNewExpression(q.createIdentifier("Error"),void 0,[q.createStringLiteral(t,u===0)]))],!0)}function Wwe(t,u,s){const d=ZN(u);if(!d)return;const f=Jwe(d,"compilerOptions");if(f===void 0){t.insertNodeAtObjectStart(u,d,Q4e("compilerOptions",q.createObjectLiteralExpression(s.map(([E,v])=>Q4e(E,v)),!0)));return}const p=f.initializer;if(ys(p))for(const[E,v]of s){const b=Jwe(p,E);b===void 0?t.insertNodeAtObjectStart(u,p,Q4e(E,v)):t.replaceNode(u,b.initializer,v)}}function Gwe(t,u,s,d){Wwe(t,u,[[s,d]])}function Q4e(t,u){return q.createPropertyAssignment(q.createStringLiteral(t),u)}function Jwe(t,u){return Le(t.properties,s=>Jc(s)&&!!s.name&&us(s.name)&&s.name.text===u)}function d9(t,u){let s;const d=yt(t,f,Qr);if(s&&d)return{typeNode:d,symbols:s};function f(p){if(zx(p)&&p.qualifier){const E=hm(p.qualifier),v=IX(E.symbol,u),b=v!==E.text?fst(p.qualifier,q.createIdentifier(v)):p.qualifier;s=xi(s,E.symbol);const B=kn(p.typeArguments,f,Qr);return q.createTypeReferenceNode(b,B)}return rn(p,f,Dg)}}function fst(t,u){return t.kind===80?u:q.createQualifiedName(fst(t.left,u),t.right)}function vw(t,u){u.forEach(s=>t.addImportFromExportedSymbol(s,!0))}function $we(t,u){const s=Ec(u);let d=Ca(t,u.start);for(;d.end(t[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",t))(Uwe||{})}});function mst(t,u,s,d,f,p){const E=Est(t,u,s,d);if(!E||a9.isRefactorErrorInfo(E))return;const v=iu.ChangeTracker.fromContext(f),{isStatic:b,isReadonly:B,fieldName:k,accessorName:T,originalName:M,type:z,container:j,declaration:J}=E;Kf(k),Kf(T),Kf(J),Kf(j);let K,Y;if(mr(j)){const se=Eh(J);if(gh(t)){const ge=q.createModifiersFromModifierFlags(se);K=ge,Y=ge}else K=q.createModifiersFromModifierFlags(pJt(se)),Y=q.createModifiersFromModifierFlags(gJt(se));Ak(J)&&(Y=Hi(Ax(J),Y))}vJt(v,t,J,z,k,Y);const oe=EJt(k,T,z,K,b,j);if(Kf(oe),_st(v,t,oe,J,j),B){const se=X_(j);se&&CJt(v,t,se,k.text,M)}else{const se=_Jt(k,T,z,K,b,j);Kf(se),_st(v,t,se,J,j)}return v.getChanges()}function fJt(t){return at(t)||us(t)}function mJt(t){return Mf(t,t.parent)||ko(t)||Jc(t)}function pst(t,u){return at(u)?q.createIdentifier(t):q.createStringLiteral(t)}function gst(t,u,s){const d=u?s.name:q.createThis();return at(t)?q.createPropertyAccessExpression(d,t):q.createElementAccessExpression(d,q.createStringLiteralFromNode(t))}function pJt(t){return t&=-9,t&=-3,t&4||(t|=1),t}function gJt(t){return t&=-2,t&=-5,t|=2,t}function Est(t,u,s,d,f=!0){const p=Ca(t,s),E=s===d&&f,v=Tn(p.parent,mJt),b=271;if(!v||!(rX(v.name,t,s,d)||E))return{error:to(F.Could_not_find_property_for_which_to_generate_accessor)};if(!fJt(v.name))return{error:to(F.Name_is_not_valid)};if((Eh(v)&98303|b)!==b)return{error:to(F.Can_only_convert_property_with_modifier)};const B=v.name.text,k=Afe(B),T=pst(k?B:Ok(`_${B}`,t),v.name),M=pst(k?Ok(B.substring(1),t):B,v.name);return{isStatic:Kc(v),isReadonly:fP(v),type:bJt(v,u),container:v.kind===169?v.parent.parent:v.parent,originalName:v.name.text,declaration:v,fieldName:T,accessorName:M,renameAccessor:k}}function EJt(t,u,s,d,f,p){return q.createGetAccessorDeclaration(d,u,[],s,q.createBlock([q.createReturnStatement(gst(t,f,p))],!0))}function _Jt(t,u,s,d,f,p){return q.createSetAccessorDeclaration(d,u,[q.createParameterDeclaration(void 0,void 0,q.createIdentifier("value"),void 0,s)],q.createBlock([q.createExpressionStatement(q.createAssignment(gst(t,f,p),q.createIdentifier("value")))],!0))}function DJt(t,u,s,d,f,p){const E=q.updatePropertyDeclaration(s,p,f,s.questionToken||s.exclamationToken,d,s.initializer);t.replaceNode(u,s,E)}function xJt(t,u,s,d){let f=q.updatePropertyAssignment(s,d,s.initializer);(f.modifiers||f.questionToken||f.exclamationToken)&&(f===s&&(f=q.cloneNode(f)),f.modifiers=void 0,f.questionToken=void 0,f.exclamationToken=void 0),t.replacePropertyAssignment(u,s,f)}function vJt(t,u,s,d,f,p){ko(s)?DJt(t,u,s,d,f,p):Jc(s)?xJt(t,u,s,f):t.replaceNode(u,s,q.updateParameterDeclaration(s,p,s.dotDotDotToken,Po(f,at),s.questionToken,s.type,s.initializer))}function _st(t,u,s,d,f){Mf(d,d.parent)?t.insertMemberAtStart(u,f,s):Jc(d)?t.insertNodeAfterComma(u,d,s):t.insertNodeAfter(u,d,s)}function CJt(t,u,s,d,f){s.body&&s.body.forEachChild(function p(E){U0(E)&&E.expression.kind===110&&us(E.argumentExpression)&&E.argumentExpression.text===f&&D7(E)&&t.replaceNode(u,E.argumentExpression,q.createStringLiteral(d)),Iu(E)&&E.expression.kind===110&&E.name.text===f&&D7(E)&&t.replaceNode(u,E.name,q.createIdentifier(d)),!Co(E)&&!mr(E)&&E.forEachChild(p)})}function bJt(t,u){const s=Cye(t);if(ko(t)&&s&&t.questionToken){const d=u.getTypeChecker(),f=d.getTypeFromTypeNode(s);if(!d.isTypeAssignableTo(d.getUndefinedType(),f)){const p=Pv(s)?s.types:[s];return q.createUnionTypeNode([...p,q.createKeywordTypeNode(157)])}}return s}function qwe(t,u){const s=[];for(;t;){const d=B2(t),f=d&&u.getSymbolAtLocation(d.expression);if(!f)break;const p=f.flags&2097152?u.getAliasedSymbol(f):f,E=p.declarations&&Le(p.declarations,mr);if(!E)break;s.push(E),t=E}return s}var yJt=o({"src/services/codefixes/generateAccessors.ts"(){rr()}});function kJt(t,u){const s=zn(u),d=Q8(u),f=t.program.getCompilerOptions(),p=[];return p.push(Dst(t,s,u,g5(d.name,void 0,u.moduleSpecifier,Hm(s,t.preferences)))),m1(f)===1&&p.push(Dst(t,s,u,q.createImportEqualsDeclaration(void 0,!1,d.name,q.createExternalModuleReference(u.moduleSpecifier)))),p}function Dst(t,u,s,d){const f=iu.ChangeTracker.with(t,p=>p.replaceNode(u,s,d));return Cg(Zwe,f,[F.Replace_import_with_0,f[0].textChanges[0].newText])}function FJt(t){const u=t.sourceFile,s=F.This_expression_is_not_callable.code===t.errorCode?213:214,d=Tn(Ca(u,t.span.start),p=>p.kind===s);if(!d)return[];const f=d.expression;return xst(t,f)}function AJt(t){const u=t.sourceFile,s=Tn(Ca(u,t.span.start),d=>d.getStart()===t.span.start&&d.getEnd()===t.span.start+t.span.length);return s?xst(t,s):[]}function xst(t,u){const s=t.program.getTypeChecker().getTypeAtLocation(u);if(!(s.symbol&&qE(s.symbol)&&s.symbol.links.originatingImport))return[];const d=[],f=s.symbol.links.originatingImport;if(dm(f)||yn(d,kJt(t,f)),Wt(u)&&!(mh(u.parent)&&u.parent.name===u)){const p=t.sourceFile,E=iu.ChangeTracker.with(t,v=>v.replaceNode(p,u,q.createPropertyAccessExpression(u,"default"),{}));d.push(Cg(Zwe,E,F.Use_synthetic_default_member))}return d}var Zwe,SJt=o({"src/services/codefixes/fixInvalidImportSyntax.ts"(){rr(),rs(),Zwe="invalidImportSyntax",Xo({errorCodes:[F.This_expression_is_not_callable.code,F.This_expression_is_not_constructable.code],getCodeActions:FJt}),Xo({errorCodes:[F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Type_0_does_not_satisfy_the_constraint_1.code,F.Type_0_is_not_assignable_to_type_1.code,F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,F.Type_predicate_0_is_not_assignable_to_1.code,F.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,F._0_index_type_1_is_not_assignable_to_2_index_type_3.code,F.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,F.Property_0_in_type_1_is_not_assignable_to_type_2.code,F.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:AJt})}});function vst(t,u){const s=Ca(t,u);if(at(s)&&ko(s.parent)){const d=f1(s.parent);if(d)return{type:d,prop:s.parent,isJs:Qn(s.parent)}}}function BJt(t,u){if(u.isJs)return;const s=iu.ChangeTracker.with(t,d=>Cst(d,t.sourceFile,u.prop));return Ro(X4e,s,[F.Add_definite_assignment_assertion_to_property_0,u.prop.getText()],epe,F.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Cst(t,u,s){Kf(s);const d=q.updatePropertyDeclaration(s,s.modifiers,s.name,q.createToken(54),s.type,s.initializer);t.replaceNode(u,s,d)}function wJt(t,u){const s=iu.ChangeTracker.with(t,d=>bst(d,t.sourceFile,u));return Ro(X4e,s,[F.Add_undefined_type_to_property_0,u.prop.name.getText()],tpe,F.Add_undefined_type_to_all_uninitialized_properties)}function bst(t,u,s){const d=q.createKeywordTypeNode(157),f=Pv(s.type)?s.type.types.concat(d):[s.type,d],p=q.createUnionTypeNode(f);s.isJs?t.addJSDocTags(u,s.prop,[q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(p))]):t.replaceNode(u,s.type,p)}function TJt(t,u){if(u.isJs)return;const s=t.program.getTypeChecker(),d=kst(s,u.prop);if(!d)return;const f=iu.ChangeTracker.with(t,p=>yst(p,t.sourceFile,u.prop,d));return Ro(X4e,f,[F.Add_initializer_to_property_0,u.prop.name.getText()],ipe,F.Add_initializers_to_all_uninitialized_properties)}function yst(t,u,s,d){Kf(s);const f=q.updatePropertyDeclaration(s,s.modifiers,s.name,s.questionToken,s.type,d);t.replaceNode(u,s,f)}function kst(t,u){return Fst(t,t.getTypeFromTypeNode(u.type))}function Fst(t,u){if(u.flags&512)return u===t.getFalseType()||u===t.getFalseType(!0)?q.createFalse():q.createTrue();if(u.isStringLiteral())return q.createStringLiteral(u.value);if(u.isNumberLiteral())return q.createNumericLiteral(u.value);if(u.flags&2048)return q.createBigIntLiteral(u.value);if(u.isUnion())return G(u.types,s=>Fst(t,s));if(u.isClass()){const s=tD(u.symbol);if(!s||Yu(s,64))return;const d=X_(s);return d&&d.parameters.length?void 0:q.createNewExpression(q.createIdentifier(u.symbol.name),void 0,void 0)}else if(t.isArrayLikeType(u))return q.createArrayLiteralExpression()}var X4e,epe,tpe,ipe,Ywe,LJt=o({"src/services/codefixes/fixStrictClassInitialization.ts"(){rr(),rs(),X4e="strictClassInitialization",epe="addMissingPropertyDefiniteAssignmentAssertions",tpe="addMissingPropertyUndefinedType",ipe="addMissingPropertyInitializer",Ywe=[F.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Xo({errorCodes:Ywe,getCodeActions:function(u){const s=vst(u.sourceFile,u.span.start);if(!s)return;const d=[];return xi(d,wJt(u,s)),xi(d,BJt(u,s)),xi(d,TJt(u,s)),d},fixIds:[epe,tpe,ipe],getAllCodeActions:t=>f0(t,Ywe,(u,s)=>{const d=vst(s.file,s.start);if(d)switch(t.fixId){case epe:Cst(u,s.file,d.prop);break;case tpe:bst(u,s.file,d);break;case ipe:const f=t.program.getTypeChecker(),p=kst(f,d.prop);if(!p)return;yst(u,s.file,d.prop,p);break;default:H.fail(JSON.stringify(t.fixId))}})})}});function Ast(t,u,s){const{allowSyntheticDefaults:d,defaultImportName:f,namedImports:p,statement:E,required:v}=s;t.replaceNode(u,E,f&&!d?q.createImportEqualsDeclaration(void 0,!1,f,q.createExternalModuleReference(v)):q.createImportDeclaration(void 0,q.createImportClause(!1,f,p),v,void 0))}function Sst(t,u,s){const{parent:d}=Ca(t,s);xf(d,!0)||H.failBadSyntaxKind(d);const f=Po(d.parent,na),p=ur(f.name,at),E=Rp(f.name)?NJt(f.name):void 0;if(p||E)return{allowSyntheticDefaults:C7(u.getCompilerOptions()),defaultImportName:p,namedImports:E,statement:Po(f.parent.parent,Jl),required:Pn(d.arguments)}}function NJt(t){const u=[];for(const s of t.elements){if(!at(s.name)||s.initializer)return;u.push(q.createImportSpecifier(!1,ur(s.propertyName,at),s.name))}if(u.length)return q.createNamedImports(u)}var npe,Qwe,PJt=o({"src/services/codefixes/requireInTs.ts"(){rr(),rs(),npe="requireInTs",Qwe=[F.require_call_may_be_converted_to_an_import.code],Xo({errorCodes:Qwe,getCodeActions(t){const u=Sst(t.sourceFile,t.program,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,d=>Ast(d,t.sourceFile,u));return[Ro(npe,s,F.Convert_require_to_import,npe,F.Convert_all_require_to_import)]},fixIds:[npe],getAllCodeActions:t=>f0(t,Qwe,(u,s)=>{const d=Sst(s.file,t.program,s.start);d&&Ast(u,t.sourceFile,d)})})}});function Bst(t,u){const s=Ca(t,u);if(!at(s))return;const{parent:d}=s;if(E1(d)&&r_(d.moduleReference))return{importNode:d,name:s,moduleSpecifier:d.moduleReference.expression};if(Jx(d)){const f=d.parent.parent;return{importNode:f,name:s,moduleSpecifier:f.moduleSpecifier}}}function wst(t,u,s,d){t.replaceNode(u,s.importNode,g5(s.name,void 0,s.moduleSpecifier,Hm(u,d)))}var upe,Xwe,MJt=o({"src/services/codefixes/useDefaultImport.ts"(){rr(),rs(),upe="useDefaultImport",Xwe=[F.Import_may_be_converted_to_a_default_import.code],Xo({errorCodes:Xwe,getCodeActions(t){const{sourceFile:u,span:{start:s}}=t,d=Bst(u,s);if(!d)return;const f=iu.ChangeTracker.with(t,p=>wst(p,u,d,t.preferences));return[Ro(upe,f,F.Convert_to_default_import,upe,F.Convert_all_to_default_imports)]},fixIds:[upe],getAllCodeActions:t=>f0(t,Xwe,(u,s)=>{const d=Bst(s.file,s.start);d&&wst(u,s.file,d,t.preferences)})})}});function Tst(t,u,s){const d=ur(Ca(u,s.start),Of);if(!d)return;const f=d.getText(u)+"n";t.replaceNode(u,d,q.createBigIntLiteral(f))}var rpe,eTe,zJt=o({"src/services/codefixes/useBigintLiteral.ts"(){rr(),rs(),rpe="useBigintLiteral",eTe=[F.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Xo({errorCodes:eTe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Tst(d,u.sourceFile,u.span));if(s.length>0)return[Ro(rpe,s,F.Convert_to_a_bigint_numeric_literal,rpe,F.Convert_all_to_bigint_numeric_literals)]},fixIds:[rpe],getAllCodeActions:t=>f0(t,eTe,(u,s)=>Tst(u,s.file,s))})}});function Lst(t,u){const s=Ca(t,u);return H.assert(s.kind===102,"This token should be an ImportKeyword"),H.assert(s.parent.kind===205,"Token parent should be an ImportType"),s.parent}function Nst(t,u,s){const d=q.updateImportTypeNode(s,s.argument,s.attributes,s.qualifier,s.typeArguments,!0);t.replaceNode(u,s,d)}var Pst,ape,tTe,IJt=o({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){rr(),rs(),Pst="fixAddModuleReferTypeMissingTypeof",ape=Pst,tTe=[F.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Xo({errorCodes:tTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Lst(s,d.start),p=iu.ChangeTracker.with(u,E=>Nst(E,s,f));return[Ro(ape,p,F.Add_missing_typeof,ape,F.Add_missing_typeof)]},fixIds:[ape],getAllCodeActions:t=>f0(t,tTe,(u,s)=>Nst(u,t.sourceFile,Lst(s.file,s.start)))})}});function Mst(t,u){let f=Ca(t,u).parent.parent;if(!(!Xn(f)&&(f=f.parent,!Xn(f)))&&Ql(f.operatorToken))return f}function zst(t,u,s){const d=RJt(s);d&&t.replaceNode(u,s,q.createJsxFragment(q.createJsxOpeningFragment(),d,q.createJsxJsxClosingFragment()))}function RJt(t){const u=[];let s=t;for(;;)if(Xn(s)&&Ql(s.operatorToken)&&s.operatorToken.kind===28){if(u.push(s.left),ej(s.right))return u.push(s.right),u;if(Xn(s.right)){s=s.right;continue}else return}else return}var ope,iTe,OJt=o({"src/services/codefixes/wrapJsxInFragment.ts"(){rr(),rs(),ope="wrapJsxInFragment",iTe=[F.JSX_expressions_must_have_one_parent_element.code],Xo({errorCodes:iTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Mst(s,d.start);if(!f)return;const p=iu.ChangeTracker.with(u,E=>zst(E,s,f));return[Ro(ope,p,F.Wrap_in_JSX_fragment,ope,F.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[ope],getAllCodeActions:t=>f0(t,iTe,(u,s)=>{const d=Mst(t.sourceFile,s.start);d&&zst(u,t.sourceFile,d)})})}});function Ist(t,u){const s=Ca(t,u),d=ur(s.parent.parent,Ek);if(!d)return;const f=xh(d.parent)?d.parent:ur(d.parent.parent,jp);if(f)return{indexSignature:d,container:f}}function jJt(t,u){return q.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,u)}function Rst(t,u,{indexSignature:s,container:d}){const p=(xh(d)?d.members:d.type.members).filter(k=>!Ek(k)),E=Pn(s.parameters),v=q.createTypeParameterDeclaration(void 0,Po(E.name,at),E.type),b=q.createMappedTypeNode(fP(s)?q.createModifier(148):void 0,v,void 0,s.questionToken,s.type,void 0),B=q.createIntersectionTypeNode([...uP(d),b,...p.length?[q.createTypeLiteralNode(p)]:_t]);t.replaceNode(u,d,jJt(d,B))}var spe,nTe,VJt=o({"src/services/codefixes/convertToMappedObjectType.ts"(){rr(),rs(),spe="fixConvertToMappedObjectType",nTe=[F.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Xo({errorCodes:nTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Ist(s,d.start);if(!f)return;const p=iu.ChangeTracker.with(u,v=>Rst(v,s,f)),E=fu(f.container.name);return[Ro(spe,p,[F.Convert_0_to_mapped_object_type,E],spe,[F.Convert_0_to_mapped_object_type,E])]},fixIds:[spe],getAllCodeActions:t=>f0(t,nTe,(u,s)=>{const d=Ist(s.file,s.start);d&&Rst(u,s.file,d)})})}}),uTe,Ost,HJt=o({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){rr(),rs(),uTe="removeAccidentalCallParentheses",Ost=[F.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Xo({errorCodes:Ost,getCodeActions(t){const u=Tn(Ca(t.sourceFile,t.span.start),Mo);if(!u)return;const s=iu.ChangeTracker.with(t,d=>{d.deleteRange(t.sourceFile,{pos:u.expression.end,end:u.end})});return[Cg(uTe,s,F.Remove_parentheses)]},fixIds:[uTe]})}});function jst(t,u,s){const d=ur(Ca(u,s.start),v=>v.kind===135),f=d&&ur(d.parent,Gx);if(!f)return;let p=f;if(Cf(f.parent)){const v=dB(f.expression,!1);if(at(v)){const b=td(f.parent.pos,u);b&&b.kind!==105&&(p=f.parent)}}t.replaceNode(u,p,f.expression)}var lpe,rTe,KJt=o({"src/services/codefixes/removeUnnecessaryAwait.ts"(){rr(),rs(),lpe="removeUnnecessaryAwait",rTe=[F.await_has_no_effect_on_the_type_of_this_expression.code],Xo({errorCodes:rTe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>jst(d,u.sourceFile,u.span));if(s.length>0)return[Ro(lpe,s,F.Remove_unnecessary_await,lpe,F.Remove_all_unnecessary_uses_of_await)]},fixIds:[lpe],getAllCodeActions:t=>f0(t,rTe,(u,s)=>jst(u,s.file,s))})}});function Vst(t,u){return Tn(Ca(t,u.start),Sd)}function Hst(t,u,s){if(!u)return;const d=H.checkDefined(u.importClause);t.replaceNode(s.sourceFile,u,q.updateImportDeclaration(u,u.modifiers,q.updateImportClause(d,d.isTypeOnly,d.name,void 0),u.moduleSpecifier,u.attributes)),t.insertNodeAfter(s.sourceFile,u,q.createImportDeclaration(void 0,q.updateImportClause(d,d.isTypeOnly,void 0,d.namedBindings),u.moduleSpecifier,u.attributes))}var aTe,cpe,WJt=o({"src/services/codefixes/splitTypeOnlyImport.ts"(){rr(),rs(),aTe=[F.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],cpe="splitTypeOnlyImport",Xo({errorCodes:aTe,fixIds:[cpe],getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Hst(d,Vst(u.sourceFile,u.span),u));if(s.length)return[Ro(cpe,s,F.Split_into_two_separate_import_declarations,cpe,F.Split_all_invalid_type_only_imports)]},getAllCodeActions:t=>f0(t,aTe,(u,s)=>{Hst(u,Vst(t.sourceFile,s),t)})})}});function Kst(t,u,s){var d;const p=s.getTypeChecker().getSymbolAtLocation(Ca(t,u));if(p===void 0)return;const E=ur((d=p==null?void 0:p.valueDeclaration)==null?void 0:d.parent,Ad);if(E===void 0)return;const v=a0(E,87,t);if(v!==void 0)return{symbol:p,token:v}}function Wst(t,u,s){t.replaceNode(u,s,q.createToken(121))}var dpe,oTe,GJt=o({"src/services/codefixes/convertConstToLet.ts"(){rr(),rs(),dpe="fixConvertConstToLet",oTe=[F.Cannot_assign_to_0_because_it_is_a_constant.code],Xo({errorCodes:oTe,getCodeActions:function(u){const{sourceFile:s,span:d,program:f}=u,p=Kst(s,d.start,f);if(p===void 0)return;const E=iu.ChangeTracker.with(u,v=>Wst(v,s,p.token));return[oBe(dpe,E,F.Convert_const_to_let,dpe,F.Convert_all_const_to_let)]},getAllCodeActions:t=>{const{program:u}=t,s=new Map;return Ew(iu.ChangeTracker.with(t,d=>{_w(t,oTe,f=>{const p=Kst(f.file,f.start,u);if(p&&Ip(s,Zo(p.symbol)))return Wst(d,f.file,p.token)})}))},fixIds:[dpe]})}});function Gst(t,u,s){const d=Ca(t,u);return d.kind===27&&d.parent&&(ys(d.parent)||Dh(d.parent))?{node:d}:void 0}function Jst(t,u,{node:s}){const d=q.createToken(28);t.replaceNode(u,s,d)}var hpe,$st,sTe,JJt=o({"src/services/codefixes/fixExpectedComma.ts"(){rr(),rs(),hpe="fixExpectedComma",$st=F._0_expected.code,sTe=[$st],Xo({errorCodes:sTe,getCodeActions(t){const{sourceFile:u}=t,s=Gst(u,t.span.start,t.errorCode);if(!s)return;const d=iu.ChangeTracker.with(t,f=>Jst(f,u,s));return[Ro(hpe,d,[F.Change_0_to_1,";",","],hpe,[F.Change_0_to_1,";",","])]},fixIds:[hpe],getAllCodeActions:t=>f0(t,sTe,(u,s)=>{const d=Gst(s.file,s.start,s.code);d&&Jst(u,t.sourceFile,d)})})}});function Ust(t,u,s,d,f){const p=Ca(u,s.start);if(!at(p)||!Mo(p.parent)||p.parent.expression!==p||p.parent.arguments.length!==0)return;const E=d.getTypeChecker(),v=E.getSymbolAtLocation(p),b=v==null?void 0:v.valueDeclaration;if(!b||!io(b)||!j2(b.parent.parent)||f!=null&&f.has(b))return;f==null||f.add(b);const B=$Jt(b.parent.parent);if(Oe(B)){const k=B[0],T=!Pv(k)&&!M7(k)&&M7(q.createUnionTypeNode([k,q.createKeywordTypeNode(116)]).types[0]);T&&t.insertText(u,k.pos,"("),t.insertText(u,k.end,T?") | void":" | void")}else{const k=E.getResolvedSignature(p.parent),T=k==null?void 0:k.parameters[0],M=T&&E.getTypeOfSymbolAtLocation(T,b.parent.parent);Qn(b)?(!M||M.flags&3)&&(t.insertText(u,b.parent.parent.end,")"),t.insertText(u,gs(u.text,b.parent.parent.pos),"/** @type {Promise} */(")):(!M||M.flags&2)&&t.insertText(u,b.parent.parent.expression.end,"")}}function $Jt(t){var u;if(Qn(t)){if(Cf(t.parent)){const s=(u=xv(t.parent))==null?void 0:u.typeExpression.type;if(s&&X4(s)&&at(s.typeName)&&fu(s.typeName)==="Promise")return s.typeArguments}}else return t.typeArguments}var qst,lTe,cTe,UJt=o({"src/services/codefixes/fixAddVoidToPromise.ts"(){rr(),rs(),qst="addVoidToPromise",lTe="addVoidToPromise",cTe=[F.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,F.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Xo({errorCodes:cTe,fixIds:[lTe],getCodeActions(t){const u=iu.ChangeTracker.with(t,s=>Ust(s,t.sourceFile,t.span,t.program));if(u.length>0)return[Ro(qst,u,F.Add_void_to_Promise_resolved_without_a_value,lTe,F.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(t){return f0(t,cTe,(u,s)=>Ust(u,s.file,s,t.program,new Set))}})}}),z1={};h(z1,{PreserveOptionalFlags:()=>Uwe,addNewNodeForMemberSymbol:()=>sst,codeFixAll:()=>f0,createCodeFixAction:()=>Ro,createCodeFixActionMaybeFixAll:()=>oBe,createCodeFixActionWithoutFixAll:()=>Cg,createCombinedCodeActions:()=>Ew,createFileTextChanges:()=>frt,createImportAdder:()=>l9,createImportSpecifierResolver:()=>sWt,createJsonPropertyAssignment:()=>Q4e,createMissingMemberNodes:()=>jwe,createSignatureDeclarationFromCallExpression:()=>Vwe,createSignatureDeclarationFromSignature:()=>Z4e,createStubbedBody:()=>Bee,eachDiagnostic:()=>_w,findAncestorMatchingSpan:()=>$we,findJsonProperty:()=>Jwe,generateAccessorFromProperty:()=>mst,getAccessorConvertiblePropertyAtPosition:()=>Est,getAllFixes:()=>RHt,getAllSupers:()=>qwe,getArgumentTypesAndTypeParameters:()=>dst,getFixes:()=>IHt,getImportCompletionAction:()=>lWt,getImportKind:()=>zBe,getJSDocTypedefNodes:()=>nWt,getNoopSymbolTrackerWithResolver:()=>xw,getPromoteTypeOnlyCompletionAction:()=>cWt,getSupportedErrorCodes:()=>MHt,importFixName:()=>KBe,importSymbols:()=>vw,moduleSpecifierToValidIdentifier:()=>HBe,moduleSymbolToValidIdentifier:()=>VBe,parameterShouldGetTypeFromJSDoc:()=>Nrt,registerCodeFix:()=>Xo,setJsonCompilerOptionValue:()=>Gwe,setJsonCompilerOptionValues:()=>Wwe,tryGetAutoImportableReferenceFromTypeNode:()=>d9,typeToAutoImportableTypeNode:()=>Y4e});var rs=o({"src/services/_namespaces/ts.codefix.ts"(){OHt(),jHt(),VHt(),WHt(),qHt(),XHt(),eKt(),tKt(),iKt(),aKt(),gKt(),_Kt(),BKt(),$Kt(),UKt(),ZKt(),YKt(),uWt(),rWt(),oWt(),wWt(),NWt(),zWt(),IWt(),RWt(),VWt(),WWt(),$Wt(),QWt(),sGt(),cGt(),dGt(),fGt(),mGt(),pGt(),gGt(),_Gt(),DGt(),xGt(),vGt(),CGt(),yGt(),AGt(),TGt(),jGt(),HGt(),KGt(),JGt(),$Gt(),qGt(),ZGt(),uJt(),rJt(),aJt(),hJt(),yJt(),SJt(),LJt(),PJt(),MJt(),zJt(),IJt(),OJt(),VJt(),HJt(),KJt(),WJt(),GJt(),JJt(),UJt()}});function qJt(t){return!!(t.kind&1)}function ZJt(t){return!!(t.kind&2)}function wee(t){return!!(t&&t.kind&4)}function ZM(t){return!!(t&&t.kind===32)}function YJt(t){return wee(t)||ZM(t)||dTe(t)}function QJt(t){return(wee(t)||ZM(t))&&!!t.isFromPackageJson}function XJt(t){return!!(t.kind&8)}function e$t(t){return!!(t.kind&16)}function Zst(t){return!!(t&&t.kind&64)}function Yst(t){return!!(t&&t.kind&128)}function t$t(t){return!!(t&&t.kind&256)}function dTe(t){return!!(t&&t.kind&512)}function Qst(t,u,s,d,f,p,E,v,b){var B,k,T;const M=G0(),z=E||b7(p1(d.getCompilerOptions()));let j=!1,J=0,K=0,Y=0,oe=0;const se=b({tryResolve:ae,skippedAny:()=>j,resolvedAny:()=>K>0,resolvedBeyondLimit:()=>K>Cpe}),ge=oe?` (${(Y/oe*100).toFixed(1)}% hit rate)`:"";return(B=u.log)==null||B.call(u,`${t}: resolved ${K} module specifiers, plus ${J} ambient and ${Y} from cache${ge}`),(k=u.log)==null||k.call(u,`${t}: response is ${j?"incomplete":"complete"}`),(T=u.log)==null||T.call(u,`${t}: ${G0()-M}`),se;function ae(Ce,ne){if(ne){const pe=s.getModuleSpecifierForBestExportInfo(Ce,f,v);return pe&&J++,pe||"failed"}const ve=z||p.allowIncompleteCompletions&&K{const j=qi(b.entries,J=>{var K;if(!J.hasAction||!J.source||!J.data||Xst(J.data))return J;if(!y0t(J.name,k))return;const{origin:Y}=H.checkDefined(d0t(J.name,J.data,d,f)),oe=T.get(u.path,J.data.exportMapKey),se=oe&&z.tryResolve(oe,!Id($4(Y.moduleSymbol.name)));if(se==="skipped")return J;if(!se||se==="failed"){(K=f.log)==null||K.call(f,`Unexpected failure resolving auto import for '${J.name}' from '${J.source}'`);return}const ge={...Y,kind:32,moduleSpecifier:se.moduleSpecifier};return J.data=o0t(ge),J.source=mTe(ge),J.sourceDisplay=[Km(ge.moduleSpecifier)],J});return z.skippedAny()||(b.isIncomplete=void 0),j});return b.entries=M,b.flags=(b.flags||0)|4,b.optionalReplacementSpan=n0t(B),b}function hTe(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function e0t(t,u,s,d,f,p){const E=Ca(t,u);if(!I8(E)&&!Vp(E))return[];const v=Vp(E)?E:E.parent;if(!Vp(v))return[];const b=v.parent;if(!Co(b))return[];const B=gh(t),k=f.includeCompletionsWithSnippetText||void 0,T=ui(v.tags,M=>Eg(M)&&M.getEnd()<=u);return qi(b.parameters,M=>{if(!B8(M).length){if(at(M.name)){const z={tabstop:1},j=M.name.text;let J=AK(j,M.initializer,M.dotDotDotToken,B,!1,!1,s,d,f),K=k?AK(j,M.initializer,M.dotDotDotToken,B,!1,!0,s,d,f,z):void 0;return p&&(J=J.slice(1),K&&(K=K.slice(1))),{name:J,kind:"parameter",sortText:I1.LocationPriority,insertText:k?K:void 0,isSnippet:k}}else if(M.parent.parameters.indexOf(M)===T){const z=`param${T}`,j=t0t(z,M.name,M.initializer,M.dotDotDotToken,B,!1,s,d,f),J=k?t0t(z,M.name,M.initializer,M.dotDotDotToken,B,!0,s,d,f):void 0;let K=j.join(a5(d)+"* "),Y=J==null?void 0:J.join(a5(d)+"* ");return p&&(K=K.slice(1),Y&&(Y=Y.slice(1))),{name:K,kind:"parameter",sortText:I1.LocationPriority,insertText:k?Y:void 0,isSnippet:k}}}})}function t0t(t,u,s,d,f,p,E,v,b){if(!f)return[AK(t,s,d,f,!1,p,E,v,b,{tabstop:1})];return B(t,u,s,d,{tabstop:1});function B(T,M,z,j,J){if(Rp(M)&&!j){const Y={tabstop:J.tabstop},oe=AK(T,z,j,f,!0,p,E,v,b,Y);let se=[];for(const ge of M.elements){const ae=k(T,ge,Y);if(ae)se.push(...ae);else{se=void 0;break}}if(se)return J.tabstop=Y.tabstop,[oe,...se]}return[AK(T,z,j,f,!1,p,E,v,b,J)]}function k(T,M,z){if(!M.propertyName&&at(M.name)||at(M.name)){const j=M.propertyName?UN(M.propertyName):M.name.text;if(!j)return;const J=`${T}.${j}`;return[AK(J,M.initializer,M.dotDotDotToken,f,!1,p,E,v,b,z)]}else if(M.propertyName){const j=UN(M.propertyName);return j&&B(`${T}.${j}`,M.name,M.initializer,M.dotDotDotToken,z)}}}function AK(t,u,s,d,f,p,E,v,b,B){if(p&&H.assertIsDefined(B),u&&(t=u$t(t,u)),p&&(t=O2(t)),d){let k="*";if(f)H.assert(!s,"Cannot annotate a rest parameter with type 'Object'."),k="Object";else{if(u){const z=E.getTypeAtLocation(u.parent);if(!(z.flags&16385)){const j=u.getSourceFile(),K=Hm(j,b)===0?268435456:0,Y=E.typeToTypeNode(z,Tn(u,Co),K);if(Y){const oe=p?ppe({removeComments:!0,module:v.module,target:v.target}):Gv({removeComments:!0,module:v.module,target:v.target});Zn(Y,1),k=oe.printNode(4,Y,j)}}}p&&k==="*"&&(k=`\${${B.tabstop++}:${k}}`)}const T=!f&&s?"...":"",M=p?`\${${B.tabstop++}}`:"";return`@param {${T}${k}} ${t} ${M}`}else{const k=p?`\${${B.tabstop++}}`:"";return`@param ${t} ${k}`}}function u$t(t,u){const s=u.getText().trim();return s.includes(` +`)||s.length>80?`[${t}]`:`[${t}=${s}]`}function r$t(t){return{name:Uo(t),kind:"keyword",kindModifiers:"",sortText:I1.GlobalsOrKeywords}}function a$t(t,u){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:u,entries:t.slice()}}function i0t(t,u,s){return{kind:4,keywordCompletions:h0t(t,u),isNewIdentifierLocation:s}}function o$t(t){switch(t){case 156:return 8;default:H.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function n0t(t){return(t==null?void 0:t.kind)===80?of(t):void 0}function s$t(t,u,s,d,f,p,E,v,b,B){const{symbols:k,contextToken:T,completionKind:M,isInSnippetScope:z,isNewIdentifierLocation:j,location:J,propertyAccessToConvert:K,keywordFilters:Y,symbolToOriginInfoMap:oe,recommendedCompletion:se,isJsxInitializer:ge,isTypeOnlyLocation:ae,isJsxIdentifierExpected:Ce,isRightOfOpenTag:ne,isRightOfDotOrQuestionDot:ve,importStatementCompletion:Se,insideJsDocTagTypeExpression:Ne,symbolToSortTextMap:pe,hasUnresolvedAutoImports:fe}=p;let xe=p.literals;const Be=s.getTypeChecker();if(Yj(t.scriptKind)===1){const ft=c$t(J,t);if(ft)return ft}const Ge=Tn(T,BB);if(Ge&&(uFe(T)||S2(T,Ge.expression))){const ft=VX(Be,Ge.parent.clauses);xe=xe.filter(Ye=>!ft.hasValue(Ye)),k.forEach((Ye,Ve)=>{if(Ye.valueDeclaration&&J2(Ye.valueDeclaration)){const We=Be.getConstantValue(Ye.valueDeclaration);We!==void 0&&ft.hasValue(We)&&(oe[Ve]={kind:256})}})}const Ae=xt(),De=u0t(t,d);if(De&&!j&&(!k||k.length===0)&&Y===0)return;const Ke=pTe(k,Ae,void 0,T,J,b,t,u,s,Os(d),f,M,E,d,v,ae,K,Ce,ge,Se,se,oe,pe,Ce,ne,B);if(Y!==0)for(const ft of h0t(Y,!Ne&&gh(t)))(ae&&PM(f2(ft.name))||!ae&&G$t(ft.name)||!Ke.has(ft.name))&&(Ke.add(ft.name),Tt(Ae,ft,Tee,!0));for(const ft of L$t(T,b))Ke.has(ft.name)||(Ke.add(ft.name),Tt(Ae,ft,Tee,!0));for(const ft of xe){const Ye=h$t(t,E,ft);Ke.add(Ye.name),Tt(Ae,Ye,Tee,!0)}De||d$t(t,J.pos,Ke,Os(d),Ae);let Je;if(E.includeCompletionsWithInsertText&&T&&!ne&&!ve&&(Je=Tn(T,ZP))){const ft=r0t(Je,t,E,d,u,s,v);ft&&Ae.push(ft.entry)}return{flags:p.flags,isGlobalCompletion:z,isIncomplete:E.allowIncompleteCompletions&&fe?!0:void 0,isMemberCompletion:l$t(M),isNewIdentifierLocation:j,optionalReplacementSpan:n0t(J),entries:Ae}}function u0t(t,u){return!gh(t)||!!uV(t,u)}function r0t(t,u,s,d,f,p,E){const v=t.clauses,b=p.getTypeChecker(),B=b.getTypeAtLocation(t.parent.expression);if(B&&B.isUnion()&&ye(B.types,k=>k.isLiteral())){const k=VX(b,v),T=Os(d),M=Hm(u,s),z=z1.createImportAdder(u,p,s,f),j=[];for(const ae of B.types)if(ae.flags&1024){H.assert(ae.symbol,"An enum member type should have a symbol"),H.assert(ae.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const Ce=ae.symbol.valueDeclaration&&b.getConstantValue(ae.symbol.valueDeclaration);if(Ce!==void 0){if(k.hasValue(Ce))continue;k.addValue(Ce)}const ne=z1.typeToAutoImportableTypeNode(b,z,ae,t,T);if(!ne)return;const ve=fpe(ne,T,M);if(!ve)return;j.push(ve)}else if(!k.hasValue(ae.value))switch(typeof ae.value){case"object":j.push(ae.value.negative?q.createPrefixUnaryExpression(41,q.createBigIntLiteral({negative:!1,base10Value:ae.value.base10Value})):q.createBigIntLiteral(ae.value));break;case"number":j.push(ae.value<0?q.createPrefixUnaryExpression(41,q.createNumericLiteral(-ae.value)):q.createNumericLiteral(ae.value));break;case"string":j.push(q.createStringLiteral(ae.value,M===0));break}if(j.length===0)return;const J=Vt(j,ae=>q.createCaseClause(ae,[])),K=E5(f,E==null?void 0:E.options),Y=ppe({removeComments:!0,module:d.module,target:d.target,newLine:eK(K)}),oe=E?ae=>Y.printAndFormatNode(4,ae,u,E):ae=>Y.printNode(4,ae,u),se=Vt(J,(ae,Ce)=>s.includeCompletionsWithSnippetText?`${oe(ae)}$${Ce+1}`:`${oe(ae)}`).join(K);return{entry:{name:`${Y.printNode(4,J[0],u)} ...`,kind:"",sortText:I1.GlobalsOrKeywords,insertText:se,hasAction:z.hasFixes()||void 0,source:"SwitchCases/",isSnippet:s.includeCompletionsWithSnippetText?!0:void 0},importAdder:z}}}function fpe(t,u,s){switch(t.kind){case 183:const d=t.typeName;return mpe(d,u,s);case 199:const f=fpe(t.objectType,u,s),p=fpe(t.indexType,u,s);return f&&p&&q.createElementAccessExpression(f,p);case 201:const E=t.literal;switch(E.kind){case 11:return q.createStringLiteral(E.text,s===0);case 9:return q.createNumericLiteral(E.text,E.numericLiteralFlags)}return;case 196:const v=fpe(t.type,u,s);return v&&(at(v)?v:q.createParenthesizedExpression(v));case 186:return mpe(t.exprName,u,s);case 205:H.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function mpe(t,u,s){if(at(t))return t;const d=Yr(t.right.escapedText);return zle(d,u)?q.createPropertyAccessExpression(mpe(t.left,u,s),d):q.createElementAccessExpression(mpe(t.left,u,s),q.createStringLiteral(d,s===0))}function l$t(t){switch(t){case 0:case 3:case 2:return!0;default:return!1}}function c$t(t,u){const s=Tn(t,d=>{switch(d.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(s){const d=!!a0(s,32,u),E=s.parent.openingElement.tagName.getText(u)+(d?"":">"),v=of(s.tagName),b={name:E,kind:"class",kindModifiers:void 0,sortText:I1.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:v,entries:[b]}}}function d$t(t,u,s,d,f){Tme(t).forEach((p,E)=>{if(p===u)return;const v=Yr(E);!s.has(v)&&Lm(v,d)&&(s.add(v),Tt(f,{name:v,kind:"warning",kindModifiers:"",sortText:I1.JavascriptIdentifiers,isFromUncheckedFile:!0},Tee))})}function fTe(t,u,s){return typeof s=="object"?I2(s)+"n":Ja(s)?jM(t,u,s):JSON.stringify(s)}function h$t(t,u,s){return{name:fTe(t,u,s),kind:"string",kindModifiers:"",sortText:I1.LocationPriority}}function f$t(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce,ne){var ve,Se;let Ne,pe,fe=Xhe(s),xe,Be,Ge=mTe(T),Ae,De,Ke;const Je=b.getTypeChecker(),ft=T&&e$t(T),Ye=T&&ZJt(T)||k;if(T&&qJt(T))Ne=k?`this${ft?"?.":""}[${s0t(E,oe,B)}]`:`this${ft?"?.":"."}${B}`;else if((Ye||ft)&&z){Ne=Ye?k?`[${s0t(E,oe,B)}]`:`[${B}]`:B,(ft||z.questionDotToken)&&(Ne=`?.${Ne}`);const We=a0(z,25,E)||a0(z,29,E);if(!We)return;const Gt=Pa(B,z.name.text)?z.name.end:We.end;fe=Vc(We.getStart(E),Gt)}if(j&&(Ne===void 0&&(Ne=B),Ne=`{${Ne}}`,typeof j!="boolean"&&(fe=of(j,E))),T&&XJt(T)&&z){Ne===void 0&&(Ne=B);const We=td(z.pos,E);let Gt="";We&&TX(We.end,We.parent,E)&&(Gt=";"),Gt+=`(await ${z.expression.getText()})`,Ne=k?`${Gt}${Ne}`:`${Gt}${ft?"?.":"."}${Ne}`;const Ie=ur(z.parent,Gx)?z.parent:z.expression;fe=Vc(Ie.getStart(E),z.end)}if(ZM(T)&&(Ae=[Km(T.moduleSpecifier)],J&&({insertText:Ne,replacementSpan:fe}=x$t(B,J,T,K,E,Y,oe),Be=oe.includeCompletionsWithSnippetText?!0:void 0)),(T==null?void 0:T.kind)===64&&(De=!0),se===0&&d&&((ve=td(d.pos,E,d))==null?void 0:ve.kind)!==28&&(dc(d.parent.parent)||zm(d.parent.parent)||jf(d.parent.parent)||d5(d.parent)||((Se=Tn(d.parent,Jc))==null?void 0:Se.getLastToken(E))===d||pm(d.parent)&&s0(E,d.getEnd()).line!==s0(E,p).line)&&(Ge="ObjectLiteralMemberWithComma/",De=!0),oe.includeCompletionsWithClassMemberSnippets&&oe.includeCompletionsWithInsertText&&se===3&&m$t(t,f,E)){let We;const Gt=a0t(v,b,Y,oe,B,t,f,p,d,ge);if(Gt)({insertText:Ne,filterText:pe,isSnippet:Be,importAdder:We}=Gt),We!=null&&We.hasFixes()&&(De=!0,Ge="ClassMemberSnippet/");else return}if(T&&Yst(T)&&({insertText:Ne,isSnippet:Be,labelDetails:Ke}=T,oe.useLabelDetailsInCompletionEntries||(B=B+Ke.detail,Ke=void 0),Ge="ObjectLiteralMethodSnippet/",u=I1.SortBelow(u)),ae&&!Ce&&oe.includeCompletionsWithSnippetText&&oe.jsxAttributeCompletionStyle&&oe.jsxAttributeCompletionStyle!=="none"&&!(oE(f.parent)&&f.parent.initializer)){let We=oe.jsxAttributeCompletionStyle==="braces";const Gt=Je.getTypeOfSymbolAtLocation(t,f);oe.jsxAttributeCompletionStyle==="auto"&&!(Gt.flags&528)&&!(Gt.flags&1048576&&Le(Gt.types,Yt=>!!(Yt.flags&528)))&&(Gt.flags&402653316||Gt.flags&1048576&&ye(Gt.types,Yt=>!!(Yt.flags&402686084||aSe(Yt)))?(Ne=`${O2(B)}=${jM(E,oe,"$1")}`,Be=!0):We=!0),We&&(Ne=`${O2(B)}={$1}`,Be=!0)}if(Ne!==void 0&&!oe.includeCompletionsWithInsertText)return;(wee(T)||ZM(T))&&(xe=o0t(T),De=!J);const Ve=Tn(f,Uq);if((Ve==null?void 0:Ve.kind)===275){const We=f2(B);Ve&&We&&(We===135||G0e(We))&&(Ne=`${B} as ${B}_`)}return{name:B,kind:x5.getSymbolKind(Je,t,f),kindModifiers:x5.getSymbolModifiers(Je,t),sortText:u,source:Ge,hasAction:De?!0:void 0,isRecommended:v$t(t,M,Je)||void 0,insertText:Ne,filterText:pe,replacementSpan:fe,sourceDisplay:Ae,labelDetails:Ke,isSnippet:Be,isPackageJsonImport:QJt(T)||void 0,isImportStatementCompletion:!!J||void 0,data:xe,...ne?{symbol:t}:void 0}}function m$t(t,u,s){return Qn(u)?!1:!!(t.flags&106500)&&(mr(u)||u.parent&&u.parent.parent&&Zd(u.parent)&&u===u.parent.name&&u.parent.getLastToken(s)===u.parent.name&&mr(u.parent.parent)||u.parent&&MB(u)&&mr(u.parent))}function a0t(t,u,s,d,f,p,E,v,b,B){const k=Tn(E,mr);if(!k)return;let T,M=f;const z=f,j=u.getTypeChecker(),J=E.getSourceFile(),K=ppe({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:eK(E5(t,B==null?void 0:B.options))}),Y=z1.createImportAdder(J,u,d,t);let oe;if(d.includeCompletionsWithSnippetText){T=!0;const Se=q.createEmptyStatement();oe=q.createBlock([Se],!0),lce(Se,{kind:0,order:0})}else oe=q.createBlock([],!0);let se=0;const{modifiers:ge,range:ae,decorators:Ce}=p$t(b,J,v),ne=ge&64&&k.modifierFlagsCache&64;let ve=[];if(z1.addNewNodeForMemberSymbol(p,k,J,{program:u,host:t},d,Y,Se=>{let Ne=0;ne&&(Ne|=64),Zd(Se)&&j.getMemberOverrideModifierStatus(k,Se,p)===1&&(Ne|=16),ve.length||(se=Se.modifierFlagsCache|Ne),Se=q.replaceModifiers(Se,se),ve.push(Se)},oe,z1.PreserveOptionalFlags.Property,!!ne),ve.length){const Se=p.flags&8192;let Ne=se|16|1;Se?Ne|=1024:Ne|=136;const pe=ge&Ne;if(ge&~Ne)return;if(se&4&&pe&1&&(se&=-5),pe!==0&&!(pe&1)&&(se&=-2),se|=pe,ve=ve.map(xe=>q.replaceModifiers(xe,se)),Ce!=null&&Ce.length){const xe=ve[ve.length-1];Ak(xe)&&(ve[ve.length-1]=q.replaceDecoratorsAndModifiers(xe,Ce.concat(p2(xe)||[])))}const fe=131073;B?M=K.printAndFormatSnippetList(fe,q.createNodeArray(ve),J,B):M=K.printSnippetList(fe,q.createNodeArray(ve),J)}return{insertText:M,filterText:z,isSnippet:T,importAdder:Y,eraseRange:ae}}function p$t(t,u,s){if(!t||s0(u,s).line>s0(u,t.getEnd()).line)return{modifiers:0};let d=0,f,p;const E={pos:s,end:s};if(ko(t.parent)&&t.parent.modifiers&&(d|=tE(t.parent.modifiers)&98303,f=t.parent.modifiers.filter(g1)||[],E.pos=Math.min(E.pos,t.parent.modifiers.pos)),p=g$t(t)){const v=_7(p);d&v||(d|=v,E.pos=Math.min(E.pos,t.pos))}return{modifiers:d,decorators:f,range:E.pos!==s?E:void 0}}function g$t(t){if(Qo(t))return t.kind;if(at(t)){const u=Dv(t);if(u&&XD(u))return u}}function E$t(t,u,s,d,f,p,E,v){const b=E.includeCompletionsWithSnippetText||void 0;let B=u;const k=s.getSourceFile(),T=_$t(t,s,k,d,f,E);if(!T)return;const M=ppe({removeComments:!0,module:p.module,target:p.target,omitTrailingSemicolon:!1,newLine:eK(E5(f,v==null?void 0:v.options))});v?B=M.printAndFormatSnippetList(80,q.createNodeArray([T],!0),k,v):B=M.printSnippetList(80,q.createNodeArray([T],!0),k);const z=Gv({removeComments:!0,module:p.module,target:p.target,omitTrailingSemicolon:!0}),j=q.createMethodSignature(void 0,"",T.questionToken,T.typeParameters,T.parameters,T.type),J={detail:z.printNode(4,j,k)};return{isSnippet:b,insertText:B,labelDetails:J}}function _$t(t,u,s,d,f,p){const E=t.getDeclarations();if(!(E&&E.length))return;const v=d.getTypeChecker(),b=E[0],B=ll(Za(b),!1),k=v.getWidenedType(v.getTypeOfSymbolAtLocation(t,u)),M=33554432|(Hm(s,p)===0?268435456:0);switch(b.kind){case 171:case 172:case 173:case 174:{let z=k.flags&1048576&&k.types.length<10?v.getUnionType(k.types,2):k;if(z.flags&1048576){const oe=ti(z.types,se=>v.getSignaturesOfType(se,0).length>0);if(oe.length===1)z=oe[0];else return}if(v.getSignaturesOfType(z,0).length!==1)return;const J=v.typeToTypeNode(z,u,M,z1.getNoopSymbolTrackerWithResolver({program:d,host:f}));if(!J||!u3(J))return;let K;if(p.includeCompletionsWithSnippetText){const oe=q.createEmptyStatement();K=q.createBlock([oe],!0),lce(oe,{kind:0,order:0})}else K=q.createBlock([],!0);const Y=J.parameters.map(oe=>q.createParameterDeclaration(void 0,oe.dotDotDotToken,oe.name,void 0,void 0,oe.initializer));return q.createMethodDeclaration(void 0,void 0,B,void 0,void 0,Y,void 0,K)}default:return}}function ppe(t){let u;const s=iu.createWriter(a5(t)),d=Gv(t,s),f={...s,write:M=>p(M,()=>s.write(M)),nonEscapingWrite:s.write,writeLiteral:M=>p(M,()=>s.writeLiteral(M)),writeStringLiteral:M=>p(M,()=>s.writeStringLiteral(M)),writeSymbol:(M,z)=>p(M,()=>s.writeSymbol(M,z)),writeParameter:M=>p(M,()=>s.writeParameter(M)),writeComment:M=>p(M,()=>s.writeComment(M)),writeProperty:M=>p(M,()=>s.writeProperty(M))};return{printSnippetList:E,printAndFormatSnippetList:b,printNode:B,printAndFormatNode:T};function p(M,z){const j=O2(M);if(j!==M){const J=s.getTextPos();z();const K=s.getTextPos();u=xi(u||(u=[]),{newText:j,span:{start:J,length:K-J}})}else z()}function E(M,z,j){const J=v(M,z,j);return u?iu.applyChanges(J,u):J}function v(M,z,j){return u=void 0,f.clear(),d.writeList(M,z,j,f),f.getText()}function b(M,z,j,J){const K={text:v(M,z,j),getLineAndCharacterOfPosition(ge){return s0(this,ge)}},Y=jX(J,j),oe=ju(z,ge=>{const ae=iu.assignPositionsToNode(ge);return dd.formatNodeGivenIndentation(ae,K,j.languageVariant,0,0,{...J,options:Y})}),se=u?oc(Hi(oe,u),(ge,ae)=>q$(ge.span,ae.span)):oe;return iu.applyChanges(K.text,se)}function B(M,z,j){const J=k(M,z,j);return u?iu.applyChanges(J,u):J}function k(M,z,j){return u=void 0,f.clear(),d.writeNode(M,z,j,f),f.getText()}function T(M,z,j,J){const K={text:k(M,z,j),getLineAndCharacterOfPosition(ae){return s0(this,ae)}},Y=jX(J,j),oe=iu.assignPositionsToNode(z),se=dd.formatNodeGivenIndentation(oe,K,j.languageVariant,0,0,{...J,options:Y}),ge=u?oc(Hi(se,u),(ae,Ce)=>q$(ae.span,Ce.span)):se;return iu.applyChanges(K.text,ge)}}function o0t(t){const u=t.fileName?void 0:$4(t.moduleSymbol.name),s=t.isFromPackageJson?!0:void 0;return ZM(t)?{exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,ambientModuleName:u,fileName:t.fileName,isPackageJsonImport:s}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:$4(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?!0:void 0}}function D$t(t,u,s){const d=t.exportName==="default",f=!!t.isPackageJsonImport;return Xst(t)?{kind:32,exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,symbolName:u,fileName:t.fileName,moduleSymbol:s,isDefaultExport:d,isFromPackageJson:f}:{kind:4,exportName:t.exportName,exportMapKey:t.exportMapKey,symbolName:u,fileName:t.fileName,moduleSymbol:s,isDefaultExport:d,isFromPackageJson:f}}function x$t(t,u,s,d,f,p,E){const v=u.replacementSpan,b=O2(jM(f,E,s.moduleSpecifier)),B=s.isDefaultExport?1:s.exportName==="export="?2:0,k=E.includeCompletionsWithSnippetText?"$1":"",T=z1.getImportKind(f,B,p,!0),M=u.couldBeTypeOnlyImportSpecifier,z=u.isTopLevelTypeOnly?` ${Uo(156)} `:" ",j=M?`${Uo(156)} `:"",J=d?";":"";switch(T){case 3:return{replacementSpan:v,insertText:`import${z}${O2(t)}${k} = require(${b})${J}`};case 1:return{replacementSpan:v,insertText:`import${z}${O2(t)}${k} from ${b}${J}`};case 2:return{replacementSpan:v,insertText:`import${z}* as ${O2(t)} from ${b}${J}`};case 0:return{replacementSpan:v,insertText:`import${z}{ ${j}${O2(t)}${k} } from ${b}${J}`}}}function s0t(t,u,s){return/^\d+$/.test(s)?s:jM(t,u,s)}function v$t(t,u,s){return t===u||!!(t.flags&1048576)&&s.getExportSymbolOfSymbol(t)===u}function mTe(t){if(wee(t))return $4(t.moduleSymbol.name);if(ZM(t))return t.moduleSpecifier;if((t==null?void 0:t.kind)===1)return"ThisProperty/";if((t==null?void 0:t.kind)===64)return"TypeOnlyAlias/"}function pTe(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce,ne,ve,Se=!1){const Ne=G0(),pe=H$t(d,f),fe=YH(E),xe=b.getTypeChecker(),Be=new Map;for(let Ae=0;AeIe.getSourceFile()===f.getSourceFile()));Be.set(ft,Yt),Tt(u,Gt,Tee,!0)}return k("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(G0()-Ne)),{has:Ae=>Be.has(Ae),add:Ae=>Be.set(Ae,!0)};function Ge(Ae,De){var Ke;let Je=Ae.flags;if(!la(f)){if(tc(f.parent))return!0;if(ur(pe,na)&&Ae.valueDeclaration===pe)return!1;const ft=Ae.valueDeclaration??((Ke=Ae.declarations)==null?void 0:Ke[0]);if(pe&&ft&&(Bl(pe)&&Bl(ft)||io(pe)&&io(ft))){const Ve=ft.pos,We=io(pe)?pe.parent.parameters:P7(pe.parent)?void 0:pe.parent.typeParameters;if(Ve>=pe.pos&&We&&VefTe(s,E,se)===f.name);return oe!==void 0?{type:"literal",literal:oe}:G(B,(se,ge)=>{const ae=z[ge],Ce=Epe(se,Os(v),ae,M,b.isJsxIdentifierExpected);return Ce&&Ce.name===f.name&&(f.source==="ClassMemberSnippet/"&&se.flags&106500||f.source==="ObjectLiteralMethodSnippet/"&&se.flags&8196||mTe(ae)===f.source||f.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:se,location:T,origin:ae,contextToken:j,previousToken:J,isJsxInitializer:K,isTypeOnlyLocation:Y}:void 0})||{type:"none"}}function y$t(t,u,s,d,f,p,E,v,b){const B=t.getTypeChecker(),k=t.getCompilerOptions(),{name:T,source:M,data:z}=f,{previousToken:j,contextToken:J}=gpe(d,s);if(zk(s,d,j))return ype.getStringLiteralCompletionDetails(T,s,d,j,B,k,p,b,v);const K=l0t(t,u,s,d,f,p,v);switch(K.type){case"request":{const{request:Y}=K;switch(Y.kind){case 1:return Yv.getJSDocTagNameCompletionDetails(T);case 2:return Yv.getJSDocTagCompletionDetails(T);case 3:return Yv.getJSDocParameterNameCompletionDetails(T);case 4:return Oe(Y.keywordCompletions,oe=>oe.name===T)?gTe(T,"keyword",5):void 0;default:return H.assertNever(Y)}}case"symbol":{const{symbol:Y,location:oe,contextToken:se,origin:ge,previousToken:ae}=K,{codeActions:Ce,sourceDisplay:ne}=k$t(T,oe,se,ge,Y,t,p,k,s,d,ae,E,v,z,M,b),ve=dTe(ge)?ge.symbolName:Y.name;return ETe(Y,ve,B,s,oe,b,Ce,ne)}case"literal":{const{literal:Y}=K;return gTe(fTe(s,v,Y),"string",typeof Y=="string"?8:7)}case"cases":{const Y=r0t(J.parent,s,v,t.getCompilerOptions(),p,t,void 0);if(Y!=null&&Y.importAdder.hasFixes()){const{entry:oe,importAdder:se}=Y,ge=iu.ChangeTracker.with({host:p,formatContext:E,preferences:v},se.writeFixes);return{name:oe.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:ge,description:jk([F.Includes_imports_of_types_referenced_by_0,T])}]}}return{name:T,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return kTe().some(Y=>Y.name===T)?gTe(T,"keyword",5):void 0;default:H.assertNever(K)}}function gTe(t,u,s){return Lee(t,"",u,[yf(t,s)])}function ETe(t,u,s,d,f,p,E,v){const{displayParts:b,documentation:B,symbolKind:k,tags:T}=s.runWithCancellationToken(p,M=>x5.getSymbolDisplayPartsDocumentationAndSymbolKind(M,t,d,f,f,7));return Lee(u,x5.getSymbolModifiers(s,t),k,b,B,T,E,v)}function Lee(t,u,s,d,f,p,E,v){return{name:t,kindModifiers:u,kind:s,displayParts:d,documentation:f,tags:p,codeActions:E,source:v,sourceDisplay:v}}function k$t(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J){if(z!=null&&z.moduleSpecifier&&k&&D0t(s||k,b).replacementSpan)return{codeActions:void 0,sourceDisplay:[Km(z.moduleSpecifier)]};if(j==="ClassMemberSnippet/"){const{importAdder:Ce,eraseRange:ne}=a0t(E,p,v,M,t,f,u,B,s,T);if(Ce||ne)return{sourceDisplay:void 0,codeActions:[{changes:iu.ChangeTracker.with({host:E,formatContext:T,preferences:M},Se=>{Ce&&Ce.writeFixes(Se),ne&&Se.deleteRange(b,ne)}),description:jk([F.Includes_imports_of_types_referenced_by_0,t])}]}}if(Zst(d)){const Ce=z1.getPromoteTypeOnlyCompletionAction(b,d.declaration.name,p,E,T,M);return H.assertIsDefined(Ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[Ce],sourceDisplay:void 0}}if(j==="ObjectLiteralMemberWithComma/"&&s){const Ce=iu.ChangeTracker.with({host:E,formatContext:T,preferences:M},ne=>ne.insertText(b,s.end,","));if(Ce)return{sourceDisplay:void 0,codeActions:[{changes:Ce,description:jk([F.Add_missing_comma_for_object_member_completion_0,t])}]}}if(!d||!(wee(d)||ZM(d)))return{codeActions:void 0,sourceDisplay:void 0};const K=d.isFromPackageJson?E.getPackageJsonAutoImportProvider().getTypeChecker():p.getTypeChecker(),{moduleSymbol:Y}=d,oe=K.getMergedSymbol(X1(f.exportSymbol||f,K)),se=(s==null?void 0:s.kind)===30&&zh(s.parent),{moduleSpecifier:ge,codeAction:ae}=z1.getImportCompletionAction(oe,Y,z==null?void 0:z.exportMapKey,b,t,se,E,p,T,k&&at(k)?k.getStart(b):B,M,J);return H.assert(!(z!=null&&z.moduleSpecifier)||ge===z.moduleSpecifier),{sourceDisplay:[Km(ge)],codeActions:[ae]}}function F$t(t,u,s,d,f,p,E){const v=l0t(t,u,s,d,f,p,E);return v.type==="symbol"?v.symbol:void 0}function A$t(t,u,s){return G(u&&(u.isUnion()?u.types:[u]),d=>{const f=d&&d.symbol;return f&&f.flags&424&&!Jye(f)?_Te(f,t,s):void 0})}function S$t(t,u,s,d){const{parent:f}=t;switch(t.kind){case 80:return SX(t,d);case 64:switch(f.kind){case 260:return d.getContextualType(f.initializer);case 226:return d.getTypeAtLocation(f.left);case 291:return d.getContextualTypeForJsxAttribute(f);default:return}case 105:return d.getContextualType(f);case 84:const p=ur(f,BB);return p?Dfe(p,d):void 0;case 19:return YP(f)&&!r3(f.parent)&&!K2(f.parent)?d.getContextualTypeForJsxAttribute(f.parent):void 0;default:const E=NK.getArgumentInfoForCompletions(t,u,s);return E?d.getContextualTypeForArgumentAtIndex(E.invocation,E.argumentIndex+(t.kind===28?1:0)):BX(t.kind)&&Xn(f)&&BX(f.operatorToken.kind)?d.getTypeAtLocation(f.left):d.getContextualType(t,4)||d.getContextualType(t)}}function _Te(t,u,s){const d=s.getAccessibleSymbolChain(t,u,67108863,!1);return d?Pn(d):t.parent&&(B$t(t.parent)?t:_Te(t.parent,u,s))}function B$t(t){var u;return!!((u=t.declarations)!=null&&u.some(s=>s.kind===312))}function c0t(t,u,s,d,f,p,E,v,b,B){const k=t.getTypeChecker(),T=u0t(s,d);let M=G0(),z=Ca(s,f);u("getCompletionData: Get current token: "+(G0()-M)),M=G0();const j=m5(s,f,z);u("getCompletionData: Is inside comment: "+(G0()-M));let J=!1,K=!1;if(j){if(nSe(s,f)){if(s.text.charCodeAt(f-1)===64)return{kind:1};{const it=tp(f,s);if(!/[^*|\s(/)]/.test(s.text.substring(it,f)))return{kind:2}}}const X=N$t(z,f);if(X){if(X.tagName.pos<=f&&f<=X.tagName.end)return{kind:1};const it=ji(X);if(it&&(z=Ca(s,f),(!z||!X3(z)&&(z.parent.kind!==355||z.parent.name!==z))&&(J=je(it))),!J&&Eg(X)&&(Ql(X.name)||X.name.pos<=f&&f<=X.name.end))return{kind:3,tag:X}}if(!J){u("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}M=G0();const Y=!J&&gh(s),oe=gpe(f,s),se=oe.previousToken;let ge=oe.contextToken;u("getCompletionData: Get previous token: "+(G0()-M));let ae=z,Ce,ne=!1,ve=!1,Se=!1,Ne=!1,pe=!1,fe=!1,xe,Be=af(s,f),Ge=0,Ae=!1,De=0;if(ge){const X=D0t(ge,s);if(X.keywordCompletion){if(X.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[r$t(X.keywordCompletion)],isNewIdentifierLocation:X.isNewIdentifierLocation};Ge=o$t(X.keywordCompletion)}if(X.replacementSpan&&p.includeCompletionsForImportStatements&&p.includeCompletionsWithInsertText&&(De|=2,xe=X,Ae=X.isNewIdentifierLocation),!X.replacementSpan&&Ta(ge))return u("Returning an empty list because completion was requested in an invalid position."),Ge?i0t(Ge,Y,bo()):void 0;let it=ge.parent;if(ge.kind===25||ge.kind===29)switch(ne=ge.kind===25,ve=ge.kind===29,it.kind){case 211:Ce=it,ae=Ce.expression;const Ct=CP(Ce);if(Ql(Ct)||(Mo(ae)||Co(ae))&&ae.end===ge.pos&&ae.getChildCount(s)&&Cr(ae.getChildren(s)).kind!==22)return;break;case 166:ae=it.left;break;case 267:ae=it.name;break;case 205:ae=it;break;case 236:ae=it.getFirstToken(s),H.assert(ae.kind===102||ae.kind===105);break;default:return}else if(!xe){if(it&&it.kind===211&&(ge=it,it=it.parent),z.parent===Be)switch(z.kind){case 32:(z.parent.kind===284||z.parent.kind===286)&&(Be=z);break;case 44:z.parent.kind===285&&(Be=z);break}switch(it.kind){case 287:ge.kind===44&&(Ne=!0,Be=ge);break;case 226:if(!_0t(it))break;case 285:case 284:case 286:fe=!0,ge.kind===30&&(Se=!0,Be=ge);break;case 294:case 293:(se.kind===20||se.kind===80&&se.parent.kind===291)&&(fe=!0);break;case 291:if(it.initializer===se&&se.endIk(X?v.getPackageJsonAutoImportProvider():t,v));if(ne||ve)xn();else if(Se)Ve=k.getJsxIntrinsicTagNamesAt(Be),H.assertEachIsDefined(Ve,"getJsxIntrinsicTagNames() should all be defined"),Ai(),Je=1,Ge=0;else if(Ne){const X=ge.parent.parent.openingElement.tagName,it=k.getSymbolAtLocation(X);it&&(Ve=[it]),Je=1,Ge=0}else if(!Ai())return Ge?i0t(Ge,Y,Ae):void 0;u("getCompletionData: Semantic work: "+(G0()-Ke));const It=se&&S$t(se,f,s,k),ht=!ur(se,t0)&&!fe?qi(It&&(It.isUnion()?It.types:[It]),X=>X.isLiteral()&&!(X.flags&1024)?X.value:void 0):[],Ut=se&&It&&A$t(se,It,k);return{kind:0,symbols:Ve,completionKind:Je,isInSnippetScope:K,propertyAccessToConvert:Ce,isNewIdentifierLocation:Ae,location:Be,keywordFilters:Ge,literals:ht,symbolToOriginInfoMap:Gt,recommendedCompletion:Ut,previousToken:se,contextToken:ge,isJsxInitializer:pe,insideJsDocTagTypeExpression:J,symbolToSortTextMap:Yt,isTypeOnlyLocation:st,isJsxIdentifierExpected:fe,isRightOfOpenTag:Se,isRightOfDotOrQuestionDot:ne||ve,importStatementCompletion:xe,hasUnresolvedAutoImports:Ye,flags:De};function Ni(X){switch(X.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!X.constraint;default:return!1}}function ji(X){if(Ni(X)){const it=_g(X)?X.constraint:X.typeExpression;return it&&it.kind===316?it:void 0}if(LB(X)||Nce(X))return X.class}function xn(){Je=2;const X=zx(ae),it=X&&!ae.isTypeOf||q_(ae.parent)||OH(ge,s,k),Ct=tX(ae);if(sm(ae)||X||Iu(ae)){const ct=_c(ae.parent);ct&&(Ae=!0);let Qt=k.getSymbolAtLocation(ae);if(Qt&&(Qt=X1(Qt,k),Qt.flags&1920)){const Li=k.getExportsOfModule(Qt);H.assertEachIsDefined(Li,"getExportsOfModule() should all be defined");const Ui=Ru=>k.isValidPropertyAccess(X?ae:ae.parent,Ru.name),Sn=Ru=>xTe(Ru,k),du=ct?Ru=>{var pr;return!!(Ru.flags&1920)&&!((pr=Ru.declarations)!=null&&pr.every(Xu=>Xu.parent===ae.parent))}:Ct?Ru=>Sn(Ru)||Ui(Ru):it||J?Sn:Ui;for(const Ru of Li)du(Ru)&&Ve.push(Ru);if(!it&&!J&&Qt.declarations&&Qt.declarations.some(Ru=>Ru.kind!==312&&Ru.kind!==267&&Ru.kind!==266)){let Ru=k.getTypeOfSymbolAtLocation(Qt,ae).getNonOptionalType(),pr=!1;if(Ru.isNullableType()){const Xu=ne&&!ve&&p.includeAutomaticOptionalChainCompletions!==!1;(Xu||ve)&&(Ru=Ru.getNonNullableType(),Xu&&(pr=!0))}Jn(Ru,!!(ae.flags&65536),pr)}return}}if(!it||ck(ae)){k.tryGetThisTypeAt(ae,!1);let ct=k.getTypeAtLocation(ae).getNonOptionalType();if(it)Jn(ct.getNonNullableType(),!1,!1);else{let Qt=!1;if(ct.isNullableType()){const Li=ne&&!ve&&p.includeAutomaticOptionalChainCompletions!==!1;(Li||ve)&&(ct=ct.getNonNullableType(),Li&&(Qt=!0))}Jn(ct,!!(ae.flags&65536),Qt)}}}function Jn(X,it,Ct){Ae=!!X.getStringIndexType(),ve&&Oe(X.getCallSignatures())&&(Ae=!0);const ct=ae.kind===205?ae:ae.parent;if(T)for(const Qt of X.getApparentProperties())k.isValidPropertyAccessForCompletions(ct,X,Qt)&&an(Qt,!1,Ct);else Ve.push(...ti(xpe(X,k),Qt=>k.isValidPropertyAccessForCompletions(ct,X,Qt)));if(it&&p.includeCompletionsWithInsertText){const Qt=k.getPromisedTypeOfPromise(X);if(Qt)for(const Li of Qt.getApparentProperties())k.isValidPropertyAccessForCompletions(ct,Qt,Li)&&an(Li,!0,Ct)}}function an(X,it,Ct){var ct;const Qt=G(X.declarations,du=>ur(Za(du),Ps));if(Qt){const du=Pi(Qt.expression),Ru=du&&k.getSymbolAtLocation(du),pr=Ru&&_Te(Ru,ge,k),Xu=pr&&Zo(pr);if(Xu&&Ip(Ie,Xu)){const ca=Ve.length;Ve.push(pr);const Ku=pr.parent;if(!Ku||!HH(Ku)||k.tryGetMemberInModuleExportsAndProperties(pr.name,Ku)!==pr)Gt[ca]={kind:Sn(2)};else{const ja=Id($4(Ku.name))?(ct=YU(Ku))==null?void 0:ct.fileName:void 0,{moduleSpecifier:wn}=(We||(We=z1.createImportSpecifierResolver(s,t,v,p))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:ja,isFromPackageJson:!1,moduleSymbol:Ku,symbol:pr,targetFlags:X1(pr,k).flags}],f,Tv(Be))||{};if(wn){const Ir={kind:Sn(6),moduleSymbol:Ku,isDefaultExport:!1,symbolName:pr.name,exportName:pr.name,fileName:ja,moduleSpecifier:wn};Gt[ca]=Ir}}}else if(p.includeCompletionsWithInsertText){if(Xu&&Ie.has(Xu))return;Ui(X),Li(X),Ve.push(X)}}else Ui(X),Li(X),Ve.push(X);function Li(du){O$t(du)&&(Yt[Zo(du)]=I1.LocalDeclarationPriority)}function Ui(du){p.includeCompletionsWithInsertText&&(it&&Ip(Ie,Zo(du))?Gt[Ve.length]={kind:Sn(8)}:Ct&&(Gt[Ve.length]={kind:16}))}function Sn(du){return Ct?du|16:du}}function Pi(X){return at(X)?X:Iu(X)?Pi(X.expression):void 0}function Ai(){return(Et()||Mt()||yr()||qt()||Xt()||Zu()||Pe()||aa()||(Ba(),1))===1}function Zu(){return gt(ge)?(Je=5,Ae=!0,Ge=4,1):0}function aa(){const X=me(ge),it=X&&k.getContextualType(X.attributes);if(!it)return 0;const Ct=X&&k.getContextualType(X.attributes,4);return Ve=Hi(Ve,de(Dpe(it,Ct,X.attributes,k),X.attributes.properties)),on(),Je=3,Ae=!1,1}function yr(){return xe?(Ae=!0,Cn(),1):0}function Ba(){Ge=ii(ge)?5:1,Je=1,Ae=bo(),se!==ge&&H.assert(!!se,"Expected 'contextToken' to be defined when different from 'previousToken'.");const X=se!==ge?se.getStart():f,it=ua(ge,X,s)||s;K=jn(it);const Ct=(st?0:111551)|788968|1920|2097152,ct=se&&!Tv(se);Ve=Hi(Ve,k.getSymbolsInScope(it,Ct)),H.assertEachIsDefined(Ve,"getSymbolsInScope() should all be defined");for(let Qt=0;QtUi.getSourceFile()===s)&&(Yt[Zo(Li)]=I1.GlobalsOrKeywords),ct&&!(Li.flags&111551)){const Ui=Li.declarations&&Le(Li.declarations,RU);if(Ui){const Sn={kind:64,declaration:Ui};Gt[Qt]=Sn}}}if(p.includeCompletionsWithInsertText&&it.kind!==312){const Qt=k.tryGetThisTypeAt(it,!1,mr(it.parent)?it:void 0);if(Qt&&!R$t(Qt,s,k))for(const Li of xpe(Qt,k))Gt[Ve.length]={kind:1},Ve.push(Li),Yt[Zo(Li)]=I1.SuggestedClassMembers}Cn(),st&&(Ge=ge&&Yy(ge.parent)?6:7)}function bt(){return xe?!0:ft||!p.includeCompletionsForModuleExports?!1:s.externalModuleIndicator||s.commonJsModuleIndicator||ufe(t.getCompilerOptions())?!0:lSe(t)}function jn(X){switch(X.kind){case 312:case 228:case 294:case 241:return!0;default:return ia(X)}}function Ln(){return J||!!xe&&_2(Be.parent)||!Si(ge)&&(OH(ge,s,k)||q_(Be)||Dn(ge))}function Si(X){return X&&(X.kind===114&&(X.parent.kind===186||AB(X.parent))||X.kind===131&&X.parent.kind===182)}function Dn(X){if(X){const it=X.parent.kind;switch(X.kind){case 59:return it===172||it===171||it===169||it===260||a7(it);case 64:return it===265;case 130:return it===234;case 30:return it===183||it===216;case 96:return it===168;case 152:return it===238}}return!1}function Cn(){var X,it;if(!bt()||(H.assert(!(E!=null&&E.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),E&&!E.source))return;De|=1;const ct=se===ge&&xe?"":se&&at(se)?se.text.toLowerCase():"",Qt=(X=v.getModuleSpecifierCache)==null?void 0:X.call(v),Li=tK(s,v,t,p,B),Ui=(it=v.getPackageJsonAutoImportProvider)==null?void 0:it.call(v),Sn=E?void 0:HM(s,p,v);Qst("collectAutoImports",v,We||(We=z1.createImportSpecifierResolver(s,t,v,p)),t,f,p,!!xe,Tv(Be),Ru=>{Li.search(s.path,Se,(pr,Xu)=>{if(!Lm(pr,Os(v.getCompilationSettings()))||!E&&m7(pr)||!st&&!xe&&!(Xu&111551)||st&&!(Xu&790504))return!1;const ca=pr.charCodeAt(0);return Se&&(ca<65||ca>90)?!1:E?!0:y0t(pr,ct)},(pr,Xu,ca,Ku)=>{if(E&&!Oe(pr,Fn=>E.source===$4(Fn.moduleSymbol.name))||(pr=ti(pr,du),!pr.length))return;const ja=Ru.tryResolve(pr,ca)||{};if(ja==="failed")return;let wn=pr[0],Ir;ja!=="skipped"&&({exportInfo:wn=pr[0],moduleSpecifier:Ir}=ja);const as=wn.exportKind===1,wo=as&&lB(wn.symbol)||wn.symbol;tu(wo,{kind:Ir?32:4,moduleSpecifier:Ir,symbolName:Xu,exportMapKey:Ku,exportName:wn.exportKind===2?"export=":wn.symbol.name,fileName:wn.moduleFileName,isDefaultExport:as,moduleSymbol:wn.moduleSymbol,isFromPackageJson:wn.isFromPackageJson})}),Ye=Ru.skippedAny(),De|=Ru.resolvedAny()?8:0,De|=Ru.resolvedBeyondLimit()?16:0});function du(Ru){const pr=ur(Ru.moduleSymbol.valueDeclaration,la);if(!pr){const Xu=$4(Ru.moduleSymbol.name);return o3.nodeCoreModules.has(Xu)&&Pa(Xu,"node:")!==OX(s,t)?!1:Sn?Sn.allowsImportingAmbientModule(Ru.moduleSymbol,St(Ru.isFromPackageJson)):!0}return Mfe(Ru.isFromPackageJson?Ui:t,s,pr,p,Sn,St(Ru.isFromPackageJson),Qt)}}function tu(X,it){const Ct=Zo(X);Yt[Ct]!==I1.GlobalsOrKeywords&&(Gt[Ve.length]=it,Yt[Ct]=xe?I1.LocationPriority:I1.AutoImportSuggestions,Ve.push(X))}function oa(X,it){Qn(Be)||X.forEach(Ct=>{if(!Da(Ct))return;const ct=Epe(Ct,Os(d),void 0,0,!1);if(!ct)return;const{name:Qt}=ct,Li=E$t(Ct,Qt,it,t,v,d,p,b);if(!Li)return;const Ui={kind:128,...Li};De|=32,Gt[Ve.length]=Ui,Ve.push(Ct)})}function Da(X){return!!(X.flags&8196)}function ua(X,it,Ct){let ct=X;for(;ct&&!Whe(ct,it,Ct);)ct=ct.parent;return ct}function Ta(X){const it=G0(),Ct=Qe(X)||ni(X)||Ot(X)||Yo(X)||iY(X);return u("getCompletionsAtPosition: isCompletionListBlocker: "+(G0()-it)),Ct}function Yo(X){if(X.kind===12)return!0;if(X.kind===32&&X.parent){if(Be===X.parent&&(Be.kind===286||Be.kind===285))return!1;if(X.parent.kind===286)return Be.parent.kind!==286;if(X.parent.kind===287||X.parent.kind===285)return!!X.parent.parent&&X.parent.parent.kind===284}return!1}function bo(){if(ge){const X=ge.parent.kind,it=_pe(ge);switch(it){case 28:return X===213||X===176||X===214||X===209||X===226||X===184||X===210;case 21:return X===213||X===176||X===214||X===217||X===196;case 23:return X===209||X===181||X===167;case 144:case 145:case 102:return!0;case 25:return X===267;case 19:return X===263||X===210;case 64:return X===260||X===226;case 16:return X===228;case 17:return X===239;case 134:return X===174||X===304;case 42:return X===174}if(Nee(it))return!0}return!1}function Qe(X){return(mce(X)||Use(X))&&(zH(X,f)||f===X.end&&(!!X.isUnterminated||mce(X)))}function Et(){const X=z$t(ge);if(!X)return 0;const Ct=(kB(X.parent)?X.parent:void 0)||X,ct=E0t(Ct,k);if(!ct)return 0;const Qt=k.getTypeFromTypeNode(Ct),Li=xpe(ct,k),Ui=xpe(Qt,k),Sn=new Set;return Ui.forEach(du=>Sn.add(du.escapedName)),Ve=Hi(Ve,ti(Li,du=>!Sn.has(du.escapedName))),Je=0,Ae=!0,1}function Mt(){const X=Ve.length,it=w$t(ge,f,s);if(!it)return 0;Je=0;let Ct,ct;if(it.kind===210){const Qt=j$t(it,k);if(Qt===void 0)return it.flags&67108864?2:(ft=!0,0);const Li=k.getContextualType(it,4),Ui=(Li||Qt).getStringIndexType(),Sn=(Li||Qt).getNumberIndexType();if(Ae=!!Ui||!!Sn,Ct=Dpe(Qt,Li,it,k),ct=it.properties,Ct.length===0&&!Sn)return ft=!0,0}else{H.assert(it.kind===206),Ae=!1;const Qt=XE(it.parent);if(!G8(Qt))return H.fail("Root declaration is not variable-like.");let Li=Nx(Qt)||!!f1(Qt)||Qt.parent.parent.kind===250;if(!Li&&Qt.kind===169&&(Wt(Qt.parent)?Li=!!k.getContextualType(Qt.parent):(Qt.parent.kind===174||Qt.parent.kind===178)&&(Li=Wt(Qt.parent.parent)&&!!k.getContextualType(Qt.parent.parent))),Li){const Ui=k.getTypeAtLocation(it);if(!Ui)return 2;Ct=k.getPropertiesOfType(Ui).filter(Sn=>k.isPropertyAccessible(it,!1,!1,Ui,Sn)),ct=it.elements}}if(Ct&&Ct.length>0){const Qt=$i(Ct,H.checkDefined(ct));Ve=Hi(Ve,Qt),on(),it.kind===210&&p.includeCompletionsWithObjectLiteralMethodSnippets&&p.includeCompletionsWithInsertText&&(te(X),oa(Qt,it))}return 1}function qt(){if(!ge)return 0;const X=ge.kind===19||ge.kind===28?ur(ge.parent,Uq):EX(ge)?ur(ge.parent.parent,Uq):void 0;if(!X)return 0;EX(ge)||(Ge=8);const{moduleSpecifier:it}=X.kind===275?X.parent.parent:X.parent;if(!it)return Ae=!0,X.kind===275?2:0;const Ct=k.getSymbolAtLocation(it);if(!Ct)return Ae=!0,2;Je=3,Ae=!1;const ct=k.getExportsAndPropertiesOfModule(Ct),Qt=new Set(X.elements.filter(Ui=>!je(Ui)).map(Ui=>(Ui.propertyName||Ui.name).escapedText)),Li=ct.filter(Ui=>Ui.escapedName!=="default"&&!Qt.has(Ui.escapedName));return Ve=Hi(Ve,Li),Li.length||(Ge=0),1}function Xt(){var X;const it=ge&&(ge.kind===19||ge.kind===28)?ur(ge.parent,ep):void 0;if(!it)return 0;const Ct=Tn(it,dg(la,_c));return Je=5,Ae=!1,(X=Ct.locals)==null||X.forEach((ct,Qt)=>{var Li,Ui;Ve.push(ct),(Ui=(Li=Ct.symbol)==null?void 0:Li.exports)!=null&&Ui.has(Qt)&&(Yt[Zo(ct)]=I1.OptionalMember)}),1}function Pe(){const X=M$t(s,ge,Be,f);if(!X)return 0;if(Je=3,Ae=!0,Ge=ge.kind===42?0:mr(X)?2:3,!mr(X))return 1;const it=ge.kind===27?ge.parent.parent:ge.parent;let Ct=Zd(it)?Eh(it):0;if(ge.kind===80&&!je(ge))switch(ge.getText()){case"private":Ct=Ct|2;break;case"static":Ct=Ct|256;break;case"override":Ct=Ct|16;break}if(zl(it)&&(Ct|=256),!(Ct&2)){const ct=mr(X)&&Ct&16?Hy(Qg(X)):uP(X),Qt=ju(ct,Li=>{const Ui=k.getTypeAtLocation(Li);return Ct&256?(Ui==null?void 0:Ui.symbol)&&k.getPropertiesOfType(k.getTypeOfSymbolAtLocation(Ui.symbol,X)):Ui&&k.getPropertiesOfType(Ui)});Ve=Hi(Ve,we(Qt,X.members,Ct)),L(Ve,(Li,Ui)=>{const Sn=Li==null?void 0:Li.valueDeclaration;if(Sn&&Zd(Sn)&&Sn.name&&Ps(Sn.name)){const du={kind:512,symbolName:k.symbolToString(Li)};Gt[Ui]=du}})}return 1}function et(X){return!!X.parent&&io(X.parent)&&hc(X.parent.parent)&&(VN(X.kind)||X3(X))}function gt(X){if(X){const it=X.parent;switch(X.kind){case 21:case 28:return hc(X.parent)?X.parent:void 0;default:if(et(X))return it.parent}}}function ii(X){if(X){let it;const Ct=Tn(X.parent,ct=>mr(ct)?"quit":$0(ct)&&it===ct.body?!0:(it=ct,!1));return Ct&&Ct}}function me(X){if(X){const it=X.parent;switch(X.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(it&&(it.kind===285||it.kind===286)){if(X.kind===32){const Ct=td(X.pos,s,void 0);if(!it.typeArguments||Ct&&Ct.kind===44)break}return it}else if(it.kind===291)return it.parent.parent;break;case 11:if(it&&(it.kind===291||it.kind===293))return it.parent.parent;break;case 20:if(it&&it.kind===294&&it.parent&&it.parent.kind===291)return it.parent.parent.parent;if(it&&it.kind===293)return it.parent.parent;break}}}function ni(X){const it=X.parent,Ct=it.kind;switch(X.kind){case 28:return Ct===260||Ei(X)||Ct===243||Ct===266||mt(Ct)||Ct===264||Ct===207||Ct===265||mr(it)&&!!it.typeParameters&&it.typeParameters.end>=X.pos;case 25:return Ct===207;case 59:return Ct===208;case 23:return Ct===207;case 21:return Ct===299||mt(Ct);case 19:return Ct===266;case 30:return Ct===263||Ct===231||Ct===264||Ct===265||a7(Ct);case 126:return Ct===172&&!mr(it.parent);case 26:return Ct===169||!!it.parent&&it.parent.kind===207;case 125:case 123:case 124:return Ct===169&&!hc(it.parent);case 130:return Ct===276||Ct===281||Ct===274;case 139:case 153:return!vpe(X);case 80:if(Ct===276&&X===it.name&&X.text==="type")return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ct!==276;case 42:return Co(X.parent)&&!dc(X.parent)}if(Nee(_pe(X))&&vpe(X)||et(X)&&(!at(X)||VN(_pe(X))||je(X)))return!1;switch(_pe(X)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return ko(X.parent)}if(Tn(X.parent,mr)&&X===se&&vi(X,f))return!1;const Qt=Fv(X.parent,172);if(Qt&&X!==se&&mr(se.parent.parent)&&f<=se.end){if(vi(X,se.end))return!1;if(X.kind!==64&&(fH(Qt)||JU(Qt)))return!0}return X3(X)&&!pm(X.parent)&&!oE(X.parent)&&!((mr(X.parent)||xh(X.parent)||Bl(X.parent))&&(X!==se||f>se.end))}function vi(X,it){return X.kind!==64&&(X.kind===27||!q4(X.end,it,s))}function mt(X){return a7(X)&&X!==176}function Ot(X){if(X.kind===9){const it=X.getFullText();return it.charAt(it.length-1)==="."}return!1}function Ei(X){return X.parent.kind===261&&!OH(X,s,k)}function $i(X,it){if(it.length===0)return X;const Ct=new Set,ct=new Set;for(const Li of it){if(Li.kind!==303&&Li.kind!==304&&Li.kind!==208&&Li.kind!==174&&Li.kind!==177&&Li.kind!==178&&Li.kind!==305||je(Li))continue;let Ui;if(d5(Li))Qi(Li,Ct);else if(js(Li)&&Li.propertyName)Li.propertyName.kind===80&&(Ui=Li.propertyName.escapedText);else{const Sn=Za(Li);Ui=Sn&&Xg(Sn)?oP(Sn):void 0}Ui!==void 0&&ct.add(Ui)}const Qt=X.filter(Li=>!ct.has(Li.escapedName));return le(Ct,Qt),Qt}function Qi(X,it){const Ct=X.expression,ct=k.getSymbolAtLocation(Ct),Qt=ct&&k.getTypeOfSymbolAtLocation(ct,Ct),Li=Qt&&Qt.properties;Li&&Li.forEach(Ui=>{it.add(Ui.name)})}function on(){Ve.forEach(X=>{if(X.flags&16777216){const it=Zo(X);Yt[it]=Yt[it]??I1.OptionalMember}})}function le(X,it){if(X.size!==0)for(const Ct of it)X.has(Ct.name)&&(Yt[Zo(Ct)]=I1.MemberDeclaredBySpreadAssignment)}function te(X){for(let it=X;it!ct.has(Qt.escapedName)&&!!Qt.declarations&&!(l4(Qt)&2)&&!(Qt.valueDeclaration&&ph(Qt.valueDeclaration)))}function de(X,it){const Ct=new Set,ct=new Set;for(const Li of it)je(Li)||(Li.kind===291?Ct.add(MP(Li.name)):H7(Li)&&Qi(Li,ct));const Qt=X.filter(Li=>!Ct.has(Li.escapedName));return le(ct,Qt),Qt}function je(X){return X.getStart(s)<=f&&f<=X.getEnd()}}function w$t(t,u,s){var d;if(t){const{parent:f}=t;switch(t.kind){case 19:case 28:if(ys(f)||Rp(f))return f;break;case 42:return dc(f)?ur(f.parent,ys):void 0;case 134:return ur(f.parent,ys);case 80:if(t.text==="async"&&pm(t.parent))return t.parent.parent;{if(ys(t.parent.parent)&&(d5(t.parent)||pm(t.parent)&&s0(s,t.getEnd()).line!==s0(s,u).line))return t.parent.parent;const E=Tn(f,Jc);if((E==null?void 0:E.getLastToken(s))===t&&ys(E.parent))return E.parent}break;default:if((d=f.parent)!=null&&d.parent&&(dc(f.parent)||zm(f.parent)||jf(f.parent))&&ys(f.parent.parent))return f.parent.parent;if(d5(f)&&ys(f.parent))return f.parent;const p=Tn(f,Jc);if(t.kind!==59&&(p==null?void 0:p.getLastToken(s))===t&&ys(p.parent))return p.parent}}}function gpe(t,u){const s=td(t,u);return s&&t<=s.end&&(J_(s)||uf(s.kind))?{contextToken:td(s.getFullStart(),u,void 0),previousToken:s}:{contextToken:s,previousToken:s}}function d0t(t,u,s,d){const f=u.isPackageJsonImport?d.getPackageJsonAutoImportProvider():s,p=f.getTypeChecker(),E=u.ambientModuleName?p.tryFindAmbientModule(u.ambientModuleName):u.fileName?p.getMergedSymbol(H.checkDefined(f.getSourceFile(u.fileName)).symbol):void 0;if(!E)return;let v=u.exportName==="export="?p.resolveExternalModuleSymbol(E):p.tryGetMemberInModuleExportsAndProperties(u.exportName,E);return v?(v=u.exportName==="default"&&lB(v)||v,{symbol:v,origin:D$t(u,t,E)}):void 0}function Epe(t,u,s,d,f){if(t$t(s))return;const p=YJt(s)?s.symbolName:t.name;if(p===void 0||t.flags&1536&&_j(p.charCodeAt(0))||Ij(t))return;const E={name:p,needsConvertPropertyAccess:!1};if(Lm(p,u,f?1:0)||t.valueDeclaration&&ph(t.valueDeclaration))return E;switch(d){case 3:return dTe(s)?{name:s.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(p),needsConvertPropertyAccess:!1};case 2:case 1:return p.charCodeAt(0)===32?void 0:{name:p,needsConvertPropertyAccess:!0};case 5:case 4:return E;default:H.assertNever(d)}}function h0t(t,u){if(!u)return f0t(t);const s=t+8+1;return Pee[s]||(Pee[s]=f0t(t).filter(d=>!T$t(f2(d.name))))}function f0t(t){return Pee[t]||(Pee[t]=kTe().filter(u=>{const s=f2(u.name);switch(t){case 0:return!1;case 1:return p0t(s)||s===138||s===144||s===156||s===145||s===128||PM(s)&&s!==157;case 5:return p0t(s);case 2:return Nee(s);case 3:return m0t(s);case 4:return VN(s);case 6:return PM(s)||s===87;case 7:return PM(s);case 8:return s===156;default:return H.assertNever(t)}}))}function T$t(t){switch(t){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function m0t(t){return t===148}function Nee(t){switch(t){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return qse(t)}}function p0t(t){return t===134||t===135||t===130||t===152||t===156||!Bq(t)&&!Nee(t)}function _pe(t){return at(t)?Dv(t)??0:t.kind}function L$t(t,u){const s=[];if(t){const d=t.getSourceFile(),f=t.parent,p=d.getLineAndCharacterOfPosition(t.end).line,E=d.getLineAndCharacterOfPosition(u).line;(Sd(f)||Gc(f)&&f.moduleSpecifier)&&t===f.moduleSpecifier&&p===E&&s.push({name:Uo(132),kind:"keyword",kindModifiers:"",sortText:I1.GlobalsOrKeywords})}return s}function N$t(t,u){return Tn(t,s=>I8(s)&&MH(s,u)?!0:Vp(s)?"quit":!1)}function Dpe(t,u,s,d){const f=u&&u!==t,p=f&&!(u.flags&3)?d.getUnionType([t,u]):t,E=P$t(p,s,d);return p.isClass()&&g0t(E)?[]:f?ti(E,v):E;function v(b){return S(b.declarations)?Oe(b.declarations,B=>B.parent!==s):!0}}function P$t(t,u,s){return t.isUnion()?s.getAllPossiblePropertiesOfTypes(ti(t.types,d=>!(d.flags&402784252||s.isArrayLikeType(d)||s.isTypeInvalidDueToUnionDiscriminant(d,u)||s.typeHasCallOrConstructSignatures(d)||d.isClass()&&g0t(d.getApparentProperties())))):t.getApparentProperties()}function g0t(t){return Oe(t,u=>!!(l4(u)&6))}function xpe(t,u){return t.isUnion()?H.checkEachDefined(u.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):H.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function M$t(t,u,s,d){switch(s.kind){case 358:return ur(s.parent,x7);case 1:const f=ur(qu(Po(s.parent,la).statements),x7);if(f&&!a0(f,20,t))return f;break;case 81:if(ur(s.parent,ko))return Tn(s,mr);break;case 80:{if(Dv(s)||ko(s.parent)&&s.parent.initializer===s)return;if(vpe(s))return Tn(s,x7)}}if(u){if(s.kind===137||at(u)&&ko(u.parent)&&mr(s))return Tn(u,mr);switch(u.kind){case 64:return;case 27:case 20:return vpe(s)&&s.parent.name===s?s.parent.parent:ur(s,x7);case 19:case 28:return ur(u.parent,x7);default:if(x7(s)){if(s0(t,u.getEnd()).line!==s0(t,d).line)return s;const f=mr(u.parent.parent)?Nee:m0t;return f(u.kind)||u.kind===42||at(u)&&f(Dv(u)??0)?u.parent.parent:void 0}return}}}function z$t(t){if(!t)return;const u=t.parent;switch(t.kind){case 19:if(fm(u))return u;break;case 27:case 28:case 80:if(u.kind===171&&fm(u.parent))return u.parent;break}}function E0t(t,u){if(!t)return;if(Qr(t)&&$U(t.parent))return u.getTypeArgumentConstraint(t);const s=E0t(t.parent,u);if(s)switch(t.kind){case 171:return u.getTypeOfPropertyOfContextualType(s,t.symbol.escapedName);case 193:case 187:case 192:return s}}function vpe(t){return t.parent&&OU(t.parent)&&x7(t.parent.parent)}function I$t(t,u,s,d){switch(u){case".":case"@":return!0;case'"':case"'":case"`":return!!s&&ASe(s)&&d===s.getStart(t)+1;case"#":return!!s&&Xr(s)&&!!Yd(s);case"<":return!!s&&s.kind===30&&(!Xn(s.parent)||_0t(s.parent));case"/":return!!s&&(t0(s)?!!Aj(s):s.kind===44&&H2(s.parent));case" ":return!!s&&KP(s)&&s.parent.kind===312;default:return H.assertNever(u)}}function _0t({left:t}){return Ql(t)}function R$t(t,u,s){const d=s.resolveName("self",void 0,111551,!1);if(d&&s.getTypeOfSymbolAtLocation(d,u)===t)return!0;const f=s.resolveName("global",void 0,111551,!1);if(f&&s.getTypeOfSymbolAtLocation(f,u)===t)return!0;const p=s.resolveName("globalThis",void 0,111551,!1);return!!(p&&s.getTypeOfSymbolAtLocation(p,u)===t)}function O$t(t){return!!(t.valueDeclaration&&Eh(t.valueDeclaration)&256&&mr(t.valueDeclaration.parent))}function j$t(t,u){const s=u.getContextualType(t);if(s)return s;const d=i5(t.parent);if(Xn(d)&&d.operatorToken.kind===64&&t===d.left)return u.getTypeAtLocation(d);if(Wt(d))return u.getContextualType(d)}function D0t(t,u){var s,d,f;let p,E=!1;const v=b();return{isKeywordOnlyCompletion:E,keywordCompletion:p,isNewIdentifierLocation:!!(v||p===156),isTopLevelTypeOnly:!!((d=(s=ur(v,Sd))==null?void 0:s.importClause)!=null&&d.isTypeOnly)||!!((f=ur(v,E1))!=null&&f.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!v&&v0t(v,t),replacementSpan:V$t(v)};function b(){const B=t.parent;if(E1(B)){const k=B.getLastToken(u);if(at(t)&&k!==t){p=161,E=!0;return}return p=t.kind===156?void 0:156,DTe(B.moduleReference)?B:void 0}if(v0t(B,t)&&C0t(B.parent))return B;if(uD(B)||Jx(B)){if(!B.parent.isTypeOnly&&(t.kind===19||t.kind===102||t.kind===28)&&(p=156),C0t(B))if(t.kind===20||t.kind===80)E=!0,p=161;else return B.parent.parent;return}if(KP(t)&&la(B))return p=156,t;if(KP(t)&&Sd(B))return p=156,DTe(B.moduleSpecifier)?B:void 0}}function V$t(t){var u;if(!t)return;const s=Tn(t,dg(Sd,E1))??t,d=s.getSourceFile();if(hk(s,d))return of(s,d);H.assert(s.kind!==102&&s.kind!==276);const f=s.kind===272?x0t((u=s.importClause)==null?void 0:u.namedBindings)??s.moduleSpecifier:s.moduleReference,p={pos:s.getFirstToken().getStart(),end:f.pos};if(hk(p,d))return qx(p)}function x0t(t){var u;return Le((u=ur(t,uD))==null?void 0:u.elements,s=>{var d;return!s.propertyName&&m7(s.name.text)&&((d=td(s.name.pos,t.getSourceFile(),t))==null?void 0:d.kind)!==28})}function v0t(t,u){return bf(t)&&(t.isTypeOnly||u===t.name&&EX(u))}function C0t(t){if(!DTe(t.parent.parent.moduleSpecifier)||t.parent.name)return!1;if(uD(t)){const u=x0t(t);return(u?t.elements.indexOf(u):t.elements.length)<2}return!0}function DTe(t){var u;return Ql(t)?!0:!((u=ur(r_(t)?t.expression:t,t0))!=null&&u.text)}function H$t(t,u){if(!t)return;const s=Tn(t,f=>k2(f)||b0t(f)||So(f)?"quit":(io(f)||Bl(f))&&!Ek(f.parent)),d=Tn(u,f=>k2(f)||b0t(f)||So(f)?"quit":na(f));return s||d}function b0t(t){return t.parent&&q0(t.parent)&&(t.parent.body===t||t.kind===39)}function xTe(t,u,s=new Map){return d(t)||d(X1(t.exportSymbol||t,u));function d(f){return!!(f.flags&788968)||u.isUnknownSymbol(f)||!!(f.flags&1536)&&Ip(s,Zo(f))&&u.getExportsOfModule(f).some(p=>xTe(p,u,s))}}function K$t(t,u){const s=X1(t,u).declarations;return!!S(s)&&ye(s,RX)}function y0t(t,u){if(u.length===0)return!0;let s=!1,d,f=0;const p=t.length;for(let E=0;E(t.ThisProperty="ThisProperty/",t.ClassMemberSnippet="ClassMemberSnippet/",t.TypeOnlyAlias="TypeOnlyAlias/",t.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",t.SwitchCases="SwitchCases/",t.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",t))(CTe||{}),bTe=(t=>(t[t.ThisType=1]="ThisType",t[t.SymbolMember=2]="SymbolMember",t[t.Export=4]="Export",t[t.Promise=8]="Promise",t[t.Nullable=16]="Nullable",t[t.ResolvedExport=32]="ResolvedExport",t[t.TypeOnlyAlias=64]="TypeOnlyAlias",t[t.ObjectLiteralMethod=128]="ObjectLiteralMethod",t[t.Ignore=256]="Ignore",t[t.ComputedPropertyName=512]="ComputedPropertyName",t[t.SymbolMemberNoExport=2]="SymbolMemberNoExport",t[t.SymbolMemberExport=6]="SymbolMemberExport",t))(bTe||{}),yTe=(t=>(t[t.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",t[t.Global=1]="Global",t[t.PropertyAccess=2]="PropertyAccess",t[t.MemberLike=3]="MemberLike",t[t.String=4]="String",t[t.None=5]="None",t))(yTe||{}),Pee=[],kTe=Mh(()=>{const t=[];for(let u=83;u<=165;u++)t.push({name:Uo(u),kind:"keyword",kindModifiers:"",sortText:I1.GlobalsOrKeywords});return t})}});function FTe(){const t=new Map;function u(s){const d=t.get(s.name);(!d||TTe[d.kind]({name:Av(z.value,T),kindModifiers:"",kind:"string",sortText:I1.LocationPriority,replacementSpan:Xhe(u)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:k,entries:M}}default:return H.assertNever(t)}}function q$t(t,u,s,d,f,p,E,v,b){if(!d||!t0(d))return;const B=A0t(u,d,s,f,p,E,b);return B&&Z$t(t,d,B,u,f,v)}function Z$t(t,u,s,d,f,p){switch(s.kind){case 0:{const E=Le(s.paths,v=>v.name===t);return E&&Lee(t,F0t(E.extension),E.kind,[Km(t)])}case 1:{const E=Le(s.symbols,v=>v.name===t);return E&&ETe(E,E.name,f,d,u,p)}case 2:return Le(s.types,E=>E.value===t)?Lee(t,"","string",[Km(t)]):void 0;default:return H.assertNever(s)}}function k0t(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t.map(({name:f,kind:p,span:E,extension:v})=>({name:f,kind:p,kindModifiers:F0t(v),sortText:I1.LocationPriority,replacementSpan:E}))}}function F0t(t){switch(t){case".d.ts":return".d.ts";case".js":return".js";case".json":return".json";case".jsx":return".jsx";case".ts":return".ts";case".tsx":return".tsx";case".d.mts":return".d.mts";case".mjs":return".mjs";case".mts":return".mts";case".d.cts":return".d.cts";case".cjs":return".cjs";case".cts":return".cts";case".tsbuildinfo":return H.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return H.assertNever(t)}}function A0t(t,u,s,d,f,p,E){const v=ATe(u.parent);switch(v.kind){case 201:{const z=ATe(v.parent);return z.kind===205?{kind:0,paths:w0t(t,u,f,p,d,E)}:b(z)}case 303:return ys(v.parent)&&v.name===u?X$t(d,v.parent):B()||B(0);case 212:{const{expression:z,argumentExpression:j}=v;return u===l0(j)?S0t(d.getTypeAtLocation(z)):void 0}case 213:case 214:case 291:if(!fUt(u)&&!dm(v)){const z=NK.getArgumentInfoForCompletions(v.kind===291?v.parent:u,s,t);return z&&Q$t(z.invocation,u,z,d)||B(0)}case 272:case 278:case 283:return{kind:0,paths:w0t(t,u,f,p,d,E)};case 296:const k=VX(d,v.parent.clauses),T=B();return T?{kind:2,types:T.types.filter(z=>!k.hasValue(z.value)),isNewIdentifier:!1}:void 0;default:return B()||B(0)}function b(k){switch(k.kind){case 233:case 183:{const z=Tn(v,j=>j.parent===k);return z?{kind:2,types:bpe(d.getTypeArgumentConstraint(z)),isNewIdentifier:!1}:void 0}case 199:const{indexType:T,objectType:M}=k;return MH(T,s)?S0t(d.getTypeFromTypeNode(M)):void 0;case 192:{const z=b(ATe(k.parent));if(!z)return;const j=Y$t(k,v);return z.kind===1?{kind:1,symbols:z.symbols.filter(J=>!kt(j,J.name)),hasIndexSignature:z.hasIndexSignature}:{kind:2,types:z.types.filter(J=>!kt(j,J.value)),isNewIdentifier:!1}}default:return}}function B(k=4){const T=bpe(SX(u,d,k));if(T.length)return{kind:2,types:T,isNewIdentifier:!1}}}function ATe(t){switch(t.kind){case 196:return Lj(t);case 217:return i5(t);default:return t}}function Y$t(t,u){return qi(t.types,s=>s!==u&&Mv(s)&&us(s.literal)?s.literal.text:void 0)}function Q$t(t,u,s,d){let f=!1;const p=new Map,E=zh(t)?H.checkDefined(Tn(u.parent,oE)):u,v=d.getCandidateSignaturesForStringLiteralCompletions(t,E),b=ju(v,B=>{if(!th(B)&&s.argumentCount>B.parameters.length)return;let k=B.getTypeParameterAtPosition(s.argumentIndex);if(zh(t)){const T=d.getTypeOfPropertyOfType(k,sV(E.name));T&&(k=T)}return f=f||!!(k.flags&4),bpe(k,p)});return S(b)?{kind:2,types:b,isNewIdentifier:f}:void 0}function S0t(t){return t&&{kind:1,symbols:ti(t.getApparentProperties(),u=>!(u.valueDeclaration&&ph(u.valueDeclaration))),hasIndexSignature:_fe(t)}}function X$t(t,u){const s=t.getContextualType(u);if(!s)return;const d=t.getContextualType(u,4);return{kind:1,symbols:Dpe(s,d,u,t),hasIndexSignature:_fe(s)}}function bpe(t,u=new Map){return t?(t=nfe(t),t.isUnion()?ju(t.types,s=>bpe(s,u)):t.isStringLiteral()&&!(t.flags&1024)&&Ip(u,t.value)?[t]:_t):_t}function YM(t,u,s){return{name:t,kind:u,extension:s}}function STe(t){return YM(t,"directory",void 0)}function B0t(t,u,s){const d=dUt(t,u),f=t.length===0?void 0:d1(u,t.length);return s.map(({name:p,kind:E,extension:v})=>p.includes(rl)||p.includes(BO)?{name:p,kind:E,extension:v,span:f}:{name:p,kind:E,extension:v,span:d})}function w0t(t,u,s,d,f,p){return B0t(u.text,u.getStart(t)+1,eUt(t,u,s,d,f,p))}function eUt(t,u,s,d,f,p){const E=q1(u.text),v=t0(u)?xg(t,u):void 0,b=t.path,B=lr(b),k=BTe(s,1,t,f,p,v);return hUt(E)||!s.baseUrl&&!s.paths&&(Pf(E)||x2e(E))?tUt(E,B,s,d,b,k):rUt(E,B,v,s,d,k,f)}function BTe(t,u,s,d,f,p){return{extensionsToSearch:Va(iUt(t,d)),referenceKind:u,importingSourceFile:s,endingPreference:f==null?void 0:f.importModuleSpecifierEnding,resolutionMode:p}}function tUt(t,u,s,d,f,p){return s.rootDirs?uUt(s.rootDirs,t,u,p,s,d,f):ga(SK(t,u,p,d,!0,f).values())}function iUt(t,u){const s=u?qi(u.getAmbientModules(),p=>{const E=p.name.slice(1,-1);if(!(!E.startsWith("*.")||E.includes("/")))return E.slice(1)}):[],d=[...kP(t),s],f=p1(t);return _X(f)?tV(t,d):d}function nUt(t,u,s,d){t=t.map(p=>zd($o(Pf(p)?p:cr(u,p))));const f=G(t,p=>GE(p,s,u,d)?s.substr(p.length):void 0);return ri([...t.map(p=>cr(p,f)),s].map(p=>mv(p)),XA,dh)}function uUt(t,u,s,d,f,p,E){const v=f.project||p.getCurrentDirectory(),b=!(p.useCaseSensitiveFileNames&&p.useCaseSensitiveFileNames()),B=nUt(t,v,s,b);return ju(B,k=>ga(SK(u,k,d,p,!0,E).values()))}function SK(t,u,s,d,f,p,E=FTe()){var v;t===void 0&&(t=""),t=q1(t),ZD(t)||(t=lr(t)),t===""&&(t="."+rl),t=zd(t);const b=kx(u,t),B=ZD(b)?b:lr(b);if(!f){const z=BSe(B,d);if(z){const J=EP(z,d).typesVersions;if(typeof J=="object"){const K=(v=jY(J))==null?void 0:v.paths;if(K){const Y=lr(z),oe=b.slice(zd(Y).length);if(L0t(E,oe,Y,s,d,K))return E}}}}const k=!(d.useCaseSensitiveFileNames&&d.useCaseSensitiveFileNames());if(!NX(d,B))return E;const T=xfe(d,B,s.extensionsToSearch,void 0,["./*"]);if(T)for(let z of T){if(z=$o(z),p&&pv(z,p,u,k)===0)continue;const{name:j,extension:J}=T0t(Ac(z),d.getCompilationSettings(),s);E.add(YM(j,"script",J))}const M=LX(d,B);if(M)for(const z of M){const j=Ac($o(z));j!=="@types"&&E.add(STe(j))}return E}function T0t(t,u,s){const d=Z2.tryGetRealFileNameForNonJsDeclarationFileName(t);if(d)return{name:d,extension:t3(d)};if(s.referenceKind===0)return{name:t,extension:t3(t)};const f=Sle(s.endingPreference,s.resolutionMode,u,s.importingSourceFile);if(f===3){if(jc(t,hV))return{name:t,extension:t3(t)};const E=Z2.tryGetJSExtensionForFile(t,u);return E?{name:wv(t,E),extension:E}:{name:t,extension:t3(t)}}if((f===0||f===1)&&jc(t,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:_h(t),extension:t3(t)};const p=Z2.tryGetJSExtensionForFile(t,u);return p?{name:wv(t,p),extension:p}:{name:t,extension:t3(t)}}function L0t(t,u,s,d,f,p){const E=b=>p[b],v=(b,B)=>{const k=fB(b),T=fB(B),M=typeof k=="object"?k.prefix.length:b.length,z=typeof T=="object"?T.prefix.length:B.length;return nl(z,M)};return N0t(t,u,s,d,f,Ns(p),E,v)}function N0t(t,u,s,d,f,p,E,v){let b=[],B;for(const k of p){if(k===".")continue;const T=k.replace(/^\.\//,""),M=E(k);if(M){const z=fB(T);if(!z)continue;const j=typeof z=="object"&&Y$(z,u);j&&(B===void 0||v(k,B)===-1)&&(B=k,b=b.filter(K=>!K.matchedPattern)),(typeof z=="string"||B===void 0||v(k,B)!==1)&&b.push({matchedPattern:j,results:aUt(T,M,u,s,d,f).map(({name:K,kind:Y,extension:oe})=>YM(K,Y,oe))})}}return b.forEach(k=>k.results.forEach(T=>t.add(T))),B!==void 0}function rUt(t,u,s,d,f,p,E){const{baseUrl:v,paths:b}=d,B=FTe(),k=p1(d);if(v){const M=$o(cr(f.getCurrentDirectory(),v));SK(t,M,p,f,!1,void 0,B)}if(b){const M=zq(d,f);L0t(B,t,M,p,f,b)}const T=M0t(t);for(const M of sUt(t,T,E))B.add(YM(M,"external module name",void 0));if(R0t(f,d,u,T,p,B),_X(k)){let M=!1;if(T===void 0)for(const z of cUt(f,u)){const j=YM(z,"external module name",void 0);B.has(j.name)||(M=!0,B.add(j))}if(!M){let z=j=>{const J=cr(j,"node_modules");NX(f,J)&&SK(t,J,p,f,!1,void 0,B)};if(T&&vle(d)){const j=z;z=J=>{const K=yd(t);K.shift();let Y=K.shift();if(!Y)return j(J);if(Pa(Y,"@")){const ge=K.shift();if(!ge)return j(J);Y=cr(Y,ge)}const oe=cr(J,"node_modules",Y),se=cr(oe,"package.json");if(QH(f,se)){const ae=EP(se,f).exports;if(ae){if(typeof ae!="object"||ae===null)return;const Ce=Ns(ae),ne=K.join("/")+(K.length&&ZD(t)?"/":""),ve=$2(d,s);N0t(B,ne,oe,p,f,Ce,Se=>Hy(P0t(ae[Se],ve)),Sde);return}}return j(J)}}Ug(u,z)}}return ga(B.values())}function P0t(t,u){if(typeof t=="string")return t;if(t&&typeof t=="object"&&!Ha(t)){for(const s in t)if(s==="default"||u.includes(s)||sH(u,s)){const d=t[s];return P0t(d,u)}}}function M0t(t){return wTe(t)?ZD(t)?t:lr(t):void 0}function aUt(t,u,s,d,f,p){if(!sc(t,"*"))return t.includes("*")?_t:b(t,"script");const E=t.slice(0,t.length-1),v=doe(s,E);if(v===void 0)return t[t.length-2]==="/"?b(E,"directory"):ju(u,k=>{var T;return(T=z0t("",d,k,f,p))==null?void 0:T.map(({name:M,...z})=>({name:E+M,...z}))});return ju(u,B=>z0t(v,d,B,f,p));function b(B,k){return Pa(B,s)?[{name:mv(B),kind:k,extension:void 0}]:_t}}function z0t(t,u,s,d,f){if(!f.readDirectory)return;const p=fB(s);if(p===void 0||Ja(p))return;const E=kx(p.prefix),v=ZD(p.prefix)?E:lr(E),b=ZD(p.prefix)?"":Ac(E),B=wTe(t),k=B?ZD(t)?t:lr(t):void 0,T=B?cr(v,b+k):v,M=$o(p.suffix),z=M&&Kj("_"+M),j=z?[wv(M,z),M]:[M],J=$o(cr(u,T)),K=B?J:zd(J)+b,Y=M?j.map(ae=>"**/*"+ae):["./*"],oe=qi(xfe(f,J,d.extensionsToSearch,void 0,Y),ae=>{const Ce=ge(ae);if(Ce){if(wTe(Ce))return STe(yd(I0t(Ce))[1]);const{name:ne,extension:ve}=T0t(Ce,f.getCompilationSettings(),d);return YM(ne,"script",ve)}}),se=M?_t:qi(LX(f,J),ae=>ae==="node_modules"?void 0:STe(ae));return[...oe,...se];function ge(ae){return G(j,Ce=>{const ne=oUt($o(ae),K,Ce);return ne===void 0?void 0:I0t(ne)})}}function oUt(t,u,s){return Pa(t,u)&&sc(t,s)?t.slice(u.length,t.length-s.length):void 0}function I0t(t){return t[0]===rl?t.slice(1):t}function sUt(t,u,s){const f=s.getAmbientModules().map(p=>$4(p.name)).filter(p=>Pa(p,t)&&!p.includes("*"));if(u!==void 0){const p=zd(u);return f.map(E=>yN(E,p))}return f}function lUt(t,u,s,d){const f=Ca(t,u),p=W_(t.text,f.pos),E=p&&Le(p,j=>u>=j.pos&&u<=j.end);if(!E)return;const v=t.text.slice(E.pos,u),b=O0t.exec(v);if(!b)return;const[,B,k,T]=b,M=lr(t.path),z=k==="path"?SK(T,M,BTe(s,0,t),d,!0,t.path):k==="types"?R0t(d,s,M,M0t(T),BTe(s,1,t)):H.fail();return B0t(T,E.pos+B.length,ga(z.values()))}function R0t(t,u,s,d,f,p=FTe()){const E=new Map,v=PX(()=>cM(u,t))||_t;for(const B of v)b(B);for(const B of vfe(s,t)){const k=cr(lr(B),"node_modules/@types");b(k)}return p;function b(B){if(NX(t,B))for(const k of LX(t,B)){const T=lH(k);if(!(u.types&&!kt(u.types,T)))if(d===void 0)E.has(T)||(p.add(YM(T,"external module name",void 0)),E.set(T,!0));else{const M=cr(B,k),z=yle(d,T,n5(t));z!==void 0&&SK(z,M,f,t,!1,void 0,p)}}}}function cUt(t,u){if(!t.readFile||!t.fileExists)return _t;const s=[];for(const d of vfe(u,t)){const f=EP(d,t);for(const p of j0t){const E=f[p];if(E)for(const v in E)gu(E,v)&&!Pa(v,"@types/")&&s.push(v)}}return s}function dUt(t,u){const s=Math.max(t.lastIndexOf(rl),t.lastIndexOf(BO)),d=s!==-1?s+1:0,f=t.length-d;return f===0||Lm(t.substr(d,f),99)?void 0:d1(u+d,f)}function hUt(t){if(t&&t.length>=2&&t.charCodeAt(0)===46){const u=t.length>=3&&t.charCodeAt(1)===46?2:1,s=t.charCodeAt(u);return s===47||s===92}return!1}function wTe(t){return t.includes(rl)}function fUt(t){return Mo(t.parent)&&Ki(t.parent.arguments)===t&&at(t.parent.expression)&&t.parent.expression.escapedText==="require"}var TTe,O0t,j0t,mUt=o({"src/services/stringCompletions.ts"(){rr(),LTe(),TTe={directory:0,script:1,"external module name":2},O0t=/^(\/\/\/\s*q$t,getStringLiteralCompletions:()=>$$t});var pUt=o({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){mUt()}}),h9={};h(h9,{CompletionKind:()=>yTe,CompletionSource:()=>CTe,SortText:()=>I1,StringCompletions:()=>ype,SymbolOriginInfoKind:()=>bTe,createCompletionDetails:()=>Lee,createCompletionDetailsForSymbol:()=>ETe,getCompletionEntriesFromSymbols:()=>pTe,getCompletionEntryDetails:()=>y$t,getCompletionEntrySymbol:()=>F$t,getCompletionsAtPosition:()=>i$t,getPropertiesForObjectExpression:()=>Dpe,moduleSpecifierResolutionCacheAttemptLimit:()=>vTe,moduleSpecifierResolutionLimit:()=>Cpe});var LTe=o({"src/services/_namespaces/ts.Completions.ts"(){J$t(),pUt()}});function NTe(t,u,s,d){const f=DUt(t,s,d);return(p,E,v)=>{const{directImports:b,indirectUsers:B}=gUt(t,u,f,E,s,d);return{indirectUsers:B,...EUt(b,p,E.exportKind,s,v)}}}function gUt(t,u,s,{exportingModuleSymbol:d,exportKind:f},p,E){const v=i9(),b=i9(),B=[],k=!!d.globalExports,T=k?void 0:[];return z(d),{directImports:B,indirectUsers:M()};function M(){if(k)return t;if(d.declarations)for(const se of d.declarations)v2(se)&&u.has(se.getSourceFile().fileName)&&Y(se);return T.map(zn)}function z(se){const ge=oe(se);if(ge){for(const ae of ge)if(v(ae))switch(E&&E.throwIfCancellationRequested(),ae.kind){case 213:if(dm(ae)){j(ae);break}if(!k){const ne=ae.parent;if(f===2&&ne.kind===260){const{name:ve}=ne;if(ve.kind===80){B.push(ve);break}}}break;case 80:break;case 271:K(ae,ae.name,Yu(ae,32),!1);break;case 272:B.push(ae);const Ce=ae.importClause&&ae.importClause.namedBindings;Ce&&Ce.kind===274?K(ae,Ce.name,!1,!0):!k&&c7(ae)&&Y(Mee(ae));break;case 278:ae.exportClause?ae.exportClause.kind===280?Y(Mee(ae),!0):B.push(ae):z(yUt(ae,p));break;case 205:!k&&ae.isTypeOf&&!ae.qualifier&&J(ae)&&Y(ae.getSourceFile(),!0),B.push(ae);break;default:H.failBadSyntaxKind(ae,"Unexpected import kind.")}}}function j(se){const ge=Tn(se,kpe)||se.getSourceFile();Y(ge,!!J(se,!0))}function J(se,ge=!1){return Tn(se,ae=>ge&&kpe(ae)?"quit":Hp(ae)&&Oe(ae.modifiers,L7))}function K(se,ge,ae,Ce){if(f===2)Ce||B.push(se);else if(!k){const ne=Mee(se);H.assert(ne.kind===312||ne.kind===267),ae||_Ut(ne,ge,p)?Y(ne,!0):Y(ne)}}function Y(se,ge=!1){if(H.assert(!k),!b(se)||(T.push(se),!ge))return;const Ce=p.getMergedSymbol(se.symbol);if(!Ce)return;H.assert(!!(Ce.flags&1536));const ne=oe(Ce);if(ne)for(const ve of ne)nD(ve)||Y(Mee(ve),!0)}function oe(se){return s.get(Zo(se).toString())}}function EUt(t,u,s,d,f){const p=[],E=[];function v(M,z){p.push([M,z])}if(t)for(const M of t)b(M);return{importSearches:p,singleReferences:E};function b(M){if(M.kind===271){MTe(M)&&B(M.name);return}if(M.kind===80){B(M);return}if(M.kind===205){if(M.qualifier){const J=hm(M.qualifier);J.escapedText===lc(u)&&E.push(J)}else s===2&&E.push(M.argument.literal);return}if(M.moduleSpecifier.kind!==11)return;if(M.kind===278){M.exportClause&&ep(M.exportClause)&&k(M.exportClause);return}const{name:z,namedBindings:j}=M.importClause||{name:void 0,namedBindings:void 0};if(j)switch(j.kind){case 274:B(j.name);break;case 275:(s===0||s===1)&&k(j);break;default:H.assertNever(j)}if(z&&(s===1||s===2)&&(!f||z.escapedText===xX(u))){const J=d.getSymbolAtLocation(z);v(z,J)}}function B(M){s===2&&(!f||T(M.escapedText))&&v(M,d.getSymbolAtLocation(M))}function k(M){if(M)for(const z of M.elements){const{name:j,propertyName:J}=z;if(T((J||j).escapedText))if(J)E.push(J),(!f||j.escapedText===u.escapedName)&&v(j,d.getSymbolAtLocation(j));else{const K=z.kind===281&&z.propertyName?d.getExportSpecifierLocalTargetSymbol(z):d.getSymbolAtLocation(j);v(j,K)}}}function T(M){return M===u.escapedName||s!==0&&M==="default"}}function _Ut(t,u,s){const d=s.getSymbolAtLocation(u);return!!H0t(t,f=>{if(!Gc(f))return;const{exportClause:p,moduleSpecifier:E}=f;return!E&&p&&ep(p)&&p.elements.some(v=>s.getExportSpecifierLocalTargetSymbol(v)===d)})}function V0t(t,u,s){var d;const f=[],p=t.getTypeChecker();for(const E of u){const v=s.valueDeclaration;if((v==null?void 0:v.kind)===312){for(const b of E.referencedFiles)t.getSourceFileFromReference(E,b)===v&&f.push({kind:"reference",referencingFile:E,ref:b});for(const b of E.typeReferenceDirectives){const B=(d=t.getResolvedTypeReferenceDirectives().get(b.fileName,b.resolutionMode||E.impliedNodeFormat))==null?void 0:d.resolvedTypeReferenceDirective;B!==void 0&&B.resolvedFileName===v.fileName&&f.push({kind:"reference",referencingFile:E,ref:b})}}K0t(E,(b,B)=>{p.getSymbolAtLocation(B)===s&&f.push(sl(b)?{kind:"implicit",literal:B,referencingFile:E}:{kind:"import",literal:B})})}return f}function DUt(t,u,s){const d=new Map;for(const f of t)s&&s.throwIfCancellationRequested(),K0t(f,(p,E)=>{const v=u.getSymbolAtLocation(E);if(v){const b=Zo(v).toString();let B=d.get(b);B||d.set(b,B=[]),B.push(p)}});return d}function H0t(t,u){return L(t.kind===312?t.statements:t.body.statements,s=>u(s)||kpe(s)&&L(s.body&&s.body.statements,u))}function K0t(t,u){if(t.externalModuleIndicator||t.imports!==void 0)for(const s of t.imports)u(tP(s),s);else H0t(t,s=>{switch(s.kind){case 278:case 272:{const d=s;d.moduleSpecifier&&us(d.moduleSpecifier)&&u(d,d.moduleSpecifier);break}case 271:{const d=s;MTe(d)&&u(d,d.moduleReference.expression);break}}})}function W0t(t,u,s,d){return d?f():f()||p();function f(){var b;const{parent:B}=t,k=B.parent;if(u.exportSymbol)return B.kind===211?(b=u.declarations)!=null&&b.some(z=>z===B)&&Xn(k)?M(k,!1):void 0:E(u.exportSymbol,v(B));{const z=vUt(B,t);if(z&&Yu(z,32))return E1(z)&&z.moduleReference===t?d?void 0:{kind:0,symbol:s.getSymbolAtLocation(z.name)}:E(u,v(z));if(u_(B))return E(u,0);if(tc(B))return T(B);if(tc(k))return T(k);if(Xn(B))return M(B,!0);if(Xn(k))return M(k,!0);if(PB(B)||Ace(B))return E(u,0)}function T(z){if(!z.symbol.parent)return;const j=z.isExportEquals?2:1;return{kind:1,symbol:u,exportInfo:{exportingModuleSymbol:z.symbol.parent,exportKind:j}}}function M(z,j){let J;switch(Xl(z)){case 1:J=0;break;case 2:J=2;break;default:return}const K=j?s.getSymbolAtLocation(Uye(Po(z.left,I0))):u;return K&&E(K,J)}}function p(){if(!CUt(t))return;let B=s.getImmediateAliasedSymbol(u);if(!B||(B=bUt(B,s),B.escapedName==="export="&&(B=xUt(B,s),B===void 0)))return;const k=xX(B);if(k===void 0||k==="default"||k===u.escapedName)return{kind:0,symbol:B}}function E(b,B){const k=PTe(b,B,s);return k&&{kind:1,symbol:b,exportInfo:k}}function v(b){return Yu(b,2048)?1:0}}function xUt(t,u){var s,d;if(t.flags&2097152)return u.getImmediateAliasedSymbol(t);const f=H.checkDefined(t.valueDeclaration);if(tc(f))return(s=ur(f.expression,Zg))==null?void 0:s.symbol;if(Xn(f))return(d=ur(f.right,Zg))==null?void 0:d.symbol;if(la(f))return f.symbol}function vUt(t,u){const s=na(t)?t:js(t)?S8(t):void 0;return s?t.name!==u||G2(s.parent)?void 0:Jl(s.parent.parent)?s.parent.parent:void 0:t}function CUt(t){const{parent:u}=t;switch(u.kind){case 271:return u.name===t&&MTe(u);case 276:return!u.propertyName;case 273:case 274:return H.assert(u.name===t),!0;case 208:return Qn(t)&&F2(u.parent.parent);default:return!1}}function PTe(t,u,s){const d=t.parent;if(!d)return;const f=s.getMergedSymbol(d);return HH(f)?{exportingModuleSymbol:f,exportKind:u}:void 0}function bUt(t,u){if(t.declarations)for(const s of t.declarations){if(eh(s)&&!s.propertyName&&!s.parent.parent.moduleSpecifier)return u.getExportSpecifierLocalTargetSymbol(s)||t;if(Iu(s)&&Y_(s.expression)&&!Xr(s.name))return u.getSymbolAtLocation(s);if(pm(s)&&Xn(s.parent.parent)&&Xl(s.parent.parent)===2)return u.getExportSpecifierLocalTargetSymbol(s.name)}return t}function yUt(t,u){return u.getMergedSymbol(Mee(t).symbol)}function Mee(t){if(t.kind===213)return t.getSourceFile();const{parent:u}=t;return u.kind===312?u:(H.assert(u.kind===268),Po(u.parent,kpe))}function kpe(t){return t.kind===267&&t.name.kind===11}function MTe(t){return t.moduleReference.kind===283&&t.moduleReference.expression.kind===11}var zTe,ITe,kUt=o({"src/services/importTracker.ts"(){rr(),zTe=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t))(zTe||{}),ITe=(t=>(t[t.Import=0]="Import",t[t.Export=1]="Export",t))(ITe||{})}});function l3(t,u=1){return{kind:u,node:t.name||t,context:FUt(t)}}function G0t(t){return t&&t.kind===void 0}function FUt(t){if(Q1(t))return Vk(t);if(t.parent){if(!Q1(t.parent)&&!tc(t.parent)){if(Qn(t)){const s=Xn(t.parent)?t.parent:I0(t.parent)&&Xn(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(s&&Xl(s)!==0)return Vk(s)}if(aE(t.parent)||H2(t.parent))return t.parent.parent;if(bk(t.parent)||V2(t.parent)||ON(t.parent))return t.parent;if(t0(t)){const s=Aj(t);if(s){const d=Tn(s,f=>Q1(f)||ia(f)||I8(f));return Q1(d)?Vk(d):d}}const u=Tn(t,Ps);return u?Vk(u.parent):void 0}if(t.parent.name===t||hc(t.parent)||tc(t.parent)||(r7(t.parent)||js(t.parent))&&t.parent.propertyName===t||t.kind===90&&Yu(t.parent,2080))return Vk(t.parent)}}function Vk(t){if(t)switch(t.kind){case 260:return!Ad(t.parent)||t.parent.declarations.length!==1?t:Jl(t.parent.parent)?t.parent.parent:M8(t.parent.parent)?Vk(t.parent.parent):t.parent;case 208:return Vk(t.parent.parent);case 276:return t.parent.parent.parent;case 281:case 274:return t.parent.parent;case 273:case 280:return t.parent;case 226:return Od(t.parent)?t.parent:t;case 250:case 249:return{start:t.initializer,end:t.expression};case 303:case 304:return p5(t.parent)?Vk(Tn(t.parent,u=>Xn(u)||M8(u))):t;default:return t}}function RTe(t,u,s){if(!s)return;const d=G0t(s)?Iee(s.start,u,s.end):Iee(s,u);return d.start!==t.start||d.length!==t.length?{contextSpan:d}:void 0}function AUt(t,u,s,d,f){const p=af(d,f),E={use:1},v=f9.getReferencedSymbolsForNode(f,p,t,s,u,E),b=t.getTypeChecker(),B=f9.getAdjustedNode(p,E),k=SUt(B)?b.getSymbolAtLocation(B):void 0;return!v||!v.length?void 0:qi(v,({definition:T,references:M})=>T&&{definition:b.runWithCancellationToken(u,z=>TUt(T,z,p)),references:M.map(z=>NUt(z,k))})}function SUt(t){return t.kind===90||!!nP(t)||Nj(t)||t.kind===137&&hc(t.parent)}function BUt(t,u,s,d,f){const p=af(d,f);let E;const v=J0t(t,u,s,p,f);if(p.parent.kind===211||p.parent.kind===208||p.parent.kind===212||p.kind===108)E=v&&[...v];else if(v){const B=U$(v),k=new Map;for(;!B.isEmpty();){const T=B.dequeue();if(!Ip(k,$s(T.node)))continue;E=xi(E,T);const M=J0t(t,u,s,T.node,T.node.pos);M&&B.enqueue(...M)}}const b=t.getTypeChecker();return Vt(E,B=>MUt(B,b))}function J0t(t,u,s,d,f){if(d.kind===312)return;const p=t.getTypeChecker();if(d.parent.kind===304){const E=[];return f9.getReferenceEntriesForShorthandPropertyAssignment(d,p,v=>E.push(l3(v))),E}else if(d.kind===108||nf(d.parent)){const E=p.getSymbolAtLocation(d);return E.valueDeclaration&&[l3(E.valueDeclaration)]}else return $0t(f,d,t,s,u,{implementations:!0,use:1})}function wUt(t,u,s,d,f,p,E){return Vt(U0t(f9.getReferencedSymbolsForNode(f,d,t,s,u,p)),v=>E(v,d,t.getTypeChecker()))}function $0t(t,u,s,d,f,p={},E=new Set(d.map(v=>v.fileName))){return U0t(f9.getReferencedSymbolsForNode(t,u,s,d,f,p,E))}function U0t(t){return t&&ju(t,u=>u.references)}function TUt(t,u,s){const d=(()=>{switch(t.type){case 0:{const{symbol:k}=t,{displayParts:T,kind:M}=q0t(k,u,s),z=T.map(K=>K.text).join(""),j=k.declarations&&Ki(k.declarations),J=j?Za(j)||j:s;return{...zee(J),name:z,kind:M,displayParts:T,context:Vk(j)}}case 1:{const{node:k}=t;return{...zee(k),name:k.text,kind:"label",displayParts:[yf(k.text,17)]}}case 2:{const{node:k}=t,T=Uo(k.kind);return{...zee(k),name:T,kind:"keyword",displayParts:[{text:T,kind:"keyword"}]}}case 3:{const{node:k}=t,T=u.getSymbolAtLocation(k),M=T&&x5.getSymbolDisplayPartsDocumentationAndSymbolKind(u,T,k.getSourceFile(),Mk(k),k).displayParts||[Km("this")];return{...zee(k),name:"this",kind:"var",displayParts:M}}case 4:{const{node:k}=t;return{...zee(k),name:k.text,kind:"var",displayParts:[yf(Hc(k),8)]}}case 5:return{textSpan:qx(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[yf(`"${t.reference.fileName}"`,8)]};default:return H.assertNever(t)}})(),{sourceFile:f,textSpan:p,name:E,kind:v,displayParts:b,context:B}=d;return{containerKind:"",containerName:"",fileName:f.fileName,kind:v,name:E,textSpan:p,displayParts:b,...RTe(p,f,B)}}function zee(t){const u=t.getSourceFile();return{sourceFile:u,textSpan:Iee(Ps(t)?t.expression:t,u)}}function q0t(t,u,s){const d=f9.getIntersectingMeaningFromDeclarations(s,t),f=t.declarations&&Ki(t.declarations)||s,{displayParts:p,symbolKind:E}=x5.getSymbolDisplayPartsDocumentationAndSymbolKind(u,t,f.getSourceFile(),f,f,d);return{displayParts:p,kind:E}}function LUt(t,u,s,d,f){return{...Fpe(t),...d&&PUt(t,u,s,f)}}function NUt(t,u){const s=Z0t(t);return u?{...s,isDefinition:t.kind!==0&&Y0t(t.node,u)}:s}function Z0t(t){const u=Fpe(t);if(t.kind===0)return{...u,isWriteAccess:!1};const{kind:s,node:d}=t;return{...u,isWriteAccess:jTe(d),isInString:s===2?!0:void 0}}function Fpe(t){if(t.kind===0)return{textSpan:t.textSpan,fileName:t.fileName};{const u=t.node.getSourceFile(),s=Iee(t.node,u);return{textSpan:s,fileName:u.fileName,...RTe(s,u,t.context)}}}function PUt(t,u,s,d){if(t.kind!==0&&at(u)){const{node:f,kind:p}=t,E=f.parent,v=u.text,b=pm(E);if(b||GH(E)&&E.name===f&&E.dotDotDotToken===void 0){const B={prefixText:v+": "},k={suffixText:": "+v};if(p===3)return B;if(p===4)return k;if(b){const T=E.parent;return ys(T)&&Xn(T.parent)&&Y_(T.parent.left)?B:k}else return B}else if(bf(E)&&!E.propertyName){const B=eh(u.parent)?s.getExportSpecifierLocalTargetSymbol(u.parent):s.getSymbolAtLocation(u);return kt(B.declarations,E)?{prefixText:v+" as "}:d4}else if(eh(E)&&!E.propertyName)return u===t.node||s.getSymbolAtLocation(u)===s.getSymbolAtLocation(t.node)?{prefixText:v+" as "}:{suffixText:" as "+v}}if(t.kind!==0&&Of(t.node)&&I0(t.node.parent)){const f=ofe(d);return{prefixText:f,suffixText:f}}return d4}function MUt(t,u){const s=Fpe(t);if(t.kind!==0){const{node:d}=t;return{...s,...zUt(d,u)}}else return{...s,kind:"",displayParts:[]}}function zUt(t,u){const s=u.getSymbolAtLocation(Q1(t)&&t.name?t.name:t);return s?q0t(s,u,t):t.kind===210?{kind:"interface",displayParts:[ih(21),Km("object literal"),ih(22)]}:t.kind===231?{kind:"local class",displayParts:[ih(21),Km("anonymous local class"),ih(22)]}:{kind:tb(t),displayParts:[]}}function IUt(t){const u=Fpe(t);if(t.kind===0)return{fileName:u.fileName,span:{textSpan:u.textSpan,kind:"reference"}};const s=jTe(t.node),d={textSpan:u.textSpan,kind:s?"writtenReference":"reference",isInString:t.kind===2?!0:void 0,...u.contextSpan&&{contextSpan:u.contextSpan}};return{fileName:u.fileName,span:d}}function Iee(t,u,s){let d=t.getStart(u),f=(s||t).getEnd();return t0(t)&&f-d>2&&(H.assert(s===void 0),d+=1,f-=1),Vc(d,f)}function OTe(t){return t.kind===0?t.textSpan:Iee(t.node,t.node.getSourceFile())}function jTe(t){const u=nP(t);return!!u&&RUt(u)||t.kind===90||D7(t)}function Y0t(t,u){var s;if(!u)return!1;const d=nP(t)||(t.kind===90?t.parent:Nj(t)||t.kind===137&&hc(t.parent)?t.parent.parent:void 0),f=d&&Xn(d)?d.left:void 0;return!!(d&&((s=u.declarations)!=null&&s.some(p=>p===d||p===f)))}function RUt(t){if(t.flags&33554432)return!0;switch(t.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!p5(t.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!t.body;case 260:case 172:return!!t.initializer||G2(t.parent);case 173:case 171:case 355:case 348:return!1;default:return H.failBadSyntaxKind(t)}}var VTe,HTe,KTe,f9,OUt=o({"src/services/findAllReferences.ts"(){rr(),Q0t(),VTe=(t=>(t[t.Symbol=0]="Symbol",t[t.Label=1]="Label",t[t.Keyword=2]="Keyword",t[t.This=3]="This",t[t.String=4]="String",t[t.TripleSlashReference=5]="TripleSlashReference",t))(VTe||{}),HTe=(t=>(t[t.Span=0]="Span",t[t.Node=1]="Node",t[t.StringLiteral=2]="StringLiteral",t[t.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",t[t.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t))(HTe||{}),KTe=(t=>(t[t.Other=0]="Other",t[t.References=1]="References",t[t.Rename=2]="Rename",t))(KTe||{}),(t=>{function u(Qe,Et,Mt,qt,Xt,Pe={},et=new Set(qt.map(gt=>gt.fileName))){var gt,ii;if(Et=s(Et,Pe),la(Et)){const $i=Cw.getReferenceAtPosition(Et,Qe,Mt);if(!($i!=null&&$i.file))return;const Qi=Mt.getTypeChecker().getMergedSymbol($i.file.symbol);if(Qi)return B(Mt,Qi,!1,qt,et);const on=Mt.getFileIncludeReasons();return on?[{definition:{type:5,reference:$i.reference,file:Et},references:f($i.file,on,Mt)||_t}]:void 0}if(!Pe.implementations){const $i=T(Et,qt,Xt);if($i)return $i}const me=Mt.getTypeChecker(),ni=me.getSymbolAtLocation(hc(Et)&&Et.parent.name||Et);if(!ni){if(!Pe.implementations&&t0(Et)){if(vX(Et)){const $i=Mt.getFileIncludeReasons(),Qi=(ii=(gt=Mt.getResolvedModule(Et.getSourceFile(),Et.text,xg(Et.getSourceFile(),Et)))==null?void 0:gt.resolvedModule)==null?void 0:ii.resolvedFileName,on=Qi?Mt.getSourceFile(Qi):void 0;if(on)return[{definition:{type:4,node:Et},references:f(on,$i,Mt)||_t}]}return bt(Et,qt,me,Xt)}return}if(ni.escapedName==="export=")return B(Mt,ni.parent,!1,qt,et);const vi=E(ni,Mt,qt,Xt,Pe,et);if(vi&&!(ni.flags&33554432))return vi;const mt=p(Et,ni,me),Ot=mt&&E(mt,Mt,qt,Xt,Pe,et),Ei=M(ni,Et,qt,et,me,Xt,Pe);return v(Mt,vi,Ei,Ot)}t.getReferencedSymbolsForNode=u;function s(Qe,Et){return Et.use===1?Qe=Jhe(Qe):Et.use===2&&(Qe=lX(Qe)),Qe}t.getAdjustedNode=s;function d(Qe,Et,Mt,qt=new Set(Mt.map(Xt=>Xt.fileName))){var Xt,Pe;const et=(Xt=Et.getSourceFile(Qe))==null?void 0:Xt.symbol;if(et)return((Pe=B(Et,et,!1,Mt,qt)[0])==null?void 0:Pe.references)||_t;const gt=Et.getFileIncludeReasons(),ii=Et.getSourceFile(Qe);return ii&>&&f(ii,gt,Et)||_t}t.getReferencesForFileName=d;function f(Qe,Et,Mt){let qt;const Xt=Et.get(Qe.path)||_t;for(const Pe of Xt)if(Jv(Pe)){const et=Mt.getSourceFileByPath(Pe.file),gt=FM(Mt,Pe);ZB(gt)&&(qt=xi(qt,{kind:0,fileName:et.fileName,textSpan:qx(gt)}))}return qt}function p(Qe,Et,Mt){if(Qe.parent&&wV(Qe.parent)){const qt=Mt.getAliasedSymbol(Et),Xt=Mt.getMergedSymbol(qt);if(qt!==Xt)return Xt}}function E(Qe,Et,Mt,qt,Xt,Pe){const et=Qe.flags&1536&&Qe.declarations&&Le(Qe.declarations,la);if(!et)return;const gt=Qe.exports.get("export="),ii=B(Et,Qe,!!gt,Mt,Pe);if(!gt||!Pe.has(et.fileName))return ii;const me=Et.getTypeChecker();return Qe=X1(gt,me),v(Et,ii,M(Qe,void 0,Mt,Pe,me,qt,Xt))}function v(Qe,...Et){let Mt;for(const qt of Et)if(!(!qt||!qt.length)){if(!Mt){Mt=qt;continue}for(const Xt of qt){if(!Xt.definition||Xt.definition.type!==0){Mt.push(Xt);continue}const Pe=Xt.definition.symbol,et=Ue(Mt,ii=>!!ii.definition&&ii.definition.type===0&&ii.definition.symbol===Pe);if(et===-1){Mt.push(Xt);continue}const gt=Mt[et];Mt[et]={definition:gt.definition,references:gt.references.concat(Xt.references).sort((ii,me)=>{const ni=b(Qe,ii),vi=b(Qe,me);if(ni!==vi)return nl(ni,vi);const mt=OTe(ii),Ot=OTe(me);return mt.start!==Ot.start?nl(mt.start,Ot.start):nl(mt.length,Ot.length)})}}}return Mt}function b(Qe,Et){const Mt=Et.kind===0?Qe.getSourceFile(Et.fileName):Et.node.getSourceFile();return Qe.getSourceFiles().indexOf(Mt)}function B(Qe,Et,Mt,qt,Xt){H.assert(!!Et.valueDeclaration);const Pe=qi(V0t(Qe,qt,Et),gt=>{if(gt.kind==="import"){const ii=gt.literal.parent;if(Mv(ii)){const me=Po(ii.parent,nD);if(Mt&&!me.qualifier)return}return l3(gt.literal)}else if(gt.kind==="implicit"){const ii=gt.literal.text!==Hx&&uM(gt.referencingFile,me=>me.transformFlags&2?r3(me)||bk(me)||K2(me)?me:void 0:"skip")||gt.referencingFile.statements[0]||gt.referencingFile;return l3(ii)}else return{kind:0,fileName:gt.referencingFile.fileName,textSpan:qx(gt.ref)}});if(Et.declarations)for(const gt of Et.declarations)switch(gt.kind){case 312:break;case 267:Xt.has(gt.getSourceFile().fileName)&&Pe.push(l3(gt.name));break;default:H.assert(!!(Et.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const et=Et.exports.get("export=");if(et!=null&&et.declarations)for(const gt of et.declarations){const ii=gt.getSourceFile();if(Xt.has(ii.fileName)){const me=Xn(gt)&&Iu(gt.left)?gt.left.expression:tc(gt)?H.checkDefined(a0(gt,95,ii)):Za(gt)||gt;Pe.push(l3(me))}}return Pe.length?[{definition:{type:0,symbol:Et},references:Pe}]:_t}function k(Qe){return Qe.kind===148&&z7(Qe.parent)&&Qe.parent.operator===148}function T(Qe,Et,Mt){if(PM(Qe.kind))return Qe.kind===116&&R7(Qe.parent)||Qe.kind===148&&!k(Qe)?void 0:Je(Et,Qe.kind,Mt,Qe.kind===148?k:void 0);if(W8(Qe.parent)&&Qe.parent.name===Qe)return Ke(Et,Mt);if(N7(Qe)&&zl(Qe.parent))return[{definition:{type:2,node:Qe},references:[l3(Qe)]}];if(PH(Qe)){const qt=nX(Qe.parent,Qe.text);return qt&&Ae(qt.parent,qt)}else if(Ihe(Qe))return Ae(Qe.parent,Qe);if(rw(Qe))return Ba(Qe,Et,Mt);if(Qe.kind===108)return aa(Qe)}function M(Qe,Et,Mt,qt,Xt,Pe,et){const gt=Et&&J(Qe,Et,Xt,!bo(et))||Qe,ii=Et?tu(Et,gt):7,me=[],ni=new oe(Mt,qt,Et?j(Et):0,Xt,Pe,ii,et,me),vi=!bo(et)||!gt.declarations?void 0:Le(gt.declarations,eh);if(vi)Gt(vi.name,gt,vi,ni.createSearch(Et,Qe,void 0),ni,!0,!0);else if(Et&&Et.kind===90&>.escapedName==="default"&>.parent)It(Et,gt,ni),se(Et,gt,{exportingModuleSymbol:gt.parent,exportKind:1},ni);else{const mt=ni.createSearch(Et,gt,void 0,{allSearchSymbols:Et?jn(gt,Et,Xt,et.use===2,!!et.providePrefixAndSuffixTextForRename,!!et.implementations):[gt]});z(gt,ni,mt)}return me}function z(Qe,Et,Mt){const qt=Se(Qe);if(qt)Ye(qt,qt.getSourceFile(),Mt,Et,!(la(qt)&&!kt(Et.sourceFiles,qt)));else for(const Xt of Et.sourceFiles)Et.cancellationToken.throwIfCancellationRequested(),ne(Xt,Mt,Et)}function j(Qe){switch(Qe.kind){case 176:case 137:return 1;case 80:if(mr(Qe.parent))return H.assert(Qe.parent.name===Qe),2;default:return 0}}function J(Qe,Et,Mt,qt){const{parent:Xt}=Et;return eh(Xt)&&qt?Yt(Et,Qe,Xt,Mt):G(Qe.declarations,Pe=>{if(!Pe.parent){if(Qe.flags&33554432)return;H.fail(`Unexpected symbol at ${H.formatSyntaxKind(Et.kind)}: ${H.formatSymbol(Qe)}`)}return fm(Pe.parent)&&Pv(Pe.parent.parent)?Mt.getPropertyOfType(Mt.getTypeFromTypeNode(Pe.parent.parent),Qe.name):void 0})}let K;(Qe=>{Qe[Qe.None=0]="None",Qe[Qe.Constructor=1]="Constructor",Qe[Qe.Class=2]="Class"})(K||(K={}));function Y(Qe){if(!(Qe.flags&33555968))return;const Et=Qe.declarations&&Le(Qe.declarations,Mt=>!la(Mt)&&!_c(Mt));return Et&&Et.symbol}class oe{constructor(Et,Mt,qt,Xt,Pe,et,gt,ii){this.sourceFiles=Et,this.sourceFilesSet=Mt,this.specialSearchKind=qt,this.checker=Xt,this.cancellationToken=Pe,this.searchMeaning=et,this.options=gt,this.result=ii,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=i9(),this.markSeenReExportRHS=i9(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Et){return this.sourceFilesSet.has(Et.fileName)}getImportSearches(Et,Mt){return this.importTracker||(this.importTracker=NTe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Et,Mt,this.options.use===2)}createSearch(Et,Mt,qt,Xt={}){const{text:Pe=$4(lc(lB(Mt)||Y(Mt)||Mt)),allSearchSymbols:et=[Mt]}=Xt,gt=Al(Pe),ii=this.options.implementations&&Et?Yo(Et,Mt,this.checker):void 0;return{symbol:Mt,comingFrom:qt,text:Pe,escapedText:gt,parents:ii,allSearchSymbols:et,includes:me=>kt(et,me)}}referenceAdder(Et){const Mt=Zo(Et);let qt=this.symbolIdToReferences[Mt];return qt||(qt=this.symbolIdToReferences[Mt]=[],this.result.push({definition:{type:0,symbol:Et},references:qt})),(Xt,Pe)=>qt.push(l3(Xt,Pe))}addStringOrCommentReference(Et,Mt){this.result.push({definition:void 0,references:[{kind:0,fileName:Et,textSpan:Mt}]})}markSearchedSymbols(Et,Mt){const qt=$s(Et),Xt=this.sourceFileToSeenSymbols[qt]||(this.sourceFileToSeenSymbols[qt]=new Set);let Pe=!1;for(const et of Mt)Pe=r0(Xt,Zo(et))||Pe;return Pe}}function se(Qe,Et,Mt,qt){const{importSearches:Xt,singleReferences:Pe,indirectUsers:et}=qt.getImportSearches(Et,Mt);if(Pe.length){const gt=qt.referenceAdder(Et);for(const ii of Pe)ae(ii,qt)&>(ii)}for(const[gt,ii]of Xt)ft(gt.getSourceFile(),qt.createSearch(gt,ii,1),qt);if(et.length){let gt;switch(Mt.exportKind){case 0:gt=qt.createSearch(Qe,Et,1);break;case 1:gt=qt.options.use===2?void 0:qt.createSearch(Qe,Et,1,{text:"default"});break}if(gt)for(const ii of et)ne(ii,gt,qt)}}function ge(Qe,Et,Mt,qt,Xt,Pe,et,gt){const ii=NTe(Qe,new Set(Qe.map(mt=>mt.fileName)),Et,Mt),{importSearches:me,indirectUsers:ni,singleReferences:vi}=ii(qt,{exportKind:et?1:0,exportingModuleSymbol:Xt},!1);for(const[mt]of me)gt(mt);for(const mt of vi)at(mt)&&nD(mt.parent)&>(mt);for(const mt of ni)for(const Ot of Be(mt,et?"default":Pe)){const Ei=Et.getSymbolAtLocation(Ot),$i=Oe(Ei==null?void 0:Ei.declarations,Qi=>!!ur(Qi,tc));at(Ot)&&!r7(Ot.parent)&&(Ei===qt||$i)&>(Ot)}}t.eachExportReference=ge;function ae(Qe,Et){return Ve(Qe,Et)?Et.options.use!==2?!0:at(Qe)?!(r7(Qe.parent)&&Qe.escapedText==="default"):!1:!1}function Ce(Qe,Et){if(Qe.declarations)for(const Mt of Qe.declarations){const qt=Mt.getSourceFile();ft(qt,Et.createSearch(Mt,Qe,0),Et,Et.includesSourceFile(qt))}}function ne(Qe,Et,Mt){Tme(Qe).get(Et.escapedText)!==void 0&&ft(Qe,Et,Mt)}function ve(Qe,Et){return p5(Qe.parent.parent)?Et.getPropertySymbolOfDestructuringAssignment(Qe):void 0}function Se(Qe){const{declarations:Et,flags:Mt,parent:qt,valueDeclaration:Xt}=Qe;if(Xt&&(Xt.kind===218||Xt.kind===231))return Xt;if(!Et)return;if(Mt&8196){const gt=Le(Et,ii=>Rf(ii,2)||ph(ii));return gt?Fv(gt,263):void 0}if(Et.some(GH))return;const Pe=qt&&!(Qe.flags&262144);if(Pe&&!(HH(qt)&&!qt.globalExports))return;let et;for(const gt of Et){const ii=Mk(gt);if(et&&et!==ii||!ii||ii.kind===312&&!cm(ii))return;if(et=ii,A0(et)){let me;for(;me=R0e(et);)et=me}}return Pe?et.getSourceFile():et}function Ne(Qe,Et,Mt,qt=Mt){return pe(Qe,Et,Mt,()=>!0,qt)||!1}t.isSymbolReferencedInFile=Ne;function pe(Qe,Et,Mt,qt,Xt=Mt){const Pe=Mf(Qe.parent,Qe.parent.parent)?Pn(Et.getSymbolsOfParameterPropertyDeclaration(Qe.parent,Qe.text)):Et.getSymbolAtLocation(Qe);if(Pe)for(const et of Be(Mt,Pe.name,Xt)){if(!at(et)||et===Qe||et.escapedText!==Qe.escapedText)continue;const gt=Et.getSymbolAtLocation(et);if(gt===Pe||Et.getShorthandAssignmentValueSymbol(et.parent)===Pe||eh(et.parent)&&Yt(et,gt,et.parent,Et)===Pe){const ii=qt(et);if(ii)return ii}}}t.eachSymbolReferenceInFile=pe;function fe(Qe,Et){return ti(Be(Et,Qe),Xt=>!!nP(Xt)).reduce((Xt,Pe)=>{const et=qt(Pe);return!Oe(Xt.declarationNames)||et===Xt.depth?(Xt.declarationNames.push(Pe),Xt.depth=et):etni===Xt)&&qt(et,ii))return!0}return!1}t.someSignatureUsage=xe;function Be(Qe,Et,Mt=Qe){return qi(Ge(Qe,Et,Mt),qt=>{const Xt=af(Qe,qt);return Xt===Qe?void 0:Xt})}function Ge(Qe,Et,Mt=Qe){const qt=[];if(!Et||!Et.length)return qt;const Xt=Qe.text,Pe=Xt.length,et=Et.length;let gt=Xt.indexOf(Et,Mt.pos);for(;gt>=0&&!(gt>Mt.end);){const ii=gt+et;(gt===0||!Ev(Xt.charCodeAt(gt-1),99))&&(ii===Pe||!Ev(Xt.charCodeAt(ii),99))&&qt.push(gt),gt=Xt.indexOf(Et,gt+et+1)}return qt}function Ae(Qe,Et){const Mt=Qe.getSourceFile(),qt=Et.text,Xt=qi(Be(Mt,qt,Qe),Pe=>Pe===Et||PH(Pe)&&nX(Pe,qt)===Et?l3(Pe):void 0);return[{definition:{type:1,node:Et},references:Xt}]}function De(Qe,Et){switch(Qe.kind){case 81:if(Rv(Qe.parent))return!0;case 80:return Qe.text.length===Et.length;case 15:case 11:{const Mt=Qe;return(uX(Mt)||Vhe(Qe)||U9e(Qe)||Mo(Qe.parent)&&rk(Qe.parent)&&Qe.parent.arguments[1]===Qe)&&Mt.text.length===Et.length}case 9:return uX(Qe)&&Qe.text.length===Et.length;case 90:return Et.length===7;default:return!1}}function Ke(Qe,Et){const Mt=ju(Qe,qt=>(Et.throwIfCancellationRequested(),qi(Be(qt,"meta",qt),Xt=>{const Pe=Xt.parent;if(W8(Pe))return l3(Pe)})));return Mt.length?[{definition:{type:2,node:Mt[0].node},references:Mt}]:void 0}function Je(Qe,Et,Mt,qt){const Xt=ju(Qe,Pe=>(Mt.throwIfCancellationRequested(),qi(Be(Pe,Uo(Et),Pe),et=>{if(et.kind===Et&&(!qt||qt(et)))return l3(et)})));return Xt.length?[{definition:{type:2,node:Xt[0].node},references:Xt}]:void 0}function ft(Qe,Et,Mt,qt=!0){return Mt.cancellationToken.throwIfCancellationRequested(),Ye(Qe,Qe,Et,Mt,qt)}function Ye(Qe,Et,Mt,qt,Xt){if(qt.markSearchedSymbols(Et,Mt.allSearchSymbols))for(const Pe of Ge(Et,Mt.text,Qe))We(Et,Pe,Mt,qt,Xt)}function Ve(Qe,Et){return!!(Pk(Qe)&Et.searchMeaning)}function We(Qe,Et,Mt,qt,Xt){const Pe=af(Qe,Et);if(!De(Pe,Mt.text)){!qt.options.implementations&&(qt.options.findInStrings&&zk(Qe,Et)||qt.options.findInComments&&sSe(Qe,Et))&&qt.addStringOrCommentReference(Qe.fileName,d1(Et,Mt.text.length));return}if(!Ve(Pe,qt))return;let et=qt.checker.getSymbolAtLocation(Pe);if(!et)return;const gt=Pe.parent;if(bf(gt)&>.propertyName===Pe)return;if(eh(gt)){H.assert(Pe.kind===80),Gt(Pe,et,gt,Mt,qt,Xt);return}const ii=Cn(Mt,et,Pe,qt);if(!ii){St(et,Mt,qt);return}switch(qt.specialSearchKind){case 0:Xt&&It(Pe,ii,qt);break;case 1:ei(Pe,Qe,Mt,qt);break;case 2:ht(Pe,Mt,qt);break;default:H.assertNever(qt.specialSearchKind)}Qn(Pe)&&js(Pe.parent)&&F2(Pe.parent.parent.parent)&&(et=Pe.parent.symbol,!et)||st(Pe,et,Mt,qt)}function Gt(Qe,Et,Mt,qt,Xt,Pe,et){H.assert(!et||!!Xt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:gt,propertyName:ii,name:me}=Mt,ni=gt.parent,vi=Yt(Qe,Et,Mt,Xt.checker);if(!et&&!qt.includes(vi))return;if(ii?Qe===ii?(ni.moduleSpecifier||mt(),Pe&&Xt.options.use!==2&&Xt.markSeenReExportRHS(me)&&It(me,H.checkDefined(Mt.symbol),Xt)):Xt.markSeenReExportRHS(Qe)&&mt():Xt.options.use===2&&me.escapedText==="default"||mt(),!bo(Xt.options)||et){const Ei=Qe.escapedText==="default"||Mt.name.escapedText==="default"?1:0,$i=H.checkDefined(Mt.symbol),Qi=PTe($i,Ei,Xt.checker);Qi&&se(Qe,$i,Qi,Xt)}if(qt.comingFrom!==1&&ni.moduleSpecifier&&!ii&&!bo(Xt.options)){const Ot=Xt.checker.getExportSpecifierLocalTargetSymbol(Mt);Ot&&Ce(Ot,Xt)}function mt(){Pe&&It(Qe,vi,Xt)}}function Yt(Qe,Et,Mt,qt){return Ie(Qe,Mt)&&qt.getExportSpecifierLocalTargetSymbol(Mt)||Et}function Ie(Qe,Et){const{parent:Mt,propertyName:qt,name:Xt}=Et;return H.assert(qt===Qe||Xt===Qe),qt?qt===Qe:!Mt.parent.moduleSpecifier}function st(Qe,Et,Mt,qt){const Xt=W0t(Qe,Et,qt.checker,Mt.comingFrom===1);if(!Xt)return;const{symbol:Pe}=Xt;Xt.kind===0?bo(qt.options)||Ce(Pe,qt):se(Qe,Pe,Xt.exportInfo,qt)}function St({flags:Qe,valueDeclaration:Et},Mt,qt){const Xt=qt.checker.getShorthandAssignmentValueSymbol(Et),Pe=Et&&Za(Et);!(Qe&33554432)&&Pe&&Mt.includes(Xt)&&It(Pe,Xt,qt)}function It(Qe,Et,Mt){const{kind:qt,symbol:Xt}="kind"in Et?Et:{kind:void 0,symbol:Et};if(Mt.options.use===2&&Qe.kind===90)return;const Pe=Mt.referenceAdder(Xt);Mt.options.implementations?an(Qe,Pe,Mt):Pe(Qe,qt)}function ei(Qe,Et,Mt,qt){wM(Qe)&&It(Qe,Mt.symbol,qt);const Xt=()=>qt.referenceAdder(Mt.symbol);if(mr(Qe.parent))H.assert(Qe.kind===90||Qe.parent.name===Qe),Ut(Mt.symbol,Et,Xt());else{const Pe=Ta(Qe);Pe&&(ji(Pe,Xt()),Jn(Pe,qt))}}function ht(Qe,Et,Mt){It(Qe,Et.symbol,Mt);const qt=Qe.parent;if(Mt.options.use===2||!mr(qt))return;H.assert(qt.name===Qe);const Xt=Mt.referenceAdder(Et.symbol);for(const Pe of qt.members)N8(Pe)&&No(Pe)&&Pe.body&&Pe.body.forEachChild(function et(gt){gt.kind===110?Xt(gt):!Co(gt)&&!mr(gt)&>.forEachChild(et)})}function Ut(Qe,Et,Mt){const qt=Ni(Qe);if(qt&&qt.declarations)for(const Xt of qt.declarations){const Pe=a0(Xt,137,Et);H.assert(Xt.kind===176&&!!Pe),Mt(Pe)}Qe.exports&&Qe.exports.forEach(Xt=>{const Pe=Xt.valueDeclaration;if(Pe&&Pe.kind===174){const et=Pe.body;et&&ua(et,110,gt=>{wM(gt)&&Mt(gt)})}})}function Ni(Qe){return Qe.members&&Qe.members.get("__constructor")}function ji(Qe,Et){const Mt=Ni(Qe.symbol);if(Mt&&Mt.declarations)for(const qt of Mt.declarations){H.assert(qt.kind===176);const Xt=qt.body;Xt&&ua(Xt,108,Pe=>{Phe(Pe)&&Et(Pe)})}}function xn(Qe){return!!Ni(Qe.symbol)}function Jn(Qe,Et){if(xn(Qe))return;const Mt=Qe.symbol,qt=Et.createSearch(void 0,Mt,void 0);z(Mt,Et,qt)}function an(Qe,Et,Mt){if(X3(Qe)&&oa(Qe.parent)){Et(Qe);return}if(Qe.kind!==80)return;Qe.parent.kind===304&&Da(Qe,Mt.checker,Et);const qt=Pi(Qe);if(qt){Et(qt);return}const Xt=Tn(Qe,gt=>!vf(gt.parent)&&!Qr(gt.parent)&&!Zy(gt.parent)),Pe=Xt.parent;if(JU(Pe)&&Pe.type===Xt&&Mt.markSeenContainingTypeReference(Pe))if(Nx(Pe))et(Pe.initializer);else if(Co(Pe)&&Pe.body){const gt=Pe.body;gt.kind===241?y2(gt,ii=>{ii.expression&&et(ii.expression)}):et(gt)}else Yy(Pe)&&et(Pe.expression);function et(gt){Ai(gt)&&Et(gt)}}function Pi(Qe){return at(Qe)||Iu(Qe)?Pi(Qe.parent):c5(Qe)?ur(Qe.parent.parent,dg(mr,xh)):void 0}function Ai(Qe){switch(Qe.kind){case 217:return Ai(Qe.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Zu(Qe,Et,Mt,qt){if(Qe===Et)return!0;const Xt=Zo(Qe)+","+Zo(Et),Pe=Mt.get(Xt);if(Pe!==void 0)return Pe;Mt.set(Xt,!1);const et=!!Qe.declarations&&Qe.declarations.some(gt=>uP(gt).some(ii=>{const me=qt.getTypeAtLocation(ii);return!!me&&!!me.symbol&&Zu(me.symbol,Et,Mt,qt)}));return Mt.set(Xt,et),et}function aa(Qe){let Et=fj(Qe,!1);if(!Et)return;let Mt=256;switch(Et.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:Mt&=Rx(Et),Et=Et.parent;break;default:return}const qt=Et.getSourceFile(),Xt=qi(Be(qt,"super",Et),Pe=>{if(Pe.kind!==108)return;const et=fj(Pe,!1);return et&&No(et)===!!Mt&&et.parent.symbol===Et.symbol?l3(Pe):void 0});return[{definition:{type:0,symbol:Et.symbol},references:Xt}]}function yr(Qe){return Qe.kind===80&&Qe.parent.kind===169&&Qe.parent.name===Qe}function Ba(Qe,Et,Mt){let qt=tf(Qe,!1,!1),Xt=256;switch(qt.kind){case 174:case 173:if(zp(qt)){Xt&=Rx(qt),qt=qt.parent;break}case 172:case 171:case 176:case 177:case 178:Xt&=Rx(qt),qt=qt.parent;break;case 312:if(wc(qt)||yr(Qe))return;case 262:case 218:break;default:return}const Pe=ju(qt.kind===312?Et:[qt.getSourceFile()],gt=>(Mt.throwIfCancellationRequested(),Be(gt,"this",la(qt)?gt:qt).filter(ii=>{if(!rw(ii))return!1;const me=tf(ii,!1,!1);if(!Zg(me))return!1;switch(qt.kind){case 218:case 262:return qt.symbol===me.symbol;case 174:case 173:return zp(qt)&&qt.symbol===me.symbol;case 231:case 263:case 210:return me.parent&&Zg(me.parent)&&qt.symbol===me.parent.symbol&&No(me)===!!Xt;case 312:return me.kind===312&&!wc(me)&&!yr(ii)}}))).map(gt=>l3(gt));return[{definition:{type:3,node:G(Pe,gt=>io(gt.node.parent)?gt.node:void 0)||Qe},references:Pe}]}function bt(Qe,Et,Mt,qt){const Xt=sX(Qe,Mt),Pe=ju(Et,et=>(qt.throwIfCancellationRequested(),qi(Be(et,Qe.text),gt=>{if(t0(gt)&>.text===Qe.text)if(Xt){const ii=sX(gt,Mt);if(Xt!==Mt.getStringType()&&Xt===ii)return l3(gt,2)}else return T7(gt)&&!hk(gt,et)?void 0:l3(gt,2)})));return[{definition:{type:4,node:Qe},references:Pe}]}function jn(Qe,Et,Mt,qt,Xt,Pe){const et=[];return Ln(Qe,Et,Mt,qt,!(qt&&Xt),(gt,ii,me)=>{me&&Dn(Qe)!==Dn(me)&&(me=void 0),et.push(me||ii||gt)},()=>!Pe),et}function Ln(Qe,Et,Mt,qt,Xt,Pe,et){const gt=_K(Et);if(gt){const Ei=Mt.getShorthandAssignmentValueSymbol(Et.parent);if(Ei&&qt)return Pe(Ei,void 0,void 0,3);const $i=Mt.getContextualType(gt.parent),Qi=$i&&G(_ee(gt,Mt,$i,!0),we=>mt(we,4));if(Qi)return Qi;const on=ve(Et,Mt),le=on&&Pe(on,void 0,void 0,4);if(le)return le;const te=Ei&&Pe(Ei,void 0,void 0,3);if(te)return te}const ii=p(Et,Qe,Mt);if(ii){const Ei=Pe(ii,void 0,void 0,1);if(Ei)return Ei}const me=mt(Qe);if(me)return me;if(Qe.valueDeclaration&&Mf(Qe.valueDeclaration,Qe.valueDeclaration.parent)){const Ei=Mt.getSymbolsOfParameterPropertyDeclaration(Po(Qe.valueDeclaration,io),Qe.name);return H.assert(Ei.length===2&&!!(Ei[0].flags&1)&&!!(Ei[1].flags&4)),mt(Qe.flags&1?Ei[1]:Ei[0])}const ni=Sl(Qe,281);if(!qt||ni&&!ni.propertyName){const Ei=ni&&Mt.getExportSpecifierLocalTargetSymbol(ni);if(Ei){const $i=Pe(Ei,void 0,void 0,1);if($i)return $i}}if(!qt){let Ei;return Xt?Ei=GH(Et.parent)?CX(Mt,Et.parent):void 0:Ei=Ot(Qe,Mt),Ei&&mt(Ei,4)}if(H.assert(qt),Xt){const Ei=Ot(Qe,Mt);return Ei&&mt(Ei,4)}function mt(Ei,$i){return G(Mt.getRootSymbols(Ei),Qi=>Pe(Ei,Qi,void 0,$i)||(Qi.parent&&Qi.parent.flags&96&&et(Qi)?Si(Qi.parent,Qi.name,Mt,on=>Pe(Ei,Qi,on,$i)):void 0))}function Ot(Ei,$i){const Qi=Sl(Ei,208);if(Qi&&GH(Qi))return CX($i,Qi)}}function Si(Qe,Et,Mt,qt){const Xt=new Map;return Pe(Qe);function Pe(et){if(!(!(et.flags&96)||!Ip(Xt,Zo(et))))return G(et.declarations,gt=>G(uP(gt),ii=>{const me=Mt.getTypeAtLocation(ii),ni=me&&me.symbol&&Mt.getPropertyOfType(me,Et);return me&&ni&&(G(Mt.getRootSymbols(ni),qt)||Pe(me.symbol))}))}}function Dn(Qe){return Qe.valueDeclaration?!!(Eh(Qe.valueDeclaration)&256):!1}function Cn(Qe,Et,Mt,qt){const{checker:Xt}=qt;return Ln(Et,Mt,Xt,!1,qt.options.use!==2||!!qt.options.providePrefixAndSuffixTextForRename,(Pe,et,gt,ii)=>(gt&&Dn(Et)!==Dn(gt)&&(gt=void 0),Qe.includes(gt||et||Pe)?{symbol:et&&!(Gl(Pe)&6)?et:Pe,kind:ii}:void 0),Pe=>!(Qe.parents&&!Qe.parents.some(et=>Zu(Pe.parent,et,qt.inheritsFromCache,Xt))))}function tu(Qe,Et){let Mt=Pk(Qe);const{declarations:qt}=Et;if(qt){let Xt;do{Xt=Mt;for(const Pe of qt){const et=TH(Pe);et&Mt&&(Mt|=et)}}while(Mt!==Xt)}return Mt}t.getIntersectingMeaningFromDeclarations=tu;function oa(Qe){return Qe.flags&33554432?!(xh(Qe)||jp(Qe)):G8(Qe)?Nx(Qe):$0(Qe)?!!Qe.body:mr(Qe)||QO(Qe)}function Da(Qe,Et,Mt){const qt=Et.getSymbolAtLocation(Qe),Xt=Et.getShorthandAssignmentValueSymbol(qt.valueDeclaration);if(Xt)for(const Pe of Xt.getDeclarations())TH(Pe)&1&&Mt(Pe)}t.getReferenceEntriesForShorthandPropertyAssignment=Da;function ua(Qe,Et,Mt){ao(Qe,qt=>{qt.kind===Et&&Mt(qt),ua(qt,Et,Mt)})}function Ta(Qe){return sle(iX(Qe).parent)}function Yo(Qe,Et,Mt){const qt=uw(Qe)?Qe.parent:void 0,Xt=qt&&Mt.getTypeAtLocation(qt.expression),Pe=qi(Xt&&(Xt.isUnionOrIntersection()?Xt.types:Xt.symbol===Et.parent?void 0:[Xt]),et=>et.symbol&&et.symbol.flags&96?et.symbol:void 0);return Pe.length===0?void 0:Pe}function bo(Qe){return Qe.use===2&&Qe.providePrefixAndSuffixTextForRename}})(f9||(f9={}))}}),Z0={};h(Z0,{Core:()=>f9,DefinitionKind:()=>VTe,EntryKind:()=>HTe,ExportKind:()=>zTe,FindReferencesUse:()=>KTe,ImportExport:()=>ITe,createImportTracker:()=>NTe,findModuleReferences:()=>V0t,findReferenceOrRenameEntries:()=>wUt,findReferencedSymbols:()=>AUt,getContextNode:()=>Vk,getExportInfo:()=>PTe,getImplementationsAtPosition:()=>BUt,getImportOrExportSymbol:()=>W0t,getReferenceEntriesForNode:()=>$0t,getTextSpanOfEntry:()=>OTe,isContextWithStartAndEndNode:()=>G0t,isDeclarationOfSymbol:()=>Y0t,isWriteAccessForReference:()=>jTe,nodeEntry:()=>l3,toContextSpan:()=>RTe,toHighlightSpan:()=>IUt,toReferenceEntry:()=>Z0t,toRenameLocation:()=>LUt});var Q0t=o({"src/services/_namespaces/ts.FindAllReferences.ts"(){kUt(),OUt()}});function X0t(t,u,s,d,f){var p;const E=tlt(u,s,t),v=E&&[ZUt(E.reference.fileName,E.fileName,E.unverified)]||_t;if(E!=null&&E.file)return v;const b=af(u,s);if(b===u)return;const{parent:B}=b,k=t.getTypeChecker();if(b.kind===164||at(b)&&gY(B)&&B.tagName===b)return VUt(k,b)||_t;if(PH(b)){const K=nX(b.parent,b.text);return K?[WTe(k,K,"label",b.text,void 0)]:void 0}if(b.kind===107){const K=Tn(b.parent,Y=>zl(Y)?"quit":$0(Y));return K?[Ree(k,K)]:void 0}if(b.kind===135){const K=Tn(b,oe=>$0(oe));return K&&Oe(K.modifiers,oe=>oe.kind===134)?[Ree(k,K)]:void 0}if(b.kind===127){const K=Tn(b,oe=>$0(oe));return K&&K.asteriskToken?[Ree(k,K)]:void 0}if(N7(b)&&zl(b.parent)){const K=b.parent.parent,{symbol:Y,failedAliasResolution:oe}=Ape(K,k,f),se=ti(K.members,zl),ge=Y?k.symbolToString(Y,K):"",ae=b.getSourceFile();return Vt(se,Ce=>{let{pos:ne}=iE(Ce);return ne=gs(ae.text,ne),WTe(k,Ce,"constructor","static {}",ge,!1,oe,{start:ne,length:6})})}let{symbol:T,failedAliasResolution:M}=Ape(b,k,f),z=b;if(d&&M){const K=L([b,...(T==null?void 0:T.declarations)||_t],oe=>Tn(oe,Mbe)),Y=K&&Z8(K);Y&&({symbol:T,failedAliasResolution:M}=Ape(Y,k,f),z=Y)}if(!T&&vX(z)){const K=(p=t.getResolvedModule(u,z.text,xg(u,z)))==null?void 0:p.resolvedModule;if(K)return[{name:z.text,fileName:K.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:d1(0,0),failedAliasResolution:M,isAmbient:e1(K.resolvedFileName),unverified:z!==b}]}if(!T)return Hi(v,$Ut(b,k));if(d&&ye(T.declarations,K=>K.getSourceFile().fileName===u.fileName))return;const j=QUt(k,b);if(j&&!(zh(b.parent)&&XUt(j))){const K=Ree(k,j,M);if(k.getRootSymbols(T).some(Y=>jUt(Y,j)))return[K];{const Y=QM(k,T,b,M,j)||_t;return b.kind===108?[K,...Y]:[...Y,K]}}if(b.parent.kind===304){const K=k.getShorthandAssignmentValueSymbol(T.valueDeclaration),Y=K!=null&&K.declarations?K.declarations.map(oe=>wK(oe,k,K,b,!1,M)):_t;return Hi(Y,elt(k,b))}if(Sc(b)&&js(B)&&Rp(B.parent)&&b===(B.propertyName||B.name)){const K=WH(b),Y=k.getTypeAtLocation(B.parent);return K===void 0?_t:ju(Y.isUnion()?Y.types:[Y],oe=>{const se=oe.getProperty(K);return se&&QM(k,se,b)})}const J=elt(k,b);return Hi(v,J.length?J:QM(k,T,b,M))}function jUt(t,u){var s;return t===u.symbol||t===u.symbol.parent||ld(u.parent)||!D2(u.parent)&&t===((s=ur(u.parent,Zg))==null?void 0:s.symbol)}function elt(t,u){const s=_K(u);if(s){const d=s&&t.getContextualType(s.parent);if(d)return ju(_ee(s,t,d,!1),f=>QM(t,f,u))}return _t}function VUt(t,u){const s=Tn(u,Zd);if(!(s&&s.name))return;const d=Tn(s,mr);if(!d)return;const f=Qg(d);if(!f)return;const p=l0(f.expression),E=Xd(p)?p.symbol:t.getSymbolAtLocation(p);if(!E)return;const v=Yr(V8(s.name)),b=Kc(s)?t.getPropertyOfType(t.getTypeOfSymbol(E),v):t.getPropertyOfType(t.getDeclaredTypeOfSymbol(E),v);if(b)return QM(t,b,u)}function tlt(t,u,s){var d,f;const p=XM(t.referencedFiles,u);if(p){const b=s.getSourceFileFromReference(t,p);return b&&{reference:p,fileName:b.fileName,file:b,unverified:!1}}const E=XM(t.typeReferenceDirectives,u);if(E){const b=(d=s.getResolvedTypeReferenceDirectives().get(E.fileName,E.resolutionMode||t.impliedNodeFormat))==null?void 0:d.resolvedTypeReferenceDirective,B=b&&s.getSourceFile(b.resolvedFileName);return B&&{reference:E,fileName:B.fileName,file:B,unverified:!1}}const v=XM(t.libReferenceDirectives,u);if(v){const b=s.getLibFileFromReference(v);return b&&{reference:v,fileName:b.fileName,file:b,unverified:!1}}if(t.imports.length||t.moduleAugmentations.length){const b=LM(t,u);let B;if(vX(b)&&Id(b.text)&&(B=s.getResolvedModule(t,b.text,xg(t,b)))){const k=(f=B.resolvedModule)==null?void 0:f.resolvedFileName,T=k||kx(lr(t.fileName),b.text);return{file:s.getSourceFile(T),fileName:T,reference:{pos:b.getStart(),end:b.getEnd(),fileName:b.text},unverified:!k}}}}function HUt(t,u){const s=u.symbol.name;if(!JTe.has(s))return!1;const d=t.resolveName(s,void 0,788968,!1);return!!d&&d===u.target.symbol}function ilt(t,u){if(!u.aliasSymbol)return!1;const s=u.aliasSymbol.name;if(!JTe.has(s))return!1;const d=t.resolveName(s,void 0,788968,!1);return!!d&&d===u.aliasSymbol}function KUt(t,u,s,d){var f,p;if(Gu(u)&4&&HUt(t,u))return BK(t.getTypeArguments(u)[0],t,s,d);if(ilt(t,u)&&u.aliasTypeArguments)return BK(u.aliasTypeArguments[0],t,s,d);if(Gu(u)&32&&u.target&&ilt(t,u.target)){const E=(p=(f=u.aliasSymbol)==null?void 0:f.declarations)==null?void 0:p[0];if(E&&jp(E)&&X4(E.type)&&E.type.typeArguments)return BK(t.getTypeAtLocation(E.type.typeArguments[0]),t,s,d)}return[]}function WUt(t,u,s){const d=af(u,s);if(d===u)return;if(W8(d.parent)&&d.parent.name===d)return BK(t.getTypeAtLocation(d.parent),t,d.parent,!1);const{symbol:f,failedAliasResolution:p}=Ape(d,t,!1);if(!f)return;const E=t.getTypeOfSymbolAtLocation(f,d),v=GUt(f,E,t),b=v&&BK(v,t,d,p),[B,k]=b&&b.length!==0?[v,b]:[E,BK(E,t,d,p)];return k.length?[...KUt(t,B,d,p),...k]:!(f.flags&111551)&&f.flags&788968?QM(t,X1(f,t),d,p):void 0}function BK(t,u,s,d){return ju(t.isUnion()&&!(t.flags&32)?t.types:[t],f=>f.symbol&&QM(u,f.symbol,s,d))}function GUt(t,u,s){if(u.symbol===t||t.valueDeclaration&&u.symbol&&na(t.valueDeclaration)&&t.valueDeclaration.initializer===u.symbol.valueDeclaration){const d=u.getCallSignatures();if(d.length===1)return s.getReturnTypeOfSignature(Pn(d))}}function JUt(t,u,s){const d=X0t(t,u,s);if(!d||d.length===0)return;const f=XM(u.referencedFiles,s)||XM(u.typeReferenceDirectives,s)||XM(u.libReferenceDirectives,s);if(f)return{definitions:d,textSpan:qx(f)};const p=af(u,s),E=d1(p.getStart(),p.getWidth());return{definitions:d,textSpan:E}}function $Ut(t,u){return qi(u.getIndexInfosAtLocation(t),s=>s.declaration&&Ree(u,s.declaration))}function Ape(t,u,s){const d=u.getSymbolAtLocation(t);let f=!1;if(d!=null&&d.declarations&&d.flags&2097152&&!s&&UUt(t,d.declarations[0])){const p=u.getAliasedSymbol(d);if(p.declarations)return{symbol:p};f=!0}return{symbol:d,failedAliasResolution:f}}function UUt(t,u){return t.kind!==80?!1:t.parent===u?!0:u.kind!==274}function qUt(t){if(!eP(t))return!1;const u=Tn(t,s=>ld(s)?!0:eP(s)?!1:"quit");return!!u&&Xl(u)===5}function QM(t,u,s,d,f){const p=ti(u.declarations,T=>T!==f),E=ti(p,T=>!qUt(T)),v=Oe(E)?E:p;return b()||B()||Vt(v,T=>wK(T,t,u,s,!1,d));function b(){if(u.flags&32&&!(u.flags&19)&&(wM(s)||s.kind===137)){const T=Le(p,mr)||H.fail("Expected declaration to have at least one class-like declaration");return k(T.members,!0)}}function B(){return Mhe(s)||Hhe(s)?k(p,!1):void 0}function k(T,M){if(!T)return;const z=T.filter(M?hc:Co),j=z.filter(J=>!!J.body);return z.length?j.length!==0?j.map(J=>wK(J,t,u,s)):[wK(Cr(z),t,u,s,!1,d)]:void 0}}function wK(t,u,s,d,f,p){const E=u.symbolToString(s),v=x5.getSymbolKind(u,s,d),b=s.parent?u.symbolToString(s.parent,d):"";return WTe(u,t,v,E,b,f,p)}function WTe(t,u,s,d,f,p,E,v){const b=u.getSourceFile();if(!v){const B=Za(u)||u;v=of(B,b)}return{fileName:b.fileName,textSpan:v,kind:s,name:d,containerKind:void 0,containerName:f,...Z0.toContextSpan(v,b,Z0.getContextNode(u)),isLocal:!GTe(t,u),isAmbient:!!(u.flags&33554432),unverified:p,failedAliasResolution:E}}function GTe(t,u){if(t.isDeclarationVisible(u))return!0;if(!u.parent)return!1;if(Nx(u.parent)&&u.parent.initializer===u)return GTe(t,u.parent);switch(u.kind){case 172:case 177:case 178:case 174:if(Rf(u,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return GTe(t,u.parent);default:return!1}}function Ree(t,u,s){return wK(u,t,u.symbol,u,!1,s)}function XM(t,u){return Le(t,s=>IO(s,u))}function ZUt(t,u,s){return{fileName:u,textSpan:Vc(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0,unverified:s}}function YUt(t){const u=Tn(t,d=>!uw(d)),s=u==null?void 0:u.parent;return s&&D2(s)&&pq(s)===u?s:void 0}function QUt(t,u){const s=YUt(u),d=s&&t.getResolvedSignature(s);return ur(d&&d.declaration,f=>Co(f)&&!u3(f))}function XUt(t){switch(t.kind){case 176:case 185:case 180:return!0;default:return!1}}var JTe,eqt=o({"src/services/goToDefinition.ts"(){rr(),JTe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),Cw={};h(Cw,{createDefinitionInfo:()=>wK,findReferenceInPosition:()=>XM,getDefinitionAndBoundSpan:()=>JUt,getDefinitionAtPosition:()=>X0t,getReferenceAtPosition:()=>tlt,getTypeDefinitionAtPosition:()=>WUt});var tqt=o({"src/services/_namespaces/ts.GoToDefinition.ts"(){eqt()}});function iqt(t){return t.includeInlayParameterNameHints==="literals"||t.includeInlayParameterNameHints==="all"}function nqt(t){return t.includeInlayParameterNameHints==="literals"}function nlt(t){return t.interactiveInlayHints===!0}function uqt(t){const{file:u,program:s,span:d,cancellationToken:f,preferences:p}=t,E=u.text,v=s.getCompilerOptions(),b=Hm(u,p),B=s.getTypeChecker(),k=[];return T(u),k;function T(Ae){if(!(!Ae||Ae.getFullWidth()===0)){switch(Ae.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:f.throwIfCancellationRequested()}if(wU(d,Ae.pos,Ae.getFullWidth())&&!(Qr(Ae)&&!c5(Ae)))return p.includeInlayVariableTypeHints&&na(Ae)||p.includeInlayPropertyDeclarationTypeHints&&ko(Ae)?oe(Ae):p.includeInlayEnumMemberValueHints&&J2(Ae)?K(Ae):iqt(p)&&(Mo(Ae)||j2(Ae))?se(Ae):(p.includeInlayFunctionParameterTypeHints&&$0(Ae)&&fZ(Ae)&&Se(Ae),p.includeInlayFunctionLikeReturnTypeHints&&M(Ae)&&ne(Ae)),ao(Ae,T)}}function M(Ae){return q0(Ae)||A0(Ae)||ed(Ae)||dc(Ae)||zm(Ae)}function z(Ae,De,Ke,Je){let ft=`${Je?"...":""}${Ae}`,Ye;nlt(p)?(Ye=[Ge(ft,De),{text:":"}],ft=""):ft+=":",k.push({text:ft,position:Ke,kind:"Parameter",whitespaceAfter:!0,displayParts:Ye})}function j(Ae,De){k.push({text:typeof Ae=="string"?`: ${Ae}`:"",displayParts:typeof Ae=="string"?void 0:[{text:": "},...Ae],position:De,kind:"Type",whitespaceBefore:!0})}function J(Ae,De){k.push({text:`= ${Ae}`,position:De,kind:"Enum",whitespaceBefore:!0})}function K(Ae){if(Ae.initializer)return;const De=B.getConstantValue(Ae);De!==void 0&&J(De.toString(),Ae.end)}function Y(Ae){return Ae.symbol&&Ae.symbol.flags&1536}function oe(Ae){if(!Ae.initializer||So(Ae.name)||na(Ae)&&!Be(Ae)||f1(Ae))return;const Ke=B.getTypeAtLocation(Ae);if(Y(Ke))return;const Je=fe(Ke);if(Je){const ft=typeof Je=="string"?Je:Je.map(Ve=>Ve.text).join("");if(p.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&QA(Ae.name.getText(),ft))return;j(Je,Ae.name.end)}}function se(Ae){const De=Ae.arguments;if(!De||!De.length)return;const Ke=[],Je=B.getResolvedSignatureForSignatureHelp(Ae,Ke);if(!Je||!Ke.length)return;let ft=0;for(const Ye of De){const Ve=l0(Ye);if(nqt(p)&&!Ce(Ve)){ft++;continue}let We=0;if(uE(Ve)){const Yt=B.getTypeAtLocation(Ve.expression);if(B.isTupleType(Yt)){const{elementFlags:Ie,fixedLength:st}=Yt.target;if(st===0)continue;const St=Ue(Ie,ei=>!(ei&1));(St<0?st:St)>0&&(We=St<0?st:St)}}const Gt=B.getParameterIdentifierInfoAtPosition(Je,ft);if(ft=ft+(We||1),Gt){const{parameter:Yt,parameterName:Ie,isRestParameter:st}=Gt;if(!(p.includeInlayParameterNameHintsWhenArgumentMatchesName||!ge(Ve,Ie))&&!st)continue;const It=Yr(Ie);if(ae(Ve,It))continue;z(It,Yt,Ye.getStart(),st)}}}function ge(Ae,De){return at(Ae)?Ae.text===De:Iu(Ae)?Ae.name.text===De:!1}function ae(Ae,De){if(!Lm(De,v.target,Yj(u.scriptKind)))return!1;const Ke=W_(E,Ae.pos);if(!(Ke!=null&&Ke.length))return!1;const Je=ult(De);return Oe(Ke,ft=>Je.test(E.substring(ft.pos,ft.end)))}function Ce(Ae){switch(Ae.kind){case 224:{const De=Ae.operand;return E2(De)||at(De)&&LP(De.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const De=Ae.escapedText;return xe(De)||LP(De)}}return E2(Ae)}function ne(Ae){if(q0(Ae)&&!a0(Ae,21,u)||U4(Ae)||!Ae.body)return;const Ke=B.getSignatureFromDeclaration(Ae);if(!Ke)return;const Je=B.getReturnTypeOfSignature(Ke);if(Y(Je))return;const ft=fe(Je);ft&&j(ft,ve(Ae))}function ve(Ae){const De=a0(Ae,22,u);return De?De.end:Ae.parameters.end}function Se(Ae){const De=B.getSignatureFromDeclaration(Ae);if(De)for(let Ke=0;Ke{const ft=B.typeToTypeNode(Ae,void 0,71286784);H.assertIsDefined(ft,"should always get typenode"),Ke.writeNode(4,ft,u,Je)})}function fe(Ae){if(!nlt(p))return pe(Ae);const Ke=B.typeToTypeNode(Ae,void 0,71286784);H.assertIsDefined(Ke,"should always get typenode");const Je=[];return ft(Ke),Je;function ft(We){if(!We)return;const Gt=Uo(We.kind);if(Gt){Je.push({text:Gt});return}if(E2(We)){Je.push({text:Ve(We)});return}switch(We.kind){case 80:const Yt=We,Ie=fu(Yt),st=Yt.symbol&&Yt.symbol.declarations&&Yt.symbol.declarations.length&&Za(Yt.symbol.declarations[0]);st?Je.push(Ge(Ie,st)):Je.push({text:Ie});break;case 166:const St=We;ft(St.left),Je.push({text:"."}),ft(St.right);break;case 182:const It=We;It.assertsModifier&&Je.push({text:"asserts "}),ft(It.parameterName),It.type&&(Je.push({text:" is "}),ft(It.type));break;case 183:const ei=We;ft(ei.typeName),ei.typeArguments&&(Je.push({text:"<"}),Ye(ei.typeArguments,", "),Je.push({text:">"}));break;case 168:const ht=We;ht.modifiers&&Ye(ht.modifiers," "),ft(ht.name),ht.constraint&&(Je.push({text:" extends "}),ft(ht.constraint)),ht.default&&(Je.push({text:" = "}),ft(ht.default));break;case 169:const Ut=We;Ut.modifiers&&Ye(Ut.modifiers," "),Ut.dotDotDotToken&&Je.push({text:"..."}),ft(Ut.name),Ut.questionToken&&Je.push({text:"?"}),Ut.type&&(Je.push({text:": "}),ft(Ut.type));break;case 185:const Ni=We;Je.push({text:"new "}),Ni.typeParameters&&(Je.push({text:"<"}),Ye(Ni.typeParameters,", "),Je.push({text:">"})),Je.push({text:"("}),Ye(Ni.parameters,", "),Je.push({text:")"}),Je.push({text:" => "}),ft(Ni.type);break;case 186:const ji=We;Je.push({text:"typeof "}),ft(ji.exprName),ji.typeArguments&&(Je.push({text:"<"}),Ye(ji.typeArguments,", "),Je.push({text:">"}));break;case 187:const xn=We;Je.push({text:"{"}),xn.members.length&&(Je.push({text:" "}),Ye(xn.members,"; "),Je.push({text:" "})),Je.push({text:"}"});break;case 188:ft(We.elementType),Je.push({text:"[]"});break;case 189:Je.push({text:"["}),Ye(We.elements,", "),Je.push({text:"]"});break;case 202:const Jn=We;Jn.dotDotDotToken&&Je.push({text:"..."}),ft(Jn.name),Jn.questionToken&&Je.push({text:"?"}),Je.push({text:": "}),ft(Jn.type);break;case 190:ft(We.type),Je.push({text:"?"});break;case 191:Je.push({text:"..."}),ft(We.type);break;case 192:Ye(We.types," | ");break;case 193:Ye(We.types," & ");break;case 194:const an=We;ft(an.checkType),Je.push({text:" extends "}),ft(an.extendsType),Je.push({text:" ? "}),ft(an.trueType),Je.push({text:" : "}),ft(an.falseType);break;case 195:Je.push({text:"infer "}),ft(We.typeParameter);break;case 196:Je.push({text:"("}),ft(We.type),Je.push({text:")"});break;case 198:const Pi=We;Je.push({text:`${Uo(Pi.operator)} `}),ft(Pi.type);break;case 199:const Ai=We;ft(Ai.objectType),Je.push({text:"["}),ft(Ai.indexType),Je.push({text:"]"});break;case 200:const Zu=We;Je.push({text:"{ "}),Zu.readonlyToken&&(Zu.readonlyToken.kind===40?Je.push({text:"+"}):Zu.readonlyToken.kind===41&&Je.push({text:"-"}),Je.push({text:"readonly "})),Je.push({text:"["}),ft(Zu.typeParameter),Zu.nameType&&(Je.push({text:" as "}),ft(Zu.nameType)),Je.push({text:"]"}),Zu.questionToken&&(Zu.questionToken.kind===40?Je.push({text:"+"}):Zu.questionToken.kind===41&&Je.push({text:"-"}),Je.push({text:"?"})),Je.push({text:": "}),Zu.type&&ft(Zu.type),Je.push({text:"; }"});break;case 201:ft(We.literal);break;case 184:const aa=We;aa.typeParameters&&(Je.push({text:"<"}),Ye(aa.typeParameters,", "),Je.push({text:">"})),Je.push({text:"("}),Ye(aa.parameters,", "),Je.push({text:")"}),Je.push({text:" => "}),ft(aa.type);break;case 205:const yr=We;yr.isTypeOf&&Je.push({text:"typeof "}),Je.push({text:"import("}),ft(yr.argument),yr.assertions&&(Je.push({text:", { assert: "}),Ye(yr.assertions.assertClause.elements,", "),Je.push({text:" }"})),Je.push({text:")"}),yr.qualifier&&(Je.push({text:"."}),ft(yr.qualifier)),yr.typeArguments&&(Je.push({text:"<"}),Ye(yr.typeArguments,", "),Je.push({text:">"}));break;case 171:const Ba=We;Ba.modifiers&&Ye(Ba.modifiers," "),ft(Ba.name),Ba.questionToken&&Je.push({text:"?"}),Ba.type&&(Je.push({text:": "}),ft(Ba.type));break;default:H.failBadSyntaxKind(We)}}function Ye(We,Gt){We.forEach((Yt,Ie)=>{Ie>0&&Je.push({text:Gt}),ft(Yt)})}function Ve(We){return us(We)?b===0?`'${Av(We.text,39)}'`:`"${Av(We.text,34)}"`:We.text}}function xe(Ae){return Ae==="undefined"}function Be(Ae){if((w2(Ae)||na(Ae)&&K8(Ae))&&Ae.initializer){const De=l0(Ae.initializer);return!(Ce(De)||j2(De)||ys(De)||Yy(De))}return!0}function Ge(Ae,De){const Ke=De.getSourceFile();return{text:Ae,span:of(De,Ke),file:Ke.fileName}}}var ult,rqt=o({"src/services/inlayHints.ts"(){rr(),ult=t=>new RegExp(`^\\s?/\\*\\*?\\s?${t}\\s?\\*\\/\\s?$`)}}),Spe={};h(Spe,{provideInlayHints:()=>uqt});var aqt=o({"src/services/_namespaces/ts.InlayHints.ts"(){rqt()}});function oqt(t,u){const s=[];return lfe(t,d=>{for(const f of lqt(d)){const p=Vp(f)&&f.tags&&Le(f.tags,v=>v.kind===334&&(v.tagName.escapedText==="inheritDoc"||v.tagName.escapedText==="inheritdoc"));if(f.comment===void 0&&!p||Vp(f)&&d.kind!==353&&d.kind!==345&&f.tags&&f.tags.some(v=>v.kind===353||v.kind===345)&&!f.tags.some(v=>v.kind===348||v.kind===349))continue;let E=f.comment?bw(f.comment,u):[];p&&p.comment&&(E=E.concat(bw(p.comment,u))),kt(s,E,sqt)||s.push(E)}}),Va(_e(s,[lw()]))}function sqt(t,u){return Zt(t,u,(s,d)=>s.kind===d.kind&&s.text===d.text)}function lqt(t){switch(t.kind){case 348:case 355:return[t];case 345:case 353:return[t,t.parent];case 330:if(NB(t.parent))return[t.parent.parent];default:return I0e(t)}}function cqt(t,u){const s=[];return lfe(t,d=>{const f=Cv(d);if(!(f.some(p=>p.kind===353||p.kind===345)&&!f.some(p=>p.kind===348||p.kind===349)))for(const p of f)s.push({name:p.tagName.text,text:rlt(p,u)}),WO(p)&&p.isNameFirst&&p.typeExpression&&K7(p.typeExpression.type)&&L(p.typeExpression.type.jsDocPropertyTags,E=>{s.push({name:E.tagName.text,text:rlt(E,u)})})}),s}function bw(t,u){return typeof t=="string"?[Km(t)]:ju(t,s=>s.kind===328?[Km(s.text)]:DSe(s,u))}function rlt(t,u){const{comment:s,kind:d}=t,f=dqt(d);switch(d){case 356:const v=t.typeExpression;return v?p(v):s===void 0?void 0:bw(s,u);case 336:return p(t.class);case 335:return p(t.class);case 352:const b=t,B=[];if(b.constraint&&B.push(Km(b.constraint.getText())),S(b.typeParameters)){S(B)&&B.push($l());const T=b.typeParameters[b.typeParameters.length-1];L(b.typeParameters,M=>{B.push(f(M.getText())),T!==M&&B.push(ih(28),$l())})}return s&&B.push($l(),...bw(s,u)),B;case 351:case 357:return p(t.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:k}=t;return k?p(k):s===void 0?void 0:bw(s,u);default:return s===void 0?void 0:bw(s,u)}function p(v){return E(v.getText())}function E(v){return s?v.match(/^https?$/)?[Km(v),...bw(s,u)]:[f(v),$l(),...bw(s,u)]:[Km(v)]}}function dqt(t){switch(t){case 348:return mSe;case 355:return pSe;case 352:return ESe;case 353:case 345:return gSe;default:return Km}}function hqt(){return olt||(olt=Vt(UTe,t=>({name:t,kind:"keyword",kindModifiers:"",sortText:h9.SortText.LocationPriority})))}function fqt(){return slt||(slt=Vt(UTe,t=>({name:`@${t}`,kind:"keyword",kindModifiers:"",sortText:h9.SortText.LocationPriority})))}function alt(t){return{name:t,kind:"",kindModifiers:"",displayParts:[Km(t)],documentation:_t,tags:void 0,codeActions:void 0}}function mqt(t){if(!at(t.name))return _t;const u=t.name.text,s=t.parent,d=s.parent;return Co(d)?qi(d.parameters,f=>{if(!at(f.name))return;const p=f.name.text;if(!(s.tags.some(E=>E!==t&&Eg(E)&&at(E.name)&&E.name.escapedText===p)||u!==void 0&&!Pa(p,u)))return{name:p,kind:"parameter",kindModifiers:"",sortText:h9.SortText.LocationPriority}}):[]}function pqt(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[Km(t)],documentation:_t,tags:void 0,codeActions:void 0}}function gqt(t,u,s,d){const f=Ca(u,s),p=Tn(f,Vp);if(p&&(p.comment!==void 0||S(p.tags)))return;const E=f.getStart(u);if(!p&&E0;if(J&&!oe){const se=K+t+z+" * ",ge=E===s?t+z:"";return{newText:se+t+J+z+Y+ge,caretOffset:se.length}}return{newText:K+Y,caretOffset:3}}function Eqt(t,u){const{text:s}=t,d=tp(u,t);let f=d;for(;f<=u&&qg(s.charCodeAt(f));f++);return s.slice(d,f)}function _qt(t,u,s,d){return t.map(({name:f,dotDotDotToken:p},E)=>{const v=f.kind===80?f.text:"param"+E;return`${s} * @param ${u?p?"{...any} ":"{any} ":""}${v}${d}`}).join("")}function Dqt(t,u){return`${t} * @returns${u}`}function xqt(t,u){return ybe(t,s=>$Te(s,u))}function $Te(t,u){switch(t.kind){case 262:case 218:case 174:case 176:case 173:case 219:const s=t;return{commentOwner:t,parameters:s.parameters,hasReturn:Oee(s,u)};case 303:return $Te(t.initializer,u);case 263:case 264:case 266:case 306:case 265:return{commentOwner:t};case 171:{const f=t;return f.type&&u3(f.type)?{commentOwner:t,parameters:f.type.parameters,hasReturn:Oee(f.type,u)}:{commentOwner:t}}case 243:{const p=t.declarationList.declarations,E=p.length===1&&p[0].initializer?vqt(p[0].initializer):void 0;return E?{commentOwner:t,parameters:E.parameters,hasReturn:Oee(E,u)}:{commentOwner:t}}case 312:return"quit";case 267:return t.parent.kind===267?void 0:{commentOwner:t};case 244:return $Te(t.expression,u);case 226:{const f=t;return Xl(f)===0?"quit":Co(f.right)?{commentOwner:t,parameters:f.right.parameters,hasReturn:Oee(f.right,u)}:{commentOwner:t}}case 172:const d=t.initializer;if(d&&(A0(d)||q0(d)))return{commentOwner:t,parameters:d.parameters,hasReturn:Oee(d,u)}}}function Oee(t,u){return!!(u!=null&&u.generateReturnInDocTemplate)&&(u3(t)||q0(t)&&Wt(t.body)||$0(t)&&t.body&&po(t.body)&&!!y2(t.body,s=>s))}function vqt(t){for(;t.kind===217;)t=t.expression;switch(t.kind){case 218:case 219:return t;case 231:return Le(t.members,hc)}}var UTe,olt,slt,llt,Cqt=o({"src/services/jsDoc.ts"(){rr(),UTe=["abstract","access","alias","argument","async","augments","author","borrows","callback","class","classdesc","constant","constructor","constructs","copyright","default","deprecated","description","emits","enum","event","example","exports","extends","external","field","file","fileoverview","fires","function","generator","global","hideconstructor","host","ignore","implements","inheritdoc","inner","instance","interface","kind","lends","license","link","linkcode","linkplain","listens","member","memberof","method","mixes","module","name","namespace","overload","override","package","param","private","prop","property","protected","public","readonly","requires","returns","satisfies","see","since","static","summary","template","this","throws","todo","tutorial","type","typedef","var","variation","version","virtual","yields"],llt=alt}}),Yv={};h(Yv,{getDocCommentTemplateAtPosition:()=>gqt,getJSDocParameterNameCompletionDetails:()=>pqt,getJSDocParameterNameCompletions:()=>mqt,getJSDocTagCompletionDetails:()=>alt,getJSDocTagCompletions:()=>fqt,getJSDocTagNameCompletionDetails:()=>llt,getJSDocTagNameCompletions:()=>hqt,getJsDocCommentsFromDeclarations:()=>oqt,getJsDocTagsFromDeclarations:()=>cqt});var bqt=o({"src/services/_namespaces/ts.JsDoc.ts"(){Cqt()}});function yqt(t,u,s,d,f,p){const E=iu.ChangeTracker.fromContext({host:s,formatContext:u,preferences:f}),v=p==="SortAndCombine"||p==="All",b=v,B=p==="RemoveUnused"||p==="All",k=Bpe(t,t.statements.filter(Sd)),T=Vqt(f,v?()=>hlt(k,f)===2:void 0),M=j=>(B&&(j=Fqt(j,t,d)),b&&(j=clt(j,T,t)),v&&(j=oc(j,(J,K)=>XTe(J,K,T))),j);k.forEach(j=>z(j,M)),p!=="RemoveUnused"&&Hqt(t).forEach(j=>z(j,J=>qTe(J,T)));for(const j of t.statements.filter(N1)){if(!j.body)continue;if(Bpe(t,j.body.statements.filter(Sd)).forEach(K=>z(K,M)),p!=="RemoveUnused"){const K=j.body.statements.filter(Gc);z(K,Y=>qTe(Y,T))}}return E.getChanges();function z(j,J){if(S(j)===0)return;Zn(j[0],1024);const K=b?vN(j,se=>jee(se.moduleSpecifier)):[j],Y=v?oc(K,(se,ge)=>YTe(se[0].moduleSpecifier,ge[0].moduleSpecifier,T)):K,oe=ju(Y,se=>jee(se[0].moduleSpecifier)||se[0].moduleSpecifier===void 0?J(se):se);if(oe.length===0)E.deleteNodes(t,j,{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Include},!0);else{const se={leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Include,suffix:E5(s,u.options)};E.replaceNodeWithNodes(t,j[0],oe,se);const ge=E.nodeHasTrailingComment(t,j[0],se);E.deleteNodes(t,j.slice(1),{trailingTriviaOption:iu.TrailingTriviaOption.Include},ge)}}}function Bpe(t,u){const s=YD(t.languageVersion,!1,t.languageVariant),d=[];let f=0;for(const p of u)d[f]&&kqt(t,p,s)&&f++,d[f]||(d[f]=[]),d[f].push(p);return d}function kqt(t,u,s){const d=u.getFullStart(),f=u.getStart();s.setText(t.text,d,f-d);let p=0;for(;s.getTokenStart()=2))return!0;return!1}function Fqt(t,u,s){const d=s.getTypeChecker(),f=s.getCompilerOptions(),p=d.getJsxNamespace(u),E=d.getJsxFragmentFactory(u),v=!!(u.transformFlags&2),b=[];for(const k of t){const{importClause:T,moduleSpecifier:M}=k;if(!T){b.push(k);continue}let{name:z,namedBindings:j}=T;if(z&&!B(z)&&(z=void 0),j)if(Jx(j))B(j.name)||(j=void 0);else{const J=j.elements.filter(K=>B(K.name));J.lengthus(d)&&d.text===s)}function jee(t){return t!==void 0&&t0(t)?t.text:void 0}function Sqt(t,u,s){const d=wpe(u);return clt(t,d,s)}function clt(t,u,s){if(t.length===0)return t;const{importWithoutClause:d,typeOnlyImports:f,regularImports:p}=Bqt(t),E=[];d&&E.push(d);for(const v of[p,f]){const b=v===f,{defaultImports:B,namespaceImports:k,namedImports:T}=v;if(!b&&B.length===1&&k.length===1&&T.length===0){const ge=B[0];E.push(TK(ge,ge.importClause.name,k[0].importClause.namedBindings));continue}const M=oc(k,(ge,ae)=>u(ge.importClause.namedBindings.name.text,ae.importClause.namedBindings.name.text));for(const ge of M)E.push(TK(ge,void 0,ge.importClause.namedBindings));const z=Ki(B),j=Ki(T),J=z??j;if(!J)continue;let K;const Y=[];if(B.length===1)K=B[0].importClause.name;else for(const ge of B)Y.push(q.createImportSpecifier(!1,q.createIdentifier("default"),ge.importClause.name));Y.push(...Iqt(T));const oe=q.createNodeArray(dlt(Y,u),j==null?void 0:j.importClause.namedBindings.elements.hasTrailingComma),se=oe.length===0?K?void 0:q.createNamedImports(_t):j?q.updateNamedImports(j.importClause.namedBindings,oe):q.createNamedImports(oe);s&&se&&(j!=null&&j.importClause.namedBindings)&&!hk(j.importClause.namedBindings,s)&&Zn(se,2),b&&K&&se?(E.push(TK(J,K,void 0)),E.push(TK(j??J,void 0,se))):E.push(TK(J,K,se))}return E}function Bqt(t){let u;const s={defaultImports:[],namespaceImports:[],namedImports:[]},d={defaultImports:[],namespaceImports:[],namedImports:[]};for(const f of t){if(f.importClause===void 0){u=u||f;continue}const p=f.importClause.isTypeOnly?s:d,{name:E,namedBindings:v}=f.importClause;E&&p.defaultImports.push(f),v&&(Jx(v)?p.namespaceImports.push(f):p.namedImports.push(f))}return{importWithoutClause:u,typeOnlyImports:s,regularImports:d}}function wqt(t,u){const s=wpe(u);return qTe(t,s)}function qTe(t,u){if(t.length===0)return t;const{exportWithoutClause:s,namedExports:d,typeOnlyExports:f}=E(t),p=[];s&&p.push(s);for(const v of[d,f]){if(v.length===0)continue;const b=[];b.push(...ju(v,T=>T.exportClause&&ep(T.exportClause)?T.exportClause.elements:_t));const B=dlt(b,u),k=v[0];p.push(q.updateExportDeclaration(k,k.modifiers,k.isTypeOnly,k.exportClause&&(ep(k.exportClause)?q.updateNamedExports(k.exportClause,B):q.updateNamespaceExport(k.exportClause,k.exportClause.name)),k.moduleSpecifier,k.attributes))}return p;function E(v){let b;const B=[],k=[];for(const T of v)T.exportClause===void 0?b=b||T:T.isTypeOnly?k.push(T):B.push(T);return{exportWithoutClause:b,namedExports:B,typeOnlyExports:k}}}function TK(t,u,s){return q.updateImportDeclaration(t,t.modifiers,q.updateImportClause(t.importClause,t.importClause.isTypeOnly,u,s),t.moduleSpecifier,t.attributes)}function dlt(t,u){return oc(t,(s,d)=>ZTe(s,d,u))}function ZTe(t,u,s){return d2(t.isTypeOnly,u.isTypeOnly)||s(t.name.text,u.name.text)}function Tqt(t,u,s){const d=wpe(!!s);return YTe(t,u,d)}function YTe(t,u,s){const d=t===void 0?void 0:jee(t),f=u===void 0?void 0:jee(u);return d2(d===void 0,f===void 0)||d2(Id(d),Id(f))||s(d,f)}function QTe(t){var u;switch(t.kind){case 271:return(u=ur(t.moduleReference,r_))==null?void 0:u.expression;case 272:return t.moduleSpecifier;case 243:return t.declarationList.declarations[0].initializer.arguments[0]}}function Lqt(t,u){return hlt(Bpe(t,t.statements.filter(Sd)),u)}function hlt(t,u){const s=yw(u,!1),d=yw(u,!0);let f=3,p=!1;for(const E of t){if(E.length>1){const b=cn(E,B=>{var k;return((k=ur(B.moduleSpecifier,us))==null?void 0:k.text)??""},s,d);if(b&&(f&=b,p=!0),!f)return f}const v=Le(E,b=>{var B,k;return((k=ur((B=b.importClause)==null?void 0:B.namedBindings,uD))==null?void 0:k.elements.length)>1});if(v){const b=eLe(v.importClause.namedBindings.elements,u);if(b&&(f&=b,p=!0),!f)return f}if(f!==3)return f}return p?0:f}function Nqt(t,u){const s=yw(u,!1),d=yw(u,!0);return cn(t,f=>jee(QTe(f))||"",s,d)}function Pqt(t,u,s){const d=Kl(t,u,il,(f,p)=>XTe(f,p,s));return d<0?~d:d}function Mqt(t,u,s){const d=Kl(t,u,il,(f,p)=>ZTe(f,p,s));return d<0?~d:d}function XTe(t,u,s){return YTe(QTe(t),QTe(u),s)||zqt(t,u)}function zqt(t,u){return nl(flt(t),flt(u))}function flt(t){var u;switch(t.kind){case 272:return t.importClause?t.importClause.isTypeOnly?1:((u=t.importClause.namedBindings)==null?void 0:u.kind)===274?2:t.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Iqt(t){return ju(t,u=>Vt(Rqt(u),s=>s.name&&s.propertyName&&s.name.escapedText===s.propertyName.escapedText?q.updateImportSpecifier(s,s.isTypeOnly,void 0,s.name):s))}function Rqt(t){var u;return(u=t.importClause)!=null&&u.namedBindings&&uD(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}function wpe(t){return t?qCe:dh}function Oqt(t,u){const s=jqt(u),d=u.organizeImportsCaseFirst??!1,f=u.organizeImportsNumericCollation??!1,p=u.organizeImportsAccentCollation??!0,E=t?p?"accent":"base":p?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:d||"false",sensitivity:E,numeric:f}).compare}function jqt(t){let u=t.organizeImportsLocale;u==="auto"&&(u=ZCe()),u===void 0&&(u="en");const s=Intl.Collator.supportedLocalesOf(u);return s.length?s[0]:"en"}function yw(t,u){return(t.organizeImportsCollation??"ordinal")==="unicode"?Oqt(u,t):wpe(u)}function Vqt(t,u){const s=typeof t.organizeImportsIgnoreCase=="boolean"?t.organizeImportsIgnoreCase:(u==null?void 0:u())??!1;return yw(t,s)}function Hqt(t){const u=[],s=t.statements,d=S(s);let f=0,p=0;for(;fBpe(t,E))}var mlt,eLe,Kqt=o({"src/services/organizeImports.ts"(){rr(),mlt=class{has([t,u]){return this._lastPreferences!==u||!this._cache?!1:this._cache.has(t)}get([t,u]){if(!(this._lastPreferences!==u||!this._cache))return this._cache.get(t)}set([t,u],s){this._lastPreferences!==u&&(this._lastPreferences=u,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(t,s)}},eLe=UCe((t,u)=>{if(!hi(t,(f,p)=>d2(f.isTypeOnly,p.isTypeOnly)))return 0;const s=yw(u,!1),d=yw(u,!0);return cn(t,f=>f.name.text,s,d)},new mlt)}}),Gp={};h(Gp,{coalesceExports:()=>wqt,coalesceImports:()=>Sqt,compareImportOrExportSpecifiers:()=>ZTe,compareImportsOrRequireStatements:()=>XTe,compareModuleSpecifiers:()=>Tqt,detectImportDeclarationSorting:()=>Nqt,detectImportSpecifierSorting:()=>eLe,detectSorting:()=>Lqt,getImportDeclarationInsertionIndex:()=>Pqt,getImportSpecifierInsertionIndex:()=>Mqt,getOrganizeImportsComparer:()=>yw,organizeImports:()=>yqt});var Wqt=o({"src/services/_namespaces/ts.OrganizeImports.ts"(){Kqt()}});function Gqt(t,u){const s=[];return Jqt(t,u,s),$qt(t,s),s.sort((d,f)=>d.textSpan.start-f.textSpan.start)}function Jqt(t,u,s){let d=40,f=0;const p=[...t.statements,t.endOfFileToken],E=p.length;for(;f1&&d.push(Vee(p,E,"comment"))}}function glt(t,u,s,d){w7(t)||tLe(t.pos,u,s,d)}function Vee(t,u,s){return m9(Vc(t,u),s)}function Uqt(t,u){switch(t.kind){case 241:if(Co(t.parent))return qqt(t.parent,t,u);switch(t.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return k(t.parent);case 258:const z=t.parent;if(z.tryBlock===t)return k(t.parent);if(z.finallyBlock===t){const j=a0(z,98,u);if(j)return k(j)}default:return m9(of(t,u),"code")}case 268:return k(t.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return k(t);case 189:return k(t,!1,!yB(t.parent),23);case 296:case 297:return T(t.statements);case 210:return B(t);case 209:return B(t,23);case 284:return p(t);case 288:return E(t);case 285:case 286:return v(t.attributes);case 228:case 15:return b(t);case 207:return k(t,!1,!js(t.parent),23);case 219:return f(t);case 213:return d(t);case 217:return M(t);case 275:case 279:case 300:return s(t)}function s(z){if(!z.elements.length)return;const j=a0(z,19,u),J=a0(z,20,u);if(!(!j||!J||q4(j.pos,J.pos,u)))return Tpe(j,J,z,u,!1,!1)}function d(z){if(!z.arguments.length)return;const j=a0(z,21,u),J=a0(z,22,u);if(!(!j||!J||q4(j.pos,J.pos,u)))return Tpe(j,J,z,u,!1,!0)}function f(z){if(po(z.body)||Cf(z.body)||q4(z.body.getFullStart(),z.body.getEnd(),u))return;const j=Vc(z.body.getFullStart(),z.body.getEnd());return m9(j,"code",of(z))}function p(z){const j=Vc(z.openingElement.getStart(u),z.closingElement.getEnd()),J=z.openingElement.tagName.getText(u),K="<"+J+">...";return m9(j,"code",j,!1,K)}function E(z){const j=Vc(z.openingFragment.getStart(u),z.closingFragment.getEnd());return m9(j,"code",j,!1,"<>...")}function v(z){if(z.properties.length!==0)return Vee(z.getStart(u),z.getEnd(),"code")}function b(z){if(!(z.kind===15&&z.text.length===0))return Vee(z.getStart(u),z.getEnd(),"code")}function B(z,j=19){return k(z,!1,!Dh(z.parent)&&!Mo(z.parent),j)}function k(z,j=!1,J=!0,K=19,Y=K===19?20:24){const oe=a0(t,K,u),se=a0(t,Y,u);return oe&&se&&Tpe(oe,se,z,u,j,J)}function T(z){return z.length?m9(qx(z),"code"):void 0}function M(z){if(q4(z.getStart(),z.getEnd(),u))return;const j=Vc(z.getStart(),z.getEnd());return m9(j,"code",of(z))}}function qqt(t,u,s){const d=Zqt(t,u,s),f=a0(u,20,s);return d&&f&&Tpe(d,f,t,s,t.kind!==219)}function Tpe(t,u,s,d,f=!1,p=!0){const E=Vc(p?t.getFullStart():t.getStart(d),u.getEnd());return m9(E,"code",of(s,d),f)}function m9(t,u,s=t,d=!1,f="..."){return{textSpan:t,kind:u,hintSpan:s,bannerText:f,autoCollapse:d}}function Zqt(t,u,s){if(Kye(t.parameters,s)){const d=a0(t,21,s);if(d)return d}return a0(u,19,s)}var Elt,Yqt=o({"src/services/outliningElementsCollector.ts"(){rr(),Elt=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Lpe={};h(Lpe,{collectElements:()=>Gqt});var Qqt=o({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Yqt()}});function Xqt(t,u,s,d){const f=lX(af(u,s));if(Dlt(f)){const p=eZt(f,t.getTypeChecker(),u,t,d);if(p)return p}return Npe(F.You_cannot_rename_this_element)}function eZt(t,u,s,d,f){const p=u.getSymbolAtLocation(t);if(!p){if(t0(t)){const M=sX(t,u);if(M&&(M.flags&128||M.flags&1048576&&ye(M.types,z=>!!(z.flags&128))))return iLe(t.text,t.text,"string","",t,s)}else if(Rhe(t)){const M=Hc(t);return iLe(M,M,"label","",t,s)}return}const{declarations:E}=p;if(!E||E.length===0)return;if(E.some(M=>tZt(d,M)))return Npe(F.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(at(t)&&t.escapedText==="default"&&p.parent&&p.parent.flags&1536)return;if(t0(t)&&Aj(t))return f.allowRenameOfImportPath?nZt(t,s,p):void 0;const v=iZt(s,p,u,f);if(v)return Npe(v);const b=x5.getSymbolKind(u,p,t),B=xSe(t)||Pm(t)&&t.parent.kind===167?$4(J4(t)):void 0,k=B||u.symbolToString(p),T=B||u.getFullyQualifiedName(p);return iLe(k,T,b,x5.getSymbolModifiers(u,p),t,s)}function tZt(t,u){const s=u.getSourceFile();return t.isSourceFileDefaultLibrary(s)&&Ml(s.fileName,".d.ts")}function iZt(t,u,s,d){if(!d.providePrefixAndSuffixTextForRename&&u.flags&2097152){const E=u.declarations&&Le(u.declarations,v=>bf(v));E&&!E.propertyName&&(u=s.getAliasedSymbol(u))}const{declarations:f}=u;if(!f)return;const p=_lt(t.path);if(p===void 0)return Oe(f,E=>XH(E.getSourceFile().path))?F.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const E of f){const v=_lt(E.getSourceFile().path);if(v){const b=Math.min(p.length,v.length);for(let B=0;B<=b;B++)if(dh(p[B],v[B])!==0)return F.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function _lt(t){const u=yd(t),s=u.lastIndexOf("node_modules");if(s!==-1)return u.slice(0,s+2)}function nZt(t,u,s){if(!Id(t.text))return Npe(F.You_cannot_rename_a_module_via_a_global_import);const d=s.declarations&&Le(s.declarations,la);if(!d)return;const f=sc(t.text,"/index")||sc(t.text,"/index.js")?void 0:XCe(_h(d.fileName),"/index"),p=f===void 0?d.fileName:f,E=f===void 0?"module":"directory",v=t.text.lastIndexOf("/")+1,b=d1(t.getStart(u)+1+v,t.text.length-v);return{canRename:!0,fileToRename:p,kind:E,displayName:p,fullDisplayName:p,kindModifiers:"",triggerSpan:b}}function iLe(t,u,s,d,f,p){return{canRename:!0,fileToRename:void 0,kind:s,displayName:t,fullDisplayName:u,kindModifiers:d,triggerSpan:uZt(f,p)}}function Npe(t){return{canRename:!1,localizedErrorMessage:to(t)}}function uZt(t,u){let s=t.getStart(u),d=t.getWidth(u);return t0(t)&&(s+=1,d-=2),d1(s,d)}function Dlt(t){switch(t.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return uX(t);default:return!1}}var rZt=o({"src/services/rename.ts"(){rr()}}),Hee={};h(Hee,{getRenameInfo:()=>Xqt,nodeIsEligibleForRename:()=>Dlt});var aZt=o({"src/services/_namespaces/ts.Rename.ts"(){rZt()}});function oZt(t,u,s,d,f){const p=t.getTypeChecker(),E=cX(u,s);if(!E)return;const v=!!d&&d.kind==="characterTyped";if(v&&(zk(u,s,E)||m5(u,s)))return;const b=!!d&&d.kind==="invoked",B=bZt(E,s,u,p,b);if(!B)return;f.throwIfCancellationRequested();const k=sZt(B,p,u,E,v);return f.throwIfCancellationRequested(),k?p.runWithCancellationToken(f,T=>k.kind===0?Flt(k.candidates,k.resolvedSignature,B,u,T):kZt(k.symbol,B,u,T)):gh(u)?cZt(B,t,f):void 0}function sZt({invocation:t,argumentCount:u},s,d,f,p){switch(t.kind){case 0:{if(p&&!lZt(f,t.node,d))return;const E=[],v=s.getResolvedSignatureForSignatureHelp(t.node,E,u);return E.length===0?void 0:{kind:0,candidates:E,resolvedSignature:v}}case 1:{const{called:E}=t;if(p&&!xlt(f,d,at(E)?E.parent:E))return;const v=Uhe(E,u,s);if(v.length!==0)return{kind:0,candidates:v,resolvedSignature:Pn(v)};const b=s.getSymbolAtLocation(E);return b&&{kind:1,symbol:b}}case 2:return{kind:0,candidates:[t.signature],resolvedSignature:t.signature};default:return H.assertNever(t)}}function lZt(t,u,s){if(!$E(u))return!1;const d=u.getChildren(s);switch(t.kind){case 21:return kt(d,t);case 28:{const f=oX(t);return!!f&&kt(d,f)}case 30:return xlt(t,s,u.expression);default:return!1}}function cZt(t,u,s){if(t.invocation.kind===2)return;const d=ylt(t.invocation),f=Iu(d)?d.name.text:void 0,p=u.getTypeChecker();return f===void 0?void 0:G(u.getSourceFiles(),E=>G(E.getNamedDeclarations().get(f),v=>{const b=v.symbol&&p.getTypeOfSymbolAtLocation(v.symbol,v),B=b&&b.getCallSignatures();if(B&&B.length)return p.runWithCancellationToken(s,k=>Flt(B,B[0],t,E,k,!0))}))}function xlt(t,u,s){const d=t.getFullStart();let f=t.parent;for(;f;){const p=td(d,u,f,!0);if(p)return Vm(s,p);f=f.parent}return H.fail("Could not find preceding token")}function dZt(t,u,s){const d=Clt(t,u,s);return!d||d.isTypeParameterList||d.invocation.kind!==0?void 0:{invocation:d.invocation.node,argumentCount:d.argumentCount,argumentIndex:d.argumentIndex}}function vlt(t,u,s){const d=hZt(t,s);if(!d)return;const{list:f,argumentIndex:p}=d,E=DZt(f,zk(s,u,t));p!==0&&H.assertLessThan(p,E);const v=vZt(f,s);return{list:f,argumentIndex:p,argumentCount:E,argumentsSpan:v}}function hZt(t,u){if(t.kind===30||t.kind===21)return{list:yZt(t.parent,t,u),argumentIndex:0};{const s=oX(t);return s&&{list:s,argumentIndex:_Zt(s,t)}}}function Clt(t,u,s){const{parent:d}=t;if($E(d)){const f=d,p=vlt(t,u,s);if(!p)return;const{list:E,argumentIndex:v,argumentCount:b,argumentsSpan:B}=p;return{isTypeParameterList:!!d.typeArguments&&d.typeArguments.pos===E.pos,invocation:{kind:0,node:f},argumentsSpan:B,argumentIndex:v,argumentCount:b}}else{if(T7(t)&&Dk(d))return jH(t,u,s)?uLe(d,0,s):void 0;if(vB(t)&&d.parent.kind===215){const f=d,p=f.parent;H.assert(f.kind===228);const E=jH(t,u,s)?0:1;return uLe(p,E,s)}else if(qP(d)&&Dk(d.parent.parent)){const f=d,p=d.parent.parent;if(pce(t)&&!jH(t,u,s))return;const E=f.parent.templateSpans.indexOf(f),v=xZt(E,t,u,s);return uLe(p,v,s)}else if(zh(d)){const f=d.attributes.pos,p=gs(s.text,d.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:d},argumentsSpan:d1(f,p-f),argumentIndex:0,argumentCount:1}}else{const f=qhe(t,s);if(f){const{called:p,nTypeArguments:E}=f,v={kind:1,called:p},b=Vc(p.getStart(s),t.end);return{isTypeParameterList:!0,invocation:v,argumentsSpan:b,argumentIndex:E,argumentCount:E+1}}return}}}function fZt(t,u,s,d){return mZt(t,u,s,d)||Clt(t,u,s)}function blt(t){return Xn(t.parent)?blt(t.parent):t}function nLe(t){return Xn(t.left)?nLe(t.left)+1:2}function mZt(t,u,s,d){const f=pZt(t);if(f===void 0)return;const p=gZt(f,s,u,d);if(p===void 0)return;const{contextualType:E,argumentIndex:v,argumentCount:b,argumentsSpan:B}=p,k=E.getNonNullableType(),T=k.symbol;if(T===void 0)return;const M=qu(k.getCallSignatures());return M===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:M,node:t,symbol:EZt(T)},argumentsSpan:B,argumentIndex:v,argumentCount:b}}function pZt(t){switch(t.kind){case 21:case 28:return t;default:return Tn(t.parent,u=>io(u)?!0:js(u)||Rp(u)||_k(u)?!1:"quit")}}function gZt(t,u,s,d){const{parent:f}=t;switch(f.kind){case 217:case 174:case 218:case 219:const p=vlt(t,s,u);if(!p)return;const{argumentIndex:E,argumentCount:v,argumentsSpan:b}=p,B=dc(f)?d.getContextualTypeForObjectLiteralElement(f):d.getContextualType(f);return B&&{contextualType:B,argumentIndex:E,argumentCount:v,argumentsSpan:b};case 226:{const k=blt(f),T=d.getContextualType(k),M=t.kind===21?0:nLe(f)-1,z=nLe(k);return T&&{contextualType:T,argumentIndex:M,argumentCount:z,argumentsSpan:of(f)}}default:return}}function EZt(t){return t.name==="__type"&&G(t.declarations,u=>{var s;return u3(u)?(s=ur(u.parent,Zg))==null?void 0:s.symbol:void 0})||t}function _Zt(t,u){let s=0;for(const d of t.getChildren()){if(d===u)break;d.kind!==28&&s++}return s}function DZt(t,u){const s=t.getChildren();let d=ui(s,f=>f.kind!==28);return!u&&s.length>0&&Cr(s).kind===28&&d++,d}function xZt(t,u,s,d){return H.assert(s>=u.getStart(),"Assumed 'position' could not occur before node."),X2e(u)?jH(u,s,d)?0:t+2:t+1}function uLe(t,u,s){const d=T7(t.template)?1:t.template.templateSpans.length+1;return u!==0&&H.assertLessThan(u,d),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:CZt(t,s),argumentIndex:u,argumentCount:d}}function vZt(t,u){const s=t.getFullStart(),d=gs(u.text,t.getEnd(),!1);return d1(s,d-s)}function CZt(t,u){const s=t.template,d=s.getStart();let f=s.getEnd();return s.kind===228&&Cr(s.templateSpans).literal.getFullWidth()===0&&(f=gs(u.text,f,!1)),d1(d,f-d)}function bZt(t,u,s,d,f){for(let p=t;!la(p)&&(f||!po(p));p=p.parent){H.assert(Vm(p.parent,p),"Not a subspan",()=>`Child: ${H.formatSyntaxKind(p.kind)}, parent: ${H.formatSyntaxKind(p.parent.kind)}`);const E=fZt(p,u,s,d);if(E)return E}}function yZt(t,u,s){const d=t.getChildren(s),f=d.indexOf(u);return H.assert(f>=0&&d.length>f+1),d[f+1]}function ylt(t){return t.kind===0?pq(t.node):t.called}function klt(t){return t.kind===0?t.node:t.kind===1?t.called:t.node}function Flt(t,u,{isTypeParameterList:s,argumentCount:d,argumentsSpan:f,invocation:p,argumentIndex:E},v,b,B){var k;const T=klt(p),M=p.kind===2?p.symbol:b.getSymbolAtLocation(ylt(p))||B&&((k=u.declaration)==null?void 0:k.symbol),z=M?RM(b,M,B?v:void 0,void 0):_t,j=Vt(t,se=>AZt(se,z,s,b,T,v));E!==0&&H.assertLessThan(E,d);let J=0,K=0;for(let se=0;se1)){let ae=0;for(const Ce of ge){if(Ce.isVariadic||Ce.parameters.length>=d){J=K+ae;break}ae++}}K+=ge.length}H.assert(J!==-1);const Y={items:Tr(j,il),applicableSpan:f,selectedItemIndex:J,argumentIndex:E,argumentCount:d},oe=Y.items[J];if(oe.isVariadic){const se=Ue(oe.parameters,ge=>!!ge.isRest);-1Alt(T,s,d,f,E)),b=t.getDocumentationComment(s),B=t.getJsDocTags(s);return{isVariadic:!1,prefixDisplayParts:[...p,ih(30)],suffixDisplayParts:[ih(32)],separatorDisplayParts:rLe,parameters:v,documentation:b,tags:B}}function AZt(t,u,s,d,f,p){const E=(s?BZt:wZt)(t,d,f,p);return Vt(E,({isVariadic:v,parameters:b,prefix:B,suffix:k})=>{const T=[...u,...B],M=[...k,...SZt(t,f,d)],z=t.getDocumentationComment(d),j=t.getJsDocTags();return{isVariadic:v,prefixDisplayParts:T,suffixDisplayParts:M,separatorDisplayParts:rLe,parameters:b,documentation:z,tags:j}})}function SZt(t,u,s){return Zx(d=>{d.writePunctuation(":"),d.writeSpace(" ");const f=s.getTypePredicateOfSignature(t);f?s.writeTypePredicate(f,u,void 0,d):s.writeType(s.getReturnTypeOfSignature(t),u,void 0,d)})}function BZt(t,u,s,d){const f=(t.target||t).typeParameters,p=X2(),E=(f||_t).map(b=>Alt(b,u,s,d,p)),v=t.thisParameter?[u.symbolToParameterDeclaration(t.thisParameter,s,LK)]:[];return u.getExpandedParameters(t).map(b=>{const B=q.createNodeArray([...v,...Vt(b,T=>u.symbolToParameterDeclaration(T,s,LK))]),k=Zx(T=>{p.writeList(2576,B,d,T)});return{isVariadic:!1,parameters:E,prefix:[ih(30)],suffix:[ih(32),...k]}})}function wZt(t,u,s,d){const f=X2(),p=Zx(b=>{if(t.typeParameters&&t.typeParameters.length){const B=q.createNodeArray(t.typeParameters.map(k=>u.typeParameterToDeclaration(k,s,LK)));f.writeList(53776,B,d,b)}}),E=u.getExpandedParameters(t),v=u.hasEffectiveRestParameter(t)?E.length===1?b=>!0:b=>{var B;return!!(b.length&&((B=ur(b[b.length-1],qE))==null?void 0:B.links.checkFlags)&32768)}:b=>!1;return E.map(b=>({isVariadic:v(b),parameters:b.map(B=>TZt(B,u,s,d,f)),prefix:[...p,ih(21)],suffix:[ih(22)]}))}function TZt(t,u,s,d,f){const p=Zx(b=>{const B=u.symbolToParameterDeclaration(t,s,LK);f.writeNode(4,B,d,b)}),E=u.isOptionalParameter(t.valueDeclaration),v=qE(t)&&!!(t.links.checkFlags&32768);return{name:t.name,documentation:t.getDocumentationComment(u),displayParts:p,isOptional:E,isRest:v}}function Alt(t,u,s,d,f){const p=Zx(E=>{const v=u.typeParameterToDeclaration(t,s,LK);f.writeNode(4,v,d,E)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(u),displayParts:p,isOptional:!1,isRest:!1}}var LK,rLe,LZt=o({"src/services/signatureHelp.ts"(){rr(),LK=70246400,rLe=[ih(28),$l()]}}),NK={};h(NK,{getArgumentInfoForCompletions:()=>dZt,getSignatureHelpItems:()=>oZt});var NZt=o({"src/services/_namespaces/ts.SignatureHelp.ts"(){LZt()}});function PZt(t,u){var s,d;let f={textSpan:Vc(u.getFullStart(),u.getEnd())},p=u;e:for(;;){const b=zZt(p);if(!b.length)break;for(let B=0;Bt)break e;const z=Aa(gv(u.text,T.end));if(z&&z.kind===2&&v(z.pos,z.end),MZt(u,t,T)){if(t0e(T)&&$0(p)&&!q4(T.getStart(u),T.getEnd(),u)&&E(T.getStart(u),T.getEnd()),po(T)||qP(T)||vB(T)||pce(T)||k&&vB(k)||Ad(T)&&Jl(p)||MB(T)&&Ad(p)||na(T)&&MB(p)&&b.length===1||kk(T)||Ov(T)||K7(T)){p=T;break}if(qP(p)&&M&&IU(M)){const Y=T.getFullStart()-2,oe=M.getStart()+1;E(Y,oe)}const j=MB(T)&&IZt(k)&&RZt(M)&&!q4(k.getStart(),M.getStart(),u);let J=j?k.getEnd():T.getStart();const K=j?M.getStart():OZt(u,T);if(lm(T)&&((s=T.jsDoc)!=null&&s.length)&&E(Pn(T.jsDoc).getStart(),K),MB(T)){const Y=T.getChildren()[0];Y&&lm(Y)&&((d=Y.jsDoc)!=null&&d.length)&&Y.getStart()!==T.pos&&(J=Math.min(J,Pn(Y.jsDoc).getStart()))}E(J,K),(us(T)||P8(T))&&E(J+1,K-1),p=T;break}if(B===b.length-1)break e}}return f;function E(b,B){if(b!==B){const k=Vc(b,B);(!f||!sw(k,f.textSpan)&&T2e(k,t))&&(f={textSpan:k,...f&&{parent:f}})}}function v(b,B){E(b,B);let k=b;for(;u.text.charCodeAt(k)===47;)k++;E(k,B)}}function MZt(t,u,s){return H.assert(s.pos<=u),uv===t.readonlyToken||v.kind===148||v===t.questionToken||v.kind===58),E=PK(p,({kind:v})=>v===23||v===168||v===24);return[s,MK(Ppe(E,({kind:v})=>v===59)),f]}if(Mm(t)){const s=PK(t.getChildren(),E=>E===t.name||kt(t.modifiers,E)),d=((u=s[0])==null?void 0:u.kind)===327?s[0]:void 0,f=d?s.slice(1):s,p=Ppe(f,({kind:E})=>E===59);return d?[d,MK(p)]:p}if(io(t)){const s=PK(t.getChildren(),f=>f===t.dotDotDotToken||f===t.name),d=PK(s,f=>f===s[0]||f===t.questionToken);return Ppe(d,({kind:f})=>f===64)}return js(t)?Ppe(t.getChildren(),({kind:s})=>s===64):t.getChildren()}function PK(t,u){const s=[];let d;for(const f of t)u(f)?(d=d||[],d.push(f)):(d&&(s.push(MK(d)),d=void 0),s.push(f));return d&&s.push(MK(d)),s}function Ppe(t,u,s=!0){if(t.length<2)return t;const d=Ue(t,u);if(d===-1)return t;const f=t.slice(0,d),p=t[d],E=Cr(t),v=s&&E.kind===27,b=t.slice(d+1,v?t.length-1:void 0),B=Dr([f.length?MK(f):void 0,p,b.length?MK(b):void 0]);return v?B.concat(E):B}function MK(t){return H.assertGreaterThanOrEqual(t.length,1),t_(a_.createSyntaxList(t),t[0].pos,Cr(t).end)}function IZt(t){const u=t&&t.kind;return u===19||u===23||u===21||u===286}function RZt(t){const u=t&&t.kind;return u===20||u===24||u===22||u===287}function OZt(t,u){switch(u.kind){case 348:case 345:case 355:case 353:case 350:return t.getLineEndOfPosition(u.getStart());default:return u.getEnd()}}var Slt,jZt=o({"src/services/smartSelection.ts"(){rr(),Slt=dg(Sd,E1)}}),Mpe={};h(Mpe,{getSmartSelectionRange:()=>PZt});var VZt=o({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){jZt()}});function Blt(t,u,s){const d=wlt(t,u,s);if(d!=="")return d;const f=xP(u);return f&32?Sl(u,231)?"local class":"class":f&384?"enum":f&524288?"type":f&64?"interface":f&262144?"type parameter":f&8?"enum member":f&2097152?"alias":f&1536?"module":d}function wlt(t,u,s){const d=t.getRootSymbols(u);if(d.length===1&&Pn(d).flags&8192&&t.getTypeOfSymbolAtLocation(u,s).getNonNullableType().getCallSignatures().length!==0)return"method";if(t.isUndefinedSymbol(u))return"var";if(t.isArgumentsSymbol(u))return"local var";if(s.kind===110&&Wt(s)||g7(s))return"parameter";const f=xP(u);if(f&3)return dfe(u)?"parameter":u.valueDeclaration&&K8(u.valueDeclaration)?"const":u.valueDeclaration&&cj(u.valueDeclaration)?"using":u.valueDeclaration&&lj(u.valueDeclaration)?"await using":L(u.declarations,rq)?"let":Nlt(u)?"local var":"var";if(f&16)return Nlt(u)?"local function":"function";if(f&32768)return"getter";if(f&65536)return"setter";if(f&8192)return"method";if(f&16384)return"constructor";if(f&131072)return"index";if(f&4){if(f&33554432&&u.links.checkFlags&6){const p=L(t.getRootSymbols(u),E=>{if(E.getFlags()&98311)return"property"});return p||(t.getTypeOfSymbolAtLocation(u,s).getCallSignatures().length?"method":"property")}return"property"}return""}function Tlt(t){if(t.declarations&&t.declarations.length){const[u,...s]=t.declarations,d=S(s)&&RX(u)&&Oe(s,p=>!RX(p))?65536:0,f=NM(u,d);if(f)return f.split(",")}return[]}function HZt(t,u){if(!u)return"";const s=new Set(Tlt(u));if(u.flags&2097152){const d=t.getAliasedSymbol(u);d!==u&&L(Tlt(d),f=>{s.add(f)})}return u.flags&16777216&&s.add("optional"),s.size>0?ga(s.values()).join(","):""}function Llt(t,u,s,d,f,p,E,v){var b;const B=[];let k=[],T=[];const M=xP(u);let z=E&1?wlt(t,u,f):"",j=!1;const J=f.kind===110&&Eq(f)||g7(f);let K,Y,oe=!1;if(f.kind===110&&!J)return{displayParts:[Hf(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(z!==""||M&32||M&2097152){if(z==="getter"||z==="setter"){const Be=Le(u.declarations,Ge=>Ge.name===f);if(Be)switch(Be.kind){case 177:z="getter";break;case 178:z="setter";break;case 172:z="accessor";break;default:H.assertNever(Be)}else z="property"}let fe;if(p??(p=J?t.getTypeAtLocation(f):t.getTypeOfSymbolAtLocation(u,f)),f.parent&&f.parent.kind===211){const Be=f.parent.name;(Be===f||Be&&Be.getFullWidth()===0)&&(f=f.parent)}let xe;if($E(f)?xe=f:(Phe(f)||wM(f)||f.parent&&(zh(f.parent)||Dk(f.parent))&&Co(u.valueDeclaration))&&(xe=f.parent),xe){fe=t.getResolvedSignature(xe);const Be=xe.kind===214||Mo(xe)&&xe.expression.kind===108,Ge=Be?p.getConstructSignatures():p.getCallSignatures();if(fe&&!kt(Ge,fe.target)&&!kt(Ge,fe)&&(fe=Ge.length?Ge[0]:void 0),fe){switch(Be&&M&32?(z="constructor",ve(p.symbol,z)):M&2097152?(z="alias",Se(z),B.push($l()),Be&&(fe.flags&4&&(B.push(Hf(128)),B.push($l())),B.push(Hf(105)),B.push($l())),ne(u)):ve(u,z),z){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":B.push(ih(59)),B.push($l()),!(Gu(p)&16)&&p.symbol&&(yn(B,RM(t,p.symbol,d,void 0,5)),B.push(lw())),Be&&(fe.flags&4&&(B.push(Hf(128)),B.push($l())),B.push(Hf(105)),B.push($l())),Ne(fe,Ge,262144);break;default:Ne(fe,Ge)}j=!0,oe=Ge.length>1}}else if(Hhe(f)&&!(M&98304)||f.kind===137&&f.parent.kind===176){const Be=f.parent;if(u.declarations&&Le(u.declarations,Ae=>Ae===(f.kind===137?Be.parent:Be))){const Ae=Be.kind===176?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures();t.isImplementationOfOverload(Be)?fe=Ae[0]:fe=t.getSignatureFromDeclaration(Be),Be.kind===176?(z="constructor",ve(p.symbol,z)):ve(Be.kind===179&&!(p.symbol.flags&2048||p.symbol.flags&4096)?p.symbol:u,z),fe&&Ne(fe,Ae),j=!0,oe=Ae.length>1}}}if(M&32&&!j&&!J&&(ae(),Sl(u,231)?Se("local class"):B.push(Hf(86)),B.push($l()),ne(u),pe(u,s)),M&64&&E&2&&(ge(),B.push(Hf(120)),B.push($l()),ne(u),pe(u,s)),M&524288&&E&2&&(ge(),B.push(Hf(156)),B.push($l()),ne(u),pe(u,s),B.push($l()),B.push(IM(64)),B.push($l()),yn(B,$H(t,f.parent&&q3(f.parent)?t.getTypeAtLocation(f.parent):t.getDeclaredTypeOfSymbol(u),d,8388608))),M&384&&(ge(),Oe(u.declarations,fe=>Iv(fe)&&b2(fe))&&(B.push(Hf(87)),B.push($l())),B.push(Hf(94)),B.push($l()),ne(u)),M&1536&&!J){ge();const fe=Sl(u,267),xe=fe&&fe.name&&fe.name.kind===80;B.push(Hf(xe?145:144)),B.push($l()),ne(u)}if(M&262144&&E&2)if(ge(),B.push(ih(21)),B.push(Km("type parameter")),B.push(ih(22)),B.push($l()),ne(u),u.parent)Ce(),ne(u.parent,d),pe(u.parent,d);else{const fe=Sl(u,168);if(fe===void 0)return H.fail();const xe=fe.parent;if(xe)if(Co(xe)){Ce();const Be=t.getSignatureFromDeclaration(xe);xe.kind===180?(B.push(Hf(105)),B.push($l())):xe.kind!==179&&xe.name&&ne(xe.symbol),yn(B,mfe(t,Be,s,32))}else jp(xe)&&(Ce(),B.push(Hf(156)),B.push($l()),ne(xe.symbol),pe(xe.symbol,s))}if(M&8){z="enum member",ve(u,"enum member");const fe=(b=u.declarations)==null?void 0:b[0];if((fe==null?void 0:fe.kind)===306){const xe=t.getConstantValue(fe);xe!==void 0&&(B.push($l()),B.push(IM(64)),B.push($l()),B.push(yf(Tbe(xe),typeof xe=="number"?7:8)))}}if(u.flags&2097152){if(ge(),!j||k.length===0&&T.length===0){const fe=t.getAliasedSymbol(u);if(fe!==u&&fe.declarations&&fe.declarations.length>0){const xe=fe.declarations[0],Be=Za(xe);if(Be&&!j){const Ge=tq(xe)&&Yu(xe,128),Ae=u.name!=="default"&&!Ge,De=Llt(t,fe,zn(xe),xe,Be,p,E,Ae?u:fe);B.push(...De.displayParts),B.push(lw()),K=De.documentation,Y=De.tags}else K=fe.getContextualDocumentationComment(xe,t),Y=fe.getJsDocTags(t)}}if(u.declarations)switch(u.declarations[0].kind){case 270:B.push(Hf(95)),B.push($l()),B.push(Hf(145));break;case 277:B.push(Hf(95)),B.push($l()),B.push(Hf(u.declarations[0].isExportEquals?64:90));break;case 281:B.push(Hf(95));break;default:B.push(Hf(102))}B.push($l()),ne(u),L(u.declarations,fe=>{if(fe.kind===271){const xe=fe;if(bv(xe))B.push($l()),B.push(IM(64)),B.push($l()),B.push(Hf(149)),B.push(ih(21)),B.push(yf(Hc(XN(xe)),8)),B.push(ih(22));else{const Be=t.getSymbolAtLocation(xe.moduleReference);Be&&(B.push($l()),B.push(IM(64)),B.push($l()),ne(Be,d))}return!0}})}if(!j)if(z!==""){if(p){if(J?(ge(),B.push(Hf(110))):ve(u,z),z==="property"||z==="accessor"||z==="getter"||z==="setter"||z==="JSX attribute"||M&3||z==="local var"||z==="index"||z==="using"||z==="await using"||J){if(B.push(ih(59)),B.push($l()),p.symbol&&p.symbol.flags&262144&&z!=="index"){const fe=Zx(xe=>{const Be=t.typeParameterToDeclaration(p,d,aLe);se().writeNode(4,Be,zn(Ua(d)),xe)});yn(B,fe)}else yn(B,$H(t,p,d));if(qE(u)&&u.links.target&&qE(u.links.target)&&u.links.target.links.tupleLabelDeclaration){const fe=u.links.target.links.tupleLabelDeclaration;H.assertNode(fe.name,at),B.push($l()),B.push(ih(21)),B.push(Km(fu(fe.name))),B.push(ih(22))}}else if(M&16||M&8192||M&16384||M&131072||M&98304||z==="method"){const fe=p.getNonNullableType().getCallSignatures();fe.length&&(Ne(fe[0],fe),oe=fe.length>1)}}}else z=Blt(t,u,f);if(k.length===0&&!oe&&(k=u.getContextualDocumentationComment(d,t)),k.length===0&&M&4&&u.parent&&u.declarations&&L(u.parent.declarations,fe=>fe.kind===312))for(const fe of u.declarations){if(!fe.parent||fe.parent.kind!==226)continue;const xe=t.getSymbolAtLocation(fe.parent.right);if(xe&&(k=xe.getDocumentationComment(t),T=xe.getJsDocTags(t),k.length>0))break}if(k.length===0&&at(f)&&u.valueDeclaration&&js(u.valueDeclaration)){const fe=u.valueDeclaration,xe=fe.parent,Be=fe.propertyName||fe.name;if(at(Be)&&Rp(xe)){const Ge=J4(Be),Ae=t.getTypeAtLocation(xe);k=G(Ae.isUnion()?Ae.types:[Ae],De=>{const Ke=De.getProperty(Ge);return Ke?Ke.getDocumentationComment(t):void 0})||_t}}return T.length===0&&!oe&&(T=u.getContextualJsDocTags(d,t)),k.length===0&&K&&(k=K),T.length===0&&Y&&(T=Y),{displayParts:B,documentation:k,symbolKind:z,tags:T.length===0?void 0:T};function se(){return X2()}function ge(){B.length&&B.push(lw()),ae()}function ae(){v&&(Se("alias"),B.push($l()))}function Ce(){B.push($l()),B.push(Hf(103)),B.push($l())}function ne(fe,xe){let Be;v&&fe===u&&(fe=v),z==="index"&&(Be=t.getIndexInfosOfIndexSymbol(fe));let Ge=[];fe.flags&131072&&Be?(fe.parent&&(Ge=RM(t,fe.parent)),Ge.push(ih(23)),Be.forEach((Ae,De)=>{Ge.push(...$H(t,Ae.keyType)),De!==Be.length-1&&(Ge.push($l()),Ge.push(ih(52)),Ge.push($l()))}),Ge.push(ih(24))):Ge=RM(t,fe,xe||s,void 0,7),yn(B,Ge),u.flags&16777216&&B.push(ih(58))}function ve(fe,xe){ge(),xe&&(Se(xe),fe&&!Oe(fe.declarations,Be=>q0(Be)||(A0(Be)||Xd(Be))&&!Be.name)&&(B.push($l()),ne(fe)))}function Se(fe){switch(fe){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":B.push(hfe(fe));return;default:B.push(ih(21)),B.push(hfe(fe)),B.push(ih(22));return}}function Ne(fe,xe,Be=0){yn(B,mfe(t,fe,d,Be|32)),xe.length>1&&(B.push($l()),B.push(ih(21)),B.push(IM(40)),B.push(yf((xe.length-1).toString(),7)),B.push($l()),B.push(Km(xe.length===2?"overload":"overloads")),B.push(ih(22))),k=fe.getDocumentationComment(t),T=fe.getJsDocTags(),xe.length>1&&k.length===0&&T.length===0&&(k=xe[0].getDocumentationComment(t),T=xe[0].getJsDocTags().filter(Ge=>Ge.name!=="deprecated"))}function pe(fe,xe){const Be=Zx(Ge=>{const Ae=t.symbolToTypeParameterDeclarations(fe,xe,aLe);se().writeList(53776,Ae,zn(Ua(xe)),Ge)});yn(B,Be)}}function KZt(t,u,s,d,f,p=Pk(f),E){return Llt(t,u,s,d,f,void 0,p,E)}function Nlt(t){return t.parent?!1:L(t.declarations,u=>{if(u.kind===218)return!0;if(u.kind!==260&&u.kind!==262)return!1;for(let s=u.parent;!k2(s);s=s.parent)if(s.kind===312||s.kind===268)return!1;return!0})}var aLe,WZt=o({"src/services/symbolDisplay.ts"(){rr(),aLe=70246400}}),x5={};h(x5,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>KZt,getSymbolKind:()=>Blt,getSymbolModifiers:()=>HZt});var GZt=o({"src/services/_namespaces/ts.SymbolDisplay.ts"(){WZt()}});function Plt(t){const u=t.__pos;return H.assert(typeof u=="number"),u}function oLe(t,u){H.assert(typeof u=="number"),t.__pos=u}function Mlt(t){const u=t.__end;return H.assert(typeof u=="number"),u}function sLe(t,u){H.assert(typeof u=="number"),t.__end=u}function zlt(t,u){return gs(t,u,!1,!0)}function JZt(t,u){let s=u;for(;s0?1:0;let M=Mx(dP(t,B)+T,t);return M=zlt(t.text,M),Mx(dP(t,M),t)}function lLe(t,u,s){const{end:d}=u,{trailingTriviaOption:f}=s;if(f===2){const p=gv(t.text,d);if(p){const E=dP(t,u.end);for(const v of p){if(v.kind===2||dP(t,v.pos)>E)break;if(dP(t,v.end)>E)return gs(t.text,v.end,!0,!0)}}}}function kw(t,u,s){var d;const{end:f}=u,{trailingTriviaOption:p}=s;if(p===0)return f;if(p===1){const b=Hi(gv(t.text,f),W_(t.text,f)),B=(d=b==null?void 0:b[b.length-1])==null?void 0:d.end;return B||f}const E=lLe(t,u,s);if(E)return E;const v=gs(t.text,f,!0);return v!==f&&(p===2||Z1(t.text.charCodeAt(v-1)))?v:f}function zpe(t,u){return!!u&&!!t.parent&&(u.kind===28||u.kind===27&&t.parent.kind===210)}function $Zt(t){return A0(t)||ed(t)}function UZt(t){if(t.kind!==219)return t;const u=t.parent.kind===172?t.parent:t.parent.parent;return u.jsDoc=t.jsDoc,u}function qZt(t,u){if(t.kind===u.kind)switch(t.kind){case 348:{const s=t,d=u;return at(s.name)&&at(d.name)&&s.name.escapedText===d.name.escapedText?q.createJSDocParameterTag(void 0,d.name,!1,d.typeExpression,d.isNameFirst,s.comment):void 0}case 349:return q.createJSDocReturnTag(void 0,u.typeExpression,t.comment);case 351:return q.createJSDocTypeTag(void 0,u.typeExpression,t.comment)}}function cLe(t,u){return gs(t.text,Hk(t,u,{leadingTriviaOption:1}),!1,!0)}function ZZt(t,u,s,d){const f=cLe(t,d);if(s===void 0||q4(kw(t,u,{}),f,t))return f;const p=td(d.getStart(t),t);if(zpe(u,p)){const E=td(u.getStart(t),t);if(zpe(s,E)){const v=gs(t.text,p.getEnd(),!0,!0);if(q4(E.getStart(t),p.getStart(t),t))return Z1(t.text.charCodeAt(v-1))?v-1:v;if(Z1(t.text.charCodeAt(v)))return v}}return f}function YZt(t,u){const s=a0(t,19,u),d=a0(t,20,u);return[s==null?void 0:s.end,d==null?void 0:d.end]}function Ipe(t){return ys(t)?t.properties:t.members}function dLe(t,u){for(let s=u.length-1;s>=0;s--){const{span:d,newText:f}=u[s];t=`${t.substring(0,d.start)}${f}${t.substring(Ec(d))}`}return t}function QZt(t){return gs(t,0)===t.length}function Rpe(t){const u=rn(t,Rpe,jlt,XZt,Rpe),s=sl(u)?u:Object.create(u);return t_(s,Plt(t),Mlt(t)),s}function XZt(t,u,s,d,f){const p=kn(t,u,s,d,f);if(!p)return p;H.assert(t);const E=p===t?q.createNodeArray(p.slice(0)):p;return t_(E,Plt(t),Mlt(t)),E}function Ilt(t){let u=0;const s=Vj(t),d=De=>{De&&oLe(De,u)},f=De=>{De&&sLe(De,u)},p=De=>{De&&oLe(De,u)},E=De=>{De&&sLe(De,u)},v=De=>{De&&oLe(De,u)},b=De=>{De&&sLe(De,u)};function B(De,Ke){if(Ke||!QZt(De)){u=s.getTextPos();let Je=0;for(;U3(De.charCodeAt(De.length-Je-1));)Je++;u-=Je}}function k(De){s.write(De),B(De,!1)}function T(De){s.writeComment(De)}function M(De){s.writeKeyword(De),B(De,!1)}function z(De){s.writeOperator(De),B(De,!1)}function j(De){s.writePunctuation(De),B(De,!1)}function J(De){s.writeTrailingSemicolon(De),B(De,!1)}function K(De){s.writeParameter(De),B(De,!1)}function Y(De){s.writeProperty(De),B(De,!1)}function oe(De){s.writeSpace(De),B(De,!1)}function se(De){s.writeStringLiteral(De),B(De,!1)}function ge(De,Ke){s.writeSymbol(De,Ke),B(De,!1)}function ae(De){s.writeLine(De)}function Ce(){s.increaseIndent()}function ne(){s.decreaseIndent()}function ve(){return s.getText()}function Se(De){s.rawWrite(De),B(De,!1)}function Ne(De){s.writeLiteral(De),B(De,!0)}function pe(){return s.getTextPos()}function fe(){return s.getLine()}function xe(){return s.getColumn()}function Be(){return s.getIndent()}function Ge(){return s.isAtStartOfLine()}function Ae(){s.clear(),u=0}return{onBeforeEmitNode:d,onAfterEmitNode:f,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:E,onBeforeEmitToken:v,onAfterEmitToken:b,write:k,writeComment:T,writeKeyword:M,writeOperator:z,writePunctuation:j,writeTrailingSemicolon:J,writeParameter:K,writeProperty:Y,writeSpace:oe,writeStringLiteral:se,writeSymbol:ge,writeLine:ae,increaseIndent:Ce,decreaseIndent:ne,getText:ve,rawWrite:Se,writeLiteral:Ne,getTextPos:pe,getLine:fe,getColumn:xe,getIndent:Be,isAtStartOfLine:Ge,hasTrailingComment:()=>s.hasTrailingComment(),hasTrailingWhitespace:()=>s.hasTrailingWhitespace(),clear:Ae}}function eYt(t){let u;for(const B of t.statements)if(Mp(B))u=B;else break;let s=0;const d=t.text;if(u)return s=u.end,b(),s;const f=SU(d);f!==void 0&&(s=f.length,b());const p=W_(d,s);if(!p)return s;let E,v;for(const B of p){if(B.kind===3){if(XU(d,B.pos)){E={range:B,pinnedOrTripleSlash:!0};continue}}else if(c0e(d,B.pos,B.end)){E={range:B,pinnedOrTripleSlash:!0};continue}if(E){if(E.pinnedOrTripleSlash)break;const k=t.getLineAndCharacterOfPosition(B.pos).line,T=t.getLineAndCharacterOfPosition(E.range.end).line;if(k>=T+2)break}if(t.statements.length){v===void 0&&(v=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);const k=t.getLineAndCharacterOfPosition(B.end).line;if(v(t[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",t))(hLe||{}),fLe=(t=>(t[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include",t))(fLe||{}),ez={leadingTriviaOption:0,trailingTriviaOption:0},Olt=class ZOe{constructor(u,s){this.newLineCharacter=u,this.formatContext=s,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(u){return new ZOe(E5(u.host,u.formatContext.options),u.formatContext)}static with(u,s){const d=ZOe.fromContext(u);return s(d),d.getChanges()}pushRaw(u,s){H.assertEqual(u.fileName,s.fileName);for(const d of s.textChanges)this.changes.push({kind:3,sourceFile:u,text:d.newText,range:pX(d.span)})}deleteRange(u,s){this.changes.push({kind:0,sourceFile:u,range:s})}delete(u,s){this.deletedNodes.push({sourceFile:u,node:s})}deleteNode(u,s,d={leadingTriviaOption:1}){this.deleteRange(u,zK(u,s,s,d))}deleteNodes(u,s,d={leadingTriviaOption:1},f){for(const p of s){const E=Hk(u,p,d,f),v=kw(u,p,d);this.deleteRange(u,{pos:E,end:v}),f=!!lLe(u,p,d)}}deleteModifier(u,s){this.deleteRange(u,{pos:s.getStart(u),end:gs(u.text,s.end,!0)})}deleteNodeRange(u,s,d,f={leadingTriviaOption:1}){const p=Hk(u,s,f),E=kw(u,d,f);this.deleteRange(u,{pos:p,end:E})}deleteNodeRangeExcludingEnd(u,s,d,f={leadingTriviaOption:1}){const p=Hk(u,s,f),E=d===void 0?u.text.length:Hk(u,d,f);this.deleteRange(u,{pos:p,end:E})}replaceRange(u,s,d,f={}){this.changes.push({kind:1,sourceFile:u,range:s,options:f,node:d})}replaceNode(u,s,d,f=ez){this.replaceRange(u,zK(u,s,s,f),d,f)}replaceNodeRange(u,s,d,f,p=ez){this.replaceRange(u,zK(u,s,d,p),f,p)}replaceRangeWithNodes(u,s,d,f={}){this.changes.push({kind:2,sourceFile:u,range:s,options:f,nodes:d})}replaceNodeWithNodes(u,s,d,f=ez){this.replaceRangeWithNodes(u,zK(u,s,s,f),d,f)}replaceNodeWithText(u,s,d){this.replaceRangeWithText(u,zK(u,s,s,ez),d)}replaceNodeRangeWithNodes(u,s,d,f,p=ez){this.replaceRangeWithNodes(u,zK(u,s,d,p),f,p)}nodeHasTrailingComment(u,s,d=ez){return!!lLe(u,s,d)}nextCommaToken(u,s){const d=ib(s,s.parent,u);return d&&d.kind===28?d:void 0}replacePropertyAssignment(u,s,d){const f=this.nextCommaToken(u,s)?"":","+this.newLineCharacter;this.replaceNode(u,s,d,{suffix:f})}insertNodeAt(u,s,d,f={}){this.replaceRange(u,s4(s),d,f)}insertNodesAt(u,s,d,f={}){this.replaceRangeWithNodes(u,s4(s),d,f)}insertNodeAtTopOfFile(u,s,d){this.insertAtTopOfFile(u,s,d)}insertNodesAtTopOfFile(u,s,d){this.insertAtTopOfFile(u,s,d)}insertAtTopOfFile(u,s,d){const f=eYt(u),p={prefix:f===0?void 0:this.newLineCharacter,suffix:(Z1(u.text.charCodeAt(f))?"":this.newLineCharacter)+(d?this.newLineCharacter:"")};Ha(s)?this.insertNodesAt(u,f,s,p):this.insertNodeAt(u,f,s,p)}insertNodesAtEndOfFile(u,s,d){this.insertAtEndOfFile(u,s,d)}insertAtEndOfFile(u,s,d){const f=u.end+1,p={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(d?this.newLineCharacter:"")};this.insertNodesAt(u,f,s,p)}insertStatementsInNewFile(u,s,d){this.newFileChanges||(this.newFileChanges=wm()),this.newFileChanges.add(u,{oldFile:d,statements:s})}insertFirstParameter(u,s,d){const f=Ki(s);f?this.insertNodeBefore(u,f,d):this.insertNodeAt(u,s.pos,d)}insertNodeBefore(u,s,d,f=!1,p={}){this.insertNodeAt(u,Hk(u,s,p),d,this.getOptionsForInsertNodeBefore(s,d,f))}insertNodesBefore(u,s,d,f=!1,p={}){this.insertNodesAt(u,Hk(u,s,p),d,this.getOptionsForInsertNodeBefore(s,Pn(d),f))}insertModifierAt(u,s,d,f={}){this.insertNodeAt(u,s,q.createToken(d),f)}insertModifierBefore(u,s,d){return this.insertModifierAt(u,d.getStart(u),s,{suffix:" "})}insertCommentBeforeLine(u,s,d,f){const p=Mx(s,u),E=bSe(u.text,p),v=Rlt(u,E),b=LM(u,v?E:d),B=u.text.slice(p,E),k=`${v?"":this.newLineCharacter}//${f}${this.newLineCharacter}${B}`;this.insertText(u,b.getStart(u),k)}insertJsdocCommentBefore(u,s,d){const f=s.getStart(u);if(s.jsDoc)for(const v of s.jsDoc)this.deleteRange(u,{pos:tp(v.getStart(u),u),end:kw(u,v,{})});const p=FX(u.text,f-1),E=u.text.slice(p,f);this.insertNodeAt(u,f,d,{suffix:this.newLineCharacter+E})}createJSDocText(u,s){const d=ju(s.jsDoc,p=>Ja(p.comment)?q.createJSDocText(p.comment):p.comment),f=Aa(s.jsDoc);return f&&q4(f.pos,f.end,u)&&S(d)===0?void 0:q.createNodeArray(_e(d,q.createJSDocText(` +`)))}replaceJSDocComment(u,s,d){this.insertJsdocCommentBefore(u,UZt(s),q.createJSDocComment(this.createJSDocText(u,s),q.createNodeArray(d)))}addJSDocTags(u,s,d){const f=Tr(s.jsDoc,E=>E.tags),p=d.filter(E=>!f.some((v,b)=>{const B=qZt(v,E);return B&&(f[b]=B),!!B}));this.replaceJSDocComment(u,s,[...f,...p])}filterJSDocTags(u,s,d){this.replaceJSDocComment(u,s,ti(Tr(s.jsDoc,f=>f.tags),d))}replaceRangeWithText(u,s,d){this.changes.push({kind:3,sourceFile:u,range:s,text:d})}insertText(u,s,d){this.replaceRangeWithText(u,s4(s),d)}tryInsertTypeAnnotation(u,s,d){let f;if(Co(s)){if(f=a0(s,22,u),!f){if(!q0(s))return!1;f=Pn(s.parameters)}}else f=(s.kind===260?s.exclamationToken:s.questionToken)??s.name;return this.insertNodeAt(u,f.end,d,{prefix:": "}),!0}tryInsertThisTypeAnnotation(u,s,d){const f=a0(s,21,u).getStart(u)+1,p=s.parameters.length?", ":"";this.insertNodeAt(u,f,d,{prefix:"this: ",suffix:p})}insertTypeParameters(u,s,d){const f=(a0(s,21,u)||Pn(s.parameters)).getStart(u);this.insertNodesAt(u,f,d,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(u,s,d){return ia(u)||Zd(u)?{suffix:d?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:na(u)?{suffix:", "}:io(u)?io(s)?{suffix:", "}:{}:us(u)&&Sd(u.parent)||uD(u)?{suffix:", "}:bf(u)?{suffix:","+(d?this.newLineCharacter:" ")}:H.failBadSyntaxKind(u)}insertNodeAtConstructorStart(u,s,d){const f=Ki(s.body.statements);!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[d,...s.body.statements]):this.insertNodeBefore(u,f,d)}insertNodeAtConstructorStartAfterSuperCall(u,s,d){const f=Le(s.body.statements,p=>Od(p)&&ik(p.expression));!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[...s.body.statements,d]):this.insertNodeAfter(u,f,d)}insertNodeAtConstructorEnd(u,s,d){const f=qu(s.body.statements);!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[...s.body.statements,d]):this.insertNodeAfter(u,f,d)}replaceConstructorBody(u,s,d){this.replaceNode(u,s.body,q.createBlock(d,!0))}insertNodeAtEndOfScope(u,s,d){const f=Hk(u,s.getLastToken(),{});this.insertNodeAt(u,f,d,{prefix:Z1(u.text.charCodeAt(s.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(u,s,d){this.insertNodeAtStartWorker(u,s,d)}insertNodeAtObjectStart(u,s,d){this.insertNodeAtStartWorker(u,s,d)}insertNodeAtStartWorker(u,s,d){const f=this.guessIndentationFromExistingMembers(u,s)??this.computeIndentationForNewMember(u,s);this.insertNodeAt(u,Ipe(s).pos,d,this.getInsertNodeAtStartInsertOptions(u,s,f))}guessIndentationFromExistingMembers(u,s){let d,f=s;for(const p of Ipe(s)){if(Gq(f,p,u))return;const E=p.getStart(u),v=dd.SmartIndenter.findFirstNonWhitespaceColumn(tp(E,u),E,u,this.formatContext.options);if(d===void 0)d=v;else if(v!==d)return;f=p}return d}computeIndentationForNewMember(u,s){const d=s.getStart(u);return dd.SmartIndenter.findFirstNonWhitespaceColumn(tp(d,u),d,u,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(u,s,d){const p=Ipe(s).length===0,E=Ip(this.classesWithNodesInsertedAtStart,$s(s),{node:s,sourceFile:u}),v=ys(s)&&(!W4(u)||!p),b=ys(s)&&W4(u)&&p&&!E;return{indentation:d,prefix:(b?",":"")+this.newLineCharacter,suffix:v?",":xh(s)&&p?";":""}}insertNodeAfterComma(u,s,d){const f=this.insertNodeAfterWorker(u,this.nextCommaToken(u,s)||s,d);this.insertNodeAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAfter(u,s,d){const f=this.insertNodeAfterWorker(u,s,d);this.insertNodeAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAtEndOfList(u,s,d){this.insertNodeAt(u,s.end,d,{prefix:", "})}insertNodesAfter(u,s,d){const f=this.insertNodeAfterWorker(u,s,Pn(d));this.insertNodesAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAfterWorker(u,s,d){return tYt(s,d)&&u.text.charCodeAt(s.end-1)!==59&&this.replaceRange(u,s4(s.end),q.createToken(27)),kw(u,s,{})}getInsertNodeAfterOptions(u,s){const d=this.getInsertNodeAfterOptionsWorker(s);return{...d,prefix:s.end===u.end&&ia(s)?d.prefix?` ${d.prefix}`:` -`:d.prefix}}getInsertNodeAfterOptionsWorker(u){switch(u.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return H.assert(na(u)||MU(u)),{suffix:this.newLineCharacter}}}insertName(u,s,d){if(H.assert(!s.name),s.kind===219){const f=r0(s,39,u),p=r0(s,21,u);p?(this.insertNodesAt(u,p.getStart(u),[q.createToken(100),q.createIdentifier(d)],{joiner:" "}),sD(this,u,f)):(this.insertText(u,Mn(s.parameters).getStart(u),`function ${d}(`),this.replaceRange(u,f,q.createToken(22))),s.body.kind!==241&&(this.insertNodesAt(u,s.body.getStart(u),[q.createToken(19),q.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(u,s.body.end,[q.createToken(27),q.createToken(20)],{joiner:" "}))}else{const f=r0(s,s.kind===218?100:86,u).end;this.insertNodeAt(u,f,q.createIdentifier(d),{prefix:" "})}}insertExportModifier(u,s){this.insertText(u,s.getStart(u),"export ")}insertImportSpecifierAtIndex(u,s,d,f){const p=d.elements[f-1];p?this.insertNodeInListAfter(u,p,s):this.insertNodeBefore(u,d.elements[0],s,!$4(d.elements[0].getStart(),d.parent.parent.getStart(),u))}insertNodeInListAfter(u,s,d,f=ld.SmartIndenter.getContainingList(s,u)){if(!f){H.fail("node is not a list element");return}const p=R8(f,s);if(p<0)return;const E=s.getEnd();if(p!==f.length-1){const v=ba(u,s.end);if(v&&Mpe(s,v)){const b=f[p+1],B=Nlt(u.text,b.getFullStart()),k=`${Jo(v.kind)}${u.text.substring(v.end,B)}`;this.insertNodesAt(u,B,[d],{suffix:k})}}else{const v=s.getStart(u),b=X4(v,u);let B,k=!1;if(f.length===1)B=28;else{const T=ed(s.pos,u);B=Mpe(s,T)?T.kind:28,k=X4(f[p-1].getStart(u),u)!==b}if(KZt(u.text,s.end)&&(k=!0),k){this.replaceRange(u,o4(E),q.createToken(B));const T=ld.SmartIndenter.findFirstNonWhitespaceColumn(b,v,u,this.formatContext.options);let M=ms(u.text,E,!0,!1);for(;M!==E&&q1(u.text.charCodeAt(M-1));)M--;this.replaceRange(u,o4(M),d,{indentation:T,prefix:this.newLineCharacter})}else this.replaceRange(u,o4(E),d,{prefix:`${Jo(B)} `})}}parenthesizeExpression(u,s){this.replaceRange(u,wle(s),q.createParenthesizedExpression(s))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:u,sourceFile:s})=>{const[d,f]=UZt(u,s);if(d!==void 0&&f!==void 0){const p=zpe(u).length===0,E=$4(d,f,s);p&&E&&d!==f-1&&this.deleteRange(s,o4(d,f-1)),E&&this.insertText(s,f-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const u=new Set;for(const{sourceFile:s,node:d}of this.deletedNodes)this.deletedNodes.some(f=>f.sourceFile===s&&$9e(f.node,d))||(Ha(d)?this.deleteRange(s,Tle(s,d)):hLe.deleteDeclaration(this,u,s,d));u.forEach(s=>{const d=s.getSourceFile(),f=ld.SmartIndenter.getContainingList(s,d);if(s!==Cr(f))return;const p=Ye(f,E=>!u.has(E),f.length-2);p!==-1&&this.deleteRange(d,{pos:f[p].end,end:sLe(d,f[p+1])})})}getChanges(u){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const s=Rpe.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,u);return this.newFileChanges&&this.newFileChanges.forEach((d,f)=>{s.push(Rpe.newFileChanges(f,d,this.newLineCharacter,this.formatContext))}),s}createNewFile(u,s,d){this.insertStatementsInNewFile(s,d,u)}},(t=>{function u(v,b,B,k){return Ui(xN(v,T=>T.sourceFile.path),T=>{const M=T[0].sourceFile,z=ac(T,(J,K)=>J.range.pos-K.range.pos||J.range.end-K.range.end);for(let J=0;J`${JSON.stringify(z[J].range)} and ${JSON.stringify(z[J+1].range)}`);const j=Ui(z,J=>{const K=Ux(J.range),Y=J.kind===1?In(Kl(J.node))??J.sourceFile:J.kind===2?In(Kl(J.nodes[0]))??J.sourceFile:J.sourceFile,oe=f(J,Y,M,b,B,k);if(!(K.length===oe.length&&NSe(Y.text,oe,K.start)))return OH(K,oe)});return j.length>0?{fileName:M.fileName,textChanges:j}:void 0})}t.getTextChangesFromChanges=u;function s(v,b,B,k){const T=d(uZ(v),b,B,k);return{fileName:v,textChanges:[OH(c1(0,0),T)],isNewFile:!0}}t.newFileChanges=s;function d(v,b,B,k){const T=Ku(b,j=>j.statements.map(J=>J===4?"":E(J,j.oldFile,B).text)).join(B),M=VV("any file name",T,{languageVersion:99,jsDocParsingMode:1},!0,v),z=ld.formatDocument(M,k);return lLe(T,z)+B}t.newFileChangesWorker=d;function f(v,b,B,k,T,M){var z;if(v.kind===0)return"";if(v.kind===3)return v.text;const{options:j={},range:{pos:J}}=v,K=se=>p(se,b,B,J,j,k,T,M),Y=v.kind===2?v.nodes.map(se=>E8(K(se),k)).join(((z=v.options)==null?void 0:z.joiner)||k):K(v.node),oe=j.indentation!==void 0||X4(J,b)===J?Y:Y.replace(/^\s+/,"");return(j.prefix||"")+oe+(!j.suffix||oc(oe,j.suffix)?"":j.suffix)}function p(v,b,B,k,{indentation:T,prefix:M,delta:z},j,J,K){const{node:Y,text:oe}=E(v,b,j);K&&K(Y,oe);const se=zX(J,b),ge=T!==void 0?T:ld.SmartIndenter.getIndentation(k,B,se,M===j||X4(k,b)===k);z===void 0&&(z=ld.SmartIndenter.shouldIndentChildNode(se,v)&&se.indentSize||0);const ae={text:oe,getLineAndCharacterOfPosition(ne){return o0(this,ne)}},Ce=ld.formatNodeGivenIndentation(Y,ae,b.languageVariant,ge,z,{...J,options:se});return lLe(oe,Ce)}function E(v,b,B){const k=Plt(B),T=QH(B);return Kv({newLine:T,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},k).writeNode(4,v,b,k),{text:k.getText(),node:Ipe(v)}}t.getNonformattedText=E})(Rpe||(Rpe={})),Ilt={...Eg,factory:hV(Eg.factory.flags|1,Eg.factory.baseFactory)},(t=>{function u(p,E,v,b){switch(b.kind){case 169:{const z=b.parent;G0(z)&&z.parameters.length===1&&!r0(z,21,v)?p.replaceNodeWithText(v,b,"()"):MK(p,E,v,b);break}case 272:case 271:const B=v.imports.length&&b===Mn(v.imports).parent||b===Le(v.statements,Xy);sD(p,v,b,{leadingTriviaOption:B?0:sm(b)?2:3});break;case 208:const k=b.parent;k.kind===207&&b!==Cr(k.elements)?sD(p,v,b):MK(p,E,v,b);break;case 260:f(p,E,v,b);break;case 168:MK(p,E,v,b);break;case 276:const M=b.parent;M.elements.length===1?d(p,v,M):MK(p,E,v,b);break;case 274:d(p,v,b);break;case 27:sD(p,v,b,{trailingTriviaOption:0});break;case 100:sD(p,v,b,{leadingTriviaOption:0});break;case 263:case 262:sD(p,v,b,{leadingTriviaOption:sm(b)?2:3});break;default:b.parent?i_(b.parent)&&b.parent.name===b?s(p,v,b.parent):No(b.parent)&&Ft(b.parent.arguments,b)?MK(p,E,v,b):sD(p,v,b):sD(p,v,b)}}t.deleteDeclaration=u;function s(p,E,v){if(!v.namedBindings)sD(p,E,v.parent);else{const b=v.name.getStart(E),B=ba(E,v.name.end);if(B&&B.kind===28){const k=ms(E.text,B.end,!1,!0);p.deleteRange(E,{pos:b,end:k})}else sD(p,E,v.name)}}function d(p,E,v){if(v.parent.name){const b=H.checkDefined(ba(E,v.pos-1));p.deleteRange(E,{pos:b.getStart(E),end:v.end})}else{const b=yv(v,272);sD(p,E,b)}}function f(p,E,v,b){const{parent:B}=b;if(B.kind===299){p.deleteNodeRange(v,r0(B,21,v),r0(B,22,v));return}if(B.declarations.length!==1){MK(p,E,v,b);return}const k=B.parent;switch(k.kind){case 250:case 249:p.replaceNode(v,b,q.createObjectLiteralExpression());break;case 248:sD(p,v,B);break;case 243:sD(p,v,k,{leadingTriviaOption:sm(k)?2:3});break;default:H.assertNever(k)}}})(hLe||(hLe={}))}}),nu={};h(nu,{ChangeTracker:()=>zlt,LeadingTriviaOption:()=>cLe,TrailingTriviaOption:()=>dLe,applyChanges:()=>lLe,assignPositionsToNode:()=>Ipe,createWriter:()=>Plt,deleteNode:()=>sD,isThisTypeAnnotatable:()=>WZt,isValidLocationToAddComment:()=>Mlt});var eYt=o({"src/services/_namespaces/ts.textChanges.ts"(){XZt()}}),fLe,mLe,tYt=o({"src/services/formatting/formattingContext.ts"(){or(),fLe=(t=>(t[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",t))(fLe||{}),mLe=class{constructor(t,u,s){this.sourceFile=t,this.formattingRequestKind=u,this.options=s}updateContext(t,u,s,d,f){this.currentTokenSpan=H.checkDefined(t),this.currentTokenParent=H.checkDefined(u),this.nextTokenSpan=H.checkDefined(s),this.nextTokenParent=H.checkDefined(d),this.contextNode=H.checkDefined(f),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const t=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,u=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=t===u}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(t){const u=this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line,s=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line;return u===s}BlockIsOnOneLine(t){const u=r0(t,19,this.sourceFile),s=r0(t,20,this.sourceFile);if(u&&s){const d=this.sourceFile.getLineAndCharacterOfPosition(u.getEnd()).line,f=this.sourceFile.getLineAndCharacterOfPosition(s.getStart(this.sourceFile)).line;return d===f}return!1}}}});function pLe(t,u,s,d,f){const p=u===1?Olt:Rlt;p.setText(t),p.resetTokenState(s);let E=!0,v,b,B,k,T;const M=f({advance:z,readTokenInfo:ae,readEOFTokenRange:ne,isOnToken:ve,isOnEOF:Se,getCurrentLeadingTrivia:()=>v,lastTrailingTriviaWasNewLine:()=>E,skipToEndOf:pe,skipToStartOf:fe,getTokenFullStart:()=>(T==null?void 0:T.token.pos)??p.getTokenStart(),getStartPos:()=>(T==null?void 0:T.token.pos)??p.getTokenStart()});return T=void 0,p.setText(void 0),M;function z(){T=void 0,p.getTokenFullStart()!==s?E=!!b&&Cr(b).kind===4:p.scan(),v=void 0,b=void 0;let Be=p.getTokenFullStart();for(;Be(t[t.None=0]="None",t[t.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",t[t.StopProcessingTokenActions=2]="StopProcessingTokenActions",t[t.InsertSpace=4]="InsertSpace",t[t.InsertNewLine=8]="InsertNewLine",t[t.DeleteSpace=16]="DeleteSpace",t[t.DeleteToken=32]="DeleteToken",t[t.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",t[t.StopAction=3]="StopAction",t[t.ModifySpaceAction=28]="ModifySpaceAction",t[t.ModifyTokenAction=96]="ModifyTokenAction",t))(gLe||{}),ELe=(t=>(t[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines",t))(ELe||{})}});function jlt(){const t=[];for(let Ce=0;Ce<=165;Ce++)Ce!==1&&t.push(Ce);function u(...Ce){return{tokens:t.filter(ne=>!Ce.some(ve=>ve===ne)),isSpecific:!1}}const s={tokens:t,isSpecific:!1},d=ez([...t,3]),f=ez([...t,1]),p=Hlt(83,165),E=Hlt(30,79),v=[103,104,165,130,142,152],b=[46,47,55,54],B=[9,10,80,21,23,19,110,105],k=[80,21,110,105],T=[80,22,24,105],M=[80,21,110,105],z=[80,22,24,105],j=[2,3],J=[80,...RX],K=d,Y=ez([80,3,86,95,102]),oe=ez([22,3,92,113,98,93]),se=[qu("IgnoreBeforeComment",s,j,Oee,1),qu("IgnoreAfterLineComment",2,s,Oee,1),qu("NotSpaceBeforeColon",s,59,[ea,jee,Glt],16),qu("SpaceAfterColon",59,s,[ea,jee,xYt],4),qu("NoSpaceBeforeQuestionMark",s,58,[ea,jee,Glt],16),qu("SpaceAfterQuestionMarkInConditionalOperator",58,s,[ea,oYt],4),qu("NoSpaceAfterQuestionMark",58,s,[ea,aYt],16),qu("NoSpaceBeforeDot",s,[25,29],[ea,NYt],16),qu("NoSpaceAfterDot",[25,29],s,[ea],16),qu("NoSpaceBetweenImportParenInImportType",102,21,[ea,_Yt],16),qu("NoSpaceAfterUnaryPrefixOperator",b,B,[ea,jee],16),qu("NoSpaceAfterUnaryPreincrementOperator",46,k,[ea],16),qu("NoSpaceAfterUnaryPredecrementOperator",47,M,[ea],16),qu("NoSpaceBeforeUnaryPostincrementOperator",T,46,[ea,oct],16),qu("NoSpaceBeforeUnaryPostdecrementOperator",z,47,[ea,oct],16),qu("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[ea,Yx],4),qu("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[ea,Yx],4),qu("SpaceAfterAddWhenFollowedByPreincrement",40,46,[ea,Yx],4),qu("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[ea,Yx],4),qu("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[ea,Yx],4),qu("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[ea,Yx],4),qu("NoSpaceAfterCloseBrace",20,[28,27],[ea],16),qu("NewLineBeforeCloseBraceInBlockContext",d,20,[$lt],8),qu("SpaceAfterCloseBrace",20,u(22),[ea,cYt],4),qu("SpaceBetweenCloseBraceAndElse",20,93,[ea],4),qu("SpaceBetweenCloseBraceAndWhile",20,117,[ea],4),qu("NoSpaceBetweenEmptyBraceBrackets",19,20,[ea,Xlt],16),qu("SpaceAfterConditionalClosingParen",22,23,[Vee],4),qu("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Zlt],16),qu("SpaceAfterStarInGeneratorDeclaration",42,80,[Zlt],4),qu("SpaceAfterFunctionInFuncDecl",100,s,[Vk],4),qu("NewLineAfterOpenBraceInBlockContext",19,s,[$lt],8),qu("SpaceAfterGetSetInMember",[139,153],80,[Vk],4),qu("NoSpaceBetweenYieldKeywordAndStar",127,42,[ea,act],16),qu("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],s,[ea,act],4),qu("NoSpaceBetweenReturnAndSemicolon",107,27,[ea],16),qu("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],s,[ea],4),qu("SpaceAfterLetConstInVariableDeclaration",[121,87],s,[ea,bYt],4),qu("NoSpaceBeforeOpenParenInFuncCall",s,21,[ea,fYt,mYt],16),qu("SpaceBeforeBinaryKeywordOperator",s,v,[ea,Yx],4),qu("SpaceAfterBinaryKeywordOperator",v,s,[ea,Yx],4),qu("SpaceAfterVoidOperator",116,s,[ea,SYt],4),qu("SpaceBetweenAsyncAndOpenParen",134,21,[EYt,ea],4),qu("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[ea],4),qu("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[ea],16),qu("SpaceBeforeJsxAttribute",s,80,[DYt,ea],4),qu("SpaceBeforeSlashInJsxOpeningElement",s,44,[nct,ea],4),qu("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[nct,ea],16),qu("NoSpaceBeforeEqualInJsxAttribute",s,64,[tct,ea],16),qu("NoSpaceAfterEqualInJsxAttribute",64,s,[tct,ea],16),qu("NoSpaceBeforeJsxNamespaceColon",80,59,[ict],16),qu("NoSpaceAfterJsxNamespaceColon",59,80,[ict],16),qu("NoSpaceAfterModuleImport",[144,149],21,[ea],16),qu("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],s,[ea],4),qu("SpaceBeforeCertainTypeScriptKeywords",s,[96,119,161],[ea],4),qu("SpaceAfterModuleName",11,19,[yYt],4),qu("SpaceBeforeArrow",s,39,[ea],4),qu("SpaceAfterArrow",39,s,[ea],4),qu("NoSpaceAfterEllipsis",26,80,[ea],16),qu("NoSpaceAfterOptionalParameters",58,[22,28],[ea,jee],16),qu("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[ea,kYt],16),qu("NoSpaceBeforeOpenAngularBracket",J,30,[ea,Hee],16),qu("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[ea,Hee],16),qu("NoSpaceAfterOpenAngularBracket",30,s,[ea,Hee],16),qu("NoSpaceBeforeCloseAngularBracket",s,32,[ea,Hee],16),qu("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[ea,Hee,lYt,AYt],16),qu("SpaceBeforeAt",[22,80],60,[ea],4),qu("NoSpaceAfterAt",60,s,[ea],16),qu("SpaceAfterDecorator",s,[128,80,95,90,86,126,125,123,124,139,153,23,42],[CYt],4),qu("NoSpaceBeforeNonNullAssertionOperator",s,54,[ea,BYt],16),qu("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[ea,FYt],16),qu("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[ea],4)],ge=[qu("SpaceAfterConstructor",137,21,[Km("insertSpaceAfterConstructor"),ea],4),qu("NoSpaceAfterConstructor",137,21,[cE("insertSpaceAfterConstructor"),ea],16),qu("SpaceAfterComma",28,s,[Km("insertSpaceAfterCommaDelimiter"),ea,yLe,pYt,gYt],4),qu("NoSpaceAfterComma",28,s,[cE("insertSpaceAfterCommaDelimiter"),ea,yLe],16),qu("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Km("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Vk],4),qu("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[cE("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Vk],16),qu("SpaceAfterKeywordInControl",p,21,[Km("insertSpaceAfterKeywordsInControlFlowStatements"),Vee],4),qu("NoSpaceAfterKeywordInControl",p,21,[cE("insertSpaceAfterKeywordsInControlFlowStatements"),Vee],16),qu("SpaceAfterOpenParen",21,s,[Km("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],4),qu("SpaceBeforeCloseParen",s,22,[Km("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],4),qu("SpaceBetweenOpenParens",21,21,[Km("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],4),qu("NoSpaceBetweenParens",21,22,[ea],16),qu("NoSpaceAfterOpenParen",21,s,[cE("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],16),qu("NoSpaceBeforeCloseParen",s,22,[cE("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],16),qu("SpaceAfterOpenBracket",23,s,[Km("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ea],4),qu("SpaceBeforeCloseBracket",s,24,[Km("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ea],4),qu("NoSpaceBetweenBrackets",23,24,[ea],16),qu("NoSpaceAfterOpenBracket",23,s,[cE("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ea],16),qu("NoSpaceBeforeCloseBracket",s,24,[cE("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ea],16),qu("SpaceAfterOpenBrace",19,s,[Wlt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Jlt],4),qu("SpaceBeforeCloseBrace",s,20,[Wlt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),Jlt],4),qu("NoSpaceBetweenEmptyBraceBrackets",19,20,[ea,Xlt],16),qu("NoSpaceAfterOpenBrace",19,s,[_Le("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ea],16),qu("NoSpaceBeforeCloseBrace",s,20,[_Le("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ea],16),qu("SpaceBetweenEmptyBraceBrackets",19,20,[Km("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),qu("NoSpaceBetweenEmptyBraceBrackets",19,20,[_Le("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),ea],16),qu("SpaceAfterTemplateHeadAndMiddle",[16,17],s,[Km("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ect],4,1),qu("SpaceBeforeTemplateMiddleAndTail",s,[17,18],[Km("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ea],4),qu("NoSpaceAfterTemplateHeadAndMiddle",[16,17],s,[cE("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ect],16,1),qu("NoSpaceBeforeTemplateMiddleAndTail",s,[17,18],[cE("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ea],16),qu("SpaceAfterOpenBraceInJsxExpression",19,s,[Km("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ea,jpe],4),qu("SpaceBeforeCloseBraceInJsxExpression",s,20,[Km("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ea,jpe],4),qu("NoSpaceAfterOpenBraceInJsxExpression",19,s,[cE("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ea,jpe],16),qu("NoSpaceBeforeCloseBraceInJsxExpression",s,20,[cE("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ea,jpe],16),qu("SpaceAfterSemicolonInFor",27,s,[Km("insertSpaceAfterSemicolonInForStatements"),ea,xLe],4),qu("NoSpaceAfterSemicolonInFor",27,s,[cE("insertSpaceAfterSemicolonInForStatements"),ea,xLe],16),qu("SpaceBeforeBinaryOperator",s,E,[Km("insertSpaceBeforeAndAfterBinaryOperators"),ea,Yx],4),qu("SpaceAfterBinaryOperator",E,s,[Km("insertSpaceBeforeAndAfterBinaryOperators"),ea,Yx],4),qu("NoSpaceBeforeBinaryOperator",s,E,[cE("insertSpaceBeforeAndAfterBinaryOperators"),ea,Yx],16),qu("NoSpaceAfterBinaryOperator",E,s,[cE("insertSpaceBeforeAndAfterBinaryOperators"),ea,Yx],16),qu("SpaceBeforeOpenParenInFuncDecl",s,21,[Km("insertSpaceBeforeFunctionParenthesis"),ea,Vk],4),qu("NoSpaceBeforeOpenParenInFuncDecl",s,21,[cE("insertSpaceBeforeFunctionParenthesis"),ea,Vk],16),qu("NewLineBeforeOpenBraceInControl",oe,19,[Km("placeOpenBraceOnNewLineForControlBlocks"),Vee,bLe],8,1),qu("NewLineBeforeOpenBraceInFunction",K,19,[Km("placeOpenBraceOnNewLineForFunctions"),Vk,bLe],8,1),qu("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Y,19,[Km("placeOpenBraceOnNewLineForFunctions"),Ylt,bLe],8,1),qu("SpaceAfterTypeAssertion",32,s,[Km("insertSpaceAfterTypeAssertion"),ea,FLe],4),qu("NoSpaceAfterTypeAssertion",32,s,[cE("insertSpaceAfterTypeAssertion"),ea,FLe],16),qu("SpaceBeforeTypeAnnotation",s,[58,59],[Km("insertSpaceBeforeTypeAnnotation"),ea,vLe],4),qu("NoSpaceBeforeTypeAnnotation",s,[58,59],[cE("insertSpaceBeforeTypeAnnotation"),ea,vLe],16),qu("NoOptionalSemicolon",27,f,[Klt("semicolons","remove"),TYt],32),qu("OptionalSemicolon",s,f,[Klt("semicolons","insert"),LYt],64)],ae=[qu("NoSpaceBeforeSemicolon",s,27,[ea],16),qu("SpaceBeforeOpenBraceInControl",oe,19,[DLe("placeOpenBraceOnNewLineForControlBlocks"),Vee,kLe,CLe],4,1),qu("SpaceBeforeOpenBraceInFunction",K,19,[DLe("placeOpenBraceOnNewLineForFunctions"),Vk,Ope,kLe,CLe],4,1),qu("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Y,19,[DLe("placeOpenBraceOnNewLineForFunctions"),Ylt,kLe,CLe],4,1),qu("NoSpaceBeforeComma",s,28,[ea],16),qu("NoSpaceBeforeOpenBracket",u(134,84),23,[ea],16),qu("NoSpaceAfterCloseBracket",24,s,[ea,vYt],16),qu("SpaceAfterSemicolon",27,s,[ea],4),qu("SpaceBetweenForAndAwaitKeyword",99,135,[ea],4),qu("SpaceBetweenStatements",[22,92,93,84],s,[ea,yLe,uYt],4),qu("SpaceAfterTryCatchFinally",[113,85,98],19,[ea],4)];return[...se,...ge,...ae]}function qu(t,u,s,d,f,p=0){return{leftTokenRange:Vlt(u),rightTokenRange:Vlt(s),rule:{debugName:t,context:d,action:f,flags:p}}}function ez(t){return{tokens:t,isSpecific:!0}}function Vlt(t){return typeof t=="number"?ez([t]):Ha(t)?ez(t):t}function Hlt(t,u,s=[]){const d=[];for(let f=t;f<=u;f++)Ft(s,f)||d.push(f);return ez(d)}function Klt(t,u){return s=>s.options&&s.options[t]===u}function Km(t){return u=>u.options&&Eu(u.options,t)&&!!u.options[t]}function _Le(t){return u=>u.options&&Eu(u.options,t)&&!u.options[t]}function cE(t){return u=>!u.options||!Eu(u.options,t)||!u.options[t]}function DLe(t){return u=>!u.options||!Eu(u.options,t)||!u.options[t]||u.TokensAreOnSameLine()}function Wlt(t){return u=>!u.options||!Eu(u.options,t)||!!u.options[t]}function xLe(t){return t.contextNode.kind===248}function uYt(t){return!xLe(t)}function Yx(t){switch(t.contextNode.kind){case 226:return t.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 249:case 168:return t.currentTokenSpan.kind===103||t.nextTokenSpan.kind===103||t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 250:return t.currentTokenSpan.kind===165||t.nextTokenSpan.kind===165}return!1}function jee(t){return!Yx(t)}function Glt(t){return!vLe(t)}function vLe(t){const u=t.contextNode.kind;return u===172||u===171||u===169||u===260||u7(u)}function rYt(t){return bo(t.contextNode)&&t.contextNode.questionToken}function aYt(t){return!rYt(t)}function oYt(t){return t.contextNode.kind===227||t.contextNode.kind===194}function CLe(t){return t.TokensAreOnSameLine()||Ope(t)}function Jlt(t){return t.contextNode.kind===206||t.contextNode.kind===200||sYt(t)}function bLe(t){return Ope(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function $lt(t){return Ult(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function sYt(t){return Ult(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function Ult(t){return qlt(t.contextNode)}function Ope(t){return qlt(t.nextTokenParent)}function qlt(t){if(Qlt(t))return!0;switch(t.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Vk(t){switch(t.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function lYt(t){return!Vk(t)}function Zlt(t){return t.contextNode.kind===262||t.contextNode.kind===218}function Ylt(t){return Qlt(t.contextNode)}function Qlt(t){switch(t.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function cYt(t){switch(t.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const u=t.currentTokenParent.parent;if(!u||u.kind!==219&&u.kind!==218)return!0}}return!1}function Vee(t){switch(t.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function Xlt(t){return t.contextNode.kind===210}function dYt(t){return t.contextNode.kind===213}function hYt(t){return t.contextNode.kind===214}function fYt(t){return dYt(t)||hYt(t)}function mYt(t){return t.currentTokenSpan.kind!==28}function pYt(t){return t.nextTokenSpan.kind!==24}function gYt(t){return t.nextTokenSpan.kind!==22}function EYt(t){return t.contextNode.kind===219}function _Yt(t){return t.contextNode.kind===205}function ea(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==12}function ect(t){return t.contextNode.kind!==12}function yLe(t){return t.contextNode.kind!==284&&t.contextNode.kind!==288}function jpe(t){return t.contextNode.kind===294||t.contextNode.kind===293}function DYt(t){return t.nextTokenParent.kind===291||t.nextTokenParent.kind===295&&t.nextTokenParent.parent.kind===291}function tct(t){return t.contextNode.kind===291}function xYt(t){return t.nextTokenParent.kind!==295}function ict(t){return t.nextTokenParent.kind===295}function nct(t){return t.contextNode.kind===285}function vYt(t){return!Vk(t)&&!Ope(t)}function CYt(t){return t.TokensAreOnSameLine()&&a4(t.contextNode)&&uct(t.currentTokenParent)&&!uct(t.nextTokenParent)}function uct(t){for(;t&&Wt(t);)t=t.parent;return t&&t.kind===170}function bYt(t){return t.currentTokenParent.kind===261&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function kLe(t){return t.formattingRequestKind!==2}function yYt(t){return t.contextNode.kind===267}function kYt(t){return t.contextNode.kind===187}function FYt(t){return t.contextNode.kind===180}function rct(t,u){if(t.kind!==30&&t.kind!==32)return!1;switch(u.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function Hee(t){return rct(t.currentTokenSpan,t.currentTokenParent)||rct(t.nextTokenSpan,t.nextTokenParent)}function FLe(t){return t.contextNode.kind===216}function AYt(t){return!FLe(t)}function SYt(t){return t.currentTokenSpan.kind===116&&t.currentTokenParent.kind===222}function act(t){return t.contextNode.kind===229&&t.contextNode.expression!==void 0}function BYt(t){return t.contextNode.kind===235}function oct(t){return!wYt(t)}function wYt(t){switch(t.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function TYt(t){let u=t.nextTokenSpan.kind,s=t.nextTokenSpan.pos;if(tB(u)){const p=t.nextTokenParent===t.currentTokenParent?X2(t.currentTokenParent,Ln(t.currentTokenParent,E=>!E.parent),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!p)return!0;u=p.kind,s=p.getStart(t.sourceFile)}const d=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,f=t.sourceFile.getLineAndCharacterOfPosition(s).line;return d===f?u===20||u===1:u===240||u===27?!1:t.contextNode.kind===264||t.contextNode.kind===265?!Pm(t.currentTokenParent)||!!t.currentTokenParent.type||u!==21:bo(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==248&&t.currentTokenParent.kind!==242&&t.currentTokenParent.kind!==240&&u!==23&&u!==21&&u!==40&&u!==41&&u!==44&&u!==14&&u!==28&&u!==228&&u!==16&&u!==15&&u!==25}function LYt(t){return AX(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function NYt(t){return!Iu(t.contextNode)||!Rf(t.contextNode.expression)||t.contextNode.expression.getText().includes(".")}var PYt=o({"src/services/formatting/rules.ts"(){or(),RK()}});function MYt(t,u){return{options:t,getRules:zYt(),host:u}}function zYt(){return ALe===void 0&&(ALe=RYt(jlt())),ALe}function IYt(t){let u=0;return t&1&&(u|=28),t&2&&(u|=96),t&28&&(u|=28),t&96&&(u|=96),u}function RYt(t){const u=OYt(t);return s=>{const d=u[sct(s.currentTokenSpan.kind,s.nextTokenSpan.kind)];if(d){const f=[];let p=0;for(const E of d){const v=~IYt(p);E.action&v&&ye(E.context,b=>b(s))&&(f.push(E),p|=E.action)}if(f.length)return f}}}function OYt(t){const u=new Array(Vpe*Vpe),s=new Array(u.length);for(const d of t){const f=d.leftTokenRange.isSpecific&&d.rightTokenRange.isSpecific;for(const p of d.leftTokenRange.tokens)for(const E of d.rightTokenRange.tokens){const v=sct(p,E);let b=u[v];b===void 0&&(b=u[v]=[]),jYt(b,d.rule,f,s,v)}}return u}function sct(t,u){return H.assert(t<=165&&u<=165,"Must compute formatting context from tokens"),t*Vpe+u}function jYt(t,u,s,d,f){const p=u.action&3?s?0:tz.StopRulesAny:u.context!==Oee?s?tz.ContextRulesSpecific:tz.ContextRulesAny:s?tz.NoContextRulesSpecific:tz.NoContextRulesAny,E=d[f]||0;t.splice(VYt(E,p),0,u),d[f]=HYt(E,p)}function VYt(t,u){let s=0;for(let d=0;d<=u;d+=yw)s+=t&Kee,t>>=yw;return s}function HYt(t,u){const s=(t>>u&Kee)+1;return H.assert((s&Kee)===s,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(Kee<(t[t.StopRulesSpecific=0]="StopRulesSpecific",t[t.StopRulesAny=yw*1]="StopRulesAny",t[t.ContextRulesSpecific=yw*2]="ContextRulesSpecific",t[t.ContextRulesAny=yw*3]="ContextRulesAny",t[t.NoContextRulesSpecific=yw*4]="NoContextRulesSpecific",t[t.NoContextRulesAny=yw*5]="NoContextRulesAny",t))(tz||{})}});function Hpe(t,u,s){const d={pos:t,end:u,kind:s};return H.isDebugging&&Object.defineProperty(d,"__debugKind",{get:()=>H.formatSyntaxKind(s)}),d}function WYt(t,u,s){const d=u.getLineAndCharacterOfPosition(t).line;if(d===0)return[];let f=ij(d,u);for(;Ug(u.text.charCodeAt(f));)f--;q1(u.text.charCodeAt(f))&&f--;const p={pos:Px(d-1,u),end:f+1};return Wee(p,u,s,2)}function GYt(t,u,s){const d=SLe(t,27,u);return lct(BLe(d),u,s,3)}function JYt(t,u,s){const d=SLe(t,19,u);if(!d)return[];const f=d.parent,p=BLe(f),E={pos:X4(p.getStart(u),u),end:t};return Wee(E,u,s,4)}function $Yt(t,u,s){const d=SLe(t,20,u);return lct(BLe(d),u,s,5)}function UYt(t,u){const s={pos:0,end:t.text.length};return Wee(s,t,u,0)}function qYt(t,u,s,d){const f={pos:X4(t,s),end:u};return Wee(f,s,d,1)}function SLe(t,u,s){const d=ed(t,s);return d&&d.kind===u&&t===d.getEnd()?d:void 0}function BLe(t){let u=t;for(;u&&u.parent&&u.parent.end===t.end&&!ZYt(u.parent,u);)u=u.parent;return u}function ZYt(t,u){switch(t.kind){case 263:case 264:return jm(t.members,u);case 267:const s=t.body;return!!s&&s.kind===268&&jm(s.statements,u);case 312:case 241:case 268:return jm(t.statements,u);case 299:return jm(t.block.statements,u)}return!1}function YYt(t,u){return s(u);function s(d){const f=ro(d,p=>Hhe(p.getStart(u),p.end,t)&&p);if(f){const p=s(f);if(p)return p}return d}}function QYt(t,u){if(!t.length)return f;const s=t.filter(p=>wM(u,p.start,p.start+p.length)).sort((p,E)=>p.start-E.start);if(!s.length)return f;let d=0;return p=>{for(;;){if(d>=s.length)return!1;const E=s[d];if(p.end<=E.start)return!1;if(iX(p.pos,p.end,E.start,E.start+E.length))return!0;d++}};function f(){return!1}}function XYt(t,u,s){const d=t.getStart(s);if(d===u.pos&&t.end===u.end)return d;const f=ed(u.pos,s);return!f||f.end>=u.pos?t.pos:f.end}function eQt(t,u,s){let d=-1,f;for(;t;){const p=s.getLineAndCharacterOfPosition(t.getStart(s)).line;if(d!==-1&&p!==d)break;if(dE.shouldIndentChildNode(u,t,f,s))return u.indentSize;d=p,f=t,t=t.parent}return 0}function tQt(t,u,s,d,f,p){const E={pos:t.pos,end:t.end};return pLe(u.text,s,E.pos,E.end,v=>cct(E,t,d,f,v,p,1,b=>!1,u))}function lct(t,u,s,d){if(!t)return[];const f={pos:X4(t.getStart(u),u),end:t.end};return Wee(f,u,s,d)}function Wee(t,u,s,d){const f=YYt(t,u);return pLe(u.text,u.languageVariant,XYt(f,t,u),t.end,p=>cct(t,f,dE.getIndentationForNode(f,t,u,s.options),eQt(f,s.options,u),p,s,d,QYt(u.parseDiagnostics,t),u))}function cct(t,u,s,d,f,{options:p,getRules:E,host:v},b,B,k){var T;const M=new mLe(k,b,p);let z,j,J,K,Y,oe=-1;const se=[];if(f.advance(),f.isOnToken()){const Ie=k.getLineAndCharacterOfPosition(u.getStart(k)).line;let st=Ie;a4(u)&&(st=k.getLineAndCharacterOfPosition(c0e(u,k)).line),Se(u,u,Ie,st,s,d)}const ge=f.getCurrentLeadingTrivia();if(ge){const Ie=dE.nodeWillIndentChild(p,u,void 0,k,!1)?s+p.indentSize:s;Ne(ge,Ie,!0,st=>{fe(st,k.getLineAndCharacterOfPosition(st.pos),u,u,void 0),Be(st.pos,Ie,!1)}),p.trimTrailingWhitespace!==!1&&ft(ge)}if(j&&f.getTokenFullStart()>=t.end){const Ie=f.isOnEOF()?f.readEOFTokenRange():f.isOnToken()?f.readTokenInfo(u).token:void 0;if(Ie&&Ie.pos===z){const st=((T=ed(Ie.end,k,u))==null?void 0:T.parent)||J;xe(Ie,k.getLineAndCharacterOfPosition(Ie.pos).line,st,j,K,J,st,void 0)}}return se;function ae(Ie,st,St,It,ti){if(wM(It,Ie,st)||MH(It,Ie,st)){if(ti!==-1)return ti}else{const ht=k.getLineAndCharacterOfPosition(Ie).line,Ut=X4(Ie,k),Li=dE.findFirstNonWhitespaceColumn(Ut,Ie,k,p);if(ht!==St||Ie===Li){const ji=dE.getBaseIndentation(p);return ji>Li?ji:Li}}return-1}function Ce(Ie,st,St,It,ti,ht){const Ut=dE.shouldIndentChildNode(p,Ie)?p.indentSize:0;return ht===st?{indentation:st===Y?oe:ti.getIndentation(),delta:Math.min(p.indentSize,ti.getDelta(Ie)+Ut)}:St===-1?Ie.kind===21&&st===Y?{indentation:oe,delta:ti.getDelta(Ie)}:dE.childStartsOnTheSameLineWithElseInIfStatement(It,Ie,st,k)||dE.childIsUnindentedBranchOfConditionalExpression(It,Ie,st,k)||dE.argumentStartsOnSameLineAsPreviousArgument(It,Ie,st,k)?{indentation:ti.getIndentation(),delta:Ut}:{indentation:ti.getIndentation()+ti.getDelta(Ie),delta:Ut}:{indentation:St,delta:Ut}}function ne(Ie){if(Op(Ie)){const st=Le(Ie.modifiers,Yo,$e(Ie.modifiers,p1));if(st)return st.kind}switch(Ie.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(Ie.asteriskToken)return 42;case 172:case 169:const st=qa(Ie);if(st)return st.kind}}function ve(Ie,st,St,It){return{getIndentationForComment:(Ut,Li,ji)=>{switch(Ut){case 20:case 24:case 22:return St+ht(ji)}return Li!==-1?Li:St},getIndentationForToken:(Ut,Li,ji,xn)=>!xn&&ti(Ut,Li,ji)?St+ht(ji):St,getIndentation:()=>St,getDelta:ht,recomputeIndentation:(Ut,Li)=>{dE.shouldIndentChildNode(p,Li,Ie,k)&&(St+=Ut?p.indentSize:-p.indentSize,It=dE.shouldIndentChildNode(p,Ie)?p.indentSize:0)}};function ti(Ut,Li,ji){switch(Li){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(ji.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(ji.kind!==200)return!1;break}return st!==Ut&&!(a4(Ie)&&Li===ne(Ie))}function ht(Ut){return dE.nodeWillIndentChild(p,Ie,Ut,k,!0)?It:0}}function Se(Ie,st,St,It,ti,ht){if(!wM(t,Ie.getStart(k),Ie.getEnd()))return;const Ut=ve(Ie,St,ti,ht);let Li=st;for(ro(Ie,rn=>{ji(rn,-1,Ie,Ut,St,It,!1)},rn=>{xn(rn,Ie,St,Ut)});f.isOnToken()&&f.getTokenFullStart()Math.min(Ie.end,t.end))break;Un(rn,Ie,Ut,Ie)}function ji(rn,Ni,Fi,Qu,aa,Fr,Ba,bt){if(H.assert(!al(rn)),Yl(rn)||Fbe(Fi,rn))return Ni;const jn=rn.getStart(k),Nn=k.getLineAndCharacterOfPosition(jn).line;let Ai=Nn;a4(rn)&&(Ai=k.getLineAndCharacterOfPosition(c0e(rn,k)).line);let Dn=-1;if(Ba&&jm(t,Fi)&&(Dn=ae(jn,rn.end,aa,t,Ni),Dn!==-1&&(Ni=Dn)),!wM(t,rn.pos,rn.end))return rn.endt.end)return Ni;if(oa.token.end>jn){oa.token.pos>jn&&f.skipToStartOf(rn);break}Un(oa,Ie,Qu,Ie)}if(!f.isOnToken()||f.getTokenFullStart()>=t.end)return Ni;if(i7(rn)){const oa=f.readTokenInfo(rn);if(rn.kind!==12)return H.assert(oa.token.end===rn.end,"Token end is child end"),Un(oa,Ie,Qu,rn),Ni}const bn=rn.kind===170?Nn:Fr,iu=Ce(rn,Nn,Dn,Ie,Qu,bn);return Se(rn,Li,Nn,Ai,iu.indentation,iu.delta),Li=Ie,bt&&Fi.kind===209&&Ni===-1&&(Ni=iu.indentation),Ni}function xn(rn,Ni,Fi,Qu){H.assert(f2(rn)),H.assert(!al(rn));const aa=iQt(Ni,rn);let Fr=Qu,Ba=Fi;if(!wM(t,rn.pos,rn.end)){rn.endrn.pos)break;if(Nn.token.kind===aa){Ba=k.getLineAndCharacterOfPosition(Nn.token.pos).line,Un(Nn,Ni,Qu,Ni);let Ai;if(oe!==-1)Ai=oe;else{const Dn=X4(Nn.token.pos,k);Ai=dE.findFirstNonWhitespaceColumn(Dn,Nn.token.pos,k,p)}Fr=ve(Ni,Fi,Ai,p.indentSize)}else Un(Nn,Ni,Qu,Ni)}let bt=-1;for(let Nn=0;NnBe(iu.pos,bn,!1))}Ai!==-1&&Dn&&(Be(rn.token.pos,Ai,bt===1),Y=Nn.line,oe=Ai)}f.advance(),Li=Ni}}function Ne(Ie,st,St,It){for(const ti of Ie){const ht=jm(t,ti);switch(ti.kind){case 3:ht&&De(ti,st,!St),St=!1;break;case 2:St&&ht&&It(ti),St=!1;break;case 4:St=!0;break}}return St}function pe(Ie,st,St,It){for(const ti of Ie)if(cX(ti.kind)&&jm(t,ti)){const ht=k.getLineAndCharacterOfPosition(ti.pos);fe(ti,ht,st,St,It)}}function fe(Ie,st,St,It,ti){const ht=B(Ie);let Ut=0;if(!ht)if(j)Ut=xe(Ie,st.line,St,j,K,J,It,ti);else{const Li=k.getLineAndCharacterOfPosition(t.pos);He(Li.line,st.line)}return j=Ie,z=Ie.end,J=St,K=st.line,Ut}function xe(Ie,st,St,It,ti,ht,Ut,Li){M.updateContext(It,ht,Ie,St,Ut);const ji=E(M);let xn=M.options.trimTrailingWhitespace!==!1,Un=0;return ji?R(ji,rn=>{if(Un=Yt(rn,It,ti,Ie,st),Li)switch(Un){case 2:St.getStart(k)===Ie.pos&&Li.recomputeIndentation(!1,Ut);break;case 1:St.getStart(k)===Ie.pos&&Li.recomputeIndentation(!0,Ut);break;default:H.assert(Un===0)}xn=xn&&!(rn.action&16)&&rn.flags!==1}):xn=xn&&Ie.kind!==1,st!==ti&&xn&&He(ti,st,It),Un}function Be(Ie,st,St){const It=wLe(st,p);if(St)Ke(Ie,0,It);else{const ti=k.getLineAndCharacterOfPosition(Ie),ht=Px(ti.line,k);(st!==We(ht,ti.character)||Ae(It,ht))&&Ke(ht,ti.character,It)}}function We(Ie,st){let St=0;for(let It=0;It0){const Fr=wLe(aa,p);Ke(Fi,Qu.character,Fr)}else je(Fi,Qu.character)}}function He(Ie,st,St){for(let It=Ie;Itht)continue;const Ut=Ge(ti,ht);Ut!==-1&&(H.assert(Ut===ti||!Ug(k.text.charCodeAt(Ut-1))),je(Ut,ht+1-Ut))}}function Ge(Ie,st){let St=st;for(;St>=Ie&&Ug(k.text.charCodeAt(St));)St--;return St!==st?St+1:-1}function ft(Ie){let st=j?j.end:t.pos;for(const St of Ie)cX(St.kind)&&(stPH(B,u)||u===B.end&&(B.kind===2||u===t.getFullWidth()))}function iQt(t,u){switch(t.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(t.typeParameters===u)return 30;if(t.parameters===u)return 21;break;case 213:case 214:if(t.typeArguments===u)return 30;if(t.arguments===u)return 21;break;case 263:case 231:case 264:case 265:if(t.typeParameters===u)return 30;break;case 183:case 215:case 186:case 233:case 205:if(t.typeArguments===u)return 30;break;case 187:return 19}return 0}function nQt(t){switch(t){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function wLe(t,u){if((!Kpe||Kpe.tabSize!==u.tabSize||Kpe.indentSize!==u.indentSize)&&(Kpe={tabSize:u.tabSize,indentSize:u.indentSize},zK=IK=void 0),u.convertTabsToSpaces){let d;const f=Math.floor(t/u.indentSize),p=t%u.indentSize;return IK||(IK=[]),IK[f]===void 0?(d=VH(" ",u.indentSize*f),IK[f]=d):d=IK[f],p?d+VH(" ",p):d}else{const d=Math.floor(t/u.tabSize),f=t-d*u.tabSize;let p;return zK||(zK=[]),zK[d]===void 0?zK[d]=p=VH(" ",d):p=zK[d],f?p+VH(" ",f):p}}var Kpe,zK,IK,uQt=o({"src/services/formatting/formatting.ts"(){or(),RK()}}),dE,rQt=o({"src/services/formatting/smartIndenter.ts"(){or(),RK(),(t=>{let u;(De=>{De[De.Unknown=-1]="Unknown"})(u||(u={}));function s(De,He,Ge,ft=!1){if(De>He.text.length)return v(Ge);if(Ge.indentStyle===0)return 0;const Ze=ed(De,He,void 0,!0),je=dct(He,De,Ze||null);if(je&&je.kind===3)return d(He,De,Ge,je);if(!Ze)return v(Ge);if(qhe(Ze.kind)&&Ze.getStart(He)<=De&&De=0),Ze<=je)return fe(Px(je,De),He,De,Ge);const Ke=Px(Ze,De),{column:Gt,character:Yt}=pe(Ke,He,De,Ge);return Gt===0?Gt:De.text.charCodeAt(Ke+Yt)===42?Gt-1:Gt}function f(De,He,Ge){let ft=He;for(;ft>0;){const je=De.text.charCodeAt(ft);if(!$3(je))break;ft--}const Ze=X4(ft,De);return fe(Ze,ft,De,Ge)}function p(De,He,Ge,ft,Ze,je){let Ke,Gt=Ge;for(;Gt;){if(Khe(Gt,He,De)&&We(je,Gt,Ke,De,!0)){const Ie=j(Gt,De),st=z(Ge,Gt,ft,De),St=st!==0?Ze&&st===2?je.indentSize:0:ft!==Ie.line?je.indentSize:0;return b(Gt,Ie,void 0,St,De,!0,je)}const Yt=ve(Gt,De,je,!0);if(Yt!==-1)return Yt;Ke=Gt,Gt=Gt.parent}return v(je)}function E(De,He,Ge,ft){const Ze=Ge.getLineAndCharacterOfPosition(De.getStart(Ge));return b(De,Ze,He,0,Ge,!1,ft)}t.getIndentationForNode=E;function v(De){return De.baseIndentSize||0}t.getBaseIndentation=v;function b(De,He,Ge,ft,Ze,je,Ke){var Gt;let Yt=De.parent;for(;Yt;){let Ie=!0;if(Ge){const ti=De.getStart(Ze);Ie=tiGe.end}const st=B(Yt,De,Ze),St=st.line===He.line||K(Yt,De,He.line,Ze);if(Ie){const ti=(Gt=se(De,Ze))==null?void 0:Gt[0],ht=!!ti&&j(ti,Ze).line>st.line;let Ut=ve(De,Ze,Ke,ht);if(Ut!==-1||(Ut=T(De,Yt,He,St,Ze,Ke),Ut!==-1))return Ut+ft}We(Ke,Yt,De,Ze,je)&&!St&&(ft+=Ke.indentSize);const It=J(Yt,De,He.line,Ze);De=Yt,Yt=De.parent,He=It?Ze.getLineAndCharacterOfPosition(De.getStart(Ze)):st}return ft+v(Ke)}function B(De,He,Ge){const ft=se(He,Ge),Ze=ft?ft.pos:De.getStart(Ge);return Ge.getLineAndCharacterOfPosition(Ze)}function k(De,He,Ge){const ft=U9e(De);return ft&&ft.listItemIndex>0?Se(ft.list.getChildren(),ft.listItemIndex-1,He,Ge):-1}function T(De,He,Ge,ft,Ze,je){return(Y1(De)||YO(De))&&(He.kind===312||!ft)?Ne(Ge,Ze,je):-1}let M;(De=>{De[De.Unknown=0]="Unknown",De[De.OpenBrace=1]="OpenBrace",De[De.CloseBrace=2]="CloseBrace"})(M||(M={}));function z(De,He,Ge,ft){const Ze=X2(De,He,ft);if(!Ze)return 0;if(Ze.kind===19)return 1;if(Ze.kind===20){const je=j(Ze,ft).line;return Ge===je?2:0}return 0}function j(De,He){return He.getLineAndCharacterOfPosition(De.getStart(He))}function J(De,He,Ge,ft){if(!(No(De)&&Ft(De.arguments,He)))return!1;const Ze=De.expression.getEnd();return o0(ft,Ze).line===Ge}t.isArgumentAndStartLineOverlapsExpressionBeingCalled=J;function K(De,He,Ge,ft){if(De.kind===245&&De.elseStatement===He){const Ze=r0(De,93,ft);return H.assert(Ze!==void 0),j(Ze,ft).line===Ge}return!1}t.childStartsOnTheSameLineWithElseInIfStatement=K;function Y(De,He,Ge,ft){if(FB(De)&&(He===De.whenTrue||He===De.whenFalse)){const Ze=o0(ft,De.condition.end).line;if(He===De.whenTrue)return Ge===Ze;{const je=j(De.whenTrue,ft).line,Ke=o0(ft,De.whenTrue.end).line;return Ze===je&&Ke===Ge}}return!1}t.childIsUnindentedBranchOfConditionalExpression=Y;function oe(De,He,Ge,ft){if(JE(De)){if(!De.arguments)return!1;const Ze=Le(De.arguments,Yt=>Yt.pos===He.pos);if(!Ze)return!1;const je=De.arguments.indexOf(Ze);if(je===0)return!1;const Ke=De.arguments[je-1],Gt=o0(ft,Ke.getEnd()).line;if(Ge===Gt)return!0}return!1}t.argumentStartsOnSameLineAsPreviousArgument=oe;function se(De,He){return De.parent&&ae(De.getStart(He),De.getEnd(),De.parent,He)}t.getContainingList=se;function ge(De,He,Ge){return He&&ae(De,De,He,Ge)}function ae(De,He,Ge,ft){switch(Ge.kind){case 183:return Ze(Ge.typeArguments);case 210:return Ze(Ge.properties);case 209:return Ze(Ge.elements);case 187:return Ze(Ge.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ze(Ge.typeParameters)||Ze(Ge.parameters);case 177:return Ze(Ge.parameters);case 263:case 231:case 264:case 265:case 352:return Ze(Ge.typeParameters);case 214:case 213:return Ze(Ge.typeArguments)||Ze(Ge.arguments);case 261:return Ze(Ge.declarations);case 275:case 279:return Ze(Ge.elements);case 206:case 207:return Ze(Ge.elements)}function Ze(je){return je&&MH(Ce(Ge,je,ft),De,He)?je:void 0}}function Ce(De,He,Ge){const ft=De.getChildren(Ge);for(let Ze=1;Ze=0&&He=0;Ke--){if(De[Ke].kind===28)continue;if(Ge.getLineAndCharacterOfPosition(De[Ke].end).line!==je.line)return Ne(je,Ge,ft);je=j(De[Ke],Ge)}return-1}function Ne(De,He,Ge){const ft=He.getPositionOfLineAndCharacter(De.line,0);return fe(ft,ft+De.character,He,Ge)}function pe(De,He,Ge,ft){let Ze=0,je=0;for(let Ke=De;KemLe,FormattingRequestKind:()=>fLe,RuleAction:()=>gLe,RuleFlags:()=>ELe,SmartIndenter:()=>dE,anyContext:()=>Oee,createTextRangeWithKind:()=>Hpe,formatDocument:()=>UYt,formatNodeGivenIndentation:()=>tQt,formatOnClosingCurly:()=>$Yt,formatOnEnter:()=>WYt,formatOnOpeningCurly:()=>JYt,formatOnSemicolon:()=>GYt,formatSelection:()=>qYt,getAllRules:()=>jlt,getFormatContext:()=>MYt,getFormattingScanner:()=>pLe,getIndentationString:()=>wLe,getRangeOfEnclosingComment:()=>dct});var RK=o({"src/services/_namespaces/ts.formatting.ts"(){tYt(),iYt(),nYt(),PYt(),KYt(),uQt(),rQt()}}),or=o({"src/services/_namespaces/ts.ts"(){Ao(),AH(),CIt(),$It(),YIt(),Wit(),lRt(),cRt(),ERt(),ARt(),SRt(),wRt(),RRt(),ORt(),rHt(),aHt(),lHt(),BHt(),THt(),us(),wTe(),q0t(),QUt(),nqt(),xqt(),mnt(),Mnt(),Vqt(),qqt(),o_(),nZt(),wZt(),RZt(),HZt(),eYt(),RK()}});function aQt(){return mct??(mct=new Bp(_))}function hct(t,u,s,d,f){let p=u?"DeprecationError: ":"DeprecationWarning: ";return p+=`'${t}' `,p+=d?`has been deprecated since v${d}`:"is deprecated",p+=u?" and can no longer be used.":s?` and will no longer be usable after v${s}.`:".",p+=f?` ${X_(f,[t])}`:"",p}function oQt(t,u,s,d){const f=hct(t,!0,u,s,d);return()=>{throw new TypeError(f)}}function sQt(t,u,s,d){let f=!1;return()=>{fct&&!f&&(H.log.warn(hct(t,!1,u,s,d)),f=!0)}}function lQt(t,u={}){const s=typeof u.typeScriptVersion=="string"?new Bp(u.typeScriptVersion):u.typeScriptVersion??aQt(),d=typeof u.errorAfter=="string"?new Bp(u.errorAfter):u.errorAfter,f=typeof u.warnAfter=="string"?new Bp(u.warnAfter):u.warnAfter,p=typeof u.since=="string"?new Bp(u.since):u.since??f,E=u.error||d&&s.compareTo(d)>=0,v=!f||s.compareTo(f)>=0;return E?oQt(t,d,p,u.message):v?sQt(t,d,p,u.message):Ms}function cQt(t,u){return function(){return t(),u.apply(this,arguments)}}function TLe(t,u){const s=lQt((u==null?void 0:u.name)??H.getFunctionName(t),u);return cQt(s,t)}var fct,mct,pct=o({"src/deprecatedCompat/deprecate.ts"(){Gpe(),fct=!0}});function Wpe(t,u,s,d){if(Object.defineProperty(p,"name",{...Object.getOwnPropertyDescriptor(p,"name"),value:t}),d)for(const E of Object.keys(d)){const v=+E;!isNaN(v)&&Eu(u,`${v}`)&&(u[v]=TLe(u[v],{...d[v],name:t}))}const f=dQt(u,s);return p;function p(...E){const v=f(E),b=v!==void 0?u[v]:void 0;if(typeof b=="function")return b(...E);throw new TypeError("Invalid arguments")}}function dQt(t,u){return s=>{for(let d=0;Eu(t,`${d}`)&&Eu(u,`${d}`);d++){const f=u[d];if(f(s))return d}}}function gct(t){return{overload:u=>({bind:s=>({finish:()=>Wpe(t,u,s),deprecate:d=>({finish:()=>Wpe(t,u,s,d)})})})}}var hQt=o({"src/deprecatedCompat/deprecations.ts"(){Gpe(),pct()}}),fQt=o({"src/deprecatedCompat/5.0/identifierProperties.ts"(){Gpe(),pct(),Zye(t=>{const u=t.getIdentifierConstructor();Eu(u.prototype,"originalKeywordKind")||Object.defineProperty(u.prototype,"originalKeywordKind",{get:TLe(function(){return Ev(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Eu(u.prototype,"isInJSDocNamespace")||Object.defineProperty(u.prototype,"isInJSDocNamespace",{get:TLe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),Gpe=o({"src/deprecatedCompat/_namespaces/ts.ts"(){Ao(),hQt(),fQt()}}),mQt=o({"src/typingsInstallerCore/_namespaces/ts.ts"(){Ao(),AH(),NLe()}});function Ect(t,u,s,d){try{const f=HB(u,hr(t,"index.d.ts"),{moduleResolution:2},s);return f.resolvedModule&&f.resolvedModule.resolvedFileName}catch(f){d.isEnabled()&&d.writeLine(`Failed to resolve ${u} in folder '${t}': ${f.message}`);return}}function pQt(t,u,s,d){let f=!1;for(let p=s.length;p>0;){const E=_ct(t,u,s,p);p=E.remaining,f=d(E.command)||f}return f}function _ct(t,u,s,d){const f=s.length-d;let p,E=d;for(;p=`${t} install --ignore-scripts ${(E===s.length?s:s.slice(f,f+E)).join(" ")} --save-dev --user-agent="typesInstaller/${u}"`,!(p.length<8e3);)E=E-Math.floor(E/2);return{command:p,remaining:d-E}}function Dct(t){return`@types/${t}@ts${g}`}var xct,vct,gQt=o({"src/typingsInstallerCore/typingsInstaller.ts"(){mQt(),NLe(),xct={isEnabled:()=>!1,writeLine:Ms},vct=class{constructor(t,u,s,d,f,p=xct){this.installTypingHost=t,this.globalCachePath=u,this.safeListPath=s,this.typesMapLocation=d,this.throttleLimit=f,this.log=p,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${u}', safe file path '${s}', types map path ${d}`),this.processCacheLocation(this.globalCachePath)}closeProject(t){this.closeWatchers(t.projectName)}closeWatchers(t){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}'`),!this.projectWatchers.get(t)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${t}'`);return}this.projectWatchers.delete(t),this.sendResponse({kind:FH,projectName:t,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}' - done.`)}install(t){this.log.isEnabled()&&this.log.writeLine(`Got install request${tw(t)}`),t.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${t.cachePath}', loading cached information...`),this.processCacheLocation(t.cachePath)),this.safeList===void 0&&this.initializeSafeList();const u=a3.discoverTypings(this.installTypingHost,this.log.isEnabled()?s=>this.log.writeLine(s):void 0,t.fileNames,t.projectRootPath,this.safeList,this.packageNameToTypingLocation,t.typeAcquisition,t.unresolvedImports,this.typesRegistry,t.compilerOptions);this.watchFiles(t.projectName,u.filesToWatch),u.newTypingNames.length?this.installTypings(t,t.cachePath||this.globalCachePath,u.cachedTypingPaths,u.newTypingNames):(this.sendResponse(this.createSetTypings(t,u.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}initializeSafeList(){if(this.typesMapLocation){const t=a3.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(t){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=t;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=a3.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(t){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${t}'`),this.knownCachesSet.has(t)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const u=hr(t,"package.json"),s=hr(t,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${u}'...`),this.installTypingHost.fileExists(u)&&this.installTypingHost.fileExists(s)){const d=JSON.parse(this.installTypingHost.readFile(u)),f=JSON.parse(this.installTypingHost.readFile(s));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${u}':${tw(d)}`),this.log.writeLine(`Loaded content of '${s}':${tw(f)}`)),d.devDependencies&&f.dependencies)for(const p in d.devDependencies){if(!Eu(f.dependencies,p))continue;const E=Fc(p);if(!E)continue;const v=Ect(t,E,this.installTypingHost,this.log);if(!v){this.missingTypingsSet.add(E);continue}const b=this.packageNameToTypingLocation.get(E);if(b){if(b.typingLocation===v)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${E} from '${v}' conflicts with existing typing file '${b}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${E}' => '${v}'`);const B=no(f.dependencies,p),k=B&&B.version;if(!k)continue;const T={typingLocation:v,version:new Bp(k)};this.packageNameToTypingLocation.set(E,T)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${t}'`),this.knownCachesSet.add(t)}filterTypings(t){return Ui(t,u=>{const s=WB(u);if(this.missingTypingsSet.has(s)){this.log.isEnabled()&&this.log.writeLine(`'${u}':: '${s}' is in missingTypingsSet - skipping...`);return}const d=a3.validatePackageName(u);if(d!==a3.NameValidationResult.Ok){this.missingTypingsSet.add(s),this.log.isEnabled()&&this.log.writeLine(a3.renderPackageNameValidationFailure(d,u));return}if(!this.typesRegistry.has(s)){this.log.isEnabled()&&this.log.writeLine(`'${u}':: Entry for package '${s}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(s)&&a3.isTypingUpToDate(this.packageNameToTypingLocation.get(s),this.typesRegistry.get(s))){this.log.isEnabled()&&this.log.writeLine(`'${u}':: '${s}' already has an up-to-date typing - skipping...`);return}return s})}ensurePackageDirectoryExists(t){const u=hr(t,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${u}`),this.installTypingHost.fileExists(u)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${u}' is missing, creating new one...`),this.ensureDirectoryExists(t,this.installTypingHost),this.installTypingHost.writeFile(u,'{ "private": true }'))}installTypings(t,u,s,d){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(d)}`);const f=this.filterTypings(d);if(f.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(t,s));return}this.ensurePackageDirectoryExists(u);const p=this.installRunCount;this.installRunCount++,this.sendResponse({kind:dhe,eventId:p,typingsInstallerVersion:_,projectName:t.projectName});const E=f.map(Dct);this.installTypingsAsync(p,E,u,v=>{try{if(!v){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(f)}`);for(const B of f)this.missingTypingsSet.add(B);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(E)}`);const b=[];for(const B of f){const k=Ect(u,B,this.installTypingHost,this.log);if(!k){this.missingTypingsSet.add(B);continue}const T=this.typesRegistry.get(B),M=new Bp(T[`ts${g}`]||T[this.latestDistTag]),z={typingLocation:k,version:M};this.packageNameToTypingLocation.set(B,z),b.push(k)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(b)}`),this.sendResponse(this.createSetTypings(t,s.concat(b)))}finally{const b={kind:hhe,eventId:p,projectName:t.projectName,packagesToInstall:E,installSuccess:v,typingsInstallerVersion:_};this.sendResponse(b)}})}ensureDirectoryExists(t,u){const s=dr(t);u.directoryExists(s)||this.ensureDirectoryExists(s,u),u.directoryExists(t)||u.createDirectory(t)}watchFiles(t,u){if(!u.length){this.closeWatchers(t);return}const s=this.projectWatchers.get(t),d=new Set(u);!s||$_(d,f=>!s.has(f))||$_(s,f=>!d.has(f))?(this.projectWatchers.set(t,d),this.sendResponse({kind:FH,projectName:t,files:u})):this.sendResponse({kind:FH,projectName:t,files:void 0})}createSetTypings(t,u){return{projectName:t.projectName,typeAcquisition:t.typeAcquisition,compilerOptions:t.compilerOptions,typings:u,unresolvedImports:t.unresolvedImports,kind:JQ}}installTypingsAsync(t,u,s,d){this.pendingRunRequests.unshift({requestId:t,packageNames:u,cwd:s,onRequestCompleted:d}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,t.onRequestCompleted(u),this.executeWithThrottling()})}}}}}),LLe={};h(LLe,{TypingsInstaller:()=>vct,getNpmCommandForInstallation:()=>_ct,installNpmPackages:()=>pQt,typingsName:()=>Dct});var EQt=o({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){gQt()}}),NLe=o({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){UQ(),EQt()}}),_Qt=o({"src/server/types.ts"(){}});function Cct(t,u,s,d){return{projectName:t.getProjectName(),fileNames:t.getFileNames(!0,!0).concat(t.getExcludedFiles()),compilerOptions:t.getCompilationSettings(),typeAcquisition:u,unresolvedImports:s,projectRootPath:t.getCurrentDirectory(),cachePath:d,kind:"discover"}}function gl(t){return Go(t)}function OK(t,u,s){const d=Nf(t)?t:$a(t,u);return s(d)}function bct(t){return t}function yct(){const t=new Map;return{get(u){return t.get(u)},set(u,s){t.set(u,s)},contains(u){return t.has(u)},remove(u){t.delete(u)}}}function PLe(t){return/dev\/null\/inferredProject\d+\*/.test(t)}function MLe(t){return`/dev/null/inferredProject${t}*`}function zLe(t){return`/dev/null/autoImportProviderProject${t}*`}function ILe(t){return`/dev/null/auxiliaryProject${t}*`}function RLe(){return[]}var Jpe,Jc,$pe,x5,DQt=o({"src/server/utilitiesPublic.ts"(){Yv(),Jpe=(t=>(t[t.terse=0]="terse",t[t.normal=1]="normal",t[t.requestTime=2]="requestTime",t[t.verbose=3]="verbose",t))(Jpe||{}),Jc=RLe(),$pe=(t=>(t.Err="Err",t.Info="Info",t.Perf="Perf",t))($pe||{}),(t=>{function u(){throw new Error("No Project.")}t.ThrowNoProject=u;function s(){throw new Error("The project's language service is disabled.")}t.ThrowProjectLanguageServiceDisabled=s;function d(f,p){throw new Error(`Project '${p.getProjectName()}' does not contain document '${f}'`)}t.ThrowProjectDoesNotContainDocument=d})(x5||(x5={}))}});function Upe(t){const u=Fc(t);return u==="tsconfig.json"||u==="jsconfig.json"?u:void 0}function kct(t,u,s){if(!t||t.length===0)return;if(t[0]===u){t.splice(0,1);return}const d=Hl(t,u,el,s);d>=0&&t.splice(d,1)}var qpe,Zpe,xQt=o({"src/server/utilities.ts"(){Yv(),g9(),qpe=class j6t{constructor(u,s){this.host=u,this.pendingTimeouts=new Map,this.logger=s.hasLevel(3)?s:void 0}schedule(u,s,d){const f=this.pendingTimeouts.get(u);f&&this.host.clearTimeout(f),this.pendingTimeouts.set(u,this.host.setTimeout(j6t.run,s,u,this,d)),this.logger&&this.logger.info(`Scheduled: ${u}${f?", Cancelled earlier one":""}`)}cancel(u){const s=this.pendingTimeouts.get(u);return s?(this.host.clearTimeout(s),this.pendingTimeouts.delete(u)):!1}static run(u,s,d){var f,p;(f=dh)==null||f.logStartScheduledOperation(u),s.pendingTimeouts.delete(u),s.logger&&s.logger.info(`Running: ${u}`),d(),(p=dh)==null||p.logStopScheduledOperation()}},Zpe=class V6t{constructor(u,s,d){this.host=u,this.delay=s,this.logger=d}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(V6t.run,this.delay,this))}static run(u){var s,d;u.timerId=void 0,(s=dh)==null||s.logStartScheduledOperation("GC collect");const f=u.logger.hasLevel(2),p=f&&u.host.getMemoryUsage();if(u.host.gc(),f){const E=u.host.getMemoryUsage();u.logger.perftrc(`GC::before ${p}, after ${E}`)}(d=dh)==null||d.logStopScheduledOperation()}}}}),Ype,OLe,jLe,VLe,HLe,KLe,WLe,GLe,JLe,$Le,ULe,qLe,ZLe,YLe,QLe=o({"src/server/protocol.ts"(){Ype=(t=>(t.JsxClosingTag="jsxClosingTag",t.LinkedEditingRange="linkedEditingRange",t.Brace="brace",t.BraceFull="brace-full",t.BraceCompletion="braceCompletion",t.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",t.Change="change",t.Close="close",t.Completions="completions",t.CompletionInfo="completionInfo",t.CompletionsFull="completions-full",t.CompletionDetails="completionEntryDetails",t.CompletionDetailsFull="completionEntryDetails-full",t.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",t.CompileOnSaveEmitFile="compileOnSaveEmitFile",t.Configure="configure",t.Definition="definition",t.DefinitionFull="definition-full",t.DefinitionAndBoundSpan="definitionAndBoundSpan",t.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",t.Implementation="implementation",t.ImplementationFull="implementation-full",t.EmitOutput="emit-output",t.Exit="exit",t.FileReferences="fileReferences",t.FileReferencesFull="fileReferences-full",t.Format="format",t.Formatonkey="formatonkey",t.FormatFull="format-full",t.FormatonkeyFull="formatonkey-full",t.FormatRangeFull="formatRange-full",t.Geterr="geterr",t.GeterrForProject="geterrForProject",t.SemanticDiagnosticsSync="semanticDiagnosticsSync",t.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",t.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",t.NavBar="navbar",t.NavBarFull="navbar-full",t.Navto="navto",t.NavtoFull="navto-full",t.NavTree="navtree",t.NavTreeFull="navtree-full",t.DocumentHighlights="documentHighlights",t.DocumentHighlightsFull="documentHighlights-full",t.Open="open",t.Quickinfo="quickinfo",t.QuickinfoFull="quickinfo-full",t.References="references",t.ReferencesFull="references-full",t.Reload="reload",t.Rename="rename",t.RenameInfoFull="rename-full",t.RenameLocationsFull="renameLocations-full",t.Saveto="saveto",t.SignatureHelp="signatureHelp",t.SignatureHelpFull="signatureHelp-full",t.FindSourceDefinition="findSourceDefinition",t.Status="status",t.TypeDefinition="typeDefinition",t.ProjectInfo="projectInfo",t.ReloadProjects="reloadProjects",t.Unknown="unknown",t.OpenExternalProject="openExternalProject",t.OpenExternalProjects="openExternalProjects",t.CloseExternalProject="closeExternalProject",t.SynchronizeProjectList="synchronizeProjectList",t.ApplyChangedToOpenFiles="applyChangedToOpenFiles",t.UpdateOpen="updateOpen",t.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",t.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",t.Cleanup="cleanup",t.GetOutliningSpans="getOutliningSpans",t.GetOutliningSpansFull="outliningSpans",t.TodoComments="todoComments",t.Indentation="indentation",t.DocCommentTemplate="docCommentTemplate",t.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",t.NameOrDottedNameSpan="nameOrDottedNameSpan",t.BreakpointStatement="breakpointStatement",t.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",t.GetCodeFixes="getCodeFixes",t.GetCodeFixesFull="getCodeFixes-full",t.GetCombinedCodeFix="getCombinedCodeFix",t.GetCombinedCodeFixFull="getCombinedCodeFix-full",t.ApplyCodeActionCommand="applyCodeActionCommand",t.GetSupportedCodeFixes="getSupportedCodeFixes",t.GetApplicableRefactors="getApplicableRefactors",t.GetEditsForRefactor="getEditsForRefactor",t.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",t.GetEditsForRefactorFull="getEditsForRefactor-full",t.OrganizeImports="organizeImports",t.OrganizeImportsFull="organizeImports-full",t.GetEditsForFileRename="getEditsForFileRename",t.GetEditsForFileRenameFull="getEditsForFileRename-full",t.ConfigurePlugin="configurePlugin",t.SelectionRange="selectionRange",t.SelectionRangeFull="selectionRange-full",t.ToggleLineComment="toggleLineComment",t.ToggleLineCommentFull="toggleLineComment-full",t.ToggleMultilineComment="toggleMultilineComment",t.ToggleMultilineCommentFull="toggleMultilineComment-full",t.CommentSelection="commentSelection",t.CommentSelectionFull="commentSelection-full",t.UncommentSelection="uncommentSelection",t.UncommentSelectionFull="uncommentSelection-full",t.PrepareCallHierarchy="prepareCallHierarchy",t.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",t.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",t.ProvideInlayHints="provideInlayHints",t.WatchChange="watchChange",t))(Ype||{}),OLe=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(OLe||{}),jLe=(t=>(t.FixedPollingInterval="FixedPollingInterval",t.PriorityPollingInterval="PriorityPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t.UseFsEvents="UseFsEvents",t.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",t))(jLe||{}),VLe=(t=>(t.UseFsEvents="UseFsEvents",t.FixedPollingInterval="FixedPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t))(VLe||{}),HLe=(t=>(t.FixedInterval="FixedInterval",t.PriorityInterval="PriorityInterval",t.DynamicPriority="DynamicPriority",t.FixedChunkSize="FixedChunkSize",t))(HLe||{}),KLe=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(KLe||{}),WLe=(t=>(t.None="None",t.Block="Block",t.Smart="Smart",t))(WLe||{}),GLe=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(GLe||{}),JLe=(t=>(t.None="None",t.Preserve="Preserve",t.ReactNative="ReactNative",t.React="React",t))(JLe||{}),$Le=(t=>(t.None="None",t.CommonJS="CommonJS",t.AMD="AMD",t.UMD="UMD",t.System="System",t.ES6="ES6",t.ES2015="ES2015",t.ESNext="ESNext",t))($Le||{}),ULe=(t=>(t.Classic="Classic",t.Node="Node",t))(ULe||{}),qLe=(t=>(t.Crlf="Crlf",t.Lf="Lf",t))(qLe||{}),ZLe=(t=>(t.ES3="ES3",t.ES5="ES5",t.ES6="ES6",t.ES2015="ES2015",t.ES2016="ES2016",t.ES2017="ES2017",t.ES2018="ES2018",t.ES2019="ES2019",t.ES2020="ES2020",t.ES2021="ES2021",t.ES2022="ES2022",t.ESNext="ESNext",t))(ZLe||{}),YLe=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(YLe||{})}}),XLe={};h(XLe,{ClassificationType:()=>YLe,CommandTypes:()=>Ype,CompletionTriggerKind:()=>KLe,IndentStyle:()=>WLe,JsxEmit:()=>JLe,ModuleKind:()=>$Le,ModuleResolutionKind:()=>ULe,NewLineKind:()=>qLe,OrganizeImportsMode:()=>OLe,PollingWatchKind:()=>HLe,ScriptTarget:()=>ZLe,SemicolonPreference:()=>GLe,WatchDirectoryKind:()=>VLe,WatchFileKind:()=>jLe});var vQt=o({"src/server/_namespaces/ts.server.protocol.ts"(){QLe()}});function jK(t){return t[0]==="^"||(t.includes("walkThroughSnippet:/")||t.includes("untitled:/"))&&Fc(t)[0]==="^"||t.includes(":^")&&!t.includes(nl)}function Fct(t){return!t||HK(t)?x5.ThrowNoProject():t}function CQt(t){H.assert(typeof t=="number",`Expected position ${t} to be a number.`),H.assert(t>=0,"Expected position to be non-negative.")}function bQt(t){H.assert(typeof t.line=="number",`Expected line ${t.line} to be a number.`),H.assert(typeof t.offset=="number",`Expected offset ${t.offset} to be a number.`),H.assert(t.line>0,`Expected line to be non-${t.line===0?"zero":"negative"}`),H.assert(t.offset>0,`Expected offset to be non-${t.offset===0?"zero":"negative"}`)}var Qpe,Xpe,yQt=o({"src/server/scriptInfo.ts"(){Yv(),g9(),Qpe=class{constructor(t,u,s){this.host=t,this.info=u,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=s||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(t){this.svc=void 0,this.text=t,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(t,u,s){this.switchToScriptVersionCache().edit(t,u-t,s),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(t){return H.assert(t!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=uw(this.svc.getSnapshot())),this.text!==t?(this.useText(t),this.ownFileText=!1,!0):!1}reloadWithFileText(t){const{text:u,fileSize:s}=t||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(t):{text:"",fileSize:void 0},d=this.reload(u);return this.fileSize=s,this.ownFileText=!t||t===this.info.fileName,d}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var t;return((t=this.tryUseScriptVersionCache())==null?void 0:t.getSnapshot())||(this.textSnapshot??(this.textSnapshot=ZQ.fromString(H.checkDefined(this.text))))}getAbsolutePositionAndLineText(t){const u=this.tryUseScriptVersionCache();if(u)return u.getAbsolutePositionAndLineText(t);const s=this.getLineMap();return t<=s.length?{absolutePosition:s[t-1],lineText:this.text.substring(s[t-1],s[t])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(t){const u=this.tryUseScriptVersionCache();if(u)return u.lineToTextSpan(t);const s=this.getLineMap(),d=s[t],f=t+1u===void 0?u=this.host.readFile(s)||"":u;if(!hk(this.info.fileName)){const f=this.host.getFileSize?this.host.getFileSize(s):d().length;if(f>Zee)return H.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${s} for info ${this.info.fileName}: fileSize: ${f}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(s,f),{text:"",fileSize:f}}return{text:d()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=lte.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=lte.fromString(H.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(H.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return H.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=t7(H.checkDefined(this.text)))}getLineInfo(){const t=this.tryUseScriptVersionCache();if(t)return{getLineCount:()=>t.getLineCount(),getLineText:s=>t.getAbsolutePositionAndLineText(s+1).lineText};const u=this.getLineMap();return Hde(this.text,u)}},Xpe=class{constructor(t,u,s,d,f,p){this.host=t,this.fileName=u,this.scriptKind=s,this.hasMixedContent=d,this.path=f,this.containingProjects=[],this.isDynamic=jK(u),this.textStorage=new Qpe(t,this,p),(d||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=s||uZ(u)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(t){this.textStorage.isOpen=!0,t!==void 0&&this.textStorage.reload(t)&&this.markContainingProjectsAsDirty()}close(t=!0){this.textStorage.isOpen=!1,t&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){H.assert(!!this.containingProjects.length);const t=this.containingProjects[0],u=this.host.realpath(this.path);u&&(this.realpath=t.toPath(u),this.realpath!==this.path&&t.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(t){const u=!this.isAttached(t);return u&&(this.containingProjects.push(t),t.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),t.onFileAddedOrRemoved(this.isSymlink())),u}isAttached(t){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===t;case 2:return this.containingProjects[0]===t||this.containingProjects[1]===t;default:return Ft(this.containingProjects,t)}}detachFromProject(t){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===t?(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Oy(this.containingProjects,t)&&t.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const t of this.containingProjects){Zv(t)&&t.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const u=t.getRootFilesMap().get(this.path);t.removeFile(this,!1,!1),t.onFileAddedOrRemoved(this.isSymlink()),u&&!kw(t)&&t.addMissingFileRoot(u.fileName)}gu(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return x5.ThrowNoProject();case 1:return Fct(this.containingProjects[0]);default:let t,u,s,d,f;for(let p=0;p!t.isOrphan())}isContainedByBackgroundProject(){return qe(this.containingProjects,HK)}lineToTextSpan(t){return this.textStorage.lineToTextSpan(t)}lineOffsetToPosition(t,u,s){return this.textStorage.lineOffsetToPosition(t,u,s)}positionToLineOffset(t){CQt(t);const u=this.textStorage.positionToLineOffset(t);return bQt(u),u}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ja(this.sourceMapFilePath)&&(Om(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Act(t,u){if(t===u||(t||Jc).length===0&&(u||Jc).length===0)return!0;const s=new Map;let d=0;for(const f of t)s.get(f)!==!0&&(s.set(f,!0),d++);for(const f of u){const p=s.get(f);if(p===void 0)return!1;p===!0&&(s.set(f,!1),d--)}return d===0}function kQt(t,u){return t.enable!==u.enable||!Act(t.include,u.include)||!Act(t.exclude,u.exclude)}function FQt(t,u){return Av(t)!==Av(u)}function AQt(t,u){return t===u?!1:!Hn(t,u)}var Gee,ege,SQt=o({"src/server/typingsCache.ts"(){Yv(),g9(),Gee={isKnownTypesPackageName:sg,installPackage:lo,enqueueInstallTypingsRequest:Ms,attach:Ms,onProjectClosed:Ms,globalTypingsCacheLocation:void 0},ege=class{constructor(t){this.installer=t,this.perProjectCache=new Map}isKnownTypesPackageName(t){return this.installer.isKnownTypesPackageName(t)}installPackage(t){return this.installer.installPackage(t)}enqueueInstallTypingsForProject(t,u,s){const d=t.getTypeAcquisition();if(!d||!d.enable)return;const f=this.perProjectCache.get(t.getProjectName());(s||!f||kQt(d,f.typeAcquisition)||FQt(t.getCompilationSettings(),f.compilerOptions)||AQt(u,f.unresolvedImports))&&(this.perProjectCache.set(t.getProjectName(),{compilerOptions:t.getCompilationSettings(),typeAcquisition:d,typings:f?f.typings:Jc,unresolvedImports:u,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(t,d,u))}updateTypingsForProject(t,u,s,d,f){const p=Lh(f);return this.perProjectCache.set(t,{compilerOptions:u,typeAcquisition:s,typings:p,unresolvedImports:d,poisoned:!1}),!s||!s.enable?Jc:p}onProjectClosed(t){this.perProjectCache.delete(t.getProjectName()),this.installer.onProjectClosed(t)}}}});function VK(t,u=!1){const s={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const d of t){const f=u?d.textStorage.getTelemetryFileSize():0;switch(d.scriptKind){case 1:s.js+=1,s.jsSize+=f;break;case 2:s.jsx+=1,s.jsxSize+=f;break;case 3:Xd(d.fileName)?(s.dts+=1,s.dtsSize+=f):(s.ts+=1,s.tsSize+=f);break;case 4:s.tsx+=1,s.tsxSize+=f;break;case 7:s.deferred+=1,s.deferredSize+=f;break}}return s}function BQt(t){const u=VK(t.getScriptInfos());return u.js>0&&u.ts===0&&u.tsx===0}function eNe(t){const u=VK(t.getRootScriptInfos());return u.ts===0&&u.tsx===0}function tNe(t){const u=VK(t.getScriptInfos());return u.ts===0&&u.tsx===0}function iNe(t){return!t.some(u=>Pl(u,".ts")&&!Xd(u)||Pl(u,".tsx"))}function nNe(t){return t.generatedFilePath!==void 0}function wQt(t,u){var s,d;const f=t.getSourceFiles();(s=$n)==null||s.push($n.Phase.Session,"getUnresolvedImports",{count:f.length});const p=t.getTypeChecker().getAmbientModules().map(v=>G4(v.getName())),E=mi(Ku(f,v=>TQt(t,v,p,u)));return(d=$n)==null||d.pop(),E}function TQt(t,u,s,d){return Vl(d,u.path,()=>{let f;return t.forEachResolvedModule(({resolvedModule:p},E)=>{(!p||!kP(p.extension))&&!Md(E)&&!s.some(v=>v===E)&&(f=Ei(f,rH(E).packageName))},u),f||Jc})}function kw(t){return t.projectKind===0}function Zv(t){return t.projectKind===1}function tge(t){return t.projectKind===2}function HK(t){return t.projectKind===3||t.projectKind===4}var iz,Hk,ige,nge,uge,rge,age,Jee,LQt=o({"src/server/project.ts"(){Yv(),Yv(),g9(),iz=(t=>(t[t.Inferred=0]="Inferred",t[t.Configured=1]="Configured",t[t.External=2]="External",t[t.AutoImportProvider=3]="AutoImportProvider",t[t.Auxiliary=4]="Auxiliary",t))(iz||{}),Hk=class H6t{constructor(u,s,d,f,p,E,v,b,B,k,T){switch(this.projectKind=s,this.projectService=d,this.documentRegistry=f,this.compilerOptions=v,this.compileOnSaveEnabled=b,this.watchOptions=B,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=sg,this.dirty=!1,this.typingFiles=Jc,this.moduleSpecifierCache=pNe(this),this.createHash=wo(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=a3.nonRelativeModuleNameForTypingCache,this.projectName=u,this.directoryStructureHost=k,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(T),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new Mme(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(p||Av(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=hee(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),d.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:H.assertNever(d.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const M=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=z=>this.writeLog(z):M.trace&&(this.trace=z=>M.trace(z)),this.realpath=wo(M,M.realpath),this.resolutionCache=J1e(this,this.currentDirectory,!0),this.languageService=Q8e(this,this.documentRegistry,this.projectService.serverMode),E&&this.disableLanguageService(E),this.markAsDirty(),HK(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(u){}isNonTsProject(){return Wm(this),tNe(this)}isJsOnlyProject(){return Wm(this),BQt(this)}static resolveModule(u,s,d,f){return H6t.importServicePluginSync({name:u},[s],d,f).resolvedModule}static importServicePluginSync(u,s,d,f){H.assertIsDefined(d.require);let p,E;for(const v of s){const b=U1(d.resolvePath(hr(v,"node_modules")));f(`Loading ${u.name} from ${v} (resolved to ${b})`);const B=d.require(b,u.name);if(!B.error){E=B.module;break}const k=B.error.stack||B.error.message||JSON.stringify(B.error);(p??(p=[])).push(`Failed to load module '${u.name}' from ${b}: ${k}`)}return{pluginConfigEntry:u,resolvedModule:E,errorLogs:p}}static async importServicePluginAsync(u,s,d,f){H.assertIsDefined(d.importPlugin);let p,E;for(const v of s){const b=hr(v,"node_modules");f(`Dynamically importing ${u.name} from ${v} (resolved to ${b})`);let B;try{B=await d.importPlugin(b,u.name)}catch(T){B={module:void 0,error:T}}if(!B.error){E=B.module;break}const k=B.error.stack||B.error.message||JSON.stringify(B.error);(p??(p=[])).push(`Failed to dynamically import module '${u.name}' from ${b}: ${k}`)}return{pluginConfigEntry:u,resolvedModule:E,errorLogs:p}}isKnownTypesPackageName(u){return this.typingsCache.isKnownTypesPackageName(u)}installPackage(u){return this.typingsCache.installPackage({...u,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=Cle(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return _t;let u;return this.rootFilesMap.forEach(s=>{(this.languageServiceEnabled||s.info&&s.info.isScriptOpen())&&(u||(u=[])).push(s.fileName)}),kn(u,this.typingFiles)||_t}getOrCreateScriptInfoAndAttachToProject(u){const s=this.projectService.getOrCreateScriptInfoNotOpenedByClient(u,this.currentDirectory,this.directoryStructureHost);if(s){const d=this.rootFilesMap.get(s.path);d&&d.info!==s&&(this.rootFiles.push(s),d.info=s),s.attachToProject(this)}return s}getScriptKind(u){const s=this.projectService.getScriptInfoForPath(this.toPath(u));return s&&s.scriptKind}getScriptVersion(u){const s=this.projectService.getOrCreateScriptInfoNotOpenedByClient(u,this.currentDirectory,this.directoryStructureHost);return s&&s.getLatestVersion()}getScriptSnapshot(u){const s=this.getOrCreateScriptInfoAndAttachToProject(u);if(s)return s.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const u=dr(Go(this.projectService.getExecutingFilePath()));return hr(u,PO(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(u,s,d,f,p){return this.directoryStructureHost.readDirectory(u,s,d,f,p)}readFile(u){return this.projectService.host.readFile(u)}writeFile(u,s){return this.projectService.host.writeFile(u,s)}fileExists(u){const s=this.toPath(u);return!this.isWatchedMissingFile(s)&&this.directoryStructureHost.fileExists(u)}resolveModuleNameLiterals(u,s,d,f,p,E){return this.resolutionCache.resolveModuleNameLiterals(u,s,d,f,p,E)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(u,s,d,f,p,E){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(u,s,d,f,p,E)}resolveLibrary(u,s,d,f){return this.resolutionCache.resolveLibrary(u,s,d,f)}directoryExists(u){return this.directoryStructureHost.directoryExists(u)}getDirectories(u){return this.directoryStructureHost.getDirectories(u)}getCachedDirectoryStructureHost(){}toPath(u){return H0(u,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(u,s,d){return this.projectService.watchFactory.watchDirectory(u,s,d,this.projectService.getWatchOptions(this),sd.FailedLookupLocations,this)}watchAffectingFileLocation(u,s){return this.projectService.watchFactory.watchFile(u,s,2e3,this.projectService.getWatchOptions(this),sd.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(u,s,d){return this.projectService.watchFactory.watchDirectory(u,s,d,this.projectService.getWatchOptions(this),sd.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(u){return this.projectService.openFiles.has(u)}writeLog(u){this.projectService.logger.info(u)}log(u){this.writeLog(u)}error(u){this.projectService.logger.msg(u,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return ei(this.projectErrors,u=>!u.file)||Jc}getAllProjectErrors(){return this.projectErrors||Jc}setProjectErrors(u){this.projectErrors=u}getLanguageService(u=!0){return u&&Wm(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(u,s){return this.projectService.getDocumentPositionMapper(this,u,s)}getSourceFileLike(u){return this.projectService.getSourceFileLike(u,this)}shouldEmitFile(u){return u&&!u.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(u.path)}getCompileOnSaveAffectedFileList(u){return this.languageServiceEnabled?(Wm(this),this.builderState=Vp.create(this.program,this.builderState,!0),Ui(Vp.getFilesAffectedBy(this.builderState,this.program,u.path,this.cancellationToken,this.projectService.host),s=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(s.path))?s.fileName:void 0)):[]}emitFile(u,s){if(!this.languageServiceEnabled||!this.shouldEmitFile(u))return{emitSkipped:!0,diagnostics:Jc};const{emitSkipped:d,diagnostics:f,outputFiles:p}=this.getLanguageService().getEmitOutput(u.fileName);if(!d){for(const E of p){const v=$a(E.name,this.currentDirectory);s(v,E.text,E.writeByteOrderMark)}if(this.builderState&&l4(this.compilerOptions)){const E=p.filter(v=>Xd(v.name));if(E.length===1){const v=this.program.getSourceFile(u.fileName),b=this.projectService.host.createHash?this.projectService.host.createHash(E[0].text):FN(E[0].text);Vp.updateSignatureOfFile(this.builderState,b,v.resolvedPath)}}}return{emitSkipped:d,diagnostics:f}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const u of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(u.fileName);this.program.forEachResolvedProjectReference(u=>this.detachScriptInfoFromProject(u.sourceFile.fileName)),this.program=void 0}}disableLanguageService(u){this.languageServiceEnabled&&(H.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=u,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(u){return!u||!u.include?u:{...u,include:this.removeExistingTypings(u.include)}}getExternalFiles(u){return Lh(Ku(this.plugins,s=>{if(typeof s.module.getExternalFiles=="function")try{return s.module.getExternalFiles(this,u||0)}catch(d){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${d}`),d.stack&&this.projectService.logger.info(d.stack)}}))}getSourceFile(u){if(this.program)return this.program.getSourceFileByPath(u)}getSourceFileOrConfigFile(u){const s=this.program.getCompilerOptions();return u===s.configFilePath?s.configFile:this.getSourceFile(u)}close(){this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),L(this.externalFiles,u=>this.detachScriptInfoIfNotRoot(u));for(const u of this.rootFiles)u.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(uf(this.missingFilesMap,dg),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(u){const s=this.projectService.getScriptInfo(u);s&&!this.isRoot(s)&&s.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(u=>u.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Kt(this.program.getSourceFiles(),u=>{const s=this.projectService.getScriptInfoForPath(u.resolvedPath);return H.assert(!!s,"getScriptInfo",()=>`scriptInfo for a file '${u.fileName}' Path: '${u.path}' / '${u.resolvedPath}' is missing.`),s}):this.rootFiles}getExcludedFiles(){return Jc}getFileNames(u,s){if(!this.program)return[];if(!this.languageServiceEnabled){let f=this.getRootFiles();if(this.compilerOptions){const p=X8e(this.compilerOptions);p&&(f||(f=[])).push(p)}return f}const d=[];for(const f of this.program.getSourceFiles())u&&this.program.isSourceFileFromExternalLibrary(f)||d.push(f.fileName);if(!s){const f=this.program.getCompilerOptions().configFile;if(f&&(d.push(f.fileName),f.extendedSourceFiles))for(const p of f.extendedSourceFiles)d.push(p)}return d}getFileNamesWithRedirectInfo(u){return this.getFileNames().map(s=>({fileName:s,isSourceOfProjectReferenceRedirect:u&&this.isSourceOfProjectReferenceRedirect(s)}))}hasConfigFile(u){if(this.program&&this.languageServiceEnabled){const s=this.program.getCompilerOptions().configFile;if(s){if(u===s.fileName)return!0;if(s.extendedSourceFiles){for(const d of s.extendedSourceFiles)if(u===d)return!0}}}return!1}containsScriptInfo(u){if(this.isRoot(u))return!0;if(!this.program)return!1;const s=this.program.getSourceFileByPath(u.path);return!!s&&s.resolvedPath===u.path}containsFile(u,s){const d=this.projectService.getScriptInfoForNormalizedPath(u);return d&&(d.isScriptOpen()||!s)?this.containsScriptInfo(d):!1}isRoot(u){var s;return this.rootFilesMap&&((s=this.rootFilesMap.get(u.path))==null?void 0:s.info)===u}addRoot(u,s){H.assert(!this.isRoot(u)),this.rootFiles.push(u),this.rootFilesMap.set(u.path,{fileName:s||u.fileName,info:u}),u.attachToProject(this),this.markAsDirty()}addMissingFileRoot(u){const s=this.projectService.toPath(u);this.rootFilesMap.set(s,{fileName:u}),this.markAsDirty()}removeFile(u,s,d){this.isRoot(u)&&this.removeRoot(u),s?this.resolutionCache.removeResolutionsOfFile(u.path):this.resolutionCache.invalidateResolutionOfFile(u.path),this.cachedUnresolvedImportsPerFile.delete(u.path),d&&u.detachFromProject(this),this.markAsDirty()}registerFileUpdate(u){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(u)}markFileAsDirty(u){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(u)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var u;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(u=this.autoImportProviderHost)==null||u.markAsDirty()}onPackageJsonChange(u){var s;(s=this.packageJsonsForAutoImport)!=null&&s.has(u)&&(this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty())}onFileAddedOrRemoved(u){this.hasAddedorRemovedFiles=!0,u&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateGraph(){var u,s,d,f,p;(u=$n)==null||u.push($n.Phase.Session,"updateGraph",{name:this.projectName,kind:iz[this.projectKind]}),(s=dh)==null||s.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const E=this.updateGraphWorker(),v=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const b=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||Jc;for(const k of b)this.cachedUnresolvedImportsPerFile.delete(k);this.languageServiceEnabled&&this.projectService.serverMode===0?((E||b.length)&&(this.lastCachedUnresolvedImportsList=wQt(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,v)):this.lastCachedUnresolvedImportsList=void 0;const B=this.projectProgramVersion===0&&E;return E&&this.projectProgramVersion++,v&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(d=this.autoImportProviderHost)==null||d.markAsDirty()),B&&this.getPackageJsonAutoImportProvider(),(f=dh)==null||f.logStopUpdateGraph(),(p=$n)==null||p.pop(),!E}updateTypingFiles(u){Z$(u,this.typingFiles,vN(!this.useCaseSensitiveFileNames()),Ms,s=>this.detachScriptInfoFromProject(s))&&(this.typingFiles=u,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&uf(this.typingWatchers,dg),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:$Q})}watchTypingLocations(u){if(!u){this.typingWatchers.isInvoked=!1;return}if(!u.length){this.closeWatchingTypingLocations();return}const s=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const d=(f,p)=>{const E=this.toPath(f);s.delete(E),this.typingWatchers.has(E)||this.typingWatchers.set(E,p==="FileWatcher"?this.projectService.watchFactory.watchFile(f,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),sd.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(f,v=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Pl(v,".json"))return this.writeLog("Ignoring files that are not *.json");if(fv(v,hr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),sd.TypingInstallerLocationDirectory,this))};for(const f of u){const p=Fc(f);if(p==="package.json"||p==="bower.json"){d(f,"FileWatcher");continue}if(WE(this.currentDirectory,f,this.currentDirectory,!this.useCaseSensitiveFileNames())){const E=f.indexOf(nl,this.currentDirectory.length+1);d(E!==-1?f.substr(0,E):f,"DirectoryWatcher");continue}if(WE(this.projectService.typingsInstaller.globalTypingsCacheLocation,f,this.currentDirectory,!this.useCaseSensitiveFileNames())){d(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}d(f,"DirectoryWatcher")}s.forEach((f,p)=>{f.close(),this.typingWatchers.delete(p)})}getCurrentProgram(){return this.program}removeExistingTypings(u){const s=IY(this.getCompilerOptions(),this.directoryStructureHost);return u.filter(d=>!s.includes(d))}updateGraphWorker(){var u,s;const d=this.languageService.getCurrentProgram();H.assert(d===this.program),H.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const f=V0(),{hasInvalidatedResolutions:p,hasInvalidatedLibResolutions:E}=this.resolutionCache.createHasInvalidatedResolutions(sg,sg);this.hasInvalidatedResolutions=p,this.hasInvalidatedLibResolutions=E,this.resolutionCache.startCachingPerDirectoryResolution(),this.program=this.languageService.getProgram(),this.dirty=!1,(u=$n)==null||u.push($n.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,d),(s=$n)==null||s.pop(),H.assert(d===void 0||this.program!==void 0);let v=!1;if(this.program&&(!d||this.program!==d&&this.program.structureIsReused!==2)){if(v=!0,d){for(const k of d.getSourceFiles()){const T=this.program.getSourceFileByPath(k.resolvedPath);(!T||k.resolvedPath===k.path&&T.resolvedPath!==k.path)&&this.detachScriptInfoFromProject(k.fileName,!!this.program.getSourceFileByPath(k.path),!0)}d.forEachResolvedProjectReference(k=>{this.program.getResolvedProjectReferenceByPath(k.sourceFile.path)||this.detachScriptInfoFromProject(k.sourceFile.fileName,void 0,!0)})}if(p1e(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),k=>this.addMissingFileWatcher(k)),this.generatedFilesMap){const k=b0(this.compilerOptions);nNe(this.generatedFilesMap)?(!k||!this.isValidGeneratedFileWatcher(Eh(k)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():k?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((T,M)=>{const z=this.program.getSourceFileByPath(M);(!z||z.resolvedPath!==M||!this.isValidGeneratedFileWatcher(Tq(z.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),T))&&(Om(T),this.generatedFilesMap.delete(M))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||d&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&d&&this.program&&$_(this.changedFilesForExportMapCache,k=>{const T=d.getSourceFileByPath(k),M=this.program.getSourceFileByPath(k);return!T||!M?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(T,M,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const b=this.externalFiles||Jc;this.externalFiles=this.getExternalFiles(),Z$(this.externalFiles,b,vN(!this.useCaseSensitiveFileNames()),k=>{const T=this.projectService.getOrCreateScriptInfoNotOpenedByClient(k,this.currentDirectory,this.directoryStructureHost);T==null||T.attachToProject(this)},k=>this.detachScriptInfoFromProject(k));const B=V0()-f;return this.sendPerformanceEvent("UpdateGraph",B),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${v}${this.program?` structureIsReused:: ${aU[this.program.structureIsReused]}`:""} Elapsed: ${B}ms`),this.projectService.logger.isTestLogger?this.program!==d?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==d&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),v}sendPerformanceEvent(u,s){this.projectService.sendPerformanceEvent(u,s)}detachScriptInfoFromProject(u,s,d){const f=this.projectService.getScriptInfo(u);f&&(f.detachFromProject(this),s||this.resolutionCache.removeResolutionsOfFile(f.path,d))}addMissingFileWatcher(u){var s;if(Zv(this)){const f=this.projectService.configFileExistenceInfoCache.get(u);if((s=f==null?void 0:f.config)!=null&&s.projects.has(this.canonicalConfigFilePath))return XB}const d=this.projectService.watchFactory.watchFile(u,(f,p)=>{Zv(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(f,u,p),p===0&&this.missingFilesMap.has(u)&&(this.missingFilesMap.delete(u),d.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),sd.MissingFile,this);return d}isWatchedMissingFile(u){return!!this.missingFilesMap&&this.missingFilesMap.has(u)}addGeneratedFileWatch(u,s){if(b0(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(u));else{const d=this.toPath(s);if(this.generatedFilesMap){if(nNe(this.generatedFilesMap)){H.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(d))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(d,this.createGeneratedFileWatcher(u))}}createGeneratedFileWatcher(u){return{generatedFilePath:this.toPath(u),watcher:this.projectService.watchFactory.watchFile(u,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),sd.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(u,s){return this.toPath(u)===s.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(nNe(this.generatedFilesMap)?Om(this.generatedFilesMap):uf(this.generatedFilesMap,Om),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(u){const s=this.projectService.getScriptInfoForPath(this.toPath(u));return s&&!s.isAttached(this)?x5.ThrowProjectDoesNotContainDocument(u,this):s}getScriptInfo(u){return this.projectService.getScriptInfo(u)}filesToString(u){return this.filesToStringWorker(u,!0,!1)}filesToStringWorker(u,s,d){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending +`:d.prefix}}getInsertNodeAfterOptionsWorker(u){switch(u.kind){case 263:case 267:return{prefix:this.newLineCharacter,suffix:this.newLineCharacter};case 260:case 11:case 80:return{prefix:", "};case 303:return{suffix:","+this.newLineCharacter};case 95:return{prefix:" "};case 169:return{};default:return H.assert(ia(u)||OU(u)),{suffix:this.newLineCharacter}}}insertName(u,s,d){if(H.assert(!s.name),s.kind===219){const f=a0(s,39,u),p=a0(s,21,u);p?(this.insertNodesAt(u,p.getStart(u),[q.createToken(100),q.createIdentifier(d)],{joiner:" "}),lD(this,u,f)):(this.insertText(u,Pn(s.parameters).getStart(u),`function ${d}(`),this.replaceRange(u,f,q.createToken(22))),s.body.kind!==241&&(this.insertNodesAt(u,s.body.getStart(u),[q.createToken(19),q.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(u,s.body.end,[q.createToken(27),q.createToken(20)],{joiner:" "}))}else{const f=a0(s,s.kind===218?100:86,u).end;this.insertNodeAt(u,f,q.createIdentifier(d),{prefix:" "})}}insertExportModifier(u,s){this.insertText(u,s.getStart(u),"export ")}insertImportSpecifierAtIndex(u,s,d,f){const p=d.elements[f-1];p?this.insertNodeInListAfter(u,p,s):this.insertNodeBefore(u,d.elements[0],s,!q4(d.elements[0].getStart(),d.parent.parent.getStart(),u))}insertNodeInListAfter(u,s,d,f=dd.SmartIndenter.getContainingList(s,u)){if(!f){H.fail("node is not a list element");return}const p=j8(f,s);if(p<0)return;const E=s.getEnd();if(p!==f.length-1){const v=Ca(u,s.end);if(v&&zpe(s,v)){const b=f[p+1],B=zlt(u.text,b.getFullStart()),k=`${Uo(v.kind)}${u.text.substring(v.end,B)}`;this.insertNodesAt(u,B,[d],{suffix:k})}}else{const v=s.getStart(u),b=tp(v,u);let B,k=!1;if(f.length===1)B=28;else{const T=td(s.pos,u);B=zpe(s,T)?T.kind:28,k=tp(f[p-1].getStart(u),u)!==b}if(JZt(u.text,s.end)&&(k=!0),k){this.replaceRange(u,s4(E),q.createToken(B));const T=dd.SmartIndenter.findFirstNonWhitespaceColumn(b,v,u,this.formatContext.options);let M=gs(u.text,E,!0,!1);for(;M!==E&&Z1(u.text.charCodeAt(M-1));)M--;this.replaceRange(u,s4(M),d,{indentation:T,prefix:this.newLineCharacter})}else this.replaceRange(u,s4(E),d,{prefix:`${Uo(B)} `})}}parenthesizeExpression(u,s){this.replaceRange(u,Tle(s),q.createParenthesizedExpression(s))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:u,sourceFile:s})=>{const[d,f]=YZt(u,s);if(d!==void 0&&f!==void 0){const p=Ipe(u).length===0,E=q4(d,f,s);p&&E&&d!==f-1&&this.deleteRange(s,s4(d,f-1)),E&&this.insertText(s,f-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const u=new Set;for(const{sourceFile:s,node:d}of this.deletedNodes)this.deletedNodes.some(f=>f.sourceFile===s&&q9e(f.node,d))||(Ha(d)?this.deleteRange(s,Lle(s,d)):mLe.deleteDeclaration(this,u,s,d));u.forEach(s=>{const d=s.getSourceFile(),f=dd.SmartIndenter.getContainingList(s,d);if(s!==Cr(f))return;const p=Ze(f,E=>!u.has(E),f.length-2);p!==-1&&this.deleteRange(d,{pos:f[p].end,end:cLe(d,f[p+1])})})}getChanges(u){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const s=Ope.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,u);return this.newFileChanges&&this.newFileChanges.forEach((d,f)=>{s.push(Ope.newFileChanges(f,d,this.newLineCharacter,this.formatContext))}),s}createNewFile(u,s,d){this.insertStatementsInNewFile(s,d,u)}},(t=>{function u(v,b,B,k){return qi(vN(v,T=>T.sourceFile.path),T=>{const M=T[0].sourceFile,z=oc(T,(J,K)=>J.range.pos-K.range.pos||J.range.end-K.range.end);for(let J=0;J`${JSON.stringify(z[J].range)} and ${JSON.stringify(z[J+1].range)}`);const j=qi(z,J=>{const K=qx(J.range),Y=J.kind===1?zn(Wl(J.node))??J.sourceFile:J.kind===2?zn(Wl(J.nodes[0]))??J.sourceFile:J.sourceFile,oe=f(J,Y,M,b,B,k);if(!(K.length===oe.length&&MSe(Y.text,oe,K.start)))return VH(K,oe)});return j.length>0?{fileName:M.fileName,textChanges:j}:void 0})}t.getTextChangesFromChanges=u;function s(v,b,B,k){const T=d(sZ(v),b,B,k);return{fileName:v,textChanges:[VH(d1(0,0),T)],isNewFile:!0}}t.newFileChanges=s;function d(v,b,B,k){const T=ju(b,j=>j.statements.map(J=>J===4?"":E(J,j.oldFile,B).text)).join(B),M=KV("any file name",T,{languageVersion:99,jsDocParsingMode:1},!0,v),z=dd.formatDocument(M,k);return dLe(T,z)+B}t.newFileChangesWorker=d;function f(v,b,B,k,T,M){var z;if(v.kind===0)return"";if(v.kind===3)return v.text;const{options:j={},range:{pos:J}}=v,K=se=>p(se,b,B,J,j,k,T,M),Y=v.kind===2?v.nodes.map(se=>D8(K(se),k)).join(((z=v.options)==null?void 0:z.joiner)||k):K(v.node),oe=j.indentation!==void 0||tp(J,b)===J?Y:Y.replace(/^\s+/,"");return(j.prefix||"")+oe+(!j.suffix||sc(oe,j.suffix)?"":j.suffix)}function p(v,b,B,k,{indentation:T,prefix:M,delta:z},j,J,K){const{node:Y,text:oe}=E(v,b,j);K&&K(Y,oe);const se=jX(J,b),ge=T!==void 0?T:dd.SmartIndenter.getIndentation(k,B,se,M===j||tp(k,b)===k);z===void 0&&(z=dd.SmartIndenter.shouldIndentChildNode(se,v)&&se.indentSize||0);const ae={text:oe,getLineAndCharacterOfPosition(ne){return s0(this,ne)}},Ce=dd.formatNodeGivenIndentation(Y,ae,b.languageVariant,ge,z,{...J,options:se});return dLe(oe,Ce)}function E(v,b,B){const k=Ilt(B),T=eK(B);return Gv({newLine:T,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},k).writeNode(4,v,b,k),{text:k.getText(),node:Rpe(v)}}t.getNonformattedText=E})(Ope||(Ope={})),jlt={...Dg,factory:mV(Dg.factory.flags|1,Dg.factory.baseFactory)},(t=>{function u(p,E,v,b){switch(b.kind){case 169:{const z=b.parent;q0(z)&&z.parameters.length===1&&!a0(z,21,v)?p.replaceNodeWithText(v,b,"()"):IK(p,E,v,b);break}case 272:case 271:const B=v.imports.length&&b===Pn(v.imports).parent||b===Le(v.statements,tk);lD(p,v,b,{leadingTriviaOption:B?0:lm(b)?2:3});break;case 208:const k=b.parent;k.kind===207&&b!==Cr(k.elements)?lD(p,v,b):IK(p,E,v,b);break;case 260:f(p,E,v,b);break;case 168:IK(p,E,v,b);break;case 276:const M=b.parent;M.elements.length===1?d(p,v,M):IK(p,E,v,b);break;case 274:d(p,v,b);break;case 27:lD(p,v,b,{trailingTriviaOption:0});break;case 100:lD(p,v,b,{leadingTriviaOption:0});break;case 263:case 262:lD(p,v,b,{leadingTriviaOption:lm(b)?2:3});break;default:b.parent?n_(b.parent)&&b.parent.name===b?s(p,v,b.parent):Mo(b.parent)&&kt(b.parent.arguments,b)?IK(p,E,v,b):lD(p,v,b):lD(p,v,b)}}t.deleteDeclaration=u;function s(p,E,v){if(!v.namedBindings)lD(p,E,v.parent);else{const b=v.name.getStart(E),B=Ca(E,v.name.end);if(B&&B.kind===28){const k=gs(E.text,B.end,!1,!0);p.deleteRange(E,{pos:b,end:k})}else lD(p,E,v.name)}}function d(p,E,v){if(v.parent.name){const b=H.checkDefined(Ca(E,v.pos-1));p.deleteRange(E,{pos:b.getStart(E),end:v.end})}else{const b=Fv(v,272);lD(p,E,b)}}function f(p,E,v,b){const{parent:B}=b;if(B.kind===299){p.deleteNodeRange(v,a0(B,21,v),a0(B,22,v));return}if(B.declarations.length!==1){IK(p,E,v,b);return}const k=B.parent;switch(k.kind){case 250:case 249:p.replaceNode(v,b,q.createObjectLiteralExpression());break;case 248:lD(p,v,B);break;case 243:lD(p,v,k,{leadingTriviaOption:lm(k)?2:3});break;default:H.assertNever(k)}}})(mLe||(mLe={}))}}),iu={};h(iu,{ChangeTracker:()=>Olt,LeadingTriviaOption:()=>hLe,TrailingTriviaOption:()=>fLe,applyChanges:()=>dLe,assignPositionsToNode:()=>Rpe,createWriter:()=>Ilt,deleteNode:()=>lD,isThisTypeAnnotatable:()=>$Zt,isValidLocationToAddComment:()=>Rlt});var nYt=o({"src/services/_namespaces/ts.textChanges.ts"(){iYt()}}),pLe,gLe,uYt=o({"src/services/formatting/formattingContext.ts"(){rr(),pLe=(t=>(t[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",t))(pLe||{}),gLe=class{constructor(t,u,s){this.sourceFile=t,this.formattingRequestKind=u,this.options=s}updateContext(t,u,s,d,f){this.currentTokenSpan=H.checkDefined(t),this.currentTokenParent=H.checkDefined(u),this.nextTokenSpan=H.checkDefined(s),this.nextTokenParent=H.checkDefined(d),this.contextNode=H.checkDefined(f),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const t=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,u=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=t===u}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(t){const u=this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line,s=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line;return u===s}BlockIsOnOneLine(t){const u=a0(t,19,this.sourceFile),s=a0(t,20,this.sourceFile);if(u&&s){const d=this.sourceFile.getLineAndCharacterOfPosition(u.getEnd()).line,f=this.sourceFile.getLineAndCharacterOfPosition(s.getStart(this.sourceFile)).line;return d===f}return!1}}}});function ELe(t,u,s,d,f){const p=u===1?Hlt:Vlt;p.setText(t),p.resetTokenState(s);let E=!0,v,b,B,k,T;const M=f({advance:z,readTokenInfo:ae,readEOFTokenRange:ne,isOnToken:ve,isOnEOF:Se,getCurrentLeadingTrivia:()=>v,lastTrailingTriviaWasNewLine:()=>E,skipToEndOf:pe,skipToStartOf:fe,getTokenFullStart:()=>(T==null?void 0:T.token.pos)??p.getTokenStart(),getStartPos:()=>(T==null?void 0:T.token.pos)??p.getTokenStart()});return T=void 0,p.setText(void 0),M;function z(){T=void 0,p.getTokenFullStart()!==s?E=!!b&&Cr(b).kind===4:p.scan(),v=void 0,b=void 0;let Be=p.getTokenFullStart();for(;Be(t[t.None=0]="None",t[t.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",t[t.StopProcessingTokenActions=2]="StopProcessingTokenActions",t[t.InsertSpace=4]="InsertSpace",t[t.InsertNewLine=8]="InsertNewLine",t[t.DeleteSpace=16]="DeleteSpace",t[t.DeleteToken=32]="DeleteToken",t[t.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",t[t.StopAction=3]="StopAction",t[t.ModifySpaceAction=28]="ModifySpaceAction",t[t.ModifyTokenAction=96]="ModifyTokenAction",t))(_Le||{}),DLe=(t=>(t[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines",t))(DLe||{})}});function Klt(){const t=[];for(let Ce=0;Ce<=165;Ce++)Ce!==1&&t.push(Ce);function u(...Ce){return{tokens:t.filter(ne=>!Ce.some(ve=>ve===ne)),isSpecific:!1}}const s={tokens:t,isSpecific:!1},d=tz([...t,3]),f=tz([...t,1]),p=Glt(83,165),E=Glt(30,79),v=[103,104,165,130,142,152],b=[46,47,55,54],B=[9,10,80,21,23,19,110,105],k=[80,21,110,105],T=[80,22,24,105],M=[80,21,110,105],z=[80,22,24,105],j=[2,3],J=[80,...HX],K=d,Y=tz([80,3,86,95,102]),oe=tz([22,3,92,113,98,93]),se=[Ju("IgnoreBeforeComment",s,j,Kee,1),Ju("IgnoreAfterLineComment",2,s,Kee,1),Ju("NotSpaceBeforeColon",s,59,[ea,Wee,Ult],16),Ju("SpaceAfterColon",59,s,[ea,Wee,bYt],4),Ju("NoSpaceBeforeQuestionMark",s,58,[ea,Wee,Ult],16),Ju("SpaceAfterQuestionMarkInConditionalOperator",58,s,[ea,cYt],4),Ju("NoSpaceAfterQuestionMark",58,s,[ea,lYt],16),Ju("NoSpaceBeforeDot",s,[25,29],[ea,zYt],16),Ju("NoSpaceAfterDot",[25,29],s,[ea],16),Ju("NoSpaceBetweenImportParenInImportType",102,21,[ea,vYt],16),Ju("NoSpaceAfterUnaryPrefixOperator",b,B,[ea,Wee],16),Ju("NoSpaceAfterUnaryPreincrementOperator",46,k,[ea],16),Ju("NoSpaceAfterUnaryPredecrementOperator",47,M,[ea],16),Ju("NoSpaceBeforeUnaryPostincrementOperator",T,46,[ea,cct],16),Ju("NoSpaceBeforeUnaryPostdecrementOperator",z,47,[ea,cct],16),Ju("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[ea,Qx],4),Ju("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[ea,Qx],4),Ju("SpaceAfterAddWhenFollowedByPreincrement",40,46,[ea,Qx],4),Ju("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[ea,Qx],4),Ju("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[ea,Qx],4),Ju("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[ea,Qx],4),Ju("NoSpaceAfterCloseBrace",20,[28,27],[ea],16),Ju("NewLineBeforeCloseBraceInBlockContext",d,20,[Zlt],8),Ju("SpaceAfterCloseBrace",20,u(22),[ea,fYt],4),Ju("SpaceBetweenCloseBraceAndElse",20,93,[ea],4),Ju("SpaceBetweenCloseBraceAndWhile",20,117,[ea],4),Ju("NoSpaceBetweenEmptyBraceBrackets",19,20,[ea,ict],16),Ju("SpaceAfterConditionalClosingParen",22,23,[Gee],4),Ju("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Xlt],16),Ju("SpaceAfterStarInGeneratorDeclaration",42,80,[Xlt],4),Ju("SpaceAfterFunctionInFuncDecl",100,s,[Kk],4),Ju("NewLineAfterOpenBraceInBlockContext",19,s,[Zlt],8),Ju("SpaceAfterGetSetInMember",[139,153],80,[Kk],4),Ju("NoSpaceBetweenYieldKeywordAndStar",127,42,[ea,lct],16),Ju("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],s,[ea,lct],4),Ju("NoSpaceBetweenReturnAndSemicolon",107,27,[ea],16),Ju("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],s,[ea],4),Ju("SpaceAfterLetConstInVariableDeclaration",[121,87],s,[ea,FYt],4),Ju("NoSpaceBeforeOpenParenInFuncCall",s,21,[ea,gYt,EYt],16),Ju("SpaceBeforeBinaryKeywordOperator",s,v,[ea,Qx],4),Ju("SpaceAfterBinaryKeywordOperator",v,s,[ea,Qx],4),Ju("SpaceAfterVoidOperator",116,s,[ea,TYt],4),Ju("SpaceBetweenAsyncAndOpenParen",134,21,[xYt,ea],4),Ju("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[ea],4),Ju("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[ea],16),Ju("SpaceBeforeJsxAttribute",s,80,[CYt,ea],4),Ju("SpaceBeforeSlashInJsxOpeningElement",s,44,[act,ea],4),Ju("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[act,ea],16),Ju("NoSpaceBeforeEqualInJsxAttribute",s,64,[uct,ea],16),Ju("NoSpaceAfterEqualInJsxAttribute",64,s,[uct,ea],16),Ju("NoSpaceBeforeJsxNamespaceColon",80,59,[rct],16),Ju("NoSpaceAfterJsxNamespaceColon",59,80,[rct],16),Ju("NoSpaceAfterModuleImport",[144,149],21,[ea],16),Ju("SpaceAfterCertainTypeScriptKeywords",[128,129,86,138,90,94,95,96,139,119,102,120,144,145,123,125,124,148,153,126,156,161,143,140],s,[ea],4),Ju("SpaceBeforeCertainTypeScriptKeywords",s,[96,119,161],[ea],4),Ju("SpaceAfterModuleName",11,19,[AYt],4),Ju("SpaceBeforeArrow",s,39,[ea],4),Ju("SpaceAfterArrow",39,s,[ea],4),Ju("NoSpaceAfterEllipsis",26,80,[ea],16),Ju("NoSpaceAfterOptionalParameters",58,[22,28],[ea,Wee],16),Ju("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[ea,SYt],16),Ju("NoSpaceBeforeOpenAngularBracket",J,30,[ea,Jee],16),Ju("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[ea,Jee],16),Ju("NoSpaceAfterOpenAngularBracket",30,s,[ea,Jee],16),Ju("NoSpaceBeforeCloseAngularBracket",s,32,[ea,Jee],16),Ju("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[ea,Jee,hYt,wYt],16),Ju("SpaceBeforeAt",[22,80],60,[ea],4),Ju("NoSpaceAfterAt",60,s,[ea],16),Ju("SpaceAfterDecorator",s,[128,80,95,90,86,126,125,123,124,139,153,23,42],[kYt],4),Ju("NoSpaceBeforeNonNullAssertionOperator",s,54,[ea,LYt],16),Ju("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[ea,BYt],16),Ju("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[ea],4)],ge=[Ju("SpaceAfterConstructor",137,21,[Wm("insertSpaceAfterConstructor"),ea],4),Ju("NoSpaceAfterConstructor",137,21,[dE("insertSpaceAfterConstructor"),ea],16),Ju("SpaceAfterComma",28,s,[Wm("insertSpaceAfterCommaDelimiter"),ea,FLe,_Yt,DYt],4),Ju("NoSpaceAfterComma",28,s,[dE("insertSpaceAfterCommaDelimiter"),ea,FLe],16),Ju("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Wm("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Kk],4),Ju("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[dE("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Kk],16),Ju("SpaceAfterKeywordInControl",p,21,[Wm("insertSpaceAfterKeywordsInControlFlowStatements"),Gee],4),Ju("NoSpaceAfterKeywordInControl",p,21,[dE("insertSpaceAfterKeywordsInControlFlowStatements"),Gee],16),Ju("SpaceAfterOpenParen",21,s,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],4),Ju("SpaceBeforeCloseParen",s,22,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],4),Ju("SpaceBetweenOpenParens",21,21,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],4),Ju("NoSpaceBetweenParens",21,22,[ea],16),Ju("NoSpaceAfterOpenParen",21,s,[dE("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],16),Ju("NoSpaceBeforeCloseParen",s,22,[dE("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ea],16),Ju("SpaceAfterOpenBracket",23,s,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ea],4),Ju("SpaceBeforeCloseBracket",s,24,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ea],4),Ju("NoSpaceBetweenBrackets",23,24,[ea],16),Ju("NoSpaceAfterOpenBracket",23,s,[dE("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ea],16),Ju("NoSpaceBeforeCloseBracket",s,24,[dE("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ea],16),Ju("SpaceAfterOpenBrace",19,s,[$lt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),qlt],4),Ju("SpaceBeforeCloseBrace",s,20,[$lt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),qlt],4),Ju("NoSpaceBetweenEmptyBraceBrackets",19,20,[ea,ict],16),Ju("NoSpaceAfterOpenBrace",19,s,[xLe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ea],16),Ju("NoSpaceBeforeCloseBrace",s,20,[xLe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ea],16),Ju("SpaceBetweenEmptyBraceBrackets",19,20,[Wm("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Ju("NoSpaceBetweenEmptyBraceBrackets",19,20,[xLe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),ea],16),Ju("SpaceAfterTemplateHeadAndMiddle",[16,17],s,[Wm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),nct],4,1),Ju("SpaceBeforeTemplateMiddleAndTail",s,[17,18],[Wm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ea],4),Ju("NoSpaceAfterTemplateHeadAndMiddle",[16,17],s,[dE("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),nct],16,1),Ju("NoSpaceBeforeTemplateMiddleAndTail",s,[17,18],[dE("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ea],16),Ju("SpaceAfterOpenBraceInJsxExpression",19,s,[Wm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ea,Vpe],4),Ju("SpaceBeforeCloseBraceInJsxExpression",s,20,[Wm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ea,Vpe],4),Ju("NoSpaceAfterOpenBraceInJsxExpression",19,s,[dE("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ea,Vpe],16),Ju("NoSpaceBeforeCloseBraceInJsxExpression",s,20,[dE("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ea,Vpe],16),Ju("SpaceAfterSemicolonInFor",27,s,[Wm("insertSpaceAfterSemicolonInForStatements"),ea,CLe],4),Ju("NoSpaceAfterSemicolonInFor",27,s,[dE("insertSpaceAfterSemicolonInForStatements"),ea,CLe],16),Ju("SpaceBeforeBinaryOperator",s,E,[Wm("insertSpaceBeforeAndAfterBinaryOperators"),ea,Qx],4),Ju("SpaceAfterBinaryOperator",E,s,[Wm("insertSpaceBeforeAndAfterBinaryOperators"),ea,Qx],4),Ju("NoSpaceBeforeBinaryOperator",s,E,[dE("insertSpaceBeforeAndAfterBinaryOperators"),ea,Qx],16),Ju("NoSpaceAfterBinaryOperator",E,s,[dE("insertSpaceBeforeAndAfterBinaryOperators"),ea,Qx],16),Ju("SpaceBeforeOpenParenInFuncDecl",s,21,[Wm("insertSpaceBeforeFunctionParenthesis"),ea,Kk],4),Ju("NoSpaceBeforeOpenParenInFuncDecl",s,21,[dE("insertSpaceBeforeFunctionParenthesis"),ea,Kk],16),Ju("NewLineBeforeOpenBraceInControl",oe,19,[Wm("placeOpenBraceOnNewLineForControlBlocks"),Gee,kLe],8,1),Ju("NewLineBeforeOpenBraceInFunction",K,19,[Wm("placeOpenBraceOnNewLineForFunctions"),Kk,kLe],8,1),Ju("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Y,19,[Wm("placeOpenBraceOnNewLineForFunctions"),ect,kLe],8,1),Ju("SpaceAfterTypeAssertion",32,s,[Wm("insertSpaceAfterTypeAssertion"),ea,SLe],4),Ju("NoSpaceAfterTypeAssertion",32,s,[dE("insertSpaceAfterTypeAssertion"),ea,SLe],16),Ju("SpaceBeforeTypeAnnotation",s,[58,59],[Wm("insertSpaceBeforeTypeAnnotation"),ea,bLe],4),Ju("NoSpaceBeforeTypeAnnotation",s,[58,59],[dE("insertSpaceBeforeTypeAnnotation"),ea,bLe],16),Ju("NoOptionalSemicolon",27,f,[Jlt("semicolons","remove"),PYt],32),Ju("OptionalSemicolon",s,f,[Jlt("semicolons","insert"),MYt],64)],ae=[Ju("NoSpaceBeforeSemicolon",s,27,[ea],16),Ju("SpaceBeforeOpenBraceInControl",oe,19,[vLe("placeOpenBraceOnNewLineForControlBlocks"),Gee,ALe,yLe],4,1),Ju("SpaceBeforeOpenBraceInFunction",K,19,[vLe("placeOpenBraceOnNewLineForFunctions"),Kk,jpe,ALe,yLe],4,1),Ju("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Y,19,[vLe("placeOpenBraceOnNewLineForFunctions"),ect,ALe,yLe],4,1),Ju("NoSpaceBeforeComma",s,28,[ea],16),Ju("NoSpaceBeforeOpenBracket",u(134,84),23,[ea],16),Ju("NoSpaceAfterCloseBracket",24,s,[ea,yYt],16),Ju("SpaceAfterSemicolon",27,s,[ea],4),Ju("SpaceBetweenForAndAwaitKeyword",99,135,[ea],4),Ju("SpaceBetweenStatements",[22,92,93,84],s,[ea,FLe,oYt],4),Ju("SpaceAfterTryCatchFinally",[113,85,98],19,[ea],4)];return[...se,...ge,...ae]}function Ju(t,u,s,d,f,p=0){return{leftTokenRange:Wlt(u),rightTokenRange:Wlt(s),rule:{debugName:t,context:d,action:f,flags:p}}}function tz(t){return{tokens:t,isSpecific:!0}}function Wlt(t){return typeof t=="number"?tz([t]):Ha(t)?tz(t):t}function Glt(t,u,s=[]){const d=[];for(let f=t;f<=u;f++)kt(s,f)||d.push(f);return tz(d)}function Jlt(t,u){return s=>s.options&&s.options[t]===u}function Wm(t){return u=>u.options&&gu(u.options,t)&&!!u.options[t]}function xLe(t){return u=>u.options&&gu(u.options,t)&&!u.options[t]}function dE(t){return u=>!u.options||!gu(u.options,t)||!u.options[t]}function vLe(t){return u=>!u.options||!gu(u.options,t)||!u.options[t]||u.TokensAreOnSameLine()}function $lt(t){return u=>!u.options||!gu(u.options,t)||!!u.options[t]}function CLe(t){return t.contextNode.kind===248}function oYt(t){return!CLe(t)}function Qx(t){switch(t.contextNode.kind){case 226:return t.contextNode.operatorToken.kind!==28;case 227:case 194:case 234:case 281:case 276:case 182:case 192:case 193:case 238:return!0;case 208:case 265:case 271:case 277:case 260:case 169:case 306:case 172:case 171:return t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 249:case 168:return t.currentTokenSpan.kind===103||t.nextTokenSpan.kind===103||t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 250:return t.currentTokenSpan.kind===165||t.nextTokenSpan.kind===165}return!1}function Wee(t){return!Qx(t)}function Ult(t){return!bLe(t)}function bLe(t){const u=t.contextNode.kind;return u===172||u===171||u===169||u===260||a7(u)}function sYt(t){return ko(t.contextNode)&&t.contextNode.questionToken}function lYt(t){return!sYt(t)}function cYt(t){return t.contextNode.kind===227||t.contextNode.kind===194}function yLe(t){return t.TokensAreOnSameLine()||jpe(t)}function qlt(t){return t.contextNode.kind===206||t.contextNode.kind===200||dYt(t)}function kLe(t){return jpe(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function Zlt(t){return Ylt(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function dYt(t){return Ylt(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function Ylt(t){return Qlt(t.contextNode)}function jpe(t){return Qlt(t.nextTokenParent)}function Qlt(t){if(tct(t))return!0;switch(t.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Kk(t){switch(t.contextNode.kind){case 262:case 174:case 173:case 177:case 178:case 179:case 218:case 176:case 219:case 264:return!0}return!1}function hYt(t){return!Kk(t)}function Xlt(t){return t.contextNode.kind===262||t.contextNode.kind===218}function ect(t){return tct(t.contextNode)}function tct(t){switch(t.kind){case 263:case 231:case 264:case 266:case 187:case 267:case 278:case 279:case 272:case 275:return!0}return!1}function fYt(t){switch(t.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const u=t.currentTokenParent.parent;if(!u||u.kind!==219&&u.kind!==218)return!0}}return!1}function Gee(t){switch(t.contextNode.kind){case 245:case 255:case 248:case 249:case 250:case 247:case 258:case 246:case 254:case 299:return!0;default:return!1}}function ict(t){return t.contextNode.kind===210}function mYt(t){return t.contextNode.kind===213}function pYt(t){return t.contextNode.kind===214}function gYt(t){return mYt(t)||pYt(t)}function EYt(t){return t.currentTokenSpan.kind!==28}function _Yt(t){return t.nextTokenSpan.kind!==24}function DYt(t){return t.nextTokenSpan.kind!==22}function xYt(t){return t.contextNode.kind===219}function vYt(t){return t.contextNode.kind===205}function ea(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==12}function nct(t){return t.contextNode.kind!==12}function FLe(t){return t.contextNode.kind!==284&&t.contextNode.kind!==288}function Vpe(t){return t.contextNode.kind===294||t.contextNode.kind===293}function CYt(t){return t.nextTokenParent.kind===291||t.nextTokenParent.kind===295&&t.nextTokenParent.parent.kind===291}function uct(t){return t.contextNode.kind===291}function bYt(t){return t.nextTokenParent.kind!==295}function rct(t){return t.nextTokenParent.kind===295}function act(t){return t.contextNode.kind===285}function yYt(t){return!Kk(t)&&!jpe(t)}function kYt(t){return t.TokensAreOnSameLine()&&o4(t.contextNode)&&oct(t.currentTokenParent)&&!oct(t.nextTokenParent)}function oct(t){for(;t&&Wt(t);)t=t.parent;return t&&t.kind===170}function FYt(t){return t.currentTokenParent.kind===261&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function ALe(t){return t.formattingRequestKind!==2}function AYt(t){return t.contextNode.kind===267}function SYt(t){return t.contextNode.kind===187}function BYt(t){return t.contextNode.kind===180}function sct(t,u){if(t.kind!==30&&t.kind!==32)return!1;switch(u.kind){case 183:case 216:case 265:case 263:case 231:case 264:case 262:case 218:case 219:case 174:case 173:case 179:case 180:case 213:case 214:case 233:return!0;default:return!1}}function Jee(t){return sct(t.currentTokenSpan,t.currentTokenParent)||sct(t.nextTokenSpan,t.nextTokenParent)}function SLe(t){return t.contextNode.kind===216}function wYt(t){return!SLe(t)}function TYt(t){return t.currentTokenSpan.kind===116&&t.currentTokenParent.kind===222}function lct(t){return t.contextNode.kind===229&&t.contextNode.expression!==void 0}function LYt(t){return t.contextNode.kind===235}function cct(t){return!NYt(t)}function NYt(t){switch(t.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function PYt(t){let u=t.nextTokenSpan.kind,s=t.nextTokenSpan.pos;if(nB(u)){const p=t.nextTokenParent===t.currentTokenParent?ib(t.currentTokenParent,Tn(t.currentTokenParent,E=>!E.parent),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!p)return!0;u=p.kind,s=p.getStart(t.sourceFile)}const d=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,f=t.sourceFile.getLineAndCharacterOfPosition(s).line;return d===f?u===20||u===1:u===240||u===27?!1:t.contextNode.kind===264||t.contextNode.kind===265?!Mm(t.currentTokenParent)||!!t.currentTokenParent.type||u!==21:ko(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==248&&t.currentTokenParent.kind!==242&&t.currentTokenParent.kind!==240&&u!==23&&u!==21&&u!==40&&u!==41&&u!==44&&u!==14&&u!==28&&u!==228&&u!==16&&u!==15&&u!==25}function MYt(t){return TX(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function zYt(t){return!Iu(t.contextNode)||!Of(t.contextNode.expression)||t.contextNode.expression.getText().includes(".")}var IYt=o({"src/services/formatting/rules.ts"(){rr(),jK()}});function RYt(t,u){return{options:t,getRules:OYt(),host:u}}function OYt(){return BLe===void 0&&(BLe=VYt(Klt())),BLe}function jYt(t){let u=0;return t&1&&(u|=28),t&2&&(u|=96),t&28&&(u|=28),t&96&&(u|=96),u}function VYt(t){const u=HYt(t);return s=>{const d=u[dct(s.currentTokenSpan.kind,s.nextTokenSpan.kind)];if(d){const f=[];let p=0;for(const E of d){const v=~jYt(p);E.action&v&&ye(E.context,b=>b(s))&&(f.push(E),p|=E.action)}if(f.length)return f}}}function HYt(t){const u=new Array(Hpe*Hpe),s=new Array(u.length);for(const d of t){const f=d.leftTokenRange.isSpecific&&d.rightTokenRange.isSpecific;for(const p of d.leftTokenRange.tokens)for(const E of d.rightTokenRange.tokens){const v=dct(p,E);let b=u[v];b===void 0&&(b=u[v]=[]),KYt(b,d.rule,f,s,v)}}return u}function dct(t,u){return H.assert(t<=165&&u<=165,"Must compute formatting context from tokens"),t*Hpe+u}function KYt(t,u,s,d,f){const p=u.action&3?s?0:iz.StopRulesAny:u.context!==Kee?s?iz.ContextRulesSpecific:iz.ContextRulesAny:s?iz.NoContextRulesSpecific:iz.NoContextRulesAny,E=d[f]||0;t.splice(WYt(E,p),0,u),d[f]=GYt(E,p)}function WYt(t,u){let s=0;for(let d=0;d<=u;d+=Fw)s+=t&$ee,t>>=Fw;return s}function GYt(t,u){const s=(t>>u&$ee)+1;return H.assert((s&$ee)===s,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~($ee<(t[t.StopRulesSpecific=0]="StopRulesSpecific",t[t.StopRulesAny=Fw*1]="StopRulesAny",t[t.ContextRulesSpecific=Fw*2]="ContextRulesSpecific",t[t.ContextRulesAny=Fw*3]="ContextRulesAny",t[t.NoContextRulesSpecific=Fw*4]="NoContextRulesSpecific",t[t.NoContextRulesAny=Fw*5]="NoContextRulesAny",t))(iz||{})}});function Kpe(t,u,s){const d={pos:t,end:u,kind:s};return H.isDebugging&&Object.defineProperty(d,"__debugKind",{get:()=>H.formatSyntaxKind(s)}),d}function $Yt(t,u,s){const d=u.getLineAndCharacterOfPosition(t).line;if(d===0)return[];let f=uj(d,u);for(;qg(u.text.charCodeAt(f));)f--;Z1(u.text.charCodeAt(f))&&f--;const p={pos:Mx(d-1,u),end:f+1};return Uee(p,u,s,2)}function UYt(t,u,s){const d=wLe(t,27,u);return hct(TLe(d),u,s,3)}function qYt(t,u,s){const d=wLe(t,19,u);if(!d)return[];const f=d.parent,p=TLe(f),E={pos:tp(p.getStart(u),u),end:t};return Uee(E,u,s,4)}function ZYt(t,u,s){const d=wLe(t,20,u);return hct(TLe(d),u,s,5)}function YYt(t,u){const s={pos:0,end:t.text.length};return Uee(s,t,u,0)}function QYt(t,u,s,d){const f={pos:tp(t,s),end:u};return Uee(f,s,d,1)}function wLe(t,u,s){const d=td(t,s);return d&&d.kind===u&&t===d.getEnd()?d:void 0}function TLe(t){let u=t;for(;u&&u.parent&&u.parent.end===t.end&&!XYt(u.parent,u);)u=u.parent;return u}function XYt(t,u){switch(t.kind){case 263:case 264:return Vm(t.members,u);case 267:const s=t.body;return!!s&&s.kind===268&&Vm(s.statements,u);case 312:case 241:case 268:return Vm(t.statements,u);case 299:return Vm(t.block.statements,u)}return!1}function eQt(t,u){return s(u);function s(d){const f=ao(d,p=>Khe(p.getStart(u),p.end,t)&&p);if(f){const p=s(f);if(p)return p}return d}}function tQt(t,u){if(!t.length)return f;const s=t.filter(p=>TM(u,p.start,p.start+p.length)).sort((p,E)=>p.start-E.start);if(!s.length)return f;let d=0;return p=>{for(;;){if(d>=s.length)return!1;const E=s[d];if(p.end<=E.start)return!1;if(aX(p.pos,p.end,E.start,E.start+E.length))return!0;d++}};function f(){return!1}}function iQt(t,u,s){const d=t.getStart(s);if(d===u.pos&&t.end===u.end)return d;const f=td(u.pos,s);return!f||f.end>=u.pos?t.pos:f.end}function nQt(t,u,s){let d=-1,f;for(;t;){const p=s.getLineAndCharacterOfPosition(t.getStart(s)).line;if(d!==-1&&p!==d)break;if(hE.shouldIndentChildNode(u,t,f,s))return u.indentSize;d=p,f=t,t=t.parent}return 0}function uQt(t,u,s,d,f,p){const E={pos:t.pos,end:t.end};return ELe(u.text,s,E.pos,E.end,v=>fct(E,t,d,f,v,p,1,b=>!1,u))}function hct(t,u,s,d){if(!t)return[];const f={pos:tp(t.getStart(u),u),end:t.end};return Uee(f,u,s,d)}function Uee(t,u,s,d){const f=eQt(t,u);return ELe(u.text,u.languageVariant,iQt(f,t,u),t.end,p=>fct(t,f,hE.getIndentationForNode(f,t,u,s.options),nQt(f,s.options,u),p,s,d,tQt(u.parseDiagnostics,t),u))}function fct(t,u,s,d,f,{options:p,getRules:E,host:v},b,B,k){var T;const M=new gLe(k,b,p);let z,j,J,K,Y,oe=-1;const se=[];if(f.advance(),f.isOnToken()){const Ie=k.getLineAndCharacterOfPosition(u.getStart(k)).line;let st=Ie;o4(u)&&(st=k.getLineAndCharacterOfPosition(d0e(u,k)).line),Se(u,u,Ie,st,s,d)}const ge=f.getCurrentLeadingTrivia();if(ge){const Ie=hE.nodeWillIndentChild(p,u,void 0,k,!1)?s+p.indentSize:s;Ne(ge,Ie,!0,st=>{fe(st,k.getLineAndCharacterOfPosition(st.pos),u,u,void 0),Be(st.pos,Ie,!1)}),p.trimTrailingWhitespace!==!1&&ft(ge)}if(j&&f.getTokenFullStart()>=t.end){const Ie=f.isOnEOF()?f.readEOFTokenRange():f.isOnToken()?f.readTokenInfo(u).token:void 0;if(Ie&&Ie.pos===z){const st=((T=td(Ie.end,k,u))==null?void 0:T.parent)||J;xe(Ie,k.getLineAndCharacterOfPosition(Ie.pos).line,st,j,K,J,st,void 0)}}return se;function ae(Ie,st,St,It,ei){if(TM(It,Ie,st)||IH(It,Ie,st)){if(ei!==-1)return ei}else{const ht=k.getLineAndCharacterOfPosition(Ie).line,Ut=tp(Ie,k),Ni=hE.findFirstNonWhitespaceColumn(Ut,Ie,k,p);if(ht!==St||Ie===Ni){const ji=hE.getBaseIndentation(p);return ji>Ni?ji:Ni}}return-1}function Ce(Ie,st,St,It,ei,ht){const Ut=hE.shouldIndentChildNode(p,Ie)?p.indentSize:0;return ht===st?{indentation:st===Y?oe:ei.getIndentation(),delta:Math.min(p.indentSize,ei.getDelta(Ie)+Ut)}:St===-1?Ie.kind===21&&st===Y?{indentation:oe,delta:ei.getDelta(Ie)}:hE.childStartsOnTheSameLineWithElseInIfStatement(It,Ie,st,k)||hE.childIsUnindentedBranchOfConditionalExpression(It,Ie,st,k)||hE.argumentStartsOnSameLineAsPreviousArgument(It,Ie,st,k)?{indentation:ei.getIndentation(),delta:Ut}:{indentation:ei.getIndentation()+ei.getDelta(Ie),delta:Ut}:{indentation:St,delta:Ut}}function ne(Ie){if(Hp(Ie)){const st=Le(Ie.modifiers,Qo,Ue(Ie.modifiers,g1));if(st)return st.kind}switch(Ie.kind){case 263:return 86;case 264:return 120;case 262:return 100;case 266:return 266;case 177:return 139;case 178:return 153;case 174:if(Ie.asteriskToken)return 42;case 172:case 169:const st=Za(Ie);if(st)return st.kind}}function ve(Ie,st,St,It){return{getIndentationForComment:(Ut,Ni,ji)=>{switch(Ut){case 20:case 24:case 22:return St+ht(ji)}return Ni!==-1?Ni:St},getIndentationForToken:(Ut,Ni,ji,xn)=>!xn&&ei(Ut,Ni,ji)?St+ht(ji):St,getIndentation:()=>St,getDelta:ht,recomputeIndentation:(Ut,Ni)=>{hE.shouldIndentChildNode(p,Ni,Ie,k)&&(St+=Ut?p.indentSize:-p.indentSize,It=hE.shouldIndentChildNode(p,Ie)?p.indentSize:0)}};function ei(Ut,Ni,ji){switch(Ni){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(ji.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(ji.kind!==200)return!1;break}return st!==Ut&&!(o4(Ie)&&Ni===ne(Ie))}function ht(Ut){return hE.nodeWillIndentChild(p,Ie,Ut,k,!0)?It:0}}function Se(Ie,st,St,It,ei,ht){if(!TM(t,Ie.getStart(k),Ie.getEnd()))return;const Ut=ve(Ie,St,ei,ht);let Ni=st;for(ao(Ie,an=>{ji(an,-1,Ie,Ut,St,It,!1)},an=>{xn(an,Ie,St,Ut)});f.isOnToken()&&f.getTokenFullStart()Math.min(Ie.end,t.end))break;Jn(an,Ie,Ut,Ie)}function ji(an,Pi,Ai,Zu,aa,yr,Ba,bt){if(H.assert(!sl(an)),Ql(an)||Sbe(Ai,an))return Pi;const jn=an.getStart(k),Ln=k.getLineAndCharacterOfPosition(jn).line;let Si=Ln;o4(an)&&(Si=k.getLineAndCharacterOfPosition(d0e(an,k)).line);let Dn=-1;if(Ba&&Vm(t,Ai)&&(Dn=ae(jn,an.end,aa,t,Pi),Dn!==-1&&(Pi=Dn)),!TM(t,an.pos,an.end))return an.endt.end)return Pi;if(oa.token.end>jn){oa.token.pos>jn&&f.skipToStartOf(an);break}Jn(oa,Ie,Zu,Ie)}if(!f.isOnToken()||f.getTokenFullStart()>=t.end)return Pi;if(u7(an)){const oa=f.readTokenInfo(an);if(an.kind!==12)return H.assert(oa.token.end===an.end,"Token end is child end"),Jn(oa,Ie,Zu,an),Pi}const Cn=an.kind===170?Ln:yr,tu=Ce(an,Ln,Dn,Ie,Zu,Cn);return Se(an,Ni,Ln,Si,tu.indentation,tu.delta),Ni=Ie,bt&&Ai.kind===209&&Pi===-1&&(Pi=tu.indentation),Pi}function xn(an,Pi,Ai,Zu){H.assert(g2(an)),H.assert(!sl(an));const aa=rQt(Pi,an);let yr=Zu,Ba=Ai;if(!TM(t,an.pos,an.end)){an.endan.pos)break;if(Ln.token.kind===aa){Ba=k.getLineAndCharacterOfPosition(Ln.token.pos).line,Jn(Ln,Pi,Zu,Pi);let Si;if(oe!==-1)Si=oe;else{const Dn=tp(Ln.token.pos,k);Si=hE.findFirstNonWhitespaceColumn(Dn,Ln.token.pos,k,p)}yr=ve(Pi,Ai,Si,p.indentSize)}else Jn(Ln,Pi,Zu,Pi)}let bt=-1;for(let Ln=0;LnBe(tu.pos,Cn,!1))}Si!==-1&&Dn&&(Be(an.token.pos,Si,bt===1),Y=Ln.line,oe=Si)}f.advance(),Ni=Pi}}function Ne(Ie,st,St,It){for(const ei of Ie){const ht=Vm(t,ei);switch(ei.kind){case 3:ht&&De(ei,st,!St),St=!1;break;case 2:St&&ht&&It(ei),St=!1;break;case 4:St=!0;break}}return St}function pe(Ie,st,St,It){for(const ei of Ie)if(mX(ei.kind)&&Vm(t,ei)){const ht=k.getLineAndCharacterOfPosition(ei.pos);fe(ei,ht,st,St,It)}}function fe(Ie,st,St,It,ei){const ht=B(Ie);let Ut=0;if(!ht)if(j)Ut=xe(Ie,st.line,St,j,K,J,It,ei);else{const Ni=k.getLineAndCharacterOfPosition(t.pos);Ke(Ni.line,st.line)}return j=Ie,z=Ie.end,J=St,K=st.line,Ut}function xe(Ie,st,St,It,ei,ht,Ut,Ni){M.updateContext(It,ht,Ie,St,Ut);const ji=E(M);let xn=M.options.trimTrailingWhitespace!==!1,Jn=0;return ji?O(ji,an=>{if(Jn=Yt(an,It,ei,Ie,st),Ni)switch(Jn){case 2:St.getStart(k)===Ie.pos&&Ni.recomputeIndentation(!1,Ut);break;case 1:St.getStart(k)===Ie.pos&&Ni.recomputeIndentation(!0,Ut);break;default:H.assert(Jn===0)}xn=xn&&!(an.action&16)&&an.flags!==1}):xn=xn&&Ie.kind!==1,st!==ei&&xn&&Ke(ei,st,It),Jn}function Be(Ie,st,St){const It=LLe(st,p);if(St)We(Ie,0,It);else{const ei=k.getLineAndCharacterOfPosition(Ie),ht=Mx(ei.line,k);(st!==Ge(ht,ei.character)||Ae(It,ht))&&We(ht,ei.character,It)}}function Ge(Ie,st){let St=0;for(let It=0;It0){const yr=LLe(aa,p);We(Ai,Zu.character,yr)}else Ve(Ai,Zu.character)}}function Ke(Ie,st,St){for(let It=Ie;Itht)continue;const Ut=Je(ei,ht);Ut!==-1&&(H.assert(Ut===ei||!qg(k.text.charCodeAt(Ut-1))),Ve(Ut,ht+1-Ut))}}function Je(Ie,st){let St=st;for(;St>=Ie&&qg(k.text.charCodeAt(St));)St--;return St!==st?St+1:-1}function ft(Ie){let st=j?j.end:t.pos;for(const St of Ie)mX(St.kind)&&(stzH(B,u)||u===B.end&&(B.kind===2||u===t.getFullWidth()))}function rQt(t,u){switch(t.kind){case 176:case 262:case 218:case 174:case 173:case 219:case 179:case 180:case 184:case 185:case 177:case 178:if(t.typeParameters===u)return 30;if(t.parameters===u)return 21;break;case 213:case 214:if(t.typeArguments===u)return 30;if(t.arguments===u)return 21;break;case 263:case 231:case 264:case 265:if(t.typeParameters===u)return 30;break;case 183:case 215:case 186:case 233:case 205:if(t.typeArguments===u)return 30;break;case 187:return 19}return 0}function aQt(t){switch(t){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function LLe(t,u){if((!Wpe||Wpe.tabSize!==u.tabSize||Wpe.indentSize!==u.indentSize)&&(Wpe={tabSize:u.tabSize,indentSize:u.indentSize},RK=OK=void 0),u.convertTabsToSpaces){let d;const f=Math.floor(t/u.indentSize),p=t%u.indentSize;return OK||(OK=[]),OK[f]===void 0?(d=KH(" ",u.indentSize*f),OK[f]=d):d=OK[f],p?d+KH(" ",p):d}else{const d=Math.floor(t/u.tabSize),f=t-d*u.tabSize;let p;return RK||(RK=[]),RK[d]===void 0?RK[d]=p=KH(" ",d):p=RK[d],f?p+KH(" ",f):p}}var Wpe,RK,OK,oQt=o({"src/services/formatting/formatting.ts"(){rr(),jK()}}),hE,sQt=o({"src/services/formatting/smartIndenter.ts"(){rr(),jK(),(t=>{let u;(De=>{De[De.Unknown=-1]="Unknown"})(u||(u={}));function s(De,Ke,Je,ft=!1){if(De>Ke.text.length)return v(Je);if(Je.indentStyle===0)return 0;const Ye=td(De,Ke,void 0,!0),Ve=mct(Ke,De,Ye||null);if(Ve&&Ve.kind===3)return d(Ke,De,Je,Ve);if(!Ye)return v(Je);if(Zhe(Ye.kind)&&Ye.getStart(Ke)<=De&&De=0),Ye<=Ve)return fe(Mx(Ve,De),Ke,De,Je);const We=Mx(Ye,De),{column:Gt,character:Yt}=pe(We,Ke,De,Je);return Gt===0?Gt:De.text.charCodeAt(We+Yt)===42?Gt-1:Gt}function f(De,Ke,Je){let ft=Ke;for(;ft>0;){const Ve=De.text.charCodeAt(ft);if(!U3(Ve))break;ft--}const Ye=tp(ft,De);return fe(Ye,ft,De,Je)}function p(De,Ke,Je,ft,Ye,Ve){let We,Gt=Je;for(;Gt;){if(Whe(Gt,Ke,De)&&Ge(Ve,Gt,We,De,!0)){const Ie=j(Gt,De),st=z(Je,Gt,ft,De),St=st!==0?Ye&&st===2?Ve.indentSize:0:ft!==Ie.line?Ve.indentSize:0;return b(Gt,Ie,void 0,St,De,!0,Ve)}const Yt=ve(Gt,De,Ve,!0);if(Yt!==-1)return Yt;We=Gt,Gt=Gt.parent}return v(Ve)}function E(De,Ke,Je,ft){const Ye=Je.getLineAndCharacterOfPosition(De.getStart(Je));return b(De,Ye,Ke,0,Je,!1,ft)}t.getIndentationForNode=E;function v(De){return De.baseIndentSize||0}t.getBaseIndentation=v;function b(De,Ke,Je,ft,Ye,Ve,We){var Gt;let Yt=De.parent;for(;Yt;){let Ie=!0;if(Je){const ei=De.getStart(Ye);Ie=eiJe.end}const st=B(Yt,De,Ye),St=st.line===Ke.line||K(Yt,De,Ke.line,Ye);if(Ie){const ei=(Gt=se(De,Ye))==null?void 0:Gt[0],ht=!!ei&&j(ei,Ye).line>st.line;let Ut=ve(De,Ye,We,ht);if(Ut!==-1||(Ut=T(De,Yt,Ke,St,Ye,We),Ut!==-1))return Ut+ft}Ge(We,Yt,De,Ye,Ve)&&!St&&(ft+=We.indentSize);const It=J(Yt,De,Ke.line,Ye);De=Yt,Yt=De.parent,Ke=It?Ye.getLineAndCharacterOfPosition(De.getStart(Ye)):st}return ft+v(We)}function B(De,Ke,Je){const ft=se(Ke,Je),Ye=ft?ft.pos:De.getStart(Je);return Je.getLineAndCharacterOfPosition(Ye)}function k(De,Ke,Je){const ft=Z9e(De);return ft&&ft.listItemIndex>0?Se(ft.list.getChildren(),ft.listItemIndex-1,Ke,Je):-1}function T(De,Ke,Je,ft,Ye,Ve){return(Q1(De)||XO(De))&&(Ke.kind===312||!ft)?Ne(Je,Ye,Ve):-1}let M;(De=>{De[De.Unknown=0]="Unknown",De[De.OpenBrace=1]="OpenBrace",De[De.CloseBrace=2]="CloseBrace"})(M||(M={}));function z(De,Ke,Je,ft){const Ye=ib(De,Ke,ft);if(!Ye)return 0;if(Ye.kind===19)return 1;if(Ye.kind===20){const Ve=j(Ye,ft).line;return Je===Ve?2:0}return 0}function j(De,Ke){return Ke.getLineAndCharacterOfPosition(De.getStart(Ke))}function J(De,Ke,Je,ft){if(!(Mo(De)&&kt(De.arguments,Ke)))return!1;const Ye=De.expression.getEnd();return s0(ft,Ye).line===Je}t.isArgumentAndStartLineOverlapsExpressionBeingCalled=J;function K(De,Ke,Je,ft){if(De.kind===245&&De.elseStatement===Ke){const Ye=a0(De,93,ft);return H.assert(Ye!==void 0),j(Ye,ft).line===Je}return!1}t.childStartsOnTheSameLineWithElseInIfStatement=K;function Y(De,Ke,Je,ft){if(SB(De)&&(Ke===De.whenTrue||Ke===De.whenFalse)){const Ye=s0(ft,De.condition.end).line;if(Ke===De.whenTrue)return Je===Ye;{const Ve=j(De.whenTrue,ft).line,We=s0(ft,De.whenTrue.end).line;return Ye===Ve&&We===Je}}return!1}t.childIsUnindentedBranchOfConditionalExpression=Y;function oe(De,Ke,Je,ft){if($E(De)){if(!De.arguments)return!1;const Ye=Le(De.arguments,Yt=>Yt.pos===Ke.pos);if(!Ye)return!1;const Ve=De.arguments.indexOf(Ye);if(Ve===0)return!1;const We=De.arguments[Ve-1],Gt=s0(ft,We.getEnd()).line;if(Je===Gt)return!0}return!1}t.argumentStartsOnSameLineAsPreviousArgument=oe;function se(De,Ke){return De.parent&&ae(De.getStart(Ke),De.getEnd(),De.parent,Ke)}t.getContainingList=se;function ge(De,Ke,Je){return Ke&&ae(De,De,Ke,Je)}function ae(De,Ke,Je,ft){switch(Je.kind){case 183:return Ye(Je.typeArguments);case 210:return Ye(Je.properties);case 209:return Ye(Je.elements);case 187:return Ye(Je.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ye(Je.typeParameters)||Ye(Je.parameters);case 177:return Ye(Je.parameters);case 263:case 231:case 264:case 265:case 352:return Ye(Je.typeParameters);case 214:case 213:return Ye(Je.typeArguments)||Ye(Je.arguments);case 261:return Ye(Je.declarations);case 275:case 279:return Ye(Je.elements);case 206:case 207:return Ye(Je.elements)}function Ye(Ve){return Ve&&IH(Ce(Je,Ve,ft),De,Ke)?Ve:void 0}}function Ce(De,Ke,Je){const ft=De.getChildren(Je);for(let Ye=1;Ye=0&&Ke=0;We--){if(De[We].kind===28)continue;if(Je.getLineAndCharacterOfPosition(De[We].end).line!==Ve.line)return Ne(Ve,Je,ft);Ve=j(De[We],Je)}return-1}function Ne(De,Ke,Je){const ft=Ke.getPositionOfLineAndCharacter(De.line,0);return fe(ft,ft+De.character,Ke,Je)}function pe(De,Ke,Je,ft){let Ye=0,Ve=0;for(let We=De;WegLe,FormattingRequestKind:()=>pLe,RuleAction:()=>_Le,RuleFlags:()=>DLe,SmartIndenter:()=>hE,anyContext:()=>Kee,createTextRangeWithKind:()=>Kpe,formatDocument:()=>YYt,formatNodeGivenIndentation:()=>uQt,formatOnClosingCurly:()=>ZYt,formatOnEnter:()=>$Yt,formatOnOpeningCurly:()=>qYt,formatOnSemicolon:()=>UYt,formatSelection:()=>QYt,getAllRules:()=>Klt,getFormatContext:()=>RYt,getFormattingScanner:()=>ELe,getIndentationString:()=>LLe,getRangeOfEnclosingComment:()=>mct});var jK=o({"src/services/_namespaces/ts.formatting.ts"(){uYt(),rYt(),aYt(),IYt(),JYt(),oQt(),sQt()}}),rr=o({"src/services/_namespaces/ts.ts"(){Bo(),BH(),kIt(),ZIt(),eRt(),$it(),hRt(),fRt(),xRt(),wRt(),TRt(),NRt(),VRt(),HRt(),sHt(),lHt(),hHt(),LHt(),PHt(),rs(),LTe(),Q0t(),tqt(),aqt(),bqt(),Ent(),Rnt(),Wqt(),Qqt(),s_(),aZt(),NZt(),VZt(),GZt(),nYt(),jK()}});function lQt(){return Ect??(Ect=new Lp(_))}function pct(t,u,s,d,f){let p=u?"DeprecationError: ":"DeprecationWarning: ";return p+=`'${t}' `,p+=d?`has been deprecated since v${d}`:"is deprecated",p+=u?" and can no longer be used.":s?` and will no longer be usable after v${s}.`:".",p+=f?` ${e3(f,[t])}`:"",p}function cQt(t,u,s,d){const f=pct(t,!0,u,s,d);return()=>{throw new TypeError(f)}}function dQt(t,u,s,d){let f=!1;return()=>{gct&&!f&&(H.log.warn(pct(t,!1,u,s,d)),f=!0)}}function hQt(t,u={}){const s=typeof u.typeScriptVersion=="string"?new Lp(u.typeScriptVersion):u.typeScriptVersion??lQt(),d=typeof u.errorAfter=="string"?new Lp(u.errorAfter):u.errorAfter,f=typeof u.warnAfter=="string"?new Lp(u.warnAfter):u.warnAfter,p=typeof u.since=="string"?new Lp(u.since):u.since??f,E=u.error||d&&s.compareTo(d)>=0,v=!f||s.compareTo(f)>=0;return E?cQt(t,d,p,u.message):v?dQt(t,d,p,u.message):Is}function fQt(t,u){return function(){return t(),u.apply(this,arguments)}}function NLe(t,u){const s=hQt((u==null?void 0:u.name)??H.getFunctionName(t),u);return fQt(s,t)}var gct,Ect,_ct=o({"src/deprecatedCompat/deprecate.ts"(){Jpe(),gct=!0}});function Gpe(t,u,s,d){if(Object.defineProperty(p,"name",{...Object.getOwnPropertyDescriptor(p,"name"),value:t}),d)for(const E of Object.keys(d)){const v=+E;!isNaN(v)&&gu(u,`${v}`)&&(u[v]=NLe(u[v],{...d[v],name:t}))}const f=mQt(u,s);return p;function p(...E){const v=f(E),b=v!==void 0?u[v]:void 0;if(typeof b=="function")return b(...E);throw new TypeError("Invalid arguments")}}function mQt(t,u){return s=>{for(let d=0;gu(t,`${d}`)&&gu(u,`${d}`);d++){const f=u[d];if(f(s))return d}}}function Dct(t){return{overload:u=>({bind:s=>({finish:()=>Gpe(t,u,s),deprecate:d=>({finish:()=>Gpe(t,u,s,d)})})})}}var pQt=o({"src/deprecatedCompat/deprecations.ts"(){Jpe(),_ct()}}),gQt=o({"src/deprecatedCompat/5.0/identifierProperties.ts"(){Jpe(),_ct(),Qye(t=>{const u=t.getIdentifierConstructor();gu(u.prototype,"originalKeywordKind")||Object.defineProperty(u.prototype,"originalKeywordKind",{get:NLe(function(){return Dv(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),gu(u.prototype,"isInJSDocNamespace")||Object.defineProperty(u.prototype,"isInJSDocNamespace",{get:NLe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),Jpe=o({"src/deprecatedCompat/_namespaces/ts.ts"(){Bo(),pQt(),gQt()}}),EQt=o({"src/typingsInstallerCore/_namespaces/ts.ts"(){Bo(),BH(),MLe()}});function xct(t,u,s,d){try{const f=WB(u,cr(t,"index.d.ts"),{moduleResolution:2},s);return f.resolvedModule&&f.resolvedModule.resolvedFileName}catch(f){d.isEnabled()&&d.writeLine(`Failed to resolve ${u} in folder '${t}': ${f.message}`);return}}function _Qt(t,u,s,d){let f=!1;for(let p=s.length;p>0;){const E=vct(t,u,s,p);p=E.remaining,f=d(E.command)||f}return f}function vct(t,u,s,d){const f=s.length-d;let p,E=d;for(;p=`${t} install --ignore-scripts ${(E===s.length?s:s.slice(f,f+E)).join(" ")} --save-dev --user-agent="typesInstaller/${u}"`,!(p.length<8e3);)E=E-Math.floor(E/2);return{command:p,remaining:d-E}}function Cct(t){return`@types/${t}@ts${g}`}var bct,yct,DQt=o({"src/typingsInstallerCore/typingsInstaller.ts"(){EQt(),MLe(),bct={isEnabled:()=>!1,writeLine:Is},yct=class{constructor(t,u,s,d,f,p=bct){this.installTypingHost=t,this.globalCachePath=u,this.safeListPath=s,this.typesMapLocation=d,this.throttleLimit=f,this.log=p,this.packageNameToTypingLocation=new Map,this.missingTypingsSet=new Set,this.knownCachesSet=new Set,this.projectWatchers=new Map,this.pendingRunRequests=[],this.installRunCount=1,this.inFlightRequestCount=0,this.latestDistTag="latest",this.log.isEnabled()&&this.log.writeLine(`Global cache location '${u}', safe file path '${s}', types map path ${d}`),this.processCacheLocation(this.globalCachePath)}closeProject(t){this.closeWatchers(t.projectName)}closeWatchers(t){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}'`),!this.projectWatchers.get(t)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${t}'`);return}this.projectWatchers.delete(t),this.sendResponse({kind:SH,projectName:t,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}' - done.`)}install(t){this.log.isEnabled()&&this.log.writeLine(`Got install request${nw(t)}`),t.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${t.cachePath}', loading cached information...`),this.processCacheLocation(t.cachePath)),this.safeList===void 0&&this.initializeSafeList();const u=o3.discoverTypings(this.installTypingHost,this.log.isEnabled()?s=>this.log.writeLine(s):void 0,t.fileNames,t.projectRootPath,this.safeList,this.packageNameToTypingLocation,t.typeAcquisition,t.unresolvedImports,this.typesRegistry,t.compilerOptions);this.watchFiles(t.projectName,u.filesToWatch),u.newTypingNames.length?this.installTypings(t,t.cachePath||this.globalCachePath,u.cachedTypingPaths,u.newTypingNames):(this.sendResponse(this.createSetTypings(t,u.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}initializeSafeList(){if(this.typesMapLocation){const t=o3.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(t){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=t;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=o3.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(t){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${t}'`),this.knownCachesSet.has(t)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const u=cr(t,"package.json"),s=cr(t,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${u}'...`),this.installTypingHost.fileExists(u)&&this.installTypingHost.fileExists(s)){const d=JSON.parse(this.installTypingHost.readFile(u)),f=JSON.parse(this.installTypingHost.readFile(s));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${u}':${nw(d)}`),this.log.writeLine(`Loaded content of '${s}':${nw(f)}`)),d.devDependencies&&f.dependencies)for(const p in d.devDependencies){if(!gu(f.dependencies,p))continue;const E=Ac(p);if(!E)continue;const v=xct(t,E,this.installTypingHost,this.log);if(!v){this.missingTypingsSet.add(E);continue}const b=this.packageNameToTypingLocation.get(E);if(b){if(b.typingLocation===v)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${E} from '${v}' conflicts with existing typing file '${b}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${E}' => '${v}'`);const B=uo(f.dependencies,p),k=B&&B.version;if(!k)continue;const T={typingLocation:v,version:new Lp(k)};this.packageNameToTypingLocation.set(E,T)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${t}'`),this.knownCachesSet.add(t)}filterTypings(t){return qi(t,u=>{const s=JB(u);if(this.missingTypingsSet.has(s)){this.log.isEnabled()&&this.log.writeLine(`'${u}':: '${s}' is in missingTypingsSet - skipping...`);return}const d=o3.validatePackageName(u);if(d!==o3.NameValidationResult.Ok){this.missingTypingsSet.add(s),this.log.isEnabled()&&this.log.writeLine(o3.renderPackageNameValidationFailure(d,u));return}if(!this.typesRegistry.has(s)){this.log.isEnabled()&&this.log.writeLine(`'${u}':: Entry for package '${s}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(s)&&o3.isTypingUpToDate(this.packageNameToTypingLocation.get(s),this.typesRegistry.get(s))){this.log.isEnabled()&&this.log.writeLine(`'${u}':: '${s}' already has an up-to-date typing - skipping...`);return}return s})}ensurePackageDirectoryExists(t){const u=cr(t,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${u}`),this.installTypingHost.fileExists(u)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${u}' is missing, creating new one...`),this.ensureDirectoryExists(t,this.installTypingHost),this.installTypingHost.writeFile(u,'{ "private": true }'))}installTypings(t,u,s,d){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(d)}`);const f=this.filterTypings(d);if(f.length===0){this.log.isEnabled()&&this.log.writeLine("All typings are known to be missing or invalid - no need to install more typings"),this.sendResponse(this.createSetTypings(t,s));return}this.ensurePackageDirectoryExists(u);const p=this.installRunCount;this.installRunCount++,this.sendResponse({kind:hhe,eventId:p,typingsInstallerVersion:_,projectName:t.projectName});const E=f.map(Cct);this.installTypingsAsync(p,E,u,v=>{try{if(!v){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(f)}`);for(const B of f)this.missingTypingsSet.add(B);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(E)}`);const b=[];for(const B of f){const k=xct(u,B,this.installTypingHost,this.log);if(!k){this.missingTypingsSet.add(B);continue}const T=this.typesRegistry.get(B),M=new Lp(T[`ts${g}`]||T[this.latestDistTag]),z={typingLocation:k,version:M};this.packageNameToTypingLocation.set(B,z),b.push(k)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(b)}`),this.sendResponse(this.createSetTypings(t,s.concat(b)))}finally{const b={kind:fhe,eventId:p,projectName:t.projectName,packagesToInstall:E,installSuccess:v,typingsInstallerVersion:_};this.sendResponse(b)}})}ensureDirectoryExists(t,u){const s=lr(t);u.directoryExists(s)||this.ensureDirectoryExists(s,u),u.directoryExists(t)||u.createDirectory(t)}watchFiles(t,u){if(!u.length){this.closeWatchers(t);return}const s=this.projectWatchers.get(t),d=new Set(u);!s||U_(d,f=>!s.has(f))||U_(s,f=>!d.has(f))?(this.projectWatchers.set(t,d),this.sendResponse({kind:SH,projectName:t,files:u})):this.sendResponse({kind:SH,projectName:t,files:void 0})}createSetTypings(t,u){return{projectName:t.projectName,typeAcquisition:t.typeAcquisition,compilerOptions:t.compilerOptions,typings:u,unresolvedImports:t.unresolvedImports,kind:ZQ}}installTypingsAsync(t,u,s,d){this.pendingRunRequests.unshift({requestId:t,packageNames:u,cwd:s,onRequestCompleted:d}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,t.onRequestCompleted(u),this.executeWithThrottling()})}}}}}),PLe={};h(PLe,{TypingsInstaller:()=>yct,getNpmCommandForInstallation:()=>vct,installNpmPackages:()=>_Qt,typingsName:()=>Cct});var xQt=o({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){DQt()}}),MLe=o({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){QQ(),xQt()}}),vQt=o({"src/server/types.ts"(){}});function kct(t,u,s,d){return{projectName:t.getProjectName(),fileNames:t.getFileNames(!0,!0).concat(t.getExcludedFiles()),compilerOptions:t.getCompilationSettings(),typeAcquisition:u,unresolvedImports:s,projectRootPath:t.getCurrentDirectory(),cachePath:d,kind:"discover"}}function Dl(t){return $o(t)}function VK(t,u,s){const d=Pf(t)?t:$a(t,u);return s(d)}function Fct(t){return t}function Act(){const t=new Map;return{get(u){return t.get(u)},set(u,s){t.set(u,s)},contains(u){return t.has(u)},remove(u){t.delete(u)}}}function zLe(t){return/dev\/null\/inferredProject\d+\*/.test(t)}function ILe(t){return`/dev/null/inferredProject${t}*`}function RLe(t){return`/dev/null/autoImportProviderProject${t}*`}function OLe(t){return`/dev/null/auxiliaryProject${t}*`}function jLe(){return[]}var $pe,$c,Upe,v5,CQt=o({"src/server/utilitiesPublic.ts"(){Xv(),$pe=(t=>(t[t.terse=0]="terse",t[t.normal=1]="normal",t[t.requestTime=2]="requestTime",t[t.verbose=3]="verbose",t))($pe||{}),$c=jLe(),Upe=(t=>(t.Err="Err",t.Info="Info",t.Perf="Perf",t))(Upe||{}),(t=>{function u(){throw new Error("No Project.")}t.ThrowNoProject=u;function s(){throw new Error("The project's language service is disabled.")}t.ThrowProjectLanguageServiceDisabled=s;function d(f,p){throw new Error(`Project '${p.getProjectName()}' does not contain document '${f}'`)}t.ThrowProjectDoesNotContainDocument=d})(v5||(v5={}))}});function qpe(t){const u=Ac(t);return u==="tsconfig.json"||u==="jsconfig.json"?u:void 0}function Sct(t,u,s){if(!t||t.length===0)return;if(t[0]===u){t.splice(0,1);return}const d=Kl(t,u,il,s);d>=0&&t.splice(d,1)}var Zpe,Ype,bQt=o({"src/server/utilities.ts"(){Xv(),_9(),Zpe=class H6t{constructor(u,s){this.host=u,this.pendingTimeouts=new Map,this.logger=s.hasLevel(3)?s:void 0}schedule(u,s,d){const f=this.pendingTimeouts.get(u);f&&this.host.clearTimeout(f),this.pendingTimeouts.set(u,this.host.setTimeout(H6t.run,s,u,this,d)),this.logger&&this.logger.info(`Scheduled: ${u}${f?", Cancelled earlier one":""}`)}cancel(u){const s=this.pendingTimeouts.get(u);return s?(this.host.clearTimeout(s),this.pendingTimeouts.delete(u)):!1}static run(u,s,d){var f,p;(f=hh)==null||f.logStartScheduledOperation(u),s.pendingTimeouts.delete(u),s.logger&&s.logger.info(`Running: ${u}`),d(),(p=hh)==null||p.logStopScheduledOperation()}},Ype=class K6t{constructor(u,s,d){this.host=u,this.delay=s,this.logger=d}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(K6t.run,this.delay,this))}static run(u){var s,d;u.timerId=void 0,(s=hh)==null||s.logStartScheduledOperation("GC collect");const f=u.logger.hasLevel(2),p=f&&u.host.getMemoryUsage();if(u.host.gc(),f){const E=u.host.getMemoryUsage();u.logger.perftrc(`GC::before ${p}, after ${E}`)}(d=hh)==null||d.logStopScheduledOperation()}}}}),Qpe,VLe,HLe,KLe,WLe,GLe,JLe,$Le,ULe,qLe,ZLe,YLe,QLe,XLe,eNe=o({"src/server/protocol.ts"(){Qpe=(t=>(t.JsxClosingTag="jsxClosingTag",t.LinkedEditingRange="linkedEditingRange",t.Brace="brace",t.BraceFull="brace-full",t.BraceCompletion="braceCompletion",t.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",t.Change="change",t.Close="close",t.Completions="completions",t.CompletionInfo="completionInfo",t.CompletionsFull="completions-full",t.CompletionDetails="completionEntryDetails",t.CompletionDetailsFull="completionEntryDetails-full",t.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",t.CompileOnSaveEmitFile="compileOnSaveEmitFile",t.Configure="configure",t.Definition="definition",t.DefinitionFull="definition-full",t.DefinitionAndBoundSpan="definitionAndBoundSpan",t.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",t.Implementation="implementation",t.ImplementationFull="implementation-full",t.EmitOutput="emit-output",t.Exit="exit",t.FileReferences="fileReferences",t.FileReferencesFull="fileReferences-full",t.Format="format",t.Formatonkey="formatonkey",t.FormatFull="format-full",t.FormatonkeyFull="formatonkey-full",t.FormatRangeFull="formatRange-full",t.Geterr="geterr",t.GeterrForProject="geterrForProject",t.SemanticDiagnosticsSync="semanticDiagnosticsSync",t.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",t.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",t.NavBar="navbar",t.NavBarFull="navbar-full",t.Navto="navto",t.NavtoFull="navto-full",t.NavTree="navtree",t.NavTreeFull="navtree-full",t.DocumentHighlights="documentHighlights",t.DocumentHighlightsFull="documentHighlights-full",t.Open="open",t.Quickinfo="quickinfo",t.QuickinfoFull="quickinfo-full",t.References="references",t.ReferencesFull="references-full",t.Reload="reload",t.Rename="rename",t.RenameInfoFull="rename-full",t.RenameLocationsFull="renameLocations-full",t.Saveto="saveto",t.SignatureHelp="signatureHelp",t.SignatureHelpFull="signatureHelp-full",t.FindSourceDefinition="findSourceDefinition",t.Status="status",t.TypeDefinition="typeDefinition",t.ProjectInfo="projectInfo",t.ReloadProjects="reloadProjects",t.Unknown="unknown",t.OpenExternalProject="openExternalProject",t.OpenExternalProjects="openExternalProjects",t.CloseExternalProject="closeExternalProject",t.SynchronizeProjectList="synchronizeProjectList",t.ApplyChangedToOpenFiles="applyChangedToOpenFiles",t.UpdateOpen="updateOpen",t.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",t.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",t.Cleanup="cleanup",t.GetOutliningSpans="getOutliningSpans",t.GetOutliningSpansFull="outliningSpans",t.TodoComments="todoComments",t.Indentation="indentation",t.DocCommentTemplate="docCommentTemplate",t.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",t.NameOrDottedNameSpan="nameOrDottedNameSpan",t.BreakpointStatement="breakpointStatement",t.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",t.GetCodeFixes="getCodeFixes",t.GetCodeFixesFull="getCodeFixes-full",t.GetCombinedCodeFix="getCombinedCodeFix",t.GetCombinedCodeFixFull="getCombinedCodeFix-full",t.ApplyCodeActionCommand="applyCodeActionCommand",t.GetSupportedCodeFixes="getSupportedCodeFixes",t.GetApplicableRefactors="getApplicableRefactors",t.GetEditsForRefactor="getEditsForRefactor",t.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",t.GetEditsForRefactorFull="getEditsForRefactor-full",t.OrganizeImports="organizeImports",t.OrganizeImportsFull="organizeImports-full",t.GetEditsForFileRename="getEditsForFileRename",t.GetEditsForFileRenameFull="getEditsForFileRename-full",t.ConfigurePlugin="configurePlugin",t.SelectionRange="selectionRange",t.SelectionRangeFull="selectionRange-full",t.ToggleLineComment="toggleLineComment",t.ToggleLineCommentFull="toggleLineComment-full",t.ToggleMultilineComment="toggleMultilineComment",t.ToggleMultilineCommentFull="toggleMultilineComment-full",t.CommentSelection="commentSelection",t.CommentSelectionFull="commentSelection-full",t.UncommentSelection="uncommentSelection",t.UncommentSelectionFull="uncommentSelection-full",t.PrepareCallHierarchy="prepareCallHierarchy",t.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",t.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",t.ProvideInlayHints="provideInlayHints",t.WatchChange="watchChange",t))(Qpe||{}),VLe=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(VLe||{}),HLe=(t=>(t.FixedPollingInterval="FixedPollingInterval",t.PriorityPollingInterval="PriorityPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t.UseFsEvents="UseFsEvents",t.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",t))(HLe||{}),KLe=(t=>(t.UseFsEvents="UseFsEvents",t.FixedPollingInterval="FixedPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t))(KLe||{}),WLe=(t=>(t.FixedInterval="FixedInterval",t.PriorityInterval="PriorityInterval",t.DynamicPriority="DynamicPriority",t.FixedChunkSize="FixedChunkSize",t))(WLe||{}),GLe=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(GLe||{}),JLe=(t=>(t.None="None",t.Block="Block",t.Smart="Smart",t))(JLe||{}),$Le=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))($Le||{}),ULe=(t=>(t.None="None",t.Preserve="Preserve",t.ReactNative="ReactNative",t.React="React",t))(ULe||{}),qLe=(t=>(t.None="None",t.CommonJS="CommonJS",t.AMD="AMD",t.UMD="UMD",t.System="System",t.ES6="ES6",t.ES2015="ES2015",t.ESNext="ESNext",t))(qLe||{}),ZLe=(t=>(t.Classic="Classic",t.Node="Node",t))(ZLe||{}),YLe=(t=>(t.Crlf="Crlf",t.Lf="Lf",t))(YLe||{}),QLe=(t=>(t.ES3="ES3",t.ES5="ES5",t.ES6="ES6",t.ES2015="ES2015",t.ES2016="ES2016",t.ES2017="ES2017",t.ES2018="ES2018",t.ES2019="ES2019",t.ES2020="ES2020",t.ES2021="ES2021",t.ES2022="ES2022",t.ESNext="ESNext",t))(QLe||{}),XLe=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(XLe||{})}}),tNe={};h(tNe,{ClassificationType:()=>XLe,CommandTypes:()=>Qpe,CompletionTriggerKind:()=>GLe,IndentStyle:()=>JLe,JsxEmit:()=>ULe,ModuleKind:()=>qLe,ModuleResolutionKind:()=>ZLe,NewLineKind:()=>YLe,OrganizeImportsMode:()=>VLe,PollingWatchKind:()=>WLe,ScriptTarget:()=>QLe,SemicolonPreference:()=>$Le,WatchDirectoryKind:()=>KLe,WatchFileKind:()=>HLe});var yQt=o({"src/server/_namespaces/ts.server.protocol.ts"(){eNe()}});function HK(t){return t[0]==="^"||(t.includes("walkThroughSnippet:/")||t.includes("untitled:/"))&&Ac(t)[0]==="^"||t.includes(":^")&&!t.includes(rl)}function Bct(t){return!t||WK(t)?v5.ThrowNoProject():t}function kQt(t){H.assert(typeof t=="number",`Expected position ${t} to be a number.`),H.assert(t>=0,"Expected position to be non-negative.")}function FQt(t){H.assert(typeof t.line=="number",`Expected line ${t.line} to be a number.`),H.assert(typeof t.offset=="number",`Expected offset ${t.offset} to be a number.`),H.assert(t.line>0,`Expected line to be non-${t.line===0?"zero":"negative"}`),H.assert(t.offset>0,`Expected offset to be non-${t.offset===0?"zero":"negative"}`)}var Xpe,ege,AQt=o({"src/server/scriptInfo.ts"(){Xv(),_9(),Xpe=class{constructor(t,u,s){this.host=t,this.info=u,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=s||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}resetSourceMapInfo(){this.info.sourceFileLike=void 0,this.info.closeSourceMapFileWatcher(),this.info.sourceMapFilePath=void 0,this.info.declarationInfoPath=void 0,this.info.sourceInfos=void 0,this.info.documentPositionMapper=void 0}useText(t){this.svc=void 0,this.text=t,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(t,u,s){this.switchToScriptVersionCache().edit(t,u-t,s),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(t){return H.assert(t!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=aw(this.svc.getSnapshot())),this.text!==t?(this.useText(t),this.ownFileText=!1,!0):!1}reloadWithFileText(t){const{text:u,fileSize:s}=t||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(t):{text:"",fileSize:void 0},d=this.reload(u);return this.fileSize=s,this.ownFileText=!t||t===this.info.fileName,d}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var t;return((t=this.tryUseScriptVersionCache())==null?void 0:t.getSnapshot())||(this.textSnapshot??(this.textSnapshot=eX.fromString(H.checkDefined(this.text))))}getAbsolutePositionAndLineText(t){const u=this.tryUseScriptVersionCache();if(u)return u.getAbsolutePositionAndLineText(t);const s=this.getLineMap();return t<=s.length?{absolutePosition:s[t-1],lineText:this.text.substring(s[t-1],s[t])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(t){const u=this.tryUseScriptVersionCache();if(u)return u.lineToTextSpan(t);const s=this.getLineMap(),d=s[t],f=t+1u===void 0?u=this.host.readFile(s)||"":u;if(!mk(this.info.fileName)){const f=this.host.getFileSize?this.host.getFileSize(s):d().length;if(f>ete)return H.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${s} for info ${this.info.fileName}: fileSize: ${f}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(s,f),{text:"",fileSize:f}}return{text:d()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=fte.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=fte.fromString(H.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(H.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return H.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=n7(H.checkDefined(this.text)))}getLineInfo(){const t=this.tryUseScriptVersionCache();if(t)return{getLineCount:()=>t.getLineCount(),getLineText:s=>t.getAbsolutePositionAndLineText(s+1).lineText};const u=this.getLineMap();return Kde(this.text,u)}},ege=class{constructor(t,u,s,d,f,p){this.host=t,this.fileName=u,this.scriptKind=s,this.hasMixedContent=d,this.path=f,this.containingProjects=[],this.isDynamic=HK(u),this.textStorage=new Xpe(t,this,p),(d||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=s||sZ(u)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(t){this.textStorage.isOpen=!0,t!==void 0&&this.textStorage.reload(t)&&this.markContainingProjectsAsDirty()}close(t=!0){this.textStorage.isOpen=!1,t&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){H.assert(!!this.containingProjects.length);const t=this.containingProjects[0],u=this.host.realpath(this.path);u&&(this.realpath=t.toPath(u),this.realpath!==this.path&&t.projectService.realpathToScriptInfos.add(this.realpath,this))}}getRealpathIfDifferent(){return this.realpath&&this.realpath!==this.path?this.realpath:void 0}isSymlink(){return this.realpath&&this.realpath!==this.path}getFormatCodeSettings(){return this.formatSettings}getPreferences(){return this.preferences}attachToProject(t){const u=!this.isAttached(t);return u&&(this.containingProjects.push(t),t.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),t.onFileAddedOrRemoved(this.isSymlink())),u}isAttached(t){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===t;case 2:return this.containingProjects[0]===t||this.containingProjects[1]===t;default:return kt(this.containingProjects,t)}}detachFromProject(t){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===t?(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Vy(this.containingProjects,t)&&t.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const t of this.containingProjects){Qv(t)&&t.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const u=t.getRootFilesMap().get(this.path);t.removeFile(this,!1,!1),t.onFileAddedOrRemoved(this.isSymlink()),u&&!Aw(t)&&t.addMissingFileRoot(u.fileName)}pu(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return v5.ThrowNoProject();case 1:return Bct(this.containingProjects[0]);default:let t,u,s,d,f;for(let p=0;p!t.isOrphan())}isContainedByBackgroundProject(){return Oe(this.containingProjects,WK)}lineToTextSpan(t){return this.textStorage.lineToTextSpan(t)}lineOffsetToPosition(t,u,s){return this.textStorage.lineOffsetToPosition(t,u,s)}positionToLineOffset(t){kQt(t);const u=this.textStorage.positionToLineOffset(t);return FQt(u),u}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ja(this.sourceMapFilePath)&&(jm(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function wct(t,u){if(t===u||(t||$c).length===0&&(u||$c).length===0)return!0;const s=new Map;let d=0;for(const f of t)s.get(f)!==!0&&(s.set(f,!0),d++);for(const f of u){const p=s.get(f);if(p===void 0)return!1;p===!0&&(s.set(f,!1),d--)}return d===0}function SQt(t,u){return t.enable!==u.enable||!wct(t.include,u.include)||!wct(t.exclude,u.exclude)}function BQt(t,u){return Bv(t)!==Bv(u)}function wQt(t,u){return t===u?!1:!On(t,u)}var qee,tge,TQt=o({"src/server/typingsCache.ts"(){Xv(),_9(),qee={isKnownTypesPackageName:cg,installPackage:ho,enqueueInstallTypingsRequest:Is,attach:Is,onProjectClosed:Is,globalTypingsCacheLocation:void 0},tge=class{constructor(t){this.installer=t,this.perProjectCache=new Map}isKnownTypesPackageName(t){return this.installer.isKnownTypesPackageName(t)}installPackage(t){return this.installer.installPackage(t)}enqueueInstallTypingsForProject(t,u,s){const d=t.getTypeAcquisition();if(!d||!d.enable)return;const f=this.perProjectCache.get(t.getProjectName());(s||!f||SQt(d,f.typeAcquisition)||BQt(t.getCompilationSettings(),f.compilerOptions)||wQt(u,f.unresolvedImports))&&(this.perProjectCache.set(t.getProjectName(),{compilerOptions:t.getCompilationSettings(),typeAcquisition:d,typings:f?f.typings:$c,unresolvedImports:u,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(t,d,u))}updateTypingsForProject(t,u,s,d,f){const p=Ph(f);return this.perProjectCache.set(t,{compilerOptions:u,typeAcquisition:s,typings:p,unresolvedImports:d,poisoned:!1}),!s||!s.enable?$c:p}onProjectClosed(t){this.perProjectCache.delete(t.getProjectName()),this.installer.onProjectClosed(t)}}}});function KK(t,u=!1){const s={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const d of t){const f=u?d.textStorage.getTelemetryFileSize():0;switch(d.scriptKind){case 1:s.js+=1,s.jsSize+=f;break;case 2:s.jsx+=1,s.jsxSize+=f;break;case 3:e1(d.fileName)?(s.dts+=1,s.dtsSize+=f):(s.ts+=1,s.tsSize+=f);break;case 4:s.tsx+=1,s.tsxSize+=f;break;case 7:s.deferred+=1,s.deferredSize+=f;break}}return s}function LQt(t){const u=KK(t.getScriptInfos());return u.js>0&&u.ts===0&&u.tsx===0}function iNe(t){const u=KK(t.getRootScriptInfos());return u.ts===0&&u.tsx===0}function nNe(t){const u=KK(t.getScriptInfos());return u.ts===0&&u.tsx===0}function uNe(t){return!t.some(u=>Ml(u,".ts")&&!e1(u)||Ml(u,".tsx"))}function rNe(t){return t.generatedFilePath!==void 0}function NQt(t,u){var s,d;const f=t.getSourceFiles();(s=Gn)==null||s.push(Gn.Phase.Session,"getUnresolvedImports",{count:f.length});const p=t.getTypeChecker().getAmbientModules().map(v=>$4(v.getName())),E=pi(ju(f,v=>PQt(t,v,p,u)));return(d=Gn)==null||d.pop(),E}function PQt(t,u,s,d){return W0(d,u.path,()=>{let f;return t.forEachResolvedModule(({resolvedModule:p},E)=>{(!p||!FP(p.extension))&&!Id(E)&&!s.some(v=>v===E)&&(f=xi(f,oH(E).packageName))},u),f||$c})}function Aw(t){return t.projectKind===0}function Qv(t){return t.projectKind===1}function ige(t){return t.projectKind===2}function WK(t){return t.projectKind===3||t.projectKind===4}var nz,Wk,nge,uge,rge,age,oge,Zee,MQt=o({"src/server/project.ts"(){Xv(),Xv(),_9(),nz=(t=>(t[t.Inferred=0]="Inferred",t[t.Configured=1]="Configured",t[t.External=2]="External",t[t.AutoImportProvider=3]="AutoImportProvider",t[t.Auxiliary=4]="Auxiliary",t))(nz||{}),Wk=class W6t{constructor(u,s,d,f,p,E,v,b,B,k,T){switch(this.projectKind=s,this.projectService=d,this.documentRegistry=f,this.compilerOptions=v,this.compileOnSaveEnabled=b,this.watchOptions=B,this.rootFiles=[],this.rootFilesMap=new Map,this.plugins=[],this.cachedUnresolvedImportsPerFile=new Map,this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1,this.lastReportedVersion=0,this.projectProgramVersion=0,this.projectStateVersion=0,this.isInitialLoadPending=cg,this.dirty=!1,this.typingFiles=$c,this.moduleSpecifierCache=ENe(this),this.createHash=Lo(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=o3.nonRelativeModuleNameForTypingCache,this.projectName=u,this.directoryStructureHost=k,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(T),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new zme(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(p||Bv(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=gee(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),d.serverMode){case 0:this.languageServiceEnabled=!0;break;case 1:this.languageServiceEnabled=!0,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;case 2:this.languageServiceEnabled=!1,this.compilerOptions.noResolve=!0,this.compilerOptions.types=[];break;default:H.assertNever(d.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const M=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=z=>this.writeLog(z):M.trace&&(this.trace=z=>M.trace(z)),this.realpath=Lo(M,M.realpath),this.resolutionCache=$1e(this,this.currentDirectory,!0),this.languageService=eBe(this,this.documentRegistry,this.projectService.serverMode),E&&this.disableLanguageService(E),this.markAsDirty(),WK(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(u){}isNonTsProject(){return Gm(this),nNe(this)}isJsOnlyProject(){return Gm(this),LQt(this)}static resolveModule(u,s,d,f){return W6t.importServicePluginSync({name:u},[s],d,f).resolvedModule}static importServicePluginSync(u,s,d,f){H.assertIsDefined(d.require);let p,E;for(const v of s){const b=q1(d.resolvePath(cr(v,"node_modules")));f(`Loading ${u.name} from ${v} (resolved to ${b})`);const B=d.require(b,u.name);if(!B.error){E=B.module;break}const k=B.error.stack||B.error.message||JSON.stringify(B.error);(p??(p=[])).push(`Failed to load module '${u.name}' from ${b}: ${k}`)}return{pluginConfigEntry:u,resolvedModule:E,errorLogs:p}}static async importServicePluginAsync(u,s,d,f){H.assertIsDefined(d.importPlugin);let p,E;for(const v of s){const b=cr(v,"node_modules");f(`Dynamically importing ${u.name} from ${v} (resolved to ${b})`);let B;try{B=await d.importPlugin(b,u.name)}catch(T){B={module:void 0,error:T}}if(!B.error){E=B.module;break}const k=B.error.stack||B.error.message||JSON.stringify(B.error);(p??(p=[])).push(`Failed to dynamically import module '${u.name}' from ${b}: ${k}`)}return{pluginConfigEntry:u,resolvedModule:E,errorLogs:p}}isKnownTypesPackageName(u){return this.typingsCache.isKnownTypesPackageName(u)}installPackage(u){return this.typingsCache.installPackage({...u,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=ble(this.getCurrentDirectory(),this.getCanonicalFileName)),this.program&&!this.symlinks.hasProcessedResolutions()&&this.symlinks.setSymlinksFromResolutions(this.program.forEachResolvedModule,this.program.forEachResolvedTypeReferenceDirective,this.program.getAutomaticTypeDirectiveResolutions()),this.symlinks}getCompilationSettings(){return this.compilerOptions}getCompilerOptions(){return this.getCompilationSettings()}getNewLine(){return this.projectService.host.newLine}getProjectVersion(){return this.projectStateVersion.toString()}getProjectReferences(){}getScriptFileNames(){if(!this.rootFiles)return _t;let u;return this.rootFilesMap.forEach(s=>{(this.languageServiceEnabled||s.info&&s.info.isScriptOpen())&&(u||(u=[])).push(s.fileName)}),yn(u,this.typingFiles)||_t}getOrCreateScriptInfoAndAttachToProject(u){const s=this.projectService.getOrCreateScriptInfoNotOpenedByClient(u,this.currentDirectory,this.directoryStructureHost);if(s){const d=this.rootFilesMap.get(s.path);d&&d.info!==s&&(this.rootFiles.push(s),d.info=s),s.attachToProject(this)}return s}getScriptKind(u){const s=this.projectService.getScriptInfoForPath(this.toPath(u));return s&&s.scriptKind}getScriptVersion(u){const s=this.projectService.getOrCreateScriptInfoNotOpenedByClient(u,this.currentDirectory,this.directoryStructureHost);return s&&s.getLatestVersion()}getScriptSnapshot(u){const s=this.getOrCreateScriptInfoAndAttachToProject(u);if(s)return s.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const u=lr($o(this.projectService.getExecutingFilePath()));return cr(u,zO(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(u,s,d,f,p){return this.directoryStructureHost.readDirectory(u,s,d,f,p)}readFile(u){return this.projectService.host.readFile(u)}writeFile(u,s){return this.projectService.host.writeFile(u,s)}fileExists(u){const s=this.toPath(u);return!this.isWatchedMissingFile(s)&&this.directoryStructureHost.fileExists(u)}resolveModuleNameLiterals(u,s,d,f,p,E){return this.resolutionCache.resolveModuleNameLiterals(u,s,d,f,p,E)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(u,s,d,f,p,E){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(u,s,d,f,p,E)}resolveLibrary(u,s,d,f){return this.resolutionCache.resolveLibrary(u,s,d,f)}directoryExists(u){return this.directoryStructureHost.directoryExists(u)}getDirectories(u){return this.directoryStructureHost.getDirectories(u)}getCachedDirectoryStructureHost(){}toPath(u){return J0(u,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(u,s,d){return this.projectService.watchFactory.watchDirectory(u,s,d,this.projectService.getWatchOptions(this),cd.FailedLookupLocations,this)}watchAffectingFileLocation(u,s){return this.projectService.watchFactory.watchFile(u,s,2e3,this.projectService.getWatchOptions(this),cd.AffectingFileLocation,this)}clearInvalidateResolutionOfFailedLookupTimer(){return this.projectService.throttledOperations.cancel(`${this.getProjectName()}FailedLookupInvalidation`)}scheduleInvalidateResolutionsOfFailedLookupLocations(){this.projectService.throttledOperations.schedule(`${this.getProjectName()}FailedLookupInvalidation`,1e3,()=>{this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)})}invalidateResolutionsOfFailedLookupLocations(){this.clearInvalidateResolutionOfFailedLookupTimer()&&this.resolutionCache.invalidateResolutionsOfFailedLookupLocations()&&(this.markAsDirty(),this.projectService.delayEnsureProjectForOpenFiles())}onInvalidatedResolution(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}watchTypeRootsDirectory(u,s,d){return this.projectService.watchFactory.watchDirectory(u,s,d,this.projectService.getWatchOptions(this),cd.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(u){return this.projectService.openFiles.has(u)}writeLog(u){this.projectService.logger.info(u)}log(u){this.writeLog(u)}error(u){this.projectService.logger.msg(u,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return ti(this.projectErrors,u=>!u.file)||$c}getAllProjectErrors(){return this.projectErrors||$c}setProjectErrors(u){this.projectErrors=u}getLanguageService(u=!0){return u&&Gm(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(u,s){return this.projectService.getDocumentPositionMapper(this,u,s)}getSourceFileLike(u){return this.projectService.getSourceFileLike(u,this)}shouldEmitFile(u){return u&&!u.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(u.path)}getCompileOnSaveAffectedFileList(u){return this.languageServiceEnabled?(Gm(this),this.builderState=Wp.create(this.program,this.builderState,!0),qi(Wp.getFilesAffectedBy(this.builderState,this.program,u.path,this.cancellationToken,this.projectService.host),s=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(s.path))?s.fileName:void 0)):[]}emitFile(u,s){if(!this.languageServiceEnabled||!this.shouldEmitFile(u))return{emitSkipped:!0,diagnostics:$c};const{emitSkipped:d,diagnostics:f,outputFiles:p}=this.getLanguageService().getEmitOutput(u.fileName);if(!d){for(const E of p){const v=$a(E.name,this.currentDirectory);s(v,E.text,E.writeByteOrderMark)}if(this.builderState&&c4(this.compilerOptions)){const E=p.filter(v=>e1(v.name));if(E.length===1){const v=this.program.getSourceFile(u.fileName),b=this.projectService.host.createHash?this.projectService.host.createHash(E[0].text):AN(E[0].text);Wp.updateSignatureOfFile(this.builderState,b,v.resolvedPath)}}}return{emitSkipped:d,diagnostics:f}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const u of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(u.fileName);this.program.forEachResolvedProjectReference(u=>this.detachScriptInfoFromProject(u.sourceFile.fileName)),this.program=void 0}}disableLanguageService(u){this.languageServiceEnabled&&(H.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=u,this.builderState=void 0,this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.resolutionCache.closeTypeRootsWatch(),this.clearGeneratedFileWatch(),this.projectService.verifyDocumentRegistry(),this.projectService.onUpdateLanguageServiceStateForProject(this,!1))}getProjectName(){return this.projectName}removeLocalTypingsFromTypeAcquisition(u){return!u||!u.include?u:{...u,include:this.removeExistingTypings(u.include)}}getExternalFiles(u){return Ph(ju(this.plugins,s=>{if(typeof s.module.getExternalFiles=="function")try{return s.module.getExternalFiles(this,u||0)}catch(d){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${d}`),d.stack&&this.projectService.logger.info(d.stack)}}))}getSourceFile(u){if(this.program)return this.program.getSourceFileByPath(u)}getSourceFileOrConfigFile(u){const s=this.program.getCompilerOptions();return u===s.configFilePath?s.configFile:this.getSourceFile(u)}close(){this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),L(this.externalFiles,u=>this.detachScriptInfoIfNotRoot(u));for(const u of this.rootFiles)u.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 0,this.rootFilesMap=void 0,this.externalFiles=void 0,this.program=void 0,this.builderState=void 0,this.resolutionCache.clear(),this.resolutionCache=void 0,this.cachedUnresolvedImportsPerFile=void 0,this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(rf(this.missingFilesMap,fg),this.missingFilesMap=void 0),this.clearGeneratedFileWatch(),this.clearInvalidateResolutionOfFailedLookupTimer(),this.autoImportProviderHost&&this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0,this.noDtsResolutionProject&&this.noDtsResolutionProject.close(),this.noDtsResolutionProject=void 0,this.languageService.dispose(),this.languageService=void 0}detachScriptInfoIfNotRoot(u){const s=this.projectService.getScriptInfo(u);s&&!this.isRoot(s)&&s.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(u=>u.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Vt(this.program.getSourceFiles(),u=>{const s=this.projectService.getScriptInfoForPath(u.resolvedPath);return H.assert(!!s,"getScriptInfo",()=>`scriptInfo for a file '${u.fileName}' Path: '${u.path}' / '${u.resolvedPath}' is missing.`),s}):this.rootFiles}getExcludedFiles(){return $c}getFileNames(u,s){if(!this.program)return[];if(!this.languageServiceEnabled){let f=this.getRootFiles();if(this.compilerOptions){const p=tBe(this.compilerOptions);p&&(f||(f=[])).push(p)}return f}const d=[];for(const f of this.program.getSourceFiles())u&&this.program.isSourceFileFromExternalLibrary(f)||d.push(f.fileName);if(!s){const f=this.program.getCompilerOptions().configFile;if(f&&(d.push(f.fileName),f.extendedSourceFiles))for(const p of f.extendedSourceFiles)d.push(p)}return d}getFileNamesWithRedirectInfo(u){return this.getFileNames().map(s=>({fileName:s,isSourceOfProjectReferenceRedirect:u&&this.isSourceOfProjectReferenceRedirect(s)}))}hasConfigFile(u){if(this.program&&this.languageServiceEnabled){const s=this.program.getCompilerOptions().configFile;if(s){if(u===s.fileName)return!0;if(s.extendedSourceFiles){for(const d of s.extendedSourceFiles)if(u===d)return!0}}}return!1}containsScriptInfo(u){if(this.isRoot(u))return!0;if(!this.program)return!1;const s=this.program.getSourceFileByPath(u.path);return!!s&&s.resolvedPath===u.path}containsFile(u,s){const d=this.projectService.getScriptInfoForNormalizedPath(u);return d&&(d.isScriptOpen()||!s)?this.containsScriptInfo(d):!1}isRoot(u){var s;return this.rootFilesMap&&((s=this.rootFilesMap.get(u.path))==null?void 0:s.info)===u}addRoot(u,s){H.assert(!this.isRoot(u)),this.rootFiles.push(u),this.rootFilesMap.set(u.path,{fileName:s||u.fileName,info:u}),u.attachToProject(this),this.markAsDirty()}addMissingFileRoot(u){const s=this.projectService.toPath(u);this.rootFilesMap.set(s,{fileName:u}),this.markAsDirty()}removeFile(u,s,d){this.isRoot(u)&&this.removeRoot(u),s?this.resolutionCache.removeResolutionsOfFile(u.path):this.resolutionCache.invalidateResolutionOfFile(u.path),this.cachedUnresolvedImportsPerFile.delete(u.path),d&&u.detachFromProject(this),this.markAsDirty()}registerFileUpdate(u){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(u)}markFileAsDirty(u){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(u)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var u;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(u=this.autoImportProviderHost)==null||u.markAsDirty()}onPackageJsonChange(u){var s;(s=this.packageJsonsForAutoImport)!=null&&s.has(u)&&(this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty())}onFileAddedOrRemoved(u){this.hasAddedorRemovedFiles=!0,u&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateGraph(){var u,s,d,f,p;(u=Gn)==null||u.push(Gn.Phase.Session,"updateGraph",{name:this.projectName,kind:nz[this.projectKind]}),(s=hh)==null||s.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const E=this.updateGraphWorker(),v=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const b=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||$c;for(const k of b)this.cachedUnresolvedImportsPerFile.delete(k);this.languageServiceEnabled&&this.projectService.serverMode===0?((E||b.length)&&(this.lastCachedUnresolvedImportsList=NQt(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,v)):this.lastCachedUnresolvedImportsList=void 0;const B=this.projectProgramVersion===0&&E;return E&&this.projectProgramVersion++,v&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(d=this.autoImportProviderHost)==null||d.markAsDirty()),B&&this.getPackageJsonAutoImportProvider(),(f=hh)==null||f.logStopUpdateGraph(),(p=Gn)==null||p.pop(),!E}updateTypingFiles(u){eU(u,this.typingFiles,CN(!this.useCaseSensitiveFileNames()),Is,s=>this.detachScriptInfoFromProject(s))&&(this.typingFiles=u,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&rf(this.typingWatchers,fg),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:YQ})}watchTypingLocations(u){if(!u){this.typingWatchers.isInvoked=!1;return}if(!u.length){this.closeWatchingTypingLocations();return}const s=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const d=(f,p)=>{const E=this.toPath(f);s.delete(E),this.typingWatchers.has(E)||this.typingWatchers.set(E,p==="FileWatcher"?this.projectService.watchFactory.watchFile(f,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),cd.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(f,v=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Ml(v,".json"))return this.writeLog("Ignoring files that are not *.json");if(pv(v,cr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),cd.TypingInstallerLocationDirectory,this))};for(const f of u){const p=Ac(f);if(p==="package.json"||p==="bower.json"){d(f,"FileWatcher");continue}if(GE(this.currentDirectory,f,this.currentDirectory,!this.useCaseSensitiveFileNames())){const E=f.indexOf(rl,this.currentDirectory.length+1);d(E!==-1?f.substr(0,E):f,"DirectoryWatcher");continue}if(GE(this.projectService.typingsInstaller.globalTypingsCacheLocation,f,this.currentDirectory,!this.useCaseSensitiveFileNames())){d(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}d(f,"DirectoryWatcher")}s.forEach((f,p)=>{f.close(),this.typingWatchers.delete(p)})}getCurrentProgram(){return this.program}removeExistingTypings(u){const s=VY(this.getCompilerOptions(),this.directoryStructureHost);return u.filter(d=>!s.includes(d))}updateGraphWorker(){var u,s;const d=this.languageService.getCurrentProgram();H.assert(d===this.program),H.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const f=G0(),{hasInvalidatedResolutions:p,hasInvalidatedLibResolutions:E}=this.resolutionCache.createHasInvalidatedResolutions(cg,cg);this.hasInvalidatedResolutions=p,this.hasInvalidatedLibResolutions=E,this.resolutionCache.startCachingPerDirectoryResolution(),this.program=this.languageService.getProgram(),this.dirty=!1,(u=Gn)==null||u.push(Gn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,d),(s=Gn)==null||s.pop(),H.assert(d===void 0||this.program!==void 0);let v=!1;if(this.program&&(!d||this.program!==d&&this.program.structureIsReused!==2)){if(v=!0,d){for(const k of d.getSourceFiles()){const T=this.program.getSourceFileByPath(k.resolvedPath);(!T||k.resolvedPath===k.path&&T.resolvedPath!==k.path)&&this.detachScriptInfoFromProject(k.fileName,!!this.program.getSourceFileByPath(k.path),!0)}d.forEachResolvedProjectReference(k=>{this.program.getResolvedProjectReferenceByPath(k.sourceFile.path)||this.detachScriptInfoFromProject(k.sourceFile.fileName,void 0,!0)})}if(g1e(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),k=>this.addMissingFileWatcher(k)),this.generatedFilesMap){const k=y0(this.compilerOptions);rNe(this.generatedFilesMap)?(!k||!this.isValidGeneratedFileWatcher(_h(k)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():k?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((T,M)=>{const z=this.program.getSourceFileByPath(M);(!z||z.resolvedPath!==M||!this.isValidGeneratedFileWatcher(Mq(z.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),T))&&(jm(T),this.generatedFilesMap.delete(M))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||d&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&d&&this.program&&U_(this.changedFilesForExportMapCache,k=>{const T=d.getSourceFileByPath(k),M=this.program.getSourceFileByPath(k);return!T||!M?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(T,M,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const b=this.externalFiles||$c;this.externalFiles=this.getExternalFiles(),eU(this.externalFiles,b,CN(!this.useCaseSensitiveFileNames()),k=>{const T=this.projectService.getOrCreateScriptInfoNotOpenedByClient(k,this.currentDirectory,this.directoryStructureHost);T==null||T.attachToProject(this)},k=>this.detachScriptInfoFromProject(k));const B=G0()-f;return this.sendPerformanceEvent("UpdateGraph",B),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${v}${this.program?` structureIsReused:: ${cU[this.program.structureIsReused]}`:""} Elapsed: ${B}ms`),this.projectService.logger.isTestLogger?this.program!==d?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==d&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),v}sendPerformanceEvent(u,s){this.projectService.sendPerformanceEvent(u,s)}detachScriptInfoFromProject(u,s,d){const f=this.projectService.getScriptInfo(u);f&&(f.detachFromProject(this),s||this.resolutionCache.removeResolutionsOfFile(f.path,d))}addMissingFileWatcher(u){var s;if(Qv(this)){const f=this.projectService.configFileExistenceInfoCache.get(u);if((s=f==null?void 0:f.config)!=null&&s.projects.has(this.canonicalConfigFilePath))return tw}const d=this.projectService.watchFactory.watchFile(u,(f,p)=>{Qv(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(f,u,p),p===0&&this.missingFilesMap.has(u)&&(this.missingFilesMap.delete(u),d.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),cd.MissingFile,this);return d}isWatchedMissingFile(u){return!!this.missingFilesMap&&this.missingFilesMap.has(u)}addGeneratedFileWatch(u,s){if(y0(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(u));else{const d=this.toPath(s);if(this.generatedFilesMap){if(rNe(this.generatedFilesMap)){H.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(d))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(d,this.createGeneratedFileWatcher(u))}}createGeneratedFileWatcher(u){return{generatedFilePath:this.toPath(u),watcher:this.projectService.watchFactory.watchFile(u,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),cd.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(u,s){return this.toPath(u)===s.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(rNe(this.generatedFilesMap)?jm(this.generatedFilesMap):rf(this.generatedFilesMap,jm),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(u){const s=this.projectService.getScriptInfoForPath(this.toPath(u));return s&&!s.isAttached(this)?v5.ThrowProjectDoesNotContainDocument(u,this):s}getScriptInfo(u){return this.projectService.getScriptInfo(u)}filesToString(u){return this.filesToStringWorker(u,!0,!1)}filesToStringWorker(u,s,d){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending `;if(!this.program)return` Files (0) NoProgram `;const f=this.program.getSourceFiles();let p=` Files (${f.length}) `;if(u){for(const E of f)p+=` ${E.fileName}${d?` ${E.version} ${JSON.stringify(E.text)}`:""} `;s&&(p+=` -`,q1e(this.program,E=>p+=` ${E} -`))}return p}print(u,s,d){this.writeLog(`Project '${this.projectName}' (${iz[this.projectKind]})`),this.writeLog(this.filesToStringWorker(u&&this.projectService.logger.hasLevel(3),s&&this.projectService.logger.hasLevel(3),d&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1)}setCompilerOptions(u){var s;if(u){u.allowNonTsExtensions=!0;const d=this.compilerOptions;this.compilerOptions=u,this.setInternalCompilerOptionsForEmittingJsFiles(),(s=this.noDtsResolutionProject)==null||s.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),WU(d,u)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(u){this.watchOptions=u}getWatchOptions(){return this.watchOptions}setTypeAcquisition(u){u&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(u))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(u,s){var d,f;const p=s?b=>Ea(b.entries(),([B,k])=>({fileName:B,isSourceOfProjectReferenceRedirect:k})):b=>Ea(b.keys());this.isInitialLoadPending()||Wm(this);const E={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:kw(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},v=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&u===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!v)return{info:E,projectErrors:this.getGlobalProjectErrors()};const b=this.lastReportedFileNames,B=((d=this.externalFiles)==null?void 0:d.map(J=>({fileName:gl(J),isSourceOfProjectReferenceRedirect:!1})))||Jc,k=og(this.getFileNamesWithRedirectInfo(!!s).concat(B),J=>J.fileName,J=>J.isSourceOfProjectReferenceRedirect),T=new Map,M=new Map,z=v?Ea(v.keys()):[],j=[];return d1(k,(J,K)=>{b.has(K)?s&&J!==b.get(K)&&j.push({fileName:K,isSourceOfProjectReferenceRedirect:J}):T.set(K,J)}),d1(b,(J,K)=>{k.has(K)||M.set(K,J)}),this.lastReportedFileNames=k,this.lastReportedVersion=this.projectProgramVersion,{info:E,changes:{added:p(T),removed:p(M),updated:s?z.map(J=>({fileName:J,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(J)})):z,updatedRedirects:s?j:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const b=this.getFileNamesWithRedirectInfo(!!s),B=((f=this.externalFiles)==null?void 0:f.map(T=>({fileName:gl(T),isSourceOfProjectReferenceRedirect:!1})))||Jc,k=b.concat(B);return this.lastReportedFileNames=og(k,T=>T.fileName,T=>T.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:E,files:s?k:k.map(T=>T.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(u){mO(this.rootFiles,u),this.rootFilesMap.delete(u.path)}isSourceOfProjectReferenceRedirect(u){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(u)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,hr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(u){if(!this.projectService.globalPlugins.length)return;const s=this.projectService.host;if(!s.require&&!s.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const d=this.getGlobalPluginSearchPaths();for(const f of this.projectService.globalPlugins)f&&(u.plugins&&u.plugins.some(p=>p.name===f)||(this.projectService.logger.info(`Loading global plugin ${f}`),this.enablePlugin({name:f,global:!0},d)))}enablePlugin(u,s){this.projectService.requestEnablePlugin(this,u,s)}enableProxy(u,s){try{if(typeof u!="function"){this.projectService.logger.info(`Skipped loading plugin ${s.name} because it did not expose a proper factory function`);return}const d={config:s,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},f=u({typescript:Uct}),p=f.create(d);for(const E of Object.keys(this.languageService))E in p||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${E} in created LS. Patching.`),p[E]=this.languageService[E]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=p,this.plugins.push({name:s.name,module:f})}catch(d){this.projectService.logger.info(`Plugin activation failed: ${d}`)}}onPluginConfigurationChanged(u,s){this.plugins.filter(d=>d.name===u).forEach(d=>{d.module.onConfigurationChanged&&d.module.onConfigurationChanged(s)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(u,s){return this.projectService.serverMode!==0?Jc:this.projectService.getPackageJsonsVisibleToFile(u,s)}getNearestAncestorDirectoryWithPackageJson(u){return this.projectService.getNearestAncestorDirectoryWithPackageJson(u)}getPackageJsonsForAutoImport(u){const s=this.getPackageJsonsVisibleToFile(hr(this.currentDirectory,ZB),u);return this.packageJsonsForAutoImport=new Set(s.map(d=>d.fileName)),s}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=Nfe(this))}clearCachedExportInfoMap(){var u;(u=this.exportMapCache)==null||u.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||YH(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var u,s;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((u=this.projectService.host.realpath)==null?void 0:u.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(s=this.projectService.host.trace)==null?void 0:s.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var u,s,d;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Wm(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const f=this.includePackageJsonAutoImports();if(f){(u=$n)==null||u.push($n.Phase.Session,"getPackageJsonAutoImportProvider");const p=V0();if(this.autoImportProviderHost=rge.create(f,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Wm(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",V0()-p),(s=$n)==null||s.pop(),this.autoImportProviderHost.getCurrentProgram();(d=$n)==null||d.pop()}}isDefaultProjectForOpenFiles(){return!!d1(this.projectService.openFiles,(u,s)=>this.projectService.tryGetDefaultProjectForFile(gl(s))===this)}watchNodeModulesForPackageJsonChanges(u){return this.projectService.watchPackageJsonsInNodeModules(this.toPath(u),this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(u){return H.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new nge(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==u&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[u]),this.noDtsResolutionProject.rootFile=u),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:_t,lib:_t,noLib:!0}}},ige=class extends Hk{constructor(t,u,s,d,f,p,E){super(t.newInferredProjectName(),0,t,u,void 0,void 0,s,!1,d,t.host,p),this._isJsInferredProject=!1,this.typeAcquisition=E,this.projectRootPath=f&&t.toCanonicalFileName(f),!f&&!t.useSingleInferredProject&&(this.canonicalCurrentDirectory=t.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(t){t!==this._isJsInferredProject&&(this._isJsInferredProject=t,this.setCompilerOptions())}setCompilerOptions(t){if(!t&&!this.getCompilationSettings())return;const u=Yhe(t||this.getCompilationSettings());this._isJsInferredProject&&typeof u.maxNodeModuleJsDepth!="number"?u.maxNodeModuleJsDepth=2:this._isJsInferredProject||(u.maxNodeModuleJsDepth=void 0),u.allowJs=!0,super.setCompilerOptions(u)}addRoot(t){H.assert(t.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(t),!this._isJsInferredProject&&t.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!t.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(t)}removeRoot(t){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(t),super.removeRoot(t),!this.isOrphan()&&this._isJsInferredProject&&t.isJavaScript()&&ye(this.getRootScriptInfos(),u=>!u.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){L(this.getRootScriptInfos(),t=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(t)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:eNe(this),include:_t,exclude:_t}}},nge=class extends Hk{constructor(t,u,s,d){super(t.newAuxiliaryProjectName(),4,t,u,!1,void 0,s,!1,void 0,t.host,d)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},uge=class qOe extends Hk{constructor(u,s,d,f){super(u.projectService.newAutoImportProviderProjectName(),3,u.projectService,d,!1,void 0,f,!1,u.getWatchOptions(),u.projectService.host,u.currentDirectory),this.hostProject=u,this.rootFileNames=s,this.useSourceOfProjectReferenceRedirect=wo(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=wo(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(u,s,d,f){var p,E;if(!u)return _t;const v=s.getCurrentProgram();if(!v)return _t;const b=V0();let B,k;const T=hr(s.currentDirectory,ZB),M=s.getPackageJsonsForAutoImport(hr(s.currentDirectory,T));for(const K of M)(p=K.dependencies)==null||p.forEach((Y,oe)=>j(oe)),(E=K.peerDependencies)==null||E.forEach((Y,oe)=>j(oe));let z=0;if(B){const K=s.getSymlinkCache();for(const Y of Ea(B.keys())){if(u===2&&z>this.maxDependencies)return s.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),_t;const oe=Dde(Y,s.currentDirectory,f,d,v.getModuleResolutionCache());if(oe){const ge=J(oe,v,K);if(ge){k=an(k,ge),z+=ge.length?1:0;continue}}if(!L([s.currentDirectory,s.getGlobalTypingsCacheLocation()],ge=>{if(ge){const ae=Dde(`@types/${Y}`,ge,f,d,v.getModuleResolutionCache());if(ae){const Ce=J(ae,v,K);return k=an(k,Ce),z+=Ce!=null&&Ce.length?1:0,!0}}})&&oe&&f.allowJs&&f.maxNodeModuleJsDepth){const ge=J(oe,v,K,!0);k=an(k,ge),z+=ge!=null&&ge.length?1:0}}}return k!=null&&k.length&&s.log(`AutoImportProviderProject: found ${k.length} root files in ${z} dependencies in ${V0()-b} ms`),k||_t;function j(K){Na(K,"@types/")||(B||(B=new Set)).add(K)}function J(K,Y,oe,se){var ge;const ae=yde(K,f,d,Y.getModuleResolutionCache(),se);if(ae){const Ce=(ge=d.realpath)==null?void 0:ge.call(d,K.packageDirectory),ne=Ce?s.toPath(Ce):void 0,ve=ne&&ne!==s.toPath(K.packageDirectory);return ve&&oe.setSymlinkedDirectory(K.packageDirectory,{real:Pd(Ce),realPath:Pd(ne)}),Ui(ae,Se=>{const Ne=ve?Se.replace(K.packageDirectory,Ce):Se;if(!Y.getSourceFile(Ne)&&!(ve&&Y.getSourceFile(Se)))return Ne})}}}static create(u,s,d,f){if(u===0)return;const p={...s.getCompilerOptions(),...this.compilerOptionsOverrides},E=this.getRootFileNames(u,s,d,p);if(E.length)return new qOe(s,E,f,p)}isEmpty(){return!qe(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let u=this.rootFileNames;u||(u=qOe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,u),this.rootFileNames=u;const s=this.getCurrentProgram(),d=super.updateGraph();return s&&s!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),d}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var u;return!!((u=this.rootFileNames)!=null&&u.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||_t}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var u;return(u=this.hostProject.getCurrentProgram())==null?void 0:u.getModuleResolutionCache()}},uge.maxDependencies=10,uge.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:_t,lib:_t,noLib:!0},rge=uge,age=class extends Hk{constructor(t,u,s,d,f){super(t,1,s,d,!1,void 0,{},!1,void 0,f,dr(t)),this.canonicalConfigFilePath=u,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=G3,this.sendLoadingProjectFinish=!1}setCompilerHost(t){this.compilerHost=t}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(t){const u=Go(t),s=this.projectService.toCanonicalFileName(u);let d=this.projectService.configFileExistenceInfoCache.get(s);return d||this.projectService.configFileExistenceInfoCache.set(s,d={exists:this.projectService.host.fileExists(u)}),this.projectService.ensureParsedConfigUptoDate(u,s,d,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(u,d,this),d.exists?d.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(t){this.releaseParsedConfig(this.projectService.toCanonicalFileName(Go(t)))}releaseParsedConfig(t){this.projectService.stopWatchingWildCards(t,this),this.projectService.releaseParsedConfig(t,this)}updateGraph(){const t=this.isInitialLoadPending();this.isInitialLoadPending=sg;const u=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let s;switch(u){case 1:this.openFileWatchTriggered.clear(),s=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const d=H.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,d,t,!1),s=!0;break;default:s=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),s}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(t){this.projectReferences=t,this.potentialProjectReferences=void 0}setPotentialProjectReference(t){H.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(t)}getResolvedProjectReferenceToRedirect(t){const u=this.getCurrentProgram();return u&&u.getResolvedProjectReferenceToRedirect(t)}forEachResolvedProjectReference(t){var u;return(u=this.getCurrentProgram())==null?void 0:u.forEachResolvedProjectReference(t)}enablePluginsWithOptions(t){var u;if(this.plugins.length=0,!((u=t.plugins)!=null&&u.length)&&!this.projectService.globalPlugins.length)return;const s=this.projectService.host;if(!s.require&&!s.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const d=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const f=dr(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${f} to search paths`),d.unshift(f)}if(t.plugins)for(const f of t.plugins)this.enablePlugin(f,d);return this.enableGlobalPlugins(t)}getGlobalProjectErrors(){return ei(this.projectErrors,t=>!t.file)||Jc}getAllProjectErrors(){return this.projectErrors||Jc}setProjectErrors(t){this.projectErrors=t}close(){this.projectService.configFileExistenceInfoCache.forEach((t,u)=>this.releaseParsedConfig(u)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(t){return Aw(this,t.path,u=>f9(u,t)?u:void 0,0)}hasOpenRef(){var t;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const u=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((t=u.openFilesImpactedByConfigFile)!=null&&t.size):!!u.openFilesImpactedByConfigFile&&d1(u.openFilesImpactedByConfigFile,(s,d)=>{const f=this.projectService.getScriptInfoForPath(d);return this.containsScriptInfo(f)||!!Aw(this,f.path,p=>p.containsScriptInfo(f),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return lM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(t){FY(t,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Jee=class extends Hk{constructor(t,u,s,d,f,p,E,v){super(t,2,u,s,!0,f,d,p,v,u.host,dr(E||U1(t))),this.externalProjectName=t,this.compileOnSaveEnabled=p,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const t=super.updateGraph();return this.projectService.sendProjectTelemetry(this),t}getExcludedFiles(){return this.excludedFiles}}}});function Sct(t){const u=new Map;for(const s of t)if(typeof s.type=="object"){const d=s.type;d.forEach(f=>{H.assert(typeof f=="number")}),u.set(s.name,d)}return u}function Fw(t){return Ja(t.indentStyle)&&(t.indentStyle=Mct.get(t.indentStyle.toLowerCase()),H.assert(t.indentStyle!==void 0)),t}function $ee(t){return Nct.forEach((u,s)=>{const d=t[s];Ja(d)&&(t[s]=u.get(d.toLowerCase()))}),t}function KK(t,u){let s,d;return OB.forEach(f=>{const p=t[f.name];if(p===void 0)return;const E=Pct.get(f.name);(s||(s={}))[f.name]=E?Ja(p)?E.get(p.toLowerCase()):p:Fk(f,p,u||"",d||(d=[]))}),s&&{watchOptions:s,errors:d}}function uNe(t){let u;return QV.forEach(s=>{const d=t[s.name];d!==void 0&&((u||(u={}))[s.name]=d)}),u}function oge(t){return Ja(t)?sge(t):t}function sge(t){switch(t){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function rNe(t){const{lazyConfiguredProjectsFromExternalProject:u,...s}=t;return s}function Bct(t,u){for(const s of u)if(s.getProjectName()===t)return s}function Uee(t){return!!t.containingProjects}function NQt(t){return!!t.configFileInfo}function Aw(t,u,s,d,f){var p;const E=(p=t.getCurrentProgram())==null?void 0:p.getResolvedProjectReferences();if(!E)return;let v;const b=u?t.getResolvedProjectReferenceToRedirect(u):void 0;if(b){const k=gl(b.sourceFile.fileName),T=t.projectService.findConfiguredProjectByProjectName(k);if(T){const M=s(T);if(M)return M}else if(d!==0){v=new Map;const M=aNe(E,t.getCompilerOptions(),(z,j)=>b===z?B(z,j):void 0,d,t.projectService,v);if(M)return M;v.clear()}}return aNe(E,t.getCompilerOptions(),(k,T)=>b!==k?B(k,T):void 0,d,t.projectService,v);function B(k,T){const M=gl(k.sourceFile.fileName),z=t.projectService.findConfiguredProjectByProjectName(M)||(T===0?void 0:T===1?t.projectService.createConfiguredProject(M):T===2?t.projectService.createAndLoadConfiguredProject(M,f):H.assertNever(T));return z&&s(z)}}function aNe(t,u,s,d,f,p){const E=u.disableReferencedProjectLoad?0:d;return L(t,v=>{if(!v)return;const b=gl(v.sourceFile.fileName),B=f.toCanonicalFileName(b),k=p==null?void 0:p.get(B);if(k!==void 0&&k>=E)return;const T=s(v,E);return T||((p||(p=new Map)).set(B,E),v.references&&aNe(v.references,v.commandLine.options,s,E,f,p))})}function wct(t,u){return t.potentialProjectReferences&&$_(t.potentialProjectReferences,u)}function PQt(t,u,s,d){return t.getCurrentProgram()?t.forEachResolvedProjectReference(u):t.isInitialLoadPending()?wct(t,d):L(t.getProjectReferences(),s)}function oNe(t,u,s){const d=s&&t.projectService.configuredProjects.get(s);return d&&u(d)}function Tct(t,u){return PQt(t,s=>oNe(t,u,s.sourceFile.path),s=>oNe(t,u,t.toPath(qB(s))),s=>oNe(t,u,s))}function MQt(t,u){return`${Ja(u)?`Config: ${u} `:u?`Project: ${u.getProjectName()} `:""}WatchType: ${t}`}function Lct(t){return!t.isScriptOpen()&&t.mTime!==void 0}function f9(t,u){return t.containsScriptInfo(u)&&!t.isSourceOfProjectReferenceRedirect(u.path)}function Wm(t){return t.invalidateResolutionsOfFailedLookupLocations(),t.dirty&&t.updateGraph()}function sNe(t){Zv(t)&&(t.projectOptions=!0)}function lNe(t){let u=1;return()=>t(u++)}function cNe(){return{idToCallbacks:new Map,pathToId:new Map}}function zQt(t,u){if(!u||!t.eventHandler||!t.session)return;const s=cNe(),d=cNe(),f=cNe();let p=1;return t.session.addProtocolHandler("watchChange",M=>(B(M.arguments),{responseRequired:!1})),{watchFile:E,watchDirectory:v,getCurrentDirectory:()=>t.host.getCurrentDirectory(),useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames};function E(M,z){return b(s,M,z,j=>({eventName:nte,data:{id:j,path:M}}))}function v(M,z,j){return b(j?f:d,M,z,J=>({eventName:ute,data:{id:J,path:M,recursive:!!j}}))}function b({pathToId:M,idToCallbacks:z},j,J,K){const Y=t.toPath(j);let oe=M.get(Y);oe||M.set(Y,oe=p++);let se=z.get(oe);return se||(z.set(oe,se=new Set),t.eventHandler(K(oe))),se.add(J),{close(){const ge=z.get(oe);ge!=null&&ge.delete(J)&&(ge.size||(z.delete(oe),M.delete(Y),t.eventHandler({eventName:rte,data:{id:oe}})))}}}function B({id:M,path:z,eventType:j}){k(M,z,j),T(d,M,z,j),T(f,M,z,j)}function k(M,z,j){var J;(J=s.idToCallbacks.get(M))==null||J.forEach(K=>{K(z,j==="create"?0:j==="delete"?2:1)})}function T({idToCallbacks:M},z,j,J){var K;J!=="update"&&((K=M.get(z))==null||K.forEach(Y=>{Y(j)}))}}function IQt(){let t;return{get(){return t},set(u){t=u},clear(){t=void 0}}}function dNe(t){return t.kind!==void 0}function hNe(t){t.print(!1,!1,!1)}var qee,Zee,WK,Yee,Qee,Xee,ete,tte,ite,lge,nte,ute,rte,fNe,Nct,Pct,Mct,cge,ate,ote,dge,hge,mNe,fge,RQt=o({"src/server/editorServices.ts"(){Yv(),g9(),QLe(),qee=20*1024*1024,Zee=4*1024*1024,WK="projectsUpdatedInBackground",Yee="projectLoadingStart",Qee="projectLoadingFinish",Xee="largeFileReferenced",ete="configFileDiag",tte="projectLanguageServiceState",ite="projectInfo",lge="openFileInfo",nte="createFileWatcher",ute="createDirectoryWatcher",rte="closeFileWatcher",fNe="*ensureProjectForOpenFiles*",Nct=Sct(r3),Pct=Sct(OB),Mct=new Map(Object.entries({none:0,block:1,smart:2})),cge={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},ate={getFileName:t=>t,getScriptKind:(t,u)=>{let s;if(u){const d=SN(t);d&&qe(u,f=>f.extension===d?(s=f.scriptKind,!0):!1)}return s},hasMixedContent:(t,u)=>qe(u,s=>s.isMixedContent&&Pl(t,s.extension))},ote={getFileName:t=>t.fileName,getScriptKind:t=>oge(t.scriptKind),hasMixedContent:t=>!!t.hasMixedContent},dge={close:Ms},hge=(t=>(t[t.Find=0]="Find",t[t.FindCreate=1]="FindCreate",t[t.FindCreateLoad=2]="FindCreateLoad",t))(hge||{}),mNe=class ZOe{constructor(u){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=lNe(MLe),this.newAutoImportProviderProjectName=lNe(zLe),this.newAuxiliaryProjectName=lNe(ILe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=cge,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.verifyDocumentRegistry=Ms,this.verifyProgram=Ms,this.onProjectCreation=Ms;var s;this.host=u.host,this.logger=u.logger,this.cancellationToken=u.cancellationToken,this.useSingleInferredProject=u.useSingleInferredProject,this.useInferredProjectPerProjectRoot=u.useInferredProjectPerProjectRoot,this.typingsInstaller=u.typingsInstaller||Gee,this.throttleWaitMilliseconds=u.throttleWaitMilliseconds,this.eventHandler=u.eventHandler,this.suppressDiagnosticEvents=u.suppressDiagnosticEvents,this.globalPlugins=u.globalPlugins||Jc,this.pluginProbeLocations=u.pluginProbeLocations||Jc,this.allowLocalPluginLoads=!!u.allowLocalPluginLoads,this.typesMapLocation=u.typesMapLocation===void 0?hr(dr(this.getExecutingFilePath()),"typesMap.json"):u.typesMapLocation,this.session=u.session,this.jsDocParsingMode=u.jsDocParsingMode,u.serverMode!==void 0?this.serverMode=u.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Bm()),this.currentDirectory=gl(this.host.getCurrentDirectory()),this.toCanonicalFileName=T1(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?Pd(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new qpe(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new ege(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:qQ(this.host.newLine),preferences:c4,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=jfe(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const d=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,f=d!==0?p=>this.logger.info(p):Ms;this.packageJsonCache=gNe(this),this.watchFactory=this.serverMode!==0?{watchFile:ew,watchDirectory:ew}:g1e(zQt(this,u.canUseWatchEvents)||this.host,d,f,MQt),(s=u.incrementalVerifier)==null||s.call(u,this)}toPath(u){return H0(u,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(u){return $a(u,this.host.getCurrentDirectory())}setDocument(u,s,d){const f=H.checkDefined(this.getScriptInfoForPath(s));f.cacheSourceFile={key:u,sourceFile:d}}getDocument(u,s){const d=this.getScriptInfoForPath(s);return d&&d.cacheSourceFile&&d.cacheSourceFile.key===u?d.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(u,s){if(!this.eventHandler)return;const d={eventName:tte,data:{project:u,languageServiceEnabled:s}};this.eventHandler(d)}loadTypesMap(){try{const u=this.host.readFile(this.typesMapLocation);if(u===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const s=JSON.parse(u);for(const d of Object.keys(s.typesMap))s.typesMap[d].match=new RegExp(s.typesMap[d].match,"i");this.safelist=s.typesMap;for(const d in s.simpleMap)Eu(s.simpleMap,d)&&this.legacySafelist.set(d,s.simpleMap[d].toLowerCase())}catch(u){this.logger.info(`Error loading types map: ${u}`),this.safelist=cge,this.legacySafelist.clear()}}updateTypingsForProject(u){const s=this.findProject(u.projectName);if(s)switch(u.kind){case JQ:s.updateTypingFiles(this.typingsCache.updateTypingsForProject(u.projectName,u.compilerOptions,u.typeAcquisition,u.unresolvedImports,u.typings));return;case $Q:this.typingsCache.enqueueInstallTypingsForProject(s,s.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(u){var s;(s=this.findProject(u.projectName))==null||s.watchTypingLocations(u.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(fNe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(u){if(u.markAsDirty(),HK(u))return;const s=u.getProjectName();this.pendingProjectUpdates.set(s,u),this.throttledOperations.schedule(s,250,()=>{this.pendingProjectUpdates.delete(s)&&Wm(u)})}hasPendingProjectUpdate(u){return this.pendingProjectUpdates.has(u.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const u={eventName:WK,data:{openFiles:Ea(this.openFiles.keys(),s=>this.getScriptInfoForPath(s).fileName)}};this.eventHandler(u)}sendLargeFileReferencedEvent(u,s){if(!this.eventHandler)return;const d={eventName:Xee,data:{file:u,fileSize:s,maxFileSize:Zee}};this.eventHandler(d)}sendProjectLoadingStartEvent(u,s){if(!this.eventHandler)return;u.sendLoadingProjectFinish=!0;const d={eventName:Yee,data:{project:u,reason:s}};this.eventHandler(d)}sendProjectLoadingFinishEvent(u){if(!this.eventHandler||!u.sendLoadingProjectFinish)return;u.sendLoadingProjectFinish=!1;const s={eventName:Qee,data:{project:u}};this.eventHandler(s)}sendPerformanceEvent(u,s){this.performanceEventHandler&&this.performanceEventHandler({kind:u,durationMs:s})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(u){this.delayUpdateProjectGraph(u),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(u,s){if(u.length){for(const d of u)s&&d.clearSourceMapperCache(),this.delayUpdateProjectGraph(d);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(u,s){H.assert(s===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const d=$ee(u),f=KK(u,s),p=uNe(u);d.allowNonTsExtensions=!0;const E=s&&this.toCanonicalFileName(s);E?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(E,d),this.watchOptionsForInferredProjectsPerProjectRoot.set(E,f||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(E,p)):(this.compilerOptionsForInferredProjects=d,this.watchOptionsForInferredProjects=f,this.typeAcquisitionForInferredProjects=p);for(const v of this.inferredProjects)(E?v.projectRootPath===E:!v.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(v.projectRootPath))&&(v.setCompilerOptions(d),v.setTypeAcquisition(p),v.setWatchOptions(f==null?void 0:f.watchOptions),v.setProjectErrors(f==null?void 0:f.errors),v.compileOnSaveEnabled=d.compileOnSave,v.markAsDirty(),this.delayUpdateProjectGraph(v));this.delayEnsureProjectForOpenFiles()}findProject(u){if(u!==void 0)return PLe(u)?Bct(u,this.inferredProjects):this.findExternalProjectByProjectName(u)||this.findConfiguredProjectByProjectName(gl(u))}forEachProject(u){this.externalProjects.forEach(u),this.configuredProjects.forEach(u),this.inferredProjects.forEach(u)}forEachEnabledProject(u){this.forEachProject(s=>{!s.isOrphan()&&s.languageServiceEnabled&&u(s)})}getDefaultProjectForFile(u,s){return s?this.ensureDefaultProjectForFile(u):this.tryGetDefaultProjectForFile(u)}tryGetDefaultProjectForFile(u){const s=Ja(u)?this.getScriptInfoForNormalizedPath(u):u;return s&&!s.isOrphan()?s.getDefaultProject():void 0}ensureDefaultProjectForFile(u){return this.tryGetDefaultProjectForFile(u)||this.doEnsureDefaultProjectForFile(u)}doEnsureDefaultProjectForFile(u){this.ensureProjectStructuresUptoDate();const s=Ja(u)?this.getScriptInfoForNormalizedPath(u):u;return s?s.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ja(u)?u:u.fileName),x5.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(u){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(u)}ensureProjectStructuresUptoDate(){let u=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const s=d=>{u=Wm(d)||u};this.externalProjects.forEach(s),this.configuredProjects.forEach(s),this.inferredProjects.forEach(s),u&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(u){const s=this.getScriptInfoForNormalizedPath(u);return s&&s.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(u){const s=this.getScriptInfoForNormalizedPath(u);return{...this.hostConfiguration.preferences,...s&&s.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(u,s){s===2?this.handleDeletedFile(u):u.isScriptOpen()||(u.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(u.containingProjects,!1),this.handleSourceMapProjects(u))}handleSourceMapProjects(u){if(u.sourceMapFilePath)if(Ja(u.sourceMapFilePath)){const s=this.getScriptInfoForPath(u.sourceMapFilePath);this.delayUpdateSourceInfoProjects(s&&s.sourceInfos)}else this.delayUpdateSourceInfoProjects(u.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(u.sourceInfos),u.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(u.declarationInfoPath)}delayUpdateSourceInfoProjects(u){u&&u.forEach((s,d)=>this.delayUpdateProjectsOfScriptInfoPath(d))}delayUpdateProjectsOfScriptInfoPath(u){const s=this.getScriptInfoForPath(u);s&&this.delayUpdateProjectGraphs(s.containingProjects,!0)}handleDeletedFile(u){if(this.stopWatchingScriptInfo(u),!u.isScriptOpen()){this.deleteScriptInfo(u);const s=u.containingProjects.slice();if(u.detachAllProjects(),this.delayUpdateProjectGraphs(s,!1),this.handleSourceMapProjects(u),u.closeSourceMapFileWatcher(),u.declarationInfoPath){const d=this.getScriptInfoForPath(u.declarationInfoPath);d&&(d.sourceMapFilePath=void 0)}}}watchWildcardDirectory(u,s,d,f){return this.watchFactory.watchDirectory(u,p=>{const E=this.toPath(p),v=f.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(p,E);Fc(E)==="package.json"&&!YH(E)&&(v&&v.fileExists||!v&&this.host.fileExists(E))&&(this.logger.info(`Config: ${d} Detected new package.json: ${p}`),this.onAddPackageJson(E));const b=this.findConfiguredProjectByProjectName(d);EH({watchedDirPath:u,fileOrDirectory:p,fileOrDirectoryPath:E,configFileName:d,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:f.parsedCommandLine.options,program:(b==null?void 0:b.getCurrentProgram())||f.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:B=>this.logger.info(B),toPath:B=>this.toPath(B),getScriptKind:b?B=>b.getScriptKind(B):void 0})||(f.updateLevel!==2&&(f.updateLevel=1),f.projects.forEach((B,k)=>{if(!B)return;const T=this.getConfiguredProjectByCanonicalConfigFilePath(k);if(!T)return;const M=b===T?1:0;if(!(T.pendingUpdateLevel!==void 0&&T.pendingUpdateLevel>M))if(this.openFiles.has(E))if(H.checkDefined(this.getScriptInfoForPath(E)).isAttached(T)){const j=Math.max(M,T.openFileWatchTriggered.get(E)||0);T.openFileWatchTriggered.set(E,j)}else T.pendingUpdateLevel=M,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T);else T.pendingUpdateLevel=M,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T)}))},s,this.getWatchOptionsFromProjectWatchOptions(f.parsedCommandLine.watchOptions),sd.WildcardDirectory,d)}delayUpdateProjectsFromParsedConfigOnConfigFileChange(u,s){const d=this.configFileExistenceInfoCache.get(u);if(!(d!=null&&d.config))return!1;let f=!1;return d.config.updateLevel=2,d.config.projects.forEach((p,E)=>{const v=this.getConfiguredProjectByCanonicalConfigFilePath(E);if(v)if(f=!0,E===u){if(v.isInitialLoadPending())return;v.pendingUpdateLevel=2,v.pendingUpdateReason=s,this.delayUpdateProjectGraph(v)}else v.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(u)),this.delayUpdateProjectGraph(v)}),f}onConfigFileChanged(u,s){var d;const f=this.configFileExistenceInfoCache.get(u);if(s===2){f.exists=!1;const p=(d=f.config)!=null&&d.projects.has(u)?this.getConfiguredProjectByCanonicalConfigFilePath(u):void 0;p&&this.removeProject(p)}else f.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(u,"Change in config file detected"),this.reloadConfiguredProjectForFiles(f.openFilesImpactedByConfigFile,!1,!0,s!==2?el:G3,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(u){switch(this.logger.info("`remove Project::"),u.print(!0,!0,!1),u.close(),H.shouldAssert(1)&&this.filenameToScriptInfo.forEach(s=>H.assert(!s.isAttached(u),"Found script Info still attached to project",()=>`${u.projectName}: ScriptInfos still attached: ${JSON.stringify(Ea(Uo(this.filenameToScriptInfo.values(),d=>d.isAttached(u)?{fileName:d.fileName,projects:d.containingProjects.map(f=>f.projectName),hasMixedContent:d.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(u.getProjectName()),u.projectKind){case 2:Oy(this.externalProjects,u),this.projectToSizeMap.delete(u.getProjectName());break;case 1:this.configuredProjects.delete(u.canonicalConfigFilePath),this.projectToSizeMap.delete(u.canonicalConfigFilePath);break;case 0:Oy(this.inferredProjects,u);break}}assignOrphanScriptInfoToInferredProject(u,s){H.assert(u.isOrphan());const d=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(u,s)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(u.isDynamic?s||this.currentDirectory:dr(Nf(u.fileName)?u.fileName:$a(u.fileName,s?this.getNormalizedAbsolutePath(s):this.currentDirectory)));if(d.addRoot(u),u.containingProjects[0]!==d&&(u.detachFromProject(d),u.containingProjects.unshift(d)),d.updateGraph(),!this.useSingleInferredProject&&!d.projectRootPath)for(const f of this.inferredProjects){if(f===d||f.isOrphan())continue;const p=f.getRootScriptInfos();H.assert(p.length===1||!!f.projectRootPath),p.length===1&&L(p[0].containingProjects,E=>E!==p[0].containingProjects[0]&&!E.isOrphan())&&f.removeFile(p[0],!0,!0)}return d}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);d.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(d,u)})}closeOpenFile(u,s){const d=u.isDynamic?!1:this.host.fileExists(u.fileName);u.close(d),this.stopWatchingConfigFilesForClosedScriptInfo(u);const f=this.toCanonicalFileName(u.fileName);this.openFilesWithNonRootedDiskPath.get(f)===u&&this.openFilesWithNonRootedDiskPath.delete(f);let p=!1;for(const E of u.containingProjects){if(Zv(E)){u.hasMixedContent&&u.registerFileUpdate();const v=E.openFileWatchTriggered.get(u.path);v!==void 0&&(E.openFileWatchTriggered.delete(u.path),E.pendingUpdateLevel!==void 0&&E.pendingUpdateLevelthis.onConfigFileChanged(s,B),2e3,this.getWatchOptionsFromProjectWatchOptions((p=(f=E==null?void 0:E.config)==null?void 0:f.parsedCommandLine)==null?void 0:p.watchOptions),sd.ConfigFile,d));const v=E.config.projects;v.set(d.canonicalConfigFilePath,v.get(d.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(u){return u.openFilesImpactedByConfigFile&&d1(u.openFilesImpactedByConfigFile,el)}releaseParsedConfig(u,s){var d,f,p;const E=this.configFileExistenceInfoCache.get(u);(d=E.config)!=null&&d.projects.delete(s.canonicalConfigFilePath)&&((f=E.config)!=null&&f.projects.size||(E.config=void 0,m1e(u,this.sharedExtendedConfigFileWatchers),H.checkDefined(E.watcher),(p=E.openFilesImpactedByConfigFile)!=null&&p.size?this.configFileExistenceImpactsRootOfInferredProject(E)?NQ(bd(dr(u)))||(E.watcher.close(),E.watcher=dge):(E.watcher.close(),E.watcher=void 0):(E.watcher.close(),this.configFileExistenceInfoCache.delete(u))))}closeConfigFileWatcherOnReleaseOfOpenFile(u){u.watcher&&!u.config&&!this.configFileExistenceImpactsRootOfInferredProject(u)&&(u.watcher.close(),u.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(u){H.assert(!u.isScriptOpen()),this.forEachConfigFileLocation(u,s=>{var d,f,p;const E=this.configFileExistenceInfoCache.get(s);if(E){const v=(d=E.openFilesImpactedByConfigFile)==null?void 0:d.get(u.path);(f=E.openFilesImpactedByConfigFile)==null||f.delete(u.path),v&&this.closeConfigFileWatcherOnReleaseOfOpenFile(E),!((p=E.openFilesImpactedByConfigFile)!=null&&p.size)&&!E.config&&(H.assert(!E.watcher),this.configFileExistenceInfoCache.delete(s))}})}startWatchingConfigFilesForInferredProjectRoot(u){H.assert(u.isScriptOpen()),this.forEachConfigFileLocation(u,(s,d)=>{let f=this.configFileExistenceInfoCache.get(s);f||(f={exists:this.host.fileExists(d)},this.configFileExistenceInfoCache.set(s,f)),(f.openFilesImpactedByConfigFile||(f.openFilesImpactedByConfigFile=new Map)).set(u.path,!0),f.watcher||(f.watcher=NQ(bd(dr(s)))?this.watchFactory.watchFile(d,(p,E)=>this.onConfigFileChanged(s,E),2e3,this.hostConfiguration.watchOptions,sd.ConfigFileForInferredRoot):dge)})}stopWatchingConfigFilesForInferredProjectRoot(u){this.forEachConfigFileLocation(u,s=>{var d;const f=this.configFileExistenceInfoCache.get(s);(d=f==null?void 0:f.openFilesImpactedByConfigFile)!=null&&d.has(u.path)&&(H.assert(u.isScriptOpen()),f.openFilesImpactedByConfigFile.set(u.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(f))})}forEachConfigFileLocation(u,s){if(this.serverMode!==0)return;H.assert(!Uee(u)||this.openFiles.has(u.path));const d=this.openFiles.get(u.path);if(H.checkDefined(this.getScriptInfo(u.path)).isDynamic)return;let p=dr(u.fileName);const E=()=>WE(d,p,this.currentDirectory,!this.host.useCaseSensitiveFileNames),v=!d||!E();let b=!NQt(u);do{if(b){const k=OK(p,this.currentDirectory,this.toCanonicalFileName),T=hr(p,"tsconfig.json");let M=s(hr(k,"tsconfig.json"),T);if(M)return T;const z=hr(p,"jsconfig.json");if(M=s(hr(k,"jsconfig.json"),z),M)return z;if(DU(k))break}const B=dr(p);if(B===p)break;p=B,b=!0}while(v||E())}findDefaultConfiguredProject(u){if(!u.isScriptOpen())return;const s=this.getConfigFileNameForFile(u),d=s&&this.findConfiguredProjectByProjectName(s);return d&&f9(d,u)?d:d==null?void 0:d.getDefaultChildProjectFromProjectWithReferences(u)}getConfigFileNameForFile(u){if(Uee(u)){H.assert(u.isScriptOpen());const d=this.configFileForOpenFiles.get(u.path);if(d!==void 0)return d||void 0}this.logger.info(`Search path: ${dr(u.fileName)}`);const s=this.forEachConfigFileLocation(u,(d,f)=>this.configFileExists(f,d,u));return s?this.logger.info(`For info: ${u.fileName} :: Config file name: ${s}`):this.logger.info(`For info: ${u.fileName} :: No config files found.`),Uee(u)&&this.configFileForOpenFiles.set(u.path,s||!1),s}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(hNe),this.configuredProjects.forEach(hNe),this.inferredProjects.forEach(hNe),this.logger.info("Open files: "),this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);this.logger.info(` FileName: ${d.fileName} ProjectRootPath: ${u}`),this.logger.info(` Projects: ${d.containingProjects.map(f=>f.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(u){const s=this.toCanonicalFileName(u);return this.getConfiguredProjectByCanonicalConfigFilePath(s)}getConfiguredProjectByCanonicalConfigFilePath(u){return this.configuredProjects.get(u)}findExternalProjectByProjectName(u){return Bct(u,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(u,s,d,f){if(s&&s.disableSizeLimit||!this.host.getFileSize)return;let p=qee;this.projectToSizeMap.set(u,0),this.projectToSizeMap.forEach(v=>p-=v||0);let E=0;for(const v of d){const b=f.getFileName(v);if(!hk(b)&&(E+=this.host.getFileSize(b),E>qee||E>p)){const B=d.map(k=>f.getFileName(k)).filter(k=>!hk(k)).map(k=>({name:k,size:this.host.getFileSize(k)})).sort((k,T)=>T.size-k.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${E}). Largest files: ${B.map(k=>`${k.name}:${k.size}`).join(", ")}`),b}}this.projectToSizeMap.set(u,E)}createExternalProject(u,s,d,f,p){const E=$ee(d),v=KK(d,dr(U1(u))),b=new Jee(u,this,this.documentRegistry,E,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u,E,s,ote),d.compileOnSave===void 0?!0:d.compileOnSave,void 0,v==null?void 0:v.watchOptions);return b.setProjectErrors(v==null?void 0:v.errors),b.excludedFiles=p,this.addFilesToNonInferredProject(b,s,ote,f),this.externalProjects.push(b),b}sendProjectTelemetry(u){if(this.seenProjects.has(u.projectName)){sNe(u);return}if(this.seenProjects.set(u.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){sNe(u);return}const s=Zv(u)?u.projectOptions:void 0;sNe(u);const d={projectId:this.host.createSHA256Hash(u.projectName),fileStats:VK(u.getScriptInfos(),!0),compilerOptions:QFe(u.getCompilationSettings()),typeAcquisition:p(u.getTypeAcquisition()),extends:s&&s.configHasExtendsProperty,files:s&&s.configHasFilesProperty,include:s&&s.configHasIncludeProperty,exclude:s&&s.configHasExcludeProperty,compileOnSave:u.compileOnSaveEnabled,configFileName:f(),projectType:u instanceof Jee?"external":"configured",languageServiceEnabled:u.languageServiceEnabled,version:_};this.eventHandler({eventName:ite,data:d});function f(){return Zv(u)&&Upe(u.getConfigFilePath())||"other"}function p({enable:E,include:v,exclude:b}){return{enable:E,include:v!==void 0&&v.length!==0,exclude:b!==void 0&&b.length!==0}}}addFilesToNonInferredProject(u,s,d,f){this.updateNonInferredProjectFiles(u,s,d),u.setTypeAcquisition(f),u.markAsDirty()}createConfiguredProject(u){var s;(s=$n)==null||s.instant($n.Phase.Session,"createConfiguredProject",{configFilePath:u}),this.logger.info(`Creating configuration project ${u}`);const d=this.toCanonicalFileName(u);let f=this.configFileExistenceInfoCache.get(d);f?f.exists=!0:this.configFileExistenceInfoCache.set(d,f={exists:!0}),f.config||(f.config={cachedDirectoryStructureHost:gQ(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const p=new age(u,d,this,this.documentRegistry,f.config.cachedDirectoryStructureHost);return this.configuredProjects.set(d,p),this.createConfigFileWatcherForParsedConfig(u,d,p),p}createConfiguredProjectWithDelayLoad(u,s){const d=this.createConfiguredProject(u);return d.pendingUpdateLevel=2,d.pendingUpdateReason=s,d}createAndLoadConfiguredProject(u,s){const d=this.createConfiguredProject(u);return this.loadConfiguredProject(d,s),d}createLoadAndUpdateConfiguredProject(u,s){const d=this.createAndLoadConfiguredProject(u,s);return d.updateGraph(),d}loadConfiguredProject(u,s){var d,f;(d=$n)==null||d.push($n.Phase.Session,"loadConfiguredProject",{configFilePath:u.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(u,s);const p=Go(u.getConfigFilePath()),E=this.ensureParsedConfigUptoDate(p,u.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(u.canonicalConfigFilePath),u),v=E.config.parsedCommandLine;H.assert(!!v.fileNames);const b=v.options;u.projectOptions||(u.projectOptions={configHasExtendsProperty:v.raw.extends!==void 0,configHasFilesProperty:v.raw.files!==void 0,configHasIncludeProperty:v.raw.include!==void 0,configHasExcludeProperty:v.raw.exclude!==void 0}),u.canConfigFileJsonReportNoInputFiles=rM(v.raw),u.setProjectErrors(v.options.configFile.parseDiagnostics),u.updateReferences(v.projectReferences);const B=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u.canonicalConfigFilePath,b,v.fileNames,ate);B?(u.disableLanguageService(B),this.configFileExistenceInfoCache.forEach((T,M)=>this.stopWatchingWildCards(M,u))):(u.setCompilerOptions(b),u.setWatchOptions(v.watchOptions),u.enableLanguageService(),this.watchWildcards(p,E,u)),u.enablePluginsWithOptions(b);const k=v.fileNames.concat(u.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(u,k,ate,b,v.typeAcquisition,v.compileOnSave,v.watchOptions),(f=$n)==null||f.pop()}ensureParsedConfigUptoDate(u,s,d,f){var p,E,v;if(d.config){if(!d.config.updateLevel)return d;if(d.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(u,d.config),d}const b=((p=d.config)==null?void 0:p.cachedDirectoryStructureHost)||gQ(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),B=uM(u,j=>this.host.readFile(j)),k=HV(u,Ja(B)?B:""),T=k.parseDiagnostics;Ja(B)||T.push(B);const M=JV(k,b,dr(u),{},u,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);M.errors.length&&T.push(...M.errors),this.logger.info(`Config: ${u} : ${JSON.stringify({rootNames:M.fileNames,options:M.options,watchOptions:M.watchOptions,projectReferences:M.projectReferences},void 0," ")}`);const z=(E=d.config)==null?void 0:E.parsedCommandLine;return d.config?(d.config.parsedCommandLine=M,d.config.watchedDirectoriesStale=!0,d.config.updateLevel=void 0):d.config={parsedCommandLine:M,cachedDirectoryStructureHost:b,projects:new Map},!z&&!oZ(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(M.watchOptions))&&((v=d.watcher)==null||v.close(),d.watcher=void 0),this.createConfigFileWatcherForParsedConfig(u,s,f),EQ(s,M.options,this.sharedExtendedConfigFileWatchers,(j,J)=>this.watchFactory.watchFile(j,()=>{var K;_Q(this.extendedConfigCache,J,oe=>this.toPath(oe));let Y=!1;(K=this.sharedExtendedConfigFileWatchers.get(J))==null||K.projects.forEach(oe=>{Y=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(oe,`Change in extended config file ${j} detected`)||Y}),Y&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,sd.ExtendedConfigFile,u),j=>this.toPath(j)),d}watchWildcards(u,{exists:s,config:d},f){if(d.projects.set(f.canonicalConfigFilePath,!0),s){if(d.watchedDirectories&&!d.watchedDirectoriesStale)return;d.watchedDirectoriesStale=!1,gH(d.watchedDirectories||(d.watchedDirectories=new Map),new Map(Object.entries(d.parsedCommandLine.wildcardDirectories)),(p,E)=>this.watchWildcardDirectory(p,E,u,d))}else{if(d.watchedDirectoriesStale=!1,!d.watchedDirectories)return;uf(d.watchedDirectories,Om),d.watchedDirectories=void 0}}stopWatchingWildCards(u,s){const d=this.configFileExistenceInfoCache.get(u);!d.config||!d.config.projects.get(s.canonicalConfigFilePath)||(d.config.projects.set(s.canonicalConfigFilePath,!1),!d1(d.config.projects,el)&&(d.config.watchedDirectories&&(uf(d.config.watchedDirectories,Om),d.config.watchedDirectories=void 0),d.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(u,s,d){const f=u.getRootFilesMap(),p=new Map;for(const E of s){const v=d.getFileName(E),b=gl(v),B=jK(b);let k;if(!B&&!u.fileExists(v)){k=OK(b,this.currentDirectory,this.toCanonicalFileName);const T=f.get(k);T?(T.info&&(u.removeFile(T.info,!1,!0),T.info=void 0),T.fileName=b):f.set(k,{fileName:b})}else{const T=d.getScriptKind(E,this.hostConfiguration.extraFileExtensions),M=d.hasMixedContent(E,this.hostConfiguration.extraFileExtensions),z=H.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(b,u.currentDirectory,T,M,u.directoryStructureHost));k=z.path;const j=f.get(k);!j||j.info!==z?(u.addRoot(z,b),z.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(z)):j.fileName=b}p.set(k,!0)}f.size>p.size&&f.forEach((E,v)=>{p.has(v)||(E.info?u.removeFile(E.info,u.fileExists(v),!0):f.delete(v))})}updateRootAndOptionsOfNonInferredProject(u,s,d,f,p,E,v){u.setCompilerOptions(f),u.setWatchOptions(v),E!==void 0&&(u.compileOnSaveEnabled=E),this.addFilesToNonInferredProject(u,s,d,p)}reloadFileNamesOfConfiguredProject(u){const s=this.reloadFileNamesOfParsedConfig(u.getConfigFilePath(),this.configFileExistenceInfoCache.get(u.canonicalConfigFilePath).config);return u.updateErrorOnNoInputFiles(s),this.updateNonInferredProjectFiles(u,s.concat(u.getExternalFiles(1)),ate),u.markAsDirty(),u.updateGraph()}reloadFileNamesOfParsedConfig(u,s){if(s.updateLevel===void 0)return s.parsedCommandLine.fileNames;H.assert(s.updateLevel===1);const d=s.parsedCommandLine.options.configFile.configFileSpecs,f=aM(d,dr(u),s.parsedCommandLine.options,s.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return s.parsedCommandLine={...s.parsedCommandLine,fileNames:f},f}setFileNamesOfAutpImportProviderOrAuxillaryProject(u,s){this.updateNonInferredProjectFiles(u,s,ate)}reloadConfiguredProject(u,s,d,f){const p=u.getCachedDirectoryStructureHost();f&&this.clearSemanticCache(u),p.clearCache();const E=u.getConfigFilePath();this.logger.info(`${d?"Loading":"Reloading"} configured project ${E}`),this.loadConfiguredProject(u,s),u.updateGraph(),this.sendConfigFileDiagEvent(u,E)}clearSemanticCache(u){u.resolutionCache.clear(),u.getLanguageService(!1).cleanupSemanticCache(),u.cleanupProgram(),u.markAsDirty()}sendConfigFileDiagEvent(u,s){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const d=u.getLanguageService().getCompilerOptionsDiagnostics();d.push(...u.getAllProjectErrors()),this.eventHandler({eventName:ete,data:{configFileName:u.getConfigFilePath(),diagnostics:d,triggerFile:s}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(u,s){if(!this.useInferredProjectPerProjectRoot||u.isDynamic&&s===void 0)return;if(s){const f=this.toCanonicalFileName(s);for(const p of this.inferredProjects)if(p.projectRootPath===f)return p;return this.createInferredProject(s,!1,s)}let d;for(const f of this.inferredProjects)f.projectRootPath&&WE(f.projectRootPath,u.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(d&&d.projectRootPath.length>f.projectRootPath.length||(d=f));return d}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(u){H.assert(!this.useSingleInferredProject);const s=this.toCanonicalFileName(this.getNormalizedAbsolutePath(u));for(const d of this.inferredProjects)if(!d.projectRootPath&&d.isOrphan()&&d.canonicalCurrentDirectory===s)return d;return this.createInferredProject(u)}createInferredProject(u,s,d){const f=d&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(d)||this.compilerOptionsForInferredProjects;let p,E;d&&(p=this.watchOptionsForInferredProjectsPerProjectRoot.get(d),E=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(d)),p===void 0&&(p=this.watchOptionsForInferredProjects),E===void 0&&(E=this.typeAcquisitionForInferredProjects),p=p||void 0;const v=new ige(this,this.documentRegistry,f,p==null?void 0:p.watchOptions,d,u,E);return v.setProjectErrors(p==null?void 0:p.errors),s?this.inferredProjects.unshift(v):this.inferredProjects.push(v),v}getOrCreateScriptInfoNotOpenedByClient(u,s,d){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(gl(u),s,void 0,void 0,d)}getScriptInfo(u){return this.getScriptInfoForNormalizedPath(gl(u))}getScriptInfoOrConfig(u){const s=gl(u),d=this.getScriptInfoForNormalizedPath(s);if(d)return d;const f=this.configuredProjects.get(this.toPath(u));return f&&f.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(u){const s=Ea(this.filenameToScriptInfo.entries(),([d,f])=>({path:d,fileName:f.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(u)}. -All files are: ${JSON.stringify(s)}`,"Err")}getSymlinkedProjects(u){let s;if(this.realpathToScriptInfos){const f=u.getRealpathIfDifferent();f&&L(this.realpathToScriptInfos.get(f),d),L(this.realpathToScriptInfos.get(u.path),d)}return s;function d(f){if(f!==u)for(const p of f.containingProjects)p.languageServiceEnabled&&!p.isOrphan()&&!p.getCompilerOptions().preserveSymlinks&&!u.isAttached(p)&&(s?d1(s,(E,v)=>v===f.path?!1:Ft(E,p))||s.add(f.path,p):(s=Bm(),s.add(f.path,p)))}}watchClosedScriptInfo(u){if(H.assert(!u.fileWatcher),!u.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Na(u.path,this.globalCacheLocationDirectoryPath))){const s=u.path.indexOf("/node_modules/");!this.host.getModifiedTime||s===-1?u.fileWatcher=this.watchFactory.watchFile(u.fileName,(d,f)=>this.onSourceFileChanged(u,f),500,this.hostConfiguration.watchOptions,sd.ClosedScriptInfo):(u.mTime=this.getModifiedTime(u),u.fileWatcher=this.watchClosedScriptInfoInNodeModules(u.path.substr(0,s)))}}createNodeModulesWatcher(u){const s=this.watchFactory.watchDirectory(u,f=>{var p;const E=LQ(this.toPath(f));if(!E)return;const v=Fc(E);if((p=d.affectedModuleSpecifierCacheProjects)!=null&&p.size&&(v==="package.json"||v==="node_modules")&&d.affectedModuleSpecifierCacheProjects.forEach(b=>{var B,k;(k=(B=this.findProject(b))==null?void 0:B.getModuleSpecifierCache())==null||k.clear()}),d.refreshScriptInfoRefCount)if(u===E)this.refreshScriptInfosInDirectory(u);else{const b=this.getScriptInfoForPath(E);b?Lct(b)&&this.refreshScriptInfo(b):XA(E)||this.refreshScriptInfosInDirectory(E)}},1,this.hostConfiguration.watchOptions,sd.NodeModules),d={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var f;!d.refreshScriptInfoRefCount&&!((f=d.affectedModuleSpecifierCacheProjects)!=null&&f.size)&&(s.close(),this.nodeModulesWatchers.delete(u))}};return this.nodeModulesWatchers.set(u,d),d}watchPackageJsonsInNodeModules(u,s){const d=this.nodeModulesWatchers.get(u)||this.createNodeModulesWatcher(u);return(d.affectedModuleSpecifierCacheProjects||(d.affectedModuleSpecifierCacheProjects=new Set)).add(s.getProjectName()),{close:()=>{var f;(f=d.affectedModuleSpecifierCacheProjects)==null||f.delete(s.getProjectName()),d.close()}}}watchClosedScriptInfoInNodeModules(u){const s=u+"/node_modules",d=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(s);return d.refreshScriptInfoRefCount++,{close:()=>{d.refreshScriptInfoRefCount--,d.close()}}}getModifiedTime(u){return(this.host.getModifiedTime(u.path)||H_).getTime()}refreshScriptInfo(u){const s=this.getModifiedTime(u);if(s!==u.mTime){const d=Dse(u.mTime,s);u.mTime=s,this.onSourceFileChanged(u,d)}}refreshScriptInfosInDirectory(u){u=u+nl,this.filenameToScriptInfo.forEach(s=>{Lct(s)&&Na(s.path,u)&&this.refreshScriptInfo(s)})}stopWatchingScriptInfo(u){u.fileWatcher&&(u.fileWatcher.close(),u.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(u,s,d,f,p){if(Nf(u)||jK(u))return this.getOrCreateScriptInfoWorker(u,s,!1,void 0,d,f,p);const E=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(u));if(E)return E}getOrCreateScriptInfoOpenedByClientForNormalizedPath(u,s,d,f,p){return this.getOrCreateScriptInfoWorker(u,s,!0,d,f,p)}getOrCreateScriptInfoForNormalizedPath(u,s,d,f,p,E){return this.getOrCreateScriptInfoWorker(u,this.currentDirectory,s,d,f,p,E)}getOrCreateScriptInfoWorker(u,s,d,f,p,E,v){H.assert(f===void 0||d,"ScriptInfo needs to be opened by client to be able to set its user defined content");const b=OK(u,s,this.toCanonicalFileName);let B=this.getScriptInfoForPath(b);if(!B){const k=jK(u);if(H.assert(Nf(u)||k||d,"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:Ea(this.openFilesWithNonRootedDiskPath.keys())})} -Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),H.assert(!Nf(u)||this.currentDirectory===s||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(u)),"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:Ea(this.openFilesWithNonRootedDiskPath.keys())})} -Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),H.assert(!k||this.currentDirectory===s||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:Ea(this.openFilesWithNonRootedDiskPath.keys())})} -Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!d&&!k&&!(v||this.host).fileExists(u))return;B=new Xpe(this.host,u,p,!!E,b,this.filenameToScriptInfoVersion.get(b)),this.filenameToScriptInfo.set(B.path,B),this.filenameToScriptInfoVersion.delete(B.path),d?!Nf(u)&&(!k||this.currentDirectory!==s)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(u),B):this.watchClosedScriptInfo(B)}return d&&(this.stopWatchingScriptInfo(B),B.open(f),E&&B.registerFileUpdate()),B}getScriptInfoForNormalizedPath(u){return!Nf(u)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(u))||this.getScriptInfoForPath(OK(u,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(u){return this.filenameToScriptInfo.get(u)}getDocumentPositionMapper(u,s,d){const f=this.getOrCreateScriptInfoNotOpenedByClient(s,u.currentDirectory,this.host);if(!f){d&&u.addGeneratedFileWatch(s,d);return}if(f.getSnapshot(),Ja(f.sourceMapFilePath)){const k=this.getScriptInfoForPath(f.sourceMapFilePath);if(k&&(k.getSnapshot(),k.documentPositionMapper!==void 0))return k.sourceInfos=this.addSourceInfoToSourceMap(d,u,k.sourceInfos),k.documentPositionMapper?k.documentPositionMapper:void 0;f.sourceMapFilePath=void 0}else if(f.sourceMapFilePath){f.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(d,u,f.sourceMapFilePath.sourceInfos);return}else if(f.sourceMapFilePath!==void 0)return;let p,E,v=(k,T)=>{const M=this.getOrCreateScriptInfoNotOpenedByClient(k,u.currentDirectory,this.host);if(!M){E=T;return}p=M;const z=M.getSnapshot();return M.documentPositionMapper!==void 0?M.documentPositionMapper:uw(z)};const b=u.projectName,B=Wfe({getCanonicalFileName:this.toCanonicalFileName,log:k=>this.logger.info(k),getSourceFileLike:k=>this.getSourceFileLike(k,b,f)},f.fileName,f.textStorage.getLineInfo(),v);return v=void 0,p?(f.sourceMapFilePath=p.path,p.declarationInfoPath=f.path,p.documentPositionMapper=B||!1,p.sourceInfos=this.addSourceInfoToSourceMap(d,u,p.sourceInfos)):E?f.sourceMapFilePath={watcher:this.addMissingSourceMapFile(u.currentDirectory===this.currentDirectory?E:$a(E,u.currentDirectory),f.path),sourceInfos:this.addSourceInfoToSourceMap(d,u)}:f.sourceMapFilePath=!1,B}addSourceInfoToSourceMap(u,s,d){if(u){const f=this.getOrCreateScriptInfoNotOpenedByClient(u,s.currentDirectory,s.directoryStructureHost);(d||(d=new Set)).add(f.path)}return d}addMissingSourceMapFile(u,s){return this.watchFactory.watchFile(u,()=>{const f=this.getScriptInfoForPath(s);f&&f.sourceMapFilePath&&!Ja(f.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(f.containingProjects,!0),this.delayUpdateSourceInfoProjects(f.sourceMapFilePath.sourceInfos),f.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,sd.MissingSourceMapFile)}getSourceFileLike(u,s,d){const f=s.projectName?s:this.findProject(s);if(f){const E=f.toPath(u),v=f.getSourceFile(E);if(v&&v.resolvedPath===E)return v}const p=this.getOrCreateScriptInfoNotOpenedByClient(u,(f||this).currentDirectory,f?f.directoryStructureHost:this.host);if(p){if(d&&Ja(d.sourceMapFilePath)&&p!==d){const E=this.getScriptInfoForPath(d.sourceMapFilePath);E&&(E.sourceInfos||(E.sourceInfos=new Set)).add(p.path)}return p.cacheSourceFile?p.cacheSourceFile.sourceFile:(p.sourceFileLike||(p.sourceFileLike={get text(){return H.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:E=>{const v=p.positionToLineOffset(E);return{line:v.line-1,character:v.offset-1}},getPositionOfLineAndCharacter:(E,v,b)=>p.lineOffsetToPosition(E+1,v+1,b)}),p.sourceFileLike)}}setPerformanceEventHandler(u){this.performanceEventHandler=u}setHostConfiguration(u){var s;if(u.file){const d=this.getScriptInfoForNormalizedPath(gl(u.file));d&&(d.setOptions(Fw(u.formatOptions),u.preferences),this.logger.info(`Host configuration update for file ${u.file}`))}else{if(u.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=u.hostInfo,this.logger.info(`Host information ${u.hostInfo}`)),u.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...Fw(u.formatOptions)},this.logger.info("Format host information updated")),u.preferences){const{lazyConfiguredProjectsFromExternalProject:d,includePackageJsonAutoImports:f}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...u.preferences},d&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.configuredProjects.forEach(p=>{p.hasExternalProjectRef()&&p.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(p.getProjectName())&&p.updateGraph()}),f!==u.preferences.includePackageJsonAutoImports&&this.invalidateProjectPackageJson(void 0)}u.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=u.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),u.watchOptions&&(this.hostConfiguration.watchOptions=(s=KK(u.watchOptions))==null?void 0:s.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(u){return this.getWatchOptionsFromProjectWatchOptions(u.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(u){return u&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...u}:u||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(u=>{this.openFiles.has(u.path)||u.fileWatcher&&this.onSourceFileChanged(u,this.host.fileExists(u.fileName)?1:2)}),this.pendingProjectUpdates.forEach((u,s)=>{this.throttledOperations.cancel(s),this.pendingProjectUpdates.delete(s)}),this.throttledOperations.cancel(fNe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(u=>{u.config&&(u.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,G3,"User requested reload projects"),this.externalProjects.forEach(u=>{this.clearSemanticCache(u),u.updateGraph()}),this.inferredProjects.forEach(u=>this.clearSemanticCache(u)),this.ensureProjectForOpenFiles()}reloadConfiguredProjectForFiles(u,s,d,f,p){const E=new Map,v=b=>{E.has(b.canonicalConfigFilePath)||(E.set(b.canonicalConfigFilePath,!0),this.reloadConfiguredProject(b,p,!1,s))};u==null||u.forEach((b,B)=>{if(this.configFileForOpenFiles.delete(B),!f(b))return;const k=this.getScriptInfoForPath(B);H.assert(k.isScriptOpen());const T=this.getConfigFileNameForFile(k);if(T){const M=this.findConfiguredProjectByProjectName(T)||this.createConfiguredProject(T);E.has(M.canonicalConfigFilePath)||(E.set(M.canonicalConfigFilePath,!0),d?(M.pendingUpdateLevel=2,M.pendingUpdateReason=p,s&&this.clearSemanticCache(M),this.delayUpdateProjectGraph(M)):(this.reloadConfiguredProject(M,p,!1,s),f9(M,k)||Aw(M,k.path,j=>(v(j),f9(j,k)),1)&&Aw(M,void 0,v,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(u){H.assert(u.containingProjects.length>0);const s=u.containingProjects[0];!s.isOrphan()&&kw(s)&&s.isRoot(u)&&L(u.containingProjects,d=>d!==s&&!d.isOrphan())&&s.removeFile(u,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);d.isOrphan()?this.assignOrphanScriptInfoToInferredProject(d,u):this.removeRootOfInferredProjectIfNowPartOfOtherProject(d)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Wm),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(u,s,d,f){return this.openClientFileWithNormalizedPath(gl(u),s,d,!1,f?gl(f):void 0)}getOriginalLocationEnsuringConfiguredProject(u,s){const d=u.isSourceOfProjectReferenceRedirect(s.fileName),f=d?s:u.getSourceMapper().tryGetSourcePosition(s);if(!f)return;const{fileName:p}=f,E=this.getScriptInfo(p);if(!E&&!this.host.fileExists(p))return;const v={fileName:gl(p),path:this.toPath(p)},b=this.getConfigFileNameForFile(v);if(!b)return;let B=this.findConfiguredProjectByProjectName(b);if(!B){if(u.getCompilerOptions().disableReferencedProjectLoad)return d?s:E!=null&&E.containingProjects.length?f:s;B=this.createAndLoadConfiguredProject(b,`Creating project for original file: ${v.fileName}${s!==f?" for location: "+s.fileName:""}`)}Wm(B);const k=z=>{const j=this.getScriptInfo(p);return j&&f9(z,j)};if(B.isSolution()||!k(B)){if(B=Aw(B,p,z=>(Wm(z),k(z)?z:void 0),2,`Creating project referenced in solution ${B.projectName} to find possible configured project for original file: ${v.fileName}${s!==f?" for location: "+s.fileName:""}`),!B)return;if(B===u)return f}M(B);const T=this.getScriptInfo(p);if(!T||!T.containingProjects.length)return;return T.containingProjects.forEach(z=>{Zv(z)&&M(z)}),f;function M(z){u.originalConfiguredProjects||(u.originalConfiguredProjects=new Set),u.originalConfiguredProjects.add(z.canonicalConfigFilePath)}}fileExists(u){return!!this.getScriptInfoForNormalizedPath(u)||this.host.fileExists(u)}findExternalProjectContainingOpenScriptInfo(u){return Le(this.externalProjects,s=>(Wm(s),s.containsScriptInfo(u)))}getOrCreateOpenScriptInfo(u,s,d,f,p){const E=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(u,p?this.getNormalizedAbsolutePath(p):this.currentDirectory,s,d,f);return this.openFiles.set(E.path,p),E}assignProjectToOpenedScriptInfo(u){let s,d,f=this.findExternalProjectContainingOpenScriptInfo(u),p,E,v=!1;return!f&&this.serverMode===0&&(s=this.getConfigFileNameForFile(u),s&&(f=this.findConfiguredProjectByProjectName(s),f?Wm(f):(f=this.createLoadAndUpdateConfiguredProject(s,`Creating possible configured project for ${u.fileName} to open`),v=!0),E=f.containsScriptInfo(u)?f:void 0,p=f,f9(f,u)||Aw(f,u.path,b=>{if(Wm(b),Ha(p)?p.push(b):p=[f,b],f9(b,u))return E=b,b;!E&&b.containsScriptInfo(u)&&(E=b)},2,`Creating project referenced in solution ${f.projectName} to find possible configured project for ${u.fileName} to open`),E?(s=E.getConfigFilePath(),(E!==f||v)&&(d=E.getAllProjectErrors(),this.sendConfigFileDiagEvent(E,u.fileName))):s=void 0,this.createAncestorProjects(u,f))),u.containingProjects.forEach(Wm),u.isOrphan()&&(Ha(p)?p.forEach(b=>this.sendConfigFileDiagEvent(b,u.fileName)):p&&this.sendConfigFileDiagEvent(p,u.fileName),H.assert(this.openFiles.has(u.path)),this.assignOrphanScriptInfoToInferredProject(u,this.openFiles.get(u.path))),H.assert(!u.isOrphan()),{configFileName:s,configFileErrors:d,retainProjects:p}}createAncestorProjects(u,s){if(u.isAttached(s))for(;;){if(!s.isInitialLoadPending()&&(!s.getCompilerOptions().composite||s.getCompilerOptions().disableSolutionSearching))return;const d=this.getConfigFileNameForFile({fileName:s.getConfigFilePath(),path:u.path,configFileInfo:!0});if(!d)return;const f=this.findConfiguredProjectByProjectName(d)||this.createConfiguredProjectWithDelayLoad(d,`Creating project possibly referencing default composite project ${s.getProjectName()} of open file ${u.fileName}`);f.isInitialLoadPending()&&f.setPotentialProjectReference(s.canonicalConfigFilePath),s=f}}loadAncestorProjectTree(u){u=u||j0(this.configuredProjects,(d,f)=>f.isInitialLoadPending()?void 0:[d,!0]);const s=new Set;for(const d of Ea(this.configuredProjects.values()))wct(d,f=>u.has(f))&&Wm(d),this.ensureProjectChildren(d,u,s)}ensureProjectChildren(u,s,d){var f;if(!Ll(d,u.canonicalConfigFilePath)||u.getCompilerOptions().disableReferencedProjectLoad)return;const p=(f=u.getCurrentProgram())==null?void 0:f.getResolvedProjectReferences();if(p)for(const E of p){if(!E)continue;const v=A1e(E.references,k=>s.has(k.sourceFile.path)?k:void 0);if(!v)continue;const b=gl(E.sourceFile.fileName),B=u.projectService.findConfiguredProjectByProjectName(b)||u.projectService.createAndLoadConfiguredProject(b,`Creating project referenced by : ${u.projectName} as it references project ${v.sourceFile.fileName}`);Wm(B),this.ensureProjectChildren(B,s,d)}}cleanupAfterOpeningFile(u){this.removeOrphanConfiguredProjects(u);for(const s of this.inferredProjects.slice())s.isOrphan()&&this.removeProject(s);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(u,s,d,f,p){const E=this.getOrCreateOpenScriptInfo(u,s,d,f,p),{retainProjects:v,...b}=this.assignProjectToOpenedScriptInfo(E);return this.cleanupAfterOpeningFile(v),this.telemetryOnOpenFile(E),this.printProjects(),b}removeOrphanConfiguredProjects(u){const s=new Map(this.configuredProjects),d=E=>{!E.isOrphan()&&E.originalConfiguredProjects&&E.originalConfiguredProjects.forEach((v,b)=>{const B=this.getConfiguredProjectByCanonicalConfigFilePath(b);return B&&p(B)})};u&&(Ha(u)?u.forEach(p):p(u)),this.inferredProjects.forEach(d),this.externalProjects.forEach(d),this.configuredProjects.forEach(E=>{E.hasOpenRef()?p(E):s.has(E.canonicalConfigFilePath)&&Tct(E,v=>f(v)&&p(E))}),s.forEach(E=>this.removeProject(E));function f(E){return E.hasOpenRef()||!s.has(E.canonicalConfigFilePath)}function p(E){s.delete(E.canonicalConfigFilePath)&&(d(E),Tct(E,p))}}removeOrphanScriptInfos(){const u=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(s=>{if(!s.isScriptOpen()&&s.isOrphan()&&!s.isContainedByBackgroundProject()){if(!s.sourceMapFilePath)return;let d;if(Ja(s.sourceMapFilePath)){const f=this.getScriptInfoForPath(s.sourceMapFilePath);d=f&&f.sourceInfos}else d=s.sourceMapFilePath.sourceInfos;if(!d||!$_(d,f=>{const p=this.getScriptInfoForPath(f);return!!p&&(p.isScriptOpen()||!p.isOrphan())}))return}if(u.delete(s.path),s.sourceMapFilePath){let d;if(Ja(s.sourceMapFilePath)){u.delete(s.sourceMapFilePath);const f=this.getScriptInfoForPath(s.sourceMapFilePath);d=f&&f.sourceInfos}else d=s.sourceMapFilePath.sourceInfos;d&&d.forEach((f,p)=>u.delete(p))}}),u.forEach(s=>{this.stopWatchingScriptInfo(s),this.deleteScriptInfo(s),s.closeSourceMapFileWatcher()})}telemetryOnOpenFile(u){if(this.serverMode!==0||!this.eventHandler||!u.isJavaScript()||!Pp(this.allJsFilesForOpenFileTelemetry,u.path))return;const s=this.ensureDefaultProjectForFile(u);if(!s.languageServiceEnabled)return;const d=s.getSourceFile(u.path),f=!!d&&!!d.checkJsDirective;this.eventHandler({eventName:lge,data:{info:{checkJs:f}}})}closeClientFile(u,s){const d=this.getScriptInfoForNormalizedPath(gl(u)),f=d?this.closeOpenFile(d,s):!1;return s||this.printProjects(),f}collectChanges(u,s,d,f){for(const p of s){const E=Le(u,v=>v.projectName===p.getProjectName());f.push(p.getChangesSinceVersion(E&&E.version,d))}}synchronizeProjectList(u,s){const d=[];return this.collectChanges(u,this.externalProjects,s,d),this.collectChanges(u,this.configuredProjects.values(),s,d),this.collectChanges(u,this.inferredProjects,s,d),d}applyChangesInOpenFiles(u,s,d){let f,p=!1;if(u)for(const v of u){const b=this.getOrCreateOpenScriptInfo(gl(v.fileName),v.content,oge(v.scriptKind),v.hasMixedContent,v.projectRootPath?gl(v.projectRootPath):void 0);(f||(f=[])).push(b)}if(s)for(const v of s){const b=this.getScriptInfo(v.fileName);H.assert(!!b),this.applyChangesToFile(b,v.changes)}if(d)for(const v of d)p=this.closeClientFile(v,!0)||p;let E;f&&(E=Ku(f,v=>this.assignProjectToOpenedScriptInfo(v).retainProjects)),p&&this.assignOrphanScriptInfosToInferredProject(),f?(this.cleanupAfterOpeningFile(E),f.forEach(v=>this.telemetryOnOpenFile(v)),this.printProjects()):S(d)&&this.printProjects()}applyChangesToFile(u,s){for(const d of s)u.editContent(d.span.start,d.span.start+d.span.length,d.newText)}closeConfiguredProjectReferencedFromExternalProject(u){const s=this.findConfiguredProjectByProjectName(u);if(s&&(s.deleteExternalProjectReference(),!s.hasOpenRef())){this.removeProject(s);return}}closeExternalProject(u){const s=gl(u),d=this.externalProjectToConfiguredProjectMap.get(s);if(d){for(const f of d)this.closeConfiguredProjectReferencedFromExternalProject(f);this.externalProjectToConfiguredProjectMap.delete(s)}else{const f=this.findExternalProjectByProjectName(u);f&&this.removeProject(f)}}openExternalProjects(u){const s=og(this.externalProjects,d=>d.getProjectName(),d=>!0);$_(this.externalProjectToConfiguredProjectMap,d=>{s.set(d,!0)});for(const d of u)this.openExternalProject(d),s.delete(d.projectFileName);$_(s,d=>{this.closeExternalProject(d)})}static escapeFilenameForRegex(u){return u.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=cge}applySafeList(u){const{rootFiles:s}=u,d=u.typeAcquisition;if(H.assert(!!d,"proj.typeAcquisition should be set by now"),d.enable===!1||d.disableFilenameBasedTypeAcquisition)return[];const f=d.include||(d.include=[]),p=[],E=s.map(k=>U1(k.fileName)),v=[];for(const k of Object.keys(this.safelist)){const T=this.safelist[k];for(const M of E)if(T.match.test(M)){if(this.logger.info(`Excluding files based on rule ${k} matching file '${M}'`),T.types)for(const z of T.types)f.includes(z)||f.push(z);if(T.exclude)for(const z of T.exclude){const j=M.replace(T.match,(...J)=>z.map(K=>typeof K=="number"?Ja(J[K])?ZOe.escapeFilenameForRegex(J[K]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${k} - not enough groups`),"\\*"):K).join(""));p.includes(j)||p.push(j)}else{const z=ZOe.escapeFilenameForRegex(M);p.includes(z)||p.push(z)}}}const b=p.map(k=>new RegExp(k,"i")),B=[];for(let k=0;kT.test(E[k])))v.push(E[k]);else{let T=!1;if(d.enable){const M=Fc(Jg(E[k]));if(Pl(M,"js")){const z=Eh(M),j=ooe(z),J=this.legacySafelist.get(j);J!==void 0&&(this.logger.info(`Excluded '${E[k]}' because it matched ${j} from the legacy safelist`),v.push(E[k]),T=!0,f.includes(J)||f.push(J))}}T||(/^.+[.-]min\.js$/.test(E[k])?v.push(E[k]):B.push(u.rootFiles[k]))}return u.rootFiles=B,v}openExternalProject(u){u.typeAcquisition=u.typeAcquisition||{},u.typeAcquisition.include=u.typeAcquisition.include||[],u.typeAcquisition.exclude=u.typeAcquisition.exclude||[],u.typeAcquisition.enable===void 0&&(u.typeAcquisition.enable=iNe(u.rootFiles.map(v=>v.fileName)));const s=this.applySafeList(u);let d;const f=[];for(const v of u.rootFiles){const b=gl(v.fileName);Upe(b)?this.serverMode===0&&this.host.fileExists(b)&&(d||(d=[])).push(b):f.push(v)}d&&d.sort();const p=this.findExternalProjectByProjectName(u.projectFileName);let E;if(p){if(p.excludedFiles=s,!d){const v=$ee(u.options),b=KK(u.options,p.getCurrentDirectory()),B=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u.projectFileName,v,u.rootFiles,ote);B?p.disableLanguageService(B):p.enableLanguageService(),p.setProjectErrors(b==null?void 0:b.errors),this.updateRootAndOptionsOfNonInferredProject(p,u.rootFiles,ote,v,u.typeAcquisition,u.options.compileOnSave,b==null?void 0:b.watchOptions),p.updateGraph();return}this.closeExternalProject(u.projectFileName)}else if(this.externalProjectToConfiguredProjectMap.get(u.projectFileName))if(!d)this.closeExternalProject(u.projectFileName);else{const v=this.externalProjectToConfiguredProjectMap.get(u.projectFileName);let b=0,B=0;for(;bk||((E||(E=[])).push(T),B++),b++)}for(let k=B;kthis.logger.info(E));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let p=this.pendingPluginEnablements.get(u);p||this.pendingPluginEnablements.set(u,p=[]),p.push(f);return}this.endEnablePlugin(u,Hk.importServicePluginSync(s,d,this.host,f=>this.logger.info(f)))}endEnablePlugin(u,{pluginConfigEntry:s,resolvedModule:d,errorLogs:f}){var p;if(d){const E=(p=this.currentPluginConfigOverrides)==null?void 0:p.get(s.name);if(E){const v=s.name;s=E,s.name=v}u.enableProxy(d,s)}else L(f,E=>this.logger.info(E)),this.logger.info(`Couldn't find ${s.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const u=Ea(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(u),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(u){H.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Kt(u,([s,d])=>this.enableRequestedPluginsForProjectAsync(s,d))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(u,s){const d=await Promise.all(s);if(!u.isClosed()){for(const f of d)this.endEnablePlugin(u,f);this.delayUpdateProjectGraph(u)}}configurePlugin(u){this.forEachEnabledProject(s=>s.onPluginConfigurationChanged(u.pluginName,u.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(u.pluginName,u.configuration)}getPackageJsonsVisibleToFile(u,s){const d=this.packageJsonCache,f=s&&this.toPath(s),p=this.toPath(u),E=[],v=b=>{switch(d.directoryHasPackageJson(b)){case 3:return d.searchDirectoryAndAncestors(b),v(b);case-1:const B=hr(b,"package.json");this.watchPackageJsonFile(B);const k=d.getInDirectory(b);k&&E.push(k)}if(f&&f===b)return!0};return $g(dr(p),v),E}getNearestAncestorDirectoryWithPackageJson(u){return $g(u,s=>{switch(this.packageJsonCache.directoryHasPackageJson(this.toPath(s))){case-1:return s;case 0:return;case 3:return this.host.fileExists(hr(s,"package.json"))?s:void 0}})}watchPackageJsonFile(u){const s=this.packageJsonFilesMap||(this.packageJsonFilesMap=new Map);s.has(u)||(this.invalidateProjectPackageJson(u),s.set(u,this.watchFactory.watchFile(u,(d,f)=>{const p=this.toPath(d);switch(f){case 0:return H.fail();case 1:this.packageJsonCache.addOrUpdate(p),this.invalidateProjectPackageJson(p);break;case 2:this.packageJsonCache.delete(p),this.invalidateProjectPackageJson(p),s.get(p).close(),s.delete(p)}},250,this.hostConfiguration.watchOptions,sd.PackageJson)))}onAddPackageJson(u){this.packageJsonCache.addOrUpdate(u),this.watchPackageJsonFile(u)}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}invalidateProjectPackageJson(u){this.configuredProjects.forEach(s),this.inferredProjects.forEach(s),this.externalProjects.forEach(s);function s(d){u?d.onPackageJsonChange(u):d.onAutoImportProviderSettingsChanged()}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=IQt())}},mNe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,fge=mNe}});function pNe(t){let u,s,d;const f={get(b,B,k,T){if(!(!s||d!==E(b,k,T)))return s.get(B)},set(b,B,k,T,M,z){if(p(b,k,T).set(B,v(M,z,!1)),z){for(const j of M)if(j.isInNodeModules){const J=j.path.substring(0,j.path.indexOf(a_)+a_.length-1);u!=null&&u.has(J)||(u||(u=new Map)).set(J,t.watchNodeModulesForPackageJsonChanges(J))}}},setModulePaths(b,B,k,T,M){const z=p(b,k,T),j=z.get(B);j?j.modulePaths=M:z.set(B,v(M,void 0,void 0))},setBlockedByPackageJsonDependencies(b,B,k,T,M){const z=p(b,k,T),j=z.get(B);j?j.isBlockedByPackageJsonDependencies=M:z.set(B,v(void 0,void 0,M))},clear(){u==null||u.forEach(b=>b.close()),s==null||s.clear(),u==null||u.clear(),d=void 0},count(){return s?s.size:0}};return H.isDebugging&&Object.defineProperty(f,"__cache",{get:()=>s}),f;function p(b,B,k){const T=E(b,B,k);return s&&d!==T&&f.clear(),d=T,s||(s=new Map)}function E(b,B,k){return`${b},${B.importModuleSpecifierEnding},${B.importModuleSpecifierPreference},${k.overrideImportMode}`}function v(b,B,k){return{modulePaths:b,moduleSpecifiers:B,isBlockedByPackageJsonDependencies:k}}}var OQt=o({"src/server/moduleSpecifierCache.ts"(){Yv()}});function gNe(t){const u=new Map,s=new Map;return{addOrUpdate:d,forEach:u.forEach.bind(u),get:u.get.bind(u),delete:p=>{u.delete(p),s.set(dr(p),!0)},getInDirectory:p=>u.get(hr(p,"package.json"))||void 0,directoryHasPackageJson:f,searchDirectoryAndAncestors:p=>{$g(p,E=>{if(f(E)!==3)return!0;const v=t.toPath(hr(E,"package.json"));ZH(t,v)?d(v):s.set(E,!0)})}};function d(p){const E=H.checkDefined(vfe(p,t.host));u.set(p,E),s.delete(dr(p))}function f(p){return u.has(hr(p,"package.json"))?-1:s.has(p)?0:3}}var jQt=o({"src/server/packageJsonCache.ts"(){Yv()}});function VQt(t){const u=t[0],s=t[1];return(1e9*u+s)/1e6}function zct(t,u){if((kw(t)||tge(t))&&t.isJsOnlyProject()){const s=t.getScriptInfoForNormalizedPath(u);return s&&!s.isJavaScript()}return!1}function HQt(t){return l4(t)||!!t.emitDecoratorMetadata}function Ict(t,u,s){const d=u.getScriptInfoForNormalizedPath(t);return{start:d.positionToLineOffset(s.start),end:d.positionToLineOffset(s.start+s.length),text:sE(s.messageText,` -`),code:s.code,category:Ky(s),reportsUnnecessary:s.reportsUnnecessary,reportsDeprecated:s.reportsDeprecated,source:s.source,relatedInformation:Kt(s.relatedInformation,mge)}}function mge(t){return t.file?{span:{start:GK(o0(t.file,t.start)),end:GK(o0(t.file,t.start+t.length)),file:t.file.fileName},message:sE(t.messageText,` -`),category:Ky(t),code:t.code}:{message:sE(t.messageText,` -`),category:Ky(t),code:t.code}}function GK(t){return{line:t.line+1,offset:t.character+1}}function JK(t,u){const s=t.file&&GK(o0(t.file,t.start)),d=t.file&&GK(o0(t.file,t.start+t.length)),f=sE(t.messageText,` -`),{code:p,source:E}=t,v=Ky(t),b={start:s,end:d,text:f,code:p,category:v,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated,source:E,relatedInformation:Kt(t.relatedInformation,mge)};return u?{...b,fileName:t.file&&t.file.fileName}:b}function KQt(t,u){return t.every(s=>gc(s.span)p+=` ${E} +`))}return p}print(u,s,d){this.writeLog(`Project '${this.projectName}' (${nz[this.projectKind]})`),this.writeLog(this.filesToStringWorker(u&&this.projectService.logger.hasLevel(3),s&&this.projectService.logger.hasLevel(3),d&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1)}setCompilerOptions(u){var s;if(u){u.allowNonTsExtensions=!0;const d=this.compilerOptions;this.compilerOptions=u,this.setInternalCompilerOptionsForEmittingJsFiles(),(s=this.noDtsResolutionProject)==null||s.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),UU(d,u)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(u){this.watchOptions=u}getWatchOptions(){return this.watchOptions}setTypeAcquisition(u){u&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(u))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(u,s){var d,f;const p=s?b=>ga(b.entries(),([B,k])=>({fileName:B,isSourceOfProjectReferenceRedirect:k})):b=>ga(b.keys());this.isInitialLoadPending()||Gm(this);const E={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:Aw(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},v=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&u===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!v)return{info:E,projectErrors:this.getGlobalProjectErrors()};const b=this.lastReportedFileNames,B=((d=this.externalFiles)==null?void 0:d.map(J=>({fileName:Dl(J),isSourceOfProjectReferenceRedirect:!1})))||$c,k=lg(this.getFileNamesWithRedirectInfo(!!s).concat(B),J=>J.fileName,J=>J.isSourceOfProjectReferenceRedirect),T=new Map,M=new Map,z=v?ga(v.keys()):[],j=[];return h1(k,(J,K)=>{b.has(K)?s&&J!==b.get(K)&&j.push({fileName:K,isSourceOfProjectReferenceRedirect:J}):T.set(K,J)}),h1(b,(J,K)=>{k.has(K)||M.set(K,J)}),this.lastReportedFileNames=k,this.lastReportedVersion=this.projectProgramVersion,{info:E,changes:{added:p(T),removed:p(M),updated:s?z.map(J=>({fileName:J,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(J)})):z,updatedRedirects:s?j:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const b=this.getFileNamesWithRedirectInfo(!!s),B=((f=this.externalFiles)==null?void 0:f.map(T=>({fileName:Dl(T),isSourceOfProjectReferenceRedirect:!1})))||$c,k=b.concat(B);return this.lastReportedFileNames=lg(k,T=>T.fileName,T=>T.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:E,files:s?k:k.map(T=>T.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(u){gO(this.rootFiles,u),this.rootFilesMap.delete(u.path)}isSourceOfProjectReferenceRedirect(u){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(u)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,cr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(u){if(!this.projectService.globalPlugins.length)return;const s=this.projectService.host;if(!s.require&&!s.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const d=this.getGlobalPluginSearchPaths();for(const f of this.projectService.globalPlugins)f&&(u.plugins&&u.plugins.some(p=>p.name===f)||(this.projectService.logger.info(`Loading global plugin ${f}`),this.enablePlugin({name:f,global:!0},d)))}enablePlugin(u,s){this.projectService.requestEnablePlugin(this,u,s)}enableProxy(u,s){try{if(typeof u!="function"){this.projectService.logger.info(`Skipped loading plugin ${s.name} because it did not expose a proper factory function`);return}const d={config:s,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},f=u({typescript:Yct}),p=f.create(d);for(const E of Object.keys(this.languageService))E in p||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${E} in created LS. Patching.`),p[E]=this.languageService[E]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=p,this.plugins.push({name:s.name,module:f})}catch(d){this.projectService.logger.info(`Plugin activation failed: ${d}`)}}onPluginConfigurationChanged(u,s){this.plugins.filter(d=>d.name===u).forEach(d=>{d.module.onConfigurationChanged&&d.module.onConfigurationChanged(s)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(u,s){return this.projectService.serverMode!==0?$c:this.projectService.getPackageJsonsVisibleToFile(u,s)}getNearestAncestorDirectoryWithPackageJson(u){return this.projectService.getNearestAncestorDirectoryWithPackageJson(u)}getPackageJsonsForAutoImport(u){const s=this.getPackageJsonsVisibleToFile(cr(this.currentDirectory,QB),u);return this.packageJsonsForAutoImport=new Set(s.map(d=>d.fileName)),s}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=Pfe(this))}clearCachedExportInfoMap(){var u;(u=this.exportMapCache)==null||u.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||XH(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var u,s;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((u=this.projectService.host.realpath)==null?void 0:u.bind(this.projectService.host)),getCurrentDirectory:this.getCurrentDirectory.bind(this),readFile:this.projectService.host.readFile.bind(this.projectService.host),getDirectories:this.projectService.host.getDirectories.bind(this.projectService.host),trace:(s=this.projectService.host.trace)==null?void 0:s.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var u,s,d;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Gm(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const f=this.includePackageJsonAutoImports();if(f){(u=Gn)==null||u.push(Gn.Phase.Session,"getPackageJsonAutoImportProvider");const p=G0();if(this.autoImportProviderHost=age.create(f,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Gm(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",G0()-p),(s=Gn)==null||s.pop(),this.autoImportProviderHost.getCurrentProgram();(d=Gn)==null||d.pop()}}isDefaultProjectForOpenFiles(){return!!h1(this.projectService.openFiles,(u,s)=>this.projectService.tryGetDefaultProjectForFile(Dl(s))===this)}watchNodeModulesForPackageJsonChanges(u){return this.projectService.watchPackageJsonsInNodeModules(this.toPath(u),this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(u){return H.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new uge(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==u&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[u]),this.noDtsResolutionProject.rootFile=u),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:_t,lib:_t,noLib:!0}}},nge=class extends Wk{constructor(t,u,s,d,f,p,E){super(t.newInferredProjectName(),0,t,u,void 0,void 0,s,!1,d,t.host,p),this._isJsInferredProject=!1,this.typeAcquisition=E,this.projectRootPath=f&&t.toCanonicalFileName(f),!f&&!t.useSingleInferredProject&&(this.canonicalCurrentDirectory=t.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(t){t!==this._isJsInferredProject&&(this._isJsInferredProject=t,this.setCompilerOptions())}setCompilerOptions(t){if(!t&&!this.getCompilationSettings())return;const u=Qhe(t||this.getCompilationSettings());this._isJsInferredProject&&typeof u.maxNodeModuleJsDepth!="number"?u.maxNodeModuleJsDepth=2:this._isJsInferredProject||(u.maxNodeModuleJsDepth=void 0),u.allowJs=!0,super.setCompilerOptions(u)}addRoot(t){H.assert(t.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(t),!this._isJsInferredProject&&t.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!t.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(t)}removeRoot(t){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(t),super.removeRoot(t),!this.isOrphan()&&this._isJsInferredProject&&t.isJavaScript()&&ye(this.getRootScriptInfos(),u=>!u.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){L(this.getRootScriptInfos(),t=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(t)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:iNe(this),include:_t,exclude:_t}}},uge=class extends Wk{constructor(t,u,s,d){super(t.newAuxiliaryProjectName(),4,t,u,!1,void 0,s,!1,void 0,t.host,d)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},rge=class YOe extends Wk{constructor(u,s,d,f){super(u.projectService.newAutoImportProviderProjectName(),3,u.projectService,d,!1,void 0,f,!1,u.getWatchOptions(),u.projectService.host,u.currentDirectory),this.hostProject=u,this.rootFileNames=s,this.useSourceOfProjectReferenceRedirect=Lo(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Lo(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(u,s,d,f){var p,E;if(!u)return _t;const v=s.getCurrentProgram();if(!v)return _t;const b=G0();let B,k;const T=cr(s.currentDirectory,QB),M=s.getPackageJsonsForAutoImport(cr(s.currentDirectory,T));for(const K of M)(p=K.dependencies)==null||p.forEach((Y,oe)=>j(oe)),(E=K.peerDependencies)==null||E.forEach((Y,oe)=>j(oe));let z=0;if(B){const K=s.getSymlinkCache();for(const Y of ga(B.keys())){if(u===2&&z>this.maxDependencies)return s.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),_t;const oe=xde(Y,s.currentDirectory,f,d,v.getModuleResolutionCache());if(oe){const ge=J(oe,v,K);if(ge){k=Hi(k,ge),z+=ge.length?1:0;continue}}if(!L([s.currentDirectory,s.getGlobalTypingsCacheLocation()],ge=>{if(ge){const ae=xde(`@types/${Y}`,ge,f,d,v.getModuleResolutionCache());if(ae){const Ce=J(ae,v,K);return k=Hi(k,Ce),z+=Ce!=null&&Ce.length?1:0,!0}}})&&oe&&f.allowJs&&f.maxNodeModuleJsDepth){const ge=J(oe,v,K,!0);k=Hi(k,ge),z+=ge!=null&&ge.length?1:0}}}return k!=null&&k.length&&s.log(`AutoImportProviderProject: found ${k.length} root files in ${z} dependencies in ${G0()-b} ms`),k||_t;function j(K){Pa(K,"@types/")||(B||(B=new Set)).add(K)}function J(K,Y,oe,se){var ge;const ae=kde(K,f,d,Y.getModuleResolutionCache(),se);if(ae){const Ce=(ge=d.realpath)==null?void 0:ge.call(d,K.packageDirectory),ne=Ce?s.toPath(Ce):void 0,ve=ne&&ne!==s.toPath(K.packageDirectory);return ve&&oe.setSymlinkedDirectory(K.packageDirectory,{real:zd(Ce),realPath:zd(ne)}),qi(ae,Se=>{const Ne=ve?Se.replace(K.packageDirectory,Ce):Se;if(!Y.getSourceFile(Ne)&&!(ve&&Y.getSourceFile(Se)))return Ne})}}}static create(u,s,d,f){if(u===0)return;const p={...s.getCompilerOptions(),...this.compilerOptionsOverrides},E=this.getRootFileNames(u,s,d,p);if(E.length)return new YOe(s,E,f,p)}isEmpty(){return!Oe(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let u=this.rootFileNames;u||(u=YOe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,u),this.rootFileNames=u;const s=this.getCurrentProgram(),d=super.updateGraph();return s&&s!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),d}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var u;return!!((u=this.rootFileNames)!=null&&u.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||_t}getLanguageService(){throw new Error("AutoImportProviderProject language service should never be used. To get the program, use `project.getCurrentProgram()`.")}onAutoImportProviderSettingsChanged(){throw new Error("AutoImportProviderProject is an auto import provider; use `markAsDirty()` instead.")}onPackageJsonChange(){throw new Error("package.json changes should be notified on an AutoImportProvider's host project")}getHostForAutoImportProvider(){throw new Error("AutoImportProviderProject cannot provide its own host; use `hostProject.getModuleResolutionHostForAutomImportProvider()` instead.")}getProjectReferences(){return this.hostProject.getProjectReferences()}includePackageJsonAutoImports(){return 0}getSymlinkCache(){return this.hostProject.getSymlinkCache()}getModuleResolutionCache(){var u;return(u=this.hostProject.getCurrentProgram())==null?void 0:u.getModuleResolutionCache()}},rge.maxDependencies=10,rge.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:_t,lib:_t,noLib:!0},age=rge,oge=class extends Wk{constructor(t,u,s,d,f){super(t,1,s,d,!1,void 0,{},!1,void 0,f,lr(t)),this.canonicalConfigFilePath=u,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=J3,this.sendLoadingProjectFinish=!1}setCompilerHost(t){this.compilerHost=t}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(t){const u=$o(t),s=this.projectService.toCanonicalFileName(u);let d=this.projectService.configFileExistenceInfoCache.get(s);return d||this.projectService.configFileExistenceInfoCache.set(s,d={exists:this.projectService.host.fileExists(u)}),this.projectService.ensureParsedConfigUptoDate(u,s,d,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(u,d,this),d.exists?d.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(t){this.releaseParsedConfig(this.projectService.toCanonicalFileName($o(t)))}releaseParsedConfig(t){this.projectService.stopWatchingWildCards(t,this),this.projectService.releaseParsedConfig(t,this)}updateGraph(){const t=this.isInitialLoadPending();this.isInitialLoadPending=cg;const u=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let s;switch(u){case 1:this.openFileWatchTriggered.clear(),s=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const d=H.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,d,t,!1),s=!0;break;default:s=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),s}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(t){this.projectReferences=t,this.potentialProjectReferences=void 0}setPotentialProjectReference(t){H.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(t)}getResolvedProjectReferenceToRedirect(t){const u=this.getCurrentProgram();return u&&u.getResolvedProjectReferenceToRedirect(t)}forEachResolvedProjectReference(t){var u;return(u=this.getCurrentProgram())==null?void 0:u.forEachResolvedProjectReference(t)}enablePluginsWithOptions(t){var u;if(this.plugins.length=0,!((u=t.plugins)!=null&&u.length)&&!this.projectService.globalPlugins.length)return;const s=this.projectService.host;if(!s.require&&!s.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const d=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const f=lr(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${f} to search paths`),d.unshift(f)}if(t.plugins)for(const f of t.plugins)this.enablePlugin(f,d);return this.enableGlobalPlugins(t)}getGlobalProjectErrors(){return ti(this.projectErrors,t=>!t.file)||$c}getAllProjectErrors(){return this.projectErrors||$c}setProjectErrors(t){this.projectErrors=t}close(){this.projectService.configFileExistenceInfoCache.forEach((t,u)=>this.releaseParsedConfig(u)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(t){return Bw(this,t.path,u=>p9(u,t)?u:void 0,0)}hasOpenRef(){var t;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const u=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((t=u.openFilesImpactedByConfigFile)!=null&&t.size):!!u.openFilesImpactedByConfigFile&&h1(u.openFilesImpactedByConfigFile,(s,d)=>{const f=this.projectService.getScriptInfoForPath(d);return this.containsScriptInfo(f)||!!Bw(this,f.path,p=>p.containsScriptInfo(f),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return cM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(t){wY(t,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Zee=class extends Wk{constructor(t,u,s,d,f,p,E,v){super(t,2,u,s,!0,f,d,p,v,u.host,lr(E||q1(t))),this.externalProjectName=t,this.compileOnSaveEnabled=p,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const t=super.updateGraph();return this.projectService.sendProjectTelemetry(this),t}getExcludedFiles(){return this.excludedFiles}}}});function Tct(t){const u=new Map;for(const s of t)if(typeof s.type=="object"){const d=s.type;d.forEach(f=>{H.assert(typeof f=="number")}),u.set(s.name,d)}return u}function Sw(t){return Ja(t.indentStyle)&&(t.indentStyle=Rct.get(t.indentStyle.toLowerCase()),H.assert(t.indentStyle!==void 0)),t}function Yee(t){return zct.forEach((u,s)=>{const d=t[s];Ja(d)&&(t[s]=u.get(d.toLowerCase()))}),t}function GK(t,u){let s,d;return VB.forEach(f=>{const p=t[f.name];if(p===void 0)return;const E=Ict.get(f.name);(s||(s={}))[f.name]=E?Ja(p)?E.get(p.toLowerCase()):p:Sk(f,p,u||"",d||(d=[]))}),s&&{watchOptions:s,errors:d}}function aNe(t){let u;return eH.forEach(s=>{const d=t[s.name];d!==void 0&&((u||(u={}))[s.name]=d)}),u}function sge(t){return Ja(t)?lge(t):t}function lge(t){switch(t){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function oNe(t){const{lazyConfiguredProjectsFromExternalProject:u,...s}=t;return s}function Lct(t,u){for(const s of u)if(s.getProjectName()===t)return s}function Qee(t){return!!t.containingProjects}function zQt(t){return!!t.configFileInfo}function Bw(t,u,s,d,f){var p;const E=(p=t.getCurrentProgram())==null?void 0:p.getResolvedProjectReferences();if(!E)return;let v;const b=u?t.getResolvedProjectReferenceToRedirect(u):void 0;if(b){const k=Dl(b.sourceFile.fileName),T=t.projectService.findConfiguredProjectByProjectName(k);if(T){const M=s(T);if(M)return M}else if(d!==0){v=new Map;const M=sNe(E,t.getCompilerOptions(),(z,j)=>b===z?B(z,j):void 0,d,t.projectService,v);if(M)return M;v.clear()}}return sNe(E,t.getCompilerOptions(),(k,T)=>b!==k?B(k,T):void 0,d,t.projectService,v);function B(k,T){const M=Dl(k.sourceFile.fileName),z=t.projectService.findConfiguredProjectByProjectName(M)||(T===0?void 0:T===1?t.projectService.createConfiguredProject(M):T===2?t.projectService.createAndLoadConfiguredProject(M,f):H.assertNever(T));return z&&s(z)}}function sNe(t,u,s,d,f,p){const E=u.disableReferencedProjectLoad?0:d;return L(t,v=>{if(!v)return;const b=Dl(v.sourceFile.fileName),B=f.toCanonicalFileName(b),k=p==null?void 0:p.get(B);if(k!==void 0&&k>=E)return;const T=s(v,E);return T||((p||(p=new Map)).set(B,E),v.references&&sNe(v.references,v.commandLine.options,s,E,f,p))})}function Nct(t,u){return t.potentialProjectReferences&&U_(t.potentialProjectReferences,u)}function IQt(t,u,s,d){return t.getCurrentProgram()?t.forEachResolvedProjectReference(u):t.isInitialLoadPending()?Nct(t,d):L(t.getProjectReferences(),s)}function lNe(t,u,s){const d=s&&t.projectService.configuredProjects.get(s);return d&&u(d)}function Pct(t,u){return IQt(t,s=>lNe(t,u,s.sourceFile.path),s=>lNe(t,u,t.toPath(YB(s))),s=>lNe(t,u,s))}function RQt(t,u){return`${Ja(u)?`Config: ${u} `:u?`Project: ${u.getProjectName()} `:""}WatchType: ${t}`}function Mct(t){return!t.isScriptOpen()&&t.mTime!==void 0}function p9(t,u){return t.containsScriptInfo(u)&&!t.isSourceOfProjectReferenceRedirect(u.path)}function Gm(t){return t.invalidateResolutionsOfFailedLookupLocations(),t.dirty&&t.updateGraph()}function cNe(t){Qv(t)&&(t.projectOptions=!0)}function dNe(t){let u=1;return()=>t(u++)}function hNe(){return{idToCallbacks:new Map,pathToId:new Map}}function OQt(t,u){if(!u||!t.eventHandler||!t.session)return;const s=hNe(),d=hNe(),f=hNe();let p=1;return t.session.addProtocolHandler("watchChange",M=>(B(M.arguments),{responseRequired:!1})),{watchFile:E,watchDirectory:v,getCurrentDirectory:()=>t.host.getCurrentDirectory(),useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames};function E(M,z){return b(s,M,z,j=>({eventName:ote,data:{id:j,path:M}}))}function v(M,z,j){return b(j?f:d,M,z,J=>({eventName:ste,data:{id:J,path:M,recursive:!!j}}))}function b({pathToId:M,idToCallbacks:z},j,J,K){const Y=t.toPath(j);let oe=M.get(Y);oe||M.set(Y,oe=p++);let se=z.get(oe);return se||(z.set(oe,se=new Set),t.eventHandler(K(oe))),se.add(J),{close(){const ge=z.get(oe);ge!=null&&ge.delete(J)&&(ge.size||(z.delete(oe),M.delete(Y),t.eventHandler({eventName:lte,data:{id:oe}})))}}}function B({id:M,path:z,eventType:j}){k(M,z,j),T(d,M,z,j),T(f,M,z,j)}function k(M,z,j){var J;(J=s.idToCallbacks.get(M))==null||J.forEach(K=>{K(z,j==="create"?0:j==="delete"?2:1)})}function T({idToCallbacks:M},z,j,J){var K;J!=="update"&&((K=M.get(z))==null||K.forEach(Y=>{Y(j)}))}}function jQt(){let t;return{get(){return t},set(u){t=u},clear(){t=void 0}}}function fNe(t){return t.kind!==void 0}function mNe(t){t.print(!1,!1,!1)}var Xee,ete,JK,tte,ite,nte,ute,rte,ate,cge,ote,ste,lte,pNe,zct,Ict,Rct,dge,cte,dte,hge,fge,gNe,mge,VQt=o({"src/server/editorServices.ts"(){Xv(),_9(),eNe(),Xee=20*1024*1024,ete=4*1024*1024,JK="projectsUpdatedInBackground",tte="projectLoadingStart",ite="projectLoadingFinish",nte="largeFileReferenced",ute="configFileDiag",rte="projectLanguageServiceState",ate="projectInfo",cge="openFileInfo",ote="createFileWatcher",ste="createDirectoryWatcher",lte="closeFileWatcher",pNe="*ensureProjectForOpenFiles*",zct=Tct(a3),Ict=Tct(VB),Rct=new Map(Object.entries({none:0,block:1,smart:2})),dge={jquery:{match:/jquery(-[\d.]+)?(\.intellisense)?(\.min)?\.js$/i,types:["jquery"]},WinJS:{match:/^(.*\/winjs-[.\d]+)\/js\/base\.js$/i,exclude:[["^",1,"/.*"]],types:["winjs"]},Kendo:{match:/^(.*\/kendo(-ui)?)\/kendo\.all(\.min)?\.js$/i,exclude:[["^",1,"/.*"]],types:["kendo-ui"]},"Office Nuget":{match:/^(.*\/office\/1)\/excel-\d+\.debug\.js$/i,exclude:[["^",1,"/.*"]],types:["office"]},References:{match:/^(.*\/_references\.js)$/i,exclude:[["^",1,"$"]]}},cte={getFileName:t=>t,getScriptKind:(t,u)=>{let s;if(u){const d=BN(t);d&&Oe(u,f=>f.extension===d?(s=f.scriptKind,!0):!1)}return s},hasMixedContent:(t,u)=>Oe(u,s=>s.isMixedContent&&Ml(t,s.extension))},dte={getFileName:t=>t.fileName,getScriptKind:t=>sge(t.scriptKind),hasMixedContent:t=>!!t.hasMixedContent},hge={close:Is},fge=(t=>(t[t.Find=0]="Find",t[t.FindCreate=1]="FindCreate",t[t.FindCreateLoad=2]="FindCreateLoad",t))(fge||{}),gNe=class QOe{constructor(u){this.filenameToScriptInfo=new Map,this.nodeModulesWatchers=new Map,this.filenameToScriptInfoVersion=new Map,this.allJsFilesForOpenFileTelemetry=new Map,this.externalProjectToConfiguredProjectMap=new Map,this.externalProjects=[],this.inferredProjects=[],this.configuredProjects=new Map,this.newInferredProjectName=dNe(ILe),this.newAutoImportProviderProjectName=dNe(RLe),this.newAuxiliaryProjectName=dNe(OLe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,this.openFilesWithNonRootedDiskPath=new Map,this.compilerOptionsForInferredProjectsPerProjectRoot=new Map,this.watchOptionsForInferredProjectsPerProjectRoot=new Map,this.typeAcquisitionForInferredProjectsPerProjectRoot=new Map,this.projectToSizeMap=new Map,this.configFileExistenceInfoCache=new Map,this.safelist=dge,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.verifyDocumentRegistry=Is,this.verifyProgram=Is,this.onProjectCreation=Is;var s;this.host=u.host,this.logger=u.logger,this.cancellationToken=u.cancellationToken,this.useSingleInferredProject=u.useSingleInferredProject,this.useInferredProjectPerProjectRoot=u.useInferredProjectPerProjectRoot,this.typingsInstaller=u.typingsInstaller||qee,this.throttleWaitMilliseconds=u.throttleWaitMilliseconds,this.eventHandler=u.eventHandler,this.suppressDiagnosticEvents=u.suppressDiagnosticEvents,this.globalPlugins=u.globalPlugins||$c,this.pluginProbeLocations=u.pluginProbeLocations||$c,this.allowLocalPluginLoads=!!u.allowLocalPluginLoads,this.typesMapLocation=u.typesMapLocation===void 0?cr(lr(this.getExecutingFilePath()),"typesMap.json"):u.typesMapLocation,this.session=u.session,this.jsDocParsingMode=u.jsDocParsingMode,u.serverMode!==void 0?this.serverMode=u.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=wm()),this.currentDirectory=Dl(this.host.getCurrentDirectory()),this.toCanonicalFileName=L1(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?zd(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Zpe(this.host,this.logger),this.typesMapLocation?this.loadTypesMap():this.logger.info("No types map provided; using the default"),this.typingsInstaller.attach(this),this.typingsCache=new tge(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:XQ(this.host.newLine),preferences:d4,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=Vfe(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const d=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,f=d!==0?p=>this.logger.info(p):Is;this.packageJsonCache=_Ne(this),this.watchFactory=this.serverMode!==0?{watchFile:iw,watchDirectory:iw}:E1e(OQt(this,u.canUseWatchEvents)||this.host,d,f,RQt),(s=u.incrementalVerifier)==null||s.call(u,this)}toPath(u){return J0(u,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(u){return $a(u,this.host.getCurrentDirectory())}setDocument(u,s,d){const f=H.checkDefined(this.getScriptInfoForPath(s));f.cacheSourceFile={key:u,sourceFile:d}}getDocument(u,s){const d=this.getScriptInfoForPath(s);return d&&d.cacheSourceFile&&d.cacheSourceFile.key===u?d.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(u,s){if(!this.eventHandler)return;const d={eventName:rte,data:{project:u,languageServiceEnabled:s}};this.eventHandler(d)}loadTypesMap(){try{const u=this.host.readFile(this.typesMapLocation);if(u===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const s=JSON.parse(u);for(const d of Object.keys(s.typesMap))s.typesMap[d].match=new RegExp(s.typesMap[d].match,"i");this.safelist=s.typesMap;for(const d in s.simpleMap)gu(s.simpleMap,d)&&this.legacySafelist.set(d,s.simpleMap[d].toLowerCase())}catch(u){this.logger.info(`Error loading types map: ${u}`),this.safelist=dge,this.legacySafelist.clear()}}updateTypingsForProject(u){const s=this.findProject(u.projectName);if(s)switch(u.kind){case ZQ:s.updateTypingFiles(this.typingsCache.updateTypingsForProject(u.projectName,u.compilerOptions,u.typeAcquisition,u.unresolvedImports,u.typings));return;case YQ:this.typingsCache.enqueueInstallTypingsForProject(s,s.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(u){var s;(s=this.findProject(u.projectName))==null||s.watchTypingLocations(u.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(pNe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(u){if(u.markAsDirty(),WK(u))return;const s=u.getProjectName();this.pendingProjectUpdates.set(s,u),this.throttledOperations.schedule(s,250,()=>{this.pendingProjectUpdates.delete(s)&&Gm(u)})}hasPendingProjectUpdate(u){return this.pendingProjectUpdates.has(u.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const u={eventName:JK,data:{openFiles:ga(this.openFiles.keys(),s=>this.getScriptInfoForPath(s).fileName)}};this.eventHandler(u)}sendLargeFileReferencedEvent(u,s){if(!this.eventHandler)return;const d={eventName:nte,data:{file:u,fileSize:s,maxFileSize:ete}};this.eventHandler(d)}sendProjectLoadingStartEvent(u,s){if(!this.eventHandler)return;u.sendLoadingProjectFinish=!0;const d={eventName:tte,data:{project:u,reason:s}};this.eventHandler(d)}sendProjectLoadingFinishEvent(u){if(!this.eventHandler||!u.sendLoadingProjectFinish)return;u.sendLoadingProjectFinish=!1;const s={eventName:ite,data:{project:u}};this.eventHandler(s)}sendPerformanceEvent(u,s){this.performanceEventHandler&&this.performanceEventHandler({kind:u,durationMs:s})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(u){this.delayUpdateProjectGraph(u),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(u,s){if(u.length){for(const d of u)s&&d.clearSourceMapperCache(),this.delayUpdateProjectGraph(d);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(u,s){H.assert(s===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const d=Yee(u),f=GK(u,s),p=aNe(u);d.allowNonTsExtensions=!0;const E=s&&this.toCanonicalFileName(s);E?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(E,d),this.watchOptionsForInferredProjectsPerProjectRoot.set(E,f||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(E,p)):(this.compilerOptionsForInferredProjects=d,this.watchOptionsForInferredProjects=f,this.typeAcquisitionForInferredProjects=p);for(const v of this.inferredProjects)(E?v.projectRootPath===E:!v.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(v.projectRootPath))&&(v.setCompilerOptions(d),v.setTypeAcquisition(p),v.setWatchOptions(f==null?void 0:f.watchOptions),v.setProjectErrors(f==null?void 0:f.errors),v.compileOnSaveEnabled=d.compileOnSave,v.markAsDirty(),this.delayUpdateProjectGraph(v));this.delayEnsureProjectForOpenFiles()}findProject(u){if(u!==void 0)return zLe(u)?Lct(u,this.inferredProjects):this.findExternalProjectByProjectName(u)||this.findConfiguredProjectByProjectName(Dl(u))}forEachProject(u){this.externalProjects.forEach(u),this.configuredProjects.forEach(u),this.inferredProjects.forEach(u)}forEachEnabledProject(u){this.forEachProject(s=>{!s.isOrphan()&&s.languageServiceEnabled&&u(s)})}getDefaultProjectForFile(u,s){return s?this.ensureDefaultProjectForFile(u):this.tryGetDefaultProjectForFile(u)}tryGetDefaultProjectForFile(u){const s=Ja(u)?this.getScriptInfoForNormalizedPath(u):u;return s&&!s.isOrphan()?s.getDefaultProject():void 0}ensureDefaultProjectForFile(u){return this.tryGetDefaultProjectForFile(u)||this.doEnsureDefaultProjectForFile(u)}doEnsureDefaultProjectForFile(u){this.ensureProjectStructuresUptoDate();const s=Ja(u)?this.getScriptInfoForNormalizedPath(u):u;return s?s.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ja(u)?u:u.fileName),v5.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(u){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(u)}ensureProjectStructuresUptoDate(){let u=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const s=d=>{u=Gm(d)||u};this.externalProjects.forEach(s),this.configuredProjects.forEach(s),this.inferredProjects.forEach(s),u&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(u){const s=this.getScriptInfoForNormalizedPath(u);return s&&s.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(u){const s=this.getScriptInfoForNormalizedPath(u);return{...this.hostConfiguration.preferences,...s&&s.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(u,s){s===2?this.handleDeletedFile(u):u.isScriptOpen()||(u.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(u.containingProjects,!1),this.handleSourceMapProjects(u))}handleSourceMapProjects(u){if(u.sourceMapFilePath)if(Ja(u.sourceMapFilePath)){const s=this.getScriptInfoForPath(u.sourceMapFilePath);this.delayUpdateSourceInfoProjects(s&&s.sourceInfos)}else this.delayUpdateSourceInfoProjects(u.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(u.sourceInfos),u.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(u.declarationInfoPath)}delayUpdateSourceInfoProjects(u){u&&u.forEach((s,d)=>this.delayUpdateProjectsOfScriptInfoPath(d))}delayUpdateProjectsOfScriptInfoPath(u){const s=this.getScriptInfoForPath(u);s&&this.delayUpdateProjectGraphs(s.containingProjects,!0)}handleDeletedFile(u){if(this.stopWatchingScriptInfo(u),!u.isScriptOpen()){this.deleteScriptInfo(u);const s=u.containingProjects.slice();if(u.detachAllProjects(),this.delayUpdateProjectGraphs(s,!1),this.handleSourceMapProjects(u),u.closeSourceMapFileWatcher(),u.declarationInfoPath){const d=this.getScriptInfoForPath(u.declarationInfoPath);d&&(d.sourceMapFilePath=void 0)}}}watchWildcardDirectory(u,s,d,f){return this.watchFactory.watchDirectory(u,p=>{const E=this.toPath(p),v=f.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(p,E);Ac(E)==="package.json"&&!XH(E)&&(v&&v.fileExists||!v&&this.host.fileExists(E))&&(this.logger.info(`Config: ${d} Detected new package.json: ${p}`),this.onAddPackageJson(E));const b=this.findConfiguredProjectByProjectName(d);DH({watchedDirPath:u,fileOrDirectory:p,fileOrDirectoryPath:E,configFileName:d,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:f.parsedCommandLine.options,program:(b==null?void 0:b.getCurrentProgram())||f.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:B=>this.logger.info(B),toPath:B=>this.toPath(B),getScriptKind:b?B=>b.getScriptKind(B):void 0})||(f.updateLevel!==2&&(f.updateLevel=1),f.projects.forEach((B,k)=>{if(!B)return;const T=this.getConfiguredProjectByCanonicalConfigFilePath(k);if(!T)return;const M=b===T?1:0;if(!(T.pendingUpdateLevel!==void 0&&T.pendingUpdateLevel>M))if(this.openFiles.has(E))if(H.checkDefined(this.getScriptInfoForPath(E)).isAttached(T)){const j=Math.max(M,T.openFileWatchTriggered.get(E)||0);T.openFileWatchTriggered.set(E,j)}else T.pendingUpdateLevel=M,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T);else T.pendingUpdateLevel=M,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T)}))},s,this.getWatchOptionsFromProjectWatchOptions(f.parsedCommandLine.watchOptions),cd.WildcardDirectory,d)}delayUpdateProjectsFromParsedConfigOnConfigFileChange(u,s){const d=this.configFileExistenceInfoCache.get(u);if(!(d!=null&&d.config))return!1;let f=!1;return d.config.updateLevel=2,d.config.projects.forEach((p,E)=>{const v=this.getConfiguredProjectByCanonicalConfigFilePath(E);if(v)if(f=!0,E===u){if(v.isInitialLoadPending())return;v.pendingUpdateLevel=2,v.pendingUpdateReason=s,this.delayUpdateProjectGraph(v)}else v.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(u)),this.delayUpdateProjectGraph(v)}),f}onConfigFileChanged(u,s){var d;const f=this.configFileExistenceInfoCache.get(u);if(s===2){f.exists=!1;const p=(d=f.config)!=null&&d.projects.has(u)?this.getConfiguredProjectByCanonicalConfigFilePath(u):void 0;p&&this.removeProject(p)}else f.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(u,"Change in config file detected"),this.reloadConfiguredProjectForFiles(f.openFilesImpactedByConfigFile,!1,!0,s!==2?il:J3,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(u){switch(this.logger.info("`remove Project::"),u.print(!0,!0,!1),u.close(),H.shouldAssert(1)&&this.filenameToScriptInfo.forEach(s=>H.assert(!s.isAttached(u),"Found script Info still attached to project",()=>`${u.projectName}: ScriptInfos still attached: ${JSON.stringify(ga(eo(this.filenameToScriptInfo.values(),d=>d.isAttached(u)?{fileName:d.fileName,projects:d.containingProjects.map(f=>f.projectName),hasMixedContent:d.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(u.getProjectName()),u.projectKind){case 2:Vy(this.externalProjects,u),this.projectToSizeMap.delete(u.getProjectName());break;case 1:this.configuredProjects.delete(u.canonicalConfigFilePath),this.projectToSizeMap.delete(u.canonicalConfigFilePath);break;case 0:Vy(this.inferredProjects,u);break}}assignOrphanScriptInfoToInferredProject(u,s){H.assert(u.isOrphan());const d=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(u,s)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(u.isDynamic?s||this.currentDirectory:lr(Pf(u.fileName)?u.fileName:$a(u.fileName,s?this.getNormalizedAbsolutePath(s):this.currentDirectory)));if(d.addRoot(u),u.containingProjects[0]!==d&&(u.detachFromProject(d),u.containingProjects.unshift(d)),d.updateGraph(),!this.useSingleInferredProject&&!d.projectRootPath)for(const f of this.inferredProjects){if(f===d||f.isOrphan())continue;const p=f.getRootScriptInfos();H.assert(p.length===1||!!f.projectRootPath),p.length===1&&L(p[0].containingProjects,E=>E!==p[0].containingProjects[0]&&!E.isOrphan())&&f.removeFile(p[0],!0,!0)}return d}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);d.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(d,u)})}closeOpenFile(u,s){const d=u.isDynamic?!1:this.host.fileExists(u.fileName);u.close(d),this.stopWatchingConfigFilesForClosedScriptInfo(u);const f=this.toCanonicalFileName(u.fileName);this.openFilesWithNonRootedDiskPath.get(f)===u&&this.openFilesWithNonRootedDiskPath.delete(f);let p=!1;for(const E of u.containingProjects){if(Qv(E)){u.hasMixedContent&&u.registerFileUpdate();const v=E.openFileWatchTriggered.get(u.path);v!==void 0&&(E.openFileWatchTriggered.delete(u.path),E.pendingUpdateLevel!==void 0&&E.pendingUpdateLevelthis.onConfigFileChanged(s,B),2e3,this.getWatchOptionsFromProjectWatchOptions((p=(f=E==null?void 0:E.config)==null?void 0:f.parsedCommandLine)==null?void 0:p.watchOptions),cd.ConfigFile,d));const v=E.config.projects;v.set(d.canonicalConfigFilePath,v.get(d.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(u){return u.openFilesImpactedByConfigFile&&h1(u.openFilesImpactedByConfigFile,il)}releaseParsedConfig(u,s){var d,f,p;const E=this.configFileExistenceInfoCache.get(u);(d=E.config)!=null&&d.projects.delete(s.canonicalConfigFilePath)&&((f=E.config)!=null&&f.projects.size||(E.config=void 0,p1e(u,this.sharedExtendedConfigFileWatchers),H.checkDefined(E.watcher),(p=E.openFilesImpactedByConfigFile)!=null&&p.size?this.configFileExistenceImpactsRootOfInferredProject(E)?IQ(yd(lr(u)))||(E.watcher.close(),E.watcher=hge):(E.watcher.close(),E.watcher=void 0):(E.watcher.close(),this.configFileExistenceInfoCache.delete(u))))}closeConfigFileWatcherOnReleaseOfOpenFile(u){u.watcher&&!u.config&&!this.configFileExistenceImpactsRootOfInferredProject(u)&&(u.watcher.close(),u.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(u){H.assert(!u.isScriptOpen()),this.forEachConfigFileLocation(u,s=>{var d,f,p;const E=this.configFileExistenceInfoCache.get(s);if(E){const v=(d=E.openFilesImpactedByConfigFile)==null?void 0:d.get(u.path);(f=E.openFilesImpactedByConfigFile)==null||f.delete(u.path),v&&this.closeConfigFileWatcherOnReleaseOfOpenFile(E),!((p=E.openFilesImpactedByConfigFile)!=null&&p.size)&&!E.config&&(H.assert(!E.watcher),this.configFileExistenceInfoCache.delete(s))}})}startWatchingConfigFilesForInferredProjectRoot(u){H.assert(u.isScriptOpen()),this.forEachConfigFileLocation(u,(s,d)=>{let f=this.configFileExistenceInfoCache.get(s);f||(f={exists:this.host.fileExists(d)},this.configFileExistenceInfoCache.set(s,f)),(f.openFilesImpactedByConfigFile||(f.openFilesImpactedByConfigFile=new Map)).set(u.path,!0),f.watcher||(f.watcher=IQ(yd(lr(s)))?this.watchFactory.watchFile(d,(p,E)=>this.onConfigFileChanged(s,E),2e3,this.hostConfiguration.watchOptions,cd.ConfigFileForInferredRoot):hge)})}stopWatchingConfigFilesForInferredProjectRoot(u){this.forEachConfigFileLocation(u,s=>{var d;const f=this.configFileExistenceInfoCache.get(s);(d=f==null?void 0:f.openFilesImpactedByConfigFile)!=null&&d.has(u.path)&&(H.assert(u.isScriptOpen()),f.openFilesImpactedByConfigFile.set(u.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(f))})}forEachConfigFileLocation(u,s){if(this.serverMode!==0)return;H.assert(!Qee(u)||this.openFiles.has(u.path));const d=this.openFiles.get(u.path);if(H.checkDefined(this.getScriptInfo(u.path)).isDynamic)return;let p=lr(u.fileName);const E=()=>GE(d,p,this.currentDirectory,!this.host.useCaseSensitiveFileNames),v=!d||!E();let b=!zQt(u);do{if(b){const k=VK(p,this.currentDirectory,this.toCanonicalFileName),T=cr(p,"tsconfig.json");let M=s(cr(k,"tsconfig.json"),T);if(M)return T;const z=cr(p,"jsconfig.json");if(M=s(cr(k,"jsconfig.json"),z),M)return z;if(bU(k))break}const B=lr(p);if(B===p)break;p=B,b=!0}while(v||E())}findDefaultConfiguredProject(u){if(!u.isScriptOpen())return;const s=this.getConfigFileNameForFile(u),d=s&&this.findConfiguredProjectByProjectName(s);return d&&p9(d,u)?d:d==null?void 0:d.getDefaultChildProjectFromProjectWithReferences(u)}getConfigFileNameForFile(u){if(Qee(u)){H.assert(u.isScriptOpen());const d=this.configFileForOpenFiles.get(u.path);if(d!==void 0)return d||void 0}this.logger.info(`Search path: ${lr(u.fileName)}`);const s=this.forEachConfigFileLocation(u,(d,f)=>this.configFileExists(f,d,u));return s?this.logger.info(`For info: ${u.fileName} :: Config file name: ${s}`):this.logger.info(`For info: ${u.fileName} :: No config files found.`),Qee(u)&&this.configFileForOpenFiles.set(u.path,s||!1),s}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(mNe),this.configuredProjects.forEach(mNe),this.inferredProjects.forEach(mNe),this.logger.info("Open files: "),this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);this.logger.info(` FileName: ${d.fileName} ProjectRootPath: ${u}`),this.logger.info(` Projects: ${d.containingProjects.map(f=>f.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(u){const s=this.toCanonicalFileName(u);return this.getConfiguredProjectByCanonicalConfigFilePath(s)}getConfiguredProjectByCanonicalConfigFilePath(u){return this.configuredProjects.get(u)}findExternalProjectByProjectName(u){return Lct(u,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(u,s,d,f){if(s&&s.disableSizeLimit||!this.host.getFileSize)return;let p=Xee;this.projectToSizeMap.set(u,0),this.projectToSizeMap.forEach(v=>p-=v||0);let E=0;for(const v of d){const b=f.getFileName(v);if(!mk(b)&&(E+=this.host.getFileSize(b),E>Xee||E>p)){const B=d.map(k=>f.getFileName(k)).filter(k=>!mk(k)).map(k=>({name:k,size:this.host.getFileSize(k)})).sort((k,T)=>T.size-k.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${E}). Largest files: ${B.map(k=>`${k.name}:${k.size}`).join(", ")}`),b}}this.projectToSizeMap.set(u,E)}createExternalProject(u,s,d,f,p){const E=Yee(d),v=GK(d,lr(q1(u))),b=new Zee(u,this,this.documentRegistry,E,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u,E,s,dte),d.compileOnSave===void 0?!0:d.compileOnSave,void 0,v==null?void 0:v.watchOptions);return b.setProjectErrors(v==null?void 0:v.errors),b.excludedFiles=p,this.addFilesToNonInferredProject(b,s,dte,f),this.externalProjects.push(b),b}sendProjectTelemetry(u){if(this.seenProjects.has(u.projectName)){cNe(u);return}if(this.seenProjects.set(u.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){cNe(u);return}const s=Qv(u)?u.projectOptions:void 0;cNe(u);const d={projectId:this.host.createSHA256Hash(u.projectName),fileStats:KK(u.getScriptInfos(),!0),compilerOptions:eAe(u.getCompilationSettings()),typeAcquisition:p(u.getTypeAcquisition()),extends:s&&s.configHasExtendsProperty,files:s&&s.configHasFilesProperty,include:s&&s.configHasIncludeProperty,exclude:s&&s.configHasExcludeProperty,compileOnSave:u.compileOnSaveEnabled,configFileName:f(),projectType:u instanceof Zee?"external":"configured",languageServiceEnabled:u.languageServiceEnabled,version:_};this.eventHandler({eventName:ate,data:d});function f(){return Qv(u)&&qpe(u.getConfigFilePath())||"other"}function p({enable:E,include:v,exclude:b}){return{enable:E,include:v!==void 0&&v.length!==0,exclude:b!==void 0&&b.length!==0}}}addFilesToNonInferredProject(u,s,d,f){this.updateNonInferredProjectFiles(u,s,d),u.setTypeAcquisition(f),u.markAsDirty()}createConfiguredProject(u){var s;(s=Gn)==null||s.instant(Gn.Phase.Session,"createConfiguredProject",{configFilePath:u}),this.logger.info(`Creating configuration project ${u}`);const d=this.toCanonicalFileName(u);let f=this.configFileExistenceInfoCache.get(d);f?f.exists=!0:this.configFileExistenceInfoCache.set(d,f={exists:!0}),f.config||(f.config={cachedDirectoryStructureHost:xQ(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const p=new oge(u,d,this,this.documentRegistry,f.config.cachedDirectoryStructureHost);return this.configuredProjects.set(d,p),this.createConfigFileWatcherForParsedConfig(u,d,p),p}createConfiguredProjectWithDelayLoad(u,s){const d=this.createConfiguredProject(u);return d.pendingUpdateLevel=2,d.pendingUpdateReason=s,d}createAndLoadConfiguredProject(u,s){const d=this.createConfiguredProject(u);return this.loadConfiguredProject(d,s),d}createLoadAndUpdateConfiguredProject(u,s){const d=this.createAndLoadConfiguredProject(u,s);return d.updateGraph(),d}loadConfiguredProject(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"loadConfiguredProject",{configFilePath:u.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(u,s);const p=$o(u.getConfigFilePath()),E=this.ensureParsedConfigUptoDate(p,u.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(u.canonicalConfigFilePath),u),v=E.config.parsedCommandLine;H.assert(!!v.fileNames);const b=v.options;u.projectOptions||(u.projectOptions={configHasExtendsProperty:v.raw.extends!==void 0,configHasFilesProperty:v.raw.files!==void 0,configHasIncludeProperty:v.raw.include!==void 0,configHasExcludeProperty:v.raw.exclude!==void 0}),u.canConfigFileJsonReportNoInputFiles=aM(v.raw),u.setProjectErrors(v.options.configFile.parseDiagnostics),u.updateReferences(v.projectReferences);const B=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u.canonicalConfigFilePath,b,v.fileNames,cte);B?(u.disableLanguageService(B),this.configFileExistenceInfoCache.forEach((T,M)=>this.stopWatchingWildCards(M,u))):(u.setCompilerOptions(b),u.setWatchOptions(v.watchOptions),u.enableLanguageService(),this.watchWildcards(p,E,u)),u.enablePluginsWithOptions(b);const k=v.fileNames.concat(u.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(u,k,cte,b,v.typeAcquisition,v.compileOnSave,v.watchOptions),(f=Gn)==null||f.pop()}ensureParsedConfigUptoDate(u,s,d,f){var p,E,v;if(d.config){if(!d.config.updateLevel)return d;if(d.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(u,d.config),d}const b=((p=d.config)==null?void 0:p.cachedDirectoryStructureHost)||xQ(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),B=rM(u,j=>this.host.readFile(j)),k=WV(u,Ja(B)?B:""),T=k.parseDiagnostics;Ja(B)||T.push(B);const M=UV(k,b,lr(u),{},u,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);M.errors.length&&T.push(...M.errors),this.logger.info(`Config: ${u} : ${JSON.stringify({rootNames:M.fileNames,options:M.options,watchOptions:M.watchOptions,projectReferences:M.projectReferences},void 0," ")}`);const z=(E=d.config)==null?void 0:E.parsedCommandLine;return d.config?(d.config.parsedCommandLine=M,d.config.watchedDirectoriesStale=!0,d.config.updateLevel=void 0):d.config={parsedCommandLine:M,cachedDirectoryStructureHost:b,projects:new Map},!z&&!dZ(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(M.watchOptions))&&((v=d.watcher)==null||v.close(),d.watcher=void 0),this.createConfigFileWatcherForParsedConfig(u,s,f),vQ(s,M.options,this.sharedExtendedConfigFileWatchers,(j,J)=>this.watchFactory.watchFile(j,()=>{var K;CQ(this.extendedConfigCache,J,oe=>this.toPath(oe));let Y=!1;(K=this.sharedExtendedConfigFileWatchers.get(J))==null||K.projects.forEach(oe=>{Y=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(oe,`Change in extended config file ${j} detected`)||Y}),Y&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,cd.ExtendedConfigFile,u),j=>this.toPath(j)),d}watchWildcards(u,{exists:s,config:d},f){if(d.projects.set(f.canonicalConfigFilePath,!0),s){if(d.watchedDirectories&&!d.watchedDirectoriesStale)return;d.watchedDirectoriesStale=!1,_H(d.watchedDirectories||(d.watchedDirectories=new Map),new Map(Object.entries(d.parsedCommandLine.wildcardDirectories)),(p,E)=>this.watchWildcardDirectory(p,E,u,d))}else{if(d.watchedDirectoriesStale=!1,!d.watchedDirectories)return;rf(d.watchedDirectories,jm),d.watchedDirectories=void 0}}stopWatchingWildCards(u,s){const d=this.configFileExistenceInfoCache.get(u);!d.config||!d.config.projects.get(s.canonicalConfigFilePath)||(d.config.projects.set(s.canonicalConfigFilePath,!1),!h1(d.config.projects,il)&&(d.config.watchedDirectories&&(rf(d.config.watchedDirectories,jm),d.config.watchedDirectories=void 0),d.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(u,s,d){const f=u.getRootFilesMap(),p=new Map;for(const E of s){const v=d.getFileName(E),b=Dl(v),B=HK(b);let k;if(!B&&!u.fileExists(v)){k=VK(b,this.currentDirectory,this.toCanonicalFileName);const T=f.get(k);T?(T.info&&(u.removeFile(T.info,!1,!0),T.info=void 0),T.fileName=b):f.set(k,{fileName:b})}else{const T=d.getScriptKind(E,this.hostConfiguration.extraFileExtensions),M=d.hasMixedContent(E,this.hostConfiguration.extraFileExtensions),z=H.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(b,u.currentDirectory,T,M,u.directoryStructureHost));k=z.path;const j=f.get(k);!j||j.info!==z?(u.addRoot(z,b),z.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(z)):j.fileName=b}p.set(k,!0)}f.size>p.size&&f.forEach((E,v)=>{p.has(v)||(E.info?u.removeFile(E.info,u.fileExists(v),!0):f.delete(v))})}updateRootAndOptionsOfNonInferredProject(u,s,d,f,p,E,v){u.setCompilerOptions(f),u.setWatchOptions(v),E!==void 0&&(u.compileOnSaveEnabled=E),this.addFilesToNonInferredProject(u,s,d,p)}reloadFileNamesOfConfiguredProject(u){const s=this.reloadFileNamesOfParsedConfig(u.getConfigFilePath(),this.configFileExistenceInfoCache.get(u.canonicalConfigFilePath).config);return u.updateErrorOnNoInputFiles(s),this.updateNonInferredProjectFiles(u,s.concat(u.getExternalFiles(1)),cte),u.markAsDirty(),u.updateGraph()}reloadFileNamesOfParsedConfig(u,s){if(s.updateLevel===void 0)return s.parsedCommandLine.fileNames;H.assert(s.updateLevel===1);const d=s.parsedCommandLine.options.configFile.configFileSpecs,f=oM(d,lr(u),s.parsedCommandLine.options,s.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return s.parsedCommandLine={...s.parsedCommandLine,fileNames:f},f}setFileNamesOfAutpImportProviderOrAuxillaryProject(u,s){this.updateNonInferredProjectFiles(u,s,cte)}reloadConfiguredProject(u,s,d,f){const p=u.getCachedDirectoryStructureHost();f&&this.clearSemanticCache(u),p.clearCache();const E=u.getConfigFilePath();this.logger.info(`${d?"Loading":"Reloading"} configured project ${E}`),this.loadConfiguredProject(u,s),u.updateGraph(),this.sendConfigFileDiagEvent(u,E)}clearSemanticCache(u){u.resolutionCache.clear(),u.getLanguageService(!1).cleanupSemanticCache(),u.cleanupProgram(),u.markAsDirty()}sendConfigFileDiagEvent(u,s){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const d=u.getLanguageService().getCompilerOptionsDiagnostics();d.push(...u.getAllProjectErrors()),this.eventHandler({eventName:ute,data:{configFileName:u.getConfigFilePath(),diagnostics:d,triggerFile:s}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(u,s){if(!this.useInferredProjectPerProjectRoot||u.isDynamic&&s===void 0)return;if(s){const f=this.toCanonicalFileName(s);for(const p of this.inferredProjects)if(p.projectRootPath===f)return p;return this.createInferredProject(s,!1,s)}let d;for(const f of this.inferredProjects)f.projectRootPath&&GE(f.projectRootPath,u.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(d&&d.projectRootPath.length>f.projectRootPath.length||(d=f));return d}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(u){H.assert(!this.useSingleInferredProject);const s=this.toCanonicalFileName(this.getNormalizedAbsolutePath(u));for(const d of this.inferredProjects)if(!d.projectRootPath&&d.isOrphan()&&d.canonicalCurrentDirectory===s)return d;return this.createInferredProject(u)}createInferredProject(u,s,d){const f=d&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(d)||this.compilerOptionsForInferredProjects;let p,E;d&&(p=this.watchOptionsForInferredProjectsPerProjectRoot.get(d),E=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(d)),p===void 0&&(p=this.watchOptionsForInferredProjects),E===void 0&&(E=this.typeAcquisitionForInferredProjects),p=p||void 0;const v=new nge(this,this.documentRegistry,f,p==null?void 0:p.watchOptions,d,u,E);return v.setProjectErrors(p==null?void 0:p.errors),s?this.inferredProjects.unshift(v):this.inferredProjects.push(v),v}getOrCreateScriptInfoNotOpenedByClient(u,s,d){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Dl(u),s,void 0,void 0,d)}getScriptInfo(u){return this.getScriptInfoForNormalizedPath(Dl(u))}getScriptInfoOrConfig(u){const s=Dl(u),d=this.getScriptInfoForNormalizedPath(s);if(d)return d;const f=this.configuredProjects.get(this.toPath(u));return f&&f.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(u){const s=ga(this.filenameToScriptInfo.entries(),([d,f])=>({path:d,fileName:f.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(u)}. +All files are: ${JSON.stringify(s)}`,"Err")}getSymlinkedProjects(u){let s;if(this.realpathToScriptInfos){const f=u.getRealpathIfDifferent();f&&L(this.realpathToScriptInfos.get(f),d),L(this.realpathToScriptInfos.get(u.path),d)}return s;function d(f){if(f!==u)for(const p of f.containingProjects)p.languageServiceEnabled&&!p.isOrphan()&&!p.getCompilerOptions().preserveSymlinks&&!u.isAttached(p)&&(s?h1(s,(E,v)=>v===f.path?!1:kt(E,p))||s.add(f.path,p):(s=wm(),s.add(f.path,p)))}}watchClosedScriptInfo(u){if(H.assert(!u.fileWatcher),!u.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Pa(u.path,this.globalCacheLocationDirectoryPath))){const s=u.path.indexOf("/node_modules/");!this.host.getModifiedTime||s===-1?u.fileWatcher=this.watchFactory.watchFile(u.fileName,(d,f)=>this.onSourceFileChanged(u,f),500,this.hostConfiguration.watchOptions,cd.ClosedScriptInfo):(u.mTime=this.getModifiedTime(u),u.fileWatcher=this.watchClosedScriptInfoInNodeModules(u.path.substr(0,s)))}}createNodeModulesWatcher(u){const s=this.watchFactory.watchDirectory(u,f=>{var p;const E=zQ(this.toPath(f));if(!E)return;const v=Ac(E);if((p=d.affectedModuleSpecifierCacheProjects)!=null&&p.size&&(v==="package.json"||v==="node_modules")&&d.affectedModuleSpecifierCacheProjects.forEach(b=>{var B,k;(k=(B=this.findProject(b))==null?void 0:B.getModuleSpecifierCache())==null||k.clear()}),d.refreshScriptInfoRefCount)if(u===E)this.refreshScriptInfosInDirectory(u);else{const b=this.getScriptInfoForPath(E);b?Mct(b)&&this.refreshScriptInfo(b):t7(E)||this.refreshScriptInfosInDirectory(E)}},1,this.hostConfiguration.watchOptions,cd.NodeModules),d={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var f;!d.refreshScriptInfoRefCount&&!((f=d.affectedModuleSpecifierCacheProjects)!=null&&f.size)&&(s.close(),this.nodeModulesWatchers.delete(u))}};return this.nodeModulesWatchers.set(u,d),d}watchPackageJsonsInNodeModules(u,s){const d=this.nodeModulesWatchers.get(u)||this.createNodeModulesWatcher(u);return(d.affectedModuleSpecifierCacheProjects||(d.affectedModuleSpecifierCacheProjects=new Set)).add(s.getProjectName()),{close:()=>{var f;(f=d.affectedModuleSpecifierCacheProjects)==null||f.delete(s.getProjectName()),d.close()}}}watchClosedScriptInfoInNodeModules(u){const s=u+"/node_modules",d=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(s);return d.refreshScriptInfoRefCount++,{close:()=>{d.refreshScriptInfoRefCount--,d.close()}}}getModifiedTime(u){return(this.host.getModifiedTime(u.path)||K_).getTime()}refreshScriptInfo(u){const s=this.getModifiedTime(u);if(s!==u.mTime){const d=xse(u.mTime,s);u.mTime=s,this.onSourceFileChanged(u,d)}}refreshScriptInfosInDirectory(u){u=u+rl,this.filenameToScriptInfo.forEach(s=>{Mct(s)&&Pa(s.path,u)&&this.refreshScriptInfo(s)})}stopWatchingScriptInfo(u){u.fileWatcher&&(u.fileWatcher.close(),u.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(u,s,d,f,p){if(Pf(u)||HK(u))return this.getOrCreateScriptInfoWorker(u,s,!1,void 0,d,f,p);const E=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(u));if(E)return E}getOrCreateScriptInfoOpenedByClientForNormalizedPath(u,s,d,f,p){return this.getOrCreateScriptInfoWorker(u,s,!0,d,f,p)}getOrCreateScriptInfoForNormalizedPath(u,s,d,f,p,E){return this.getOrCreateScriptInfoWorker(u,this.currentDirectory,s,d,f,p,E)}getOrCreateScriptInfoWorker(u,s,d,f,p,E,v){H.assert(f===void 0||d,"ScriptInfo needs to be opened by client to be able to set its user defined content");const b=VK(u,s,this.toCanonicalFileName);let B=this.getScriptInfoForPath(b);if(!B){const k=HK(u);if(H.assert(Pf(u)||k||d,"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:ga(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),H.assert(!Pf(u)||this.currentDirectory===s||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(u)),"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:ga(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),H.assert(!k||this.currentDirectory===s||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:ga(this.openFilesWithNonRootedDiskPath.keys())})} +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!d&&!k&&!(v||this.host).fileExists(u))return;B=new ege(this.host,u,p,!!E,b,this.filenameToScriptInfoVersion.get(b)),this.filenameToScriptInfo.set(B.path,B),this.filenameToScriptInfoVersion.delete(B.path),d?!Pf(u)&&(!k||this.currentDirectory!==s)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(u),B):this.watchClosedScriptInfo(B)}return d&&(this.stopWatchingScriptInfo(B),B.open(f),E&&B.registerFileUpdate()),B}getScriptInfoForNormalizedPath(u){return!Pf(u)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(u))||this.getScriptInfoForPath(VK(u,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(u){return this.filenameToScriptInfo.get(u)}getDocumentPositionMapper(u,s,d){const f=this.getOrCreateScriptInfoNotOpenedByClient(s,u.currentDirectory,this.host);if(!f){d&&u.addGeneratedFileWatch(s,d);return}if(f.getSnapshot(),Ja(f.sourceMapFilePath)){const k=this.getScriptInfoForPath(f.sourceMapFilePath);if(k&&(k.getSnapshot(),k.documentPositionMapper!==void 0))return k.sourceInfos=this.addSourceInfoToSourceMap(d,u,k.sourceInfos),k.documentPositionMapper?k.documentPositionMapper:void 0;f.sourceMapFilePath=void 0}else if(f.sourceMapFilePath){f.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(d,u,f.sourceMapFilePath.sourceInfos);return}else if(f.sourceMapFilePath!==void 0)return;let p,E,v=(k,T)=>{const M=this.getOrCreateScriptInfoNotOpenedByClient(k,u.currentDirectory,this.host);if(!M){E=T;return}p=M;const z=M.getSnapshot();return M.documentPositionMapper!==void 0?M.documentPositionMapper:aw(z)};const b=u.projectName,B=Gfe({getCanonicalFileName:this.toCanonicalFileName,log:k=>this.logger.info(k),getSourceFileLike:k=>this.getSourceFileLike(k,b,f)},f.fileName,f.textStorage.getLineInfo(),v);return v=void 0,p?(f.sourceMapFilePath=p.path,p.declarationInfoPath=f.path,p.documentPositionMapper=B||!1,p.sourceInfos=this.addSourceInfoToSourceMap(d,u,p.sourceInfos)):E?f.sourceMapFilePath={watcher:this.addMissingSourceMapFile(u.currentDirectory===this.currentDirectory?E:$a(E,u.currentDirectory),f.path),sourceInfos:this.addSourceInfoToSourceMap(d,u)}:f.sourceMapFilePath=!1,B}addSourceInfoToSourceMap(u,s,d){if(u){const f=this.getOrCreateScriptInfoNotOpenedByClient(u,s.currentDirectory,s.directoryStructureHost);(d||(d=new Set)).add(f.path)}return d}addMissingSourceMapFile(u,s){return this.watchFactory.watchFile(u,()=>{const f=this.getScriptInfoForPath(s);f&&f.sourceMapFilePath&&!Ja(f.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(f.containingProjects,!0),this.delayUpdateSourceInfoProjects(f.sourceMapFilePath.sourceInfos),f.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,cd.MissingSourceMapFile)}getSourceFileLike(u,s,d){const f=s.projectName?s:this.findProject(s);if(f){const E=f.toPath(u),v=f.getSourceFile(E);if(v&&v.resolvedPath===E)return v}const p=this.getOrCreateScriptInfoNotOpenedByClient(u,(f||this).currentDirectory,f?f.directoryStructureHost:this.host);if(p){if(d&&Ja(d.sourceMapFilePath)&&p!==d){const E=this.getScriptInfoForPath(d.sourceMapFilePath);E&&(E.sourceInfos||(E.sourceInfos=new Set)).add(p.path)}return p.cacheSourceFile?p.cacheSourceFile.sourceFile:(p.sourceFileLike||(p.sourceFileLike={get text(){return H.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:E=>{const v=p.positionToLineOffset(E);return{line:v.line-1,character:v.offset-1}},getPositionOfLineAndCharacter:(E,v,b)=>p.lineOffsetToPosition(E+1,v+1,b)}),p.sourceFileLike)}}setPerformanceEventHandler(u){this.performanceEventHandler=u}setHostConfiguration(u){var s;if(u.file){const d=this.getScriptInfoForNormalizedPath(Dl(u.file));d&&(d.setOptions(Sw(u.formatOptions),u.preferences),this.logger.info(`Host configuration update for file ${u.file}`))}else{if(u.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=u.hostInfo,this.logger.info(`Host information ${u.hostInfo}`)),u.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...Sw(u.formatOptions)},this.logger.info("Format host information updated")),u.preferences){const{lazyConfiguredProjectsFromExternalProject:d,includePackageJsonAutoImports:f}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...u.preferences},d&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.configuredProjects.forEach(p=>{p.hasExternalProjectRef()&&p.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(p.getProjectName())&&p.updateGraph()}),f!==u.preferences.includePackageJsonAutoImports&&this.invalidateProjectPackageJson(void 0)}u.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=u.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),u.watchOptions&&(this.hostConfiguration.watchOptions=(s=GK(u.watchOptions))==null?void 0:s.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(u){return this.getWatchOptionsFromProjectWatchOptions(u.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(u){return u&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...u}:u||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(u=>{this.openFiles.has(u.path)||u.fileWatcher&&this.onSourceFileChanged(u,this.host.fileExists(u.fileName)?1:2)}),this.pendingProjectUpdates.forEach((u,s)=>{this.throttledOperations.cancel(s),this.pendingProjectUpdates.delete(s)}),this.throttledOperations.cancel(pNe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(u=>{u.config&&(u.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,J3,"User requested reload projects"),this.externalProjects.forEach(u=>{this.clearSemanticCache(u),u.updateGraph()}),this.inferredProjects.forEach(u=>this.clearSemanticCache(u)),this.ensureProjectForOpenFiles()}reloadConfiguredProjectForFiles(u,s,d,f,p){const E=new Map,v=b=>{E.has(b.canonicalConfigFilePath)||(E.set(b.canonicalConfigFilePath,!0),this.reloadConfiguredProject(b,p,!1,s))};u==null||u.forEach((b,B)=>{if(this.configFileForOpenFiles.delete(B),!f(b))return;const k=this.getScriptInfoForPath(B);H.assert(k.isScriptOpen());const T=this.getConfigFileNameForFile(k);if(T){const M=this.findConfiguredProjectByProjectName(T)||this.createConfiguredProject(T);E.has(M.canonicalConfigFilePath)||(E.set(M.canonicalConfigFilePath,!0),d?(M.pendingUpdateLevel=2,M.pendingUpdateReason=p,s&&this.clearSemanticCache(M),this.delayUpdateProjectGraph(M)):(this.reloadConfiguredProject(M,p,!1,s),p9(M,k)||Bw(M,k.path,j=>(v(j),p9(j,k)),1)&&Bw(M,void 0,v,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(u){H.assert(u.containingProjects.length>0);const s=u.containingProjects[0];!s.isOrphan()&&Aw(s)&&s.isRoot(u)&&L(u.containingProjects,d=>d!==s&&!d.isOrphan())&&s.removeFile(u,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);d.isOrphan()?this.assignOrphanScriptInfoToInferredProject(d,u):this.removeRootOfInferredProjectIfNowPartOfOtherProject(d)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Gm),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(u,s,d,f){return this.openClientFileWithNormalizedPath(Dl(u),s,d,!1,f?Dl(f):void 0)}getOriginalLocationEnsuringConfiguredProject(u,s){const d=u.isSourceOfProjectReferenceRedirect(s.fileName),f=d?s:u.getSourceMapper().tryGetSourcePosition(s);if(!f)return;const{fileName:p}=f,E=this.getScriptInfo(p);if(!E&&!this.host.fileExists(p))return;const v={fileName:Dl(p),path:this.toPath(p)},b=this.getConfigFileNameForFile(v);if(!b)return;let B=this.findConfiguredProjectByProjectName(b);if(!B){if(u.getCompilerOptions().disableReferencedProjectLoad)return d?s:E!=null&&E.containingProjects.length?f:s;B=this.createAndLoadConfiguredProject(b,`Creating project for original file: ${v.fileName}${s!==f?" for location: "+s.fileName:""}`)}Gm(B);const k=z=>{const j=this.getScriptInfo(p);return j&&p9(z,j)};if(B.isSolution()||!k(B)){if(B=Bw(B,p,z=>(Gm(z),k(z)?z:void 0),2,`Creating project referenced in solution ${B.projectName} to find possible configured project for original file: ${v.fileName}${s!==f?" for location: "+s.fileName:""}`),!B)return;if(B===u)return f}M(B);const T=this.getScriptInfo(p);if(!T||!T.containingProjects.length)return;return T.containingProjects.forEach(z=>{Qv(z)&&M(z)}),f;function M(z){u.originalConfiguredProjects||(u.originalConfiguredProjects=new Set),u.originalConfiguredProjects.add(z.canonicalConfigFilePath)}}fileExists(u){return!!this.getScriptInfoForNormalizedPath(u)||this.host.fileExists(u)}findExternalProjectContainingOpenScriptInfo(u){return Le(this.externalProjects,s=>(Gm(s),s.containsScriptInfo(u)))}getOrCreateOpenScriptInfo(u,s,d,f,p){const E=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(u,p?this.getNormalizedAbsolutePath(p):this.currentDirectory,s,d,f);return this.openFiles.set(E.path,p),E}assignProjectToOpenedScriptInfo(u){let s,d,f=this.findExternalProjectContainingOpenScriptInfo(u),p,E,v=!1;return!f&&this.serverMode===0&&(s=this.getConfigFileNameForFile(u),s&&(f=this.findConfiguredProjectByProjectName(s),f?Gm(f):(f=this.createLoadAndUpdateConfiguredProject(s,`Creating possible configured project for ${u.fileName} to open`),v=!0),E=f.containsScriptInfo(u)?f:void 0,p=f,p9(f,u)||Bw(f,u.path,b=>{if(Gm(b),Ha(p)?p.push(b):p=[f,b],p9(b,u))return E=b,b;!E&&b.containsScriptInfo(u)&&(E=b)},2,`Creating project referenced in solution ${f.projectName} to find possible configured project for ${u.fileName} to open`),E?(s=E.getConfigFilePath(),(E!==f||v)&&(d=E.getAllProjectErrors(),this.sendConfigFileDiagEvent(E,u.fileName))):s=void 0,this.createAncestorProjects(u,f))),u.containingProjects.forEach(Gm),u.isOrphan()&&(Ha(p)?p.forEach(b=>this.sendConfigFileDiagEvent(b,u.fileName)):p&&this.sendConfigFileDiagEvent(p,u.fileName),H.assert(this.openFiles.has(u.path)),this.assignOrphanScriptInfoToInferredProject(u,this.openFiles.get(u.path))),H.assert(!u.isOrphan()),{configFileName:s,configFileErrors:d,retainProjects:p}}createAncestorProjects(u,s){if(u.isAttached(s))for(;;){if(!s.isInitialLoadPending()&&(!s.getCompilerOptions().composite||s.getCompilerOptions().disableSolutionSearching))return;const d=this.getConfigFileNameForFile({fileName:s.getConfigFilePath(),path:u.path,configFileInfo:!0});if(!d)return;const f=this.findConfiguredProjectByProjectName(d)||this.createConfiguredProjectWithDelayLoad(d,`Creating project possibly referencing default composite project ${s.getProjectName()} of open file ${u.fileName}`);f.isInitialLoadPending()&&f.setPotentialProjectReference(s.canonicalConfigFilePath),s=f}}loadAncestorProjectTree(u){u=u||Fa(this.configuredProjects,(d,f)=>f.isInitialLoadPending()?void 0:[d,!0]);const s=new Set;for(const d of ga(this.configuredProjects.values()))Nct(d,f=>u.has(f))&&Gm(d),this.ensureProjectChildren(d,u,s)}ensureProjectChildren(u,s,d){var f;if(!r0(d,u.canonicalConfigFilePath)||u.getCompilerOptions().disableReferencedProjectLoad)return;const p=(f=u.getCurrentProgram())==null?void 0:f.getResolvedProjectReferences();if(p)for(const E of p){if(!E)continue;const v=S1e(E.references,k=>s.has(k.sourceFile.path)?k:void 0);if(!v)continue;const b=Dl(E.sourceFile.fileName),B=u.projectService.findConfiguredProjectByProjectName(b)||u.projectService.createAndLoadConfiguredProject(b,`Creating project referenced by : ${u.projectName} as it references project ${v.sourceFile.fileName}`);Gm(B),this.ensureProjectChildren(B,s,d)}}cleanupAfterOpeningFile(u){this.removeOrphanConfiguredProjects(u);for(const s of this.inferredProjects.slice())s.isOrphan()&&this.removeProject(s);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(u,s,d,f,p){const E=this.getOrCreateOpenScriptInfo(u,s,d,f,p),{retainProjects:v,...b}=this.assignProjectToOpenedScriptInfo(E);return this.cleanupAfterOpeningFile(v),this.telemetryOnOpenFile(E),this.printProjects(),b}removeOrphanConfiguredProjects(u){const s=new Map(this.configuredProjects),d=E=>{!E.isOrphan()&&E.originalConfiguredProjects&&E.originalConfiguredProjects.forEach((v,b)=>{const B=this.getConfiguredProjectByCanonicalConfigFilePath(b);return B&&p(B)})};u&&(Ha(u)?u.forEach(p):p(u)),this.inferredProjects.forEach(d),this.externalProjects.forEach(d),this.configuredProjects.forEach(E=>{E.hasOpenRef()?p(E):s.has(E.canonicalConfigFilePath)&&Pct(E,v=>f(v)&&p(E))}),s.forEach(E=>this.removeProject(E));function f(E){return E.hasOpenRef()||!s.has(E.canonicalConfigFilePath)}function p(E){s.delete(E.canonicalConfigFilePath)&&(d(E),Pct(E,p))}}removeOrphanScriptInfos(){const u=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(s=>{if(!s.isScriptOpen()&&s.isOrphan()&&!s.isContainedByBackgroundProject()){if(!s.sourceMapFilePath)return;let d;if(Ja(s.sourceMapFilePath)){const f=this.getScriptInfoForPath(s.sourceMapFilePath);d=f&&f.sourceInfos}else d=s.sourceMapFilePath.sourceInfos;if(!d||!U_(d,f=>{const p=this.getScriptInfoForPath(f);return!!p&&(p.isScriptOpen()||!p.isOrphan())}))return}if(u.delete(s.path),s.sourceMapFilePath){let d;if(Ja(s.sourceMapFilePath)){u.delete(s.sourceMapFilePath);const f=this.getScriptInfoForPath(s.sourceMapFilePath);d=f&&f.sourceInfos}else d=s.sourceMapFilePath.sourceInfos;d&&d.forEach((f,p)=>u.delete(p))}}),u.forEach(s=>{this.stopWatchingScriptInfo(s),this.deleteScriptInfo(s),s.closeSourceMapFileWatcher()})}telemetryOnOpenFile(u){if(this.serverMode!==0||!this.eventHandler||!u.isJavaScript()||!Ip(this.allJsFilesForOpenFileTelemetry,u.path))return;const s=this.ensureDefaultProjectForFile(u);if(!s.languageServiceEnabled)return;const d=s.getSourceFile(u.path),f=!!d&&!!d.checkJsDirective;this.eventHandler({eventName:cge,data:{info:{checkJs:f}}})}closeClientFile(u,s){const d=this.getScriptInfoForNormalizedPath(Dl(u)),f=d?this.closeOpenFile(d,s):!1;return s||this.printProjects(),f}collectChanges(u,s,d,f){for(const p of s){const E=Le(u,v=>v.projectName===p.getProjectName());f.push(p.getChangesSinceVersion(E&&E.version,d))}}synchronizeProjectList(u,s){const d=[];return this.collectChanges(u,this.externalProjects,s,d),this.collectChanges(u,this.configuredProjects.values(),s,d),this.collectChanges(u,this.inferredProjects,s,d),d}applyChangesInOpenFiles(u,s,d){let f,p=!1;if(u)for(const v of u){const b=this.getOrCreateOpenScriptInfo(Dl(v.fileName),v.content,sge(v.scriptKind),v.hasMixedContent,v.projectRootPath?Dl(v.projectRootPath):void 0);(f||(f=[])).push(b)}if(s)for(const v of s){const b=this.getScriptInfo(v.fileName);H.assert(!!b),this.applyChangesToFile(b,v.changes)}if(d)for(const v of d)p=this.closeClientFile(v,!0)||p;let E;f&&(E=ju(f,v=>this.assignProjectToOpenedScriptInfo(v).retainProjects)),p&&this.assignOrphanScriptInfosToInferredProject(),f?(this.cleanupAfterOpeningFile(E),f.forEach(v=>this.telemetryOnOpenFile(v)),this.printProjects()):S(d)&&this.printProjects()}applyChangesToFile(u,s){for(const d of s)u.editContent(d.span.start,d.span.start+d.span.length,d.newText)}closeConfiguredProjectReferencedFromExternalProject(u){const s=this.findConfiguredProjectByProjectName(u);if(s&&(s.deleteExternalProjectReference(),!s.hasOpenRef())){this.removeProject(s);return}}closeExternalProject(u){const s=Dl(u),d=this.externalProjectToConfiguredProjectMap.get(s);if(d){for(const f of d)this.closeConfiguredProjectReferencedFromExternalProject(f);this.externalProjectToConfiguredProjectMap.delete(s)}else{const f=this.findExternalProjectByProjectName(u);f&&this.removeProject(f)}}openExternalProjects(u){const s=lg(this.externalProjects,d=>d.getProjectName(),d=>!0);U_(this.externalProjectToConfiguredProjectMap,d=>{s.set(d,!0)});for(const d of u)this.openExternalProject(d),s.delete(d.projectFileName);U_(s,d=>{this.closeExternalProject(d)})}static escapeFilenameForRegex(u){return u.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=dge}applySafeList(u){const{rootFiles:s}=u,d=u.typeAcquisition;if(H.assert(!!d,"proj.typeAcquisition should be set by now"),d.enable===!1||d.disableFilenameBasedTypeAcquisition)return[];const f=d.include||(d.include=[]),p=[],E=s.map(k=>q1(k.fileName)),v=[];for(const k of Object.keys(this.safelist)){const T=this.safelist[k];for(const M of E)if(T.match.test(M)){if(this.logger.info(`Excluding files based on rule ${k} matching file '${M}'`),T.types)for(const z of T.types)f.includes(z)||f.push(z);if(T.exclude)for(const z of T.exclude){const j=M.replace(T.match,(...J)=>z.map(K=>typeof K=="number"?Ja(J[K])?QOe.escapeFilenameForRegex(J[K]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${k} - not enough groups`),"\\*"):K).join(""));p.includes(j)||p.push(j)}else{const z=QOe.escapeFilenameForRegex(M);p.includes(z)||p.push(z)}}}const b=p.map(k=>new RegExp(k,"i")),B=[];for(let k=0;kT.test(E[k])))v.push(E[k]);else{let T=!1;if(d.enable){const M=Ac($g(E[k]));if(Ml(M,"js")){const z=_h(M),j=soe(z),J=this.legacySafelist.get(j);J!==void 0&&(this.logger.info(`Excluded '${E[k]}' because it matched ${j} from the legacy safelist`),v.push(E[k]),T=!0,f.includes(J)||f.push(J))}}T||(/^.+[.-]min\.js$/.test(E[k])?v.push(E[k]):B.push(u.rootFiles[k]))}return u.rootFiles=B,v}openExternalProject(u){u.typeAcquisition=u.typeAcquisition||{},u.typeAcquisition.include=u.typeAcquisition.include||[],u.typeAcquisition.exclude=u.typeAcquisition.exclude||[],u.typeAcquisition.enable===void 0&&(u.typeAcquisition.enable=uNe(u.rootFiles.map(v=>v.fileName)));const s=this.applySafeList(u);let d;const f=[];for(const v of u.rootFiles){const b=Dl(v.fileName);qpe(b)?this.serverMode===0&&this.host.fileExists(b)&&(d||(d=[])).push(b):f.push(v)}d&&d.sort();const p=this.findExternalProjectByProjectName(u.projectFileName);let E;if(p){if(p.excludedFiles=s,!d){const v=Yee(u.options),b=GK(u.options,p.getCurrentDirectory()),B=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u.projectFileName,v,u.rootFiles,dte);B?p.disableLanguageService(B):p.enableLanguageService(),p.setProjectErrors(b==null?void 0:b.errors),this.updateRootAndOptionsOfNonInferredProject(p,u.rootFiles,dte,v,u.typeAcquisition,u.options.compileOnSave,b==null?void 0:b.watchOptions),p.updateGraph();return}this.closeExternalProject(u.projectFileName)}else if(this.externalProjectToConfiguredProjectMap.get(u.projectFileName))if(!d)this.closeExternalProject(u.projectFileName);else{const v=this.externalProjectToConfiguredProjectMap.get(u.projectFileName);let b=0,B=0;for(;bk||((E||(E=[])).push(T),B++),b++)}for(let k=B;kthis.logger.info(E));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let p=this.pendingPluginEnablements.get(u);p||this.pendingPluginEnablements.set(u,p=[]),p.push(f);return}this.endEnablePlugin(u,Wk.importServicePluginSync(s,d,this.host,f=>this.logger.info(f)))}endEnablePlugin(u,{pluginConfigEntry:s,resolvedModule:d,errorLogs:f}){var p;if(d){const E=(p=this.currentPluginConfigOverrides)==null?void 0:p.get(s.name);if(E){const v=s.name;s=E,s.name=v}u.enableProxy(d,s)}else L(f,E=>this.logger.info(E)),this.logger.info(`Couldn't find ${s.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const u=ga(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(u),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(u){H.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Vt(u,([s,d])=>this.enableRequestedPluginsForProjectAsync(s,d))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(u,s){const d=await Promise.all(s);if(!u.isClosed()){for(const f of d)this.endEnablePlugin(u,f);this.delayUpdateProjectGraph(u)}}configurePlugin(u){this.forEachEnabledProject(s=>s.onPluginConfigurationChanged(u.pluginName,u.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(u.pluginName,u.configuration)}getPackageJsonsVisibleToFile(u,s){const d=this.packageJsonCache,f=s&&this.toPath(s),p=this.toPath(u),E=[],v=b=>{switch(d.directoryHasPackageJson(b)){case 3:return d.searchDirectoryAndAncestors(b),v(b);case-1:const B=cr(b,"package.json");this.watchPackageJsonFile(B);const k=d.getInDirectory(b);k&&E.push(k)}if(f&&f===b)return!0};return Ug(lr(p),v),E}getNearestAncestorDirectoryWithPackageJson(u){return Ug(u,s=>{switch(this.packageJsonCache.directoryHasPackageJson(this.toPath(s))){case-1:return s;case 0:return;case 3:return this.host.fileExists(cr(s,"package.json"))?s:void 0}})}watchPackageJsonFile(u){const s=this.packageJsonFilesMap||(this.packageJsonFilesMap=new Map);s.has(u)||(this.invalidateProjectPackageJson(u),s.set(u,this.watchFactory.watchFile(u,(d,f)=>{const p=this.toPath(d);switch(f){case 0:return H.fail();case 1:this.packageJsonCache.addOrUpdate(p),this.invalidateProjectPackageJson(p);break;case 2:this.packageJsonCache.delete(p),this.invalidateProjectPackageJson(p),s.get(p).close(),s.delete(p)}},250,this.hostConfiguration.watchOptions,cd.PackageJson)))}onAddPackageJson(u){this.packageJsonCache.addOrUpdate(u),this.watchPackageJsonFile(u)}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}invalidateProjectPackageJson(u){this.configuredProjects.forEach(s),this.inferredProjects.forEach(s),this.externalProjects.forEach(s);function s(d){u?d.onPackageJsonChange(u):d.onAutoImportProviderSettingsChanged()}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=jQt())}},gNe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,mge=gNe}});function ENe(t){let u,s,d;const f={get(b,B,k,T){if(!(!s||d!==E(b,k,T)))return s.get(B)},set(b,B,k,T,M,z){if(p(b,k,T).set(B,v(M,z,!1)),z){for(const j of M)if(j.isInNodeModules){const J=j.path.substring(0,j.path.indexOf(o_)+o_.length-1);u!=null&&u.has(J)||(u||(u=new Map)).set(J,t.watchNodeModulesForPackageJsonChanges(J))}}},setModulePaths(b,B,k,T,M){const z=p(b,k,T),j=z.get(B);j?j.modulePaths=M:z.set(B,v(M,void 0,void 0))},setBlockedByPackageJsonDependencies(b,B,k,T,M){const z=p(b,k,T),j=z.get(B);j?j.isBlockedByPackageJsonDependencies=M:z.set(B,v(void 0,void 0,M))},clear(){u==null||u.forEach(b=>b.close()),s==null||s.clear(),u==null||u.clear(),d=void 0},count(){return s?s.size:0}};return H.isDebugging&&Object.defineProperty(f,"__cache",{get:()=>s}),f;function p(b,B,k){const T=E(b,B,k);return s&&d!==T&&f.clear(),d=T,s||(s=new Map)}function E(b,B,k){return`${b},${B.importModuleSpecifierEnding},${B.importModuleSpecifierPreference},${k.overrideImportMode}`}function v(b,B,k){return{modulePaths:b,moduleSpecifiers:B,isBlockedByPackageJsonDependencies:k}}}var HQt=o({"src/server/moduleSpecifierCache.ts"(){Xv()}});function _Ne(t){const u=new Map,s=new Map;return{addOrUpdate:d,forEach:u.forEach.bind(u),get:u.get.bind(u),delete:p=>{u.delete(p),s.set(lr(p),!0)},getInDirectory:p=>u.get(cr(p,"package.json"))||void 0,directoryHasPackageJson:f,searchDirectoryAndAncestors:p=>{Ug(p,E=>{if(f(E)!==3)return!0;const v=t.toPath(cr(E,"package.json"));QH(t,v)?d(v):s.set(E,!0)})}};function d(p){const E=H.checkDefined(Cfe(p,t.host));u.set(p,E),s.delete(lr(p))}function f(p){return u.has(cr(p,"package.json"))?-1:s.has(p)?0:3}}var KQt=o({"src/server/packageJsonCache.ts"(){Xv()}});function WQt(t){const u=t[0],s=t[1];return(1e9*u+s)/1e6}function Oct(t,u){if((Aw(t)||ige(t))&&t.isJsOnlyProject()){const s=t.getScriptInfoForNormalizedPath(u);return s&&!s.isJavaScript()}return!1}function GQt(t){return c4(t)||!!t.emitDecoratorMetadata}function jct(t,u,s){const d=u.getScriptInfoForNormalizedPath(t);return{start:d.positionToLineOffset(s.start),end:d.positionToLineOffset(s.start+s.length),text:lE(s.messageText,` +`),code:s.code,category:Gy(s),reportsUnnecessary:s.reportsUnnecessary,reportsDeprecated:s.reportsDeprecated,source:s.source,relatedInformation:Vt(s.relatedInformation,pge)}}function pge(t){return t.file?{span:{start:$K(s0(t.file,t.start)),end:$K(s0(t.file,t.start+t.length)),file:t.file.fileName},message:lE(t.messageText,` +`),category:Gy(t),code:t.code}:{message:lE(t.messageText,` +`),category:Gy(t),code:t.code}}function $K(t){return{line:t.line+1,offset:t.character+1}}function UK(t,u){const s=t.file&&$K(s0(t.file,t.start)),d=t.file&&$K(s0(t.file,t.start+t.length)),f=lE(t.messageText,` +`),{code:p,source:E}=t,v=Gy(t),b={start:s,end:d,text:f,code:p,category:v,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated,source:E,relatedInformation:Vt(t.relatedInformation,pge)};return u?{...b,fileName:t.file&&t.file.fileName}:b}function JQt(t,u){return t.every(s=>Ec(s.span)d(p,t));return!Ha(s)&&s.symLinkedProjects&&s.symLinkedProjects.forEach((p,E)=>{const v=u(E);f.push(...Ku(p,b=>d(b,v)))}),li(f,vx)}function pge(){return roe(({textSpan:t})=>t.start+100003*t.length,DX)}function GQt(t,u,s,d,f,p){const E=Rct(t,u,s,!0,(B,k)=>B.getLanguageService().findRenameLocations(k.fileName,k.pos,d,f,p),(B,k)=>k(nz(B)));if(Ha(E))return E;const v=[],b=pge();return E.forEach((B,k)=>{for(const T of B)!b.has(T)&&!gge(nz(T),k)&&(v.push(T),b.add(T))}),v}function JQt(t,u,s){const d=t.getLanguageService().getDefinitionAtPosition(u.fileName,u.pos,!1,s),f=d&&Hi(d);return f&&!f.isLocal?{fileName:f.fileName,pos:f.textSpan.start}:void 0}function $Qt(t,u,s,d){var f,p;const E=Rct(t,u,s,!1,(k,T)=>(d.info(`Finding references to ${T.fileName} position ${T.pos} in project ${k.getProjectName()}`),k.getLanguageService().findReferences(T.fileName,T.pos)),(k,T)=>{T(nz(k.definition));for(const M of k.references)T(nz(M))});if(Ha(E))return E;const v=E.get(u);if(((p=(f=v==null?void 0:v[0])==null?void 0:f.references[0])==null?void 0:p.isDefinition)===void 0)E.forEach(k=>{for(const T of k)for(const M of T.references)delete M.isDefinition});else{const k=pge();for(const M of v)for(const z of M.references)if(z.isDefinition){k.add(z);break}const T=new Set;for(;;){let M=!1;if(E.forEach((z,j)=>{if(T.has(j))return;j.getLanguageService().updateIsDefinitionOfReferencedSymbols(z,k)&&(T.add(j),M=!0)}),!M)break}E.forEach((M,z)=>{if(!T.has(z))for(const j of M)for(const J of j.references)J.isDefinition=!1})}const b=[],B=pge();return E.forEach((k,T)=>{for(const M of k){const z=gge(nz(M.definition),T),j=z===void 0?M.definition:{...M.definition,textSpan:c1(z.pos,M.definition.textSpan.length),fileName:z.fileName,contextSpan:ZQt(M.definition,T)};let J=Le(b,K=>DX(K.definition,j));J||(J={definition:j,references:[]},b.push(J));for(const K of M.references)!B.has(K)&&!gge(nz(K),T)&&(B.add(K),J.references.push(K))}}),b.filter(k=>k.references.length!==0)}function DNe(t,u,s){for(const d of Ha(t)?t:t.projects)s(d,u);!Ha(t)&&t.symLinkedProjects&&t.symLinkedProjects.forEach((d,f)=>{for(const p of d)s(p,f)})}function Rct(t,u,s,d,f,p){const E=new Map,v=W$();v.enqueue({project:u,location:s}),DNe(t,s.fileName,(J,K)=>{const Y={fileName:K,pos:s.pos};v.enqueue({project:J,location:Y})});const b=u.projectService,B=u.getCancellationToken(),k=JQt(u,s,d),T=Nh(()=>u.isSourceOfProjectReferenceRedirect(k.fileName)?k:u.getLanguageService().getSourceMapper().tryGetGeneratedPosition(k)),M=Nh(()=>u.isSourceOfProjectReferenceRedirect(k.fileName)?k:u.getLanguageService().getSourceMapper().tryGetSourcePosition(k)),z=new Set;e:for(;!v.isEmpty();){for(;!v.isEmpty();){if(B.isCancellationRequested())break e;const{project:J,location:K}=v.dequeue();if(E.has(J)||Oct(J,K)||(Wm(J),!J.containsFile(gl(K.fileName))))continue;const Y=j(J,K);E.set(J,Y??Jc),z.add(qQt(J))}k&&(b.loadAncestorProjectTree(z),b.forEachEnabledProject(J=>{if(B.isCancellationRequested()||E.has(J))return;const K=UQt(k,J,T,M);K&&v.enqueue({project:J,location:K})}))}if(E.size===1)return Oa(E.values());return E;function j(J,K){const Y=f(J,K);if(Y){for(const oe of Y)p(oe,se=>{const ge=b.getOriginalLocationEnsuringConfiguredProject(J,se);if(!ge)return;const ae=b.getScriptInfo(ge.fileName);for(const ne of ae.containingProjects)!ne.isOrphan()&&!E.has(ne)&&v.enqueue({project:ne,location:ge});const Ce=b.getSymlinkedProjects(ae);Ce&&Ce.forEach((ne,ve)=>{for(const Se of ne)!Se.isOrphan()&&!E.has(Se)&&v.enqueue({project:Se,location:{fileName:ve,pos:ge.pos}})})});return Y}}}function UQt(t,u,s,d){if(u.containsFile(gl(t.fileName))&&!Oct(u,t))return t;const f=s();if(f&&u.containsFile(gl(f.fileName)))return f;const p=d();return p&&u.containsFile(gl(p.fileName))?p:void 0}function Oct(t,u){if(!u)return!1;const s=t.getLanguageService().getProgram();if(!s)return!1;const d=s.getSourceFile(u.fileName);return!!d&&d.resolvedPath!==d.path&&d.resolvedPath!==t.toPath(u.fileName)}function qQt(t){return Zv(t)?t.canonicalConfigFilePath:t.getProjectName()}function nz({fileName:t,textSpan:u}){return{fileName:t,pos:u.start}}function gge(t,u){return MM(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function jct(t,u){return xX(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function ZQt(t,u){return lfe(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function s_(t,u){return{start:u.positionToLineOffset(t.start),end:u.positionToLineOffset(gc(t))}}function xNe(t,u,s){const d=s_(t,s),f=u&&s_(u,s);return f?{...d,contextStart:f.start,contextEnd:f.end}:d}function YQt(t,u){return{start:Vct(u,t.span.start),end:Vct(u,gc(t.span)),newText:t.newText}}function Vct(t,u){return dNe(t)?XQt(t.getLineAndCharacterOfPosition(u)):t.positionToLineOffset(u)}function QQt(t,u){const s=t.ranges.map(d=>({start:u.positionToLineOffset(d.start),end:u.positionToLineOffset(d.start+d.length)}));return t.wordPattern?{ranges:s,wordPattern:t.wordPattern}:{ranges:s}}function XQt(t){return{line:t.line+1,offset:t.character+1}}function eXt(t){H.assert(t.textChanges.length===1);const u=Mn(t.textChanges);return H.assert(u.span.start===0&&u.span.length===0),{fileName:t.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:u.newText}]}}function vNe(t,u,s,d){const f=tXt(t,u,d),{line:p,character:E}=b8(t7(f),s);return{line:p+1,offset:E+1}}function tXt(t,u,s){for(const{fileName:d,textChanges:f}of s)if(d===u)for(let p=f.length-1;p>=0;p--){const{newText:E,span:{start:v,length:b}}=f[p];t=t.slice(0,v)+E+t.slice(v+b)}return t}function Hct(t,{fileName:u,textSpan:s,contextSpan:d,isWriteAccess:f,isDefinition:p},{disableLineTextInReferences:E}){const v=H.checkDefined(t.getScriptInfo(u)),b=xNe(s,d,v),B=E?void 0:iXt(v,b);return{file:u,...b,lineText:B,isWriteAccess:f,isDefinition:p}}function iXt(t,u){const s=t.lineToTextSpan(u.start.line-1);return t.getSnapshot().getText(s.start,gc(s)).replace(/\r|\n/g,"")}function nXt(t){return t===void 0||t&&typeof t=="object"&&typeof t.exportName=="string"&&(t.fileName===void 0||typeof t.fileName=="string")&&(t.ambientModuleName===void 0||typeof t.ambientModuleName=="string"&&(t.isPackageJsonImport===void 0||typeof t.isPackageJsonImport=="boolean"))}var CNe,bNe,Kct,yNe,Wct,kNe,uXt=o({"src/server/session.ts"(){Yv(),g9(),QLe(),CNe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},bNe=Ype,Kct=class{constructor(t){this.operationHost=t}startNew(t){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(t)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(t,u){const s=this.requestId;H.assert(s===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(s,()=>this.executeAction(u))},t))}delay(t,u,s){const d=this.requestId;H.assert(d===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(d,()=>this.executeAction(s))},u,t))}executeAction(t){var u,s,d,f,p,E;let v=!1;try{this.operationHost.isCancellationRequested()?(v=!0,(u=$n)==null||u.instant($n.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((s=$n)==null||s.push($n.Phase.Session,"stepAction",{seq:this.requestId}),t(this),(d=$n)==null||d.pop())}catch(b){(f=$n)==null||f.popAll(),v=!0,b instanceof v8?(p=$n)==null||p.instant($n.Phase.Session,"stepCanceled",{seq:this.requestId}):((E=$n)==null||E.instant($n.Phase.Session,"stepError",{seq:this.requestId,message:b.message}),this.operationHost.logError(b,`delayed processing of request ${this.requestId}`))}(v||!this.hasPendingWork())&&this.complete()}setTimerHandle(t){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=t}setImmediateId(t){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=t}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},yNe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],Wct=[...yNe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],kNe=class U3e{constructor(u){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const p={version:_};return this.requiredResponse(p)},openExternalProject:p=>(this.projectService.openExternalProject(p.arguments),this.requiredResponse(!0)),openExternalProjects:p=>(this.projectService.openExternalProjects(p.arguments.projects),this.requiredResponse(!0)),closeExternalProject:p=>(this.projectService.closeExternalProject(p.arguments.projectFileName),this.requiredResponse(!0)),synchronizeProjectList:p=>{const E=this.projectService.synchronizeProjectList(p.arguments.knownProjects,p.arguments.includeProjectReferenceRedirectInfo);if(!E.some(b=>b.projectErrors&&b.projectErrors.length!==0))return this.requiredResponse(E);const v=Kt(E,b=>!b.projectErrors||b.projectErrors.length===0?b:{info:b.info,changes:b.changes,files:b.files,projectErrors:this.convertToDiagnosticsWithLinePosition(b.projectErrors,void 0)});return this.requiredResponse(v)},updateOpen:p=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(p.arguments.openFiles&&zr(p.arguments.openFiles,E=>({fileName:E.file,content:E.fileContent,scriptKind:E.scriptKindName,projectRootPath:E.projectRootPath})),p.arguments.changedFiles&&zr(p.arguments.changedFiles,E=>({fileName:E.fileName,changes:Uo(vd(E.textChanges),v=>{const b=H.checkDefined(this.projectService.getScriptInfo(E.fileName)),B=b.lineOffsetToPosition(v.start.line,v.start.offset),k=b.lineOffsetToPosition(v.end.line,v.end.offset);return B>=0?{span:{start:B,length:k-B},newText:v.newText}:void 0})})),p.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:p=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(p.arguments.openFiles,p.arguments.changedFiles&&zr(p.arguments.changedFiles,E=>({fileName:E.fileName,changes:vd(E.changes)})),p.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:p=>this.requiredResponse(this.getDefinition(p.arguments,!0)),"definition-full":p=>this.requiredResponse(this.getDefinition(p.arguments,!1)),definitionAndBoundSpan:p=>this.requiredResponse(this.getDefinitionAndBoundSpan(p.arguments,!0)),"definitionAndBoundSpan-full":p=>this.requiredResponse(this.getDefinitionAndBoundSpan(p.arguments,!1)),findSourceDefinition:p=>this.requiredResponse(this.findSourceDefinition(p.arguments)),"emit-output":p=>this.requiredResponse(this.getEmitOutput(p.arguments)),typeDefinition:p=>this.requiredResponse(this.getTypeDefinition(p.arguments)),implementation:p=>this.requiredResponse(this.getImplementation(p.arguments,!0)),"implementation-full":p=>this.requiredResponse(this.getImplementation(p.arguments,!1)),references:p=>this.requiredResponse(this.getReferences(p.arguments,!0)),"references-full":p=>this.requiredResponse(this.getReferences(p.arguments,!1)),rename:p=>this.requiredResponse(this.getRenameLocations(p.arguments,!0)),"renameLocations-full":p=>this.requiredResponse(this.getRenameLocations(p.arguments,!1)),"rename-full":p=>this.requiredResponse(this.getRenameInfo(p.arguments)),open:p=>(this.openClientFile(gl(p.arguments.file),p.arguments.fileContent,sge(p.arguments.scriptKindName),p.arguments.projectRootPath?gl(p.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:p=>this.requiredResponse(this.getQuickInfoWorker(p.arguments,!0)),"quickinfo-full":p=>this.requiredResponse(this.getQuickInfoWorker(p.arguments,!1)),getOutliningSpans:p=>this.requiredResponse(this.getOutliningSpans(p.arguments,!0)),outliningSpans:p=>this.requiredResponse(this.getOutliningSpans(p.arguments,!1)),todoComments:p=>this.requiredResponse(this.getTodoComments(p.arguments)),indentation:p=>this.requiredResponse(this.getIndentation(p.arguments)),nameOrDottedNameSpan:p=>this.requiredResponse(this.getNameOrDottedNameSpan(p.arguments)),breakpointStatement:p=>this.requiredResponse(this.getBreakpointStatement(p.arguments)),braceCompletion:p=>this.requiredResponse(this.isValidBraceCompletion(p.arguments)),docCommentTemplate:p=>this.requiredResponse(this.getDocCommentTemplate(p.arguments)),getSpanOfEnclosingComment:p=>this.requiredResponse(this.getSpanOfEnclosingComment(p.arguments)),fileReferences:p=>this.requiredResponse(this.getFileReferences(p.arguments,!0)),"fileReferences-full":p=>this.requiredResponse(this.getFileReferences(p.arguments,!1)),format:p=>this.requiredResponse(this.getFormattingEditsForRange(p.arguments)),formatonkey:p=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(p.arguments)),"format-full":p=>this.requiredResponse(this.getFormattingEditsForDocumentFull(p.arguments)),"formatonkey-full":p=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(p.arguments)),"formatRange-full":p=>this.requiredResponse(this.getFormattingEditsForRangeFull(p.arguments)),completionInfo:p=>this.requiredResponse(this.getCompletions(p.arguments,"completionInfo")),completions:p=>this.requiredResponse(this.getCompletions(p.arguments,"completions")),"completions-full":p=>this.requiredResponse(this.getCompletions(p.arguments,"completions-full")),completionEntryDetails:p=>this.requiredResponse(this.getCompletionEntryDetails(p.arguments,!1)),"completionEntryDetails-full":p=>this.requiredResponse(this.getCompletionEntryDetails(p.arguments,!0)),compileOnSaveAffectedFileList:p=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(p.arguments)),compileOnSaveEmitFile:p=>this.requiredResponse(this.emitFile(p.arguments)),signatureHelp:p=>this.requiredResponse(this.getSignatureHelpItems(p.arguments,!0)),"signatureHelp-full":p=>this.requiredResponse(this.getSignatureHelpItems(p.arguments,!1)),"compilerOptionsDiagnostics-full":p=>this.requiredResponse(this.getCompilerOptionsDiagnostics(p.arguments)),"encodedSyntacticClassifications-full":p=>this.requiredResponse(this.getEncodedSyntacticClassifications(p.arguments)),"encodedSemanticClassifications-full":p=>this.requiredResponse(this.getEncodedSemanticClassifications(p.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:p=>this.requiredResponse(this.getSemanticDiagnosticsSync(p.arguments)),syntacticDiagnosticsSync:p=>this.requiredResponse(this.getSyntacticDiagnosticsSync(p.arguments)),suggestionDiagnosticsSync:p=>this.requiredResponse(this.getSuggestionDiagnosticsSync(p.arguments)),geterr:p=>(this.errorCheck.startNew(E=>this.getDiagnostics(E,p.arguments.delay,p.arguments.files)),this.notRequired()),geterrForProject:p=>(this.errorCheck.startNew(E=>this.getDiagnosticsForProject(E,p.arguments.delay,p.arguments.file)),this.notRequired()),change:p=>(this.change(p.arguments),this.notRequired()),configure:p=>(this.projectService.setHostConfiguration(p.arguments),this.doOutput(void 0,"configure",p.seq,!0),this.notRequired()),reload:p=>(this.reload(p.arguments,p.seq),this.requiredResponse({reloadFinished:!0})),saveto:p=>{const E=p.arguments;return this.saveToTmp(E.file,E.tmpfile),this.notRequired()},close:p=>{const E=p.arguments;return this.closeClientFile(E.file),this.notRequired()},navto:p=>this.requiredResponse(this.getNavigateToItems(p.arguments,!0)),"navto-full":p=>this.requiredResponse(this.getNavigateToItems(p.arguments,!1)),brace:p=>this.requiredResponse(this.getBraceMatching(p.arguments,!0)),"brace-full":p=>this.requiredResponse(this.getBraceMatching(p.arguments,!1)),navbar:p=>this.requiredResponse(this.getNavigationBarItems(p.arguments,!0)),"navbar-full":p=>this.requiredResponse(this.getNavigationBarItems(p.arguments,!1)),navtree:p=>this.requiredResponse(this.getNavigationTree(p.arguments,!0)),"navtree-full":p=>this.requiredResponse(this.getNavigationTree(p.arguments,!1)),documentHighlights:p=>this.requiredResponse(this.getDocumentHighlights(p.arguments,!0)),"documentHighlights-full":p=>this.requiredResponse(this.getDocumentHighlights(p.arguments,!1)),compilerOptionsForInferredProjects:p=>(this.setCompilerOptionsForInferredProjects(p.arguments),this.requiredResponse(!0)),projectInfo:p=>this.requiredResponse(this.getProjectInfo(p.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:p=>this.requiredResponse(this.getJsxClosingTag(p.arguments)),linkedEditingRange:p=>this.requiredResponse(this.getLinkedEditingRange(p.arguments)),getCodeFixes:p=>this.requiredResponse(this.getCodeFixes(p.arguments,!0)),"getCodeFixes-full":p=>this.requiredResponse(this.getCodeFixes(p.arguments,!1)),getCombinedCodeFix:p=>this.requiredResponse(this.getCombinedCodeFix(p.arguments,!0)),"getCombinedCodeFix-full":p=>this.requiredResponse(this.getCombinedCodeFix(p.arguments,!1)),applyCodeActionCommand:p=>this.requiredResponse(this.applyCodeActionCommand(p.arguments)),getSupportedCodeFixes:p=>this.requiredResponse(this.getSupportedCodeFixes(p.arguments)),getApplicableRefactors:p=>this.requiredResponse(this.getApplicableRefactors(p.arguments)),getEditsForRefactor:p=>this.requiredResponse(this.getEditsForRefactor(p.arguments,!0)),getMoveToRefactoringFileSuggestions:p=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(p.arguments)),"getEditsForRefactor-full":p=>this.requiredResponse(this.getEditsForRefactor(p.arguments,!1)),organizeImports:p=>this.requiredResponse(this.organizeImports(p.arguments,!0)),"organizeImports-full":p=>this.requiredResponse(this.organizeImports(p.arguments,!1)),getEditsForFileRename:p=>this.requiredResponse(this.getEditsForFileRename(p.arguments,!0)),"getEditsForFileRename-full":p=>this.requiredResponse(this.getEditsForFileRename(p.arguments,!1)),configurePlugin:p=>(this.configurePlugin(p.arguments),this.doOutput(void 0,"configurePlugin",p.seq,!0),this.notRequired()),selectionRange:p=>this.requiredResponse(this.getSmartSelectionRange(p.arguments,!0)),"selectionRange-full":p=>this.requiredResponse(this.getSmartSelectionRange(p.arguments,!1)),prepareCallHierarchy:p=>this.requiredResponse(this.prepareCallHierarchy(p.arguments)),provideCallHierarchyIncomingCalls:p=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(p.arguments)),provideCallHierarchyOutgoingCalls:p=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(p.arguments)),toggleLineComment:p=>this.requiredResponse(this.toggleLineComment(p.arguments,!0)),"toggleLineComment-full":p=>this.requiredResponse(this.toggleLineComment(p.arguments,!1)),toggleMultilineComment:p=>this.requiredResponse(this.toggleMultilineComment(p.arguments,!0)),"toggleMultilineComment-full":p=>this.requiredResponse(this.toggleMultilineComment(p.arguments,!1)),commentSelection:p=>this.requiredResponse(this.commentSelection(p.arguments,!0)),"commentSelection-full":p=>this.requiredResponse(this.commentSelection(p.arguments,!1)),uncommentSelection:p=>this.requiredResponse(this.uncommentSelection(p.arguments,!0)),"uncommentSelection-full":p=>this.requiredResponse(this.uncommentSelection(p.arguments,!1)),provideInlayHints:p=>this.requiredResponse(this.provideInlayHints(p.arguments))})),this.host=u.host,this.cancellationToken=u.cancellationToken,this.typingsInstaller=u.typingsInstaller||Gee,this.byteLength=u.byteLength,this.hrtime=u.hrtime,this.logger=u.logger,this.canUseEvents=u.canUseEvents,this.suppressDiagnosticEvents=u.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=u.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:s}=u;this.eventHandler=this.canUseEvents?u.eventHandler||(p=>this.defaultEventHandler(p)):void 0;const d={executeWithRequestId:(p,E)=>this.executeWithRequestId(p,E),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(p,E)=>this.logError(p,E),sendRequestCompletedEvent:p=>this.sendRequestCompletedEvent(p),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Kct(d);const f={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:u.useSingleInferredProject,useInferredProjectPerProjectRoot:u.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:s,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:u.globalPlugins,pluginProbeLocations:u.pluginProbeLocations,allowLocalPluginLoads:u.allowLocalPluginLoads,typesMapLocation:u.typesMapLocation,serverMode:u.serverMode,session:this,canUseWatchEvents:u.canUseWatchEvents,incrementalVerifier:u.incrementalVerifier};switch(this.projectService=new fge(f),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Zpe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:yNe.forEach(p=>this.handlers.set(p,E=>{throw new Error(`Request: ${E.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Wct.forEach(p=>this.handlers.set(p,E=>{throw new Error(`Request: ${E.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:H.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(u){this.event({request_seq:u},"requestCompleted")}addPerformanceData(u,s){this.performanceData||(this.performanceData={}),this.performanceData[u]=(this.performanceData[u]??0)+s}performanceEventHandler(u){switch(u.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",u.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",u.durationMs);break}}defaultEventHandler(u){switch(u.eventName){case WK:this.projectsUpdatedInBackgroundEvent(u.data.openFiles);break;case Yee:this.event({projectName:u.data.project.getProjectName(),reason:u.data.reason},u.eventName);break;case Qee:this.event({projectName:u.data.project.getProjectName()},u.eventName);break;case Xee:case nte:case ute:case rte:this.event(u.data,u.eventName);break;case ete:this.event({triggerFile:u.data.triggerFile,configFile:u.data.configFileName,diagnostics:Kt(u.data.diagnostics,s=>JK(s,!0))},u.eventName);break;case tte:{this.event({projectName:u.data.project.getProjectName(),languageServiceEnabled:u.data.languageServiceEnabled},u.eventName);break}case ite:{this.event({telemetryEventName:u.eventName,payload:u.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(u){this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${u}`),u.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&this.errorCheck.startNew(s=>this.updateErrorCheck(s,u,100,!0)),this.event({openFiles:u},WK))}logError(u,s){this.logErrorWorker(u,s)}logErrorWorker(u,s,d){let f="Exception on executing command "+s;if(u.message&&(f+=`: -`+SM(u.message),u.stack&&(f+=` -`+SM(u.stack))),this.logger.hasLevel(3)){if(d)try{const{file:p,project:E}=this.getFileAndProject(d),v=E.getScriptInfoForNormalizedPath(p);if(v){const b=uw(v.getSnapshot());f+=` +${p}${d}`}function xNe(t,u){return{seq:0,type:"event",event:t,body:u}}function $Qt(t,u,s,d){const f=Tr(Ha(s)?s:s.projects,p=>d(p,t));return!Ha(s)&&s.symLinkedProjects&&s.symLinkedProjects.forEach((p,E)=>{const v=u(E);f.push(...ju(p,b=>d(b,v)))}),ri(f,Cx)}function gge(){return aoe(({textSpan:t})=>t.start+100003*t.length,bX)}function UQt(t,u,s,d,f,p){const E=Vct(t,u,s,!0,(B,k)=>B.getLanguageService().findRenameLocations(k.fileName,k.pos,d,f,p),(B,k)=>k(uz(B)));if(Ha(E))return E;const v=[],b=gge();return E.forEach((B,k)=>{for(const T of B)!b.has(T)&&!Ege(uz(T),k)&&(v.push(T),b.add(T))}),v}function qQt(t,u,s){const d=t.getLanguageService().getDefinitionAtPosition(u.fileName,u.pos,!1,s),f=d&&Ki(d);return f&&!f.isLocal?{fileName:f.fileName,pos:f.textSpan.start}:void 0}function ZQt(t,u,s,d){var f,p;const E=Vct(t,u,s,!1,(k,T)=>(d.info(`Finding references to ${T.fileName} position ${T.pos} in project ${k.getProjectName()}`),k.getLanguageService().findReferences(T.fileName,T.pos)),(k,T)=>{T(uz(k.definition));for(const M of k.references)T(uz(M))});if(Ha(E))return E;const v=E.get(u);if(((p=(f=v==null?void 0:v[0])==null?void 0:f.references[0])==null?void 0:p.isDefinition)===void 0)E.forEach(k=>{for(const T of k)for(const M of T.references)delete M.isDefinition});else{const k=gge();for(const M of v)for(const z of M.references)if(z.isDefinition){k.add(z);break}const T=new Set;for(;;){let M=!1;if(E.forEach((z,j)=>{if(T.has(j))return;j.getLanguageService().updateIsDefinitionOfReferencedSymbols(z,k)&&(T.add(j),M=!0)}),!M)break}E.forEach((M,z)=>{if(!T.has(z))for(const j of M)for(const J of j.references)J.isDefinition=!1})}const b=[],B=gge();return E.forEach((k,T)=>{for(const M of k){const z=Ege(uz(M.definition),T),j=z===void 0?M.definition:{...M.definition,textSpan:d1(z.pos,M.definition.textSpan.length),fileName:z.fileName,contextSpan:XQt(M.definition,T)};let J=Le(b,K=>bX(K.definition,j));J||(J={definition:j,references:[]},b.push(J));for(const K of M.references)!B.has(K)&&!Ege(uz(K),T)&&(B.add(K),J.references.push(K))}}),b.filter(k=>k.references.length!==0)}function vNe(t,u,s){for(const d of Ha(t)?t:t.projects)s(d,u);!Ha(t)&&t.symLinkedProjects&&t.symLinkedProjects.forEach((d,f)=>{for(const p of d)s(p,f)})}function Vct(t,u,s,d,f,p){const E=new Map,v=U$();v.enqueue({project:u,location:s}),vNe(t,s.fileName,(J,K)=>{const Y={fileName:K,pos:s.pos};v.enqueue({project:J,location:Y})});const b=u.projectService,B=u.getCancellationToken(),k=qQt(u,s,d),T=Mh(()=>u.isSourceOfProjectReferenceRedirect(k.fileName)?k:u.getLanguageService().getSourceMapper().tryGetGeneratedPosition(k)),M=Mh(()=>u.isSourceOfProjectReferenceRedirect(k.fileName)?k:u.getLanguageService().getSourceMapper().tryGetSourcePosition(k)),z=new Set;e:for(;!v.isEmpty();){for(;!v.isEmpty();){if(B.isCancellationRequested())break e;const{project:J,location:K}=v.dequeue();if(E.has(J)||Hct(J,K)||(Gm(J),!J.containsFile(Dl(K.fileName))))continue;const Y=j(J,K);E.set(J,Y??$c),z.add(QQt(J))}k&&(b.loadAncestorProjectTree(z),b.forEachEnabledProject(J=>{if(B.isCancellationRequested()||E.has(J))return;const K=YQt(k,J,T,M);K&&v.enqueue({project:J,location:K})}))}if(E.size===1)return Oa(E.values());return E;function j(J,K){const Y=f(J,K);if(Y){for(const oe of Y)p(oe,se=>{const ge=b.getOriginalLocationEnsuringConfiguredProject(J,se);if(!ge)return;const ae=b.getScriptInfo(ge.fileName);for(const ne of ae.containingProjects)!ne.isOrphan()&&!E.has(ne)&&v.enqueue({project:ne,location:ge});const Ce=b.getSymlinkedProjects(ae);Ce&&Ce.forEach((ne,ve)=>{for(const Se of ne)!Se.isOrphan()&&!E.has(Se)&&v.enqueue({project:Se,location:{fileName:ve,pos:ge.pos}})})});return Y}}}function YQt(t,u,s,d){if(u.containsFile(Dl(t.fileName))&&!Hct(u,t))return t;const f=s();if(f&&u.containsFile(Dl(f.fileName)))return f;const p=d();return p&&u.containsFile(Dl(p.fileName))?p:void 0}function Hct(t,u){if(!u)return!1;const s=t.getLanguageService().getProgram();if(!s)return!1;const d=s.getSourceFile(u.fileName);return!!d&&d.resolvedPath!==d.path&&d.resolvedPath!==t.toPath(u.fileName)}function QQt(t){return Qv(t)?t.canonicalConfigFilePath:t.getProjectName()}function uz({fileName:t,textSpan:u}){return{fileName:t,pos:u.start}}function Ege(t,u){return zM(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function Kct(t,u){return yX(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function XQt(t,u){return cfe(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function l_(t,u){return{start:u.positionToLineOffset(t.start),end:u.positionToLineOffset(Ec(t))}}function CNe(t,u,s){const d=l_(t,s),f=u&&l_(u,s);return f?{...d,contextStart:f.start,contextEnd:f.end}:d}function eXt(t,u){return{start:Wct(u,t.span.start),end:Wct(u,Ec(t.span)),newText:t.newText}}function Wct(t,u){return fNe(t)?iXt(t.getLineAndCharacterOfPosition(u)):t.positionToLineOffset(u)}function tXt(t,u){const s=t.ranges.map(d=>({start:u.positionToLineOffset(d.start),end:u.positionToLineOffset(d.start+d.length)}));return t.wordPattern?{ranges:s,wordPattern:t.wordPattern}:{ranges:s}}function iXt(t){return{line:t.line+1,offset:t.character+1}}function nXt(t){H.assert(t.textChanges.length===1);const u=Pn(t.textChanges);return H.assert(u.span.start===0&&u.span.length===0),{fileName:t.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:u.newText}]}}function bNe(t,u,s,d){const f=uXt(t,u,d),{line:p,character:E}=k8(n7(f),s);return{line:p+1,offset:E+1}}function uXt(t,u,s){for(const{fileName:d,textChanges:f}of s)if(d===u)for(let p=f.length-1;p>=0;p--){const{newText:E,span:{start:v,length:b}}=f[p];t=t.slice(0,v)+E+t.slice(v+b)}return t}function Gct(t,{fileName:u,textSpan:s,contextSpan:d,isWriteAccess:f,isDefinition:p},{disableLineTextInReferences:E}){const v=H.checkDefined(t.getScriptInfo(u)),b=CNe(s,d,v),B=E?void 0:rXt(v,b);return{file:u,...b,lineText:B,isWriteAccess:f,isDefinition:p}}function rXt(t,u){const s=t.lineToTextSpan(u.start.line-1);return t.getSnapshot().getText(s.start,Ec(s)).replace(/\r|\n/g,"")}function aXt(t){return t===void 0||t&&typeof t=="object"&&typeof t.exportName=="string"&&(t.fileName===void 0||typeof t.fileName=="string")&&(t.ambientModuleName===void 0||typeof t.ambientModuleName=="string"&&(t.isPackageJsonImport===void 0||typeof t.isPackageJsonImport=="boolean"))}var yNe,kNe,Jct,FNe,$ct,ANe,oXt=o({"src/server/session.ts"(){Xv(),_9(),eNe(),yNe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},kNe=Qpe,Jct=class{constructor(t){this.operationHost=t}startNew(t){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(t)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(t,u){const s=this.requestId;H.assert(s===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(s,()=>this.executeAction(u))},t))}delay(t,u,s){const d=this.requestId;H.assert(d===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(d,()=>this.executeAction(s))},u,t))}executeAction(t){var u,s,d,f,p,E;let v=!1;try{this.operationHost.isCancellationRequested()?(v=!0,(u=Gn)==null||u.instant(Gn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((s=Gn)==null||s.push(Gn.Phase.Session,"stepAction",{seq:this.requestId}),t(this),(d=Gn)==null||d.pop())}catch(b){(f=Gn)==null||f.popAll(),v=!0,b instanceof b8?(p=Gn)==null||p.instant(Gn.Phase.Session,"stepCanceled",{seq:this.requestId}):((E=Gn)==null||E.instant(Gn.Phase.Session,"stepError",{seq:this.requestId,message:b.message}),this.operationHost.logError(b,`delayed processing of request ${this.requestId}`))}(v||!this.hasPendingWork())&&this.complete()}setTimerHandle(t){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=t}setImmediateId(t){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=t}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},FNe=["openExternalProject","openExternalProjects","closeExternalProject","synchronizeProjectList","emit-output","compileOnSaveAffectedFileList","compileOnSaveEmitFile","compilerOptionsDiagnostics-full","encodedSemanticClassifications-full","semanticDiagnosticsSync","suggestionDiagnosticsSync","geterrForProject","reload","reloadProjects","getCodeFixes","getCodeFixes-full","getCombinedCodeFix","getCombinedCodeFix-full","applyCodeActionCommand","getSupportedCodeFixes","getApplicableRefactors","getMoveToRefactoringFileSuggestions","getEditsForRefactor","getEditsForRefactor-full","organizeImports","organizeImports-full","getEditsForFileRename","getEditsForFileRename-full","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls"],$ct=[...FNe,"definition","definition-full","definitionAndBoundSpan","definitionAndBoundSpan-full","typeDefinition","implementation","implementation-full","references","references-full","rename","renameLocations-full","rename-full","quickinfo","quickinfo-full","completionInfo","completions","completions-full","completionEntryDetails","completionEntryDetails-full","signatureHelp","signatureHelp-full","navto","navto-full","documentHighlights","documentHighlights-full"],ANe=class q3e{constructor(u){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const p={version:_};return this.requiredResponse(p)},openExternalProject:p=>(this.projectService.openExternalProject(p.arguments),this.requiredResponse(!0)),openExternalProjects:p=>(this.projectService.openExternalProjects(p.arguments.projects),this.requiredResponse(!0)),closeExternalProject:p=>(this.projectService.closeExternalProject(p.arguments.projectFileName),this.requiredResponse(!0)),synchronizeProjectList:p=>{const E=this.projectService.synchronizeProjectList(p.arguments.knownProjects,p.arguments.includeProjectReferenceRedirectInfo);if(!E.some(b=>b.projectErrors&&b.projectErrors.length!==0))return this.requiredResponse(E);const v=Vt(E,b=>!b.projectErrors||b.projectErrors.length===0?b:{info:b.info,changes:b.changes,files:b.files,projectErrors:this.convertToDiagnosticsWithLinePosition(b.projectErrors,void 0)});return this.requiredResponse(v)},updateOpen:p=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(p.arguments.openFiles&&zr(p.arguments.openFiles,E=>({fileName:E.file,content:E.fileContent,scriptKind:E.scriptKindName,projectRootPath:E.projectRootPath})),p.arguments.changedFiles&&zr(p.arguments.changedFiles,E=>({fileName:E.fileName,changes:eo(Cd(E.textChanges),v=>{const b=H.checkDefined(this.projectService.getScriptInfo(E.fileName)),B=b.lineOffsetToPosition(v.start.line,v.start.offset),k=b.lineOffsetToPosition(v.end.line,v.end.offset);return B>=0?{span:{start:B,length:k-B},newText:v.newText}:void 0})})),p.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:p=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(p.arguments.openFiles,p.arguments.changedFiles&&zr(p.arguments.changedFiles,E=>({fileName:E.fileName,changes:Cd(E.changes)})),p.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:p=>this.requiredResponse(this.getDefinition(p.arguments,!0)),"definition-full":p=>this.requiredResponse(this.getDefinition(p.arguments,!1)),definitionAndBoundSpan:p=>this.requiredResponse(this.getDefinitionAndBoundSpan(p.arguments,!0)),"definitionAndBoundSpan-full":p=>this.requiredResponse(this.getDefinitionAndBoundSpan(p.arguments,!1)),findSourceDefinition:p=>this.requiredResponse(this.findSourceDefinition(p.arguments)),"emit-output":p=>this.requiredResponse(this.getEmitOutput(p.arguments)),typeDefinition:p=>this.requiredResponse(this.getTypeDefinition(p.arguments)),implementation:p=>this.requiredResponse(this.getImplementation(p.arguments,!0)),"implementation-full":p=>this.requiredResponse(this.getImplementation(p.arguments,!1)),references:p=>this.requiredResponse(this.getReferences(p.arguments,!0)),"references-full":p=>this.requiredResponse(this.getReferences(p.arguments,!1)),rename:p=>this.requiredResponse(this.getRenameLocations(p.arguments,!0)),"renameLocations-full":p=>this.requiredResponse(this.getRenameLocations(p.arguments,!1)),"rename-full":p=>this.requiredResponse(this.getRenameInfo(p.arguments)),open:p=>(this.openClientFile(Dl(p.arguments.file),p.arguments.fileContent,lge(p.arguments.scriptKindName),p.arguments.projectRootPath?Dl(p.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:p=>this.requiredResponse(this.getQuickInfoWorker(p.arguments,!0)),"quickinfo-full":p=>this.requiredResponse(this.getQuickInfoWorker(p.arguments,!1)),getOutliningSpans:p=>this.requiredResponse(this.getOutliningSpans(p.arguments,!0)),outliningSpans:p=>this.requiredResponse(this.getOutliningSpans(p.arguments,!1)),todoComments:p=>this.requiredResponse(this.getTodoComments(p.arguments)),indentation:p=>this.requiredResponse(this.getIndentation(p.arguments)),nameOrDottedNameSpan:p=>this.requiredResponse(this.getNameOrDottedNameSpan(p.arguments)),breakpointStatement:p=>this.requiredResponse(this.getBreakpointStatement(p.arguments)),braceCompletion:p=>this.requiredResponse(this.isValidBraceCompletion(p.arguments)),docCommentTemplate:p=>this.requiredResponse(this.getDocCommentTemplate(p.arguments)),getSpanOfEnclosingComment:p=>this.requiredResponse(this.getSpanOfEnclosingComment(p.arguments)),fileReferences:p=>this.requiredResponse(this.getFileReferences(p.arguments,!0)),"fileReferences-full":p=>this.requiredResponse(this.getFileReferences(p.arguments,!1)),format:p=>this.requiredResponse(this.getFormattingEditsForRange(p.arguments)),formatonkey:p=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(p.arguments)),"format-full":p=>this.requiredResponse(this.getFormattingEditsForDocumentFull(p.arguments)),"formatonkey-full":p=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(p.arguments)),"formatRange-full":p=>this.requiredResponse(this.getFormattingEditsForRangeFull(p.arguments)),completionInfo:p=>this.requiredResponse(this.getCompletions(p.arguments,"completionInfo")),completions:p=>this.requiredResponse(this.getCompletions(p.arguments,"completions")),"completions-full":p=>this.requiredResponse(this.getCompletions(p.arguments,"completions-full")),completionEntryDetails:p=>this.requiredResponse(this.getCompletionEntryDetails(p.arguments,!1)),"completionEntryDetails-full":p=>this.requiredResponse(this.getCompletionEntryDetails(p.arguments,!0)),compileOnSaveAffectedFileList:p=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(p.arguments)),compileOnSaveEmitFile:p=>this.requiredResponse(this.emitFile(p.arguments)),signatureHelp:p=>this.requiredResponse(this.getSignatureHelpItems(p.arguments,!0)),"signatureHelp-full":p=>this.requiredResponse(this.getSignatureHelpItems(p.arguments,!1)),"compilerOptionsDiagnostics-full":p=>this.requiredResponse(this.getCompilerOptionsDiagnostics(p.arguments)),"encodedSyntacticClassifications-full":p=>this.requiredResponse(this.getEncodedSyntacticClassifications(p.arguments)),"encodedSemanticClassifications-full":p=>this.requiredResponse(this.getEncodedSemanticClassifications(p.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:p=>this.requiredResponse(this.getSemanticDiagnosticsSync(p.arguments)),syntacticDiagnosticsSync:p=>this.requiredResponse(this.getSyntacticDiagnosticsSync(p.arguments)),suggestionDiagnosticsSync:p=>this.requiredResponse(this.getSuggestionDiagnosticsSync(p.arguments)),geterr:p=>(this.errorCheck.startNew(E=>this.getDiagnostics(E,p.arguments.delay,p.arguments.files)),this.notRequired()),geterrForProject:p=>(this.errorCheck.startNew(E=>this.getDiagnosticsForProject(E,p.arguments.delay,p.arguments.file)),this.notRequired()),change:p=>(this.change(p.arguments),this.notRequired()),configure:p=>(this.projectService.setHostConfiguration(p.arguments),this.doOutput(void 0,"configure",p.seq,!0),this.notRequired()),reload:p=>(this.reload(p.arguments,p.seq),this.requiredResponse({reloadFinished:!0})),saveto:p=>{const E=p.arguments;return this.saveToTmp(E.file,E.tmpfile),this.notRequired()},close:p=>{const E=p.arguments;return this.closeClientFile(E.file),this.notRequired()},navto:p=>this.requiredResponse(this.getNavigateToItems(p.arguments,!0)),"navto-full":p=>this.requiredResponse(this.getNavigateToItems(p.arguments,!1)),brace:p=>this.requiredResponse(this.getBraceMatching(p.arguments,!0)),"brace-full":p=>this.requiredResponse(this.getBraceMatching(p.arguments,!1)),navbar:p=>this.requiredResponse(this.getNavigationBarItems(p.arguments,!0)),"navbar-full":p=>this.requiredResponse(this.getNavigationBarItems(p.arguments,!1)),navtree:p=>this.requiredResponse(this.getNavigationTree(p.arguments,!0)),"navtree-full":p=>this.requiredResponse(this.getNavigationTree(p.arguments,!1)),documentHighlights:p=>this.requiredResponse(this.getDocumentHighlights(p.arguments,!0)),"documentHighlights-full":p=>this.requiredResponse(this.getDocumentHighlights(p.arguments,!1)),compilerOptionsForInferredProjects:p=>(this.setCompilerOptionsForInferredProjects(p.arguments),this.requiredResponse(!0)),projectInfo:p=>this.requiredResponse(this.getProjectInfo(p.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:p=>this.requiredResponse(this.getJsxClosingTag(p.arguments)),linkedEditingRange:p=>this.requiredResponse(this.getLinkedEditingRange(p.arguments)),getCodeFixes:p=>this.requiredResponse(this.getCodeFixes(p.arguments,!0)),"getCodeFixes-full":p=>this.requiredResponse(this.getCodeFixes(p.arguments,!1)),getCombinedCodeFix:p=>this.requiredResponse(this.getCombinedCodeFix(p.arguments,!0)),"getCombinedCodeFix-full":p=>this.requiredResponse(this.getCombinedCodeFix(p.arguments,!1)),applyCodeActionCommand:p=>this.requiredResponse(this.applyCodeActionCommand(p.arguments)),getSupportedCodeFixes:p=>this.requiredResponse(this.getSupportedCodeFixes(p.arguments)),getApplicableRefactors:p=>this.requiredResponse(this.getApplicableRefactors(p.arguments)),getEditsForRefactor:p=>this.requiredResponse(this.getEditsForRefactor(p.arguments,!0)),getMoveToRefactoringFileSuggestions:p=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(p.arguments)),"getEditsForRefactor-full":p=>this.requiredResponse(this.getEditsForRefactor(p.arguments,!1)),organizeImports:p=>this.requiredResponse(this.organizeImports(p.arguments,!0)),"organizeImports-full":p=>this.requiredResponse(this.organizeImports(p.arguments,!1)),getEditsForFileRename:p=>this.requiredResponse(this.getEditsForFileRename(p.arguments,!0)),"getEditsForFileRename-full":p=>this.requiredResponse(this.getEditsForFileRename(p.arguments,!1)),configurePlugin:p=>(this.configurePlugin(p.arguments),this.doOutput(void 0,"configurePlugin",p.seq,!0),this.notRequired()),selectionRange:p=>this.requiredResponse(this.getSmartSelectionRange(p.arguments,!0)),"selectionRange-full":p=>this.requiredResponse(this.getSmartSelectionRange(p.arguments,!1)),prepareCallHierarchy:p=>this.requiredResponse(this.prepareCallHierarchy(p.arguments)),provideCallHierarchyIncomingCalls:p=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(p.arguments)),provideCallHierarchyOutgoingCalls:p=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(p.arguments)),toggleLineComment:p=>this.requiredResponse(this.toggleLineComment(p.arguments,!0)),"toggleLineComment-full":p=>this.requiredResponse(this.toggleLineComment(p.arguments,!1)),toggleMultilineComment:p=>this.requiredResponse(this.toggleMultilineComment(p.arguments,!0)),"toggleMultilineComment-full":p=>this.requiredResponse(this.toggleMultilineComment(p.arguments,!1)),commentSelection:p=>this.requiredResponse(this.commentSelection(p.arguments,!0)),"commentSelection-full":p=>this.requiredResponse(this.commentSelection(p.arguments,!1)),uncommentSelection:p=>this.requiredResponse(this.uncommentSelection(p.arguments,!0)),"uncommentSelection-full":p=>this.requiredResponse(this.uncommentSelection(p.arguments,!1)),provideInlayHints:p=>this.requiredResponse(this.provideInlayHints(p.arguments))})),this.host=u.host,this.cancellationToken=u.cancellationToken,this.typingsInstaller=u.typingsInstaller||qee,this.byteLength=u.byteLength,this.hrtime=u.hrtime,this.logger=u.logger,this.canUseEvents=u.canUseEvents,this.suppressDiagnosticEvents=u.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=u.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:s}=u;this.eventHandler=this.canUseEvents?u.eventHandler||(p=>this.defaultEventHandler(p)):void 0;const d={executeWithRequestId:(p,E)=>this.executeWithRequestId(p,E),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(p,E)=>this.logError(p,E),sendRequestCompletedEvent:p=>this.sendRequestCompletedEvent(p),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Jct(d);const f={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:u.useSingleInferredProject,useInferredProjectPerProjectRoot:u.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:s,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:u.globalPlugins,pluginProbeLocations:u.pluginProbeLocations,allowLocalPluginLoads:u.allowLocalPluginLoads,typesMapLocation:u.typesMapLocation,serverMode:u.serverMode,session:this,canUseWatchEvents:u.canUseWatchEvents,incrementalVerifier:u.incrementalVerifier};switch(this.projectService=new mge(f),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Ype(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:FNe.forEach(p=>this.handlers.set(p,E=>{throw new Error(`Request: ${E.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:$ct.forEach(p=>this.handlers.set(p,E=>{throw new Error(`Request: ${E.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:H.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(u){this.event({request_seq:u},"requestCompleted")}addPerformanceData(u,s){this.performanceData||(this.performanceData={}),this.performanceData[u]=(this.performanceData[u]??0)+s}performanceEventHandler(u){switch(u.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",u.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",u.durationMs);break}}defaultEventHandler(u){switch(u.eventName){case JK:this.projectsUpdatedInBackgroundEvent(u.data.openFiles);break;case tte:this.event({projectName:u.data.project.getProjectName(),reason:u.data.reason},u.eventName);break;case ite:this.event({projectName:u.data.project.getProjectName()},u.eventName);break;case nte:case ote:case ste:case lte:this.event(u.data,u.eventName);break;case ute:this.event({triggerFile:u.data.triggerFile,configFile:u.data.configFileName,diagnostics:Vt(u.data.diagnostics,s=>UK(s,!0))},u.eventName);break;case rte:{this.event({projectName:u.data.project.getProjectName(),languageServiceEnabled:u.data.languageServiceEnabled},u.eventName);break}case ate:{this.event({telemetryEventName:u.eventName,payload:u.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(u){this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${u}`),u.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&this.errorCheck.startNew(s=>this.updateErrorCheck(s,u,100,!0)),this.event({openFiles:u},JK))}logError(u,s){this.logErrorWorker(u,s)}logErrorWorker(u,s,d){let f="Exception on executing command "+s;if(u.message&&(f+=`: +`+BM(u.message),u.stack&&(f+=` +`+BM(u.stack))),this.logger.hasLevel(3)){if(d)try{const{file:p,project:E}=this.getFileAndProject(d),v=E.getScriptInfoForNormalizedPath(p);if(v){const b=aw(v.getSnapshot());f+=` -File text of ${d.file}:${SM(b)} +File text of ${d.file}:${BM(b)} `}}catch{}if(u.ProgramFiles){f+=` Program files: ${JSON.stringify(u.ProgramFiles)} @@ -410,44 +410,53 @@ Program files: ${JSON.stringify(u.ProgramFiles)} Projects:: `;let p=0;const E=v=>{f+=` -Project '${v.projectName}' (${iz[v.projectKind]}) ${p} +Project '${v.projectName}' (${nz[v.projectKind]}) ${p} `,f+=v.filesToString(!0),f+=` ----------------------------------------------- -`,p++};this.projectService.externalProjects.forEach(E),this.projectService.configuredProjects.forEach(E),this.projectService.inferredProjects.forEach(E)}}this.logger.msg(f,"Err")}send(u){if(u.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(u)}`);return}this.writeMessage(u)}writeMessage(u){var s;const d=ENe(u,this.logger,this.byteLength,this.host.newLine);(s=dh)==null||s.logEvent(`Response message size: ${d.length}`),this.host.write(d)}event(u,s){this.send(_Ne(s,u))}doOutput(u,s,d,f,p){const E={seq:0,type:"response",command:s,request_seq:d,success:f,performanceData:this.performanceData};if(f){let v;if(Ha(u))E.body=u,v=u.metadata,delete u.metadata;else if(typeof u=="object")if(u.metadata){const{metadata:b,...B}=u;E.body=B,v=b}else E.body=u;else E.body=u;v&&(E.metadata=v)}else H.assert(u===void 0);p&&(E.message=p),this.send(E)}semanticCheck(u,s){var d,f;(d=$n)==null||d.push($n.Phase.Session,"semanticCheck",{file:u,configFilePath:s.canonicalConfigFilePath});const p=zct(s,u)?Jc:s.getLanguageService().getSemanticDiagnostics(u).filter(E=>!!E.file);this.sendDiagnosticsEvent(u,s,p,"semanticDiag"),(f=$n)==null||f.pop()}syntacticCheck(u,s){var d,f;(d=$n)==null||d.push($n.Phase.Session,"syntacticCheck",{file:u,configFilePath:s.canonicalConfigFilePath}),this.sendDiagnosticsEvent(u,s,s.getLanguageService().getSyntacticDiagnostics(u),"syntaxDiag"),(f=$n)==null||f.pop()}suggestionCheck(u,s){var d,f;(d=$n)==null||d.push($n.Phase.Session,"suggestionCheck",{file:u,configFilePath:s.canonicalConfigFilePath}),this.sendDiagnosticsEvent(u,s,s.getLanguageService().getSuggestionDiagnostics(u),"suggestionDiag"),(f=$n)==null||f.pop()}sendDiagnosticsEvent(u,s,d,f){try{this.event({file:u,diagnostics:d.map(p=>Ict(u,s,p))},f)}catch(p){this.logError(p,f)}}updateErrorCheck(u,s,d,f=!0){H.assert(!this.suppressDiagnosticEvents);const p=this.changeSeq,E=Math.min(d,200);let v=0;const b=()=>{v++,s.length>v&&u.delay("checkOne",E,B)},B=()=>{if(this.changeSeq!==p)return;let k=s[v];if(Ja(k)&&(k=this.toPendingErrorCheck(k),!k)){b();return}const{fileName:T,project:M}=k;if(Wm(M),!!M.containsFile(T,f)&&(this.syntacticCheck(T,M),this.changeSeq===p)){if(M.projectService.serverMode!==0){b();return}u.immediate("semanticCheck",()=>{if(this.semanticCheck(T,M),this.changeSeq===p){if(this.getPreferences(T).disableSuggestions){b();return}u.immediate("suggestionCheck",()=>{this.suggestionCheck(T,M),b()})}})}};s.length>v&&this.changeSeq===p&&u.delay("checkOne",d,B)}cleanProjects(u,s){if(s){this.logger.info(`cleaning ${u}`);for(const d of s)d.getLanguageService(!1).cleanupSemanticCache(),d.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Ea(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u);return d.getEncodedSyntacticClassifications(s,u)}getEncodedSemanticClassifications(u){const{file:s,project:d}=this.getFileAndProject(u),f=u.format==="2020"?"2020":"original";return d.getLanguageService().getEncodedSemanticClassifications(s,u,f)}getProject(u){return u===void 0?void 0:this.projectService.findProject(u)}getConfigFileAndProject(u){const s=this.getProject(u.projectFileName),d=gl(u.file);return{configFile:s&&s.hasConfigFile(d)?d:void 0,project:s}}getConfigFileDiagnostics(u,s,d){const f=s.getAllProjectErrors(),p=s.getLanguageService().getCompilerOptionsDiagnostics(),E=ei(an(f,p),v=>!!v.file&&v.file.fileName===u);return d?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(E):Kt(E,v=>JK(v,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(u){return u.map(s=>({message:sE(s.messageText,this.host.newLine),start:s.start,length:s.length,category:Ky(s),code:s.code,source:s.source,startLocation:s.file&&GK(o0(s.file,s.start)),endLocation:s.file&&GK(o0(s.file,s.start+s.length)),reportsUnnecessary:s.reportsUnnecessary,reportsDeprecated:s.reportsDeprecated,relatedInformation:Kt(s.relatedInformation,mge)}))}getCompilerOptionsDiagnostics(u){const s=this.getProject(u.projectFileName);return this.convertToDiagnosticsWithLinePosition(ei(s.getLanguageService().getCompilerOptionsDiagnostics(),d=>!d.file),void 0)}convertToDiagnosticsWithLinePosition(u,s){return u.map(d=>({message:sE(d.messageText,this.host.newLine),start:d.start,length:d.length,category:Ky(d),code:d.code,source:d.source,startLocation:s&&s.positionToLineOffset(d.start),endLocation:s&&s.positionToLineOffset(d.start+d.length),reportsUnnecessary:d.reportsUnnecessary,reportsDeprecated:d.reportsDeprecated,relatedInformation:Kt(d.relatedInformation,mge)}))}getDiagnosticsWorker(u,s,d,f){const{project:p,file:E}=this.getFileAndProject(u);if(s&&zct(p,E))return Jc;const v=p.getScriptInfoForNormalizedPath(E),b=d(p,E);return f?this.convertToDiagnosticsWithLinePosition(b,v):b.map(B=>Ict(E,p,B))}getDefinition(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=this.mapDefinitionInfoLocations(f.getLanguageService().getDefinitionAtPosition(d,p)||Jc,f);return s?this.mapDefinitionInfo(E,f):E.map(U3e.mapToOriginalLocation)}mapDefinitionInfoLocations(u,s){return u.map(d=>{const f=jct(d,s);return f?{...f,containerKind:d.containerKind,containerName:d.containerName,kind:d.kind,name:d.name,failedAliasResolution:d.failedAliasResolution,...d.unverified&&{unverified:d.unverified}}:d})}getDefinitionAndBoundSpan(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=H.checkDefined(f.getScriptInfo(d)),v=f.getLanguageService().getDefinitionAndBoundSpan(d,p);if(!v||!v.definitions)return{definitions:Jc,textSpan:void 0};const b=this.mapDefinitionInfoLocations(v.definitions,f),{textSpan:B}=v;return s?{definitions:this.mapDefinitionInfo(b,f),textSpan:s_(B,E)}:{definitions:b.map(U3e.mapToOriginalLocation),textSpan:B}}findSourceDefinition(u){var s;const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=f.getLanguageService().getDefinitionAtPosition(d,p);let v=this.mapDefinitionInfoLocations(E||Jc,f).slice();if(this.projectService.serverMode===0&&(!qe(v,z=>gl(z.fileName)!==d&&!z.isAmbient)||qe(v,z=>!!z.failedAliasResolution))){const z=roe(Y=>Y.textSpan.start,DX);v==null||v.forEach(Y=>z.add(Y));const j=f.getNoDtsResolutionProject(d),J=j.getLanguageService(),K=(s=J.getDefinitionAtPosition(d,p,!0,!1))==null?void 0:s.filter(Y=>gl(Y.fileName)!==d);if(qe(K))for(const Y of K){if(Y.unverified){const oe=T(Y,f.getLanguageService().getProgram(),J.getProgram());if(qe(oe)){for(const se of oe)z.add(se);continue}}z.add(Y)}else{const Y=v.filter(oe=>gl(oe.fileName)!==d&&oe.isAmbient);for(const oe of qe(Y)?Y:k()){const se=B(oe.fileName,d,j);if(!se)continue;const ge=this.projectService.getOrCreateScriptInfoNotOpenedByClient(se,j.currentDirectory,j.directoryStructureHost);if(!ge)continue;j.containsScriptInfo(ge)||(j.addRoot(ge),j.updateGraph());const ae=J.getProgram(),Ce=H.checkDefined(ae.getSourceFile(se));for(const ne of M(oe.name,Ce,ae))z.add(ne)}}v=Ea(z.values())}return v=v.filter(z=>!z.isAmbient&&!z.failedAliasResolution),this.mapDefinitionInfo(v,f);function B(z,j,J){var K,Y,oe;const se=dZ(z);if(se&&z.lastIndexOf(a_)===se.topLevelNodeModulesIndex){const ge=z.substring(0,se.packageRootIndex),ae=(K=f.getModuleResolutionCache())==null?void 0:K.getPackageJsonInfoCache(),Ce=f.getCompilationSettings(),ne=uH($a(ge+"/package.json",f.getCurrentDirectory()),nH(ae,f,Ce));if(!ne)return;const ve=yde(ne,{moduleResolution:2},f,f.getModuleResolutionCache()),Se=z.substring(se.topLevelPackageNameIndex+1,se.packageRootIndex),Ne=dM(oH(Se)),pe=f.toPath(z);if(ve&&qe(ve,fe=>f.toPath(fe)===pe))return(Y=J.resolutionCache.resolveSingleModuleNameWithoutWatching(Ne,j).resolvedModule)==null?void 0:Y.resolvedFileName;{const fe=z.substring(se.packageRootIndex+1),xe=`${Ne}/${Eh(fe)}`;return(oe=J.resolutionCache.resolveSingleModuleNameWithoutWatching(xe,j).resolvedModule)==null?void 0:oe.resolvedFileName}}}function k(){const z=f.getLanguageService(),j=z.getProgram(),J=rf(j.getSourceFile(d),p);return(t0(J)||at(J))&&N0(J.parent)&&Uye(J,K=>{var Y;if(K===J)return;const oe=(Y=z.getDefinitionAtPosition(d,K.getStart(),!0,!1))==null?void 0:Y.filter(se=>gl(se.fileName)!==d&&se.isAmbient).map(se=>({fileName:se.fileName,name:W4(J)}));if(qe(oe))return oe})||Jc}function T(z,j,J){var K;const Y=J.getSourceFile(z.fileName);if(!Y)return;const oe=rf(j.getSourceFile(d),p),se=j.getTypeChecker().getSymbolAtLocation(oe),ge=se&&Fl(se,276);if(!ge)return;const ae=((K=ge.propertyName)==null?void 0:K.text)||ge.name.text;return M(ae,Y,J)}function M(z,j,J){const K=J0.Core.getTopMostDeclarationNamesInFile(z,j);return Ui(K,Y=>{const oe=J.getTypeChecker().getSymbolAtLocation(Y),se=iP(Y);if(oe&&se)return xw.createDefinitionInfo(se,J.getTypeChecker(),oe,se,!0)})}}getEmitOutput(u){const{file:s,project:d}=this.getFileAndProject(u);if(!d.shouldEmitFile(d.getScriptInfo(s)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const f=d.getLanguageService().getEmitOutput(s);return u.richResponse?{...f,diagnostics:u.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(f.diagnostics):f.diagnostics.map(p=>JK(p,!0))}:f}mapJSDocTagInfo(u,s,d){return u?u.map(f=>{var p;return{...f,text:d?this.mapDisplayParts(f.text,s):(p=f.text)==null?void 0:p.map(E=>E.text).join("")}}):[]}mapDisplayParts(u,s){return u?u.map(d=>d.kind!=="linkName"?d:{...d,target:this.toFileSpan(d.target.fileName,d.target.textSpan,s)}):[]}mapSignatureHelpItems(u,s,d){return u.map(f=>({...f,documentation:this.mapDisplayParts(f.documentation,s),parameters:f.parameters.map(p=>({...p,documentation:this.mapDisplayParts(p.documentation,s)})),tags:this.mapJSDocTagInfo(f.tags,s,d)}))}mapDefinitionInfo(u,s){return u.map(d=>({...this.toFileSpanWithContext(d.fileName,d.textSpan,d.contextSpan,s),...d.unverified&&{unverified:d.unverified}}))}static mapToOriginalLocation(u){return u.originalFileName?(H.assert(u.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...u,fileName:u.originalFileName,textSpan:u.originalTextSpan,targetFileName:u.fileName,targetTextSpan:u.textSpan,contextSpan:u.originalContextSpan,targetContextSpan:u.contextSpan}):u}toFileSpan(u,s,d){const f=d.getLanguageService(),p=f.toLineColumnOffset(u,s.start),E=f.toLineColumnOffset(u,gc(s));return{file:u,start:{line:p.line+1,offset:p.character+1},end:{line:E.line+1,offset:E.character+1}}}toFileSpanWithContext(u,s,d,f){const p=this.toFileSpan(u,s,f),E=d&&this.toFileSpan(u,d,f);return E?{...p,contextStart:E.start,contextEnd:E.end}:p}getTypeDefinition(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getPositionInFile(u,s),p=this.mapDefinitionInfoLocations(d.getLanguageService().getTypeDefinitionAtPosition(s,f)||Jc,d);return this.mapDefinitionInfo(p,d)}mapImplementationLocations(u,s){return u.map(d=>{const f=jct(d,s);return f?{...f,kind:d.kind,displayParts:d.displayParts}:d})}getImplementation(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=this.mapImplementationLocations(f.getLanguageService().getImplementationAtPosition(d,p)||Jc,f);return s?E.map(({fileName:v,textSpan:b,contextSpan:B})=>this.toFileSpanWithContext(v,b,B,f)):E.map(U3e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(u){const{configFile:s}=this.getConfigFileAndProject(u);return s?Jc:this.getDiagnosticsWorker(u,!1,(d,f)=>d.getLanguageService().getSyntacticDiagnostics(f),!!u.includeLinePosition)}getSemanticDiagnosticsSync(u){const{configFile:s,project:d}=this.getConfigFileAndProject(u);return s?this.getConfigFileDiagnostics(s,d,!!u.includeLinePosition):this.getDiagnosticsWorker(u,!0,(f,p)=>f.getLanguageService().getSemanticDiagnostics(p).filter(E=>!!E.file),!!u.includeLinePosition)}getSuggestionDiagnosticsSync(u){const{configFile:s}=this.getConfigFileAndProject(u);return s?Jc:this.getDiagnosticsWorker(u,!0,(d,f)=>d.getLanguageService().getSuggestionDiagnostics(f),!!u.includeLinePosition)}getJsxClosingTag(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=d.getJsxClosingTagAtPosition(s,f);return p===void 0?void 0:{newText:p.newText,caretOffset:0}}getLinkedEditingRange(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=d.getLinkedEditingRangeAtPosition(s,f),E=this.projectService.getScriptInfoForNormalizedPath(s);if(!(E===void 0||p===void 0))return QQt(p,E)}getDocumentHighlights(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=f.getLanguageService().getDocumentHighlights(d,p,u.filesToSearch);return E?s?E.map(({fileName:v,highlightSpans:b})=>{const B=f.getScriptInfo(v);return{file:v,highlightSpans:b.map(({textSpan:k,kind:T,contextSpan:M})=>({...xNe(k,M,B),kind:T}))}}):E:Jc}provideInlayHints(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.projectService.getScriptInfoForNormalizedPath(s);return d.getLanguageService().provideInlayHints(s,u,this.getPreferences(s)).map(E=>{const{position:v,displayParts:b}=E;return{...E,position:f.positionToLineOffset(v),displayParts:b==null?void 0:b.map(({text:B,span:k,file:T})=>{if(k){H.assertIsDefined(T,"Target file should be defined together with its span.");const M=this.projectService.getScriptInfo(T);return{text:B,span:{start:M.positionToLineOffset(k.start),end:M.positionToLineOffset(k.start+k.length),file:T}}}else return{text:B}})}})}setCompilerOptionsForInferredProjects(u){this.projectService.setCompilerOptionsForInferredProjects(u.options,u.projectRootPath)}getProjectInfo(u){return this.getProjectInfoWorker(u.file,u.projectFileName,u.needFileNameList,!1)}getProjectInfoWorker(u,s,d,f){const{project:p}=this.getFileAndProjectWorker(u,s);return Wm(p),{configFileName:p.getProjectName(),languageServiceDisabled:!p.languageServiceEnabled,fileNames:d?p.getFileNames(!1,f):void 0}}getRenameInfo(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getPositionInFile(u,s),p=this.getPreferences(s);return d.getLanguageService().getRenameInfo(s,f,p)}getProjects(u,s,d){let f,p;if(u.projectFileName){const E=this.getProject(u.projectFileName);E&&(f=[E])}else{const E=s?this.projectService.getScriptInfoEnsuringProjectsUptoDate(u.file):this.projectService.getScriptInfo(u.file);if(E)s||this.projectService.ensureDefaultProjectForFile(E);else return d?Jc:(this.projectService.logErrorForScriptInfoNotFound(u.file),x5.ThrowNoProject());f=E.containingProjects,p=this.projectService.getSymlinkedProjects(E)}return f=ei(f,E=>E.languageServiceEnabled&&!E.isOrphan()),!d&&(!f||!f.length)&&!p?(this.projectService.logErrorForScriptInfoNotFound(u.file??u.projectFileName),x5.ThrowNoProject()):p?{projects:f,symLinkedProjects:p}:f}getDefaultProject(u){if(u.projectFileName){const d=this.getProject(u.projectFileName);if(d)return d;if(!u.file)return x5.ThrowNoProject()}return this.projectService.getScriptInfo(u.file).getDefaultProject()}getRenameLocations(u,s){const d=gl(u.file),f=this.getPositionInFile(u,d),p=this.getProjects(u),E=this.getDefaultProject(u),v=this.getPreferences(d),b=this.mapRenameInfo(E.getLanguageService().getRenameInfo(d,f,v),H.checkDefined(this.projectService.getScriptInfo(d)));if(!b.canRename)return s?{info:b,locs:[]}:[];const B=GQt(p,E,{fileName:u.file,pos:f},!!u.findInStrings,!!u.findInComments,v);return s?{info:b,locs:this.toSpanGroups(B)}:B}mapRenameInfo(u,s){if(u.canRename){const{canRename:d,fileToRename:f,displayName:p,fullDisplayName:E,kind:v,kindModifiers:b,triggerSpan:B}=u;return{canRename:d,fileToRename:f,displayName:p,fullDisplayName:E,kind:v,kindModifiers:b,triggerSpan:s_(B,s)}}else return u}toSpanGroups(u){const s=new Map;for(const{fileName:d,textSpan:f,contextSpan:p,originalContextSpan:E,originalTextSpan:v,originalFileName:b,...B}of u){let k=s.get(d);k||s.set(d,k={file:d,locs:[]});const T=H.checkDefined(this.projectService.getScriptInfo(d));k.locs.push({...xNe(f,p,T),...B})}return Ea(s.values())}getReferences(u,s){const d=gl(u.file),f=this.getProjects(u),p=this.getPositionInFile(u,d),E=$Qt(f,this.getDefaultProject(u),{fileName:u.file,pos:p},this.logger);if(!s)return E;const v=this.getPreferences(d),b=this.getDefaultProject(u),B=b.getScriptInfoForNormalizedPath(d),k=b.getLanguageService().getQuickInfoAtPosition(d,p),T=k?pK(k.displayParts):"",M=k&&k.textSpan,z=M?B.positionToLineOffset(M.start).offset:0,j=M?B.getSnapshot().getText(M.start,gc(M)):"";return{refs:Ku(E,K=>K.references.map(Y=>Hct(this.projectService,Y,v))),symbolName:j,symbolStartOffset:z,symbolDisplayString:T}}getFileReferences(u,s){const d=this.getProjects(u),f=u.file,p=this.getPreferences(gl(f)),E=[],v=pge();return DNe(d,void 0,B=>{if(B.getCancellationToken().isCancellationRequested())return;const k=B.getLanguageService().getFileReferences(f);if(k)for(const T of k)v.has(T)||(E.push(T),v.add(T))}),s?{refs:E.map(B=>Hct(this.projectService,B,p)),symbolName:`"${u.file}"`}:E}openClientFile(u,s,d,f){this.projectService.openClientFileWithNormalizedPath(u,s,d,!1,f)}getPosition(u,s){return u.position!==void 0?u.position:s.lineOffsetToPosition(u.line,u.offset)}getPositionInFile(u,s){const d=this.projectService.getScriptInfoForNormalizedPath(s);return this.getPosition(u,d)}getFileAndProject(u){return this.getFileAndProjectWorker(u.file,u.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(u){const{file:s,project:d}=this.getFileAndProject(u);return{file:s,languageService:d.getLanguageService(!1)}}getFileAndProjectWorker(u,s){const d=gl(u),f=this.getProject(s)||this.projectService.ensureDefaultProjectForFile(d);return{file:d,project:f}}getOutliningSpans(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getOutliningSpans(d);if(s){const E=this.projectService.getScriptInfoForNormalizedPath(d);return p.map(v=>({textSpan:s_(v.textSpan,E),hintSpan:s_(v.hintSpan,E),bannerText:v.bannerText,autoCollapse:v.autoCollapse,kind:v.kind}))}else return p}getTodoComments(u){const{file:s,project:d}=this.getFileAndProject(u);return d.getLanguageService().getTodoComments(s,u.descriptors)}getDocCommentTemplate(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getDocCommentTemplateAtPosition(s,f,this.getPreferences(s),this.getFormatOptions(s))}getSpanOfEnclosingComment(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.onlyMultiLine,p=this.getPositionInFile(u,s);return d.getSpanOfEnclosingComment(s,p,f)}getIndentation(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=u.options?Fw(u.options):this.getFormatOptions(s),E=d.getIndentationAtPosition(s,f,p);return{position:f,indentation:E}}getBreakpointStatement(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getBreakpointStatementAtPosition(s,f)}getNameOrDottedNameSpan(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getNameOrDottedNameSpan(s,f,f)}isValidBraceCompletion(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.isValidBraceCompletionAtPosition(s,f,u.openingBrace.charCodeAt(0))}getQuickInfoWorker(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=f.getLanguageService().getQuickInfoAtPosition(d,this.getPosition(u,p));if(!E)return;const v=!!this.getPreferences(d).displayPartsForJSDoc;if(s){const b=pK(E.displayParts);return{kind:E.kind,kindModifiers:E.kindModifiers,start:p.positionToLineOffset(E.textSpan.start),end:p.positionToLineOffset(gc(E.textSpan)),displayString:b,documentation:v?this.mapDisplayParts(E.documentation,f):pK(E.documentation),tags:this.mapJSDocTagInfo(E.tags,f,v)}}else return v?E:{...E,tags:this.mapJSDocTagInfo(E.tags,f,!1)}}getFormattingEditsForRange(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.projectService.getScriptInfoForNormalizedPath(s),p=f.lineOffsetToPosition(u.line,u.offset),E=f.lineOffsetToPosition(u.endLine,u.endOffset),v=d.getFormattingEditsForRange(s,p,E,this.getFormatOptions(s));if(v)return v.map(b=>this.convertTextChangeToCodeEdit(b,f))}getFormattingEditsForRangeFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Fw(u.options):this.getFormatOptions(s);return d.getFormattingEditsForRange(s,u.position,u.endPosition,f)}getFormattingEditsForDocumentFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Fw(u.options):this.getFormatOptions(s);return d.getFormattingEditsForDocument(s,f)}getFormattingEditsAfterKeystrokeFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Fw(u.options):this.getFormatOptions(s);return d.getFormattingEditsAfterKeystroke(s,u.position,u.key,f)}getFormattingEditsAfterKeystroke(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.projectService.getScriptInfoForNormalizedPath(s),p=f.lineOffsetToPosition(u.line,u.offset),E=this.getFormatOptions(s),v=d.getFormattingEditsAfterKeystroke(s,p,u.key,E);if(u.key===` -`&&(!v||v.length===0||KQt(v,p))){const{lineText:b,absolutePosition:B}=f.textStorage.getAbsolutePositionAndLineText(u.line);if(b&&b.search("\\S")<0){const k=d.getIndentationAtPosition(s,p,E);let T=0,M,z;for(M=0,z=b.length;M({start:f.positionToLineOffset(b.span.start),end:f.positionToLineOffset(gc(b.span)),newText:b.newText?b.newText:""}))}getCompletions(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getLanguageService().getCompletionsAtPosition(d,E,{...rNe(this.getPreferences(d)),triggerCharacter:u.triggerCharacter,triggerKind:u.triggerKind,includeExternalModuleExports:u.includeExternalModuleExports,includeInsertTextCompletions:u.includeInsertTextCompletions},f.projectService.getFormatCodeOptions(d));if(v===void 0)return;if(s==="completions-full")return v;const b=u.prefix||"",B=Ui(v.entries,T=>{if(v.isMemberCompletion||Na(T.name.toLowerCase(),b.toLowerCase())){const{name:M,kind:z,kindModifiers:j,sortText:J,insertText:K,filterText:Y,replacementSpan:oe,hasAction:se,source:ge,sourceDisplay:ae,labelDetails:Ce,isSnippet:ne,isRecommended:ve,isPackageJsonImport:Se,isImportStatementCompletion:Ne,data:pe}=T,fe=oe?s_(oe,p):void 0;return{name:M,kind:z,kindModifiers:j,sortText:J,insertText:K,filterText:Y,replacementSpan:fe,isSnippet:ne,hasAction:se||void 0,source:ge,sourceDisplay:ae,labelDetails:Ce,isRecommended:ve,isPackageJsonImport:Se,isImportStatementCompletion:Ne,data:pe}}});return s==="completions"?(v.metadata&&(B.metadata=v.metadata),B):{...v,optionalReplacementSpan:v.optionalReplacementSpan&&s_(v.optionalReplacementSpan,p),entries:B}}getCompletionEntryDetails(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.projectService.getFormatCodeOptions(d),b=!!this.getPreferences(d).displayPartsForJSDoc,B=Ui(u.entryNames,k=>{const{name:T,source:M,data:z}=typeof k=="string"?{name:k,source:void 0,data:void 0}:k;return f.getLanguageService().getCompletionEntryDetails(d,E,T,v,M,this.getPreferences(d),z?Lo(z,nXt):void 0)});return s?b?B:B.map(k=>({...k,tags:this.mapJSDocTagInfo(k.tags,f,!1)})):B.map(k=>({...k,codeActions:Kt(k.codeActions,T=>this.mapCodeAction(T)),documentation:this.mapDisplayParts(k.documentation,f),tags:this.mapJSDocTagInfo(k.tags,f,b)}))}getCompileOnSaveAffectedFileList(u){const s=this.getProjects(u,!0,!0),d=this.projectService.getScriptInfo(u.file);return d?WQt(d,f=>this.projectService.getScriptInfoForPath(f),s,(f,p)=>{if(!f.compileOnSaveEnabled||!f.languageServiceEnabled||f.isOrphan())return;const E=f.getCompilationSettings();if(!(E.noEmit||Xd(p.fileName)&&!HQt(E)))return{projectFileName:f.getProjectName(),fileNames:f.getCompileOnSaveAffectedFileList(p),projectUsesOutFile:!!b0(E)}}):Jc}emitFile(u){const{file:s,project:d}=this.getFileAndProject(u);if(d||x5.ThrowNoProject(),!d.languageServiceEnabled)return u.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const f=d.getScriptInfo(s),{emitSkipped:p,diagnostics:E}=d.emitFile(f,(v,b,B)=>this.host.writeFile(v,b,B));return u.richResponse?{emitSkipped:p,diagnostics:u.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(E):E.map(v=>JK(v,!0))}:!p}getSignatureHelpItems(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getLanguageService().getSignatureHelpItems(d,E,u),b=!!this.getPreferences(d).displayPartsForJSDoc;if(v&&s){const B=v.applicableSpan;return{...v,applicableSpan:{start:p.positionToLineOffset(B.start),end:p.positionToLineOffset(B.start+B.length)},items:this.mapSignatureHelpItems(v.items,f,b)}}else return b||!v?v:{...v,items:v.items.map(B=>({...B,tags:this.mapJSDocTagInfo(B.tags,f,!1)}))}}toPendingErrorCheck(u){const s=gl(u),d=this.projectService.tryGetDefaultProjectForFile(s);return d&&{fileName:s,project:d}}getDiagnostics(u,s,d){this.suppressDiagnosticEvents||d.length>0&&this.updateErrorCheck(u,d,s)}change(u){const s=this.projectService.getScriptInfo(u.file);H.assert(!!s),s.textStorage.switchToScriptVersionCache();const d=s.lineOffsetToPosition(u.line,u.offset),f=s.lineOffsetToPosition(u.endLine,u.endOffset);d>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(s,Ra({span:{start:d,length:f-d},newText:u.insertString})))}reload(u,s){const d=gl(u.file),f=u.tmpfile===void 0?void 0:gl(u.tmpfile),p=this.projectService.getScriptInfoForNormalizedPath(d);p&&(this.changeSeq++,p.reloadFromFile(f)&&this.doOutput(void 0,"reload",s,!0))}saveToTmp(u,s){const d=this.projectService.getScriptInfo(u);d&&d.saveTo(s)}closeClientFile(u){if(!u)return;const s=Go(u);this.projectService.closeClientFile(s)}mapLocationNavigationBarItems(u,s){return Kt(u,d=>({text:d.text,kind:d.kind,kindModifiers:d.kindModifiers,spans:d.spans.map(f=>s_(f,s)),childItems:this.mapLocationNavigationBarItems(d.childItems,s),indent:d.indent}))}getNavigationBarItems(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getNavigationBarItems(d);return p?s?this.mapLocationNavigationBarItems(p,this.projectService.getScriptInfoForNormalizedPath(d)):p:void 0}toLocationNavigationTree(u,s){return{text:u.text,kind:u.kind,kindModifiers:u.kindModifiers,spans:u.spans.map(d=>s_(d,s)),nameSpan:u.nameSpan&&s_(u.nameSpan,s),childItems:Kt(u.childItems,d=>this.toLocationNavigationTree(d,s))}}getNavigationTree(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getNavigationTree(d);return p?s?this.toLocationNavigationTree(p,this.projectService.getScriptInfoForNormalizedPath(d)):p:void 0}getNavigateToItems(u,s){const d=this.getFullNavigateToItems(u);return s?Ku(d,({project:f,navigateToItems:p})=>p.map(E=>{const v=f.getScriptInfo(E.fileName),b={name:E.name,kind:E.kind,kindModifiers:E.kindModifiers,isCaseSensitive:E.isCaseSensitive,matchKind:E.matchKind,file:E.fileName,start:v.positionToLineOffset(E.textSpan.start),end:v.positionToLineOffset(gc(E.textSpan))};return E.kindModifiers&&E.kindModifiers!==""&&(b.kindModifiers=E.kindModifiers),E.containerName&&E.containerName.length>0&&(b.containerName=E.containerName),E.containerKind&&E.containerKind.length>0&&(b.containerKind=E.containerKind),b})):Ku(d,({navigateToItems:f})=>f)}getFullNavigateToItems(u){const{currentFileOnly:s,searchValue:d,maxResultCount:f,projectFileName:p}=u;if(s){H.assertIsDefined(u.file);const{file:M,project:z}=this.getFileAndProject(u);return[{project:z,navigateToItems:z.getLanguageService().getNavigateToItems(d,f,M)}]}const E=this.getHostPreferences(),v=[],b=new Map;if(!u.file&&!p)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(M=>B(M));else{const M=this.getProjects(u);DNe(M,void 0,z=>B(z))}return v;function B(M){const z=M.getLanguageService().getNavigateToItems(d,f,void 0,M.isNonTsProject(),E.excludeLibrarySymbolsInNavTo),j=ei(z,J=>k(J)&&!gge(nz(J),M));j.length&&v.push({project:M,navigateToItems:j})}function k(M){const z=M.name;if(!b.has(z))return b.set(z,[M]),!0;const j=b.get(z);for(const J of j)if(T(J,M))return!1;return j.push(M),!0}function T(M,z){return M===z?!0:!M||!z?!1:M.containerKind===z.containerKind&&M.containerName===z.containerName&&M.fileName===z.fileName&&M.isCaseSensitive===z.isCaseSensitive&&M.kind===z.kind&&M.kindModifiers===z.kindModifiers&&M.matchKind===z.matchKind&&M.name===z.name&&M.textSpan.start===z.textSpan.start&&M.textSpan.length===z.textSpan.length}}getSupportedCodeFixes(u){if(!u)return Sme();if(u.file){const{file:d,project:f}=this.getFileAndProject(u);return f.getLanguageService().getSupportedCodeFixes(d)}const s=this.getProject(u.projectFileName);return s||x5.ThrowNoProject(),s.getLanguageService().getSupportedCodeFixes()}isLocation(u){return u.line!==void 0}extractPositionOrRange(u,s){let d,f;return this.isLocation(u)?d=p(u):f=this.getRange(u,s),H.checkDefined(d===void 0?f:d);function p(E){return E.position!==void 0?E.position:s.lineOffsetToPosition(E.line,E.offset)}}getRange(u,s){const{startPosition:d,endPosition:f}=this.getStartAndEndPosition(u,s);return{pos:d,end:f}}getApplicableRefactors(u){const{file:s,project:d}=this.getFileAndProject(u),f=d.getScriptInfoForNormalizedPath(s);return d.getLanguageService().getApplicableRefactors(s,this.extractPositionOrRange(u,f),this.getPreferences(s),u.triggerReason,u.kind,u.includeInteractiveActions)}getEditsForRefactor(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=f.getScriptInfoForNormalizedPath(d),E=f.getLanguageService().getEditsForRefactor(d,this.getFormatOptions(d),this.extractPositionOrRange(u,p),u.refactor,u.action,this.getPreferences(d),u.interactiveRefactorArguments);if(E===void 0)return{edits:[]};if(s){const{renameFilename:v,renameLocation:b,edits:B}=E;let k;if(v!==void 0&&b!==void 0){const T=f.getScriptInfoForNormalizedPath(gl(v));k=vNe(uw(T.getSnapshot()),v,b,B)}return{renameLocation:k,renameFilename:v,edits:this.mapTextChangesToCodeEdits(B),notApplicableReason:E.notApplicableReason}}return E}getMoveToRefactoringFileSuggestions(u){const{file:s,project:d}=this.getFileAndProject(u),f=d.getScriptInfoForNormalizedPath(s);return d.getLanguageService().getMoveToRefactoringFileSuggestions(s,this.extractPositionOrRange(u,f),this.getPreferences(s))}organizeImports(u,s){H.assert(u.scope.type==="file");const{file:d,project:f}=this.getFileAndProject(u.scope.args),p=f.getLanguageService().organizeImports({fileName:d,mode:u.mode??(u.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(d),this.getPreferences(d));return s?this.mapTextChangesToCodeEdits(p):p}getEditsForFileRename(u,s){const d=gl(u.oldFilePath),f=gl(u.newFilePath),p=this.getHostFormatOptions(),E=this.getHostPreferences(),v=new Set,b=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(B=>{const k=B.getLanguageService().getEditsForFileRename(d,f,p,E),T=[];for(const M of k)v.has(M.fileName)||(b.push(M),T.push(M.fileName));for(const M of T)v.add(M)}),s?b.map(B=>this.mapTextChangeToCodeEdit(B)):b}getCodeFixes(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=f.getScriptInfoForNormalizedPath(d),{startPosition:E,endPosition:v}=this.getStartAndEndPosition(u,p);let b;try{b=f.getLanguageService().getCodeFixesAtPosition(d,E,v,u.errorCodes,this.getFormatOptions(d),this.getPreferences(d))}catch(B){const k=f.getLanguageService(),T=[...k.getSyntacticDiagnostics(d),...k.getSemanticDiagnostics(d),...k.getSuggestionDiagnostics(d)].map(z=>zO(E,v-E,z.start,z.length)&&z.code),M=u.errorCodes.find(z=>!T.includes(z));throw M!==void 0&&(B.message=`BADCLIENT: Bad error code, ${M} not found in range ${E}..${v} (found: ${T.join(", ")}); could have caused this error: -${B.message}`),B}return s?b.map(B=>this.mapCodeFixAction(B)):b}getCombinedCodeFix({scope:u,fixId:s},d){H.assert(u.type==="file");const{file:f,project:p}=this.getFileAndProject(u.args),E=p.getLanguageService().getCombinedCodeFix({type:"file",fileName:f},s,this.getFormatOptions(f),this.getPreferences(f));return d?{changes:this.mapTextChangesToCodeEdits(E.changes),commands:E.commands}:E}applyCodeActionCommand(u){const s=u.command;for(const d of qA(s)){const{file:f,project:p}=this.getFileAndProject(d);p.getLanguageService().applyCodeActionCommand(d,this.getFormatOptions(f)).then(E=>{},E=>{})}return{}}getStartAndEndPosition(u,s){let d,f;return u.startPosition!==void 0?d=u.startPosition:(d=s.lineOffsetToPosition(u.startLine,u.startOffset),u.startPosition=d),u.endPosition!==void 0?f=u.endPosition:(f=s.lineOffsetToPosition(u.endLine,u.endOffset),u.endPosition=f),{startPosition:d,endPosition:f}}mapCodeAction({description:u,changes:s,commands:d}){return{description:u,changes:this.mapTextChangesToCodeEdits(s),commands:d}}mapCodeFixAction({fixName:u,description:s,changes:d,commands:f,fixId:p,fixAllDescription:E}){return{fixName:u,description:s,changes:this.mapTextChangesToCodeEdits(d),commands:f,fixId:p,fixAllDescription:E}}mapTextChangesToCodeEdits(u){return u.map(s=>this.mapTextChangeToCodeEdit(s))}mapTextChangeToCodeEdit(u){const s=this.projectService.getScriptInfoOrConfig(u.fileName);return!!u.isNewFile==!!s&&(s||this.projectService.logErrorForScriptInfoNotFound(u.fileName),H.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!u.isNewFile,hasScriptInfo:!!s}))),s?{fileName:u.fileName,textChanges:u.textChanges.map(d=>YQt(d,s))}:eXt(u)}convertTextChangeToCodeEdit(u,s){return{start:s.positionToLineOffset(u.span.start),end:s.positionToLineOffset(u.span.start+u.span.length),newText:u.newText?u.newText:""}}getBraceMatching(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getBraceMatchingAtPosition(d,E);return v?s?v.map(b=>s_(b,p)):v:void 0}getDiagnosticsForProject(u,s,d){if(this.suppressDiagnosticEvents)return;const{fileNames:f,languageServiceDisabled:p}=this.getProjectInfoWorker(d,void 0,!0,!0);if(p)return;const E=f.filter(J=>!J.includes("lib.d.ts"));if(E.length===0)return;const v=[],b=[],B=[],k=[],T=gl(d),M=this.projectService.ensureDefaultProjectForFile(T);for(const J of E)this.getCanonicalFileName(J)===this.getCanonicalFileName(d)?v.push(J):this.projectService.getScriptInfo(J).isScriptOpen()?b.push(J):Xd(J)?k.push(J):B.push(J);const j=[...v,...b,...B,...k].map(J=>({fileName:J,project:M}));this.updateErrorCheck(u,j,s,!1)}configurePlugin(u){this.projectService.configurePlugin(u)}getSmartSelectionRange(u,s){const{locations:d}=u,{file:f,languageService:p}=this.getFileAndLanguageServiceForSyntacticOperation(u),E=H.checkDefined(this.projectService.getScriptInfo(f));return Kt(d,v=>{const b=this.getPosition(v,E),B=p.getSmartSelectionRange(f,b);return s?this.mapSelectionRange(B,E):B})}toggleLineComment(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfo(d),E=this.getRange(u,p),v=f.toggleLineComment(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}toggleMultilineComment(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.toggleMultilineComment(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}commentSelection(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.commentSelection(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}uncommentSelection(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.uncommentSelection(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}mapSelectionRange(u,s){const d={textSpan:s_(u.textSpan,s)};return u.parent&&(d.parent=this.mapSelectionRange(u.parent,s)),d}getScriptInfoFromProjectService(u){const s=gl(u),d=this.projectService.getScriptInfoForNormalizedPath(s);return d||(this.projectService.logErrorForScriptInfoNotFound(s),x5.ThrowNoProject())}toProtocolCallHierarchyItem(u){const s=this.getScriptInfoFromProjectService(u.file);return{name:u.name,kind:u.kind,kindModifiers:u.kindModifiers,file:u.file,containerName:u.containerName,span:s_(u.span,s),selectionSpan:s_(u.selectionSpan,s)}}toProtocolCallHierarchyIncomingCall(u){const s=this.getScriptInfoFromProjectService(u.from.file);return{from:this.toProtocolCallHierarchyItem(u.from),fromSpans:u.fromSpans.map(d=>s_(d,s))}}toProtocolCallHierarchyOutgoingCall(u,s){return{to:this.toProtocolCallHierarchyItem(u.to),fromSpans:u.fromSpans.map(d=>s_(d,s))}}prepareCallHierarchy(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.projectService.getScriptInfoForNormalizedPath(s);if(f){const p=this.getPosition(u,f),E=d.getLanguageService().prepareCallHierarchy(s,p);return E&&yfe(E,v=>this.toProtocolCallHierarchyItem(v))}}provideCallHierarchyIncomingCalls(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getScriptInfoFromProjectService(s);return d.getLanguageService().provideCallHierarchyIncomingCalls(s,this.getPosition(u,f)).map(E=>this.toProtocolCallHierarchyIncomingCall(E))}provideCallHierarchyOutgoingCalls(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getScriptInfoFromProjectService(s);return d.getLanguageService().provideCallHierarchyOutgoingCalls(s,this.getPosition(u,f)).map(E=>this.toProtocolCallHierarchyOutgoingCall(E,f))}getCanonicalFileName(u){const s=this.host.useCaseSensitiveFileNames?u:Jg(u);return Go(s)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(u){return{response:u,responseRequired:!0}}addProtocolHandler(u,s){if(this.handlers.has(u))throw new Error(`Protocol handler already exists for command "${u}"`);this.handlers.set(u,s)}setCurrentRequest(u){H.assert(this.currentRequestId===void 0),this.currentRequestId=u,this.cancellationToken.setRequest(u)}resetCurrentRequest(u){H.assert(this.currentRequestId===u),this.currentRequestId=void 0,this.cancellationToken.resetRequest(u)}executeWithRequestId(u,s){try{return this.setCurrentRequest(u),s()}finally{this.resetCurrentRequest(u)}}executeCommand(u){const s=this.handlers.get(u.command);if(s){const d=this.executeWithRequestId(u.seq,()=>s(u));return this.projectService.enableRequestedPlugins(),d}else return this.logger.msg(`Unrecognized JSON command:${tw(u)}`,"Err"),this.doOutput(void 0,"unknown",u.seq,!1,`Unrecognized JSON command: ${u.command}`),{responseRequired:!1}}onMessage(u){var s,d,f,p,E,v,b,B,k,T,M;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let z;this.logger.hasLevel(2)&&(z=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${SM(this.toStringMessage(u))}`));let j,J;try{j=this.parseMessage(u),J=j.arguments&&j.arguments.file?j.arguments:void 0,(s=$n)==null||s.instant($n.Phase.Session,"request",{seq:j.seq,command:j.command}),(d=dh)==null||d.logStartCommand(""+j.command,this.toStringMessage(u).substring(0,100)),(f=$n)==null||f.push($n.Phase.Session,"executeCommand",{seq:j.seq,command:j.command},!0);const{response:K,responseRequired:Y}=this.executeCommand(j);if((p=$n)==null||p.pop(),this.logger.hasLevel(2)){const oe=VQt(this.hrtime(z)).toFixed(4);Y?this.logger.perftrc(`${j.seq}::${j.command}: elapsed time (in milliseconds) ${oe}`):this.logger.perftrc(`${j.seq}::${j.command}: async elapsed time (in milliseconds) ${oe}`)}(E=dh)==null||E.logStopCommand(""+j.command,"Success"),(v=$n)==null||v.instant($n.Phase.Session,"response",{seq:j.seq,command:j.command,success:!!K}),K?this.doOutput(K,j.command,j.seq,!0):Y&&this.doOutput(void 0,j.command,j.seq,!1,"No content available.")}catch(K){if((b=$n)==null||b.popAll(),K instanceof v8){(B=dh)==null||B.logStopCommand(""+(j&&j.command),"Canceled: "+K),(k=$n)==null||k.instant($n.Phase.Session,"commandCanceled",{seq:j==null?void 0:j.seq,command:j==null?void 0:j.command}),this.doOutput({canceled:!0},j.command,j.seq,!0);return}this.logErrorWorker(K,this.toStringMessage(u),J),(T=dh)==null||T.logStopCommand(""+(j&&j.command),"Error: "+K),(M=$n)==null||M.instant($n.Phase.Session,"commandError",{seq:j==null?void 0:j.seq,command:j==null?void 0:j.command,message:K.message}),this.doOutput(void 0,j?j.command:"unknown",j?j.seq:0,!1,"Error processing request. "+K.message+` -`+K.stack)}}parseMessage(u){return JSON.parse(u)}toStringMessage(u){return u}getFormatOptions(u){return this.projectService.getFormatCodeOptions(u)}getPreferences(u){return this.projectService.getPreferences(u)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),m9,Ege,Gct,Jct,ste,lte,FNe,uz,p9,$K,rXt=o({"src/server/scriptVersionCache.ts"(){Yv(),g9(),m9=4,Ege=(t=>(t[t.PreStart=0]="PreStart",t[t.Start=1]="Start",t[t.Entire=2]="Entire",t[t.Mid=3]="Mid",t[t.End=4]="End",t[t.PostEnd=5]="PostEnd",t))(Ege||{}),Gct=class{constructor(){this.goSubtree=!0,this.lineIndex=new uz,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new p9,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(t,u){u&&(this.trailingText=""),t?t=this.initialText+t+this.trailingText:t=this.initialText+this.trailingText;const d=uz.linesFromText(t).lines;d.length>1&&d[d.length-1]===""&&d.pop();let f,p;for(let v=this.endBranch.length-1;v>=0;v--)this.endBranch[v].updateCounts(),this.endBranch[v].charCount()===0&&(p=this.endBranch[v],v>0?f=this.endBranch[v-1]:f=this.branchNode);p&&f.remove(p);const E=this.startPath[this.startPath.length-1];if(d.length>0)if(E.text=d[0],d.length>1){let v=new Array(d.length-1),b=E;for(let T=1;T=0;){const T=this.startPath[B];v=T.insertAt(b,v),B--,b=T}let k=v.length;for(;k>0;){const T=new p9;T.add(this.lineIndex.root),v=T.insertAt(this.lineIndex.root,v),k=v.length,this.lineIndex.root=T}this.lineIndex.root.updateCounts()}else for(let v=this.startPath.length-2;v>=0;v--)this.startPath[v].updateCounts();else{this.startPath[this.startPath.length-2].remove(E);for(let b=this.startPath.length-2;b>=0;b--)this.startPath[b].updateCounts()}return this.lineIndex}post(t,u,s){s===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(t,u,s,d,f){const p=this.stack[this.stack.length-1];this.state===2&&f===1&&(this.state=1,this.branchNode=p,this.lineCollectionAtBranch=s);let E;function v(b){return b.isLeaf()?new $K(""):new p9}switch(f){case 0:this.goSubtree=!1,this.state!==4&&p.add(s);break;case 1:this.state===4?this.goSubtree=!1:(E=v(s),p.add(E),this.startPath.push(E));break;case 2:this.state!==4?(E=v(s),p.add(E),this.startPath.push(E)):s.isLeaf()||(E=v(s),p.add(E),this.endBranch.push(E));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:s.isLeaf()||(E=v(s),p.add(E),this.endBranch.push(E));break;case 5:this.goSubtree=!1,this.state!==1&&p.add(s);break}this.goSubtree&&this.stack.push(E)}leaf(t,u,s){this.state===1?this.initialText=s.text.substring(0,t):this.state===2?(this.initialText=s.text.substring(0,t),this.trailingText=s.text.substring(t+u)):this.trailingText=s.text.substring(t+u)}},Jct=class{constructor(t,u,s){this.pos=t,this.deleteLen=u,this.insertedText=s}getTextChangeRange(){return IO(c1(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},ste=class IF{constructor(){this.changes=[],this.versions=new Array(IF.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(u){if(!(uthis.currentVersion))return u%IF.maxVersions}currentVersionToIndex(){return this.currentVersion%IF.maxVersions}edit(u,s,d){this.changes.push(new Jct(u,s,d)),(this.changes.length>IF.changeNumberThreshold||s>IF.changeLengthThreshold||d&&d.length>IF.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let u=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let s=u.index;for(const d of this.changes)s=s.edit(d.pos,d.deleteLen,d.insertedText);u=new FNe(this.currentVersion+1,this,s,this.changes),this.currentVersion=u.version,this.versions[this.currentVersionToIndex()]=u,this.changes=[],this.currentVersion-this.minVersion>=IF.maxVersions&&(this.minVersion=this.currentVersion-IF.maxVersions+1)}return u}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(u){return this._getSnapshot().index.lineNumberToInfo(u)}lineOffsetToPosition(u,s){return this._getSnapshot().index.absolutePositionOfStartOfLine(u)+(s-1)}positionToLineOffset(u){return this._getSnapshot().index.positionToLineOffset(u)}lineToTextSpan(u){const s=this._getSnapshot().index,{lineText:d,absolutePosition:f}=s.lineNumberToInfo(u+1),p=d!==void 0?d.length:s.absolutePositionOfStartOfLine(u+2)-f;return c1(f,p)}getTextChangesBetweenVersions(u,s){if(u=this.minVersion){const d=[];for(let f=u+1;f<=s;f++){const p=this.versions[this.versionToIndex(f)];for(const E of p.changesSincePreviousVersion)d.push(E.getTextChangeRange())}return L2e(d)}else return;else return XO}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(u){const s=new IF,d=new FNe(0,s,new uz);s.versions[s.currentVersion]=d;const f=uz.linesFromText(u);return d.index.load(f.lines),s}},ste.changeNumberThreshold=8,ste.changeLengthThreshold=256,ste.maxVersions=8,lte=ste,FNe=class K6t{constructor(u,s,d,f=Jc){this.version=u,this.cache=s,this.index=d,this.changesSincePreviousVersion=f}getText(u,s){return this.index.getText(u,s-u)}getLength(){return this.index.getLength()}getChangeRange(u){if(u instanceof K6t&&this.cache===u.cache)return this.version<=u.version?XO:this.cache.getTextChangesBetweenVersions(u.version,this.version)}},uz=class YOe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(u){return this.lineNumberToInfo(u).absolutePosition}positionToLineOffset(u){const{oneBasedLine:s,zeroBasedColumn:d}=this.root.charOffsetToLineInfo(1,u);return{line:s,offset:d+1}}positionToColumnAndLineText(u){return this.root.charOffsetToLineInfo(1,u)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(u){const s=this.getLineCount();if(u<=s){const{position:d,leaf:f}=this.root.lineNumberToInfo(u,0);return{absolutePosition:d,lineText:f&&f.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(u){if(u.length>0){const s=[];for(let d=0;d0&&u{d=d.concat(E.text.substring(f,f+p))}}),d}getLength(){return this.root.charCount()}every(u,s,d){d||(d=this.root.charCount());const f={goSubtree:!0,done:!1,leaf(p,E,v){u(v,p,E)||(this.done=!0)}};return this.walk(s,d-s,f),!f.done}edit(u,s,d){if(this.root.charCount()===0)return H.assert(s===0),d!==void 0?(this.load(YOe.linesFromText(d).lines),this):void 0;{let f;if(this.checkEdits){const v=this.getText(0,this.root.charCount());f=v.slice(0,u)+d+v.slice(u+s)}const p=new Gct;let E=!1;if(u>=this.root.charCount()){u=this.root.charCount()-1;const v=this.getText(u,1);d?d=v+d:d=v,s=0,E=!0}else if(s>0){const v=u+s,{zeroBasedColumn:b,lineText:B}=this.positionToColumnAndLineText(v);b===0&&(s+=B.length,d=d?d+B:B)}if(this.root.walk(u,s,p),p.insertLines(d,E),this.checkEdits){const v=p.lineIndex.getText(0,p.lineIndex.getLength());H.assert(f===v,"buffer edit mismatch")}return p.lineIndex}}static buildTreeFromBottom(u){if(u.length0?d[f]=p:d.pop(),{lines:d,lineMap:s}}},p9=class QOe{constructor(u=[]){this.children=u,this.totalChars=0,this.totalLines=0,u.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const u of this.children)this.totalChars+=u.charCount(),this.totalLines+=u.lineCount()}execWalk(u,s,d,f,p){return d.pre&&d.pre(u,s,this.children[f],this,p),d.goSubtree?(this.children[f].walk(u,s,d),d.post&&d.post(u,s,this.children[f],this,p)):d.goSubtree=!0,d.done}skipChild(u,s,d,f,p){f.pre&&!f.done&&(f.pre(u,s,this.children[d],this,p),f.goSubtree=!0)}walk(u,s,d){let f=0,p=this.children[f].charCount(),E=u;for(;E>=p;)this.skipChild(E,s,f,d,0),E-=p,f++,p=this.children[f].charCount();if(E+s<=p){if(this.execWalk(E,s,d,f,2))return}else{if(this.execWalk(E,p-E,d,f,1))return;let v=s-(p-E);for(f++,p=this.children[f].charCount();v>p;){if(this.execWalk(0,p,d,f,3))return;v-=p,f++,p=this.children[f].charCount()}if(v>0&&this.execWalk(0,v,d,f,4))return}if(d.pre){const v=this.children.length;if(fs)return p.isLeaf()?{oneBasedLine:u,zeroBasedColumn:s,lineText:p.text}:p.charOffsetToLineInfo(u,s);s-=p.charCount(),u+=p.lineCount()}const d=this.lineCount();if(d===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const f=H.checkDefined(this.lineNumberToInfo(d,0).leaf);return{oneBasedLine:d,zeroBasedColumn:f.charCount(),lineText:void 0}}lineNumberToInfo(u,s){for(const d of this.children){const f=d.lineCount();if(f>=u)return d.isLeaf()?{position:s,leaf:d}:d.lineNumberToInfo(u,s);u-=f,s+=d.charCount()}return{position:s,leaf:void 0}}splitAfter(u){let s;const d=this.children.length;u++;const f=u;if(u=0;M--)b[M].children.length===0&&b.pop()}E&&b.push(E),this.updateCounts();for(let k=0;k$Q,ActionPackageInstalled:()=>B9e,ActionSet:()=>JQ,ActionWatchTypingLocations:()=>FH,Arguments:()=>fhe,AutoImportProviderProject:()=>rge,AuxiliaryProject:()=>nge,CharRangeSection:()=>Ege,CloseFileWatcherEvent:()=>rte,CommandNames:()=>bNe,ConfigFileDiagEvent:()=>ete,ConfiguredProject:()=>age,CreateDirectoryWatcherEvent:()=>ute,CreateFileWatcherEvent:()=>nte,Errors:()=>x5,EventBeginInstallTypes:()=>dhe,EventEndInstallTypes:()=>hhe,EventInitializationFailed:()=>T9e,EventTypesRegistry:()=>w9e,ExternalProject:()=>Jee,GcTimer:()=>Zpe,InferredProject:()=>ige,LargeFileReferencedEvent:()=>Xee,LineIndex:()=>uz,LineLeaf:()=>$K,LineNode:()=>p9,LogLevel:()=>Jpe,Msg:()=>$pe,OpenFileInfoTelemetryEvent:()=>lge,Project:()=>Hk,ProjectInfoTelemetryEvent:()=>ite,ProjectKind:()=>iz,ProjectLanguageServiceStateEvent:()=>tte,ProjectLoadingFinishEvent:()=>Qee,ProjectLoadingStartEvent:()=>Yee,ProjectReferenceProjectLoadKind:()=>hge,ProjectService:()=>fge,ProjectsUpdatedInBackgroundEvent:()=>WK,ScriptInfo:()=>Xpe,ScriptVersionCache:()=>lte,Session:()=>kNe,TextStorage:()=>Qpe,ThrottledOperations:()=>qpe,TypingsCache:()=>ege,allFilesAreJsOrDts:()=>tNe,allRootFilesAreJsOrDts:()=>eNe,asNormalizedPath:()=>bct,convertCompilerOptions:()=>$ee,convertFormatOptions:()=>Fw,convertScriptKindName:()=>sge,convertTypeAcquisition:()=>uNe,convertUserPreferences:()=>rNe,convertWatchOptions:()=>KK,countEachFileTypes:()=>VK,createInstallTypingsRequest:()=>Cct,createModuleSpecifierCache:()=>pNe,createNormalizedPathMap:()=>yct,createPackageJsonCache:()=>gNe,createSortedArray:()=>RLe,emptyArray:()=>Jc,findArgument:()=>pit,forEachResolvedProjectReferenceProject:()=>Aw,formatDiagnosticToProtocol:()=>JK,formatMessage:()=>ENe,getBaseConfigFileName:()=>Upe,getLocationInNewDocument:()=>vNe,hasArgument:()=>mit,hasNoTypeScriptSource:()=>iNe,indent:()=>SM,isBackgroundProject:()=>HK,isConfigFile:()=>dNe,isConfiguredProject:()=>Zv,isDynamicFileName:()=>jK,isExternalProject:()=>tge,isInferredProject:()=>kw,isInferredProjectName:()=>PLe,makeAutoImportProviderProjectName:()=>zLe,makeAuxiliaryProjectName:()=>ILe,makeInferredProjectName:()=>MLe,maxFileSize:()=>Zee,maxProgramSizeForNonTsFiles:()=>qee,normalizedPathToPath:()=>OK,nowString:()=>git,nullCancellationToken:()=>CNe,nullTypingsInstaller:()=>Gee,projectContainsInfoDirectly:()=>f9,protocol:()=>XLe,removeSorted:()=>kct,stringifyIndented:()=>tw,toEvent:()=>_Ne,toNormalizedPath:()=>gl,tryConvertScriptKindName:()=>oge,typingsInstaller:()=>LLe,updateProjectIfDirty:()=>Wm});var g9=o({"src/server/_namespaces/ts.server.ts"(){UQ(),NLe(),_Qt(),DQt(),xQt(),vQt(),yQt(),SQt(),LQt(),RQt(),OQt(),jQt(),uXt(),rXt()}}),Uct={};h(Uct,{ANONYMOUS:()=>OX,AccessFlags:()=>Hoe,AssertionLevel:()=>foe,AssignmentDeclarationKind:()=>Yoe,AssignmentKind:()=>Hle,Associativity:()=>Wle,BreakpointResolver:()=>zme,BuilderFileEmit:()=>H1e,BuilderProgramKind:()=>K1e,BuilderState:()=>Vp,BundleFileSectionKind:()=>pse,CallHierarchy:()=>r9,CharacterCodes:()=>sse,CheckFlags:()=>Ioe,CheckMode:()=>qY,ClassificationType:()=>Lhe,ClassificationTypeNames:()=>The,CommentDirectiveType:()=>Coe,Comparison:()=>x,CompletionInfoFlags:()=>yhe,CompletionTriggerKind:()=>Dhe,Completions:()=>c9,ContainerFlags:()=>Nde,ContextFlags:()=>Soe,Debug:()=>H,DiagnosticCategory:()=>DO,Diagnostics:()=>F,DocumentHighlights:()=>HX,ElementFlags:()=>Voe,EmitFlags:()=>mU,EmitHint:()=>hse,EmitOnly:()=>yoe,EndOfLineState:()=>Ahe,EnumKind:()=>zoe,ExitStatus:()=>koe,ExportKind:()=>Ife,Extension:()=>lse,ExternalEmitHelpers:()=>dse,FileIncludeKind:()=>rU,FilePreprocessingDiagnosticsKind:()=>boe,FileSystemEntryKind:()=>vse,FileWatcherEventKind:()=>xse,FindAllReferences:()=>J0,FlattenLevel:()=>Qde,FlowFlags:()=>_O,ForegroundColorEscapeSequences:()=>P1e,FunctionFlags:()=>Kle,GeneratedIdentifierFlags:()=>uU,GetLiteralTextFlags:()=>Ole,GoToDefinition:()=>xw,HighlightSpanKind:()=>vhe,IdentifierNameMap:()=>q7,IdentifierNameMultiMap:()=>Yde,ImportKind:()=>zfe,ImportsNotUsedAsValues:()=>nse,IndentStyle:()=>Che,IndexFlags:()=>Koe,IndexKind:()=>Joe,InferenceFlags:()=>qoe,InferencePriority:()=>Uoe,InlayHintKind:()=>xhe,InlayHints:()=>Ape,InternalEmitFlags:()=>cse,InternalSymbolName:()=>Roe,InvalidatedProjectKind:()=>che,JSDocParsingMode:()=>_se,JsDoc:()=>qv,JsTyping:()=>a3,JsxEmit:()=>ise,JsxFlags:()=>xoe,JsxReferenceKind:()=>Woe,LanguageServiceMode:()=>ghe,LanguageVariant:()=>ase,LexicalEnvironmentFlags:()=>mse,ListFormat:()=>gse,LogLevel:()=>poe,MemberOverrideStatus:()=>Foe,ModifierFlags:()=>iU,ModuleDetectionKind:()=>Qoe,ModuleInstanceState:()=>Lde,ModuleKind:()=>kN,ModuleResolutionKind:()=>C8,ModuleSpecifierEnding:()=>Yle,NavigateTo:()=>t8e,NavigationBar:()=>d8e,NewLineKind:()=>use,NodeBuilderFlags:()=>Boe,NodeCheckFlags:()=>Ooe,NodeFactoryFlags:()=>rce,NodeFlags:()=>tU,NodeResolutionFeatures:()=>Bde,ObjectFlags:()=>lU,OperationCanceledException:()=>v8,OperatorPrecedence:()=>Gle,OrganizeImports:()=>Hp,OrganizeImportsMode:()=>_he,OuterExpressionKinds:()=>fse,OutliningElementsCollector:()=>Tpe,OutliningSpanKind:()=>khe,OutputFileType:()=>Fhe,PackageJsonAutoImportPreference:()=>phe,PackageJsonDependencyGroup:()=>mhe,PatternMatchKind:()=>KX,PollingInterval:()=>pU,PollingWatchKind:()=>tse,PragmaKindFlags:()=>Ese,PrivateIdentifierKind:()=>hce,ProcessLevel:()=>i1e,ProgramUpdateLevel:()=>E1e,QuotePreference:()=>wfe,RelationComparisonResult:()=>nU,Rename:()=>Ree,ScriptElementKind:()=>Bhe,ScriptElementKindModifier:()=>whe,ScriptKind:()=>dU,ScriptSnapshot:()=>ZQ,ScriptTarget:()=>rse,SemanticClassificationFormat:()=>Ehe,SemanticMeaning:()=>Bfe,SemicolonPreference:()=>bhe,SignatureCheckMode:()=>ZY,SignatureFlags:()=>cU,SignatureHelp:()=>TK,SignatureKind:()=>Goe,SmartSelectionRange:()=>Ppe,SnippetKind:()=>fU,SortKind:()=>hoe,StructureIsReused:()=>aU,SymbolAccessibility:()=>Loe,SymbolDisplay:()=>D5,SymbolDisplayPartKind:()=>SH,SymbolFlags:()=>oU,SymbolFormatFlags:()=>Toe,SyntaxKind:()=>eU,SyntheticSymbolKind:()=>Noe,Ternary:()=>Zoe,ThrottledCancellationToken:()=>Mme,TokenClass:()=>She,TokenFlags:()=>voe,TransformFlags:()=>hU,TypeFacts:()=>UY,TypeFlags:()=>sU,TypeFormatFlags:()=>woe,TypeMapKind:()=>$oe,TypePredicateKind:()=>Poe,TypeReferenceSerializationKind:()=>Moe,UnionReduction:()=>Aoe,UpToDateStatusType:()=>ahe,VarianceFlags:()=>joe,Version:()=>Bp,VersionRange:()=>pO,WatchDirectoryFlags:()=>ose,WatchDirectoryKind:()=>ese,WatchFileKind:()=>Xoe,WatchLogLevel:()=>_1e,WatchType:()=>sd,accessPrivateIdentifier:()=>UAe,addDisposableResourceHelper:()=>ZZ,addEmitFlags:()=>t_,addEmitHelper:()=>F7,addEmitHelpers:()=>tD,addInternalEmitFlags:()=>y7,addNodeFactoryPatcher:()=>LYe,addObjectAllocatorPatcher:()=>Zye,addRange:()=>kn,addRelatedInfo:()=>ps,addSyntheticLeadingComment:()=>RP,addSyntheticTrailingComment:()=>bZ,addToSeen:()=>Pp,advancedAsyncSuperHelper:()=>vV,affectsDeclarationPathOptionDeclarations:()=>fde,affectsEmitOptionDeclarations:()=>hde,allKeysStartWithDot:()=>HY,altDirectorySeparator:()=>AO,and:()=>U$,append:()=>Ei,appendIfUnique:()=>e0,arrayFrom:()=>Ea,arrayIsEqualTo:()=>Hn,arrayIsHomogeneous:()=>pke,arrayIsSorted:()=>ci,arrayOf:()=>rm,arrayReverseIterator:()=>vd,arrayToMap:()=>og,arrayToMultiMap:()=>hO,arrayToNumericMap:()=>ioe,arraysEqual:()=>Zt,assertType:()=>fqe,assign:()=>jE,assignHelper:()=>wZ,asyncDelegator:()=>LZ,asyncGeneratorHelper:()=>TZ,asyncSuperHelper:()=>xV,asyncValues:()=>NZ,attachFileToDiagnostics:()=>D7,awaitHelper:()=>A7,awaiterHelper:()=>MZ,base64decode:()=>Rye,base64encode:()=>Iye,binarySearch:()=>Hl,binarySearchKey:()=>Ca,bindSourceFile:()=>FAe,breakIntoCharacterSpans:()=>USe,breakIntoWordSpans:()=>qSe,buildLinkParts:()=>ESe,buildOpts:()=>TY,buildOverload:()=>gct,bundlerModuleNameResolver:()=>mAe,canBeConvertedToAsync:()=>Ufe,canHaveDecorators:()=>kk,canHaveExportModifier:()=>nV,canHaveFlowNode:()=>Aj,canHaveIllegalDecorators:()=>Vce,canHaveIllegalModifiers:()=>wFe,canHaveIllegalType:()=>sQe,canHaveIllegalTypeParameters:()=>BFe,canHaveJSDoc:()=>Sj,canHaveLocals:()=>$E,canHaveModifiers:()=>Op,canHaveSymbol:()=>qg,canJsonReportNoInputFiles:()=>rM,canProduceDiagnostics:()=>cQ,canUsePropertyAccess:()=>Mle,canWatchAffectingLocation:()=>t9e,canWatchAtTypes:()=>e9e,canWatchDirectoryOrFile:()=>NQ,cartesianProduct:()=>e2e,cast:()=>Lo,chainBundle:()=>jp,chainDiagnosticMessages:()=>uo,changeAnyExtension:()=>kO,changeCompilerHostLikeToUseCache:()=>DH,changeExtension:()=>Sv,changesAffectModuleResolution:()=>WU,changesAffectingProgramStructure:()=>vbe,childIsDecorated:()=>YN,classElementOrClassElementParameterIsDecorated:()=>A0e,classHasClassThisAssignment:()=>Xde,classHasDeclaredOrExplicitlyAssignedName:()=>e1e,classHasExplicitlyAssignedName:()=>oQ,classOrConstructorParameterIsDecorated:()=>e5,classPrivateFieldGetHelper:()=>$Z,classPrivateFieldInHelper:()=>qZ,classPrivateFieldSetHelper:()=>UZ,classicNameResolver:()=>CAe,classifier:()=>uBe,cleanExtendedConfigCache:()=>_Q,clear:()=>gu,clearMap:()=>uf,clearSharedExtendedConfigFileWatcher:()=>m1e,climbPastPropertyAccess:()=>QQ,climbPastPropertyOrElementAccess:()=>W9e,clone:()=>noe,cloneCompilerOptions:()=>Yhe,closeFileWatcher:()=>dg,closeFileWatcherOf:()=>Om,codefix:()=>M1,collapseTextChangeRangesAcrossMultipleVersions:()=>L2e,collectExternalModuleInfo:()=>$de,combine:()=>Do,combinePaths:()=>hr,commentPragmas:()=>xO,commonOptionsWithBuild:()=>ZV,commonPackageFolders:()=>$le,compact:()=>kr,compareBooleans:()=>s2,compareDataObjects:()=>ple,compareDiagnostics:()=>CP,compareDiagnosticsSkipRelatedInformation:()=>Jq,compareEmitHelpers:()=>Jke,compareNumberOfDirectorySeparators:()=>eV,comparePaths:()=>fv,comparePathsCaseInsensitive:()=>jqe,comparePathsCaseSensitive:()=>Oqe,comparePatternKeys:()=>Ade,compareProperties:()=>ZCe,compareStringsCaseInsensitive:()=>J$,compareStringsCaseInsensitiveEslintCompatible:()=>$Ce,compareStringsCaseSensitive:()=>ch,compareStringsCaseSensitiveUI:()=>fO,compareTextSpans:()=>G$,compareValues:()=>tl,compileOnSaveCommandLineOption:()=>UV,compilerOptionsAffectDeclarationPath:()=>oke,compilerOptionsAffectEmit:()=>ake,compilerOptionsAffectSemanticDiagnostics:()=>rke,compilerOptionsDidYouMeanDiagnostics:()=>XV,compilerOptionsIndicateEsModules:()=>nfe,compose:()=>dqe,computeCommonSourceDirectoryOfFilenames:()=>L7e,computeLineAndCharacterOfPosition:()=>b8,computeLineOfPosition:()=>wN,computeLineStarts:()=>t7,computePositionOfLineAndCharacter:()=>CU,computeSignature:()=>Tk,computeSignatureWithDiagnostics:()=>R1e,computeSuggestionDiagnostics:()=>Gfe,concatenate:()=>an,concatenateDiagnosticMessageChains:()=>eke,consumesNodeCoreModules:()=>LX,contains:()=>Ft,containsIgnoredPath:()=>wP,containsObjectRestOrSpread:()=>OV,containsParseError:()=>I8,containsPath:()=>WE,convertCompilerOptionsForTelemetry:()=>QFe,convertCompilerOptionsFromJson:()=>dXe,convertJsonOption:()=>Fk,convertToBase64:()=>zye,convertToJson:()=>GV,convertToObject:()=>UFe,convertToOptionsWithAbsolutePaths:()=>ade,convertToRelativePath:()=>BN,convertToTSConfig:()=>YQe,convertTypeAcquisitionFromJson:()=>hXe,copyComments:()=>zk,copyEntries:()=>GU,copyLeadingComments:()=>sw,copyProperties:()=>uoe,copyTrailingAsLeadingComments:()=>UH,copyTrailingComments:()=>RM,couldStartTrivia:()=>C2e,countWhere:()=>ui,createAbstractBuilder:()=>Ctt,createAccessorPropertyBackingField:()=>Kce,createAccessorPropertyGetRedirector:()=>RFe,createAccessorPropertySetRedirector:()=>OFe,createBaseNodeFactory:()=>wke,createBinaryExpressionTrampoline:()=>vY,createBindingHelper:()=>_B,createBuildInfo:()=>mH,createBuilderProgram:()=>O1e,createBuilderProgramUsingProgramBuildInfo:()=>Q7e,createBuilderStatusReporter:()=>p9e,createCacheWithRedirects:()=>vde,createCacheableExportInfoMap:()=>Nfe,createCachedDirectoryStructureHost:()=>gQ,createClassNamedEvaluationHelperBlock:()=>XAe,createClassThisAssignmentBlock:()=>YAe,createClassifier:()=>Oit,createCommentDirectivesMap:()=>Abe,createCompilerDiagnostic:()=>lc,createCompilerDiagnosticForInvalidCustomType:()=>KFe,createCompilerDiagnosticFromMessageChain:()=>Gq,createCompilerHost:()=>N7e,createCompilerHostFromProgramHost:()=>ihe,createCompilerHostWorker:()=>v1e,createDetachedDiagnostic:()=>cB,createDiagnosticCollection:()=>nB,createDiagnosticForFileFromMessageChain:()=>C0e,createDiagnosticForNode:()=>Bu,createDiagnosticForNodeArray:()=>j8,createDiagnosticForNodeArrayFromMessageChain:()=>aj,createDiagnosticForNodeFromMessageChain:()=>Z3,createDiagnosticForNodeInSourceFile:()=>V4,createDiagnosticForRange:()=>Obe,createDiagnosticMessageChainFromDiagnostic:()=>Rbe,createDiagnosticReporter:()=>bH,createDocumentPositionMapper:()=>HAe,createDocumentRegistry:()=>ISe,createDocumentRegistryInternal:()=>jfe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>W1e,createEmitHelperFactory:()=>Gke,createEmptyExports:()=>TV,createExpressionForJsxElement:()=>CFe,createExpressionForJsxFragment:()=>bFe,createExpressionForObjectLiteralElementLike:()=>yFe,createExpressionForPropertyName:()=>Mce,createExpressionFromEntityName:()=>LV,createExternalHelpersImportDeclarationIfNeeded:()=>Rce,createFileDiagnostic:()=>zd,createFileDiagnosticFromMessageChain:()=>XU,createForOfBindingStatement:()=>Pce,createGetCanonicalFileName:()=>T1,createGetSourceFile:()=>D1e,createGetSymbolAccessibilityDiagnosticForNode:()=>d5,createGetSymbolAccessibilityDiagnosticForNodeName:()=>b7e,createGetSymbolWalker:()=>AAe,createIncrementalCompilerHost:()=>uhe,createIncrementalProgram:()=>f9e,createInputFiles:()=>PYe,createInputFilesWithFilePaths:()=>nce,createInputFilesWithFileTexts:()=>uce,createJsxFactoryExpression:()=>Nce,createLanguageService:()=>Q8e,createLanguageServiceSourceFile:()=>fee,createMemberAccessForPropertyName:()=>yk,createModeAwareCache:()=>J7,createModeAwareCacheKey:()=>cM,createModuleNotFoundChain:()=>a0e,createModuleResolutionCache:()=>VB,createModuleResolutionLoader:()=>F1e,createModuleResolutionLoaderUsingGlobalCache:()=>r9e,createModuleSpecifierResolutionHost:()=>Mk,createMultiMap:()=>Bm,createNodeConverters:()=>Lke,createNodeFactory:()=>hV,createOptionNameMap:()=>yY,createOverload:()=>Wpe,createPackageJsonImportFilter:()=>VM,createPackageJsonInfo:()=>vfe,createParenthesizerRules:()=>Tke,createPatternMatcher:()=>HSe,createPrependNodes:()=>L1e,createPrinter:()=>Kv,createPrinterWithDefaults:()=>h1e,createPrinterWithRemoveComments:()=>Z2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>f1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>pH,createProgram:()=>yQ,createProgramHost:()=>nhe,createPropertyNameNodeForIdentifierOrLiteral:()=>cZ,createQueue:()=>W$,createRange:()=>o4,createRedirectedBuilderProgram:()=>V1e,createResolutionCache:()=>J1e,createRuntimeTypeSerializer:()=>u7e,createScanner:()=>ZD,createSemanticDiagnosticsBuilderProgram:()=>vtt,createSet:()=>roe,createSolutionBuilder:()=>Rtt,createSolutionBuilderHost:()=>ztt,createSolutionBuilderWithWatch:()=>Ott,createSolutionBuilderWithWatchHost:()=>Itt,createSortedArray:()=>xt,createSourceFile:()=>VV,createSourceMapGenerator:()=>RAe,createSourceMapSource:()=>MYe,createSuperAccessVariableStatement:()=>lQ,createSymbolTable:()=>jo,createSymlinkCache:()=>Cle,createSystemWatchFunctions:()=>p2e,createTextChange:()=>OH,createTextChangeFromStartLength:()=>hX,createTextChangeRange:()=>IO,createTextRangeFromNode:()=>efe,createTextRangeFromSpan:()=>dX,createTextSpan:()=>c1,createTextSpanFromBounds:()=>jc,createTextSpanFromNode:()=>af,createTextSpanFromRange:()=>Ux,createTextSpanFromStringLiteralLikeContent:()=>Xhe,createTextWriter:()=>Oj,createTokenRange:()=>hle,createTypeChecker:()=>LAe,createTypeReferenceDirectiveResolutionCache:()=>RY,createTypeReferenceResolutionLoader:()=>vQ,createUnparsedSourceFile:()=>ice,createWatchCompilerHost:()=>Ntt,createWatchCompilerHostOfConfigFile:()=>c9e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>d9e,createWatchFactory:()=>the,createWatchHost:()=>ehe,createWatchProgram:()=>Ptt,createWatchStatusReporter:()=>a9e,createWriteFileMeasuringIO:()=>x1e,declarationNameToString:()=>C0,decodeMappings:()=>Wde,decodedTextSpanIntersectsWith:()=>zO,decorateHelper:()=>kZ,deduplicate:()=>li,defaultIncludeSpec:()=>PY,defaultInitCompilerOptions:()=>LY,defaultMaximumTruncationLength:()=>oV,detectSortCaseSensitivity:()=>hn,diagnosticCategoryName:()=>Ky,diagnosticToString:()=>Rk,directoryProbablyExists:()=>cg,directorySeparator:()=>nl,displayPart:()=>bf,displayPartsToString:()=>pK,disposeEmitNodes:()=>ace,disposeResourcesHelper:()=>YZ,documentSpansEqual:()=>DX,dumpTracingLegend:()=>h2e,elementAt:()=>UD,elideNodes:()=>IFe,emitComments:()=>kye,emitDetachedComments:()=>Fye,emitFiles:()=>fQ,emitFilesAndReportErrors:()=>IQ,emitFilesAndReportErrorsAndGetExitStatus:()=>l9e,emitModuleKindIsNonNodeESM:()=>$q,emitNewLineBeforeLeadingCommentOfPosition:()=>yye,emitNewLineBeforeLeadingComments:()=>Cye,emitNewLineBeforeLeadingCommentsOfPosition:()=>bye,emitSkippedWithNoDiagnostics:()=>wQ,emitUsingBuildInfo:()=>S7e,emptyArray:()=>_t,emptyFileSystemEntries:()=>DZ,emptyMap:()=>Q$,emptyOptions:()=>c4,emptySet:()=>i2e,endsWith:()=>oc,ensurePathIsNonModuleName:()=>l2,ensureScriptKind:()=>nZ,ensureTrailingDirectorySeparator:()=>Pd,entityNameToString:()=>Mf,enumerateInsertsAndDeletes:()=>Z$,equalOwnProperties:()=>UA,equateStringsCaseInsensitive:()=>ZA,equateStringsCaseSensitive:()=>YA,equateValues:()=>vx,esDecorateHelper:()=>SZ,escapeJsxAttributeString:()=>Q0e,escapeLeadingUnderscores:()=>kl,escapeNonAsciiString:()=>Rj,escapeSnippetText:()=>z2,escapeString:()=>kv,every:()=>ye,expandPreOrPostfixIncrementOrDecrementExpression:()=>pY,explainFiles:()=>q1e,explainIfFileIsRedirectAndImpliedFormat:()=>Z1e,exportAssignmentIsAlias:()=>X8,exportStarHelper:()=>JZ,expressionResultIsUnused:()=>Eke,extend:()=>K$,extendsHelper:()=>zZ,extensionFromPath:()=>C7,extensionIsTS:()=>aZ,extensionsNotSupportingExtensionlessResolution:()=>dV,externalHelpersModuleNameText:()=>Vx,factory:()=>q,fileExtensionIs:()=>Pl,fileExtensionIsOneOf:()=>Oc,fileIncludeReasonToDiagnostics:()=>X1e,fileShouldUseJavaScriptRequire:()=>Sfe,filter:()=>ei,filterMutate:()=>Uu,filterSemanticDiagnostics:()=>kQ,find:()=>Le,findAncestor:()=>Ln,findBestPatternMatch:()=>loe,findChildOfKind:()=>r0,findComputedPropertyNameCacheAssignment:()=>CY,findConfigFile:()=>T7e,findContainingList:()=>nX,findDiagnosticForNode:()=>BSe,findFirstNonJsxWhitespaceToken:()=>q9e,findIndex:()=>$e,findLast:()=>lt,findLastIndex:()=>Ye,findListItemInfo:()=>U9e,findMap:()=>rt,findModifier:()=>rw,findNextToken:()=>X2,findPackageJson:()=>ASe,findPackageJsons:()=>xfe,findPrecedingMatchingToken:()=>lX,findPrecedingToken:()=>ed,findSuperStatementIndexPath:()=>uQ,findTokenOnLeftOfPosition:()=>aX,findUseStrictPrologue:()=>Ice,first:()=>Mn,firstDefined:()=>G,firstDefinedIterator:()=>ie,firstIterator:()=>Oa,firstOrOnly:()=>kfe,firstOrUndefined:()=>Hi,firstOrUndefinedIterator:()=>Kn,fixupCompilerOptions:()=>Zfe,flatMap:()=>Ku,flatMapIterator:()=>Wn,flatMapToMutable:()=>vn,flatten:()=>Va,flattenCommaList:()=>jFe,flattenDestructuringAssignment:()=>Sk,flattenDestructuringBinding:()=>q2,flattenDiagnosticMessageText:()=>sE,forEach:()=>L,forEachAncestor:()=>Cbe,forEachAncestorDirectory:()=>$g,forEachChild:()=>ro,forEachChildRecursively:()=>nM,forEachEmittedFile:()=>c1e,forEachEnclosingBlockScopeContainer:()=>Mbe,forEachEntry:()=>d1,forEachExternalModuleToImportFrom:()=>Mfe,forEachImportClauseDeclaration:()=>Cq,forEachKey:()=>$_,forEachLeadingCommentRange:()=>TO,forEachNameInAccessChainWalkingLeft:()=>Uye,forEachPropertyAssignment:()=>W8,forEachResolvedProjectReference:()=>A1e,forEachReturnStatement:()=>v2,forEachRight:()=>R,forEachTrailingCommentRange:()=>LO,forEachTsConfigPropArray:()=>cj,forEachUnique:()=>sfe,forEachYieldExpression:()=>Vbe,forSomeAncestorDirectory:()=>iYe,formatColorAndReset:()=>Y2,formatDiagnostic:()=>C1e,formatDiagnostics:()=>ntt,formatDiagnosticsWithColorAndContext:()=>P7e,formatGeneratedName:()=>Rv,formatGeneratedNamePart:()=>zB,formatLocation:()=>b1e,formatMessage:()=>_le,formatStringFromArgs:()=>X_,formatting:()=>ld,fullTripleSlashAMDReferencePathRegEx:()=>Vle,fullTripleSlashReferencePathRegEx:()=>jle,generateDjb2Hash:()=>FN,generateTSConfig:()=>iXe,generatorHelper:()=>KZ,getAdjustedReferenceLocation:()=>Ghe,getAdjustedRenameLocation:()=>rX,getAliasDeclarationFromName:()=>V0e,getAllAccessorDeclarations:()=>lk,getAllDecoratorsOfClass:()=>qde,getAllDecoratorsOfClassElement:()=>aQ,getAllJSDocTags:()=>jse,getAllJSDocTagsOfKind:()=>pZe,getAllKeys:()=>Sm,getAllProjectOutputs:()=>hQ,getAllSuperTypeNodes:()=>nP,getAllUnscopedEmitHelpers:()=>dce,getAllowJSCompilerOption:()=>Av,getAllowSyntheticDefaultImports:()=>x7,getAncestor:()=>yv,getAnyExtensionFromPath:()=>SN,getAreDeclarationMapsEnabled:()=>qq,getAssignedExpandoInitializer:()=>o7,getAssignedName:()=>Mse,getAssignedNameOfIdentifier:()=>EM,getAssignmentDeclarationKind:()=>Ql,getAssignmentDeclarationPropertyAccessKind:()=>Cj,getAssignmentTargetKind:()=>d7,getAutomaticTypeDirectiveNames:()=>IY,getBaseFileName:()=>Fc,getBinaryOperatorPrecedence:()=>Ij,getBuildInfo:()=>mQ,getBuildInfoFileVersionMap:()=>j1e,getBuildInfoText:()=>A7e,getBuildOrderFromAnyBuildOrder:()=>HQ,getBuilderCreationParameters:()=>TQ,getBuilderFileEmit:()=>$x,getCheckFlags:()=>Wl,getClassExtendsHeritageElement:()=>F2,getClassLikeDeclarationOfSymbol:()=>eD,getCombinedLocalAndExportSymbolFlags:()=>DP,getCombinedModifierFlags:()=>d2,getCombinedNodeFlags:()=>YD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Nse,getCommentRange:()=>iE,getCommonSourceDirectory:()=>bM,getCommonSourceDirectoryOfConfig:()=>yM,getCompilerOptionValue:()=>Yq,getCompilerOptionsDiffValue:()=>eXe,getConditions:()=>W2,getConfigFileParsingDiagnostics:()=>wk,getConstantValue:()=>Rke,getContainerFlags:()=>Tde,getContainerNode:()=>Nk,getContainingClass:()=>Zd,getContainingClassExcludingClassDecorators:()=>sq,getContainingClassStaticBlock:()=>Zbe,getContainingFunction:()=>Lm,getContainingFunctionDeclaration:()=>qbe,getContainingFunctionOrClassStaticBlock:()=>oq,getContainingNodeArray:()=>_ke,getContainingObjectLiteralElement:()=>gK,getContextualTypeFromParent:()=>yX,getContextualTypeFromParentOrAncestorTypeNode:()=>uX,getCurrentTime:()=>kH,getDeclarationDiagnostics:()=>y7e,getDeclarationEmitExtensionForPath:()=>Vj,getDeclarationEmitOutputFilePath:()=>Eye,getDeclarationEmitOutputFilePathWorker:()=>Tq,getDeclarationFromName:()=>iP,getDeclarationModifierFlagsFromSymbol:()=>s4,getDeclarationOfKind:()=>Fl,getDeclarationsOfKind:()=>Dbe,getDeclaredExpandoInitializer:()=>_j,getDecorators:()=>Fx,getDefaultCompilerOptions:()=>hee,getDefaultExportInfoWorker:()=>VX,getDefaultFormatCodeSettings:()=>qQ,getDefaultLibFileName:()=>PO,getDefaultLibFilePath:()=>X8e,getDefaultLikeExportInfo:()=>jX,getDiagnosticText:()=>WQe,getDiagnosticsWithinSpan:()=>wSe,getDirectoryPath:()=>dr,getDirectoryToWatchFailedLookupLocation:()=>G1e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>n9e,getDocumentPositionMapper:()=>Wfe,getESModuleInterop:()=>XE,getEditsForFileRename:()=>OSe,getEffectiveBaseTypeNode:()=>Yg,getEffectiveConstraintOfTypeParameter:()=>S8,getEffectiveContainerForJSDocTemplateTag:()=>bq,getEffectiveImplementsTypeNodes:()=>eB,getEffectiveInitializer:()=>Ej,getEffectiveJSDocHost:()=>rk,getEffectiveModifierFlags:()=>gh,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>wye,getEffectiveModifierFlagsNoCache:()=>Tye,getEffectiveReturnTypeNode:()=>J4,getEffectiveSetAccessorTypeAnnotationNode:()=>vye,getEffectiveTypeAnnotationNode:()=>h1,getEffectiveTypeParameterDeclarations:()=>Ax,getEffectiveTypeRoots:()=>lM,getElementOrPropertyAccessArgumentExpressionOrName:()=>vq,getElementOrPropertyAccessName:()=>Y3,getElementsOfBindingOrAssignmentPattern:()=>MB,getEmitDeclarations:()=>l4,getEmitFlags:()=>vs,getEmitHelpers:()=>yZ,getEmitModuleDetectionKind:()=>tke,getEmitModuleKind:()=>f1,getEmitModuleResolutionKind:()=>m1,getEmitScriptTarget:()=>Is,getEmitStandardClassFields:()=>uke,getEnclosingBlockScopeContainer:()=>ZE,getEnclosingContainer:()=>v0e,getEncodedSemanticClassifications:()=>Rfe,getEncodedSyntacticClassifications:()=>Ofe,getEndLinePosition:()=>ij,getEntityNameFromTypeNode:()=>fj,getEntrypointsFromPackageJsonInfo:()=>yde,getErrorCountForSummary:()=>MQ,getErrorSpanForNode:()=>D2,getErrorSummaryText:()=>o9e,getEscapedTextOfIdentifierOrLiteral:()=>aP,getEscapedTextOfJsxAttributeName:()=>PP,getEscapedTextOfJsxNamespacedName:()=>b7,getExpandoInitializer:()=>Cv,getExportAssignmentExpression:()=>H0e,getExportInfoMap:()=>XH,getExportNeedsImportStarHelper:()=>KAe,getExpressionAssociativity:()=>U0e,getExpressionPrecedence:()=>sP,getExternalHelpersModuleName:()=>PV,getExternalModuleImportEqualsDeclarationExpression:()=>QN,getExternalModuleName:()=>q8,getExternalModuleNameFromDeclaration:()=>pye,getExternalModuleNameFromPath:()=>ele,getExternalModuleNameLiteral:()=>H7,getExternalModuleRequireArgument:()=>B0e,getFallbackOptions:()=>_H,getFileEmitOutput:()=>V7e,getFileMatcherPatterns:()=>iZ,getFileNamesFromConfigSpecs:()=>aM,getFileWatcherEventKind:()=>Dse,getFilesInErrorForSummary:()=>zQ,getFirstConstructorWithBody:()=>Q_,getFirstIdentifier:()=>dm,getFirstNonSpaceCharacterPosition:()=>vSe,getFirstProjectOutput:()=>d1e,getFixableErrorSpanExpression:()=>bfe,getFormatCodeSettingsForWriting:()=>zX,getFullWidth:()=>ej,getFunctionFlags:()=>yd,getHeritageClause:()=>Nj,getHostSignatureFromJSDoc:()=>bv,getIdentifierAutoGenerate:()=>jYe,getIdentifierGeneratedImportReference:()=>Wke,getIdentifierTypeArguments:()=>mk,getImmediatelyInvokedFunctionExpression:()=>tk,getImpliedNodeFormatForFile:()=>vH,getImpliedNodeFormatForFileWorker:()=>w1e,getImportNeedsImportDefaultHelper:()=>Jde,getImportNeedsImportStarHelper:()=>iQ,getIndentSize:()=>rB,getIndentString:()=>Bq,getInferredLibraryNameResolveFrom:()=>bQ,getInitializedVariables:()=>_P,getInitializerOfBinaryExpression:()=>P0e,getInitializerOfBindingOrAssignmentElement:()=>zV,getInterfaceBaseTypeNodes:()=>uP,getInternalEmitFlags:()=>Tp,getInvokedExpression:()=>dq,getIsolatedModules:()=>hg,getJSDocAugmentsTag:()=>V2e,getJSDocClassTag:()=>zse,getJSDocCommentRanges:()=>y0e,getJSDocCommentsAndTags:()=>z0e,getJSDocDeprecatedTag:()=>Ise,getJSDocDeprecatedTagNoCache:()=>U2e,getJSDocEnumTag:()=>Rse,getJSDocHost:()=>c7,getJSDocImplementsTags:()=>H2e,getJSDocOverrideTagNoCache:()=>$2e,getJSDocParameterTags:()=>A8,getJSDocParameterTagsNoCache:()=>I2e,getJSDocPrivateTag:()=>cZe,getJSDocPrivateTagNoCache:()=>W2e,getJSDocProtectedTag:()=>dZe,getJSDocProtectedTagNoCache:()=>G2e,getJSDocPublicTag:()=>lZe,getJSDocPublicTagNoCache:()=>K2e,getJSDocReadonlyTag:()=>hZe,getJSDocReadonlyTagNoCache:()=>J2e,getJSDocReturnTag:()=>q2e,getJSDocReturnType:()=>OO,getJSDocRoot:()=>tP,getJSDocSatisfiesExpressionType:()=>Ile,getJSDocSatisfiesTag:()=>Ose,getJSDocTags:()=>xv,getJSDocTagsNoCache:()=>mZe,getJSDocTemplateTag:()=>fZe,getJSDocThisTag:()=>SU,getJSDocType:()=>Dv,getJSDocTypeAliasName:()=>jce,getJSDocTypeAssertionType:()=>EY,getJSDocTypeParameterDeclarations:()=>Mq,getJSDocTypeParameterTags:()=>R2e,getJSDocTypeParameterTagsNoCache:()=>O2e,getJSDocTypeTag:()=>_v,getJSXImplicitImportBase:()=>Xq,getJSXRuntimeImport:()=>eZ,getJSXTransformEnabled:()=>Qq,getKeyForCompilerOptions:()=>xde,getLanguageVariant:()=>qj,getLastChild:()=>gle,getLeadingCommentRanges:()=>K_,getLeadingCommentRangesOfNode:()=>b0e,getLeftmostAccessExpression:()=>vP,getLeftmostExpression:()=>lB,getLibraryNameFromLibFileName:()=>S1e,getLineAndCharacterOfPosition:()=>o0,getLineInfo:()=>Hde,getLineOfLocalPosition:()=>cP,getLineOfLocalPositionFromLineMap:()=>ok,getLineStartPositionForPosition:()=>X4,getLineStarts:()=>J3,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Kye,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Hye,getLinesBetweenPositions:()=>TN,getLinesBetweenRangeEndAndRangeStart:()=>fle,getLinesBetweenRangeEndPositions:()=>eYe,getLiteralText:()=>Sbe,getLocalNameForExternalImport:()=>PB,getLocalSymbolForExportDefault:()=>oB,getLocaleSpecificMessage:()=>Xa,getLocaleTimeString:()=>yH,getMappedContextSpan:()=>lfe,getMappedDocumentSpan:()=>xX,getMappedLocation:()=>MM,getMatchedFileSpec:()=>Y1e,getMatchedIncludeSpec:()=>Q1e,getMeaningFromDeclaration:()=>BH,getMeaningFromLocation:()=>Lk,getMembersOfDeclaration:()=>Hbe,getModeForFileReference:()=>xQ,getModeForResolutionAtIndex:()=>y1e,getModeForUsageLocation:()=>_g,getModifiedTime:()=>QA,getModifiers:()=>h2,getModuleInstanceState:()=>aD,getModuleNameStringLiteralAt:()=>AQ,getModuleSpecifierEndingPreference:()=>Ale,getModuleSpecifierResolverHost:()=>ufe,getNameForExportedSymbol:()=>NX,getNameFromIndexInfo:()=>zbe,getNameFromPropertyName:()=>HH,getNameOfAccessExpression:()=>Jye,getNameOfCompilerOptionValue:()=>ude,getNameOfDeclaration:()=>qa,getNameOfExpando:()=>L0e,getNameOfJSDocTypedef:()=>z2e,getNameOrArgument:()=>vj,getNameTable:()=>wme,getNamesForExportedSymbol:()=>TSe,getNamespaceDeclarationNode:()=>Z8,getNewLineCharacter:()=>r5,getNewLineKind:()=>QH,getNewLineOrDefaultFromHost:()=>g5,getNewTargetContainer:()=>Qbe,getNextJSDocCommentLocation:()=>I0e,getNodeForGeneratedName:()=>RV,getNodeId:()=>Js,getNodeKind:()=>Q2,getNodeModifiers:()=>LM,getNodeModulePathParts:()=>dZ,getNonAssignedNameOfDeclaration:()=>AU,getNonAssignmentOperatorForCompoundAssignment:()=>mM,getNonAugmentationDeclaration:()=>p0e,getNonDecoratorTokenPosOfNode:()=>c0e,getNormalizedAbsolutePath:()=>$a,getNormalizedAbsolutePathWithoutRoot:()=>kse,getNormalizedPathComponents:()=>yO,getObjectFlags:()=>$u,getOperator:()=>Z0e,getOperatorAssociativity:()=>q0e,getOperatorPrecedence:()=>zj,getOptionFromName:()=>Xce,getOptionsForLibraryResolution:()=>Cde,getOptionsNameMap:()=>RB,getOrCreateEmitNode:()=>N1,getOrCreateExternalHelpersModuleNameIfNeeded:()=>SFe,getOrUpdate:()=>Vl,getOriginalNode:()=>Kl,getOriginalNodeId:()=>P1,getOriginalSourceFile:()=>WZe,getOutputDeclarationFileName:()=>CM,getOutputExtension:()=>dQ,getOutputFileNames:()=>ett,getOutputPathsFor:()=>vM,getOutputPathsForBundle:()=>xM,getOwnEmitOutputFilePath:()=>gye,getOwnKeys:()=>Ts,getOwnValues:()=>$1,getPackageJsonInfo:()=>G2,getPackageJsonTypesVersionsPaths:()=>zY,getPackageJsonsVisibleToFile:()=>SSe,getPackageNameFromTypesPackageName:()=>dM,getPackageScopeForPath:()=>uH,getParameterSymbolFromJSDoc:()=>Bj,getParameterTypeNode:()=>fYe,getParentNodeInSpan:()=>WH,getParseTreeNode:()=>Ua,getParsedCommandLineOfConfigFile:()=>KV,getPathComponents:()=>bd,getPathComponentsRelativeTo:()=>Ase,getPathFromPathComponents:()=>bx,getPathUpdater:()=>Hfe,getPathsBasePath:()=>Lq,getPatternFromSpec:()=>kle,getPendingEmitKind:()=>YB,getPositionOfLineAndCharacter:()=>BO,getPossibleGenericSignatures:()=>$he,getPossibleOriginalInputExtensionForExtension:()=>_ye,getPossibleTypeArgumentsInfo:()=>Uhe,getPreEmitDiagnostics:()=>itt,getPrecedingNonSpaceCharacterPosition:()=>CX,getPrivateIdentifier:()=>Zde,getProperties:()=>Ude,getProperty:()=>no,getPropertyArrayElementValue:()=>Ube,getPropertyAssignmentAliasLikeExpression:()=>dye,getPropertyNameForPropertyNameNode:()=>ak,getPropertyNameForUniqueESSymbol:()=>HZe,getPropertyNameFromType:()=>Z4,getPropertyNameOfBindingOrAssignmentElement:()=>Oce,getPropertySymbolFromBindingElement:()=>_X,getPropertySymbolsFromContextualType:()=>mee,getQuoteFromPreference:()=>afe,getQuotePreference:()=>Vm,getRangesWhere:()=>Lu,getRefactorContextSpan:()=>i9,getReferencedFileLocation:()=>kM,getRegexFromPattern:()=>Ox,getRegularExpressionForWildcard:()=>bP,getRegularExpressionsForWildcards:()=>tZ,getRelativePathFromDirectory:()=>GE,getRelativePathFromFile:()=>FO,getRelativePathToDirectoryOrUrl:()=>e7,getRenameLocation:()=>$H,getReplacementSpanForContextToken:()=>Qhe,getResolutionDiagnostic:()=>N1e,getResolutionModeOverride:()=>$B,getResolveJsonModule:()=>L2,getResolvePackageJsonExports:()=>xle,getResolvePackageJsonImports:()=>oYe,getResolvedExternalModuleName:()=>wq,getRestIndicatorOfBindingOrAssignmentElement:()=>DY,getRestParameterElementType:()=>k0e,getRightMostAssignedExpression:()=>Dj,getRootDeclaration:()=>QE,getRootDirectoryOfResolutionCache:()=>u9e,getRootLength:()=>KE,getRootPathSplitLength:()=>Ftt,getScriptKind:()=>mfe,getScriptKindFromFileName:()=>uZ,getScriptTargetFeatures:()=>gZ,getSelectedEffectiveModifierFlags:()=>p7,getSelectedSyntacticModifierFlags:()=>Sye,getSemanticClassifications:()=>MSe,getSemanticJsxChildren:()=>iB,getSetAccessorTypeAnnotationNode:()=>Dye,getSetAccessorValueParameter:()=>dP,getSetExternalModuleIndicator:()=>Zj,getShebang:()=>yU,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>M0e,getSingleVariableOfVariableStatement:()=>Q8,getSnapshotText:()=>uw,getSnippetElement:()=>oce,getSourceFileOfModule:()=>$U,getSourceFileOfNode:()=>In,getSourceFilePathInNewDir:()=>Nq,getSourceFilePathInNewDirWorker:()=>Pq,getSourceFileVersionAsHashFromText:()=>RQ,getSourceFilesToEmit:()=>tle,getSourceMapRange:()=>wv,getSourceMapper:()=>YSe,getSourceTextOfNodeFromSourceFile:()=>E2,getSpanOfTokenAtPosition:()=>YE,getSpellingSuggestion:()=>CN,getStartPositionOfLine:()=>Px,getStartPositionOfRange:()=>EP,getStartsOnNewLine:()=>IP,getStaticPropertiesAndClassStaticBlock:()=>rQ,getStrictOptionValue:()=>U4,getStringComparer:()=>vN,getSuperCallFromStatement:()=>nQ,getSuperContainer:()=>dj,getSupportedCodeFixes:()=>Sme,getSupportedExtensions:()=>yP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Xj,getSwitchedType:()=>_fe,getSymbolId:()=>qo,getSymbolNameForPrivateIdentifier:()=>Pj,getSymbolTarget:()=>DSe,getSyntacticClassifications:()=>zSe,getSyntacticModifierFlags:()=>Ix,getSyntacticModifierFlagsNoCache:()=>rle,getSynthesizedDeepClone:()=>ol,getSynthesizedDeepCloneWithReplacements:()=>JH,getSynthesizedDeepClones:()=>eb,getSynthesizedDeepClonesWithReplacements:()=>pfe,getSyntheticLeadingComments:()=>EB,getSyntheticTrailingComments:()=>EV,getTargetLabel:()=>XQ,getTargetOfBindingOrAssignmentElement:()=>Jx,getTemporaryModuleResolutionState:()=>nH,getTextOfConstantValue:()=>Bbe,getTextOfIdentifierOrLiteral:()=>W4,getTextOfJSDocComment:()=>VO,getTextOfJsxAttributeName:()=>aV,getTextOfJsxNamespacedName:()=>MP,getTextOfNode:()=>Vc,getTextOfNodeFromSourceText:()=>GN,getTextOfPropertyName:()=>O8,getThisContainer:()=>ef,getThisParameter:()=>S2,getTokenAtPosition:()=>ba,getTokenPosOfNode:()=>Qy,getTokenSourceMapRange:()=>RYe,getTouchingPropertyName:()=>rf,getTouchingToken:()=>TM,getTrailingCommentRanges:()=>mv,getTrailingSemicolonDeferringWriter:()=>X0e,getTransformFlagsSubtreeExclusions:()=>Nke,getTransformers:()=>s1e,getTsBuildInfoEmitOutputFilePath:()=>h5,getTsConfigObjectLiteralExpression:()=>qN,getTsConfigPropArrayElementValue:()=>aq,getTypeAnnotationNode:()=>xye,getTypeArgumentOrTypeParameterList:()=>nSe,getTypeKeywordOfTypeOnlyImport:()=>ofe,getTypeNode:()=>Hke,getTypeNodeIfAccessible:()=>jM,getTypeParameterFromJsDoc:()=>rye,getTypeParameterOwner:()=>uZe,getTypesPackageName:()=>KY,getUILocale:()=>UCe,getUniqueName:()=>Ik,getUniqueSymbolId:()=>xSe,getUseDefineForClassFields:()=>Qj,getWatchErrorSummaryDiagnosticMessage:()=>$1e,getWatchFactory:()=>g1e,group:()=>xN,groupBy:()=>WCe,guessIndentation:()=>Ebe,handleNoEmitOptions:()=>T1e,hasAbstractModifier:()=>T2,hasAccessorModifier:()=>Xg,hasAmbientModifier:()=>ule,hasChangesInResolutions:()=>o0e,hasChildOfKind:()=>zH,hasContextSensitiveParameters:()=>lZ,hasDecorators:()=>a4,hasDocComment:()=>tSe,hasDynamicName:()=>zx,hasEffectiveModifier:()=>If,hasEffectiveModifiers:()=>zq,hasEffectiveReadonlyModifier:()=>hP,hasExtension:()=>XA,hasIndexSignature:()=>Efe,hasInitializer:()=>Lx,hasInvalidEscape:()=>Y0e,hasJSDocNodes:()=>sm,hasJSDocParameterTags:()=>j2e,hasJSFileExtension:()=>N2,hasJsonModuleEmitEnabled:()=>Uq,hasOnlyExpressionInitializer:()=>Zy,hasOverrideModifier:()=>Iq,hasPossibleExternalModuleReference:()=>Pbe,hasProperty:()=>Eu,hasPropertyAccessExpressionWithName:()=>TH,hasQuestionToken:()=>l7,hasRecordedExternalHelpers:()=>AFe,hasResolutionModeOverride:()=>bke,hasRestParameter:()=>n0e,hasScopeMarker:()=>lbe,hasStaticModifier:()=>Hc,hasSyntacticModifier:()=>Xu,hasSyntacticModifiers:()=>Aye,hasTSFileExtension:()=>hk,hasTabstop:()=>xke,hasTrailingDirectorySeparator:()=>qD,hasType:()=>HU,hasTypeArguments:()=>IZe,hasZeroOrOneAsteriskCharacter:()=>vle,helperString:()=>cce,hostGetCanonicalFileName:()=>i5,hostUsesCaseSensitiveFileNames:()=>jj,idText:()=>mu,identifierIsThisKeyword:()=>nle,identifierToKeywordKind:()=>Ev,identity:()=>el,identitySourceMapConsumer:()=>tQ,ignoreSourceNewlines:()=>lce,ignoredPaths:()=>bO,importDefaultHelper:()=>GZ,importFromModuleSpecifier:()=>eP,importNameElisionDisabled:()=>Dle,importStarHelper:()=>DV,indexOfAnyCharCode:()=>Ot,indexOfNode:()=>R8,indicesOf:()=>Zr,inferredTypesContainingFile:()=>ZB,injectClassNamedEvaluationHelperBlockIfMissing:()=>sQ,injectClassThisAssignmentIfMissing:()=>QAe,insertImports:()=>PM,insertLeadingStatement:()=>uQe,insertSorted:()=>Nt,insertStatementAfterCustomPrologue:()=>Yy,insertStatementAfterStandardPrologue:()=>AZe,insertStatementsAfterCustomPrologue:()=>s0e,insertStatementsAfterStandardPrologue:()=>qE,intersperse:()=>_e,intrinsicTagNameToString:()=>Rle,introducesArgumentsExoticObject:()=>Jbe,inverseJsxOptionMap:()=>oM,isAbstractConstructorSymbol:()=>Wye,isAbstractModifier:()=>Xke,isAccessExpression:()=>N0,isAccessibilityModifier:()=>Zhe,isAccessor:()=>Bx,isAccessorModifier:()=>tFe,isAliasSymbolDeclaration:()=>OZe,isAliasableExpression:()=>Lj,isAmbientModule:()=>L1,isAmbientPropertyDeclaration:()=>E0e,isAnonymousFunctionDefinition:()=>oP,isAnyDirectorySeparator:()=>Cse,isAnyImportOrBareOrAccessedRequire:()=>Nbe,isAnyImportOrReExport:()=>uj,isAnyImportSyntax:()=>Xy,isAnySupportedFileExtension:()=>hYe,isApplicableVersionedTypesKey:()=>aH,isArgumentExpressionOfElementAccess:()=>Ohe,isArray:()=>Ha,isArrayBindingElement:()=>zU,isArrayBindingOrAssignmentElement:()=>UO,isArrayBindingOrAssignmentPattern:()=>Yse,isArrayBindingPattern:()=>gk,isArrayLiteralExpression:()=>_h,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>m5,isArrayTypeNode:()=>nY,isArrowFunction:()=>G0,isAsExpression:()=>kV,isAssertClause:()=>lFe,isAssertEntry:()=>ZYe,isAssertionExpression:()=>qy,isAssertsKeyword:()=>Yke,isAssignmentDeclaration:()=>XN,isAssignmentExpression:()=>od,isAssignmentOperator:()=>n5,isAssignmentPattern:()=>HN,isAssignmentTarget:()=>Y_,isAsteriskToken:()=>CV,isAsyncFunction:()=>rP,isAsyncModifier:()=>jP,isAutoAccessorPropertyDeclaration:()=>Xh,isAwaitExpression:()=>Wx,isAwaitKeyword:()=>Ece,isBigIntLiteral:()=>QZ,isBinaryExpression:()=>tu,isBinaryOperatorToken:()=>zFe,isBindableObjectDefinePropertyCall:()=>nk,isBindableStaticAccessExpression:()=>y2,isBindableStaticElementAccessExpression:()=>xq,isBindableStaticNameExpression:()=>uk,isBindingElement:()=>Rs,isBindingElementOfBareOrAccessedRequire:()=>tye,isBindingName:()=>$y,isBindingOrAssignmentElement:()=>nbe,isBindingOrAssignmentPattern:()=>JO,isBindingPattern:()=>Fo,isBlock:()=>fo,isBlockOrCatchScoped:()=>d0e,isBlockScope:()=>_0e,isBlockScopedContainerTopLevel:()=>Lbe,isBooleanLiteral:()=>VN,isBreakOrContinueStatement:()=>RN,isBreakStatement:()=>$Ye,isBuildInfoFile:()=>F7e,isBuilderProgram:()=>s9e,isBundle:()=>yce,isBundleFileTextLike:()=>$ye,isCallChain:()=>Gy,isCallExpression:()=>No,isCallExpressionTarget:()=>Nhe,isCallLikeExpression:()=>g2,isCallLikeOrFunctionLikeExpression:()=>Qse,isCallOrNewExpression:()=>JE,isCallOrNewExpressionTarget:()=>Phe,isCallSignatureDeclaration:()=>xB,isCallToHelper:()=>OP,isCaseBlock:()=>qP,isCaseClause:()=>AB,isCaseKeyword:()=>iFe,isCaseOrDefaultClause:()=>jU,isCatchClause:()=>H2,isCatchClauseVariableDeclaration:()=>Dke,isCatchClauseVariableDeclarationOrBindingElement:()=>h0e,isCheckJsEnabledForFile:()=>iV,isChildOfNodeWithKind:()=>SZe,isCircularBuildOrder:()=>Q7,isClassDeclaration:()=>Kc,isClassElement:()=>qd,isClassExpression:()=>Qd,isClassInstanceProperty:()=>ebe,isClassLike:()=>gr,isClassMemberModifier:()=>Use,isClassNamedEvaluationHelperBlock:()=>Y7,isClassOrTypeElement:()=>MU,isClassStaticBlockDeclaration:()=>Ml,isClassThisAssignmentBlock:()=>gM,isCollapsedRange:()=>XZe,isColonToken:()=>qke,isCommaExpression:()=>NV,isCommaListExpression:()=>$P,isCommaSequence:()=>XP,isCommaToken:()=>Uke,isComment:()=>cX,isCommonJsExportPropertyAssignment:()=>uq,isCommonJsExportedExpression:()=>Wbe,isCompoundAssignment:()=>fM,isComputedNonLiteralName:()=>rj,isComputedPropertyName:()=>Ls,isConciseBody:()=>RU,isConditionalExpression:()=>FB,isConditionalTypeNode:()=>yB,isConstTypeReference:()=>U3,isConstructSignatureDeclaration:()=>yV,isConstructorDeclaration:()=>dc,isConstructorTypeNode:()=>KP,isContextualKeyword:()=>kq,isContinueStatement:()=>JYe,isCustomPrologue:()=>lj,isDebuggerStatement:()=>UYe,isDeclaration:()=>Y1,isDeclarationBindingElement:()=>GO,isDeclarationFileName:()=>Xd,isDeclarationName:()=>Q3,isDeclarationNameOfEnumOrNamespace:()=>mle,isDeclarationReadonly:()=>eq,isDeclarationStatement:()=>fbe,isDeclarationWithTypeParameterChildren:()=>x0e,isDeclarationWithTypeParameters:()=>D0e,isDecorator:()=>p1,isDecoratorTarget:()=>H9e,isDefaultClause:()=>BV,isDefaultImport:()=>s7,isDefaultModifier:()=>tY,isDefaultedExpandoInitializer:()=>iye,isDeleteExpression:()=>rFe,isDeleteTarget:()=>j0e,isDeprecatedDeclaration:()=>PX,isDestructuringAssignment:()=>u5,isDiagnosticWithLocation:()=>Cfe,isDiskPathRoot:()=>bse,isDoStatement:()=>WYe,isDocumentRegistryEntry:()=>eK,isDotDotDotToken:()=>XZ,isDottedName:()=>mP,isDynamicName:()=>Sq,isESSymbolIdentifier:()=>KZe,isEffectiveExternalModule:()=>a7,isEffectiveModuleDeclaration:()=>Tbe,isEffectiveStrictModeSourceFile:()=>g0e,isElementAccessChain:()=>Vse,isElementAccessExpression:()=>W0,isEmittedFileOfProgram:()=>w7e,isEmptyArrayLiteral:()=>Mye,isEmptyBindingElement:()=>P2e,isEmptyBindingPattern:()=>N2e,isEmptyObjectLiteral:()=>cle,isEmptyStatement:()=>vce,isEmptyStringLiteral:()=>S0e,isEntityName:()=>om,isEntityNameExpression:()=>Xl,isEnumConst:()=>x2,isEnumDeclaration:()=>Mv,isEnumMember:()=>K2,isEqualityOperatorKind:()=>kX,isEqualsGreaterThanToken:()=>Zke,isExclamationToken:()=>bV,isExcludedFile:()=>ZFe,isExclusivelyTypeOnlyImportOrExport:()=>k1e,isExpandoPropertyDeclaration:()=>fZ,isExportAssignment:()=>ec,isExportDeclaration:()=>Wc,isExportModifier:()=>w7,isExportName:()=>gY,isExportNamespaceAsDefaultDeclaration:()=>ZU,isExportOrDefaultModifier:()=>IV,isExportSpecifier:()=>X1,isExportsIdentifier:()=>ik,isExportsOrModuleExportsOrAlias:()=>J2,isExpression:()=>Wt,isExpressionNode:()=>q_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>J9e,isExpressionOfOptionalChainRoot:()=>TU,isExpressionStatement:()=>Id,isExpressionWithTypeArguments:()=>l5,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Wj,isExternalModule:()=>Bc,isExternalModuleAugmentation:()=>_2,isExternalModuleImportEqualsDeclaration:()=>vv,isExternalModuleIndicator:()=>qO,isExternalModuleNameRelative:()=>Md,isExternalModuleReference:()=>u_,isExternalModuleSymbol:()=>jH,isExternalOrCommonJsModule:()=>lm,isFileLevelReservedGeneratedIdentifier:()=>WO,isFileLevelUniqueName:()=>UU,isFileProbablyExternalModule:()=>jV,isFirstDeclarationOfSymbolParameter:()=>cfe,isFixablePromiseHandler:()=>$fe,isForInOrOfStatement:()=>N8,isForInStatement:()=>sY,isForInitializer:()=>r4,isForOfStatement:()=>FV,isForStatement:()=>Dk,isFunctionBlock:()=>C2,isFunctionBody:()=>e0e,isFunctionDeclaration:()=>Xc,isFunctionExpression:()=>F0,isFunctionExpressionOrArrowFunction:()=>M2,isFunctionLike:()=>xo,isFunctionLikeDeclaration:()=>K0,isFunctionLikeKind:()=>u7,isFunctionLikeOrClassStaticBlockDeclaration:()=>w8,isFunctionOrConstructorTypeNode:()=>ibe,isFunctionOrModuleBlock:()=>qse,isFunctionSymbol:()=>uye,isFunctionTypeNode:()=>n3,isFutureReservedKeyword:()=>jZe,isGeneratedIdentifier:()=>ul,isGeneratedPrivateIdentifier:()=>Jy,isGetAccessor:()=>Tx,isGetAccessorDeclaration:()=>Mm,isGetOrSetAccessorDeclaration:()=>BU,isGlobalDeclaration:()=>Pit,isGlobalScopeAugmentation:()=>Zg,isGrammarError:()=>Fbe,isHeritageClause:()=>fm,isHoistedFunction:()=>iq,isHoistedVariableStatement:()=>nq,isIdentifier:()=>at,isIdentifierANonContextualKeyword:()=>Fq,isIdentifierName:()=>cye,isIdentifierOrThisTypeNode:()=>LFe,isIdentifierPart:()=>pv,isIdentifierStart:()=>W_,isIdentifierText:()=>Tm,isIdentifierTypePredicate:()=>$be,isIdentifierTypeReference:()=>mke,isIfStatement:()=>_k,isIgnoredFileFromWildCardWatching:()=>EH,isImplicitGlob:()=>yle,isImportAttribute:()=>cFe,isImportAttributeName:()=>X2e,isImportAttributes:()=>lY,isImportCall:()=>cm,isImportClause:()=>i_,isImportDeclaration:()=>Ad,isImportEqualsDeclaration:()=>g1,isImportKeyword:()=>HP,isImportMeta:()=>H8,isImportOrExportSpecifier:()=>n7,isImportOrExportSpecifierName:()=>_Se,isImportSpecifier:()=>Cf,isImportTypeAssertionContainer:()=>qYe,isImportTypeNode:()=>iD,isImportableFile:()=>Pfe,isInComment:()=>f5,isInCompoundLikeAssignment:()=>R0e,isInExpressionContext:()=>fq,isInJSDoc:()=>pj,isInJSFile:()=>eu,isInJSXText:()=>X9e,isInJsonFile:()=>pq,isInNonReferenceComment:()=>aSe,isInReferenceComment:()=>rSe,isInRightSideOfInternalImportEqualsDeclaration:()=>YQ,isInString:()=>Pk,isInTemplateString:()=>Jhe,isInTopLevelContext:()=>lq,isInTypeQuery:()=>sk,isIncrementalCompilation:()=>Yj,isIndexSignatureDeclaration:()=>pk,isIndexedAccessTypeNode:()=>M7,isInferTypeNode:()=>L7,isInfinityOrNaNString:()=>TP,isInitializedProperty:()=>dH,isInitializedVariable:()=>Uj,isInsideJsxElement:()=>sX,isInsideJsxElementOrAttribute:()=>Q9e,isInsideNodeModules:()=>YH,isInsideTemplateLiteral:()=>RH,isInstanceOfExpression:()=>Rq,isInstantiatedModule:()=>Ide,isInterfaceDeclaration:()=>Dh,isInternalDeclaration:()=>a1e,isInternalModuleImportEqualsDeclaration:()=>J8,isInternalName:()=>zce,isIntersectionTypeNode:()=>bB,isIntrinsicJsxName:()=>uB,isIterationStatement:()=>wx,isJSDoc:()=>Rp,isJSDocAllType:()=>pFe,isJSDocAugmentsTag:()=>wB,isJSDocAuthorTag:()=>eQe,isJSDocCallbackTag:()=>Fce,isJSDocClassTag:()=>EFe,isJSDocCommentContainingNode:()=>VU,isJSDocConstructSignature:()=>Y8,isJSDocDeprecatedTag:()=>Tce,isJSDocEnumTag:()=>wV,isJSDocFunctionType:()=>BB,isJSDocImplementsTag:()=>Lce,isJSDocIndexSignature:()=>gq,isJSDocLikeText:()=>Gce,isJSDocLink:()=>fFe,isJSDocLinkCode:()=>mFe,isJSDocLinkLike:()=>r7,isJSDocLinkPlain:()=>QYe,isJSDocMemberName:()=>zv,isJSDocNameReference:()=>YP,isJSDocNamepathType:()=>XYe,isJSDocNamespaceBody:()=>CZe,isJSDocNode:()=>P8,isJSDocNonNullableType:()=>cY,isJSDocNullableType:()=>SB,isJSDocOptionalParameter:()=>rV,isJSDocOptionalType:()=>kce,isJSDocOverloadTag:()=>TB,isJSDocOverrideTag:()=>hY,isJSDocParameterTag:()=>pg,isJSDocPrivateTag:()=>Sce,isJSDocPropertyLikeTag:()=>HO,isJSDocPropertyTag:()=>DFe,isJSDocProtectedTag:()=>Bce,isJSDocPublicTag:()=>Ace,isJSDocReadonlyTag:()=>wce,isJSDocReturnTag:()=>fY,isJSDocSatisfiesExpression:()=>zle,isJSDocSatisfiesTag:()=>mY,isJSDocSeeTag:()=>tQe,isJSDocSignature:()=>Iv,isJSDocTag:()=>M8,isJSDocTemplateTag:()=>gg,isJSDocThisTag:()=>_Fe,isJSDocThrowsTag:()=>nQe,isJSDocTypeAlias:()=>K4,isJSDocTypeAssertion:()=>eM,isJSDocTypeExpression:()=>bk,isJSDocTypeLiteral:()=>V7,isJSDocTypeTag:()=>QP,isJSDocTypedefTag:()=>LB,isJSDocUnknownTag:()=>iQe,isJSDocUnknownType:()=>gFe,isJSDocVariadicType:()=>dY,isJSXTagName:()=>G8,isJsonEqual:()=>oZ,isJsonSourceFile:()=>H4,isJsxAttribute:()=>aE,isJsxAttributeLike:()=>OU,isJsxAttributeName:()=>Cke,isJsxAttributes:()=>V2,isJsxChild:()=>QO,isJsxClosingElement:()=>O2,isJsxClosingFragment:()=>dFe,isJsxElement:()=>u3,isJsxExpression:()=>ZP,isJsxFragment:()=>j2,isJsxNamespacedName:()=>mg,isJsxOpeningElement:()=>rE,isJsxOpeningFragment:()=>O7,isJsxOpeningLikeElement:()=>Ph,isJsxOpeningLikeElementTagName:()=>K9e,isJsxSelfClosingElement:()=>vk,isJsxSpreadAttribute:()=>j7,isJsxTagNameExpression:()=>KN,isJsxText:()=>S7,isJumpStatementTarget:()=>LH,isKeyword:()=>nf,isKeywordOrPunctuation:()=>yq,isKnownSymbol:()=>Mj,isLabelName:()=>Ihe,isLabelOfLabeledStatement:()=>zhe,isLabeledStatement:()=>R2,isLateVisibilityPaintedStatement:()=>QU,isLeftHandSideExpression:()=>_f,isLeftHandSideOfAssignment:()=>QZe,isLet:()=>tq,isLineBreak:()=>q1,isLiteralComputedPropertyDeclarationName:()=>Tj,isLiteralExpression:()=>m2,isLiteralExpressionOfObject:()=>Jse,isLiteralImportTypeNode:()=>Mx,isLiteralKind:()=>ON,isLiteralLikeAccess:()=>Dq,isLiteralLikeElementAccess:()=>xj,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>eX,isLiteralTypeLikeExpression:()=>lQe,isLiteralTypeLiteral:()=>obe,isLiteralTypeNode:()=>Nv,isLocalName:()=>uD,isLogicalOperator:()=>Lye,isLogicalOrCoalescingAssignmentExpression:()=>ale,isLogicalOrCoalescingAssignmentOperator:()=>fP,isLogicalOrCoalescingBinaryExpression:()=>Kj,isLogicalOrCoalescingBinaryOperator:()=>Hj,isMappedTypeNode:()=>GP,isMemberName:()=>G_,isMetaProperty:()=>JP,isMethodDeclaration:()=>cc,isMethodOrAccessor:()=>T8,isMethodSignature:()=>i3,isMinusToken:()=>gce,isMissingDeclaration:()=>YYe,isModifier:()=>Yo,isModifierKind:()=>QD,isModifierLike:()=>rl,isModuleAugmentationExternal:()=>m0e,isModuleBlock:()=>uE,isModuleBody:()=>cbe,isModuleDeclaration:()=>Ec,isModuleExportsAccessExpression:()=>Z_,isModuleIdentifier:()=>N0e,isModuleName:()=>MFe,isModuleOrEnumDeclaration:()=>ZO,isModuleReference:()=>pbe,isModuleSpecifierLike:()=>EX,isModuleWithStringLiteralName:()=>YU,isNameOfFunctionDeclaration:()=>Vhe,isNameOfModuleDeclaration:()=>jhe,isNamedClassElement:()=>tbe,isNamedDeclaration:()=>fh,isNamedEvaluation:()=>zf,isNamedEvaluationSource:()=>G0e,isNamedExportBindings:()=>Kse,isNamedExports:()=>Q4,isNamedImportBindings:()=>t0e,isNamedImports:()=>nD,isNamedImportsOrExports:()=>Wq,isNamedTupleMember:()=>WP,isNamespaceBody:()=>vZe,isNamespaceExport:()=>n_,isNamespaceExportDeclaration:()=>SV,isNamespaceImport:()=>Gx,isNamespaceReexportDeclaration:()=>eye,isNewExpression:()=>I2,isNewExpressionTarget:()=>BM,isNoSubstitutionTemplateLiteral:()=>B7,isNode:()=>gZe,isNodeArray:()=>f2,isNodeArrayMultiLine:()=>Vye,isNodeDescendantOf:()=>k2,isNodeKind:()=>KO,isNodeLikeSystem:()=>doe,isNodeModulesDirectory:()=>DU,isNodeWithPossibleHoistedDeclaration:()=>oye,isNonContextualKeyword:()=>W0e,isNonExportDefaultModifier:()=>dQe,isNonGlobalAmbientModule:()=>f0e,isNonGlobalDeclaration:()=>PSe,isNonNullAccess:()=>vke,isNonNullChain:()=>LU,isNonNullExpression:()=>I7,isNonStaticMethodOrAccessorWithPrivateName:()=>WAe,isNotEmittedOrPartiallyEmittedNode:()=>xZe,isNotEmittedStatement:()=>bce,isNullishCoalesce:()=>Hse,isNumber:()=>$D,isNumericLiteral:()=>Rf,isNumericLiteralName:()=>t3,isObjectBindingElementWithoutPropertyName:()=>KH,isObjectBindingOrAssignmentElement:()=>$O,isObjectBindingOrAssignmentPattern:()=>Zse,isObjectBindingPattern:()=>Mp,isObjectLiteralElement:()=>i0e,isObjectLiteralElementLike:()=>q3,isObjectLiteralExpression:()=>Cs,isObjectLiteralMethod:()=>Np,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>rq,isObjectTypeDeclaration:()=>_7,isOctalDigit:()=>bU,isOmittedExpression:()=>kd,isOptionalChain:()=>Z1,isOptionalChainRoot:()=>zN,isOptionalDeclaration:()=>NP,isOptionalJSDocPropertyLikeTag:()=>uV,isOptionalTypeNode:()=>_ce,isOuterExpression:()=>_Y,isOutermostOptionalChain:()=>IN,isOverrideModifier:()=>eFe,isPackedArrayLiteral:()=>Nle,isParameter:()=>eo,isParameterDeclaration:()=>A2,isParameterOrCatchClauseVariable:()=>Ple,isParameterPropertyDeclaration:()=>Pf,isParameterPropertyModifier:()=>jN,isParenthesizedExpression:()=>vf,isParenthesizedTypeNode:()=>N7,isParseTreeNode:()=>MN,isPartOfTypeNode:()=>U_,isPartOfTypeQuery:()=>mq,isPartiallyEmittedExpression:()=>oY,isPatternMatch:()=>$$,isPinnedComment:()=>qU,isPlainJsFile:()=>tj,isPlusToken:()=>pce,isPossiblyTypeArgumentPosition:()=>IH,isPostfixUnaryExpression:()=>xce,isPrefixUnaryExpression:()=>Pv,isPrivateIdentifier:()=>Xr,isPrivateIdentifierClassElementDeclaration:()=>mh,isPrivateIdentifierPropertyAccessExpression:()=>B8,isPrivateIdentifierSymbol:()=>hye,isProgramBundleEmitBuildInfo:()=>J7e,isProgramUptoDate:()=>B1e,isPrologueDirective:()=>Lp,isPropertyAccessChain:()=>wU,isPropertyAccessEntityNameExpression:()=>Gj,isPropertyAccessExpression:()=>Iu,isPropertyAccessOrQualifiedName:()=>rbe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ube,isPropertyAssignment:()=>Gc,isPropertyDeclaration:()=>bo,isPropertyName:()=>Ac,isPropertyNameLiteral:()=>Qg,isPropertySignature:()=>Pm,isProtoSetter:()=>fye,isPrototypeAccess:()=>Rx,isPrototypePropertyAssignment:()=>bj,isPunctuation:()=>K0e,isPushOrUnshiftIdentifier:()=>J0e,isQualifiedName:()=>xf,isQuestionDotToken:()=>eY,isQuestionOrExclamationToken:()=>TFe,isQuestionOrPlusOrMinusToken:()=>PFe,isQuestionToken:()=>Kx,isRawSourceMap:()=>jAe,isReadonlyKeyword:()=>Qke,isReadonlyKeywordOrPlusOrMinusToken:()=>NFe,isRecognizedTripleSlashComment:()=>l0e,isReferenceFileLocation:()=>UB,isReferencedFile:()=>Wv,isRegularExpressionLiteral:()=>fce,isRequireCall:()=>Df,isRequireVariableStatement:()=>T0e,isRestParameter:()=>J_,isRestTypeNode:()=>Dce,isReturnStatement:()=>zp,isReturnStatementWithFixablePromiseHandler:()=>WX,isRightSideOfAccessExpression:()=>lle,isRightSideOfInstanceofExpression:()=>Pye,isRightSideOfPropertyAccess:()=>iw,isRightSideOfQualifiedName:()=>G9e,isRightSideOfQualifiedNameOrPropertyAccess:()=>pP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Nye,isRootedDiskPath:()=>Nf,isSameEntityName:()=>$8,isSatisfiesExpression:()=>aFe,isScopeMarker:()=>sbe,isSemicolonClassElement:()=>oFe,isSetAccessor:()=>XD,isSetAccessorDeclaration:()=>Of,isShebangTrivia:()=>Sse,isShiftOperatorOrHigher:()=>Hce,isShorthandAmbientModuleSymbol:()=>JN,isShorthandPropertyAssignment:()=>mm,isSignedNumericLiteral:()=>Aq,isSimpleCopiableExpression:()=>U2,isSimpleInlineableExpression:()=>oE,isSingleOrDoubleQuote:()=>gj,isSourceFile:()=>ca,isSourceFileFromLibrary:()=>HM,isSourceFileJS:()=>ph,isSourceFileNotJS:()=>TZe,isSourceFileNotJson:()=>w0e,isSourceMapping:()=>VAe,isSpecialPropertyDeclaration:()=>nye,isSpreadAssignment:()=>c5,isSpreadElement:()=>nE,isStatement:()=>na,isStatementButNotDeclaration:()=>YO,isStatementOrBlock:()=>mbe,isStatementWithLocals:()=>kbe,isStatic:()=>To,isStaticModifier:()=>T7,isString:()=>Ja,isStringAKeyword:()=>VZe,isStringANonContextualKeyword:()=>h7,isStringAndEmptyAnonymousObjectIntersection:()=>uSe,isStringDoubleQuoted:()=>_q,isStringLiteral:()=>ns,isStringLiteralLike:()=>t0,isStringLiteralOrJsxExpression:()=>gbe,isStringLiteralOrTemplate:()=>kSe,isStringOrNumericLiteralLike:()=>Nm,isStringOrRegularExpressionOrTemplateLiteral:()=>qhe,isStringTextContainingNode:()=>$se,isSuperCall:()=>ek,isSuperKeyword:()=>VP,isSuperOrSuperProperty:()=>wZe,isSuperProperty:()=>tf,isSupportedSourceFileName:()=>cke,isSwitchStatement:()=>AV,isSyntaxList:()=>NB,isSyntheticExpression:()=>KYe,isSyntheticReference:()=>R7,isTagName:()=>Rhe,isTaggedTemplateExpression:()=>Ek,isTaggedTemplateTag:()=>V9e,isTemplateExpression:()=>rY,isTemplateHead:()=>DB,isTemplateLiteral:()=>L8,isTemplateLiteralKind:()=>Sx,isTemplateLiteralToken:()=>Y2e,isTemplateLiteralTypeNode:()=>HYe,isTemplateLiteralTypeSpan:()=>nFe,isTemplateMiddle:()=>$ke,isTemplateMiddleOrTemplateTail:()=>NU,isTemplateSpan:()=>UP,isTemplateTail:()=>mce,isTextWhiteSpaceLike:()=>cSe,isThis:()=>nw,isThisContainerOrFunctionBlock:()=>Ybe,isThisIdentifier:()=>w2,isThisInTypeQuery:()=>m7,isThisInitializedDeclaration:()=>cq,isThisInitializedObjectBindingExpression:()=>Xbe,isThisProperty:()=>hj,isThisTypeNode:()=>uY,isThisTypeParameter:()=>LP,isThisTypePredicate:()=>BZe,isThrowStatement:()=>Cce,isToken:()=>i7,isTokenKind:()=>Gse,isTraceEnabled:()=>rD,isTransientSymbol:()=>UE,isTrivia:()=>tB,isTryStatement:()=>xk,isTupleTypeNode:()=>CB,isTypeAlias:()=>Fj,isTypeAliasDeclaration:()=>Ip,isTypeAssertionExpression:()=>uFe,isTypeDeclaration:()=>mB,isTypeElement:()=>Uy,isTypeKeyword:()=>NM,isTypeKeywordToken:()=>tfe,isTypeKeywordTokenOrIdentifier:()=>fX,isTypeLiteralNode:()=>hm,isTypeNode:()=>Qr,isTypeNodeKind:()=>Ele,isTypeOfExpression:()=>kB,isTypeOnlyExportDeclaration:()=>Q2e,isTypeOnlyImportDeclaration:()=>PU,isTypeOnlyImportOrExportDeclaration:()=>p2,isTypeOperatorNode:()=>P7,isTypeParameterDeclaration:()=>Al,isTypePredicateNode:()=>iY,isTypeQueryNode:()=>vB,isTypeReferenceNode:()=>Y4,isTypeReferenceType:()=>KU,isTypeUsableAsPropertyName:()=>q4,isUMDExportSymbol:()=>Kq,isUnaryExpression:()=>Xse,isUnaryExpressionWithWrite:()=>abe,isUnicodeIdentifierStart:()=>vU,isUnionTypeNode:()=>Lv,isUnparsedNode:()=>Wse,isUnparsedPrepend:()=>hFe,isUnparsedSource:()=>Ck,isUnparsedTextLike:()=>Z2e,isUrl:()=>_2e,isValidBigIntString:()=>sZ,isValidESSymbolDeclaration:()=>Gbe,isValidTypeOnlyAliasUseSite:()=>Bv,isValueSignatureDeclaration:()=>sye,isVarAwaitUsing:()=>oj,isVarConst:()=>V8,isVarUsing:()=>sj,isVariableDeclaration:()=>ua,isVariableDeclarationInVariableStatement:()=>UN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>b2,isVariableDeclarationInitializedToRequire:()=>Eq,isVariableDeclarationList:()=>Fd,isVariableLike:()=>K8,isVariableLikeOrAccessor:()=>Kbe,isVariableStatement:()=>Gl,isVoidExpression:()=>z7,isWatchSet:()=>tYe,isWhileStatement:()=>GYe,isWhiteSpaceLike:()=>$3,isWhiteSpaceSingleLine:()=>Ug,isWithStatement:()=>sFe,isWriteAccess:()=>E7,isWriteOnlyAccess:()=>Hq,isYieldExpression:()=>aY,jsxModeNeedsExplicitImport:()=>Afe,keywordPart:()=>Vf,last:()=>Cr,lastOrUndefined:()=>Yu,length:()=>S,libMap:()=>SY,libs:()=>qV,lineBreakPart:()=>ow,linkNamePart:()=>gSe,linkPart:()=>hfe,linkTextPart:()=>vX,listFiles:()=>U1e,loadModuleFromGlobalCache:()=>bAe,loadWithModeAwareCache:()=>xH,makeIdentifierFromModuleName:()=>wbe,makeImport:()=>p5,makeImportIfNecessary:()=>lSe,makeStringLiteral:()=>t9,mangleScopedPackageName:()=>WB,map:()=>Kt,mapAllOrFail:()=>la,mapDefined:()=>Ui,mapDefinedEntries:()=>j0,mapDefinedIterator:()=>Uo,mapEntries:()=>ki,mapIterator:()=>zr,mapOneOrMany:()=>yfe,mapToDisplayParts:()=>qx,matchFiles:()=>Fle,matchPatternOrExact:()=>Sle,matchedText:()=>XCe,matchesExclude:()=>AY,maybeBind:()=>wo,maybeSetLocalizedDiagnosticMessages:()=>Xye,memoize:()=>Nh,memoizeCached:()=>JCe,memoizeOne:()=>VE,memoizeWeak:()=>cqe,metadataHelper:()=>FZ,min:()=>aoe,minAndMax:()=>hke,missingFileModifiedTime:()=>H_,modifierToFlag:()=>g7,modifiersToFlags:()=>eE,moduleOptionDeclaration:()=>lde,moduleResolutionIsEqualTo:()=>bbe,moduleResolutionNameAndModeGetter:()=>CH,moduleResolutionOptionDeclarations:()=>BY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>v7,moduleResolutionUsesNodeModules:()=>mX,moduleSpecifiers:()=>$2,moveEmitHelpers:()=>jke,moveRangeEnd:()=>jq,moveRangePastDecorators:()=>a5,moveRangePastModifiers:()=>tE,moveRangePos:()=>Fv,moveSyntheticComments:()=>Ike,mutateMap:()=>sB,mutateMapSkippingNewValues:()=>X3,needsParentheses:()=>bX,needsScopeMarker:()=>IU,newCaseClauseTracker:()=>IX,newPrivateEnvironment:()=>$Ae,noEmitNotification:()=>hH,noEmitSubstitution:()=>DM,noTransformers:()=>l1e,noTruncationMaximumTruncationLength:()=>pZ,nodeCanBeDecorated:()=>hq,nodeHasName:()=>RO,nodeIsDecorated:()=>ZN,nodeIsMissing:()=>Yl,nodeIsPresent:()=>j4,nodeIsSynthesized:()=>al,nodeModuleNameResolver:()=>pAe,nodeModulesPathPart:()=>a_,nodeNextJsonConfigResolver:()=>gAe,nodeOrChildIsDecorated:()=>mj,nodeOverlapsWithStartEnd:()=>tX,nodePosToString:()=>bZe,nodeSeenTracker:()=>e9,nodeStartsNewLexicalEnvironment:()=>$0e,nodeToDisplayParts:()=>Sit,noop:()=>Ms,noopFileWatcher:()=>XB,normalizePath:()=>Go,normalizeSlashes:()=>U1,not:()=>q$,notImplemented:()=>lo,notImplementedResolver:()=>pQ,nullNodeConverters:()=>ece,nullParenthesizerRules:()=>Xle,nullTransformationContext:()=>Eg,objectAllocator:()=>Yd,operatorPart:()=>zM,optionDeclarations:()=>r3,optionMapToObject:()=>nde,optionsAffectingProgramStructure:()=>mde,optionsForBuild:()=>gde,optionsForWatch:()=>OB,optionsHaveChanges:()=>z8,optionsHaveModuleResolutionChanges:()=>xbe,or:()=>lg,orderedRemoveItem:()=>mO,orderedRemoveItemAt:()=>dv,outFile:()=>b0,packageIdToPackageName:()=>JU,packageIdToString:()=>Nx,paramHelper:()=>AZ,parameterIsThisKeyword:()=>B2,parameterNamePart:()=>hSe,parseBaseNodeFactory:()=>qce,parseBigInt:()=>fke,parseBuildCommand:()=>KQe,parseCommandLine:()=>VQe,parseCommandLineWorker:()=>Qce,parseConfigFileTextToJson:()=>ede,parseConfigFileWithSystem:()=>Stt,parseConfigHostFromCompilerHostLike:()=>FQ,parseCustomTypeOption:()=>kY,parseIsolatedEntityName:()=>K7,parseIsolatedJSDocComment:()=>HFe,parseJSDocTypeExpressionForTests:()=>SQe,parseJsonConfigFileContent:()=>nXe,parseJsonSourceFileConfigFileContent:()=>JV,parseJsonText:()=>HV,parseListTypeOption:()=>WFe,parseNodeFactory:()=>r_,parseNodeModuleFromPath:()=>iH,parsePackageName:()=>rH,parsePseudoBigInt:()=>AP,parseValidBigInt:()=>Lle,patchWriteFileEnsuringDirectory:()=>g2e,pathContainsNodeModules:()=>$7,pathIsAbsolute:()=>AN,pathIsBareSpecifier:()=>yse,pathIsRelative:()=>am,patternText:()=>QCe,perfLogger:()=>dh,performIncrementalCompilation:()=>Ltt,performance:()=>c2e,plainJSErrors:()=>BQ,positionBelongsToNode:()=>Khe,positionIsASICandidate:()=>AX,positionIsSynthesized:()=>fg,positionsAreOnSameLine:()=>$4,preProcessFile:()=>tnt,probablyUsesSemicolons:()=>qH,processCommentPragmas:()=>$ce,processPragmasIntoFields:()=>Uce,processTaggedTemplateExpression:()=>t1e,programContainsEsModules:()=>sSe,programContainsModules:()=>oSe,projectReferenceIsEqualTo:()=>r0e,propKeyHelper:()=>jZ,propertyNamePart:()=>fSe,pseudoBigIntToString:()=>P2,punctuationPart:()=>th,pushIfUnique:()=>va,quote:()=>OM,quotePreferenceFromString:()=>rfe,rangeContainsPosition:()=>NH,rangeContainsPositionExclusive:()=>PH,rangeContainsRange:()=>jm,rangeContainsRangeExclusive:()=>$9e,rangeContainsStartEnd:()=>MH,rangeEndIsOnSameLineAsRangeStart:()=>$j,rangeEndPositionsAreOnSameLine:()=>Oye,rangeEquals:()=>zi,rangeIsOnSingleLine:()=>ck,rangeOfNode:()=>wle,rangeOfTypeParameters:()=>Tle,rangeOverlapsWithStartEnd:()=>wM,rangeStartIsOnSameLineAsRangeEnd:()=>jye,rangeStartPositionsAreOnSameLine:()=>Vq,readBuilderProgram:()=>VQ,readConfigFile:()=>WV,readHelper:()=>RZ,readJson:()=>gP,readJsonConfigFile:()=>$Fe,readJsonOrUndefined:()=>dle,reduceEachLeadingCommentRange:()=>b2e,reduceEachTrailingCommentRange:()=>y2e,reduceLeft:()=>tn,reduceLeftIterator:()=>ue,reducePathComponents:()=>Wy,refactor:()=>u9,regExpEscape:()=>lYe,relativeComplement:()=>ia,removeAllComments:()=>pV,removeEmitHelper:()=>OYe,removeExtension:()=>tV,removeFileExtension:()=>Eh,removeIgnoredPath:()=>LQ,removeMinAndVersionNumbers:()=>ooe,removeOptionality:()=>eSe,removePrefix:()=>bN,removeSuffix:()=>E8,removeTrailingDirectorySeparator:()=>hv,repeatString:()=>VH,replaceElement:()=>Ud,resolutionExtensionIsTSOrJson:()=>kP,resolveConfigFileProjectName:()=>rhe,resolveJSModule:()=>fAe,resolveLibrary:()=>OY,resolveModuleName:()=>HB,resolveModuleNameFromCache:()=>jXe,resolvePackageNameToPackageJson:()=>Dde,resolvePath:()=>yx,resolveProjectReferencePath:()=>qB,resolveTripleslashReference:()=>DQ,resolveTypeReferenceDirective:()=>cAe,resolvingEmptyArray:()=>mZ,restHelper:()=>PZ,returnFalse:()=>sg,returnNoopFileWatcher:()=>ew,returnTrue:()=>G3,returnUndefined:()=>cv,returnsPromise:()=>Jfe,runInitializersHelper:()=>BZ,sameFlatMap:()=>ha,sameMap:()=>Mu,sameMapping:()=>wet,scanShebangTrivia:()=>Bse,scanTokenAtPosition:()=>jbe,scanner:()=>ih,screenStartingMessageCodes:()=>jQ,semanticDiagnosticsOptionDeclarations:()=>dde,serializeCompilerOptions:()=>rde,server:()=>$ct,servicesVersion:()=>eBe,setCommentRange:()=>Sc,setConfigFileInOptions:()=>ode,setConstantValue:()=>Oke,setEachParent:()=>fB,setEmitFlags:()=>Qn,setFunctionNameHelper:()=>VZ,setGetSourceFileAsHashVersioned:()=>OQ,setIdentifierAutoGenerate:()=>_V,setIdentifierGeneratedImportReference:()=>Kke,setIdentifierTypeArguments:()=>s5,setInternalEmitFlags:()=>gV,setLocalizedDiagnosticMessages:()=>Qye,setModuleDefaultHelper:()=>WZ,setNodeFlags:()=>gke,setObjectAllocator:()=>Yye,setOriginalNode:()=>lu,setParent:()=>bs,setParentRecursive:()=>jx,setPrivateIdentifier:()=>Ak,setSnippetElement:()=>sce,setSourceMapRange:()=>ks,setStackTraceLimit:()=>Tqe,setStartsOnNewLine:()=>CZ,setSyntheticLeadingComments:()=>Tv,setSyntheticTrailingComments:()=>k7,setSys:()=>zqe,setSysLog:()=>m2e,setTextRange:()=>Pt,setTextRangeEnd:()=>hB,setTextRangePos:()=>SP,setTextRangePosEnd:()=>e_,setTextRangePosWidth:()=>BP,setTokenSourceMapRange:()=>zke,setTypeNode:()=>Vke,setUILocale:()=>qCe,setValueDeclaration:()=>yj,shouldAllowImportingTsExtension:()=>GB,shouldPreserveConstEnums:()=>dk,shouldResolveJsRequire:()=>Zq,shouldUseUriStyleNodeCoreModules:()=>MX,showModuleSpecifier:()=>Gye,signatureHasLiteralTypes:()=>Rde,signatureHasRestParameter:()=>eh,signatureToDisplayParts:()=>ffe,single:()=>Cd,singleElementArray:()=>jy,singleIterator:()=>Ra,singleOrMany:()=>k0,singleOrUndefined:()=>Aa,skipAlias:()=>Q1,skipAssertions:()=>aQe,skipConstraint:()=>ife,skipOuterExpressions:()=>_c,skipParentheses:()=>s0,skipPartiallyEmittedExpressions:()=>wp,skipTrivia:()=>ms,skipTypeChecking:()=>FP,skipTypeParentheses:()=>O0e,skipWhile:()=>t2e,sliceAfter:()=>Ble,some:()=>qe,sort:()=>Lh,sortAndDeduplicate:()=>mi,sortAndDeduplicateDiagnostics:()=>k8,sourceFileAffectingCompilerOptions:()=>wY,sourceFileMayBeEmitted:()=>f7,sourceMapCommentRegExp:()=>XY,sourceMapCommentRegExpDontCareLineStart:()=>Gde,spacePart:()=>Jl,spanMap:()=>Xs,spreadArrayHelper:()=>OZ,stableSort:()=>ac,startEndContainsRange:()=>Hhe,startEndOverlapsWithStartEnd:()=>iX,startOnNewLine:()=>xh,startTracing:()=>d2e,startsWith:()=>Na,startsWithDirectory:()=>Fse,startsWithUnderscore:()=>Ffe,startsWithUseStrict:()=>kFe,stringContainsAt:()=>NSe,stringToToken:()=>c2,stripQuotes:()=>G4,supportedDeclarationExtensions:()=>lV,supportedJSExtensions:()=>Zle,supportedJSExtensionsFlat:()=>gB,supportedLocaleDirectories:()=>u0e,supportedTSExtensions:()=>pB,supportedTSExtensionsFlat:()=>qle,supportedTSImplementationExtensions:()=>cV,suppressLeadingAndTrailingTrivia:()=>Hf,suppressLeadingTrivia:()=>gfe,suppressTrailingTrivia:()=>CSe,symbolEscapedNameNoDefault:()=>gX,symbolName:()=>sc,symbolNameNoDefault:()=>pX,symbolPart:()=>dSe,symbolToDisplayParts:()=>IM,syntaxMayBeASICandidate:()=>Lfe,syntaxRequiresTrailingSemicolonOrASI:()=>FX,sys:()=>l1,sysLog:()=>vO,tagNamesAreEquivalent:()=>Ov,takeWhile:()=>Y$,targetOptionDeclaration:()=>YV,templateObjectHelper:()=>IZ,testFormatSettings:()=>j9e,textChangeRangeIsUnchanged:()=>T2e,textChangeRangeNewSpan:()=>PN,textChanges:()=>nu,textOrKeywordPart:()=>dfe,textPart:()=>Hm,textRangeContainsPositionInclusive:()=>MO,textSpanContainsPosition:()=>Lse,textSpanContainsTextSpan:()=>A2e,textSpanEnd:()=>gc,textSpanIntersection:()=>w2e,textSpanIntersectsWith:()=>FU,textSpanIntersectsWithPosition:()=>B2e,textSpanIntersectsWithTextSpan:()=>nZe,textSpanIsEmpty:()=>F2e,textSpanOverlap:()=>S2e,textSpanOverlapsWith:()=>iZe,textSpansEqual:()=>aw,textToKeywordObj:()=>NO,timestamp:()=>V0,toArray:()=>qA,toBuilderFileEmit:()=>Z7e,toBuilderStateFileInfoForMultiEmit:()=>q7e,toEditorSettings:()=>mK,toFileNameLowerCase:()=>Jg,toLowerCase:()=>GCe,toPath:()=>H0,toProgramEmitPending:()=>Y7e,tokenIsIdentifierOrKeyword:()=>hh,tokenIsIdentifierOrKeywordOrGreaterThan:()=>v2e,tokenToString:()=>Jo,trace:()=>Sa,tracing:()=>$n,tracingEnabled:()=>EO,transform:()=>ert,transformClassFields:()=>n7e,transformDeclarations:()=>o1e,transformECMAScriptModule:()=>r1e,transformES2015:()=>_7e,transformES2016:()=>E7e,transformES2017:()=>o7e,transformES2018:()=>s7e,transformES2019:()=>l7e,transformES2020:()=>c7e,transformES2021:()=>d7e,transformES5:()=>D7e,transformESDecorators:()=>a7e,transformESNext:()=>h7e,transformGenerators:()=>x7e,transformJsx:()=>g7e,transformLegacyDecorators:()=>r7e,transformModule:()=>u1e,transformNamedEvaluation:()=>jf,transformNodeModule:()=>C7e,transformNodes:()=>fH,transformSystemModule:()=>v7e,transformTypeScript:()=>i7e,transpile:()=>lnt,transpileModule:()=>QSe,transpileOptionValueCompilerOptions:()=>pde,tryAddToSet:()=>Ll,tryAndIgnoreErrors:()=>wX,tryCast:()=>ar,tryDirectoryExists:()=>BX,tryExtractTSExtension:()=>Oq,tryFileExists:()=>ZH,tryGetClassExtendingExpressionWithTypeArguments:()=>ole,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>sle,tryGetDirectories:()=>SX,tryGetExtensionFromPath:()=>e3,tryGetImportFromModuleSpecifier:()=>kj,tryGetJSDocSatisfiesTypeNode:()=>hZ,tryGetModuleNameFromFile:()=>MV,tryGetModuleSpecifierFromDeclaration:()=>U8,tryGetNativePerformanceHooks:()=>o2e,tryGetPropertyAccessOrIdentifierToString:()=>Jj,tryGetPropertyNameOfBindingOrAssignmentElement:()=>xY,tryGetSourceMappingURL:()=>OAe,tryGetTextOfPropertyName:()=>$N,tryIOAndConsumeErrors:()=>TX,tryParsePattern:()=>dB,tryParsePatterns:()=>rZ,tryParseRawSourceMap:()=>Kde,tryReadDirectory:()=>Dfe,tryReadFile:()=>uM,tryRemoveDirectoryPrefix:()=>ble,tryRemoveExtension:()=>dke,tryRemovePrefix:()=>coe,tryRemoveSuffix:()=>YCe,typeAcquisitionDeclarations:()=>QV,typeAliasNamePart:()=>mSe,typeDirectiveIsEqualTo:()=>ybe,typeKeywords:()=>RX,typeParameterNamePart:()=>pSe,typeReferenceResolutionNameAndModeGetter:()=>SQ,typeToDisplayParts:()=>GH,unchangedPollThresholds:()=>CO,unchangedTextChangeRange:()=>XO,unescapeLeadingUnderscores:()=>Yr,unmangleScopedPackageName:()=>oH,unorderedRemoveItem:()=>Oy,unorderedRemoveItemAt:()=>soe,unreachableCodeIsError:()=>ike,unusedLabelIsError:()=>nke,unwrapInnermostStatementOfLabel:()=>F0e,updateErrorForNoInputFiles:()=>FY,updateLanguageServiceSourceFile:()=>Bme,updateMissingFilePathsWatch:()=>p1e,updatePackageJsonWatch:()=>ttt,updateResolutionField:()=>jB,updateSharedExtendedConfigFileWatcher:()=>EQ,updateSourceFile:()=>Jce,updateWatchingWildcardDirectories:()=>gH,usesExtensionsOnImports:()=>lke,usingSingleLineStringWriter:()=>WN,utf16EncodeAsString:()=>y8,validateLocaleAndSetLanguage:()=>rZe,valuesHelper:()=>HZ,version:()=>_,versionMajorMinor:()=>g,visitArray:()=>lH,visitCommaListElements:()=>cH,visitEachChild:()=>un,visitFunctionBody:()=>Rm,visitIterationBody:()=>Mh,visitLexicalEnvironment:()=>QY,visitNode:()=>yt,visitNodes:()=>Fn,visitParameterList:()=>Dc,walkUpBindingElementsAndPatterns:()=>F8,walkUpLexicalEnvironments:()=>JAe,walkUpOuterExpressions:()=>FFe,walkUpParenthesizedExpressions:()=>t5,walkUpParenthesizedTypes:()=>wj,walkUpParenthesizedTypesAndGetParentAndChild:()=>lye,whitespaceOrMapCommentRegExp:()=>eQ,writeCommentRange:()=>aB,writeFile:()=>lP,writeFileEnsuringDirectories:()=>ile,zipWith:()=>re});var Yv=o({"src/server/_namespaces/ts.ts"(){Ao(),AH(),or(),Gpe(),g9()}}),qct={};h(qct,{ActionInvalidate:()=>$Q,ActionPackageInstalled:()=>B9e,ActionSet:()=>JQ,ActionWatchTypingLocations:()=>FH,Arguments:()=>fhe,AutoImportProviderProject:()=>rge,AuxiliaryProject:()=>nge,CharRangeSection:()=>Ege,CloseFileWatcherEvent:()=>rte,CommandNames:()=>bNe,ConfigFileDiagEvent:()=>ete,ConfiguredProject:()=>age,CreateDirectoryWatcherEvent:()=>ute,CreateFileWatcherEvent:()=>nte,Errors:()=>x5,EventBeginInstallTypes:()=>dhe,EventEndInstallTypes:()=>hhe,EventInitializationFailed:()=>T9e,EventTypesRegistry:()=>w9e,ExternalProject:()=>Jee,GcTimer:()=>Zpe,InferredProject:()=>ige,LargeFileReferencedEvent:()=>Xee,LineIndex:()=>uz,LineLeaf:()=>$K,LineNode:()=>p9,LogLevel:()=>Jpe,Msg:()=>$pe,OpenFileInfoTelemetryEvent:()=>lge,Project:()=>Hk,ProjectInfoTelemetryEvent:()=>ite,ProjectKind:()=>iz,ProjectLanguageServiceStateEvent:()=>tte,ProjectLoadingFinishEvent:()=>Qee,ProjectLoadingStartEvent:()=>Yee,ProjectReferenceProjectLoadKind:()=>hge,ProjectService:()=>fge,ProjectsUpdatedInBackgroundEvent:()=>WK,ScriptInfo:()=>Xpe,ScriptVersionCache:()=>lte,Session:()=>kNe,TextStorage:()=>Qpe,ThrottledOperations:()=>qpe,TypingsCache:()=>ege,allFilesAreJsOrDts:()=>tNe,allRootFilesAreJsOrDts:()=>eNe,asNormalizedPath:()=>bct,convertCompilerOptions:()=>$ee,convertFormatOptions:()=>Fw,convertScriptKindName:()=>sge,convertTypeAcquisition:()=>uNe,convertUserPreferences:()=>rNe,convertWatchOptions:()=>KK,countEachFileTypes:()=>VK,createInstallTypingsRequest:()=>Cct,createModuleSpecifierCache:()=>pNe,createNormalizedPathMap:()=>yct,createPackageJsonCache:()=>gNe,createSortedArray:()=>RLe,emptyArray:()=>Jc,findArgument:()=>pit,forEachResolvedProjectReferenceProject:()=>Aw,formatDiagnosticToProtocol:()=>JK,formatMessage:()=>ENe,getBaseConfigFileName:()=>Upe,getLocationInNewDocument:()=>vNe,hasArgument:()=>mit,hasNoTypeScriptSource:()=>iNe,indent:()=>SM,isBackgroundProject:()=>HK,isConfigFile:()=>dNe,isConfiguredProject:()=>Zv,isDynamicFileName:()=>jK,isExternalProject:()=>tge,isInferredProject:()=>kw,isInferredProjectName:()=>PLe,makeAutoImportProviderProjectName:()=>zLe,makeAuxiliaryProjectName:()=>ILe,makeInferredProjectName:()=>MLe,maxFileSize:()=>Zee,maxProgramSizeForNonTsFiles:()=>qee,normalizedPathToPath:()=>OK,nowString:()=>git,nullCancellationToken:()=>CNe,nullTypingsInstaller:()=>Gee,projectContainsInfoDirectly:()=>f9,protocol:()=>XLe,removeSorted:()=>kct,stringifyIndented:()=>tw,toEvent:()=>_Ne,toNormalizedPath:()=>gl,tryConvertScriptKindName:()=>oge,typingsInstaller:()=>LLe,updateProjectIfDirty:()=>Wm});var aXt=o({"src/typescript/_namespaces/ts.server.ts"(){UQ(),g9()}}),Zct={};h(Zct,{ANONYMOUS:()=>OX,AccessFlags:()=>Hoe,AssertionLevel:()=>foe,AssignmentDeclarationKind:()=>Yoe,AssignmentKind:()=>Hle,Associativity:()=>Wle,BreakpointResolver:()=>zme,BuilderFileEmit:()=>H1e,BuilderProgramKind:()=>K1e,BuilderState:()=>Vp,BundleFileSectionKind:()=>pse,CallHierarchy:()=>r9,CharacterCodes:()=>sse,CheckFlags:()=>Ioe,CheckMode:()=>qY,ClassificationType:()=>Lhe,ClassificationTypeNames:()=>The,CommentDirectiveType:()=>Coe,Comparison:()=>x,CompletionInfoFlags:()=>yhe,CompletionTriggerKind:()=>Dhe,Completions:()=>c9,ContainerFlags:()=>Nde,ContextFlags:()=>Soe,Debug:()=>H,DiagnosticCategory:()=>DO,Diagnostics:()=>F,DocumentHighlights:()=>HX,ElementFlags:()=>Voe,EmitFlags:()=>mU,EmitHint:()=>hse,EmitOnly:()=>yoe,EndOfLineState:()=>Ahe,EnumKind:()=>zoe,ExitStatus:()=>koe,ExportKind:()=>Ife,Extension:()=>lse,ExternalEmitHelpers:()=>dse,FileIncludeKind:()=>rU,FilePreprocessingDiagnosticsKind:()=>boe,FileSystemEntryKind:()=>vse,FileWatcherEventKind:()=>xse,FindAllReferences:()=>J0,FlattenLevel:()=>Qde,FlowFlags:()=>_O,ForegroundColorEscapeSequences:()=>P1e,FunctionFlags:()=>Kle,GeneratedIdentifierFlags:()=>uU,GetLiteralTextFlags:()=>Ole,GoToDefinition:()=>xw,HighlightSpanKind:()=>vhe,IdentifierNameMap:()=>q7,IdentifierNameMultiMap:()=>Yde,ImportKind:()=>zfe,ImportsNotUsedAsValues:()=>nse,IndentStyle:()=>Che,IndexFlags:()=>Koe,IndexKind:()=>Joe,InferenceFlags:()=>qoe,InferencePriority:()=>Uoe,InlayHintKind:()=>xhe,InlayHints:()=>Ape,InternalEmitFlags:()=>cse,InternalSymbolName:()=>Roe,InvalidatedProjectKind:()=>che,JSDocParsingMode:()=>_se,JsDoc:()=>qv,JsTyping:()=>a3,JsxEmit:()=>ise,JsxFlags:()=>xoe,JsxReferenceKind:()=>Woe,LanguageServiceMode:()=>ghe,LanguageVariant:()=>ase,LexicalEnvironmentFlags:()=>mse,ListFormat:()=>gse,LogLevel:()=>poe,MemberOverrideStatus:()=>Foe,ModifierFlags:()=>iU,ModuleDetectionKind:()=>Qoe,ModuleInstanceState:()=>Lde,ModuleKind:()=>kN,ModuleResolutionKind:()=>C8,ModuleSpecifierEnding:()=>Yle,NavigateTo:()=>t8e,NavigationBar:()=>d8e,NewLineKind:()=>use,NodeBuilderFlags:()=>Boe,NodeCheckFlags:()=>Ooe,NodeFactoryFlags:()=>rce,NodeFlags:()=>tU,NodeResolutionFeatures:()=>Bde,ObjectFlags:()=>lU,OperationCanceledException:()=>v8,OperatorPrecedence:()=>Gle,OrganizeImports:()=>Hp,OrganizeImportsMode:()=>_he,OuterExpressionKinds:()=>fse,OutliningElementsCollector:()=>Tpe,OutliningSpanKind:()=>khe,OutputFileType:()=>Fhe,PackageJsonAutoImportPreference:()=>phe,PackageJsonDependencyGroup:()=>mhe,PatternMatchKind:()=>KX,PollingInterval:()=>pU,PollingWatchKind:()=>tse,PragmaKindFlags:()=>Ese,PrivateIdentifierKind:()=>hce,ProcessLevel:()=>i1e,ProgramUpdateLevel:()=>E1e,QuotePreference:()=>wfe,RelationComparisonResult:()=>nU,Rename:()=>Ree,ScriptElementKind:()=>Bhe,ScriptElementKindModifier:()=>whe,ScriptKind:()=>dU,ScriptSnapshot:()=>ZQ,ScriptTarget:()=>rse,SemanticClassificationFormat:()=>Ehe,SemanticMeaning:()=>Bfe,SemicolonPreference:()=>bhe,SignatureCheckMode:()=>ZY,SignatureFlags:()=>cU,SignatureHelp:()=>TK,SignatureKind:()=>Goe,SmartSelectionRange:()=>Ppe,SnippetKind:()=>fU,SortKind:()=>hoe,StructureIsReused:()=>aU,SymbolAccessibility:()=>Loe,SymbolDisplay:()=>D5,SymbolDisplayPartKind:()=>SH,SymbolFlags:()=>oU,SymbolFormatFlags:()=>Toe,SyntaxKind:()=>eU,SyntheticSymbolKind:()=>Noe,Ternary:()=>Zoe,ThrottledCancellationToken:()=>Mme,TokenClass:()=>She,TokenFlags:()=>voe,TransformFlags:()=>hU,TypeFacts:()=>UY,TypeFlags:()=>sU,TypeFormatFlags:()=>woe,TypeMapKind:()=>$oe,TypePredicateKind:()=>Poe,TypeReferenceSerializationKind:()=>Moe,UnionReduction:()=>Aoe,UpToDateStatusType:()=>ahe,VarianceFlags:()=>joe,Version:()=>Bp,VersionRange:()=>pO,WatchDirectoryFlags:()=>ose,WatchDirectoryKind:()=>ese,WatchFileKind:()=>Xoe,WatchLogLevel:()=>_1e,WatchType:()=>sd,accessPrivateIdentifier:()=>UAe,addDisposableResourceHelper:()=>ZZ,addEmitFlags:()=>t_,addEmitHelper:()=>F7,addEmitHelpers:()=>tD,addInternalEmitFlags:()=>y7,addNodeFactoryPatcher:()=>LYe,addObjectAllocatorPatcher:()=>Zye,addRange:()=>kn,addRelatedInfo:()=>ps,addSyntheticLeadingComment:()=>RP,addSyntheticTrailingComment:()=>bZ,addToSeen:()=>Pp,advancedAsyncSuperHelper:()=>vV,affectsDeclarationPathOptionDeclarations:()=>fde,affectsEmitOptionDeclarations:()=>hde,allKeysStartWithDot:()=>HY,altDirectorySeparator:()=>AO,and:()=>U$,append:()=>Ei,appendIfUnique:()=>e0,arrayFrom:()=>Ea,arrayIsEqualTo:()=>Hn,arrayIsHomogeneous:()=>pke,arrayIsSorted:()=>ci,arrayOf:()=>rm,arrayReverseIterator:()=>vd,arrayToMap:()=>og,arrayToMultiMap:()=>hO,arrayToNumericMap:()=>ioe,arraysEqual:()=>Zt,assertType:()=>fqe,assign:()=>jE,assignHelper:()=>wZ,asyncDelegator:()=>LZ,asyncGeneratorHelper:()=>TZ,asyncSuperHelper:()=>xV,asyncValues:()=>NZ,attachFileToDiagnostics:()=>D7,awaitHelper:()=>A7,awaiterHelper:()=>MZ,base64decode:()=>Rye,base64encode:()=>Iye,binarySearch:()=>Hl,binarySearchKey:()=>Ca,bindSourceFile:()=>FAe,breakIntoCharacterSpans:()=>USe,breakIntoWordSpans:()=>qSe,buildLinkParts:()=>ESe,buildOpts:()=>TY,buildOverload:()=>gct,bundlerModuleNameResolver:()=>mAe,canBeConvertedToAsync:()=>Ufe,canHaveDecorators:()=>kk,canHaveExportModifier:()=>nV,canHaveFlowNode:()=>Aj,canHaveIllegalDecorators:()=>Vce,canHaveIllegalModifiers:()=>wFe,canHaveIllegalType:()=>sQe,canHaveIllegalTypeParameters:()=>BFe,canHaveJSDoc:()=>Sj,canHaveLocals:()=>$E,canHaveModifiers:()=>Op,canHaveSymbol:()=>qg,canJsonReportNoInputFiles:()=>rM,canProduceDiagnostics:()=>cQ,canUsePropertyAccess:()=>Mle,canWatchAffectingLocation:()=>t9e,canWatchAtTypes:()=>e9e,canWatchDirectoryOrFile:()=>NQ,cartesianProduct:()=>e2e,cast:()=>Lo,chainBundle:()=>jp,chainDiagnosticMessages:()=>uo,changeAnyExtension:()=>kO,changeCompilerHostLikeToUseCache:()=>DH,changeExtension:()=>Sv,changesAffectModuleResolution:()=>WU,changesAffectingProgramStructure:()=>vbe,childIsDecorated:()=>YN,classElementOrClassElementParameterIsDecorated:()=>A0e,classHasClassThisAssignment:()=>Xde,classHasDeclaredOrExplicitlyAssignedName:()=>e1e,classHasExplicitlyAssignedName:()=>oQ,classOrConstructorParameterIsDecorated:()=>e5,classPrivateFieldGetHelper:()=>$Z,classPrivateFieldInHelper:()=>qZ,classPrivateFieldSetHelper:()=>UZ,classicNameResolver:()=>CAe,classifier:()=>uBe,cleanExtendedConfigCache:()=>_Q,clear:()=>gu,clearMap:()=>uf,clearSharedExtendedConfigFileWatcher:()=>m1e,climbPastPropertyAccess:()=>QQ,climbPastPropertyOrElementAccess:()=>W9e,clone:()=>noe,cloneCompilerOptions:()=>Yhe,closeFileWatcher:()=>dg,closeFileWatcherOf:()=>Om,codefix:()=>M1,collapseTextChangeRangesAcrossMultipleVersions:()=>L2e,collectExternalModuleInfo:()=>$de,combine:()=>Do,combinePaths:()=>hr,commentPragmas:()=>xO,commonOptionsWithBuild:()=>ZV,commonPackageFolders:()=>$le,compact:()=>kr,compareBooleans:()=>s2,compareDataObjects:()=>ple,compareDiagnostics:()=>CP,compareDiagnosticsSkipRelatedInformation:()=>Jq,compareEmitHelpers:()=>Jke,compareNumberOfDirectorySeparators:()=>eV,comparePaths:()=>fv,comparePathsCaseInsensitive:()=>jqe,comparePathsCaseSensitive:()=>Oqe,comparePatternKeys:()=>Ade,compareProperties:()=>ZCe,compareStringsCaseInsensitive:()=>J$,compareStringsCaseInsensitiveEslintCompatible:()=>$Ce,compareStringsCaseSensitive:()=>ch,compareStringsCaseSensitiveUI:()=>fO,compareTextSpans:()=>G$,compareValues:()=>tl,compileOnSaveCommandLineOption:()=>UV,compilerOptionsAffectDeclarationPath:()=>oke,compilerOptionsAffectEmit:()=>ake,compilerOptionsAffectSemanticDiagnostics:()=>rke,compilerOptionsDidYouMeanDiagnostics:()=>XV,compilerOptionsIndicateEsModules:()=>nfe,compose:()=>dqe,computeCommonSourceDirectoryOfFilenames:()=>L7e,computeLineAndCharacterOfPosition:()=>b8,computeLineOfPosition:()=>wN,computeLineStarts:()=>t7,computePositionOfLineAndCharacter:()=>CU,computeSignature:()=>Tk,computeSignatureWithDiagnostics:()=>R1e,computeSuggestionDiagnostics:()=>Gfe,concatenate:()=>an,concatenateDiagnosticMessageChains:()=>eke,consumesNodeCoreModules:()=>LX,contains:()=>Ft,containsIgnoredPath:()=>wP,containsObjectRestOrSpread:()=>OV,containsParseError:()=>I8,containsPath:()=>WE,convertCompilerOptionsForTelemetry:()=>QFe,convertCompilerOptionsFromJson:()=>dXe,convertJsonOption:()=>Fk,convertToBase64:()=>zye,convertToJson:()=>GV,convertToObject:()=>UFe,convertToOptionsWithAbsolutePaths:()=>ade,convertToRelativePath:()=>BN,convertToTSConfig:()=>YQe,convertTypeAcquisitionFromJson:()=>hXe,copyComments:()=>zk,copyEntries:()=>GU,copyLeadingComments:()=>sw,copyProperties:()=>uoe,copyTrailingAsLeadingComments:()=>UH,copyTrailingComments:()=>RM,couldStartTrivia:()=>C2e,countWhere:()=>ui,createAbstractBuilder:()=>Ctt,createAccessorPropertyBackingField:()=>Kce,createAccessorPropertyGetRedirector:()=>RFe,createAccessorPropertySetRedirector:()=>OFe,createBaseNodeFactory:()=>wke,createBinaryExpressionTrampoline:()=>vY,createBindingHelper:()=>_B,createBuildInfo:()=>mH,createBuilderProgram:()=>O1e,createBuilderProgramUsingProgramBuildInfo:()=>Q7e,createBuilderStatusReporter:()=>p9e,createCacheWithRedirects:()=>vde,createCacheableExportInfoMap:()=>Nfe,createCachedDirectoryStructureHost:()=>gQ,createClassNamedEvaluationHelperBlock:()=>XAe,createClassThisAssignmentBlock:()=>YAe,createClassifier:()=>Oit,createCommentDirectivesMap:()=>Abe,createCompilerDiagnostic:()=>lc,createCompilerDiagnosticForInvalidCustomType:()=>KFe,createCompilerDiagnosticFromMessageChain:()=>Gq,createCompilerHost:()=>N7e,createCompilerHostFromProgramHost:()=>ihe,createCompilerHostWorker:()=>v1e,createDetachedDiagnostic:()=>cB,createDiagnosticCollection:()=>nB,createDiagnosticForFileFromMessageChain:()=>C0e,createDiagnosticForNode:()=>Bu,createDiagnosticForNodeArray:()=>j8,createDiagnosticForNodeArrayFromMessageChain:()=>aj,createDiagnosticForNodeFromMessageChain:()=>Z3,createDiagnosticForNodeInSourceFile:()=>V4,createDiagnosticForRange:()=>Obe,createDiagnosticMessageChainFromDiagnostic:()=>Rbe,createDiagnosticReporter:()=>bH,createDocumentPositionMapper:()=>HAe,createDocumentRegistry:()=>ISe,createDocumentRegistryInternal:()=>jfe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>W1e,createEmitHelperFactory:()=>Gke,createEmptyExports:()=>TV,createExpressionForJsxElement:()=>CFe,createExpressionForJsxFragment:()=>bFe,createExpressionForObjectLiteralElementLike:()=>yFe,createExpressionForPropertyName:()=>Mce,createExpressionFromEntityName:()=>LV,createExternalHelpersImportDeclarationIfNeeded:()=>Rce,createFileDiagnostic:()=>zd,createFileDiagnosticFromMessageChain:()=>XU,createForOfBindingStatement:()=>Pce,createGetCanonicalFileName:()=>T1,createGetSourceFile:()=>D1e,createGetSymbolAccessibilityDiagnosticForNode:()=>d5,createGetSymbolAccessibilityDiagnosticForNodeName:()=>b7e,createGetSymbolWalker:()=>AAe,createIncrementalCompilerHost:()=>uhe,createIncrementalProgram:()=>f9e,createInputFiles:()=>PYe,createInputFilesWithFilePaths:()=>nce,createInputFilesWithFileTexts:()=>uce,createJsxFactoryExpression:()=>Nce,createLanguageService:()=>Q8e,createLanguageServiceSourceFile:()=>fee,createMemberAccessForPropertyName:()=>yk,createModeAwareCache:()=>J7,createModeAwareCacheKey:()=>cM,createModuleNotFoundChain:()=>a0e,createModuleResolutionCache:()=>VB,createModuleResolutionLoader:()=>F1e,createModuleResolutionLoaderUsingGlobalCache:()=>r9e,createModuleSpecifierResolutionHost:()=>Mk,createMultiMap:()=>Bm,createNodeConverters:()=>Lke,createNodeFactory:()=>hV,createOptionNameMap:()=>yY,createOverload:()=>Wpe,createPackageJsonImportFilter:()=>VM,createPackageJsonInfo:()=>vfe,createParenthesizerRules:()=>Tke,createPatternMatcher:()=>HSe,createPrependNodes:()=>L1e,createPrinter:()=>Kv,createPrinterWithDefaults:()=>h1e,createPrinterWithRemoveComments:()=>Z2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>f1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>pH,createProgram:()=>yQ,createProgramHost:()=>nhe,createPropertyNameNodeForIdentifierOrLiteral:()=>cZ,createQueue:()=>W$,createRange:()=>o4,createRedirectedBuilderProgram:()=>V1e,createResolutionCache:()=>J1e,createRuntimeTypeSerializer:()=>u7e,createScanner:()=>ZD,createSemanticDiagnosticsBuilderProgram:()=>vtt,createSet:()=>roe,createSolutionBuilder:()=>Rtt,createSolutionBuilderHost:()=>ztt,createSolutionBuilderWithWatch:()=>Ott,createSolutionBuilderWithWatchHost:()=>Itt,createSortedArray:()=>xt,createSourceFile:()=>VV,createSourceMapGenerator:()=>RAe,createSourceMapSource:()=>MYe,createSuperAccessVariableStatement:()=>lQ,createSymbolTable:()=>jo,createSymlinkCache:()=>Cle,createSystemWatchFunctions:()=>p2e,createTextChange:()=>OH,createTextChangeFromStartLength:()=>hX,createTextChangeRange:()=>IO,createTextRangeFromNode:()=>efe,createTextRangeFromSpan:()=>dX,createTextSpan:()=>c1,createTextSpanFromBounds:()=>jc,createTextSpanFromNode:()=>af,createTextSpanFromRange:()=>Ux,createTextSpanFromStringLiteralLikeContent:()=>Xhe,createTextWriter:()=>Oj,createTokenRange:()=>hle,createTypeChecker:()=>LAe,createTypeReferenceDirectiveResolutionCache:()=>RY,createTypeReferenceResolutionLoader:()=>vQ,createUnparsedSourceFile:()=>ice,createWatchCompilerHost:()=>Ntt,createWatchCompilerHostOfConfigFile:()=>c9e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>d9e,createWatchFactory:()=>the,createWatchHost:()=>ehe,createWatchProgram:()=>Ptt,createWatchStatusReporter:()=>a9e,createWriteFileMeasuringIO:()=>x1e,declarationNameToString:()=>C0,decodeMappings:()=>Wde,decodedTextSpanIntersectsWith:()=>zO,decorateHelper:()=>kZ,deduplicate:()=>li,defaultIncludeSpec:()=>PY,defaultInitCompilerOptions:()=>LY,defaultMaximumTruncationLength:()=>oV,detectSortCaseSensitivity:()=>hn,diagnosticCategoryName:()=>Ky,diagnosticToString:()=>Rk,directoryProbablyExists:()=>cg,directorySeparator:()=>nl,displayPart:()=>bf,displayPartsToString:()=>pK,disposeEmitNodes:()=>ace,disposeResourcesHelper:()=>YZ,documentSpansEqual:()=>DX,dumpTracingLegend:()=>h2e,elementAt:()=>UD,elideNodes:()=>IFe,emitComments:()=>kye,emitDetachedComments:()=>Fye,emitFiles:()=>fQ,emitFilesAndReportErrors:()=>IQ,emitFilesAndReportErrorsAndGetExitStatus:()=>l9e,emitModuleKindIsNonNodeESM:()=>$q,emitNewLineBeforeLeadingCommentOfPosition:()=>yye,emitNewLineBeforeLeadingComments:()=>Cye,emitNewLineBeforeLeadingCommentsOfPosition:()=>bye,emitSkippedWithNoDiagnostics:()=>wQ,emitUsingBuildInfo:()=>S7e,emptyArray:()=>_t,emptyFileSystemEntries:()=>DZ,emptyMap:()=>Q$,emptyOptions:()=>c4,emptySet:()=>i2e,endsWith:()=>oc,ensurePathIsNonModuleName:()=>l2,ensureScriptKind:()=>nZ,ensureTrailingDirectorySeparator:()=>Pd,entityNameToString:()=>Mf,enumerateInsertsAndDeletes:()=>Z$,equalOwnProperties:()=>UA,equateStringsCaseInsensitive:()=>ZA,equateStringsCaseSensitive:()=>YA,equateValues:()=>vx,esDecorateHelper:()=>SZ,escapeJsxAttributeString:()=>Q0e,escapeLeadingUnderscores:()=>kl,escapeNonAsciiString:()=>Rj,escapeSnippetText:()=>z2,escapeString:()=>kv,every:()=>ye,expandPreOrPostfixIncrementOrDecrementExpression:()=>pY,explainFiles:()=>q1e,explainIfFileIsRedirectAndImpliedFormat:()=>Z1e,exportAssignmentIsAlias:()=>X8,exportStarHelper:()=>JZ,expressionResultIsUnused:()=>Eke,extend:()=>K$,extendsHelper:()=>zZ,extensionFromPath:()=>C7,extensionIsTS:()=>aZ,extensionsNotSupportingExtensionlessResolution:()=>dV,externalHelpersModuleNameText:()=>Vx,factory:()=>q,fileExtensionIs:()=>Pl,fileExtensionIsOneOf:()=>Oc,fileIncludeReasonToDiagnostics:()=>X1e,fileShouldUseJavaScriptRequire:()=>Sfe,filter:()=>ei,filterMutate:()=>Uu,filterSemanticDiagnostics:()=>kQ,find:()=>Le,findAncestor:()=>Ln,findBestPatternMatch:()=>loe,findChildOfKind:()=>r0,findComputedPropertyNameCacheAssignment:()=>CY,findConfigFile:()=>T7e,findContainingList:()=>nX,findDiagnosticForNode:()=>BSe,findFirstNonJsxWhitespaceToken:()=>q9e,findIndex:()=>$e,findLast:()=>lt,findLastIndex:()=>Ye,findListItemInfo:()=>U9e,findMap:()=>rt,findModifier:()=>rw,findNextToken:()=>X2,findPackageJson:()=>ASe,findPackageJsons:()=>xfe,findPrecedingMatchingToken:()=>lX,findPrecedingToken:()=>ed,findSuperStatementIndexPath:()=>uQ,findTokenOnLeftOfPosition:()=>aX,findUseStrictPrologue:()=>Ice,first:()=>Mn,firstDefined:()=>G,firstDefinedIterator:()=>ie,firstIterator:()=>Oa,firstOrOnly:()=>kfe,firstOrUndefined:()=>Hi,firstOrUndefinedIterator:()=>Kn,fixupCompilerOptions:()=>Zfe,flatMap:()=>Ku,flatMapIterator:()=>Wn,flatMapToMutable:()=>vn,flatten:()=>Va,flattenCommaList:()=>jFe,flattenDestructuringAssignment:()=>Sk,flattenDestructuringBinding:()=>q2,flattenDiagnosticMessageText:()=>sE,forEach:()=>L,forEachAncestor:()=>Cbe,forEachAncestorDirectory:()=>$g,forEachChild:()=>ro,forEachChildRecursively:()=>nM,forEachEmittedFile:()=>c1e,forEachEnclosingBlockScopeContainer:()=>Mbe,forEachEntry:()=>d1,forEachExternalModuleToImportFrom:()=>Mfe,forEachImportClauseDeclaration:()=>Cq,forEachKey:()=>$_,forEachLeadingCommentRange:()=>TO,forEachNameInAccessChainWalkingLeft:()=>Uye,forEachPropertyAssignment:()=>W8,forEachResolvedProjectReference:()=>A1e,forEachReturnStatement:()=>v2,forEachRight:()=>R,forEachTrailingCommentRange:()=>LO,forEachTsConfigPropArray:()=>cj,forEachUnique:()=>sfe,forEachYieldExpression:()=>Vbe,forSomeAncestorDirectory:()=>iYe,formatColorAndReset:()=>Y2,formatDiagnostic:()=>C1e,formatDiagnostics:()=>ntt,formatDiagnosticsWithColorAndContext:()=>P7e,formatGeneratedName:()=>Rv,formatGeneratedNamePart:()=>zB,formatLocation:()=>b1e,formatMessage:()=>_le,formatStringFromArgs:()=>X_,formatting:()=>ld,fullTripleSlashAMDReferencePathRegEx:()=>Vle,fullTripleSlashReferencePathRegEx:()=>jle,generateDjb2Hash:()=>FN,generateTSConfig:()=>iXe,generatorHelper:()=>KZ,getAdjustedReferenceLocation:()=>Ghe,getAdjustedRenameLocation:()=>rX,getAliasDeclarationFromName:()=>V0e,getAllAccessorDeclarations:()=>lk,getAllDecoratorsOfClass:()=>qde,getAllDecoratorsOfClassElement:()=>aQ,getAllJSDocTags:()=>jse,getAllJSDocTagsOfKind:()=>pZe,getAllKeys:()=>Sm,getAllProjectOutputs:()=>hQ,getAllSuperTypeNodes:()=>nP,getAllUnscopedEmitHelpers:()=>dce,getAllowJSCompilerOption:()=>Av,getAllowSyntheticDefaultImports:()=>x7,getAncestor:()=>yv,getAnyExtensionFromPath:()=>SN,getAreDeclarationMapsEnabled:()=>qq,getAssignedExpandoInitializer:()=>o7,getAssignedName:()=>Mse,getAssignedNameOfIdentifier:()=>EM,getAssignmentDeclarationKind:()=>Ql,getAssignmentDeclarationPropertyAccessKind:()=>Cj,getAssignmentTargetKind:()=>d7,getAutomaticTypeDirectiveNames:()=>IY,getBaseFileName:()=>Fc,getBinaryOperatorPrecedence:()=>Ij,getBuildInfo:()=>mQ,getBuildInfoFileVersionMap:()=>j1e,getBuildInfoText:()=>A7e,getBuildOrderFromAnyBuildOrder:()=>HQ,getBuilderCreationParameters:()=>TQ,getBuilderFileEmit:()=>$x,getCheckFlags:()=>Wl,getClassExtendsHeritageElement:()=>F2,getClassLikeDeclarationOfSymbol:()=>eD,getCombinedLocalAndExportSymbolFlags:()=>DP,getCombinedModifierFlags:()=>d2,getCombinedNodeFlags:()=>YD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Nse,getCommentRange:()=>iE,getCommonSourceDirectory:()=>bM,getCommonSourceDirectoryOfConfig:()=>yM,getCompilerOptionValue:()=>Yq,getCompilerOptionsDiffValue:()=>eXe,getConditions:()=>W2,getConfigFileParsingDiagnostics:()=>wk,getConstantValue:()=>Rke,getContainerFlags:()=>Tde,getContainerNode:()=>Nk,getContainingClass:()=>Zd,getContainingClassExcludingClassDecorators:()=>sq,getContainingClassStaticBlock:()=>Zbe,getContainingFunction:()=>Lm,getContainingFunctionDeclaration:()=>qbe,getContainingFunctionOrClassStaticBlock:()=>oq,getContainingNodeArray:()=>_ke,getContainingObjectLiteralElement:()=>gK,getContextualTypeFromParent:()=>yX,getContextualTypeFromParentOrAncestorTypeNode:()=>uX,getCurrentTime:()=>kH,getDeclarationDiagnostics:()=>y7e,getDeclarationEmitExtensionForPath:()=>Vj,getDeclarationEmitOutputFilePath:()=>Eye,getDeclarationEmitOutputFilePathWorker:()=>Tq,getDeclarationFromName:()=>iP,getDeclarationModifierFlagsFromSymbol:()=>s4,getDeclarationOfKind:()=>Fl,getDeclarationsOfKind:()=>Dbe,getDeclaredExpandoInitializer:()=>_j,getDecorators:()=>Fx,getDefaultCompilerOptions:()=>hee,getDefaultExportInfoWorker:()=>VX,getDefaultFormatCodeSettings:()=>qQ,getDefaultLibFileName:()=>PO,getDefaultLibFilePath:()=>X8e,getDefaultLikeExportInfo:()=>jX,getDiagnosticText:()=>WQe,getDiagnosticsWithinSpan:()=>wSe,getDirectoryPath:()=>dr,getDirectoryToWatchFailedLookupLocation:()=>G1e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>n9e,getDocumentPositionMapper:()=>Wfe,getESModuleInterop:()=>XE,getEditsForFileRename:()=>OSe,getEffectiveBaseTypeNode:()=>Yg,getEffectiveConstraintOfTypeParameter:()=>S8,getEffectiveContainerForJSDocTemplateTag:()=>bq,getEffectiveImplementsTypeNodes:()=>eB,getEffectiveInitializer:()=>Ej,getEffectiveJSDocHost:()=>rk,getEffectiveModifierFlags:()=>gh,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>wye,getEffectiveModifierFlagsNoCache:()=>Tye,getEffectiveReturnTypeNode:()=>J4,getEffectiveSetAccessorTypeAnnotationNode:()=>vye,getEffectiveTypeAnnotationNode:()=>h1,getEffectiveTypeParameterDeclarations:()=>Ax,getEffectiveTypeRoots:()=>lM,getElementOrPropertyAccessArgumentExpressionOrName:()=>vq,getElementOrPropertyAccessName:()=>Y3,getElementsOfBindingOrAssignmentPattern:()=>MB,getEmitDeclarations:()=>l4,getEmitFlags:()=>vs,getEmitHelpers:()=>yZ,getEmitModuleDetectionKind:()=>tke,getEmitModuleKind:()=>f1,getEmitModuleResolutionKind:()=>m1,getEmitScriptTarget:()=>Is,getEmitStandardClassFields:()=>uke,getEnclosingBlockScopeContainer:()=>ZE,getEnclosingContainer:()=>v0e,getEncodedSemanticClassifications:()=>Rfe,getEncodedSyntacticClassifications:()=>Ofe,getEndLinePosition:()=>ij,getEntityNameFromTypeNode:()=>fj,getEntrypointsFromPackageJsonInfo:()=>yde,getErrorCountForSummary:()=>MQ,getErrorSpanForNode:()=>D2,getErrorSummaryText:()=>o9e,getEscapedTextOfIdentifierOrLiteral:()=>aP,getEscapedTextOfJsxAttributeName:()=>PP,getEscapedTextOfJsxNamespacedName:()=>b7,getExpandoInitializer:()=>Cv,getExportAssignmentExpression:()=>H0e,getExportInfoMap:()=>XH,getExportNeedsImportStarHelper:()=>KAe,getExpressionAssociativity:()=>U0e,getExpressionPrecedence:()=>sP,getExternalHelpersModuleName:()=>PV,getExternalModuleImportEqualsDeclarationExpression:()=>QN,getExternalModuleName:()=>q8,getExternalModuleNameFromDeclaration:()=>pye,getExternalModuleNameFromPath:()=>ele,getExternalModuleNameLiteral:()=>H7,getExternalModuleRequireArgument:()=>B0e,getFallbackOptions:()=>_H,getFileEmitOutput:()=>V7e,getFileMatcherPatterns:()=>iZ,getFileNamesFromConfigSpecs:()=>aM,getFileWatcherEventKind:()=>Dse,getFilesInErrorForSummary:()=>zQ,getFirstConstructorWithBody:()=>Q_,getFirstIdentifier:()=>dm,getFirstNonSpaceCharacterPosition:()=>vSe,getFirstProjectOutput:()=>d1e,getFixableErrorSpanExpression:()=>bfe,getFormatCodeSettingsForWriting:()=>zX,getFullWidth:()=>ej,getFunctionFlags:()=>yd,getHeritageClause:()=>Nj,getHostSignatureFromJSDoc:()=>bv,getIdentifierAutoGenerate:()=>jYe,getIdentifierGeneratedImportReference:()=>Wke,getIdentifierTypeArguments:()=>mk,getImmediatelyInvokedFunctionExpression:()=>tk,getImpliedNodeFormatForFile:()=>vH,getImpliedNodeFormatForFileWorker:()=>w1e,getImportNeedsImportDefaultHelper:()=>Jde,getImportNeedsImportStarHelper:()=>iQ,getIndentSize:()=>rB,getIndentString:()=>Bq,getInferredLibraryNameResolveFrom:()=>bQ,getInitializedVariables:()=>_P,getInitializerOfBinaryExpression:()=>P0e,getInitializerOfBindingOrAssignmentElement:()=>zV,getInterfaceBaseTypeNodes:()=>uP,getInternalEmitFlags:()=>Tp,getInvokedExpression:()=>dq,getIsolatedModules:()=>hg,getJSDocAugmentsTag:()=>V2e,getJSDocClassTag:()=>zse,getJSDocCommentRanges:()=>y0e,getJSDocCommentsAndTags:()=>z0e,getJSDocDeprecatedTag:()=>Ise,getJSDocDeprecatedTagNoCache:()=>U2e,getJSDocEnumTag:()=>Rse,getJSDocHost:()=>c7,getJSDocImplementsTags:()=>H2e,getJSDocOverrideTagNoCache:()=>$2e,getJSDocParameterTags:()=>A8,getJSDocParameterTagsNoCache:()=>I2e,getJSDocPrivateTag:()=>cZe,getJSDocPrivateTagNoCache:()=>W2e,getJSDocProtectedTag:()=>dZe,getJSDocProtectedTagNoCache:()=>G2e,getJSDocPublicTag:()=>lZe,getJSDocPublicTagNoCache:()=>K2e,getJSDocReadonlyTag:()=>hZe,getJSDocReadonlyTagNoCache:()=>J2e,getJSDocReturnTag:()=>q2e,getJSDocReturnType:()=>OO,getJSDocRoot:()=>tP,getJSDocSatisfiesExpressionType:()=>Ile,getJSDocSatisfiesTag:()=>Ose,getJSDocTags:()=>xv,getJSDocTagsNoCache:()=>mZe,getJSDocTemplateTag:()=>fZe,getJSDocThisTag:()=>SU,getJSDocType:()=>Dv,getJSDocTypeAliasName:()=>jce,getJSDocTypeAssertionType:()=>EY,getJSDocTypeParameterDeclarations:()=>Mq,getJSDocTypeParameterTags:()=>R2e,getJSDocTypeParameterTagsNoCache:()=>O2e,getJSDocTypeTag:()=>_v,getJSXImplicitImportBase:()=>Xq,getJSXRuntimeImport:()=>eZ,getJSXTransformEnabled:()=>Qq,getKeyForCompilerOptions:()=>xde,getLanguageVariant:()=>qj,getLastChild:()=>gle,getLeadingCommentRanges:()=>K_,getLeadingCommentRangesOfNode:()=>b0e,getLeftmostAccessExpression:()=>vP,getLeftmostExpression:()=>lB,getLibraryNameFromLibFileName:()=>S1e,getLineAndCharacterOfPosition:()=>o0,getLineInfo:()=>Hde,getLineOfLocalPosition:()=>cP,getLineOfLocalPositionFromLineMap:()=>ok,getLineStartPositionForPosition:()=>X4,getLineStarts:()=>J3,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Kye,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Hye,getLinesBetweenPositions:()=>TN,getLinesBetweenRangeEndAndRangeStart:()=>fle,getLinesBetweenRangeEndPositions:()=>eYe,getLiteralText:()=>Sbe,getLocalNameForExternalImport:()=>PB,getLocalSymbolForExportDefault:()=>oB,getLocaleSpecificMessage:()=>Xa,getLocaleTimeString:()=>yH,getMappedContextSpan:()=>lfe,getMappedDocumentSpan:()=>xX,getMappedLocation:()=>MM,getMatchedFileSpec:()=>Y1e,getMatchedIncludeSpec:()=>Q1e,getMeaningFromDeclaration:()=>BH,getMeaningFromLocation:()=>Lk,getMembersOfDeclaration:()=>Hbe,getModeForFileReference:()=>xQ,getModeForResolutionAtIndex:()=>y1e,getModeForUsageLocation:()=>_g,getModifiedTime:()=>QA,getModifiers:()=>h2,getModuleInstanceState:()=>aD,getModuleNameStringLiteralAt:()=>AQ,getModuleSpecifierEndingPreference:()=>Ale,getModuleSpecifierResolverHost:()=>ufe,getNameForExportedSymbol:()=>NX,getNameFromIndexInfo:()=>zbe,getNameFromPropertyName:()=>HH,getNameOfAccessExpression:()=>Jye,getNameOfCompilerOptionValue:()=>ude,getNameOfDeclaration:()=>qa,getNameOfExpando:()=>L0e,getNameOfJSDocTypedef:()=>z2e,getNameOrArgument:()=>vj,getNameTable:()=>wme,getNamesForExportedSymbol:()=>TSe,getNamespaceDeclarationNode:()=>Z8,getNewLineCharacter:()=>r5,getNewLineKind:()=>QH,getNewLineOrDefaultFromHost:()=>g5,getNewTargetContainer:()=>Qbe,getNextJSDocCommentLocation:()=>I0e,getNodeForGeneratedName:()=>RV,getNodeId:()=>Js,getNodeKind:()=>Q2,getNodeModifiers:()=>LM,getNodeModulePathParts:()=>dZ,getNonAssignedNameOfDeclaration:()=>AU,getNonAssignmentOperatorForCompoundAssignment:()=>mM,getNonAugmentationDeclaration:()=>p0e,getNonDecoratorTokenPosOfNode:()=>c0e,getNormalizedAbsolutePath:()=>$a,getNormalizedAbsolutePathWithoutRoot:()=>kse,getNormalizedPathComponents:()=>yO,getObjectFlags:()=>$u,getOperator:()=>Z0e,getOperatorAssociativity:()=>q0e,getOperatorPrecedence:()=>zj,getOptionFromName:()=>Xce,getOptionsForLibraryResolution:()=>Cde,getOptionsNameMap:()=>RB,getOrCreateEmitNode:()=>N1,getOrCreateExternalHelpersModuleNameIfNeeded:()=>SFe,getOrUpdate:()=>Vl,getOriginalNode:()=>Kl,getOriginalNodeId:()=>P1,getOriginalSourceFile:()=>WZe,getOutputDeclarationFileName:()=>CM,getOutputExtension:()=>dQ,getOutputFileNames:()=>ett,getOutputPathsFor:()=>vM,getOutputPathsForBundle:()=>xM,getOwnEmitOutputFilePath:()=>gye,getOwnKeys:()=>Ts,getOwnValues:()=>$1,getPackageJsonInfo:()=>G2,getPackageJsonTypesVersionsPaths:()=>zY,getPackageJsonsVisibleToFile:()=>SSe,getPackageNameFromTypesPackageName:()=>dM,getPackageScopeForPath:()=>uH,getParameterSymbolFromJSDoc:()=>Bj,getParameterTypeNode:()=>fYe,getParentNodeInSpan:()=>WH,getParseTreeNode:()=>Ua,getParsedCommandLineOfConfigFile:()=>KV,getPathComponents:()=>bd,getPathComponentsRelativeTo:()=>Ase,getPathFromPathComponents:()=>bx,getPathUpdater:()=>Hfe,getPathsBasePath:()=>Lq,getPatternFromSpec:()=>kle,getPendingEmitKind:()=>YB,getPositionOfLineAndCharacter:()=>BO,getPossibleGenericSignatures:()=>$he,getPossibleOriginalInputExtensionForExtension:()=>_ye,getPossibleTypeArgumentsInfo:()=>Uhe,getPreEmitDiagnostics:()=>itt,getPrecedingNonSpaceCharacterPosition:()=>CX,getPrivateIdentifier:()=>Zde,getProperties:()=>Ude,getProperty:()=>no,getPropertyArrayElementValue:()=>Ube,getPropertyAssignmentAliasLikeExpression:()=>dye,getPropertyNameForPropertyNameNode:()=>ak,getPropertyNameForUniqueESSymbol:()=>HZe,getPropertyNameFromType:()=>Z4,getPropertyNameOfBindingOrAssignmentElement:()=>Oce,getPropertySymbolFromBindingElement:()=>_X,getPropertySymbolsFromContextualType:()=>mee,getQuoteFromPreference:()=>afe,getQuotePreference:()=>Vm,getRangesWhere:()=>Lu,getRefactorContextSpan:()=>i9,getReferencedFileLocation:()=>kM,getRegexFromPattern:()=>Ox,getRegularExpressionForWildcard:()=>bP,getRegularExpressionsForWildcards:()=>tZ,getRelativePathFromDirectory:()=>GE,getRelativePathFromFile:()=>FO,getRelativePathToDirectoryOrUrl:()=>e7,getRenameLocation:()=>$H,getReplacementSpanForContextToken:()=>Qhe,getResolutionDiagnostic:()=>N1e,getResolutionModeOverride:()=>$B,getResolveJsonModule:()=>L2,getResolvePackageJsonExports:()=>xle,getResolvePackageJsonImports:()=>oYe,getResolvedExternalModuleName:()=>wq,getRestIndicatorOfBindingOrAssignmentElement:()=>DY,getRestParameterElementType:()=>k0e,getRightMostAssignedExpression:()=>Dj,getRootDeclaration:()=>QE,getRootDirectoryOfResolutionCache:()=>u9e,getRootLength:()=>KE,getRootPathSplitLength:()=>Ftt,getScriptKind:()=>mfe,getScriptKindFromFileName:()=>uZ,getScriptTargetFeatures:()=>gZ,getSelectedEffectiveModifierFlags:()=>p7,getSelectedSyntacticModifierFlags:()=>Sye,getSemanticClassifications:()=>MSe,getSemanticJsxChildren:()=>iB,getSetAccessorTypeAnnotationNode:()=>Dye,getSetAccessorValueParameter:()=>dP,getSetExternalModuleIndicator:()=>Zj,getShebang:()=>yU,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>M0e,getSingleVariableOfVariableStatement:()=>Q8,getSnapshotText:()=>uw,getSnippetElement:()=>oce,getSourceFileOfModule:()=>$U,getSourceFileOfNode:()=>In,getSourceFilePathInNewDir:()=>Nq,getSourceFilePathInNewDirWorker:()=>Pq,getSourceFileVersionAsHashFromText:()=>RQ,getSourceFilesToEmit:()=>tle,getSourceMapRange:()=>wv,getSourceMapper:()=>YSe,getSourceTextOfNodeFromSourceFile:()=>E2,getSpanOfTokenAtPosition:()=>YE,getSpellingSuggestion:()=>CN,getStartPositionOfLine:()=>Px,getStartPositionOfRange:()=>EP,getStartsOnNewLine:()=>IP,getStaticPropertiesAndClassStaticBlock:()=>rQ,getStrictOptionValue:()=>U4,getStringComparer:()=>vN,getSuperCallFromStatement:()=>nQ,getSuperContainer:()=>dj,getSupportedCodeFixes:()=>Sme,getSupportedExtensions:()=>yP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>Xj,getSwitchedType:()=>_fe,getSymbolId:()=>qo,getSymbolNameForPrivateIdentifier:()=>Pj,getSymbolTarget:()=>DSe,getSyntacticClassifications:()=>zSe,getSyntacticModifierFlags:()=>Ix,getSyntacticModifierFlagsNoCache:()=>rle,getSynthesizedDeepClone:()=>ol,getSynthesizedDeepCloneWithReplacements:()=>JH,getSynthesizedDeepClones:()=>eb,getSynthesizedDeepClonesWithReplacements:()=>pfe,getSyntheticLeadingComments:()=>EB,getSyntheticTrailingComments:()=>EV,getTargetLabel:()=>XQ,getTargetOfBindingOrAssignmentElement:()=>Jx,getTemporaryModuleResolutionState:()=>nH,getTextOfConstantValue:()=>Bbe,getTextOfIdentifierOrLiteral:()=>W4,getTextOfJSDocComment:()=>VO,getTextOfJsxAttributeName:()=>aV,getTextOfJsxNamespacedName:()=>MP,getTextOfNode:()=>Vc,getTextOfNodeFromSourceText:()=>GN,getTextOfPropertyName:()=>O8,getThisContainer:()=>ef,getThisParameter:()=>S2,getTokenAtPosition:()=>ba,getTokenPosOfNode:()=>Qy,getTokenSourceMapRange:()=>RYe,getTouchingPropertyName:()=>rf,getTouchingToken:()=>TM,getTrailingCommentRanges:()=>mv,getTrailingSemicolonDeferringWriter:()=>X0e,getTransformFlagsSubtreeExclusions:()=>Nke,getTransformers:()=>s1e,getTsBuildInfoEmitOutputFilePath:()=>h5,getTsConfigObjectLiteralExpression:()=>qN,getTsConfigPropArrayElementValue:()=>aq,getTypeAnnotationNode:()=>xye,getTypeArgumentOrTypeParameterList:()=>nSe,getTypeKeywordOfTypeOnlyImport:()=>ofe,getTypeNode:()=>Hke,getTypeNodeIfAccessible:()=>jM,getTypeParameterFromJsDoc:()=>rye,getTypeParameterOwner:()=>uZe,getTypesPackageName:()=>KY,getUILocale:()=>UCe,getUniqueName:()=>Ik,getUniqueSymbolId:()=>xSe,getUseDefineForClassFields:()=>Qj,getWatchErrorSummaryDiagnosticMessage:()=>$1e,getWatchFactory:()=>g1e,group:()=>xN,groupBy:()=>WCe,guessIndentation:()=>Ebe,handleNoEmitOptions:()=>T1e,hasAbstractModifier:()=>T2,hasAccessorModifier:()=>Xg,hasAmbientModifier:()=>ule,hasChangesInResolutions:()=>o0e,hasChildOfKind:()=>zH,hasContextSensitiveParameters:()=>lZ,hasDecorators:()=>a4,hasDocComment:()=>tSe,hasDynamicName:()=>zx,hasEffectiveModifier:()=>If,hasEffectiveModifiers:()=>zq,hasEffectiveReadonlyModifier:()=>hP,hasExtension:()=>XA,hasIndexSignature:()=>Efe,hasInitializer:()=>Lx,hasInvalidEscape:()=>Y0e,hasJSDocNodes:()=>sm,hasJSDocParameterTags:()=>j2e,hasJSFileExtension:()=>N2,hasJsonModuleEmitEnabled:()=>Uq,hasOnlyExpressionInitializer:()=>Zy,hasOverrideModifier:()=>Iq,hasPossibleExternalModuleReference:()=>Pbe,hasProperty:()=>Eu,hasPropertyAccessExpressionWithName:()=>TH,hasQuestionToken:()=>l7,hasRecordedExternalHelpers:()=>AFe,hasResolutionModeOverride:()=>bke,hasRestParameter:()=>n0e,hasScopeMarker:()=>lbe,hasStaticModifier:()=>Hc,hasSyntacticModifier:()=>Xu,hasSyntacticModifiers:()=>Aye,hasTSFileExtension:()=>hk,hasTabstop:()=>xke,hasTrailingDirectorySeparator:()=>qD,hasType:()=>HU,hasTypeArguments:()=>IZe,hasZeroOrOneAsteriskCharacter:()=>vle,helperString:()=>cce,hostGetCanonicalFileName:()=>i5,hostUsesCaseSensitiveFileNames:()=>jj,idText:()=>mu,identifierIsThisKeyword:()=>nle,identifierToKeywordKind:()=>Ev,identity:()=>el,identitySourceMapConsumer:()=>tQ,ignoreSourceNewlines:()=>lce,ignoredPaths:()=>bO,importDefaultHelper:()=>GZ,importFromModuleSpecifier:()=>eP,importNameElisionDisabled:()=>Dle,importStarHelper:()=>DV,indexOfAnyCharCode:()=>Ot,indexOfNode:()=>R8,indicesOf:()=>Zr,inferredTypesContainingFile:()=>ZB,injectClassNamedEvaluationHelperBlockIfMissing:()=>sQ,injectClassThisAssignmentIfMissing:()=>QAe,insertImports:()=>PM,insertLeadingStatement:()=>uQe,insertSorted:()=>Nt,insertStatementAfterCustomPrologue:()=>Yy,insertStatementAfterStandardPrologue:()=>AZe,insertStatementsAfterCustomPrologue:()=>s0e,insertStatementsAfterStandardPrologue:()=>qE,intersperse:()=>_e,intrinsicTagNameToString:()=>Rle,introducesArgumentsExoticObject:()=>Jbe,inverseJsxOptionMap:()=>oM,isAbstractConstructorSymbol:()=>Wye,isAbstractModifier:()=>Xke,isAccessExpression:()=>N0,isAccessibilityModifier:()=>Zhe,isAccessor:()=>Bx,isAccessorModifier:()=>tFe,isAliasSymbolDeclaration:()=>OZe,isAliasableExpression:()=>Lj,isAmbientModule:()=>L1,isAmbientPropertyDeclaration:()=>E0e,isAnonymousFunctionDefinition:()=>oP,isAnyDirectorySeparator:()=>Cse,isAnyImportOrBareOrAccessedRequire:()=>Nbe,isAnyImportOrReExport:()=>uj,isAnyImportSyntax:()=>Xy,isAnySupportedFileExtension:()=>hYe,isApplicableVersionedTypesKey:()=>aH,isArgumentExpressionOfElementAccess:()=>Ohe,isArray:()=>Ha,isArrayBindingElement:()=>zU,isArrayBindingOrAssignmentElement:()=>UO,isArrayBindingOrAssignmentPattern:()=>Yse,isArrayBindingPattern:()=>gk,isArrayLiteralExpression:()=>_h,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>m5,isArrayTypeNode:()=>nY,isArrowFunction:()=>G0,isAsExpression:()=>kV,isAssertClause:()=>lFe,isAssertEntry:()=>ZYe,isAssertionExpression:()=>qy,isAssertsKeyword:()=>Yke,isAssignmentDeclaration:()=>XN,isAssignmentExpression:()=>od,isAssignmentOperator:()=>n5,isAssignmentPattern:()=>HN,isAssignmentTarget:()=>Y_,isAsteriskToken:()=>CV,isAsyncFunction:()=>rP,isAsyncModifier:()=>jP,isAutoAccessorPropertyDeclaration:()=>Xh,isAwaitExpression:()=>Wx,isAwaitKeyword:()=>Ece,isBigIntLiteral:()=>QZ,isBinaryExpression:()=>tu,isBinaryOperatorToken:()=>zFe,isBindableObjectDefinePropertyCall:()=>nk,isBindableStaticAccessExpression:()=>y2,isBindableStaticElementAccessExpression:()=>xq,isBindableStaticNameExpression:()=>uk,isBindingElement:()=>Rs,isBindingElementOfBareOrAccessedRequire:()=>tye,isBindingName:()=>$y,isBindingOrAssignmentElement:()=>nbe,isBindingOrAssignmentPattern:()=>JO,isBindingPattern:()=>Fo,isBlock:()=>fo,isBlockOrCatchScoped:()=>d0e,isBlockScope:()=>_0e,isBlockScopedContainerTopLevel:()=>Lbe,isBooleanLiteral:()=>VN,isBreakOrContinueStatement:()=>RN,isBreakStatement:()=>$Ye,isBuildInfoFile:()=>F7e,isBuilderProgram:()=>s9e,isBundle:()=>yce,isBundleFileTextLike:()=>$ye,isCallChain:()=>Gy,isCallExpression:()=>No,isCallExpressionTarget:()=>Nhe,isCallLikeExpression:()=>g2,isCallLikeOrFunctionLikeExpression:()=>Qse,isCallOrNewExpression:()=>JE,isCallOrNewExpressionTarget:()=>Phe,isCallSignatureDeclaration:()=>xB,isCallToHelper:()=>OP,isCaseBlock:()=>qP,isCaseClause:()=>AB,isCaseKeyword:()=>iFe,isCaseOrDefaultClause:()=>jU,isCatchClause:()=>H2,isCatchClauseVariableDeclaration:()=>Dke,isCatchClauseVariableDeclarationOrBindingElement:()=>h0e,isCheckJsEnabledForFile:()=>iV,isChildOfNodeWithKind:()=>SZe,isCircularBuildOrder:()=>Q7,isClassDeclaration:()=>Kc,isClassElement:()=>qd,isClassExpression:()=>Qd,isClassInstanceProperty:()=>ebe,isClassLike:()=>gr,isClassMemberModifier:()=>Use,isClassNamedEvaluationHelperBlock:()=>Y7,isClassOrTypeElement:()=>MU,isClassStaticBlockDeclaration:()=>Ml,isClassThisAssignmentBlock:()=>gM,isCollapsedRange:()=>XZe,isColonToken:()=>qke,isCommaExpression:()=>NV,isCommaListExpression:()=>$P,isCommaSequence:()=>XP,isCommaToken:()=>Uke,isComment:()=>cX,isCommonJsExportPropertyAssignment:()=>uq,isCommonJsExportedExpression:()=>Wbe,isCompoundAssignment:()=>fM,isComputedNonLiteralName:()=>rj,isComputedPropertyName:()=>Ls,isConciseBody:()=>RU,isConditionalExpression:()=>FB,isConditionalTypeNode:()=>yB,isConstTypeReference:()=>U3,isConstructSignatureDeclaration:()=>yV,isConstructorDeclaration:()=>dc,isConstructorTypeNode:()=>KP,isContextualKeyword:()=>kq,isContinueStatement:()=>JYe,isCustomPrologue:()=>lj,isDebuggerStatement:()=>UYe,isDeclaration:()=>Y1,isDeclarationBindingElement:()=>GO,isDeclarationFileName:()=>Xd,isDeclarationName:()=>Q3,isDeclarationNameOfEnumOrNamespace:()=>mle,isDeclarationReadonly:()=>eq,isDeclarationStatement:()=>fbe,isDeclarationWithTypeParameterChildren:()=>x0e,isDeclarationWithTypeParameters:()=>D0e,isDecorator:()=>p1,isDecoratorTarget:()=>H9e,isDefaultClause:()=>BV,isDefaultImport:()=>s7,isDefaultModifier:()=>tY,isDefaultedExpandoInitializer:()=>iye,isDeleteExpression:()=>rFe,isDeleteTarget:()=>j0e,isDeprecatedDeclaration:()=>PX,isDestructuringAssignment:()=>u5,isDiagnosticWithLocation:()=>Cfe,isDiskPathRoot:()=>bse,isDoStatement:()=>WYe,isDocumentRegistryEntry:()=>eK,isDotDotDotToken:()=>XZ,isDottedName:()=>mP,isDynamicName:()=>Sq,isESSymbolIdentifier:()=>KZe,isEffectiveExternalModule:()=>a7,isEffectiveModuleDeclaration:()=>Tbe,isEffectiveStrictModeSourceFile:()=>g0e,isElementAccessChain:()=>Vse,isElementAccessExpression:()=>W0,isEmittedFileOfProgram:()=>w7e,isEmptyArrayLiteral:()=>Mye,isEmptyBindingElement:()=>P2e,isEmptyBindingPattern:()=>N2e,isEmptyObjectLiteral:()=>cle,isEmptyStatement:()=>vce,isEmptyStringLiteral:()=>S0e,isEntityName:()=>om,isEntityNameExpression:()=>Xl,isEnumConst:()=>x2,isEnumDeclaration:()=>Mv,isEnumMember:()=>K2,isEqualityOperatorKind:()=>kX,isEqualsGreaterThanToken:()=>Zke,isExclamationToken:()=>bV,isExcludedFile:()=>ZFe,isExclusivelyTypeOnlyImportOrExport:()=>k1e,isExpandoPropertyDeclaration:()=>fZ,isExportAssignment:()=>ec,isExportDeclaration:()=>Wc,isExportModifier:()=>w7,isExportName:()=>gY,isExportNamespaceAsDefaultDeclaration:()=>ZU,isExportOrDefaultModifier:()=>IV,isExportSpecifier:()=>X1,isExportsIdentifier:()=>ik,isExportsOrModuleExportsOrAlias:()=>J2,isExpression:()=>Wt,isExpressionNode:()=>q_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>J9e,isExpressionOfOptionalChainRoot:()=>TU,isExpressionStatement:()=>Id,isExpressionWithTypeArguments:()=>l5,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Wj,isExternalModule:()=>Bc,isExternalModuleAugmentation:()=>_2,isExternalModuleImportEqualsDeclaration:()=>vv,isExternalModuleIndicator:()=>qO,isExternalModuleNameRelative:()=>Md,isExternalModuleReference:()=>u_,isExternalModuleSymbol:()=>jH,isExternalOrCommonJsModule:()=>lm,isFileLevelReservedGeneratedIdentifier:()=>WO,isFileLevelUniqueName:()=>UU,isFileProbablyExternalModule:()=>jV,isFirstDeclarationOfSymbolParameter:()=>cfe,isFixablePromiseHandler:()=>$fe,isForInOrOfStatement:()=>N8,isForInStatement:()=>sY,isForInitializer:()=>r4,isForOfStatement:()=>FV,isForStatement:()=>Dk,isFunctionBlock:()=>C2,isFunctionBody:()=>e0e,isFunctionDeclaration:()=>Xc,isFunctionExpression:()=>F0,isFunctionExpressionOrArrowFunction:()=>M2,isFunctionLike:()=>xo,isFunctionLikeDeclaration:()=>K0,isFunctionLikeKind:()=>u7,isFunctionLikeOrClassStaticBlockDeclaration:()=>w8,isFunctionOrConstructorTypeNode:()=>ibe,isFunctionOrModuleBlock:()=>qse,isFunctionSymbol:()=>uye,isFunctionTypeNode:()=>n3,isFutureReservedKeyword:()=>jZe,isGeneratedIdentifier:()=>ul,isGeneratedPrivateIdentifier:()=>Jy,isGetAccessor:()=>Tx,isGetAccessorDeclaration:()=>Mm,isGetOrSetAccessorDeclaration:()=>BU,isGlobalDeclaration:()=>Pit,isGlobalScopeAugmentation:()=>Zg,isGrammarError:()=>Fbe,isHeritageClause:()=>fm,isHoistedFunction:()=>iq,isHoistedVariableStatement:()=>nq,isIdentifier:()=>at,isIdentifierANonContextualKeyword:()=>Fq,isIdentifierName:()=>cye,isIdentifierOrThisTypeNode:()=>LFe,isIdentifierPart:()=>pv,isIdentifierStart:()=>W_,isIdentifierText:()=>Tm,isIdentifierTypePredicate:()=>$be,isIdentifierTypeReference:()=>mke,isIfStatement:()=>_k,isIgnoredFileFromWildCardWatching:()=>EH,isImplicitGlob:()=>yle,isImportAttribute:()=>cFe,isImportAttributeName:()=>X2e,isImportAttributes:()=>lY,isImportCall:()=>cm,isImportClause:()=>i_,isImportDeclaration:()=>Ad,isImportEqualsDeclaration:()=>g1,isImportKeyword:()=>HP,isImportMeta:()=>H8,isImportOrExportSpecifier:()=>n7,isImportOrExportSpecifierName:()=>_Se,isImportSpecifier:()=>Cf,isImportTypeAssertionContainer:()=>qYe,isImportTypeNode:()=>iD,isImportableFile:()=>Pfe,isInComment:()=>f5,isInCompoundLikeAssignment:()=>R0e,isInExpressionContext:()=>fq,isInJSDoc:()=>pj,isInJSFile:()=>eu,isInJSXText:()=>X9e,isInJsonFile:()=>pq,isInNonReferenceComment:()=>aSe,isInReferenceComment:()=>rSe,isInRightSideOfInternalImportEqualsDeclaration:()=>YQ,isInString:()=>Pk,isInTemplateString:()=>Jhe,isInTopLevelContext:()=>lq,isInTypeQuery:()=>sk,isIncrementalCompilation:()=>Yj,isIndexSignatureDeclaration:()=>pk,isIndexedAccessTypeNode:()=>M7,isInferTypeNode:()=>L7,isInfinityOrNaNString:()=>TP,isInitializedProperty:()=>dH,isInitializedVariable:()=>Uj,isInsideJsxElement:()=>sX,isInsideJsxElementOrAttribute:()=>Q9e,isInsideNodeModules:()=>YH,isInsideTemplateLiteral:()=>RH,isInstanceOfExpression:()=>Rq,isInstantiatedModule:()=>Ide,isInterfaceDeclaration:()=>Dh,isInternalDeclaration:()=>a1e,isInternalModuleImportEqualsDeclaration:()=>J8,isInternalName:()=>zce,isIntersectionTypeNode:()=>bB,isIntrinsicJsxName:()=>uB,isIterationStatement:()=>wx,isJSDoc:()=>Rp,isJSDocAllType:()=>pFe,isJSDocAugmentsTag:()=>wB,isJSDocAuthorTag:()=>eQe,isJSDocCallbackTag:()=>Fce,isJSDocClassTag:()=>EFe,isJSDocCommentContainingNode:()=>VU,isJSDocConstructSignature:()=>Y8,isJSDocDeprecatedTag:()=>Tce,isJSDocEnumTag:()=>wV,isJSDocFunctionType:()=>BB,isJSDocImplementsTag:()=>Lce,isJSDocIndexSignature:()=>gq,isJSDocLikeText:()=>Gce,isJSDocLink:()=>fFe,isJSDocLinkCode:()=>mFe,isJSDocLinkLike:()=>r7,isJSDocLinkPlain:()=>QYe,isJSDocMemberName:()=>zv,isJSDocNameReference:()=>YP,isJSDocNamepathType:()=>XYe,isJSDocNamespaceBody:()=>CZe,isJSDocNode:()=>P8,isJSDocNonNullableType:()=>cY,isJSDocNullableType:()=>SB,isJSDocOptionalParameter:()=>rV,isJSDocOptionalType:()=>kce,isJSDocOverloadTag:()=>TB,isJSDocOverrideTag:()=>hY,isJSDocParameterTag:()=>pg,isJSDocPrivateTag:()=>Sce,isJSDocPropertyLikeTag:()=>HO,isJSDocPropertyTag:()=>DFe,isJSDocProtectedTag:()=>Bce,isJSDocPublicTag:()=>Ace,isJSDocReadonlyTag:()=>wce,isJSDocReturnTag:()=>fY,isJSDocSatisfiesExpression:()=>zle,isJSDocSatisfiesTag:()=>mY,isJSDocSeeTag:()=>tQe,isJSDocSignature:()=>Iv,isJSDocTag:()=>M8,isJSDocTemplateTag:()=>gg,isJSDocThisTag:()=>_Fe,isJSDocThrowsTag:()=>nQe,isJSDocTypeAlias:()=>K4,isJSDocTypeAssertion:()=>eM,isJSDocTypeExpression:()=>bk,isJSDocTypeLiteral:()=>V7,isJSDocTypeTag:()=>QP,isJSDocTypedefTag:()=>LB,isJSDocUnknownTag:()=>iQe,isJSDocUnknownType:()=>gFe,isJSDocVariadicType:()=>dY,isJSXTagName:()=>G8,isJsonEqual:()=>oZ,isJsonSourceFile:()=>H4,isJsxAttribute:()=>aE,isJsxAttributeLike:()=>OU,isJsxAttributeName:()=>Cke,isJsxAttributes:()=>V2,isJsxChild:()=>QO,isJsxClosingElement:()=>O2,isJsxClosingFragment:()=>dFe,isJsxElement:()=>u3,isJsxExpression:()=>ZP,isJsxFragment:()=>j2,isJsxNamespacedName:()=>mg,isJsxOpeningElement:()=>rE,isJsxOpeningFragment:()=>O7,isJsxOpeningLikeElement:()=>Ph,isJsxOpeningLikeElementTagName:()=>K9e,isJsxSelfClosingElement:()=>vk,isJsxSpreadAttribute:()=>j7,isJsxTagNameExpression:()=>KN,isJsxText:()=>S7,isJumpStatementTarget:()=>LH,isKeyword:()=>nf,isKeywordOrPunctuation:()=>yq,isKnownSymbol:()=>Mj,isLabelName:()=>Ihe,isLabelOfLabeledStatement:()=>zhe,isLabeledStatement:()=>R2,isLateVisibilityPaintedStatement:()=>QU,isLeftHandSideExpression:()=>_f,isLeftHandSideOfAssignment:()=>QZe,isLet:()=>tq,isLineBreak:()=>q1,isLiteralComputedPropertyDeclarationName:()=>Tj,isLiteralExpression:()=>m2,isLiteralExpressionOfObject:()=>Jse,isLiteralImportTypeNode:()=>Mx,isLiteralKind:()=>ON,isLiteralLikeAccess:()=>Dq,isLiteralLikeElementAccess:()=>xj,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>eX,isLiteralTypeLikeExpression:()=>lQe,isLiteralTypeLiteral:()=>obe,isLiteralTypeNode:()=>Nv,isLocalName:()=>uD,isLogicalOperator:()=>Lye,isLogicalOrCoalescingAssignmentExpression:()=>ale,isLogicalOrCoalescingAssignmentOperator:()=>fP,isLogicalOrCoalescingBinaryExpression:()=>Kj,isLogicalOrCoalescingBinaryOperator:()=>Hj,isMappedTypeNode:()=>GP,isMemberName:()=>G_,isMetaProperty:()=>JP,isMethodDeclaration:()=>cc,isMethodOrAccessor:()=>T8,isMethodSignature:()=>i3,isMinusToken:()=>gce,isMissingDeclaration:()=>YYe,isModifier:()=>Yo,isModifierKind:()=>QD,isModifierLike:()=>rl,isModuleAugmentationExternal:()=>m0e,isModuleBlock:()=>uE,isModuleBody:()=>cbe,isModuleDeclaration:()=>Ec,isModuleExportsAccessExpression:()=>Z_,isModuleIdentifier:()=>N0e,isModuleName:()=>MFe,isModuleOrEnumDeclaration:()=>ZO,isModuleReference:()=>pbe,isModuleSpecifierLike:()=>EX,isModuleWithStringLiteralName:()=>YU,isNameOfFunctionDeclaration:()=>Vhe,isNameOfModuleDeclaration:()=>jhe,isNamedClassElement:()=>tbe,isNamedDeclaration:()=>fh,isNamedEvaluation:()=>zf,isNamedEvaluationSource:()=>G0e,isNamedExportBindings:()=>Kse,isNamedExports:()=>Q4,isNamedImportBindings:()=>t0e,isNamedImports:()=>nD,isNamedImportsOrExports:()=>Wq,isNamedTupleMember:()=>WP,isNamespaceBody:()=>vZe,isNamespaceExport:()=>n_,isNamespaceExportDeclaration:()=>SV,isNamespaceImport:()=>Gx,isNamespaceReexportDeclaration:()=>eye,isNewExpression:()=>I2,isNewExpressionTarget:()=>BM,isNoSubstitutionTemplateLiteral:()=>B7,isNode:()=>gZe,isNodeArray:()=>f2,isNodeArrayMultiLine:()=>Vye,isNodeDescendantOf:()=>k2,isNodeKind:()=>KO,isNodeLikeSystem:()=>doe,isNodeModulesDirectory:()=>DU,isNodeWithPossibleHoistedDeclaration:()=>oye,isNonContextualKeyword:()=>W0e,isNonExportDefaultModifier:()=>dQe,isNonGlobalAmbientModule:()=>f0e,isNonGlobalDeclaration:()=>PSe,isNonNullAccess:()=>vke,isNonNullChain:()=>LU,isNonNullExpression:()=>I7,isNonStaticMethodOrAccessorWithPrivateName:()=>WAe,isNotEmittedOrPartiallyEmittedNode:()=>xZe,isNotEmittedStatement:()=>bce,isNullishCoalesce:()=>Hse,isNumber:()=>$D,isNumericLiteral:()=>Rf,isNumericLiteralName:()=>t3,isObjectBindingElementWithoutPropertyName:()=>KH,isObjectBindingOrAssignmentElement:()=>$O,isObjectBindingOrAssignmentPattern:()=>Zse,isObjectBindingPattern:()=>Mp,isObjectLiteralElement:()=>i0e,isObjectLiteralElementLike:()=>q3,isObjectLiteralExpression:()=>Cs,isObjectLiteralMethod:()=>Np,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>rq,isObjectTypeDeclaration:()=>_7,isOctalDigit:()=>bU,isOmittedExpression:()=>kd,isOptionalChain:()=>Z1,isOptionalChainRoot:()=>zN,isOptionalDeclaration:()=>NP,isOptionalJSDocPropertyLikeTag:()=>uV,isOptionalTypeNode:()=>_ce,isOuterExpression:()=>_Y,isOutermostOptionalChain:()=>IN,isOverrideModifier:()=>eFe,isPackedArrayLiteral:()=>Nle,isParameter:()=>eo,isParameterDeclaration:()=>A2,isParameterOrCatchClauseVariable:()=>Ple,isParameterPropertyDeclaration:()=>Pf,isParameterPropertyModifier:()=>jN,isParenthesizedExpression:()=>vf,isParenthesizedTypeNode:()=>N7,isParseTreeNode:()=>MN,isPartOfTypeNode:()=>U_,isPartOfTypeQuery:()=>mq,isPartiallyEmittedExpression:()=>oY,isPatternMatch:()=>$$,isPinnedComment:()=>qU,isPlainJsFile:()=>tj,isPlusToken:()=>pce,isPossiblyTypeArgumentPosition:()=>IH,isPostfixUnaryExpression:()=>xce,isPrefixUnaryExpression:()=>Pv,isPrivateIdentifier:()=>Xr,isPrivateIdentifierClassElementDeclaration:()=>mh,isPrivateIdentifierPropertyAccessExpression:()=>B8,isPrivateIdentifierSymbol:()=>hye,isProgramBundleEmitBuildInfo:()=>J7e,isProgramUptoDate:()=>B1e,isPrologueDirective:()=>Lp,isPropertyAccessChain:()=>wU,isPropertyAccessEntityNameExpression:()=>Gj,isPropertyAccessExpression:()=>Iu,isPropertyAccessOrQualifiedName:()=>rbe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>ube,isPropertyAssignment:()=>Gc,isPropertyDeclaration:()=>bo,isPropertyName:()=>Ac,isPropertyNameLiteral:()=>Qg,isPropertySignature:()=>Pm,isProtoSetter:()=>fye,isPrototypeAccess:()=>Rx,isPrototypePropertyAssignment:()=>bj,isPunctuation:()=>K0e,isPushOrUnshiftIdentifier:()=>J0e,isQualifiedName:()=>xf,isQuestionDotToken:()=>eY,isQuestionOrExclamationToken:()=>TFe,isQuestionOrPlusOrMinusToken:()=>PFe,isQuestionToken:()=>Kx,isRawSourceMap:()=>jAe,isReadonlyKeyword:()=>Qke,isReadonlyKeywordOrPlusOrMinusToken:()=>NFe,isRecognizedTripleSlashComment:()=>l0e,isReferenceFileLocation:()=>UB,isReferencedFile:()=>Wv,isRegularExpressionLiteral:()=>fce,isRequireCall:()=>Df,isRequireVariableStatement:()=>T0e,isRestParameter:()=>J_,isRestTypeNode:()=>Dce,isReturnStatement:()=>zp,isReturnStatementWithFixablePromiseHandler:()=>WX,isRightSideOfAccessExpression:()=>lle,isRightSideOfInstanceofExpression:()=>Pye,isRightSideOfPropertyAccess:()=>iw,isRightSideOfQualifiedName:()=>G9e,isRightSideOfQualifiedNameOrPropertyAccess:()=>pP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Nye,isRootedDiskPath:()=>Nf,isSameEntityName:()=>$8,isSatisfiesExpression:()=>aFe,isScopeMarker:()=>sbe,isSemicolonClassElement:()=>oFe,isSetAccessor:()=>XD,isSetAccessorDeclaration:()=>Of,isShebangTrivia:()=>Sse,isShiftOperatorOrHigher:()=>Hce,isShorthandAmbientModuleSymbol:()=>JN,isShorthandPropertyAssignment:()=>mm,isSignedNumericLiteral:()=>Aq,isSimpleCopiableExpression:()=>U2,isSimpleInlineableExpression:()=>oE,isSingleOrDoubleQuote:()=>gj,isSourceFile:()=>ca,isSourceFileFromLibrary:()=>HM,isSourceFileJS:()=>ph,isSourceFileNotJS:()=>TZe,isSourceFileNotJson:()=>w0e,isSourceMapping:()=>VAe,isSpecialPropertyDeclaration:()=>nye,isSpreadAssignment:()=>c5,isSpreadElement:()=>nE,isStatement:()=>na,isStatementButNotDeclaration:()=>YO,isStatementOrBlock:()=>mbe,isStatementWithLocals:()=>kbe,isStatic:()=>To,isStaticModifier:()=>T7,isString:()=>Ja,isStringAKeyword:()=>VZe,isStringANonContextualKeyword:()=>h7,isStringAndEmptyAnonymousObjectIntersection:()=>uSe,isStringDoubleQuoted:()=>_q,isStringLiteral:()=>ns,isStringLiteralLike:()=>t0,isStringLiteralOrJsxExpression:()=>gbe,isStringLiteralOrTemplate:()=>kSe,isStringOrNumericLiteralLike:()=>Nm,isStringOrRegularExpressionOrTemplateLiteral:()=>qhe,isStringTextContainingNode:()=>$se,isSuperCall:()=>ek,isSuperKeyword:()=>VP,isSuperOrSuperProperty:()=>wZe,isSuperProperty:()=>tf,isSupportedSourceFileName:()=>cke,isSwitchStatement:()=>AV,isSyntaxList:()=>NB,isSyntheticExpression:()=>KYe,isSyntheticReference:()=>R7,isTagName:()=>Rhe,isTaggedTemplateExpression:()=>Ek,isTaggedTemplateTag:()=>V9e,isTemplateExpression:()=>rY,isTemplateHead:()=>DB,isTemplateLiteral:()=>L8,isTemplateLiteralKind:()=>Sx,isTemplateLiteralToken:()=>Y2e,isTemplateLiteralTypeNode:()=>HYe,isTemplateLiteralTypeSpan:()=>nFe,isTemplateMiddle:()=>$ke,isTemplateMiddleOrTemplateTail:()=>NU,isTemplateSpan:()=>UP,isTemplateTail:()=>mce,isTextWhiteSpaceLike:()=>cSe,isThis:()=>nw,isThisContainerOrFunctionBlock:()=>Ybe,isThisIdentifier:()=>w2,isThisInTypeQuery:()=>m7,isThisInitializedDeclaration:()=>cq,isThisInitializedObjectBindingExpression:()=>Xbe,isThisProperty:()=>hj,isThisTypeNode:()=>uY,isThisTypeParameter:()=>LP,isThisTypePredicate:()=>BZe,isThrowStatement:()=>Cce,isToken:()=>i7,isTokenKind:()=>Gse,isTraceEnabled:()=>rD,isTransientSymbol:()=>UE,isTrivia:()=>tB,isTryStatement:()=>xk,isTupleTypeNode:()=>CB,isTypeAlias:()=>Fj,isTypeAliasDeclaration:()=>Ip,isTypeAssertionExpression:()=>uFe,isTypeDeclaration:()=>mB,isTypeElement:()=>Uy,isTypeKeyword:()=>NM,isTypeKeywordToken:()=>tfe,isTypeKeywordTokenOrIdentifier:()=>fX,isTypeLiteralNode:()=>hm,isTypeNode:()=>Qr,isTypeNodeKind:()=>Ele,isTypeOfExpression:()=>kB,isTypeOnlyExportDeclaration:()=>Q2e,isTypeOnlyImportDeclaration:()=>PU,isTypeOnlyImportOrExportDeclaration:()=>p2,isTypeOperatorNode:()=>P7,isTypeParameterDeclaration:()=>Al,isTypePredicateNode:()=>iY,isTypeQueryNode:()=>vB,isTypeReferenceNode:()=>Y4,isTypeReferenceType:()=>KU,isTypeUsableAsPropertyName:()=>q4,isUMDExportSymbol:()=>Kq,isUnaryExpression:()=>Xse,isUnaryExpressionWithWrite:()=>abe,isUnicodeIdentifierStart:()=>vU,isUnionTypeNode:()=>Lv,isUnparsedNode:()=>Wse,isUnparsedPrepend:()=>hFe,isUnparsedSource:()=>Ck,isUnparsedTextLike:()=>Z2e,isUrl:()=>_2e,isValidBigIntString:()=>sZ,isValidESSymbolDeclaration:()=>Gbe,isValidTypeOnlyAliasUseSite:()=>Bv,isValueSignatureDeclaration:()=>sye,isVarAwaitUsing:()=>oj,isVarConst:()=>V8,isVarUsing:()=>sj,isVariableDeclaration:()=>ua,isVariableDeclarationInVariableStatement:()=>UN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>b2,isVariableDeclarationInitializedToRequire:()=>Eq,isVariableDeclarationList:()=>Fd,isVariableLike:()=>K8,isVariableLikeOrAccessor:()=>Kbe,isVariableStatement:()=>Gl,isVoidExpression:()=>z7,isWatchSet:()=>tYe,isWhileStatement:()=>GYe,isWhiteSpaceLike:()=>$3,isWhiteSpaceSingleLine:()=>Ug,isWithStatement:()=>sFe,isWriteAccess:()=>E7,isWriteOnlyAccess:()=>Hq,isYieldExpression:()=>aY,jsxModeNeedsExplicitImport:()=>Afe,keywordPart:()=>Vf,last:()=>Cr,lastOrUndefined:()=>Yu,length:()=>S,libMap:()=>SY,libs:()=>qV,lineBreakPart:()=>ow,linkNamePart:()=>gSe,linkPart:()=>hfe,linkTextPart:()=>vX,listFiles:()=>U1e,loadModuleFromGlobalCache:()=>bAe,loadWithModeAwareCache:()=>xH,makeIdentifierFromModuleName:()=>wbe,makeImport:()=>p5,makeImportIfNecessary:()=>lSe,makeStringLiteral:()=>t9,mangleScopedPackageName:()=>WB,map:()=>Kt,mapAllOrFail:()=>la,mapDefined:()=>Ui,mapDefinedEntries:()=>j0,mapDefinedIterator:()=>Uo,mapEntries:()=>ki,mapIterator:()=>zr,mapOneOrMany:()=>yfe,mapToDisplayParts:()=>qx,matchFiles:()=>Fle,matchPatternOrExact:()=>Sle,matchedText:()=>XCe,matchesExclude:()=>AY,maybeBind:()=>wo,maybeSetLocalizedDiagnosticMessages:()=>Xye,memoize:()=>Nh,memoizeCached:()=>JCe,memoizeOne:()=>VE,memoizeWeak:()=>cqe,metadataHelper:()=>FZ,min:()=>aoe,minAndMax:()=>hke,missingFileModifiedTime:()=>H_,modifierToFlag:()=>g7,modifiersToFlags:()=>eE,moduleOptionDeclaration:()=>lde,moduleResolutionIsEqualTo:()=>bbe,moduleResolutionNameAndModeGetter:()=>CH,moduleResolutionOptionDeclarations:()=>BY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>v7,moduleResolutionUsesNodeModules:()=>mX,moduleSpecifiers:()=>$2,moveEmitHelpers:()=>jke,moveRangeEnd:()=>jq,moveRangePastDecorators:()=>a5,moveRangePastModifiers:()=>tE,moveRangePos:()=>Fv,moveSyntheticComments:()=>Ike,mutateMap:()=>sB,mutateMapSkippingNewValues:()=>X3,needsParentheses:()=>bX,needsScopeMarker:()=>IU,newCaseClauseTracker:()=>IX,newPrivateEnvironment:()=>$Ae,noEmitNotification:()=>hH,noEmitSubstitution:()=>DM,noTransformers:()=>l1e,noTruncationMaximumTruncationLength:()=>pZ,nodeCanBeDecorated:()=>hq,nodeHasName:()=>RO,nodeIsDecorated:()=>ZN,nodeIsMissing:()=>Yl,nodeIsPresent:()=>j4,nodeIsSynthesized:()=>al,nodeModuleNameResolver:()=>pAe,nodeModulesPathPart:()=>a_,nodeNextJsonConfigResolver:()=>gAe,nodeOrChildIsDecorated:()=>mj,nodeOverlapsWithStartEnd:()=>tX,nodePosToString:()=>bZe,nodeSeenTracker:()=>e9,nodeStartsNewLexicalEnvironment:()=>$0e,nodeToDisplayParts:()=>Sit,noop:()=>Ms,noopFileWatcher:()=>XB,normalizePath:()=>Go,normalizeSlashes:()=>U1,not:()=>q$,notImplemented:()=>lo,notImplementedResolver:()=>pQ,nullNodeConverters:()=>ece,nullParenthesizerRules:()=>Xle,nullTransformationContext:()=>Eg,objectAllocator:()=>Yd,operatorPart:()=>zM,optionDeclarations:()=>r3,optionMapToObject:()=>nde,optionsAffectingProgramStructure:()=>mde,optionsForBuild:()=>gde,optionsForWatch:()=>OB,optionsHaveChanges:()=>z8,optionsHaveModuleResolutionChanges:()=>xbe,or:()=>lg,orderedRemoveItem:()=>mO,orderedRemoveItemAt:()=>dv,outFile:()=>b0,packageIdToPackageName:()=>JU,packageIdToString:()=>Nx,paramHelper:()=>AZ,parameterIsThisKeyword:()=>B2,parameterNamePart:()=>hSe,parseBaseNodeFactory:()=>qce,parseBigInt:()=>fke,parseBuildCommand:()=>KQe,parseCommandLine:()=>VQe,parseCommandLineWorker:()=>Qce,parseConfigFileTextToJson:()=>ede,parseConfigFileWithSystem:()=>Stt,parseConfigHostFromCompilerHostLike:()=>FQ,parseCustomTypeOption:()=>kY,parseIsolatedEntityName:()=>K7,parseIsolatedJSDocComment:()=>HFe,parseJSDocTypeExpressionForTests:()=>SQe,parseJsonConfigFileContent:()=>nXe,parseJsonSourceFileConfigFileContent:()=>JV,parseJsonText:()=>HV,parseListTypeOption:()=>WFe,parseNodeFactory:()=>r_,parseNodeModuleFromPath:()=>iH,parsePackageName:()=>rH,parsePseudoBigInt:()=>AP,parseValidBigInt:()=>Lle,patchWriteFileEnsuringDirectory:()=>g2e,pathContainsNodeModules:()=>$7,pathIsAbsolute:()=>AN,pathIsBareSpecifier:()=>yse,pathIsRelative:()=>am,patternText:()=>QCe,perfLogger:()=>dh,performIncrementalCompilation:()=>Ltt,performance:()=>c2e,plainJSErrors:()=>BQ,positionBelongsToNode:()=>Khe,positionIsASICandidate:()=>AX,positionIsSynthesized:()=>fg,positionsAreOnSameLine:()=>$4,preProcessFile:()=>tnt,probablyUsesSemicolons:()=>qH,processCommentPragmas:()=>$ce,processPragmasIntoFields:()=>Uce,processTaggedTemplateExpression:()=>t1e,programContainsEsModules:()=>sSe,programContainsModules:()=>oSe,projectReferenceIsEqualTo:()=>r0e,propKeyHelper:()=>jZ,propertyNamePart:()=>fSe,pseudoBigIntToString:()=>P2,punctuationPart:()=>th,pushIfUnique:()=>va,quote:()=>OM,quotePreferenceFromString:()=>rfe,rangeContainsPosition:()=>NH,rangeContainsPositionExclusive:()=>PH,rangeContainsRange:()=>jm,rangeContainsRangeExclusive:()=>$9e,rangeContainsStartEnd:()=>MH,rangeEndIsOnSameLineAsRangeStart:()=>$j,rangeEndPositionsAreOnSameLine:()=>Oye,rangeEquals:()=>zi,rangeIsOnSingleLine:()=>ck,rangeOfNode:()=>wle,rangeOfTypeParameters:()=>Tle,rangeOverlapsWithStartEnd:()=>wM,rangeStartIsOnSameLineAsRangeEnd:()=>jye,rangeStartPositionsAreOnSameLine:()=>Vq,readBuilderProgram:()=>VQ,readConfigFile:()=>WV,readHelper:()=>RZ,readJson:()=>gP,readJsonConfigFile:()=>$Fe,readJsonOrUndefined:()=>dle,reduceEachLeadingCommentRange:()=>b2e,reduceEachTrailingCommentRange:()=>y2e,reduceLeft:()=>tn,reduceLeftIterator:()=>ue,reducePathComponents:()=>Wy,refactor:()=>u9,regExpEscape:()=>lYe,relativeComplement:()=>ia,removeAllComments:()=>pV,removeEmitHelper:()=>OYe,removeExtension:()=>tV,removeFileExtension:()=>Eh,removeIgnoredPath:()=>LQ,removeMinAndVersionNumbers:()=>ooe,removeOptionality:()=>eSe,removePrefix:()=>bN,removeSuffix:()=>E8,removeTrailingDirectorySeparator:()=>hv,repeatString:()=>VH,replaceElement:()=>Ud,resolutionExtensionIsTSOrJson:()=>kP,resolveConfigFileProjectName:()=>rhe,resolveJSModule:()=>fAe,resolveLibrary:()=>OY,resolveModuleName:()=>HB,resolveModuleNameFromCache:()=>jXe,resolvePackageNameToPackageJson:()=>Dde,resolvePath:()=>yx,resolveProjectReferencePath:()=>qB,resolveTripleslashReference:()=>DQ,resolveTypeReferenceDirective:()=>cAe,resolvingEmptyArray:()=>mZ,restHelper:()=>PZ,returnFalse:()=>sg,returnNoopFileWatcher:()=>ew,returnTrue:()=>G3,returnUndefined:()=>cv,returnsPromise:()=>Jfe,runInitializersHelper:()=>BZ,sameFlatMap:()=>ha,sameMap:()=>Mu,sameMapping:()=>wet,scanShebangTrivia:()=>Bse,scanTokenAtPosition:()=>jbe,scanner:()=>ih,screenStartingMessageCodes:()=>jQ,semanticDiagnosticsOptionDeclarations:()=>dde,serializeCompilerOptions:()=>rde,server:()=>qct,servicesVersion:()=>eBe,setCommentRange:()=>Sc,setConfigFileInOptions:()=>ode,setConstantValue:()=>Oke,setEachParent:()=>fB,setEmitFlags:()=>Qn,setFunctionNameHelper:()=>VZ,setGetSourceFileAsHashVersioned:()=>OQ,setIdentifierAutoGenerate:()=>_V,setIdentifierGeneratedImportReference:()=>Kke,setIdentifierTypeArguments:()=>s5,setInternalEmitFlags:()=>gV,setLocalizedDiagnosticMessages:()=>Qye,setModuleDefaultHelper:()=>WZ,setNodeFlags:()=>gke,setObjectAllocator:()=>Yye,setOriginalNode:()=>lu,setParent:()=>bs,setParentRecursive:()=>jx,setPrivateIdentifier:()=>Ak,setSnippetElement:()=>sce,setSourceMapRange:()=>ks,setStackTraceLimit:()=>Tqe,setStartsOnNewLine:()=>CZ,setSyntheticLeadingComments:()=>Tv,setSyntheticTrailingComments:()=>k7,setSys:()=>zqe,setSysLog:()=>m2e,setTextRange:()=>Pt,setTextRangeEnd:()=>hB,setTextRangePos:()=>SP,setTextRangePosEnd:()=>e_,setTextRangePosWidth:()=>BP,setTokenSourceMapRange:()=>zke,setTypeNode:()=>Vke,setUILocale:()=>qCe,setValueDeclaration:()=>yj,shouldAllowImportingTsExtension:()=>GB,shouldPreserveConstEnums:()=>dk,shouldResolveJsRequire:()=>Zq,shouldUseUriStyleNodeCoreModules:()=>MX,showModuleSpecifier:()=>Gye,signatureHasLiteralTypes:()=>Rde,signatureHasRestParameter:()=>eh,signatureToDisplayParts:()=>ffe,single:()=>Cd,singleElementArray:()=>jy,singleIterator:()=>Ra,singleOrMany:()=>k0,singleOrUndefined:()=>Aa,skipAlias:()=>Q1,skipAssertions:()=>aQe,skipConstraint:()=>ife,skipOuterExpressions:()=>_c,skipParentheses:()=>s0,skipPartiallyEmittedExpressions:()=>wp,skipTrivia:()=>ms,skipTypeChecking:()=>FP,skipTypeParentheses:()=>O0e,skipWhile:()=>t2e,sliceAfter:()=>Ble,some:()=>qe,sort:()=>Lh,sortAndDeduplicate:()=>mi,sortAndDeduplicateDiagnostics:()=>k8,sourceFileAffectingCompilerOptions:()=>wY,sourceFileMayBeEmitted:()=>f7,sourceMapCommentRegExp:()=>XY,sourceMapCommentRegExpDontCareLineStart:()=>Gde,spacePart:()=>Jl,spanMap:()=>Xs,spreadArrayHelper:()=>OZ,stableSort:()=>ac,startEndContainsRange:()=>Hhe,startEndOverlapsWithStartEnd:()=>iX,startOnNewLine:()=>xh,startTracing:()=>d2e,startsWith:()=>Na,startsWithDirectory:()=>Fse,startsWithUnderscore:()=>Ffe,startsWithUseStrict:()=>kFe,stringContainsAt:()=>NSe,stringToToken:()=>c2,stripQuotes:()=>G4,supportedDeclarationExtensions:()=>lV,supportedJSExtensions:()=>Zle,supportedJSExtensionsFlat:()=>gB,supportedLocaleDirectories:()=>u0e,supportedTSExtensions:()=>pB,supportedTSExtensionsFlat:()=>qle,supportedTSImplementationExtensions:()=>cV,suppressLeadingAndTrailingTrivia:()=>Hf,suppressLeadingTrivia:()=>gfe,suppressTrailingTrivia:()=>CSe,symbolEscapedNameNoDefault:()=>gX,symbolName:()=>sc,symbolNameNoDefault:()=>pX,symbolPart:()=>dSe,symbolToDisplayParts:()=>IM,syntaxMayBeASICandidate:()=>Lfe,syntaxRequiresTrailingSemicolonOrASI:()=>FX,sys:()=>l1,sysLog:()=>vO,tagNamesAreEquivalent:()=>Ov,takeWhile:()=>Y$,targetOptionDeclaration:()=>YV,templateObjectHelper:()=>IZ,testFormatSettings:()=>j9e,textChangeRangeIsUnchanged:()=>T2e,textChangeRangeNewSpan:()=>PN,textChanges:()=>nu,textOrKeywordPart:()=>dfe,textPart:()=>Hm,textRangeContainsPositionInclusive:()=>MO,textSpanContainsPosition:()=>Lse,textSpanContainsTextSpan:()=>A2e,textSpanEnd:()=>gc,textSpanIntersection:()=>w2e,textSpanIntersectsWith:()=>FU,textSpanIntersectsWithPosition:()=>B2e,textSpanIntersectsWithTextSpan:()=>nZe,textSpanIsEmpty:()=>F2e,textSpanOverlap:()=>S2e,textSpanOverlapsWith:()=>iZe,textSpansEqual:()=>aw,textToKeywordObj:()=>NO,timestamp:()=>V0,toArray:()=>qA,toBuilderFileEmit:()=>Z7e,toBuilderStateFileInfoForMultiEmit:()=>q7e,toEditorSettings:()=>mK,toFileNameLowerCase:()=>Jg,toLowerCase:()=>GCe,toPath:()=>H0,toProgramEmitPending:()=>Y7e,tokenIsIdentifierOrKeyword:()=>hh,tokenIsIdentifierOrKeywordOrGreaterThan:()=>v2e,tokenToString:()=>Jo,trace:()=>Sa,tracing:()=>$n,tracingEnabled:()=>EO,transform:()=>ert,transformClassFields:()=>n7e,transformDeclarations:()=>o1e,transformECMAScriptModule:()=>r1e,transformES2015:()=>_7e,transformES2016:()=>E7e,transformES2017:()=>o7e,transformES2018:()=>s7e,transformES2019:()=>l7e,transformES2020:()=>c7e,transformES2021:()=>d7e,transformES5:()=>D7e,transformESDecorators:()=>a7e,transformESNext:()=>h7e,transformGenerators:()=>x7e,transformJsx:()=>g7e,transformLegacyDecorators:()=>r7e,transformModule:()=>u1e,transformNamedEvaluation:()=>jf,transformNodeModule:()=>C7e,transformNodes:()=>fH,transformSystemModule:()=>v7e,transformTypeScript:()=>i7e,transpile:()=>lnt,transpileModule:()=>QSe,transpileOptionValueCompilerOptions:()=>pde,tryAddToSet:()=>Ll,tryAndIgnoreErrors:()=>wX,tryCast:()=>ar,tryDirectoryExists:()=>BX,tryExtractTSExtension:()=>Oq,tryFileExists:()=>ZH,tryGetClassExtendingExpressionWithTypeArguments:()=>ole,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>sle,tryGetDirectories:()=>SX,tryGetExtensionFromPath:()=>e3,tryGetImportFromModuleSpecifier:()=>kj,tryGetJSDocSatisfiesTypeNode:()=>hZ,tryGetModuleNameFromFile:()=>MV,tryGetModuleSpecifierFromDeclaration:()=>U8,tryGetNativePerformanceHooks:()=>o2e,tryGetPropertyAccessOrIdentifierToString:()=>Jj,tryGetPropertyNameOfBindingOrAssignmentElement:()=>xY,tryGetSourceMappingURL:()=>OAe,tryGetTextOfPropertyName:()=>$N,tryIOAndConsumeErrors:()=>TX,tryParsePattern:()=>dB,tryParsePatterns:()=>rZ,tryParseRawSourceMap:()=>Kde,tryReadDirectory:()=>Dfe,tryReadFile:()=>uM,tryRemoveDirectoryPrefix:()=>ble,tryRemoveExtension:()=>dke,tryRemovePrefix:()=>coe,tryRemoveSuffix:()=>YCe,typeAcquisitionDeclarations:()=>QV,typeAliasNamePart:()=>mSe,typeDirectiveIsEqualTo:()=>ybe,typeKeywords:()=>RX,typeParameterNamePart:()=>pSe,typeReferenceResolutionNameAndModeGetter:()=>SQ,typeToDisplayParts:()=>GH,unchangedPollThresholds:()=>CO,unchangedTextChangeRange:()=>XO,unescapeLeadingUnderscores:()=>Yr,unmangleScopedPackageName:()=>oH,unorderedRemoveItem:()=>Oy,unorderedRemoveItemAt:()=>soe,unreachableCodeIsError:()=>ike,unusedLabelIsError:()=>nke,unwrapInnermostStatementOfLabel:()=>F0e,updateErrorForNoInputFiles:()=>FY,updateLanguageServiceSourceFile:()=>Bme,updateMissingFilePathsWatch:()=>p1e,updatePackageJsonWatch:()=>ttt,updateResolutionField:()=>jB,updateSharedExtendedConfigFileWatcher:()=>EQ,updateSourceFile:()=>Jce,updateWatchingWildcardDirectories:()=>gH,usesExtensionsOnImports:()=>lke,usingSingleLineStringWriter:()=>WN,utf16EncodeAsString:()=>y8,validateLocaleAndSetLanguage:()=>rZe,valuesHelper:()=>HZ,version:()=>_,versionMajorMinor:()=>g,visitArray:()=>lH,visitCommaListElements:()=>cH,visitEachChild:()=>un,visitFunctionBody:()=>Rm,visitIterationBody:()=>Mh,visitLexicalEnvironment:()=>QY,visitNode:()=>yt,visitNodes:()=>Fn,visitParameterList:()=>Dc,walkUpBindingElementsAndPatterns:()=>F8,walkUpLexicalEnvironments:()=>JAe,walkUpOuterExpressions:()=>FFe,walkUpParenthesizedExpressions:()=>t5,walkUpParenthesizedTypes:()=>wj,walkUpParenthesizedTypesAndGetParentAndChild:()=>lye,whitespaceOrMapCommentRegExp:()=>eQ,writeCommentRange:()=>aB,writeFile:()=>lP,writeFileEnsuringDirectories:()=>ile,zipWith:()=>re});var Yct=o({"src/typescript/_namespaces/ts.ts"(){Ao(),AH(),or(),Yv(),aXt()}}),oXt=c({"src/typescript/typescript.ts"(t,u){Yct(),Yct(),typeof console<"u"&&(H.loggingHost={log(s,d){switch(s){case 1:return console.error(d);case 2:return console.warn(d);case 3:return console.log(d);case 4:return console.log(d)}}}),u.exports=Zct}});return oXt()})();r.exports&&(r.exports=i)})(I6t);var yhi=I6t.exports;const qpt=xhi(yhi);class vGe{constructor(e,i){Rc(this,"id");Rc(this,"name");Rc(this,"columns",[]);Rc(this,"settings");this.name=e,this.settings=i}loadFromObj(e){this.name=e.name,this.settings=e.settings,this.columns=e.columns.map(i=>this.prepareColumn(i)),this.processMiddlewareHandlers()}toObj(){return{name:this.name,columns:this.columns,settings:this.settings}}removeColumn(e){this.columns.splice(this.columns.findIndex(i=>i.id===e),1)}prepareColumn(e){let i=qpt.transpile("return "+e.handlerTsCode);return e.handler=new Function(i)(),e}processMiddlewareHandlers(){this.settings.middlewares=this.settings.middlewares.map(e=>{let i=qpt.transpile("return "+e.handlerTsCode);return e.handler=new Function(i)(),e})}swapElement(e,i){var n=this.columns[e];this.columns[e]=this.columns[i],this.columns[i]=n}move(e,i){let n=this.columns.findIndex(o=>o.id===e),a=i>0?n+1:n-1;this.swapElement(n,a)}add(e){e.idx=this.columns.length===0?0:this.columns.length,e.id=Math.random().toString().substring(2,8),e.width=e.width||150,e.handlerTsCode&&(e=this.prepareColumn(e)),this.columns.push(e)}update(e){e=this.prepareColumn(e);let i=this.columns.findIndex(n=>n.id===e.id);this.columns[i]=e}getColumn(e){return this.columns.find(i=>i.id===e)}}const Zpt=()=>({read:0,starred:0,unread:0}),KT=z6t("filter",()=>{const r=Ws({read:!1,unread:!1,starred:!1}),e=Ws({...Zpt()}),i=(h,g)=>{e.value[h]||(e.value[h]=0),e.value[h]+=g},n=h=>{r.value[h]=!r.value[h]},a=()=>{e.value={...Zpt()}},o=()=>{for(let h in r.value)r.value[h]=!1},c=gy(()=>Object.entries(r.value).filter(([g,_])=>_).map(g=>g[0]));return{filters:e,filterToggle:r,enabledFilters:c,reset:a,resetToggles:o,changeFilter:i,toggleFilter:n}});class khi{constructor(){Rc(this,"headers",{});Rc(this,"onRequestStart",null);Rc(this,"onRequestEnd",null)}setHeader(e,i){this.headers[e]=i}setAuthToken(e){e&&this.setHeader("logdy-client-id",e)}async sendGet(e){let i={};this.onRequestStart&&(i=this.onRequestStart()||{});let n=await fetch(window.location.pathname+"api/"+e,{method:"GET",headers:{...this.headers,...i}});return this.onRequestEnd&&this.onRequestEnd(),{status:n.status,headers:n.headers,json:n.headers.get("content-type")=="application/json"?await n.json():{},body:n.bodyUsed?"":await n.text()}}async sendPost(e,i){let n={};this.onRequestStart&&(n=this.onRequestStart()||{});let a=await fetch("api/"+e,{method:"POST",body:i?JSON.stringify(i):null,headers:{"Content-Type":"application/json",...this.headers,...n}});return this.onRequestEnd&&this.onRequestEnd(),{status:a.status,headers:a.headers,json:a.headers.get("content-type")=="application/json"?await a.json():{},body:a.bodyUsed?"":await a.text()}}async resume(){await this.sendGet("client/set-status?status=following")}async resumeFromCursor(){await this.sendGet("client/set-status?status=following&from_cursor=true")}async pause(){await this.sendGet("client/set-status?status=stopped")}async clientStatus(){return this.sendGet("client/check-status")}async peek(e,i){return this.sendPost("client/peek-log",{idxs:[e,i]})}async load(e,i){return this.sendGet(`client/load?start=${e+1}&count=${i}`)}}const GS=new khi;function TI(r){return r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Fhi(r,e){return new URLSearchParams(r).get(e)}const Zh=z6t("main",()=>{const r=Ws(document.location.host.indexOf("demo.logdy.dev")>=0||!!Fhi(document.location.search,"demo_mode")),e=Ws("started"),i=Ws("json"),n=Ws(""),a=Ws(!1),o=Ws("not connected"),c=Ws("paused"),h=Ws({LastDeliveredIdx:0,MessageCount:0,MessagesToTail:0}),g=Ws(!1),_=Ws(""),x=Ws(""),y=Ws(!1),S=Ws([]),L=Ws({}),R=Ws({}),G=Ws(""),ie=Ws(!1),ue=Ws(""),re=Ws({}),_e=Ws(),ye=Ws({}),Le=Ws(new vGe("main",{leftColWidth:300,drawerColWidth:900,maxMessages:1e3,middlewares:[]}));let lt=null;const $e=(Ui,Uo=!0)=>{x.value=Ui,Uo&&Gpt.add({password:Ui},"main")},Ye=()=>{var Ui;return x.value||(x.value=((Ui=Gpt.getOne("main"))==null?void 0:Ui.password)||""),x.value},rt=(Ui,Uo)=>{n.value=Ui,a.value=!0,lt=Uo},Ft=async Ui=>{Ui&<&&await lt(),lt=null,n.value="",a.value=!1},Zt=(Ui,Uo=0)=>{if(Ot(),Uo!==0){for(let j0=0;j0<=la.value.length;j0++)if(la.value[j0].id===Ui.id){Ui=la.value[j0+Uo];break}}Ui&&(Ui.opened||(KT().changeFilter("read",1),KT().changeFilter("unread",-1)),Ui.open=!0,Ui.opened=!0,ye.value.row=Ui,UT.update(Ui.id,{id:Ui.id,message:Ui.msg,opened:!0,starred:Ui.starred}))},Ot=()=>{ye.value.row&&(ye.value.row.open=!1,ye.value.row.opened=!0,ye.value.row=void 0)},ui=Ui=>{Ui.starred=!Ui.starred,KT().changeFilter("starred",Ui.starred?1:-1),UT.update(Ui.id,{id:Ui.id,message:Ui.msg,opened:Ui.opened,starred:Ui.starred})},ei=new BroadcastChannel("tab-activity");setInterval(()=>{ei.postMessage("ping")},5*1e3),ei.addEventListener("message",Ui=>{Ui.data==="ping"&&ei.postMessage("pong"),g.value||rt("We have detected Logdy opened in another tab. Currently we do not support multiple tabs",()=>{g.value=!1}),g.value=!0});const Uu=gy(()=>c.value==="paused"?`Paused at entry #${TI(h.value.LastDeliveredIdx+1)} out of ${TI(h.value.MessageCount)} (${TI(h.value.MessageCount-h.value.LastDeliveredIdx-1)} not seen)`:c.value.includes("following")?`Following real-time out of ${TI(h==null?void 0:h.value.MessageCount)} entries`:"-"),gu=Ui=>{Ui.correlation_id&&(ue.value=Ui.correlation_id,Kt())},Kt=()=>{if(!ue.value||la.value.length===0)return;let Ui={},Uo=la.value[0].msg.timing&&la.value[0].msg.timing.start||0,j0=1;la.value.forEach(Vl=>{var Ll,Ra,Xs;Vl.msg.timing&&(Ui[Vl.id]={id:Vl.id,offset:(Vl.msg.timing.start-Uo)/j0,width:(((Ll=Vl.msg.timing)==null?void 0:Ll.duration)||1)/j0,label:(Ra=Vl.msg.timing)==null?void 0:Ra.label,style:((Xs=Vl.msg.timing)==null?void 0:Xs.style)||{}})}),re.value=Ui},zr=()=>{KT().resetToggles(),Wn()},Mu=()=>{ue.value=""},Va=async Ui=>{switch(Ui){case"following":await GS.resume(),c.value="following";break;case"following_cursor":await GS.resumeFromCursor(),c.value="following_cursor";break;case"paused":await GS.pause(),c.value="paused";break}},Ku=()=>{S.value=[],R.value={},L.value={},KT().reset(),UT.removeAll()},vn=()=>{L.value={}},Wn=()=>{for(let Ui in R.value){let Uo=R.value[Ui];for(let j0 in Uo.items)R.value[Uo.name].items[j0].selected=!1}},ha=gy(()=>{try{return new RegExp(G.value,"i"),""}catch(Ui){return Ui.message}}),la=gy(()=>{if(ha.value.length>0)return[];const Ui={};for(let Xs in R.value)R.value[Xs].items.forEach(ki=>{ki.selected&&(Ui[Xs]||(Ui[Xs]=[]),Ui[Xs].push(ki.label))});let Uo=KT().enabledFilters,j0=Uo.filter(Xs=>Xs.startsWith("origin_file_")).length>0,Vl=Uo.filter(Xs=>Xs.startsWith("origin_port_")).length>0,Ll=Uo.filter(Xs=>Xs.startsWith("origin_na")).length>0,Ra=Uo.filter(Xs=>Xs.startsWith("origin_")).length>0;return S.value.filter(Xs=>{var an,Ir,Zr,io,Pi,li;if(ue.value&&ue.value!=Xs.msg.correlation_id)return!1;let ki=!0;if(Uo.length>0){if(Uo.includes("starred")&&!Xs.starred||Uo.includes("read")&&!Xs.opened||Uo.includes("unread")&&Xs.opened)return!1;Ra&&(j0&&((an=Xs.msg.origin)!=null&&an.file)&&Uo.includes("origin_file_"+((Ir=Xs.msg.origin)==null?void 0:Ir.file))||Vl&&((Zr=Xs.msg.origin)!=null&&Zr.port)&&Uo.includes("origin_port_"+((io=Xs.msg.origin)==null?void 0:io.port))||Ll&&!((Pi=Xs.msg.origin)!=null&&Pi.file)&&!((li=Xs.msg.origin)!=null&&li.port)&&Uo.includes("origin_na")?ki=!0:ki=!1)}if(!ki)return ki;if(Object.keys(Ui).length===0)return!0;let qe={...Ui},Lu=Object.keys(qe).length;return Xs.facets.forEach(di=>{qe[di.name]&&qe[di.name].includes(di.value)&&Lu--}),Lu===0}).filter(Xs=>G.value.length<3?!0:(Xs.msg.content||"").search(new RegExp(G.value,"i"))>=0)});return{confirm:rt,confirmShow:a,confirmMsg:n,confirmProcess:Ft,demoMode:r,demoStatus:e,demoContent:i,status:o,statusStr:Uu,receiveStatus:c,receiveCounters:h,changeReceiveStatus:Va,initSettings:_e,anotherTab:g,modalShow:_,setPassword:$e,getPassword:Ye,stickedToBottom:y,clearAllRows:Ku,resetAllFiltersAndFacets:zr,filterCorrelated:gu,correlationFilter:ue,resetCorrelationFilter:Mu,tracesRows:re,refeshFilterCorrelated:Kt,settingsDrawer:ie,drawer:ye,openLogDrawer:Zt,closeLogDrawer:Ot,layout:Le,rows:S,rowsIds:L,clearRowIds:vn,displayRows:la,facets:R,searchbar:G,searchbarValid:ha,toggleRowMark:ui}}),Ypt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.add("noselect"),document.addEventListener("mousemove",W6t)},Qpt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.add("noselect"),document.addEventListener("mousemove",G6t)},Ahi=r=>{var i;(i=document.getElementById("app"))==null||i.classList.add("noselect");const e=new AbortController;document.addEventListener("mousemove",n=>{Shi(r,n)},{signal:e.signal}),document.addEventListener("mouseup",()=>{e.abort(),_I.update("main",Zh().layout)},{once:!0})},Xpt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.remove("noselect"),document.removeEventListener("mousemove",W6t),document.removeEventListener("mousemove",G6t),_I.update("main",Zh().layout)},Shi=(r,e)=>{let i=Zh().layout.getColumn(r);if(i.width||(i.width=150),i.width+=e.movementX,i.width<=40){i.width=40;return}Zh().layout.update(i)},W6t=r=>{Zh().layout.settings.leftColWidth+=r.movementX},G6t=r=>{Zh().layout.settings.drawerColWidth-=r.movementX};var JDe={d:(r,e)=>{for(var i in e)JDe.o(e,i)&&!JDe.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:e[i]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},J6t={};function XOe(r,e){(e==null||e>r.length)&&(e=r.length);for(var i=0,n=new Array(e);iNhi});const D0=(egt={computed:()=>gy,createTextVNode:()=>Q0,createVNode:()=>Y0,defineComponent:()=>rg,reactive:()=>rae,ref:()=>Ws,watch:()=>EL,watchEffect:()=>kdi},oIe={},JDe.d(oIe,egt),oIe),Bhi=(0,D0.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var r=this.data,e=this.onClick;return(0,D0.createVNode)("span",{class:"vjs-tree-brackets",onClick:e},[r])}}),whi=(0,D0.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(r,e){var i=e.emit;return{uiType:(0,D0.computed)(function(){return r.isMultiple?"checkbox":"radio"}),model:(0,D0.computed)({get:function(){return r.checked},set:function(n){return i("update:modelValue",n)}})}},render:function(){var r=this.uiType,e=this.model,i=this.$emit;return(0,D0.createVNode)("label",{class:["vjs-check-controller",e?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,D0.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(r)},null),(0,D0.createVNode)("input",{checked:e,class:"vjs-check-controller-original is-".concat(r),type:r,onChange:function(){return i("change",e)}},null)])}}),Thi=(0,D0.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var r=this.nodeType,e=this.onClick,i=r==="objectStart"||r==="arrayStart";return i||r==="objectCollapsed"||r==="arrayCollapsed"?(0,D0.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(i?"open":"close"),onClick:e},[(0,D0.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,D0.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var egt,oIe;function eje(r){return eje=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eje(r)}function U6t(r){return Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}function lI(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,a=n||{},o=a.key,c=a.index,h=a.type,g=h===void 0?"content":h,_=a.showComma,x=_!==void 0&&_,y=a.length,S=y===void 0?1:y,L=U6t(r);if(L==="array"){var R=tgt(r.map(function(ue,re,_e){return lI(ue,"".concat(e,"[").concat(re,"]"),i+1,{index:re,showComma:re!==_e.length-1,length:S,type:g})}));return[lI("[",e,i,{showComma:!1,key:o,length:r.length,type:"arrayStart"})[0]].concat(R,lI("]",e,i,{showComma:x,length:r.length,type:"arrayEnd"})[0])}if(L==="object"){var G=Object.keys(r),ie=tgt(G.map(function(ue,re,_e){return lI(r[ue],/^[a-zA-Z_]\w*$/.test(ue)?"".concat(e,".").concat(ue):"".concat(e,'["').concat(ue,'"]'),i+1,{key:ue,showComma:re!==_e.length-1,length:S,type:g})}));return[lI("{",e,i,{showComma:!1,key:o,index:c,length:G.length,type:"objectStart"})[0]].concat(ie,lI("}",e,i,{showComma:x,length:G.length,type:"objectEnd"})[0])}return[{content:r,level:i,key:o,index:c,path:e,showComma:x,length:S,type:g}]}function tgt(r){if(typeof Array.prototype.flat=="function")return r.flat();for(var e=$De(r),i=[];e.length;){var n=e.shift();Array.isArray(n)?e.unshift.apply(e,$De(n)):i.push(n)}return i}function tje(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(r==null)return r;if(r instanceof Date)return new Date(r);if(r instanceof RegExp)return new RegExp(r);if(eje(r)!=="object")return r;if(e.get(r))return e.get(r);if(Array.isArray(r)){var i=r.map(function(o){return tje(o,e)});return e.set(r,i),i}var n={};for(var a in r)n[a]=tje(r[a],e);return e.set(r,n),n}function igt(r,e){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),i.push.apply(i,n)}return i}function ngt(r){for(var e=1;e=_e||lt.length>=ye,rt=($e=r.pathCollapsible)===null||$e===void 0?void 0:$e.call(r,lt);return lt.type!=="objectStart"&<.type!=="arrayStart"||!Ye&&!rt?Le:N6(N6({},Le),{},UDe({},lt.path,1))},{})},h=(0,D0.reactive)({translateY:0,visibleData:null,hiddenPaths:c(r.deep,r.collapsedNodeLength)}),g=(0,D0.computed)(function(){for(var _e=null,ye=[],Le=o.value.length,lt=0;lt_e.length?_e.length-Le:$e;Ye<0&&(Ye=0);var rt=Ye+Le;h.translateY=Ye*r.itemHeight,h.visibleData=_e.filter(function(Ft,Zt){return Zt>=Ye&&Zt(aae("data-v-91210c39"),r=r(),oae(),r),Phi={class:"inner-drawer"},Mhi={class:"header"},zhi={style:{"margin-right":"10px"}},Ihi=lae(()=>Di("kbd",null,"Esc",-1)),Rhi=["disabled"],Ohi=lae(()=>Di("hr",null,null,-1)),jhi=lae(()=>Di("h3",null,"Table columns",-1)),Vhi=["onClick"],Hhi={key:0},Khi={key:1},Whi=lae(()=>Di("h3",null,"Non-table fields",-1)),Ghi=["onClick"],Jhi={key:0},$hi={key:1},Uhi=lae(()=>Di("hr",null,null,-1)),qhi={key:0},Zhi={key:0},Yhi={key:1,class:"raw"},Qhi={key:2,class:"raw"},Xhi={key:3,class:"raw"},efi={key:4,class:"raw"},tfi={key:5,class:"raw"},ifi=rg({__name:"Drawer",props:{row:{},layout:{}},emits:["close"],setup(r){const e=Ws(!1),i=n=>{navigator.clipboard.writeText(n)};return(n,a)=>{var c,h,g,_,x,y,S,L;const o=c6e("tooltip");return n.row?(ju(),yr("div",{key:0,class:"drawer",style:P3({width:Ju(Zh)().layout.settings.drawerColWidth+"px"})},[Di("div",{class:"resize-handle",onMousedown:a[0]||(a[0]=(...R)=>Ju(Qpt)&&Ju(Qpt)(...R))},null,32),Di("div",Phi,[Di("div",Mhi,[Di("div",zhi,[Y0(X1i),Q0(" Next / "),Y0(rhi),Q0(" Prev ")]),Di("button",{onClick:a[1]||(a[1]=R=>n.$emit("close"))},[Q0("Close "),Ihi])]),Di("div",null,[Di("button",{onClick:a[2]||(a[2]=R=>Ju(Zh)().filterCorrelated(n.row.msg)),disabled:!n.row.msg.correlation_id}," Display correlated lines ",8,Rhi),Ju(Zh)().correlationFilter?(ju(),yr("button",{key:0,onClick:a[3]||(a[3]=R=>Ju(Zh)().resetCorrelationFilter()),style:{"margin-left":"5px"}}," Reset correlation filter ")):El("",!0)]),Ohi,jhi,(ju(!0),yr(gd,null,py((c=n.layout)==null?void 0:c.columns.filter(R=>!R.hidden),(R,G)=>(ju(),yr("div",null,[Wd((ju(),yr("h4",{style:{display:"inline"},onClick:ie=>i(n.row.cells[G].text)},[Q0(Yc(R.name)+" ",1),Y0(xT,{class:Uh("clipboard")})],8,Vhi)),[[o,"Click to copy"]]),n.row.cells[G]&&!n.row.cells[G].isJson?(ju(),yr("pre",Hhi,Yc(n.row.cells[G].text),1)):(ju(),yr("pre",Khi,[Y0(Ju(nne),{theme:"dark",data:JSON.parse(n.row.cells[G].text)},null,8,["data"])]))]))),256)),Whi,(ju(!0),yr(gd,null,py((h=n.layout)==null?void 0:h.columns.filter(R=>R.hidden),(R,G)=>(ju(),yr("div",null,[Wd((ju(),yr("h4",{style:{display:"inline"},onClick:ie=>i(n.row.fields[G].text)},[Q0(Yc(R.name)+" ",1),Y0(xT,{class:Uh("clipboard")})],8,Ghi)),[[o,"Click to copy"]]),n.row.fields[G].isJson?(ju(),yr("pre",$hi,[Y0(Ju(nne),{theme:"dark",data:n.row.fields[G].text},null,8,["data"])])):(ju(),yr("pre",Jhi,Yc(n.row.fields[G].text),1))]))),256)),Uhi,Di("button",{onClick:a[4]||(a[4]=R=>e.value=!e.value)},"Show/hide raw message"),e.value?(ju(),yr("div",qhi,[n.row.msg.is_json?(ju(),yr("div",Zhi,[Wd((ju(),yr("h4",{style:{display:"inline"},onClick:a[5]||(a[5]=R=>i(JSON.stringify(n.row.msg.json_content)))},[Q0(" Raw message (JSON) "),Y0(xT,{class:Uh("clipboard")})])),[[o,"Click to copy"]]),Di("pre",null,[Y0(Ju(nne),{theme:"dark",data:n.row.msg.json_content},null,8,["data"])])])):El("",!0),n.row.msg.is_json?El("",!0):(ju(),yr("div",Yhi,[Wd((ju(),yr("h4",{style:{display:"inline"},onClick:a[6]||(a[6]=R=>i(n.row.msg.content))},[Q0(" Raw message "),Y0(xT,{class:Uh("clipboard")})])),[[o,"Click to copy"]]),Di("pre",null,[Di("code",null,Yc(n.row.msg.content),1)])])),n.row.msg.timing?(ju(),yr("div",Qhi,[Wd((ju(),yr("h4",{style:{display:"inline"},onClick:a[7]||(a[7]=R=>i(JSON.stringify(n.row.msg.timing)))},[Q0(" Timing "),Y0(xT,{class:Uh("clipboard")})])),[[o,"Click to copy"]]),Di("pre",null,[Y0(Ju(nne),{theme:"dark",data:n.row.msg.timing},null,8,["data"])])])):El("",!0),(g=n.row.msg.origin)!=null&&g.port?(ju(),yr("div",Xhi,[Wd((ju(),yr("h4",{style:{display:"inline"},onClick:a[8]||(a[8]=R=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.port)})},[Q0(" Origin port "),Y0(xT,{class:Uh("clipboard")})])),[[o,"Click to copy"]]),Di("pre",null,[Di("code",null,Yc((_=n.row.msg.origin)==null?void 0:_.port),1)])])):El("",!0),(x=n.row.msg.origin)!=null&&x.api_source?(ju(),yr("div",efi,[Wd((ju(),yr("h4",{style:{display:"inline"},onClick:a[9]||(a[9]=R=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.api_source)})},[Q0(" Origin API "),Y0(xT,{class:Uh("clipboard")})])),[[o,"Click to copy"]]),Di("pre",null,[Di("code",null,Yc((y=n.row.msg.origin)==null?void 0:y.api_source),1)])])):El("",!0),(S=n.row.msg.origin)!=null&&S.file?(ju(),yr("div",tfi,[Wd((ju(),yr("h4",{style:{display:"inline"},onClick:a[10]||(a[10]=R=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.file)})},[Q0(" Origin filename "),Y0(xT,{class:Uh("clipboard")})])),[[o,"Click to copy"]]),Di("pre",null,[Di("code",null,Yc((L=n.row.msg.origin)==null?void 0:L.file),1)])])):El("",!0)])):El("",!0)])],4)):El("",!0)}}}),nfi=ag(ifi,[["__scopeId","data-v-91210c39"]]);let ufi=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function rfi(r,e){let i;return e.length===0?i=r:i=r.replace(/\{(\d+)\}/g,(n,a)=>{const o=a[0],c=e[o];let h=n;return typeof c=="string"?h=c:(typeof c=="number"||typeof c=="boolean"||c===void 0||c===null)&&(h=String(c)),h}),ufi&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}function V(r,e,...i){return rfi(e,i)}var sIe;const xG="en";let qDe=!1,ZDe=!1,q3e=!1,Z6t=!1,CGe=!1,bGe=!1,Y6t=!1,v_e,Z3e=xG,rgt=xG,afi,Gb;const jD=typeof self=="object"?self:typeof global=="object"?global:{};let S_;typeof jD.vscode<"u"&&typeof jD.vscode.process<"u"?S_=jD.vscode.process:typeof process<"u"&&(S_=process);const ofi=typeof((sIe=S_==null?void 0:S_.versions)===null||sIe===void 0?void 0:sIe.electron)=="string",sfi=ofi&&(S_==null?void 0:S_.type)==="renderer";if(typeof navigator=="object"&&!sfi)Gb=navigator.userAgent,qDe=Gb.indexOf("Windows")>=0,ZDe=Gb.indexOf("Macintosh")>=0,bGe=(Gb.indexOf("Macintosh")>=0||Gb.indexOf("iPad")>=0||Gb.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,q3e=Gb.indexOf("Linux")>=0,Y6t=(Gb==null?void 0:Gb.indexOf("Mobi"))>=0,CGe=!0,V({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),v_e=xG,Z3e=v_e,rgt=navigator.language;else if(typeof S_=="object"){qDe=S_.platform==="win32",ZDe=S_.platform==="darwin",q3e=S_.platform==="linux",q3e&&S_.env.SNAP&&S_.env.SNAP_REVISION,S_.env.CI||S_.env.BUILD_ARTIFACTSTAGINGDIRECTORY,v_e=xG,Z3e=xG;const r=S_.env.VSCODE_NLS_CONFIG;if(r)try{const e=JSON.parse(r),i=e.availableLanguages["*"];v_e=e.locale,rgt=e.osLocale,Z3e=i||xG,afi=e._translationsConfigFile}catch{}Z6t=!0}else console.error("Unable to resolve platform.");const yp=qDe,c0=ZDe,ug=q3e,Ey=Z6t,rN=CGe,lfi=CGe&&typeof jD.importScripts=="function",kA=bGe,cfi=Y6t,FA=Gb,dfi=Z3e,hfi=typeof jD.postMessage=="function"&&!jD.importScripts,Q6t=(()=>{if(hfi){const r=[];jD.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let n=0,a=r.length;n{const n=++e;r.push({id:n,callback:i}),jD.postMessage({vscodeScheduleAsyncWork:n},"*")}}return r=>setTimeout(r)})(),ux=ZDe||bGe?2:qDe?1:3;let agt=!0,ogt=!1;function X6t(){if(!ogt){ogt=!0;const r=new Uint8Array(2);r[0]=1,r[1]=2,agt=new Uint16Array(r.buffer)[0]===513}return agt}const evt=!!(FA&&FA.indexOf("Chrome")>=0),ffi=!!(FA&&FA.indexOf("Firefox")>=0),mfi=!!(!evt&&FA&&FA.indexOf("Safari")>=0),pfi=!!(FA&&FA.indexOf("Edg/")>=0);FA&&FA.indexOf("Android")>=0;var I0;(function(r){function e(ue){return ue&&typeof ue=="object"&&typeof ue[Symbol.iterator]=="function"}r.is=e;const i=Object.freeze([]);function n(){return i}r.empty=n;function*a(ue){yield ue}r.single=a;function o(ue){return e(ue)?ue:a(ue)}r.wrap=o;function c(ue){return ue||i}r.from=c;function h(ue){return!ue||ue[Symbol.iterator]().next().done===!0}r.isEmpty=h;function g(ue){return ue[Symbol.iterator]().next().value}r.first=g;function _(ue,re){for(const _e of ue)if(re(_e))return!0;return!1}r.some=_;function x(ue,re){for(const _e of ue)if(re(_e))return _e}r.find=x;function*y(ue,re){for(const _e of ue)re(_e)&&(yield _e)}r.filter=y;function*S(ue,re){let _e=0;for(const ye of ue)yield re(ye,_e++)}r.map=S;function*L(...ue){for(const re of ue)for(const _e of re)yield _e}r.concat=L;function R(ue,re,_e){let ye=_e;for(const Le of ue)ye=re(ye,Le);return ye}r.reduce=R;function*G(ue,re,_e=ue.length){for(re<0&&(re+=ue.length),_e<0?_e+=ue.length:_e>ue.length&&(_e=ue.length);re<_e;re++)yield ue[re]}r.slice=G;function ie(ue,re=Number.POSITIVE_INFINITY){const _e=[];if(re===0)return[_e,ue];const ye=ue[Symbol.iterator]();for(let Le=0;Le{a||(a=!0,this._remove(n))}}shift(){if(this._first!==Yf.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Yf.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Yf.Undefined&&e.next!==Yf.Undefined){const i=e.prev;i.next=e.next,e.next.prev=i}else e.prev===Yf.Undefined&&e.next===Yf.Undefined?(this._first=Yf.Undefined,this._last=Yf.Undefined):e.next===Yf.Undefined?(this._last=this._last.prev,this._last.next=Yf.Undefined):e.prev===Yf.Undefined&&(this._first=this._first.next,this._first.prev=Yf.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Yf.Undefined;)yield e.element,e=e.next}}const tvt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function gfi(r=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const i of tvt)r.indexOf(i)>=0||(e+="\\"+i);return e+="\\s]+)",new RegExp(e,"g")}const yGe=gfi();function ivt(r){let e=yGe;if(r&&r instanceof RegExp)if(r.global)e=r;else{let i="g";r.ignoreCase&&(i+="i"),r.multiline&&(i+="m"),r.unicode&&(i+="u"),e=new RegExp(r.source,i)}return e.lastIndex=0,e}const nvt=new eg;nvt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Fue(r,e,i,n,a){if(a||(a=I0.first(nvt)),i.length>a.maxLen){let _=r-a.maxLen/2;return _<0?_=0:n+=_,i=i.substring(_,r+a.maxLen/2),Fue(r,e,i,n,a)}const o=Date.now(),c=r-1-n;let h=-1,g=null;for(let _=1;!(Date.now()-o>=a.timeBudget);_++){const x=c-a.windowSize*_;e.lastIndex=Math.max(0,x);const y=Efi(e,i,c,h);if(!y&&g||(g=y,x<=0))break;h=x}if(g){const _={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return e.lastIndex=0,_}return null}function Efi(r,e,i,n){let a;for(;a=r.exec(e);){const o=a.index||0;if(o<=i&&r.lastIndex>=i)return a;if(n>0&&o>n)return null}return null}function P6(r,e=0){return r[r.length-(1+e)]}function _fi(r){if(r.length===0)throw new Error("Invalid tail call");return[r.slice(0,r.length-1),r[r.length-1]]}function tg(r,e,i=(n,a)=>n===a){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,a=r.length;ni(r[n],e))}function xfi(r,e){let i=0,n=r-1;for(;i<=n;){const a=(i+n)/2|0,o=e(a);if(o<0)i=a+1;else if(o>0)n=a-1;else return a}return-(i+1)}function uvt(r,e){let i=0,n=r.length;if(n===0)return 0;for(;i=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],a=[],o=[],c=[];for(const h of e){const g=i(h,n);g<0?a.push(h):g>0?o.push(h):c.push(h)}return r!!e)}function lgt(r){let e=0;for(let i=0;i0}function OL(r,e=i=>i){const i=new Set;return r.filter(n=>{const a=e(n);return i.has(a)?!1:(i.add(a),!0)})}function avt(r,e){const i=vfi(r,e);if(i!==-1)return r[i]}function vfi(r,e){for(let i=r.length-1;i>=0;i--){const n=r[i];if(e(n))return i}return-1}function ovt(r,e){return r.length>0?r[0]:e}function F_(r,e){let i=typeof e=="number"?r:0;typeof e=="number"?i=r:(i=0,e=r);const n=[];if(i<=e)for(let a=i;ae;a--)n.push(a);return n}function E6e(r,e,i){const n=r.slice(0,e),a=r.slice(e);return n.concat(i,a)}function lIe(r,e){const i=r.indexOf(e);i>-1&&(r.splice(i,1),r.unshift(e))}function C_e(r,e){const i=r.indexOf(e);i>-1&&(r.splice(i,1),r.push(e))}function cgt(r,e){for(const i of e)r.push(i)}function kGe(r){return Array.isArray(r)?r:[r]}function Cfi(r,e,i){const n=svt(r,e),a=r.length,o=i.length;r.length=a+o;for(let c=a-1;c>=n;c--)r[c+o]=r[c];for(let c=0;c0}r.isGreaterThan=i;function n(a){return a===0}r.isNeitherLessOrGreaterThan=n,r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0})(uje||(uje={}));function Pne(r,e){return(i,n)=>e(r(i),r(n))}const bfi=(r,e)=>r-e;function lvt(r,e){if(r.length===0)return;let i=r[0];for(let n=1;n0&&(i=a)}return i}function yfi(r,e){if(r.length===0)return;let i=r[0];for(let n=1;n=0&&(i=a)}return i}function kfi(r,e){return lvt(r,(i,n)=>-e(i,n))}class BJ{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let i=this.firstIdx;for(;i=0&&e(this.items[i]);)i--;const n=i===this.lastIdx?null:this.items.slice(i+1,this.lastIdx+1);return this.lastIdx=i,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const i=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,i}}class EA{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(i=>(e.push(i),!0)),e}filter(e){return new EA(i=>this.iterate(n=>e(n)?i(n):!0))}map(e){return new EA(i=>this.iterate(n=>i(e(n))))}findLast(e){let i;return this.iterate(n=>(e(n)&&(i=n),!0)),i}findLastMaxBy(e){let i,n=!0;return this.iterate(a=>((n||uje.isGreaterThan(e(a,i)))&&(n=!1,i=a),!0)),i}}EA.empty=new EA(r=>{});function P_(r){return typeof r=="string"}function R3(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function Ffi(r){const e=Object.getPrototypeOf(Uint8Array);return typeof r=="object"&&r instanceof e}function jL(r){return typeof r=="number"&&!isNaN(r)}function hgt(r){return!!r&&typeof r[Symbol.iterator]=="function"}function cvt(r){return r===!0||r===!1}function ID(r){return typeof r>"u"}function Afi(r){return!tx(r)}function tx(r){return ID(r)||r===null}function kc(r,e){if(!r)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function vG(r){if(tx(r))throw new Error("Assertion Failed: argument is undefined or null");return r}function YDe(r){return typeof r=="function"}function Sfi(r,e){const i=Math.min(r.length,e.length);for(let n=0;n{e[i]=n&&typeof n=="object"?DS(n):n}),e}function wfi(r){if(!r||typeof r!="object")return r;const e=[r];for(;e.length>0;){const i=e.shift();Object.freeze(i);for(const n in i)if(dvt.call(i,n)){const a=i[n];typeof a=="object"&&!Object.isFrozen(a)&&!Ffi(a)&&e.push(a)}}return r}const dvt=Object.prototype.hasOwnProperty;function hvt(r,e){return rje(r,e,new Set)}function rje(r,e,i){if(tx(r))return r;const n=e(r);if(typeof n<"u")return n;if(Array.isArray(r)){const a=[];for(const o of r)a.push(rje(o,e,i));return a}if(R3(r)){if(i.has(r))throw new Error("Cannot clone recursive data-structure");i.add(r);const a={};for(const o in r)dvt.call(r,o)&&(a[o]=rje(r[o],e,i));return i.delete(r),a}return r}function cae(r,e,i=!0){return R3(r)?(R3(e)&&Object.keys(e).forEach(n=>{n in r?i&&(R3(r[n])&&R3(e[n])?cae(r[n],e[n],i):r[n]=e[n]):r[n]=e[n]}),r):e}function lx(r,e){if(r===e)return!0;if(r==null||e===null||e===void 0||typeof r!=typeof e||typeof r!="object"||Array.isArray(r)!==Array.isArray(e))return!1;let i,n;if(Array.isArray(r)){if(r.length!==e.length)return!1;for(i=0;ifunction(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},n={};for(const a of r)n[a]=i(a);return n}const Rg={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},TT=8;class fvt{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class mvt{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Th{constructor(e,i,n,a){this.id=e,this.name=i,this.defaultValue=n,this.schema=a}applyUpdate(e,i){return _6e(e,i)}compute(e,i,n){return n}}class Mne{constructor(e,i){this.newValue=e,this.didChange=i}}function _6e(r,e){if(typeof r!="object"||typeof e!="object"||!r||!e)return new Mne(e,r!==e);if(Array.isArray(r)||Array.isArray(e)){const n=Array.isArray(r)&&Array.isArray(e)&&tg(r,e);return new Mne(e,!n)}let i=!1;for(const n in e)if(e.hasOwnProperty(n)){const a=_6e(r[n],e[n]);a.didChange&&(r[n]=a.newValue,i=!0)}return new Mne(r,i)}class dae{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,i){return _6e(e,i)}validate(e){return this.defaultValue}}class D${constructor(e,i,n,a){this.id=e,this.name=i,this.defaultValue=n,this.schema=a}applyUpdate(e,i){return _6e(e,i)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,i,n){return n}}function Eo(r,e){return typeof r>"u"?e:r==="false"?!1:!!r}class fl extends D${constructor(e,i,n,a=void 0){typeof a<"u"&&(a.type="boolean",a.default=n),super(e,i,n,a)}validate(e){return Eo(e,this.defaultValue)}}function aje(r,e,i,n){if(typeof r>"u")return e;let a=parseInt(r,10);return isNaN(a)?e:(a=Math.max(i,a),a=Math.min(n,a),a|0)}class md extends D${static clampedInt(e,i,n,a){return aje(e,i,n,a)}constructor(e,i,n,a,o,c=void 0){typeof c<"u"&&(c.type="integer",c.default=n,c.minimum=a,c.maximum=o),super(e,i,n,c),this.minimum=a,this.maximum=o}validate(e){return md.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class sA extends D${static clamp(e,i,n){return en?n:e}static float(e,i){if(typeof e=="number")return e;if(typeof e>"u")return i;const n=parseFloat(e);return isNaN(n)?i:n}constructor(e,i,n,a,o){typeof o<"u"&&(o.type="number",o.default=n),super(e,i,n,o),this.validationFn=a}validate(e){return this.validationFn(sA.float(e,this.defaultValue))}}class PD extends D${static string(e,i){return typeof e!="string"?i:e}constructor(e,i,n,a=void 0){typeof a<"u"&&(a.type="string",a.default=n),super(e,i,n,a)}validate(e){return PD.string(e,this.defaultValue)}}function tm(r,e,i){return typeof r!="string"||i.indexOf(r)===-1?e:r}class hf extends D${constructor(e,i,n,a,o=void 0){typeof o<"u"&&(o.type="string",o.enum=a,o.default=n),super(e,i,n,o),this._allowedValues=a}validate(e){return tm(e,this.defaultValue,this._allowedValues)}}class b_e extends Th{constructor(e,i,n,a,o,c,h=void 0){typeof h<"u"&&(h.type="string",h.enum=o,h.default=a),super(e,i,n,h),this._allowedValues=o,this._convert=c}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Nfi(r){switch(r){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Pfi extends Th{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[V("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),V("accessibilitySupport.on","Optimize for usage with a Screen Reader"),V("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:V("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,i,n){return n===0?e.accessibilitySupport:n}}class Mfi extends Th{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(21,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:V("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:V("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertSpace:Eo(i.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Eo(i.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function zfi(r){switch(r){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var _p;(function(r){r[r.Line=1]="Line",r[r.Block=2]="Block",r[r.Underline=3]="Underline",r[r.LineThin=4]="LineThin",r[r.BlockOutline=5]="BlockOutline",r[r.UnderlineThin=6]="UnderlineThin"})(_p||(_p={}));function Ifi(r){switch(r){case"line":return _p.Line;case"block":return _p.Block;case"underline":return _p.Underline;case"line-thin":return _p.LineThin;case"block-outline":return _p.BlockOutline;case"underline-thin":return _p.UnderlineThin}}class Rfi extends dae{constructor(){super(136)}compute(e,i,n){const a=["monaco-editor"];return i.get(37)&&a.push(i.get(37)),e.extraEditorClassName&&a.push(e.extraEditorClassName),i.get(71)==="default"?a.push("mouse-default"):i.get(71)==="copy"&&a.push("mouse-copy"),i.get(106)&&a.push("showUnused"),i.get(134)&&a.push("showDeprecated"),a.join(" ")}}class Ofi extends fl{constructor(){super(35,"emptySelectionClipboard",!0,{description:V("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,i,n){return n&&e.emptySelectionClipboard}}class jfi extends Th{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(39,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:V("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[V("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),V("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),V("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:V("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[V("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),V("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),V("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:V("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:V("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:c0},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:V("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:V("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{cursorMoveOnType:Eo(i.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":tm(i.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":tm(i.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Eo(i.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Eo(i.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Eo(i.loop,this.defaultValue.loop)}}}class ix extends Th{constructor(){super(49,"fontLigatures",ix.OFF,{anyOf:[{type:"boolean",description:V("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:V("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:V("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ix.OFF:e==="true"?ix.ON:e:e?ix.ON:ix.OFF}}ix.OFF='"liga" off, "calt" off';ix.ON='"liga" on, "calt" on';class ny extends Th{constructor(){super(52,"fontVariations",ny.OFF,{anyOf:[{type:"boolean",description:V("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:V("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:V("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ny.OFF:e==="true"?ny.TRANSLATE:e:e?ny.TRANSLATE:ny.OFF}compute(e,i,n){return e.fontInfo.fontVariationSettings}}ny.OFF="normal";ny.TRANSLATE="translate";class Vfi extends dae{constructor(){super(48)}compute(e,i,n){return e.fontInfo}}class Hfi extends D${constructor(){super(50,"fontSize",VD.fontSize,{type:"number",minimum:6,maximum:100,default:VD.fontSize,description:V("fontSize","Controls the font size in pixels.")})}validate(e){const i=sA.float(e,this.defaultValue);return i===0?VD.fontSize:sA.clamp(i,6,100)}compute(e,i,n){return e.fontInfo.fontSize}}class QF extends Th{constructor(){super(51,"fontWeight",VD.fontWeight,{anyOf:[{type:"number",minimum:QF.MINIMUM_VALUE,maximum:QF.MAXIMUM_VALUE,errorMessage:V("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:QF.SUGGESTION_VALUES}],default:VD.fontWeight,description:V("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(md.clampedInt(e,VD.fontWeight,QF.MINIMUM_VALUE,QF.MAXIMUM_VALUE))}}QF.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];QF.MINIMUM_VALUE=1;QF.MAXIMUM_VALUE=1e3;class Kfi extends Th{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},i={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[V("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),V("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),V("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(56,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:V("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:V("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:V("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleDeclarations":Object.assign({description:V("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleImplementations":Object.assign({description:V("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleReferences":Object.assign({description:V("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},i),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:n,description:V("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:n,description:V("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:n,description:V("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:n,description:V("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:n,description:V("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var i,n,a,o,c;if(!e||typeof e!="object")return this.defaultValue;const h=e;return{multiple:tm(h.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(i=h.multipleDefinitions)!==null&&i!==void 0?i:tm(h.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(n=h.multipleTypeDefinitions)!==null&&n!==void 0?n:tm(h.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(a=h.multipleDeclarations)!==null&&a!==void 0?a:tm(h.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=h.multipleImplementations)!==null&&o!==void 0?o:tm(h.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(c=h.multipleReferences)!==null&&c!==void 0?c:tm(h.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:PD.string(h.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:PD.string(h.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:PD.string(h.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:PD.string(h.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:PD.string(h.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Wfi extends Th{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(58,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:V("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:V("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:V("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:V("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Eo(i.enabled,this.defaultValue.enabled),delay:md.clampedInt(i.delay,this.defaultValue.delay,0,1e4),sticky:Eo(i.sticky,this.defaultValue.sticky),above:Eo(i.above,this.defaultValue.above)}}}class ZG extends dae{constructor(){super(139)}compute(e,i,n){return ZG.computeLayout(i,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const i=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight);let a=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(a=Math.max(a,i-1));const o=(n+e.viewLineCount+a)/(e.pixelRatio*e.height),c=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:i,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:a,desiredRatio:o,minimapLineCount:c}}static _computeMinimapLayout(e,i){const n=e.outerWidth,a=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*a),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:a};const c=i.stableMinimapLayoutInput,h=c&&e.outerHeight===c.outerHeight&&e.lineHeight===c.lineHeight&&e.typicalHalfwidthCharacterWidth===c.typicalHalfwidthCharacterWidth&&e.pixelRatio===c.pixelRatio&&e.scrollBeyondLastLine===c.scrollBeyondLastLine&&e.paddingTop===c.paddingTop&&e.paddingBottom===c.paddingBottom&&e.minimap.enabled===c.minimap.enabled&&e.minimap.side===c.minimap.side&&e.minimap.size===c.minimap.size&&e.minimap.showSlider===c.minimap.showSlider&&e.minimap.renderCharacters===c.minimap.renderCharacters&&e.minimap.maxColumn===c.minimap.maxColumn&&e.minimap.scale===c.minimap.scale&&e.verticalScrollbarWidth===c.verticalScrollbarWidth&&e.isViewportWrapping===c.isViewportWrapping,g=e.lineHeight,_=e.typicalHalfwidthCharacterWidth,x=e.scrollBeyondLastLine,y=e.minimap.renderCharacters;let S=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const L=e.minimap.maxColumn,R=e.minimap.size,G=e.minimap.side,ie=e.verticalScrollbarWidth,ue=e.viewLineCount,re=e.remainingWidth,_e=e.isViewportWrapping,ye=y?2:3;let Le=Math.floor(o*a);const lt=Le/o;let $e=!1,Ye=!1,rt=ye*S,Ft=S/o,Zt=1;if(R==="fill"||R==="fit"){const{typicalViewportLineCount:zr,extraLinesBeforeFirstLine:Mu,extraLinesBeyondLastLine:Va,desiredRatio:Ku,minimapLineCount:vn}=ZG.computeContainedMinimapLineCount({viewLineCount:ue,scrollBeyondLastLine:x,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:a,lineHeight:g,pixelRatio:o});if(ue/vn>1)$e=!0,Ye=!0,S=1,rt=1,Ft=S/o;else{let ha=!1,la=S+1;if(R==="fit"){const Ui=Math.ceil((Mu+ue+Va)*rt);_e&&h&&re<=i.stableFitRemainingWidth?(ha=!0,la=i.stableFitMaxMinimapScale):ha=Ui>Le}if(R==="fill"||ha){$e=!0;const Ui=S;rt=Math.min(g*o,Math.max(1,Math.floor(1/Ku))),_e&&h&&re<=i.stableFitRemainingWidth&&(la=i.stableFitMaxMinimapScale),S=Math.min(la,Math.max(1,Math.floor(rt/ye))),S>Ui&&(Zt=Math.min(2,S/Ui)),Ft=S/o/Zt,Le=Math.ceil(Math.max(zr,Mu+ue+Va)*rt),_e?(i.stableMinimapLayoutInput=e,i.stableFitRemainingWidth=re,i.stableFitMaxMinimapScale=S):(i.stableMinimapLayoutInput=null,i.stableFitRemainingWidth=0)}}}const Ot=Math.floor(L*Ft),ui=Math.min(Ot,Math.max(0,Math.floor((re-ie-2)*Ft/(_+Ft)))+TT);let ei=Math.floor(o*ui);const Uu=ei/o;ei=Math.floor(ei*Zt);const gu=y?1:2,Kt=G==="left"?0:n-ui-ie;return{renderMinimap:gu,minimapLeft:Kt,minimapWidth:ui,minimapHeightIsEditorHeight:$e,minimapIsSampling:Ye,minimapScale:S,minimapLineHeight:rt,minimapCanvasInnerWidth:ei,minimapCanvasInnerHeight:Le,minimapCanvasOuterWidth:Uu,minimapCanvasOuterHeight:lt}}static computeLayout(e,i){const n=i.outerWidth|0,a=i.outerHeight|0,o=i.lineHeight|0,c=i.lineNumbersDigitCount|0,h=i.typicalHalfwidthCharacterWidth,g=i.maxDigitWidth,_=i.pixelRatio,x=i.viewLineCount,y=e.get(131),S=y==="inherit"?e.get(130):y,L=S==="inherit"?e.get(126):S,R=e.get(129),G=i.isDominatedByLongLines,ie=e.get(55),ue=e.get(65).renderType!==0,re=e.get(66),_e=e.get(100),ye=e.get(81),Le=e.get(70),lt=e.get(98),$e=lt.verticalScrollbarSize,Ye=lt.verticalHasArrows,rt=lt.arrowSize,Ft=lt.horizontalScrollbarSize,Zt=e.get(41),Ot=e.get(105)!=="never";let ui=e.get(63);Zt&&Ot&&(ui+=16);let ei=0;if(ue){const j0=Math.max(c,re);ei=Math.round(j0*g)}let Uu=0;ie&&(Uu=o);let gu=0,Kt=gu+Uu,zr=Kt+ei,Mu=zr+ui;const Va=n-Uu-ei-ui;let Ku=!1,vn=!1,Wn=-1;S==="inherit"&&G?(Ku=!0,vn=!0):L==="on"||L==="bounded"?vn=!0:L==="wordWrapColumn"&&(Wn=R);const ha=ZG._computeMinimapLayout({outerWidth:n,outerHeight:a,lineHeight:o,typicalHalfwidthCharacterWidth:h,pixelRatio:_,scrollBeyondLastLine:_e,paddingTop:ye.top,paddingBottom:ye.bottom,minimap:Le,verticalScrollbarWidth:$e,viewLineCount:x,remainingWidth:Va,isViewportWrapping:vn},i.memory||new mvt);ha.renderMinimap!==0&&ha.minimapLeft===0&&(gu+=ha.minimapWidth,Kt+=ha.minimapWidth,zr+=ha.minimapWidth,Mu+=ha.minimapWidth);const la=Va-ha.minimapWidth,Ui=Math.max(1,Math.floor((la-$e-2)/h)),Uo=Ye?rt:0;return vn&&(Wn=Math.max(1,Ui),L==="bounded"&&(Wn=Math.min(Wn,R))),{width:n,height:a,glyphMarginLeft:gu,glyphMarginWidth:Uu,lineNumbersLeft:Kt,lineNumbersWidth:ei,decorationsLeft:zr,decorationsWidth:ui,contentLeft:Mu,contentWidth:la,minimap:ha,viewportColumn:Ui,isWordWrapMinified:Ku,isViewportWrapping:vn,wrappingColumn:Wn,verticalScrollbarWidth:$e,horizontalScrollbarHeight:Ft,overviewRuler:{top:Uo,width:$e,height:a-2*Uo,right:0}}}}class Gfi extends Th{constructor(){super(133,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[V("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),V("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:V("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return tm(e,"simple",["simple","advanced"])}compute(e,i,n){return i.get(2)===2?"advanced":n}}class Jfi extends Th{constructor(){const e={enabled:!0};super(62,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:V("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Eo(e.enabled,this.defaultValue.enabled)}}}class $fi extends Th{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel"};super(110,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:V("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:V("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:V("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Eo(i.enabled,this.defaultValue.enabled),maxLineCount:md.clampedInt(i.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:tm(i.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"])}}}class Ufi extends Th{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(135,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:V("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[V("editor.inlayHints.on","Inlay hints are enabled"),V("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",c0?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",c0?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:V("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:V("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:V("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return typeof i.enabled=="boolean"&&(i.enabled=i.enabled?"on":"off"),{enabled:tm(i.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:md.clampedInt(i.fontSize,this.defaultValue.fontSize,0,100),fontFamily:PD.string(i.fontFamily,this.defaultValue.fontFamily),padding:Eo(i.padding,this.defaultValue.padding)}}}class qfi extends Th{constructor(){super(63,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):md.clampedInt(e,this.defaultValue,0,1e3)}compute(e,i,n){return n<0?md.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class Zfi extends sA{constructor(){super(64,"lineHeight",VD.lineHeight,e=>sA.clamp(e,0,150),{markdownDescription:V("lineHeight",`Controls the line height. +`,p++};this.projectService.externalProjects.forEach(E),this.projectService.configuredProjects.forEach(E),this.projectService.inferredProjects.forEach(E)}}this.logger.msg(f,"Err")}send(u){if(u.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(u)}`);return}this.writeMessage(u)}writeMessage(u){var s;const d=DNe(u,this.logger,this.byteLength,this.host.newLine);(s=hh)==null||s.logEvent(`Response message size: ${d.length}`),this.host.write(d)}event(u,s){this.send(xNe(s,u))}doOutput(u,s,d,f,p){const E={seq:0,type:"response",command:s,request_seq:d,success:f,performanceData:this.performanceData};if(f){let v;if(Ha(u))E.body=u,v=u.metadata,delete u.metadata;else if(typeof u=="object")if(u.metadata){const{metadata:b,...B}=u;E.body=B,v=b}else E.body=u;else E.body=u;v&&(E.metadata=v)}else H.assert(u===void 0);p&&(E.message=p),this.send(E)}semanticCheck(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"semanticCheck",{file:u,configFilePath:s.canonicalConfigFilePath});const p=Oct(s,u)?$c:s.getLanguageService().getSemanticDiagnostics(u).filter(E=>!!E.file);this.sendDiagnosticsEvent(u,s,p,"semanticDiag"),(f=Gn)==null||f.pop()}syntacticCheck(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"syntacticCheck",{file:u,configFilePath:s.canonicalConfigFilePath}),this.sendDiagnosticsEvent(u,s,s.getLanguageService().getSyntacticDiagnostics(u),"syntaxDiag"),(f=Gn)==null||f.pop()}suggestionCheck(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"suggestionCheck",{file:u,configFilePath:s.canonicalConfigFilePath}),this.sendDiagnosticsEvent(u,s,s.getLanguageService().getSuggestionDiagnostics(u),"suggestionDiag"),(f=Gn)==null||f.pop()}sendDiagnosticsEvent(u,s,d,f){try{this.event({file:u,diagnostics:d.map(p=>jct(u,s,p))},f)}catch(p){this.logError(p,f)}}updateErrorCheck(u,s,d,f=!0){H.assert(!this.suppressDiagnosticEvents);const p=this.changeSeq,E=Math.min(d,200);let v=0;const b=()=>{v++,s.length>v&&u.delay("checkOne",E,B)},B=()=>{if(this.changeSeq!==p)return;let k=s[v];if(Ja(k)&&(k=this.toPendingErrorCheck(k),!k)){b();return}const{fileName:T,project:M}=k;if(Gm(M),!!M.containsFile(T,f)&&(this.syntacticCheck(T,M),this.changeSeq===p)){if(M.projectService.serverMode!==0){b();return}u.immediate("semanticCheck",()=>{if(this.semanticCheck(T,M),this.changeSeq===p){if(this.getPreferences(T).disableSuggestions){b();return}u.immediate("suggestionCheck",()=>{this.suggestionCheck(T,M),b()})}})}};s.length>v&&this.changeSeq===p&&u.delay("checkOne",d,B)}cleanProjects(u,s){if(s){this.logger.info(`cleaning ${u}`);for(const d of s)d.getLanguageService(!1).cleanupSemanticCache(),d.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",ga(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u);return d.getEncodedSyntacticClassifications(s,u)}getEncodedSemanticClassifications(u){const{file:s,project:d}=this.getFileAndProject(u),f=u.format==="2020"?"2020":"original";return d.getLanguageService().getEncodedSemanticClassifications(s,u,f)}getProject(u){return u===void 0?void 0:this.projectService.findProject(u)}getConfigFileAndProject(u){const s=this.getProject(u.projectFileName),d=Dl(u.file);return{configFile:s&&s.hasConfigFile(d)?d:void 0,project:s}}getConfigFileDiagnostics(u,s,d){const f=s.getAllProjectErrors(),p=s.getLanguageService().getCompilerOptionsDiagnostics(),E=ti(Hi(f,p),v=>!!v.file&&v.file.fileName===u);return d?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(E):Vt(E,v=>UK(v,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(u){return u.map(s=>({message:lE(s.messageText,this.host.newLine),start:s.start,length:s.length,category:Gy(s),code:s.code,source:s.source,startLocation:s.file&&$K(s0(s.file,s.start)),endLocation:s.file&&$K(s0(s.file,s.start+s.length)),reportsUnnecessary:s.reportsUnnecessary,reportsDeprecated:s.reportsDeprecated,relatedInformation:Vt(s.relatedInformation,pge)}))}getCompilerOptionsDiagnostics(u){const s=this.getProject(u.projectFileName);return this.convertToDiagnosticsWithLinePosition(ti(s.getLanguageService().getCompilerOptionsDiagnostics(),d=>!d.file),void 0)}convertToDiagnosticsWithLinePosition(u,s){return u.map(d=>({message:lE(d.messageText,this.host.newLine),start:d.start,length:d.length,category:Gy(d),code:d.code,source:d.source,startLocation:s&&s.positionToLineOffset(d.start),endLocation:s&&s.positionToLineOffset(d.start+d.length),reportsUnnecessary:d.reportsUnnecessary,reportsDeprecated:d.reportsDeprecated,relatedInformation:Vt(d.relatedInformation,pge)}))}getDiagnosticsWorker(u,s,d,f){const{project:p,file:E}=this.getFileAndProject(u);if(s&&Oct(p,E))return $c;const v=p.getScriptInfoForNormalizedPath(E),b=d(p,E);return f?this.convertToDiagnosticsWithLinePosition(b,v):b.map(B=>jct(E,p,B))}getDefinition(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=this.mapDefinitionInfoLocations(f.getLanguageService().getDefinitionAtPosition(d,p)||$c,f);return s?this.mapDefinitionInfo(E,f):E.map(q3e.mapToOriginalLocation)}mapDefinitionInfoLocations(u,s){return u.map(d=>{const f=Kct(d,s);return f?{...f,containerKind:d.containerKind,containerName:d.containerName,kind:d.kind,name:d.name,failedAliasResolution:d.failedAliasResolution,...d.unverified&&{unverified:d.unverified}}:d})}getDefinitionAndBoundSpan(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=H.checkDefined(f.getScriptInfo(d)),v=f.getLanguageService().getDefinitionAndBoundSpan(d,p);if(!v||!v.definitions)return{definitions:$c,textSpan:void 0};const b=this.mapDefinitionInfoLocations(v.definitions,f),{textSpan:B}=v;return s?{definitions:this.mapDefinitionInfo(b,f),textSpan:l_(B,E)}:{definitions:b.map(q3e.mapToOriginalLocation),textSpan:B}}findSourceDefinition(u){var s;const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=f.getLanguageService().getDefinitionAtPosition(d,p);let v=this.mapDefinitionInfoLocations(E||$c,f).slice();if(this.projectService.serverMode===0&&(!Oe(v,z=>Dl(z.fileName)!==d&&!z.isAmbient)||Oe(v,z=>!!z.failedAliasResolution))){const z=aoe(Y=>Y.textSpan.start,bX);v==null||v.forEach(Y=>z.add(Y));const j=f.getNoDtsResolutionProject(d),J=j.getLanguageService(),K=(s=J.getDefinitionAtPosition(d,p,!0,!1))==null?void 0:s.filter(Y=>Dl(Y.fileName)!==d);if(Oe(K))for(const Y of K){if(Y.unverified){const oe=T(Y,f.getLanguageService().getProgram(),J.getProgram());if(Oe(oe)){for(const se of oe)z.add(se);continue}}z.add(Y)}else{const Y=v.filter(oe=>Dl(oe.fileName)!==d&&oe.isAmbient);for(const oe of Oe(Y)?Y:k()){const se=B(oe.fileName,d,j);if(!se)continue;const ge=this.projectService.getOrCreateScriptInfoNotOpenedByClient(se,j.currentDirectory,j.directoryStructureHost);if(!ge)continue;j.containsScriptInfo(ge)||(j.addRoot(ge),j.updateGraph());const ae=J.getProgram(),Ce=H.checkDefined(ae.getSourceFile(se));for(const ne of M(oe.name,Ce,ae))z.add(ne)}}v=ga(z.values())}return v=v.filter(z=>!z.isAmbient&&!z.failedAliasResolution),this.mapDefinitionInfo(v,f);function B(z,j,J){var K,Y,oe;const se=pZ(z);if(se&&z.lastIndexOf(o_)===se.topLevelNodeModulesIndex){const ge=z.substring(0,se.packageRootIndex),ae=(K=f.getModuleResolutionCache())==null?void 0:K.getPackageJsonInfoCache(),Ce=f.getCompilationSettings(),ne=aH($a(ge+"/package.json",f.getCurrentDirectory()),rH(ae,f,Ce));if(!ne)return;const ve=kde(ne,{moduleResolution:2},f,f.getModuleResolutionCache()),Se=z.substring(se.topLevelPackageNameIndex+1,se.packageRootIndex),Ne=hM(lH(Se)),pe=f.toPath(z);if(ve&&Oe(ve,fe=>f.toPath(fe)===pe))return(Y=J.resolutionCache.resolveSingleModuleNameWithoutWatching(Ne,j).resolvedModule)==null?void 0:Y.resolvedFileName;{const fe=z.substring(se.packageRootIndex+1),xe=`${Ne}/${_h(fe)}`;return(oe=J.resolutionCache.resolveSingleModuleNameWithoutWatching(xe,j).resolvedModule)==null?void 0:oe.resolvedFileName}}}function k(){const z=f.getLanguageService(),j=z.getProgram(),J=af(j.getSourceFile(d),p);return(t0(J)||at(J))&&I0(J.parent)&&Zye(J,K=>{var Y;if(K===J)return;const oe=(Y=z.getDefinitionAtPosition(d,K.getStart(),!0,!1))==null?void 0:Y.filter(se=>Dl(se.fileName)!==d&&se.isAmbient).map(se=>({fileName:se.fileName,name:J4(J)}));if(Oe(oe))return oe})||$c}function T(z,j,J){var K;const Y=J.getSourceFile(z.fileName);if(!Y)return;const oe=af(j.getSourceFile(d),p),se=j.getTypeChecker().getSymbolAtLocation(oe),ge=se&&Sl(se,276);if(!ge)return;const ae=((K=ge.propertyName)==null?void 0:K.text)||ge.name.text;return M(ae,Y,J)}function M(z,j,J){const K=Z0.Core.getTopMostDeclarationNamesInFile(z,j);return qi(K,Y=>{const oe=J.getTypeChecker().getSymbolAtLocation(Y),se=nP(Y);if(oe&&se)return Cw.createDefinitionInfo(se,J.getTypeChecker(),oe,se,!0)})}}getEmitOutput(u){const{file:s,project:d}=this.getFileAndProject(u);if(!d.shouldEmitFile(d.getScriptInfo(s)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const f=d.getLanguageService().getEmitOutput(s);return u.richResponse?{...f,diagnostics:u.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(f.diagnostics):f.diagnostics.map(p=>UK(p,!0))}:f}mapJSDocTagInfo(u,s,d){return u?u.map(f=>{var p;return{...f,text:d?this.mapDisplayParts(f.text,s):(p=f.text)==null?void 0:p.map(E=>E.text).join("")}}):[]}mapDisplayParts(u,s){return u?u.map(d=>d.kind!=="linkName"?d:{...d,target:this.toFileSpan(d.target.fileName,d.target.textSpan,s)}):[]}mapSignatureHelpItems(u,s,d){return u.map(f=>({...f,documentation:this.mapDisplayParts(f.documentation,s),parameters:f.parameters.map(p=>({...p,documentation:this.mapDisplayParts(p.documentation,s)})),tags:this.mapJSDocTagInfo(f.tags,s,d)}))}mapDefinitionInfo(u,s){return u.map(d=>({...this.toFileSpanWithContext(d.fileName,d.textSpan,d.contextSpan,s),...d.unverified&&{unverified:d.unverified}}))}static mapToOriginalLocation(u){return u.originalFileName?(H.assert(u.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...u,fileName:u.originalFileName,textSpan:u.originalTextSpan,targetFileName:u.fileName,targetTextSpan:u.textSpan,contextSpan:u.originalContextSpan,targetContextSpan:u.contextSpan}):u}toFileSpan(u,s,d){const f=d.getLanguageService(),p=f.toLineColumnOffset(u,s.start),E=f.toLineColumnOffset(u,Ec(s));return{file:u,start:{line:p.line+1,offset:p.character+1},end:{line:E.line+1,offset:E.character+1}}}toFileSpanWithContext(u,s,d,f){const p=this.toFileSpan(u,s,f),E=d&&this.toFileSpan(u,d,f);return E?{...p,contextStart:E.start,contextEnd:E.end}:p}getTypeDefinition(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getPositionInFile(u,s),p=this.mapDefinitionInfoLocations(d.getLanguageService().getTypeDefinitionAtPosition(s,f)||$c,d);return this.mapDefinitionInfo(p,d)}mapImplementationLocations(u,s){return u.map(d=>{const f=Kct(d,s);return f?{...f,kind:d.kind,displayParts:d.displayParts}:d})}getImplementation(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=this.mapImplementationLocations(f.getLanguageService().getImplementationAtPosition(d,p)||$c,f);return s?E.map(({fileName:v,textSpan:b,contextSpan:B})=>this.toFileSpanWithContext(v,b,B,f)):E.map(q3e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(u){const{configFile:s}=this.getConfigFileAndProject(u);return s?$c:this.getDiagnosticsWorker(u,!1,(d,f)=>d.getLanguageService().getSyntacticDiagnostics(f),!!u.includeLinePosition)}getSemanticDiagnosticsSync(u){const{configFile:s,project:d}=this.getConfigFileAndProject(u);return s?this.getConfigFileDiagnostics(s,d,!!u.includeLinePosition):this.getDiagnosticsWorker(u,!0,(f,p)=>f.getLanguageService().getSemanticDiagnostics(p).filter(E=>!!E.file),!!u.includeLinePosition)}getSuggestionDiagnosticsSync(u){const{configFile:s}=this.getConfigFileAndProject(u);return s?$c:this.getDiagnosticsWorker(u,!0,(d,f)=>d.getLanguageService().getSuggestionDiagnostics(f),!!u.includeLinePosition)}getJsxClosingTag(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=d.getJsxClosingTagAtPosition(s,f);return p===void 0?void 0:{newText:p.newText,caretOffset:0}}getLinkedEditingRange(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=d.getLinkedEditingRangeAtPosition(s,f),E=this.projectService.getScriptInfoForNormalizedPath(s);if(!(E===void 0||p===void 0))return tXt(p,E)}getDocumentHighlights(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=f.getLanguageService().getDocumentHighlights(d,p,u.filesToSearch);return E?s?E.map(({fileName:v,highlightSpans:b})=>{const B=f.getScriptInfo(v);return{file:v,highlightSpans:b.map(({textSpan:k,kind:T,contextSpan:M})=>({...CNe(k,M,B),kind:T}))}}):E:$c}provideInlayHints(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.projectService.getScriptInfoForNormalizedPath(s);return d.getLanguageService().provideInlayHints(s,u,this.getPreferences(s)).map(E=>{const{position:v,displayParts:b}=E;return{...E,position:f.positionToLineOffset(v),displayParts:b==null?void 0:b.map(({text:B,span:k,file:T})=>{if(k){H.assertIsDefined(T,"Target file should be defined together with its span.");const M=this.projectService.getScriptInfo(T);return{text:B,span:{start:M.positionToLineOffset(k.start),end:M.positionToLineOffset(k.start+k.length),file:T}}}else return{text:B}})}})}setCompilerOptionsForInferredProjects(u){this.projectService.setCompilerOptionsForInferredProjects(u.options,u.projectRootPath)}getProjectInfo(u){return this.getProjectInfoWorker(u.file,u.projectFileName,u.needFileNameList,!1)}getProjectInfoWorker(u,s,d,f){const{project:p}=this.getFileAndProjectWorker(u,s);return Gm(p),{configFileName:p.getProjectName(),languageServiceDisabled:!p.languageServiceEnabled,fileNames:d?p.getFileNames(!1,f):void 0}}getRenameInfo(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getPositionInFile(u,s),p=this.getPreferences(s);return d.getLanguageService().getRenameInfo(s,f,p)}getProjects(u,s,d){let f,p;if(u.projectFileName){const E=this.getProject(u.projectFileName);E&&(f=[E])}else{const E=s?this.projectService.getScriptInfoEnsuringProjectsUptoDate(u.file):this.projectService.getScriptInfo(u.file);if(E)s||this.projectService.ensureDefaultProjectForFile(E);else return d?$c:(this.projectService.logErrorForScriptInfoNotFound(u.file),v5.ThrowNoProject());f=E.containingProjects,p=this.projectService.getSymlinkedProjects(E)}return f=ti(f,E=>E.languageServiceEnabled&&!E.isOrphan()),!d&&(!f||!f.length)&&!p?(this.projectService.logErrorForScriptInfoNotFound(u.file??u.projectFileName),v5.ThrowNoProject()):p?{projects:f,symLinkedProjects:p}:f}getDefaultProject(u){if(u.projectFileName){const d=this.getProject(u.projectFileName);if(d)return d;if(!u.file)return v5.ThrowNoProject()}return this.projectService.getScriptInfo(u.file).getDefaultProject()}getRenameLocations(u,s){const d=Dl(u.file),f=this.getPositionInFile(u,d),p=this.getProjects(u),E=this.getDefaultProject(u),v=this.getPreferences(d),b=this.mapRenameInfo(E.getLanguageService().getRenameInfo(d,f,v),H.checkDefined(this.projectService.getScriptInfo(d)));if(!b.canRename)return s?{info:b,locs:[]}:[];const B=UQt(p,E,{fileName:u.file,pos:f},!!u.findInStrings,!!u.findInComments,v);return s?{info:b,locs:this.toSpanGroups(B)}:B}mapRenameInfo(u,s){if(u.canRename){const{canRename:d,fileToRename:f,displayName:p,fullDisplayName:E,kind:v,kindModifiers:b,triggerSpan:B}=u;return{canRename:d,fileToRename:f,displayName:p,fullDisplayName:E,kind:v,kindModifiers:b,triggerSpan:l_(B,s)}}else return u}toSpanGroups(u){const s=new Map;for(const{fileName:d,textSpan:f,contextSpan:p,originalContextSpan:E,originalTextSpan:v,originalFileName:b,...B}of u){let k=s.get(d);k||s.set(d,k={file:d,locs:[]});const T=H.checkDefined(this.projectService.getScriptInfo(d));k.locs.push({...CNe(f,p,T),...B})}return ga(s.values())}getReferences(u,s){const d=Dl(u.file),f=this.getProjects(u),p=this.getPositionInFile(u,d),E=ZQt(f,this.getDefaultProject(u),{fileName:u.file,pos:p},this.logger);if(!s)return E;const v=this.getPreferences(d),b=this.getDefaultProject(u),B=b.getScriptInfoForNormalizedPath(d),k=b.getLanguageService().getQuickInfoAtPosition(d,p),T=k?EK(k.displayParts):"",M=k&&k.textSpan,z=M?B.positionToLineOffset(M.start).offset:0,j=M?B.getSnapshot().getText(M.start,Ec(M)):"";return{refs:ju(E,K=>K.references.map(Y=>Gct(this.projectService,Y,v))),symbolName:j,symbolStartOffset:z,symbolDisplayString:T}}getFileReferences(u,s){const d=this.getProjects(u),f=u.file,p=this.getPreferences(Dl(f)),E=[],v=gge();return vNe(d,void 0,B=>{if(B.getCancellationToken().isCancellationRequested())return;const k=B.getLanguageService().getFileReferences(f);if(k)for(const T of k)v.has(T)||(E.push(T),v.add(T))}),s?{refs:E.map(B=>Gct(this.projectService,B,p)),symbolName:`"${u.file}"`}:E}openClientFile(u,s,d,f){this.projectService.openClientFileWithNormalizedPath(u,s,d,!1,f)}getPosition(u,s){return u.position!==void 0?u.position:s.lineOffsetToPosition(u.line,u.offset)}getPositionInFile(u,s){const d=this.projectService.getScriptInfoForNormalizedPath(s);return this.getPosition(u,d)}getFileAndProject(u){return this.getFileAndProjectWorker(u.file,u.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(u){const{file:s,project:d}=this.getFileAndProject(u);return{file:s,languageService:d.getLanguageService(!1)}}getFileAndProjectWorker(u,s){const d=Dl(u),f=this.getProject(s)||this.projectService.ensureDefaultProjectForFile(d);return{file:d,project:f}}getOutliningSpans(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getOutliningSpans(d);if(s){const E=this.projectService.getScriptInfoForNormalizedPath(d);return p.map(v=>({textSpan:l_(v.textSpan,E),hintSpan:l_(v.hintSpan,E),bannerText:v.bannerText,autoCollapse:v.autoCollapse,kind:v.kind}))}else return p}getTodoComments(u){const{file:s,project:d}=this.getFileAndProject(u);return d.getLanguageService().getTodoComments(s,u.descriptors)}getDocCommentTemplate(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getDocCommentTemplateAtPosition(s,f,this.getPreferences(s),this.getFormatOptions(s))}getSpanOfEnclosingComment(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.onlyMultiLine,p=this.getPositionInFile(u,s);return d.getSpanOfEnclosingComment(s,p,f)}getIndentation(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=u.options?Sw(u.options):this.getFormatOptions(s),E=d.getIndentationAtPosition(s,f,p);return{position:f,indentation:E}}getBreakpointStatement(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getBreakpointStatementAtPosition(s,f)}getNameOrDottedNameSpan(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getNameOrDottedNameSpan(s,f,f)}isValidBraceCompletion(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.isValidBraceCompletionAtPosition(s,f,u.openingBrace.charCodeAt(0))}getQuickInfoWorker(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=f.getLanguageService().getQuickInfoAtPosition(d,this.getPosition(u,p));if(!E)return;const v=!!this.getPreferences(d).displayPartsForJSDoc;if(s){const b=EK(E.displayParts);return{kind:E.kind,kindModifiers:E.kindModifiers,start:p.positionToLineOffset(E.textSpan.start),end:p.positionToLineOffset(Ec(E.textSpan)),displayString:b,documentation:v?this.mapDisplayParts(E.documentation,f):EK(E.documentation),tags:this.mapJSDocTagInfo(E.tags,f,v)}}else return v?E:{...E,tags:this.mapJSDocTagInfo(E.tags,f,!1)}}getFormattingEditsForRange(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.projectService.getScriptInfoForNormalizedPath(s),p=f.lineOffsetToPosition(u.line,u.offset),E=f.lineOffsetToPosition(u.endLine,u.endOffset),v=d.getFormattingEditsForRange(s,p,E,this.getFormatOptions(s));if(v)return v.map(b=>this.convertTextChangeToCodeEdit(b,f))}getFormattingEditsForRangeFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Sw(u.options):this.getFormatOptions(s);return d.getFormattingEditsForRange(s,u.position,u.endPosition,f)}getFormattingEditsForDocumentFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Sw(u.options):this.getFormatOptions(s);return d.getFormattingEditsForDocument(s,f)}getFormattingEditsAfterKeystrokeFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Sw(u.options):this.getFormatOptions(s);return d.getFormattingEditsAfterKeystroke(s,u.position,u.key,f)}getFormattingEditsAfterKeystroke(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.projectService.getScriptInfoForNormalizedPath(s),p=f.lineOffsetToPosition(u.line,u.offset),E=this.getFormatOptions(s),v=d.getFormattingEditsAfterKeystroke(s,p,u.key,E);if(u.key===` +`&&(!v||v.length===0||JQt(v,p))){const{lineText:b,absolutePosition:B}=f.textStorage.getAbsolutePositionAndLineText(u.line);if(b&&b.search("\\S")<0){const k=d.getIndentationAtPosition(s,p,E);let T=0,M,z;for(M=0,z=b.length;M({start:f.positionToLineOffset(b.span.start),end:f.positionToLineOffset(Ec(b.span)),newText:b.newText?b.newText:""}))}getCompletions(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getLanguageService().getCompletionsAtPosition(d,E,{...oNe(this.getPreferences(d)),triggerCharacter:u.triggerCharacter,triggerKind:u.triggerKind,includeExternalModuleExports:u.includeExternalModuleExports,includeInsertTextCompletions:u.includeInsertTextCompletions},f.projectService.getFormatCodeOptions(d));if(v===void 0)return;if(s==="completions-full")return v;const b=u.prefix||"",B=qi(v.entries,T=>{if(v.isMemberCompletion||Pa(T.name.toLowerCase(),b.toLowerCase())){const{name:M,kind:z,kindModifiers:j,sortText:J,insertText:K,filterText:Y,replacementSpan:oe,hasAction:se,source:ge,sourceDisplay:ae,labelDetails:Ce,isSnippet:ne,isRecommended:ve,isPackageJsonImport:Se,isImportStatementCompletion:Ne,data:pe}=T,fe=oe?l_(oe,p):void 0;return{name:M,kind:z,kindModifiers:j,sortText:J,insertText:K,filterText:Y,replacementSpan:fe,isSnippet:ne,hasAction:se||void 0,source:ge,sourceDisplay:ae,labelDetails:Ce,isRecommended:ve,isPackageJsonImport:Se,isImportStatementCompletion:Ne,data:pe}}});return s==="completions"?(v.metadata&&(B.metadata=v.metadata),B):{...v,optionalReplacementSpan:v.optionalReplacementSpan&&l_(v.optionalReplacementSpan,p),entries:B}}getCompletionEntryDetails(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.projectService.getFormatCodeOptions(d),b=!!this.getPreferences(d).displayPartsForJSDoc,B=qi(u.entryNames,k=>{const{name:T,source:M,data:z}=typeof k=="string"?{name:k,source:void 0,data:void 0}:k;return f.getLanguageService().getCompletionEntryDetails(d,E,T,v,M,this.getPreferences(d),z?Po(z,aXt):void 0)});return s?b?B:B.map(k=>({...k,tags:this.mapJSDocTagInfo(k.tags,f,!1)})):B.map(k=>({...k,codeActions:Vt(k.codeActions,T=>this.mapCodeAction(T)),documentation:this.mapDisplayParts(k.documentation,f),tags:this.mapJSDocTagInfo(k.tags,f,b)}))}getCompileOnSaveAffectedFileList(u){const s=this.getProjects(u,!0,!0),d=this.projectService.getScriptInfo(u.file);return d?$Qt(d,f=>this.projectService.getScriptInfoForPath(f),s,(f,p)=>{if(!f.compileOnSaveEnabled||!f.languageServiceEnabled||f.isOrphan())return;const E=f.getCompilationSettings();if(!(E.noEmit||e1(p.fileName)&&!GQt(E)))return{projectFileName:f.getProjectName(),fileNames:f.getCompileOnSaveAffectedFileList(p),projectUsesOutFile:!!y0(E)}}):$c}emitFile(u){const{file:s,project:d}=this.getFileAndProject(u);if(d||v5.ThrowNoProject(),!d.languageServiceEnabled)return u.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const f=d.getScriptInfo(s),{emitSkipped:p,diagnostics:E}=d.emitFile(f,(v,b,B)=>this.host.writeFile(v,b,B));return u.richResponse?{emitSkipped:p,diagnostics:u.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(E):E.map(v=>UK(v,!0))}:!p}getSignatureHelpItems(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getLanguageService().getSignatureHelpItems(d,E,u),b=!!this.getPreferences(d).displayPartsForJSDoc;if(v&&s){const B=v.applicableSpan;return{...v,applicableSpan:{start:p.positionToLineOffset(B.start),end:p.positionToLineOffset(B.start+B.length)},items:this.mapSignatureHelpItems(v.items,f,b)}}else return b||!v?v:{...v,items:v.items.map(B=>({...B,tags:this.mapJSDocTagInfo(B.tags,f,!1)}))}}toPendingErrorCheck(u){const s=Dl(u),d=this.projectService.tryGetDefaultProjectForFile(s);return d&&{fileName:s,project:d}}getDiagnostics(u,s,d){this.suppressDiagnosticEvents||d.length>0&&this.updateErrorCheck(u,d,s)}change(u){const s=this.projectService.getScriptInfo(u.file);H.assert(!!s),s.textStorage.switchToScriptVersionCache();const d=s.lineOffsetToPosition(u.line,u.offset),f=s.lineOffsetToPosition(u.endLine,u.endOffset);d>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(s,qa({span:{start:d,length:f-d},newText:u.insertString})))}reload(u,s){const d=Dl(u.file),f=u.tmpfile===void 0?void 0:Dl(u.tmpfile),p=this.projectService.getScriptInfoForNormalizedPath(d);p&&(this.changeSeq++,p.reloadFromFile(f)&&this.doOutput(void 0,"reload",s,!0))}saveToTmp(u,s){const d=this.projectService.getScriptInfo(u);d&&d.saveTo(s)}closeClientFile(u){if(!u)return;const s=$o(u);this.projectService.closeClientFile(s)}mapLocationNavigationBarItems(u,s){return Vt(u,d=>({text:d.text,kind:d.kind,kindModifiers:d.kindModifiers,spans:d.spans.map(f=>l_(f,s)),childItems:this.mapLocationNavigationBarItems(d.childItems,s),indent:d.indent}))}getNavigationBarItems(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getNavigationBarItems(d);return p?s?this.mapLocationNavigationBarItems(p,this.projectService.getScriptInfoForNormalizedPath(d)):p:void 0}toLocationNavigationTree(u,s){return{text:u.text,kind:u.kind,kindModifiers:u.kindModifiers,spans:u.spans.map(d=>l_(d,s)),nameSpan:u.nameSpan&&l_(u.nameSpan,s),childItems:Vt(u.childItems,d=>this.toLocationNavigationTree(d,s))}}getNavigationTree(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getNavigationTree(d);return p?s?this.toLocationNavigationTree(p,this.projectService.getScriptInfoForNormalizedPath(d)):p:void 0}getNavigateToItems(u,s){const d=this.getFullNavigateToItems(u);return s?ju(d,({project:f,navigateToItems:p})=>p.map(E=>{const v=f.getScriptInfo(E.fileName),b={name:E.name,kind:E.kind,kindModifiers:E.kindModifiers,isCaseSensitive:E.isCaseSensitive,matchKind:E.matchKind,file:E.fileName,start:v.positionToLineOffset(E.textSpan.start),end:v.positionToLineOffset(Ec(E.textSpan))};return E.kindModifiers&&E.kindModifiers!==""&&(b.kindModifiers=E.kindModifiers),E.containerName&&E.containerName.length>0&&(b.containerName=E.containerName),E.containerKind&&E.containerKind.length>0&&(b.containerKind=E.containerKind),b})):ju(d,({navigateToItems:f})=>f)}getFullNavigateToItems(u){const{currentFileOnly:s,searchValue:d,maxResultCount:f,projectFileName:p}=u;if(s){H.assertIsDefined(u.file);const{file:M,project:z}=this.getFileAndProject(u);return[{project:z,navigateToItems:z.getLanguageService().getNavigateToItems(d,f,M)}]}const E=this.getHostPreferences(),v=[],b=new Map;if(!u.file&&!p)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(M=>B(M));else{const M=this.getProjects(u);vNe(M,void 0,z=>B(z))}return v;function B(M){const z=M.getLanguageService().getNavigateToItems(d,f,void 0,M.isNonTsProject(),E.excludeLibrarySymbolsInNavTo),j=ti(z,J=>k(J)&&!Ege(uz(J),M));j.length&&v.push({project:M,navigateToItems:j})}function k(M){const z=M.name;if(!b.has(z))return b.set(z,[M]),!0;const j=b.get(z);for(const J of j)if(T(J,M))return!1;return j.push(M),!0}function T(M,z){return M===z?!0:!M||!z?!1:M.containerKind===z.containerKind&&M.containerName===z.containerName&&M.fileName===z.fileName&&M.isCaseSensitive===z.isCaseSensitive&&M.kind===z.kind&&M.kindModifiers===z.kindModifiers&&M.matchKind===z.matchKind&&M.name===z.name&&M.textSpan.start===z.textSpan.start&&M.textSpan.length===z.textSpan.length}}getSupportedCodeFixes(u){if(!u)return Bme();if(u.file){const{file:d,project:f}=this.getFileAndProject(u);return f.getLanguageService().getSupportedCodeFixes(d)}const s=this.getProject(u.projectFileName);return s||v5.ThrowNoProject(),s.getLanguageService().getSupportedCodeFixes()}isLocation(u){return u.line!==void 0}extractPositionOrRange(u,s){let d,f;return this.isLocation(u)?d=p(u):f=this.getRange(u,s),H.checkDefined(d===void 0?f:d);function p(E){return E.position!==void 0?E.position:s.lineOffsetToPosition(E.line,E.offset)}}getRange(u,s){const{startPosition:d,endPosition:f}=this.getStartAndEndPosition(u,s);return{pos:d,end:f}}getApplicableRefactors(u){const{file:s,project:d}=this.getFileAndProject(u),f=d.getScriptInfoForNormalizedPath(s);return d.getLanguageService().getApplicableRefactors(s,this.extractPositionOrRange(u,f),this.getPreferences(s),u.triggerReason,u.kind,u.includeInteractiveActions)}getEditsForRefactor(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=f.getScriptInfoForNormalizedPath(d),E=f.getLanguageService().getEditsForRefactor(d,this.getFormatOptions(d),this.extractPositionOrRange(u,p),u.refactor,u.action,this.getPreferences(d),u.interactiveRefactorArguments);if(E===void 0)return{edits:[]};if(s){const{renameFilename:v,renameLocation:b,edits:B}=E;let k;if(v!==void 0&&b!==void 0){const T=f.getScriptInfoForNormalizedPath(Dl(v));k=bNe(aw(T.getSnapshot()),v,b,B)}return{renameLocation:k,renameFilename:v,edits:this.mapTextChangesToCodeEdits(B),notApplicableReason:E.notApplicableReason}}return E}getMoveToRefactoringFileSuggestions(u){const{file:s,project:d}=this.getFileAndProject(u),f=d.getScriptInfoForNormalizedPath(s);return d.getLanguageService().getMoveToRefactoringFileSuggestions(s,this.extractPositionOrRange(u,f),this.getPreferences(s))}organizeImports(u,s){H.assert(u.scope.type==="file");const{file:d,project:f}=this.getFileAndProject(u.scope.args),p=f.getLanguageService().organizeImports({fileName:d,mode:u.mode??(u.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(d),this.getPreferences(d));return s?this.mapTextChangesToCodeEdits(p):p}getEditsForFileRename(u,s){const d=Dl(u.oldFilePath),f=Dl(u.newFilePath),p=this.getHostFormatOptions(),E=this.getHostPreferences(),v=new Set,b=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(B=>{const k=B.getLanguageService().getEditsForFileRename(d,f,p,E),T=[];for(const M of k)v.has(M.fileName)||(b.push(M),T.push(M.fileName));for(const M of T)v.add(M)}),s?b.map(B=>this.mapTextChangeToCodeEdit(B)):b}getCodeFixes(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=f.getScriptInfoForNormalizedPath(d),{startPosition:E,endPosition:v}=this.getStartAndEndPosition(u,p);let b;try{b=f.getLanguageService().getCodeFixesAtPosition(d,E,v,u.errorCodes,this.getFormatOptions(d),this.getPreferences(d))}catch(B){const k=f.getLanguageService(),T=[...k.getSyntacticDiagnostics(d),...k.getSemanticDiagnostics(d),...k.getSuggestionDiagnostics(d)].map(z=>RO(E,v-E,z.start,z.length)&&z.code),M=u.errorCodes.find(z=>!T.includes(z));throw M!==void 0&&(B.message=`BADCLIENT: Bad error code, ${M} not found in range ${E}..${v} (found: ${T.join(", ")}); could have caused this error: +${B.message}`),B}return s?b.map(B=>this.mapCodeFixAction(B)):b}getCombinedCodeFix({scope:u,fixId:s},d){H.assert(u.type==="file");const{file:f,project:p}=this.getFileAndProject(u.args),E=p.getLanguageService().getCombinedCodeFix({type:"file",fileName:f},s,this.getFormatOptions(f),this.getPreferences(f));return d?{changes:this.mapTextChangesToCodeEdits(E.changes),commands:E.commands}:E}applyCodeActionCommand(u){const s=u.command;for(const d of YA(s)){const{file:f,project:p}=this.getFileAndProject(d);p.getLanguageService().applyCodeActionCommand(d,this.getFormatOptions(f)).then(E=>{},E=>{})}return{}}getStartAndEndPosition(u,s){let d,f;return u.startPosition!==void 0?d=u.startPosition:(d=s.lineOffsetToPosition(u.startLine,u.startOffset),u.startPosition=d),u.endPosition!==void 0?f=u.endPosition:(f=s.lineOffsetToPosition(u.endLine,u.endOffset),u.endPosition=f),{startPosition:d,endPosition:f}}mapCodeAction({description:u,changes:s,commands:d}){return{description:u,changes:this.mapTextChangesToCodeEdits(s),commands:d}}mapCodeFixAction({fixName:u,description:s,changes:d,commands:f,fixId:p,fixAllDescription:E}){return{fixName:u,description:s,changes:this.mapTextChangesToCodeEdits(d),commands:f,fixId:p,fixAllDescription:E}}mapTextChangesToCodeEdits(u){return u.map(s=>this.mapTextChangeToCodeEdit(s))}mapTextChangeToCodeEdit(u){const s=this.projectService.getScriptInfoOrConfig(u.fileName);return!!u.isNewFile==!!s&&(s||this.projectService.logErrorForScriptInfoNotFound(u.fileName),H.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!u.isNewFile,hasScriptInfo:!!s}))),s?{fileName:u.fileName,textChanges:u.textChanges.map(d=>eXt(d,s))}:nXt(u)}convertTextChangeToCodeEdit(u,s){return{start:s.positionToLineOffset(u.span.start),end:s.positionToLineOffset(u.span.start+u.span.length),newText:u.newText?u.newText:""}}getBraceMatching(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getBraceMatchingAtPosition(d,E);return v?s?v.map(b=>l_(b,p)):v:void 0}getDiagnosticsForProject(u,s,d){if(this.suppressDiagnosticEvents)return;const{fileNames:f,languageServiceDisabled:p}=this.getProjectInfoWorker(d,void 0,!0,!0);if(p)return;const E=f.filter(J=>!J.includes("lib.d.ts"));if(E.length===0)return;const v=[],b=[],B=[],k=[],T=Dl(d),M=this.projectService.ensureDefaultProjectForFile(T);for(const J of E)this.getCanonicalFileName(J)===this.getCanonicalFileName(d)?v.push(J):this.projectService.getScriptInfo(J).isScriptOpen()?b.push(J):e1(J)?k.push(J):B.push(J);const j=[...v,...b,...B,...k].map(J=>({fileName:J,project:M}));this.updateErrorCheck(u,j,s,!1)}configurePlugin(u){this.projectService.configurePlugin(u)}getSmartSelectionRange(u,s){const{locations:d}=u,{file:f,languageService:p}=this.getFileAndLanguageServiceForSyntacticOperation(u),E=H.checkDefined(this.projectService.getScriptInfo(f));return Vt(d,v=>{const b=this.getPosition(v,E),B=p.getSmartSelectionRange(f,b);return s?this.mapSelectionRange(B,E):B})}toggleLineComment(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfo(d),E=this.getRange(u,p),v=f.toggleLineComment(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}toggleMultilineComment(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.toggleMultilineComment(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}commentSelection(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.commentSelection(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}uncommentSelection(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.uncommentSelection(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}mapSelectionRange(u,s){const d={textSpan:l_(u.textSpan,s)};return u.parent&&(d.parent=this.mapSelectionRange(u.parent,s)),d}getScriptInfoFromProjectService(u){const s=Dl(u),d=this.projectService.getScriptInfoForNormalizedPath(s);return d||(this.projectService.logErrorForScriptInfoNotFound(s),v5.ThrowNoProject())}toProtocolCallHierarchyItem(u){const s=this.getScriptInfoFromProjectService(u.file);return{name:u.name,kind:u.kind,kindModifiers:u.kindModifiers,file:u.file,containerName:u.containerName,span:l_(u.span,s),selectionSpan:l_(u.selectionSpan,s)}}toProtocolCallHierarchyIncomingCall(u){const s=this.getScriptInfoFromProjectService(u.from.file);return{from:this.toProtocolCallHierarchyItem(u.from),fromSpans:u.fromSpans.map(d=>l_(d,s))}}toProtocolCallHierarchyOutgoingCall(u,s){return{to:this.toProtocolCallHierarchyItem(u.to),fromSpans:u.fromSpans.map(d=>l_(d,s))}}prepareCallHierarchy(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.projectService.getScriptInfoForNormalizedPath(s);if(f){const p=this.getPosition(u,f),E=d.getLanguageService().prepareCallHierarchy(s,p);return E&&kfe(E,v=>this.toProtocolCallHierarchyItem(v))}}provideCallHierarchyIncomingCalls(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getScriptInfoFromProjectService(s);return d.getLanguageService().provideCallHierarchyIncomingCalls(s,this.getPosition(u,f)).map(E=>this.toProtocolCallHierarchyIncomingCall(E))}provideCallHierarchyOutgoingCalls(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getScriptInfoFromProjectService(s);return d.getLanguageService().provideCallHierarchyOutgoingCalls(s,this.getPosition(u,f)).map(E=>this.toProtocolCallHierarchyOutgoingCall(E,f))}getCanonicalFileName(u){const s=this.host.useCaseSensitiveFileNames?u:$g(u);return $o(s)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(u){return{response:u,responseRequired:!0}}addProtocolHandler(u,s){if(this.handlers.has(u))throw new Error(`Protocol handler already exists for command "${u}"`);this.handlers.set(u,s)}setCurrentRequest(u){H.assert(this.currentRequestId===void 0),this.currentRequestId=u,this.cancellationToken.setRequest(u)}resetCurrentRequest(u){H.assert(this.currentRequestId===u),this.currentRequestId=void 0,this.cancellationToken.resetRequest(u)}executeWithRequestId(u,s){try{return this.setCurrentRequest(u),s()}finally{this.resetCurrentRequest(u)}}executeCommand(u){const s=this.handlers.get(u.command);if(s){const d=this.executeWithRequestId(u.seq,()=>s(u));return this.projectService.enableRequestedPlugins(),d}else return this.logger.msg(`Unrecognized JSON command:${nw(u)}`,"Err"),this.doOutput(void 0,"unknown",u.seq,!1,`Unrecognized JSON command: ${u.command}`),{responseRequired:!1}}onMessage(u){var s,d,f,p,E,v,b,B,k,T,M;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let z;this.logger.hasLevel(2)&&(z=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${BM(this.toStringMessage(u))}`));let j,J;try{j=this.parseMessage(u),J=j.arguments&&j.arguments.file?j.arguments:void 0,(s=Gn)==null||s.instant(Gn.Phase.Session,"request",{seq:j.seq,command:j.command}),(d=hh)==null||d.logStartCommand(""+j.command,this.toStringMessage(u).substring(0,100)),(f=Gn)==null||f.push(Gn.Phase.Session,"executeCommand",{seq:j.seq,command:j.command},!0);const{response:K,responseRequired:Y}=this.executeCommand(j);if((p=Gn)==null||p.pop(),this.logger.hasLevel(2)){const oe=WQt(this.hrtime(z)).toFixed(4);Y?this.logger.perftrc(`${j.seq}::${j.command}: elapsed time (in milliseconds) ${oe}`):this.logger.perftrc(`${j.seq}::${j.command}: async elapsed time (in milliseconds) ${oe}`)}(E=hh)==null||E.logStopCommand(""+j.command,"Success"),(v=Gn)==null||v.instant(Gn.Phase.Session,"response",{seq:j.seq,command:j.command,success:!!K}),K?this.doOutput(K,j.command,j.seq,!0):Y&&this.doOutput(void 0,j.command,j.seq,!1,"No content available.")}catch(K){if((b=Gn)==null||b.popAll(),K instanceof b8){(B=hh)==null||B.logStopCommand(""+(j&&j.command),"Canceled: "+K),(k=Gn)==null||k.instant(Gn.Phase.Session,"commandCanceled",{seq:j==null?void 0:j.seq,command:j==null?void 0:j.command}),this.doOutput({canceled:!0},j.command,j.seq,!0);return}this.logErrorWorker(K,this.toStringMessage(u),J),(T=hh)==null||T.logStopCommand(""+(j&&j.command),"Error: "+K),(M=Gn)==null||M.instant(Gn.Phase.Session,"commandError",{seq:j==null?void 0:j.seq,command:j==null?void 0:j.command,message:K.message}),this.doOutput(void 0,j?j.command:"unknown",j?j.seq:0,!1,"Error processing request. "+K.message+` +`+K.stack)}}parseMessage(u){return JSON.parse(u)}toStringMessage(u){return u}getFormatOptions(u){return this.projectService.getFormatCodeOptions(u)}getPreferences(u){return this.projectService.getPreferences(u)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),g9,_ge,Uct,qct,hte,fte,SNe,rz,E9,qK,sXt=o({"src/server/scriptVersionCache.ts"(){Xv(),_9(),g9=4,_ge=(t=>(t[t.PreStart=0]="PreStart",t[t.Start=1]="Start",t[t.Entire=2]="Entire",t[t.Mid=3]="Mid",t[t.End=4]="End",t[t.PostEnd=5]="PostEnd",t))(_ge||{}),Uct=class{constructor(){this.goSubtree=!0,this.lineIndex=new rz,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new E9,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(t,u){u&&(this.trailingText=""),t?t=this.initialText+t+this.trailingText:t=this.initialText+this.trailingText;const d=rz.linesFromText(t).lines;d.length>1&&d[d.length-1]===""&&d.pop();let f,p;for(let v=this.endBranch.length-1;v>=0;v--)this.endBranch[v].updateCounts(),this.endBranch[v].charCount()===0&&(p=this.endBranch[v],v>0?f=this.endBranch[v-1]:f=this.branchNode);p&&f.remove(p);const E=this.startPath[this.startPath.length-1];if(d.length>0)if(E.text=d[0],d.length>1){let v=new Array(d.length-1),b=E;for(let T=1;T=0;){const T=this.startPath[B];v=T.insertAt(b,v),B--,b=T}let k=v.length;for(;k>0;){const T=new E9;T.add(this.lineIndex.root),v=T.insertAt(this.lineIndex.root,v),k=v.length,this.lineIndex.root=T}this.lineIndex.root.updateCounts()}else for(let v=this.startPath.length-2;v>=0;v--)this.startPath[v].updateCounts();else{this.startPath[this.startPath.length-2].remove(E);for(let b=this.startPath.length-2;b>=0;b--)this.startPath[b].updateCounts()}return this.lineIndex}post(t,u,s){s===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(t,u,s,d,f){const p=this.stack[this.stack.length-1];this.state===2&&f===1&&(this.state=1,this.branchNode=p,this.lineCollectionAtBranch=s);let E;function v(b){return b.isLeaf()?new qK(""):new E9}switch(f){case 0:this.goSubtree=!1,this.state!==4&&p.add(s);break;case 1:this.state===4?this.goSubtree=!1:(E=v(s),p.add(E),this.startPath.push(E));break;case 2:this.state!==4?(E=v(s),p.add(E),this.startPath.push(E)):s.isLeaf()||(E=v(s),p.add(E),this.endBranch.push(E));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:s.isLeaf()||(E=v(s),p.add(E),this.endBranch.push(E));break;case 5:this.goSubtree=!1,this.state!==1&&p.add(s);break}this.goSubtree&&this.stack.push(E)}leaf(t,u,s){this.state===1?this.initialText=s.text.substring(0,t):this.state===2?(this.initialText=s.text.substring(0,t),this.trailingText=s.text.substring(t+u)):this.trailingText=s.text.substring(t+u)}},qct=class{constructor(t,u,s){this.pos=t,this.deleteLen=u,this.insertedText=s}getTextChangeRange(){return OO(d1(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},hte=class OF{constructor(){this.changes=[],this.versions=new Array(OF.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(u){if(!(uthis.currentVersion))return u%OF.maxVersions}currentVersionToIndex(){return this.currentVersion%OF.maxVersions}edit(u,s,d){this.changes.push(new qct(u,s,d)),(this.changes.length>OF.changeNumberThreshold||s>OF.changeLengthThreshold||d&&d.length>OF.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let u=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let s=u.index;for(const d of this.changes)s=s.edit(d.pos,d.deleteLen,d.insertedText);u=new SNe(this.currentVersion+1,this,s,this.changes),this.currentVersion=u.version,this.versions[this.currentVersionToIndex()]=u,this.changes=[],this.currentVersion-this.minVersion>=OF.maxVersions&&(this.minVersion=this.currentVersion-OF.maxVersions+1)}return u}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(u){return this._getSnapshot().index.lineNumberToInfo(u)}lineOffsetToPosition(u,s){return this._getSnapshot().index.absolutePositionOfStartOfLine(u)+(s-1)}positionToLineOffset(u){return this._getSnapshot().index.positionToLineOffset(u)}lineToTextSpan(u){const s=this._getSnapshot().index,{lineText:d,absolutePosition:f}=s.lineNumberToInfo(u+1),p=d!==void 0?d.length:s.absolutePositionOfStartOfLine(u+2)-f;return d1(f,p)}getTextChangesBetweenVersions(u,s){if(u=this.minVersion){const d=[];for(let f=u+1;f<=s;f++){const p=this.versions[this.versionToIndex(f)];for(const E of p.changesSincePreviousVersion)d.push(E.getTextChangeRange())}return P2e(d)}else return;else return tj}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(u){const s=new OF,d=new SNe(0,s,new rz);s.versions[s.currentVersion]=d;const f=rz.linesFromText(u);return d.index.load(f.lines),s}},hte.changeNumberThreshold=8,hte.changeLengthThreshold=256,hte.maxVersions=8,fte=hte,SNe=class G6t{constructor(u,s,d,f=$c){this.version=u,this.cache=s,this.index=d,this.changesSincePreviousVersion=f}getText(u,s){return this.index.getText(u,s-u)}getLength(){return this.index.getLength()}getChangeRange(u){if(u instanceof G6t&&this.cache===u.cache)return this.version<=u.version?tj:this.cache.getTextChangesBetweenVersions(u.version,this.version)}},rz=class XOe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(u){return this.lineNumberToInfo(u).absolutePosition}positionToLineOffset(u){const{oneBasedLine:s,zeroBasedColumn:d}=this.root.charOffsetToLineInfo(1,u);return{line:s,offset:d+1}}positionToColumnAndLineText(u){return this.root.charOffsetToLineInfo(1,u)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(u){const s=this.getLineCount();if(u<=s){const{position:d,leaf:f}=this.root.lineNumberToInfo(u,0);return{absolutePosition:d,lineText:f&&f.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(u){if(u.length>0){const s=[];for(let d=0;d0&&u{d=d.concat(E.text.substring(f,f+p))}}),d}getLength(){return this.root.charCount()}every(u,s,d){d||(d=this.root.charCount());const f={goSubtree:!0,done:!1,leaf(p,E,v){u(v,p,E)||(this.done=!0)}};return this.walk(s,d-s,f),!f.done}edit(u,s,d){if(this.root.charCount()===0)return H.assert(s===0),d!==void 0?(this.load(XOe.linesFromText(d).lines),this):void 0;{let f;if(this.checkEdits){const v=this.getText(0,this.root.charCount());f=v.slice(0,u)+d+v.slice(u+s)}const p=new Uct;let E=!1;if(u>=this.root.charCount()){u=this.root.charCount()-1;const v=this.getText(u,1);d?d=v+d:d=v,s=0,E=!0}else if(s>0){const v=u+s,{zeroBasedColumn:b,lineText:B}=this.positionToColumnAndLineText(v);b===0&&(s+=B.length,d=d?d+B:B)}if(this.root.walk(u,s,p),p.insertLines(d,E),this.checkEdits){const v=p.lineIndex.getText(0,p.lineIndex.getLength());H.assert(f===v,"buffer edit mismatch")}return p.lineIndex}}static buildTreeFromBottom(u){if(u.length0?d[f]=p:d.pop(),{lines:d,lineMap:s}}},E9=class eje{constructor(u=[]){this.children=u,this.totalChars=0,this.totalLines=0,u.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const u of this.children)this.totalChars+=u.charCount(),this.totalLines+=u.lineCount()}execWalk(u,s,d,f,p){return d.pre&&d.pre(u,s,this.children[f],this,p),d.goSubtree?(this.children[f].walk(u,s,d),d.post&&d.post(u,s,this.children[f],this,p)):d.goSubtree=!0,d.done}skipChild(u,s,d,f,p){f.pre&&!f.done&&(f.pre(u,s,this.children[d],this,p),f.goSubtree=!0)}walk(u,s,d){let f=0,p=this.children[f].charCount(),E=u;for(;E>=p;)this.skipChild(E,s,f,d,0),E-=p,f++,p=this.children[f].charCount();if(E+s<=p){if(this.execWalk(E,s,d,f,2))return}else{if(this.execWalk(E,p-E,d,f,1))return;let v=s-(p-E);for(f++,p=this.children[f].charCount();v>p;){if(this.execWalk(0,p,d,f,3))return;v-=p,f++,p=this.children[f].charCount()}if(v>0&&this.execWalk(0,v,d,f,4))return}if(d.pre){const v=this.children.length;if(fs)return p.isLeaf()?{oneBasedLine:u,zeroBasedColumn:s,lineText:p.text}:p.charOffsetToLineInfo(u,s);s-=p.charCount(),u+=p.lineCount()}const d=this.lineCount();if(d===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const f=H.checkDefined(this.lineNumberToInfo(d,0).leaf);return{oneBasedLine:d,zeroBasedColumn:f.charCount(),lineText:void 0}}lineNumberToInfo(u,s){for(const d of this.children){const f=d.lineCount();if(f>=u)return d.isLeaf()?{position:s,leaf:d}:d.lineNumberToInfo(u,s);u-=f,s+=d.charCount()}return{position:s,leaf:void 0}}splitAfter(u){let s;const d=this.children.length;u++;const f=u;if(u=0;M--)b[M].children.length===0&&b.pop()}E&&b.push(E),this.updateCounts();for(let k=0;kYQ,ActionPackageInstalled:()=>T9e,ActionSet:()=>ZQ,ActionWatchTypingLocations:()=>SH,Arguments:()=>mhe,AutoImportProviderProject:()=>age,AuxiliaryProject:()=>uge,CharRangeSection:()=>_ge,CloseFileWatcherEvent:()=>lte,CommandNames:()=>kNe,ConfigFileDiagEvent:()=>ute,ConfiguredProject:()=>oge,CreateDirectoryWatcherEvent:()=>ste,CreateFileWatcherEvent:()=>ote,Errors:()=>v5,EventBeginInstallTypes:()=>hhe,EventEndInstallTypes:()=>fhe,EventInitializationFailed:()=>N9e,EventTypesRegistry:()=>L9e,ExternalProject:()=>Zee,GcTimer:()=>Ype,InferredProject:()=>nge,LargeFileReferencedEvent:()=>nte,LineIndex:()=>rz,LineLeaf:()=>qK,LineNode:()=>E9,LogLevel:()=>$pe,Msg:()=>Upe,OpenFileInfoTelemetryEvent:()=>cge,Project:()=>Wk,ProjectInfoTelemetryEvent:()=>ate,ProjectKind:()=>nz,ProjectLanguageServiceStateEvent:()=>rte,ProjectLoadingFinishEvent:()=>ite,ProjectLoadingStartEvent:()=>tte,ProjectReferenceProjectLoadKind:()=>fge,ProjectService:()=>mge,ProjectsUpdatedInBackgroundEvent:()=>JK,ScriptInfo:()=>ege,ScriptVersionCache:()=>fte,Session:()=>ANe,TextStorage:()=>Xpe,ThrottledOperations:()=>Zpe,TypingsCache:()=>tge,allFilesAreJsOrDts:()=>nNe,allRootFilesAreJsOrDts:()=>iNe,asNormalizedPath:()=>Fct,convertCompilerOptions:()=>Yee,convertFormatOptions:()=>Sw,convertScriptKindName:()=>lge,convertTypeAcquisition:()=>aNe,convertUserPreferences:()=>oNe,convertWatchOptions:()=>GK,countEachFileTypes:()=>KK,createInstallTypingsRequest:()=>kct,createModuleSpecifierCache:()=>ENe,createNormalizedPathMap:()=>Act,createPackageJsonCache:()=>_Ne,createSortedArray:()=>jLe,emptyArray:()=>$c,findArgument:()=>_it,forEachResolvedProjectReferenceProject:()=>Bw,formatDiagnosticToProtocol:()=>UK,formatMessage:()=>DNe,getBaseConfigFileName:()=>qpe,getLocationInNewDocument:()=>bNe,hasArgument:()=>Eit,hasNoTypeScriptSource:()=>uNe,indent:()=>BM,isBackgroundProject:()=>WK,isConfigFile:()=>fNe,isConfiguredProject:()=>Qv,isDynamicFileName:()=>HK,isExternalProject:()=>ige,isInferredProject:()=>Aw,isInferredProjectName:()=>zLe,makeAutoImportProviderProjectName:()=>RLe,makeAuxiliaryProjectName:()=>OLe,makeInferredProjectName:()=>ILe,maxFileSize:()=>ete,maxProgramSizeForNonTsFiles:()=>Xee,normalizedPathToPath:()=>VK,nowString:()=>Dit,nullCancellationToken:()=>yNe,nullTypingsInstaller:()=>qee,projectContainsInfoDirectly:()=>p9,protocol:()=>tNe,removeSorted:()=>Sct,stringifyIndented:()=>nw,toEvent:()=>xNe,toNormalizedPath:()=>Dl,tryConvertScriptKindName:()=>sge,typingsInstaller:()=>PLe,updateProjectIfDirty:()=>Gm});var _9=o({"src/server/_namespaces/ts.server.ts"(){QQ(),MLe(),vQt(),CQt(),bQt(),yQt(),AQt(),TQt(),MQt(),VQt(),HQt(),KQt(),oXt(),sXt()}}),Yct={};h(Yct,{ANONYMOUS:()=>KX,AccessFlags:()=>Koe,AssertionLevel:()=>moe,AssignmentDeclarationKind:()=>Qoe,AssignmentKind:()=>Kle,Associativity:()=>Gle,BreakpointResolver:()=>Ime,BuilderFileEmit:()=>K1e,BuilderProgramKind:()=>W1e,BuilderState:()=>Wp,BundleFileSectionKind:()=>gse,CallHierarchy:()=>o9,CharacterCodes:()=>lse,CheckFlags:()=>Roe,CheckMode:()=>XY,ClassificationType:()=>Nhe,ClassificationTypeNames:()=>Lhe,CommentDirectiveType:()=>boe,Comparison:()=>x,CompletionInfoFlags:()=>khe,CompletionTriggerKind:()=>xhe,Completions:()=>h9,ContainerFlags:()=>Pde,ContextFlags:()=>Boe,Debug:()=>H,DiagnosticCategory:()=>vO,Diagnostics:()=>F,DocumentHighlights:()=>JX,ElementFlags:()=>Hoe,EmitFlags:()=>_U,EmitHint:()=>fse,EmitOnly:()=>koe,EndOfLineState:()=>She,EnumKind:()=>Ioe,ExitStatus:()=>Foe,ExportKind:()=>Rfe,Extension:()=>cse,ExternalEmitHelpers:()=>hse,FileIncludeKind:()=>lU,FilePreprocessingDiagnosticsKind:()=>yoe,FileSystemEntryKind:()=>Cse,FileWatcherEventKind:()=>vse,FindAllReferences:()=>Z0,FlattenLevel:()=>Xde,FlowFlags:()=>xO,ForegroundColorEscapeSequences:()=>M1e,FunctionFlags:()=>Wle,GeneratedIdentifierFlags:()=>sU,GetLiteralTextFlags:()=>jle,GoToDefinition:()=>Cw,HighlightSpanKind:()=>Che,IdentifierNameMap:()=>Y7,IdentifierNameMultiMap:()=>Qde,ImportKind:()=>Ife,ImportsNotUsedAsValues:()=>use,IndentStyle:()=>bhe,IndexFlags:()=>Woe,IndexKind:()=>$oe,InferenceFlags:()=>Zoe,InferencePriority:()=>qoe,InlayHintKind:()=>vhe,InlayHints:()=>Spe,InternalEmitFlags:()=>dse,InternalSymbolName:()=>Ooe,InvalidatedProjectKind:()=>dhe,JSDocParsingMode:()=>Dse,JsDoc:()=>Yv,JsTyping:()=>o3,JsxEmit:()=>nse,JsxFlags:()=>voe,JsxReferenceKind:()=>Goe,LanguageServiceMode:()=>Ehe,LanguageVariant:()=>ose,LexicalEnvironmentFlags:()=>pse,ListFormat:()=>Ese,LogLevel:()=>goe,MemberOverrideStatus:()=>Aoe,ModifierFlags:()=>aU,ModuleDetectionKind:()=>Xoe,ModuleInstanceState:()=>Nde,ModuleKind:()=>FN,ModuleResolutionKind:()=>y8,ModuleSpecifierEnding:()=>Qle,NavigateTo:()=>n8e,NavigationBar:()=>f8e,NewLineKind:()=>rse,NodeBuilderFlags:()=>woe,NodeCheckFlags:()=>joe,NodeFactoryFlags:()=>ace,NodeFlags:()=>rU,NodeResolutionFeatures:()=>wde,ObjectFlags:()=>fU,OperationCanceledException:()=>b8,OperatorPrecedence:()=>Jle,OrganizeImports:()=>Gp,OrganizeImportsMode:()=>Dhe,OuterExpressionKinds:()=>mse,OutliningElementsCollector:()=>Lpe,OutliningSpanKind:()=>Fhe,OutputFileType:()=>Ahe,PackageJsonAutoImportPreference:()=>ghe,PackageJsonDependencyGroup:()=>phe,PatternMatchKind:()=>$X,PollingInterval:()=>DU,PollingWatchKind:()=>ise,PragmaKindFlags:()=>_se,PrivateIdentifierKind:()=>fce,ProcessLevel:()=>n1e,ProgramUpdateLevel:()=>_1e,QuotePreference:()=>Tfe,RelationComparisonResult:()=>oU,Rename:()=>Hee,ScriptElementKind:()=>whe,ScriptElementKindModifier:()=>The,ScriptKind:()=>pU,ScriptSnapshot:()=>eX,ScriptTarget:()=>ase,SemanticClassificationFormat:()=>_he,SemanticMeaning:()=>wfe,SemicolonPreference:()=>yhe,SignatureCheckMode:()=>eQ,SignatureFlags:()=>mU,SignatureHelp:()=>NK,SignatureKind:()=>Joe,SmartSelectionRange:()=>Mpe,SnippetKind:()=>EU,SortKind:()=>foe,StructureIsReused:()=>cU,SymbolAccessibility:()=>Noe,SymbolDisplay:()=>x5,SymbolDisplayPartKind:()=>wH,SymbolFlags:()=>dU,SymbolFormatFlags:()=>Loe,SyntaxKind:()=>uU,SyntheticSymbolKind:()=>Poe,Ternary:()=>Yoe,ThrottledCancellationToken:()=>zme,TokenClass:()=>Bhe,TokenFlags:()=>Coe,TransformFlags:()=>gU,TypeFacts:()=>QY,TypeFlags:()=>hU,TypeFormatFlags:()=>Toe,TypeMapKind:()=>Uoe,TypePredicateKind:()=>Moe,TypeReferenceSerializationKind:()=>zoe,UnionReduction:()=>Soe,UpToDateStatusType:()=>ohe,VarianceFlags:()=>Voe,Version:()=>Lp,VersionRange:()=>EO,WatchDirectoryFlags:()=>sse,WatchDirectoryKind:()=>tse,WatchFileKind:()=>ese,WatchLogLevel:()=>D1e,WatchType:()=>cd,accessPrivateIdentifier:()=>ZAe,addDisposableResourceHelper:()=>eY,addEmitFlags:()=>i_,addEmitHelper:()=>S7,addEmitHelpers:()=>iD,addInternalEmitFlags:()=>F7,addNodeFactoryPatcher:()=>MYe,addObjectAllocatorPatcher:()=>Qye,addRange:()=>yn,addRelatedInfo:()=>Es,addSyntheticLeadingComment:()=>OP,addSyntheticTrailingComment:()=>AZ,addToSeen:()=>Ip,advancedAsyncSuperHelper:()=>bV,affectsDeclarationPathOptionDeclarations:()=>mde,affectsEmitOptionDeclarations:()=>fde,allKeysStartWithDot:()=>JY,altDirectorySeparator:()=>BO,and:()=>Q$,append:()=>xi,appendIfUnique:()=>e0,arrayFrom:()=>ga,arrayIsEqualTo:()=>On,arrayIsHomogeneous:()=>Eke,arrayIsSorted:()=>hi,arrayOf:()=>am,arrayReverseIterator:()=>Cd,arrayToMap:()=>lg,arrayToMultiMap:()=>mO,arrayToNumericMap:()=>noe,arraysEqual:()=>Zt,assertType:()=>gqe,assign:()=>VE,assignHelper:()=>PZ,asyncDelegator:()=>zZ,asyncGeneratorHelper:()=>MZ,asyncSuperHelper:()=>CV,asyncValues:()=>IZ,attachFileToDiagnostics:()=>v7,awaitHelper:()=>B7,awaiterHelper:()=>OZ,base64decode:()=>jye,base64encode:()=>Oye,binarySearch:()=>Kl,binarySearchKey:()=>va,bindSourceFile:()=>SAe,breakIntoCharacterSpans:()=>ZSe,breakIntoWordSpans:()=>YSe,buildLinkParts:()=>DSe,buildOpts:()=>MY,buildOverload:()=>Dct,bundlerModuleNameResolver:()=>gAe,canBeConvertedToAsync:()=>qfe,canHaveDecorators:()=>Ak,canHaveExportModifier:()=>rV,canHaveFlowNode:()=>Bj,canHaveIllegalDecorators:()=>Hce,canHaveIllegalModifiers:()=>LFe,canHaveIllegalType:()=>dQe,canHaveIllegalTypeParameters:()=>TFe,canHaveJSDoc:()=>wj,canHaveLocals:()=>UE,canHaveModifiers:()=>Hp,canHaveSymbol:()=>Zg,canJsonReportNoInputFiles:()=>aM,canProduceDiagnostics:()=>mQ,canUsePropertyAccess:()=>zle,canWatchAffectingLocation:()=>n9e,canWatchAtTypes:()=>i9e,canWatchDirectoryOrFile:()=>IQ,cartesianProduct:()=>i2e,cast:()=>Po,chainBundle:()=>Kp,chainDiagnosticMessages:()=>ro,changeAnyExtension:()=>AO,changeCompilerHostLikeToUseCache:()=>vH,changeExtension:()=>wv,changesAffectModuleResolution:()=>UU,changesAffectingProgramStructure:()=>bbe,childIsDecorated:()=>QN,classElementOrClassElementParameterIsDecorated:()=>S0e,classHasClassThisAssignment:()=>e1e,classHasDeclaredOrExplicitlyAssignedName:()=>t1e,classHasExplicitlyAssignedName:()=>dQ,classOrConstructorParameterIsDecorated:()=>t5,classPrivateFieldGetHelper:()=>YZ,classPrivateFieldInHelper:()=>XZ,classPrivateFieldSetHelper:()=>QZ,classicNameResolver:()=>yAe,classifier:()=>aBe,cleanExtendedConfigCache:()=>CQ,clear:()=>pu,clearMap:()=>rf,clearSharedExtendedConfigFileWatcher:()=>p1e,climbPastPropertyAccess:()=>iX,climbPastPropertyOrElementAccess:()=>J9e,clone:()=>uoe,cloneCompilerOptions:()=>Qhe,closeFileWatcher:()=>fg,closeFileWatcherOf:()=>jm,codefix:()=>z1,collapseTextChangeRangesAcrossMultipleVersions:()=>P2e,collectExternalModuleInfo:()=>Ude,combine:()=>vo,combinePaths:()=>cr,commentPragmas:()=>CO,commonOptionsWithBuild:()=>QV,commonPackageFolders:()=>Ule,compact:()=>Dr,compareBooleans:()=>d2,compareDataObjects:()=>gle,compareDiagnostics:()=>bP,compareDiagnosticsSkipRelatedInformation:()=>Zq,compareEmitHelpers:()=>Uke,compareNumberOfDirectorySeparators:()=>iV,comparePaths:()=>pv,comparePathsCaseInsensitive:()=>Kqe,comparePathsCaseSensitive:()=>Hqe,comparePatternKeys:()=>Sde,compareProperties:()=>QCe,compareStringsCaseInsensitive:()=>Z$,compareStringsCaseInsensitiveEslintCompatible:()=>qCe,compareStringsCaseSensitive:()=>dh,compareStringsCaseSensitiveUI:()=>pO,compareTextSpans:()=>q$,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>ZV,compilerOptionsAffectDeclarationPath:()=>lke,compilerOptionsAffectEmit:()=>ske,compilerOptionsAffectSemanticDiagnostics:()=>oke,compilerOptionsDidYouMeanDiagnostics:()=>tH,compilerOptionsIndicateEsModules:()=>ufe,compose:()=>mqe,computeCommonSourceDirectoryOfFilenames:()=>P7e,computeLineAndCharacterOfPosition:()=>k8,computeLineOfPosition:()=>TN,computeLineStarts:()=>n7,computePositionOfLineAndCharacter:()=>FU,computeSignature:()=>Nk,computeSignatureWithDiagnostics:()=>O1e,computeSuggestionDiagnostics:()=>Jfe,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>ike,consumesNodeCoreModules:()=>zX,contains:()=>kt,containsIgnoredPath:()=>TP,containsObjectRestOrSpread:()=>VV,containsParseError:()=>O8,containsPath:()=>GE,convertCompilerOptionsForTelemetry:()=>eAe,convertCompilerOptionsFromJson:()=>mXe,convertJsonOption:()=>Sk,convertToBase64:()=>Rye,convertToJson:()=>$V,convertToObject:()=>ZFe,convertToOptionsWithAbsolutePaths:()=>ode,convertToRelativePath:()=>wN,convertToTSConfig:()=>eXe,convertTypeAcquisitionFromJson:()=>pXe,copyComments:()=>Rk,copyEntries:()=>qU,copyLeadingComments:()=>cw,copyProperties:()=>roe,copyTrailingAsLeadingComments:()=>ZH,copyTrailingComments:()=>OM,couldStartTrivia:()=>y2e,countWhere:()=>ui,createAbstractBuilder:()=>ktt,createAccessorPropertyBackingField:()=>Wce,createAccessorPropertyGetRedirector:()=>jFe,createAccessorPropertySetRedirector:()=>VFe,createBaseNodeFactory:()=>Lke,createBinaryExpressionTrampoline:()=>kY,createBindingHelper:()=>xB,createBuildInfo:()=>gH,createBuilderProgram:()=>j1e,createBuilderProgramUsingProgramBuildInfo:()=>e9e,createBuilderStatusReporter:()=>E9e,createCacheWithRedirects:()=>Cde,createCacheableExportInfoMap:()=>Pfe,createCachedDirectoryStructureHost:()=>xQ,createClassNamedEvaluationHelperBlock:()=>t7e,createClassThisAssignmentBlock:()=>XAe,createClassifier:()=>Hit,createCommentDirectivesMap:()=>Bbe,createCompilerDiagnostic:()=>cc,createCompilerDiagnosticForInvalidCustomType:()=>GFe,createCompilerDiagnosticFromMessageChain:()=>qq,createCompilerHost:()=>M7e,createCompilerHostFromProgramHost:()=>nhe,createCompilerHostWorker:()=>C1e,createDetachedDiagnostic:()=>hB,createDiagnosticCollection:()=>rB,createDiagnosticForFileFromMessageChain:()=>b0e,createDiagnosticForNode:()=>Su,createDiagnosticForNodeArray:()=>H8,createDiagnosticForNodeArrayFromMessageChain:()=>sj,createDiagnosticForNodeFromMessageChain:()=>Y3,createDiagnosticForNodeInSourceFile:()=>K4,createDiagnosticForRange:()=>Vbe,createDiagnosticMessageChainFromDiagnostic:()=>jbe,createDiagnosticReporter:()=>kH,createDocumentPositionMapper:()=>WAe,createDocumentRegistry:()=>OSe,createDocumentRegistryInternal:()=>Vfe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>G1e,createEmitHelperFactory:()=>$ke,createEmptyExports:()=>NV,createExpressionForJsxElement:()=>yFe,createExpressionForJsxFragment:()=>kFe,createExpressionForObjectLiteralElementLike:()=>FFe,createExpressionForPropertyName:()=>zce,createExpressionFromEntityName:()=>PV,createExternalHelpersImportDeclarationIfNeeded:()=>Oce,createFileDiagnostic:()=>Rd,createFileDiagnosticFromMessageChain:()=>nq,createForOfBindingStatement:()=>Mce,createGetCanonicalFileName:()=>L1,createGetSourceFile:()=>x1e,createGetSymbolAccessibilityDiagnosticForNode:()=>h5,createGetSymbolAccessibilityDiagnosticForNodeName:()=>k7e,createGetSymbolWalker:()=>BAe,createIncrementalCompilerHost:()=>rhe,createIncrementalProgram:()=>p9e,createInputFiles:()=>IYe,createInputFilesWithFilePaths:()=>uce,createInputFilesWithFileTexts:()=>rce,createJsxFactoryExpression:()=>Pce,createLanguageService:()=>eBe,createLanguageServiceSourceFile:()=>Eee,createMemberAccessForPropertyName:()=>Fk,createModeAwareCache:()=>U7,createModeAwareCacheKey:()=>dM,createModuleNotFoundChain:()=>o0e,createModuleResolutionCache:()=>KB,createModuleResolutionLoader:()=>A1e,createModuleResolutionLoaderUsingGlobalCache:()=>o9e,createModuleSpecifierResolutionHost:()=>Ik,createMultiMap:()=>wm,createNodeConverters:()=>Pke,createNodeFactory:()=>mV,createOptionNameMap:()=>SY,createOverload:()=>Gpe,createPackageJsonImportFilter:()=>HM,createPackageJsonInfo:()=>Cfe,createParenthesizerRules:()=>Nke,createPatternMatcher:()=>WSe,createPrependNodes:()=>N1e,createPrinter:()=>Gv,createPrinterWithDefaults:()=>f1e,createPrinterWithRemoveComments:()=>X2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>m1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>EH,createProgram:()=>SQ,createProgramHost:()=>uhe,createPropertyNameNodeForIdentifierOrLiteral:()=>mZ,createQueue:()=>U$,createRange:()=>s4,createRedirectedBuilderProgram:()=>H1e,createResolutionCache:()=>$1e,createRuntimeTypeSerializer:()=>a7e,createScanner:()=>YD,createSemanticDiagnosticsBuilderProgram:()=>ytt,createSet:()=>aoe,createSolutionBuilder:()=>Vtt,createSolutionBuilderHost:()=>Ott,createSolutionBuilderWithWatch:()=>Htt,createSolutionBuilderWithWatchHost:()=>jtt,createSortedArray:()=>xt,createSourceFile:()=>KV,createSourceMapGenerator:()=>jAe,createSourceMapSource:()=>RYe,createSuperAccessVariableStatement:()=>fQ,createSymbolTable:()=>Vo,createSymlinkCache:()=>ble,createSystemWatchFunctions:()=>E2e,createTextChange:()=>VH,createTextChangeFromStartLength:()=>gX,createTextChangeRange:()=>OO,createTextRangeFromNode:()=>tfe,createTextRangeFromSpan:()=>pX,createTextSpan:()=>d1,createTextSpanFromBounds:()=>Vc,createTextSpanFromNode:()=>of,createTextSpanFromRange:()=>qx,createTextSpanFromStringLiteralLikeContent:()=>efe,createTextWriter:()=>Vj,createTokenRange:()=>fle,createTypeChecker:()=>PAe,createTypeReferenceDirectiveResolutionCache:()=>HY,createTypeReferenceResolutionLoader:()=>kQ,createUnparsedSourceFile:()=>nce,createWatchCompilerHost:()=>ztt,createWatchCompilerHostOfConfigFile:()=>h9e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>f9e,createWatchFactory:()=>ihe,createWatchHost:()=>the,createWatchProgram:()=>Itt,createWatchStatusReporter:()=>s9e,createWriteFileMeasuringIO:()=>v1e,declarationNameToString:()=>b0,decodeMappings:()=>Gde,decodedTextSpanIntersectsWith:()=>RO,decorateHelper:()=>BZ,deduplicate:()=>ri,defaultIncludeSpec:()=>RY,defaultInitCompilerOptions:()=>zY,defaultMaximumTruncationLength:()=>lV,detectSortCaseSensitivity:()=>cn,diagnosticCategoryName:()=>Gy,diagnosticToString:()=>jk,directoryProbablyExists:()=>hg,directorySeparator:()=>rl,displayPart:()=>yf,displayPartsToString:()=>EK,disposeEmitNodes:()=>oce,disposeResourcesHelper:()=>tY,documentSpansEqual:()=>bX,dumpTracingLegend:()=>m2e,elementAt:()=>qD,elideNodes:()=>OFe,emitComments:()=>Aye,emitDetachedComments:()=>Sye,emitFiles:()=>EQ,emitFilesAndReportErrors:()=>VQ,emitFilesAndReportErrorsAndGetExitStatus:()=>d9e,emitModuleKindIsNonNodeESM:()=>Yq,emitNewLineBeforeLeadingCommentOfPosition:()=>Fye,emitNewLineBeforeLeadingComments:()=>yye,emitNewLineBeforeLeadingCommentsOfPosition:()=>kye,emitSkippedWithNoDiagnostics:()=>PQ,emitUsingBuildInfo:()=>w7e,emptyArray:()=>_t,emptyFileSystemEntries:()=>bZ,emptyMap:()=>iU,emptyOptions:()=>d4,emptySet:()=>u2e,endsWith:()=>sc,ensurePathIsNonModuleName:()=>h2,ensureScriptKind:()=>oZ,ensureTrailingDirectorySeparator:()=>zd,entityNameToString:()=>zf,enumerateInsertsAndDeletes:()=>eU,equalOwnProperties:()=>ZA,equateStringsCaseInsensitive:()=>QA,equateStringsCaseSensitive:()=>XA,equateValues:()=>Cx,esDecorateHelper:()=>LZ,escapeJsxAttributeString:()=>X0e,escapeLeadingUnderscores:()=>Al,escapeNonAsciiString:()=>jj,escapeSnippetText:()=>O2,escapeString:()=>Av,every:()=>ye,expandPreOrPostfixIncrementOrDecrementExpression:()=>DY,explainFiles:()=>Z1e,explainIfFileIsRedirectAndImpliedFormat:()=>Y1e,exportAssignmentIsAlias:()=>tB,exportStarHelper:()=>ZZ,expressionResultIsUnused:()=>Dke,extend:()=>$$,extendsHelper:()=>jZ,extensionFromPath:()=>y7,extensionIsTS:()=>cZ,extensionsNotSupportingExtensionlessResolution:()=>fV,externalHelpersModuleNameText:()=>Hx,factory:()=>q,fileExtensionIs:()=>Ml,fileExtensionIsOneOf:()=>jc,fileIncludeReasonToDiagnostics:()=>ehe,fileShouldUseJavaScriptRequire:()=>Bfe,filter:()=>ti,filterMutate:()=>Uu,filterSemanticDiagnostics:()=>BQ,find:()=>Le,findAncestor:()=>Tn,findBestPatternMatch:()=>coe,findChildOfKind:()=>a0,findComputedPropertyNameCacheAssignment:()=>FY,findConfigFile:()=>N7e,findContainingList:()=>oX,findDiagnosticForNode:()=>TSe,findFirstNonJsxWhitespaceToken:()=>Y9e,findIndex:()=>Ue,findLast:()=>lt,findLastIndex:()=>Ze,findListItemInfo:()=>Z9e,findMap:()=>rt,findModifier:()=>ow,findNextToken:()=>ib,findPackageJson:()=>BSe,findPackageJsons:()=>vfe,findPrecedingMatchingToken:()=>fX,findPrecedingToken:()=>td,findSuperStatementIndexPath:()=>sQ,findTokenOnLeftOfPosition:()=>cX,findUseStrictPrologue:()=>Rce,first:()=>Pn,firstDefined:()=>G,firstDefinedIterator:()=>ie,firstIterator:()=>Oa,firstOrOnly:()=>Ffe,firstOrUndefined:()=>Ki,firstOrUndefinedIterator:()=>Hn,fixupCompilerOptions:()=>Yfe,flatMap:()=>ju,flatMapIterator:()=>pa,flatMapToMutable:()=>Tr,flatten:()=>Va,flattenCommaList:()=>HFe,flattenDestructuringAssignment:()=>wk,flattenDestructuringBinding:()=>Q2,flattenDiagnosticMessageText:()=>lE,forEach:()=>L,forEachAncestor:()=>ybe,forEachAncestorDirectory:()=>Ug,forEachChild:()=>ao,forEachChildRecursively:()=>uM,forEachEmittedFile:()=>d1e,forEachEnclosingBlockScopeContainer:()=>Ibe,forEachEntry:()=>h1,forEachExternalModuleToImportFrom:()=>zfe,forEachImportClauseDeclaration:()=>Fq,forEachKey:()=>U_,forEachLeadingCommentRange:()=>NO,forEachNameInAccessChainWalkingLeft:()=>Zye,forEachPropertyAssignment:()=>J8,forEachResolvedProjectReference:()=>S1e,forEachReturnStatement:()=>y2,forEachRight:()=>O,forEachTrailingCommentRange:()=>PO,forEachTsConfigPropArray:()=>hj,forEachUnique:()=>lfe,forEachYieldExpression:()=>Kbe,forSomeAncestorDirectory:()=>rYe,formatColorAndReset:()=>eb,formatDiagnostic:()=>b1e,formatDiagnostics:()=>att,formatDiagnosticsWithColorAndContext:()=>z7e,formatGeneratedName:()=>jv,formatGeneratedNamePart:()=>RB,formatLocation:()=>y1e,formatMessage:()=>Dle,formatStringFromArgs:()=>e3,formatting:()=>dd,fullTripleSlashAMDReferencePathRegEx:()=>Hle,fullTripleSlashReferencePathRegEx:()=>Vle,generateDjb2Hash:()=>AN,generateTSConfig:()=>rXe,generatorHelper:()=>$Z,getAdjustedReferenceLocation:()=>Jhe,getAdjustedRenameLocation:()=>lX,getAliasDeclarationFromName:()=>H0e,getAllAccessorDeclarations:()=>dk,getAllDecoratorsOfClass:()=>Zde,getAllDecoratorsOfClassElement:()=>cQ,getAllJSDocTags:()=>Vse,getAllJSDocTagsOfKind:()=>_Ze,getAllKeys:()=>Bm,getAllProjectOutputs:()=>gQ,getAllSuperTypeNodes:()=>uP,getAllUnscopedEmitHelpers:()=>hce,getAllowJSCompilerOption:()=>Bv,getAllowSyntheticDefaultImports:()=>C7,getAncestor:()=>Fv,getAnyExtensionFromPath:()=>BN,getAreDeclarationMapsEnabled:()=>Xq,getAssignedExpandoInitializer:()=>l7,getAssignedName:()=>zse,getAssignedNameOfIdentifier:()=>_M,getAssignmentDeclarationKind:()=>Xl,getAssignmentDeclarationPropertyAccessKind:()=>yj,getAssignmentTargetKind:()=>f7,getAutomaticTypeDirectiveNames:()=>VY,getBaseFileName:()=>Ac,getBinaryOperatorPrecedence:()=>Oj,getBuildInfo:()=>_Q,getBuildInfoFileVersionMap:()=>V1e,getBuildInfoText:()=>B7e,getBuildOrderFromAnyBuildOrder:()=>JQ,getBuilderCreationParameters:()=>MQ,getBuilderFileEmit:()=>Ux,getCheckFlags:()=>Gl,getClassExtendsHeritageElement:()=>B2,getClassLikeDeclarationOfSymbol:()=>tD,getCombinedLocalAndExportSymbolFlags:()=>xP,getCombinedModifierFlags:()=>m2,getCombinedNodeFlags:()=>QD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Pse,getCommentRange:()=>nE,getCommonSourceDirectory:()=>yM,getCommonSourceDirectoryOfConfig:()=>kM,getCompilerOptionValue:()=>tZ,getCompilerOptionsDiffValue:()=>nXe,getConditions:()=>$2,getConfigFileParsingDiagnostics:()=>Lk,getConstantValue:()=>jke,getContainerFlags:()=>Lde,getContainerNode:()=>Mk,getContainingClass:()=>Yd,getContainingClassExcludingClassDecorators:()=>hq,getContainingClassStaticBlock:()=>Qbe,getContainingFunction:()=>Nm,getContainingFunctionDeclaration:()=>Ybe,getContainingFunctionOrClassStaticBlock:()=>dq,getContainingNodeArray:()=>xke,getContainingObjectLiteralElement:()=>_K,getContextualTypeFromParent:()=>SX,getContextualTypeFromParentOrAncestorTypeNode:()=>sX,getCurrentTime:()=>AH,getDeclarationDiagnostics:()=>F7e,getDeclarationEmitExtensionForPath:()=>Kj,getDeclarationEmitOutputFilePath:()=>Dye,getDeclarationEmitOutputFilePathWorker:()=>Mq,getDeclarationFromName:()=>nP,getDeclarationModifierFlagsFromSymbol:()=>l4,getDeclarationOfKind:()=>Sl,getDeclarationsOfKind:()=>vbe,getDeclaredExpandoInitializer:()=>xj,getDecorators:()=>Ax,getDefaultCompilerOptions:()=>gee,getDefaultExportInfoWorker:()=>GX,getDefaultFormatCodeSettings:()=>XQ,getDefaultLibFileName:()=>zO,getDefaultLibFilePath:()=>tBe,getDefaultLikeExportInfo:()=>WX,getDiagnosticText:()=>$Qe,getDiagnosticsWithinSpan:()=>LSe,getDirectoryPath:()=>lr,getDirectoryToWatchFailedLookupLocation:()=>J1e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>r9e,getDocumentPositionMapper:()=>Gfe,getESModuleInterop:()=>e_,getEditsForFileRename:()=>VSe,getEffectiveBaseTypeNode:()=>Qg,getEffectiveConstraintOfTypeParameter:()=>w8,getEffectiveContainerForJSDocTemplateTag:()=>Aq,getEffectiveImplementsTypeNodes:()=>iB,getEffectiveInitializer:()=>Dj,getEffectiveJSDocHost:()=>ok,getEffectiveModifierFlags:()=>Eh,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Lye,getEffectiveModifierFlagsNoCache:()=>Nye,getEffectiveReturnTypeNode:()=>U4,getEffectiveSetAccessorTypeAnnotationNode:()=>bye,getEffectiveTypeAnnotationNode:()=>f1,getEffectiveTypeParameterDeclarations:()=>Sx,getEffectiveTypeRoots:()=>cM,getElementOrPropertyAccessArgumentExpressionOrName:()=>kq,getElementOrPropertyAccessName:()=>Q3,getElementsOfBindingOrAssignmentPattern:()=>IB,getEmitDeclarations:()=>c4,getEmitFlags:()=>bs,getEmitHelpers:()=>SZ,getEmitModuleDetectionKind:()=>nke,getEmitModuleKind:()=>m1,getEmitModuleResolutionKind:()=>p1,getEmitScriptTarget:()=>Os,getEmitStandardClassFields:()=>ake,getEnclosingBlockScopeContainer:()=>YE,getEnclosingContainer:()=>C0e,getEncodedSemanticClassifications:()=>Ofe,getEncodedSyntacticClassifications:()=>jfe,getEndLinePosition:()=>uj,getEntityNameFromTypeNode:()=>pj,getEntrypointsFromPackageJsonInfo:()=>kde,getErrorCountForSummary:()=>OQ,getErrorSpanForNode:()=>C2,getErrorSummaryText:()=>l9e,getEscapedTextOfIdentifierOrLiteral:()=>oP,getEscapedTextOfJsxAttributeName:()=>MP,getEscapedTextOfJsxNamespacedName:()=>k7,getExpandoInitializer:()=>yv,getExportAssignmentExpression:()=>K0e,getExportInfoMap:()=>tK,getExportNeedsImportStarHelper:()=>GAe,getExpressionAssociativity:()=>q0e,getExpressionPrecedence:()=>lP,getExternalHelpersModuleName:()=>zV,getExternalModuleImportEqualsDeclarationExpression:()=>XN,getExternalModuleName:()=>Y8,getExternalModuleNameFromDeclaration:()=>Eye,getExternalModuleNameFromPath:()=>tle,getExternalModuleNameLiteral:()=>W7,getExternalModuleRequireArgument:()=>w0e,getFallbackOptions:()=>xH,getFileEmitOutput:()=>K7e,getFileMatcherPatterns:()=>aZ,getFileNamesFromConfigSpecs:()=>oM,getFileWatcherEventKind:()=>xse,getFilesInErrorForSummary:()=>jQ,getFirstConstructorWithBody:()=>X_,getFirstIdentifier:()=>hm,getFirstNonSpaceCharacterPosition:()=>bSe,getFirstProjectOutput:()=>h1e,getFixableErrorSpanExpression:()=>yfe,getFormatCodeSettingsForWriting:()=>jX,getFullWidth:()=>ij,getFunctionFlags:()=>kd,getHeritageClause:()=>Mj,getHostSignatureFromJSDoc:()=>kv,getIdentifierAutoGenerate:()=>KYe,getIdentifierGeneratedImportReference:()=>Jke,getIdentifierTypeArguments:()=>gk,getImmediatelyInvokedFunctionExpression:()=>nk,getImpliedNodeFormatForFile:()=>bH,getImpliedNodeFormatForFileWorker:()=>T1e,getImportNeedsImportDefaultHelper:()=>$de,getImportNeedsImportStarHelper:()=>aQ,getIndentSize:()=>oB,getIndentString:()=>Nq,getInferredLibraryNameResolveFrom:()=>AQ,getInitializedVariables:()=>DP,getInitializerOfBinaryExpression:()=>M0e,getInitializerOfBindingOrAssignmentElement:()=>RV,getInterfaceBaseTypeNodes:()=>rP,getInternalEmitFlags:()=>Pp,getInvokedExpression:()=>pq,getIsolatedModules:()=>mg,getJSDocAugmentsTag:()=>K2e,getJSDocClassTag:()=>Ise,getJSDocCommentRanges:()=>k0e,getJSDocCommentsAndTags:()=>I0e,getJSDocDeprecatedTag:()=>Rse,getJSDocDeprecatedTagNoCache:()=>Z2e,getJSDocEnumTag:()=>Ose,getJSDocHost:()=>h7,getJSDocImplementsTags:()=>W2e,getJSDocOverrideTagNoCache:()=>q2e,getJSDocParameterTags:()=>B8,getJSDocParameterTagsNoCache:()=>O2e,getJSDocPrivateTag:()=>fZe,getJSDocPrivateTagNoCache:()=>J2e,getJSDocProtectedTag:()=>mZe,getJSDocProtectedTagNoCache:()=>$2e,getJSDocPublicTag:()=>hZe,getJSDocPublicTagNoCache:()=>G2e,getJSDocReadonlyTag:()=>pZe,getJSDocReadonlyTagNoCache:()=>U2e,getJSDocReturnTag:()=>Y2e,getJSDocReturnType:()=>VO,getJSDocRoot:()=>iP,getJSDocSatisfiesExpressionType:()=>Rle,getJSDocSatisfiesTag:()=>jse,getJSDocTags:()=>Cv,getJSDocTagsNoCache:()=>EZe,getJSDocTemplateTag:()=>gZe,getJSDocThisTag:()=>LU,getJSDocType:()=>vv,getJSDocTypeAliasName:()=>Vce,getJSDocTypeAssertionType:()=>vY,getJSDocTypeParameterDeclarations:()=>Oq,getJSDocTypeParameterTags:()=>j2e,getJSDocTypeParameterTagsNoCache:()=>V2e,getJSDocTypeTag:()=>xv,getJSXImplicitImportBase:()=>nZ,getJSXRuntimeImport:()=>uZ,getJSXTransformEnabled:()=>iZ,getKeyForCompilerOptions:()=>vde,getLanguageVariant:()=>Yj,getLastChild:()=>Ele,getLeadingCommentRanges:()=>W_,getLeadingCommentRangesOfNode:()=>y0e,getLeftmostAccessExpression:()=>CP,getLeftmostExpression:()=>dB,getLibraryNameFromLibFileName:()=>B1e,getLineAndCharacterOfPosition:()=>s0,getLineInfo:()=>Kde,getLineOfLocalPosition:()=>dP,getLineOfLocalPositionFromLineMap:()=>lk,getLineStartPositionForPosition:()=>tp,getLineStarts:()=>$3,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Gye,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Wye,getLinesBetweenPositions:()=>LN,getLinesBetweenRangeEndAndRangeStart:()=>mle,getLinesBetweenRangeEndPositions:()=>nYe,getLiteralText:()=>wbe,getLocalNameForExternalImport:()=>zB,getLocalSymbolForExportDefault:()=>lB,getLocaleSpecificMessage:()=>to,getLocaleTimeString:()=>FH,getMappedContextSpan:()=>cfe,getMappedDocumentSpan:()=>yX,getMappedLocation:()=>zM,getMatchedFileSpec:()=>Q1e,getMatchedIncludeSpec:()=>X1e,getMeaningFromDeclaration:()=>TH,getMeaningFromLocation:()=>Pk,getMembersOfDeclaration:()=>Wbe,getModeForFileReference:()=>yQ,getModeForResolutionAtIndex:()=>k1e,getModeForUsageLocation:()=>xg,getModifiedTime:()=>e7,getModifiers:()=>p2,getModuleInstanceState:()=>oD,getModuleNameStringLiteralAt:()=>TQ,getModuleSpecifierEndingPreference:()=>Sle,getModuleSpecifierResolverHost:()=>rfe,getNameForExportedSymbol:()=>IX,getNameFromIndexInfo:()=>Rbe,getNameFromPropertyName:()=>WH,getNameOfAccessExpression:()=>Uye,getNameOfCompilerOptionValue:()=>rde,getNameOfDeclaration:()=>Za,getNameOfExpando:()=>N0e,getNameOfJSDocTypedef:()=>R2e,getNameOrArgument:()=>bj,getNameTable:()=>Tme,getNamesForExportedSymbol:()=>NSe,getNamespaceDeclarationNode:()=>Q8,getNewLineCharacter:()=>a5,getNewLineKind:()=>eK,getNewLineOrDefaultFromHost:()=>E5,getNewTargetContainer:()=>eye,getNextJSDocCommentLocation:()=>R0e,getNodeForGeneratedName:()=>jV,getNodeId:()=>$s,getNodeKind:()=>tb,getNodeModifiers:()=>NM,getNodeModulePathParts:()=>pZ,getNonAssignedNameOfDeclaration:()=>TU,getNonAssignmentOperatorForCompoundAssignment:()=>pM,getNonAugmentationDeclaration:()=>g0e,getNonDecoratorTokenPosOfNode:()=>d0e,getNormalizedAbsolutePath:()=>$a,getNormalizedAbsolutePathWithoutRoot:()=>Fse,getNormalizedPathComponents:()=>FO,getObjectFlags:()=>Gu,getOperator:()=>Y0e,getOperatorAssociativity:()=>Z0e,getOperatorPrecedence:()=>Rj,getOptionFromName:()=>ede,getOptionsForLibraryResolution:()=>bde,getOptionsNameMap:()=>jB,getOrCreateEmitNode:()=>P1,getOrCreateExternalHelpersModuleNameIfNeeded:()=>wFe,getOrUpdate:()=>W0,getOriginalNode:()=>Wl,getOriginalNodeId:()=>M1,getOriginalSourceFile:()=>$Ze,getOutputDeclarationFileName:()=>bM,getOutputExtension:()=>pQ,getOutputFileNames:()=>ntt,getOutputPathsFor:()=>CM,getOutputPathsForBundle:()=>vM,getOwnEmitOutputFilePath:()=>_ye,getOwnKeys:()=>Ns,getOwnValues:()=>U1,getPackageJsonInfo:()=>U2,getPackageJsonTypesVersionsPaths:()=>jY,getPackageJsonsVisibleToFile:()=>wSe,getPackageNameFromTypesPackageName:()=>hM,getPackageScopeForPath:()=>aH,getParameterSymbolFromJSDoc:()=>Tj,getParameterTypeNode:()=>gYe,getParentNodeInSpan:()=>JH,getParseTreeNode:()=>Ua,getParsedCommandLineOfConfigFile:()=>GV,getPathComponents:()=>yd,getPathComponentsRelativeTo:()=>Sse,getPathFromPathComponents:()=>yx,getPathUpdater:()=>Kfe,getPathsBasePath:()=>zq,getPatternFromSpec:()=>Fle,getPendingEmitKind:()=>XB,getPositionOfLineAndCharacter:()=>TO,getPossibleGenericSignatures:()=>Uhe,getPossibleOriginalInputExtensionForExtension:()=>xye,getPossibleTypeArgumentsInfo:()=>qhe,getPreEmitDiagnostics:()=>rtt,getPrecedingNonSpaceCharacterPosition:()=>FX,getPrivateIdentifier:()=>Yde,getProperties:()=>qde,getProperty:()=>uo,getPropertyArrayElementValue:()=>Zbe,getPropertyAssignmentAliasLikeExpression:()=>fye,getPropertyNameForPropertyNameNode:()=>sk,getPropertyNameForUniqueESSymbol:()=>GZe,getPropertyNameFromType:()=>Q4,getPropertyNameOfBindingOrAssignmentElement:()=>jce,getPropertySymbolFromBindingElement:()=>CX,getPropertySymbolsFromContextualType:()=>_ee,getQuoteFromPreference:()=>ofe,getQuotePreference:()=>Hm,getRangesWhere:()=>eu,getRefactorContextSpan:()=>u9,getReferencedFileLocation:()=>FM,getRegexFromPattern:()=>jx,getRegularExpressionForWildcard:()=>yP,getRegularExpressionsForWildcards:()=>rZ,getRelativePathFromDirectory:()=>JE,getRelativePathFromFile:()=>SO,getRelativePathToDirectoryOrUrl:()=>i7,getRenameLocation:()=>qH,getReplacementSpanForContextToken:()=>Xhe,getResolutionDiagnostic:()=>P1e,getResolutionModeOverride:()=>qB,getResolveJsonModule:()=>M2,getResolvePackageJsonExports:()=>vle,getResolvePackageJsonImports:()=>cYe,getResolvedExternalModuleName:()=>Pq,getRestIndicatorOfBindingOrAssignmentElement:()=>bY,getRestParameterElementType:()=>F0e,getRightMostAssignedExpression:()=>vj,getRootDeclaration:()=>XE,getRootDirectoryOfResolutionCache:()=>a9e,getRootLength:()=>WE,getRootPathSplitLength:()=>Btt,getScriptKind:()=>pfe,getScriptKindFromFileName:()=>sZ,getScriptTargetFeatures:()=>xZ,getSelectedEffectiveModifierFlags:()=>E7,getSelectedSyntacticModifierFlags:()=>wye,getSemanticClassifications:()=>ISe,getSemanticJsxChildren:()=>uB,getSetAccessorTypeAnnotationNode:()=>vye,getSetAccessorValueParameter:()=>hP,getSetExternalModuleIndicator:()=>Qj,getShebang:()=>SU,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>z0e,getSingleVariableOfVariableStatement:()=>eB,getSnapshotText:()=>aw,getSnippetElement:()=>sce,getSourceFileOfModule:()=>YU,getSourceFileOfNode:()=>zn,getSourceFilePathInNewDir:()=>Iq,getSourceFilePathInNewDirWorker:()=>Rq,getSourceFileVersionAsHashFromText:()=>HQ,getSourceFilesToEmit:()=>ile,getSourceMapRange:()=>Lv,getSourceMapper:()=>XSe,getSourceTextOfNodeFromSourceFile:()=>x2,getSpanOfTokenAtPosition:()=>QE,getSpellingSuggestion:()=>bN,getStartPositionOfLine:()=>Mx,getStartPositionOfRange:()=>_P,getStartsOnNewLine:()=>RP,getStaticPropertiesAndClassStaticBlock:()=>lQ,getStrictOptionValue:()=>Z4,getStringComparer:()=>CN,getSuperCallFromStatement:()=>oQ,getSuperContainer:()=>fj,getSupportedCodeFixes:()=>Bme,getSupportedExtensions:()=>kP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tV,getSwitchedType:()=>Dfe,getSymbolId:()=>Zo,getSymbolNameForPrivateIdentifier:()=>zj,getSymbolTarget:()=>vSe,getSyntacticClassifications:()=>RSe,getSyntacticModifierFlags:()=>Rx,getSyntacticModifierFlagsNoCache:()=>ale,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>UH,getSynthesizedDeepClones:()=>nb,getSynthesizedDeepClonesWithReplacements:()=>gfe,getSyntheticLeadingComments:()=>DB,getSyntheticTrailingComments:()=>DV,getTargetLabel:()=>nX,getTargetOfBindingOrAssignmentElement:()=>$x,getTemporaryModuleResolutionState:()=>rH,getTextOfConstantValue:()=>Tbe,getTextOfIdentifierOrLiteral:()=>J4,getTextOfJSDocComment:()=>KO,getTextOfJsxAttributeName:()=>sV,getTextOfJsxNamespacedName:()=>zP,getTextOfNode:()=>Hc,getTextOfNodeFromSourceText:()=>JN,getTextOfPropertyName:()=>V8,getThisContainer:()=>tf,getThisParameter:()=>T2,getTokenAtPosition:()=>Ca,getTokenPosOfNode:()=>ek,getTokenSourceMapRange:()=>VYe,getTouchingPropertyName:()=>af,getTouchingToken:()=>LM,getTrailingCommentRanges:()=>gv,getTrailingSemicolonDeferringWriter:()=>ele,getTransformFlagsSubtreeExclusions:()=>Mke,getTransformers:()=>l1e,getTsBuildInfoEmitOutputFilePath:()=>f5,getTsConfigObjectLiteralExpression:()=>ZN,getTsConfigPropArrayElementValue:()=>cq,getTypeAnnotationNode:()=>Cye,getTypeArgumentOrTypeParameterList:()=>rSe,getTypeKeywordOfTypeOnlyImport:()=>sfe,getTypeNode:()=>Wke,getTypeNodeIfAccessible:()=>VM,getTypeParameterFromJsDoc:()=>oye,getTypeParameterOwner:()=>oZe,getTypesPackageName:()=>$Y,getUILocale:()=>ZCe,getUniqueName:()=>Ok,getUniqueSymbolId:()=>CSe,getUseDefineForClassFields:()=>eV,getWatchErrorSummaryDiagnosticMessage:()=>U1e,getWatchFactory:()=>E1e,group:()=>vN,groupBy:()=>JCe,guessIndentation:()=>Dbe,handleNoEmitOptions:()=>L1e,hasAbstractModifier:()=>P2,hasAccessorModifier:()=>eE,hasAmbientModifier:()=>rle,hasChangesInResolutions:()=>s0e,hasChildOfKind:()=>RH,hasContextSensitiveParameters:()=>fZ,hasDecorators:()=>o4,hasDocComment:()=>nSe,hasDynamicName:()=>Ix,hasEffectiveModifier:()=>Rf,hasEffectiveModifiers:()=>jq,hasEffectiveReadonlyModifier:()=>fP,hasExtension:()=>t7,hasIndexSignature:()=>_fe,hasInitializer:()=>Nx,hasInvalidEscape:()=>Q0e,hasJSDocNodes:()=>lm,hasJSDocParameterTags:()=>H2e,hasJSFileExtension:()=>z2,hasJsonModuleEmitEnabled:()=>Qq,hasOnlyExpressionInitializer:()=>Qy,hasOverrideModifier:()=>Vq,hasPossibleExternalModuleReference:()=>zbe,hasProperty:()=>gu,hasPropertyAccessExpressionWithName:()=>NH,hasQuestionToken:()=>d7,hasRecordedExternalHelpers:()=>BFe,hasResolutionModeOverride:()=>kke,hasRestParameter:()=>u0e,hasScopeMarker:()=>dbe,hasStaticModifier:()=>Kc,hasSyntacticModifier:()=>Yu,hasSyntacticModifiers:()=>Bye,hasTSFileExtension:()=>mk,hasTabstop:()=>Cke,hasTrailingDirectorySeparator:()=>ZD,hasType:()=>JU,hasTypeArguments:()=>jZe,hasZeroOrOneAsteriskCharacter:()=>Cle,helperString:()=>dce,hostGetCanonicalFileName:()=>n5,hostUsesCaseSensitiveFileNames:()=>Hj,idText:()=>fu,identifierIsThisKeyword:()=>ule,identifierToKeywordKind:()=>Dv,identity:()=>il,identitySourceMapConsumer:()=>rQ,ignoreSourceNewlines:()=>cce,ignoredPaths:()=>kO,importDefaultHelper:()=>qZ,importFromModuleSpecifier:()=>tP,importNameElisionDisabled:()=>xle,importStarHelper:()=>vV,indexOfAnyCharCode:()=>jt,indexOfNode:()=>j8,indicesOf:()=>$r,inferredTypesContainingFile:()=>QB,injectClassNamedEvaluationHelperBlockIfMissing:()=>hQ,injectClassThisAssignmentIfMissing:()=>e7e,insertImports:()=>MM,insertLeadingStatement:()=>oQe,insertSorted:()=>Tt,insertStatementAfterCustomPrologue:()=>Xy,insertStatementAfterStandardPrologue:()=>wZe,insertStatementsAfterCustomPrologue:()=>l0e,insertStatementsAfterStandardPrologue:()=>ZE,intersperse:()=>_e,intrinsicTagNameToString:()=>Ole,introducesArgumentsExoticObject:()=>Ube,inverseJsxOptionMap:()=>sM,isAbstractConstructorSymbol:()=>Jye,isAbstractModifier:()=>tFe,isAccessExpression:()=>I0,isAccessibilityModifier:()=>Yhe,isAccessor:()=>wx,isAccessorModifier:()=>nFe,isAliasSymbolDeclaration:()=>HZe,isAliasableExpression:()=>Pj,isAmbientModule:()=>N1,isAmbientPropertyDeclaration:()=>_0e,isAnonymousFunctionDefinition:()=>sP,isAnyDirectorySeparator:()=>bse,isAnyImportOrBareOrAccessedRequire:()=>Mbe,isAnyImportOrReExport:()=>aj,isAnyImportSyntax:()=>tk,isAnySupportedFileExtension:()=>pYe,isApplicableVersionedTypesKey:()=>sH,isArgumentExpressionOfElementAccess:()=>jhe,isArray:()=>Ha,isArrayBindingElement:()=>jU,isArrayBindingOrAssignmentElement:()=>ZO,isArrayBindingOrAssignmentPattern:()=>Qse,isArrayBindingPattern:()=>_k,isArrayLiteralExpression:()=>Dh,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>p5,isArrayTypeNode:()=>oY,isArrowFunction:()=>q0,isAsExpression:()=>AV,isAssertClause:()=>dFe,isAssertEntry:()=>XYe,isAssertionExpression:()=>Yy,isAssertsKeyword:()=>Xke,isAssignmentDeclaration:()=>eP,isAssignmentExpression:()=>ld,isAssignmentOperator:()=>u5,isAssignmentPattern:()=>KN,isAssignmentTarget:()=>Q_,isAsteriskToken:()=>yV,isAsyncFunction:()=>aP,isAsyncModifier:()=>VP,isAutoAccessorPropertyDeclaration:()=>ef,isAwaitExpression:()=>Gx,isAwaitKeyword:()=>_ce,isBigIntLiteral:()=>iY,isBinaryExpression:()=>Xn,isBinaryOperatorToken:()=>RFe,isBindableObjectDefinePropertyCall:()=>rk,isBindableStaticAccessExpression:()=>A2,isBindableStaticElementAccessExpression:()=>yq,isBindableStaticNameExpression:()=>ak,isBindingElement:()=>js,isBindingElementOfBareOrAccessedRequire:()=>nye,isBindingName:()=>qy,isBindingOrAssignmentElement:()=>rbe,isBindingOrAssignmentPattern:()=>UO,isBindingPattern:()=>So,isBlock:()=>po,isBlockOrCatchScoped:()=>h0e,isBlockScope:()=>D0e,isBlockScopedContainerTopLevel:()=>Pbe,isBooleanLiteral:()=>HN,isBreakOrContinueStatement:()=>ON,isBreakStatement:()=>ZYe,isBuildInfoFile:()=>S7e,isBuilderProgram:()=>c9e,isBundle:()=>kce,isBundleFileTextLike:()=>qye,isCallChain:()=>$y,isCallExpression:()=>Mo,isCallExpressionTarget:()=>Phe,isCallLikeExpression:()=>D2,isCallLikeOrFunctionLikeExpression:()=>Xse,isCallOrNewExpression:()=>$E,isCallOrNewExpressionTarget:()=>Mhe,isCallSignatureDeclaration:()=>CB,isCallToHelper:()=>jP,isCaseBlock:()=>ZP,isCaseClause:()=>BB,isCaseKeyword:()=>uFe,isCaseOrDefaultClause:()=>WU,isCatchClause:()=>G2,isCatchClauseVariableDeclaration:()=>vke,isCatchClauseVariableDeclarationOrBindingElement:()=>f0e,isCheckJsEnabledForFile:()=>uV,isChildOfNodeWithKind:()=>TZe,isCircularBuildOrder:()=>e9,isClassDeclaration:()=>Wc,isClassElement:()=>Zd,isClassExpression:()=>Xd,isClassInstanceProperty:()=>ibe,isClassLike:()=>mr,isClassMemberModifier:()=>qse,isClassNamedEvaluationHelperBlock:()=>X7,isClassOrTypeElement:()=>OU,isClassStaticBlockDeclaration:()=>zl,isClassThisAssignmentBlock:()=>EM,isCollapsedRange:()=>iYe,isColonToken:()=>Yke,isCommaExpression:()=>MV,isCommaListExpression:()=>UP,isCommaSequence:()=>eM,isCommaToken:()=>Zke,isComment:()=>mX,isCommonJsExportPropertyAssignment:()=>sq,isCommonJsExportedExpression:()=>Jbe,isCompoundAssignment:()=>mM,isComputedNonLiteralName:()=>oj,isComputedPropertyName:()=>Ps,isConciseBody:()=>HU,isConditionalExpression:()=>SB,isConditionalTypeNode:()=>FB,isConstTypeReference:()=>q3,isConstructSignatureDeclaration:()=>FV,isConstructorDeclaration:()=>hc,isConstructorTypeNode:()=>WP,isContextualKeyword:()=>Bq,isContinueStatement:()=>qYe,isCustomPrologue:()=>dj,isDebuggerStatement:()=>YYe,isDeclaration:()=>Q1,isDeclarationBindingElement:()=>$O,isDeclarationFileName:()=>e1,isDeclarationName:()=>X3,isDeclarationNameOfEnumOrNamespace:()=>ple,isDeclarationReadonly:()=>uq,isDeclarationStatement:()=>pbe,isDeclarationWithTypeParameterChildren:()=>v0e,isDeclarationWithTypeParameters:()=>x0e,isDecorator:()=>g1,isDecoratorTarget:()=>W9e,isDefaultClause:()=>TV,isDefaultImport:()=>c7,isDefaultModifier:()=>rY,isDefaultedExpandoInitializer:()=>uye,isDeleteExpression:()=>oFe,isDeleteTarget:()=>V0e,isDeprecatedDeclaration:()=>RX,isDestructuringAssignment:()=>r5,isDiagnosticWithLocation:()=>bfe,isDiskPathRoot:()=>yse,isDoStatement:()=>$Ye,isDocumentRegistryEntry:()=>iK,isDotDotDotToken:()=>nY,isDottedName:()=>pP,isDynamicName:()=>Lq,isESSymbolIdentifier:()=>JZe,isEffectiveExternalModule:()=>s7,isEffectiveModuleDeclaration:()=>Nbe,isEffectiveStrictModeSourceFile:()=>E0e,isElementAccessChain:()=>Hse,isElementAccessExpression:()=>U0,isEmittedFileOfProgram:()=>L7e,isEmptyArrayLiteral:()=>Iye,isEmptyBindingElement:()=>z2e,isEmptyBindingPattern:()=>M2e,isEmptyObjectLiteral:()=>dle,isEmptyStatement:()=>Cce,isEmptyStringLiteral:()=>B0e,isEntityName:()=>sm,isEntityNameExpression:()=>ec,isEnumConst:()=>b2,isEnumDeclaration:()=>Iv,isEnumMember:()=>J2,isEqualityOperatorKind:()=>BX,isEqualsGreaterThanToken:()=>Qke,isExclamationToken:()=>kV,isExcludedFile:()=>QFe,isExclusivelyTypeOnlyImportOrExport:()=>F1e,isExpandoPropertyDeclaration:()=>EZ,isExportAssignment:()=>tc,isExportDeclaration:()=>Gc,isExportModifier:()=>L7,isExportName:()=>xY,isExportNamespaceAsDefaultDeclaration:()=>eq,isExportOrDefaultModifier:()=>OV,isExportSpecifier:()=>eh,isExportsIdentifier:()=>uk,isExportsOrModuleExportsOrAlias:()=>q2,isExpression:()=>Wt,isExpressionNode:()=>Z_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>U9e,isExpressionOfOptionalChainRoot:()=>MU,isExpressionStatement:()=>Od,isExpressionWithTypeArguments:()=>c5,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Jj,isExternalModule:()=>wc,isExternalModuleAugmentation:()=>v2,isExternalModuleImportEqualsDeclaration:()=>bv,isExternalModuleIndicator:()=>YO,isExternalModuleNameRelative:()=>Id,isExternalModuleReference:()=>r_,isExternalModuleSymbol:()=>HH,isExternalOrCommonJsModule:()=>cm,isFileLevelReservedGeneratedIdentifier:()=>JO,isFileLevelUniqueName:()=>QU,isFileProbablyExternalModule:()=>HV,isFirstDeclarationOfSymbolParameter:()=>dfe,isFixablePromiseHandler:()=>Ufe,isForInOrOfStatement:()=>M8,isForInStatement:()=>hY,isForInitializer:()=>a4,isForOfStatement:()=>SV,isForStatement:()=>vk,isFunctionBlock:()=>k2,isFunctionBody:()=>t0e,isFunctionDeclaration:()=>ed,isFunctionExpression:()=>A0,isFunctionExpressionOrArrowFunction:()=>R2,isFunctionLike:()=>Co,isFunctionLikeDeclaration:()=>$0,isFunctionLikeKind:()=>a7,isFunctionLikeOrClassStaticBlockDeclaration:()=>L8,isFunctionOrConstructorTypeNode:()=>ube,isFunctionOrModuleBlock:()=>Zse,isFunctionSymbol:()=>aye,isFunctionTypeNode:()=>u3,isFutureReservedKeyword:()=>KZe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>Uy,isGetAccessor:()=>Lx,isGetAccessorDeclaration:()=>zm,isGetOrSetAccessorDeclaration:()=>NU,isGlobalDeclaration:()=>Iit,isGlobalScopeAugmentation:()=>Yg,isGrammarError:()=>Sbe,isHeritageClause:()=>mm,isHoistedFunction:()=>aq,isHoistedVariableStatement:()=>oq,isIdentifier:()=>at,isIdentifierANonContextualKeyword:()=>wq,isIdentifierName:()=>hye,isIdentifierOrThisTypeNode:()=>PFe,isIdentifierPart:()=>Ev,isIdentifierStart:()=>G_,isIdentifierText:()=>Lm,isIdentifierTypePredicate:()=>qbe,isIdentifierTypeReference:()=>gke,isIfStatement:()=>xk,isIgnoredFileFromWildCardWatching:()=>DH,isImplicitGlob:()=>kle,isImportAttribute:()=>hFe,isImportAttributeName:()=>tbe,isImportAttributes:()=>fY,isImportCall:()=>dm,isImportClause:()=>n_,isImportDeclaration:()=>Sd,isImportEqualsDeclaration:()=>E1,isImportKeyword:()=>KP,isImportMeta:()=>W8,isImportOrExportSpecifier:()=>r7,isImportOrExportSpecifierName:()=>xSe,isImportSpecifier:()=>bf,isImportTypeAssertionContainer:()=>QYe,isImportTypeNode:()=>nD,isImportableFile:()=>Mfe,isInComment:()=>m5,isInCompoundLikeAssignment:()=>O0e,isInExpressionContext:()=>Eq,isInJSDoc:()=>Ej,isInJSFile:()=>Qn,isInJSXText:()=>tSe,isInJsonFile:()=>Dq,isInNonReferenceComment:()=>sSe,isInReferenceComment:()=>oSe,isInRightSideOfInternalImportEqualsDeclaration:()=>tX,isInString:()=>zk,isInTemplateString:()=>$he,isInTopLevelContext:()=>fq,isInTypeQuery:()=>ck,isIncrementalCompilation:()=>Xj,isIndexSignatureDeclaration:()=>Ek,isIndexedAccessTypeNode:()=>I7,isInferTypeNode:()=>P7,isInfinityOrNaNString:()=>LP,isInitializedProperty:()=>fH,isInitializedVariable:()=>Zj,isInsideJsxElement:()=>hX,isInsideJsxElementOrAttribute:()=>eSe,isInsideNodeModules:()=>XH,isInsideTemplateLiteral:()=>jH,isInstanceOfExpression:()=>Hq,isInstantiatedModule:()=>Rde,isInterfaceDeclaration:()=>xh,isInternalDeclaration:()=>o1e,isInternalModuleImportEqualsDeclaration:()=>U8,isInternalName:()=>Ice,isIntersectionTypeNode:()=>kB,isIntrinsicJsxName:()=>aB,isIterationStatement:()=>Tx,isJSDoc:()=>Vp,isJSDocAllType:()=>EFe,isJSDocAugmentsTag:()=>LB,isJSDocAuthorTag:()=>nQe,isJSDocCallbackTag:()=>Ace,isJSDocClassTag:()=>DFe,isJSDocCommentContainingNode:()=>GU,isJSDocConstructSignature:()=>X8,isJSDocDeprecatedTag:()=>Lce,isJSDocEnumTag:()=>LV,isJSDocFunctionType:()=>TB,isJSDocImplementsTag:()=>Nce,isJSDocIndexSignature:()=>xq,isJSDocLikeText:()=>Jce,isJSDocLink:()=>pFe,isJSDocLinkCode:()=>gFe,isJSDocLinkLike:()=>o7,isJSDocLinkPlain:()=>tQe,isJSDocMemberName:()=>Rv,isJSDocNameReference:()=>QP,isJSDocNamepathType:()=>iQe,isJSDocNamespaceBody:()=>kZe,isJSDocNode:()=>z8,isJSDocNonNullableType:()=>mY,isJSDocNullableType:()=>wB,isJSDocOptionalParameter:()=>oV,isJSDocOptionalType:()=>Fce,isJSDocOverloadTag:()=>NB,isJSDocOverrideTag:()=>gY,isJSDocParameterTag:()=>Eg,isJSDocPrivateTag:()=>Bce,isJSDocPropertyLikeTag:()=>WO,isJSDocPropertyTag:()=>vFe,isJSDocProtectedTag:()=>wce,isJSDocPublicTag:()=>Sce,isJSDocReadonlyTag:()=>Tce,isJSDocReturnTag:()=>EY,isJSDocSatisfiesExpression:()=>Ile,isJSDocSatisfiesTag:()=>_Y,isJSDocSeeTag:()=>uQe,isJSDocSignature:()=>Ov,isJSDocTag:()=>I8,isJSDocTemplateTag:()=>_g,isJSDocThisTag:()=>xFe,isJSDocThrowsTag:()=>aQe,isJSDocTypeAlias:()=>G4,isJSDocTypeAssertion:()=>tM,isJSDocTypeExpression:()=>kk,isJSDocTypeLiteral:()=>K7,isJSDocTypeTag:()=>XP,isJSDocTypedefTag:()=>PB,isJSDocUnknownTag:()=>rQe,isJSDocUnknownType:()=>_Fe,isJSDocVariadicType:()=>pY,isJSXTagName:()=>$8,isJsonEqual:()=>dZ,isJsonSourceFile:()=>W4,isJsxAttribute:()=>oE,isJsxAttributeLike:()=>KU,isJsxAttributeName:()=>yke,isJsxAttributes:()=>W2,isJsxChild:()=>ej,isJsxClosingElement:()=>H2,isJsxClosingFragment:()=>fFe,isJsxElement:()=>r3,isJsxExpression:()=>YP,isJsxFragment:()=>K2,isJsxNamespacedName:()=>gg,isJsxOpeningElement:()=>aE,isJsxOpeningFragment:()=>V7,isJsxOpeningLikeElement:()=>zh,isJsxOpeningLikeElementTagName:()=>G9e,isJsxSelfClosingElement:()=>bk,isJsxSpreadAttribute:()=>H7,isJsxTagNameExpression:()=>WN,isJsxText:()=>w7,isJumpStatementTarget:()=>PH,isKeyword:()=>uf,isKeywordOrPunctuation:()=>Sq,isKnownSymbol:()=>Ij,isLabelName:()=>Rhe,isLabelOfLabeledStatement:()=>Ihe,isLabeledStatement:()=>V2,isLateVisibilityPaintedStatement:()=>iq,isLeftHandSideExpression:()=>Df,isLeftHandSideOfAssignment:()=>tYe,isLet:()=>rq,isLineBreak:()=>Z1,isLiteralComputedPropertyDeclarationName:()=>Nj,isLiteralExpression:()=>E2,isLiteralExpressionOfObject:()=>$se,isLiteralImportTypeNode:()=>zx,isLiteralKind:()=>jN,isLiteralLikeAccess:()=>bq,isLiteralLikeElementAccess:()=>Cj,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>uX,isLiteralTypeLikeExpression:()=>hQe,isLiteralTypeLiteral:()=>lbe,isLiteralTypeNode:()=>Mv,isLocalName:()=>rD,isLogicalOperator:()=>Pye,isLogicalOrCoalescingAssignmentExpression:()=>ole,isLogicalOrCoalescingAssignmentOperator:()=>mP,isLogicalOrCoalescingBinaryExpression:()=>Gj,isLogicalOrCoalescingBinaryOperator:()=>Wj,isMappedTypeNode:()=>JP,isMemberName:()=>J_,isMetaProperty:()=>$P,isMethodDeclaration:()=>dc,isMethodOrAccessor:()=>N8,isMethodSignature:()=>n3,isMinusToken:()=>Ece,isMissingDeclaration:()=>eQe,isModifier:()=>Qo,isModifierKind:()=>XD,isModifierLike:()=>ol,isModuleAugmentationExternal:()=>p0e,isModuleBlock:()=>rE,isModuleBody:()=>hbe,isModuleDeclaration:()=>_c,isModuleExportsAccessExpression:()=>Y_,isModuleIdentifier:()=>P0e,isModuleName:()=>IFe,isModuleOrEnumDeclaration:()=>QO,isModuleReference:()=>Ebe,isModuleSpecifierLike:()=>vX,isModuleWithStringLiteralName:()=>tq,isNameOfFunctionDeclaration:()=>Hhe,isNameOfModuleDeclaration:()=>Vhe,isNamedClassElement:()=>nbe,isNamedDeclaration:()=>mh,isNamedEvaluation:()=>If,isNamedEvaluationSource:()=>J0e,isNamedExportBindings:()=>Wse,isNamedExports:()=>ep,isNamedImportBindings:()=>i0e,isNamedImports:()=>uD,isNamedImportsOrExports:()=>Uq,isNamedTupleMember:()=>GP,isNamespaceBody:()=>yZe,isNamespaceExport:()=>u_,isNamespaceExportDeclaration:()=>wV,isNamespaceImport:()=>Jx,isNamespaceReexportDeclaration:()=>iye,isNewExpression:()=>j2,isNewExpressionTarget:()=>wM,isNoSubstitutionTemplateLiteral:()=>T7,isNode:()=>DZe,isNodeArray:()=>g2,isNodeArrayMultiLine:()=>Kye,isNodeDescendantOf:()=>S2,isNodeKind:()=>GO,isNodeLikeSystem:()=>hoe,isNodeModulesDirectory:()=>bU,isNodeWithPossibleHoistedDeclaration:()=>lye,isNonContextualKeyword:()=>G0e,isNonExportDefaultModifier:()=>mQe,isNonGlobalAmbientModule:()=>m0e,isNonGlobalDeclaration:()=>zSe,isNonNullAccess:()=>bke,isNonNullChain:()=>zU,isNonNullExpression:()=>O7,isNonStaticMethodOrAccessorWithPrivateName:()=>JAe,isNotEmittedOrPartiallyEmittedNode:()=>bZe,isNotEmittedStatement:()=>yce,isNullishCoalesce:()=>Kse,isNumber:()=>UD,isNumericLiteral:()=>Of,isNumericLiteralName:()=>i3,isObjectBindingElementWithoutPropertyName:()=>GH,isObjectBindingOrAssignmentElement:()=>qO,isObjectBindingOrAssignmentPattern:()=>Yse,isObjectBindingPattern:()=>Rp,isObjectLiteralElement:()=>n0e,isObjectLiteralElementLike:()=>Z3,isObjectLiteralExpression:()=>ys,isObjectLiteralMethod:()=>zp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>lq,isObjectTypeDeclaration:()=>x7,isOctalDigit:()=>AU,isOmittedExpression:()=>Fd,isOptionalChain:()=>Y1,isOptionalChainRoot:()=>IN,isOptionalDeclaration:()=>PP,isOptionalJSDocPropertyLikeTag:()=>aV,isOptionalTypeNode:()=>Dce,isOuterExpression:()=>CY,isOutermostOptionalChain:()=>RN,isOverrideModifier:()=>iFe,isPackedArrayLiteral:()=>Ple,isParameter:()=>io,isParameterDeclaration:()=>w2,isParameterOrCatchClauseVariable:()=>Mle,isParameterPropertyDeclaration:()=>Mf,isParameterPropertyModifier:()=>VN,isParenthesizedExpression:()=>Cf,isParenthesizedTypeNode:()=>M7,isParseTreeNode:()=>zN,isPartOfTypeNode:()=>q_,isPartOfTypeQuery:()=>_q,isPartiallyEmittedExpression:()=>dY,isPatternMatch:()=>Y$,isPinnedComment:()=>XU,isPlainJsFile:()=>nj,isPlusToken:()=>gce,isPossiblyTypeArgumentPosition:()=>OH,isPostfixUnaryExpression:()=>vce,isPrefixUnaryExpression:()=>zv,isPrivateIdentifier:()=>Xr,isPrivateIdentifierClassElementDeclaration:()=>ph,isPrivateIdentifierPropertyAccessExpression:()=>T8,isPrivateIdentifierSymbol:()=>mye,isProgramBundleEmitBuildInfo:()=>U7e,isProgramUptoDate:()=>w1e,isPrologueDirective:()=>Mp,isPropertyAccessChain:()=>PU,isPropertyAccessEntityNameExpression:()=>$j,isPropertyAccessExpression:()=>Iu,isPropertyAccessOrQualifiedName:()=>obe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>abe,isPropertyAssignment:()=>Jc,isPropertyDeclaration:()=>ko,isPropertyName:()=>Sc,isPropertyNameLiteral:()=>Xg,isPropertySignature:()=>Mm,isProtoSetter:()=>pye,isPrototypeAccess:()=>Ox,isPrototypePropertyAssignment:()=>kj,isPunctuation:()=>W0e,isPushOrUnshiftIdentifier:()=>$0e,isQualifiedName:()=>vf,isQuestionDotToken:()=>uY,isQuestionOrExclamationToken:()=>NFe,isQuestionOrPlusOrMinusToken:()=>zFe,isQuestionToken:()=>Wx,isRawSourceMap:()=>HAe,isReadonlyKeyword:()=>eFe,isReadonlyKeywordOrPlusOrMinusToken:()=>MFe,isRecognizedTripleSlashComment:()=>c0e,isReferenceFileLocation:()=>ZB,isReferencedFile:()=>Jv,isRegularExpressionLiteral:()=>mce,isRequireCall:()=>xf,isRequireVariableStatement:()=>L0e,isRestParameter:()=>$_,isRestTypeNode:()=>xce,isReturnStatement:()=>Op,isReturnStatementWithFixablePromiseHandler:()=>UX,isRightSideOfAccessExpression:()=>cle,isRightSideOfInstanceofExpression:()=>zye,isRightSideOfPropertyAccess:()=>uw,isRightSideOfQualifiedName:()=>$9e,isRightSideOfQualifiedNameOrPropertyAccess:()=>gP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Mye,isRootedDiskPath:()=>Pf,isSameEntityName:()=>q8,isSatisfiesExpression:()=>sFe,isScopeMarker:()=>cbe,isSemicolonClassElement:()=>lFe,isSetAccessor:()=>e5,isSetAccessorDeclaration:()=>jf,isShebangTrivia:()=>Bse,isShiftOperatorOrHigher:()=>Kce,isShorthandAmbientModuleSymbol:()=>$N,isShorthandPropertyAssignment:()=>pm,isSignedNumericLiteral:()=>Tq,isSimpleCopiableExpression:()=>Y2,isSimpleInlineableExpression:()=>sE,isSingleOrDoubleQuote:()=>_j,isSourceFile:()=>la,isSourceFileFromLibrary:()=>KM,isSourceFileJS:()=>gh,isSourceFileNotJS:()=>PZe,isSourceFileNotJson:()=>T0e,isSourceMapping:()=>KAe,isSpecialPropertyDeclaration:()=>rye,isSpreadAssignment:()=>d5,isSpreadElement:()=>uE,isStatement:()=>ia,isStatementButNotDeclaration:()=>XO,isStatementOrBlock:()=>gbe,isStatementWithLocals:()=>Abe,isStatic:()=>No,isStaticModifier:()=>N7,isString:()=>Ja,isStringAKeyword:()=>WZe,isStringANonContextualKeyword:()=>m7,isStringAndEmptyAnonymousObjectIntersection:()=>aSe,isStringDoubleQuoted:()=>Cq,isStringLiteral:()=>us,isStringLiteralLike:()=>t0,isStringLiteralOrJsxExpression:()=>_be,isStringLiteralOrTemplate:()=>ASe,isStringOrNumericLiteralLike:()=>Pm,isStringOrRegularExpressionOrTemplateLiteral:()=>Zhe,isStringTextContainingNode:()=>Use,isSuperCall:()=>ik,isSuperKeyword:()=>HP,isSuperOrSuperProperty:()=>NZe,isSuperProperty:()=>nf,isSupportedSourceFileName:()=>hke,isSwitchStatement:()=>BV,isSyntaxList:()=>MB,isSyntheticExpression:()=>JYe,isSyntheticReference:()=>j7,isTagName:()=>Ohe,isTaggedTemplateExpression:()=>Dk,isTaggedTemplateTag:()=>K9e,isTemplateExpression:()=>lY,isTemplateHead:()=>vB,isTemplateLiteral:()=>P8,isTemplateLiteralKind:()=>Bx,isTemplateLiteralToken:()=>X2e,isTemplateLiteralTypeNode:()=>GYe,isTemplateLiteralTypeSpan:()=>rFe,isTemplateMiddle:()=>qke,isTemplateMiddleOrTemplateTail:()=>IU,isTemplateSpan:()=>qP,isTemplateTail:()=>pce,isTextWhiteSpaceLike:()=>hSe,isThis:()=>rw,isThisContainerOrFunctionBlock:()=>Xbe,isThisIdentifier:()=>N2,isThisInTypeQuery:()=>g7,isThisInitializedDeclaration:()=>mq,isThisInitializedObjectBindingExpression:()=>tye,isThisProperty:()=>mj,isThisTypeNode:()=>sY,isThisTypeParameter:()=>NP,isThisTypePredicate:()=>LZe,isThrowStatement:()=>bce,isToken:()=>u7,isTokenKind:()=>Jse,isTraceEnabled:()=>aD,isTransientSymbol:()=>qE,isTrivia:()=>nB,isTryStatement:()=>Ck,isTupleTypeNode:()=>yB,isTypeAlias:()=>Sj,isTypeAliasDeclaration:()=>jp,isTypeAssertionExpression:()=>aFe,isTypeDeclaration:()=>gB,isTypeElement:()=>Zy,isTypeKeyword:()=>PM,isTypeKeywordToken:()=>ife,isTypeKeywordTokenOrIdentifier:()=>EX,isTypeLiteralNode:()=>fm,isTypeNode:()=>Qr,isTypeNodeKind:()=>_le,isTypeOfExpression:()=>AB,isTypeOnlyExportDeclaration:()=>ebe,isTypeOnlyImportDeclaration:()=>RU,isTypeOnlyImportOrExportDeclaration:()=>_2,isTypeOperatorNode:()=>z7,isTypeParameterDeclaration:()=>Bl,isTypePredicateNode:()=>aY,isTypeQueryNode:()=>bB,isTypeReferenceNode:()=>X4,isTypeReferenceType:()=>$U,isTypeUsableAsPropertyName:()=>Y4,isUMDExportSymbol:()=>$q,isUnaryExpression:()=>e0e,isUnaryExpressionWithWrite:()=>sbe,isUnicodeIdentifierStart:()=>kU,isUnionTypeNode:()=>Pv,isUnparsedNode:()=>Gse,isUnparsedPrepend:()=>mFe,isUnparsedSource:()=>yk,isUnparsedTextLike:()=>Q2e,isUrl:()=>x2e,isValidBigIntString:()=>hZ,isValidESSymbolDeclaration:()=>$be,isValidTypeOnlyAliasUseSite:()=>Tv,isValueSignatureDeclaration:()=>cye,isVarAwaitUsing:()=>lj,isVarConst:()=>K8,isVarUsing:()=>cj,isVariableDeclaration:()=>na,isVariableDeclarationInVariableStatement:()=>qN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>F2,isVariableDeclarationInitializedToRequire:()=>vq,isVariableDeclarationList:()=>Ad,isVariableLike:()=>G8,isVariableLikeOrAccessor:()=>Gbe,isVariableStatement:()=>Jl,isVoidExpression:()=>R7,isWatchSet:()=>uYe,isWhileStatement:()=>UYe,isWhiteSpaceLike:()=>U3,isWhiteSpaceSingleLine:()=>qg,isWithStatement:()=>cFe,isWriteAccess:()=>D7,isWriteOnlyAccess:()=>Jq,isYieldExpression:()=>cY,jsxModeNeedsExplicitImport:()=>Sfe,keywordPart:()=>Hf,last:()=>Cr,lastOrUndefined:()=>qu,length:()=>S,libMap:()=>LY,libs:()=>YV,lineBreakPart:()=>lw,linkNamePart:()=>_Se,linkPart:()=>ffe,linkTextPart:()=>kX,listFiles:()=>q1e,loadModuleFromGlobalCache:()=>kAe,loadWithModeAwareCache:()=>CH,makeIdentifierFromModuleName:()=>Lbe,makeImport:()=>g5,makeImportIfNecessary:()=>dSe,makeStringLiteral:()=>n9,mangleScopedPackageName:()=>JB,map:()=>Vt,mapAllOrFail:()=>ra,mapDefined:()=>qi,mapDefinedEntries:()=>Fa,mapDefinedIterator:()=>eo,mapEntries:()=>ci,mapIterator:()=>zr,mapOneOrMany:()=>kfe,mapToDisplayParts:()=>Zx,matchFiles:()=>Ale,matchPatternOrExact:()=>Ble,matchedText:()=>t2e,matchesExclude:()=>TY,maybeBind:()=>Lo,maybeSetLocalizedDiagnosticMessages:()=>tke,memoize:()=>Mh,memoizeCached:()=>UCe,memoizeOne:()=>HE,memoizeWeak:()=>fqe,metadataHelper:()=>wZ,min:()=>ooe,minAndMax:()=>mke,missingFileModifiedTime:()=>K_,modifierToFlag:()=>_7,modifiersToFlags:()=>tE,moduleOptionDeclaration:()=>cde,moduleResolutionIsEqualTo:()=>kbe,moduleResolutionNameAndModeGetter:()=>yH,moduleResolutionOptionDeclarations:()=>NY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>b7,moduleResolutionUsesNodeModules:()=>_X,moduleSpecifiers:()=>Z2,moveEmitHelpers:()=>Hke,moveRangeEnd:()=>Wq,moveRangePastDecorators:()=>o5,moveRangePastModifiers:()=>iE,moveRangePos:()=>Sv,moveSyntheticComments:()=>Oke,mutateMap:()=>cB,mutateMapSkippingNewValues:()=>eD,needsParentheses:()=>AX,needsScopeMarker:()=>VU,newCaseClauseTracker:()=>VX,newPrivateEnvironment:()=>qAe,noEmitNotification:()=>mH,noEmitSubstitution:()=>xM,noTransformers:()=>c1e,noTruncationMaximumTruncationLength:()=>DZ,nodeCanBeDecorated:()=>gq,nodeHasName:()=>jO,nodeIsDecorated:()=>YN,nodeIsMissing:()=>Ql,nodeIsPresent:()=>H4,nodeIsSynthesized:()=>sl,nodeModuleNameResolver:()=>EAe,nodeModulesPathPart:()=>o_,nodeNextJsonConfigResolver:()=>_Ae,nodeOrChildIsDecorated:()=>gj,nodeOverlapsWithStartEnd:()=>rX,nodePosToString:()=>FZe,nodeSeenTracker:()=>i9,nodeStartsNewLexicalEnvironment:()=>U0e,nodeToDisplayParts:()=>Tit,noop:()=>Is,noopFileWatcher:()=>tw,normalizePath:()=>$o,normalizeSlashes:()=>q1,not:()=>X$,notImplemented:()=>ho,notImplementedResolver:()=>DQ,nullNodeConverters:()=>tce,nullParenthesizerRules:()=>ece,nullTransformationContext:()=>Dg,objectAllocator:()=>Qd,operatorPart:()=>IM,optionDeclarations:()=>a3,optionMapToObject:()=>ude,optionsAffectingProgramStructure:()=>pde,optionsForBuild:()=>Ede,optionsForWatch:()=>VB,optionsHaveChanges:()=>R8,optionsHaveModuleResolutionChanges:()=>Cbe,or:()=>dg,orderedRemoveItem:()=>gO,orderedRemoveItemAt:()=>fv,outFile:()=>y0,packageIdToPackageName:()=>ZU,packageIdToString:()=>Px,paramHelper:()=>TZ,parameterIsThisKeyword:()=>L2,parameterNamePart:()=>mSe,parseBaseNodeFactory:()=>Zce,parseBigInt:()=>pke,parseBuildCommand:()=>JQe,parseCommandLine:()=>WQe,parseCommandLineWorker:()=>Xce,parseConfigFileTextToJson:()=>tde,parseConfigFileWithSystem:()=>Ttt,parseConfigHostFromCompilerHostLike:()=>wQ,parseCustomTypeOption:()=>BY,parseIsolatedEntityName:()=>G7,parseIsolatedJSDocComment:()=>WFe,parseJSDocTypeExpressionForTests:()=>TQe,parseJsonConfigFileContent:()=>aXe,parseJsonSourceFileConfigFileContent:()=>UV,parseJsonText:()=>WV,parseListTypeOption:()=>JFe,parseNodeFactory:()=>a_,parseNodeModuleFromPath:()=>uH,parsePackageName:()=>oH,parsePseudoBigInt:()=>SP,parseValidBigInt:()=>Nle,patchWriteFileEnsuringDirectory:()=>_2e,pathContainsNodeModules:()=>q7,pathIsAbsolute:()=>SN,pathIsBareSpecifier:()=>kse,pathIsRelative:()=>om,patternText:()=>e2e,perfLogger:()=>hh,performIncrementalCompilation:()=>Mtt,performance:()=>h2e,plainJSErrors:()=>NQ,positionBelongsToNode:()=>Whe,positionIsASICandidate:()=>TX,positionIsSynthesized:()=>pg,positionsAreOnSameLine:()=>q4,preProcessFile:()=>unt,probablyUsesSemicolons:()=>YH,processCommentPragmas:()=>Uce,processPragmasIntoFields:()=>qce,processTaggedTemplateExpression:()=>i1e,programContainsEsModules:()=>cSe,programContainsModules:()=>lSe,projectReferenceIsEqualTo:()=>a0e,propKeyHelper:()=>WZ,propertyNamePart:()=>pSe,pseudoBigIntToString:()=>I2,punctuationPart:()=>ih,pushIfUnique:()=>xa,quote:()=>jM,quotePreferenceFromString:()=>afe,rangeContainsPosition:()=>MH,rangeContainsPositionExclusive:()=>zH,rangeContainsRange:()=>Vm,rangeContainsRangeExclusive:()=>q9e,rangeContainsStartEnd:()=>IH,rangeEndIsOnSameLineAsRangeStart:()=>qj,rangeEndPositionsAreOnSameLine:()=>Vye,rangeEquals:()=>zi,rangeIsOnSingleLine:()=>hk,rangeOfNode:()=>Tle,rangeOfTypeParameters:()=>Lle,rangeOverlapsWithStartEnd:()=>TM,rangeStartIsOnSameLineAsRangeEnd:()=>Hye,rangeStartPositionsAreOnSameLine:()=>Gq,readBuilderProgram:()=>GQ,readConfigFile:()=>JV,readHelper:()=>HZ,readJson:()=>EP,readJsonConfigFile:()=>qFe,readJsonOrUndefined:()=>hle,reduceEachLeadingCommentRange:()=>k2e,reduceEachTrailingCommentRange:()=>F2e,reduceLeft:()=>nn,reduceLeftIterator:()=>ue,reducePathComponents:()=>Jy,refactor:()=>a9,regExpEscape:()=>hYe,relativeComplement:()=>Wr,removeAllComments:()=>EV,removeEmitHelper:()=>HYe,removeExtension:()=>nV,removeFileExtension:()=>_h,removeIgnoredPath:()=>zQ,removeMinAndVersionNumbers:()=>soe,removeOptionality:()=>iSe,removePrefix:()=>yN,removeSuffix:()=>D8,removeTrailingDirectorySeparator:()=>mv,repeatString:()=>KH,replaceElement:()=>qd,resolutionExtensionIsTSOrJson:()=>FP,resolveConfigFileProjectName:()=>ahe,resolveJSModule:()=>pAe,resolveLibrary:()=>KY,resolveModuleName:()=>WB,resolveModuleNameFromCache:()=>KXe,resolvePackageNameToPackageJson:()=>xde,resolvePath:()=>kx,resolveProjectReferencePath:()=>YB,resolveTripleslashReference:()=>bQ,resolveTypeReferenceDirective:()=>hAe,resolvingEmptyArray:()=>_Z,restHelper:()=>RZ,returnFalse:()=>cg,returnNoopFileWatcher:()=>iw,returnTrue:()=>J3,returnUndefined:()=>hv,returnsPromise:()=>$fe,runInitializersHelper:()=>NZ,sameFlatMap:()=>z0,sameMap:()=>Lu,sameMapping:()=>Net,scanShebangTrivia:()=>wse,scanTokenAtPosition:()=>Hbe,scanner:()=>nh,screenStartingMessageCodes:()=>WQ,semanticDiagnosticsOptionDeclarations:()=>hde,serializeCompilerOptions:()=>ade,server:()=>Zct,servicesVersion:()=>iBe,setCommentRange:()=>Bc,setConfigFileInOptions:()=>sde,setConstantValue:()=>Vke,setEachParent:()=>pB,setEmitFlags:()=>Zn,setFunctionNameHelper:()=>GZ,setGetSourceFileAsHashVersioned:()=>KQ,setIdentifierAutoGenerate:()=>xV,setIdentifierGeneratedImportReference:()=>Gke,setIdentifierTypeArguments:()=>l5,setInternalEmitFlags:()=>_V,setLocalizedDiagnosticMessages:()=>eke,setModuleDefaultHelper:()=>UZ,setNodeFlags:()=>_ke,setObjectAllocator:()=>Xye,setOriginalNode:()=>su,setParent:()=>ks,setParentRecursive:()=>Vx,setPrivateIdentifier:()=>Bk,setSnippetElement:()=>lce,setSourceMapRange:()=>As,setStackTraceLimit:()=>Pqe,setStartsOnNewLine:()=>FZ,setSyntheticLeadingComments:()=>Nv,setSyntheticTrailingComments:()=>A7,setSys:()=>Oqe,setSysLog:()=>g2e,setTextRange:()=>Pt,setTextRangeEnd:()=>mB,setTextRangePos:()=>BP,setTextRangePosEnd:()=>t_,setTextRangePosWidth:()=>wP,setTokenSourceMapRange:()=>Rke,setTypeNode:()=>Kke,setUILocale:()=>YCe,setValueDeclaration:()=>Fj,shouldAllowImportingTsExtension:()=>$B,shouldPreserveConstEnums:()=>fk,shouldResolveJsRequire:()=>eZ,shouldUseUriStyleNodeCoreModules:()=>OX,showModuleSpecifier:()=>$ye,signatureHasLiteralTypes:()=>Ode,signatureHasRestParameter:()=>th,signatureToDisplayParts:()=>mfe,single:()=>bd,singleElementArray:()=>Hy,singleIterator:()=>qa,singleOrMany:()=>F0,singleOrUndefined:()=>Aa,skipAlias:()=>X1,skipAssertions:()=>lQe,skipConstraint:()=>nfe,skipOuterExpressions:()=>Dc,skipParentheses:()=>l0,skipPartiallyEmittedExpressions:()=>Np,skipTrivia:()=>gs,skipTypeChecking:()=>AP,skipTypeParentheses:()=>j0e,skipWhile:()=>n2e,sliceAfter:()=>wle,some:()=>Oe,sort:()=>Ph,sortAndDeduplicate:()=>pi,sortAndDeduplicateDiagnostics:()=>A8,sourceFileAffectingCompilerOptions:()=>PY,sourceFileMayBeEmitted:()=>p7,sourceMapCommentRegExp:()=>nQ,sourceMapCommentRegExpDontCareLineStart:()=>Jde,spacePart:()=>$l,spanMap:()=>Hl,spreadArrayHelper:()=>KZ,stableSort:()=>oc,startEndContainsRange:()=>Khe,startEndOverlapsWithStartEnd:()=>aX,startOnNewLine:()=>vh,startTracing:()=>f2e,startsWith:()=>Pa,startsWithDirectory:()=>Ase,startsWithUnderscore:()=>Afe,startsWithUseStrict:()=>AFe,stringContainsAt:()=>MSe,stringToToken:()=>f2,stripQuotes:()=>$4,supportedDeclarationExtensions:()=>dV,supportedJSExtensions:()=>Yle,supportedJSExtensionsFlat:()=>_B,supportedLocaleDirectories:()=>r0e,supportedTSExtensions:()=>EB,supportedTSExtensionsFlat:()=>Zle,supportedTSImplementationExtensions:()=>hV,suppressLeadingAndTrailingTrivia:()=>Kf,suppressLeadingTrivia:()=>Efe,suppressTrailingTrivia:()=>ySe,symbolEscapedNameNoDefault:()=>xX,symbolName:()=>lc,symbolNameNoDefault:()=>DX,symbolPart:()=>fSe,symbolToDisplayParts:()=>RM,syntaxMayBeASICandidate:()=>Nfe,syntaxRequiresTrailingSemicolonOrASI:()=>wX,sys:()=>c1,sysLog:()=>bO,tagNamesAreEquivalent:()=>Vv,takeWhile:()=>tU,targetOptionDeclaration:()=>XV,templateObjectHelper:()=>VZ,testFormatSettings:()=>H9e,textChangeRangeIsUnchanged:()=>N2e,textChangeRangeNewSpan:()=>MN,textChanges:()=>iu,textOrKeywordPart:()=>hfe,textPart:()=>Km,textRangeContainsPositionInclusive:()=>IO,textSpanContainsPosition:()=>Nse,textSpanContainsTextSpan:()=>B2e,textSpanEnd:()=>Ec,textSpanIntersection:()=>L2e,textSpanIntersectsWith:()=>wU,textSpanIntersectsWithPosition:()=>T2e,textSpanIntersectsWithTextSpan:()=>aZe,textSpanIsEmpty:()=>S2e,textSpanOverlap:()=>w2e,textSpanOverlapsWith:()=>rZe,textSpansEqual:()=>sw,textToKeywordObj:()=>MO,timestamp:()=>G0,toArray:()=>YA,toBuilderFileEmit:()=>Q7e,toBuilderStateFileInfoForMultiEmit:()=>Y7e,toEditorSettings:()=>gK,toFileNameLowerCase:()=>$g,toLowerCase:()=>$Ce,toPath:()=>J0,toProgramEmitPending:()=>X7e,tokenIsIdentifierOrKeyword:()=>fh,tokenIsIdentifierOrKeywordOrGreaterThan:()=>b2e,tokenToString:()=>Uo,trace:()=>Sa,tracing:()=>Gn,tracingEnabled:()=>DO,transform:()=>nrt,transformClassFields:()=>r7e,transformDeclarations:()=>s1e,transformECMAScriptModule:()=>a1e,transformES2015:()=>x7e,transformES2016:()=>D7e,transformES2017:()=>l7e,transformES2018:()=>c7e,transformES2019:()=>d7e,transformES2020:()=>h7e,transformES2021:()=>f7e,transformES5:()=>v7e,transformESDecorators:()=>s7e,transformESNext:()=>m7e,transformGenerators:()=>C7e,transformJsx:()=>_7e,transformLegacyDecorators:()=>o7e,transformModule:()=>r1e,transformNamedEvaluation:()=>Vf,transformNodeModule:()=>y7e,transformNodes:()=>pH,transformSystemModule:()=>b7e,transformTypeScript:()=>u7e,transpile:()=>hnt,transpileModule:()=>e8e,transpileOptionValueCompilerOptions:()=>gde,tryAddToSet:()=>r0,tryAndIgnoreErrors:()=>PX,tryCast:()=>ur,tryDirectoryExists:()=>NX,tryExtractTSExtension:()=>Kq,tryFileExists:()=>QH,tryGetClassExtendingExpressionWithTypeArguments:()=>sle,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>lle,tryGetDirectories:()=>LX,tryGetExtensionFromPath:()=>t3,tryGetImportFromModuleSpecifier:()=>Aj,tryGetJSDocSatisfiesTypeNode:()=>gZ,tryGetModuleNameFromFile:()=>IV,tryGetModuleSpecifierFromDeclaration:()=>Z8,tryGetNativePerformanceHooks:()=>l2e,tryGetPropertyAccessOrIdentifierToString:()=>Uj,tryGetPropertyNameOfBindingOrAssignmentElement:()=>yY,tryGetSourceMappingURL:()=>VAe,tryGetTextOfPropertyName:()=>UN,tryIOAndConsumeErrors:()=>MX,tryParsePattern:()=>fB,tryParsePatterns:()=>lZ,tryParseRawSourceMap:()=>Wde,tryReadDirectory:()=>xfe,tryReadFile:()=>rM,tryRemoveDirectoryPrefix:()=>yle,tryRemoveExtension:()=>fke,tryRemovePrefix:()=>doe,tryRemoveSuffix:()=>XCe,typeAcquisitionDeclarations:()=>eH,typeAliasNamePart:()=>gSe,typeDirectiveIsEqualTo:()=>Fbe,typeKeywords:()=>HX,typeParameterNamePart:()=>ESe,typeReferenceResolutionNameAndModeGetter:()=>LQ,typeToDisplayParts:()=>$H,unchangedPollThresholds:()=>yO,unchangedTextChangeRange:()=>tj,unescapeLeadingUnderscores:()=>Yr,unmangleScopedPackageName:()=>lH,unorderedRemoveItem:()=>Vy,unorderedRemoveItemAt:()=>loe,unreachableCodeIsError:()=>uke,unusedLabelIsError:()=>rke,unwrapInnermostStatementOfLabel:()=>A0e,updateErrorForNoInputFiles:()=>wY,updateLanguageServiceSourceFile:()=>wme,updateMissingFilePathsWatch:()=>g1e,updatePackageJsonWatch:()=>utt,updateResolutionField:()=>HB,updateSharedExtendedConfigFileWatcher:()=>vQ,updateSourceFile:()=>$ce,updateWatchingWildcardDirectories:()=>_H,usesExtensionsOnImports:()=>dke,usingSingleLineStringWriter:()=>GN,utf16EncodeAsString:()=>F8,validateLocaleAndSetLanguage:()=>sZe,valuesHelper:()=>JZ,version:()=>_,versionMajorMinor:()=>g,visitArray:()=>dH,visitCommaListElements:()=>hH,visitEachChild:()=>rn,visitFunctionBody:()=>Om,visitIterationBody:()=>Ih,visitLexicalEnvironment:()=>iQ,visitNode:()=>yt,visitNodes:()=>kn,visitParameterList:()=>xc,walkUpBindingElementsAndPatterns:()=>S8,walkUpLexicalEnvironments:()=>UAe,walkUpOuterExpressions:()=>SFe,walkUpParenthesizedExpressions:()=>i5,walkUpParenthesizedTypes:()=>Lj,walkUpParenthesizedTypesAndGetParentAndChild:()=>dye,whitespaceOrMapCommentRegExp:()=>uQ,writeCommentRange:()=>sB,writeFile:()=>cP,writeFileEnsuringDirectories:()=>nle,zipWith:()=>re});var Xv=o({"src/server/_namespaces/ts.ts"(){Bo(),BH(),rr(),Jpe(),_9()}}),Qct={};h(Qct,{ActionInvalidate:()=>YQ,ActionPackageInstalled:()=>T9e,ActionSet:()=>ZQ,ActionWatchTypingLocations:()=>SH,Arguments:()=>mhe,AutoImportProviderProject:()=>age,AuxiliaryProject:()=>uge,CharRangeSection:()=>_ge,CloseFileWatcherEvent:()=>lte,CommandNames:()=>kNe,ConfigFileDiagEvent:()=>ute,ConfiguredProject:()=>oge,CreateDirectoryWatcherEvent:()=>ste,CreateFileWatcherEvent:()=>ote,Errors:()=>v5,EventBeginInstallTypes:()=>hhe,EventEndInstallTypes:()=>fhe,EventInitializationFailed:()=>N9e,EventTypesRegistry:()=>L9e,ExternalProject:()=>Zee,GcTimer:()=>Ype,InferredProject:()=>nge,LargeFileReferencedEvent:()=>nte,LineIndex:()=>rz,LineLeaf:()=>qK,LineNode:()=>E9,LogLevel:()=>$pe,Msg:()=>Upe,OpenFileInfoTelemetryEvent:()=>cge,Project:()=>Wk,ProjectInfoTelemetryEvent:()=>ate,ProjectKind:()=>nz,ProjectLanguageServiceStateEvent:()=>rte,ProjectLoadingFinishEvent:()=>ite,ProjectLoadingStartEvent:()=>tte,ProjectReferenceProjectLoadKind:()=>fge,ProjectService:()=>mge,ProjectsUpdatedInBackgroundEvent:()=>JK,ScriptInfo:()=>ege,ScriptVersionCache:()=>fte,Session:()=>ANe,TextStorage:()=>Xpe,ThrottledOperations:()=>Zpe,TypingsCache:()=>tge,allFilesAreJsOrDts:()=>nNe,allRootFilesAreJsOrDts:()=>iNe,asNormalizedPath:()=>Fct,convertCompilerOptions:()=>Yee,convertFormatOptions:()=>Sw,convertScriptKindName:()=>lge,convertTypeAcquisition:()=>aNe,convertUserPreferences:()=>oNe,convertWatchOptions:()=>GK,countEachFileTypes:()=>KK,createInstallTypingsRequest:()=>kct,createModuleSpecifierCache:()=>ENe,createNormalizedPathMap:()=>Act,createPackageJsonCache:()=>_Ne,createSortedArray:()=>jLe,emptyArray:()=>$c,findArgument:()=>_it,forEachResolvedProjectReferenceProject:()=>Bw,formatDiagnosticToProtocol:()=>UK,formatMessage:()=>DNe,getBaseConfigFileName:()=>qpe,getLocationInNewDocument:()=>bNe,hasArgument:()=>Eit,hasNoTypeScriptSource:()=>uNe,indent:()=>BM,isBackgroundProject:()=>WK,isConfigFile:()=>fNe,isConfiguredProject:()=>Qv,isDynamicFileName:()=>HK,isExternalProject:()=>ige,isInferredProject:()=>Aw,isInferredProjectName:()=>zLe,makeAutoImportProviderProjectName:()=>RLe,makeAuxiliaryProjectName:()=>OLe,makeInferredProjectName:()=>ILe,maxFileSize:()=>ete,maxProgramSizeForNonTsFiles:()=>Xee,normalizedPathToPath:()=>VK,nowString:()=>Dit,nullCancellationToken:()=>yNe,nullTypingsInstaller:()=>qee,projectContainsInfoDirectly:()=>p9,protocol:()=>tNe,removeSorted:()=>Sct,stringifyIndented:()=>nw,toEvent:()=>xNe,toNormalizedPath:()=>Dl,tryConvertScriptKindName:()=>sge,typingsInstaller:()=>PLe,updateProjectIfDirty:()=>Gm});var lXt=o({"src/typescript/_namespaces/ts.server.ts"(){QQ(),_9()}}),Xct={};h(Xct,{ANONYMOUS:()=>KX,AccessFlags:()=>Koe,AssertionLevel:()=>moe,AssignmentDeclarationKind:()=>Qoe,AssignmentKind:()=>Kle,Associativity:()=>Gle,BreakpointResolver:()=>Ime,BuilderFileEmit:()=>K1e,BuilderProgramKind:()=>W1e,BuilderState:()=>Wp,BundleFileSectionKind:()=>gse,CallHierarchy:()=>o9,CharacterCodes:()=>lse,CheckFlags:()=>Roe,CheckMode:()=>XY,ClassificationType:()=>Nhe,ClassificationTypeNames:()=>Lhe,CommentDirectiveType:()=>boe,Comparison:()=>x,CompletionInfoFlags:()=>khe,CompletionTriggerKind:()=>xhe,Completions:()=>h9,ContainerFlags:()=>Pde,ContextFlags:()=>Boe,Debug:()=>H,DiagnosticCategory:()=>vO,Diagnostics:()=>F,DocumentHighlights:()=>JX,ElementFlags:()=>Hoe,EmitFlags:()=>_U,EmitHint:()=>fse,EmitOnly:()=>koe,EndOfLineState:()=>She,EnumKind:()=>Ioe,ExitStatus:()=>Foe,ExportKind:()=>Rfe,Extension:()=>cse,ExternalEmitHelpers:()=>hse,FileIncludeKind:()=>lU,FilePreprocessingDiagnosticsKind:()=>yoe,FileSystemEntryKind:()=>Cse,FileWatcherEventKind:()=>vse,FindAllReferences:()=>Z0,FlattenLevel:()=>Xde,FlowFlags:()=>xO,ForegroundColorEscapeSequences:()=>M1e,FunctionFlags:()=>Wle,GeneratedIdentifierFlags:()=>sU,GetLiteralTextFlags:()=>jle,GoToDefinition:()=>Cw,HighlightSpanKind:()=>Che,IdentifierNameMap:()=>Y7,IdentifierNameMultiMap:()=>Qde,ImportKind:()=>Ife,ImportsNotUsedAsValues:()=>use,IndentStyle:()=>bhe,IndexFlags:()=>Woe,IndexKind:()=>$oe,InferenceFlags:()=>Zoe,InferencePriority:()=>qoe,InlayHintKind:()=>vhe,InlayHints:()=>Spe,InternalEmitFlags:()=>dse,InternalSymbolName:()=>Ooe,InvalidatedProjectKind:()=>dhe,JSDocParsingMode:()=>Dse,JsDoc:()=>Yv,JsTyping:()=>o3,JsxEmit:()=>nse,JsxFlags:()=>voe,JsxReferenceKind:()=>Goe,LanguageServiceMode:()=>Ehe,LanguageVariant:()=>ose,LexicalEnvironmentFlags:()=>pse,ListFormat:()=>Ese,LogLevel:()=>goe,MemberOverrideStatus:()=>Aoe,ModifierFlags:()=>aU,ModuleDetectionKind:()=>Xoe,ModuleInstanceState:()=>Nde,ModuleKind:()=>FN,ModuleResolutionKind:()=>y8,ModuleSpecifierEnding:()=>Qle,NavigateTo:()=>n8e,NavigationBar:()=>f8e,NewLineKind:()=>rse,NodeBuilderFlags:()=>woe,NodeCheckFlags:()=>joe,NodeFactoryFlags:()=>ace,NodeFlags:()=>rU,NodeResolutionFeatures:()=>wde,ObjectFlags:()=>fU,OperationCanceledException:()=>b8,OperatorPrecedence:()=>Jle,OrganizeImports:()=>Gp,OrganizeImportsMode:()=>Dhe,OuterExpressionKinds:()=>mse,OutliningElementsCollector:()=>Lpe,OutliningSpanKind:()=>Fhe,OutputFileType:()=>Ahe,PackageJsonAutoImportPreference:()=>ghe,PackageJsonDependencyGroup:()=>phe,PatternMatchKind:()=>$X,PollingInterval:()=>DU,PollingWatchKind:()=>ise,PragmaKindFlags:()=>_se,PrivateIdentifierKind:()=>fce,ProcessLevel:()=>n1e,ProgramUpdateLevel:()=>_1e,QuotePreference:()=>Tfe,RelationComparisonResult:()=>oU,Rename:()=>Hee,ScriptElementKind:()=>whe,ScriptElementKindModifier:()=>The,ScriptKind:()=>pU,ScriptSnapshot:()=>eX,ScriptTarget:()=>ase,SemanticClassificationFormat:()=>_he,SemanticMeaning:()=>wfe,SemicolonPreference:()=>yhe,SignatureCheckMode:()=>eQ,SignatureFlags:()=>mU,SignatureHelp:()=>NK,SignatureKind:()=>Joe,SmartSelectionRange:()=>Mpe,SnippetKind:()=>EU,SortKind:()=>foe,StructureIsReused:()=>cU,SymbolAccessibility:()=>Noe,SymbolDisplay:()=>x5,SymbolDisplayPartKind:()=>wH,SymbolFlags:()=>dU,SymbolFormatFlags:()=>Loe,SyntaxKind:()=>uU,SyntheticSymbolKind:()=>Poe,Ternary:()=>Yoe,ThrottledCancellationToken:()=>zme,TokenClass:()=>Bhe,TokenFlags:()=>Coe,TransformFlags:()=>gU,TypeFacts:()=>QY,TypeFlags:()=>hU,TypeFormatFlags:()=>Toe,TypeMapKind:()=>Uoe,TypePredicateKind:()=>Moe,TypeReferenceSerializationKind:()=>zoe,UnionReduction:()=>Soe,UpToDateStatusType:()=>ohe,VarianceFlags:()=>Voe,Version:()=>Lp,VersionRange:()=>EO,WatchDirectoryFlags:()=>sse,WatchDirectoryKind:()=>tse,WatchFileKind:()=>ese,WatchLogLevel:()=>D1e,WatchType:()=>cd,accessPrivateIdentifier:()=>ZAe,addDisposableResourceHelper:()=>eY,addEmitFlags:()=>i_,addEmitHelper:()=>S7,addEmitHelpers:()=>iD,addInternalEmitFlags:()=>F7,addNodeFactoryPatcher:()=>MYe,addObjectAllocatorPatcher:()=>Qye,addRange:()=>yn,addRelatedInfo:()=>Es,addSyntheticLeadingComment:()=>OP,addSyntheticTrailingComment:()=>AZ,addToSeen:()=>Ip,advancedAsyncSuperHelper:()=>bV,affectsDeclarationPathOptionDeclarations:()=>mde,affectsEmitOptionDeclarations:()=>fde,allKeysStartWithDot:()=>JY,altDirectorySeparator:()=>BO,and:()=>Q$,append:()=>xi,appendIfUnique:()=>e0,arrayFrom:()=>ga,arrayIsEqualTo:()=>On,arrayIsHomogeneous:()=>Eke,arrayIsSorted:()=>hi,arrayOf:()=>am,arrayReverseIterator:()=>Cd,arrayToMap:()=>lg,arrayToMultiMap:()=>mO,arrayToNumericMap:()=>noe,arraysEqual:()=>Zt,assertType:()=>gqe,assign:()=>VE,assignHelper:()=>PZ,asyncDelegator:()=>zZ,asyncGeneratorHelper:()=>MZ,asyncSuperHelper:()=>CV,asyncValues:()=>IZ,attachFileToDiagnostics:()=>v7,awaitHelper:()=>B7,awaiterHelper:()=>OZ,base64decode:()=>jye,base64encode:()=>Oye,binarySearch:()=>Kl,binarySearchKey:()=>va,bindSourceFile:()=>SAe,breakIntoCharacterSpans:()=>ZSe,breakIntoWordSpans:()=>YSe,buildLinkParts:()=>DSe,buildOpts:()=>MY,buildOverload:()=>Dct,bundlerModuleNameResolver:()=>gAe,canBeConvertedToAsync:()=>qfe,canHaveDecorators:()=>Ak,canHaveExportModifier:()=>rV,canHaveFlowNode:()=>Bj,canHaveIllegalDecorators:()=>Hce,canHaveIllegalModifiers:()=>LFe,canHaveIllegalType:()=>dQe,canHaveIllegalTypeParameters:()=>TFe,canHaveJSDoc:()=>wj,canHaveLocals:()=>UE,canHaveModifiers:()=>Hp,canHaveSymbol:()=>Zg,canJsonReportNoInputFiles:()=>aM,canProduceDiagnostics:()=>mQ,canUsePropertyAccess:()=>zle,canWatchAffectingLocation:()=>n9e,canWatchAtTypes:()=>i9e,canWatchDirectoryOrFile:()=>IQ,cartesianProduct:()=>i2e,cast:()=>Po,chainBundle:()=>Kp,chainDiagnosticMessages:()=>ro,changeAnyExtension:()=>AO,changeCompilerHostLikeToUseCache:()=>vH,changeExtension:()=>wv,changesAffectModuleResolution:()=>UU,changesAffectingProgramStructure:()=>bbe,childIsDecorated:()=>QN,classElementOrClassElementParameterIsDecorated:()=>S0e,classHasClassThisAssignment:()=>e1e,classHasDeclaredOrExplicitlyAssignedName:()=>t1e,classHasExplicitlyAssignedName:()=>dQ,classOrConstructorParameterIsDecorated:()=>t5,classPrivateFieldGetHelper:()=>YZ,classPrivateFieldInHelper:()=>XZ,classPrivateFieldSetHelper:()=>QZ,classicNameResolver:()=>yAe,classifier:()=>aBe,cleanExtendedConfigCache:()=>CQ,clear:()=>pu,clearMap:()=>rf,clearSharedExtendedConfigFileWatcher:()=>p1e,climbPastPropertyAccess:()=>iX,climbPastPropertyOrElementAccess:()=>J9e,clone:()=>uoe,cloneCompilerOptions:()=>Qhe,closeFileWatcher:()=>fg,closeFileWatcherOf:()=>jm,codefix:()=>z1,collapseTextChangeRangesAcrossMultipleVersions:()=>P2e,collectExternalModuleInfo:()=>Ude,combine:()=>vo,combinePaths:()=>cr,commentPragmas:()=>CO,commonOptionsWithBuild:()=>QV,commonPackageFolders:()=>Ule,compact:()=>Dr,compareBooleans:()=>d2,compareDataObjects:()=>gle,compareDiagnostics:()=>bP,compareDiagnosticsSkipRelatedInformation:()=>Zq,compareEmitHelpers:()=>Uke,compareNumberOfDirectorySeparators:()=>iV,comparePaths:()=>pv,comparePathsCaseInsensitive:()=>Kqe,comparePathsCaseSensitive:()=>Hqe,comparePatternKeys:()=>Sde,compareProperties:()=>QCe,compareStringsCaseInsensitive:()=>Z$,compareStringsCaseInsensitiveEslintCompatible:()=>qCe,compareStringsCaseSensitive:()=>dh,compareStringsCaseSensitiveUI:()=>pO,compareTextSpans:()=>q$,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>ZV,compilerOptionsAffectDeclarationPath:()=>lke,compilerOptionsAffectEmit:()=>ske,compilerOptionsAffectSemanticDiagnostics:()=>oke,compilerOptionsDidYouMeanDiagnostics:()=>tH,compilerOptionsIndicateEsModules:()=>ufe,compose:()=>mqe,computeCommonSourceDirectoryOfFilenames:()=>P7e,computeLineAndCharacterOfPosition:()=>k8,computeLineOfPosition:()=>TN,computeLineStarts:()=>n7,computePositionOfLineAndCharacter:()=>FU,computeSignature:()=>Nk,computeSignatureWithDiagnostics:()=>O1e,computeSuggestionDiagnostics:()=>Jfe,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>ike,consumesNodeCoreModules:()=>zX,contains:()=>kt,containsIgnoredPath:()=>TP,containsObjectRestOrSpread:()=>VV,containsParseError:()=>O8,containsPath:()=>GE,convertCompilerOptionsForTelemetry:()=>eAe,convertCompilerOptionsFromJson:()=>mXe,convertJsonOption:()=>Sk,convertToBase64:()=>Rye,convertToJson:()=>$V,convertToObject:()=>ZFe,convertToOptionsWithAbsolutePaths:()=>ode,convertToRelativePath:()=>wN,convertToTSConfig:()=>eXe,convertTypeAcquisitionFromJson:()=>pXe,copyComments:()=>Rk,copyEntries:()=>qU,copyLeadingComments:()=>cw,copyProperties:()=>roe,copyTrailingAsLeadingComments:()=>ZH,copyTrailingComments:()=>OM,couldStartTrivia:()=>y2e,countWhere:()=>ui,createAbstractBuilder:()=>ktt,createAccessorPropertyBackingField:()=>Wce,createAccessorPropertyGetRedirector:()=>jFe,createAccessorPropertySetRedirector:()=>VFe,createBaseNodeFactory:()=>Lke,createBinaryExpressionTrampoline:()=>kY,createBindingHelper:()=>xB,createBuildInfo:()=>gH,createBuilderProgram:()=>j1e,createBuilderProgramUsingProgramBuildInfo:()=>e9e,createBuilderStatusReporter:()=>E9e,createCacheWithRedirects:()=>Cde,createCacheableExportInfoMap:()=>Pfe,createCachedDirectoryStructureHost:()=>xQ,createClassNamedEvaluationHelperBlock:()=>t7e,createClassThisAssignmentBlock:()=>XAe,createClassifier:()=>Hit,createCommentDirectivesMap:()=>Bbe,createCompilerDiagnostic:()=>cc,createCompilerDiagnosticForInvalidCustomType:()=>GFe,createCompilerDiagnosticFromMessageChain:()=>qq,createCompilerHost:()=>M7e,createCompilerHostFromProgramHost:()=>nhe,createCompilerHostWorker:()=>C1e,createDetachedDiagnostic:()=>hB,createDiagnosticCollection:()=>rB,createDiagnosticForFileFromMessageChain:()=>b0e,createDiagnosticForNode:()=>Su,createDiagnosticForNodeArray:()=>H8,createDiagnosticForNodeArrayFromMessageChain:()=>sj,createDiagnosticForNodeFromMessageChain:()=>Y3,createDiagnosticForNodeInSourceFile:()=>K4,createDiagnosticForRange:()=>Vbe,createDiagnosticMessageChainFromDiagnostic:()=>jbe,createDiagnosticReporter:()=>kH,createDocumentPositionMapper:()=>WAe,createDocumentRegistry:()=>OSe,createDocumentRegistryInternal:()=>Vfe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>G1e,createEmitHelperFactory:()=>$ke,createEmptyExports:()=>NV,createExpressionForJsxElement:()=>yFe,createExpressionForJsxFragment:()=>kFe,createExpressionForObjectLiteralElementLike:()=>FFe,createExpressionForPropertyName:()=>zce,createExpressionFromEntityName:()=>PV,createExternalHelpersImportDeclarationIfNeeded:()=>Oce,createFileDiagnostic:()=>Rd,createFileDiagnosticFromMessageChain:()=>nq,createForOfBindingStatement:()=>Mce,createGetCanonicalFileName:()=>L1,createGetSourceFile:()=>x1e,createGetSymbolAccessibilityDiagnosticForNode:()=>h5,createGetSymbolAccessibilityDiagnosticForNodeName:()=>k7e,createGetSymbolWalker:()=>BAe,createIncrementalCompilerHost:()=>rhe,createIncrementalProgram:()=>p9e,createInputFiles:()=>IYe,createInputFilesWithFilePaths:()=>uce,createInputFilesWithFileTexts:()=>rce,createJsxFactoryExpression:()=>Pce,createLanguageService:()=>eBe,createLanguageServiceSourceFile:()=>Eee,createMemberAccessForPropertyName:()=>Fk,createModeAwareCache:()=>U7,createModeAwareCacheKey:()=>dM,createModuleNotFoundChain:()=>o0e,createModuleResolutionCache:()=>KB,createModuleResolutionLoader:()=>A1e,createModuleResolutionLoaderUsingGlobalCache:()=>o9e,createModuleSpecifierResolutionHost:()=>Ik,createMultiMap:()=>wm,createNodeConverters:()=>Pke,createNodeFactory:()=>mV,createOptionNameMap:()=>SY,createOverload:()=>Gpe,createPackageJsonImportFilter:()=>HM,createPackageJsonInfo:()=>Cfe,createParenthesizerRules:()=>Nke,createPatternMatcher:()=>WSe,createPrependNodes:()=>N1e,createPrinter:()=>Gv,createPrinterWithDefaults:()=>f1e,createPrinterWithRemoveComments:()=>X2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>m1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>EH,createProgram:()=>SQ,createProgramHost:()=>uhe,createPropertyNameNodeForIdentifierOrLiteral:()=>mZ,createQueue:()=>U$,createRange:()=>s4,createRedirectedBuilderProgram:()=>H1e,createResolutionCache:()=>$1e,createRuntimeTypeSerializer:()=>a7e,createScanner:()=>YD,createSemanticDiagnosticsBuilderProgram:()=>ytt,createSet:()=>aoe,createSolutionBuilder:()=>Vtt,createSolutionBuilderHost:()=>Ott,createSolutionBuilderWithWatch:()=>Htt,createSolutionBuilderWithWatchHost:()=>jtt,createSortedArray:()=>xt,createSourceFile:()=>KV,createSourceMapGenerator:()=>jAe,createSourceMapSource:()=>RYe,createSuperAccessVariableStatement:()=>fQ,createSymbolTable:()=>Vo,createSymlinkCache:()=>ble,createSystemWatchFunctions:()=>E2e,createTextChange:()=>VH,createTextChangeFromStartLength:()=>gX,createTextChangeRange:()=>OO,createTextRangeFromNode:()=>tfe,createTextRangeFromSpan:()=>pX,createTextSpan:()=>d1,createTextSpanFromBounds:()=>Vc,createTextSpanFromNode:()=>of,createTextSpanFromRange:()=>qx,createTextSpanFromStringLiteralLikeContent:()=>efe,createTextWriter:()=>Vj,createTokenRange:()=>fle,createTypeChecker:()=>PAe,createTypeReferenceDirectiveResolutionCache:()=>HY,createTypeReferenceResolutionLoader:()=>kQ,createUnparsedSourceFile:()=>nce,createWatchCompilerHost:()=>ztt,createWatchCompilerHostOfConfigFile:()=>h9e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>f9e,createWatchFactory:()=>ihe,createWatchHost:()=>the,createWatchProgram:()=>Itt,createWatchStatusReporter:()=>s9e,createWriteFileMeasuringIO:()=>v1e,declarationNameToString:()=>b0,decodeMappings:()=>Gde,decodedTextSpanIntersectsWith:()=>RO,decorateHelper:()=>BZ,deduplicate:()=>ri,defaultIncludeSpec:()=>RY,defaultInitCompilerOptions:()=>zY,defaultMaximumTruncationLength:()=>lV,detectSortCaseSensitivity:()=>cn,diagnosticCategoryName:()=>Gy,diagnosticToString:()=>jk,directoryProbablyExists:()=>hg,directorySeparator:()=>rl,displayPart:()=>yf,displayPartsToString:()=>EK,disposeEmitNodes:()=>oce,disposeResourcesHelper:()=>tY,documentSpansEqual:()=>bX,dumpTracingLegend:()=>m2e,elementAt:()=>qD,elideNodes:()=>OFe,emitComments:()=>Aye,emitDetachedComments:()=>Sye,emitFiles:()=>EQ,emitFilesAndReportErrors:()=>VQ,emitFilesAndReportErrorsAndGetExitStatus:()=>d9e,emitModuleKindIsNonNodeESM:()=>Yq,emitNewLineBeforeLeadingCommentOfPosition:()=>Fye,emitNewLineBeforeLeadingComments:()=>yye,emitNewLineBeforeLeadingCommentsOfPosition:()=>kye,emitSkippedWithNoDiagnostics:()=>PQ,emitUsingBuildInfo:()=>w7e,emptyArray:()=>_t,emptyFileSystemEntries:()=>bZ,emptyMap:()=>iU,emptyOptions:()=>d4,emptySet:()=>u2e,endsWith:()=>sc,ensurePathIsNonModuleName:()=>h2,ensureScriptKind:()=>oZ,ensureTrailingDirectorySeparator:()=>zd,entityNameToString:()=>zf,enumerateInsertsAndDeletes:()=>eU,equalOwnProperties:()=>ZA,equateStringsCaseInsensitive:()=>QA,equateStringsCaseSensitive:()=>XA,equateValues:()=>Cx,esDecorateHelper:()=>LZ,escapeJsxAttributeString:()=>X0e,escapeLeadingUnderscores:()=>Al,escapeNonAsciiString:()=>jj,escapeSnippetText:()=>O2,escapeString:()=>Av,every:()=>ye,expandPreOrPostfixIncrementOrDecrementExpression:()=>DY,explainFiles:()=>Z1e,explainIfFileIsRedirectAndImpliedFormat:()=>Y1e,exportAssignmentIsAlias:()=>tB,exportStarHelper:()=>ZZ,expressionResultIsUnused:()=>Dke,extend:()=>$$,extendsHelper:()=>jZ,extensionFromPath:()=>y7,extensionIsTS:()=>cZ,extensionsNotSupportingExtensionlessResolution:()=>fV,externalHelpersModuleNameText:()=>Hx,factory:()=>q,fileExtensionIs:()=>Ml,fileExtensionIsOneOf:()=>jc,fileIncludeReasonToDiagnostics:()=>ehe,fileShouldUseJavaScriptRequire:()=>Bfe,filter:()=>ti,filterMutate:()=>Uu,filterSemanticDiagnostics:()=>BQ,find:()=>Le,findAncestor:()=>Tn,findBestPatternMatch:()=>coe,findChildOfKind:()=>a0,findComputedPropertyNameCacheAssignment:()=>FY,findConfigFile:()=>N7e,findContainingList:()=>oX,findDiagnosticForNode:()=>TSe,findFirstNonJsxWhitespaceToken:()=>Y9e,findIndex:()=>Ue,findLast:()=>lt,findLastIndex:()=>Ze,findListItemInfo:()=>Z9e,findMap:()=>rt,findModifier:()=>ow,findNextToken:()=>ib,findPackageJson:()=>BSe,findPackageJsons:()=>vfe,findPrecedingMatchingToken:()=>fX,findPrecedingToken:()=>td,findSuperStatementIndexPath:()=>sQ,findTokenOnLeftOfPosition:()=>cX,findUseStrictPrologue:()=>Rce,first:()=>Pn,firstDefined:()=>G,firstDefinedIterator:()=>ie,firstIterator:()=>Oa,firstOrOnly:()=>Ffe,firstOrUndefined:()=>Ki,firstOrUndefinedIterator:()=>Hn,fixupCompilerOptions:()=>Yfe,flatMap:()=>ju,flatMapIterator:()=>pa,flatMapToMutable:()=>Tr,flatten:()=>Va,flattenCommaList:()=>HFe,flattenDestructuringAssignment:()=>wk,flattenDestructuringBinding:()=>Q2,flattenDiagnosticMessageText:()=>lE,forEach:()=>L,forEachAncestor:()=>ybe,forEachAncestorDirectory:()=>Ug,forEachChild:()=>ao,forEachChildRecursively:()=>uM,forEachEmittedFile:()=>d1e,forEachEnclosingBlockScopeContainer:()=>Ibe,forEachEntry:()=>h1,forEachExternalModuleToImportFrom:()=>zfe,forEachImportClauseDeclaration:()=>Fq,forEachKey:()=>U_,forEachLeadingCommentRange:()=>NO,forEachNameInAccessChainWalkingLeft:()=>Zye,forEachPropertyAssignment:()=>J8,forEachResolvedProjectReference:()=>S1e,forEachReturnStatement:()=>y2,forEachRight:()=>O,forEachTrailingCommentRange:()=>PO,forEachTsConfigPropArray:()=>hj,forEachUnique:()=>lfe,forEachYieldExpression:()=>Kbe,forSomeAncestorDirectory:()=>rYe,formatColorAndReset:()=>eb,formatDiagnostic:()=>b1e,formatDiagnostics:()=>att,formatDiagnosticsWithColorAndContext:()=>z7e,formatGeneratedName:()=>jv,formatGeneratedNamePart:()=>RB,formatLocation:()=>y1e,formatMessage:()=>Dle,formatStringFromArgs:()=>e3,formatting:()=>dd,fullTripleSlashAMDReferencePathRegEx:()=>Hle,fullTripleSlashReferencePathRegEx:()=>Vle,generateDjb2Hash:()=>AN,generateTSConfig:()=>rXe,generatorHelper:()=>$Z,getAdjustedReferenceLocation:()=>Jhe,getAdjustedRenameLocation:()=>lX,getAliasDeclarationFromName:()=>H0e,getAllAccessorDeclarations:()=>dk,getAllDecoratorsOfClass:()=>Zde,getAllDecoratorsOfClassElement:()=>cQ,getAllJSDocTags:()=>Vse,getAllJSDocTagsOfKind:()=>_Ze,getAllKeys:()=>Bm,getAllProjectOutputs:()=>gQ,getAllSuperTypeNodes:()=>uP,getAllUnscopedEmitHelpers:()=>hce,getAllowJSCompilerOption:()=>Bv,getAllowSyntheticDefaultImports:()=>C7,getAncestor:()=>Fv,getAnyExtensionFromPath:()=>BN,getAreDeclarationMapsEnabled:()=>Xq,getAssignedExpandoInitializer:()=>l7,getAssignedName:()=>zse,getAssignedNameOfIdentifier:()=>_M,getAssignmentDeclarationKind:()=>Xl,getAssignmentDeclarationPropertyAccessKind:()=>yj,getAssignmentTargetKind:()=>f7,getAutomaticTypeDirectiveNames:()=>VY,getBaseFileName:()=>Ac,getBinaryOperatorPrecedence:()=>Oj,getBuildInfo:()=>_Q,getBuildInfoFileVersionMap:()=>V1e,getBuildInfoText:()=>B7e,getBuildOrderFromAnyBuildOrder:()=>JQ,getBuilderCreationParameters:()=>MQ,getBuilderFileEmit:()=>Ux,getCheckFlags:()=>Gl,getClassExtendsHeritageElement:()=>B2,getClassLikeDeclarationOfSymbol:()=>tD,getCombinedLocalAndExportSymbolFlags:()=>xP,getCombinedModifierFlags:()=>m2,getCombinedNodeFlags:()=>QD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Pse,getCommentRange:()=>nE,getCommonSourceDirectory:()=>yM,getCommonSourceDirectoryOfConfig:()=>kM,getCompilerOptionValue:()=>tZ,getCompilerOptionsDiffValue:()=>nXe,getConditions:()=>$2,getConfigFileParsingDiagnostics:()=>Lk,getConstantValue:()=>jke,getContainerFlags:()=>Lde,getContainerNode:()=>Mk,getContainingClass:()=>Yd,getContainingClassExcludingClassDecorators:()=>hq,getContainingClassStaticBlock:()=>Qbe,getContainingFunction:()=>Nm,getContainingFunctionDeclaration:()=>Ybe,getContainingFunctionOrClassStaticBlock:()=>dq,getContainingNodeArray:()=>xke,getContainingObjectLiteralElement:()=>_K,getContextualTypeFromParent:()=>SX,getContextualTypeFromParentOrAncestorTypeNode:()=>sX,getCurrentTime:()=>AH,getDeclarationDiagnostics:()=>F7e,getDeclarationEmitExtensionForPath:()=>Kj,getDeclarationEmitOutputFilePath:()=>Dye,getDeclarationEmitOutputFilePathWorker:()=>Mq,getDeclarationFromName:()=>nP,getDeclarationModifierFlagsFromSymbol:()=>l4,getDeclarationOfKind:()=>Sl,getDeclarationsOfKind:()=>vbe,getDeclaredExpandoInitializer:()=>xj,getDecorators:()=>Ax,getDefaultCompilerOptions:()=>gee,getDefaultExportInfoWorker:()=>GX,getDefaultFormatCodeSettings:()=>XQ,getDefaultLibFileName:()=>zO,getDefaultLibFilePath:()=>tBe,getDefaultLikeExportInfo:()=>WX,getDiagnosticText:()=>$Qe,getDiagnosticsWithinSpan:()=>LSe,getDirectoryPath:()=>lr,getDirectoryToWatchFailedLookupLocation:()=>J1e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>r9e,getDocumentPositionMapper:()=>Gfe,getESModuleInterop:()=>e_,getEditsForFileRename:()=>VSe,getEffectiveBaseTypeNode:()=>Qg,getEffectiveConstraintOfTypeParameter:()=>w8,getEffectiveContainerForJSDocTemplateTag:()=>Aq,getEffectiveImplementsTypeNodes:()=>iB,getEffectiveInitializer:()=>Dj,getEffectiveJSDocHost:()=>ok,getEffectiveModifierFlags:()=>Eh,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Lye,getEffectiveModifierFlagsNoCache:()=>Nye,getEffectiveReturnTypeNode:()=>U4,getEffectiveSetAccessorTypeAnnotationNode:()=>bye,getEffectiveTypeAnnotationNode:()=>f1,getEffectiveTypeParameterDeclarations:()=>Sx,getEffectiveTypeRoots:()=>cM,getElementOrPropertyAccessArgumentExpressionOrName:()=>kq,getElementOrPropertyAccessName:()=>Q3,getElementsOfBindingOrAssignmentPattern:()=>IB,getEmitDeclarations:()=>c4,getEmitFlags:()=>bs,getEmitHelpers:()=>SZ,getEmitModuleDetectionKind:()=>nke,getEmitModuleKind:()=>m1,getEmitModuleResolutionKind:()=>p1,getEmitScriptTarget:()=>Os,getEmitStandardClassFields:()=>ake,getEnclosingBlockScopeContainer:()=>YE,getEnclosingContainer:()=>C0e,getEncodedSemanticClassifications:()=>Ofe,getEncodedSyntacticClassifications:()=>jfe,getEndLinePosition:()=>uj,getEntityNameFromTypeNode:()=>pj,getEntrypointsFromPackageJsonInfo:()=>kde,getErrorCountForSummary:()=>OQ,getErrorSpanForNode:()=>C2,getErrorSummaryText:()=>l9e,getEscapedTextOfIdentifierOrLiteral:()=>oP,getEscapedTextOfJsxAttributeName:()=>MP,getEscapedTextOfJsxNamespacedName:()=>k7,getExpandoInitializer:()=>yv,getExportAssignmentExpression:()=>K0e,getExportInfoMap:()=>tK,getExportNeedsImportStarHelper:()=>GAe,getExpressionAssociativity:()=>q0e,getExpressionPrecedence:()=>lP,getExternalHelpersModuleName:()=>zV,getExternalModuleImportEqualsDeclarationExpression:()=>XN,getExternalModuleName:()=>Y8,getExternalModuleNameFromDeclaration:()=>Eye,getExternalModuleNameFromPath:()=>tle,getExternalModuleNameLiteral:()=>W7,getExternalModuleRequireArgument:()=>w0e,getFallbackOptions:()=>xH,getFileEmitOutput:()=>K7e,getFileMatcherPatterns:()=>aZ,getFileNamesFromConfigSpecs:()=>oM,getFileWatcherEventKind:()=>xse,getFilesInErrorForSummary:()=>jQ,getFirstConstructorWithBody:()=>X_,getFirstIdentifier:()=>hm,getFirstNonSpaceCharacterPosition:()=>bSe,getFirstProjectOutput:()=>h1e,getFixableErrorSpanExpression:()=>yfe,getFormatCodeSettingsForWriting:()=>jX,getFullWidth:()=>ij,getFunctionFlags:()=>kd,getHeritageClause:()=>Mj,getHostSignatureFromJSDoc:()=>kv,getIdentifierAutoGenerate:()=>KYe,getIdentifierGeneratedImportReference:()=>Jke,getIdentifierTypeArguments:()=>gk,getImmediatelyInvokedFunctionExpression:()=>nk,getImpliedNodeFormatForFile:()=>bH,getImpliedNodeFormatForFileWorker:()=>T1e,getImportNeedsImportDefaultHelper:()=>$de,getImportNeedsImportStarHelper:()=>aQ,getIndentSize:()=>oB,getIndentString:()=>Nq,getInferredLibraryNameResolveFrom:()=>AQ,getInitializedVariables:()=>DP,getInitializerOfBinaryExpression:()=>M0e,getInitializerOfBindingOrAssignmentElement:()=>RV,getInterfaceBaseTypeNodes:()=>rP,getInternalEmitFlags:()=>Pp,getInvokedExpression:()=>pq,getIsolatedModules:()=>mg,getJSDocAugmentsTag:()=>K2e,getJSDocClassTag:()=>Ise,getJSDocCommentRanges:()=>k0e,getJSDocCommentsAndTags:()=>I0e,getJSDocDeprecatedTag:()=>Rse,getJSDocDeprecatedTagNoCache:()=>Z2e,getJSDocEnumTag:()=>Ose,getJSDocHost:()=>h7,getJSDocImplementsTags:()=>W2e,getJSDocOverrideTagNoCache:()=>q2e,getJSDocParameterTags:()=>B8,getJSDocParameterTagsNoCache:()=>O2e,getJSDocPrivateTag:()=>fZe,getJSDocPrivateTagNoCache:()=>J2e,getJSDocProtectedTag:()=>mZe,getJSDocProtectedTagNoCache:()=>$2e,getJSDocPublicTag:()=>hZe,getJSDocPublicTagNoCache:()=>G2e,getJSDocReadonlyTag:()=>pZe,getJSDocReadonlyTagNoCache:()=>U2e,getJSDocReturnTag:()=>Y2e,getJSDocReturnType:()=>VO,getJSDocRoot:()=>iP,getJSDocSatisfiesExpressionType:()=>Rle,getJSDocSatisfiesTag:()=>jse,getJSDocTags:()=>Cv,getJSDocTagsNoCache:()=>EZe,getJSDocTemplateTag:()=>gZe,getJSDocThisTag:()=>LU,getJSDocType:()=>vv,getJSDocTypeAliasName:()=>Vce,getJSDocTypeAssertionType:()=>vY,getJSDocTypeParameterDeclarations:()=>Oq,getJSDocTypeParameterTags:()=>j2e,getJSDocTypeParameterTagsNoCache:()=>V2e,getJSDocTypeTag:()=>xv,getJSXImplicitImportBase:()=>nZ,getJSXRuntimeImport:()=>uZ,getJSXTransformEnabled:()=>iZ,getKeyForCompilerOptions:()=>vde,getLanguageVariant:()=>Yj,getLastChild:()=>Ele,getLeadingCommentRanges:()=>W_,getLeadingCommentRangesOfNode:()=>y0e,getLeftmostAccessExpression:()=>CP,getLeftmostExpression:()=>dB,getLibraryNameFromLibFileName:()=>B1e,getLineAndCharacterOfPosition:()=>s0,getLineInfo:()=>Kde,getLineOfLocalPosition:()=>dP,getLineOfLocalPositionFromLineMap:()=>lk,getLineStartPositionForPosition:()=>tp,getLineStarts:()=>$3,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Gye,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Wye,getLinesBetweenPositions:()=>LN,getLinesBetweenRangeEndAndRangeStart:()=>mle,getLinesBetweenRangeEndPositions:()=>nYe,getLiteralText:()=>wbe,getLocalNameForExternalImport:()=>zB,getLocalSymbolForExportDefault:()=>lB,getLocaleSpecificMessage:()=>to,getLocaleTimeString:()=>FH,getMappedContextSpan:()=>cfe,getMappedDocumentSpan:()=>yX,getMappedLocation:()=>zM,getMatchedFileSpec:()=>Q1e,getMatchedIncludeSpec:()=>X1e,getMeaningFromDeclaration:()=>TH,getMeaningFromLocation:()=>Pk,getMembersOfDeclaration:()=>Wbe,getModeForFileReference:()=>yQ,getModeForResolutionAtIndex:()=>k1e,getModeForUsageLocation:()=>xg,getModifiedTime:()=>e7,getModifiers:()=>p2,getModuleInstanceState:()=>oD,getModuleNameStringLiteralAt:()=>TQ,getModuleSpecifierEndingPreference:()=>Sle,getModuleSpecifierResolverHost:()=>rfe,getNameForExportedSymbol:()=>IX,getNameFromIndexInfo:()=>Rbe,getNameFromPropertyName:()=>WH,getNameOfAccessExpression:()=>Uye,getNameOfCompilerOptionValue:()=>rde,getNameOfDeclaration:()=>Za,getNameOfExpando:()=>N0e,getNameOfJSDocTypedef:()=>R2e,getNameOrArgument:()=>bj,getNameTable:()=>Tme,getNamesForExportedSymbol:()=>NSe,getNamespaceDeclarationNode:()=>Q8,getNewLineCharacter:()=>a5,getNewLineKind:()=>eK,getNewLineOrDefaultFromHost:()=>E5,getNewTargetContainer:()=>eye,getNextJSDocCommentLocation:()=>R0e,getNodeForGeneratedName:()=>jV,getNodeId:()=>$s,getNodeKind:()=>tb,getNodeModifiers:()=>NM,getNodeModulePathParts:()=>pZ,getNonAssignedNameOfDeclaration:()=>TU,getNonAssignmentOperatorForCompoundAssignment:()=>pM,getNonAugmentationDeclaration:()=>g0e,getNonDecoratorTokenPosOfNode:()=>d0e,getNormalizedAbsolutePath:()=>$a,getNormalizedAbsolutePathWithoutRoot:()=>Fse,getNormalizedPathComponents:()=>FO,getObjectFlags:()=>Gu,getOperator:()=>Y0e,getOperatorAssociativity:()=>Z0e,getOperatorPrecedence:()=>Rj,getOptionFromName:()=>ede,getOptionsForLibraryResolution:()=>bde,getOptionsNameMap:()=>jB,getOrCreateEmitNode:()=>P1,getOrCreateExternalHelpersModuleNameIfNeeded:()=>wFe,getOrUpdate:()=>W0,getOriginalNode:()=>Wl,getOriginalNodeId:()=>M1,getOriginalSourceFile:()=>$Ze,getOutputDeclarationFileName:()=>bM,getOutputExtension:()=>pQ,getOutputFileNames:()=>ntt,getOutputPathsFor:()=>CM,getOutputPathsForBundle:()=>vM,getOwnEmitOutputFilePath:()=>_ye,getOwnKeys:()=>Ns,getOwnValues:()=>U1,getPackageJsonInfo:()=>U2,getPackageJsonTypesVersionsPaths:()=>jY,getPackageJsonsVisibleToFile:()=>wSe,getPackageNameFromTypesPackageName:()=>hM,getPackageScopeForPath:()=>aH,getParameterSymbolFromJSDoc:()=>Tj,getParameterTypeNode:()=>gYe,getParentNodeInSpan:()=>JH,getParseTreeNode:()=>Ua,getParsedCommandLineOfConfigFile:()=>GV,getPathComponents:()=>yd,getPathComponentsRelativeTo:()=>Sse,getPathFromPathComponents:()=>yx,getPathUpdater:()=>Kfe,getPathsBasePath:()=>zq,getPatternFromSpec:()=>Fle,getPendingEmitKind:()=>XB,getPositionOfLineAndCharacter:()=>TO,getPossibleGenericSignatures:()=>Uhe,getPossibleOriginalInputExtensionForExtension:()=>xye,getPossibleTypeArgumentsInfo:()=>qhe,getPreEmitDiagnostics:()=>rtt,getPrecedingNonSpaceCharacterPosition:()=>FX,getPrivateIdentifier:()=>Yde,getProperties:()=>qde,getProperty:()=>uo,getPropertyArrayElementValue:()=>Zbe,getPropertyAssignmentAliasLikeExpression:()=>fye,getPropertyNameForPropertyNameNode:()=>sk,getPropertyNameForUniqueESSymbol:()=>GZe,getPropertyNameFromType:()=>Q4,getPropertyNameOfBindingOrAssignmentElement:()=>jce,getPropertySymbolFromBindingElement:()=>CX,getPropertySymbolsFromContextualType:()=>_ee,getQuoteFromPreference:()=>ofe,getQuotePreference:()=>Hm,getRangesWhere:()=>eu,getRefactorContextSpan:()=>u9,getReferencedFileLocation:()=>FM,getRegexFromPattern:()=>jx,getRegularExpressionForWildcard:()=>yP,getRegularExpressionsForWildcards:()=>rZ,getRelativePathFromDirectory:()=>JE,getRelativePathFromFile:()=>SO,getRelativePathToDirectoryOrUrl:()=>i7,getRenameLocation:()=>qH,getReplacementSpanForContextToken:()=>Xhe,getResolutionDiagnostic:()=>P1e,getResolutionModeOverride:()=>qB,getResolveJsonModule:()=>M2,getResolvePackageJsonExports:()=>vle,getResolvePackageJsonImports:()=>cYe,getResolvedExternalModuleName:()=>Pq,getRestIndicatorOfBindingOrAssignmentElement:()=>bY,getRestParameterElementType:()=>F0e,getRightMostAssignedExpression:()=>vj,getRootDeclaration:()=>XE,getRootDirectoryOfResolutionCache:()=>a9e,getRootLength:()=>WE,getRootPathSplitLength:()=>Btt,getScriptKind:()=>pfe,getScriptKindFromFileName:()=>sZ,getScriptTargetFeatures:()=>xZ,getSelectedEffectiveModifierFlags:()=>E7,getSelectedSyntacticModifierFlags:()=>wye,getSemanticClassifications:()=>ISe,getSemanticJsxChildren:()=>uB,getSetAccessorTypeAnnotationNode:()=>vye,getSetAccessorValueParameter:()=>hP,getSetExternalModuleIndicator:()=>Qj,getShebang:()=>SU,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>z0e,getSingleVariableOfVariableStatement:()=>eB,getSnapshotText:()=>aw,getSnippetElement:()=>sce,getSourceFileOfModule:()=>YU,getSourceFileOfNode:()=>zn,getSourceFilePathInNewDir:()=>Iq,getSourceFilePathInNewDirWorker:()=>Rq,getSourceFileVersionAsHashFromText:()=>HQ,getSourceFilesToEmit:()=>ile,getSourceMapRange:()=>Lv,getSourceMapper:()=>XSe,getSourceTextOfNodeFromSourceFile:()=>x2,getSpanOfTokenAtPosition:()=>QE,getSpellingSuggestion:()=>bN,getStartPositionOfLine:()=>Mx,getStartPositionOfRange:()=>_P,getStartsOnNewLine:()=>RP,getStaticPropertiesAndClassStaticBlock:()=>lQ,getStrictOptionValue:()=>Z4,getStringComparer:()=>CN,getSuperCallFromStatement:()=>oQ,getSuperContainer:()=>fj,getSupportedCodeFixes:()=>Bme,getSupportedExtensions:()=>kP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tV,getSwitchedType:()=>Dfe,getSymbolId:()=>Zo,getSymbolNameForPrivateIdentifier:()=>zj,getSymbolTarget:()=>vSe,getSyntacticClassifications:()=>RSe,getSyntacticModifierFlags:()=>Rx,getSyntacticModifierFlagsNoCache:()=>ale,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>UH,getSynthesizedDeepClones:()=>nb,getSynthesizedDeepClonesWithReplacements:()=>gfe,getSyntheticLeadingComments:()=>DB,getSyntheticTrailingComments:()=>DV,getTargetLabel:()=>nX,getTargetOfBindingOrAssignmentElement:()=>$x,getTemporaryModuleResolutionState:()=>rH,getTextOfConstantValue:()=>Tbe,getTextOfIdentifierOrLiteral:()=>J4,getTextOfJSDocComment:()=>KO,getTextOfJsxAttributeName:()=>sV,getTextOfJsxNamespacedName:()=>zP,getTextOfNode:()=>Hc,getTextOfNodeFromSourceText:()=>JN,getTextOfPropertyName:()=>V8,getThisContainer:()=>tf,getThisParameter:()=>T2,getTokenAtPosition:()=>Ca,getTokenPosOfNode:()=>ek,getTokenSourceMapRange:()=>VYe,getTouchingPropertyName:()=>af,getTouchingToken:()=>LM,getTrailingCommentRanges:()=>gv,getTrailingSemicolonDeferringWriter:()=>ele,getTransformFlagsSubtreeExclusions:()=>Mke,getTransformers:()=>l1e,getTsBuildInfoEmitOutputFilePath:()=>f5,getTsConfigObjectLiteralExpression:()=>ZN,getTsConfigPropArrayElementValue:()=>cq,getTypeAnnotationNode:()=>Cye,getTypeArgumentOrTypeParameterList:()=>rSe,getTypeKeywordOfTypeOnlyImport:()=>sfe,getTypeNode:()=>Wke,getTypeNodeIfAccessible:()=>VM,getTypeParameterFromJsDoc:()=>oye,getTypeParameterOwner:()=>oZe,getTypesPackageName:()=>$Y,getUILocale:()=>ZCe,getUniqueName:()=>Ok,getUniqueSymbolId:()=>CSe,getUseDefineForClassFields:()=>eV,getWatchErrorSummaryDiagnosticMessage:()=>U1e,getWatchFactory:()=>E1e,group:()=>vN,groupBy:()=>JCe,guessIndentation:()=>Dbe,handleNoEmitOptions:()=>L1e,hasAbstractModifier:()=>P2,hasAccessorModifier:()=>eE,hasAmbientModifier:()=>rle,hasChangesInResolutions:()=>s0e,hasChildOfKind:()=>RH,hasContextSensitiveParameters:()=>fZ,hasDecorators:()=>o4,hasDocComment:()=>nSe,hasDynamicName:()=>Ix,hasEffectiveModifier:()=>Rf,hasEffectiveModifiers:()=>jq,hasEffectiveReadonlyModifier:()=>fP,hasExtension:()=>t7,hasIndexSignature:()=>_fe,hasInitializer:()=>Nx,hasInvalidEscape:()=>Q0e,hasJSDocNodes:()=>lm,hasJSDocParameterTags:()=>H2e,hasJSFileExtension:()=>z2,hasJsonModuleEmitEnabled:()=>Qq,hasOnlyExpressionInitializer:()=>Qy,hasOverrideModifier:()=>Vq,hasPossibleExternalModuleReference:()=>zbe,hasProperty:()=>gu,hasPropertyAccessExpressionWithName:()=>NH,hasQuestionToken:()=>d7,hasRecordedExternalHelpers:()=>BFe,hasResolutionModeOverride:()=>kke,hasRestParameter:()=>u0e,hasScopeMarker:()=>dbe,hasStaticModifier:()=>Kc,hasSyntacticModifier:()=>Yu,hasSyntacticModifiers:()=>Bye,hasTSFileExtension:()=>mk,hasTabstop:()=>Cke,hasTrailingDirectorySeparator:()=>ZD,hasType:()=>JU,hasTypeArguments:()=>jZe,hasZeroOrOneAsteriskCharacter:()=>Cle,helperString:()=>dce,hostGetCanonicalFileName:()=>n5,hostUsesCaseSensitiveFileNames:()=>Hj,idText:()=>fu,identifierIsThisKeyword:()=>ule,identifierToKeywordKind:()=>Dv,identity:()=>il,identitySourceMapConsumer:()=>rQ,ignoreSourceNewlines:()=>cce,ignoredPaths:()=>kO,importDefaultHelper:()=>qZ,importFromModuleSpecifier:()=>tP,importNameElisionDisabled:()=>xle,importStarHelper:()=>vV,indexOfAnyCharCode:()=>jt,indexOfNode:()=>j8,indicesOf:()=>$r,inferredTypesContainingFile:()=>QB,injectClassNamedEvaluationHelperBlockIfMissing:()=>hQ,injectClassThisAssignmentIfMissing:()=>e7e,insertImports:()=>MM,insertLeadingStatement:()=>oQe,insertSorted:()=>Tt,insertStatementAfterCustomPrologue:()=>Xy,insertStatementAfterStandardPrologue:()=>wZe,insertStatementsAfterCustomPrologue:()=>l0e,insertStatementsAfterStandardPrologue:()=>ZE,intersperse:()=>_e,intrinsicTagNameToString:()=>Ole,introducesArgumentsExoticObject:()=>Ube,inverseJsxOptionMap:()=>sM,isAbstractConstructorSymbol:()=>Jye,isAbstractModifier:()=>tFe,isAccessExpression:()=>I0,isAccessibilityModifier:()=>Yhe,isAccessor:()=>wx,isAccessorModifier:()=>nFe,isAliasSymbolDeclaration:()=>HZe,isAliasableExpression:()=>Pj,isAmbientModule:()=>N1,isAmbientPropertyDeclaration:()=>_0e,isAnonymousFunctionDefinition:()=>sP,isAnyDirectorySeparator:()=>bse,isAnyImportOrBareOrAccessedRequire:()=>Mbe,isAnyImportOrReExport:()=>aj,isAnyImportSyntax:()=>tk,isAnySupportedFileExtension:()=>pYe,isApplicableVersionedTypesKey:()=>sH,isArgumentExpressionOfElementAccess:()=>jhe,isArray:()=>Ha,isArrayBindingElement:()=>jU,isArrayBindingOrAssignmentElement:()=>ZO,isArrayBindingOrAssignmentPattern:()=>Qse,isArrayBindingPattern:()=>_k,isArrayLiteralExpression:()=>Dh,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>p5,isArrayTypeNode:()=>oY,isArrowFunction:()=>q0,isAsExpression:()=>AV,isAssertClause:()=>dFe,isAssertEntry:()=>XYe,isAssertionExpression:()=>Yy,isAssertsKeyword:()=>Xke,isAssignmentDeclaration:()=>eP,isAssignmentExpression:()=>ld,isAssignmentOperator:()=>u5,isAssignmentPattern:()=>KN,isAssignmentTarget:()=>Q_,isAsteriskToken:()=>yV,isAsyncFunction:()=>aP,isAsyncModifier:()=>VP,isAutoAccessorPropertyDeclaration:()=>ef,isAwaitExpression:()=>Gx,isAwaitKeyword:()=>_ce,isBigIntLiteral:()=>iY,isBinaryExpression:()=>Xn,isBinaryOperatorToken:()=>RFe,isBindableObjectDefinePropertyCall:()=>rk,isBindableStaticAccessExpression:()=>A2,isBindableStaticElementAccessExpression:()=>yq,isBindableStaticNameExpression:()=>ak,isBindingElement:()=>js,isBindingElementOfBareOrAccessedRequire:()=>nye,isBindingName:()=>qy,isBindingOrAssignmentElement:()=>rbe,isBindingOrAssignmentPattern:()=>UO,isBindingPattern:()=>So,isBlock:()=>po,isBlockOrCatchScoped:()=>h0e,isBlockScope:()=>D0e,isBlockScopedContainerTopLevel:()=>Pbe,isBooleanLiteral:()=>HN,isBreakOrContinueStatement:()=>ON,isBreakStatement:()=>ZYe,isBuildInfoFile:()=>S7e,isBuilderProgram:()=>c9e,isBundle:()=>kce,isBundleFileTextLike:()=>qye,isCallChain:()=>$y,isCallExpression:()=>Mo,isCallExpressionTarget:()=>Phe,isCallLikeExpression:()=>D2,isCallLikeOrFunctionLikeExpression:()=>Xse,isCallOrNewExpression:()=>$E,isCallOrNewExpressionTarget:()=>Mhe,isCallSignatureDeclaration:()=>CB,isCallToHelper:()=>jP,isCaseBlock:()=>ZP,isCaseClause:()=>BB,isCaseKeyword:()=>uFe,isCaseOrDefaultClause:()=>WU,isCatchClause:()=>G2,isCatchClauseVariableDeclaration:()=>vke,isCatchClauseVariableDeclarationOrBindingElement:()=>f0e,isCheckJsEnabledForFile:()=>uV,isChildOfNodeWithKind:()=>TZe,isCircularBuildOrder:()=>e9,isClassDeclaration:()=>Wc,isClassElement:()=>Zd,isClassExpression:()=>Xd,isClassInstanceProperty:()=>ibe,isClassLike:()=>mr,isClassMemberModifier:()=>qse,isClassNamedEvaluationHelperBlock:()=>X7,isClassOrTypeElement:()=>OU,isClassStaticBlockDeclaration:()=>zl,isClassThisAssignmentBlock:()=>EM,isCollapsedRange:()=>iYe,isColonToken:()=>Yke,isCommaExpression:()=>MV,isCommaListExpression:()=>UP,isCommaSequence:()=>eM,isCommaToken:()=>Zke,isComment:()=>mX,isCommonJsExportPropertyAssignment:()=>sq,isCommonJsExportedExpression:()=>Jbe,isCompoundAssignment:()=>mM,isComputedNonLiteralName:()=>oj,isComputedPropertyName:()=>Ps,isConciseBody:()=>HU,isConditionalExpression:()=>SB,isConditionalTypeNode:()=>FB,isConstTypeReference:()=>q3,isConstructSignatureDeclaration:()=>FV,isConstructorDeclaration:()=>hc,isConstructorTypeNode:()=>WP,isContextualKeyword:()=>Bq,isContinueStatement:()=>qYe,isCustomPrologue:()=>dj,isDebuggerStatement:()=>YYe,isDeclaration:()=>Q1,isDeclarationBindingElement:()=>$O,isDeclarationFileName:()=>e1,isDeclarationName:()=>X3,isDeclarationNameOfEnumOrNamespace:()=>ple,isDeclarationReadonly:()=>uq,isDeclarationStatement:()=>pbe,isDeclarationWithTypeParameterChildren:()=>v0e,isDeclarationWithTypeParameters:()=>x0e,isDecorator:()=>g1,isDecoratorTarget:()=>W9e,isDefaultClause:()=>TV,isDefaultImport:()=>c7,isDefaultModifier:()=>rY,isDefaultedExpandoInitializer:()=>uye,isDeleteExpression:()=>oFe,isDeleteTarget:()=>V0e,isDeprecatedDeclaration:()=>RX,isDestructuringAssignment:()=>r5,isDiagnosticWithLocation:()=>bfe,isDiskPathRoot:()=>yse,isDoStatement:()=>$Ye,isDocumentRegistryEntry:()=>iK,isDotDotDotToken:()=>nY,isDottedName:()=>pP,isDynamicName:()=>Lq,isESSymbolIdentifier:()=>JZe,isEffectiveExternalModule:()=>s7,isEffectiveModuleDeclaration:()=>Nbe,isEffectiveStrictModeSourceFile:()=>E0e,isElementAccessChain:()=>Hse,isElementAccessExpression:()=>U0,isEmittedFileOfProgram:()=>L7e,isEmptyArrayLiteral:()=>Iye,isEmptyBindingElement:()=>z2e,isEmptyBindingPattern:()=>M2e,isEmptyObjectLiteral:()=>dle,isEmptyStatement:()=>Cce,isEmptyStringLiteral:()=>B0e,isEntityName:()=>sm,isEntityNameExpression:()=>ec,isEnumConst:()=>b2,isEnumDeclaration:()=>Iv,isEnumMember:()=>J2,isEqualityOperatorKind:()=>BX,isEqualsGreaterThanToken:()=>Qke,isExclamationToken:()=>kV,isExcludedFile:()=>QFe,isExclusivelyTypeOnlyImportOrExport:()=>F1e,isExpandoPropertyDeclaration:()=>EZ,isExportAssignment:()=>tc,isExportDeclaration:()=>Gc,isExportModifier:()=>L7,isExportName:()=>xY,isExportNamespaceAsDefaultDeclaration:()=>eq,isExportOrDefaultModifier:()=>OV,isExportSpecifier:()=>eh,isExportsIdentifier:()=>uk,isExportsOrModuleExportsOrAlias:()=>q2,isExpression:()=>Wt,isExpressionNode:()=>Z_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>U9e,isExpressionOfOptionalChainRoot:()=>MU,isExpressionStatement:()=>Od,isExpressionWithTypeArguments:()=>c5,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Jj,isExternalModule:()=>wc,isExternalModuleAugmentation:()=>v2,isExternalModuleImportEqualsDeclaration:()=>bv,isExternalModuleIndicator:()=>YO,isExternalModuleNameRelative:()=>Id,isExternalModuleReference:()=>r_,isExternalModuleSymbol:()=>HH,isExternalOrCommonJsModule:()=>cm,isFileLevelReservedGeneratedIdentifier:()=>JO,isFileLevelUniqueName:()=>QU,isFileProbablyExternalModule:()=>HV,isFirstDeclarationOfSymbolParameter:()=>dfe,isFixablePromiseHandler:()=>Ufe,isForInOrOfStatement:()=>M8,isForInStatement:()=>hY,isForInitializer:()=>a4,isForOfStatement:()=>SV,isForStatement:()=>vk,isFunctionBlock:()=>k2,isFunctionBody:()=>t0e,isFunctionDeclaration:()=>ed,isFunctionExpression:()=>A0,isFunctionExpressionOrArrowFunction:()=>R2,isFunctionLike:()=>Co,isFunctionLikeDeclaration:()=>$0,isFunctionLikeKind:()=>a7,isFunctionLikeOrClassStaticBlockDeclaration:()=>L8,isFunctionOrConstructorTypeNode:()=>ube,isFunctionOrModuleBlock:()=>Zse,isFunctionSymbol:()=>aye,isFunctionTypeNode:()=>u3,isFutureReservedKeyword:()=>KZe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>Uy,isGetAccessor:()=>Lx,isGetAccessorDeclaration:()=>zm,isGetOrSetAccessorDeclaration:()=>NU,isGlobalDeclaration:()=>Iit,isGlobalScopeAugmentation:()=>Yg,isGrammarError:()=>Sbe,isHeritageClause:()=>mm,isHoistedFunction:()=>aq,isHoistedVariableStatement:()=>oq,isIdentifier:()=>at,isIdentifierANonContextualKeyword:()=>wq,isIdentifierName:()=>hye,isIdentifierOrThisTypeNode:()=>PFe,isIdentifierPart:()=>Ev,isIdentifierStart:()=>G_,isIdentifierText:()=>Lm,isIdentifierTypePredicate:()=>qbe,isIdentifierTypeReference:()=>gke,isIfStatement:()=>xk,isIgnoredFileFromWildCardWatching:()=>DH,isImplicitGlob:()=>kle,isImportAttribute:()=>hFe,isImportAttributeName:()=>tbe,isImportAttributes:()=>fY,isImportCall:()=>dm,isImportClause:()=>n_,isImportDeclaration:()=>Sd,isImportEqualsDeclaration:()=>E1,isImportKeyword:()=>KP,isImportMeta:()=>W8,isImportOrExportSpecifier:()=>r7,isImportOrExportSpecifierName:()=>xSe,isImportSpecifier:()=>bf,isImportTypeAssertionContainer:()=>QYe,isImportTypeNode:()=>nD,isImportableFile:()=>Mfe,isInComment:()=>m5,isInCompoundLikeAssignment:()=>O0e,isInExpressionContext:()=>Eq,isInJSDoc:()=>Ej,isInJSFile:()=>Qn,isInJSXText:()=>tSe,isInJsonFile:()=>Dq,isInNonReferenceComment:()=>sSe,isInReferenceComment:()=>oSe,isInRightSideOfInternalImportEqualsDeclaration:()=>tX,isInString:()=>zk,isInTemplateString:()=>$he,isInTopLevelContext:()=>fq,isInTypeQuery:()=>ck,isIncrementalCompilation:()=>Xj,isIndexSignatureDeclaration:()=>Ek,isIndexedAccessTypeNode:()=>I7,isInferTypeNode:()=>P7,isInfinityOrNaNString:()=>LP,isInitializedProperty:()=>fH,isInitializedVariable:()=>Zj,isInsideJsxElement:()=>hX,isInsideJsxElementOrAttribute:()=>eSe,isInsideNodeModules:()=>XH,isInsideTemplateLiteral:()=>jH,isInstanceOfExpression:()=>Hq,isInstantiatedModule:()=>Rde,isInterfaceDeclaration:()=>xh,isInternalDeclaration:()=>o1e,isInternalModuleImportEqualsDeclaration:()=>U8,isInternalName:()=>Ice,isIntersectionTypeNode:()=>kB,isIntrinsicJsxName:()=>aB,isIterationStatement:()=>Tx,isJSDoc:()=>Vp,isJSDocAllType:()=>EFe,isJSDocAugmentsTag:()=>LB,isJSDocAuthorTag:()=>nQe,isJSDocCallbackTag:()=>Ace,isJSDocClassTag:()=>DFe,isJSDocCommentContainingNode:()=>GU,isJSDocConstructSignature:()=>X8,isJSDocDeprecatedTag:()=>Lce,isJSDocEnumTag:()=>LV,isJSDocFunctionType:()=>TB,isJSDocImplementsTag:()=>Nce,isJSDocIndexSignature:()=>xq,isJSDocLikeText:()=>Jce,isJSDocLink:()=>pFe,isJSDocLinkCode:()=>gFe,isJSDocLinkLike:()=>o7,isJSDocLinkPlain:()=>tQe,isJSDocMemberName:()=>Rv,isJSDocNameReference:()=>QP,isJSDocNamepathType:()=>iQe,isJSDocNamespaceBody:()=>kZe,isJSDocNode:()=>z8,isJSDocNonNullableType:()=>mY,isJSDocNullableType:()=>wB,isJSDocOptionalParameter:()=>oV,isJSDocOptionalType:()=>Fce,isJSDocOverloadTag:()=>NB,isJSDocOverrideTag:()=>gY,isJSDocParameterTag:()=>Eg,isJSDocPrivateTag:()=>Bce,isJSDocPropertyLikeTag:()=>WO,isJSDocPropertyTag:()=>vFe,isJSDocProtectedTag:()=>wce,isJSDocPublicTag:()=>Sce,isJSDocReadonlyTag:()=>Tce,isJSDocReturnTag:()=>EY,isJSDocSatisfiesExpression:()=>Ile,isJSDocSatisfiesTag:()=>_Y,isJSDocSeeTag:()=>uQe,isJSDocSignature:()=>Ov,isJSDocTag:()=>I8,isJSDocTemplateTag:()=>_g,isJSDocThisTag:()=>xFe,isJSDocThrowsTag:()=>aQe,isJSDocTypeAlias:()=>G4,isJSDocTypeAssertion:()=>tM,isJSDocTypeExpression:()=>kk,isJSDocTypeLiteral:()=>K7,isJSDocTypeTag:()=>XP,isJSDocTypedefTag:()=>PB,isJSDocUnknownTag:()=>rQe,isJSDocUnknownType:()=>_Fe,isJSDocVariadicType:()=>pY,isJSXTagName:()=>$8,isJsonEqual:()=>dZ,isJsonSourceFile:()=>W4,isJsxAttribute:()=>oE,isJsxAttributeLike:()=>KU,isJsxAttributeName:()=>yke,isJsxAttributes:()=>W2,isJsxChild:()=>ej,isJsxClosingElement:()=>H2,isJsxClosingFragment:()=>fFe,isJsxElement:()=>r3,isJsxExpression:()=>YP,isJsxFragment:()=>K2,isJsxNamespacedName:()=>gg,isJsxOpeningElement:()=>aE,isJsxOpeningFragment:()=>V7,isJsxOpeningLikeElement:()=>zh,isJsxOpeningLikeElementTagName:()=>G9e,isJsxSelfClosingElement:()=>bk,isJsxSpreadAttribute:()=>H7,isJsxTagNameExpression:()=>WN,isJsxText:()=>w7,isJumpStatementTarget:()=>PH,isKeyword:()=>uf,isKeywordOrPunctuation:()=>Sq,isKnownSymbol:()=>Ij,isLabelName:()=>Rhe,isLabelOfLabeledStatement:()=>Ihe,isLabeledStatement:()=>V2,isLateVisibilityPaintedStatement:()=>iq,isLeftHandSideExpression:()=>Df,isLeftHandSideOfAssignment:()=>tYe,isLet:()=>rq,isLineBreak:()=>Z1,isLiteralComputedPropertyDeclarationName:()=>Nj,isLiteralExpression:()=>E2,isLiteralExpressionOfObject:()=>$se,isLiteralImportTypeNode:()=>zx,isLiteralKind:()=>jN,isLiteralLikeAccess:()=>bq,isLiteralLikeElementAccess:()=>Cj,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>uX,isLiteralTypeLikeExpression:()=>hQe,isLiteralTypeLiteral:()=>lbe,isLiteralTypeNode:()=>Mv,isLocalName:()=>rD,isLogicalOperator:()=>Pye,isLogicalOrCoalescingAssignmentExpression:()=>ole,isLogicalOrCoalescingAssignmentOperator:()=>mP,isLogicalOrCoalescingBinaryExpression:()=>Gj,isLogicalOrCoalescingBinaryOperator:()=>Wj,isMappedTypeNode:()=>JP,isMemberName:()=>J_,isMetaProperty:()=>$P,isMethodDeclaration:()=>dc,isMethodOrAccessor:()=>N8,isMethodSignature:()=>n3,isMinusToken:()=>Ece,isMissingDeclaration:()=>eQe,isModifier:()=>Qo,isModifierKind:()=>XD,isModifierLike:()=>ol,isModuleAugmentationExternal:()=>p0e,isModuleBlock:()=>rE,isModuleBody:()=>hbe,isModuleDeclaration:()=>_c,isModuleExportsAccessExpression:()=>Y_,isModuleIdentifier:()=>P0e,isModuleName:()=>IFe,isModuleOrEnumDeclaration:()=>QO,isModuleReference:()=>Ebe,isModuleSpecifierLike:()=>vX,isModuleWithStringLiteralName:()=>tq,isNameOfFunctionDeclaration:()=>Hhe,isNameOfModuleDeclaration:()=>Vhe,isNamedClassElement:()=>nbe,isNamedDeclaration:()=>mh,isNamedEvaluation:()=>If,isNamedEvaluationSource:()=>J0e,isNamedExportBindings:()=>Wse,isNamedExports:()=>ep,isNamedImportBindings:()=>i0e,isNamedImports:()=>uD,isNamedImportsOrExports:()=>Uq,isNamedTupleMember:()=>GP,isNamespaceBody:()=>yZe,isNamespaceExport:()=>u_,isNamespaceExportDeclaration:()=>wV,isNamespaceImport:()=>Jx,isNamespaceReexportDeclaration:()=>iye,isNewExpression:()=>j2,isNewExpressionTarget:()=>wM,isNoSubstitutionTemplateLiteral:()=>T7,isNode:()=>DZe,isNodeArray:()=>g2,isNodeArrayMultiLine:()=>Kye,isNodeDescendantOf:()=>S2,isNodeKind:()=>GO,isNodeLikeSystem:()=>hoe,isNodeModulesDirectory:()=>bU,isNodeWithPossibleHoistedDeclaration:()=>lye,isNonContextualKeyword:()=>G0e,isNonExportDefaultModifier:()=>mQe,isNonGlobalAmbientModule:()=>m0e,isNonGlobalDeclaration:()=>zSe,isNonNullAccess:()=>bke,isNonNullChain:()=>zU,isNonNullExpression:()=>O7,isNonStaticMethodOrAccessorWithPrivateName:()=>JAe,isNotEmittedOrPartiallyEmittedNode:()=>bZe,isNotEmittedStatement:()=>yce,isNullishCoalesce:()=>Kse,isNumber:()=>UD,isNumericLiteral:()=>Of,isNumericLiteralName:()=>i3,isObjectBindingElementWithoutPropertyName:()=>GH,isObjectBindingOrAssignmentElement:()=>qO,isObjectBindingOrAssignmentPattern:()=>Yse,isObjectBindingPattern:()=>Rp,isObjectLiteralElement:()=>n0e,isObjectLiteralElementLike:()=>Z3,isObjectLiteralExpression:()=>ys,isObjectLiteralMethod:()=>zp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>lq,isObjectTypeDeclaration:()=>x7,isOctalDigit:()=>AU,isOmittedExpression:()=>Fd,isOptionalChain:()=>Y1,isOptionalChainRoot:()=>IN,isOptionalDeclaration:()=>PP,isOptionalJSDocPropertyLikeTag:()=>aV,isOptionalTypeNode:()=>Dce,isOuterExpression:()=>CY,isOutermostOptionalChain:()=>RN,isOverrideModifier:()=>iFe,isPackedArrayLiteral:()=>Ple,isParameter:()=>io,isParameterDeclaration:()=>w2,isParameterOrCatchClauseVariable:()=>Mle,isParameterPropertyDeclaration:()=>Mf,isParameterPropertyModifier:()=>VN,isParenthesizedExpression:()=>Cf,isParenthesizedTypeNode:()=>M7,isParseTreeNode:()=>zN,isPartOfTypeNode:()=>q_,isPartOfTypeQuery:()=>_q,isPartiallyEmittedExpression:()=>dY,isPatternMatch:()=>Y$,isPinnedComment:()=>XU,isPlainJsFile:()=>nj,isPlusToken:()=>gce,isPossiblyTypeArgumentPosition:()=>OH,isPostfixUnaryExpression:()=>vce,isPrefixUnaryExpression:()=>zv,isPrivateIdentifier:()=>Xr,isPrivateIdentifierClassElementDeclaration:()=>ph,isPrivateIdentifierPropertyAccessExpression:()=>T8,isPrivateIdentifierSymbol:()=>mye,isProgramBundleEmitBuildInfo:()=>U7e,isProgramUptoDate:()=>w1e,isPrologueDirective:()=>Mp,isPropertyAccessChain:()=>PU,isPropertyAccessEntityNameExpression:()=>$j,isPropertyAccessExpression:()=>Iu,isPropertyAccessOrQualifiedName:()=>obe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>abe,isPropertyAssignment:()=>Jc,isPropertyDeclaration:()=>ko,isPropertyName:()=>Sc,isPropertyNameLiteral:()=>Xg,isPropertySignature:()=>Mm,isProtoSetter:()=>pye,isPrototypeAccess:()=>Ox,isPrototypePropertyAssignment:()=>kj,isPunctuation:()=>W0e,isPushOrUnshiftIdentifier:()=>$0e,isQualifiedName:()=>vf,isQuestionDotToken:()=>uY,isQuestionOrExclamationToken:()=>NFe,isQuestionOrPlusOrMinusToken:()=>zFe,isQuestionToken:()=>Wx,isRawSourceMap:()=>HAe,isReadonlyKeyword:()=>eFe,isReadonlyKeywordOrPlusOrMinusToken:()=>MFe,isRecognizedTripleSlashComment:()=>c0e,isReferenceFileLocation:()=>ZB,isReferencedFile:()=>Jv,isRegularExpressionLiteral:()=>mce,isRequireCall:()=>xf,isRequireVariableStatement:()=>L0e,isRestParameter:()=>$_,isRestTypeNode:()=>xce,isReturnStatement:()=>Op,isReturnStatementWithFixablePromiseHandler:()=>UX,isRightSideOfAccessExpression:()=>cle,isRightSideOfInstanceofExpression:()=>zye,isRightSideOfPropertyAccess:()=>uw,isRightSideOfQualifiedName:()=>$9e,isRightSideOfQualifiedNameOrPropertyAccess:()=>gP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Mye,isRootedDiskPath:()=>Pf,isSameEntityName:()=>q8,isSatisfiesExpression:()=>sFe,isScopeMarker:()=>cbe,isSemicolonClassElement:()=>lFe,isSetAccessor:()=>e5,isSetAccessorDeclaration:()=>jf,isShebangTrivia:()=>Bse,isShiftOperatorOrHigher:()=>Kce,isShorthandAmbientModuleSymbol:()=>$N,isShorthandPropertyAssignment:()=>pm,isSignedNumericLiteral:()=>Tq,isSimpleCopiableExpression:()=>Y2,isSimpleInlineableExpression:()=>sE,isSingleOrDoubleQuote:()=>_j,isSourceFile:()=>la,isSourceFileFromLibrary:()=>KM,isSourceFileJS:()=>gh,isSourceFileNotJS:()=>PZe,isSourceFileNotJson:()=>T0e,isSourceMapping:()=>KAe,isSpecialPropertyDeclaration:()=>rye,isSpreadAssignment:()=>d5,isSpreadElement:()=>uE,isStatement:()=>ia,isStatementButNotDeclaration:()=>XO,isStatementOrBlock:()=>gbe,isStatementWithLocals:()=>Abe,isStatic:()=>No,isStaticModifier:()=>N7,isString:()=>Ja,isStringAKeyword:()=>WZe,isStringANonContextualKeyword:()=>m7,isStringAndEmptyAnonymousObjectIntersection:()=>aSe,isStringDoubleQuoted:()=>Cq,isStringLiteral:()=>us,isStringLiteralLike:()=>t0,isStringLiteralOrJsxExpression:()=>_be,isStringLiteralOrTemplate:()=>ASe,isStringOrNumericLiteralLike:()=>Pm,isStringOrRegularExpressionOrTemplateLiteral:()=>Zhe,isStringTextContainingNode:()=>Use,isSuperCall:()=>ik,isSuperKeyword:()=>HP,isSuperOrSuperProperty:()=>NZe,isSuperProperty:()=>nf,isSupportedSourceFileName:()=>hke,isSwitchStatement:()=>BV,isSyntaxList:()=>MB,isSyntheticExpression:()=>JYe,isSyntheticReference:()=>j7,isTagName:()=>Ohe,isTaggedTemplateExpression:()=>Dk,isTaggedTemplateTag:()=>K9e,isTemplateExpression:()=>lY,isTemplateHead:()=>vB,isTemplateLiteral:()=>P8,isTemplateLiteralKind:()=>Bx,isTemplateLiteralToken:()=>X2e,isTemplateLiteralTypeNode:()=>GYe,isTemplateLiteralTypeSpan:()=>rFe,isTemplateMiddle:()=>qke,isTemplateMiddleOrTemplateTail:()=>IU,isTemplateSpan:()=>qP,isTemplateTail:()=>pce,isTextWhiteSpaceLike:()=>hSe,isThis:()=>rw,isThisContainerOrFunctionBlock:()=>Xbe,isThisIdentifier:()=>N2,isThisInTypeQuery:()=>g7,isThisInitializedDeclaration:()=>mq,isThisInitializedObjectBindingExpression:()=>tye,isThisProperty:()=>mj,isThisTypeNode:()=>sY,isThisTypeParameter:()=>NP,isThisTypePredicate:()=>LZe,isThrowStatement:()=>bce,isToken:()=>u7,isTokenKind:()=>Jse,isTraceEnabled:()=>aD,isTransientSymbol:()=>qE,isTrivia:()=>nB,isTryStatement:()=>Ck,isTupleTypeNode:()=>yB,isTypeAlias:()=>Sj,isTypeAliasDeclaration:()=>jp,isTypeAssertionExpression:()=>aFe,isTypeDeclaration:()=>gB,isTypeElement:()=>Zy,isTypeKeyword:()=>PM,isTypeKeywordToken:()=>ife,isTypeKeywordTokenOrIdentifier:()=>EX,isTypeLiteralNode:()=>fm,isTypeNode:()=>Qr,isTypeNodeKind:()=>_le,isTypeOfExpression:()=>AB,isTypeOnlyExportDeclaration:()=>ebe,isTypeOnlyImportDeclaration:()=>RU,isTypeOnlyImportOrExportDeclaration:()=>_2,isTypeOperatorNode:()=>z7,isTypeParameterDeclaration:()=>Bl,isTypePredicateNode:()=>aY,isTypeQueryNode:()=>bB,isTypeReferenceNode:()=>X4,isTypeReferenceType:()=>$U,isTypeUsableAsPropertyName:()=>Y4,isUMDExportSymbol:()=>$q,isUnaryExpression:()=>e0e,isUnaryExpressionWithWrite:()=>sbe,isUnicodeIdentifierStart:()=>kU,isUnionTypeNode:()=>Pv,isUnparsedNode:()=>Gse,isUnparsedPrepend:()=>mFe,isUnparsedSource:()=>yk,isUnparsedTextLike:()=>Q2e,isUrl:()=>x2e,isValidBigIntString:()=>hZ,isValidESSymbolDeclaration:()=>$be,isValidTypeOnlyAliasUseSite:()=>Tv,isValueSignatureDeclaration:()=>cye,isVarAwaitUsing:()=>lj,isVarConst:()=>K8,isVarUsing:()=>cj,isVariableDeclaration:()=>na,isVariableDeclarationInVariableStatement:()=>qN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>F2,isVariableDeclarationInitializedToRequire:()=>vq,isVariableDeclarationList:()=>Ad,isVariableLike:()=>G8,isVariableLikeOrAccessor:()=>Gbe,isVariableStatement:()=>Jl,isVoidExpression:()=>R7,isWatchSet:()=>uYe,isWhileStatement:()=>UYe,isWhiteSpaceLike:()=>U3,isWhiteSpaceSingleLine:()=>qg,isWithStatement:()=>cFe,isWriteAccess:()=>D7,isWriteOnlyAccess:()=>Jq,isYieldExpression:()=>cY,jsxModeNeedsExplicitImport:()=>Sfe,keywordPart:()=>Hf,last:()=>Cr,lastOrUndefined:()=>qu,length:()=>S,libMap:()=>LY,libs:()=>YV,lineBreakPart:()=>lw,linkNamePart:()=>_Se,linkPart:()=>ffe,linkTextPart:()=>kX,listFiles:()=>q1e,loadModuleFromGlobalCache:()=>kAe,loadWithModeAwareCache:()=>CH,makeIdentifierFromModuleName:()=>Lbe,makeImport:()=>g5,makeImportIfNecessary:()=>dSe,makeStringLiteral:()=>n9,mangleScopedPackageName:()=>JB,map:()=>Vt,mapAllOrFail:()=>ra,mapDefined:()=>qi,mapDefinedEntries:()=>Fa,mapDefinedIterator:()=>eo,mapEntries:()=>ci,mapIterator:()=>zr,mapOneOrMany:()=>kfe,mapToDisplayParts:()=>Zx,matchFiles:()=>Ale,matchPatternOrExact:()=>Ble,matchedText:()=>t2e,matchesExclude:()=>TY,maybeBind:()=>Lo,maybeSetLocalizedDiagnosticMessages:()=>tke,memoize:()=>Mh,memoizeCached:()=>UCe,memoizeOne:()=>HE,memoizeWeak:()=>fqe,metadataHelper:()=>wZ,min:()=>ooe,minAndMax:()=>mke,missingFileModifiedTime:()=>K_,modifierToFlag:()=>_7,modifiersToFlags:()=>tE,moduleOptionDeclaration:()=>cde,moduleResolutionIsEqualTo:()=>kbe,moduleResolutionNameAndModeGetter:()=>yH,moduleResolutionOptionDeclarations:()=>NY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>b7,moduleResolutionUsesNodeModules:()=>_X,moduleSpecifiers:()=>Z2,moveEmitHelpers:()=>Hke,moveRangeEnd:()=>Wq,moveRangePastDecorators:()=>o5,moveRangePastModifiers:()=>iE,moveRangePos:()=>Sv,moveSyntheticComments:()=>Oke,mutateMap:()=>cB,mutateMapSkippingNewValues:()=>eD,needsParentheses:()=>AX,needsScopeMarker:()=>VU,newCaseClauseTracker:()=>VX,newPrivateEnvironment:()=>qAe,noEmitNotification:()=>mH,noEmitSubstitution:()=>xM,noTransformers:()=>c1e,noTruncationMaximumTruncationLength:()=>DZ,nodeCanBeDecorated:()=>gq,nodeHasName:()=>jO,nodeIsDecorated:()=>YN,nodeIsMissing:()=>Ql,nodeIsPresent:()=>H4,nodeIsSynthesized:()=>sl,nodeModuleNameResolver:()=>EAe,nodeModulesPathPart:()=>o_,nodeNextJsonConfigResolver:()=>_Ae,nodeOrChildIsDecorated:()=>gj,nodeOverlapsWithStartEnd:()=>rX,nodePosToString:()=>FZe,nodeSeenTracker:()=>i9,nodeStartsNewLexicalEnvironment:()=>U0e,nodeToDisplayParts:()=>Tit,noop:()=>Is,noopFileWatcher:()=>tw,normalizePath:()=>$o,normalizeSlashes:()=>q1,not:()=>X$,notImplemented:()=>ho,notImplementedResolver:()=>DQ,nullNodeConverters:()=>tce,nullParenthesizerRules:()=>ece,nullTransformationContext:()=>Dg,objectAllocator:()=>Qd,operatorPart:()=>IM,optionDeclarations:()=>a3,optionMapToObject:()=>ude,optionsAffectingProgramStructure:()=>pde,optionsForBuild:()=>Ede,optionsForWatch:()=>VB,optionsHaveChanges:()=>R8,optionsHaveModuleResolutionChanges:()=>Cbe,or:()=>dg,orderedRemoveItem:()=>gO,orderedRemoveItemAt:()=>fv,outFile:()=>y0,packageIdToPackageName:()=>ZU,packageIdToString:()=>Px,paramHelper:()=>TZ,parameterIsThisKeyword:()=>L2,parameterNamePart:()=>mSe,parseBaseNodeFactory:()=>Zce,parseBigInt:()=>pke,parseBuildCommand:()=>JQe,parseCommandLine:()=>WQe,parseCommandLineWorker:()=>Xce,parseConfigFileTextToJson:()=>tde,parseConfigFileWithSystem:()=>Ttt,parseConfigHostFromCompilerHostLike:()=>wQ,parseCustomTypeOption:()=>BY,parseIsolatedEntityName:()=>G7,parseIsolatedJSDocComment:()=>WFe,parseJSDocTypeExpressionForTests:()=>TQe,parseJsonConfigFileContent:()=>aXe,parseJsonSourceFileConfigFileContent:()=>UV,parseJsonText:()=>WV,parseListTypeOption:()=>JFe,parseNodeFactory:()=>a_,parseNodeModuleFromPath:()=>uH,parsePackageName:()=>oH,parsePseudoBigInt:()=>SP,parseValidBigInt:()=>Nle,patchWriteFileEnsuringDirectory:()=>_2e,pathContainsNodeModules:()=>q7,pathIsAbsolute:()=>SN,pathIsBareSpecifier:()=>kse,pathIsRelative:()=>om,patternText:()=>e2e,perfLogger:()=>hh,performIncrementalCompilation:()=>Mtt,performance:()=>h2e,plainJSErrors:()=>NQ,positionBelongsToNode:()=>Whe,positionIsASICandidate:()=>TX,positionIsSynthesized:()=>pg,positionsAreOnSameLine:()=>q4,preProcessFile:()=>unt,probablyUsesSemicolons:()=>YH,processCommentPragmas:()=>Uce,processPragmasIntoFields:()=>qce,processTaggedTemplateExpression:()=>i1e,programContainsEsModules:()=>cSe,programContainsModules:()=>lSe,projectReferenceIsEqualTo:()=>a0e,propKeyHelper:()=>WZ,propertyNamePart:()=>pSe,pseudoBigIntToString:()=>I2,punctuationPart:()=>ih,pushIfUnique:()=>xa,quote:()=>jM,quotePreferenceFromString:()=>afe,rangeContainsPosition:()=>MH,rangeContainsPositionExclusive:()=>zH,rangeContainsRange:()=>Vm,rangeContainsRangeExclusive:()=>q9e,rangeContainsStartEnd:()=>IH,rangeEndIsOnSameLineAsRangeStart:()=>qj,rangeEndPositionsAreOnSameLine:()=>Vye,rangeEquals:()=>zi,rangeIsOnSingleLine:()=>hk,rangeOfNode:()=>Tle,rangeOfTypeParameters:()=>Lle,rangeOverlapsWithStartEnd:()=>TM,rangeStartIsOnSameLineAsRangeEnd:()=>Hye,rangeStartPositionsAreOnSameLine:()=>Gq,readBuilderProgram:()=>GQ,readConfigFile:()=>JV,readHelper:()=>HZ,readJson:()=>EP,readJsonConfigFile:()=>qFe,readJsonOrUndefined:()=>hle,reduceEachLeadingCommentRange:()=>k2e,reduceEachTrailingCommentRange:()=>F2e,reduceLeft:()=>nn,reduceLeftIterator:()=>ue,reducePathComponents:()=>Jy,refactor:()=>a9,regExpEscape:()=>hYe,relativeComplement:()=>Wr,removeAllComments:()=>EV,removeEmitHelper:()=>HYe,removeExtension:()=>nV,removeFileExtension:()=>_h,removeIgnoredPath:()=>zQ,removeMinAndVersionNumbers:()=>soe,removeOptionality:()=>iSe,removePrefix:()=>yN,removeSuffix:()=>D8,removeTrailingDirectorySeparator:()=>mv,repeatString:()=>KH,replaceElement:()=>qd,resolutionExtensionIsTSOrJson:()=>FP,resolveConfigFileProjectName:()=>ahe,resolveJSModule:()=>pAe,resolveLibrary:()=>KY,resolveModuleName:()=>WB,resolveModuleNameFromCache:()=>KXe,resolvePackageNameToPackageJson:()=>xde,resolvePath:()=>kx,resolveProjectReferencePath:()=>YB,resolveTripleslashReference:()=>bQ,resolveTypeReferenceDirective:()=>hAe,resolvingEmptyArray:()=>_Z,restHelper:()=>RZ,returnFalse:()=>cg,returnNoopFileWatcher:()=>iw,returnTrue:()=>J3,returnUndefined:()=>hv,returnsPromise:()=>$fe,runInitializersHelper:()=>NZ,sameFlatMap:()=>z0,sameMap:()=>Lu,sameMapping:()=>Net,scanShebangTrivia:()=>wse,scanTokenAtPosition:()=>Hbe,scanner:()=>nh,screenStartingMessageCodes:()=>WQ,semanticDiagnosticsOptionDeclarations:()=>hde,serializeCompilerOptions:()=>ade,server:()=>Qct,servicesVersion:()=>iBe,setCommentRange:()=>Bc,setConfigFileInOptions:()=>sde,setConstantValue:()=>Vke,setEachParent:()=>pB,setEmitFlags:()=>Zn,setFunctionNameHelper:()=>GZ,setGetSourceFileAsHashVersioned:()=>KQ,setIdentifierAutoGenerate:()=>xV,setIdentifierGeneratedImportReference:()=>Gke,setIdentifierTypeArguments:()=>l5,setInternalEmitFlags:()=>_V,setLocalizedDiagnosticMessages:()=>eke,setModuleDefaultHelper:()=>UZ,setNodeFlags:()=>_ke,setObjectAllocator:()=>Xye,setOriginalNode:()=>su,setParent:()=>ks,setParentRecursive:()=>Vx,setPrivateIdentifier:()=>Bk,setSnippetElement:()=>lce,setSourceMapRange:()=>As,setStackTraceLimit:()=>Pqe,setStartsOnNewLine:()=>FZ,setSyntheticLeadingComments:()=>Nv,setSyntheticTrailingComments:()=>A7,setSys:()=>Oqe,setSysLog:()=>g2e,setTextRange:()=>Pt,setTextRangeEnd:()=>mB,setTextRangePos:()=>BP,setTextRangePosEnd:()=>t_,setTextRangePosWidth:()=>wP,setTokenSourceMapRange:()=>Rke,setTypeNode:()=>Kke,setUILocale:()=>YCe,setValueDeclaration:()=>Fj,shouldAllowImportingTsExtension:()=>$B,shouldPreserveConstEnums:()=>fk,shouldResolveJsRequire:()=>eZ,shouldUseUriStyleNodeCoreModules:()=>OX,showModuleSpecifier:()=>$ye,signatureHasLiteralTypes:()=>Ode,signatureHasRestParameter:()=>th,signatureToDisplayParts:()=>mfe,single:()=>bd,singleElementArray:()=>Hy,singleIterator:()=>qa,singleOrMany:()=>F0,singleOrUndefined:()=>Aa,skipAlias:()=>X1,skipAssertions:()=>lQe,skipConstraint:()=>nfe,skipOuterExpressions:()=>Dc,skipParentheses:()=>l0,skipPartiallyEmittedExpressions:()=>Np,skipTrivia:()=>gs,skipTypeChecking:()=>AP,skipTypeParentheses:()=>j0e,skipWhile:()=>n2e,sliceAfter:()=>wle,some:()=>Oe,sort:()=>Ph,sortAndDeduplicate:()=>pi,sortAndDeduplicateDiagnostics:()=>A8,sourceFileAffectingCompilerOptions:()=>PY,sourceFileMayBeEmitted:()=>p7,sourceMapCommentRegExp:()=>nQ,sourceMapCommentRegExpDontCareLineStart:()=>Jde,spacePart:()=>$l,spanMap:()=>Hl,spreadArrayHelper:()=>KZ,stableSort:()=>oc,startEndContainsRange:()=>Khe,startEndOverlapsWithStartEnd:()=>aX,startOnNewLine:()=>vh,startTracing:()=>f2e,startsWith:()=>Pa,startsWithDirectory:()=>Ase,startsWithUnderscore:()=>Afe,startsWithUseStrict:()=>AFe,stringContainsAt:()=>MSe,stringToToken:()=>f2,stripQuotes:()=>$4,supportedDeclarationExtensions:()=>dV,supportedJSExtensions:()=>Yle,supportedJSExtensionsFlat:()=>_B,supportedLocaleDirectories:()=>r0e,supportedTSExtensions:()=>EB,supportedTSExtensionsFlat:()=>Zle,supportedTSImplementationExtensions:()=>hV,suppressLeadingAndTrailingTrivia:()=>Kf,suppressLeadingTrivia:()=>Efe,suppressTrailingTrivia:()=>ySe,symbolEscapedNameNoDefault:()=>xX,symbolName:()=>lc,symbolNameNoDefault:()=>DX,symbolPart:()=>fSe,symbolToDisplayParts:()=>RM,syntaxMayBeASICandidate:()=>Nfe,syntaxRequiresTrailingSemicolonOrASI:()=>wX,sys:()=>c1,sysLog:()=>bO,tagNamesAreEquivalent:()=>Vv,takeWhile:()=>tU,targetOptionDeclaration:()=>XV,templateObjectHelper:()=>VZ,testFormatSettings:()=>H9e,textChangeRangeIsUnchanged:()=>N2e,textChangeRangeNewSpan:()=>MN,textChanges:()=>iu,textOrKeywordPart:()=>hfe,textPart:()=>Km,textRangeContainsPositionInclusive:()=>IO,textSpanContainsPosition:()=>Nse,textSpanContainsTextSpan:()=>B2e,textSpanEnd:()=>Ec,textSpanIntersection:()=>L2e,textSpanIntersectsWith:()=>wU,textSpanIntersectsWithPosition:()=>T2e,textSpanIntersectsWithTextSpan:()=>aZe,textSpanIsEmpty:()=>S2e,textSpanOverlap:()=>w2e,textSpanOverlapsWith:()=>rZe,textSpansEqual:()=>sw,textToKeywordObj:()=>MO,timestamp:()=>G0,toArray:()=>YA,toBuilderFileEmit:()=>Q7e,toBuilderStateFileInfoForMultiEmit:()=>Y7e,toEditorSettings:()=>gK,toFileNameLowerCase:()=>$g,toLowerCase:()=>$Ce,toPath:()=>J0,toProgramEmitPending:()=>X7e,tokenIsIdentifierOrKeyword:()=>fh,tokenIsIdentifierOrKeywordOrGreaterThan:()=>b2e,tokenToString:()=>Uo,trace:()=>Sa,tracing:()=>Gn,tracingEnabled:()=>DO,transform:()=>nrt,transformClassFields:()=>r7e,transformDeclarations:()=>s1e,transformECMAScriptModule:()=>a1e,transformES2015:()=>x7e,transformES2016:()=>D7e,transformES2017:()=>l7e,transformES2018:()=>c7e,transformES2019:()=>d7e,transformES2020:()=>h7e,transformES2021:()=>f7e,transformES5:()=>v7e,transformESDecorators:()=>s7e,transformESNext:()=>m7e,transformGenerators:()=>C7e,transformJsx:()=>_7e,transformLegacyDecorators:()=>o7e,transformModule:()=>r1e,transformNamedEvaluation:()=>Vf,transformNodeModule:()=>y7e,transformNodes:()=>pH,transformSystemModule:()=>b7e,transformTypeScript:()=>u7e,transpile:()=>hnt,transpileModule:()=>e8e,transpileOptionValueCompilerOptions:()=>gde,tryAddToSet:()=>r0,tryAndIgnoreErrors:()=>PX,tryCast:()=>ur,tryDirectoryExists:()=>NX,tryExtractTSExtension:()=>Kq,tryFileExists:()=>QH,tryGetClassExtendingExpressionWithTypeArguments:()=>sle,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>lle,tryGetDirectories:()=>LX,tryGetExtensionFromPath:()=>t3,tryGetImportFromModuleSpecifier:()=>Aj,tryGetJSDocSatisfiesTypeNode:()=>gZ,tryGetModuleNameFromFile:()=>IV,tryGetModuleSpecifierFromDeclaration:()=>Z8,tryGetNativePerformanceHooks:()=>l2e,tryGetPropertyAccessOrIdentifierToString:()=>Uj,tryGetPropertyNameOfBindingOrAssignmentElement:()=>yY,tryGetSourceMappingURL:()=>VAe,tryGetTextOfPropertyName:()=>UN,tryIOAndConsumeErrors:()=>MX,tryParsePattern:()=>fB,tryParsePatterns:()=>lZ,tryParseRawSourceMap:()=>Wde,tryReadDirectory:()=>xfe,tryReadFile:()=>rM,tryRemoveDirectoryPrefix:()=>yle,tryRemoveExtension:()=>fke,tryRemovePrefix:()=>doe,tryRemoveSuffix:()=>XCe,typeAcquisitionDeclarations:()=>eH,typeAliasNamePart:()=>gSe,typeDirectiveIsEqualTo:()=>Fbe,typeKeywords:()=>HX,typeParameterNamePart:()=>ESe,typeReferenceResolutionNameAndModeGetter:()=>LQ,typeToDisplayParts:()=>$H,unchangedPollThresholds:()=>yO,unchangedTextChangeRange:()=>tj,unescapeLeadingUnderscores:()=>Yr,unmangleScopedPackageName:()=>lH,unorderedRemoveItem:()=>Vy,unorderedRemoveItemAt:()=>loe,unreachableCodeIsError:()=>uke,unusedLabelIsError:()=>rke,unwrapInnermostStatementOfLabel:()=>A0e,updateErrorForNoInputFiles:()=>wY,updateLanguageServiceSourceFile:()=>wme,updateMissingFilePathsWatch:()=>g1e,updatePackageJsonWatch:()=>utt,updateResolutionField:()=>HB,updateSharedExtendedConfigFileWatcher:()=>vQ,updateSourceFile:()=>$ce,updateWatchingWildcardDirectories:()=>_H,usesExtensionsOnImports:()=>dke,usingSingleLineStringWriter:()=>GN,utf16EncodeAsString:()=>F8,validateLocaleAndSetLanguage:()=>sZe,valuesHelper:()=>JZ,version:()=>_,versionMajorMinor:()=>g,visitArray:()=>dH,visitCommaListElements:()=>hH,visitEachChild:()=>rn,visitFunctionBody:()=>Om,visitIterationBody:()=>Ih,visitLexicalEnvironment:()=>iQ,visitNode:()=>yt,visitNodes:()=>kn,visitParameterList:()=>xc,walkUpBindingElementsAndPatterns:()=>S8,walkUpLexicalEnvironments:()=>UAe,walkUpOuterExpressions:()=>SFe,walkUpParenthesizedExpressions:()=>i5,walkUpParenthesizedTypes:()=>Lj,walkUpParenthesizedTypesAndGetParentAndChild:()=>dye,whitespaceOrMapCommentRegExp:()=>uQ,writeCommentRange:()=>sB,writeFile:()=>cP,writeFileEnsuringDirectories:()=>nle,zipWith:()=>re});var edt=o({"src/typescript/_namespaces/ts.ts"(){Bo(),BH(),rr(),Xv(),lXt()}}),cXt=c({"src/typescript/typescript.ts"(t,u){edt(),edt(),typeof console<"u"&&(H.loggingHost={log(s,d){switch(s){case 1:return console.error(d);case 2:return console.warn(d);case 3:return console.log(d);case 4:return console.log(d)}}}),u.exports=Xct}});return cXt()})();r.exports&&(r.exports=i)})(O6t);var Ahi=O6t.exports;const Qpt=bhi(Ahi);class yGe{constructor(e,i){Oc(this,"id");Oc(this,"name");Oc(this,"columns",[]);Oc(this,"settings");this.name=e,this.settings=i}loadFromObj(e){this.name=e.name,this.settings=e.settings,this.columns=e.columns.map(i=>this.prepareColumn(i)),this.processMiddlewareHandlers()}toObj(){return{name:this.name,columns:this.columns,settings:this.settings}}removeColumn(e){this.columns.splice(this.columns.findIndex(i=>i.id===e),1)}prepareColumn(e){let i=Qpt.transpile("return "+e.handlerTsCode);return e.handler=new Function(i)(),e}processMiddlewareHandlers(){this.settings.middlewares=this.settings.middlewares.map(e=>{let i=Qpt.transpile("return "+e.handlerTsCode);return e.handler=new Function(i)(),e})}swapElement(e,i){var n=this.columns[e];this.columns[e]=this.columns[i],this.columns[i]=n}move(e,i){let n=this.columns.findIndex(o=>o.id===e),a=i>0?n+1:n-1;this.swapElement(n,a)}add(e){e.idx=this.columns.length===0?0:this.columns.length,e.id=Math.random().toString().substring(2,8),e.width=e.width||150,e.handlerTsCode&&(e=this.prepareColumn(e)),this.columns.push(e)}update(e){e=this.prepareColumn(e);let i=this.columns.findIndex(n=>n.id===e.id);this.columns[i]=e}getColumn(e){return this.columns.find(i=>i.id===e)}}const Xpt=()=>({read:0,starred:0,unread:0}),GT=R6t("filter",()=>{const r=ds({read:!1,unread:!1,starred:!1}),e=ds({...Xpt()}),i=(h,g)=>{e.value[h]||(e.value[h]=0),e.value[h]+=g},n=h=>{r.value[h]=!r.value[h]},a=()=>{e.value={...Xpt()}},o=()=>{for(let h in r.value)r.value[h]=!1},c=j6(()=>Object.entries(r.value).filter(([g,_])=>_).map(g=>g[0]));return{filters:e,filterToggle:r,enabledFilters:c,reset:a,resetToggles:o,changeFilter:i,toggleFilter:n}});class Shi{constructor(){Oc(this,"headers",{});Oc(this,"onRequestStart",null);Oc(this,"onRequestEnd",null)}setHeader(e,i){this.headers[e]=i}setAuthToken(e){e&&this.setHeader("logdy-client-id",e)}async sendGet(e){let i={};this.onRequestStart&&(i=this.onRequestStart()||{});let n=await fetch(window.location.pathname+"api/"+e,{method:"GET",headers:{...this.headers,...i}});return this.onRequestEnd&&this.onRequestEnd(),{status:n.status,headers:n.headers,json:n.headers.get("content-type")=="application/json"?await n.json():{},body:n.bodyUsed?"":await n.text()}}async sendPost(e,i){let n={};this.onRequestStart&&(n=this.onRequestStart()||{});let a=await fetch("api/"+e,{method:"POST",body:i?JSON.stringify(i):null,headers:{"Content-Type":"application/json",...this.headers,...n}});return this.onRequestEnd&&this.onRequestEnd(),{status:a.status,headers:a.headers,json:a.headers.get("content-type")=="application/json"?await a.json():{},body:a.bodyUsed?"":await a.text()}}async resume(){await this.sendGet("client/set-status?status=following")}async resumeFromCursor(){await this.sendGet("client/set-status?status=following&from_cursor=true")}async pause(){await this.sendGet("client/set-status?status=stopped")}async clientStatus(){return this.sendGet("client/check-status")}async peek(e,i){return this.sendPost("client/peek-log",{idxs:[e,i]})}async load(e,i){return this.sendGet(`client/load?start=${e+1}&count=${i}`)}}const $S=new Shi;function LI(r){return r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Bhi(r,e){return new URLSearchParams(r).get(e)}const whi=async()=>{const r=new Go,e=await WebAssembly.instantiateStreaming(fetch("/main.wasm"),r.importObject);r.run(e.instance)},Thi=r=>{console.log("Breser query:",r);let e=GO_EXPR_setExpression(r);if(e&&e.error)return console.log("Error while setting Breser query",e),e.error},Lhi=r=>GO_EXPR_runQuery(JSON.stringify(r));//! moment.js +//! version : 2.30.1 +//! authors : Tim Wood, Iskren Chernev, Moment.js contributors +//! license : MIT +//! momentjs.com +var J6t;function lo(){return J6t.apply(null,arguments)}function Nhi(r){J6t=r}function Ay(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function GI(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function B1(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function kGe(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var e;for(e in r)if(B1(r,e))return!1;return!0}function Y5(r){return r===void 0}function t8(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function dae(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function $6t(r,e){var i=[],n,a=r.length;for(n=0;n>>0,n;for(n=0;n0)for(i=0;i=0;return(o?i?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var BGe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C_e=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cIe={},QG={};function h0(r,e,i,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),r&&(QG[r]=a),e&&(QG[e[0]]=function(){return AA(a.apply(this,arguments),e[1],e[2])}),i&&(QG[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),r)})}function Rhi(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function Ohi(r){var e=r.match(BGe),i,n;for(i=0,n=e.length;i=0&&C_e.test(r);)r=r.replace(C_e,n),C_e.lastIndex=0,i-=1;return r}var jhi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Vhi(r){var e=this._longDateFormat[r],i=this._longDateFormat[r.toUpperCase()];return e||!i?e:(this._longDateFormat[r]=i.match(BGe).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[r])}var Hhi="Invalid date";function Khi(){return this._invalidDate}var Whi="%d",Ghi=/\d{1,2}/;function Jhi(r){return this._ordinal.replace("%d",r)}var $hi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Uhi(r,e,i,n){var a=this._relativeTime[i];return HA(a)?a(r,e,i,n):a.replace(/%d/i,r)}function qhi(r,e){var i=this._relativeTime[r>0?"future":"past"];return HA(i)?i(e):i.replace(/%s/i,e)}var igt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function a2(r){return typeof r=="string"?igt[r]||igt[r.toLowerCase()]:void 0}function wGe(r){var e={},i,n;for(n in r)B1(r,n)&&(i=a2(n),i&&(e[i]=r[n]));return e}var Zhi={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Yhi(r){var e=[],i;for(i in r)B1(r,i)&&e.push({unit:i,priority:Zhi[i]});return e.sort(function(n,a){return n.priority-a.priority}),e}var Y6t=/\d/,nv=/\d\d/,Q6t=/\d{3}/,TGe=/\d{4}/,D6e=/[+-]?\d{6}/,rm=/\d\d?/,X6t=/\d\d\d\d?/,evt=/\d\d\d\d\d\d?/,x6e=/\d{1,3}/,LGe=/\d{1,4}/,v6e=/[+-]?\d{1,6}/,v$=/\d+/,C6e=/[+-]?\d+/,Qhi=/Z|[+-]\d\d:?\d\d/gi,b6e=/Z|[+-]\d\d(?::?\d\d)?/gi,Xhi=/[+-]?\d+(\.\d{1,3})?/,fae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,C$=/^[1-9]\d?/,NGe=/^([1-9]\d|\d)/,$De;$De={};function ps(r,e,i){$De[r]=HA(e)?e:function(n,a){return n&&i?i:e}}function efi(r,e){return B1($De,r)?$De[r](e._strict,e._locale):new RegExp(tfi(r))}function tfi(r){return US(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,i,n,a,o){return i||n||a||o}))}function US(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function KC(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function xd(r){var e=+r,i=0;return e!==0&&isFinite(e)&&(i=KC(e)),i}var uje={};function Qh(r,e){var i,n=e,a;for(typeof r=="string"&&(r=[r]),t8(e)&&(n=function(o,c){c[e]=xd(o)}),a=r.length,i=0;i68?1900:2e3)};var tvt=b$("FullYear",!0);function rfi(){return y6e(this.year())}function b$(r,e){return function(i){return i!=null?(ivt(this,r,i),lo.updateOffset(this,e),this):wue(this,r)}}function wue(r,e){if(!r.isValid())return NaN;var i=r._d,n=r._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function ivt(r,e,i){var n,a,o,c,h;if(!(!r.isValid()||isNaN(i))){switch(n=r._d,a=r._isUTC,e){case"Milliseconds":return void(a?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(a?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(a?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(a?n.setUTCHours(i):n.setHours(i));case"Date":return void(a?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}o=i,c=r.month(),h=r.date(),h=h===29&&c===1&&!y6e(o)?28:h,a?n.setUTCFullYear(o,c,h):n.setFullYear(o,c,h)}}function afi(r){return r=a2(r),HA(this[r])?this[r]():this}function ofi(r,e){if(typeof r=="object"){r=wGe(r);var i=Yhi(r),n,a=i.length;for(n=0;n=0?(h=new Date(r+400,e,i,n,a,o,c),isFinite(h.getFullYear())&&h.setFullYear(r)):h=new Date(r,e,i,n,a,o,c),h}function Tue(r){var e,i;return r<100&&r>=0?(i=Array.prototype.slice.call(arguments),i[0]=r+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(r)):e=new Date(Date.UTC.apply(null,arguments)),e}function UDe(r,e,i){var n=7+e-i,a=(7+Tue(r,0,n).getUTCDay()-e)%7;return-a+n-1}function svt(r,e,i,n,a){var o=(7+i-n)%7,c=UDe(r,n,a),h=1+7*(e-1)+o+c,g,_;return h<=0?(g=r-1,_=Rne(g)+h):h>Rne(r)?(g=r+1,_=h-Rne(r)):(g=r,_=h),{year:g,dayOfYear:_}}function Lue(r,e,i){var n=UDe(r.year(),e,i),a=Math.floor((r.dayOfYear()-n-1)/7)+1,o,c;return a<1?(c=r.year()-1,o=a+qS(c,e,i)):a>qS(r.year(),e,i)?(o=a-qS(r.year(),e,i),c=r.year()+1):(c=r.year(),o=a),{week:o,year:c}}function qS(r,e,i){var n=UDe(r,e,i),a=UDe(r+1,e,i);return(Rne(r)-n+a)/7}h0("w",["ww",2],"wo","week");h0("W",["WW",2],"Wo","isoWeek");ps("w",rm,C$);ps("ww",rm,nv);ps("W",rm,C$);ps("WW",rm,nv);mae(["w","ww","W","WW"],function(r,e,i,n){e[n.substr(0,1)]=xd(r)});function xfi(r){return Lue(r,this._week.dow,this._week.doy).week}var vfi={dow:0,doy:6};function Cfi(){return this._week.dow}function bfi(){return this._week.doy}function yfi(r){var e=this.localeData().week(this);return r==null?e:this.add((r-e)*7,"d")}function kfi(r){var e=Lue(this,1,4).week;return r==null?e:this.add((r-e)*7,"d")}h0("d",0,"do","day");h0("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});h0("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});h0("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});h0("e",0,0,"weekday");h0("E",0,0,"isoWeekday");ps("d",rm);ps("e",rm);ps("E",rm);ps("dd",function(r,e){return e.weekdaysMinRegex(r)});ps("ddd",function(r,e){return e.weekdaysShortRegex(r)});ps("dddd",function(r,e){return e.weekdaysRegex(r)});mae(["dd","ddd","dddd"],function(r,e,i,n){var a=i._locale.weekdaysParse(r,n,i._strict);a!=null?e.d=a:pc(i).invalidWeekday=r});mae(["d","e","E"],function(r,e,i,n){e[n]=xd(r)});function Ffi(r,e){return typeof r!="string"?r:isNaN(r)?(r=e.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function Afi(r,e){return typeof r=="string"?e.weekdaysParse(r)%7||7:isNaN(r)?null:r}function MGe(r,e){return r.slice(e,7).concat(r.slice(0,e))}var Sfi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),lvt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bfi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wfi=fae,Tfi=fae,Lfi=fae;function Nfi(r,e){var i=Ay(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return r===!0?MGe(i,this._week.dow):r?i[r.day()]:i}function Pfi(r){return r===!0?MGe(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Mfi(r){return r===!0?MGe(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function zfi(r,e,i){var n,a,o,c=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=VA([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?e==="dddd"?(a=Ep.call(this._weekdaysParse,c),a!==-1?a:null):e==="ddd"?(a=Ep.call(this._shortWeekdaysParse,c),a!==-1?a:null):(a=Ep.call(this._minWeekdaysParse,c),a!==-1?a:null):e==="dddd"?(a=Ep.call(this._weekdaysParse,c),a!==-1||(a=Ep.call(this._shortWeekdaysParse,c),a!==-1)?a:(a=Ep.call(this._minWeekdaysParse,c),a!==-1?a:null)):e==="ddd"?(a=Ep.call(this._shortWeekdaysParse,c),a!==-1||(a=Ep.call(this._weekdaysParse,c),a!==-1)?a:(a=Ep.call(this._minWeekdaysParse,c),a!==-1?a:null)):(a=Ep.call(this._minWeekdaysParse,c),a!==-1||(a=Ep.call(this._weekdaysParse,c),a!==-1)?a:(a=Ep.call(this._shortWeekdaysParse,c),a!==-1?a:null))}function Ifi(r,e,i){var n,a,o;if(this._weekdaysParseExact)return zfi.call(this,r,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=VA([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&e==="dddd"&&this._fullWeekdaysParse[n].test(r))return n;if(i&&e==="ddd"&&this._shortWeekdaysParse[n].test(r))return n;if(i&&e==="dd"&&this._minWeekdaysParse[n].test(r))return n;if(!i&&this._weekdaysParse[n].test(r))return n}}function Rfi(r){if(!this.isValid())return r!=null?this:NaN;var e=wue(this,"Day");return r!=null?(r=Ffi(r,this.localeData()),this.add(r-e,"d")):e}function Ofi(r){if(!this.isValid())return r!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return r==null?e:this.add(r-e,"d")}function jfi(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var e=Afi(r,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Vfi(r){return this._weekdaysParseExact?(B1(this,"_weekdaysRegex")||zGe.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(B1(this,"_weekdaysRegex")||(this._weekdaysRegex=wfi),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Hfi(r){return this._weekdaysParseExact?(B1(this,"_weekdaysRegex")||zGe.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(B1(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Tfi),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kfi(r){return this._weekdaysParseExact?(B1(this,"_weekdaysRegex")||zGe.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(B1(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lfi),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zGe(){function r(x,y){return y.length-x.length}var e=[],i=[],n=[],a=[],o,c,h,g,_;for(o=0;o<7;o++)c=VA([2e3,1]).day(o),h=US(this.weekdaysMin(c,"")),g=US(this.weekdaysShort(c,"")),_=US(this.weekdays(c,"")),e.push(h),i.push(g),n.push(_),a.push(h),a.push(g),a.push(_);e.sort(r),i.sort(r),n.sort(r),a.sort(r),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function IGe(){return this.hours()%12||12}function Wfi(){return this.hours()||24}h0("H",["HH",2],0,"hour");h0("h",["hh",2],0,IGe);h0("k",["kk",2],0,Wfi);h0("hmm",0,0,function(){return""+IGe.apply(this)+AA(this.minutes(),2)});h0("hmmss",0,0,function(){return""+IGe.apply(this)+AA(this.minutes(),2)+AA(this.seconds(),2)});h0("Hmm",0,0,function(){return""+this.hours()+AA(this.minutes(),2)});h0("Hmmss",0,0,function(){return""+this.hours()+AA(this.minutes(),2)+AA(this.seconds(),2)});function cvt(r,e){h0(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}cvt("a",!0);cvt("A",!1);function dvt(r,e){return e._meridiemParse}ps("a",dvt);ps("A",dvt);ps("H",rm,NGe);ps("h",rm,C$);ps("k",rm,C$);ps("HH",rm,nv);ps("hh",rm,nv);ps("kk",rm,nv);ps("hmm",X6t);ps("hmmss",evt);ps("Hmm",X6t);ps("Hmmss",evt);Qh(["H","HH"],Kg);Qh(["k","kk"],function(r,e,i){var n=xd(r);e[Kg]=n===24?0:n});Qh(["a","A"],function(r,e,i){i._isPm=i._locale.isPM(r),i._meridiem=r});Qh(["h","hh"],function(r,e,i){e[Kg]=xd(r),pc(i).bigHour=!0});Qh("hmm",function(r,e,i){var n=r.length-2;e[Kg]=xd(r.substr(0,n)),e[dy]=xd(r.substr(n)),pc(i).bigHour=!0});Qh("hmmss",function(r,e,i){var n=r.length-4,a=r.length-2;e[Kg]=xd(r.substr(0,n)),e[dy]=xd(r.substr(n,2)),e[PS]=xd(r.substr(a)),pc(i).bigHour=!0});Qh("Hmm",function(r,e,i){var n=r.length-2;e[Kg]=xd(r.substr(0,n)),e[dy]=xd(r.substr(n))});Qh("Hmmss",function(r,e,i){var n=r.length-4,a=r.length-2;e[Kg]=xd(r.substr(0,n)),e[dy]=xd(r.substr(n,2)),e[PS]=xd(r.substr(a))});function Gfi(r){return(r+"").toLowerCase().charAt(0)==="p"}var Jfi=/[ap]\.?m?\.?/i,$fi=b$("Hours",!0);function Ufi(r,e,i){return r>11?i?"pm":"PM":i?"am":"AM"}var hvt={calendar:zhi,longDateFormat:jhi,invalidDate:Hhi,ordinal:Whi,dayOfMonthOrdinalParse:Ghi,relativeTime:$hi,months:lfi,monthsShort:nvt,week:vfi,weekdays:Sfi,weekdaysMin:Bfi,weekdaysShort:lvt,meridiemParse:Jfi},ym={},wie={},Nue;function qfi(r,e){var i,n=Math.min(r.length,e.length);for(i=0;i0;){if(a=k6e(o.slice(0,i).join("-")),a)return a;if(n&&n.length>=i&&qfi(o,n)>=i-1)break;i--}e++}return Nue}function Yfi(r){return!!(r&&r.match("^[^/\\\\]*$"))}function k6e(r){var e=null,i;if(ym[r]===void 0&&typeof module<"u"&&module&&module.exports&&Yfi(r))try{e=Nue._abbr,i=require,i("./locale/"+r),DL(e)}catch{ym[r]=null}return ym[r]}function DL(r,e){var i;return r&&(Y5(e)?i=d8(r):i=RGe(r,e),i?Nue=i:typeof console<"u"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),Nue._abbr}function RGe(r,e){if(e!==null){var i,n=hvt;if(e.abbr=r,ym[r]!=null)q6t("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ym[r]._config;else if(e.parentLocale!=null)if(ym[e.parentLocale]!=null)n=ym[e.parentLocale]._config;else if(i=k6e(e.parentLocale),i!=null)n=i._config;else return wie[e.parentLocale]||(wie[e.parentLocale]=[]),wie[e.parentLocale].push({name:r,config:e}),null;return ym[r]=new SGe(ije(n,e)),wie[r]&&wie[r].forEach(function(a){RGe(a.name,a.config)}),DL(r),ym[r]}else return delete ym[r],null}function Qfi(r,e){if(e!=null){var i,n,a=hvt;ym[r]!=null&&ym[r].parentLocale!=null?ym[r].set(ije(ym[r]._config,e)):(n=k6e(r),n!=null&&(a=n._config),e=ije(a,e),n==null&&(e.abbr=r),i=new SGe(e),i.parentLocale=ym[r],ym[r]=i),DL(r)}else ym[r]!=null&&(ym[r].parentLocale!=null?(ym[r]=ym[r].parentLocale,r===DL()&&DL(r)):ym[r]!=null&&delete ym[r]);return ym[r]}function d8(r){var e;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return Nue;if(!Ay(r)){if(e=k6e(r),e)return e;r=[r]}return Zfi(r)}function Xfi(){return nje(ym)}function OGe(r){var e,i=r._a;return i&&pc(r).overflow===-2&&(e=i[NS]<0||i[NS]>11?NS:i[eA]<1||i[eA]>PGe(i[j3],i[NS])?eA:i[Kg]<0||i[Kg]>24||i[Kg]===24&&(i[dy]!==0||i[PS]!==0||i[NI]!==0)?Kg:i[dy]<0||i[dy]>59?dy:i[PS]<0||i[PS]>59?PS:i[NI]<0||i[NI]>999?NI:-1,pc(r)._overflowDayOfYear&&(eeA)&&(e=eA),pc(r)._overflowWeeks&&e===-1&&(e=nfi),pc(r)._overflowWeekday&&e===-1&&(e=ufi),pc(r).overflow=e),r}var emi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tmi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,imi=/Z|[+-]\d\d(?::?\d\d)?/,b_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dIe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],nmi=/^\/?Date\((-?\d+)/i,umi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,rmi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fvt(r){var e,i,n=r._i,a=emi.exec(n)||tmi.exec(n),o,c,h,g,_=b_e.length,x=dIe.length;if(a){for(pc(r).iso=!0,e=0,i=_;eRne(c)||r._dayOfYear===0)&&(pc(r)._overflowDayOfYear=!0),i=Tue(c,0,r._dayOfYear),r._a[NS]=i.getUTCMonth(),r._a[eA]=i.getUTCDate()),e=0;e<3&&r._a[e]==null;++e)r._a[e]=n[e]=a[e];for(;e<7;e++)r._a[e]=n[e]=r._a[e]==null?e===2?1:0:r._a[e];r._a[Kg]===24&&r._a[dy]===0&&r._a[PS]===0&&r._a[NI]===0&&(r._nextDay=!0,r._a[Kg]=0),r._d=(r._useUTC?Tue:Dfi).apply(null,n),o=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Kg]=24),r._w&&typeof r._w.d<"u"&&r._w.d!==o&&(pc(r).weekdayMismatch=!0)}}function fmi(r){var e,i,n,a,o,c,h,g,_;e=r._w,e.GG!=null||e.W!=null||e.E!=null?(o=1,c=4,i=mG(e.GG,r._a[j3],Lue(um(),1,4).year),n=mG(e.W,1),a=mG(e.E,1),(a<1||a>7)&&(g=!0)):(o=r._locale._week.dow,c=r._locale._week.doy,_=Lue(um(),o,c),i=mG(e.gg,r._a[j3],_.year),n=mG(e.w,_.week),e.d!=null?(a=e.d,(a<0||a>6)&&(g=!0)):e.e!=null?(a=e.e+o,(e.e<0||e.e>6)&&(g=!0)):a=o),n<1||n>qS(i,o,c)?pc(r)._overflowWeeks=!0:g!=null?pc(r)._overflowWeekday=!0:(h=svt(i,n,a,o,c),r._a[j3]=h.year,r._dayOfYear=h.dayOfYear)}lo.ISO_8601=function(){};lo.RFC_2822=function(){};function VGe(r){if(r._f===lo.ISO_8601){fvt(r);return}if(r._f===lo.RFC_2822){mvt(r);return}r._a=[],pc(r).empty=!0;var e=""+r._i,i,n,a,o,c,h=e.length,g=0,_,x;for(a=Z6t(r._f,r._locale).match(BGe)||[],x=a.length,i=0;i0&&pc(r).unusedInput.push(c),e=e.slice(e.indexOf(n)+n.length),g+=n.length),QG[o]?(n?pc(r).empty=!1:pc(r).unusedTokens.push(o),ifi(o,n,r)):r._strict&&!n&&pc(r).unusedTokens.push(o);pc(r).charsLeftOver=h-g,e.length>0&&pc(r).unusedInput.push(e),r._a[Kg]<=12&&pc(r).bigHour===!0&&r._a[Kg]>0&&(pc(r).bigHour=void 0),pc(r).parsedDateParts=r._a.slice(0),pc(r).meridiem=r._meridiem,r._a[Kg]=mmi(r._locale,r._a[Kg],r._meridiem),_=pc(r).era,_!==null&&(r._a[j3]=r._locale.erasConvertYear(_,r._a[j3])),jGe(r),OGe(r)}function mmi(r,e,i){var n;return i==null?e:r.meridiemHour!=null?r.meridiemHour(e,i):(r.isPM!=null&&(n=r.isPM(i),n&&e<12&&(e+=12),!n&&e===12&&(e=0)),e)}function pmi(r){var e,i,n,a,o,c,h=!1,g=r._f.length;if(g===0){pc(r).invalidFormat=!0,r._d=new Date(NaN);return}for(a=0;athis?this:r:_6e()});function Evt(r,e){var i,n;if(e.length===1&&Ay(e[0])&&(e=e[0]),!e.length)return um();for(i=e[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zmi(){if(!Y5(this._isDSTShifted))return this._isDSTShifted;var r={},e;return AGe(r,this),r=pvt(r),r._a?(e=r._isUTC?VA(r._a):um(r._a),this._isDSTShifted=this.isValid()&&Ami(r._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Imi(){return this.isValid()?!this._isUTC:!1}function Rmi(){return this.isValid()?this._isUTC:!1}function Dvt(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Omi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jmi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function My(r,e){var i=r,n=null,a,o,c;return Y3e(r)?i={ms:r._milliseconds,d:r._days,M:r._months}:t8(r)||!isNaN(+r)?(i={},e?i[e]=+r:i.milliseconds=+r):(n=Omi.exec(r))?(a=n[1]==="-"?-1:1,i={y:0,d:xd(n[eA])*a,h:xd(n[Kg])*a,m:xd(n[dy])*a,s:xd(n[PS])*a,ms:xd(rje(n[NI]*1e3))*a}):(n=jmi.exec(r))?(a=n[1]==="-"?-1:1,i={y:Zz(n[2],a),M:Zz(n[3],a),w:Zz(n[4],a),d:Zz(n[5],a),h:Zz(n[6],a),m:Zz(n[7],a),s:Zz(n[8],a)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(c=Vmi(um(i.from),um(i.to)),i={},i.ms=c.milliseconds,i.M=c.months),o=new F6e(i),Y3e(r)&&B1(r,"_locale")&&(o._locale=r._locale),Y3e(r)&&B1(r,"_isValid")&&(o._isValid=r._isValid),o}My.fn=F6e.prototype;My.invalid=Fmi;function Zz(r,e){var i=r&&parseFloat(r.replace(",","."));return(isNaN(i)?0:i)*e}function ugt(r,e){var i={};return i.months=e.month()-r.month()+(e.year()-r.year())*12,r.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+r.clone().add(i.months,"M"),i}function Vmi(r,e){var i;return r.isValid()&&e.isValid()?(e=KGe(e,r),r.isBefore(e)?i=ugt(r,e):(i=ugt(e,r),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function xvt(r,e){return function(i,n){var a,o;return n!==null&&!isNaN(+n)&&(q6t(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=i,i=n,n=o),a=My(i,n),vvt(this,a,r),this}}function vvt(r,e,i,n){var a=e._milliseconds,o=rje(e._days),c=rje(e._months);r.isValid()&&(n=n??!0,c&&rvt(r,wue(r,"Month")+c*i),o&&ivt(r,"Date",wue(r,"Date")+o*i),a&&r._d.setTime(r._d.valueOf()+a*i),n&&lo.updateOffset(r,o||c))}var Hmi=xvt(1,"add"),Kmi=xvt(-1,"subtract");function Cvt(r){return typeof r=="string"||r instanceof String}function Wmi(r){return Sy(r)||dae(r)||Cvt(r)||t8(r)||Jmi(r)||Gmi(r)||r===null||r===void 0}function Gmi(r){var e=GI(r)&&!kGe(r),i=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,c=n.length;for(a=0;ai.valueOf():i.valueOf()9999?Z3e(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):HA(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Z3e(i,"Z")):Z3e(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function a4i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",e="",i,n,a,o;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),i="["+r+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]',this.format(i+n+a+o)}function o4i(r){r||(r=this.isUtc()?lo.defaultFormatUtc:lo.defaultFormat);var e=Z3e(this,r);return this.localeData().postformat(e)}function s4i(r,e){return this.isValid()&&(Sy(r)&&r.isValid()||um(r).isValid())?My({to:this,from:r}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function l4i(r){return this.from(um(),r)}function c4i(r,e){return this.isValid()&&(Sy(r)&&r.isValid()||um(r).isValid())?My({from:this,to:r}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function d4i(r){return this.to(um(),r)}function bvt(r){var e;return r===void 0?this._locale._abbr:(e=d8(r),e!=null&&(this._locale=e),this)}var yvt=r2("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function kvt(){return this._locale}var qDe=1e3,XG=60*qDe,ZDe=60*XG,Fvt=(365*400+97)*24*ZDe;function eJ(r,e){return(r%e+e)%e}function Avt(r,e,i){return r<100&&r>=0?new Date(r+400,e,i)-Fvt:new Date(r,e,i).valueOf()}function Svt(r,e,i){return r<100&&r>=0?Date.UTC(r+400,e,i)-Fvt:Date.UTC(r,e,i)}function h4i(r){var e,i;if(r=a2(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?Svt:Avt,r){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=eJ(e+(this._isUTC?0:this.utcOffset()*XG),ZDe);break;case"minute":e=this._d.valueOf(),e-=eJ(e,XG);break;case"second":e=this._d.valueOf(),e-=eJ(e,qDe);break}return this._d.setTime(e),lo.updateOffset(this,!0),this}function f4i(r){var e,i;if(r=a2(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?Svt:Avt,r){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ZDe-eJ(e+(this._isUTC?0:this.utcOffset()*XG),ZDe)-1;break;case"minute":e=this._d.valueOf(),e+=XG-eJ(e,XG)-1;break;case"second":e=this._d.valueOf(),e+=qDe-eJ(e,qDe)-1;break}return this._d.setTime(e),lo.updateOffset(this,!0),this}function m4i(){return this._d.valueOf()-(this._offset||0)*6e4}function p4i(){return Math.floor(this.valueOf()/1e3)}function g4i(){return new Date(this.valueOf())}function E4i(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function _4i(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function D4i(){return this.isValid()?this.toISOString():null}function x4i(){return FGe(this)}function v4i(){return iL({},pc(this))}function C4i(){return pc(this).overflow}function b4i(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h0("N",0,0,"eraAbbr");h0("NN",0,0,"eraAbbr");h0("NNN",0,0,"eraAbbr");h0("NNNN",0,0,"eraName");h0("NNNNN",0,0,"eraNarrow");h0("y",["y",1],"yo","eraYear");h0("y",["yy",2],0,"eraYear");h0("y",["yyy",3],0,"eraYear");h0("y",["yyyy",4],0,"eraYear");ps("N",WGe);ps("NN",WGe);ps("NNN",WGe);ps("NNNN",P4i);ps("NNNNN",M4i);Qh(["N","NN","NNN","NNNN","NNNNN"],function(r,e,i,n){var a=i._locale.erasParse(r,n,i._strict);a?pc(i).era=a:pc(i).invalidEra=r});ps("y",v$);ps("yy",v$);ps("yyy",v$);ps("yyyy",v$);ps("yo",z4i);Qh(["y","yy","yyy","yyyy"],j3);Qh(["yo"],function(r,e,i,n){var a;i._locale._eraYearOrdinalRegex&&(a=r.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[j3]=i._locale.eraYearOrdinalParse(r,a):e[j3]=parseInt(r,10)});function y4i(r,e){var i,n,a,o=this._eras||d8("en")._eras;for(i=0,n=o.length;i=0)return o[n]}function F4i(r,e){var i=r.since<=r.until?1:-1;return e===void 0?lo(r.since).year():lo(r.since).year()+(e-r.offset)*i}function A4i(){var r,e,i,n=this.localeData().eras();for(r=0,e=n.length;ro&&(e=o),K4i.call(this,r,e,i,n,a))}function K4i(r,e,i,n,a){var o=svt(r,e,i,n,a),c=Tue(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}h0("Q",0,"Qo","quarter");ps("Q",Y6t);Qh("Q",function(r,e){e[NS]=(xd(r)-1)*3});function W4i(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}h0("D",["DD",2],"Do","date");ps("D",rm,C$);ps("DD",rm,nv);ps("Do",function(r,e){return r?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});Qh(["D","DD"],eA);Qh("Do",function(r,e){e[eA]=xd(r.match(rm)[0])});var wvt=b$("Date",!0);h0("DDD",["DDDD",3],"DDDo","dayOfYear");ps("DDD",x6e);ps("DDDD",Q6t);Qh(["DDD","DDDD"],function(r,e,i){i._dayOfYear=xd(r)});function G4i(r){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?e:this.add(r-e,"d")}h0("m",["mm",2],0,"minute");ps("m",rm,NGe);ps("mm",rm,nv);Qh(["m","mm"],dy);var J4i=b$("Minutes",!1);h0("s",["ss",2],0,"second");ps("s",rm,NGe);ps("ss",rm,nv);Qh(["s","ss"],PS);var $4i=b$("Seconds",!1);h0("S",0,0,function(){return~~(this.millisecond()/100)});h0(0,["SS",2],0,function(){return~~(this.millisecond()/10)});h0(0,["SSS",3],0,"millisecond");h0(0,["SSSS",4],0,function(){return this.millisecond()*10});h0(0,["SSSSS",5],0,function(){return this.millisecond()*100});h0(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});h0(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});h0(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});h0(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ps("S",x6e,Y6t);ps("SS",x6e,nv);ps("SSS",x6e,Q6t);var nL,Tvt;for(nL="SSSS";nL.length<=9;nL+="S")ps(nL,v$);function U4i(r,e){e[NI]=xd(("0."+r)*1e3)}for(nL="S";nL.length<=9;nL+="S")Qh(nL,U4i);Tvt=b$("Milliseconds",!1);h0("z",0,0,"zoneAbbr");h0("zz",0,0,"zoneName");function q4i(){return this._isUTC?"UTC":""}function Z4i(){return this._isUTC?"Coordinated Universal Time":""}var Na=hae.prototype;Na.add=Hmi;Na.calendar=qmi;Na.clone=Zmi;Na.diff=n4i;Na.endOf=f4i;Na.format=o4i;Na.from=s4i;Na.fromNow=l4i;Na.to=c4i;Na.toNow=d4i;Na.get=afi;Na.invalidAt=C4i;Na.isAfter=Ymi;Na.isBefore=Qmi;Na.isBetween=Xmi;Na.isSame=e4i;Na.isSameOrAfter=t4i;Na.isSameOrBefore=i4i;Na.isValid=x4i;Na.lang=yvt;Na.locale=bvt;Na.localeData=kvt;Na.max=xmi;Na.min=Dmi;Na.parsingFlags=v4i;Na.set=ofi;Na.startOf=h4i;Na.subtract=Kmi;Na.toArray=E4i;Na.toObject=_4i;Na.toDate=g4i;Na.toISOString=r4i;Na.inspect=a4i;typeof Symbol<"u"&&Symbol.for!=null&&(Na[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Na.toJSON=D4i;Na.toString=u4i;Na.unix=p4i;Na.valueOf=m4i;Na.creationData=b4i;Na.eraName=A4i;Na.eraNarrow=S4i;Na.eraAbbr=B4i;Na.eraYear=w4i;Na.year=tvt;Na.isLeapYear=rfi;Na.weekYear=I4i;Na.isoWeekYear=R4i;Na.quarter=Na.quarters=W4i;Na.month=avt;Na.daysInMonth=gfi;Na.week=Na.weeks=yfi;Na.isoWeek=Na.isoWeeks=kfi;Na.weeksInYear=V4i;Na.weeksInWeekYear=H4i;Na.isoWeeksInYear=O4i;Na.isoWeeksInISOWeekYear=j4i;Na.date=wvt;Na.day=Na.days=Rfi;Na.weekday=Ofi;Na.isoWeekday=jfi;Na.dayOfYear=G4i;Na.hour=Na.hours=$fi;Na.minute=Na.minutes=J4i;Na.second=Na.seconds=$4i;Na.millisecond=Na.milliseconds=Tvt;Na.utcOffset=Bmi;Na.utc=Tmi;Na.local=Lmi;Na.parseZone=Nmi;Na.hasAlignedHourOffset=Pmi;Na.isDST=Mmi;Na.isLocal=Imi;Na.isUtcOffset=Rmi;Na.isUtc=Dvt;Na.isUTC=Dvt;Na.zoneAbbr=q4i;Na.zoneName=Z4i;Na.dates=r2("dates accessor is deprecated. Use date instead.",wvt);Na.months=r2("months accessor is deprecated. Use month instead",avt);Na.years=r2("years accessor is deprecated. Use year instead",tvt);Na.zone=r2("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wmi);Na.isDSTShifted=r2("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zmi);function Y4i(r){return um(r*1e3)}function Q4i(){return um.apply(null,arguments).parseZone()}function Lvt(r){return r}var w1=SGe.prototype;w1.calendar=Ihi;w1.longDateFormat=Vhi;w1.invalidDate=Khi;w1.ordinal=Jhi;w1.preparse=Lvt;w1.postformat=Lvt;w1.relativeTime=Uhi;w1.pastFuture=qhi;w1.set=Mhi;w1.eras=y4i;w1.erasParse=k4i;w1.erasConvertYear=F4i;w1.erasAbbrRegex=L4i;w1.erasNameRegex=T4i;w1.erasNarrowRegex=N4i;w1.months=hfi;w1.monthsShort=ffi;w1.monthsParse=pfi;w1.monthsRegex=_fi;w1.monthsShortRegex=Efi;w1.week=xfi;w1.firstDayOfYear=bfi;w1.firstDayOfWeek=Cfi;w1.weekdays=Nfi;w1.weekdaysMin=Mfi;w1.weekdaysShort=Pfi;w1.weekdaysParse=Ifi;w1.weekdaysRegex=Vfi;w1.weekdaysShortRegex=Hfi;w1.weekdaysMinRegex=Kfi;w1.isPM=Gfi;w1.meridiem=Ufi;function YDe(r,e,i,n){var a=d8(),o=VA().set(n,e);return a[i](o,r)}function Nvt(r,e,i){if(t8(r)&&(e=r,r=void 0),r=r||"",e!=null)return YDe(r,e,i,"month");var n,a=[];for(n=0;n<12;n++)a[n]=YDe(r,n,i,"month");return a}function JGe(r,e,i,n){typeof r=="boolean"?(t8(e)&&(i=e,e=void 0),e=e||""):(e=r,i=e,r=!1,t8(e)&&(i=e,e=void 0),e=e||"");var a=d8(),o=r?a._week.dow:0,c,h=[];if(i!=null)return YDe(e,(i+o)%7,n,"day");for(c=0;c<7;c++)h[c]=YDe(e,(c+o)%7,n,"day");return h}function X4i(r,e){return Nvt(r,e,"months")}function epi(r,e){return Nvt(r,e,"monthsShort")}function tpi(r,e,i){return JGe(r,e,i,"weekdays")}function ipi(r,e,i){return JGe(r,e,i,"weekdaysShort")}function npi(r,e,i){return JGe(r,e,i,"weekdaysMin")}DL("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var e=r%10,i=xd(r%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return r+i}});lo.lang=r2("moment.lang is deprecated. Use moment.locale instead.",DL);lo.langData=r2("moment.langData is deprecated. Use moment.localeData instead.",d8);var aS=Math.abs;function upi(){var r=this._data;return this._milliseconds=aS(this._milliseconds),this._days=aS(this._days),this._months=aS(this._months),r.milliseconds=aS(r.milliseconds),r.seconds=aS(r.seconds),r.minutes=aS(r.minutes),r.hours=aS(r.hours),r.months=aS(r.months),r.years=aS(r.years),this}function Pvt(r,e,i,n){var a=My(e,i);return r._milliseconds+=n*a._milliseconds,r._days+=n*a._days,r._months+=n*a._months,r._bubble()}function rpi(r,e){return Pvt(this,r,e,1)}function api(r,e){return Pvt(this,r,e,-1)}function rgt(r){return r<0?Math.floor(r):Math.ceil(r)}function opi(){var r=this._milliseconds,e=this._days,i=this._months,n=this._data,a,o,c,h,g;return r>=0&&e>=0&&i>=0||r<=0&&e<=0&&i<=0||(r+=rgt(oje(i)+e)*864e5,e=0,i=0),n.milliseconds=r%1e3,a=KC(r/1e3),n.seconds=a%60,o=KC(a/60),n.minutes=o%60,c=KC(o/60),n.hours=c%24,e+=KC(c/24),g=KC(Mvt(e)),i+=g,e-=rgt(oje(g)),h=KC(i/12),i%=12,n.days=e,n.months=i,n.years=h,this}function Mvt(r){return r*4800/146097}function oje(r){return r*146097/4800}function spi(r){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if(r=a2(r),r==="month"||r==="quarter"||r==="year")switch(e=this._days+n/864e5,i=this._months+Mvt(e),r){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(oje(this._months)),r){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return e*24+n/36e5;case"minute":return e*1440+n/6e4;case"second":return e*86400+n/1e3;case"millisecond":return Math.floor(e*864e5)+n;default:throw new Error("Unknown unit "+r)}}function h8(r){return function(){return this.as(r)}}var zvt=h8("ms"),lpi=h8("s"),cpi=h8("m"),dpi=h8("h"),hpi=h8("d"),fpi=h8("w"),mpi=h8("M"),ppi=h8("Q"),gpi=h8("y"),Epi=zvt;function _pi(){return My(this)}function Dpi(r){return r=a2(r),this.isValid()?this[r+"s"]():NaN}function JR(r){return function(){return this.isValid()?this._data[r]:NaN}}var xpi=JR("milliseconds"),vpi=JR("seconds"),Cpi=JR("minutes"),bpi=JR("hours"),ypi=JR("days"),kpi=JR("months"),Fpi=JR("years");function Api(){return KC(this.days()/7)}var gS=Math.round,CG={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Spi(r,e,i,n,a){return a.relativeTime(e||1,!!i,r,n)}function Bpi(r,e,i,n){var a=My(r).abs(),o=gS(a.as("s")),c=gS(a.as("m")),h=gS(a.as("h")),g=gS(a.as("d")),_=gS(a.as("M")),x=gS(a.as("w")),y=gS(a.as("y")),S=o<=i.ss&&["s",o]||o0,S[4]=n,Spi.apply(null,S)}function wpi(r){return r===void 0?gS:typeof r=="function"?(gS=r,!0):!1}function Tpi(r,e){return CG[r]===void 0?!1:e===void 0?CG[r]:(CG[r]=e,r==="s"&&(CG.ss=e-1),!0)}function Lpi(r,e){if(!this.isValid())return this.localeData().invalidDate();var i=!1,n=CG,a,o;return typeof r=="object"&&(e=r,r=!1),typeof r=="boolean"&&(i=r),typeof e=="object"&&(n=Object.assign({},CG,e),e.s!=null&&e.ss==null&&(n.ss=e.s-1)),a=this.localeData(),o=Bpi(this,!i,n,a),i&&(o=a.pastFuture(+this,o)),a.postformat(o)}var hIe=Math.abs;function WW(r){return(r>0)-(r<0)||+r}function S6e(){if(!this.isValid())return this.localeData().invalidDate();var r=hIe(this._milliseconds)/1e3,e=hIe(this._days),i=hIe(this._months),n,a,o,c,h=this.asSeconds(),g,_,x,y;return h?(n=KC(r/60),a=KC(n/60),r%=60,n%=60,o=KC(i/12),i%=12,c=r?r.toFixed(3).replace(/\.?0+$/,""):"",g=h<0?"-":"",_=WW(this._months)!==WW(h)?"-":"",x=WW(this._days)!==WW(h)?"-":"",y=WW(this._milliseconds)!==WW(h)?"-":"",g+"P"+(o?_+o+"Y":"")+(i?_+i+"M":"")+(e?x+e+"D":"")+(a||n||r?"T":"")+(a?y+a+"H":"")+(n?y+n+"M":"")+(r?y+c+"S":"")):"P0D"}var Ud=F6e.prototype;Ud.isValid=kmi;Ud.abs=upi;Ud.add=rpi;Ud.subtract=api;Ud.as=spi;Ud.asMilliseconds=zvt;Ud.asSeconds=lpi;Ud.asMinutes=cpi;Ud.asHours=dpi;Ud.asDays=hpi;Ud.asWeeks=fpi;Ud.asMonths=mpi;Ud.asQuarters=ppi;Ud.asYears=gpi;Ud.valueOf=Epi;Ud._bubble=opi;Ud.clone=_pi;Ud.get=Dpi;Ud.milliseconds=xpi;Ud.seconds=vpi;Ud.minutes=Cpi;Ud.hours=bpi;Ud.days=ypi;Ud.weeks=Api;Ud.months=kpi;Ud.years=Fpi;Ud.humanize=Lpi;Ud.toISOString=S6e;Ud.toString=S6e;Ud.toJSON=S6e;Ud.locale=bvt;Ud.localeData=kvt;Ud.toIsoString=r2("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",S6e);Ud.lang=yvt;h0("X",0,0,"unix");h0("x",0,0,"valueOf");ps("x",C6e);ps("X",Xhi);Qh("X",function(r,e,i){i._d=new Date(parseFloat(r)*1e3)});Qh("x",function(r,e,i){i._d=new Date(xd(r))});//! moment.js +lo.version="2.30.1";Nhi(um);lo.fn=Na;lo.min=vmi;lo.max=Cmi;lo.now=bmi;lo.utc=VA;lo.unix=Y4i;lo.months=X4i;lo.isDate=dae;lo.locale=DL;lo.invalid=_6e;lo.duration=My;lo.isMoment=Sy;lo.weekdays=tpi;lo.parseZone=Q4i;lo.localeData=d8;lo.isDuration=Y3e;lo.monthsShort=epi;lo.weekdaysMin=npi;lo.defineLocale=RGe;lo.updateLocale=Qfi;lo.locales=Xfi;lo.weekdaysShort=ipi;lo.normalizeUnits=a2;lo.relativeTimeRounding=wpi;lo.relativeTimeThreshold=Tpi;lo.calendarFormat=Umi;lo.prototype=Na;lo.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Th=R6t("main",()=>{const r=ds(document.location.host.indexOf("demo.logdy.dev")>=0||!!Bhi(document.location.search,"demo_mode")),e=ds("started"),i=ds("json"),n=ds(""),a=ds(""),o=ds({from:0,to:0}),c=ds(""),h=ds(!1),g=ds("not connected"),_=ds("paused"),x=ds({LastDeliveredIdx:0,MessageCount:0,MessagesToTail:0}),y=ds(!1),S=ds(""),L=ds(""),O=ds(!1),G=ds([]),ie=ds({}),ue=ds({}),re=ds(""),_e=ds(!1),ye=ds(""),Le=ds({}),lt=ds("label"),Ue=ds(),Ze=ds({}),rt=ds(new yGe("main",{leftColWidth:300,drawerColWidth:900,maxMessages:1e3,middlewares:[],entriesOrder:"desc"}));let kt=null;const Zt=(ci,Oe=!0)=>{L.value=ci,Oe&&Upt.add({password:ci},"main")},jt=()=>{var ci;return L.value||(L.value=((ci=Upt.getOne("main"))==null?void 0:ci.password)||""),L.value},ui=(ci,Oe)=>{c.value=ci,h.value=!0,kt=Oe},ti=async ci=>{ci&&kt&&await kt(),kt=null,c.value="",h.value=!1},Uu=j6(()=>{if(o.value.from<=0&&o.value.to<=0)return"Set timeframe";let ci=lo(o.value.from*1e3),Oe=lo(o.value.to*1e3),eu=ci.format("MMM DD, HH:mmA"),Hi=ci.format("MMM DD, HH:mmA");return ci.format("DD-MM-YYYY")===Oe.format("DD-MM-YYYY")&&(eu=ci.format("MMM DD, HH:mmA"),Hi=Oe.format("HH:mmA")),o.value.to===0&&(Hi="now"),`${eu} - ${Hi}`}),pu=(ci,Oe=0)=>{if(Vt(),Oe!==0){for(let eu=0;eu<=Hl.value.length;eu++)if(Hl.value[eu].id===ci.id){ci=Hl.value[eu+Oe];break}}ci&&(ci.opened||(GT().changeFilter("read",1),GT().changeFilter("unread",-1)),ci.open=!0,ci.opened=!0,Ze.value.row=ci,ZT.update(ci.id,{id:ci.id,message:ci.msg,opened:!0,starred:ci.starred}))},Vt=()=>{Ze.value.row&&(Ze.value.row.open=!1,Ze.value.row.opened=!0,Ze.value.row=void 0)},zr=ci=>{ci.starred=!ci.starred,GT().changeFilter("starred",ci.starred?1:-1),ZT.update(ci.id,{id:ci.id,message:ci.msg,opened:ci.opened,starred:ci.starred})},Lu=new BroadcastChannel("tab-activity");setInterval(()=>{Lu.postMessage("ping")},5*1e3),Lu.addEventListener("message",ci=>{ci.data==="ping"&&Lu.postMessage("pong"),y.value||ui("We have detected Logdy opened in another tab. Currently we do not support multiple tabs",()=>{y.value=!1}),y.value=!0});const Va=j6(()=>_.value==="paused"?`Paused at entry #${LI(x.value.LastDeliveredIdx+1)} out of ${LI(x.value.MessageCount)} (${LI(x.value.MessageCount-x.value.LastDeliveredIdx-1)} not seen)`:_.value.includes("following")?`Following real-time out of ${LI(x==null?void 0:x.value.MessageCount)} entries`:"-"),ju=ci=>{ci.correlation_id&&(ye.value=ci.correlation_id,Tr())},Tr=()=>{if(!ye.value||Hl.value.length===0)return;let ci={},Oe=Hl.value[0].msg.timing&&Hl.value[0].msg.timing.start||0,eu=1;Hl.value.forEach(Hi=>{var Pr,$r,wa;Hi.msg.timing&&(ci[Hi.id]={id:Hi.id,offset:(Hi.msg.timing.start-Oe)/eu,width:(((Pr=Hi.msg.timing)==null?void 0:Pr.duration)||1)/eu,label:($r=Hi.msg.timing)==null?void 0:$r.label,style:((wa=Hi.msg.timing)==null?void 0:wa.style)||{}})}),Le.value=ci},pa=()=>{GT().resetToggles(),Fa()},z0=()=>{ye.value=""},ra=async ci=>{switch(ci){case"following":await $S.resume(),_.value="following";break;case"following_cursor":await $S.resumeFromCursor(),_.value="following_cursor";break;case"paused":await $S.pause(),_.value="paused";break}},qi=()=>{G.value=[],ue.value={},ie.value={},GT().reset(),ZT.removeAll()},eo=()=>{ie.value={}},Fa=()=>{for(let ci in ue.value){let Oe=ue.value[ci];for(let eu in Oe.items)ue.value[Oe.name].items[eu].selected=!1}},W0=()=>{re.value=""},r0=j6(()=>G.value[0]&&G.value[0].msg.is_json==!0),qa=j6(()=>{if(r0.value)return a.value;try{return new RegExp(re.value,"i"),""}catch(ci){return ci.message}}),Hl=j6(()=>{if(qa.value.length>0)return[];const ci={};for(let _i in ue.value)ue.value[_i].items.forEach(ri=>{ri.selected&&(ci[_i]||(ci[_i]=[]),ci[_i].push(ri.label))});let Oe=GT().enabledFilters,eu=Oe.filter(_i=>_i.startsWith("origin_file_")).length>0,Hi=Oe.filter(_i=>_i.startsWith("origin_port_")).length>0,Pr=Oe.filter(_i=>_i.startsWith("origin_na")).length>0,$r=Oe.filter(_i=>_i.startsWith("origin_")).length>0,wa=G.value.filter(_i=>{let ri=_i.msg.ts/1e3;return!(o.value.from>0&&ri0&&ri>o.value.to)}).filter(_i=>{var Tt,pi,hi,cn,On,Dr;if(ye.value&&ye.value!=_i.msg.correlation_id)return!1;let ri=!0;if(Oe.length>0){if(Oe.includes("starred")&&!_i.starred||Oe.includes("read")&&!_i.opened||Oe.includes("unread")&&_i.opened)return!1;$r&&(eu&&((Tt=_i.msg.origin)!=null&&Tt.file)&&Oe.includes("origin_file_"+((pi=_i.msg.origin)==null?void 0:pi.file))||Hi&&((hi=_i.msg.origin)!=null&&hi.port)&&Oe.includes("origin_port_"+((cn=_i.msg.origin)==null?void 0:cn.port))||Pr&&!((On=_i.msg.origin)!=null&&On.file)&&!((Dr=_i.msg.origin)!=null&&Dr.port)&&Oe.includes("origin_na")?ri=!0:ri=!1)}if(!ri)return ri;if(Object.keys(ci).length===0)return!0;let fi={...ci},xt=Object.keys(fi).length;return _i.facets.forEach(Wr=>{fi[Wr.name]&&fi[Wr.name].includes(Wr.value)&&xt--}),xt===0}).filter(_i=>n.value.length>0||re.value.length<3?!0:(_i.msg.content||"").search(new RegExp(re.value,"i"))>=0);if(r0&&n.value.length>0){let _i=Lhi(wa.map(ri=>({data:ri.msg.json_content,raw:ri.msg.content,ts:ri.msg.ts,origin:ri.msg.origin})).filter(ri=>ri));return!_i.result||_i.result.length!=wa.length?wa:_i&&_i.error?(a.value=_i.error,wa):wa.filter((ri,fi)=>_i.result[fi])}return rt.value.settings.entriesOrder==="desc"?wa.reverse():wa});return _A(re,ci=>{if(!r0.value)return;if(a.value="",!ci.length){n.value="";return}let Oe=Thi(ci);if(Oe){a.value=Oe;return}n.value=ci}),{confirm:ui,confirmShow:h,confirmMsg:c,confirmProcess:ti,demoMode:r,demoStatus:e,demoContent:i,status:g,statusStr:Va,receiveStatus:_,receiveCounters:x,changeReceiveStatus:ra,initSettings:Ue,anotherTab:y,modalShow:S,setPassword:Zt,getPassword:jt,stickedToBottom:O,clearAllRows:qi,resetAllFiltersAndFacets:pa,filterCorrelated:ju,correlationFilter:ye,resetCorrelationFilter:z0,tracesRows:Le,refeshFilterCorrelated:Tr,settingsDrawer:_e,drawer:Ze,openLogDrawer:pu,closeLogDrawer:Vt,layout:rt,rows:G,rowsIds:ie,clearRowIds:eo,displayRows:Hl,facets:ue,searchbar:re,searchbarValid:qa,searchClear:W0,toggleRowMark:zr,facetSort:lt,datepicker:o,datepickerLabel:Uu}}),agt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.add("noselect"),document.addEventListener("mousemove",Ivt)},ogt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.add("noselect"),document.addEventListener("mousemove",Rvt)},Npi=r=>{var i;(i=document.getElementById("app"))==null||i.classList.add("noselect");const e=new AbortController;document.addEventListener("mousemove",n=>{Ppi(r,n)},{signal:e.signal}),document.addEventListener("mouseup",()=>{e.abort(),DI.update("main",Th().layout)},{once:!0})},sgt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.remove("noselect"),document.removeEventListener("mousemove",Ivt),document.removeEventListener("mousemove",Rvt),DI.update("main",Th().layout)},Ppi=(r,e)=>{let i=Th().layout.getColumn(r);if(i.width||(i.width=150),i.width+=e.movementX,i.width<=40){i.width=40;return}Th().layout.update(i)},Ivt=r=>{Th().layout.settings.leftColWidth+=r.movementX},Rvt=r=>{Th().layout.settings.drawerColWidth-=r.movementX};var QDe={d:(r,e)=>{for(var i in e)QDe.o(e,i)&&!QDe.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:e[i]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},Ovt={};function sje(r,e){(e==null||e>r.length)&&(e=r.length);for(var i=0,n=new Array(e);iOpi});const x0=(lgt={computed:()=>j6,createTextVNode:()=>P0,createVNode:()=>N0,defineComponent:()=>wp,reactive:()=>lae,ref:()=>ds,watch:()=>_A,watchEffect:()=>Sdi},fIe={},QDe.d(fIe,lgt),fIe),Mpi=(0,x0.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var r=this.data,e=this.onClick;return(0,x0.createVNode)("span",{class:"vjs-tree-brackets",onClick:e},[r])}}),zpi=(0,x0.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(r,e){var i=e.emit;return{uiType:(0,x0.computed)(function(){return r.isMultiple?"checkbox":"radio"}),model:(0,x0.computed)({get:function(){return r.checked},set:function(n){return i("update:modelValue",n)}})}},render:function(){var r=this.uiType,e=this.model,i=this.$emit;return(0,x0.createVNode)("label",{class:["vjs-check-controller",e?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,x0.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(r)},null),(0,x0.createVNode)("input",{checked:e,class:"vjs-check-controller-original is-".concat(r),type:r,onChange:function(){return i("change",e)}},null)])}}),Ipi=(0,x0.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var r=this.nodeType,e=this.onClick,i=r==="objectStart"||r==="arrayStart";return i||r==="objectCollapsed"||r==="arrayCollapsed"?(0,x0.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(i?"open":"close"),onClick:e},[(0,x0.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,x0.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var lgt,fIe;function lje(r){return lje=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lje(r)}function Vvt(r){return Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}function cI(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,a=n||{},o=a.key,c=a.index,h=a.type,g=h===void 0?"content":h,_=a.showComma,x=_!==void 0&&_,y=a.length,S=y===void 0?1:y,L=Vvt(r);if(L==="array"){var O=cgt(r.map(function(ue,re,_e){return cI(ue,"".concat(e,"[").concat(re,"]"),i+1,{index:re,showComma:re!==_e.length-1,length:S,type:g})}));return[cI("[",e,i,{showComma:!1,key:o,length:r.length,type:"arrayStart"})[0]].concat(O,cI("]",e,i,{showComma:x,length:r.length,type:"arrayEnd"})[0])}if(L==="object"){var G=Object.keys(r),ie=cgt(G.map(function(ue,re,_e){return cI(r[ue],/^[a-zA-Z_]\w*$/.test(ue)?"".concat(e,".").concat(ue):"".concat(e,'["').concat(ue,'"]'),i+1,{key:ue,showComma:re!==_e.length-1,length:S,type:g})}));return[cI("{",e,i,{showComma:!1,key:o,index:c,length:G.length,type:"objectStart"})[0]].concat(ie,cI("}",e,i,{showComma:x,length:G.length,type:"objectEnd"})[0])}return[{content:r,level:i,key:o,index:c,path:e,showComma:x,length:S,type:g}]}function cgt(r){if(typeof Array.prototype.flat=="function")return r.flat();for(var e=XDe(r),i=[];e.length;){var n=e.shift();Array.isArray(n)?e.unshift.apply(e,XDe(n)):i.push(n)}return i}function cje(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(r==null)return r;if(r instanceof Date)return new Date(r);if(r instanceof RegExp)return new RegExp(r);if(lje(r)!=="object")return r;if(e.get(r))return e.get(r);if(Array.isArray(r)){var i=r.map(function(o){return cje(o,e)});return e.set(r,i),i}var n={};for(var a in r)n[a]=cje(r[a],e);return e.set(r,n),n}function dgt(r,e){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),i.push.apply(i,n)}return i}function hgt(r){for(var e=1;e=_e||lt.length>=ye,rt=(Ue=r.pathCollapsible)===null||Ue===void 0?void 0:Ue.call(r,lt);return lt.type!=="objectStart"&<.type!=="arrayStart"||!Ze&&!rt?Le:P6(P6({},Le),{},e5e({},lt.path,1))},{})},h=(0,x0.reactive)({translateY:0,visibleData:null,hiddenPaths:c(r.deep,r.collapsedNodeLength)}),g=(0,x0.computed)(function(){for(var _e=null,ye=[],Le=o.value.length,lt=0;lt_e.length?_e.length-Le:Ue;Ze<0&&(Ze=0);var rt=Ze+Le;h.translateY=Ze*r.itemHeight,h.visibleData=_e.filter(function(kt,Zt){return Zt>=Ze&&Zt(D$("data-v-eaec25f1"),r=r(),x$(),r),jpi={class:"inner-drawer"},Vpi={class:"header"},Hpi={style:{"margin-right":"10px"}},Kpi=y$(()=>si("kbd",null,"Esc",-1)),Wpi=["disabled"],Gpi=y$(()=>si("hr",null,null,-1)),Jpi=y$(()=>si("h3",null,"Table columns",-1)),$pi=["onClick"],Upi={key:0},qpi={key:1},Zpi=y$(()=>si("h3",null,"Non-table fields",-1)),Ypi=["onClick"],Qpi={key:0},Xpi={key:1},egi=y$(()=>si("hr",null,null,-1)),tgi={key:0},igi={key:0},ngi={key:1,class:"raw"},ugi={key:2,class:"raw"},rgi={key:3,class:"raw"},agi={key:4,class:"raw"},ogi={key:5,class:"raw"},sgi=y$(()=>si("div",{style:{"margin-bottom":"80px"}},"   ",-1)),lgi=wp({__name:"Drawer",props:{row:{},layout:{}},emits:["close"],setup(r){const e=ds(!1),i=n=>{navigator.clipboard.writeText(n)};return(n,a)=>{var c,h,g,_,x,y,S,L;const o=d6e("tooltip");return n.row?(Mu(),vr("div",{key:0,class:"drawer",style:M3({width:wu(Th)().layout.settings.drawerColWidth+"px"})},[si("div",{class:"resize-handle",onMousedown:a[0]||(a[0]=(...O)=>wu(ogt)&&wu(ogt)(...O))},null,32),si("div",jpi,[si("div",Vpi,[si("div",Hpi,[N0(ihi),P0(" Next / "),N0(shi),P0(" Prev ")]),si("button",{onClick:a[1]||(a[1]=O=>n.$emit("close"))},[P0("Close "),Kpi])]),si("div",null,[si("button",{onClick:a[2]||(a[2]=O=>wu(Th)().filterCorrelated(n.row.msg)),disabled:!n.row.msg.correlation_id}," Display correlated lines ",8,Wpi),wu(Th)().correlationFilter?(Mu(),vr("button",{key:0,onClick:a[3]||(a[3]=O=>wu(Th)().resetCorrelationFilter()),style:{"margin-left":"5px"}}," Reset correlation filter ")):gl("",!0)]),Gpi,Jpi,(Mu(!0),vr(od,null,_y((c=n.layout)==null?void 0:c.columns.filter(O=>!O.hidden),(O,G)=>(Mu(),vr("div",null,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:ie=>i(n.row.cells[G].text)},[P0(Qc(O.name)+" ",1),N0(CT,{class:Zh("clipboard")})],8,$pi)),[[o,"Click to copy"]]),n.row.cells[G]&&!n.row.cells[G].isJson?(Mu(),vr("pre",Upi,Qc(n.row.cells[G].text),1)):(Mu(),vr("pre",qpi,[N0(wu(one),{theme:"dark",data:JSON.parse(n.row.cells[G].text)},null,8,["data"])]))]))),256)),Zpi,(Mu(!0),vr(od,null,_y((h=n.layout)==null?void 0:h.columns.filter(O=>O.hidden),(O,G)=>(Mu(),vr("div",null,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:ie=>i(n.row.fields[G].text)},[P0(Qc(O.name)+" ",1),N0(CT,{class:Zh("clipboard")})],8,Ypi)),[[o,"Click to copy"]]),n.row.fields[G].isJson?(Mu(),vr("pre",Xpi,[N0(wu(one),{theme:"dark",data:n.row.fields[G].text},null,8,["data"])])):(Mu(),vr("pre",Qpi,Qc(n.row.fields[G].text),1))]))),256)),egi,si("button",{onClick:a[4]||(a[4]=O=>e.value=!e.value)},"Show/hide raw message"),e.value?(Mu(),vr("div",tgi,[n.row.msg.is_json?(Mu(),vr("div",igi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[5]||(a[5]=O=>i(JSON.stringify(n.row.msg.json_content)))},[P0(" Raw message (JSON) "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[N0(wu(one),{theme:"dark",data:n.row.msg.json_content},null,8,["data"])])])):gl("",!0),n.row.msg.is_json?gl("",!0):(Mu(),vr("div",ngi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[6]||(a[6]=O=>i(n.row.msg.content))},[P0(" Raw message "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[si("code",null,Qc(n.row.msg.content),1)])])),n.row.msg.timing?(Mu(),vr("div",ugi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[7]||(a[7]=O=>i(JSON.stringify(n.row.msg.timing)))},[P0(" Timing "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[N0(wu(one),{theme:"dark",data:n.row.msg.timing},null,8,["data"])])])):gl("",!0),(g=n.row.msg.origin)!=null&&g.port?(Mu(),vr("div",rgi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[8]||(a[8]=O=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.port)})},[P0(" Origin port "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[si("code",null,Qc((_=n.row.msg.origin)==null?void 0:_.port),1)])])):gl("",!0),(x=n.row.msg.origin)!=null&&x.api_source?(Mu(),vr("div",agi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[9]||(a[9]=O=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.api_source)})},[P0(" Origin API "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[si("code",null,Qc((y=n.row.msg.origin)==null?void 0:y.api_source),1)])])):gl("",!0),(S=n.row.msg.origin)!=null&&S.file?(Mu(),vr("div",ogi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[10]||(a[10]=O=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.file)})},[P0(" Origin filename "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[si("code",null,Qc((L=n.row.msg.origin)==null?void 0:L.file),1)])])):gl("",!0)])):gl("",!0),sgi])],4)):gl("",!0)}}}),cgi=I4(lgi,[["__scopeId","data-v-eaec25f1"]]);let dgi=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function hgi(r,e){let i;return e.length===0?i=r:i=r.replace(/\{(\d+)\}/g,(n,a)=>{const o=a[0],c=e[o];let h=n;return typeof c=="string"?h=c:(typeof c=="number"||typeof c=="boolean"||c===void 0||c===null)&&(h=String(c)),h}),dgi&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}function V(r,e,...i){return hgi(e,i)}var mIe;const bG="en";let t5e=!1,i5e=!1,X3e=!1,Kvt=!1,$Ge=!1,UGe=!1,Wvt=!1,y_e,eDe=bG,mgt=bG,fgi,Ub;const VD=typeof self=="object"?self:typeof global=="object"?global:{};let B_;typeof VD.vscode<"u"&&typeof VD.vscode.process<"u"?B_=VD.vscode.process:typeof process<"u"&&(B_=process);const mgi=typeof((mIe=B_==null?void 0:B_.versions)===null||mIe===void 0?void 0:mIe.electron)=="string",pgi=mgi&&(B_==null?void 0:B_.type)==="renderer";if(typeof navigator=="object"&&!pgi)Ub=navigator.userAgent,t5e=Ub.indexOf("Windows")>=0,i5e=Ub.indexOf("Macintosh")>=0,UGe=(Ub.indexOf("Macintosh")>=0||Ub.indexOf("iPad")>=0||Ub.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,X3e=Ub.indexOf("Linux")>=0,Wvt=(Ub==null?void 0:Ub.indexOf("Mobi"))>=0,$Ge=!0,V({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),y_e=bG,eDe=y_e,mgt=navigator.language;else if(typeof B_=="object"){t5e=B_.platform==="win32",i5e=B_.platform==="darwin",X3e=B_.platform==="linux",X3e&&B_.env.SNAP&&B_.env.SNAP_REVISION,B_.env.CI||B_.env.BUILD_ARTIFACTSTAGINGDIRECTORY,y_e=bG,eDe=bG;const r=B_.env.VSCODE_NLS_CONFIG;if(r)try{const e=JSON.parse(r),i=e.availableLanguages["*"];y_e=e.locale,mgt=e.osLocale,eDe=i||bG,fgi=e._translationsConfigFile}catch{}Kvt=!0}else console.error("Unable to resolve platform.");const Fp=t5e,d0=i5e,sg=X3e,Dy=Kvt,aN=$Ge,ggi=$Ge&&typeof VD.importScripts=="function",SA=UGe,Egi=Wvt,BA=Ub,_gi=eDe,Dgi=typeof VD.postMessage=="function"&&!VD.importScripts,Gvt=(()=>{if(Dgi){const r=[];VD.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let n=0,a=r.length;n{const n=++e;r.push({id:n,callback:i}),VD.postMessage({vscodeScheduleAsyncWork:n},"*")}}return r=>setTimeout(r)})(),rx=i5e||UGe?2:t5e?1:3;let pgt=!0,ggt=!1;function Jvt(){if(!ggt){ggt=!0;const r=new Uint8Array(2);r[0]=1,r[1]=2,pgt=new Uint16Array(r.buffer)[0]===513}return pgt}const $vt=!!(BA&&BA.indexOf("Chrome")>=0),xgi=!!(BA&&BA.indexOf("Firefox")>=0),vgi=!!(!$vt&&BA&&BA.indexOf("Safari")>=0),Cgi=!!(BA&&BA.indexOf("Edg/")>=0);BA&&BA.indexOf("Android")>=0;var V0;(function(r){function e(ue){return ue&&typeof ue=="object"&&typeof ue[Symbol.iterator]=="function"}r.is=e;const i=Object.freeze([]);function n(){return i}r.empty=n;function*a(ue){yield ue}r.single=a;function o(ue){return e(ue)?ue:a(ue)}r.wrap=o;function c(ue){return ue||i}r.from=c;function h(ue){return!ue||ue[Symbol.iterator]().next().done===!0}r.isEmpty=h;function g(ue){return ue[Symbol.iterator]().next().value}r.first=g;function _(ue,re){for(const _e of ue)if(re(_e))return!0;return!1}r.some=_;function x(ue,re){for(const _e of ue)if(re(_e))return _e}r.find=x;function*y(ue,re){for(const _e of ue)re(_e)&&(yield _e)}r.filter=y;function*S(ue,re){let _e=0;for(const ye of ue)yield re(ye,_e++)}r.map=S;function*L(...ue){for(const re of ue)for(const _e of re)yield _e}r.concat=L;function O(ue,re,_e){let ye=_e;for(const Le of ue)ye=re(ye,Le);return ye}r.reduce=O;function*G(ue,re,_e=ue.length){for(re<0&&(re+=ue.length),_e<0?_e+=ue.length:_e>ue.length&&(_e=ue.length);re<_e;re++)yield ue[re]}r.slice=G;function ie(ue,re=Number.POSITIVE_INFINITY){const _e=[];if(re===0)return[_e,ue];const ye=ue[Symbol.iterator]();for(let Le=0;Le{a||(a=!0,this._remove(n))}}shift(){if(this._first!==Qf.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Qf.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Qf.Undefined&&e.next!==Qf.Undefined){const i=e.prev;i.next=e.next,e.next.prev=i}else e.prev===Qf.Undefined&&e.next===Qf.Undefined?(this._first=Qf.Undefined,this._last=Qf.Undefined):e.next===Qf.Undefined?(this._last=this._last.prev,this._last.next=Qf.Undefined):e.prev===Qf.Undefined&&(this._first=this._first.next,this._first.prev=Qf.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Qf.Undefined;)yield e.element,e=e.next}}const Uvt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function bgi(r=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const i of Uvt)r.indexOf(i)>=0||(e+="\\"+i);return e+="\\s]+)",new RegExp(e,"g")}const qGe=bgi();function qvt(r){let e=qGe;if(r&&r instanceof RegExp)if(r.global)e=r;else{let i="g";r.ignoreCase&&(i+="i"),r.multiline&&(i+="m"),r.unicode&&(i+="u"),e=new RegExp(r.source,i)}return e.lastIndex=0,e}const Zvt=new ug;Zvt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Pue(r,e,i,n,a){if(a||(a=V0.first(Zvt)),i.length>a.maxLen){let _=r-a.maxLen/2;return _<0?_=0:n+=_,i=i.substring(_,r+a.maxLen/2),Pue(r,e,i,n,a)}const o=Date.now(),c=r-1-n;let h=-1,g=null;for(let _=1;!(Date.now()-o>=a.timeBudget);_++){const x=c-a.windowSize*_;e.lastIndex=Math.max(0,x);const y=ygi(e,i,c,h);if(!y&&g||(g=y,x<=0))break;h=x}if(g){const _={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return e.lastIndex=0,_}return null}function ygi(r,e,i,n){let a;for(;a=r.exec(e);){const o=a.index||0;if(o<=i&&r.lastIndex>=i)return a;if(n>0&&o>n)return null}return null}function M6(r,e=0){return r[r.length-(1+e)]}function kgi(r){if(r.length===0)throw new Error("Invalid tail call");return[r.slice(0,r.length-1),r[r.length-1]]}function rg(r,e,i=(n,a)=>n===a){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,a=r.length;ni(r[n],e))}function Agi(r,e){let i=0,n=r-1;for(;i<=n;){const a=(i+n)/2|0,o=e(a);if(o<0)i=a+1;else if(o>0)n=a-1;else return a}return-(i+1)}function Yvt(r,e){let i=0,n=r.length;if(n===0)return 0;for(;i=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],a=[],o=[],c=[];for(const h of e){const g=i(h,n);g<0?a.push(h):g>0?o.push(h):c.push(h)}return r!!e)}function _gt(r){let e=0;for(let i=0;i0}function jL(r,e=i=>i){const i=new Set;return r.filter(n=>{const a=e(n);return i.has(a)?!1:(i.add(a),!0)})}function Xvt(r,e){const i=Sgi(r,e);if(i!==-1)return r[i]}function Sgi(r,e){for(let i=r.length-1;i>=0;i--){const n=r[i];if(e(n))return i}return-1}function eCt(r,e){return r.length>0?r[0]:e}function A_(r,e){let i=typeof e=="number"?r:0;typeof e=="number"?i=r:(i=0,e=r);const n=[];if(i<=e)for(let a=i;ae;a--)n.push(a);return n}function B6e(r,e,i){const n=r.slice(0,e),a=r.slice(e);return n.concat(i,a)}function pIe(r,e){const i=r.indexOf(e);i>-1&&(r.splice(i,1),r.unshift(e))}function k_e(r,e){const i=r.indexOf(e);i>-1&&(r.splice(i,1),r.push(e))}function Dgt(r,e){for(const i of e)r.push(i)}function ZGe(r){return Array.isArray(r)?r:[r]}function Bgi(r,e,i){const n=tCt(r,e),a=r.length,o=i.length;r.length=a+o;for(let c=a-1;c>=n;c--)r[c+o]=r[c];for(let c=0;c0}r.isGreaterThan=i;function n(a){return a===0}r.isNeitherLessOrGreaterThan=n,r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0})(fje||(fje={}));function One(r,e){return(i,n)=>e(r(i),r(n))}const wgi=(r,e)=>r-e;function iCt(r,e){if(r.length===0)return;let i=r[0];for(let n=1;n0&&(i=a)}return i}function Tgi(r,e){if(r.length===0)return;let i=r[0];for(let n=1;n=0&&(i=a)}return i}function Lgi(r,e){return iCt(r,(i,n)=>-e(i,n))}class TJ{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let i=this.firstIdx;for(;i=0&&e(this.items[i]);)i--;const n=i===this.lastIdx?null:this.items.slice(i+1,this.lastIdx+1);return this.lastIdx=i,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const i=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,i}}class DA{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(i=>(e.push(i),!0)),e}filter(e){return new DA(i=>this.iterate(n=>e(n)?i(n):!0))}map(e){return new DA(i=>this.iterate(n=>i(e(n))))}findLast(e){let i;return this.iterate(n=>(e(n)&&(i=n),!0)),i}findLastMaxBy(e){let i,n=!0;return this.iterate(a=>((n||fje.isGreaterThan(e(a,i)))&&(n=!1,i=a),!0)),i}}DA.empty=new DA(r=>{});function M_(r){return typeof r=="string"}function O3(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function Ngi(r){const e=Object.getPrototypeOf(Uint8Array);return typeof r=="object"&&r instanceof e}function VL(r){return typeof r=="number"&&!isNaN(r)}function vgt(r){return!!r&&typeof r[Symbol.iterator]=="function"}function nCt(r){return r===!0||r===!1}function RD(r){return typeof r>"u"}function Pgi(r){return!ix(r)}function ix(r){return RD(r)||r===null}function Fc(r,e){if(!r)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function yG(r){if(ix(r))throw new Error("Assertion Failed: argument is undefined or null");return r}function n5e(r){return typeof r=="function"}function Mgi(r,e){const i=Math.min(r.length,e.length);for(let n=0;n{e[i]=n&&typeof n=="object"?vS(n):n}),e}function Igi(r){if(!r||typeof r!="object")return r;const e=[r];for(;e.length>0;){const i=e.shift();Object.freeze(i);for(const n in i)if(uCt.call(i,n)){const a=i[n];typeof a=="object"&&!Object.isFrozen(a)&&!Ngi(a)&&e.push(a)}}return r}const uCt=Object.prototype.hasOwnProperty;function rCt(r,e){return mje(r,e,new Set)}function mje(r,e,i){if(ix(r))return r;const n=e(r);if(typeof n<"u")return n;if(Array.isArray(r)){const a=[];for(const o of r)a.push(mje(o,e,i));return a}if(O3(r)){if(i.has(r))throw new Error("Cannot clone recursive data-structure");i.add(r);const a={};for(const o in r)uCt.call(r,o)&&(a[o]=mje(r[o],e,i));return i.delete(r),a}return r}function pae(r,e,i=!0){return O3(r)?(O3(e)&&Object.keys(e).forEach(n=>{n in r?i&&(O3(r[n])&&O3(e[n])?pae(r[n],e[n],i):r[n]=e[n]):r[n]=e[n]}),r):e}function cx(r,e){if(r===e)return!0;if(r==null||e===null||e===void 0||typeof r!=typeof e||typeof r!="object"||Array.isArray(r)!==Array.isArray(e))return!1;let i,n;if(Array.isArray(r)){if(r.length!==e.length)return!1;for(i=0;ifunction(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},n={};for(const a of r)n[a]=i(a);return n}const Og={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},NT=8;class aCt{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class oCt{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Nh{constructor(e,i,n,a){this.id=e,this.name=i,this.defaultValue=n,this.schema=a}applyUpdate(e,i){return w6e(e,i)}compute(e,i,n){return n}}class jne{constructor(e,i){this.newValue=e,this.didChange=i}}function w6e(r,e){if(typeof r!="object"||typeof e!="object"||!r||!e)return new jne(e,r!==e);if(Array.isArray(r)||Array.isArray(e)){const n=Array.isArray(r)&&Array.isArray(e)&&rg(r,e);return new jne(e,!n)}let i=!1;for(const n in e)if(e.hasOwnProperty(n)){const a=w6e(r[n],e[n]);a.didChange&&(r[n]=a.newValue,i=!0)}return new jne(r,i)}class gae{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,i){return w6e(e,i)}validate(e){return this.defaultValue}}class F${constructor(e,i,n,a){this.id=e,this.name=i,this.defaultValue=n,this.schema=a}applyUpdate(e,i){return w6e(e,i)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,i,n){return n}}function Do(r,e){return typeof r>"u"?e:r==="false"?!1:!!r}class pl extends F${constructor(e,i,n,a=void 0){typeof a<"u"&&(a.type="boolean",a.default=n),super(e,i,n,a)}validate(e){return Do(e,this.defaultValue)}}function pje(r,e,i,n){if(typeof r>"u")return e;let a=parseInt(r,10);return isNaN(a)?e:(a=Math.max(i,a),a=Math.min(n,a),a|0)}class gd extends F${static clampedInt(e,i,n,a){return pje(e,i,n,a)}constructor(e,i,n,a,o,c=void 0){typeof c<"u"&&(c.type="integer",c.default=n,c.minimum=a,c.maximum=o),super(e,i,n,c),this.minimum=a,this.maximum=o}validate(e){return gd.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class lA extends F${static clamp(e,i,n){return en?n:e}static float(e,i){if(typeof e=="number")return e;if(typeof e>"u")return i;const n=parseFloat(e);return isNaN(n)?i:n}constructor(e,i,n,a,o){typeof o<"u"&&(o.type="number",o.default=n),super(e,i,n,o),this.validationFn=a}validate(e){return this.validationFn(lA.float(e,this.defaultValue))}}class MD extends F${static string(e,i){return typeof e!="string"?i:e}constructor(e,i,n,a=void 0){typeof a<"u"&&(a.type="string",a.default=n),super(e,i,n,a)}validate(e){return MD.string(e,this.defaultValue)}}function im(r,e,i){return typeof r!="string"||i.indexOf(r)===-1?e:r}class ff extends F${constructor(e,i,n,a,o=void 0){typeof o<"u"&&(o.type="string",o.enum=a,o.default=n),super(e,i,n,o),this._allowedValues=a}validate(e){return im(e,this.defaultValue,this._allowedValues)}}class F_e extends Nh{constructor(e,i,n,a,o,c,h=void 0){typeof h<"u"&&(h.type="string",h.enum=o,h.default=a),super(e,i,n,h),this._allowedValues=o,this._convert=c}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function jgi(r){switch(r){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Vgi extends Nh{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[V("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),V("accessibilitySupport.on","Optimize for usage with a Screen Reader"),V("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:V("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,i,n){return n===0?e.accessibilitySupport:n}}class Hgi extends Nh{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(21,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:V("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:V("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertSpace:Do(i.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Do(i.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function Kgi(r){switch(r){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var xp;(function(r){r[r.Line=1]="Line",r[r.Block=2]="Block",r[r.Underline=3]="Underline",r[r.LineThin=4]="LineThin",r[r.BlockOutline=5]="BlockOutline",r[r.UnderlineThin=6]="UnderlineThin"})(xp||(xp={}));function Wgi(r){switch(r){case"line":return xp.Line;case"block":return xp.Block;case"underline":return xp.Underline;case"line-thin":return xp.LineThin;case"block-outline":return xp.BlockOutline;case"underline-thin":return xp.UnderlineThin}}class Ggi extends gae{constructor(){super(136)}compute(e,i,n){const a=["monaco-editor"];return i.get(37)&&a.push(i.get(37)),e.extraEditorClassName&&a.push(e.extraEditorClassName),i.get(71)==="default"?a.push("mouse-default"):i.get(71)==="copy"&&a.push("mouse-copy"),i.get(106)&&a.push("showUnused"),i.get(134)&&a.push("showDeprecated"),a.join(" ")}}class Jgi extends pl{constructor(){super(35,"emptySelectionClipboard",!0,{description:V("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,i,n){return n&&e.emptySelectionClipboard}}class $gi extends Nh{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(39,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:V("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[V("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),V("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),V("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:V("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[V("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),V("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),V("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:V("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:V("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:d0},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:V("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:V("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{cursorMoveOnType:Do(i.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":im(i.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":im(i.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Do(i.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Do(i.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Do(i.loop,this.defaultValue.loop)}}}class nx extends Nh{constructor(){super(49,"fontLigatures",nx.OFF,{anyOf:[{type:"boolean",description:V("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:V("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:V("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?nx.OFF:e==="true"?nx.ON:e:e?nx.ON:nx.OFF}}nx.OFF='"liga" off, "calt" off';nx.ON='"liga" on, "calt" on';class ay extends Nh{constructor(){super(52,"fontVariations",ay.OFF,{anyOf:[{type:"boolean",description:V("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:V("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:V("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ay.OFF:e==="true"?ay.TRANSLATE:e:e?ay.TRANSLATE:ay.OFF}compute(e,i,n){return e.fontInfo.fontVariationSettings}}ay.OFF="normal";ay.TRANSLATE="translate";class Ugi extends gae{constructor(){super(48)}compute(e,i,n){return e.fontInfo}}class qgi extends F${constructor(){super(50,"fontSize",HD.fontSize,{type:"number",minimum:6,maximum:100,default:HD.fontSize,description:V("fontSize","Controls the font size in pixels.")})}validate(e){const i=lA.float(e,this.defaultValue);return i===0?HD.fontSize:lA.clamp(i,6,100)}compute(e,i,n){return e.fontInfo.fontSize}}class tA extends Nh{constructor(){super(51,"fontWeight",HD.fontWeight,{anyOf:[{type:"number",minimum:tA.MINIMUM_VALUE,maximum:tA.MAXIMUM_VALUE,errorMessage:V("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:tA.SUGGESTION_VALUES}],default:HD.fontWeight,description:V("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(gd.clampedInt(e,HD.fontWeight,tA.MINIMUM_VALUE,tA.MAXIMUM_VALUE))}}tA.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];tA.MINIMUM_VALUE=1;tA.MAXIMUM_VALUE=1e3;class Zgi extends Nh{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},i={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[V("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),V("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),V("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(56,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:V("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:V("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:V("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleDeclarations":Object.assign({description:V("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleImplementations":Object.assign({description:V("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleReferences":Object.assign({description:V("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},i),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:n,description:V("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:n,description:V("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:n,description:V("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:n,description:V("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:n,description:V("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var i,n,a,o,c;if(!e||typeof e!="object")return this.defaultValue;const h=e;return{multiple:im(h.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(i=h.multipleDefinitions)!==null&&i!==void 0?i:im(h.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(n=h.multipleTypeDefinitions)!==null&&n!==void 0?n:im(h.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(a=h.multipleDeclarations)!==null&&a!==void 0?a:im(h.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=h.multipleImplementations)!==null&&o!==void 0?o:im(h.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(c=h.multipleReferences)!==null&&c!==void 0?c:im(h.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:MD.string(h.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:MD.string(h.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:MD.string(h.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:MD.string(h.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:MD.string(h.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Ygi extends Nh{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(58,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:V("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:V("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:V("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:V("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),delay:gd.clampedInt(i.delay,this.defaultValue.delay,0,1e4),sticky:Do(i.sticky,this.defaultValue.sticky),above:Do(i.above,this.defaultValue.above)}}}class tJ extends gae{constructor(){super(139)}compute(e,i,n){return tJ.computeLayout(i,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const i=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight);let a=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(a=Math.max(a,i-1));const o=(n+e.viewLineCount+a)/(e.pixelRatio*e.height),c=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:i,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:a,desiredRatio:o,minimapLineCount:c}}static _computeMinimapLayout(e,i){const n=e.outerWidth,a=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*a),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:a};const c=i.stableMinimapLayoutInput,h=c&&e.outerHeight===c.outerHeight&&e.lineHeight===c.lineHeight&&e.typicalHalfwidthCharacterWidth===c.typicalHalfwidthCharacterWidth&&e.pixelRatio===c.pixelRatio&&e.scrollBeyondLastLine===c.scrollBeyondLastLine&&e.paddingTop===c.paddingTop&&e.paddingBottom===c.paddingBottom&&e.minimap.enabled===c.minimap.enabled&&e.minimap.side===c.minimap.side&&e.minimap.size===c.minimap.size&&e.minimap.showSlider===c.minimap.showSlider&&e.minimap.renderCharacters===c.minimap.renderCharacters&&e.minimap.maxColumn===c.minimap.maxColumn&&e.minimap.scale===c.minimap.scale&&e.verticalScrollbarWidth===c.verticalScrollbarWidth&&e.isViewportWrapping===c.isViewportWrapping,g=e.lineHeight,_=e.typicalHalfwidthCharacterWidth,x=e.scrollBeyondLastLine,y=e.minimap.renderCharacters;let S=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const L=e.minimap.maxColumn,O=e.minimap.size,G=e.minimap.side,ie=e.verticalScrollbarWidth,ue=e.viewLineCount,re=e.remainingWidth,_e=e.isViewportWrapping,ye=y?2:3;let Le=Math.floor(o*a);const lt=Le/o;let Ue=!1,Ze=!1,rt=ye*S,kt=S/o,Zt=1;if(O==="fill"||O==="fit"){const{typicalViewportLineCount:zr,extraLinesBeforeFirstLine:Lu,extraLinesBeyondLastLine:Va,desiredRatio:ju,minimapLineCount:Tr}=tJ.computeContainedMinimapLineCount({viewLineCount:ue,scrollBeyondLastLine:x,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:a,lineHeight:g,pixelRatio:o});if(ue/Tr>1)Ue=!0,Ze=!0,S=1,rt=1,kt=S/o;else{let z0=!1,ra=S+1;if(O==="fit"){const qi=Math.ceil((Lu+ue+Va)*rt);_e&&h&&re<=i.stableFitRemainingWidth?(z0=!0,ra=i.stableFitMaxMinimapScale):z0=qi>Le}if(O==="fill"||z0){Ue=!0;const qi=S;rt=Math.min(g*o,Math.max(1,Math.floor(1/ju))),_e&&h&&re<=i.stableFitRemainingWidth&&(ra=i.stableFitMaxMinimapScale),S=Math.min(ra,Math.max(1,Math.floor(rt/ye))),S>qi&&(Zt=Math.min(2,S/qi)),kt=S/o/Zt,Le=Math.ceil(Math.max(zr,Lu+ue+Va)*rt),_e?(i.stableMinimapLayoutInput=e,i.stableFitRemainingWidth=re,i.stableFitMaxMinimapScale=S):(i.stableMinimapLayoutInput=null,i.stableFitRemainingWidth=0)}}}const jt=Math.floor(L*kt),ui=Math.min(jt,Math.max(0,Math.floor((re-ie-2)*kt/(_+kt)))+NT);let ti=Math.floor(o*ui);const Uu=ti/o;ti=Math.floor(ti*Zt);const pu=y?1:2,Vt=G==="left"?0:n-ui-ie;return{renderMinimap:pu,minimapLeft:Vt,minimapWidth:ui,minimapHeightIsEditorHeight:Ue,minimapIsSampling:Ze,minimapScale:S,minimapLineHeight:rt,minimapCanvasInnerWidth:ti,minimapCanvasInnerHeight:Le,minimapCanvasOuterWidth:Uu,minimapCanvasOuterHeight:lt}}static computeLayout(e,i){const n=i.outerWidth|0,a=i.outerHeight|0,o=i.lineHeight|0,c=i.lineNumbersDigitCount|0,h=i.typicalHalfwidthCharacterWidth,g=i.maxDigitWidth,_=i.pixelRatio,x=i.viewLineCount,y=e.get(131),S=y==="inherit"?e.get(130):y,L=S==="inherit"?e.get(126):S,O=e.get(129),G=i.isDominatedByLongLines,ie=e.get(55),ue=e.get(65).renderType!==0,re=e.get(66),_e=e.get(100),ye=e.get(81),Le=e.get(70),lt=e.get(98),Ue=lt.verticalScrollbarSize,Ze=lt.verticalHasArrows,rt=lt.arrowSize,kt=lt.horizontalScrollbarSize,Zt=e.get(41),jt=e.get(105)!=="never";let ui=e.get(63);Zt&&jt&&(ui+=16);let ti=0;if(ue){const Fa=Math.max(c,re);ti=Math.round(Fa*g)}let Uu=0;ie&&(Uu=o);let pu=0,Vt=pu+Uu,zr=Vt+ti,Lu=zr+ui;const Va=n-Uu-ti-ui;let ju=!1,Tr=!1,pa=-1;S==="inherit"&&G?(ju=!0,Tr=!0):L==="on"||L==="bounded"?Tr=!0:L==="wordWrapColumn"&&(pa=O);const z0=tJ._computeMinimapLayout({outerWidth:n,outerHeight:a,lineHeight:o,typicalHalfwidthCharacterWidth:h,pixelRatio:_,scrollBeyondLastLine:_e,paddingTop:ye.top,paddingBottom:ye.bottom,minimap:Le,verticalScrollbarWidth:Ue,viewLineCount:x,remainingWidth:Va,isViewportWrapping:Tr},i.memory||new oCt);z0.renderMinimap!==0&&z0.minimapLeft===0&&(pu+=z0.minimapWidth,Vt+=z0.minimapWidth,zr+=z0.minimapWidth,Lu+=z0.minimapWidth);const ra=Va-z0.minimapWidth,qi=Math.max(1,Math.floor((ra-Ue-2)/h)),eo=Ze?rt:0;return Tr&&(pa=Math.max(1,qi),L==="bounded"&&(pa=Math.min(pa,O))),{width:n,height:a,glyphMarginLeft:pu,glyphMarginWidth:Uu,lineNumbersLeft:Vt,lineNumbersWidth:ti,decorationsLeft:zr,decorationsWidth:ui,contentLeft:Lu,contentWidth:ra,minimap:z0,viewportColumn:qi,isWordWrapMinified:ju,isViewportWrapping:Tr,wrappingColumn:pa,verticalScrollbarWidth:Ue,horizontalScrollbarHeight:kt,overviewRuler:{top:eo,width:Ue,height:a-2*eo,right:0}}}}class Qgi extends Nh{constructor(){super(133,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[V("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),V("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:V("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return im(e,"simple",["simple","advanced"])}compute(e,i,n){return i.get(2)===2?"advanced":n}}class Xgi extends Nh{constructor(){const e={enabled:!0};super(62,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:V("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Do(e.enabled,this.defaultValue.enabled)}}}class eEi extends Nh{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel"};super(110,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:V("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:V("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:V("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),maxLineCount:gd.clampedInt(i.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:im(i.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"])}}}class tEi extends Nh{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(135,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:V("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[V("editor.inlayHints.on","Inlay hints are enabled"),V("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",d0?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",d0?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:V("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:V("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:V("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return typeof i.enabled=="boolean"&&(i.enabled=i.enabled?"on":"off"),{enabled:im(i.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:gd.clampedInt(i.fontSize,this.defaultValue.fontSize,0,100),fontFamily:MD.string(i.fontFamily,this.defaultValue.fontFamily),padding:Do(i.padding,this.defaultValue.padding)}}}class iEi extends Nh{constructor(){super(63,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):gd.clampedInt(e,this.defaultValue,0,1e3)}compute(e,i,n){return n<0?gd.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class nEi extends lA{constructor(){super(64,"lineHeight",HD.lineHeight,e=>lA.clamp(e,0,150),{markdownDescription:V("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,i,n){return e.fontInfo.lineHeight}}class Yfi extends Th{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(70,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:V("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:V("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[V("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),V("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),V("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:V("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:V("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:V("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:V("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:V("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:V("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Eo(i.enabled,this.defaultValue.enabled),autohide:Eo(i.autohide,this.defaultValue.autohide),size:tm(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:tm(i.side,this.defaultValue.side,["right","left"]),showSlider:tm(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Eo(i.renderCharacters,this.defaultValue.renderCharacters),scale:md.clampedInt(i.scale,1,1,3),maxColumn:md.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function Qfi(r){return r==="ctrlCmd"?c0?"metaKey":"ctrlKey":"altKey"}class Xfi extends Th{constructor(){super(81,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{top:md.clampedInt(i.top,0,0,1e3),bottom:md.clampedInt(i.bottom,0,0,1e3)}}}class emi extends Th{constructor(){const e={enabled:!0,cycle:!0};super(82,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:V("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:V("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Eo(i.enabled,this.defaultValue.enabled),cycle:Eo(i.cycle,this.defaultValue.cycle)}}}class tmi extends dae{constructor(){super(137)}compute(e,i,n){return e.pixelRatio}}class imi extends Th{constructor(){const e={other:"on",comments:"off",strings:"off"},i=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[V("on","Quick suggestions show inside the suggest widget"),V("inline","Quick suggestions show as ghost text"),V("off","Quick suggestions are disabled")]}];super(85,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:i,default:e.strings,description:V("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:i,default:e.comments,description:V("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:i,default:e.other,description:V("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:V("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const _=e?"on":"off";return{comments:_,strings:_,other:_}}if(!e||typeof e!="object")return this.defaultValue;const{other:i,comments:n,strings:a}=e,o=["on","inline","off"];let c,h,g;return typeof i=="boolean"?c=i?"on":"off":c=tm(i,this.defaultValue.other,o),typeof n=="boolean"?h=n?"on":"off":h=tm(n,this.defaultValue.comments,o),typeof a=="boolean"?g=a?"on":"off":g=tm(a,this.defaultValue.strings,o),{other:c,comments:h,strings:g}}}class nmi extends Th{constructor(){super(65,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[V("lineNumbers.off","Line numbers are not rendered."),V("lineNumbers.on","Line numbers are rendered as absolute number."),V("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),V("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:V("lineNumbers","Controls the display of line numbers.")})}validate(e){let i=this.defaultValue.renderType,n=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(i=4,n=e):e==="interval"?i=3:e==="relative"?i=2:e==="on"?i=1:i=0),{renderType:i,renderFn:n}}}function QDe(r){const e=r.get(93);return e==="editable"?r.get(87):e!=="on"}class umi extends Th{constructor(){const e=[],i={type:"number",description:V("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(97,"rulers",e,{type:"array",items:{anyOf:[i,{type:["object"],properties:{column:i,color:{type:"string",description:V("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:V("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const i=[];for(const n of e)if(typeof n=="number")i.push({column:md.clampedInt(n,0,0,1e4),color:null});else if(n&&typeof n=="object"){const a=n;i.push({column:md.clampedInt(a.column,0,0,1e4),color:a.color})}return i.sort((n,a)=>n.column-a.column),i}return this.defaultValue}}function fgt(r,e){if(typeof r!="string")return e;switch(r){case"hidden":return 2;case"visible":return 3;default:return 1}}let rmi=class extends Th{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(98,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),V("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),V("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),V("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),V("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:V("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:V("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:V("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e,n=md.clampedInt(i.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),a=md.clampedInt(i.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:md.clampedInt(i.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:fgt(i.vertical,this.defaultValue.vertical),horizontal:fgt(i.horizontal,this.defaultValue.horizontal),useShadows:Eo(i.useShadows,this.defaultValue.useShadows),verticalHasArrows:Eo(i.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Eo(i.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Eo(i.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Eo(i.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:md.clampedInt(i.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:a,verticalSliderSize:md.clampedInt(i.verticalSliderSize,a,0,1e3),scrollByPage:Eo(i.scrollByPage,this.defaultValue.scrollByPage)}}};const Z5="inUntrustedWorkspace",N3={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class ami extends Th{constructor(){const e={nonBasicASCII:Z5,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Z5,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(120,"unicodeHighlight",e,{[N3.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Z5],default:e.nonBasicASCII,description:V("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[N3.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:V("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[N3.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:V("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[N3.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Z5],default:e.includeComments,description:V("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[N3.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Z5],default:e.includeStrings,description:V("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[N3.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:V("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[N3.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:V("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,i){let n=!1;i.allowedCharacters&&e&&(lx(e.allowedCharacters,i.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:i.allowedCharacters}),n=!0)),i.allowedLocales&&e&&(lx(e.allowedLocales,i.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:i.allowedLocales}),n=!0));const a=super.applyUpdate(e,i);return n?new Mne(a.newValue,!0):a}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{nonBasicASCII:YG(i.nonBasicASCII,Z5,[!0,!1,Z5]),invisibleCharacters:Eo(i.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Eo(i.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:YG(i.includeComments,Z5,[!0,!1,Z5]),includeStrings:YG(i.includeStrings,Z5,[!0,!1,Z5]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,i){if(typeof e!="object"||!e)return i;const n={};for(const[a,o]of Object.entries(e))o===!0&&(n[a]=!0);return n}}class omi extends Th{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1};super(60,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:V("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[V("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),V("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:V("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:V("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Eo(i.enabled,this.defaultValue.enabled),mode:tm(i.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:tm(i.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:Eo(i.suppressSuggestions,this.defaultValue.suppressSuggestions)}}}class smi extends Th{constructor(){const e={enabled:Rg.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:Rg.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(13,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:V("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Eo(i.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Eo(i.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class lmi extends Th{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(14,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairs.true","Enables bracket pair guides."),V("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),V("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:V("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),V("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),V("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:V("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:V("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:V("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[V("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),V("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),V("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:V("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{bracketPairs:YG(i.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:YG(i.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Eo(i.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Eo(i.indentation,this.defaultValue.indentation),highlightActiveIndentation:YG(i.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function YG(r,e,i){const n=i.indexOf(r);return n===-1?e:i[n]}class cmi extends Th{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(113,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[V("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),V("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:V("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:V("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:V("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:V("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[V("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),V("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:V("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:V("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:V("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:V("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:V("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:V("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:V("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:V("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertMode:tm(i.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Eo(i.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Eo(i.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Eo(i.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Eo(i.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:tm(i.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Eo(i.showIcons,this.defaultValue.showIcons),showStatusBar:Eo(i.showStatusBar,this.defaultValue.showStatusBar),preview:Eo(i.preview,this.defaultValue.preview),previewMode:tm(i.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Eo(i.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Eo(i.showMethods,this.defaultValue.showMethods),showFunctions:Eo(i.showFunctions,this.defaultValue.showFunctions),showConstructors:Eo(i.showConstructors,this.defaultValue.showConstructors),showDeprecated:Eo(i.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Eo(i.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Eo(i.showFields,this.defaultValue.showFields),showVariables:Eo(i.showVariables,this.defaultValue.showVariables),showClasses:Eo(i.showClasses,this.defaultValue.showClasses),showStructs:Eo(i.showStructs,this.defaultValue.showStructs),showInterfaces:Eo(i.showInterfaces,this.defaultValue.showInterfaces),showModules:Eo(i.showModules,this.defaultValue.showModules),showProperties:Eo(i.showProperties,this.defaultValue.showProperties),showEvents:Eo(i.showEvents,this.defaultValue.showEvents),showOperators:Eo(i.showOperators,this.defaultValue.showOperators),showUnits:Eo(i.showUnits,this.defaultValue.showUnits),showValues:Eo(i.showValues,this.defaultValue.showValues),showConstants:Eo(i.showConstants,this.defaultValue.showConstants),showEnums:Eo(i.showEnums,this.defaultValue.showEnums),showEnumMembers:Eo(i.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Eo(i.showKeywords,this.defaultValue.showKeywords),showWords:Eo(i.showWords,this.defaultValue.showWords),showColors:Eo(i.showColors,this.defaultValue.showColors),showFiles:Eo(i.showFiles,this.defaultValue.showFiles),showReferences:Eo(i.showReferences,this.defaultValue.showReferences),showFolders:Eo(i.showFolders,this.defaultValue.showFolders),showTypeParameters:Eo(i.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Eo(i.showSnippets,this.defaultValue.showSnippets),showUsers:Eo(i.showUsers,this.defaultValue.showUsers),showIssues:Eo(i.showIssues,this.defaultValue.showIssues)}}}class dmi extends Th{constructor(){super(108,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:V("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Eo(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class hmi extends Th{constructor(){super(132,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[V("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),V("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),V("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),V("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:V("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,i,n){return i.get(2)===2?0:n}}class fmi extends dae{constructor(){super(140)}compute(e,i,n){const a=i.get(139);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:a.isWordWrapMinified,isViewportWrapping:a.isViewportWrapping,wrappingColumn:a.wrappingColumn}}}class mmi extends Th{constructor(){const e={enabled:!0};super(34,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Eo(e.enabled,this.defaultValue.enabled)}}}const pmi="Consolas, 'Courier New', monospace",gmi="Menlo, Monaco, 'Courier New', monospace",Emi="'Droid Sans Mono', 'monospace', monospace",VD={fontFamily:c0?gmi:ug?Emi:pmi,fontWeight:"normal",fontSize:c0?12:14,lineHeight:0,letterSpacing:0},CG=[];function Nu(r){return CG[r.id]=r,r}const Ny={acceptSuggestionOnCommitCharacter:Nu(new fl(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:V("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Nu(new hf(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",V("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:V("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Nu(new Pfi),accessibilityPageSize:Nu(new md(3,"accessibilityPageSize",10,1,1073741824,{description:V("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:Nu(new PD(4,"ariaLabel",V("editorViewAccessibleLabel","Editor content"))),screenReaderAnnounceInlineSuggestion:Nu(new fl(6,"screenReaderAnnounceInlineSuggestion",!1,{description:V("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader. Note that this does not work on macOS with VoiceOver."),tags:["accessibility"]})),autoClosingBrackets:Nu(new hf(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),V("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:V("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:Nu(new hf(7,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Nu(new hf(8,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Nu(new hf(9,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),V("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:V("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Nu(new b_e(10,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],Nfi,{enumDescriptions:[V("editor.autoIndent.none","The editor will not insert indentation automatically."),V("editor.autoIndent.keep","The editor will keep the current line's indentation."),V("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),V("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),V("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:V("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Nu(new fl(11,"automaticLayout",!1)),autoSurround:Nu(new hf(12,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[V("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),V("editor.autoSurround.quotes","Surround with quotes but not brackets."),V("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:V("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Nu(new smi),bracketPairGuides:Nu(new lmi),stickyTabStops:Nu(new fl(111,"stickyTabStops",!1,{description:V("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Nu(new fl(15,"codeLens",!0,{description:V("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Nu(new PD(16,"codeLensFontFamily","",{description:V("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Nu(new md(17,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:V("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Nu(new fl(18,"colorDecorators",!0,{description:V("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:Nu(new md(19,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:V("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:Nu(new fl(20,"columnSelection",!1,{description:V("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Nu(new Mfi),contextmenu:Nu(new fl(22,"contextmenu",!0)),copyWithSyntaxHighlighting:Nu(new fl(23,"copyWithSyntaxHighlighting",!0,{description:V("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Nu(new b_e(24,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],zfi,{description:V("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Nu(new hf(25,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[V("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),V("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),V("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:V("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Nu(new b_e(26,"cursorStyle",_p.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Ifi,{description:V("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Nu(new md(27,"cursorSurroundingLines",0,0,1073741824,{description:V("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Nu(new hf(28,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[V("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),V("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:V("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:Nu(new md(29,"cursorWidth",0,0,1073741824,{markdownDescription:V("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Nu(new fl(30,"disableLayerHinting",!1)),disableMonospaceOptimizations:Nu(new fl(31,"disableMonospaceOptimizations",!1)),domReadOnly:Nu(new fl(32,"domReadOnly",!1)),dragAndDrop:Nu(new fl(33,"dragAndDrop",!0,{description:V("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Nu(new Ofi),dropIntoEditor:Nu(new mmi),stickyScroll:Nu(new $fi),experimentalWhitespaceRendering:Nu(new hf(36,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[V("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),V("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),V("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:V("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:Nu(new PD(37,"extraEditorClassName","")),fastScrollSensitivity:Nu(new sA(38,"fastScrollSensitivity",5,r=>r<=0?5:r,{markdownDescription:V("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Nu(new jfi),fixedOverflowWidgets:Nu(new fl(40,"fixedOverflowWidgets",!1)),folding:Nu(new fl(41,"folding",!0,{description:V("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Nu(new hf(42,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[V("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),V("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:V("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Nu(new fl(43,"foldingHighlight",!0,{description:V("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Nu(new fl(44,"foldingImportsByDefault",!1,{description:V("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Nu(new md(45,"foldingMaximumRegions",5e3,10,65e3,{description:V("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:Nu(new fl(46,"unfoldOnClickAfterEndOfLine",!1,{description:V("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Nu(new PD(47,"fontFamily",VD.fontFamily,{description:V("fontFamily","Controls the font family.")})),fontInfo:Nu(new Vfi),fontLigatures2:Nu(new ix),fontSize:Nu(new Hfi),fontWeight:Nu(new QF),fontVariations:Nu(new ny),formatOnPaste:Nu(new fl(53,"formatOnPaste",!1,{description:V("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Nu(new fl(54,"formatOnType",!1,{description:V("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Nu(new fl(55,"glyphMargin",!0,{description:V("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Nu(new Kfi),hideCursorInOverviewRuler:Nu(new fl(57,"hideCursorInOverviewRuler",!1,{description:V("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Nu(new Wfi),inDiffEditor:Nu(new fl(59,"inDiffEditor",!1)),letterSpacing:Nu(new sA(61,"letterSpacing",VD.letterSpacing,r=>sA.clamp(r,-5,20),{description:V("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Nu(new Jfi),lineDecorationsWidth:Nu(new qfi),lineHeight:Nu(new Zfi),lineNumbers:Nu(new nmi),lineNumbersMinChars:Nu(new md(66,"lineNumbersMinChars",5,1,300)),linkedEditing:Nu(new fl(67,"linkedEditing",!1,{description:V("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:Nu(new fl(68,"links",!0,{description:V("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Nu(new hf(69,"matchBrackets","always",["always","near","never"],{description:V("matchBrackets","Highlight matching brackets.")})),minimap:Nu(new Yfi),mouseStyle:Nu(new hf(71,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Nu(new sA(72,"mouseWheelScrollSensitivity",1,r=>r===0?1:r,{markdownDescription:V("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Nu(new fl(73,"mouseWheelZoom",!1,{markdownDescription:V("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Nu(new fl(74,"multiCursorMergeOverlapping",!0,{description:V("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Nu(new b_e(75,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],Qfi,{markdownEnumDescriptions:[V("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),V("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:V({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Nu(new hf(76,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[V("multiCursorPaste.spread","Each cursor pastes a single line of the text."),V("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:V("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:Nu(new md(77,"multiCursorLimit",1e4,1,1e5,{markdownDescription:V("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:Nu(new fl(78,"occurrencesHighlight",!0,{description:V("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:Nu(new fl(79,"overviewRulerBorder",!0,{description:V("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Nu(new md(80,"overviewRulerLanes",3,0,3)),padding:Nu(new Xfi),parameterHints:Nu(new emi),peekWidgetDefaultFocus:Nu(new hf(83,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[V("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),V("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:V("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:Nu(new fl(84,"definitionLinkOpensInPeek",!1,{description:V("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Nu(new imi),quickSuggestionsDelay:Nu(new md(86,"quickSuggestionsDelay",10,0,1073741824,{description:V("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Nu(new fl(87,"readOnly",!1)),renameOnType:Nu(new fl(88,"renameOnType",!1,{description:V("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:V("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Nu(new fl(89,"renderControlCharacters",!0,{description:V("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Nu(new hf(90,"renderFinalNewline",ug?"dimmed":"on",["off","on","dimmed"],{description:V("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Nu(new hf(91,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",V("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:V("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Nu(new fl(92,"renderLineHighlightOnlyWhenFocus",!1,{description:V("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Nu(new hf(93,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Nu(new hf(94,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",V("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),V("renderWhitespace.selection","Render whitespace characters only on selected text."),V("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:V("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Nu(new md(95,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Nu(new fl(96,"roundedSelection",!0,{description:V("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Nu(new umi),scrollbar:Nu(new rmi),scrollBeyondLastColumn:Nu(new md(99,"scrollBeyondLastColumn",4,0,1073741824,{description:V("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Nu(new fl(100,"scrollBeyondLastLine",!0,{description:V("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Nu(new fl(101,"scrollPredominantAxis",!0,{description:V("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Nu(new fl(102,"selectionClipboard",!0,{description:V("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:ug})),selectionHighlight:Nu(new fl(103,"selectionHighlight",!0,{description:V("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Nu(new fl(104,"selectOnLineNumbers",!0)),showFoldingControls:Nu(new hf(105,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[V("showFoldingControls.always","Always show the folding controls."),V("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),V("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:V("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Nu(new fl(106,"showUnused",!0,{description:V("showUnused","Controls fading out of unused code.")})),showDeprecated:Nu(new fl(134,"showDeprecated",!0,{description:V("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Nu(new Ufi),snippetSuggestions:Nu(new hf(107,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[V("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),V("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),V("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),V("snippetSuggestions.none","Do not show snippet suggestions.")],description:V("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Nu(new dmi),smoothScrolling:Nu(new fl(109,"smoothScrolling",!1,{description:V("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Nu(new md(112,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Nu(new cmi),inlineSuggest:Nu(new omi),suggestFontSize:Nu(new md(114,"suggestFontSize",0,0,1e3,{markdownDescription:V("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Nu(new md(115,"suggestLineHeight",0,0,1e3,{markdownDescription:V("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Nu(new fl(116,"suggestOnTriggerCharacters",!0,{description:V("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Nu(new hf(117,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[V("suggestSelection.first","Always select the first suggestion."),V("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),V("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:V("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Nu(new hf(118,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[V("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),V("tabCompletion.off","Disable tab completions."),V("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:V("tabCompletion","Enables tab completions.")})),tabIndex:Nu(new md(119,"tabIndex",0,-1,1073741824)),unicodeHighlight:Nu(new ami),unusualLineTerminators:Nu(new hf(121,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[V("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),V("unusualLineTerminators.off","Unusual line terminators are ignored."),V("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:V("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Nu(new fl(122,"useShadowDOM",!0)),useTabStops:Nu(new fl(123,"useTabStops",!0,{description:V("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:Nu(new hf(124,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[V("wordBreak.normal","Use the default line break rule."),V("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:V("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:Nu(new PD(125,"wordSeparators",tvt,{description:V("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Nu(new hf(126,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[V("wordWrap.off","Lines will never wrap."),V("wordWrap.on","Lines will wrap at the viewport width."),V({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),V({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:V({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Nu(new PD(127,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Nu(new PD(128,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Nu(new md(129,"wordWrapColumn",80,1,1073741824,{markdownDescription:V({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Nu(new hf(130,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Nu(new hf(131,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Nu(new Rfi),pixelRatio:Nu(new tmi),tabFocusMode:Nu(new fl(138,"tabFocusMode",!1,{markdownDescription:V("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:Nu(new ZG),wrappingInfo:Nu(new fmi),wrappingIndent:Nu(new hmi),wrappingStrategy:Nu(new Gfi)};class _mi{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?wJ.isErrorNoTelemetry(e)?new wJ(e.message+` + - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,i,n){return e.fontInfo.lineHeight}}class uEi extends Nh{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(70,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:V("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:V("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[V("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),V("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),V("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:V("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:V("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:V("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:V("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:V("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:V("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),autohide:Do(i.autohide,this.defaultValue.autohide),size:im(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:im(i.side,this.defaultValue.side,["right","left"]),showSlider:im(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Do(i.renderCharacters,this.defaultValue.renderCharacters),scale:gd.clampedInt(i.scale,1,1,3),maxColumn:gd.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function rEi(r){return r==="ctrlCmd"?d0?"metaKey":"ctrlKey":"altKey"}class aEi extends Nh{constructor(){super(81,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{top:gd.clampedInt(i.top,0,0,1e3),bottom:gd.clampedInt(i.bottom,0,0,1e3)}}}class oEi extends Nh{constructor(){const e={enabled:!0,cycle:!0};super(82,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:V("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:V("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),cycle:Do(i.cycle,this.defaultValue.cycle)}}}class sEi extends gae{constructor(){super(137)}compute(e,i,n){return e.pixelRatio}}class lEi extends Nh{constructor(){const e={other:"on",comments:"off",strings:"off"},i=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[V("on","Quick suggestions show inside the suggest widget"),V("inline","Quick suggestions show as ghost text"),V("off","Quick suggestions are disabled")]}];super(85,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:i,default:e.strings,description:V("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:i,default:e.comments,description:V("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:i,default:e.other,description:V("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:V("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const _=e?"on":"off";return{comments:_,strings:_,other:_}}if(!e||typeof e!="object")return this.defaultValue;const{other:i,comments:n,strings:a}=e,o=["on","inline","off"];let c,h,g;return typeof i=="boolean"?c=i?"on":"off":c=im(i,this.defaultValue.other,o),typeof n=="boolean"?h=n?"on":"off":h=im(n,this.defaultValue.comments,o),typeof a=="boolean"?g=a?"on":"off":g=im(a,this.defaultValue.strings,o),{other:c,comments:h,strings:g}}}class cEi extends Nh{constructor(){super(65,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[V("lineNumbers.off","Line numbers are not rendered."),V("lineNumbers.on","Line numbers are rendered as absolute number."),V("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),V("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:V("lineNumbers","Controls the display of line numbers.")})}validate(e){let i=this.defaultValue.renderType,n=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(i=4,n=e):e==="interval"?i=3:e==="relative"?i=2:e==="on"?i=1:i=0),{renderType:i,renderFn:n}}}function u5e(r){const e=r.get(93);return e==="editable"?r.get(87):e!=="on"}class dEi extends Nh{constructor(){const e=[],i={type:"number",description:V("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(97,"rulers",e,{type:"array",items:{anyOf:[i,{type:["object"],properties:{column:i,color:{type:"string",description:V("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:V("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const i=[];for(const n of e)if(typeof n=="number")i.push({column:gd.clampedInt(n,0,0,1e4),color:null});else if(n&&typeof n=="object"){const a=n;i.push({column:gd.clampedInt(a.column,0,0,1e4),color:a.color})}return i.sort((n,a)=>n.column-a.column),i}return this.defaultValue}}function Cgt(r,e){if(typeof r!="string")return e;switch(r){case"hidden":return 2;case"visible":return 3;default:return 1}}let hEi=class extends Nh{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(98,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),V("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),V("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),V("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),V("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:V("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:V("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:V("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e,n=gd.clampedInt(i.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),a=gd.clampedInt(i.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:gd.clampedInt(i.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Cgt(i.vertical,this.defaultValue.vertical),horizontal:Cgt(i.horizontal,this.defaultValue.horizontal),useShadows:Do(i.useShadows,this.defaultValue.useShadows),verticalHasArrows:Do(i.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Do(i.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Do(i.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Do(i.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:gd.clampedInt(i.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:a,verticalSliderSize:gd.clampedInt(i.verticalSliderSize,a,0,1e3),scrollByPage:Do(i.scrollByPage,this.defaultValue.scrollByPage)}}};const Q5="inUntrustedWorkspace",P3={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class fEi extends Nh{constructor(){const e={nonBasicASCII:Q5,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Q5,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(120,"unicodeHighlight",e,{[P3.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Q5],default:e.nonBasicASCII,description:V("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[P3.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:V("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P3.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:V("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P3.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Q5],default:e.includeComments,description:V("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P3.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Q5],default:e.includeStrings,description:V("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P3.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:V("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P3.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:V("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,i){let n=!1;i.allowedCharacters&&e&&(cx(e.allowedCharacters,i.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:i.allowedCharacters}),n=!0)),i.allowedLocales&&e&&(cx(e.allowedLocales,i.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:i.allowedLocales}),n=!0));const a=super.applyUpdate(e,i);return n?new jne(a.newValue,!0):a}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{nonBasicASCII:iJ(i.nonBasicASCII,Q5,[!0,!1,Q5]),invisibleCharacters:Do(i.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Do(i.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:iJ(i.includeComments,Q5,[!0,!1,Q5]),includeStrings:iJ(i.includeStrings,Q5,[!0,!1,Q5]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,i){if(typeof e!="object"||!e)return i;const n={};for(const[a,o]of Object.entries(e))o===!0&&(n[a]=!0);return n}}class mEi extends Nh{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1};super(60,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:V("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[V("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),V("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:V("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:V("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),mode:im(i.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:im(i.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:Do(i.suppressSuggestions,this.defaultValue.suppressSuggestions)}}}class pEi extends Nh{constructor(){const e={enabled:Og.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:Og.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(13,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:V("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Do(i.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class gEi extends Nh{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(14,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairs.true","Enables bracket pair guides."),V("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),V("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:V("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),V("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),V("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:V("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:V("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:V("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[V("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),V("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),V("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:V("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{bracketPairs:iJ(i.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:iJ(i.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Do(i.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Do(i.indentation,this.defaultValue.indentation),highlightActiveIndentation:iJ(i.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function iJ(r,e,i){const n=i.indexOf(r);return n===-1?e:i[n]}class EEi extends Nh{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(113,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[V("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),V("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:V("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:V("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:V("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:V("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[V("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),V("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:V("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:V("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:V("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:V("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:V("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:V("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:V("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:V("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertMode:im(i.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Do(i.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Do(i.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Do(i.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Do(i.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:im(i.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Do(i.showIcons,this.defaultValue.showIcons),showStatusBar:Do(i.showStatusBar,this.defaultValue.showStatusBar),preview:Do(i.preview,this.defaultValue.preview),previewMode:im(i.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Do(i.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Do(i.showMethods,this.defaultValue.showMethods),showFunctions:Do(i.showFunctions,this.defaultValue.showFunctions),showConstructors:Do(i.showConstructors,this.defaultValue.showConstructors),showDeprecated:Do(i.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Do(i.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Do(i.showFields,this.defaultValue.showFields),showVariables:Do(i.showVariables,this.defaultValue.showVariables),showClasses:Do(i.showClasses,this.defaultValue.showClasses),showStructs:Do(i.showStructs,this.defaultValue.showStructs),showInterfaces:Do(i.showInterfaces,this.defaultValue.showInterfaces),showModules:Do(i.showModules,this.defaultValue.showModules),showProperties:Do(i.showProperties,this.defaultValue.showProperties),showEvents:Do(i.showEvents,this.defaultValue.showEvents),showOperators:Do(i.showOperators,this.defaultValue.showOperators),showUnits:Do(i.showUnits,this.defaultValue.showUnits),showValues:Do(i.showValues,this.defaultValue.showValues),showConstants:Do(i.showConstants,this.defaultValue.showConstants),showEnums:Do(i.showEnums,this.defaultValue.showEnums),showEnumMembers:Do(i.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Do(i.showKeywords,this.defaultValue.showKeywords),showWords:Do(i.showWords,this.defaultValue.showWords),showColors:Do(i.showColors,this.defaultValue.showColors),showFiles:Do(i.showFiles,this.defaultValue.showFiles),showReferences:Do(i.showReferences,this.defaultValue.showReferences),showFolders:Do(i.showFolders,this.defaultValue.showFolders),showTypeParameters:Do(i.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Do(i.showSnippets,this.defaultValue.showSnippets),showUsers:Do(i.showUsers,this.defaultValue.showUsers),showIssues:Do(i.showIssues,this.defaultValue.showIssues)}}}class _Ei extends Nh{constructor(){super(108,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:V("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Do(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class DEi extends Nh{constructor(){super(132,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[V("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),V("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),V("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),V("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:V("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,i,n){return i.get(2)===2?0:n}}class xEi extends gae{constructor(){super(140)}compute(e,i,n){const a=i.get(139);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:a.isWordWrapMinified,isViewportWrapping:a.isViewportWrapping,wrappingColumn:a.wrappingColumn}}}class vEi extends Nh{constructor(){const e={enabled:!0};super(34,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Do(e.enabled,this.defaultValue.enabled)}}}const CEi="Consolas, 'Courier New', monospace",bEi="Menlo, Monaco, 'Courier New', monospace",yEi="'Droid Sans Mono', 'monospace', monospace",HD={fontFamily:d0?bEi:sg?yEi:CEi,fontWeight:"normal",fontSize:d0?12:14,lineHeight:0,letterSpacing:0},kG=[];function Nu(r){return kG[r.id]=r,r}const zy={acceptSuggestionOnCommitCharacter:Nu(new pl(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:V("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Nu(new ff(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",V("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:V("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Nu(new Vgi),accessibilityPageSize:Nu(new gd(3,"accessibilityPageSize",10,1,1073741824,{description:V("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:Nu(new MD(4,"ariaLabel",V("editorViewAccessibleLabel","Editor content"))),screenReaderAnnounceInlineSuggestion:Nu(new pl(6,"screenReaderAnnounceInlineSuggestion",!1,{description:V("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader. Note that this does not work on macOS with VoiceOver."),tags:["accessibility"]})),autoClosingBrackets:Nu(new ff(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),V("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:V("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:Nu(new ff(7,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Nu(new ff(8,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Nu(new ff(9,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),V("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:V("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Nu(new F_e(10,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],jgi,{enumDescriptions:[V("editor.autoIndent.none","The editor will not insert indentation automatically."),V("editor.autoIndent.keep","The editor will keep the current line's indentation."),V("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),V("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),V("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:V("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Nu(new pl(11,"automaticLayout",!1)),autoSurround:Nu(new ff(12,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[V("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),V("editor.autoSurround.quotes","Surround with quotes but not brackets."),V("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:V("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Nu(new pEi),bracketPairGuides:Nu(new gEi),stickyTabStops:Nu(new pl(111,"stickyTabStops",!1,{description:V("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Nu(new pl(15,"codeLens",!0,{description:V("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Nu(new MD(16,"codeLensFontFamily","",{description:V("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Nu(new gd(17,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:V("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Nu(new pl(18,"colorDecorators",!0,{description:V("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:Nu(new gd(19,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:V("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:Nu(new pl(20,"columnSelection",!1,{description:V("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Nu(new Hgi),contextmenu:Nu(new pl(22,"contextmenu",!0)),copyWithSyntaxHighlighting:Nu(new pl(23,"copyWithSyntaxHighlighting",!0,{description:V("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Nu(new F_e(24,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],Kgi,{description:V("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Nu(new ff(25,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[V("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),V("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),V("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:V("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Nu(new F_e(26,"cursorStyle",xp.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Wgi,{description:V("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Nu(new gd(27,"cursorSurroundingLines",0,0,1073741824,{description:V("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Nu(new ff(28,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[V("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),V("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:V("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:Nu(new gd(29,"cursorWidth",0,0,1073741824,{markdownDescription:V("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Nu(new pl(30,"disableLayerHinting",!1)),disableMonospaceOptimizations:Nu(new pl(31,"disableMonospaceOptimizations",!1)),domReadOnly:Nu(new pl(32,"domReadOnly",!1)),dragAndDrop:Nu(new pl(33,"dragAndDrop",!0,{description:V("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Nu(new Jgi),dropIntoEditor:Nu(new vEi),stickyScroll:Nu(new eEi),experimentalWhitespaceRendering:Nu(new ff(36,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[V("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),V("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),V("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:V("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:Nu(new MD(37,"extraEditorClassName","")),fastScrollSensitivity:Nu(new lA(38,"fastScrollSensitivity",5,r=>r<=0?5:r,{markdownDescription:V("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Nu(new $gi),fixedOverflowWidgets:Nu(new pl(40,"fixedOverflowWidgets",!1)),folding:Nu(new pl(41,"folding",!0,{description:V("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Nu(new ff(42,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[V("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),V("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:V("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Nu(new pl(43,"foldingHighlight",!0,{description:V("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Nu(new pl(44,"foldingImportsByDefault",!1,{description:V("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Nu(new gd(45,"foldingMaximumRegions",5e3,10,65e3,{description:V("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:Nu(new pl(46,"unfoldOnClickAfterEndOfLine",!1,{description:V("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Nu(new MD(47,"fontFamily",HD.fontFamily,{description:V("fontFamily","Controls the font family.")})),fontInfo:Nu(new Ugi),fontLigatures2:Nu(new nx),fontSize:Nu(new qgi),fontWeight:Nu(new tA),fontVariations:Nu(new ay),formatOnPaste:Nu(new pl(53,"formatOnPaste",!1,{description:V("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Nu(new pl(54,"formatOnType",!1,{description:V("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Nu(new pl(55,"glyphMargin",!0,{description:V("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Nu(new Zgi),hideCursorInOverviewRuler:Nu(new pl(57,"hideCursorInOverviewRuler",!1,{description:V("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Nu(new Ygi),inDiffEditor:Nu(new pl(59,"inDiffEditor",!1)),letterSpacing:Nu(new lA(61,"letterSpacing",HD.letterSpacing,r=>lA.clamp(r,-5,20),{description:V("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Nu(new Xgi),lineDecorationsWidth:Nu(new iEi),lineHeight:Nu(new nEi),lineNumbers:Nu(new cEi),lineNumbersMinChars:Nu(new gd(66,"lineNumbersMinChars",5,1,300)),linkedEditing:Nu(new pl(67,"linkedEditing",!1,{description:V("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:Nu(new pl(68,"links",!0,{description:V("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Nu(new ff(69,"matchBrackets","always",["always","near","never"],{description:V("matchBrackets","Highlight matching brackets.")})),minimap:Nu(new uEi),mouseStyle:Nu(new ff(71,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Nu(new lA(72,"mouseWheelScrollSensitivity",1,r=>r===0?1:r,{markdownDescription:V("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Nu(new pl(73,"mouseWheelZoom",!1,{markdownDescription:V("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Nu(new pl(74,"multiCursorMergeOverlapping",!0,{description:V("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Nu(new F_e(75,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],rEi,{markdownEnumDescriptions:[V("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),V("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:V({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Nu(new ff(76,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[V("multiCursorPaste.spread","Each cursor pastes a single line of the text."),V("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:V("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:Nu(new gd(77,"multiCursorLimit",1e4,1,1e5,{markdownDescription:V("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:Nu(new pl(78,"occurrencesHighlight",!0,{description:V("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:Nu(new pl(79,"overviewRulerBorder",!0,{description:V("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Nu(new gd(80,"overviewRulerLanes",3,0,3)),padding:Nu(new aEi),parameterHints:Nu(new oEi),peekWidgetDefaultFocus:Nu(new ff(83,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[V("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),V("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:V("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:Nu(new pl(84,"definitionLinkOpensInPeek",!1,{description:V("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Nu(new lEi),quickSuggestionsDelay:Nu(new gd(86,"quickSuggestionsDelay",10,0,1073741824,{description:V("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Nu(new pl(87,"readOnly",!1)),renameOnType:Nu(new pl(88,"renameOnType",!1,{description:V("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:V("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Nu(new pl(89,"renderControlCharacters",!0,{description:V("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Nu(new ff(90,"renderFinalNewline",sg?"dimmed":"on",["off","on","dimmed"],{description:V("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Nu(new ff(91,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",V("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:V("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Nu(new pl(92,"renderLineHighlightOnlyWhenFocus",!1,{description:V("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Nu(new ff(93,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Nu(new ff(94,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",V("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),V("renderWhitespace.selection","Render whitespace characters only on selected text."),V("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:V("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Nu(new gd(95,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Nu(new pl(96,"roundedSelection",!0,{description:V("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Nu(new dEi),scrollbar:Nu(new hEi),scrollBeyondLastColumn:Nu(new gd(99,"scrollBeyondLastColumn",4,0,1073741824,{description:V("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Nu(new pl(100,"scrollBeyondLastLine",!0,{description:V("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Nu(new pl(101,"scrollPredominantAxis",!0,{description:V("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Nu(new pl(102,"selectionClipboard",!0,{description:V("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:sg})),selectionHighlight:Nu(new pl(103,"selectionHighlight",!0,{description:V("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Nu(new pl(104,"selectOnLineNumbers",!0)),showFoldingControls:Nu(new ff(105,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[V("showFoldingControls.always","Always show the folding controls."),V("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),V("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:V("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Nu(new pl(106,"showUnused",!0,{description:V("showUnused","Controls fading out of unused code.")})),showDeprecated:Nu(new pl(134,"showDeprecated",!0,{description:V("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Nu(new tEi),snippetSuggestions:Nu(new ff(107,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[V("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),V("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),V("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),V("snippetSuggestions.none","Do not show snippet suggestions.")],description:V("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Nu(new _Ei),smoothScrolling:Nu(new pl(109,"smoothScrolling",!1,{description:V("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Nu(new gd(112,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Nu(new EEi),inlineSuggest:Nu(new mEi),suggestFontSize:Nu(new gd(114,"suggestFontSize",0,0,1e3,{markdownDescription:V("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Nu(new gd(115,"suggestLineHeight",0,0,1e3,{markdownDescription:V("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Nu(new pl(116,"suggestOnTriggerCharacters",!0,{description:V("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Nu(new ff(117,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[V("suggestSelection.first","Always select the first suggestion."),V("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),V("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:V("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Nu(new ff(118,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[V("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),V("tabCompletion.off","Disable tab completions."),V("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:V("tabCompletion","Enables tab completions.")})),tabIndex:Nu(new gd(119,"tabIndex",0,-1,1073741824)),unicodeHighlight:Nu(new fEi),unusualLineTerminators:Nu(new ff(121,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[V("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),V("unusualLineTerminators.off","Unusual line terminators are ignored."),V("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:V("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Nu(new pl(122,"useShadowDOM",!0)),useTabStops:Nu(new pl(123,"useTabStops",!0,{description:V("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:Nu(new ff(124,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[V("wordBreak.normal","Use the default line break rule."),V("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:V("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:Nu(new MD(125,"wordSeparators",Uvt,{description:V("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Nu(new ff(126,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[V("wordWrap.off","Lines will never wrap."),V("wordWrap.on","Lines will wrap at the viewport width."),V({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),V({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:V({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Nu(new MD(127,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Nu(new MD(128,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Nu(new gd(129,"wordWrapColumn",80,1,1073741824,{markdownDescription:V({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Nu(new ff(130,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Nu(new ff(131,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Nu(new Ggi),pixelRatio:Nu(new sEi),tabFocusMode:Nu(new pl(138,"tabFocusMode",!1,{markdownDescription:V("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:Nu(new tJ),wrappingInfo:Nu(new xEi),wrappingIndent:Nu(new DEi),wrappingStrategy:Nu(new Qgi)};class kEi{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?LJ.isErrorNoTelemetry(e)?new LJ(e.message+` `+e.stack):new Error(e.message+` -`+e.stack):e},0)}}emit(e){this.listeners.forEach(i=>{i(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const pvt=new _mi;function ws(r){Py(r)||pvt.onUnexpectedError(r)}function z4(r){Py(r)||pvt.onUnexpectedExternalError(r)}function mgt(r){if(r instanceof Error){const{name:e,message:i}=r,n=r.stacktrace||r.stack;return{$isError:!0,name:e,message:i,stack:n,noTelemetry:wJ.isErrorNoTelemetry(r)}}return r}const XDe="Canceled";function Py(r){return r instanceof aN?!0:r instanceof Error&&r.name===XDe&&r.message===XDe}class aN extends Error{constructor(){super(XDe),this.name=this.message}}function Dmi(){const r=new Error(XDe);return r.name=r.message,r}function cx(r){return r?new Error(`Illegal argument: ${r}`):new Error("Illegal argument")}function AGe(r){return r?new Error(`Illegal state: ${r}`):new Error("Illegal state")}class xmi extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class wJ extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof wJ)return e;const i=new wJ;return i.message=e.message,i.stack=e.stack,i}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class OA extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,OA.prototype);debugger}}function AA(r){const e=this;let i=!1,n;return function(){return i||(i=!0,n=r.apply(e,arguments)),n}}function SGe(r){return typeof r.dispose=="function"&&r.dispose.length===0}function rc(r){if(I0.is(r)){const e=[];for(const i of r)if(i)try{i.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(r)?[]:r}else if(r)return r.dispose(),r}function UC(...r){return Bs(()=>rc(r))}function Bs(r){return{dispose:AA(()=>{r()})}}class du{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{rc(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?du.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}du.DISABLE_DISPOSED_WARNING=!1;class ln{constructor(){this._store=new du,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}ln.None=Object.freeze({dispose(){}});class M4{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var i;this._isDisposed||e===this._value||((i=this._value)===null||i===void 0||i.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class vmi{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class Cmi{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let i=e;return this.unset=()=>i=void 0,this.isset=()=>i!==void 0,this.dispose=()=>{i&&(i(),i=void 0)},this}}class bmi{constructor(e){this.object=e}dispose(){}}class BGe{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{rc(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,i,n=!1){var a;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||(a=this._store.get(e))===null||a===void 0||a.dispose(),this._store.set(e,i)}deleteAndDispose(e){var i;(i=this._store.get(e))===null||i===void 0||i.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const ymi=jD.performance&&typeof jD.performance.now=="function";class j3{static create(e=!0){return new j3(e)}constructor(e){this._highResolution=ymi&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?jD.performance.now():Date.now()}}var za;(function(r){r.None=()=>ln.None;function e(Ye,rt){return x(Ye,()=>{},0,void 0,!0,void 0,rt)}r.defer=e;function i(Ye){return(rt,Ft=null,Zt)=>{let Ot=!1,ui;return ui=Ye(ei=>{if(!Ot)return ui?ui.dispose():Ot=!0,rt.call(Ft,ei)},null,Zt),Ot&&ui.dispose(),ui}}r.once=i;function n(Ye,rt,Ft){return _((Zt,Ot=null,ui)=>Ye(ei=>Zt.call(Ot,rt(ei)),null,ui),Ft)}r.map=n;function a(Ye,rt,Ft){return _((Zt,Ot=null,ui)=>Ye(ei=>{rt(ei),Zt.call(Ot,ei)},null,ui),Ft)}r.forEach=a;function o(Ye,rt,Ft){return _((Zt,Ot=null,ui)=>Ye(ei=>rt(ei)&&Zt.call(Ot,ei),null,ui),Ft)}r.filter=o;function c(Ye){return Ye}r.signal=c;function h(...Ye){return(rt,Ft=null,Zt)=>UC(...Ye.map(Ot=>Ot(ui=>rt.call(Ft,ui),null,Zt)))}r.any=h;function g(Ye,rt,Ft,Zt){let Ot=Ft;return n(Ye,ui=>(Ot=rt(Ot,ui),Ot),Zt)}r.reduce=g;function _(Ye,rt){let Ft;const Zt={onWillAddFirstListener(){Ft=Ye(Ot.fire,Ot)},onDidRemoveLastListener(){Ft==null||Ft.dispose()}},Ot=new yi(Zt);return rt==null||rt.add(Ot),Ot.event}function x(Ye,rt,Ft=100,Zt=!1,Ot=!1,ui,ei){let Uu,gu,Kt,zr=0,Mu;const Va={leakWarningThreshold:ui,onWillAddFirstListener(){Uu=Ye(vn=>{zr++,gu=rt(gu,vn),Zt&&!Kt&&(Ku.fire(gu),gu=void 0),Mu=()=>{const Wn=gu;gu=void 0,Kt=void 0,(!Zt||zr>1)&&Ku.fire(Wn),zr=0},typeof Ft=="number"?(clearTimeout(Kt),Kt=setTimeout(Mu,Ft)):Kt===void 0&&(Kt=0,queueMicrotask(Mu))})},onWillRemoveListener(){Ot&&zr>0&&(Mu==null||Mu())},onDidRemoveLastListener(){Mu=void 0,Uu.dispose()}},Ku=new yi(Va);return ei==null||ei.add(Ku),Ku.event}r.debounce=x;function y(Ye,rt=0,Ft){return r.debounce(Ye,(Zt,Ot)=>Zt?(Zt.push(Ot),Zt):[Ot],rt,void 0,!0,void 0,Ft)}r.accumulate=y;function S(Ye,rt=(Zt,Ot)=>Zt===Ot,Ft){let Zt=!0,Ot;return o(Ye,ui=>{const ei=Zt||!rt(ui,Ot);return Zt=!1,Ot=ui,ei},Ft)}r.latch=S;function L(Ye,rt,Ft){return[r.filter(Ye,rt,Ft),r.filter(Ye,Zt=>!rt(Zt),Ft)]}r.split=L;function R(Ye,rt=!1,Ft=[]){let Zt=Ft.slice(),Ot=Ye(Uu=>{Zt?Zt.push(Uu):ei.fire(Uu)});const ui=()=>{Zt==null||Zt.forEach(Uu=>ei.fire(Uu)),Zt=null},ei=new yi({onWillAddFirstListener(){Ot||(Ot=Ye(Uu=>ei.fire(Uu)))},onDidAddFirstListener(){Zt&&(rt?setTimeout(ui):ui())},onDidRemoveLastListener(){Ot&&Ot.dispose(),Ot=null}});return ei.event}r.buffer=R;class G{constructor(rt){this.event=rt,this.disposables=new du}map(rt){return new G(n(this.event,rt,this.disposables))}forEach(rt){return new G(a(this.event,rt,this.disposables))}filter(rt){return new G(o(this.event,rt,this.disposables))}reduce(rt,Ft){return new G(g(this.event,rt,Ft,this.disposables))}latch(){return new G(S(this.event,void 0,this.disposables))}debounce(rt,Ft=100,Zt=!1,Ot=!1,ui){return new G(x(this.event,rt,Ft,Zt,Ot,ui,this.disposables))}on(rt,Ft,Zt){return this.event(rt,Ft,Zt)}once(rt,Ft,Zt){return i(this.event)(rt,Ft,Zt)}dispose(){this.disposables.dispose()}}function ie(Ye){return new G(Ye)}r.chain=ie;function ue(Ye,rt,Ft=Zt=>Zt){const Zt=(...Uu)=>ei.fire(Ft(...Uu)),Ot=()=>Ye.on(rt,Zt),ui=()=>Ye.removeListener(rt,Zt),ei=new yi({onWillAddFirstListener:Ot,onDidRemoveLastListener:ui});return ei.event}r.fromNodeEventEmitter=ue;function re(Ye,rt,Ft=Zt=>Zt){const Zt=(...Uu)=>ei.fire(Ft(...Uu)),Ot=()=>Ye.addEventListener(rt,Zt),ui=()=>Ye.removeEventListener(rt,Zt),ei=new yi({onWillAddFirstListener:Ot,onDidRemoveLastListener:ui});return ei.event}r.fromDOMEventEmitter=re;function _e(Ye){return new Promise(rt=>i(Ye)(rt))}r.toPromise=_e;function ye(Ye,rt){return rt(void 0),Ye(Ft=>rt(Ft))}r.runAndSubscribe=ye;function Le(Ye,rt){let Ft=null;function Zt(ui){Ft==null||Ft.dispose(),Ft=new du,rt(ui,Ft)}Zt(void 0);const Ot=Ye(ui=>Zt(ui));return Bs(()=>{Ot.dispose(),Ft==null||Ft.dispose()})}r.runAndSubscribeWithStore=Le;class lt{constructor(rt,Ft){this.obs=rt,this._counter=0,this._hasChanged=!1;const Zt={onWillAddFirstListener:()=>{rt.addObserver(this)},onDidRemoveLastListener:()=>{rt.removeObserver(this)}};this.emitter=new yi(Zt),Ft&&Ft.add(this.emitter)}beginUpdate(rt){this._counter++}handleChange(rt,Ft){this._hasChanged=!0}endUpdate(rt){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function $e(Ye,rt){return new lt(Ye,rt).emitter.event}r.fromObservable=$e})(za||(za={}));class TJ{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${TJ._idPool++}`,TJ.all.add(this)}start(e){this._stopWatch=new j3(!0),this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}TJ.all=new Set;TJ._idPool=0;let kmi=-1;class Fmi{constructor(e,i=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=i,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,i){const n=this.threshold;if(n<=0||i{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}}class wGe{static create(){var e;return new wGe((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` +`+e.stack):e},0)}}emit(e){this.listeners.forEach(i=>{i(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const sCt=new kEi;function Ls(r){Iy(r)||sCt.onUnexpectedError(r)}function R4(r){Iy(r)||sCt.onUnexpectedExternalError(r)}function bgt(r){if(r instanceof Error){const{name:e,message:i}=r,n=r.stacktrace||r.stack;return{$isError:!0,name:e,message:i,stack:n,noTelemetry:LJ.isErrorNoTelemetry(r)}}return r}const r5e="Canceled";function Iy(r){return r instanceof oN?!0:r instanceof Error&&r.name===r5e&&r.message===r5e}class oN extends Error{constructor(){super(r5e),this.name=this.message}}function FEi(){const r=new Error(r5e);return r.name=r.message,r}function dx(r){return r?new Error(`Illegal argument: ${r}`):new Error("Illegal argument")}function QGe(r){return r?new Error(`Illegal state: ${r}`):new Error("Illegal state")}class AEi extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class LJ extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof LJ)return e;const i=new LJ;return i.message=e.message,i.stack=e.stack,i}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class KA extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,KA.prototype);debugger}}function wA(r){const e=this;let i=!1,n;return function(){return i||(i=!0,n=r.apply(e,arguments)),n}}function XGe(r){return typeof r.dispose=="function"&&r.dispose.length===0}function ac(r){if(V0.is(r)){const e=[];for(const i of r)if(i)try{i.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(r)?[]:r}else if(r)return r.dispose(),r}function YC(...r){return Ts(()=>ac(r))}function Ts(r){return{dispose:wA(()=>{r()})}}class cu{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{ac(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?cu.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}cu.DISABLE_DISPOSED_WARNING=!1;class ln{constructor(){this._store=new cu,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}ln.None=Object.freeze({dispose(){}});class z4{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var i;this._isDisposed||e===this._value||((i=this._value)===null||i===void 0||i.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class SEi{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class BEi{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let i=e;return this.unset=()=>i=void 0,this.isset=()=>i!==void 0,this.dispose=()=>{i&&(i(),i=void 0)},this}}class wEi{constructor(e){this.object=e}dispose(){}}class eJe{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{ac(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,i,n=!1){var a;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||(a=this._store.get(e))===null||a===void 0||a.dispose(),this._store.set(e,i)}deleteAndDispose(e){var i;(i=this._store.get(e))===null||i===void 0||i.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const TEi=VD.performance&&typeof VD.performance.now=="function";class V3{static create(e=!0){return new V3(e)}constructor(e){this._highResolution=TEi&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?VD.performance.now():Date.now()}}var Ia;(function(r){r.None=()=>ln.None;function e(Ze,rt){return x(Ze,()=>{},0,void 0,!0,void 0,rt)}r.defer=e;function i(Ze){return(rt,kt=null,Zt)=>{let jt=!1,ui;return ui=Ze(ti=>{if(!jt)return ui?ui.dispose():jt=!0,rt.call(kt,ti)},null,Zt),jt&&ui.dispose(),ui}}r.once=i;function n(Ze,rt,kt){return _((Zt,jt=null,ui)=>Ze(ti=>Zt.call(jt,rt(ti)),null,ui),kt)}r.map=n;function a(Ze,rt,kt){return _((Zt,jt=null,ui)=>Ze(ti=>{rt(ti),Zt.call(jt,ti)},null,ui),kt)}r.forEach=a;function o(Ze,rt,kt){return _((Zt,jt=null,ui)=>Ze(ti=>rt(ti)&&Zt.call(jt,ti),null,ui),kt)}r.filter=o;function c(Ze){return Ze}r.signal=c;function h(...Ze){return(rt,kt=null,Zt)=>YC(...Ze.map(jt=>jt(ui=>rt.call(kt,ui),null,Zt)))}r.any=h;function g(Ze,rt,kt,Zt){let jt=kt;return n(Ze,ui=>(jt=rt(jt,ui),jt),Zt)}r.reduce=g;function _(Ze,rt){let kt;const Zt={onWillAddFirstListener(){kt=Ze(jt.fire,jt)},onDidRemoveLastListener(){kt==null||kt.dispose()}},jt=new Fi(Zt);return rt==null||rt.add(jt),jt.event}function x(Ze,rt,kt=100,Zt=!1,jt=!1,ui,ti){let Uu,pu,Vt,zr=0,Lu;const Va={leakWarningThreshold:ui,onWillAddFirstListener(){Uu=Ze(Tr=>{zr++,pu=rt(pu,Tr),Zt&&!Vt&&(ju.fire(pu),pu=void 0),Lu=()=>{const pa=pu;pu=void 0,Vt=void 0,(!Zt||zr>1)&&ju.fire(pa),zr=0},typeof kt=="number"?(clearTimeout(Vt),Vt=setTimeout(Lu,kt)):Vt===void 0&&(Vt=0,queueMicrotask(Lu))})},onWillRemoveListener(){jt&&zr>0&&(Lu==null||Lu())},onDidRemoveLastListener(){Lu=void 0,Uu.dispose()}},ju=new Fi(Va);return ti==null||ti.add(ju),ju.event}r.debounce=x;function y(Ze,rt=0,kt){return r.debounce(Ze,(Zt,jt)=>Zt?(Zt.push(jt),Zt):[jt],rt,void 0,!0,void 0,kt)}r.accumulate=y;function S(Ze,rt=(Zt,jt)=>Zt===jt,kt){let Zt=!0,jt;return o(Ze,ui=>{const ti=Zt||!rt(ui,jt);return Zt=!1,jt=ui,ti},kt)}r.latch=S;function L(Ze,rt,kt){return[r.filter(Ze,rt,kt),r.filter(Ze,Zt=>!rt(Zt),kt)]}r.split=L;function O(Ze,rt=!1,kt=[]){let Zt=kt.slice(),jt=Ze(Uu=>{Zt?Zt.push(Uu):ti.fire(Uu)});const ui=()=>{Zt==null||Zt.forEach(Uu=>ti.fire(Uu)),Zt=null},ti=new Fi({onWillAddFirstListener(){jt||(jt=Ze(Uu=>ti.fire(Uu)))},onDidAddFirstListener(){Zt&&(rt?setTimeout(ui):ui())},onDidRemoveLastListener(){jt&&jt.dispose(),jt=null}});return ti.event}r.buffer=O;class G{constructor(rt){this.event=rt,this.disposables=new cu}map(rt){return new G(n(this.event,rt,this.disposables))}forEach(rt){return new G(a(this.event,rt,this.disposables))}filter(rt){return new G(o(this.event,rt,this.disposables))}reduce(rt,kt){return new G(g(this.event,rt,kt,this.disposables))}latch(){return new G(S(this.event,void 0,this.disposables))}debounce(rt,kt=100,Zt=!1,jt=!1,ui){return new G(x(this.event,rt,kt,Zt,jt,ui,this.disposables))}on(rt,kt,Zt){return this.event(rt,kt,Zt)}once(rt,kt,Zt){return i(this.event)(rt,kt,Zt)}dispose(){this.disposables.dispose()}}function ie(Ze){return new G(Ze)}r.chain=ie;function ue(Ze,rt,kt=Zt=>Zt){const Zt=(...Uu)=>ti.fire(kt(...Uu)),jt=()=>Ze.on(rt,Zt),ui=()=>Ze.removeListener(rt,Zt),ti=new Fi({onWillAddFirstListener:jt,onDidRemoveLastListener:ui});return ti.event}r.fromNodeEventEmitter=ue;function re(Ze,rt,kt=Zt=>Zt){const Zt=(...Uu)=>ti.fire(kt(...Uu)),jt=()=>Ze.addEventListener(rt,Zt),ui=()=>Ze.removeEventListener(rt,Zt),ti=new Fi({onWillAddFirstListener:jt,onDidRemoveLastListener:ui});return ti.event}r.fromDOMEventEmitter=re;function _e(Ze){return new Promise(rt=>i(Ze)(rt))}r.toPromise=_e;function ye(Ze,rt){return rt(void 0),Ze(kt=>rt(kt))}r.runAndSubscribe=ye;function Le(Ze,rt){let kt=null;function Zt(ui){kt==null||kt.dispose(),kt=new cu,rt(ui,kt)}Zt(void 0);const jt=Ze(ui=>Zt(ui));return Ts(()=>{jt.dispose(),kt==null||kt.dispose()})}r.runAndSubscribeWithStore=Le;class lt{constructor(rt,kt){this.obs=rt,this._counter=0,this._hasChanged=!1;const Zt={onWillAddFirstListener:()=>{rt.addObserver(this)},onDidRemoveLastListener:()=>{rt.removeObserver(this)}};this.emitter=new Fi(Zt),kt&&kt.add(this.emitter)}beginUpdate(rt){this._counter++}handleChange(rt,kt){this._hasChanged=!0}endUpdate(rt){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function Ue(Ze,rt){return new lt(Ze,rt).emitter.event}r.fromObservable=Ue})(Ia||(Ia={}));class NJ{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${NJ._idPool++}`,NJ.all.add(this)}start(e){this._stopWatch=new V3(!0),this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}NJ.all=new Set;NJ._idPool=0;let LEi=-1;class NEi{constructor(e,i=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=i,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,i){const n=this.threshold;if(n<=0||i{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}}class tJe{static create(){var e;return new tJe((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class Ami{constructor(e,i,n){this.callback=e,this.callbackThis=i,this.stack=n,this.subscription=new Cmi}invoke(e){this.callback.call(this.callbackThis,e)}}let yi=class{constructor(e){var i,n,a,o,c;this._disposed=!1,this._options=e,this._leakageMon=!((i=this._options)===null||i===void 0)&&i.leakWarningThreshold?new Fmi((a=(n=this._options)===null||n===void 0?void 0:n.leakWarningThreshold)!==null&&a!==void 0?a:kmi):void 0,this._perfMon=!((o=this._options)===null||o===void 0)&&o._profName?new TJ(this._options._profName):void 0,this._deliveryQueue=(c=this._options)===null||c===void 0?void 0:c.deliveryQueue}dispose(){var e,i,n,a;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(n=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||n===void 0||n.call(i),(a=this._leakageMon)===null||a===void 0||a.dispose())}get event(){return this._event||(this._event=(e,i,n)=>{var a,o,c;if(this._listeners||(this._listeners=new eg),this._leakageMon&&this._listeners.size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),ln.None;const h=this._listeners.isEmpty();h&&(!((a=this._options)===null||a===void 0)&&a.onWillAddFirstListener)&&this._options.onWillAddFirstListener(this);let g,_;this._leakageMon&&this._listeners.size>=Math.ceil(this._leakageMon.threshold*.2)&&(_=wGe.create(),g=this._leakageMon.check(_,this._listeners.size+1));const x=new Ami(e,i,_),y=this._listeners.push(x);h&&(!((o=this._options)===null||o===void 0)&&o.onDidAddFirstListener)&&this._options.onDidAddFirstListener(this),!((c=this._options)===null||c===void 0)&&c.onDidAddListener&&this._options.onDidAddListener(this,e,i);const S=x.subscription.set(()=>{var L,R;g==null||g(),this._disposed||((R=(L=this._options)===null||L===void 0?void 0:L.onWillRemoveListener)===null||R===void 0||R.call(L,this),y(),this._options&&this._options.onDidRemoveLastListener&&(this._listeners&&!this._listeners.isEmpty()||this._options.onDidRemoveLastListener(this)))});return n instanceof du?n.add(S):Array.isArray(n)&&n.push(S),S}),this._event}fire(e){var i,n,a;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new Smi((i=this._options)===null||i===void 0?void 0:i.onListenerError));for(const o of this._listeners)this._deliveryQueue.push(this,o,e);(n=this._perfMon)===null||n===void 0||n.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(a=this._perfMon)===null||a===void 0||a.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}};class gvt{constructor(e=ws){this._onListenerError=e,this._queue=new eg}get size(){return this._queue.size}push(e,i,n){this._queue.push(new Bmi(e,i,n))}clear(e){const i=new eg;for(const n of this._queue)n.emitter!==e&&i.push(n);this._queue=i}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(i){this._onListenerError(i)}}}}class Smi extends gvt{clear(e){this._queue.clear()}}class Bmi{constructor(e,i,n){this.emitter=e,this.listener=i,this.event=n}}class LJ extends yi{constructor(e){super(e),this._isPaused=0,this._eventQueue=new eg,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class Evt extends LJ{constructor(e){var i;super(e),this._delay=(i=e.delay)!==null&&i!==void 0?i:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class wmi extends yi{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(i=>super.fire(i)),this._queuedEvents=[]}))}}class Tmi{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new yi({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const i={event:e,listener:null};return this.events.push(i),this.hasListeners&&this.hook(i),Bs(AA(()=>{this.hasListeners&&this.unhook(i);const a=this.events.indexOf(i);this.events.splice(a,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(i=>this.emitter.fire(i))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}class TGe{constructor(){this.buffers=[]}wrapEvent(e){return(i,n,a)=>e(o=>{const c=this.buffers[this.buffers.length-1];c?c.push(()=>i.call(n,o)):i.call(n,o)},void 0,a)}bufferEvents(e){const i=[];this.buffers.push(i);const n=e();return this.buffers.pop(),i.forEach(a=>a()),n}}class pgt{constructor(){this.listening=!1,this.inputEvent=za.None,this.inputEventListener=ln.None,this.emitter=new yi({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const _vt=Object.freeze(function(r,e){const i=setTimeout(r.bind(e),0);return{dispose(){clearTimeout(i)}}});var g0;(function(r){function e(i){return i===r.None||i===r.Cancelled||i instanceof Y3e?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}r.isCancellationToken=e,r.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:za.None}),r.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:_vt})})(g0||(g0={}));class Y3e{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?_vt:(this._emitter||(this._emitter=new yi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let kp=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Y3e),this._token}cancel(){this._token?this._token instanceof Y3e&&this._token.cancel():this._token=g0.Cancelled}dispose(e=!1){var i;e&&this.cancel(),(i=this._parentListener)===null||i===void 0||i.dispose(),this._token?this._token instanceof Y3e&&this._token.dispose():this._token=g0.None}};class LGe{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,i){this._keyCodeToStr[e]=i,this._strToKeyCode[i.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const Q3e=new LGe,oje=new LGe,sje=new LGe,Dvt=new Array(230),Lmi=Object.create(null),Nmi=Object.create(null),NGe=[];for(let r=0;r<=193;r++)NGe[r]=-1;(function(){const r="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",r,r],[0,1,1,"Hyper",0,r,0,r,r,r],[0,1,2,"Super",0,r,0,r,r,r],[0,1,3,"Fn",0,r,0,r,r,r],[0,1,4,"FnLock",0,r,0,r,r,r],[0,1,5,"Suspend",0,r,0,r,r,r],[0,1,6,"Resume",0,r,0,r,r,r],[0,1,7,"Turbo",0,r,0,r,r,r],[0,1,8,"Sleep",0,r,0,"VK_SLEEP",r,r],[0,1,9,"WakeUp",0,r,0,r,r,r],[31,0,10,"KeyA",31,"A",65,"VK_A",r,r],[32,0,11,"KeyB",32,"B",66,"VK_B",r,r],[33,0,12,"KeyC",33,"C",67,"VK_C",r,r],[34,0,13,"KeyD",34,"D",68,"VK_D",r,r],[35,0,14,"KeyE",35,"E",69,"VK_E",r,r],[36,0,15,"KeyF",36,"F",70,"VK_F",r,r],[37,0,16,"KeyG",37,"G",71,"VK_G",r,r],[38,0,17,"KeyH",38,"H",72,"VK_H",r,r],[39,0,18,"KeyI",39,"I",73,"VK_I",r,r],[40,0,19,"KeyJ",40,"J",74,"VK_J",r,r],[41,0,20,"KeyK",41,"K",75,"VK_K",r,r],[42,0,21,"KeyL",42,"L",76,"VK_L",r,r],[43,0,22,"KeyM",43,"M",77,"VK_M",r,r],[44,0,23,"KeyN",44,"N",78,"VK_N",r,r],[45,0,24,"KeyO",45,"O",79,"VK_O",r,r],[46,0,25,"KeyP",46,"P",80,"VK_P",r,r],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",r,r],[48,0,27,"KeyR",48,"R",82,"VK_R",r,r],[49,0,28,"KeyS",49,"S",83,"VK_S",r,r],[50,0,29,"KeyT",50,"T",84,"VK_T",r,r],[51,0,30,"KeyU",51,"U",85,"VK_U",r,r],[52,0,31,"KeyV",52,"V",86,"VK_V",r,r],[53,0,32,"KeyW",53,"W",87,"VK_W",r,r],[54,0,33,"KeyX",54,"X",88,"VK_X",r,r],[55,0,34,"KeyY",55,"Y",89,"VK_Y",r,r],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",r,r],[22,0,36,"Digit1",22,"1",49,"VK_1",r,r],[23,0,37,"Digit2",23,"2",50,"VK_2",r,r],[24,0,38,"Digit3",24,"3",51,"VK_3",r,r],[25,0,39,"Digit4",25,"4",52,"VK_4",r,r],[26,0,40,"Digit5",26,"5",53,"VK_5",r,r],[27,0,41,"Digit6",27,"6",54,"VK_6",r,r],[28,0,42,"Digit7",28,"7",55,"VK_7",r,r],[29,0,43,"Digit8",29,"8",56,"VK_8",r,r],[30,0,44,"Digit9",30,"9",57,"VK_9",r,r],[21,0,45,"Digit0",21,"0",48,"VK_0",r,r],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",r,r],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",r,r],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",r,r],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",r,r],[10,1,50,"Space",10,"Space",32,"VK_SPACE",r,r],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,r,0,r,r,r],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",r,r],[59,1,64,"F1",59,"F1",112,"VK_F1",r,r],[60,1,65,"F2",60,"F2",113,"VK_F2",r,r],[61,1,66,"F3",61,"F3",114,"VK_F3",r,r],[62,1,67,"F4",62,"F4",115,"VK_F4",r,r],[63,1,68,"F5",63,"F5",116,"VK_F5",r,r],[64,1,69,"F6",64,"F6",117,"VK_F6",r,r],[65,1,70,"F7",65,"F7",118,"VK_F7",r,r],[66,1,71,"F8",66,"F8",119,"VK_F8",r,r],[67,1,72,"F9",67,"F9",120,"VK_F9",r,r],[68,1,73,"F10",68,"F10",121,"VK_F10",r,r],[69,1,74,"F11",69,"F11",122,"VK_F11",r,r],[70,1,75,"F12",70,"F12",123,"VK_F12",r,r],[0,1,76,"PrintScreen",0,r,0,r,r,r],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",r,r],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",r,r],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",r,r],[14,1,80,"Home",14,"Home",36,"VK_HOME",r,r],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",r,r],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",r,r],[13,1,83,"End",13,"End",35,"VK_END",r,r],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",r,r],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",r],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",r],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",r],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",r],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",r,r],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",r,r],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",r,r],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",r,r],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",r,r],[3,1,94,"NumpadEnter",3,r,0,r,r,r],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",r,r],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",r,r],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",r,r],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",r,r],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",r,r],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",r,r],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",r,r],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",r,r],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",r,r],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",r,r],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",r,r],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",r,r],[58,1,107,"ContextMenu",58,"ContextMenu",93,r,r,r],[0,1,108,"Power",0,r,0,r,r,r],[0,1,109,"NumpadEqual",0,r,0,r,r,r],[71,1,110,"F13",71,"F13",124,"VK_F13",r,r],[72,1,111,"F14",72,"F14",125,"VK_F14",r,r],[73,1,112,"F15",73,"F15",126,"VK_F15",r,r],[74,1,113,"F16",74,"F16",127,"VK_F16",r,r],[75,1,114,"F17",75,"F17",128,"VK_F17",r,r],[76,1,115,"F18",76,"F18",129,"VK_F18",r,r],[77,1,116,"F19",77,"F19",130,"VK_F19",r,r],[0,1,117,"F20",0,r,0,"VK_F20",r,r],[0,1,118,"F21",0,r,0,"VK_F21",r,r],[0,1,119,"F22",0,r,0,"VK_F22",r,r],[0,1,120,"F23",0,r,0,"VK_F23",r,r],[0,1,121,"F24",0,r,0,"VK_F24",r,r],[0,1,122,"Open",0,r,0,r,r,r],[0,1,123,"Help",0,r,0,r,r,r],[0,1,124,"Select",0,r,0,r,r,r],[0,1,125,"Again",0,r,0,r,r,r],[0,1,126,"Undo",0,r,0,r,r,r],[0,1,127,"Cut",0,r,0,r,r,r],[0,1,128,"Copy",0,r,0,r,r,r],[0,1,129,"Paste",0,r,0,r,r,r],[0,1,130,"Find",0,r,0,r,r,r],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",r,r],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",r,r],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",r,r],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",r,r],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",r,r],[0,1,136,"KanaMode",0,r,0,r,r,r],[0,0,137,"IntlYen",0,r,0,r,r,r],[0,1,138,"Convert",0,r,0,r,r,r],[0,1,139,"NonConvert",0,r,0,r,r,r],[0,1,140,"Lang1",0,r,0,r,r,r],[0,1,141,"Lang2",0,r,0,r,r,r],[0,1,142,"Lang3",0,r,0,r,r,r],[0,1,143,"Lang4",0,r,0,r,r,r],[0,1,144,"Lang5",0,r,0,r,r,r],[0,1,145,"Abort",0,r,0,r,r,r],[0,1,146,"Props",0,r,0,r,r,r],[0,1,147,"NumpadParenLeft",0,r,0,r,r,r],[0,1,148,"NumpadParenRight",0,r,0,r,r,r],[0,1,149,"NumpadBackspace",0,r,0,r,r,r],[0,1,150,"NumpadMemoryStore",0,r,0,r,r,r],[0,1,151,"NumpadMemoryRecall",0,r,0,r,r,r],[0,1,152,"NumpadMemoryClear",0,r,0,r,r,r],[0,1,153,"NumpadMemoryAdd",0,r,0,r,r,r],[0,1,154,"NumpadMemorySubtract",0,r,0,r,r,r],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",r,r],[0,1,156,"NumpadClearEntry",0,r,0,r,r,r],[5,1,0,r,5,"Ctrl",17,"VK_CONTROL",r,r],[4,1,0,r,4,"Shift",16,"VK_SHIFT",r,r],[6,1,0,r,6,"Alt",18,"VK_MENU",r,r],[57,1,0,r,57,"Meta",91,"VK_COMMAND",r,r],[5,1,157,"ControlLeft",5,r,0,"VK_LCONTROL",r,r],[4,1,158,"ShiftLeft",4,r,0,"VK_LSHIFT",r,r],[6,1,159,"AltLeft",6,r,0,"VK_LMENU",r,r],[57,1,160,"MetaLeft",57,r,0,"VK_LWIN",r,r],[5,1,161,"ControlRight",5,r,0,"VK_RCONTROL",r,r],[4,1,162,"ShiftRight",4,r,0,"VK_RSHIFT",r,r],[6,1,163,"AltRight",6,r,0,"VK_RMENU",r,r],[57,1,164,"MetaRight",57,r,0,"VK_RWIN",r,r],[0,1,165,"BrightnessUp",0,r,0,r,r,r],[0,1,166,"BrightnessDown",0,r,0,r,r,r],[0,1,167,"MediaPlay",0,r,0,r,r,r],[0,1,168,"MediaRecord",0,r,0,r,r,r],[0,1,169,"MediaFastForward",0,r,0,r,r,r],[0,1,170,"MediaRewind",0,r,0,r,r,r],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",r,r],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",r,r],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",r,r],[0,1,174,"Eject",0,r,0,r,r,r],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",r,r],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",r,r],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",r,r],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",r,r],[0,1,179,"LaunchApp1",0,r,0,"VK_MEDIA_LAUNCH_APP1",r,r],[0,1,180,"SelectTask",0,r,0,r,r,r],[0,1,181,"LaunchScreenSaver",0,r,0,r,r,r],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",r,r],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",r,r],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",r,r],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",r,r],[0,1,186,"BrowserStop",0,r,0,"VK_BROWSER_STOP",r,r],[0,1,187,"BrowserRefresh",0,r,0,"VK_BROWSER_REFRESH",r,r],[0,1,188,"BrowserFavorites",0,r,0,"VK_BROWSER_FAVORITES",r,r],[0,1,189,"ZoomToggle",0,r,0,r,r,r],[0,1,190,"MailReply",0,r,0,r,r,r],[0,1,191,"MailForward",0,r,0,r,r,r],[0,1,192,"MailSend",0,r,0,r,r,r],[109,1,0,r,109,"KeyInComposition",229,r,r,r],[111,1,0,r,111,"ABNT_C2",194,"VK_ABNT_C2",r,r],[91,1,0,r,91,"OEM_8",223,"VK_OEM_8",r,r],[0,1,0,r,0,r,0,"VK_KANA",r,r],[0,1,0,r,0,r,0,"VK_HANGUL",r,r],[0,1,0,r,0,r,0,"VK_JUNJA",r,r],[0,1,0,r,0,r,0,"VK_FINAL",r,r],[0,1,0,r,0,r,0,"VK_HANJA",r,r],[0,1,0,r,0,r,0,"VK_KANJI",r,r],[0,1,0,r,0,r,0,"VK_CONVERT",r,r],[0,1,0,r,0,r,0,"VK_NONCONVERT",r,r],[0,1,0,r,0,r,0,"VK_ACCEPT",r,r],[0,1,0,r,0,r,0,"VK_MODECHANGE",r,r],[0,1,0,r,0,r,0,"VK_SELECT",r,r],[0,1,0,r,0,r,0,"VK_PRINT",r,r],[0,1,0,r,0,r,0,"VK_EXECUTE",r,r],[0,1,0,r,0,r,0,"VK_SNAPSHOT",r,r],[0,1,0,r,0,r,0,"VK_HELP",r,r],[0,1,0,r,0,r,0,"VK_APPS",r,r],[0,1,0,r,0,r,0,"VK_PROCESSKEY",r,r],[0,1,0,r,0,r,0,"VK_PACKET",r,r],[0,1,0,r,0,r,0,"VK_DBE_SBCSCHAR",r,r],[0,1,0,r,0,r,0,"VK_DBE_DBCSCHAR",r,r],[0,1,0,r,0,r,0,"VK_ATTN",r,r],[0,1,0,r,0,r,0,"VK_CRSEL",r,r],[0,1,0,r,0,r,0,"VK_EXSEL",r,r],[0,1,0,r,0,r,0,"VK_EREOF",r,r],[0,1,0,r,0,r,0,"VK_PLAY",r,r],[0,1,0,r,0,r,0,"VK_ZOOM",r,r],[0,1,0,r,0,r,0,"VK_NONAME",r,r],[0,1,0,r,0,r,0,"VK_PA1",r,r],[0,1,0,r,0,r,0,"VK_OEM_CLEAR",r,r]],i=[],n=[];for(const a of e){const[o,c,h,g,_,x,y,S,L,R]=a;if(n[h]||(n[h]=!0,Lmi[g]=h,Nmi[g.toLowerCase()]=h,c&&(NGe[h]=_)),!i[_]){if(i[_]=!0,!x)throw new Error(`String representation missing for key code ${_} around scan code ${g}`);Q3e.define(_,x),oje.define(_,L||x),sje.define(_,R||L||x)}y&&(Dvt[y]=_)}})();var kS;(function(r){function e(h){return Q3e.keyCodeToStr(h)}r.toString=e;function i(h){return Q3e.strToKeyCode(h)}r.fromString=i;function n(h){return oje.keyCodeToStr(h)}r.toUserSettingsUS=n;function a(h){return sje.keyCodeToStr(h)}r.toUserSettingsGeneral=a;function o(h){return oje.strToKeyCode(h)||sje.strToKeyCode(h)}r.fromUserSettings=o;function c(h){if(h>=93&&h<=108)return null;switch(h){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Q3e.keyCodeToStr(h)}r.toElectronAccelerator=c})(kS||(kS={}));function Fm(r,e){const i=(e&65535)<<16>>>0;return(r|i)>>>0}var ggt={};let QG;if(typeof jD.vscode<"u"&&typeof jD.vscode.process<"u"){const r=jD.vscode.process;QG={get platform(){return r.platform},get arch(){return r.arch},get env(){return r.env},cwd(){return r.cwd()}}}else typeof process<"u"?QG={get platform(){return process.platform},get arch(){return process.arch},get env(){return ggt},cwd(){return ggt.VSCODE_CWD||process.cwd()}}:QG={get platform(){return yp?"win32":c0?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const e5e=QG.cwd,Pmi=QG.env,Mmi=QG.platform,zmi=65,Imi=97,Rmi=90,Omi=122,_L=46,NE=47,U5=92,vT=58,jmi=63;class xvt extends Error{constructor(e,i,n){let a;typeof i=="string"&&i.indexOf("not ")===0?(a="must not be",i=i.replace(/^not /,"")):a="must be";const o=e.indexOf(".")!==-1?"property":"argument";let c=`The "${e}" ${o} ${a} of type ${i}`;c+=`. Received type ${typeof n}`,super(c),this.code="ERR_INVALID_ARG_TYPE"}}function Vmi(r,e){if(r===null||typeof r!="object")throw new xvt(e,"Object",r)}function w4(r,e){if(typeof r!="string")throw new xvt(e,"string",r)}const oN=Mmi==="win32";function fc(r){return r===NE||r===U5}function lje(r){return r===NE}function CT(r){return r>=zmi&&r<=Rmi||r>=Imi&&r<=Omi}function t5e(r,e,i,n){let a="",o=0,c=-1,h=0,g=0;for(let _=0;_<=r.length;++_){if(_2){const x=a.lastIndexOf(i);x===-1?(a="",o=0):(a=a.slice(0,x),o=a.length-1-a.lastIndexOf(i)),c=_,h=0;continue}else if(a.length!==0){a="",o=0,c=_,h=0;continue}}e&&(a+=a.length>0?`${i}..`:"..",o=2)}else a.length>0?a+=`${i}${r.slice(c+1,_)}`:a=r.slice(c+1,_),o=_-c-1;c=_,h=0}else g===_L&&h!==-1?++h:h=-1}return a}function vvt(r,e){Vmi(e,"pathObject");const i=e.dir||e.root,n=e.base||`${e.name||""}${e.ext||""}`;return i?i===e.root?`${i}${n}`:`${i}${r}${n}`:n}const RD={resolve(...r){let e="",i="",n=!1;for(let a=r.length-1;a>=-1;a--){let o;if(a>=0){if(o=r[a],w4(o,"path"),o.length===0)continue}else e.length===0?o=e5e():(o=Pmi[`=${e}`]||e5e(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===U5)&&(o=`${e}\\`));const c=o.length;let h=0,g="",_=!1;const x=o.charCodeAt(0);if(c===1)fc(x)&&(h=1,_=!0);else if(fc(x))if(_=!0,fc(o.charCodeAt(1))){let y=2,S=y;for(;y2&&fc(o.charCodeAt(2))&&(_=!0,h=3));if(g.length>0)if(e.length>0){if(g.toLowerCase()!==e.toLowerCase())continue}else e=g;if(n){if(e.length>0)break}else if(i=`${o.slice(h)}\\${i}`,n=_,_&&e.length>0)break}return i=t5e(i,!n,"\\",fc),n?`${e}\\${i}`:`${e}${i}`||"."},normalize(r){w4(r,"path");const e=r.length;if(e===0)return".";let i=0,n,a=!1;const o=r.charCodeAt(0);if(e===1)return lje(o)?"\\":r;if(fc(o))if(a=!0,fc(r.charCodeAt(1))){let h=2,g=h;for(;h2&&fc(r.charCodeAt(2))&&(a=!0,i=3));let c=i0&&fc(r.charCodeAt(e-1))&&(c+="\\"),n===void 0?a?`\\${c}`:c:a?`${n}\\${c}`:`${n}${c}`},isAbsolute(r){w4(r,"path");const e=r.length;if(e===0)return!1;const i=r.charCodeAt(0);return fc(i)||e>2&&CT(i)&&r.charCodeAt(1)===vT&&fc(r.charCodeAt(2))},join(...r){if(r.length===0)return".";let e,i;for(let o=0;o0&&(e===void 0?e=i=c:e+=`\\${c}`)}if(e===void 0)return".";let n=!0,a=0;if(typeof i=="string"&&fc(i.charCodeAt(0))){++a;const o=i.length;o>1&&fc(i.charCodeAt(1))&&(++a,o>2&&(fc(i.charCodeAt(2))?++a:n=!1))}if(n){for(;a=2&&(e=`\\${e.slice(a)}`)}return RD.normalize(e)},relative(r,e){if(w4(r,"from"),w4(e,"to"),r===e)return"";const i=RD.resolve(r),n=RD.resolve(e);if(i===n||(r=i.toLowerCase(),e=n.toLowerCase(),r===e))return"";let a=0;for(;aa&&r.charCodeAt(o-1)===U5;)o--;const c=o-a;let h=0;for(;hh&&e.charCodeAt(g-1)===U5;)g--;const _=g-h,x=c<_?c:_;let y=-1,S=0;for(;Sx){if(e.charCodeAt(h+S)===U5)return n.slice(h+S+1);if(S===2)return n.slice(h+S)}c>x&&(r.charCodeAt(a+S)===U5?y=S:S===2&&(y=3)),y===-1&&(y=0)}let L="";for(S=a+y+1;S<=o;++S)(S===o||r.charCodeAt(S)===U5)&&(L+=L.length===0?"..":"\\..");return h+=y,L.length>0?`${L}${n.slice(h,g)}`:(n.charCodeAt(h)===U5&&++h,n.slice(h,g))},toNamespacedPath(r){if(typeof r!="string"||r.length===0)return r;const e=RD.resolve(r);if(e.length<=2)return r;if(e.charCodeAt(0)===U5){if(e.charCodeAt(1)===U5){const i=e.charCodeAt(2);if(i!==jmi&&i!==_L)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(CT(e.charCodeAt(0))&&e.charCodeAt(1)===vT&&e.charCodeAt(2)===U5)return`\\\\?\\${e}`;return r},dirname(r){w4(r,"path");const e=r.length;if(e===0)return".";let i=-1,n=0;const a=r.charCodeAt(0);if(e===1)return fc(a)?r:".";if(fc(a)){if(i=n=1,fc(r.charCodeAt(1))){let h=2,g=h;for(;h2&&fc(r.charCodeAt(2))?3:2,n=i);let o=-1,c=!0;for(let h=e-1;h>=n;--h)if(fc(r.charCodeAt(h))){if(!c){o=h;break}}else c=!1;if(o===-1){if(i===-1)return".";o=i}return r.slice(0,o)},basename(r,e){e!==void 0&&w4(e,"ext"),w4(r,"path");let i=0,n=-1,a=!0,o;if(r.length>=2&&CT(r.charCodeAt(0))&&r.charCodeAt(1)===vT&&(i=2),e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let c=e.length-1,h=-1;for(o=r.length-1;o>=i;--o){const g=r.charCodeAt(o);if(fc(g)){if(!a){i=o+1;break}}else h===-1&&(a=!1,h=o+1),c>=0&&(g===e.charCodeAt(c)?--c===-1&&(n=o):(c=-1,n=h))}return i===n?n=h:n===-1&&(n=r.length),r.slice(i,n)}for(o=r.length-1;o>=i;--o)if(fc(r.charCodeAt(o))){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":r.slice(i,n)},extname(r){w4(r,"path");let e=0,i=-1,n=0,a=-1,o=!0,c=0;r.length>=2&&r.charCodeAt(1)===vT&&CT(r.charCodeAt(0))&&(e=n=2);for(let h=r.length-1;h>=e;--h){const g=r.charCodeAt(h);if(fc(g)){if(!o){n=h+1;break}continue}a===-1&&(o=!1,a=h+1),g===_L?i===-1?i=h:c!==1&&(c=1):i!==-1&&(c=-1)}return i===-1||a===-1||c===0||c===1&&i===a-1&&i===n+1?"":r.slice(i,a)},format:vvt.bind(null,"\\"),parse(r){w4(r,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;const i=r.length;let n=0,a=r.charCodeAt(0);if(i===1)return fc(a)?(e.root=e.dir=r,e):(e.base=e.name=r,e);if(fc(a)){if(n=1,fc(r.charCodeAt(1))){let y=2,S=y;for(;y0&&(e.root=r.slice(0,n));let o=-1,c=n,h=-1,g=!0,_=r.length-1,x=0;for(;_>=n;--_){if(a=r.charCodeAt(_),fc(a)){if(!g){c=_+1;break}continue}h===-1&&(g=!1,h=_+1),a===_L?o===-1?o=_:x!==1&&(x=1):o!==-1&&(x=-1)}return h!==-1&&(o===-1||x===0||x===1&&o===h-1&&o===c+1?e.base=e.name=r.slice(c,h):(e.name=r.slice(c,o),e.base=r.slice(c,h),e.ext=r.slice(o,h))),c>0&&c!==n?e.dir=r.slice(0,c-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},Hmi=(()=>{if(oN){const r=/\\/g;return()=>{const e=e5e().replace(r,"/");return e.slice(e.indexOf("/"))}}return()=>e5e()})(),im={resolve(...r){let e="",i=!1;for(let n=r.length-1;n>=-1&&!i;n--){const a=n>=0?r[n]:Hmi();w4(a,"path"),a.length!==0&&(e=`${a}/${e}`,i=a.charCodeAt(0)===NE)}return e=t5e(e,!i,"/",lje),i?`/${e}`:e.length>0?e:"."},normalize(r){if(w4(r,"path"),r.length===0)return".";const e=r.charCodeAt(0)===NE,i=r.charCodeAt(r.length-1)===NE;return r=t5e(r,!e,"/",lje),r.length===0?e?"/":i?"./":".":(i&&(r+="/"),e?`/${r}`:r)},isAbsolute(r){return w4(r,"path"),r.length>0&&r.charCodeAt(0)===NE},join(...r){if(r.length===0)return".";let e;for(let i=0;i0&&(e===void 0?e=n:e+=`/${n}`)}return e===void 0?".":im.normalize(e)},relative(r,e){if(w4(r,"from"),w4(e,"to"),r===e||(r=im.resolve(r),e=im.resolve(e),r===e))return"";const i=1,n=r.length,a=n-i,o=1,c=e.length-o,h=ah){if(e.charCodeAt(o+_)===NE)return e.slice(o+_+1);if(_===0)return e.slice(o+_)}else a>h&&(r.charCodeAt(i+_)===NE?g=_:_===0&&(g=0));let x="";for(_=i+g+1;_<=n;++_)(_===n||r.charCodeAt(_)===NE)&&(x+=x.length===0?"..":"/..");return`${x}${e.slice(o+g)}`},toNamespacedPath(r){return r},dirname(r){if(w4(r,"path"),r.length===0)return".";const e=r.charCodeAt(0)===NE;let i=-1,n=!0;for(let a=r.length-1;a>=1;--a)if(r.charCodeAt(a)===NE){if(!n){i=a;break}}else n=!1;return i===-1?e?"/":".":e&&i===1?"//":r.slice(0,i)},basename(r,e){e!==void 0&&w4(e,"ext"),w4(r,"path");let i=0,n=-1,a=!0,o;if(e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let c=e.length-1,h=-1;for(o=r.length-1;o>=0;--o){const g=r.charCodeAt(o);if(g===NE){if(!a){i=o+1;break}}else h===-1&&(a=!1,h=o+1),c>=0&&(g===e.charCodeAt(c)?--c===-1&&(n=o):(c=-1,n=h))}return i===n?n=h:n===-1&&(n=r.length),r.slice(i,n)}for(o=r.length-1;o>=0;--o)if(r.charCodeAt(o)===NE){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":r.slice(i,n)},extname(r){w4(r,"path");let e=-1,i=0,n=-1,a=!0,o=0;for(let c=r.length-1;c>=0;--c){const h=r.charCodeAt(c);if(h===NE){if(!a){i=c+1;break}continue}n===-1&&(a=!1,n=c+1),h===_L?e===-1?e=c:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||n===-1||o===0||o===1&&e===n-1&&e===i+1?"":r.slice(e,n)},format:vvt.bind(null,"/"),parse(r){w4(r,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;const i=r.charCodeAt(0)===NE;let n;i?(e.root="/",n=1):n=0;let a=-1,o=0,c=-1,h=!0,g=r.length-1,_=0;for(;g>=n;--g){const x=r.charCodeAt(g);if(x===NE){if(!h){o=g+1;break}continue}c===-1&&(h=!1,c=g+1),x===_L?a===-1?a=g:_!==1&&(_=1):a!==-1&&(_=-1)}if(c!==-1){const x=o===0&&i?1:o;a===-1||_===0||_===1&&a===c-1&&a===o+1?e.base=e.name=r.slice(x,c):(e.name=r.slice(x,a),e.base=r.slice(x,c),e.ext=r.slice(a,c))}return o>0?e.dir=r.slice(0,o-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};im.win32=RD.win32=RD;im.posix=RD.posix=im;const Cvt=oN?RD.normalize:im.normalize,Kmi=oN?RD.resolve:im.resolve,Wmi=oN?RD.relative:im.relative,bvt=oN?RD.dirname:im.dirname,DL=oN?RD.basename:im.basename,Gmi=oN?RD.extname:im.extname,_y=oN?RD.sep:im.sep,Jmi=/^\w[\w\d+.-]*$/,$mi=/^\//,Umi=/^\/\//;function Egt(r,e){if(!r.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${r.authority}", path: "${r.path}", query: "${r.query}", fragment: "${r.fragment}"}`);if(r.scheme&&!Jmi.test(r.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(r.path){if(r.authority){if(!$mi.test(r.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(Umi.test(r.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function qmi(r,e){return!r&&!e?"file":r}function Zmi(r,e){switch(r){case"https":case"http":case"file":e?e[0]!==Xb&&(e=Xb+e):e=Xb;break}return e}const ff="",Xb="/",Ymi=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class to{static isUri(e){return e instanceof to?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,i,n,a,o,c=!1){typeof e=="object"?(this.scheme=e.scheme||ff,this.authority=e.authority||ff,this.path=e.path||ff,this.query=e.query||ff,this.fragment=e.fragment||ff):(this.scheme=qmi(e,c),this.authority=i||ff,this.path=Zmi(this.scheme,n||ff),this.query=a||ff,this.fragment=o||ff,Egt(this,c))}get fsPath(){return i5e(this,!1)}with(e){if(!e)return this;let{scheme:i,authority:n,path:a,query:o,fragment:c}=e;return i===void 0?i=this.scheme:i===null&&(i=ff),n===void 0?n=this.authority:n===null&&(n=ff),a===void 0?a=this.path:a===null&&(a=ff),o===void 0?o=this.query:o===null&&(o=ff),c===void 0?c=this.fragment:c===null&&(c=ff),i===this.scheme&&n===this.authority&&a===this.path&&o===this.query&&c===this.fragment?this:new HW(i,n,a,o,c)}static parse(e,i=!1){const n=Ymi.exec(e);return n?new HW(n[2]||ff,y_e(n[4]||ff),y_e(n[5]||ff),y_e(n[7]||ff),y_e(n[9]||ff),i):new HW(ff,ff,ff,ff,ff)}static file(e){let i=ff;if(yp&&(e=e.replace(/\\/g,Xb)),e[0]===Xb&&e[1]===Xb){const n=e.indexOf(Xb,2);n===-1?(i=e.substring(2),e=Xb):(i=e.substring(2,n),e=e.substring(n)||Xb)}return new HW("file",i,e,ff,ff)}static from(e){const i=new HW(e.scheme,e.authority,e.path,e.query,e.fragment);return Egt(i,!0),i}static joinPath(e,...i){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return yp&&e.scheme==="file"?n=to.file(RD.join(i5e(e,!0),...i)).path:n=im.join(e.path,...i),e.with({path:n})}toString(e=!1){return cje(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof to)return e;{const i=new HW(e);return i._formatted=e.external,i._fsPath=e._sep===yvt?e.fsPath:null,i}}else return e}}const yvt=yp?1:void 0;let HW=class extends to{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=i5e(this,!1)),this._fsPath}toString(e=!1){return e?cje(this,!0):(this._formatted||(this._formatted=cje(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=yvt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const kvt={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function _gt(r,e,i){let n,a=-1;for(let o=0;o=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||e&&c===47||i&&c===91||i&&c===93||i&&c===58)a!==-1&&(n+=encodeURIComponent(r.substring(a,o)),a=-1),n!==void 0&&(n+=r.charAt(o));else{n===void 0&&(n=r.substr(0,o));const h=kvt[c];h!==void 0?(a!==-1&&(n+=encodeURIComponent(r.substring(a,o)),a=-1),n+=h):a===-1&&(a=o)}}return a!==-1&&(n+=encodeURIComponent(r.substring(a))),n!==void 0?n:r}function Qmi(r){let e;for(let i=0;i1&&r.scheme==="file"?i=`//${r.authority}${r.path}`:r.path.charCodeAt(0)===47&&(r.path.charCodeAt(1)>=65&&r.path.charCodeAt(1)<=90||r.path.charCodeAt(1)>=97&&r.path.charCodeAt(1)<=122)&&r.path.charCodeAt(2)===58?e?i=r.path.substr(1):i=r.path[1].toLowerCase()+r.path.substr(2):i=r.path,yp&&(i=i.replace(/\//g,"\\")),i}function cje(r,e){const i=e?Qmi:_gt;let n="",{scheme:a,authority:o,path:c,query:h,fragment:g}=r;if(a&&(n+=a,n+=":"),(o||a==="file")&&(n+=Xb,n+=Xb),o){let _=o.indexOf("@");if(_!==-1){const x=o.substr(0,_);o=o.substr(_+1),_=x.lastIndexOf(":"),_===-1?n+=i(x,!1,!1):(n+=i(x.substr(0,_),!1,!1),n+=":",n+=i(x.substr(_+1),!1,!0)),n+="@"}o=o.toLowerCase(),_=o.lastIndexOf(":"),_===-1?n+=i(o,!1,!0):(n+=i(o.substr(0,_),!1,!0),n+=o.substr(_))}if(c){if(c.length>=3&&c.charCodeAt(0)===47&&c.charCodeAt(2)===58){const _=c.charCodeAt(1);_>=65&&_<=90&&(c=`/${String.fromCharCode(_+32)}:${c.substr(3)}`)}else if(c.length>=2&&c.charCodeAt(1)===58){const _=c.charCodeAt(0);_>=65&&_<=90&&(c=`${String.fromCharCode(_+32)}:${c.substr(2)}`)}n+=i(c,!0,!1)}return h&&(n+="?",n+=i(h,!1,!1)),g&&(n+="#",n+=e?g:_gt(g,!1,!1)),n}function Fvt(r){try{return decodeURIComponent(r)}catch{return r.length>3?r.substr(0,3)+Fvt(r.substr(3)):r}}const Dgt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function y_e(r){return r.match(Dgt)?r.replace(Dgt,e=>Fvt(e)):r}let Vi=class cI{constructor(e,i){this.lineNumber=e,this.column=i}with(e=this.lineNumber,i=this.column){return e===this.lineNumber&&i===this.column?this:new cI(e,i)}delta(e=0,i=0){return this.with(this.lineNumber+e,this.column+i)}equals(e){return cI.equals(this,e)}static equals(e,i){return!e&&!i?!0:!!e&&!!i&&e.lineNumber===i.lineNumber&&e.column===i.column}isBefore(e){return cI.isBefore(this,e)}static isBefore(e,i){return e.lineNumbern||e===n&&i>a?(this.startLineNumber=n,this.startColumn=a,this.endLineNumber=e,this.endColumn=i):(this.startLineNumber=e,this.startColumn=i,this.endLineNumber=n,this.endColumn=a)}isEmpty(){return fp.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return fp.containsPosition(this,e)}static containsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.columne.endColumn)}static strictContainsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.column<=e.startColumn||i.lineNumber===e.endLineNumber&&i.column>=e.endColumn)}containsRange(e){return fp.containsRange(this,e)}static containsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumne.endColumn)}strictContainsRange(e){return fp.strictContainsRange(this,e)}static strictContainsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumn<=e.startColumn||i.endLineNumber===e.endLineNumber&&i.endColumn>=e.endColumn)}plusRange(e){return fp.plusRange(this,e)}static plusRange(e,i){let n,a,o,c;return i.startLineNumbere.endLineNumber?(o=i.endLineNumber,c=i.endColumn):i.endLineNumber===e.endLineNumber?(o=i.endLineNumber,c=Math.max(i.endColumn,e.endColumn)):(o=e.endLineNumber,c=e.endColumn),new fp(n,a,o,c)}intersectRanges(e){return fp.intersectRanges(this,e)}static intersectRanges(e,i){let n=e.startLineNumber,a=e.startColumn,o=e.endLineNumber,c=e.endColumn;const h=i.startLineNumber,g=i.startColumn,_=i.endLineNumber,x=i.endColumn;return n_?(o=_,c=x):o===_&&(c=Math.min(c,x)),n>o||n===o&&a>c?null:new fp(n,a,o,c)}equalsRange(e){return fp.equalsRange(this,e)}static equalsRange(e,i){return!e&&!i?!0:!!e&&!!i&&e.startLineNumber===i.startLineNumber&&e.startColumn===i.startColumn&&e.endLineNumber===i.endLineNumber&&e.endColumn===i.endColumn}getEndPosition(){return fp.getEndPosition(this)}static getEndPosition(e){return new Vi(e.endLineNumber,e.endColumn)}getStartPosition(){return fp.getStartPosition(this)}static getStartPosition(e){return new Vi(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,i){return new fp(this.startLineNumber,this.startColumn,e,i)}setStartPosition(e,i){return new fp(e,i,this.endLineNumber,this.endColumn)}collapseToStart(){return fp.collapseToStart(this)}static collapseToStart(e){return new fp(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return fp.collapseToEnd(this)}static collapseToEnd(e){return new fp(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new fp(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,i=e){return new fp(e.lineNumber,e.column,i.lineNumber,i.column)}static lift(e){return e?new fp(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,i){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},ga=class IC extends ot{constructor(e,i,n,a){super(e,i,n,a),this.selectionStartLineNumber=e,this.selectionStartColumn=i,this.positionLineNumber=n,this.positionColumn=a}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return IC.selectionsEqual(this,e)}static selectionsEqual(e,i){return e.selectionStartLineNumber===i.selectionStartLineNumber&&e.selectionStartColumn===i.selectionStartColumn&&e.positionLineNumber===i.positionLineNumber&&e.positionColumn===i.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,i){return this.getDirection()===0?new IC(this.startLineNumber,this.startColumn,e,i):new IC(e,i,this.startLineNumber,this.startColumn)}getPosition(){return new Vi(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Vi(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,i){return this.getDirection()===0?new IC(e,i,this.endLineNumber,this.endColumn):new IC(this.endLineNumber,this.endColumn,e,i)}static fromPositions(e,i=e){return new IC(e.lineNumber,e.column,i.lineNumber,i.column)}static fromRange(e,i){return i===0?new IC(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new IC(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new IC(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,i){if(e&&!i||!e&&i)return!1;if(!e&&!i)return!0;if(e.length!==i.length)return!1;for(let n=0,a=e.length;n{this._tokenizationSupports.get(e)===i&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,i){var n;(n=this._factories.get(e))===null||n===void 0||n.dispose();const a=new e4i(this,e,i);return this._factories.set(e,a),Bs(()=>{const o=this._factories.get(e);!o||o!==a||(this._factories.delete(e),o.dispose())})}getOrCreate(e){return hje(this,void 0,void 0,function*(){const i=this.get(e);if(i)return i;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!!(!n||n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class e4i extends ln{get isResolved(){return this._isResolved}constructor(e,i,n){super(),this._registry=e,this._languageId=i,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return hje(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return hje(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}let Sue=class{constructor(e,i,n){this.offset=e,this.type=i,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class PGe{constructor(e,i){this.tokens=e,this.endState=i,this._tokenizationResultBrand=void 0}}class D6e{constructor(e,i){this.tokens=e,this.endState=i,this._encodedTokenizationResultBrand=void 0}}var Bue;(function(r){const e=new Map;e.set(0,cr.symbolMethod),e.set(1,cr.symbolFunction),e.set(2,cr.symbolConstructor),e.set(3,cr.symbolField),e.set(4,cr.symbolVariable),e.set(5,cr.symbolClass),e.set(6,cr.symbolStruct),e.set(7,cr.symbolInterface),e.set(8,cr.symbolModule),e.set(9,cr.symbolProperty),e.set(10,cr.symbolEvent),e.set(11,cr.symbolOperator),e.set(12,cr.symbolUnit),e.set(13,cr.symbolValue),e.set(15,cr.symbolEnum),e.set(14,cr.symbolConstant),e.set(15,cr.symbolEnum),e.set(16,cr.symbolEnumMember),e.set(17,cr.symbolKeyword),e.set(27,cr.symbolSnippet),e.set(18,cr.symbolText),e.set(19,cr.symbolColor),e.set(20,cr.symbolFile),e.set(21,cr.symbolReference),e.set(22,cr.symbolCustomColor),e.set(23,cr.symbolFolder),e.set(24,cr.symbolTypeParameter),e.set(25,cr.account),e.set(26,cr.issues);function i(o){let c=e.get(o);return c||(console.info("No codicon found for CompletionItemKind "+o),c=cr.symbolProperty),c}r.toIcon=i;const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function a(o,c){let h=n.get(o);return typeof h>"u"&&!c&&(h=9),h}r.fromString=a})(Bue||(Bue={}));var X5;(function(r){r[r.Automatic=0]="Automatic",r[r.Explicit=1]="Explicit"})(X5||(X5={}));var _A;(function(r){r[r.Invoke=1]="Invoke",r[r.TriggerCharacter=2]="TriggerCharacter",r[r.ContentChange=3]="ContentChange"})(_A||(_A={}));var wue;(function(r){r[r.Text=0]="Text",r[r.Read=1]="Read",r[r.Write=2]="Write"})(wue||(wue={}));function t4i(r){return r&&to.isUri(r.uri)&&ot.isIRange(r.range)&&(ot.isIRange(r.originSelectionRange)||ot.isIRange(r.targetSelectionRange))}var fje;(function(r){const e=new Map;e.set(0,cr.symbolFile),e.set(1,cr.symbolModule),e.set(2,cr.symbolNamespace),e.set(3,cr.symbolPackage),e.set(4,cr.symbolClass),e.set(5,cr.symbolMethod),e.set(6,cr.symbolProperty),e.set(7,cr.symbolField),e.set(8,cr.symbolConstructor),e.set(9,cr.symbolEnum),e.set(10,cr.symbolInterface),e.set(11,cr.symbolFunction),e.set(12,cr.symbolVariable),e.set(13,cr.symbolConstant),e.set(14,cr.symbolString),e.set(15,cr.symbolNumber),e.set(16,cr.symbolBoolean),e.set(17,cr.symbolArray),e.set(18,cr.symbolObject),e.set(19,cr.symbolKey),e.set(20,cr.symbolNull),e.set(21,cr.symbolEnumMember),e.set(22,cr.symbolStruct),e.set(23,cr.symbolEvent),e.set(24,cr.symbolOperator),e.set(25,cr.symbolTypeParameter);function i(n){let a=e.get(n);return a||(console.info("No codicon found for SymbolKind "+n),a=cr.symbolProperty),a}r.toIcon=i})(fje||(fje={}));class L_{static fromValue(e){switch(e){case"comment":return L_.Comment;case"imports":return L_.Imports;case"region":return L_.Region}return new L_(e)}constructor(e){this.value=e}}L_.Comment=new L_("comment");L_.Imports=new L_("imports");L_.Region=new L_("region");var mje;(function(r){function e(i){return!i||typeof i!="object"?!1:typeof i.id=="string"&&typeof i.title=="string"}r.is=e})(mje||(mje={}));var n5e;(function(r){r[r.Type=1]="Type",r[r.Parameter=2]="Parameter"})(n5e||(n5e={}));class i4i{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const ah=new Xmi;var pje;(function(r){r[r.Unknown=0]="Unknown",r[r.Disabled=1]="Disabled",r[r.Enabled=2]="Enabled"})(pje||(pje={}));var gje;(function(r){r[r.Invoke=1]="Invoke",r[r.Auto=2]="Auto"})(gje||(gje={}));var Eje;(function(r){r[r.None=0]="None",r[r.KeepWhitespace=1]="KeepWhitespace",r[r.InsertAsSnippet=4]="InsertAsSnippet"})(Eje||(Eje={}));var _je;(function(r){r[r.Method=0]="Method",r[r.Function=1]="Function",r[r.Constructor=2]="Constructor",r[r.Field=3]="Field",r[r.Variable=4]="Variable",r[r.Class=5]="Class",r[r.Struct=6]="Struct",r[r.Interface=7]="Interface",r[r.Module=8]="Module",r[r.Property=9]="Property",r[r.Event=10]="Event",r[r.Operator=11]="Operator",r[r.Unit=12]="Unit",r[r.Value=13]="Value",r[r.Constant=14]="Constant",r[r.Enum=15]="Enum",r[r.EnumMember=16]="EnumMember",r[r.Keyword=17]="Keyword",r[r.Text=18]="Text",r[r.Color=19]="Color",r[r.File=20]="File",r[r.Reference=21]="Reference",r[r.Customcolor=22]="Customcolor",r[r.Folder=23]="Folder",r[r.TypeParameter=24]="TypeParameter",r[r.User=25]="User",r[r.Issue=26]="Issue",r[r.Snippet=27]="Snippet"})(_je||(_je={}));var Dje;(function(r){r[r.Deprecated=1]="Deprecated"})(Dje||(Dje={}));var xje;(function(r){r[r.Invoke=0]="Invoke",r[r.TriggerCharacter=1]="TriggerCharacter",r[r.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(xje||(xje={}));var vje;(function(r){r[r.EXACT=0]="EXACT",r[r.ABOVE=1]="ABOVE",r[r.BELOW=2]="BELOW"})(vje||(vje={}));var Cje;(function(r){r[r.NotSet=0]="NotSet",r[r.ContentFlush=1]="ContentFlush",r[r.RecoverFromMarkers=2]="RecoverFromMarkers",r[r.Explicit=3]="Explicit",r[r.Paste=4]="Paste",r[r.Undo=5]="Undo",r[r.Redo=6]="Redo"})(Cje||(Cje={}));var bje;(function(r){r[r.LF=1]="LF",r[r.CRLF=2]="CRLF"})(bje||(bje={}));var yje;(function(r){r[r.Text=0]="Text",r[r.Read=1]="Read",r[r.Write=2]="Write"})(yje||(yje={}));var kje;(function(r){r[r.None=0]="None",r[r.Keep=1]="Keep",r[r.Brackets=2]="Brackets",r[r.Advanced=3]="Advanced",r[r.Full=4]="Full"})(kje||(kje={}));var Fje;(function(r){r[r.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",r[r.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",r[r.accessibilitySupport=2]="accessibilitySupport",r[r.accessibilityPageSize=3]="accessibilityPageSize",r[r.ariaLabel=4]="ariaLabel",r[r.autoClosingBrackets=5]="autoClosingBrackets",r[r.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",r[r.autoClosingDelete=7]="autoClosingDelete",r[r.autoClosingOvertype=8]="autoClosingOvertype",r[r.autoClosingQuotes=9]="autoClosingQuotes",r[r.autoIndent=10]="autoIndent",r[r.automaticLayout=11]="automaticLayout",r[r.autoSurround=12]="autoSurround",r[r.bracketPairColorization=13]="bracketPairColorization",r[r.guides=14]="guides",r[r.codeLens=15]="codeLens",r[r.codeLensFontFamily=16]="codeLensFontFamily",r[r.codeLensFontSize=17]="codeLensFontSize",r[r.colorDecorators=18]="colorDecorators",r[r.colorDecoratorsLimit=19]="colorDecoratorsLimit",r[r.columnSelection=20]="columnSelection",r[r.comments=21]="comments",r[r.contextmenu=22]="contextmenu",r[r.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",r[r.cursorBlinking=24]="cursorBlinking",r[r.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",r[r.cursorStyle=26]="cursorStyle",r[r.cursorSurroundingLines=27]="cursorSurroundingLines",r[r.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",r[r.cursorWidth=29]="cursorWidth",r[r.disableLayerHinting=30]="disableLayerHinting",r[r.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",r[r.domReadOnly=32]="domReadOnly",r[r.dragAndDrop=33]="dragAndDrop",r[r.dropIntoEditor=34]="dropIntoEditor",r[r.emptySelectionClipboard=35]="emptySelectionClipboard",r[r.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",r[r.extraEditorClassName=37]="extraEditorClassName",r[r.fastScrollSensitivity=38]="fastScrollSensitivity",r[r.find=39]="find",r[r.fixedOverflowWidgets=40]="fixedOverflowWidgets",r[r.folding=41]="folding",r[r.foldingStrategy=42]="foldingStrategy",r[r.foldingHighlight=43]="foldingHighlight",r[r.foldingImportsByDefault=44]="foldingImportsByDefault",r[r.foldingMaximumRegions=45]="foldingMaximumRegions",r[r.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",r[r.fontFamily=47]="fontFamily",r[r.fontInfo=48]="fontInfo",r[r.fontLigatures=49]="fontLigatures",r[r.fontSize=50]="fontSize",r[r.fontWeight=51]="fontWeight",r[r.fontVariations=52]="fontVariations",r[r.formatOnPaste=53]="formatOnPaste",r[r.formatOnType=54]="formatOnType",r[r.glyphMargin=55]="glyphMargin",r[r.gotoLocation=56]="gotoLocation",r[r.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",r[r.hover=58]="hover",r[r.inDiffEditor=59]="inDiffEditor",r[r.inlineSuggest=60]="inlineSuggest",r[r.letterSpacing=61]="letterSpacing",r[r.lightbulb=62]="lightbulb",r[r.lineDecorationsWidth=63]="lineDecorationsWidth",r[r.lineHeight=64]="lineHeight",r[r.lineNumbers=65]="lineNumbers",r[r.lineNumbersMinChars=66]="lineNumbersMinChars",r[r.linkedEditing=67]="linkedEditing",r[r.links=68]="links",r[r.matchBrackets=69]="matchBrackets",r[r.minimap=70]="minimap",r[r.mouseStyle=71]="mouseStyle",r[r.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",r[r.mouseWheelZoom=73]="mouseWheelZoom",r[r.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",r[r.multiCursorModifier=75]="multiCursorModifier",r[r.multiCursorPaste=76]="multiCursorPaste",r[r.multiCursorLimit=77]="multiCursorLimit",r[r.occurrencesHighlight=78]="occurrencesHighlight",r[r.overviewRulerBorder=79]="overviewRulerBorder",r[r.overviewRulerLanes=80]="overviewRulerLanes",r[r.padding=81]="padding",r[r.parameterHints=82]="parameterHints",r[r.peekWidgetDefaultFocus=83]="peekWidgetDefaultFocus",r[r.definitionLinkOpensInPeek=84]="definitionLinkOpensInPeek",r[r.quickSuggestions=85]="quickSuggestions",r[r.quickSuggestionsDelay=86]="quickSuggestionsDelay",r[r.readOnly=87]="readOnly",r[r.renameOnType=88]="renameOnType",r[r.renderControlCharacters=89]="renderControlCharacters",r[r.renderFinalNewline=90]="renderFinalNewline",r[r.renderLineHighlight=91]="renderLineHighlight",r[r.renderLineHighlightOnlyWhenFocus=92]="renderLineHighlightOnlyWhenFocus",r[r.renderValidationDecorations=93]="renderValidationDecorations",r[r.renderWhitespace=94]="renderWhitespace",r[r.revealHorizontalRightPadding=95]="revealHorizontalRightPadding",r[r.roundedSelection=96]="roundedSelection",r[r.rulers=97]="rulers",r[r.scrollbar=98]="scrollbar",r[r.scrollBeyondLastColumn=99]="scrollBeyondLastColumn",r[r.scrollBeyondLastLine=100]="scrollBeyondLastLine",r[r.scrollPredominantAxis=101]="scrollPredominantAxis",r[r.selectionClipboard=102]="selectionClipboard",r[r.selectionHighlight=103]="selectionHighlight",r[r.selectOnLineNumbers=104]="selectOnLineNumbers",r[r.showFoldingControls=105]="showFoldingControls",r[r.showUnused=106]="showUnused",r[r.snippetSuggestions=107]="snippetSuggestions",r[r.smartSelect=108]="smartSelect",r[r.smoothScrolling=109]="smoothScrolling",r[r.stickyScroll=110]="stickyScroll",r[r.stickyTabStops=111]="stickyTabStops",r[r.stopRenderingLineAfter=112]="stopRenderingLineAfter",r[r.suggest=113]="suggest",r[r.suggestFontSize=114]="suggestFontSize",r[r.suggestLineHeight=115]="suggestLineHeight",r[r.suggestOnTriggerCharacters=116]="suggestOnTriggerCharacters",r[r.suggestSelection=117]="suggestSelection",r[r.tabCompletion=118]="tabCompletion",r[r.tabIndex=119]="tabIndex",r[r.unicodeHighlighting=120]="unicodeHighlighting",r[r.unusualLineTerminators=121]="unusualLineTerminators",r[r.useShadowDOM=122]="useShadowDOM",r[r.useTabStops=123]="useTabStops",r[r.wordBreak=124]="wordBreak",r[r.wordSeparators=125]="wordSeparators",r[r.wordWrap=126]="wordWrap",r[r.wordWrapBreakAfterCharacters=127]="wordWrapBreakAfterCharacters",r[r.wordWrapBreakBeforeCharacters=128]="wordWrapBreakBeforeCharacters",r[r.wordWrapColumn=129]="wordWrapColumn",r[r.wordWrapOverride1=130]="wordWrapOverride1",r[r.wordWrapOverride2=131]="wordWrapOverride2",r[r.wrappingIndent=132]="wrappingIndent",r[r.wrappingStrategy=133]="wrappingStrategy",r[r.showDeprecated=134]="showDeprecated",r[r.inlayHints=135]="inlayHints",r[r.editorClassName=136]="editorClassName",r[r.pixelRatio=137]="pixelRatio",r[r.tabFocusMode=138]="tabFocusMode",r[r.layoutInfo=139]="layoutInfo",r[r.wrappingInfo=140]="wrappingInfo"})(Fje||(Fje={}));var Aje;(function(r){r[r.TextDefined=0]="TextDefined",r[r.LF=1]="LF",r[r.CRLF=2]="CRLF"})(Aje||(Aje={}));var Sje;(function(r){r[r.LF=0]="LF",r[r.CRLF=1]="CRLF"})(Sje||(Sje={}));var Bje;(function(r){r[r.None=0]="None",r[r.Indent=1]="Indent",r[r.IndentOutdent=2]="IndentOutdent",r[r.Outdent=3]="Outdent"})(Bje||(Bje={}));var wje;(function(r){r[r.Both=0]="Both",r[r.Right=1]="Right",r[r.Left=2]="Left",r[r.None=3]="None"})(wje||(wje={}));var Tje;(function(r){r[r.Type=1]="Type",r[r.Parameter=2]="Parameter"})(Tje||(Tje={}));var Lje;(function(r){r[r.Automatic=0]="Automatic",r[r.Explicit=1]="Explicit"})(Lje||(Lje={}));var Nje;(function(r){r[r.DependsOnKbLayout=-1]="DependsOnKbLayout",r[r.Unknown=0]="Unknown",r[r.Backspace=1]="Backspace",r[r.Tab=2]="Tab",r[r.Enter=3]="Enter",r[r.Shift=4]="Shift",r[r.Ctrl=5]="Ctrl",r[r.Alt=6]="Alt",r[r.PauseBreak=7]="PauseBreak",r[r.CapsLock=8]="CapsLock",r[r.Escape=9]="Escape",r[r.Space=10]="Space",r[r.PageUp=11]="PageUp",r[r.PageDown=12]="PageDown",r[r.End=13]="End",r[r.Home=14]="Home",r[r.LeftArrow=15]="LeftArrow",r[r.UpArrow=16]="UpArrow",r[r.RightArrow=17]="RightArrow",r[r.DownArrow=18]="DownArrow",r[r.Insert=19]="Insert",r[r.Delete=20]="Delete",r[r.Digit0=21]="Digit0",r[r.Digit1=22]="Digit1",r[r.Digit2=23]="Digit2",r[r.Digit3=24]="Digit3",r[r.Digit4=25]="Digit4",r[r.Digit5=26]="Digit5",r[r.Digit6=27]="Digit6",r[r.Digit7=28]="Digit7",r[r.Digit8=29]="Digit8",r[r.Digit9=30]="Digit9",r[r.KeyA=31]="KeyA",r[r.KeyB=32]="KeyB",r[r.KeyC=33]="KeyC",r[r.KeyD=34]="KeyD",r[r.KeyE=35]="KeyE",r[r.KeyF=36]="KeyF",r[r.KeyG=37]="KeyG",r[r.KeyH=38]="KeyH",r[r.KeyI=39]="KeyI",r[r.KeyJ=40]="KeyJ",r[r.KeyK=41]="KeyK",r[r.KeyL=42]="KeyL",r[r.KeyM=43]="KeyM",r[r.KeyN=44]="KeyN",r[r.KeyO=45]="KeyO",r[r.KeyP=46]="KeyP",r[r.KeyQ=47]="KeyQ",r[r.KeyR=48]="KeyR",r[r.KeyS=49]="KeyS",r[r.KeyT=50]="KeyT",r[r.KeyU=51]="KeyU",r[r.KeyV=52]="KeyV",r[r.KeyW=53]="KeyW",r[r.KeyX=54]="KeyX",r[r.KeyY=55]="KeyY",r[r.KeyZ=56]="KeyZ",r[r.Meta=57]="Meta",r[r.ContextMenu=58]="ContextMenu",r[r.F1=59]="F1",r[r.F2=60]="F2",r[r.F3=61]="F3",r[r.F4=62]="F4",r[r.F5=63]="F5",r[r.F6=64]="F6",r[r.F7=65]="F7",r[r.F8=66]="F8",r[r.F9=67]="F9",r[r.F10=68]="F10",r[r.F11=69]="F11",r[r.F12=70]="F12",r[r.F13=71]="F13",r[r.F14=72]="F14",r[r.F15=73]="F15",r[r.F16=74]="F16",r[r.F17=75]="F17",r[r.F18=76]="F18",r[r.F19=77]="F19",r[r.NumLock=78]="NumLock",r[r.ScrollLock=79]="ScrollLock",r[r.Semicolon=80]="Semicolon",r[r.Equal=81]="Equal",r[r.Comma=82]="Comma",r[r.Minus=83]="Minus",r[r.Period=84]="Period",r[r.Slash=85]="Slash",r[r.Backquote=86]="Backquote",r[r.BracketLeft=87]="BracketLeft",r[r.Backslash=88]="Backslash",r[r.BracketRight=89]="BracketRight",r[r.Quote=90]="Quote",r[r.OEM_8=91]="OEM_8",r[r.IntlBackslash=92]="IntlBackslash",r[r.Numpad0=93]="Numpad0",r[r.Numpad1=94]="Numpad1",r[r.Numpad2=95]="Numpad2",r[r.Numpad3=96]="Numpad3",r[r.Numpad4=97]="Numpad4",r[r.Numpad5=98]="Numpad5",r[r.Numpad6=99]="Numpad6",r[r.Numpad7=100]="Numpad7",r[r.Numpad8=101]="Numpad8",r[r.Numpad9=102]="Numpad9",r[r.NumpadMultiply=103]="NumpadMultiply",r[r.NumpadAdd=104]="NumpadAdd",r[r.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",r[r.NumpadSubtract=106]="NumpadSubtract",r[r.NumpadDecimal=107]="NumpadDecimal",r[r.NumpadDivide=108]="NumpadDivide",r[r.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",r[r.ABNT_C1=110]="ABNT_C1",r[r.ABNT_C2=111]="ABNT_C2",r[r.AudioVolumeMute=112]="AudioVolumeMute",r[r.AudioVolumeUp=113]="AudioVolumeUp",r[r.AudioVolumeDown=114]="AudioVolumeDown",r[r.BrowserSearch=115]="BrowserSearch",r[r.BrowserHome=116]="BrowserHome",r[r.BrowserBack=117]="BrowserBack",r[r.BrowserForward=118]="BrowserForward",r[r.MediaTrackNext=119]="MediaTrackNext",r[r.MediaTrackPrevious=120]="MediaTrackPrevious",r[r.MediaStop=121]="MediaStop",r[r.MediaPlayPause=122]="MediaPlayPause",r[r.LaunchMediaPlayer=123]="LaunchMediaPlayer",r[r.LaunchMail=124]="LaunchMail",r[r.LaunchApp2=125]="LaunchApp2",r[r.Clear=126]="Clear",r[r.MAX_VALUE=127]="MAX_VALUE"})(Nje||(Nje={}));var Pje;(function(r){r[r.Hint=1]="Hint",r[r.Info=2]="Info",r[r.Warning=4]="Warning",r[r.Error=8]="Error"})(Pje||(Pje={}));var Mje;(function(r){r[r.Unnecessary=1]="Unnecessary",r[r.Deprecated=2]="Deprecated"})(Mje||(Mje={}));var zje;(function(r){r[r.Inline=1]="Inline",r[r.Gutter=2]="Gutter"})(zje||(zje={}));var Ije;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.TEXTAREA=1]="TEXTAREA",r[r.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",r[r.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",r[r.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",r[r.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",r[r.CONTENT_TEXT=6]="CONTENT_TEXT",r[r.CONTENT_EMPTY=7]="CONTENT_EMPTY",r[r.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",r[r.CONTENT_WIDGET=9]="CONTENT_WIDGET",r[r.OVERVIEW_RULER=10]="OVERVIEW_RULER",r[r.SCROLLBAR=11]="SCROLLBAR",r[r.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",r[r.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Ije||(Ije={}));var Rje;(function(r){r[r.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",r[r.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",r[r.TOP_CENTER=2]="TOP_CENTER"})(Rje||(Rje={}));var Oje;(function(r){r[r.Left=1]="Left",r[r.Center=2]="Center",r[r.Right=4]="Right",r[r.Full=7]="Full"})(Oje||(Oje={}));var jje;(function(r){r[r.Left=0]="Left",r[r.Right=1]="Right",r[r.None=2]="None",r[r.LeftOfInjectedText=3]="LeftOfInjectedText",r[r.RightOfInjectedText=4]="RightOfInjectedText"})(jje||(jje={}));var Vje;(function(r){r[r.Off=0]="Off",r[r.On=1]="On",r[r.Relative=2]="Relative",r[r.Interval=3]="Interval",r[r.Custom=4]="Custom"})(Vje||(Vje={}));var Hje;(function(r){r[r.None=0]="None",r[r.Text=1]="Text",r[r.Blocks=2]="Blocks"})(Hje||(Hje={}));var Kje;(function(r){r[r.Smooth=0]="Smooth",r[r.Immediate=1]="Immediate"})(Kje||(Kje={}));var Wje;(function(r){r[r.Auto=1]="Auto",r[r.Hidden=2]="Hidden",r[r.Visible=3]="Visible"})(Wje||(Wje={}));var Gje;(function(r){r[r.LTR=0]="LTR",r[r.RTL=1]="RTL"})(Gje||(Gje={}));var Jje;(function(r){r[r.Invoke=1]="Invoke",r[r.TriggerCharacter=2]="TriggerCharacter",r[r.ContentChange=3]="ContentChange"})(Jje||(Jje={}));var $je;(function(r){r[r.File=0]="File",r[r.Module=1]="Module",r[r.Namespace=2]="Namespace",r[r.Package=3]="Package",r[r.Class=4]="Class",r[r.Method=5]="Method",r[r.Property=6]="Property",r[r.Field=7]="Field",r[r.Constructor=8]="Constructor",r[r.Enum=9]="Enum",r[r.Interface=10]="Interface",r[r.Function=11]="Function",r[r.Variable=12]="Variable",r[r.Constant=13]="Constant",r[r.String=14]="String",r[r.Number=15]="Number",r[r.Boolean=16]="Boolean",r[r.Array=17]="Array",r[r.Object=18]="Object",r[r.Key=19]="Key",r[r.Null=20]="Null",r[r.EnumMember=21]="EnumMember",r[r.Struct=22]="Struct",r[r.Event=23]="Event",r[r.Operator=24]="Operator",r[r.TypeParameter=25]="TypeParameter"})($je||($je={}));var Uje;(function(r){r[r.Deprecated=1]="Deprecated"})(Uje||(Uje={}));var qje;(function(r){r[r.Hidden=0]="Hidden",r[r.Blink=1]="Blink",r[r.Smooth=2]="Smooth",r[r.Phase=3]="Phase",r[r.Expand=4]="Expand",r[r.Solid=5]="Solid"})(qje||(qje={}));var Zje;(function(r){r[r.Line=1]="Line",r[r.Block=2]="Block",r[r.Underline=3]="Underline",r[r.LineThin=4]="LineThin",r[r.BlockOutline=5]="BlockOutline",r[r.UnderlineThin=6]="UnderlineThin"})(Zje||(Zje={}));var Yje;(function(r){r[r.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",r[r.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",r[r.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",r[r.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Yje||(Yje={}));var Qje;(function(r){r[r.None=0]="None",r[r.Same=1]="Same",r[r.Indent=2]="Indent",r[r.DeepIndent=3]="DeepIndent"})(Qje||(Qje={}));let hae=class{static chord(e,i){return Fm(e,i)}};hae.CtrlCmd=2048;hae.Shift=1024;hae.Alt=512;hae.WinCtrl=256;function Svt(){return{editor:void 0,languages:void 0,CancellationTokenSource:kp,Emitter:yi,KeyCode:Nje,KeyMod:hae,Position:Vi,Range:ot,Selection:ga,SelectionDirection:Gje,MarkerSeverity:Pje,MarkerTag:Mje,Uri:to,Token:Sue}}class n4i{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const i=JSON.stringify(e);return this.lastArgKey!==i&&(this.lastArgKey=i,this.lastCache=this.fn(e)),this.lastCache}}class xgt{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const i=this.fn(e);return this._map.set(e,i),i}}class sN{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var Bvt;function wvt(r){return!r||typeof r!="string"?!0:r.trim().length===0}const u4i=/{(\d+)}/g;function H6(r,...e){return e.length===0?r:r.replace(u4i,function(i,n){const a=parseInt(n,10);return isNaN(a)||a<0||a>=e.length?i:e[a]})}function u5e(r){return r.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function mx(r){return r.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function r4i(r,e=" "){const i=fae(r,e);return Tvt(i,e)}function fae(r,e){if(!r||!e)return r;const i=e.length;if(i===0||r.length===0)return r;let n=0;for(;r.indexOf(e,n)===n;)n=n+i;return r.substring(n)}function Tvt(r,e){if(!r||!e)return r;const i=e.length,n=r.length;if(i===0||n===0)return r;let a=n,o=-1;for(;o=r.lastIndexOf(e,a-1),!(o===-1||o+i!==a);){if(o===0)return"";a=o}return r.substring(0,a)}function a4i(r){return r.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function o4i(r){return r.replace(/\*/g,"")}function Lvt(r,e,i={}){if(!r)throw new Error("Cannot create regex from empty string");e||(r=mx(r)),i.wholeWord&&(/\B/.test(r.charAt(0))||(r="\\b"+r),/\B/.test(r.charAt(r.length-1))||(r=r+"\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(r,n)}function s4i(r){return r.source==="^"||r.source==="^$"||r.source==="$"||r.source==="^\\s*$"?!1:!!(r.exec("")&&r.lastIndex===0)}function cIe(r){return(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")}function SA(r){return r.split(/\r\n|\r|\n/)}function RE(r){for(let e=0,i=r.length;e=0;i--){const n=r.charCodeAt(i);if(n!==32&&n!==9)return i}return-1}function Tue(r,e){return re?1:0}function MGe(r,e,i=0,n=r.length,a=0,o=e.length){for(;i_)return 1}const c=n-i,h=o-a;return ch?1:0}function Xje(r,e){return mae(r,e,0,r.length,0,e.length)}function mae(r,e,i=0,n=r.length,a=0,o=e.length){for(;i=128||_>=128)return MGe(r.toLowerCase(),e.toLowerCase(),i,n,a,o);eL(g)&&(g-=32),eL(_)&&(_-=32);const x=g-_;if(x!==0)return x}const c=n-i,h=o-a;return ch?1:0}function k_e(r){return r>=48&&r<=57}function eL(r){return r>=97&&r<=122}function $F(r){return r>=65&&r<=90}function bG(r,e){return r.length===e.length&&mae(r,e)===0}function zGe(r,e){const i=e.length;return e.length>r.length?!1:mae(r,e,0,i)===0}function oR(r,e){const i=Math.min(r.length,e.length);let n;for(n=0;n1){const n=r.charCodeAt(e-2);if(t4(n))return IGe(n,i)}return i}class RGe{get offset(){return this._offset}constructor(e,i=0){this._str=e,this._len=e.length,this._offset=i}setOffset(e){this._offset=e}prevCodePoint(){const e=l4i(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=r5e(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class a5e{get offset(){return this._iterator.offset}constructor(e,i=0){this._iterator=new RGe(e,i)}nextGraphemeLength(){const e=tL.getInstance(),i=this._iterator,n=i.offset;let a=e.getGraphemeBreakType(i.nextCodePoint());for(;!i.eol();){const o=i.offset,c=e.getGraphemeBreakType(i.nextCodePoint());if(vgt(a,c)){i.setOffset(o);break}a=c}return i.offset-n}prevGraphemeLength(){const e=tL.getInstance(),i=this._iterator,n=i.offset;let a=e.getGraphemeBreakType(i.prevCodePoint());for(;i.offset>0;){const o=i.offset,c=e.getGraphemeBreakType(i.prevCodePoint());if(vgt(c,a)){i.setOffset(o);break}a=c}return n-i.offset}eol(){return this._iterator.eol()}}function OGe(r,e){return new a5e(r,e).nextGraphemeLength()}function Nvt(r,e){return new a5e(r,e).prevGraphemeLength()}function c4i(r,e){e>0&&sR(r.charCodeAt(e))&&e--;const i=e+OGe(r,e);return[i-Nvt(r,i),i]}let dIe;function d4i(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function NJ(r){return dIe||(dIe=d4i()),dIe.test(r)}const h4i=/^[\t\n\r\x20-\x7E]*$/;function pae(r){return h4i.test(r)}const Pvt=/[\u2028\u2029]/;function Mvt(r){return Pvt.test(r)}function VL(r){return r>=11904&&r<=55215||r>=63744&&r<=64255||r>=65281&&r<=65374}function jGe(r){return r>=127462&&r<=127487||r===8986||r===8987||r===9200||r===9203||r>=9728&&r<=10175||r===11088||r===11093||r>=127744&&r<=128591||r>=128640&&r<=128764||r>=128992&&r<=129008||r>=129280&&r<=129535||r>=129648&&r<=129782}const f4i="\uFEFF";function VGe(r){return!!(r&&r.length>0&&r.charCodeAt(0)===65279)}function m4i(r,e=!1){return r?(e&&(r=r.replace(/\\./g,"")),r.toLowerCase()!==r):!1}function zvt(r){return r=r%(2*26),r<26?String.fromCharCode(97+r):String.fromCharCode(65+r-26)}function vgt(r,e){return r===0?e!==5&&e!==7:r===2&&e===3?!1:r===4||r===2||r===3||e===4||e===2||e===3?!0:!(r===8&&(e===8||e===9||e===11||e===12)||(r===11||r===9)&&(e===9||e===10)||(r===12||r===10)&&e===10||e===5||e===13||e===7||r===1||r===13&&e===14||r===6&&e===6)}class tL{static getInstance(){return tL._INSTANCE||(tL._INSTANCE=new tL),tL._INSTANCE}constructor(){this._data=p4i()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const i=this._data,n=i.length/3;let a=1;for(;a<=n;)if(ei[3*a+1])a=2*a+1;else return i[3*a+2];return 0}}tL._INSTANCE=null;function p4i(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function g4i(r,e){if(r===0)return 0;const i=E4i(r,e);if(i!==void 0)return i;const n=new RGe(e,r);return n.prevCodePoint(),n.offset}function E4i(r,e){const i=new RGe(e,r);let n=i.prevCodePoint();for(;_4i(n)||n===65039||n===8419;){if(i.offset===0)return;n=i.prevCodePoint()}if(!jGe(n))return;let a=i.offset;return a>0&&i.prevCodePoint()===8205&&(a=i.offset),a}function _4i(r){return 127995<=r&&r<=127999}const D4i=" ";class QC{static getInstance(e){return QC.cache.get(Array.from(e))}static getLocales(){return QC._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}Bvt=QC;QC.ambiguousCharacterData=new sN(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));QC.cache=new n4i(r=>{function e(_){const x=new Map;for(let y=0;y<_.length;y+=2)x.set(_[y],_[y+1]);return x}function i(_,x){const y=new Map(_);for(const[S,L]of x)y.set(S,L);return y}function n(_,x){if(!_)return x;const y=new Map;for(const[S,L]of _)x.has(S)&&y.set(S,L);return y}const a=Bvt.ambiguousCharacterData.value;let o=r.filter(_=>!_.startsWith("_")&&_ in a);o.length===0&&(o=["_default"]);let c;for(const _ of o){const x=e(a[_]);c=n(c,x)}const h=e(a._common),g=i(h,c);return new QC(g)});QC._locales=new sN(()=>Object.keys(QC.ambiguousCharacterData.value).filter(r=>!r.startsWith("_")));class DA{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(DA.getRawData())),this._data}static isInvisibleCharacter(e){return DA.getData().has(e)}static get codePoints(){return DA.getData()}}DA._data=void 0;class eVe{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}eVe.INSTANCE=new eVe;class x4i extends ln{constructor(){super(),this._onDidChange=this._register(new yi),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var i;(i=this._mediaQueryList)===null||i===void 0||i.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class v4i extends ln{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new yi),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new x4i);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),i=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return i/n}}class C4i{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new v4i),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function HGe(r,e){typeof r=="string"&&(r=window.matchMedia(r)),r.addEventListener("change",e)}const PJ=new C4i;function Ivt(){return eVe.INSTANCE.getZoomFactor()}const x$=navigator.userAgent,q6=x$.indexOf("Firefox")>=0,xL=x$.indexOf("AppleWebKit")>=0,KGe=x$.indexOf("Chrome")>=0,XS=!KGe&&x$.indexOf("Safari")>=0,WGe=!KGe&&!XS&&xL,b4i=x$.indexOf("Electron/")>=0,Rvt=x$.indexOf("Android")>=0;let X3e=!1;if(window.matchMedia){const r=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=window.matchMedia("(display-mode: fullscreen)");X3e=r.matches,HGe(r,({matches:i})=>{X3e&&e.matches||(X3e=i)})}function GGe(){return X3e}const y4i=Object.freeze(Object.defineProperty({__proto__:null,PixelRatio:PJ,addMatchMediaChangeListener:HGe,getZoomFactor:Ivt,isAndroid:Rvt,isChrome:KGe,isElectron:b4i,isFirefox:q6,isSafari:XS,isStandalone:GGe,isWebKit:xL,isWebkitWebView:WGe},Symbol.toStringTag,{value:"Module"}));class Ovt{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const i=Wb(e);this._maxWidth!==i&&(this._maxWidth=i,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const i=Wb(e);this._width!==i&&(this._width=i,this.domNode.style.width=this._width)}setHeight(e){const i=Wb(e);this._height!==i&&(this._height=i,this.domNode.style.height=this._height)}setTop(e){const i=Wb(e);this._top!==i&&(this._top=i,this.domNode.style.top=this._top)}setLeft(e){const i=Wb(e);this._left!==i&&(this._left=i,this.domNode.style.left=this._left)}setBottom(e){const i=Wb(e);this._bottom!==i&&(this._bottom=i,this.domNode.style.bottom=this._bottom)}setRight(e){const i=Wb(e);this._right!==i&&(this._right=i,this.domNode.style.right=this._right)}setPaddingLeft(e){const i=Wb(e);this._paddingLeft!==i&&(this._paddingLeft=i,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const i=Wb(e);this._fontSize!==i&&(this._fontSize=i,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const i=Wb(e);this._lineHeight!==i&&(this._lineHeight=i,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const i=Wb(e);this._letterSpacing!==i&&(this._letterSpacing=i,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,i){this.domNode.classList.toggle(e,i),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,i){this.domNode.setAttribute(e,i)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function Wb(r){return typeof r=="number"?`${r}px`:r}function _l(r){return new Ovt(r)}function Cp(r,e){r instanceof Ovt?(r.setFontFamily(e.getMassagedFontFamily()),r.setFontWeight(e.fontWeight),r.setFontSize(e.fontSize),r.setFontFeatureSettings(e.fontFeatureSettings),r.setFontVariationSettings(e.fontVariationSettings),r.setLineHeight(e.lineHeight),r.setLetterSpacing(e.letterSpacing)):(r.style.fontFamily=e.getMassagedFontFamily(),r.style.fontWeight=e.fontWeight,r.style.fontSize=e.fontSize+"px",r.style.fontFeatureSettings=e.fontFeatureSettings,r.style.fontVariationSettings=e.fontVariationSettings,r.style.lineHeight=e.lineHeight+"px",r.style.letterSpacing=e.letterSpacing+"px")}class k4i{constructor(e,i){this.chr=e,this.type=i,this.width=0}fulfill(e){this.width=e}}class JGe{constructor(e,i){this._bareFontInfo=e,this._requests=i,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const i=document.createElement("div");Cp(i,this._bareFontInfo),e.appendChild(i);const n=document.createElement("div");Cp(n,this._bareFontInfo),n.style.fontWeight="bold",e.appendChild(n);const a=document.createElement("div");Cp(a,this._bareFontInfo),a.style.fontStyle="italic",e.appendChild(a);const o=[];for(const c of this._requests){let h;c.type===0&&(h=i),c.type===2&&(h=n),c.type===1&&(h=a),h.appendChild(document.createElement("br"));const g=document.createElement("span");JGe._render(g,c),h.appendChild(g),o.push(g)}this._container=e,this._testElements=o}static _render(e,i){if(i.chr===" "){let n=" ";for(let a=0;a<8;a++)n+=n;e.innerText=n}else{let n=i.chr;for(let a=0;a<8;a++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,i=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let i=!1;for(const n of e)n.isTrusted||(i=!0,this._cache.remove(n));i&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let i=this._actualReadFontInfo(e);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new tVe({pixelRatio:PJ.value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,i)}return this._cache.get(e)}_createRequest(e,i,n,a){const o=new k4i(e,i);return n.push(o),a==null||a.push(o),o}_actualReadFontInfo(e){const i=[],n=[],a=this._createRequest("n",0,i,n),o=this._createRequest("m",0,i,null),c=this._createRequest(" ",0,i,n),h=this._createRequest("0",0,i,n),g=this._createRequest("1",0,i,n),_=this._createRequest("2",0,i,n),x=this._createRequest("3",0,i,n),y=this._createRequest("4",0,i,n),S=this._createRequest("5",0,i,n),L=this._createRequest("6",0,i,n),R=this._createRequest("7",0,i,n),G=this._createRequest("8",0,i,n),ie=this._createRequest("9",0,i,n),ue=this._createRequest("→",0,i,n),re=this._createRequest("→",0,i,null),_e=this._createRequest("·",0,i,n),ye=this._createRequest("⸱",0,i,null),Le="|/-_ilm%";for(let Ft=0,Zt=Le.length;Ft.001){$e=!1;break}}let rt=!0;return $e&&re.width!==Ye&&(rt=!1),re.width>ue.width&&(rt=!1),new tVe({pixelRatio:PJ.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:$e,typicalHalfwidthCharacterWidth:a.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:rt,spaceWidth:c.width,middotWidth:_e.width,wsmiddotWidth:ye.width,maxDigitWidth:lt},!0)}}class Cgt{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const i=e.getId();return!!this._values[i]}get(e){const i=e.getId();return this._values[i]}put(e,i){const n=e.getId();this._keys[n]=e,this._values[n]=i}remove(e){const i=e.getId();delete this._keys[i],delete this._values[i]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const iVe=new B4i;var sy;(function(r){r.serviceIds=new Map,r.DI_TARGET="$di$target",r.DI_DEPENDENCIES="$di$dependencies";function e(i){return i[r.DI_DEPENDENCIES]||[]}r.getServiceDependencies=e})(sy||(sy={}));const xs=y0("instantiationService");function w4i(r,e,i){e[sy.DI_TARGET]===e?e[sy.DI_DEPENDENCIES].push({id:r,index:i}):(e[sy.DI_DEPENDENCIES]=[{id:r,index:i}],e[sy.DI_TARGET]=e)}function y0(r){if(sy.serviceIds.has(r))return sy.serviceIds.get(r);const e=function(i,n,a){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");w4i(e,i,a)};return e.toString=()=>r,sy.serviceIds.set(r,e),e}const Tl=y0("codeEditorService");function zne(r,e){if(!r)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function x6e(r,e="Unreachable"){throw new Error(e)}function $Ge(r){if(!r()){debugger;r(),ws(new OA("Assertion Failed"))}}function jvt(r,e){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw AGe(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const i=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:i})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const i=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:i})}else this._match(126)?this._addToken(9):this._error(fIe("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(fIe("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(fIe("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const i=this._start,n=this._input.substring(this._start,this._current),a={type:19,offset:this._start,lexeme:n};this._errors.push({offset:i,lexeme:n,additionalInfo:e}),this._tokens.push(a)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const i=this._input.substring(this._start,this._current),n=nVe._keywords.get(i);n?this._addToken(n):this._tokens.push({type:17,lexeme:i,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(T4i);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,i=!1,n=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(L4i);return}const o=this._input.charCodeAt(e);if(i)i=!1;else if(o===47&&!n){e++;break}else o===91?n=!0:o===92?i=!0:o===93&&(n=!1);e++}for(;e=this._input.length}};DI._regexFlags=new Set(["i","g","s","m","y","u"].map(r=>r.charCodeAt(0)));DI._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const Wg=new Map;Wg.set("false",!1);Wg.set("true",!0);Wg.set("isMac",c0);Wg.set("isLinux",ug);Wg.set("isWindows",yp);Wg.set("isWeb",rN);Wg.set("isMacNative",c0&&!rN);Wg.set("isEdge",pfi);Wg.set("isFirefox",ffi);Wg.set("isChrome",evt);Wg.set("isSafari",mfi);const N4i=Object.prototype.hasOwnProperty,P4i={regexParsingWithErrorRecovery:!0},M4i=V("contextkey.parser.error.emptyString","Empty context key expression"),z4i=V("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),I4i=V("contextkey.parser.error.noInAfterNot","'in' after 'not'."),bgt=V("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),R4i=V("contextkey.parser.error.unexpectedToken","Unexpected token"),O4i=V("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),j4i=V("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),V4i=V("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let Vvt=class une{constructor(e=P4i){this._config=e,this._scanner=new DI,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:M4i,offset:0,lexeme:"",additionalInfo:z4i});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const i=this._expr();if(!this._isAtEnd()){const n=this._peek(),a=n.type===17?O4i:void 0;throw this._parsingErrors.push({message:R4i,offset:n.offset,lexeme:DI.getLexeme(n),additionalInfo:a}),une._parseError}return i}catch(i){if(i!==une._parseError)throw i;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const i=this._and();e.push(i)}return e.length===1?e[0]:pu.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const i=this._term();e.push(i)}return e.length===1?e[0]:pu.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),z_.INSTANCE;case 12:return this._advance(),V3.INSTANCE;case 0:{this._advance();const i=this._expr();return this._consume(1,bgt),i==null?void 0:i.negate()}case 17:return this._advance(),GR.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),pu.true();case 12:return this._advance(),pu.false();case 0:{this._advance();const i=this._expr();return this._consume(1,bgt),i}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const a=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),a.type!==10)throw this._errExpectedButGot("REGEX",a);const o=a.lexeme,c=o.lastIndexOf("/"),h=c===o.length-1?void 0:this._removeFlagsGY(o.substring(c+1));let g;try{g=new RegExp(o.substring(1,c),h)}catch{throw this._errExpectedButGot("REGEX",a)}return Nue.create(i,g)}switch(a.type){case 10:case 19:{const o=[a.lexeme];this._advance();let c=this._peek(),h=0;for(let S=0;S=0){const _=o.slice(h+1,g),x=o[g+1]==="i"?"i":"";try{c=new RegExp(_,x)}catch{throw this._errExpectedButGot("REGEX",a)}}}if(c===null)throw this._errExpectedButGot("REGEX",a);return Nue.create(i,c)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,I4i);const a=this._value();return pu.notIn(i,a)}switch(this._peek().type){case 3:{this._advance();const a=this._value();if(this._previous().type===18)return pu.equals(i,a);switch(a){case"true":return pu.has(i);case"false":return pu.not(i);default:return pu.equals(i,a)}}case 4:{this._advance();const a=this._value();if(this._previous().type===18)return pu.notEquals(i,a);switch(a){case"true":return pu.not(i);case"false":return pu.has(i);default:return pu.notEquals(i,a)}}case 5:return this._advance(),S6e.create(i,this._value());case 6:return this._advance(),B6e.create(i,this._value());case 7:return this._advance(),F6e.create(i,this._value());case 8:return this._advance(),A6e.create(i,this._value());case 13:return this._advance(),pu.in(i,this._value());default:return pu.has(i)}}case 20:throw this._parsingErrors.push({message:j4i,offset:e.offset,lexeme:"",additionalInfo:V4i}),une._parseError;default:throw this._errExpectedButGot(`true | false | KEY +`))}}class PEi{constructor(e,i,n){this.callback=e,this.callbackThis=i,this.stack=n,this.subscription=new BEi}invoke(e){this.callback.call(this.callbackThis,e)}}let Fi=class{constructor(e){var i,n,a,o,c;this._disposed=!1,this._options=e,this._leakageMon=!((i=this._options)===null||i===void 0)&&i.leakWarningThreshold?new NEi((a=(n=this._options)===null||n===void 0?void 0:n.leakWarningThreshold)!==null&&a!==void 0?a:LEi):void 0,this._perfMon=!((o=this._options)===null||o===void 0)&&o._profName?new NJ(this._options._profName):void 0,this._deliveryQueue=(c=this._options)===null||c===void 0?void 0:c.deliveryQueue}dispose(){var e,i,n,a;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(n=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||n===void 0||n.call(i),(a=this._leakageMon)===null||a===void 0||a.dispose())}get event(){return this._event||(this._event=(e,i,n)=>{var a,o,c;if(this._listeners||(this._listeners=new ug),this._leakageMon&&this._listeners.size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),ln.None;const h=this._listeners.isEmpty();h&&(!((a=this._options)===null||a===void 0)&&a.onWillAddFirstListener)&&this._options.onWillAddFirstListener(this);let g,_;this._leakageMon&&this._listeners.size>=Math.ceil(this._leakageMon.threshold*.2)&&(_=tJe.create(),g=this._leakageMon.check(_,this._listeners.size+1));const x=new PEi(e,i,_),y=this._listeners.push(x);h&&(!((o=this._options)===null||o===void 0)&&o.onDidAddFirstListener)&&this._options.onDidAddFirstListener(this),!((c=this._options)===null||c===void 0)&&c.onDidAddListener&&this._options.onDidAddListener(this,e,i);const S=x.subscription.set(()=>{var L,O;g==null||g(),this._disposed||((O=(L=this._options)===null||L===void 0?void 0:L.onWillRemoveListener)===null||O===void 0||O.call(L,this),y(),this._options&&this._options.onDidRemoveLastListener&&(this._listeners&&!this._listeners.isEmpty()||this._options.onDidRemoveLastListener(this)))});return n instanceof cu?n.add(S):Array.isArray(n)&&n.push(S),S}),this._event}fire(e){var i,n,a;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new MEi((i=this._options)===null||i===void 0?void 0:i.onListenerError));for(const o of this._listeners)this._deliveryQueue.push(this,o,e);(n=this._perfMon)===null||n===void 0||n.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(a=this._perfMon)===null||a===void 0||a.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}};class lCt{constructor(e=Ls){this._onListenerError=e,this._queue=new ug}get size(){return this._queue.size}push(e,i,n){this._queue.push(new zEi(e,i,n))}clear(e){const i=new ug;for(const n of this._queue)n.emitter!==e&&i.push(n);this._queue=i}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(i){this._onListenerError(i)}}}}class MEi extends lCt{clear(e){this._queue.clear()}}class zEi{constructor(e,i,n){this.emitter=e,this.listener=i,this.event=n}}class PJ extends Fi{constructor(e){super(e),this._isPaused=0,this._eventQueue=new ug,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class cCt extends PJ{constructor(e){var i;super(e),this._delay=(i=e.delay)!==null&&i!==void 0?i:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class IEi extends Fi{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(i=>super.fire(i)),this._queuedEvents=[]}))}}class REi{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new Fi({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const i={event:e,listener:null};return this.events.push(i),this.hasListeners&&this.hook(i),Ts(wA(()=>{this.hasListeners&&this.unhook(i);const a=this.events.indexOf(i);this.events.splice(a,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(i=>this.emitter.fire(i))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}class iJe{constructor(){this.buffers=[]}wrapEvent(e){return(i,n,a)=>e(o=>{const c=this.buffers[this.buffers.length-1];c?c.push(()=>i.call(n,o)):i.call(n,o)},void 0,a)}bufferEvents(e){const i=[];this.buffers.push(i);const n=e();return this.buffers.pop(),i.forEach(a=>a()),n}}class ygt{constructor(){this.listening=!1,this.inputEvent=Ia.None,this.inputEventListener=ln.None,this.emitter=new Fi({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const dCt=Object.freeze(function(r,e){const i=setTimeout(r.bind(e),0);return{dispose(){clearTimeout(i)}}});var E0;(function(r){function e(i){return i===r.None||i===r.Cancelled||i instanceof tDe?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}r.isCancellationToken=e,r.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ia.None}),r.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:dCt})})(E0||(E0={}));class tDe{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?dCt:(this._emitter||(this._emitter=new Fi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let Ap=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new tDe),this._token}cancel(){this._token?this._token instanceof tDe&&this._token.cancel():this._token=E0.Cancelled}dispose(e=!1){var i;e&&this.cancel(),(i=this._parentListener)===null||i===void 0||i.dispose(),this._token?this._token instanceof tDe&&this._token.dispose():this._token=E0.None}};class nJe{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,i){this._keyCodeToStr[e]=i,this._strToKeyCode[i.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const iDe=new nJe,gje=new nJe,Eje=new nJe,hCt=new Array(230),OEi=Object.create(null),jEi=Object.create(null),uJe=[];for(let r=0;r<=193;r++)uJe[r]=-1;(function(){const r="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",r,r],[0,1,1,"Hyper",0,r,0,r,r,r],[0,1,2,"Super",0,r,0,r,r,r],[0,1,3,"Fn",0,r,0,r,r,r],[0,1,4,"FnLock",0,r,0,r,r,r],[0,1,5,"Suspend",0,r,0,r,r,r],[0,1,6,"Resume",0,r,0,r,r,r],[0,1,7,"Turbo",0,r,0,r,r,r],[0,1,8,"Sleep",0,r,0,"VK_SLEEP",r,r],[0,1,9,"WakeUp",0,r,0,r,r,r],[31,0,10,"KeyA",31,"A",65,"VK_A",r,r],[32,0,11,"KeyB",32,"B",66,"VK_B",r,r],[33,0,12,"KeyC",33,"C",67,"VK_C",r,r],[34,0,13,"KeyD",34,"D",68,"VK_D",r,r],[35,0,14,"KeyE",35,"E",69,"VK_E",r,r],[36,0,15,"KeyF",36,"F",70,"VK_F",r,r],[37,0,16,"KeyG",37,"G",71,"VK_G",r,r],[38,0,17,"KeyH",38,"H",72,"VK_H",r,r],[39,0,18,"KeyI",39,"I",73,"VK_I",r,r],[40,0,19,"KeyJ",40,"J",74,"VK_J",r,r],[41,0,20,"KeyK",41,"K",75,"VK_K",r,r],[42,0,21,"KeyL",42,"L",76,"VK_L",r,r],[43,0,22,"KeyM",43,"M",77,"VK_M",r,r],[44,0,23,"KeyN",44,"N",78,"VK_N",r,r],[45,0,24,"KeyO",45,"O",79,"VK_O",r,r],[46,0,25,"KeyP",46,"P",80,"VK_P",r,r],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",r,r],[48,0,27,"KeyR",48,"R",82,"VK_R",r,r],[49,0,28,"KeyS",49,"S",83,"VK_S",r,r],[50,0,29,"KeyT",50,"T",84,"VK_T",r,r],[51,0,30,"KeyU",51,"U",85,"VK_U",r,r],[52,0,31,"KeyV",52,"V",86,"VK_V",r,r],[53,0,32,"KeyW",53,"W",87,"VK_W",r,r],[54,0,33,"KeyX",54,"X",88,"VK_X",r,r],[55,0,34,"KeyY",55,"Y",89,"VK_Y",r,r],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",r,r],[22,0,36,"Digit1",22,"1",49,"VK_1",r,r],[23,0,37,"Digit2",23,"2",50,"VK_2",r,r],[24,0,38,"Digit3",24,"3",51,"VK_3",r,r],[25,0,39,"Digit4",25,"4",52,"VK_4",r,r],[26,0,40,"Digit5",26,"5",53,"VK_5",r,r],[27,0,41,"Digit6",27,"6",54,"VK_6",r,r],[28,0,42,"Digit7",28,"7",55,"VK_7",r,r],[29,0,43,"Digit8",29,"8",56,"VK_8",r,r],[30,0,44,"Digit9",30,"9",57,"VK_9",r,r],[21,0,45,"Digit0",21,"0",48,"VK_0",r,r],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",r,r],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",r,r],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",r,r],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",r,r],[10,1,50,"Space",10,"Space",32,"VK_SPACE",r,r],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,r,0,r,r,r],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",r,r],[59,1,64,"F1",59,"F1",112,"VK_F1",r,r],[60,1,65,"F2",60,"F2",113,"VK_F2",r,r],[61,1,66,"F3",61,"F3",114,"VK_F3",r,r],[62,1,67,"F4",62,"F4",115,"VK_F4",r,r],[63,1,68,"F5",63,"F5",116,"VK_F5",r,r],[64,1,69,"F6",64,"F6",117,"VK_F6",r,r],[65,1,70,"F7",65,"F7",118,"VK_F7",r,r],[66,1,71,"F8",66,"F8",119,"VK_F8",r,r],[67,1,72,"F9",67,"F9",120,"VK_F9",r,r],[68,1,73,"F10",68,"F10",121,"VK_F10",r,r],[69,1,74,"F11",69,"F11",122,"VK_F11",r,r],[70,1,75,"F12",70,"F12",123,"VK_F12",r,r],[0,1,76,"PrintScreen",0,r,0,r,r,r],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",r,r],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",r,r],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",r,r],[14,1,80,"Home",14,"Home",36,"VK_HOME",r,r],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",r,r],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",r,r],[13,1,83,"End",13,"End",35,"VK_END",r,r],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",r,r],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",r],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",r],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",r],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",r],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",r,r],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",r,r],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",r,r],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",r,r],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",r,r],[3,1,94,"NumpadEnter",3,r,0,r,r,r],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",r,r],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",r,r],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",r,r],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",r,r],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",r,r],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",r,r],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",r,r],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",r,r],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",r,r],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",r,r],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",r,r],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",r,r],[58,1,107,"ContextMenu",58,"ContextMenu",93,r,r,r],[0,1,108,"Power",0,r,0,r,r,r],[0,1,109,"NumpadEqual",0,r,0,r,r,r],[71,1,110,"F13",71,"F13",124,"VK_F13",r,r],[72,1,111,"F14",72,"F14",125,"VK_F14",r,r],[73,1,112,"F15",73,"F15",126,"VK_F15",r,r],[74,1,113,"F16",74,"F16",127,"VK_F16",r,r],[75,1,114,"F17",75,"F17",128,"VK_F17",r,r],[76,1,115,"F18",76,"F18",129,"VK_F18",r,r],[77,1,116,"F19",77,"F19",130,"VK_F19",r,r],[0,1,117,"F20",0,r,0,"VK_F20",r,r],[0,1,118,"F21",0,r,0,"VK_F21",r,r],[0,1,119,"F22",0,r,0,"VK_F22",r,r],[0,1,120,"F23",0,r,0,"VK_F23",r,r],[0,1,121,"F24",0,r,0,"VK_F24",r,r],[0,1,122,"Open",0,r,0,r,r,r],[0,1,123,"Help",0,r,0,r,r,r],[0,1,124,"Select",0,r,0,r,r,r],[0,1,125,"Again",0,r,0,r,r,r],[0,1,126,"Undo",0,r,0,r,r,r],[0,1,127,"Cut",0,r,0,r,r,r],[0,1,128,"Copy",0,r,0,r,r,r],[0,1,129,"Paste",0,r,0,r,r,r],[0,1,130,"Find",0,r,0,r,r,r],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",r,r],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",r,r],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",r,r],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",r,r],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",r,r],[0,1,136,"KanaMode",0,r,0,r,r,r],[0,0,137,"IntlYen",0,r,0,r,r,r],[0,1,138,"Convert",0,r,0,r,r,r],[0,1,139,"NonConvert",0,r,0,r,r,r],[0,1,140,"Lang1",0,r,0,r,r,r],[0,1,141,"Lang2",0,r,0,r,r,r],[0,1,142,"Lang3",0,r,0,r,r,r],[0,1,143,"Lang4",0,r,0,r,r,r],[0,1,144,"Lang5",0,r,0,r,r,r],[0,1,145,"Abort",0,r,0,r,r,r],[0,1,146,"Props",0,r,0,r,r,r],[0,1,147,"NumpadParenLeft",0,r,0,r,r,r],[0,1,148,"NumpadParenRight",0,r,0,r,r,r],[0,1,149,"NumpadBackspace",0,r,0,r,r,r],[0,1,150,"NumpadMemoryStore",0,r,0,r,r,r],[0,1,151,"NumpadMemoryRecall",0,r,0,r,r,r],[0,1,152,"NumpadMemoryClear",0,r,0,r,r,r],[0,1,153,"NumpadMemoryAdd",0,r,0,r,r,r],[0,1,154,"NumpadMemorySubtract",0,r,0,r,r,r],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",r,r],[0,1,156,"NumpadClearEntry",0,r,0,r,r,r],[5,1,0,r,5,"Ctrl",17,"VK_CONTROL",r,r],[4,1,0,r,4,"Shift",16,"VK_SHIFT",r,r],[6,1,0,r,6,"Alt",18,"VK_MENU",r,r],[57,1,0,r,57,"Meta",91,"VK_COMMAND",r,r],[5,1,157,"ControlLeft",5,r,0,"VK_LCONTROL",r,r],[4,1,158,"ShiftLeft",4,r,0,"VK_LSHIFT",r,r],[6,1,159,"AltLeft",6,r,0,"VK_LMENU",r,r],[57,1,160,"MetaLeft",57,r,0,"VK_LWIN",r,r],[5,1,161,"ControlRight",5,r,0,"VK_RCONTROL",r,r],[4,1,162,"ShiftRight",4,r,0,"VK_RSHIFT",r,r],[6,1,163,"AltRight",6,r,0,"VK_RMENU",r,r],[57,1,164,"MetaRight",57,r,0,"VK_RWIN",r,r],[0,1,165,"BrightnessUp",0,r,0,r,r,r],[0,1,166,"BrightnessDown",0,r,0,r,r,r],[0,1,167,"MediaPlay",0,r,0,r,r,r],[0,1,168,"MediaRecord",0,r,0,r,r,r],[0,1,169,"MediaFastForward",0,r,0,r,r,r],[0,1,170,"MediaRewind",0,r,0,r,r,r],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",r,r],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",r,r],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",r,r],[0,1,174,"Eject",0,r,0,r,r,r],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",r,r],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",r,r],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",r,r],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",r,r],[0,1,179,"LaunchApp1",0,r,0,"VK_MEDIA_LAUNCH_APP1",r,r],[0,1,180,"SelectTask",0,r,0,r,r,r],[0,1,181,"LaunchScreenSaver",0,r,0,r,r,r],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",r,r],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",r,r],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",r,r],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",r,r],[0,1,186,"BrowserStop",0,r,0,"VK_BROWSER_STOP",r,r],[0,1,187,"BrowserRefresh",0,r,0,"VK_BROWSER_REFRESH",r,r],[0,1,188,"BrowserFavorites",0,r,0,"VK_BROWSER_FAVORITES",r,r],[0,1,189,"ZoomToggle",0,r,0,r,r,r],[0,1,190,"MailReply",0,r,0,r,r,r],[0,1,191,"MailForward",0,r,0,r,r,r],[0,1,192,"MailSend",0,r,0,r,r,r],[109,1,0,r,109,"KeyInComposition",229,r,r,r],[111,1,0,r,111,"ABNT_C2",194,"VK_ABNT_C2",r,r],[91,1,0,r,91,"OEM_8",223,"VK_OEM_8",r,r],[0,1,0,r,0,r,0,"VK_KANA",r,r],[0,1,0,r,0,r,0,"VK_HANGUL",r,r],[0,1,0,r,0,r,0,"VK_JUNJA",r,r],[0,1,0,r,0,r,0,"VK_FINAL",r,r],[0,1,0,r,0,r,0,"VK_HANJA",r,r],[0,1,0,r,0,r,0,"VK_KANJI",r,r],[0,1,0,r,0,r,0,"VK_CONVERT",r,r],[0,1,0,r,0,r,0,"VK_NONCONVERT",r,r],[0,1,0,r,0,r,0,"VK_ACCEPT",r,r],[0,1,0,r,0,r,0,"VK_MODECHANGE",r,r],[0,1,0,r,0,r,0,"VK_SELECT",r,r],[0,1,0,r,0,r,0,"VK_PRINT",r,r],[0,1,0,r,0,r,0,"VK_EXECUTE",r,r],[0,1,0,r,0,r,0,"VK_SNAPSHOT",r,r],[0,1,0,r,0,r,0,"VK_HELP",r,r],[0,1,0,r,0,r,0,"VK_APPS",r,r],[0,1,0,r,0,r,0,"VK_PROCESSKEY",r,r],[0,1,0,r,0,r,0,"VK_PACKET",r,r],[0,1,0,r,0,r,0,"VK_DBE_SBCSCHAR",r,r],[0,1,0,r,0,r,0,"VK_DBE_DBCSCHAR",r,r],[0,1,0,r,0,r,0,"VK_ATTN",r,r],[0,1,0,r,0,r,0,"VK_CRSEL",r,r],[0,1,0,r,0,r,0,"VK_EXSEL",r,r],[0,1,0,r,0,r,0,"VK_EREOF",r,r],[0,1,0,r,0,r,0,"VK_PLAY",r,r],[0,1,0,r,0,r,0,"VK_ZOOM",r,r],[0,1,0,r,0,r,0,"VK_NONAME",r,r],[0,1,0,r,0,r,0,"VK_PA1",r,r],[0,1,0,r,0,r,0,"VK_OEM_CLEAR",r,r]],i=[],n=[];for(const a of e){const[o,c,h,g,_,x,y,S,L,O]=a;if(n[h]||(n[h]=!0,OEi[g]=h,jEi[g.toLowerCase()]=h,c&&(uJe[h]=_)),!i[_]){if(i[_]=!0,!x)throw new Error(`String representation missing for key code ${_} around scan code ${g}`);iDe.define(_,x),gje.define(_,L||x),Eje.define(_,O||L||x)}y&&(hCt[y]=_)}})();var AS;(function(r){function e(h){return iDe.keyCodeToStr(h)}r.toString=e;function i(h){return iDe.strToKeyCode(h)}r.fromString=i;function n(h){return gje.keyCodeToStr(h)}r.toUserSettingsUS=n;function a(h){return Eje.keyCodeToStr(h)}r.toUserSettingsGeneral=a;function o(h){return gje.strToKeyCode(h)||Eje.strToKeyCode(h)}r.fromUserSettings=o;function c(h){if(h>=93&&h<=108)return null;switch(h){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return iDe.keyCodeToStr(h)}r.toElectronAccelerator=c})(AS||(AS={}));function Am(r,e){const i=(e&65535)<<16>>>0;return(r|i)>>>0}var kgt={};let nJ;if(typeof VD.vscode<"u"&&typeof VD.vscode.process<"u"){const r=VD.vscode.process;nJ={get platform(){return r.platform},get arch(){return r.arch},get env(){return r.env},cwd(){return r.cwd()}}}else typeof process<"u"?nJ={get platform(){return process.platform},get arch(){return process.arch},get env(){return kgt},cwd(){return kgt.VSCODE_CWD||process.cwd()}}:nJ={get platform(){return Fp?"win32":d0?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const a5e=nJ.cwd,VEi=nJ.env,HEi=nJ.platform,KEi=65,WEi=97,GEi=90,JEi=122,xL=46,PE=47,q5=92,bT=58,$Ei=63;class fCt extends Error{constructor(e,i,n){let a;typeof i=="string"&&i.indexOf("not ")===0?(a="must not be",i=i.replace(/^not /,"")):a="must be";const o=e.indexOf(".")!==-1?"property":"argument";let c=`The "${e}" ${o} ${a} of type ${i}`;c+=`. Received type ${typeof n}`,super(c),this.code="ERR_INVALID_ARG_TYPE"}}function UEi(r,e){if(r===null||typeof r!="object")throw new fCt(e,"Object",r)}function T4(r,e){if(typeof r!="string")throw new fCt(e,"string",r)}const sN=HEi==="win32";function mc(r){return r===PE||r===q5}function _je(r){return r===PE}function yT(r){return r>=KEi&&r<=GEi||r>=WEi&&r<=JEi}function o5e(r,e,i,n){let a="",o=0,c=-1,h=0,g=0;for(let _=0;_<=r.length;++_){if(_2){const x=a.lastIndexOf(i);x===-1?(a="",o=0):(a=a.slice(0,x),o=a.length-1-a.lastIndexOf(i)),c=_,h=0;continue}else if(a.length!==0){a="",o=0,c=_,h=0;continue}}e&&(a+=a.length>0?`${i}..`:"..",o=2)}else a.length>0?a+=`${i}${r.slice(c+1,_)}`:a=r.slice(c+1,_),o=_-c-1;c=_,h=0}else g===xL&&h!==-1?++h:h=-1}return a}function mCt(r,e){UEi(e,"pathObject");const i=e.dir||e.root,n=e.base||`${e.name||""}${e.ext||""}`;return i?i===e.root?`${i}${n}`:`${i}${r}${n}`:n}const OD={resolve(...r){let e="",i="",n=!1;for(let a=r.length-1;a>=-1;a--){let o;if(a>=0){if(o=r[a],T4(o,"path"),o.length===0)continue}else e.length===0?o=a5e():(o=VEi[`=${e}`]||a5e(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===q5)&&(o=`${e}\\`));const c=o.length;let h=0,g="",_=!1;const x=o.charCodeAt(0);if(c===1)mc(x)&&(h=1,_=!0);else if(mc(x))if(_=!0,mc(o.charCodeAt(1))){let y=2,S=y;for(;y2&&mc(o.charCodeAt(2))&&(_=!0,h=3));if(g.length>0)if(e.length>0){if(g.toLowerCase()!==e.toLowerCase())continue}else e=g;if(n){if(e.length>0)break}else if(i=`${o.slice(h)}\\${i}`,n=_,_&&e.length>0)break}return i=o5e(i,!n,"\\",mc),n?`${e}\\${i}`:`${e}${i}`||"."},normalize(r){T4(r,"path");const e=r.length;if(e===0)return".";let i=0,n,a=!1;const o=r.charCodeAt(0);if(e===1)return _je(o)?"\\":r;if(mc(o))if(a=!0,mc(r.charCodeAt(1))){let h=2,g=h;for(;h2&&mc(r.charCodeAt(2))&&(a=!0,i=3));let c=i0&&mc(r.charCodeAt(e-1))&&(c+="\\"),n===void 0?a?`\\${c}`:c:a?`${n}\\${c}`:`${n}${c}`},isAbsolute(r){T4(r,"path");const e=r.length;if(e===0)return!1;const i=r.charCodeAt(0);return mc(i)||e>2&&yT(i)&&r.charCodeAt(1)===bT&&mc(r.charCodeAt(2))},join(...r){if(r.length===0)return".";let e,i;for(let o=0;o0&&(e===void 0?e=i=c:e+=`\\${c}`)}if(e===void 0)return".";let n=!0,a=0;if(typeof i=="string"&&mc(i.charCodeAt(0))){++a;const o=i.length;o>1&&mc(i.charCodeAt(1))&&(++a,o>2&&(mc(i.charCodeAt(2))?++a:n=!1))}if(n){for(;a=2&&(e=`\\${e.slice(a)}`)}return OD.normalize(e)},relative(r,e){if(T4(r,"from"),T4(e,"to"),r===e)return"";const i=OD.resolve(r),n=OD.resolve(e);if(i===n||(r=i.toLowerCase(),e=n.toLowerCase(),r===e))return"";let a=0;for(;aa&&r.charCodeAt(o-1)===q5;)o--;const c=o-a;let h=0;for(;hh&&e.charCodeAt(g-1)===q5;)g--;const _=g-h,x=c<_?c:_;let y=-1,S=0;for(;Sx){if(e.charCodeAt(h+S)===q5)return n.slice(h+S+1);if(S===2)return n.slice(h+S)}c>x&&(r.charCodeAt(a+S)===q5?y=S:S===2&&(y=3)),y===-1&&(y=0)}let L="";for(S=a+y+1;S<=o;++S)(S===o||r.charCodeAt(S)===q5)&&(L+=L.length===0?"..":"\\..");return h+=y,L.length>0?`${L}${n.slice(h,g)}`:(n.charCodeAt(h)===q5&&++h,n.slice(h,g))},toNamespacedPath(r){if(typeof r!="string"||r.length===0)return r;const e=OD.resolve(r);if(e.length<=2)return r;if(e.charCodeAt(0)===q5){if(e.charCodeAt(1)===q5){const i=e.charCodeAt(2);if(i!==$Ei&&i!==xL)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(yT(e.charCodeAt(0))&&e.charCodeAt(1)===bT&&e.charCodeAt(2)===q5)return`\\\\?\\${e}`;return r},dirname(r){T4(r,"path");const e=r.length;if(e===0)return".";let i=-1,n=0;const a=r.charCodeAt(0);if(e===1)return mc(a)?r:".";if(mc(a)){if(i=n=1,mc(r.charCodeAt(1))){let h=2,g=h;for(;h2&&mc(r.charCodeAt(2))?3:2,n=i);let o=-1,c=!0;for(let h=e-1;h>=n;--h)if(mc(r.charCodeAt(h))){if(!c){o=h;break}}else c=!1;if(o===-1){if(i===-1)return".";o=i}return r.slice(0,o)},basename(r,e){e!==void 0&&T4(e,"ext"),T4(r,"path");let i=0,n=-1,a=!0,o;if(r.length>=2&&yT(r.charCodeAt(0))&&r.charCodeAt(1)===bT&&(i=2),e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let c=e.length-1,h=-1;for(o=r.length-1;o>=i;--o){const g=r.charCodeAt(o);if(mc(g)){if(!a){i=o+1;break}}else h===-1&&(a=!1,h=o+1),c>=0&&(g===e.charCodeAt(c)?--c===-1&&(n=o):(c=-1,n=h))}return i===n?n=h:n===-1&&(n=r.length),r.slice(i,n)}for(o=r.length-1;o>=i;--o)if(mc(r.charCodeAt(o))){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":r.slice(i,n)},extname(r){T4(r,"path");let e=0,i=-1,n=0,a=-1,o=!0,c=0;r.length>=2&&r.charCodeAt(1)===bT&&yT(r.charCodeAt(0))&&(e=n=2);for(let h=r.length-1;h>=e;--h){const g=r.charCodeAt(h);if(mc(g)){if(!o){n=h+1;break}continue}a===-1&&(o=!1,a=h+1),g===xL?i===-1?i=h:c!==1&&(c=1):i!==-1&&(c=-1)}return i===-1||a===-1||c===0||c===1&&i===a-1&&i===n+1?"":r.slice(i,a)},format:mCt.bind(null,"\\"),parse(r){T4(r,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;const i=r.length;let n=0,a=r.charCodeAt(0);if(i===1)return mc(a)?(e.root=e.dir=r,e):(e.base=e.name=r,e);if(mc(a)){if(n=1,mc(r.charCodeAt(1))){let y=2,S=y;for(;y0&&(e.root=r.slice(0,n));let o=-1,c=n,h=-1,g=!0,_=r.length-1,x=0;for(;_>=n;--_){if(a=r.charCodeAt(_),mc(a)){if(!g){c=_+1;break}continue}h===-1&&(g=!1,h=_+1),a===xL?o===-1?o=_:x!==1&&(x=1):o!==-1&&(x=-1)}return h!==-1&&(o===-1||x===0||x===1&&o===h-1&&o===c+1?e.base=e.name=r.slice(c,h):(e.name=r.slice(c,o),e.base=r.slice(c,h),e.ext=r.slice(o,h))),c>0&&c!==n?e.dir=r.slice(0,c-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},qEi=(()=>{if(sN){const r=/\\/g;return()=>{const e=a5e().replace(r,"/");return e.slice(e.indexOf("/"))}}return()=>a5e()})(),nm={resolve(...r){let e="",i=!1;for(let n=r.length-1;n>=-1&&!i;n--){const a=n>=0?r[n]:qEi();T4(a,"path"),a.length!==0&&(e=`${a}/${e}`,i=a.charCodeAt(0)===PE)}return e=o5e(e,!i,"/",_je),i?`/${e}`:e.length>0?e:"."},normalize(r){if(T4(r,"path"),r.length===0)return".";const e=r.charCodeAt(0)===PE,i=r.charCodeAt(r.length-1)===PE;return r=o5e(r,!e,"/",_je),r.length===0?e?"/":i?"./":".":(i&&(r+="/"),e?`/${r}`:r)},isAbsolute(r){return T4(r,"path"),r.length>0&&r.charCodeAt(0)===PE},join(...r){if(r.length===0)return".";let e;for(let i=0;i0&&(e===void 0?e=n:e+=`/${n}`)}return e===void 0?".":nm.normalize(e)},relative(r,e){if(T4(r,"from"),T4(e,"to"),r===e||(r=nm.resolve(r),e=nm.resolve(e),r===e))return"";const i=1,n=r.length,a=n-i,o=1,c=e.length-o,h=ah){if(e.charCodeAt(o+_)===PE)return e.slice(o+_+1);if(_===0)return e.slice(o+_)}else a>h&&(r.charCodeAt(i+_)===PE?g=_:_===0&&(g=0));let x="";for(_=i+g+1;_<=n;++_)(_===n||r.charCodeAt(_)===PE)&&(x+=x.length===0?"..":"/..");return`${x}${e.slice(o+g)}`},toNamespacedPath(r){return r},dirname(r){if(T4(r,"path"),r.length===0)return".";const e=r.charCodeAt(0)===PE;let i=-1,n=!0;for(let a=r.length-1;a>=1;--a)if(r.charCodeAt(a)===PE){if(!n){i=a;break}}else n=!1;return i===-1?e?"/":".":e&&i===1?"//":r.slice(0,i)},basename(r,e){e!==void 0&&T4(e,"ext"),T4(r,"path");let i=0,n=-1,a=!0,o;if(e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let c=e.length-1,h=-1;for(o=r.length-1;o>=0;--o){const g=r.charCodeAt(o);if(g===PE){if(!a){i=o+1;break}}else h===-1&&(a=!1,h=o+1),c>=0&&(g===e.charCodeAt(c)?--c===-1&&(n=o):(c=-1,n=h))}return i===n?n=h:n===-1&&(n=r.length),r.slice(i,n)}for(o=r.length-1;o>=0;--o)if(r.charCodeAt(o)===PE){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":r.slice(i,n)},extname(r){T4(r,"path");let e=-1,i=0,n=-1,a=!0,o=0;for(let c=r.length-1;c>=0;--c){const h=r.charCodeAt(c);if(h===PE){if(!a){i=c+1;break}continue}n===-1&&(a=!1,n=c+1),h===xL?e===-1?e=c:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||n===-1||o===0||o===1&&e===n-1&&e===i+1?"":r.slice(e,n)},format:mCt.bind(null,"/"),parse(r){T4(r,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;const i=r.charCodeAt(0)===PE;let n;i?(e.root="/",n=1):n=0;let a=-1,o=0,c=-1,h=!0,g=r.length-1,_=0;for(;g>=n;--g){const x=r.charCodeAt(g);if(x===PE){if(!h){o=g+1;break}continue}c===-1&&(h=!1,c=g+1),x===xL?a===-1?a=g:_!==1&&(_=1):a!==-1&&(_=-1)}if(c!==-1){const x=o===0&&i?1:o;a===-1||_===0||_===1&&a===c-1&&a===o+1?e.base=e.name=r.slice(x,c):(e.name=r.slice(x,a),e.base=r.slice(x,c),e.ext=r.slice(a,c))}return o>0?e.dir=r.slice(0,o-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};nm.win32=OD.win32=OD;nm.posix=OD.posix=nm;const pCt=sN?OD.normalize:nm.normalize,ZEi=sN?OD.resolve:nm.resolve,YEi=sN?OD.relative:nm.relative,gCt=sN?OD.dirname:nm.dirname,vL=sN?OD.basename:nm.basename,QEi=sN?OD.extname:nm.extname,xy=sN?OD.sep:nm.sep,XEi=/^\w[\w\d+.-]*$/,e_i=/^\//,t_i=/^\/\//;function Fgt(r,e){if(!r.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${r.authority}", path: "${r.path}", query: "${r.query}", fragment: "${r.fragment}"}`);if(r.scheme&&!XEi.test(r.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(r.path){if(r.authority){if(!e_i.test(r.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(t_i.test(r.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function i_i(r,e){return!r&&!e?"file":r}function n_i(r,e){switch(r){case"https":case"http":case"file":e?e[0]!==iy&&(e=iy+e):e=iy;break}return e}const mf="",iy="/",u_i=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class no{static isUri(e){return e instanceof no?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,i,n,a,o,c=!1){typeof e=="object"?(this.scheme=e.scheme||mf,this.authority=e.authority||mf,this.path=e.path||mf,this.query=e.query||mf,this.fragment=e.fragment||mf):(this.scheme=i_i(e,c),this.authority=i||mf,this.path=n_i(this.scheme,n||mf),this.query=a||mf,this.fragment=o||mf,Fgt(this,c))}get fsPath(){return s5e(this,!1)}with(e){if(!e)return this;let{scheme:i,authority:n,path:a,query:o,fragment:c}=e;return i===void 0?i=this.scheme:i===null&&(i=mf),n===void 0?n=this.authority:n===null&&(n=mf),a===void 0?a=this.path:a===null&&(a=mf),o===void 0?o=this.query:o===null&&(o=mf),c===void 0?c=this.fragment:c===null&&(c=mf),i===this.scheme&&n===this.authority&&a===this.path&&o===this.query&&c===this.fragment?this:new GW(i,n,a,o,c)}static parse(e,i=!1){const n=u_i.exec(e);return n?new GW(n[2]||mf,A_e(n[4]||mf),A_e(n[5]||mf),A_e(n[7]||mf),A_e(n[9]||mf),i):new GW(mf,mf,mf,mf,mf)}static file(e){let i=mf;if(Fp&&(e=e.replace(/\\/g,iy)),e[0]===iy&&e[1]===iy){const n=e.indexOf(iy,2);n===-1?(i=e.substring(2),e=iy):(i=e.substring(2,n),e=e.substring(n)||iy)}return new GW("file",i,e,mf,mf)}static from(e){const i=new GW(e.scheme,e.authority,e.path,e.query,e.fragment);return Fgt(i,!0),i}static joinPath(e,...i){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return Fp&&e.scheme==="file"?n=no.file(OD.join(s5e(e,!0),...i)).path:n=nm.join(e.path,...i),e.with({path:n})}toString(e=!1){return Dje(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof no)return e;{const i=new GW(e);return i._formatted=e.external,i._fsPath=e._sep===ECt?e.fsPath:null,i}}else return e}}const ECt=Fp?1:void 0;let GW=class extends no{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=s5e(this,!1)),this._fsPath}toString(e=!1){return e?Dje(this,!0):(this._formatted||(this._formatted=Dje(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=ECt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const _Ct={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Agt(r,e,i){let n,a=-1;for(let o=0;o=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||e&&c===47||i&&c===91||i&&c===93||i&&c===58)a!==-1&&(n+=encodeURIComponent(r.substring(a,o)),a=-1),n!==void 0&&(n+=r.charAt(o));else{n===void 0&&(n=r.substr(0,o));const h=_Ct[c];h!==void 0?(a!==-1&&(n+=encodeURIComponent(r.substring(a,o)),a=-1),n+=h):a===-1&&(a=o)}}return a!==-1&&(n+=encodeURIComponent(r.substring(a))),n!==void 0?n:r}function r_i(r){let e;for(let i=0;i1&&r.scheme==="file"?i=`//${r.authority}${r.path}`:r.path.charCodeAt(0)===47&&(r.path.charCodeAt(1)>=65&&r.path.charCodeAt(1)<=90||r.path.charCodeAt(1)>=97&&r.path.charCodeAt(1)<=122)&&r.path.charCodeAt(2)===58?e?i=r.path.substr(1):i=r.path[1].toLowerCase()+r.path.substr(2):i=r.path,Fp&&(i=i.replace(/\//g,"\\")),i}function Dje(r,e){const i=e?r_i:Agt;let n="",{scheme:a,authority:o,path:c,query:h,fragment:g}=r;if(a&&(n+=a,n+=":"),(o||a==="file")&&(n+=iy,n+=iy),o){let _=o.indexOf("@");if(_!==-1){const x=o.substr(0,_);o=o.substr(_+1),_=x.lastIndexOf(":"),_===-1?n+=i(x,!1,!1):(n+=i(x.substr(0,_),!1,!1),n+=":",n+=i(x.substr(_+1),!1,!0)),n+="@"}o=o.toLowerCase(),_=o.lastIndexOf(":"),_===-1?n+=i(o,!1,!0):(n+=i(o.substr(0,_),!1,!0),n+=o.substr(_))}if(c){if(c.length>=3&&c.charCodeAt(0)===47&&c.charCodeAt(2)===58){const _=c.charCodeAt(1);_>=65&&_<=90&&(c=`/${String.fromCharCode(_+32)}:${c.substr(3)}`)}else if(c.length>=2&&c.charCodeAt(1)===58){const _=c.charCodeAt(0);_>=65&&_<=90&&(c=`${String.fromCharCode(_+32)}:${c.substr(2)}`)}n+=i(c,!0,!1)}return h&&(n+="?",n+=i(h,!1,!1)),g&&(n+="#",n+=e?g:Agt(g,!1,!1)),n}function DCt(r){try{return decodeURIComponent(r)}catch{return r.length>3?r.substr(0,3)+DCt(r.substr(3)):r}}const Sgt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function A_e(r){return r.match(Sgt)?r.replace(Sgt,e=>DCt(e)):r}let Vi=class dI{constructor(e,i){this.lineNumber=e,this.column=i}with(e=this.lineNumber,i=this.column){return e===this.lineNumber&&i===this.column?this:new dI(e,i)}delta(e=0,i=0){return this.with(this.lineNumber+e,this.column+i)}equals(e){return dI.equals(this,e)}static equals(e,i){return!e&&!i?!0:!!e&&!!i&&e.lineNumber===i.lineNumber&&e.column===i.column}isBefore(e){return dI.isBefore(this,e)}static isBefore(e,i){return e.lineNumbern||e===n&&i>a?(this.startLineNumber=n,this.startColumn=a,this.endLineNumber=e,this.endColumn=i):(this.startLineNumber=e,this.startColumn=i,this.endLineNumber=n,this.endColumn=a)}isEmpty(){return pp.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return pp.containsPosition(this,e)}static containsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.columne.endColumn)}static strictContainsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.column<=e.startColumn||i.lineNumber===e.endLineNumber&&i.column>=e.endColumn)}containsRange(e){return pp.containsRange(this,e)}static containsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumne.endColumn)}strictContainsRange(e){return pp.strictContainsRange(this,e)}static strictContainsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumn<=e.startColumn||i.endLineNumber===e.endLineNumber&&i.endColumn>=e.endColumn)}plusRange(e){return pp.plusRange(this,e)}static plusRange(e,i){let n,a,o,c;return i.startLineNumbere.endLineNumber?(o=i.endLineNumber,c=i.endColumn):i.endLineNumber===e.endLineNumber?(o=i.endLineNumber,c=Math.max(i.endColumn,e.endColumn)):(o=e.endLineNumber,c=e.endColumn),new pp(n,a,o,c)}intersectRanges(e){return pp.intersectRanges(this,e)}static intersectRanges(e,i){let n=e.startLineNumber,a=e.startColumn,o=e.endLineNumber,c=e.endColumn;const h=i.startLineNumber,g=i.startColumn,_=i.endLineNumber,x=i.endColumn;return n_?(o=_,c=x):o===_&&(c=Math.min(c,x)),n>o||n===o&&a>c?null:new pp(n,a,o,c)}equalsRange(e){return pp.equalsRange(this,e)}static equalsRange(e,i){return!e&&!i?!0:!!e&&!!i&&e.startLineNumber===i.startLineNumber&&e.startColumn===i.startColumn&&e.endLineNumber===i.endLineNumber&&e.endColumn===i.endColumn}getEndPosition(){return pp.getEndPosition(this)}static getEndPosition(e){return new Vi(e.endLineNumber,e.endColumn)}getStartPosition(){return pp.getStartPosition(this)}static getStartPosition(e){return new Vi(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,i){return new pp(this.startLineNumber,this.startColumn,e,i)}setStartPosition(e,i){return new pp(e,i,this.endLineNumber,this.endColumn)}collapseToStart(){return pp.collapseToStart(this)}static collapseToStart(e){return new pp(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return pp.collapseToEnd(this)}static collapseToEnd(e){return new pp(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new pp(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,i=e){return new pp(e.lineNumber,e.column,i.lineNumber,i.column)}static lift(e){return e?new pp(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,i){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},ma=class OC extends ot{constructor(e,i,n,a){super(e,i,n,a),this.selectionStartLineNumber=e,this.selectionStartColumn=i,this.positionLineNumber=n,this.positionColumn=a}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return OC.selectionsEqual(this,e)}static selectionsEqual(e,i){return e.selectionStartLineNumber===i.selectionStartLineNumber&&e.selectionStartColumn===i.selectionStartColumn&&e.positionLineNumber===i.positionLineNumber&&e.positionColumn===i.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,i){return this.getDirection()===0?new OC(this.startLineNumber,this.startColumn,e,i):new OC(e,i,this.startLineNumber,this.startColumn)}getPosition(){return new Vi(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Vi(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,i){return this.getDirection()===0?new OC(e,i,this.endLineNumber,this.endColumn):new OC(this.endLineNumber,this.endColumn,e,i)}static fromPositions(e,i=e){return new OC(e.lineNumber,e.column,i.lineNumber,i.column)}static fromRange(e,i){return i===0?new OC(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new OC(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new OC(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,i){if(e&&!i||!e&&i)return!1;if(!e&&!i)return!0;if(e.length!==i.length)return!1;for(let n=0,a=e.length;n{this._tokenizationSupports.get(e)===i&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,i){var n;(n=this._factories.get(e))===null||n===void 0||n.dispose();const a=new o_i(this,e,i);return this._factories.set(e,a),Ts(()=>{const o=this._factories.get(e);!o||o!==a||(this._factories.delete(e),o.dispose())})}getOrCreate(e){return vje(this,void 0,void 0,function*(){const i=this.get(e);if(i)return i;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!!(!n||n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class o_i extends ln{get isResolved(){return this._isResolved}constructor(e,i,n){super(),this._registry=e,this._languageId=i,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return vje(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return vje(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}let zue=class{constructor(e,i,n){this.offset=e,this.type=i,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class rJe{constructor(e,i){this.tokens=e,this.endState=i,this._tokenizationResultBrand=void 0}}class T6e{constructor(e,i){this.tokens=e,this.endState=i,this._encodedTokenizationResultBrand=void 0}}var Iue;(function(r){const e=new Map;e.set(0,sr.symbolMethod),e.set(1,sr.symbolFunction),e.set(2,sr.symbolConstructor),e.set(3,sr.symbolField),e.set(4,sr.symbolVariable),e.set(5,sr.symbolClass),e.set(6,sr.symbolStruct),e.set(7,sr.symbolInterface),e.set(8,sr.symbolModule),e.set(9,sr.symbolProperty),e.set(10,sr.symbolEvent),e.set(11,sr.symbolOperator),e.set(12,sr.symbolUnit),e.set(13,sr.symbolValue),e.set(15,sr.symbolEnum),e.set(14,sr.symbolConstant),e.set(15,sr.symbolEnum),e.set(16,sr.symbolEnumMember),e.set(17,sr.symbolKeyword),e.set(27,sr.symbolSnippet),e.set(18,sr.symbolText),e.set(19,sr.symbolColor),e.set(20,sr.symbolFile),e.set(21,sr.symbolReference),e.set(22,sr.symbolCustomColor),e.set(23,sr.symbolFolder),e.set(24,sr.symbolTypeParameter),e.set(25,sr.account),e.set(26,sr.issues);function i(o){let c=e.get(o);return c||(console.info("No codicon found for CompletionItemKind "+o),c=sr.symbolProperty),c}r.toIcon=i;const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function a(o,c){let h=n.get(o);return typeof h>"u"&&!c&&(h=9),h}r.fromString=a})(Iue||(Iue={}));var ex;(function(r){r[r.Automatic=0]="Automatic",r[r.Explicit=1]="Explicit"})(ex||(ex={}));var xA;(function(r){r[r.Invoke=1]="Invoke",r[r.TriggerCharacter=2]="TriggerCharacter",r[r.ContentChange=3]="ContentChange"})(xA||(xA={}));var Rue;(function(r){r[r.Text=0]="Text",r[r.Read=1]="Read",r[r.Write=2]="Write"})(Rue||(Rue={}));function s_i(r){return r&&no.isUri(r.uri)&&ot.isIRange(r.range)&&(ot.isIRange(r.originSelectionRange)||ot.isIRange(r.targetSelectionRange))}var Cje;(function(r){const e=new Map;e.set(0,sr.symbolFile),e.set(1,sr.symbolModule),e.set(2,sr.symbolNamespace),e.set(3,sr.symbolPackage),e.set(4,sr.symbolClass),e.set(5,sr.symbolMethod),e.set(6,sr.symbolProperty),e.set(7,sr.symbolField),e.set(8,sr.symbolConstructor),e.set(9,sr.symbolEnum),e.set(10,sr.symbolInterface),e.set(11,sr.symbolFunction),e.set(12,sr.symbolVariable),e.set(13,sr.symbolConstant),e.set(14,sr.symbolString),e.set(15,sr.symbolNumber),e.set(16,sr.symbolBoolean),e.set(17,sr.symbolArray),e.set(18,sr.symbolObject),e.set(19,sr.symbolKey),e.set(20,sr.symbolNull),e.set(21,sr.symbolEnumMember),e.set(22,sr.symbolStruct),e.set(23,sr.symbolEvent),e.set(24,sr.symbolOperator),e.set(25,sr.symbolTypeParameter);function i(n){let a=e.get(n);return a||(console.info("No codicon found for SymbolKind "+n),a=sr.symbolProperty),a}r.toIcon=i})(Cje||(Cje={}));class N_{static fromValue(e){switch(e){case"comment":return N_.Comment;case"imports":return N_.Imports;case"region":return N_.Region}return new N_(e)}constructor(e){this.value=e}}N_.Comment=new N_("comment");N_.Imports=new N_("imports");N_.Region=new N_("region");var bje;(function(r){function e(i){return!i||typeof i!="object"?!1:typeof i.id=="string"&&typeof i.title=="string"}r.is=e})(bje||(bje={}));var l5e;(function(r){r[r.Type=1]="Type",r[r.Parameter=2]="Parameter"})(l5e||(l5e={}));class l_i{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const oh=new a_i;var yje;(function(r){r[r.Unknown=0]="Unknown",r[r.Disabled=1]="Disabled",r[r.Enabled=2]="Enabled"})(yje||(yje={}));var kje;(function(r){r[r.Invoke=1]="Invoke",r[r.Auto=2]="Auto"})(kje||(kje={}));var Fje;(function(r){r[r.None=0]="None",r[r.KeepWhitespace=1]="KeepWhitespace",r[r.InsertAsSnippet=4]="InsertAsSnippet"})(Fje||(Fje={}));var Aje;(function(r){r[r.Method=0]="Method",r[r.Function=1]="Function",r[r.Constructor=2]="Constructor",r[r.Field=3]="Field",r[r.Variable=4]="Variable",r[r.Class=5]="Class",r[r.Struct=6]="Struct",r[r.Interface=7]="Interface",r[r.Module=8]="Module",r[r.Property=9]="Property",r[r.Event=10]="Event",r[r.Operator=11]="Operator",r[r.Unit=12]="Unit",r[r.Value=13]="Value",r[r.Constant=14]="Constant",r[r.Enum=15]="Enum",r[r.EnumMember=16]="EnumMember",r[r.Keyword=17]="Keyword",r[r.Text=18]="Text",r[r.Color=19]="Color",r[r.File=20]="File",r[r.Reference=21]="Reference",r[r.Customcolor=22]="Customcolor",r[r.Folder=23]="Folder",r[r.TypeParameter=24]="TypeParameter",r[r.User=25]="User",r[r.Issue=26]="Issue",r[r.Snippet=27]="Snippet"})(Aje||(Aje={}));var Sje;(function(r){r[r.Deprecated=1]="Deprecated"})(Sje||(Sje={}));var Bje;(function(r){r[r.Invoke=0]="Invoke",r[r.TriggerCharacter=1]="TriggerCharacter",r[r.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Bje||(Bje={}));var wje;(function(r){r[r.EXACT=0]="EXACT",r[r.ABOVE=1]="ABOVE",r[r.BELOW=2]="BELOW"})(wje||(wje={}));var Tje;(function(r){r[r.NotSet=0]="NotSet",r[r.ContentFlush=1]="ContentFlush",r[r.RecoverFromMarkers=2]="RecoverFromMarkers",r[r.Explicit=3]="Explicit",r[r.Paste=4]="Paste",r[r.Undo=5]="Undo",r[r.Redo=6]="Redo"})(Tje||(Tje={}));var Lje;(function(r){r[r.LF=1]="LF",r[r.CRLF=2]="CRLF"})(Lje||(Lje={}));var Nje;(function(r){r[r.Text=0]="Text",r[r.Read=1]="Read",r[r.Write=2]="Write"})(Nje||(Nje={}));var Pje;(function(r){r[r.None=0]="None",r[r.Keep=1]="Keep",r[r.Brackets=2]="Brackets",r[r.Advanced=3]="Advanced",r[r.Full=4]="Full"})(Pje||(Pje={}));var Mje;(function(r){r[r.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",r[r.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",r[r.accessibilitySupport=2]="accessibilitySupport",r[r.accessibilityPageSize=3]="accessibilityPageSize",r[r.ariaLabel=4]="ariaLabel",r[r.autoClosingBrackets=5]="autoClosingBrackets",r[r.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",r[r.autoClosingDelete=7]="autoClosingDelete",r[r.autoClosingOvertype=8]="autoClosingOvertype",r[r.autoClosingQuotes=9]="autoClosingQuotes",r[r.autoIndent=10]="autoIndent",r[r.automaticLayout=11]="automaticLayout",r[r.autoSurround=12]="autoSurround",r[r.bracketPairColorization=13]="bracketPairColorization",r[r.guides=14]="guides",r[r.codeLens=15]="codeLens",r[r.codeLensFontFamily=16]="codeLensFontFamily",r[r.codeLensFontSize=17]="codeLensFontSize",r[r.colorDecorators=18]="colorDecorators",r[r.colorDecoratorsLimit=19]="colorDecoratorsLimit",r[r.columnSelection=20]="columnSelection",r[r.comments=21]="comments",r[r.contextmenu=22]="contextmenu",r[r.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",r[r.cursorBlinking=24]="cursorBlinking",r[r.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",r[r.cursorStyle=26]="cursorStyle",r[r.cursorSurroundingLines=27]="cursorSurroundingLines",r[r.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",r[r.cursorWidth=29]="cursorWidth",r[r.disableLayerHinting=30]="disableLayerHinting",r[r.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",r[r.domReadOnly=32]="domReadOnly",r[r.dragAndDrop=33]="dragAndDrop",r[r.dropIntoEditor=34]="dropIntoEditor",r[r.emptySelectionClipboard=35]="emptySelectionClipboard",r[r.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",r[r.extraEditorClassName=37]="extraEditorClassName",r[r.fastScrollSensitivity=38]="fastScrollSensitivity",r[r.find=39]="find",r[r.fixedOverflowWidgets=40]="fixedOverflowWidgets",r[r.folding=41]="folding",r[r.foldingStrategy=42]="foldingStrategy",r[r.foldingHighlight=43]="foldingHighlight",r[r.foldingImportsByDefault=44]="foldingImportsByDefault",r[r.foldingMaximumRegions=45]="foldingMaximumRegions",r[r.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",r[r.fontFamily=47]="fontFamily",r[r.fontInfo=48]="fontInfo",r[r.fontLigatures=49]="fontLigatures",r[r.fontSize=50]="fontSize",r[r.fontWeight=51]="fontWeight",r[r.fontVariations=52]="fontVariations",r[r.formatOnPaste=53]="formatOnPaste",r[r.formatOnType=54]="formatOnType",r[r.glyphMargin=55]="glyphMargin",r[r.gotoLocation=56]="gotoLocation",r[r.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",r[r.hover=58]="hover",r[r.inDiffEditor=59]="inDiffEditor",r[r.inlineSuggest=60]="inlineSuggest",r[r.letterSpacing=61]="letterSpacing",r[r.lightbulb=62]="lightbulb",r[r.lineDecorationsWidth=63]="lineDecorationsWidth",r[r.lineHeight=64]="lineHeight",r[r.lineNumbers=65]="lineNumbers",r[r.lineNumbersMinChars=66]="lineNumbersMinChars",r[r.linkedEditing=67]="linkedEditing",r[r.links=68]="links",r[r.matchBrackets=69]="matchBrackets",r[r.minimap=70]="minimap",r[r.mouseStyle=71]="mouseStyle",r[r.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",r[r.mouseWheelZoom=73]="mouseWheelZoom",r[r.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",r[r.multiCursorModifier=75]="multiCursorModifier",r[r.multiCursorPaste=76]="multiCursorPaste",r[r.multiCursorLimit=77]="multiCursorLimit",r[r.occurrencesHighlight=78]="occurrencesHighlight",r[r.overviewRulerBorder=79]="overviewRulerBorder",r[r.overviewRulerLanes=80]="overviewRulerLanes",r[r.padding=81]="padding",r[r.parameterHints=82]="parameterHints",r[r.peekWidgetDefaultFocus=83]="peekWidgetDefaultFocus",r[r.definitionLinkOpensInPeek=84]="definitionLinkOpensInPeek",r[r.quickSuggestions=85]="quickSuggestions",r[r.quickSuggestionsDelay=86]="quickSuggestionsDelay",r[r.readOnly=87]="readOnly",r[r.renameOnType=88]="renameOnType",r[r.renderControlCharacters=89]="renderControlCharacters",r[r.renderFinalNewline=90]="renderFinalNewline",r[r.renderLineHighlight=91]="renderLineHighlight",r[r.renderLineHighlightOnlyWhenFocus=92]="renderLineHighlightOnlyWhenFocus",r[r.renderValidationDecorations=93]="renderValidationDecorations",r[r.renderWhitespace=94]="renderWhitespace",r[r.revealHorizontalRightPadding=95]="revealHorizontalRightPadding",r[r.roundedSelection=96]="roundedSelection",r[r.rulers=97]="rulers",r[r.scrollbar=98]="scrollbar",r[r.scrollBeyondLastColumn=99]="scrollBeyondLastColumn",r[r.scrollBeyondLastLine=100]="scrollBeyondLastLine",r[r.scrollPredominantAxis=101]="scrollPredominantAxis",r[r.selectionClipboard=102]="selectionClipboard",r[r.selectionHighlight=103]="selectionHighlight",r[r.selectOnLineNumbers=104]="selectOnLineNumbers",r[r.showFoldingControls=105]="showFoldingControls",r[r.showUnused=106]="showUnused",r[r.snippetSuggestions=107]="snippetSuggestions",r[r.smartSelect=108]="smartSelect",r[r.smoothScrolling=109]="smoothScrolling",r[r.stickyScroll=110]="stickyScroll",r[r.stickyTabStops=111]="stickyTabStops",r[r.stopRenderingLineAfter=112]="stopRenderingLineAfter",r[r.suggest=113]="suggest",r[r.suggestFontSize=114]="suggestFontSize",r[r.suggestLineHeight=115]="suggestLineHeight",r[r.suggestOnTriggerCharacters=116]="suggestOnTriggerCharacters",r[r.suggestSelection=117]="suggestSelection",r[r.tabCompletion=118]="tabCompletion",r[r.tabIndex=119]="tabIndex",r[r.unicodeHighlighting=120]="unicodeHighlighting",r[r.unusualLineTerminators=121]="unusualLineTerminators",r[r.useShadowDOM=122]="useShadowDOM",r[r.useTabStops=123]="useTabStops",r[r.wordBreak=124]="wordBreak",r[r.wordSeparators=125]="wordSeparators",r[r.wordWrap=126]="wordWrap",r[r.wordWrapBreakAfterCharacters=127]="wordWrapBreakAfterCharacters",r[r.wordWrapBreakBeforeCharacters=128]="wordWrapBreakBeforeCharacters",r[r.wordWrapColumn=129]="wordWrapColumn",r[r.wordWrapOverride1=130]="wordWrapOverride1",r[r.wordWrapOverride2=131]="wordWrapOverride2",r[r.wrappingIndent=132]="wrappingIndent",r[r.wrappingStrategy=133]="wrappingStrategy",r[r.showDeprecated=134]="showDeprecated",r[r.inlayHints=135]="inlayHints",r[r.editorClassName=136]="editorClassName",r[r.pixelRatio=137]="pixelRatio",r[r.tabFocusMode=138]="tabFocusMode",r[r.layoutInfo=139]="layoutInfo",r[r.wrappingInfo=140]="wrappingInfo"})(Mje||(Mje={}));var zje;(function(r){r[r.TextDefined=0]="TextDefined",r[r.LF=1]="LF",r[r.CRLF=2]="CRLF"})(zje||(zje={}));var Ije;(function(r){r[r.LF=0]="LF",r[r.CRLF=1]="CRLF"})(Ije||(Ije={}));var Rje;(function(r){r[r.None=0]="None",r[r.Indent=1]="Indent",r[r.IndentOutdent=2]="IndentOutdent",r[r.Outdent=3]="Outdent"})(Rje||(Rje={}));var Oje;(function(r){r[r.Both=0]="Both",r[r.Right=1]="Right",r[r.Left=2]="Left",r[r.None=3]="None"})(Oje||(Oje={}));var jje;(function(r){r[r.Type=1]="Type",r[r.Parameter=2]="Parameter"})(jje||(jje={}));var Vje;(function(r){r[r.Automatic=0]="Automatic",r[r.Explicit=1]="Explicit"})(Vje||(Vje={}));var Hje;(function(r){r[r.DependsOnKbLayout=-1]="DependsOnKbLayout",r[r.Unknown=0]="Unknown",r[r.Backspace=1]="Backspace",r[r.Tab=2]="Tab",r[r.Enter=3]="Enter",r[r.Shift=4]="Shift",r[r.Ctrl=5]="Ctrl",r[r.Alt=6]="Alt",r[r.PauseBreak=7]="PauseBreak",r[r.CapsLock=8]="CapsLock",r[r.Escape=9]="Escape",r[r.Space=10]="Space",r[r.PageUp=11]="PageUp",r[r.PageDown=12]="PageDown",r[r.End=13]="End",r[r.Home=14]="Home",r[r.LeftArrow=15]="LeftArrow",r[r.UpArrow=16]="UpArrow",r[r.RightArrow=17]="RightArrow",r[r.DownArrow=18]="DownArrow",r[r.Insert=19]="Insert",r[r.Delete=20]="Delete",r[r.Digit0=21]="Digit0",r[r.Digit1=22]="Digit1",r[r.Digit2=23]="Digit2",r[r.Digit3=24]="Digit3",r[r.Digit4=25]="Digit4",r[r.Digit5=26]="Digit5",r[r.Digit6=27]="Digit6",r[r.Digit7=28]="Digit7",r[r.Digit8=29]="Digit8",r[r.Digit9=30]="Digit9",r[r.KeyA=31]="KeyA",r[r.KeyB=32]="KeyB",r[r.KeyC=33]="KeyC",r[r.KeyD=34]="KeyD",r[r.KeyE=35]="KeyE",r[r.KeyF=36]="KeyF",r[r.KeyG=37]="KeyG",r[r.KeyH=38]="KeyH",r[r.KeyI=39]="KeyI",r[r.KeyJ=40]="KeyJ",r[r.KeyK=41]="KeyK",r[r.KeyL=42]="KeyL",r[r.KeyM=43]="KeyM",r[r.KeyN=44]="KeyN",r[r.KeyO=45]="KeyO",r[r.KeyP=46]="KeyP",r[r.KeyQ=47]="KeyQ",r[r.KeyR=48]="KeyR",r[r.KeyS=49]="KeyS",r[r.KeyT=50]="KeyT",r[r.KeyU=51]="KeyU",r[r.KeyV=52]="KeyV",r[r.KeyW=53]="KeyW",r[r.KeyX=54]="KeyX",r[r.KeyY=55]="KeyY",r[r.KeyZ=56]="KeyZ",r[r.Meta=57]="Meta",r[r.ContextMenu=58]="ContextMenu",r[r.F1=59]="F1",r[r.F2=60]="F2",r[r.F3=61]="F3",r[r.F4=62]="F4",r[r.F5=63]="F5",r[r.F6=64]="F6",r[r.F7=65]="F7",r[r.F8=66]="F8",r[r.F9=67]="F9",r[r.F10=68]="F10",r[r.F11=69]="F11",r[r.F12=70]="F12",r[r.F13=71]="F13",r[r.F14=72]="F14",r[r.F15=73]="F15",r[r.F16=74]="F16",r[r.F17=75]="F17",r[r.F18=76]="F18",r[r.F19=77]="F19",r[r.NumLock=78]="NumLock",r[r.ScrollLock=79]="ScrollLock",r[r.Semicolon=80]="Semicolon",r[r.Equal=81]="Equal",r[r.Comma=82]="Comma",r[r.Minus=83]="Minus",r[r.Period=84]="Period",r[r.Slash=85]="Slash",r[r.Backquote=86]="Backquote",r[r.BracketLeft=87]="BracketLeft",r[r.Backslash=88]="Backslash",r[r.BracketRight=89]="BracketRight",r[r.Quote=90]="Quote",r[r.OEM_8=91]="OEM_8",r[r.IntlBackslash=92]="IntlBackslash",r[r.Numpad0=93]="Numpad0",r[r.Numpad1=94]="Numpad1",r[r.Numpad2=95]="Numpad2",r[r.Numpad3=96]="Numpad3",r[r.Numpad4=97]="Numpad4",r[r.Numpad5=98]="Numpad5",r[r.Numpad6=99]="Numpad6",r[r.Numpad7=100]="Numpad7",r[r.Numpad8=101]="Numpad8",r[r.Numpad9=102]="Numpad9",r[r.NumpadMultiply=103]="NumpadMultiply",r[r.NumpadAdd=104]="NumpadAdd",r[r.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",r[r.NumpadSubtract=106]="NumpadSubtract",r[r.NumpadDecimal=107]="NumpadDecimal",r[r.NumpadDivide=108]="NumpadDivide",r[r.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",r[r.ABNT_C1=110]="ABNT_C1",r[r.ABNT_C2=111]="ABNT_C2",r[r.AudioVolumeMute=112]="AudioVolumeMute",r[r.AudioVolumeUp=113]="AudioVolumeUp",r[r.AudioVolumeDown=114]="AudioVolumeDown",r[r.BrowserSearch=115]="BrowserSearch",r[r.BrowserHome=116]="BrowserHome",r[r.BrowserBack=117]="BrowserBack",r[r.BrowserForward=118]="BrowserForward",r[r.MediaTrackNext=119]="MediaTrackNext",r[r.MediaTrackPrevious=120]="MediaTrackPrevious",r[r.MediaStop=121]="MediaStop",r[r.MediaPlayPause=122]="MediaPlayPause",r[r.LaunchMediaPlayer=123]="LaunchMediaPlayer",r[r.LaunchMail=124]="LaunchMail",r[r.LaunchApp2=125]="LaunchApp2",r[r.Clear=126]="Clear",r[r.MAX_VALUE=127]="MAX_VALUE"})(Hje||(Hje={}));var Kje;(function(r){r[r.Hint=1]="Hint",r[r.Info=2]="Info",r[r.Warning=4]="Warning",r[r.Error=8]="Error"})(Kje||(Kje={}));var Wje;(function(r){r[r.Unnecessary=1]="Unnecessary",r[r.Deprecated=2]="Deprecated"})(Wje||(Wje={}));var Gje;(function(r){r[r.Inline=1]="Inline",r[r.Gutter=2]="Gutter"})(Gje||(Gje={}));var Jje;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.TEXTAREA=1]="TEXTAREA",r[r.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",r[r.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",r[r.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",r[r.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",r[r.CONTENT_TEXT=6]="CONTENT_TEXT",r[r.CONTENT_EMPTY=7]="CONTENT_EMPTY",r[r.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",r[r.CONTENT_WIDGET=9]="CONTENT_WIDGET",r[r.OVERVIEW_RULER=10]="OVERVIEW_RULER",r[r.SCROLLBAR=11]="SCROLLBAR",r[r.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",r[r.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Jje||(Jje={}));var $je;(function(r){r[r.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",r[r.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",r[r.TOP_CENTER=2]="TOP_CENTER"})($je||($je={}));var Uje;(function(r){r[r.Left=1]="Left",r[r.Center=2]="Center",r[r.Right=4]="Right",r[r.Full=7]="Full"})(Uje||(Uje={}));var qje;(function(r){r[r.Left=0]="Left",r[r.Right=1]="Right",r[r.None=2]="None",r[r.LeftOfInjectedText=3]="LeftOfInjectedText",r[r.RightOfInjectedText=4]="RightOfInjectedText"})(qje||(qje={}));var Zje;(function(r){r[r.Off=0]="Off",r[r.On=1]="On",r[r.Relative=2]="Relative",r[r.Interval=3]="Interval",r[r.Custom=4]="Custom"})(Zje||(Zje={}));var Yje;(function(r){r[r.None=0]="None",r[r.Text=1]="Text",r[r.Blocks=2]="Blocks"})(Yje||(Yje={}));var Qje;(function(r){r[r.Smooth=0]="Smooth",r[r.Immediate=1]="Immediate"})(Qje||(Qje={}));var Xje;(function(r){r[r.Auto=1]="Auto",r[r.Hidden=2]="Hidden",r[r.Visible=3]="Visible"})(Xje||(Xje={}));var eVe;(function(r){r[r.LTR=0]="LTR",r[r.RTL=1]="RTL"})(eVe||(eVe={}));var tVe;(function(r){r[r.Invoke=1]="Invoke",r[r.TriggerCharacter=2]="TriggerCharacter",r[r.ContentChange=3]="ContentChange"})(tVe||(tVe={}));var iVe;(function(r){r[r.File=0]="File",r[r.Module=1]="Module",r[r.Namespace=2]="Namespace",r[r.Package=3]="Package",r[r.Class=4]="Class",r[r.Method=5]="Method",r[r.Property=6]="Property",r[r.Field=7]="Field",r[r.Constructor=8]="Constructor",r[r.Enum=9]="Enum",r[r.Interface=10]="Interface",r[r.Function=11]="Function",r[r.Variable=12]="Variable",r[r.Constant=13]="Constant",r[r.String=14]="String",r[r.Number=15]="Number",r[r.Boolean=16]="Boolean",r[r.Array=17]="Array",r[r.Object=18]="Object",r[r.Key=19]="Key",r[r.Null=20]="Null",r[r.EnumMember=21]="EnumMember",r[r.Struct=22]="Struct",r[r.Event=23]="Event",r[r.Operator=24]="Operator",r[r.TypeParameter=25]="TypeParameter"})(iVe||(iVe={}));var nVe;(function(r){r[r.Deprecated=1]="Deprecated"})(nVe||(nVe={}));var uVe;(function(r){r[r.Hidden=0]="Hidden",r[r.Blink=1]="Blink",r[r.Smooth=2]="Smooth",r[r.Phase=3]="Phase",r[r.Expand=4]="Expand",r[r.Solid=5]="Solid"})(uVe||(uVe={}));var rVe;(function(r){r[r.Line=1]="Line",r[r.Block=2]="Block",r[r.Underline=3]="Underline",r[r.LineThin=4]="LineThin",r[r.BlockOutline=5]="BlockOutline",r[r.UnderlineThin=6]="UnderlineThin"})(rVe||(rVe={}));var aVe;(function(r){r[r.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",r[r.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",r[r.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",r[r.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(aVe||(aVe={}));var oVe;(function(r){r[r.None=0]="None",r[r.Same=1]="Same",r[r.Indent=2]="Indent",r[r.DeepIndent=3]="DeepIndent"})(oVe||(oVe={}));let Eae=class{static chord(e,i){return Am(e,i)}};Eae.CtrlCmd=2048;Eae.Shift=1024;Eae.Alt=512;Eae.WinCtrl=256;function vCt(){return{editor:void 0,languages:void 0,CancellationTokenSource:Ap,Emitter:Fi,KeyCode:Hje,KeyMod:Eae,Position:Vi,Range:ot,Selection:ma,SelectionDirection:eVe,MarkerSeverity:Kje,MarkerTag:Wje,Uri:no,Token:zue}}class c_i{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const i=JSON.stringify(e);return this.lastArgKey!==i&&(this.lastArgKey=i,this.lastCache=this.fn(e)),this.lastCache}}class Bgt{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const i=this.fn(e);return this._map.set(e,i),i}}class lN{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var CCt;function bCt(r){return!r||typeof r!="string"?!0:r.trim().length===0}const d_i=/{(\d+)}/g;function W6(r,...e){return e.length===0?r:r.replace(d_i,function(i,n){const a=parseInt(n,10);return isNaN(a)||a<0||a>=e.length?i:e[a]})}function c5e(r){return r.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function px(r){return r.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function h_i(r,e=" "){const i=_ae(r,e);return yCt(i,e)}function _ae(r,e){if(!r||!e)return r;const i=e.length;if(i===0||r.length===0)return r;let n=0;for(;r.indexOf(e,n)===n;)n=n+i;return r.substring(n)}function yCt(r,e){if(!r||!e)return r;const i=e.length,n=r.length;if(i===0||n===0)return r;let a=n,o=-1;for(;o=r.lastIndexOf(e,a-1),!(o===-1||o+i!==a);){if(o===0)return"";a=o}return r.substring(0,a)}function f_i(r){return r.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m_i(r){return r.replace(/\*/g,"")}function kCt(r,e,i={}){if(!r)throw new Error("Cannot create regex from empty string");e||(r=px(r)),i.wholeWord&&(/\B/.test(r.charAt(0))||(r="\\b"+r),/\B/.test(r.charAt(r.length-1))||(r=r+"\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(r,n)}function p_i(r){return r.source==="^"||r.source==="^$"||r.source==="$"||r.source==="^\\s*$"?!1:!!(r.exec("")&&r.lastIndex===0)}function gIe(r){return(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")}function TA(r){return r.split(/\r\n|\r|\n/)}function OE(r){for(let e=0,i=r.length;e=0;i--){const n=r.charCodeAt(i);if(n!==32&&n!==9)return i}return-1}function Oue(r,e){return re?1:0}function aJe(r,e,i=0,n=r.length,a=0,o=e.length){for(;i_)return 1}const c=n-i,h=o-a;return ch?1:0}function sVe(r,e){return Dae(r,e,0,r.length,0,e.length)}function Dae(r,e,i=0,n=r.length,a=0,o=e.length){for(;i=128||_>=128)return aJe(r.toLowerCase(),e.toLowerCase(),i,n,a,o);uL(g)&&(g-=32),uL(_)&&(_-=32);const x=g-_;if(x!==0)return x}const c=n-i,h=o-a;return ch?1:0}function S_e(r){return r>=48&&r<=57}function uL(r){return r>=97&&r<=122}function qF(r){return r>=65&&r<=90}function FG(r,e){return r.length===e.length&&Dae(r,e)===0}function oJe(r,e){const i=e.length;return e.length>r.length?!1:Dae(r,e,0,i)===0}function sR(r,e){const i=Math.min(r.length,e.length);let n;for(n=0;n1){const n=r.charCodeAt(e-2);if(i4(n))return sJe(n,i)}return i}class lJe{get offset(){return this._offset}constructor(e,i=0){this._str=e,this._len=e.length,this._offset=i}setOffset(e){this._offset=e}prevCodePoint(){const e=g_i(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=d5e(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class h5e{get offset(){return this._iterator.offset}constructor(e,i=0){this._iterator=new lJe(e,i)}nextGraphemeLength(){const e=rL.getInstance(),i=this._iterator,n=i.offset;let a=e.getGraphemeBreakType(i.nextCodePoint());for(;!i.eol();){const o=i.offset,c=e.getGraphemeBreakType(i.nextCodePoint());if(wgt(a,c)){i.setOffset(o);break}a=c}return i.offset-n}prevGraphemeLength(){const e=rL.getInstance(),i=this._iterator,n=i.offset;let a=e.getGraphemeBreakType(i.prevCodePoint());for(;i.offset>0;){const o=i.offset,c=e.getGraphemeBreakType(i.prevCodePoint());if(wgt(c,a)){i.setOffset(o);break}a=c}return n-i.offset}eol(){return this._iterator.eol()}}function cJe(r,e){return new h5e(r,e).nextGraphemeLength()}function FCt(r,e){return new h5e(r,e).prevGraphemeLength()}function E_i(r,e){e>0&&lR(r.charCodeAt(e))&&e--;const i=e+cJe(r,e);return[i-FCt(r,i),i]}let EIe;function __i(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function MJ(r){return EIe||(EIe=__i()),EIe.test(r)}const D_i=/^[\t\n\r\x20-\x7E]*$/;function xae(r){return D_i.test(r)}const ACt=/[\u2028\u2029]/;function SCt(r){return ACt.test(r)}function HL(r){return r>=11904&&r<=55215||r>=63744&&r<=64255||r>=65281&&r<=65374}function dJe(r){return r>=127462&&r<=127487||r===8986||r===8987||r===9200||r===9203||r>=9728&&r<=10175||r===11088||r===11093||r>=127744&&r<=128591||r>=128640&&r<=128764||r>=128992&&r<=129008||r>=129280&&r<=129535||r>=129648&&r<=129782}const x_i="\uFEFF";function hJe(r){return!!(r&&r.length>0&&r.charCodeAt(0)===65279)}function v_i(r,e=!1){return r?(e&&(r=r.replace(/\\./g,"")),r.toLowerCase()!==r):!1}function BCt(r){return r=r%(2*26),r<26?String.fromCharCode(97+r):String.fromCharCode(65+r-26)}function wgt(r,e){return r===0?e!==5&&e!==7:r===2&&e===3?!1:r===4||r===2||r===3||e===4||e===2||e===3?!0:!(r===8&&(e===8||e===9||e===11||e===12)||(r===11||r===9)&&(e===9||e===10)||(r===12||r===10)&&e===10||e===5||e===13||e===7||r===1||r===13&&e===14||r===6&&e===6)}class rL{static getInstance(){return rL._INSTANCE||(rL._INSTANCE=new rL),rL._INSTANCE}constructor(){this._data=C_i()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const i=this._data,n=i.length/3;let a=1;for(;a<=n;)if(ei[3*a+1])a=2*a+1;else return i[3*a+2];return 0}}rL._INSTANCE=null;function C_i(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function b_i(r,e){if(r===0)return 0;const i=y_i(r,e);if(i!==void 0)return i;const n=new lJe(e,r);return n.prevCodePoint(),n.offset}function y_i(r,e){const i=new lJe(e,r);let n=i.prevCodePoint();for(;k_i(n)||n===65039||n===8419;){if(i.offset===0)return;n=i.prevCodePoint()}if(!dJe(n))return;let a=i.offset;return a>0&&i.prevCodePoint()===8205&&(a=i.offset),a}function k_i(r){return 127995<=r&&r<=127999}const F_i=" ";class t2{static getInstance(e){return t2.cache.get(Array.from(e))}static getLocales(){return t2._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}CCt=t2;t2.ambiguousCharacterData=new lN(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));t2.cache=new c_i(r=>{function e(_){const x=new Map;for(let y=0;y<_.length;y+=2)x.set(_[y],_[y+1]);return x}function i(_,x){const y=new Map(_);for(const[S,L]of x)y.set(S,L);return y}function n(_,x){if(!_)return x;const y=new Map;for(const[S,L]of _)x.has(S)&&y.set(S,L);return y}const a=CCt.ambiguousCharacterData.value;let o=r.filter(_=>!_.startsWith("_")&&_ in a);o.length===0&&(o=["_default"]);let c;for(const _ of o){const x=e(a[_]);c=n(c,x)}const h=e(a._common),g=i(h,c);return new t2(g)});t2._locales=new lN(()=>Object.keys(t2.ambiguousCharacterData.value).filter(r=>!r.startsWith("_")));class vA{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(vA.getRawData())),this._data}static isInvisibleCharacter(e){return vA.getData().has(e)}static get codePoints(){return vA.getData()}}vA._data=void 0;class lVe{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}lVe.INSTANCE=new lVe;class A_i extends ln{constructor(){super(),this._onDidChange=this._register(new Fi),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var i;(i=this._mediaQueryList)===null||i===void 0||i.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class S_i extends ln{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new Fi),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new A_i);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),i=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return i/n}}class B_i{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new S_i),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function fJe(r,e){typeof r=="string"&&(r=window.matchMedia(r)),r.addEventListener("change",e)}const zJ=new B_i;function wCt(){return lVe.INSTANCE.getZoomFactor()}const A$=navigator.userAgent,Y6=A$.indexOf("Firefox")>=0,CL=A$.indexOf("AppleWebKit")>=0,mJe=A$.indexOf("Chrome")>=0,i8=!mJe&&A$.indexOf("Safari")>=0,pJe=!mJe&&!i8&&CL,w_i=A$.indexOf("Electron/")>=0,TCt=A$.indexOf("Android")>=0;let nDe=!1;if(window.matchMedia){const r=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=window.matchMedia("(display-mode: fullscreen)");nDe=r.matches,fJe(r,({matches:i})=>{nDe&&e.matches||(nDe=i)})}function gJe(){return nDe}const T_i=Object.freeze(Object.defineProperty({__proto__:null,PixelRatio:zJ,addMatchMediaChangeListener:fJe,getZoomFactor:wCt,isAndroid:TCt,isChrome:mJe,isElectron:w_i,isFirefox:Y6,isSafari:i8,isStandalone:gJe,isWebKit:CL,isWebkitWebView:pJe},Symbol.toStringTag,{value:"Module"}));class LCt{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const i=$b(e);this._maxWidth!==i&&(this._maxWidth=i,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const i=$b(e);this._width!==i&&(this._width=i,this.domNode.style.width=this._width)}setHeight(e){const i=$b(e);this._height!==i&&(this._height=i,this.domNode.style.height=this._height)}setTop(e){const i=$b(e);this._top!==i&&(this._top=i,this.domNode.style.top=this._top)}setLeft(e){const i=$b(e);this._left!==i&&(this._left=i,this.domNode.style.left=this._left)}setBottom(e){const i=$b(e);this._bottom!==i&&(this._bottom=i,this.domNode.style.bottom=this._bottom)}setRight(e){const i=$b(e);this._right!==i&&(this._right=i,this.domNode.style.right=this._right)}setPaddingLeft(e){const i=$b(e);this._paddingLeft!==i&&(this._paddingLeft=i,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const i=$b(e);this._fontSize!==i&&(this._fontSize=i,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const i=$b(e);this._lineHeight!==i&&(this._lineHeight=i,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const i=$b(e);this._letterSpacing!==i&&(this._letterSpacing=i,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,i){this.domNode.classList.toggle(e,i),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,i){this.domNode.setAttribute(e,i)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function $b(r){return typeof r=="number"?`${r}px`:r}function xl(r){return new LCt(r)}function yp(r,e){r instanceof LCt?(r.setFontFamily(e.getMassagedFontFamily()),r.setFontWeight(e.fontWeight),r.setFontSize(e.fontSize),r.setFontFeatureSettings(e.fontFeatureSettings),r.setFontVariationSettings(e.fontVariationSettings),r.setLineHeight(e.lineHeight),r.setLetterSpacing(e.letterSpacing)):(r.style.fontFamily=e.getMassagedFontFamily(),r.style.fontWeight=e.fontWeight,r.style.fontSize=e.fontSize+"px",r.style.fontFeatureSettings=e.fontFeatureSettings,r.style.fontVariationSettings=e.fontVariationSettings,r.style.lineHeight=e.lineHeight+"px",r.style.letterSpacing=e.letterSpacing+"px")}class L_i{constructor(e,i){this.chr=e,this.type=i,this.width=0}fulfill(e){this.width=e}}class EJe{constructor(e,i){this._bareFontInfo=e,this._requests=i,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const i=document.createElement("div");yp(i,this._bareFontInfo),e.appendChild(i);const n=document.createElement("div");yp(n,this._bareFontInfo),n.style.fontWeight="bold",e.appendChild(n);const a=document.createElement("div");yp(a,this._bareFontInfo),a.style.fontStyle="italic",e.appendChild(a);const o=[];for(const c of this._requests){let h;c.type===0&&(h=i),c.type===2&&(h=n),c.type===1&&(h=a),h.appendChild(document.createElement("br"));const g=document.createElement("span");EJe._render(g,c),h.appendChild(g),o.push(g)}this._container=e,this._testElements=o}static _render(e,i){if(i.chr===" "){let n=" ";for(let a=0;a<8;a++)n+=n;e.innerText=n}else{let n=i.chr;for(let a=0;a<8;a++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,i=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let i=!1;for(const n of e)n.isTrusted||(i=!0,this._cache.remove(n));i&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let i=this._actualReadFontInfo(e);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new cVe({pixelRatio:zJ.value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,i)}return this._cache.get(e)}_createRequest(e,i,n,a){const o=new L_i(e,i);return n.push(o),a==null||a.push(o),o}_actualReadFontInfo(e){const i=[],n=[],a=this._createRequest("n",0,i,n),o=this._createRequest("m",0,i,null),c=this._createRequest(" ",0,i,n),h=this._createRequest("0",0,i,n),g=this._createRequest("1",0,i,n),_=this._createRequest("2",0,i,n),x=this._createRequest("3",0,i,n),y=this._createRequest("4",0,i,n),S=this._createRequest("5",0,i,n),L=this._createRequest("6",0,i,n),O=this._createRequest("7",0,i,n),G=this._createRequest("8",0,i,n),ie=this._createRequest("9",0,i,n),ue=this._createRequest("→",0,i,n),re=this._createRequest("→",0,i,null),_e=this._createRequest("·",0,i,n),ye=this._createRequest("⸱",0,i,null),Le="|/-_ilm%";for(let kt=0,Zt=Le.length;kt.001){Ue=!1;break}}let rt=!0;return Ue&&re.width!==Ze&&(rt=!1),re.width>ue.width&&(rt=!1),new cVe({pixelRatio:zJ.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:Ue,typicalHalfwidthCharacterWidth:a.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:rt,spaceWidth:c.width,middotWidth:_e.width,wsmiddotWidth:ye.width,maxDigitWidth:lt},!0)}}class Tgt{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const i=e.getId();return!!this._values[i]}get(e){const i=e.getId();return this._values[i]}put(e,i){const n=e.getId();this._keys[n]=e,this._values[n]=i}remove(e){const i=e.getId();delete this._keys[i],delete this._values[i]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const dVe=new z_i;var hy;(function(r){r.serviceIds=new Map,r.DI_TARGET="$di$target",r.DI_DEPENDENCIES="$di$dependencies";function e(i){return i[r.DI_DEPENDENCIES]||[]}r.getServiceDependencies=e})(hy||(hy={}));const Cs=k0("instantiationService");function I_i(r,e,i){e[hy.DI_TARGET]===e?e[hy.DI_DEPENDENCIES].push({id:r,index:i}):(e[hy.DI_DEPENDENCIES]=[{id:r,index:i}],e[hy.DI_TARGET]=e)}function k0(r){if(hy.serviceIds.has(r))return hy.serviceIds.get(r);const e=function(i,n,a){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I_i(e,i,a)};return e.toString=()=>r,hy.serviceIds.set(r,e),e}const Nl=k0("codeEditorService");function Vne(r,e){if(!r)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function L6e(r,e="Unreachable"){throw new Error(e)}function _Je(r){if(!r()){debugger;r(),Ls(new KA("Assertion Failed"))}}function NCt(r,e){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw QGe(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const i=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:i})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const i=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:i})}else this._match(126)?this._addToken(9):this._error(DIe("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(DIe("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(DIe("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const i=this._start,n=this._input.substring(this._start,this._current),a={type:19,offset:this._start,lexeme:n};this._errors.push({offset:i,lexeme:n,additionalInfo:e}),this._tokens.push(a)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const i=this._input.substring(this._start,this._current),n=hVe._keywords.get(i);n?this._addToken(n):this._tokens.push({type:17,lexeme:i,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(R_i);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,i=!1,n=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(O_i);return}const o=this._input.charCodeAt(e);if(i)i=!1;else if(o===47&&!n){e++;break}else o===91?n=!0:o===92?i=!0:o===93&&(n=!1);e++}for(;e=this._input.length}};xI._regexFlags=new Set(["i","g","s","m","y","u"].map(r=>r.charCodeAt(0)));xI._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const Gg=new Map;Gg.set("false",!1);Gg.set("true",!0);Gg.set("isMac",d0);Gg.set("isLinux",sg);Gg.set("isWindows",Fp);Gg.set("isWeb",aN);Gg.set("isMacNative",d0&&!aN);Gg.set("isEdge",Cgi);Gg.set("isFirefox",xgi);Gg.set("isChrome",$vt);Gg.set("isSafari",vgi);const j_i=Object.prototype.hasOwnProperty,V_i={regexParsingWithErrorRecovery:!0},H_i=V("contextkey.parser.error.emptyString","Empty context key expression"),K_i=V("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),W_i=V("contextkey.parser.error.noInAfterNot","'in' after 'not'."),Lgt=V("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),G_i=V("contextkey.parser.error.unexpectedToken","Unexpected token"),J_i=V("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),$_i=V("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),U_i=V("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let PCt=class sne{constructor(e=V_i){this._config=e,this._scanner=new xI,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:H_i,offset:0,lexeme:"",additionalInfo:K_i});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const i=this._expr();if(!this._isAtEnd()){const n=this._peek(),a=n.type===17?J_i:void 0;throw this._parsingErrors.push({message:G_i,offset:n.offset,lexeme:xI.getLexeme(n),additionalInfo:a}),sne._parseError}return i}catch(i){if(i!==sne._parseError)throw i;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const i=this._and();e.push(i)}return e.length===1?e[0]:mu.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const i=this._term();e.push(i)}return e.length===1?e[0]:mu.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),I_.INSTANCE;case 12:return this._advance(),H3.INSTANCE;case 0:{this._advance();const i=this._expr();return this._consume(1,Lgt),i==null?void 0:i.negate()}case 17:return this._advance(),UR.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),mu.true();case 12:return this._advance(),mu.false();case 0:{this._advance();const i=this._expr();return this._consume(1,Lgt),i}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const a=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),a.type!==10)throw this._errExpectedButGot("REGEX",a);const o=a.lexeme,c=o.lastIndexOf("/"),h=c===o.length-1?void 0:this._removeFlagsGY(o.substring(c+1));let g;try{g=new RegExp(o.substring(1,c),h)}catch{throw this._errExpectedButGot("REGEX",a)}return Vue.create(i,g)}switch(a.type){case 10:case 19:{const o=[a.lexeme];this._advance();let c=this._peek(),h=0;for(let S=0;S=0){const _=o.slice(h+1,g),x=o[g+1]==="i"?"i":"";try{c=new RegExp(_,x)}catch{throw this._errExpectedButGot("REGEX",a)}}}if(c===null)throw this._errExpectedButGot("REGEX",a);return Vue.create(i,c)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,W_i);const a=this._value();return mu.notIn(i,a)}switch(this._peek().type){case 3:{this._advance();const a=this._value();if(this._previous().type===18)return mu.equals(i,a);switch(a){case"true":return mu.has(i);case"false":return mu.not(i);default:return mu.equals(i,a)}}case 4:{this._advance();const a=this._value();if(this._previous().type===18)return mu.notEquals(i,a);switch(a){case"true":return mu.not(i);case"false":return mu.has(i);default:return mu.notEquals(i,a)}}case 5:return this._advance(),j6e.create(i,this._value());case 6:return this._advance(),V6e.create(i,this._value());case 7:return this._advance(),R6e.create(i,this._value());case 8:return this._advance(),O6e.create(i,this._value());case 13:return this._advance(),mu.in(i,this._value());default:return mu.has(i)}}case 20:throw this._parsingErrors.push({message:$_i,offset:e.offset,lexeme:"",additionalInfo:U_i}),sne._parseError;default:throw this._errExpectedButGot(`true | false | KEY | KEY '=~' REGEX | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,i){if(this._check(e))return this._advance();throw this._errExpectedButGot(i,this._peek())}_errExpectedButGot(e,i,n){const a=V("contextkey.parser.error.expectedButGot",`Expected: {0} -Received: '{1}'.`,e,DI.getLexeme(i)),o=i.offset,c=DI.getLexeme(i);return this._parsingErrors.push({message:a,offset:o,lexeme:c,additionalInfo:n}),une._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};Vvt._parseError=new Error;class pu{static false(){return z_.INSTANCE}static true(){return V3.INSTANCE}static has(e){return WR.create(e)}static equals(e,i){return gae.create(e,i)}static notEquals(e,i){return y6e.create(e,i)}static regex(e,i){return Nue.create(e,i)}static in(e,i){return C6e.create(e,i)}static notIn(e,i){return b6e.create(e,i)}static not(e){return GR.create(e)}static and(...e){return LI.create(e,null,!0)}static or(...e){return FS.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}}pu._parser=new Vvt({regexParsingWithErrorRecovery:!1});function H4i(r,e){const i=r?r.substituteConstants():void 0,n=e?e.substituteConstants():void 0;return!i&&!n?!0:!i||!n?!1:i.equals(n)}function Ine(r,e){return r.cmp(e)}class z_{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return V3.INSTANCE}}z_.INSTANCE=new z_;class V3{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return z_.INSTANCE}}V3.INSTANCE=new V3;class WR{static create(e,i=null){const n=Wg.get(e);return typeof n=="boolean"?n?V3.INSTANCE:z_.INSTANCE:new WR(e,i)}constructor(e,i){this.key=e,this.negated=i,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:Kvt(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Wg.get(this.key);return typeof e=="boolean"?e?V3.INSTANCE:z_.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=GR.create(this.key,this)),this.negated}}class gae{static create(e,i,n=null){if(typeof i=="boolean")return i?WR.create(e,n):GR.create(e,n);const a=Wg.get(e);return typeof a=="boolean"?i===(a?"true":"false")?V3.INSTANCE:z_.INSTANCE:new gae(e,i,n)}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:JR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Wg.get(this.key);if(typeof e=="boolean"){const i=e?"true":"false";return this.value===i?V3.INSTANCE:z_.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=y6e.create(this.key,this.value,this)),this.negated}}class C6e{static create(e,i){return new C6e(e,i)}constructor(e,i){this.key=e,this.valueKey=i,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:JR(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const i=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(i)?i.includes(n):typeof n=="string"&&typeof i=="object"&&i!==null?N4i.call(i,n):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=b6e.create(this.key,this.valueKey)),this.negated}}class b6e{static create(e,i){return new b6e(e,i)}constructor(e,i){this.key=e,this.valueKey=i,this.type=11,this._negated=C6e.create(e,i)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class y6e{static create(e,i,n=null){if(typeof i=="boolean")return i?GR.create(e,n):WR.create(e,n);const a=Wg.get(e);return typeof a=="boolean"?i===(a?"true":"false")?z_.INSTANCE:V3.INSTANCE:new y6e(e,i,n)}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:JR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Wg.get(this.key);if(typeof e=="boolean"){const i=e?"true":"false";return this.value===i?z_.INSTANCE:V3.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=gae.create(this.key,this.value,this)),this.negated}}class GR{static create(e,i=null){const n=Wg.get(e);return typeof n=="boolean"?n?z_.INSTANCE:V3.INSTANCE:new GR(e,i)}constructor(e,i){this.key=e,this.negated=i,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:Kvt(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Wg.get(this.key);return typeof e=="boolean"?e?z_.INSTANCE:V3.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=WR.create(this.key,this)),this.negated}}function k6e(r,e){if(typeof r=="string"){const i=parseFloat(r);isNaN(i)||(r=i)}return typeof r=="string"||typeof r=="number"?e(r):z_.INSTANCE}class F6e{static create(e,i,n=null){return k6e(i,a=>new F6e(e,a,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:JR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=B6e.create(this.key,this.value,this)),this.negated}}class A6e{static create(e,i,n=null){return k6e(i,a=>new A6e(e,a,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:JR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=S6e.create(this.key,this.value,this)),this.negated}}class S6e{static create(e,i,n=null){return k6e(i,a=>new S6e(e,a,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:JR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new B6e(e,a,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:JR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=F6e.create(this.key,this.value,this)),this.negated}}class Nue{static create(e,i){return new Nue(e,i)}constructor(e,i){this.key=e,this.regexp=i,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const i=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return in?1:0}equals(e){if(e.type===this.type){const i=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&i===n}return!1}substituteConstants(){return this}evaluate(e){const i=e.getValue(this.key);return this.regexp?this.regexp.test(i):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=UGe.create(this)),this.negated}}class UGe{static create(e){return new UGe(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function Hvt(r){let e=null;for(let i=0,n=r.length;ie.expr.length)return 1;for(let i=0,n=this.expr.length;i1;){const c=a[a.length-1];if(c.type!==9)break;a.pop();const h=a.pop(),g=a.length===0,_=FS.create(c.expr.map(x=>LI.create([x,h],null,n)),null,g);_&&(a.push(_),a.sort(Ine))}if(a.length===1)return a[0];if(n){for(let c=0;ce.serialize()).join(" && ")}keys(){const e=[];for(const i of this.expr)e.push(...i.keys());return e}negate(){if(!this.negated){const e=[];for(const i of this.expr)e.push(i.negate());this.negated=FS.create(e,this,!0)}return this.negated}}class FS{static create(e,i,n){return FS._normalizeArr(e,i,n)}constructor(e,i){this.expr=e,this.negated=i,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let i=0,n=this.expr.length;ie.serialize()).join(" || ")}keys(){const e=[];for(const i of this.expr)e.push(...i.keys());return e}negate(){if(!this.negated){const e=[];for(const i of this.expr)e.push(i.negate());for(;e.length>1;){const i=e.shift(),n=e.shift(),a=[];for(const o of kgt(i))for(const c of kgt(n))a.push(LI.create([o,c],null,!1));e.unshift(FS.create(a,null,!1))}this.negated=FS.create(e,this,!0)}return this.negated}}class Vr extends WR{static all(){return Vr._info.values()}constructor(e,i,n){super(e,null),this._defaultValue=i,typeof n=="object"?Vr._info.push(Object.assign(Object.assign({},n),{key:e})):n!==!0&&Vr._info.push({key:e,description:n,type:i!=null?typeof i:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return gae.create(this.key,e)}}Vr._info=[];const Wo=y0("contextKeyService");function Kvt(r,e){return re?1:0}function JR(r,e,i,n){return ri?1:en?1:0}function uVe(r,e){if(r.type===0||e.type===1)return!0;if(r.type===9)return e.type===9?ygt(r.expr,e.expr):!1;if(e.type===9){for(const i of e.expr)if(uVe(r,i))return!0;return!1}if(r.type===6){if(e.type===6)return ygt(e.expr,r.expr);for(const i of r.expr)if(uVe(i,e))return!0;return!1}return r.equals(e)}function ygt(r,e){let i=0,n=0;for(;i=0;h--)(c=r[h])&&(o=(a<3?c(o):a>3?c(e,i,o):c(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},mIe=function(r,e){return function(i,n){e(i,n,r)}};const W4i={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0,findResultLoop:!0};let rVe=class extends ln{constructor(e,i={},n,a,o){super(),this._audioCueService=n,this._codeEditorService=a,this._accessibilityService=o,this._onDidUpdate=this._register(new yi),this._editor=e,this._options=cae(i,W4i,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=!!this._options.alwaysRevealFirst,this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(c=>{this.ignoreSelectionChange||(this._updateAccessibilityState(c.position.lineNumber),this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(c=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(i=>{!this._options.ignoreCharChanges&&i.charChanges?i.charChanges.forEach(n=>{this.ranges.push({rhs:!0,range:new ot(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn)})}):i.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new ot(i.modifiedStartLineNumber,1,i.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new ot(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber+1,1)})}),this.ranges.sort((i,n)=>ot.compareRangesUsingStarts(i.range,n.range)),this._onDidUpdate.fire(this)}_initIdx(e){let i=!1;const n=this._editor.getPosition();if(!n){this.nextIdx=0;return}for(let a=0,o=this.ranges.length;a=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const a=n.range.getStartPosition();this._editor.setPosition(a),this._editor.revealRangeInCenter(n.range,i),this._updateAccessibilityState(a.lineNumber,!0)}finally{this.ignoreSelectionChange=!1}}_updateAccessibilityState(e,i){var n;const a=(n=this._editor.getModel())===null||n===void 0?void 0:n.modified;if(!a)return;const o=a.getLineDecorations(e).find(h=>h.options.className==="line-insert");if(o)this._audioCueService.playAudioCue(Zl.diffLineModified,!0);else if(i)this._audioCueService.playAudioCue(Zl.diffLineDeleted,!0);else return;const c=this._codeEditorService.getActiveCodeEditor();i&&c&&o&&this._accessibilityService.isScreenReaderOptimized()&&(c.setSelection({startLineNumber:e,startColumn:0,endLineNumber:e,endColumn:Number.MAX_VALUE}),c.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this.canNavigateNext()&&this._move(!0,e)}previous(e=0){this.canNavigatePrevious()&&this._move(!1,e)}canNavigateNext(){return this.canNavigateLoop()||this.nextIdx0&&r.getLanguageId(c-1)===a;)c--;return new Z4i(r,a,c,o+1,r.getStartOffset(c),r.getEndOffset(o))}class Z4i{constructor(e,i,n,a,o,c){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=i,this._firstTokenIndex=n,this._lastTokenIndex=a,this.firstCharOffset=o,this._lastCharOffset=c}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function RF(r){return(r&3)!==0}class MJ{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(i=>new gIe(i)):e.brackets?this._autoClosingPairs=e.brackets.map(i=>new gIe({open:i[0],close:i[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const i=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new gIe({open:i.open,close:i.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:MJ.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:MJ.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}MJ.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> - `;MJ.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> - `;const Fgt=typeof Buffer<"u";let EIe;class T6e{static wrap(e){return Fgt&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new T6e(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return Fgt?this.buffer.toString():(EIe||(EIe=new TextDecoder),EIe.decode(this.buffer))}}function Y4i(r,e){return r[e+0]<<0>>>0|r[e+1]<<8>>>0}function Q4i(r,e,i){r[i+0]=e&255,e=e>>>8,r[i+1]=e&255}function Ub(r,e){return r[e]*Math.pow(2,24)+r[e+1]*Math.pow(2,16)+r[e+2]*Math.pow(2,8)+r[e+3]}function qb(r,e,i){r[i+3]=e,e=e>>>8,r[i+2]=e,e=e>>>8,r[i+1]=e,e=e>>>8,r[i]=e}function Agt(r,e){return r[e]}function Sgt(r,e,i){r[i]=e}let _Ie;function Wvt(){return _Ie||(_Ie=new TextDecoder("UTF-16LE")),_Ie}let DIe;function X4i(){return DIe||(DIe=new TextDecoder("UTF-16BE")),DIe}let xIe;function Gvt(){return xIe||(xIe=X6t()?Wvt():X4i()),xIe}function epi(r,e,i){const n=new Uint16Array(r.buffer,e,i);return i>0&&(n[0]===65279||n[0]===65534)?tpi(r,e,i):Wvt().decode(n)}function tpi(r,e,i){const n=[];let a=0;for(let o=0;o=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let n=0;n[c[0].toLowerCase(),c[1].toLowerCase()]);const i=[];for(let c=0;c{const[g,_]=c,[x,y]=h;return g===x||g===y||_===x||_===y},a=(c,h)=>{const g=Math.min(c,h),_=Math.max(c,h);for(let x=0;x0&&o.push({open:h,close:g})}return o}class npi{constructor(e,i){this._richEditBracketsBrand=void 0;const n=ipi(i);this.brackets=n.map((a,o)=>new o5e(e,o,a.open,a.close,upi(a.open,a.close,n,o),rpi(a.open,a.close,n,o))),this.forwardRegex=api(this.brackets),this.reversedRegex=opi(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const a of this.brackets){for(const o of a.open)this.textIsBracket[o]=a,this.textIsOpenBracket[o]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,o.length);for(const o of a.close)this.textIsBracket[o]=a,this.textIsOpenBracket[o]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,o.length)}}}function Jvt(r,e,i,n){for(let a=0,o=e.length;a=0&&n.push(h);for(const h of c.close)h.indexOf(r)>=0&&n.push(h)}}function $vt(r,e){return r.length-e.length}function L6e(r){if(r.length<=1)return r;const e=[],i=new Set;for(const n of r)i.has(n)||(e.push(n),i.add(n));return e}function upi(r,e,i,n){let a=[];a=a.concat(r),a=a.concat(e);for(let o=0,c=a.length;o=0;c--)a[o++]=n.charCodeAt(c);return Gvt().decode(a)}let e=null,i=null;return function(a){return e!==a&&(e=a,i=r(e)),i}}();class RC{static _findPrevBracketInText(e,i,n,a){const o=n.match(e);if(!o)return null;const c=n.length-(o.index||0),h=o[0].length,g=a+c;return new ot(i,g-h+1,i,g+1)}static findPrevBracketInRange(e,i,n,a,o){const h=qGe(n).substring(n.length-o,n.length-a);return this._findPrevBracketInText(e,i,h,a)}static findNextBracketInText(e,i,n,a){const o=n.match(e);if(!o)return null;const c=o.index||0,h=o[0].length;if(h===0)return null;const g=a+c;return new ot(i,g+1,i,g+1+h)}static findNextBracketInRange(e,i,n,a,o){const c=n.substring(a,o);return this.findNextBracketInText(e,i,c,a)}}class lpi{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const i of this._richEditBrackets.brackets)for(const n of i.close){const a=n.charAt(n.length-1);e.push(a)}return OL(e)}onElectricCharacter(e,i,n){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const a=i.findTokenIndexAtOffset(n-1);if(RF(i.getStandardTokenType(a)))return null;const o=this._richEditBrackets.reversedRegex,c=i.getLineContent().substring(0,n-1)+e,h=RC.findPrevBracketInRange(o,1,c,0,c.length);if(!h)return null;const g=c.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[g])return null;const x=i.getActualLineContentBefore(h.startColumn-1);return/^\s*$/.test(x)?{matchOpenBracket:g}:null}}function F_e(r){return r.global&&(r.lastIndex=0),!0}class cpi{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&F_e(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&F_e(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&F_e(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&F_e(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let i=0;return this.shouldIncrease(e)&&(i+=1),this.shouldDecrease(e)&&(i+=2),this.shouldIndentNextLine(e)&&(i+=4),this.shouldIgnore(e)&&(i+=8),i}}class yG{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(i=>{const n=yG._createOpenBracketRegExp(i[0]),a=yG._createCloseBracketRegExp(i[1]);n&&a&&this._brackets.push({open:i[0],openRegExp:n,close:i[1],closeRegExp:a})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,i,n,a){if(e>=3)for(let o=0,c=this._regExpRules.length;o_.reg?(_.reg.lastIndex=0,_.reg.test(_.text)):!0))return h.action}if(e>=2&&n.length>0&&a.length>0)for(let o=0,c=this._brackets.length;o=2&&n.length>0){for(let o=0,c=this._brackets.length;o"u"?i:o}function hpi(r){return r.replace(/[\[\]]/g,"")}const s1=y0("languageService");class UF{constructor(e,i=[],n=!1){this.ctor=e,this.staticArguments=i,this.supportsDelayedInstantiation=n}}const Zvt=[];function X0(r,e,i){e instanceof UF||(e=new UF(e,[],!!i)),Zvt.push([r,e])}function wgt(){return Zvt}class fpi{constructor(){this.data=new Map}add(e,i){zne(P_(e)),zne(R3(i)),zne(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,i)}as(e){return this.data.get(e)||null}}const G1=new fpi,I3=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),P6e={JSONContribution:"base.contributions.json"};function mpi(r){return r.length>0&&r.charAt(r.length-1)==="#"?r.substring(0,r.length-1):r}class ppi{constructor(){this._onDidChangeSchema=new yi,this.schemasById={}}registerSchema(e,i){this.schemasById[mpi(e)]=i,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const gpi=new ppi;G1.add(P6e.JSONContribution,gpi);const jA={Configuration:"base.contributions.configuration"},Aie="vscode://schemas/settings/resourceLanguage",Tgt=G1.as(P6e.JSONContribution);class Epi{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new yi,this._onDidUpdateConfiguration=new yi,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:V("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},Tgt.registerSchema(Aie,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,i=!0){this.registerConfigurations([e],i)}registerConfigurations(e,i=!0){const n=new Set;this.doRegisterConfigurations(e,i,n),Tgt.registerSchema(Aie,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const i=new Set;this.doRegisterDefaultConfigurations(e,i),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,i){var n;const a=[];for(const{overrides:o,source:c}of e)for(const h in o)if(i.add(h),HL.test(h)){const g=this.configurationDefaultsOverrides.get(h),_=(n=g==null?void 0:g.valuesSources)!==null&&n!==void 0?n:new Map;if(c)for(const L of Object.keys(o[h]))_.set(L,c);const x=Object.assign(Object.assign({},(g==null?void 0:g.value)||{}),o[h]);this.configurationDefaultsOverrides.set(h,{source:c,value:x,valuesSources:_});const y=hpi(h),S={type:"object",default:x,description:V("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",y),$ref:Aie,defaultDefaultValue:x,source:P_(c)?void 0:c,defaultValueSource:c};a.push(...s5e(h)),this.configurationProperties[h]=S,this.defaultLanguageConfigurationOverridesNode.properties[h]=S}else{this.configurationDefaultsOverrides.set(h,{value:o[h],source:c});const g=this.configurationProperties[h];g&&(this.updatePropertyDefaultValue(h,g),this.updateSchema(h,g))}this.doRegisterOverrideIdentifiers(a)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const i of e)this.overrideIdentifiers.add(i);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,i,n){e.forEach(a=>{this.validateAndRegisterProperties(a,i,a.extensionInfo,a.restrictedProperties,void 0,n),this.configurationContributors.push(a),this.registerJSONConfiguration(a)})}validateAndRegisterProperties(e,i=!0,n,a,o=3,c){var h;o=tx(e.scope)?o:e.scope;const g=e.properties;if(g)for(const x in g){const y=g[x];if(i&&xpi(x,y)){delete g[x];continue}if(y.source=n,y.defaultDefaultValue=g[x].default,this.updatePropertyDefaultValue(x,y),HL.test(x)?y.scope=void 0:(y.scope=tx(y.scope)?o:y.scope,y.restricted=tx(y.restricted)?!!(a!=null&&a.includes(x)):y.restricted),g[x].hasOwnProperty("included")&&!g[x].included){this.excludedConfigurationProperties[x]=g[x],delete g[x];continue}else this.configurationProperties[x]=g[x],!((h=g[x].policy)===null||h===void 0)&&h.name&&this.policyConfigurations.set(g[x].policy.name,x);!g[x].deprecationMessage&&g[x].markdownDeprecationMessage&&(g[x].deprecationMessage=g[x].markdownDeprecationMessage),c.add(x)}const _=e.allOf;if(_)for(const x of _)this.validateAndRegisterProperties(x,i,n,a,o,c)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const i=n=>{const a=n.properties;if(a)for(const c in a)this.updateSchema(c,a[c]);const o=n.allOf;o==null||o.forEach(i)};i(e)}updateSchema(e,i){switch(i.scope){case 1:break;case 2:break;case 6:break;case 3:break;case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=i;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const i=`[${e}]`,n={type:"object",description:V("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:V("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:Aie};this.updatePropertyDefaultValue(i,n)}}registerOverridePropertyPatternKey(){V("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),V("overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,i){const n=this.configurationDefaultsOverrides.get(e);let a=n==null?void 0:n.value,o=n==null?void 0:n.source;ID(a)&&(a=i.defaultDefaultValue,o=void 0),ID(a)&&(a=Dpi(i.type)),i.default=a,i.defaultValueSource=o}}const Yvt="\\[([^\\]]+)\\]",Lgt=new RegExp(Yvt,"g"),_pi=`^(${Yvt})+$`,HL=new RegExp(_pi);function s5e(r){const e=[];if(HL.test(r)){let i=Lgt.exec(r);for(;i!=null&&i.length;){const n=i[1].trim();n&&e.push(n),i=Lgt.exec(r)}}return OL(e)}function Dpi(r){switch(Array.isArray(r)?r[0]:r){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const tDe=new Epi;G1.add(jA.Configuration,tDe);function xpi(r,e){var i,n,a,o;return r.trim()?HL.test(r)?V("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",r):tDe.getConfigurationProperties()[r]!==void 0?V("config.property.duplicate","Cannot register '{0}'. This property is already registered.",r):!((i=e.policy)===null||i===void 0)&&i.name&&tDe.getPolicyConfigurations().get((n=e.policy)===null||n===void 0?void 0:n.name)!==void 0?V("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",r,(a=e.policy)===null||a===void 0?void 0:a.name,tDe.getPolicyConfigurations().get((o=e.policy)===null||o===void 0?void 0:o.name)):null:V("config.property.empty","Cannot register an empty property")}const vpi={ModesRegistry:"editor.modesRegistry"};class Cpi{constructor(){this._onDidChangeLanguages=new yi,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let i=0,n=this._languages.length;i{const g=new Set;return{info:new kpi(this,h,g),closing:g}}),o=new xgt(h=>{const g=new Set,_=new Set;return{info:new Fpi(this,h,g,_),opening:g,openingColorized:_}});for(const[h,g]of n){const _=a.get(h),x=o.get(g);_.closing.add(x.info),x.opening.add(_.info)}const c=i.colorizedBracketPairs?Ngt(i.colorizedBracketPairs):n.filter(h=>!(h[0]==="<"&&h[1]===">"));for(const[h,g]of c){const _=a.get(h),x=o.get(g);_.closing.add(x.info),x.openingColorized.add(_.info),x.opening.add(_.info)}this._openingBrackets=new Map([...a.cachedValues].map(([h,g])=>[h,g.info])),this._closingBrackets=new Map([...o.cachedValues].map(([h,g])=>[h,g.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function Ngt(r){return r.filter(([e,i])=>e!==""&&i!=="")}class Qvt{constructor(e,i){this.config=e,this.bracketText=i}get languageId(){return this.config.languageId}}class kpi extends Qvt{constructor(e,i,n){super(e,i),this.openedBrackets=n,this.isOpeningBracket=!0}}class Fpi extends Qvt{constructor(e,i,n,a){super(e,i),this.openingBrackets=n,this.openingColorizedBrackets=a,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var Api=function(r,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,i,n);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(o=(a<3?c(o):a>3?c(e,i,o):c(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},Pgt=function(r,e){return function(i,n){e(i,n,r)}};class vIe{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const B1=y0("languageConfigurationService");let oVe=class extends ln{constructor(e,i){super(),this.configurationService=e,this.languageService=i,this._registry=this._register(new Tpi),this.onDidChangeEmitter=this._register(new yi),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(sVe));this._register(this.configurationService.onDidChangeConfiguration(a=>{const o=a.change.keys.some(h=>n.has(h)),c=a.change.overrides.filter(([h,g])=>g.some(_=>n.has(_))).map(([h])=>h);if(o)this.configurations.clear(),this.onDidChangeEmitter.fire(new vIe(void 0));else for(const h of c)this.languageService.isRegisteredLanguageId(h)&&(this.configurations.delete(h),this.onDidChangeEmitter.fire(new vIe(h)))})),this._register(this._registry.onDidChange(a=>{this.configurations.delete(a.languageId),this.onDidChangeEmitter.fire(new vIe(a.languageId))}))}register(e,i,n){return this._registry.register(e,i,n)}getLanguageConfiguration(e){let i=this.configurations.get(e);return i||(i=Spi(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,i)),i}};oVe=Api([Pgt(0,ml),Pgt(1,s1)],oVe);function Spi(r,e,i,n){let a=e.getLanguageConfiguration(r);if(!a){if(!n.isRegisteredLanguageId(r))return new eJ(r,{});a=new eJ(r,{})}const o=Bpi(a.languageId,i),c=eCt([a.underlyingConfig,o]);return new eJ(a.languageId,c)}const sVe={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function Bpi(r,e){const i=e.getValue(sVe.brackets,{overrideIdentifier:r}),n=e.getValue(sVe.colorizedBracketPairs,{overrideIdentifier:r});return{brackets:Mgt(i),colorizedBracketPairs:Mgt(n)}}function Mgt(r){if(Array.isArray(r))return r.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function Xvt(r,e,i){const n=r.getLineContent(e);let a=ad(n);return a.length>i-1&&(a=a.substring(0,i-1)),a}function XG(r,e,i){r.tokenization.forceTokenization(e);const n=r.tokenization.getLineTokens(e),a=typeof i>"u"?r.getLineMaxColumn(e)-1:i-1;return w6e(n,a)}class wpi{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,i){const n=new zgt(e,i,++this._order);return this._entries.push(n),this._resolved=null,Bs(()=>{for(let a=0;ae.configuration)))}}function eCt(r){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of r)e={comments:i.comments||e.comments,brackets:i.brackets||e.brackets,wordPattern:i.wordPattern||e.wordPattern,indentationRules:i.indentationRules||e.indentationRules,onEnterRules:i.onEnterRules||e.onEnterRules,autoClosingPairs:i.autoClosingPairs||e.autoClosingPairs,surroundingPairs:i.surroundingPairs||e.surroundingPairs,autoCloseBefore:i.autoCloseBefore||e.autoCloseBefore,folding:i.folding||e.folding,colorizedBracketPairs:i.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||e.__electricCharacterSupport};return e}class zgt{constructor(e,i,n){this.configuration=e,this.priority=i,this.order=n}static cmp(e,i){return e.priority===i.priority?e.order-i.order:e.priority-i.priority}}class Igt{constructor(e){this.languageId=e}}class Tpi extends ln{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new yi),this.onDidChange=this._onDidChange.event,this._register(this.register(hx,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,i,n=0){let a=this._entries.get(e);a||(a=new wpi(e),this._entries.set(e,a));const o=a.register(i,n);return this._onDidChange.fire(new Igt(e)),Bs(()=>{o.dispose(),this._onDidChange.fire(new Igt(e))})}getLanguageConfiguration(e){const i=this._entries.get(e);return(i==null?void 0:i.getResolvedConfiguration())||null}}class eJ{constructor(e,i){this.languageId=e,this.underlyingConfig=i,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new yG(this.underlyingConfig):null,this.comments=eJ._handleComments(this.underlyingConfig),this.characterPair=new MJ(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||yGe,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new cpi(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new ypi(e,this.underlyingConfig)}getWordDefinition(){return ivt(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new npi(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new lpi(this.brackets)),this._electricCharacter}onEnter(e,i,n,a){return this._onEnterSupport?this._onEnterSupport.onEnter(e,i,n,a):null}getAutoClosingPairs(){return new q4i(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const i=e.comments;if(!i)return null;const n={};if(i.lineComment&&(n.lineCommentToken=i.lineComment),i.blockComment){const[a,o]=i.blockComment;n.blockCommentStartToken=a,n.blockCommentEndToken=o}return n}}X0(B1,oVe,1);const IJ=new class{clone(){return this}equals(r){return this===r}};function ZGe(r,e){return new PGe([new Sue(0,"",r)],e)}function M6e(r,e){const i=new Uint32Array(2);return i[0]=0,i[1]=(r<<0|0|0|32768|2<<24)>>>0,new D6e(i,e===null?IJ:e)}const lh=y0("modelService"),tCt=Symbol("MicrotaskDelay");var M6=function(r,e,i,n){function a(o){return o instanceof i?o:new i(function(c){c(o)})}return new(i||(i=Promise))(function(o,c){function h(x){try{_(n.next(x))}catch(y){c(y)}}function g(x){try{_(n.throw(x))}catch(y){c(y)}}function _(x){x.done?o(x.value):a(x.value).then(h,g)}_((n=n.apply(r,e||[])).next())})},rne=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],i;return e?e.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=r[o]&&function(c){return new Promise(function(h,g){c=r[o](c),a(h,g,c.done,c.value)})}}function a(o,c,h,g){Promise.resolve(g).then(function(_){o({value:_,done:h})},c)}};function lVe(r){return!!r&&typeof r.then=="function"}function u4(r){const e=new kp,i=r(e.token),n=new Promise((a,o)=>{const c=e.token.onCancellationRequested(()=>{c.dispose(),e.dispose(),o(new aN)});Promise.resolve(i).then(h=>{c.dispose(),e.dispose(),a(h)},h=>{c.dispose(),e.dispose(),o(h)})});return new class{cancel(){e.cancel()}then(a,o){return n.then(a,o)}catch(a){return this.then(void 0,a)}finally(a){return n.finally(a)}}}function z6e(r,e,i){return new Promise((n,a)=>{const o=e.onCancellationRequested(()=>{o.dispose(),n(i)});r.then(n,a).finally(()=>o.dispose())})}class Lpi{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const i=()=>{this.queuedPromise=null;const n=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,n};this.queuedPromise=new Promise(n=>{this.activePromise.then(i,i).then(n)})}return new Promise((i,n)=>{this.queuedPromise.then(i,n)})}return this.activePromise=e(),new Promise((i,n)=>{this.activePromise.then(a=>{this.activePromise=null,i(a)},a=>{this.activePromise=null,n(a)})})}}const Npi=(r,e)=>{let i=!0;const n=setTimeout(()=>{i=!1,e()},r);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},Ppi=r=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,r())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class ky{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,i=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((a,o)=>{this.doResolve=a,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const a=this.task;return this.task=null,a()}}));const n=()=>{var a;this.deferred=null,(a=this.doResolve)===null||a===void 0||a.call(this,null)};return this.deferred=i===tCt?Ppi(n):Npi(i,n),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&((e=this.doReject)===null||e===void 0||e.call(this,new aN),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class iCt{constructor(e){this.delayer=new ky(e),this.throttler=new Lpi}trigger(e,i){return this.delayer.trigger(()=>this.throttler.queue(e),i)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}function KL(r,e){return e?new Promise((i,n)=>{const a=setTimeout(()=>{o.dispose(),i()},r),o=e.onCancellationRequested(()=>{clearTimeout(a),o.dispose(),n(new aN)})}):u4(i=>KL(r,i))}function lR(r,e=0){const i=setTimeout(r,e);return Bs(()=>clearTimeout(i))}function nCt(r,e=n=>!!n,i=null){let n=0;const a=r.length,o=()=>{if(n>=a)return Promise.resolve(i);const c=r[n++];return Promise.resolve(c()).then(g=>e(g)?Promise.resolve(g):o())};return o()}class tv{constructor(e,i){this._token=-1,typeof e=="function"&&typeof i=="number"&&this.setIfNotSet(e,i)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,i){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},i)}setIfNotSet(e,i){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},i))}}class Dae{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,i){this.cancel(),this._token=setInterval(()=>{e()},i)}}class Qc{constructor(e,i){this.timeoutToken=-1,this.runner=e,this.timeout=i,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;(e=this.runner)===null||e===void 0||e.call(this)}}let TS;(function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?TS=r=>{Q6t(()=>{if(e)return;const i=Date.now()+15;r(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,i-Date.now())}}))});let e=!1;return{dispose(){e||(e=!0)}}}:TS=(r,e)=>{const i=requestIdleCallback(r,typeof e=="number"?{timeout:e}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(i))}}}})();class iDe{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(i){this._error=i}finally{this._didRun=!0}},this._handle=TS(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class YGe{get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,i)=>{this.completeCallback=e,this.errorCallback=i})}complete(e){return new Promise(i=>{this.completeCallback(e),this.resolved=!0,i()})}cancel(){new Promise(e=>{this.errorCallback(new aN),this.rejected=!0,e()})}}var cVe;(function(r){function e(n){return M6(this,void 0,void 0,function*(){let a;const o=yield Promise.all(n.map(c=>c.then(h=>h,h=>{a||(a=h)})));if(typeof a<"u")throw a;return o})}r.settled=e;function i(n){return new Promise((a,o)=>M6(this,void 0,void 0,function*(){try{yield n(a,o)}catch(c){o(c)}}))}r.withAsyncBody=i})(cVe||(cVe={}));class Bf{static fromArray(e){return new Bf(i=>{i.emitMany(e)})}static fromPromise(e){return new Bf(i=>M6(this,void 0,void 0,function*(){i.emitMany(yield e)}))}static fromPromises(e){return new Bf(i=>M6(this,void 0,void 0,function*(){yield Promise.all(e.map(n=>M6(this,void 0,void 0,function*(){return i.emitOne(yield n)})))}))}static merge(e){return new Bf(i=>M6(this,void 0,void 0,function*(){yield Promise.all(e.map(n=>{var a,o,c;return M6(this,void 0,void 0,function*(){var h,g,_,x;try{for(a=!0,o=rne(n);c=yield o.next(),h=c.done,!h;){x=c.value,a=!1;try{const y=x;i.emitOne(y)}finally{a=!0}}}catch(y){g={error:y}}finally{try{!a&&!h&&(_=o.return)&&(yield _.call(o))}finally{if(g)throw g.error}}})}))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new yi,queueMicrotask(()=>M6(this,void 0,void 0,function*(){const i={emitOne:n=>this.emitOne(n),emitMany:n=>this.emitMany(n),reject:n=>this.reject(n)};try{yield Promise.resolve(e(i)),this.resolve()}catch(n){this.reject(n)}finally{i.emitOne=void 0,i.emitMany=void 0,i.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:()=>M6(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(eM6(this,void 0,void 0,function*(){var a,o,c,h;try{for(var g=!0,_=rne(e),x;x=yield _.next(),a=x.done,!a;){h=x.value,g=!1;try{const y=h;n.emitOne(i(y))}finally{g=!0}}}catch(y){o={error:y}}finally{try{!g&&!a&&(c=_.return)&&(yield c.call(_))}finally{if(o)throw o.error}}}))}map(e){return Bf.map(this,e)}static filter(e,i){return new Bf(n=>M6(this,void 0,void 0,function*(){var a,o,c,h;try{for(var g=!0,_=rne(e),x;x=yield _.next(),a=x.done,!a;){h=x.value,g=!1;try{const y=h;i(y)&&n.emitOne(y)}finally{g=!0}}}catch(y){o={error:y}}finally{try{!g&&!a&&(c=_.return)&&(yield c.call(_))}finally{if(o)throw o.error}}}))}filter(e){return Bf.filter(this,e)}static coalesce(e){return Bf.filter(e,i=>!!i)}coalesce(){return Bf.coalesce(this)}static toPromise(e){var i,n,a,o,c,h,g;return M6(this,void 0,void 0,function*(){const _=[];try{for(i=!0,n=rne(e);a=yield n.next(),o=a.done,!o;){g=a.value,i=!1;try{const x=g;_.push(x)}finally{i=!0}}}catch(x){c={error:x}}finally{try{!i&&!o&&(h=n.return)&&(yield h.call(n))}finally{if(c)throw c.error}}return _})}toPromise(){return Bf.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}Bf.EMPTY=Bf.fromArray([]);class Mpi extends Bf{constructor(e,i){super(i),this._source=e}cancel(){this._source.cancel()}}function zpi(r){const e=new kp,i=r(e.token);return new Mpi(e,n=>M6(this,void 0,void 0,function*(){var a,o,c,h;const g=e.token.onCancellationRequested(()=>{g.dispose(),e.dispose(),n.reject(new aN)});try{try{for(var _=!0,x=rne(i),y;y=yield x.next(),a=y.done,!a;){h=y.value,_=!1;try{const S=h;if(e.token.isCancellationRequested)return;n.emitOne(S)}finally{_=!0}}}catch(S){o={error:S}}finally{try{!_&&!a&&(c=x.return)&&(yield c.call(x))}finally{if(o)throw o.error}}g.dispose(),e.dispose()}catch(S){g.dispose(),e.dispose(),n.reject(S)}}))}const Ipi="$initialize";let Rgt=!1;function dVe(r){rN&&(Rgt||(Rgt=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(r.message))}class Rpi{constructor(e,i,n,a){this.vsWorker=e,this.req=i,this.method=n,this.args=a,this.type=0}}class Ogt{constructor(e,i,n,a){this.vsWorker=e,this.seq=i,this.res=n,this.err=a,this.type=1}}class Opi{constructor(e,i,n,a){this.vsWorker=e,this.req=i,this.eventName=n,this.arg=a,this.type=2}}class jpi{constructor(e,i,n){this.vsWorker=e,this.req=i,this.event=n,this.type=3}}class Vpi{constructor(e,i){this.vsWorker=e,this.req=i,this.type=4}}class Hpi{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,i){const n=String(++this._lastSentReq);return new Promise((a,o)=>{this._pendingReplies[n]={resolve:a,reject:o},this._send(new Rpi(this._workerId,n,e,i))})}listen(e,i){let n=null;const a=new yi({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,a),this._send(new Opi(this._workerId,n,e,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new Vpi(this._workerId,n)),n=null}});return a.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const i=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),i.reject(n);return}i.resolve(e.res)}_handleRequestMessage(e){const i=e.req;this._handler.handleMessage(e.method,e.args).then(a=>{this._send(new Ogt(this._workerId,i,a,void 0))},a=>{a.detail instanceof Error&&(a.detail=mgt(a.detail)),this._send(new Ogt(this._workerId,i,void 0,mgt(a)))})}_handleSubscribeEventMessage(e){const i=e.req,n=this._handler.handleEvent(e.eventName,e.arg)(a=>{this._send(new jpi(this._workerId,i,a))});this._pendingEvents.set(i,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const i=[];if(e.type===0)for(let n=0;n{this._protocol.handleMessage(x)},x=>{a==null||a(x)})),this._protocol=new Hpi({sendMessage:(x,y)=>{this._worker.postMessage(x,y)},handleMessage:(x,y)=>{if(typeof n[x]!="function")return Promise.reject(new Error("Missing method "+x+" on main thread host."));try{return Promise.resolve(n[x].apply(n,y))}catch(S){return Promise.reject(S)}},handleEvent:(x,y)=>{if(rCt(x)){const S=n[x].call(n,y);if(typeof S!="function")throw new Error(`Missing dynamic event ${x} on main thread host.`);return S}if(uCt(x)){const S=n[x];if(typeof S!="function")throw new Error(`Missing event ${x} on main thread host.`);return S}throw new Error(`Malformed event name ${x}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;const c=globalThis.require;typeof c<"u"&&typeof c.getConfig=="function"?o=c.getConfig():typeof globalThis.requirejs<"u"&&(o=globalThis.requirejs.s.contexts._.config);const h=FGe(n);this._onModuleLoaded=this._protocol.sendMessage(Ipi,[this._worker.getId(),JSON.parse(JSON.stringify(o)),i,h]);const g=(x,y)=>this._request(x,y),_=(x,y)=>this._protocol.listen(x,y);this._lazyProxy=new Promise((x,y)=>{a=y,this._onModuleLoaded.then(S=>{x(Wpi(S,g,_))},S=>{y(S),this._onError("Worker failed to load "+i,S)})})}getProxyObject(){return this._lazyProxy}_request(e,i){return new Promise((n,a)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,i).then(n,a)},a)})}_onError(e,i){console.error(e),console.info(i)}}function uCt(r){return r[0]==="o"&&r[1]==="n"&&$F(r.charCodeAt(2))}function rCt(r){return/^onDynamic/.test(r)&&$F(r.charCodeAt(9))}function Wpi(r,e,i){const n=c=>function(){const h=Array.prototype.slice.call(arguments,0);return e(c,h)},a=c=>function(h){return i(c,h)},o={};for(const c of r){if(rCt(c)){o[c]=a(c);continue}if(uCt(c)){o[c]=i(c,void 0);continue}o[c]=n(c)}return o}var CIe;const jgt=(CIe=window.trustedTypes)===null||CIe===void 0?void 0:CIe.createPolicy("defaultWorkerFactory",{createScriptURL:r=>r});function Gpi(r){const e=globalThis.MonacoEnvironment;if(e){if(typeof e.getWorker=="function")return e.getWorker("workerMain.js",r);if(typeof e.getWorkerUrl=="function"){const i=e.getWorkerUrl("workerMain.js",r);return new Worker(jgt?jgt.createScriptURL(i):i,{name:r})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function Jpi(r){return typeof r.then=="function"}class $pi{constructor(e,i,n,a,o){this.id=i;const c=Gpi(n);Jpi(c)?this.worker=c:this.worker=Promise.resolve(c),this.postMessage(e,[]),this.worker.then(h=>{h.onmessage=function(g){a(g.data)},h.onmessageerror=o,typeof h.addEventListener=="function"&&h.addEventListener("error",o)})}getId(){return this.id}postMessage(e,i){var n;(n=this.worker)===null||n===void 0||n.then(a=>a.postMessage(e,i))}dispose(){var e;(e=this.worker)===null||e===void 0||e.then(i=>i.terminate()),this.worker=null}}class I6e{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,i,n){const a=++I6e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new $pi(e,a,this._label||"anonymous"+a,i,o=>{dVe(o),this._webWorkerFailedBeforeError=o,n(o)})}}I6e.LAST_WORKER_ID=0;class LT{constructor(e,i,n,a){this.originalStart=e,this.originalLength=i,this.modifiedStart=n,this.modifiedLength=a}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function aCt(r){return R6e(r,0)}function R6e(r,e){switch(typeof r){case"object":return r===null?LS(349,e):Array.isArray(r)?qpi(r,e):Zpi(r,e);case"string":return QGe(r,e);case"boolean":return Upi(r,e);case"number":return LS(r,e);case"undefined":return LS(937,e);default:return LS(617,e)}}function LS(r,e){return(e<<5)-e+r|0}function Upi(r,e){return LS(r?433:863,e)}function QGe(r,e){e=LS(149417,e);for(let i=0,n=r.length;iR6e(n,i),e)}function Zpi(r,e){return e=LS(181387,e),Object.keys(r).sort().reduce((i,n)=>(i=QGe(n,i),R6e(r[n],i)),e)}function bIe(r,e,i=32){const n=i-e,a=~((1<>>n)>>>0}function Vgt(r,e=0,i=r.byteLength,n=0){for(let a=0;ai.toString(16).padStart(2,"0")).join(""):Ypi((r>>>0).toString(16),e/4)}class O6e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const i=e.length;if(i===0)return;const n=this._buff;let a=this._buffLen,o=this._leftoverHighSurrogate,c,h;for(o!==0?(c=o,h=-1,o=0):(c=e.charCodeAt(0),h=0);;){let g=c;if(t4(c))if(h+1>>6,e[i++]=128|(n&63)>>>0):n<65536?(e[i++]=224|(n&61440)>>>12,e[i++]=128|(n&4032)>>>6,e[i++]=128|(n&63)>>>0):(e[i++]=240|(n&1835008)>>>18,e[i++]=128|(n&258048)>>>12,e[i++]=128|(n&4032)>>>6,e[i++]=128|(n&63)>>>0),i>=64&&(this._step(),i-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),i}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Sie(this._h0)+Sie(this._h1)+Sie(this._h2)+Sie(this._h3)+Sie(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Vgt(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Vgt(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=O6e._bigBlock32,i=this._buffDV;for(let y=0;y<64;y+=4)e.setUint32(y,i.getUint32(y,!1),!1);for(let y=64;y<320;y+=4)e.setUint32(y,bIe(e.getUint32(y-12,!1)^e.getUint32(y-32,!1)^e.getUint32(y-56,!1)^e.getUint32(y-64,!1),1),!1);let n=this._h0,a=this._h1,o=this._h2,c=this._h3,h=this._h4,g,_,x;for(let y=0;y<80;y++)y<20?(g=a&o|~a&c,_=1518500249):y<40?(g=a^o^c,_=1859775393):y<60?(g=a&o|a&c|o&c,_=2400959708):(g=a^o^c,_=3395469782),x=bIe(n,5)+g+h+_+e.getUint32(y*4,!1)&4294967295,h=c,c=o,o=bIe(a,30),a=n,n=x;this._h0=this._h0+n&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+h&4294967295}}O6e._bigBlock32=new DataView(new ArrayBuffer(320));class Hgt{constructor(e){this.source=e}getElements(){const e=this.source,i=new Int32Array(e.length);for(let n=0,a=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new LT(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,i){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),this.m_originalCount++}AddModifiedElement(e,i){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class XF{constructor(e,i,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=i;const[a,o,c]=XF._getElements(e),[h,g,_]=XF._getElements(i);this._hasStrings=c&&_,this._originalStringElements=a,this._originalElementsOrHash=o,this._modifiedStringElements=h,this._modifiedElementsOrHash=g,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const i=e.getElements();if(XF._isStringArray(i)){const n=new Int32Array(i.length);for(let a=0,o=i.length;a=e&&a>=n&&this.ElementsAreEqual(i,a);)i--,a--;if(e>i||n>a){let y;return n<=a?(KW.Assert(e===i+1,"originalStart should only be one more than originalEnd"),y=[new LT(e,0,n,a-n+1)]):e<=i?(KW.Assert(n===a+1,"modifiedStart should only be one more than modifiedEnd"),y=[new LT(e,i-e+1,n,0)]):(KW.Assert(e===i+1,"originalStart should only be one more than originalEnd"),KW.Assert(n===a+1,"modifiedStart should only be one more than modifiedEnd"),y=[]),y}const c=[0],h=[0],g=this.ComputeRecursionPoint(e,i,n,a,c,h,o),_=c[0],x=h[0];if(g!==null)return g;if(!o[0]){const y=this.ComputeDiffRecursive(e,_,n,x,o);let S=[];return o[0]?S=[new LT(_+1,i-(_+1)+1,x+1,a-(x+1)+1)]:S=this.ComputeDiffRecursive(_+1,i,x+1,a,o),this.ConcatenateChanges(y,S)}return[new LT(e,i-e+1,n,a-n+1)]}WALKTRACE(e,i,n,a,o,c,h,g,_,x,y,S,L,R,G,ie,ue,re){let _e=null,ye=null,Le=new Kgt,lt=i,$e=n,Ye=L[0]-ie[0]-a,rt=-1073741824,Ft=this.m_forwardHistory.length-1;do{const Zt=Ye+e;Zt===lt||Zt<$e&&_[Zt-1]<_[Zt+1]?(y=_[Zt+1],R=y-Ye-a,y=0&&(_=this.m_forwardHistory[Ft],e=_[0],lt=1,$e=_.length-1)}while(--Ft>=-1);if(_e=Le.getReverseChanges(),re[0]){let Zt=L[0]+1,Ot=ie[0]+1;if(_e!==null&&_e.length>0){const ui=_e[_e.length-1];Zt=Math.max(Zt,ui.getOriginalEnd()),Ot=Math.max(Ot,ui.getModifiedEnd())}ye=[new LT(Zt,S-Zt+1,Ot,G-Ot+1)]}else{Le=new Kgt,lt=c,$e=h,Ye=L[0]-ie[0]-g,rt=1073741824,Ft=ue?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const Zt=Ye+o;Zt===lt||Zt<$e&&x[Zt-1]>=x[Zt+1]?(y=x[Zt+1]-1,R=y-Ye-g,y>rt&&Le.MarkNextChange(),rt=y+1,Le.AddOriginalElement(y+1,R+1),Ye=Zt+1-o):(y=x[Zt-1],R=y-Ye-g,y>rt&&Le.MarkNextChange(),rt=y,Le.AddModifiedElement(y+1,R+1),Ye=Zt-1-o),Ft>=0&&(x=this.m_reverseHistory[Ft],o=x[0],lt=1,$e=x.length-1)}while(--Ft>=-1);ye=Le.getChanges()}return this.ConcatenateChanges(_e,ye)}ComputeRecursionPoint(e,i,n,a,o,c,h){let g=0,_=0,x=0,y=0,S=0,L=0;e--,n--,o[0]=0,c[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const R=i-e+(a-n),G=R+1,ie=new Int32Array(G),ue=new Int32Array(G),re=a-n,_e=i-e,ye=e-n,Le=i-a,$e=(_e-re)%2===0;ie[re]=e,ue[_e]=i,h[0]=!1;for(let Ye=1;Ye<=R/2+1;Ye++){let rt=0,Ft=0;x=this.ClipDiagonalBound(re-Ye,Ye,re,G),y=this.ClipDiagonalBound(re+Ye,Ye,re,G);for(let Ot=x;Ot<=y;Ot+=2){Ot===x||Otrt+Ft&&(rt=g,Ft=_),!$e&&Math.abs(Ot-_e)<=Ye-1&&g>=ue[Ot])return o[0]=g,c[0]=_,ui<=ue[Ot]&&1447>0&&Ye<=1448?this.WALKTRACE(re,x,y,ye,_e,S,L,Le,ie,ue,g,i,o,_,a,c,$e,h):null}const Zt=(rt-e+(Ft-n)-Ye)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(rt,Zt))return h[0]=!0,o[0]=rt,c[0]=Ft,Zt>0&&1447>0&&Ye<=1448?this.WALKTRACE(re,x,y,ye,_e,S,L,Le,ie,ue,g,i,o,_,a,c,$e,h):(e++,n++,[new LT(e,i-e+1,n,a-n+1)]);S=this.ClipDiagonalBound(_e-Ye,Ye,_e,G),L=this.ClipDiagonalBound(_e+Ye,Ye,_e,G);for(let Ot=S;Ot<=L;Ot+=2){Ot===S||Ot=ue[Ot+1]?g=ue[Ot+1]-1:g=ue[Ot-1],_=g-(Ot-_e)-Le;const ui=g;for(;g>e&&_>n&&this.ElementsAreEqual(g,_);)g--,_--;if(ue[Ot]=g,$e&&Math.abs(Ot-re)<=Ye&&g<=ie[Ot])return o[0]=g,c[0]=_,ui>=ie[Ot]&&1447>0&&Ye<=1448?this.WALKTRACE(re,x,y,ye,_e,S,L,Le,ie,ue,g,i,o,_,a,c,$e,h):null}if(Ye<=1447){let Ot=new Int32Array(y-x+2);Ot[0]=re-x+1,WW.Copy2(ie,x,Ot,1,y-x+1),this.m_forwardHistory.push(Ot),Ot=new Int32Array(L-S+2),Ot[0]=_e-S+1,WW.Copy2(ue,S,Ot,1,L-S+1),this.m_reverseHistory.push(Ot)}}return this.WALKTRACE(re,x,y,ye,_e,S,L,Le,ie,ue,g,i,o,_,a,c,$e,h)}PrettifyChanges(e){for(let i=0;i0,h=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;i--){const n=e[i];let a=0,o=0;if(i>0){const y=e[i-1];a=y.originalStart+y.originalLength,o=y.modifiedStart+y.modifiedLength}const c=n.originalLength>0,h=n.modifiedLength>0;let g=0,_=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let y=1;;y++){const S=n.originalStart-y,L=n.modifiedStart-y;if(S_&&(_=G,g=y)}n.originalStart-=g,n.modifiedStart-=g;const x=[null];if(i>0&&this.ChangesOverlap(e[i-1],e[i],x)){e[i-1]=x[0],e.splice(i,1),i++;continue}}if(this._hasStrings)for(let i=1,n=e.length;i0&&L>g&&(g=L,_=y,x=S)}return g>0?[_,x]:null}_contiguousSequenceScore(e,i,n){let a=0;for(let o=0;o=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,i){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(i>0){const n=e+i;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,i){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(i>0){const n=e+i;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,i,n,a){const o=this._OriginalRegionIsBoundary(e,i)?1:0,c=this._ModifiedRegionIsBoundary(n,a)?1:0;return o+c}ConcatenateChanges(e,i){const n=[];if(e.length===0||i.length===0)return i.length>0?i:e;if(this.ChangesOverlap(e[e.length-1],i[0],n)){const a=new Array(e.length+i.length-1);return WW.Copy(e,0,a,0,e.length-1),a[e.length-1]=n[0],WW.Copy(i,1,a,e.length,i.length-1),a}else{const a=new Array(e.length+i.length);return WW.Copy(e,0,a,0,e.length),WW.Copy(i,0,a,e.length,i.length),a}}ChangesOverlap(e,i,n){if(KW.Assert(e.originalStart<=i.originalStart,"Left change is not less than or equal to right change"),KW.Assert(e.modifiedStart<=i.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=i.originalStart||e.modifiedStart+e.modifiedLength>=i.modifiedStart){const a=e.originalStart;let o=e.originalLength;const c=e.modifiedStart;let h=e.modifiedLength;return e.originalStart+e.originalLength>=i.originalStart&&(o=i.originalStart+i.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=i.modifiedStart&&(h=i.modifiedStart+i.modifiedLength-e.modifiedStart),n[0]=new LT(a,o,c,h),!0}else return n[0]=null,!1}ClipDiagonalBound(e,i,n,a){if(e>=0&&e255?255:r|0}function GW(r){return r<0?0:r>4294967295?4294967295:r|0}class Xpi{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,i){e=GW(e);const n=this.values,a=this.prefixSum,o=i.length;return o===0?!1:(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(i,e),e-1=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,i){return e=GW(e),i=GW(i),this.values[e]===i?!1:(this.values[e]=i,e-1=n.length)return!1;const o=n.length-e;return i>=o&&(i=o),i===0?!1:(this.values=new Uint32Array(n.length-i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+i),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=GW(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let i=this.prefixSumValidIndex[0]+1;i===0&&(this.prefixSum[0]=this.values[0],i++),e>=this.values.length&&(e=this.values.length-1);for(let n=i;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let i=0,n=this.values.length-1,a=0,o=0,c=0;for(;i<=n;)if(a=i+(n-i)/2|0,o=this.prefixSum[a],c=o-this.values[a],e=o)i=a+1;else break;return new oCt(a,e-c)}}class egi{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const i=this._indexBySum[e],n=i>0?this._prefixSum[i-1]:0;return new oCt(i,e-n)}removeValues(e,i){this._values.splice(e,i),this._invalidate(e)}insertValues(e,i){this._values=E6e(this._values,e,i),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,i=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=a+n;for(let o=0;o=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class c5e{constructor(){this._actual=new C$(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}class igi{constructor(e,i,n){const a=new Uint8Array(e*i);for(let o=0,c=e*i;oi&&(i=g),h>n&&(n=h),_>n&&(n=_)}i++,n++;const a=new igi(n,i,0);for(let o=0,c=e.length;o=this._maxCharCode?0:this._states.get(e,i)}}let yIe=null;function ugi(){return yIe===null&&(yIe=new ngi([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),yIe}let Bie=null;function rgi(){if(Bie===null){Bie=new C$(0);const r=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let i=0;ia);if(a>0){const h=i.charCodeAt(a-1),g=i.charCodeAt(c);(h===40&&g===41||h===91&&g===93||h===123&&g===125)&&c--}return{range:{startLineNumber:n,startColumn:a+1,endLineNumber:n,endColumn:c+2},url:i.substring(a,c+1)}}static computeLinks(e,i=ugi()){const n=rgi(),a=[];for(let o=1,c=e.getLineCount();o<=c;o++){const h=e.getLineContent(o),g=h.length;let _=0,x=0,y=0,S=1,L=!1,R=!1,G=!1,ie=!1;for(;_=0?(a+=n?1:-1,a<0?a=e.length-1:a%=e.length,e[a]):null}}hVe.INSTANCE=new hVe;class ogi extends C${constructor(e){super(0);for(let i=0,n=e.length;i(e.hasOwnProperty(i)||(e[i]=r(i)),e[i])}const Z6=sgi(r=>new ogi(r)),lgi=999;class dI{constructor(e,i,n,a){this.searchString=e,this.isRegex=i,this.matchCase=n,this.wordSeparators=a}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=cgi(this.searchString):e=this.searchString.indexOf(` -`)>=0;let i=null;try{i=Lvt(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!i)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new J4i(i,this.wordSeparators?Z6(this.wordSeparators):null,n?this.searchString:null)}}function cgi(r){if(!r||r.length===0)return!1;for(let e=0,i=r.length;e=i)break;const a=r.charCodeAt(e);if(a===110||a===114||a===87)return!0}}return!1}function xI(r,e,i){if(!i)return new Pue(r,null);const n=[];for(let a=0,o=e.length;a>0);i[o]>=e?a=o-1:i[o+1]>=e?(n=o,a=o):n=o+1}return n+1}}class A_e{static findMatches(e,i,n,a,o){const c=i.parseSearchRequest();return c?c.regex.multiline?this._doFindMatchesMultiline(e,n,new kG(c.wordSeparators,c.regex),a,o):this._doFindMatchesLineByLine(e,n,c,a,o):[]}static _getMultilineMatchRange(e,i,n,a,o,c){let h,g=0;a?(g=a.findLineFeedCountBeforeOffset(o),h=i+o+g):h=i+o;let _;if(a){const L=a.findLineFeedCountBeforeOffset(o+c.length)-g;_=h+c.length+L}else _=h+c.length;const x=e.getPositionAt(h),y=e.getPositionAt(_);return new ot(x.lineNumber,x.column,y.lineNumber,y.column)}static _doFindMatchesMultiline(e,i,n,a,o){const c=e.getOffsetAt(i.getStartPosition()),h=e.getValueInRange(i,1),g=e.getEOL()===`\r -`?new Wgt(h):null,_=[];let x=0,y;for(n.reset(0);y=n.next(h);)if(_[x++]=xI(this._getMultilineMatchRange(e,c,h,g,y.index,y[0]),y,a),x>=o)return _;return _}static _doFindMatchesLineByLine(e,i,n,a,o){const c=[];let h=0;if(i.startLineNumber===i.endLineNumber){const _=e.getLineContent(i.startLineNumber).substring(i.startColumn-1,i.endColumn-1);return h=this._findMatchesInLine(n,_,i.startLineNumber,i.startColumn-1,h,c,a,o),c}const g=e.getLineContent(i.startLineNumber).substring(i.startColumn-1);h=this._findMatchesInLine(n,g,i.startLineNumber,i.startColumn-1,h,c,a,o);for(let _=i.startLineNumber+1;_=g))return o;return o}const x=new kG(e.wordSeparators,e.regex);let y;x.reset(0);do if(y=x.next(i),y&&(c[o++]=xI(new ot(n,y.index+1+a,n,y.index+1+y[0].length+a),y,h),o>=g))return o;while(y);return o}static findNextMatch(e,i,n,a){const o=i.parseSearchRequest();if(!o)return null;const c=new kG(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,c,a):this._doFindNextMatchLineByLine(e,n,c,a)}static _doFindNextMatchMultiline(e,i,n,a){const o=new Vi(i.lineNumber,1),c=e.getOffsetAt(o),h=e.getLineCount(),g=e.getValueInRange(new ot(o.lineNumber,o.column,h,e.getLineMaxColumn(h)),1),_=e.getEOL()===`\r -`?new Wgt(g):null;n.reset(i.column-1);const x=n.next(g);return x?xI(this._getMultilineMatchRange(e,c,g,_,x.index,x[0]),x,a):i.lineNumber!==1||i.column!==1?this._doFindNextMatchMultiline(e,new Vi(1,1),n,a):null}static _doFindNextMatchLineByLine(e,i,n,a){const o=e.getLineCount(),c=i.lineNumber,h=e.getLineContent(c),g=this._findFirstMatchInLine(n,h,c,i.column,a);if(g)return g;for(let _=1;_<=o;_++){const x=(c+_-1)%o,y=e.getLineContent(x+1),S=this._findFirstMatchInLine(n,y,x+1,1,a);if(S)return S}return null}static _findFirstMatchInLine(e,i,n,a,o){e.reset(a-1);const c=e.next(i);return c?xI(new ot(n,c.index+1,n,c.index+1+c[0].length),c,o):null}static findPreviousMatch(e,i,n,a){const o=i.parseSearchRequest();if(!o)return null;const c=new kG(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,c,a):this._doFindPreviousMatchLineByLine(e,n,c,a)}static _doFindPreviousMatchMultiline(e,i,n,a){const o=this._doFindMatchesMultiline(e,new ot(1,1,i.lineNumber,i.column),n,a,10*lgi);if(o.length>0)return o[o.length-1];const c=e.getLineCount();return i.lineNumber!==c||i.column!==e.getLineMaxColumn(c)?this._doFindPreviousMatchMultiline(e,new Vi(c,e.getLineMaxColumn(c)),n,a):null}static _doFindPreviousMatchLineByLine(e,i,n,a){const o=e.getLineCount(),c=i.lineNumber,h=e.getLineContent(c).substring(0,i.column-1),g=this._findLastMatchInLine(n,h,c,a);if(g)return g;for(let _=1;_<=o;_++){const x=(o+c-_-1)%o,y=e.getLineContent(x+1),S=this._findLastMatchInLine(n,y,x+1,a);if(S)return S}return null}static _findLastMatchInLine(e,i,n,a){let o=null,c;for(e.reset(0);c=e.next(i);)o=xI(new ot(n,c.index+1,n,c.index+1+c[0].length),c,a);return o}}function dgi(r,e,i,n,a){if(n===0)return!0;const o=e.charCodeAt(n-1);if(r.get(o)!==0||o===13||o===10)return!0;if(a>0){const c=e.charCodeAt(n);if(r.get(c)!==0)return!0}return!1}function hgi(r,e,i,n,a){if(n+a===i)return!0;const o=e.charCodeAt(n+a);if(r.get(o)!==0||o===13||o===10)return!0;if(a>0){const c=e.charCodeAt(n+a-1);if(r.get(c)!==0)return!0}return!1}function XGe(r,e,i,n,a){return dgi(r,e,i,n,a)&&hgi(r,e,i,n,a)}class kG{constructor(e,i){this._wordSeparators=e,this._searchRegex=i,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const i=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===i||(n=this._searchRegex.exec(e),!n))return null;const a=n.index,o=n[0].length;if(a===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){r5e(e,i,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=a,this._prevMatchLength=o,!this._wordSeparators||XGe(this._wordSeparators,e,i,a,o))return n}while(n);return null}}class eJe{static computeUnicodeHighlights(e,i,n){const a=n?n.startLineNumber:1,o=n?n.endLineNumber:e.getLineCount(),c=new Ggt(i),h=c.getCandidateCodePoints();let g;h==="allNonBasicAscii"?g=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):g=new RegExp(`${fgi(Array.from(h))}`,"g");const _=new kG(null,g),x=[];let y=!1,S,L=0,R=0,G=0;e:for(let ie=a,ue=o;ie<=ue;ie++){const re=e.getLineContent(ie),_e=re.length;_.reset(0);do if(S=_.next(re),S){let ye=S.index,Le=S.index+S[0].length;if(ye>0){const rt=re.charCodeAt(ye-1);t4(rt)&&ye--}if(Le+1<_e){const rt=re.charCodeAt(Le-1);t4(rt)&&Le++}const lt=re.substring(ye,Le);let $e=Fue(ye+1,yGe,re,0);$e&&$e.endColumn<=ye+1&&($e=null);const Ye=c.shouldHighlightNonBasicASCII(lt,$e?$e.word:null);if(Ye!==0){if(Ye===3?L++:Ye===2?R++:Ye===1?G++:x6e(),x.length>=1e3){y=!0;break e}x.push(new ot(ie,ye+1,ie,Le+1))}}while(S)}return{ranges:x,hasMore:y,ambiguousCharacterCount:L,invisibleCharacterCount:R,nonBasicAsciiCharacterCount:G}}static computeUnicodeHighlightReason(e,i){const n=new Ggt(i);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const o=e.codePointAt(0),c=n.ambiguousCharacters.getPrimaryConfusable(o),h=QC.getLocales().filter(g=>!QC.getInstance(new Set([...i.allowedLocales,g])).isAmbiguous(o));return{kind:0,confusableWith:String.fromCodePoint(c),notAmbiguousInLocales:h}}case 1:return{kind:2}}}}function fgi(r,e){return`[${mx(r.map(n=>String.fromCodePoint(n)).join(""))}]`}class Ggt{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=QC.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const i of DA.codePoints)Jgt(String.fromCodePoint(i))||e.add(i);if(this.options.ambiguousCharacters)for(const i of this.ambiguousCharacters.getConfusableCodePoints())e.add(i);for(const i of this.allowedCodePoints)e.delete(i);return e}shouldHighlightNonBasicASCII(e,i){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let a=!1,o=!1;if(i)for(const c of i){const h=c.codePointAt(0),g=pae(c);a=a||g,!g&&!this.ambiguousCharacters.isAmbiguous(h)&&!DA.isInvisibleCharacter(h)&&(o=!0)}return!a&&o?0:this.options.invisibleCharacters&&!Jgt(e)&&DA.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function Jgt(r){return r===" "||r===` -`||r===" "}class sCt{constructor(e,i){this.changes=e,this.hitTimeout=i}}class RJ{constructor(e,i,n){this.originalRange=e,this.modifiedRange=i,this.innerChanges=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}class j6e{constructor(e,i){this.originalRange=e,this.modifiedRange=i}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}let K6=class ane{static joinMany(e){if(e.length===0)return[];let i=e[0];for(let n=1;n=h.startLineNumber?c=new ane(c.startLineNumber,Math.max(c.endLineNumberExclusive,h.endLineNumberExclusive)):(n.push(c),c=h)}return c!==null&&n.push(c),n}constructor(e,i){if(e>i)throw new OA(`startLineNumber ${e} cannot be after endLineNumberExclusive ${i}`);this.startLineNumber=e,this.endLineNumberExclusive=i}contains(e){return this.startLineNumber<=e&&enew j6e(new ot(L.originalStartLineNumber,L.originalStartColumn,L.originalEndLineNumber,L.originalEndColumn),new ot(L.modifiedStartLineNumber,L.modifiedStartColumn,L.modifiedEndLineNumber,L.modifiedEndColumn))));g&&(g.modifiedRange.endLineNumberExclusive===S.modifiedRange.startLineNumber||g.originalRange.endLineNumberExclusive===S.originalRange.startLineNumber)&&(S=new RJ(g.originalRange.join(S.originalRange),g.modifiedRange.join(S.modifiedRange),g.innerChanges&&S.innerChanges?g.innerChanges.concat(S.innerChanges):void 0),h.pop()),h.push(S),g=S}return $Ge(()=>jvt(h,(_,x)=>x.originalRange.startLineNumber-_.originalRange.endLineNumberExclusive===x.modifiedRange.startLineNumber-_.modifiedRange.endLineNumberExclusive&&_.originalRange.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[i]},${this._columns[i]})`).join(", ")+"]"}_assertIndex(e,i){if(e<0||e>=i.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class tJ{constructor(e,i,n,a,o,c,h,g){this.originalStartLineNumber=e,this.originalStartColumn=i,this.originalEndLineNumber=n,this.originalEndColumn=a,this.modifiedStartLineNumber=o,this.modifiedStartColumn=c,this.modifiedEndLineNumber=h,this.modifiedEndColumn=g}static createFromDiffChange(e,i,n){const a=i.getStartLineNumber(e.originalStart),o=i.getStartColumn(e.originalStart),c=i.getEndLineNumber(e.originalStart+e.originalLength-1),h=i.getEndColumn(e.originalStart+e.originalLength-1),g=n.getStartLineNumber(e.modifiedStart),_=n.getStartColumn(e.modifiedStart),x=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),y=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new tJ(a,o,c,h,g,_,x,y)}}function Egi(r){if(r.length<=1)return r;const e=[r[0]];let i=e[0];for(let n=1,a=r.length;n0&&i.originalLength<20&&i.modifiedLength>0&&i.modifiedLength<20&&o()){const L=n.createCharSequence(e,i.originalStart,i.originalStart+i.originalLength-1),R=a.createCharSequence(e,i.modifiedStart,i.modifiedStart+i.modifiedLength-1);if(L.getElements().length>0&&R.getElements().length>0){let G=lCt(L,R,o,!0).changes;h&&(G=Egi(G)),S=[];for(let ie=0,ue=G.length;ie1&&G>1;){const ie=S.charCodeAt(R-2),ue=L.charCodeAt(G-2);if(ie!==ue)break;R--,G--}(R>1||G>1)&&this._pushTrimWhitespaceCharChange(a,o+1,1,R,c+1,1,G)}{let R=mVe(S,1),G=mVe(L,1);const ie=S.length+1,ue=L.length+1;for(;R!0;const e=Date.now();return()=>Date.now()-ei))return new wh(e,i)}constructor(e,i){if(this.start=e,this.endExclusive=i,e>i)throw new OA(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new wh(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}join(e){return new wh(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const i=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(i<=n)return new wh(i,n)}}class JS{static trivial(e,i){return new JS([new XC(new wh(0,e.length),new wh(0,i.length))],!1)}static trivialTimedOut(e,i){return new JS([new XC(new wh(0,e.length),new wh(0,i.length))],!0)}constructor(e,i){this.diffs=e,this.hitTimeout=i}}class XC{constructor(e,i){this.seq1Range=e,this.seq2Range=i}reverse(){return new XC(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new XC(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}}class Mue{isValid(){return!0}}Mue.instance=new Mue;class Dgi{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new OA("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&G>0&&c.get(R-1,G-1)===3&&(re+=h.get(R-1,G-1)),re+=a?a(R,G):1):re=-1;const _e=Math.max(ie,ue,re);if(_e===re){const ye=R>0&&G>0?h.get(R-1,G-1):0;h.set(R,G,ye+1),c.set(R,G,3)}else _e===ie?(h.set(R,G,0),c.set(R,G,1)):_e===ue&&(h.set(R,G,0),c.set(R,G,2));o.set(R,G,_e)}const g=[];let _=e.length,x=i.length;function y(R,G){(R+1!==_||G+1!==x)&&g.push(new XC(new wh(R+1,_),new wh(G+1,x))),_=R,x=G}let S=e.length-1,L=i.length-1;for(;S>=0&&L>=0;)c.get(S,L)===3?(y(S,L),S--,L--):c.get(S,L)===1?S--:L--;return y(-1,-1),g.reverse(),new JS(g,!1)}}function qgt(r,e,i){let n=i;return n=Cgi(r,e,n),n=bgi(r,e,n),n}function vgi(r,e,i){const n=[];for(const a of i){const o=n[n.length-1];if(!o){n.push(a);continue}a.seq1Range.start-o.seq1Range.endExclusive<=2||a.seq2Range.start-o.seq2Range.endExclusive<=2?n[n.length-1]=new XC(o.seq1Range.join(a.seq1Range),o.seq2Range.join(a.seq2Range)):n.push(a)}return n}function Cgi(r,e,i){const n=[];i.length>0&&n.push(i[0]);for(let a=1;a0?i[n-1].seq2Range.endExclusive:-1,c=n+10?i[n-1].seq1Range.endExclusive:-1,c=n+1a&&i.getElement(r.seq2Range.start-c)===i.getElement(r.seq2Range.endExclusive-c)&&c<20;)c++;c--;let h=0;for(;r.seq2Range.start+h_&&(_=R,g=x)}return g!==0?new XC(r.seq1Range.delta(g),r.seq2Range.delta(g)):r}class ygi{compute(e,i,n=Mue.instance){if(e.length===0||i.length===0)return JS.trivial(e,i);function a(L,R){for(;L=this.negativeArr.length){const n=this.negativeArr;this.negativeArr=new Int32Array(n.length*2),this.negativeArr.set(n)}this.negativeArr[e]=i}else{if(e>=this.positiveArr.length){const n=this.positiveArr;this.positiveArr=new Int32Array(n.length*2),this.positiveArr.set(n)}this.positiveArr[e]=i}}}class Fgi{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,i){e<0?(e=-e-1,this.negativeArr[e]=i):this.positiveArr[e]=i}}class Agi{constructor(){this.dynamicProgrammingDiffing=new xgi,this.myersDiffingAlgorithm=new ygi}computeDiff(e,i,n){const a=n.maxComputationTimeMs===0?Mue.instance:new Dgi(n.maxComputationTimeMs),o=!n.ignoreTrimWhitespace,c=new Map;function h(ye){let Le=c.get(ye);return Le===void 0&&(Le=c.size,c.set(ye,Le)),Le}const g=e.map(ye=>h(ye.trim())),_=i.map(ye=>h(ye.trim())),x=new Qgt(g,e),y=new Qgt(_,i),S=x.length+y.length<1500?this.dynamicProgrammingDiffing.compute(x,y,a,(ye,Le)=>e[ye]===i[Le]?i[Le].length===0?.1:1+Math.log(1+i[Le].length):.99):this.myersDiffingAlgorithm.compute(x,y);let L=S.diffs,R=S.hitTimeout;L=qgt(x,y,L);const G=[],ie=ye=>{if(o)for(let Le=0;Leye.seq1Range.start-ue===ye.seq2Range.start-re);const Le=ye.seq1Range.start-ue;ie(Le),ue=ye.seq1Range.endExclusive,re=ye.seq2Range.endExclusive;const lt=this.refineDiff(e,i,ye,a,o);lt.hitTimeout&&(R=!0);for(const $e of lt.mappings)G.push($e)}ie(e.length-ue);const _e=wgi(G,e,i);return new sCt(_e,R)}refineDiff(e,i,n,a,o){const c=new eEt(e,n.seq1Range,o),h=new eEt(i,n.seq2Range,o),g=c.length+h.length<500?this.dynamicProgrammingDiffing.compute(c,h,a):this.myersDiffingAlgorithm.compute(c,h,a);let _=g.diffs;return _=qgt(c,h,_),_=Sgi(c,h,_),_=vgi(c,h,_),{mappings:_.map(y=>new j6e(c.translateRange(y.seq1Range),h.translateRange(y.seq2Range))),hitTimeout:g.hitTimeout}}}function Sgi(r,e,i){const n=[];let a;function o(){if(!a)return;const h=a.s1Range.length-a.deleted;a.s2Range.length-a.added,Math.max(a.deleted,a.added)+(a.count-1)>h&&n.push(new XC(a.s1Range,a.s2Range)),a=void 0}for(const h of i){let g=function(L,R){var G,ie,ue,re;if(!a||!a.s1Range.containsRange(L)||!a.s2Range.containsRange(R))if(a&&!(a.s1Range.endExclusive0||e.length>0;){const n=r[0],a=e[0];let o;n&&(!a||n.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=o.seq1Range.start?i[i.length-1]=i[i.length-1].join(o):i.push(o)}return i}function wgi(r,e,i){const n=[];for(const a of Lgi(r.map(o=>Tgi(o,e,i)),(o,c)=>o.originalRange.overlapOrTouch(c.originalRange)||o.modifiedRange.overlapOrTouch(c.modifiedRange))){const o=a[0],c=a[a.length-1];n.push(new RJ(o.originalRange.join(c.originalRange),o.modifiedRange.join(c.modifiedRange),a.map(h=>h.innerChanges[0])))}return $Ge(()=>jvt(n,(a,o)=>o.originalRange.startLineNumber-a.originalRange.endLineNumberExclusive===o.modifiedRange.startLineNumber-a.modifiedRange.endLineNumberExclusive&&a.originalRange.endLineNumberExclusive=i[r.modifiedRange.startLineNumber-1].length&&r.originalRange.startColumn-1>=e[r.originalRange.startLineNumber-1].length&&(n=1),r.modifiedRange.endColumn===1&&r.originalRange.endColumn===1&&r.originalRange.startLineNumber+n<=r.originalRange.endLineNumber&&r.modifiedRange.startLineNumber+n<=r.modifiedRange.endLineNumber&&(a=-1);const o=new K6(r.originalRange.startLineNumber+n,r.originalRange.endLineNumber+1+a),c=new K6(r.modifiedRange.startLineNumber+n,r.modifiedRange.endLineNumber+1+a);return new RJ(o,c,[r])}function*Lgi(r,e){let i,n;for(const a of r)n!==void 0&&e(n,a)?i.push(a):(i&&(yield i),i=[a]),n=a;i&&(yield i)}class Qgt{constructor(e,i){this.trimmedHash=e,this.lines=i}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const i=e===0?0:Xgt(this.lines[e-1]),n=e===this.lines.length?0:Xgt(this.lines[e]);return 1e3-(i+n)}}function Xgt(r){let e=0;for(;e0&&i.endExclusive>=e.length&&(i=new wh(i.start-1,i.endExclusive),a=!0),this.lineRange=i;for(let o=this.lineRange.start;oString.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const i=iEt(e>0?this.elements[e-1]:-1),n=iEt(ee?n=o:i=o+1}const a=i===0?0:this.firstCharOffsetByLineMinusOne[i-1];return new Vi(this.lineRange.start+i+1,e-a+1+this.offsetByLine[i])}translateRange(e){return ot.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!FIe(this.elements[e]))return;let i=e;for(;i>0&&FIe(this.elements[i-1]);)i--;let n=e;for(;n=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57}const Ngi={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function tEt(r){return Ngi[r]}function iEt(r){return r===10?7:r===13?6:Pgi(r)?5:r>=97&&r<=122?0:r>=65&&r<=90?1:r>=48&&r<=57?2:r===-1?3:4}function Pgi(r){return r===32||r===9}const nEt={smart:new pgi,experimental:new Agi};var qz=function(r,e,i,n){function a(o){return o instanceof i?o:new i(function(c){c(o)})}return new(i||(i=Promise))(function(o,c){function h(x){try{_(n.next(x))}catch(y){c(y)}}function g(x){try{_(n.throw(x))}catch(y){c(y)}}function _(x){x.done?o(x.value):a(x.value).then(h,g)}_((n=n.apply(r,e||[])).next())})};class Mgi extends tgi{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,i){const n=Fue(e.column,ivt(i),this._lines[e.lineNumber-1],0);return n?new ot(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const i=this._lines,n=this._wordenize.bind(this);let a=0,o="",c=0,h=[];return{*[Symbol.iterator](){for(;;)if(cthis._lines.length)i=this._lines.length,n=this._lines[i-1].length+1,a=!0;else{const o=this._lines[i-1].length+1;n<1?(n=1,a=!0):n>o&&(n=o,a=!0)}return a?{lineNumber:i,column:n}:e}}class vL{constructor(e,i){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=i,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(i=>e.push(this._models[i])),e}acceptNewModel(e){this._models[e.url]=new Mgi(to.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,i){if(!this._models[e])return;this._models[e].onEvents(i)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,i,n){return qz(this,void 0,void 0,function*(){const a=this._getModel(e);return a?eJe.computeUnicodeHighlights(a,i,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,i,n,a){return qz(this,void 0,void 0,function*(){const o=this._getModel(e),c=this._getModel(i);return!o||!c?null:vL.computeDiff(o,c,n,a)})}static computeDiff(e,i,n,a){const o=a==="experimental"?nEt.experimental:nEt.smart,c=e.getLinesContent(),h=i.getLinesContent(),g=o.computeDiff(c,h,n);return{identical:g.changes.length>0?!1:this._modelsAreIdentical(e,i),quitEarly:g.hitTimeout,changes:g.changes.map(x=>{var y;return[x.originalRange.startLineNumber,x.originalRange.endLineNumberExclusive,x.modifiedRange.startLineNumber,x.modifiedRange.endLineNumberExclusive,(y=x.innerChanges)===null||y===void 0?void 0:y.map(S=>[S.originalRange.startLineNumber,S.originalRange.startColumn,S.originalRange.endLineNumber,S.originalRange.endColumn,S.modifiedRange.startLineNumber,S.modifiedRange.startColumn,S.modifiedRange.endLineNumber,S.modifiedRange.endColumn])]})}}static _modelsAreIdentical(e,i){const n=e.getLineCount(),a=i.getLineCount();if(n!==a)return!1;for(let o=1;o<=n;o++){const c=e.getLineContent(o),h=i.getLineContent(o);if(c!==h)return!1}return!0}computeMoreMinimalEdits(e,i,n){return qz(this,void 0,void 0,function*(){const a=this._getModel(e);if(!a)return i;const o=[];let c;i=i.slice(0).sort((h,g)=>{if(h.range&&g.range)return ot.compareRangesUsingStarts(h.range,g.range);const _=h.range?0:1,x=g.range?0:1;return _-x});for(let{range:h,text:g,eol:_}of i){if(typeof _=="number"&&(c=_),ot.isEmpty(h)&&!g)continue;const x=a.getValueInRange(h);if(g=g.replace(/\r\n|\n|\r/g,a.eol),x===g)continue;if(Math.max(g.length,x.length)>vL._diffLimit){o.push({range:h,text:g});continue}const y=Qpi(x,g,n),S=a.offsetAt(ot.lift(h).getStartPosition());for(const L of y){const R=a.positionAt(S+L.originalStart),G=a.positionAt(S+L.originalStart+L.originalLength),ie={text:g.substr(L.modifiedStart,L.modifiedLength),range:{startLineNumber:R.lineNumber,startColumn:R.column,endLineNumber:G.lineNumber,endColumn:G.column}};a.getValueInRange(ie.range)!==ie.text&&o.push(ie)}}return typeof c=="number"&&o.push({eol:c,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o})}computeLinks(e){return qz(this,void 0,void 0,function*(){const i=this._getModel(e);return i?agi(i):null})}textualSuggest(e,i,n,a){return qz(this,void 0,void 0,function*(){const o=new j3(!0),c=new RegExp(n,a),h=new Set;e:for(const g of e){const _=this._getModel(g);if(_){for(const x of _.words(c))if(!(x===i||!isNaN(Number(x)))&&(h.add(x),h.size>vL._suggestionsLimit))break e}}return{words:Array.from(h),duration:o.elapsed()}})}computeWordRanges(e,i,n,a){return qz(this,void 0,void 0,function*(){const o=this._getModel(e);if(!o)return Object.create(null);const c=new RegExp(n,a),h=Object.create(null);for(let g=i.startLineNumber;gthis._host.fhr(h,g)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(c,i),Promise.resolve(FGe(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,i){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,i))}catch(n){return Promise.reject(n)}}}vL._diffLimit=1e5;vL._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=Svt());const tJe=y0("textResourceConfigurationService"),cCt=y0("textResourcePropertiesService"),iv=y0("logService");var Og;(function(r){r[r.Off=0]="Off",r[r.Trace=1]="Trace",r[r.Debug=2]="Debug",r[r.Info=3]="Info",r[r.Warning=4]="Warning",r[r.Error=5]="Error"})(Og||(Og={}));const dCt=Og.Info;class hCt extends ln{constructor(){super(...arguments),this.level=dCt,this._onDidChangeLogLevel=this._register(new yi),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==Og.Off&&this.level<=e}}class zgi extends hCt{constructor(e=dCt,i=!0){super(),this.useColors=i,this.setLevel(e)}trace(e,...i){this.checkLogLevel(Og.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...i):console.log(e,...i))}debug(e,...i){this.checkLogLevel(Og.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...i):console.log(e,...i))}info(e,...i){this.checkLogLevel(Og.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...i):console.log(e,...i))}error(e,...i){this.checkLogLevel(Og.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...i):console.error(e,...i))}dispose(){}}class Igi extends hCt{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const i of this.loggers)i.setLevel(e);super.setLevel(e)}trace(e,...i){for(const n of this.loggers)n.trace(e,...i)}debug(e,...i){for(const n of this.loggers)n.debug(e,...i)}info(e,...i){for(const n of this.loggers)n.info(e,...i)}error(e,...i){for(const n of this.loggers)n.error(e,...i)}dispose(){for(const e of this.loggers)e.dispose()}}function Rgi(r){switch(r){case Og.Trace:return"trace";case Og.Debug:return"debug";case Og.Info:return"info";case Og.Warning:return"warn";case Og.Error:return"error";case Og.Off:return"off"}}new Vr("logLevel",Rgi(Og.Info));const fa=y0("ILanguageFeaturesService");var Ogi=function(r,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,i,n);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(o=(a<3?c(o):a>3?c(e,i,o):c(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},wie=function(r,e){return function(i,n){e(i,n,r)}},h5e=function(r,e,i,n){function a(o){return o instanceof i?o:new i(function(c){c(o)})}return new(i||(i=Promise))(function(o,c){function h(x){try{_(n.next(x))}catch(y){c(y)}}function g(x){try{_(n.throw(x))}catch(y){c(y)}}function _(x){x.done?o(x.value):a(x.value).then(h,g)}_((n=n.apply(r,e||[])).next())})};const uEt=60*1e3,rEt=5*60*1e3;function vI(r,e){const i=r.getModel(e);return!(!i||i.isTooLargeForSyncing())}let pVe=class extends ln{constructor(e,i,n,a,o){super(),this._modelService=e,this._workerManager=this._register(new Vgi(this._modelService,a)),this._logService=n,this._register(o.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(c,h)=>vI(this._modelService,c.uri)?this._workerManager.withWorker().then(g=>g.computeLinks(c.uri)).then(g=>g&&{links:g}):Promise.resolve({links:[]})})),this._register(o.completionProvider.register("*",new jgi(this._workerManager,i,this._modelService,a)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return vI(this._modelService,e)}computedUnicodeHighlights(e,i,n){return this._workerManager.withWorker().then(a=>a.computedUnicodeHighlights(e,i,n))}computeDiff(e,i,n,a){return h5e(this,void 0,void 0,function*(){const o=yield this._workerManager.withWorker().then(h=>h.computeDiff(e,i,n,a));return o?{identical:o.identical,quitEarly:o.quitEarly,changes:o.changes.map(h=>{var g;return new RJ(new K6(h[0],h[1]),new K6(h[2],h[3]),(g=h[4])===null||g===void 0?void 0:g.map(_=>new j6e(new ot(_[0],_[1],_[2],_[3]),new ot(_[4],_[5],_[6],_[7]))))})}:null})}computeMoreMinimalEdits(e,i,n=!1){if(Kg(i)){if(!vI(this._modelService,e))return Promise.resolve(i);const a=j3.create(!0),o=this._workerManager.withWorker().then(c=>c.computeMoreMinimalEdits(e,i,n));return o.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),a.elapsed())),Promise.race([o,KL(1e3).then(()=>i)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return vI(this._modelService,e)}navigateValueSet(e,i,n){return this._workerManager.withWorker().then(a=>a.navigateValueSet(e,i,n))}canComputeWordRanges(e){return vI(this._modelService,e)}computeWordRanges(e,i){return this._workerManager.withWorker().then(n=>n.computeWordRanges(e,i))}};pVe=Ogi([wie(0,lh),wie(1,tJe),wie(2,iv),wie(3,B1),wie(4,fa)],pVe);class jgi{constructor(e,i,n,a){this.languageConfigurationService=a,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=i,this._modelService=n}provideCompletionItems(e,i){return h5e(this,void 0,void 0,function*(){const n=this._configurationService.getValue(e.uri,i,"editor");if(!n.wordBasedSuggestions)return;const a=[];if(n.wordBasedSuggestionsMode==="currentDocument")vI(this._modelService,e.uri)&&a.push(e.uri);else for(const y of this._modelService.getModels())vI(this._modelService,y.uri)&&(y===e?a.unshift(y.uri):(n.wordBasedSuggestionsMode==="allDocuments"||y.getLanguageId()===e.getLanguageId())&&a.push(y.uri));if(a.length===0)return;const o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),c=e.getWordAtPosition(i),h=c?new ot(i.lineNumber,c.startColumn,i.lineNumber,c.endColumn):ot.fromPositions(i),g=h.setEndPosition(i.lineNumber,i.column),x=yield(yield this._workerManager.withWorker()).textualSuggest(a,c==null?void 0:c.word,o);if(x)return{duration:x.duration,suggestions:x.words.map(y=>({kind:18,label:y,insertText:y,range:{insert:g,replace:h}}))}})}}class Vgi extends ln{constructor(e,i){super(),this.languageConfigurationService=i,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new Dae).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(rEt/2)),this._register(this._modelService.onModelRemoved(a=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>rEt&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new fCt(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class Hgi extends ln{constructor(e,i,n){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=i,!n){const a=new Dae;a.cancelAndSet(()=>this._checkStopModelSync(),Math.round(uEt/2)),this._register(a)}}dispose(){for(const e in this._syncedModels)rc(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,i){for(const n of e){const a=n.toString();this._syncedModels[a]||this._beginModelSync(n,i),this._syncedModels[a]&&(this._syncedModelsLastUsedTime[a]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),i=[];for(const n in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[n]>uEt&&i.push(n);for(const n of i)this._stopModelSync(n)}_beginModelSync(e,i){const n=this._modelService.getModel(e);if(!n||!i&&n.isTooLargeForSyncing())return;const a=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const o=new du;o.add(n.onDidChangeContent(c=>{this._proxy.acceptModelChanged(a.toString(),c)})),o.add(n.onWillDispose(()=>{this._stopModelSync(a)})),o.add(Bs(()=>{this._proxy.acceptRemovedModel(a)})),this._syncedModels[a]=o}_stopModelSync(e){const i=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],rc(i)}}class aEt{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class AIe{constructor(e){this._workerClient=e}fhr(e,i){return this._workerClient.fhr(e,i)}}class fCt extends ln{constructor(e,i,n,a){super(),this.languageConfigurationService=a,this._disposed=!1,this._modelService=e,this._keepIdleModels=i,this._workerFactory=new I6e(n),this._worker=null,this._modelManager=null}fhr(e,i){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new Kpi(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new AIe(this)))}catch(e){dVe(e),this._worker=new aEt(new vL(new AIe(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(dVe(e),this._worker=new aEt(new vL(new AIe(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new Hgi(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,i=!1){return h5e(this,void 0,void 0,function*(){return this._disposed?Promise.reject(Dmi()):this._getProxy().then(n=>(this._getOrCreateModelManager(n).ensureSyncedResources(e,i),n))})}computedUnicodeHighlights(e,i,n){return this._withSyncedResources([e]).then(a=>a.computeUnicodeHighlights(e.toString(),i,n))}computeDiff(e,i,n,a){return this._withSyncedResources([e,i],!0).then(o=>o.computeDiff(e.toString(),i.toString(),n,a))}computeMoreMinimalEdits(e,i,n){return this._withSyncedResources([e]).then(a=>a.computeMoreMinimalEdits(e.toString(),i,n))}computeLinks(e){return this._withSyncedResources([e]).then(i=>i.computeLinks(e.toString()))}textualSuggest(e,i,n){return h5e(this,void 0,void 0,function*(){const a=yield this._withSyncedResources(e),o=n.source,c=cIe(n);return a.textualSuggest(e.map(h=>h.toString()),i,o,c)})}computeWordRanges(e,i){return this._withSyncedResources([e]).then(n=>{const a=this._modelService.getModel(e);if(!a)return Promise.resolve(null);const o=this.languageConfigurationService.getLanguageConfiguration(a.getLanguageId()).getWordDefinition(),c=o.source,h=cIe(o);return n.computeWordRanges(e.toString(),i,c,h)})}navigateValueSet(e,i,n){return this._withSyncedResources([e]).then(a=>{const o=this._modelService.getModel(e);if(!o)return null;const c=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),h=c.source,g=cIe(c);return a.navigateValueSet(e.toString(),i,n,h,g)})}dispose(){super.dispose(),this._disposed=!0}}function Kgi(r,e,i){return new Wgi(r,e,i)}class Wgi extends fCt{constructor(e,i,n){super(e,n.keepIdleModels||!1,n.label,i),this._foreignModuleId=n.moduleId,this._foreignModuleCreateData=n.createData||null,this._foreignModuleHost=n.host||null,this._foreignProxy=null}fhr(e,i){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,i))}catch(n){return Promise.reject(n)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const i=this._foreignModuleHost?FGe(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,i).then(n=>{this._foreignModuleCreateData=null;const a=(h,g)=>e.fmr(h,g),o=(h,g)=>function(){const _=Array.prototype.slice.call(arguments,0);return g(h,_)},c={};for(const h of n)c[h]=o(h,a);return c})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(i=>this.getProxy())}}class Xp{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let n="mtk"+this.getForeground(e);const a=this.getFontStyle(e);return a&1&&(n+=" mtki"),a&2&&(n+=" mtkb"),a&4&&(n+=" mtku"),a&8&&(n+=" mtks"),n}static getInlineStyleFromMetadata(e,i){const n=this.getForeground(e),a=this.getFontStyle(e);let o=`color: ${i[n]};`;a&1&&(o+="font-style: italic;"),a&2&&(o+="font-weight: bold;");let c="";return a&4&&(c+=" underline"),a&8&&(c+=" line-through"),c&&(o+=`text-decoration:${c};`),o}static getPresentationFromMetadata(e){const i=this.getForeground(e),n=this.getFontStyle(e);return{foreground:i,italic:!!(n&1),bold:!!(n&2),underline:!!(n&4),strikethrough:!!(n&8)}}}class i4{static createEmpty(e,i){const n=i4.defaultTokenMetadata,a=new Uint32Array(2);return a[0]=e.length,a[1]=n,new i4(a,e,i)}constructor(e,i,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=i,this._languageIdCodec=n}equals(e){return e instanceof i4?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,i,n){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const a=i<<1,o=a+(n<<1);for(let c=a;c0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const i=this._tokens[(e<<1)+1],n=Xp.getLanguageId(i);return this._languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const i=this._tokens[(e<<1)+1];return Xp.getTokenType(i)}getForeground(e){const i=this._tokens[(e<<1)+1];return Xp.getForeground(i)}getClassName(e){const i=this._tokens[(e<<1)+1];return Xp.getClassNameFromMetadata(i)}getInlineStyle(e,i){const n=this._tokens[(e<<1)+1];return Xp.getInlineStyleFromMetadata(n,i)}getPresentation(e){const i=this._tokens[(e<<1)+1];return Xp.getPresentationFromMetadata(i)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return i4.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,i,n){return new iJe(this,e,i,n)}static convertToEndOffset(e,i){const a=(e.length>>>1)-1;for(let o=0;o>>1)-1;for(;ni&&(a=o)}return n}withInserted(e){if(e.length===0)return this;let i=0,n=0,a="";const o=new Array;let c=0;for(;;){const h=ic){a+=this._text.substring(c,g.offset);const _=this._tokens[(i<<1)+1];o.push(a.length,_),c=g.offset}a+=g.text,o.push(a.length,g.tokenMetadata),n++}else break}return new i4(new Uint32Array(o),a,this._languageIdCodec)}}i4.defaultTokenMetadata=(32768|2<<24)>>>0;class iJe{constructor(e,i,n,a){this._source=e,this._startOffset=i,this._endOffset=n,this._deltaOffset=a,this._firstTokenIndex=e.findTokenIndexAtOffset(i),this._tokensCount=0;for(let o=this._firstTokenIndex,c=e.getCount();o=n);o++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof iJe?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const i=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,i)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,i){return this._source.getInlineStyle(this._firstTokenIndex+e,i)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class OD{constructor(e,i,n,a){this.startColumn=e,this.endColumn=i,this.className=n,this.type=a,this._lineDecorationBrand=void 0}static _equals(e,i){return e.startColumn===i.startColumn&&e.endColumn===i.endColumn&&e.className===i.className&&e.type===i.type}static equalsArr(e,i){const n=e.length,a=i.length;if(n!==a)return!1;for(let o=0;o=o||(h[g++]=new OD(Math.max(1,_.startColumn-a+1),Math.min(c+1,_.endColumn-a+1),_.className,_.type));return h}static filter(e,i,n,a){if(e.length===0)return[];const o=[];let c=0;for(let h=0,g=e.length;hi||x.isEmpty()&&(_.type===0||_.type===3))continue;const y=x.startLineNumber===i?x.startColumn:n,S=x.endLineNumber===i?x.endColumn:a;o[c++]=new OD(y,S,_.inlineClassName,_.type)}return o}static _typeCompare(e,i){const n=[2,0,1,3];return n[e]-n[i]}static compare(e,i){if(e.startColumn!==i.startColumn)return e.startColumn-i.startColumn;if(e.endColumn!==i.endColumn)return e.endColumn-i.endColumn;const n=OD._typeCompare(e.type,i.type);return n!==0?n:e.className!==i.className?e.className0&&this.stopOffsets[0]0&&i=e){this.stopOffsets.splice(a,0,e),this.classNames.splice(a,0,i),this.metadata.splice(a,0,n);break}this.count++}}class Ggi{static normalize(e,i){if(i.length===0)return[];const n=[],a=new f5e;let o=0;for(let c=0,h=i.length;c1){const G=e.charCodeAt(_-2);t4(G)&&_--}if(x>1){const G=e.charCodeAt(x-2);t4(G)&&x--}const L=_-1,R=x-2;o=a.consumeLowerThan(L,o,n),a.count===0&&(o=L),a.insert(R,y,S)}return a.consumeLowerThan(1073741824,o,n),n}}class L4{constructor(e,i,n,a){this.endIndex=e,this.type=i,this.metadata=n,this.containsRTL=a,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class mCt{constructor(e,i){this.startOffset=e,this.endOffset=i}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class cN{constructor(e,i,n,a,o,c,h,g,_,x,y,S,L,R,G,ie,ue,re,_e){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=i,this.lineContent=n,this.continuesWithWrappedLine=a,this.isBasicASCII=o,this.containsRTL=c,this.fauxIndentLength=h,this.lineTokens=g,this.lineDecorations=_.sort(OD.compare),this.tabSize=x,this.startVisibleColumn=y,this.spaceWidth=S,this.stopRenderingLineAfter=G,this.renderWhitespace=ie==="all"?4:ie==="boundary"?1:ie==="selection"?2:ie==="trailing"?3:0,this.renderControlCharacters=ue,this.fontLigatures=re,this.selectionsOnLine=_e&&_e.sort((lt,$e)=>lt.startOffset<$e.startOffset?-1:1);const ye=Math.abs(R-S),Le=Math.abs(L-S);ye>>16}static getCharIndex(e){return(e&65535)>>>0}constructor(e,i){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,i,n,a){const o=(i<<16|n<<0)>>>0;this._data[e-1]=o,this._horizontalOffset[e-1]=a}getHorizontalOffset(e){return this._horizontalOffset.length===0?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const i=this.charOffsetToPartData(e-1),n=qF.getPartIndex(i),a=qF.getCharIndex(i);return new nJe(n,a)}getColumn(e,i){return this.partDataToCharOffset(e.partIndex,i,e.charIndex)+1}partDataToCharOffset(e,i,n){if(this.length===0)return 0;const a=(e<<16|n<<0)>>>0;let o=0,c=this.length-1;for(;o+1>>1,ie=this._data[G];if(ie===a)return G;ie>a?c=G:o=G}if(o===c)return o;const h=this._data[o],g=this._data[c];if(h===a)return o;if(g===a)return c;const _=qF.getPartIndex(h),x=qF.getCharIndex(h),y=qF.getPartIndex(g);let S;_!==y?S=i:S=qF.getCharIndex(g);const L=n-x,R=S-n;return L<=R?o:c}}class gVe{constructor(e,i,n){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=i,this.containsForeignElements=n}}function xae(r,e){if(r.lineContent.length===0){if(r.lineDecorations.length>0){e.appendString("");let i=0,n=0,a=0;for(const c of r.lineDecorations)(c.type===1||c.type===2)&&(e.appendString(''),c.type===1&&(a|=1,i++),c.type===2&&(a|=2,n++));e.appendString("");const o=new qF(1,i+n);return o.setColumnInfo(1,i,0,0),new gVe(o,!1,a)}return e.appendString(""),new gVe(new qF(0,0),!1,0)}return eEi(Ugi(r),e)}class Jgi{constructor(e,i,n,a){this.characterMapping=e,this.html=i,this.containsRTL=n,this.containsForeignElements=a}}function V6e(r){const e=new v$(1e4),i=xae(r,e);return new Jgi(i.characterMapping,e.build(),i.containsRTL,i.containsForeignElements)}class $gi{constructor(e,i,n,a,o,c,h,g,_,x,y,S,L,R,G,ie){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=i,this.lineContent=n,this.len=a,this.isOverflowing=o,this.overflowingCharCount=c,this.parts=h,this.containsForeignElements=g,this.fauxIndentLength=_,this.tabSize=x,this.startVisibleColumn=y,this.containsRTL=S,this.spaceWidth=L,this.renderSpaceCharCode=R,this.renderWhitespace=G,this.renderControlCharacters=ie}}function Ugi(r){const e=r.lineContent;let i,n,a;r.stopRenderingLineAfter!==-1&&r.stopRenderingLineAfter0){for(let h=0,g=r.lineDecorations.length;h0&&(o[c++]=new L4(n,"",0,!1));let h=n;for(let g=0,_=i.getCount();g<_;g++){const x=i.getEndOffset(g);if(x<=n)continue;const y=i.getClassName(g);if(x>=a){const L=e?NJ(r.substring(h,a)):!1;o[c++]=new L4(a,y,0,L);break}const S=e?NJ(r.substring(h,x)):!1;o[c++]=new L4(x,y,0,S),h=x}return o}function Zgi(r,e,i){let n=0;const a=[];let o=0;if(i)for(let c=0,h=e.length;c=50&&(a[o++]=new L4(L+1,x,y,S),R=L+1,L=-1);R!==_&&(a[o++]=new L4(_,x,y,S))}else a[o++]=g;n=_}else for(let c=0,h=e.length;c50){const y=g.type,S=g.metadata,L=g.containsRTL,R=Math.ceil(x/50);for(let G=1;G=8234&&r<=8238||r>=8294&&r<=8297||r>=8206&&r<=8207||r===1564}function Ygi(r,e){const i=[];let n=new L4(0,"",0,!1),a=0;for(const o of e){const c=o.endIndex;for(;an.endIndex&&(n=new L4(a,o.type,o.metadata,o.containsRTL),i.push(n)),n=new L4(a+1,"mtkcontrol",o.metadata,!1),i.push(n))}a>n.endIndex&&(n=new L4(c,o.type,o.metadata,o.containsRTL),i.push(n))}return i}function Qgi(r,e,i,n){const a=r.continuesWithWrappedLine,o=r.fauxIndentLength,c=r.tabSize,h=r.startVisibleColumn,g=r.useMonospaceOptimizations,_=r.selectionsOnLine,x=r.renderWhitespace===1,y=r.renderWhitespace===3,S=r.renderSpaceWidth!==r.spaceWidth,L=[];let R=0,G=0,ie=n[G].type,ue=n[G].containsRTL,re=n[G].endIndex;const _e=n.length;let ye=!1,Le=RE(e),lt;Le===-1?(ye=!0,Le=i,lt=i):lt=Dy(e);let $e=!1,Ye=0,rt=_&&_[Ye],Ft=h%c;for(let Ot=o;Ot=rt.endOffset&&(Ye++,rt=_&&_[Ye]);let ei;if(Otlt)ei=!0;else if(ui===9)ei=!0;else if(ui===32)if(x)if($e)ei=!0;else{const Uu=Ot+1Ot),ei&&y&&(ei=ye||Ot>lt),ei&&ue&&Ot>=Le&&Ot<=lt&&(ei=!1),$e){if(!ei||!g&&Ft>=c){if(S){const Uu=R>0?L[R-1].endIndex:o;for(let gu=Uu+1;gu<=Ot;gu++)L[R++]=new L4(gu,"mtkw",1,!1)}else L[R++]=new L4(Ot,"mtkw",1,!1);Ft=Ft%c}}else(Ot===re||ei&&Ot>o)&&(L[R++]=new L4(Ot,ie,0,ue),Ft=Ft%c);for(ui===9?Ft=c:VL(ui)?Ft+=2:Ft++,$e=ei;Ot===re&&(G++,G<_e);)ie=n[G].type,ue=n[G].containsRTL,re=n[G].endIndex}let Zt=!1;if($e)if(a&&x){const Ot=i>0?e.charCodeAt(i-1):0,ui=i>1?e.charCodeAt(i-2):0;Ot===32&&ui!==32&&ui!==9||(Zt=!0)}else Zt=!0;if(Zt)if(S){const Ot=R>0?L[R-1].endIndex:o;for(let ui=Ot+1;ui<=i;ui++)L[R++]=new L4(ui,"mtkw",1,!1)}else L[R++]=new L4(i,"mtkw",1,!1);else L[R++]=new L4(i,ie,0,ue);return L}function Xgi(r,e,i,n){n.sort(OD.compare);const a=Ggi.normalize(r,n),o=a.length;let c=0;const h=[];let g=0,_=0;for(let y=0,S=i.length;y_&&(_=re.startOffset,h[g++]=new L4(_,G,ie,ue)),re.endOffset+1<=R)_=re.endOffset+1,h[g++]=new L4(_,G+" "+re.className,ie|re.metadata,ue),c++;else{_=R,h[g++]=new L4(_,G+" "+re.className,ie|re.metadata,ue);break}}R>_&&(_=R,h[g++]=new L4(_,G,ie,ue))}const x=i[i.length-1].endIndex;if(c'):e.appendString("");for(let rt=0,Ft=_.length;rt=x&&(Va+=vn)}}for(gu&&(e.appendString(' style="width:'),e.appendString(String(R*zr)),e.appendString('px"')),e.appendASCIICharCode(62);ye1?e.appendCharCode(8594):e.appendCharCode(65515);for(let vn=2;vn<=Ku;vn++)e.appendCharCode(160)}else Va=2,Ku=1,e.appendCharCode(G),e.appendCharCode(8204);lt+=Va,$e+=Ku,ye>=x&&(Le+=Ku)}}else for(e.appendASCIICharCode(62);ye=x&&(Le+=Va)}Kt?Ye++:Ye=0,ye>=c&&!_e&&Zt.isPseudoAfter()&&(_e=!0,re.setColumnInfo(ye+1,rt,lt,$e)),e.appendString("")}return _e||re.setColumnInfo(c+1,_.length-1,lt,$e),h&&(e.appendString(''),e.appendString(V("showMore","Show more ({0})",iEi(g))),e.appendString("")),e.appendString(""),new gVe(re,L,a)}function tEi(r){return r.toString(16).toUpperCase().padStart(4,"0")}function iEi(r){return r<1024?V("overflow.chars","{0} chars",r):r<1024*1024?`${(r/1024).toFixed(1)} KB`:`${(r/1024/1024).toFixed(1)} MB`}class sEt{constructor(e,i,n,a){this._viewportBrand=void 0,this.top=e|0,this.left=i|0,this.width=n|0,this.height=a|0}}class nEi{constructor(e,i){this.tabSize=e,this.data=i}}class uJe{constructor(e,i,n,a,o,c,h){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=i,this.minColumn=n,this.maxColumn=a,this.startVisibleColumn=o,this.tokens=c,this.inlineDecorations=h}}class gx{constructor(e,i,n,a,o,c,h,g,_,x){this.minColumn=e,this.maxColumn=i,this.content=n,this.continuesWithWrappedLine=a,this.isBasicASCII=gx.isBasicASCII(n,c),this.containsRTL=gx.containsRTL(n,this.isBasicASCII,o),this.tokens=h,this.inlineDecorations=g,this.tabSize=_,this.startVisibleColumn=x}static isBasicASCII(e,i){return i?pae(e):!0}static containsRTL(e,i,n){return!i&&n?NJ(e):!1}}class One{constructor(e,i,n){this.range=e,this.inlineClassName=i,this.type=n}}class uEi{constructor(e,i,n,a){this.startOffset=e,this.endOffset=i,this.inlineClassName=n,this.inlineClassNameAffectsLetterSpacing=a}toInlineDecoration(e){return new One(new ot(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class gCt{constructor(e,i){this._viewModelDecorationBrand=void 0,this.range=e,this.options=i}}class ECt{constructor(e,i,n){this.color=e,this.zIndex=i,this.data=n}static cmp(e,i){return e.zIndex===i.zIndex?e.colori.color?1:0:e.zIndex-i.zIndex}}function rEi(r){return Array.isArray(r)}function aEi(r){return!rEi(r)}function _Ct(r){return typeof r=="string"}function lEt(r){return!_Ct(r)}function hG(r){return!r}function CL(r,e){return r.ignoreCase&&e?e.toLowerCase():e}function cEt(r){return r.replace(/[&<>'"_]/g,"-")}function oEi(r,e){console.log(`${r.languageId}: ${e}`)}function Kd(r,e){return new Error(`${r.languageId}: ${e}`)}function qT(r,e,i,n,a){const o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let c=null;return e.replace(o,function(h,g,_,x,y,S,L,R,G){return hG(_)?hG(x)?!hG(y)&&y0;){const n=r.tokenizer[i];if(n)return n;const a=i.lastIndexOf(".");a<0?i=null:i=i.substr(0,a)}return null}function sEi(r,e){let i=e;for(;i&&i.length>0;){if(r.stateNames[i])return!0;const a=i.lastIndexOf(".");a<0?i=null:i=i.substr(0,a)}return!1}var lEi=function(r,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,i,n);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(o=(a<3?c(o):a>3?c(e,i,o):c(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},cEi=function(r,e){return function(i,n){e(i,n,r)}};const DCt=5;class zue{static create(e,i){return this._INSTANCE.create(e,i)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,i){if(e!==null&&e.depth>=this._maxCacheDepth)return new iJ(e,i);let n=iJ.getStackElementId(e);n.length>0&&(n+="|"),n+=i;let a=this._entries[n];return a||(a=new iJ(e,i),this._entries[n]=a,a)}}zue._INSTANCE=new zue(DCt);class iJ{constructor(e,i){this.parent=e,this.state=i,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let i="";for(;e!==null;)i.length>0&&(i+="|"),i+=e.state,e=e.parent;return i}static _equals(e,i){for(;e!==null&&i!==null;){if(e===i)return!0;if(e.state!==i.state)return!1;e=e.parent,i=i.parent}return e===null&&i===null}equals(e){return iJ._equals(this,e)}push(e){return zue.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return zue.create(this.parent,e)}}class FG{constructor(e,i){this.languageId=e,this.state=i}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new FG(this.languageId,this.state)}}class ZT{static create(e,i){return this._INSTANCE.create(e,i)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,i){if(i!==null)return new jne(e,i);if(e!==null&&e.depth>=this._maxCacheDepth)return new jne(e,i);const n=iJ.getStackElementId(e);let a=this._entries[n];return a||(a=new jne(e,null),this._entries[n]=a,a)}}ZT._INSTANCE=new ZT(DCt);class jne{constructor(e,i){this.stack=e,this.embeddedLanguageData=i}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:ZT.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof jne)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}}class dEi{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,i){this._lastTokenType===i&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=i,this._lastTokenLanguage=this._languageId,this._tokens.push(new Sue(e,i,this._languageId)))}nestedLanguageTokenize(e,i,n,a){const o=n.languageId,c=n.state,h=ah.get(o);if(!h)return this.enterLanguage(o),this.emit(a,""),c;const g=h.tokenize(e,i,c);if(a!==0)for(const _ of g.tokens)this._tokens.push(new Sue(_.offset+a,_.type,_.language));else this._tokens=this._tokens.concat(g.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,g.endState}finalize(e){return new PGe(this._tokens,e)}}class m5e{constructor(e,i){this._languageService=e,this._theme=i,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,i){const n=this._theme.match(this._currentLanguageId,i)|1024;this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}static _merge(e,i,n){const a=e!==null?e.length:0,o=i.length,c=n!==null?n.length:0;if(a===0&&o===0&&c===0)return new Uint32Array(0);if(a===0&&o===0)return n;if(o===0&&c===0)return e;const h=new Uint32Array(a+o+c);e!==null&&h.set(e);for(let g=0;g{if(c)return;let g=!1;for(let _=0,x=h.changedLanguages.length;_{h.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){const e=[];for(const i in this._embeddedLanguages){const n=ah.get(i);if(n){if(n instanceof xCt){const a=n.getLoadStatus();a.loaded===!1&&e.push(a.promise)}continue}ah.isResolved(i)||e.push(ah.getOrCreate(i))}return e.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(i=>{})}}getInitialState(){const e=zue.create(null,this._lexer.start);return ZT.create(e,null)}tokenize(e,i,n){if(e.length>=this._maxTokenizationLineLength)return ZGe(this._languageId,n);const a=new dEi,o=this._tokenize(e,i,n,a);return a.finalize(o)}tokenizeEncoded(e,i,n){if(e.length>=this._maxTokenizationLineLength)return M6e(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),n);const a=new m5e(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,i,n,a);return a.finalize(o)}_tokenize(e,i,n,a){return n.embeddedLanguageData?this._nestedTokenize(e,i,n,0,a):this._myTokenize(e,i,n,0,a)}_findLeavingNestedLanguageOffset(e,i){let n=this._lexer.tokenizer[i.stack.state];if(!n&&(n=S_e(this._lexer,i.stack.state),!n))throw Kd(this._lexer,"tokenizer state is not defined: "+i.stack.state);let a=-1,o=!1;for(const c of n){if(!lEt(c.action)||c.action.nextEmbedded!=="@pop")continue;o=!0;let h=c.regex;const g=c.regex.source;if(g.substr(0,4)==="^(?:"&&g.substr(g.length-1,1)===")"){const x=(h.ignoreCase?"i":"")+(h.unicode?"u":"");h=new RegExp(g.substr(4,g.length-5),x)}const _=e.search(h);_===-1||_!==0&&c.matchOnlyAtLineStart||(a===-1||_0&&o.nestedLanguageTokenize(h,!1,n.embeddedLanguageData,a);const g=e.substring(c);return this._myTokenize(g,i,n,a+c,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,i,n,a,o){o.enterLanguage(this._languageId);const c=e.length,h=i&&this._lexer.includeLF?e+` -`:e,g=h.length;let _=n.embeddedLanguageData,x=n.stack,y=0,S=null,L=!0;for(;L||y=g)break;L=!1;let rt=this._lexer.tokenizer[ue];if(!rt&&(rt=S_e(this._lexer,ue),!rt))throw Kd(this._lexer,"tokenizer state is not defined: "+ue);const Ft=h.substr(y);for(const Zt of rt)if((y===0||!Zt.matchOnlyAtLineStart)&&(re=Ft.match(Zt.regex),re)){_e=re[0],ye=Zt.action;break}}if(re||(re=[""],_e=""),ye||(y=this._lexer.maxStack)throw Kd(this._lexer,"maximum tokenizer stack size reached: ["+x.state+","+x.parent.state+",...]");x=x.push(ue)}else if(ye.next==="@pop"){if(x.depth<=1)throw Kd(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(Le));x=x.pop()}else if(ye.next==="@popall")x=x.popall();else{let rt=qT(this._lexer,ye.next,_e,re,ue);if(rt[0]==="@"&&(rt=rt.substr(1)),S_e(this._lexer,rt))x=x.push(rt);else throw Kd(this._lexer,"trying to set a next state '"+rt+"' that is undefined in rule: "+this._safeRuleName(Le))}}ye.log&&typeof ye.log=="string"&&oEi(this._lexer,this._lexer.languageId+": "+qT(this._lexer,ye.log,_e,re,ue))}if($e===null)throw Kd(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(Le));const Ye=rt=>{const Ft=this._languageService.getLanguageIdByLanguageName(rt)||this._languageService.getLanguageIdByMimeType(rt)||rt,Zt=this._getNestedEmbeddedLanguageData(Ft);if(y0)throw Kd(this._lexer,"groups cannot be nested: "+this._safeRuleName(Le));if(re.length!==$e.length+1)throw Kd(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(Le));let rt=0;for(let Ft=1;Ftr});class rJe{static colorizeElement(e,i,n,a){a=a||{};const o=a.theme||"vs",c=a.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!c)return console.error("Mode not detected"),Promise.resolve();const h=i.getLanguageIdByMimeType(c)||c;e.setTheme(o);const g=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+o;const _=x=>{var y;const S=(y=BIe==null?void 0:BIe.createHTML(x))!==null&&y!==void 0?y:x;n.innerHTML=S};return this.colorize(i,g||"",h,a).then(_,x=>console.error(x))}static colorize(e,i,n,a){return fEi(this,void 0,void 0,function*(){const o=e.languageIdCodec;let c=4;a&&typeof a.tabSize=="number"&&(c=a.tabSize),VGe(i)&&(i=i.substr(1));const h=SA(i);if(!e.isRegisteredLanguageId(n))return dEt(h,c,o);const g=yield ah.getOrCreate(n);return g?mEi(h,c,g,o):dEt(h,c,o)})}static colorizeLine(e,i,n,a,o=4){const c=gx.isBasicASCII(e,i),h=gx.containsRTL(e,c,n);return V6e(new cN(!1,!0,e,!1,c,h,0,a,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,i,n=4){const a=e.getLineContent(i);e.tokenization.forceTokenization(i);const c=e.tokenization.getLineTokens(i).inflate();return this.colorizeLine(a,e.mightContainNonBasicASCII(),e.mightContainRTL(),c,n)}}function mEi(r,e,i,n){return new Promise((a,o)=>{const c=()=>{const h=pEi(r,e,i,n);if(i instanceof Iue){const g=i.getLoadStatus();if(g.loaded===!1){g.promise.then(c,o);return}}a(h)};c()})}function dEt(r,e,i){let n=[];const o=new Uint32Array(2);o[0]=0,o[1]=33587200;for(let c=0,h=r.length;c")}return n.join("")}function pEi(r,e,i,n){let a=[],o=i.getInitialState();for(let c=0,h=r.length;c"),o=_.endState}return a.join("")}const aJe={clipboard:{writeText:Ey||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:Ey||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:Ey||GGe()?0:navigator.keyboard||XS?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function EVe(r,e){if(typeof r=="number"){if(r===0)return null;const i=(r&65535)>>>0,n=(r&4294901760)>>>16;return n!==0?new wIe([B_e(i,e),B_e(n,e)]):new wIe([B_e(i,e)])}else{const i=[];for(let n=0;n1?i-1:0),a=1;a/gm),OEi=t8(/^data-[\-\w.\u00B7-\uFFFF]/),jEi=t8(/^aria-[\-\w]+$/),VEi=t8(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),HEi=t8(/^(?:\w+script|data):/i),KEi=t8(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),one=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};function NF(r){if(Array.isArray(r)){for(var e=0,i=Array(r.length);e"u"?null:window},GEi=function(e,i){if((typeof e>"u"?"undefined":one(e))!=="object"||typeof e.createPolicy!="function")return null;var n=null,a="data-tt-policy-suffix";i.currentScript&&i.currentScript.hasAttribute(a)&&(n=i.currentScript.getAttribute(a));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(h){return h}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function CCt(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:WEi(),e=function(tn){return CCt(tn)};if(e.version="2.3.1",e.removed=[],!r||!r.document||r.document.nodeType!==9)return e.isSupported=!1,e;var i=r.document,n=r.document,a=r.DocumentFragment,o=r.HTMLTemplateElement,c=r.Node,h=r.Element,g=r.NodeFilter,_=r.NamedNodeMap,x=_===void 0?r.NamedNodeMap||r.MozNamedAttrMap:_,y=r.Text,S=r.Comment,L=r.DOMParser,R=r.trustedTypes,G=h.prototype,ie=w_e(G,"cloneNode"),ue=w_e(G,"nextSibling"),re=w_e(G,"childNodes"),_e=w_e(G,"parentNode");if(typeof o=="function"){var ye=n.createElement("template");ye.content&&ye.content.ownerDocument&&(n=ye.content.ownerDocument)}var Le=GEi(R,i),lt=Le&&Zr?Le.createHTML(""):"",$e=n,Ye=$e.implementation,rt=$e.createNodeIterator,Ft=$e.createDocumentFragment,Zt=$e.getElementsByTagName,Ot=i.importNode,ui={};try{ui=Zz(n).documentMode?n.documentMode:{}}catch{}var ei={};e.isSupported=typeof _e=="function"&&Ye&&typeof Ye.createHTMLDocument<"u"&&ui!==9;var Uu=IEi,gu=REi,Kt=OEi,zr=jEi,Mu=HEi,Va=KEi,Ku=VEi,vn=null,Wn=Zc({},[].concat(NF(EEt),NF(TIe),NF(LIe),NF(NIe),NF(_Et))),ha=null,la=Zc({},[].concat(NF(DEt),NF(PIe),NF(xEt),NF(T_e))),Ui=null,Uo=null,j0=!0,Vl=!0,Ll=!1,Ra=!1,Xs=!1,ki=!1,qe=!1,Lu=!1,an=!1,Ir=!0,Zr=!1,io=!0,Pi=!0,li=!1,di={},xt=null,Nt=Zc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),mi=null,ci=Zc({},["audio","video","img","source","image","track"]),hn=null,Hn=Zc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),kr="http://www.w3.org/1998/Math/MathML",ia="http://www.w3.org/2000/svg",Ei="http://www.w3.org/1999/xhtml",Do=Ei,Nl=!1,kn=null,va=n.createElement("form"),e0=function(tn){kn&&kn===tn||((!tn||(typeof tn>"u"?"undefined":one(tn))!=="object")&&(tn={}),tn=Zz(tn),vn="ALLOWED_TAGS"in tn?Zc({},tn.ALLOWED_TAGS):Wn,ha="ALLOWED_ATTR"in tn?Zc({},tn.ALLOWED_ATTR):la,hn="ADD_URI_SAFE_ATTR"in tn?Zc(Zz(Hn),tn.ADD_URI_SAFE_ATTR):Hn,mi="ADD_DATA_URI_TAGS"in tn?Zc(Zz(ci),tn.ADD_DATA_URI_TAGS):ci,xt="FORBID_CONTENTS"in tn?Zc({},tn.FORBID_CONTENTS):Nt,Ui="FORBID_TAGS"in tn?Zc({},tn.FORBID_TAGS):{},Uo="FORBID_ATTR"in tn?Zc({},tn.FORBID_ATTR):{},di="USE_PROFILES"in tn?tn.USE_PROFILES:!1,j0=tn.ALLOW_ARIA_ATTR!==!1,Vl=tn.ALLOW_DATA_ATTR!==!1,Ll=tn.ALLOW_UNKNOWN_PROTOCOLS||!1,Ra=tn.SAFE_FOR_TEMPLATES||!1,Xs=tn.WHOLE_DOCUMENT||!1,Lu=tn.RETURN_DOM||!1,an=tn.RETURN_DOM_FRAGMENT||!1,Ir=tn.RETURN_DOM_IMPORT!==!1,Zr=tn.RETURN_TRUSTED_TYPE||!1,qe=tn.FORCE_BODY||!1,io=tn.SANITIZE_DOM!==!1,Pi=tn.KEEP_CONTENT!==!1,li=tn.IN_PLACE||!1,Ku=tn.ALLOWED_URI_REGEXP||Ku,Do=tn.NAMESPACE||Ei,Ra&&(Vl=!1),an&&(Lu=!0),di&&(vn=Zc({},[].concat(NF(_Et))),ha=[],di.html===!0&&(Zc(vn,EEt),Zc(ha,DEt)),di.svg===!0&&(Zc(vn,TIe),Zc(ha,PIe),Zc(ha,T_e)),di.svgFilters===!0&&(Zc(vn,LIe),Zc(ha,PIe),Zc(ha,T_e)),di.mathMl===!0&&(Zc(vn,NIe),Zc(ha,xEt),Zc(ha,T_e))),tn.ADD_TAGS&&(vn===Wn&&(vn=Zz(vn)),Zc(vn,tn.ADD_TAGS)),tn.ADD_ATTR&&(ha===la&&(ha=Zz(ha)),Zc(ha,tn.ADD_ATTR)),tn.ADD_URI_SAFE_ATTR&&Zc(hn,tn.ADD_URI_SAFE_ATTR),tn.FORBID_CONTENTS&&(xt===Nt&&(xt=Zz(xt)),Zc(xt,tn.FORBID_CONTENTS)),Pi&&(vn["#text"]=!0),Xs&&Zc(vn,["html","head","body"]),vn.table&&(Zc(vn,["tbody"]),delete Ui.tbody),WD&&WD(tn),kn=tn)},yl=Zc({},["mi","mo","mn","ms","mtext"]),Lh=Zc({},["foreignobject","desc","title","annotation-xml"]),vd=Zc({},TIe);Zc(vd,LIe),Zc(vd,MEi);var ac=Zc({},NIe);Zc(ac,zEi);var zi=function(tn){var Eu=_e(tn);(!Eu||!Eu.tagName)&&(Eu={namespaceURI:Ei,tagName:"template"});var no=hI(tn.tagName),Ts=hI(Eu.tagName);if(tn.namespaceURI===ia)return Eu.namespaceURI===Ei?no==="svg":Eu.namespaceURI===kr?no==="svg"&&(Ts==="annotation-xml"||yl[Ts]):!!vd[no];if(tn.namespaceURI===kr)return Eu.namespaceURI===Ei?no==="math":Eu.namespaceURI===ia?no==="math"&&Lh[Ts]:!!ac[no];if(tn.namespaceURI===Ei){if(Eu.namespaceURI===ia&&!Lh[Ts]||Eu.namespaceURI===kr&&!yl[Ts])return!1;var Sm=Zc({},["title","style","font","a","script"]);return!ac[no]&&(Sm[no]||!vd[no])}return!1},Hi=function(tn){Lie(e.removed,{element:tn});try{tn.parentNode.removeChild(tn)}catch{try{tn.outerHTML=lt}catch{tn.remove()}}},Kn=function(tn,Eu){try{Lie(e.removed,{attribute:Eu.getAttributeNode(tn),from:Eu})}catch{Lie(e.removed,{attribute:null,from:Eu})}if(Eu.removeAttribute(tn),tn==="is"&&!ha[tn])if(Lu||an)try{Hi(Eu)}catch{}else try{Eu.setAttribute(tn,"")}catch{}},Mn=function(tn){var Eu=void 0,no=void 0;if(qe)tn=""+tn;else{var Ts=pEt(tn,/^[\r\n\t ]+/);no=Ts&&Ts[0]}var Sm=Le?Le.createHTML(tn):tn;if(Do===Ei)try{Eu=new L().parseFromString(Sm,"text/html")}catch{}if(!Eu||!Eu.documentElement){Eu=Ye.createDocument(Do,"template",null);try{Eu.documentElement.innerHTML=Nl?"":Sm}catch{}}var $1=Eu.body||Eu.documentElement;return tn&&no&&$1.insertBefore(n.createTextNode(no),$1.childNodes[0]||null),Do===Ei?Zt.call(Eu,Xs?"html":"body")[0]:Xs?Eu.documentElement:$1},Oa=function(tn){return rt.call(tn.ownerDocument||tn,tn,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT,null,!1)},Yu=function(tn){return tn instanceof y||tn instanceof S?!1:typeof tn.nodeName!="string"||typeof tn.textContent!="string"||typeof tn.removeChild!="function"||!(tn.attributes instanceof x)||typeof tn.removeAttribute!="function"||typeof tn.setAttribute!="function"||typeof tn.namespaceURI!="string"||typeof tn.insertBefore!="function"},Cr=function(tn){return(typeof c>"u"?"undefined":one(c))==="object"?tn instanceof c:tn&&(typeof tn>"u"?"undefined":one(tn))==="object"&&typeof tn.nodeType=="number"&&typeof tn.nodeName=="string"},Aa=function(tn,Eu,no){ei[tn]&&TEi(ei[tn],function(Ts){Ts.call(e,Eu,no,kn)})},Cd=function(tn){var Eu=void 0;if(Aa("beforeSanitizeElements",tn,null),Yu(tn)||pEt(tn.nodeName,/[\u0080-\uFFFF]/))return Hi(tn),!0;var no=hI(tn.nodeName);if(Aa("uponSanitizeElement",tn,{tagName:no,allowedTags:vn}),!Cr(tn.firstElementChild)&&(!Cr(tn.content)||!Cr(tn.content.firstElementChild))&&uS(/<[/\w]/g,tn.innerHTML)&&uS(/<[/\w]/g,tn.textContent)||no==="select"&&uS(/